/* A product notebook: pigment, fine rules, real screens and restrained motion. */
:root {
  --studio-violet: #b8a2ed;
  --studio-peach: #edbba4;
  --studio-mint: #aad8cb;
}
body:has(.studio-hero),
body:has(.studio-story),
body[data-studio-page] {
  background-color: #090c16;
}
.studio-hero,
.studio-story,
.studio-reading {
  --pigment: #544083;
  --accent: var(--studio-violet);
  position: relative;
  isolation: isolate;
  color: #f2eff9;
  font-family: Inter, system-ui, sans-serif;
}
.studio-cameras {
  --pigment: #28574f;
  --accent: var(--studio-mint);
}
.studio-channels,
.studio-library {
  --pigment: #794d47;
  --accent: var(--studio-peach);
}
.studio-offline,
.studio-operations {
  --pigment: #354e76;
  --accent: #b4ccee;
}
.studio-security {
  --pigment: #4e5275;
  --accent: #c1c5f5;
}
.studio-hero {
  margin: 0;
  padding: 26px 0 34px;
  min-width: 0;
}
.studio-brush {
  position: absolute;
  z-index: -1;
  inset: -12% -9%;
  width: 118%;
  height: 125%;
  color: var(--pigment);
  opacity: 0.62;
  pointer-events: none;
  transform: rotate(-8deg);
}
.studio-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font:
    10px/1.5 ui-monospace,
    monospace;
  letter-spacing: 0.04em;
  color: #d1ccdf;
}
.studio-motion {
  font:
    11px/1.3 system-ui,
    sans-serif;
  border: 1px solid #ffffff40;
  border-radius: 30px;
  background: #101321dd;
  color: #eee9f8;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.studio-motion:focus-visible,
.studio-capture:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.studio-primary {
  position: relative;
  margin-right: 8%;
  border: 1px solid #b6a4df80;
  box-shadow: 0 24px 65px #0008;
  transform: perspective(1100px) rotateY(-5deg) rotateZ(-2deg);
  transition: transform 0.6s;
}
.studio-primary:hover {
  transform: perspective(1100px) rotateY(0) rotateZ(0);
}
.studio-capture {
  display: block;
  line-height: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #101320;
}
.studio-capture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8/5;
  object-fit: contain;
  transition: transform 0.65s ease;
}
.studio-capture:hover img {
  transform: scale(1.018);
}
.studio-note {
  position: absolute;
  left: 20px;
  bottom: -17px;
  padding: 8px 12px;
  background: var(--accent);
  color: #171925;
  font:
    10px/1.3 ui-monospace,
    monospace;
  transform: rotate(2deg);
  box-shadow: 0 8px 24px #0005;
}
.studio-secondary {
  position: relative;
  width: 56%;
  margin: -8% 0 0 auto;
  transform: rotate(4deg);
  border: 1px solid #ffffff55;
  box-shadow: 0 16px 40px #0008;
}
.studio-secondary > span {
  display: block;
  padding: 9px 12px;
  background: #111526;
  color: #ddd6e8;
  font:
    10px/1.5 ui-monospace,
    monospace;
}
.studio-hero > .studio-film,
.studio-hero > .studio-access {
  position: absolute;
  width: 37%;
  left: 0;
  bottom: 35px;
  transform: rotate(-3deg);
  box-shadow: 0 10px 30px #0008;
}
.studio-film {
  position: relative;
  background: #111725;
  border: 1px solid #ffffff55;
  overflow: hidden;
  min-width: 0;
}
.studio-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.studio-film > span {
  display: block;
  padding: 9px 12px;
  color: #d4cbe4;
  font:
    10px/1.4 ui-monospace,
    monospace;
  background: #101422;
}
.studio-hero > figcaption {
  margin-top: 25px;
  font-size: 10px;
  line-height: 1.6;
  color: #bfb9cd;
}
.studio-access {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 20px 12px;
  background: #111725;
  font-size: 10px;
}
.studio-access b {
  padding: 13px 9px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 10px;
}
.studio-access i {
  height: 1px;
  width: 14%;
  background: var(--accent);
  position: relative;
}
.studio-access i:after {
  content: '';
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  background: #f4edff;
  border-radius: 50%;
  animation: studio-signal 2.4s linear infinite;
}
.studio-access small {
  flex-basis: 100%;
  text-align: center;
  color: #b5aec3;
  font-size: 9px;
}
.studio-story {
  padding: 90px 0;
  overflow: hidden;
  background: linear-gradient(155deg, #14131e88, #0a0d16);
  border-block: 1px solid #ffffff12;
}
.studio-story:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 5% 45%, var(--pigment), transparent 65%);
  opacity: 0.4;
}
.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 38px;
}
.studio-heading span,
.studio-reading-copy > span {
  font:
    10px/1.5 ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.studio-heading h2 {
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.045em;
  max-width: 750px;
  margin: 12px 0 0;
}
.studio-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}
.studio-story figure {
  margin: 0;
  min-width: 0;
  position: relative;
}
.studio-wide > .studio-capture {
  border: 1px solid #ffffff40;
  transform: rotate(-2deg);
  box-shadow: 0 20px 50px #0007;
}
.studio-wide > figcaption {
  margin-top: 24px;
  color: #c9c1d9;
  font:
    11px/1.6 ui-monospace,
    monospace;
}
.studio-detail {
  transform: rotate(2deg);
}
.studio-detail-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 25px 2px;
  font:
    12px/1.6 ui-monospace,
    monospace;
  color: #c4bbd6;
}
.studio-detail-foot a {
  color: var(--accent);
  text-underline-offset: 6px;
}
.studio-caption {
  font-size: 11px;
  line-height: 1.7;
  color: #b7b1c4;
  margin: 22px 0 0;
}
.studio-reading {
  max-width: 1100px;
  width: calc(100% - 40px);
  margin: 80px auto 30px;
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 35px;
  align-items: center;
  border: 1px solid #ffffff25;
  border-radius: 18px;
  background: linear-gradient(125deg, var(--pigment), #111624 70%);
}
.studio-reading h2 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 16px 0;
}
.studio-reading p {
  font-size: 13px;
  color: #d3ccdf;
  line-height: 1.7;
}
.studio-reading a {
  font-size: 12px;
  color: #e4d8fa;
  text-underline-offset: 5px;
}
.studio-reading figure {
  margin: 0;
  min-width: 0;
  border: 1px solid #ffffff50;
  transform: rotate(2deg);
  box-shadow: 0 15px 35px #0006;
}
/* Pigment stays around reading content, never behind code or form fields. */
body[data-studio-page] .post > h1,
body[data-studio-page] .docs-main > h1 {
  border-left: 3px solid #b8a2ed;
  padding-left: 20px;
}
body[data-studio-page] .docs-nav {
  border-left: 1px solid #9c82c545;
  padding-left: 16px;
}
body[data-studio-page] .ins-form {
  border: 1px solid #b69bde55;
  box-shadow: 0 24px 65px #0005;
}
body:has(.studio-hero) .hero-copy h1 {
  font-weight: 550;
  letter-spacing: -0.055em;
}
body:has(.studio-hero) .detail-item {
  position: relative;
  overflow: hidden;
  border-color: #9d88bc40;
  background: linear-gradient(145deg, #201b3344, #0b1019);
}
body:has(.studio-hero) .detail-item:after {
  content: '';
  position: absolute;
  right: -20px;
  top: -25px;
  width: 90px;
  height: 90px;
  border: 1px solid #b9a3df20;
  border-radius: 50%;
  box-shadow:
    0 0 0 14px #b9a3df05,
    0 0 0 28px #b9a3df05;
  pointer-events: none;
}
.landing-hero:before {
  filter: none;
  animation: none;
  width: auto;
  height: auto;
  content: '';
  position: absolute;
  inset: -80px -9% -20px;
  z-index: -1;
  background:
    radial-gradient(ellipse at 85% 35%, #71517766, transparent 45%),
    radial-gradient(ellipse at 14% 70%, #275b6544, transparent 50%);
  pointer-events: none;
}
body:has(.studio-hero),
body:has(.studio-story),
body[data-studio-page] {
  overflow-x: clip;
}
.landing-hero {
  position: relative;
  isolation: isolate;
}
.landing-products .product-bento-card {
  border-radius: 10px 32px 10px 32px;
}
.landing-products .camera-bento {
  background: radial-gradient(ellipse at 90% 30%, #2a5c5360, transparent 65%), #101522;
}
.product-bento-card .mini-stream,
.product-bento-card .mini-camera-wall {
  border: 1px solid #c6abf02b;
  border-radius: 14px;
  padding: 20px;
}
@keyframes studio-signal {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}
@keyframes studio-enter {
  from {
    opacity: 0.35;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .studio-in {
    animation: studio-enter 0.7s ease both;
  }
}
body.paused .studio-access i:after {
  animation-play-state: paused;
}
@media (max-width: 950px) {
  .studio-story-grid {
    gap: 24px;
  }
  .studio-reading {
    grid-template-columns: 1fr 1.4fr;
    padding: 28px;
    gap: 24px;
  }
  .studio-hero {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 700px) {
  .studio-story {
    padding: 55px 0;
  }
  .studio-heading {
    align-items: flex-start;
    gap: 16px;
  }
  .studio-story-grid,
  .studio-reading {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-reading {
    padding: 24px;
    margin: 45px auto 25px;
    gap: 24px;
  }
  .studio-story-grid {
    gap: 30px;
  }
  .studio-motion {
    padding: 7px 9px;
    font-size: 10px;
  }
  .studio-top {
    font-size: 9px;
  }
  .studio-hero > .studio-film,
  .studio-hero > .studio-access {
    width: 40%;
    bottom: 50px;
  }
  .studio-note {
    left: 8px;
    font-size: 8px;
  }
  .studio-hero > figcaption {
    font-size: 10px;
  }
  .studio-secondary {
    width: 57%;
  }
  .studio-story .studio-detail {
    max-width: 550px;
    width: 100%;
  }
  .studio-brush {
    opacity: 0.45;
  }
  .studio-access {
    min-height: 90px;
    padding: 12px 6px;
    font-size: 8px;
    gap: 5px;
  }
  .studio-access b {
    padding: 10px 6px;
  }
  .studio-hero {
    padding-top: 10px;
  }
  .studio-detail-foot {
    padding-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-hero *,
  .studio-story *,
  .studio-reading * {
    animation: none !important;
    transition: none !important;
  }
  .studio-primary,
  .studio-secondary,
  .studio-detail,
  .studio-reading figure {
    transform: none;
  }
  .studio-motion {
    display: none;
  }
}

.studio-offscreen *,
.studio-offscreen *:after,
body[data-studio-page].paused *,
body[data-studio-page].paused *:after {
  animation-play-state: paused !important;
}

body:has(.studio-hero) {
  background-image: radial-gradient(#c2a8ef0d 0.7px, transparent 0.7px);
  background-size: 7px 7px;
}
.studio-resource-image {
  display: block;
  overflow: hidden;
  margin: 15px 0 22px;
  border: 1px solid #a18abd40;
  border-radius: 6px;
}
.studio-resource-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8/5;
  object-fit: contain;
  transition: transform 0.5s;
}
.resource-card:hover .studio-resource-image img {
  transform: scale(1.025);
}
.mini-camera-wall span {
  position: relative;
  overflow: hidden;
}
.mini-camera-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.mini-camera-wall b {
  z-index: 1;
  background: #0b0d18d9;
  padding: 4px;
}
.studio-brush path:nth-child(2) {
  stroke-dasharray: 22 14;
  animation: studio-brush-line 18s linear infinite;
}
@keyframes studio-brush-line {
  to {
    stroke-dashoffset: -216;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-brush path {
    animation: none !important;
  }
  .studio-resource-image img {
    transition: none;
  }
}

/* Signal architecture: obsidian, acid green and electric cyan. */
:root {
  --studio-violet: #a6a0ff;
  --studio-peach: #c9ff67;
  --studio-mint: #4ee9cf;
}
body:has(.studio-hero),
body:has(.studio-story),
body[data-studio-page] {
  background-color: #06090d;
}
.landing-experience .spectral {
  background-image: linear-gradient(110deg, #efffe5 5%, #b4ff45 45%, #41e6ff 90%);
}
.landing-experience .button.primary {
  background: #c3ff62;
  color: #10170b;
  border-color: #c3ff62;
  box-shadow: 0 0 38px #b4ff4519;
}
.landing-hero {
  padding-top: 82px !important;
  background-image:
    linear-gradient(#75c4e008 1px, transparent 1px),
    linear-gradient(90deg, #75c4e008 1px, transparent 1px);
  background-size: 72px 72px;
}
.landing-hero:before {
  inset: 0 -12% !important;
  background: radial-gradient(ellipse at 50% 70%, #174d5540, transparent 58%) !important;
}
.landing-hero h1 {
  font-size: clamp(66px, 9.3vw, 142px);
  letter-spacing: -0.075em;
  line-height: 0.95;
}
.landing-hero .eyebrow {
  border: 1px solid #bcff6140;
  border-radius: 4px;
  padding: 9px 14px;
  background: #bcff6108;
  color: #d7efbd;
}
.signal-stage {
  position: relative;
  width: 100%;
  margin-top: 20px;
  padding-top: 135px;
}
.signal-topology {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 220px;
  pointer-events: none;
}
.signal-topology path,
.signal-topology circle {
  stroke: url(#signal-spectrum);
  stroke-width: 1.3;
  stroke-dasharray: 10 7;
  animation: signal-route 12s linear infinite;
}
.signal-topology circle {
  stroke-dasharray: none;
  opacity: 0.65;
}
.signal-endpoints {
  position: absolute;
  inset: 7px 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font:
    10px/1.5 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  color: #9badb7;
}
.landing-hero .console-showcase {
  margin: 0 auto;
  width: min(1120px, 100%);
}
.landing-hero .console-window {
  border: 1px solid #60ddce55;
  border-radius: 12px;
  box-shadow:
    0 0 0 7px #b4ff4503,
    0 0 0 8px #60ddce18,
    0 40px 100px #000a,
    0 -20px 100px #46c9a714;
  transform: perspective(1600px) rotateX(4deg);
  max-height: none;
}
.landing-hero .console-corner {
  border-radius: 4px;
  background: #0b1418f5;
  border-color: #4ee9cf45;
}
.landing-products .section-heading,
.landing-flow .section-heading {
  text-align: left;
  max-width: 860px;
  margin-left: 0;
}
.landing-products h2,
.landing-flow h2 {
  font-size: clamp(38px, 5.7vw, 78px);
  letter-spacing: -0.055em;
}
.product-bento {
  gap: 24px;
}
.product-bento-card {
  border-radius: 12px;
  border-color: #b4ff452b;
  background: radial-gradient(ellipse at 95% 100%, #679d1729, transparent 65%), #0c1115;
  padding: 38px;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}
.product-bento-card:hover {
  border-color: #c3ff6288;
  transform: translateY(-5px);
  box-shadow: 0 20px 65px #0006;
}
.product-bento-card.camera-bento {
  background: radial-gradient(ellipse at 95% 100%, #138e9129, transparent 65%), #0c1115;
  border-color: #41e6ff35;
}
.product-bento-card h3 {
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -0.055em;
}
.bento-kicker,
.section-label {
  color: #c3ff62;
}
.camera-bento .bento-kicker {
  color: #4ee9e6;
}
.studio-story {
  padding-block: 96px;
  border-block: 1px solid #68d0c517;
  background: radial-gradient(ellipse at 80% 50%, #214f5420, transparent 60%);
}
.studio-heading h2 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  max-width: 800px;
}
.studio-brush {
  opacity: 0.25;
}
.studio-primary .studio-capture,
.studio-wide .studio-capture {
  border-radius: 8px;
  border: 1px solid #8ce0d640;
  box-shadow: 0 24px 80px #0008;
}
.studio-hero {
  --accent: #b4ff45;
  --pigment: #205049;
}
.studio-channels,
.studio-library {
  --accent: #c9ff67;
  --pigment: #485c25;
}
.studio-cameras {
  --accent: #41e6ff;
  --pigment: #184e61;
}
.studio-note,
.studio-secondary > span {
  border-radius: 3px;
  font-family: ui-monospace, monospace;
}
.landing-close {
  text-align: center;
  background: radial-gradient(ellipse at 50% 110%, #4b722840, transparent 70%);
}
.landing-close .actions {
  justify-content: center;
}
@keyframes signal-route {
  to {
    stroke-dashoffset: -204;
  }
}
body.paused .signal-topology path,
body.paused .signal-topology circle {
  animation-play-state: paused;
}
@media (max-width: 700px) {
  .landing-hero {
    padding-top: 48px !important;
  }
  .signal-stage {
    padding-top: 80px;
  }
  .signal-topology {
    height: 140px;
  }
  .signal-endpoints {
    font-size: 7px;
    letter-spacing: 0;
  }
  .product-bento-card {
    padding: 25px;
  }
  .studio-story {
    padding-block: 56px;
  }
  .landing-hero .console-window {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .signal-topology path,
  .signal-topology circle {
    animation: none;
  }
  .product-bento-card {
    transition: none;
  }
  .product-bento-card:hover {
    transform: none;
  }
}
