/* ==========================================================================
   3D VR Studio — core stylesheet
   Palette derived from the logo: glass-cyan highlight, brand blue core,
   near-black wordmark, cool glass greys. Light is the logo's native ground.
   Add data-theme="dark" on <html> for the dark variant (needs a knockout logo).
   ========================================================================== */

:root {
  /* Surfaces — white, with the cool grey of the glass cube */
  --shadow:      #FFFFFF;   /* page */
  --shadow-deep: #EDF1F5;   /* recessed: frames, inputs */
  --panel:       #F4F7FA;   /* raised band */
  --panel-lift:  #E9EEF4;
  --rule:        #DCE3EA;
  --rule-bright: #C3CEDA;

  /* Text — the wordmark black, stepping down to glass grey */
  --key:         #0A0A0A;
  --key-soft:    #38444F;
  --dim:         #64737F;
  --dimmer:      #8B98A4;

  /* Brand blues, sampled from the mark */
  --amber:       #0C7DB6;   /* core brand blue — primary action (AA on white) */
  --amber-deep:  #095D89;   /* hover / pressed */
  --amber-wash:  rgba(12, 125, 182, 0.07);
  --rim:         #6DC4EF;   /* glass highlight — accents, never text */

  /* Type */
  --face: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Scale — 1.333 perfect fourth off 17px */
  --t-xs:   0.78rem;
  --t-sm:   0.9rem;
  --t-base: 1.0625rem;
  --t-md:   1.32rem;
  --t-lg:   1.86rem;
  --t-xl:   2.6rem;
  --t-2xl:  3.7rem;
  --t-3xl:  5.2rem;

  /* Rhythm */
  --gut: 1.5rem;
  --bay: 6.5rem;
  --max: 1240px;
  --measure: 66ch;
}

/* Dark variant. Requires a white-wordmark version of the logo. */
:root[data-theme="dark"] {
  --shadow:      #0E1419;
  --shadow-deep: #090E12;
  --panel:       #161E26;
  --panel-lift:  #1D2730;
  --rule:        #24303B;
  --rule-bright: #33434F;

  --key:         #F2F6F9;
  --key-soft:    #C2CDD6;
  --dim:         #8FA0AE;
  --dimmer:      #667886;

  --amber:       #4FB3E8;
  --amber-deep:  #7CCAF0;
  --amber-wash:  rgba(79, 179, 232, 0.10);
  --rim:         #6DC4EF;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--shadow);
  color: var(--key-soft);
  font-family: var(--face);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Typography
   One family. Contrast comes from width and weight, not from a second face.
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  color: var(--key);
  font-weight: 800;
  font-stretch: 125%;          /* Archivo Expanded */
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7.2vw, var(--t-3xl)); }
h2 { font-size: clamp(2rem, 4.6vw, var(--t-2xl)); }
h3 { font-size: clamp(1.35rem, 2.4vw, var(--t-lg)); font-stretch: 110%; letter-spacing: -0.018em; }
h4 { font-size: var(--t-md); font-stretch: 100%; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.15rem, 2vw, var(--t-md));
  line-height: 1.5;
  color: var(--key-soft);
  font-weight: 400;
}

a { color: var(--key); text-decoration-color: var(--rule-bright); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--amber); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--amber); color: #FFFFFF;
  padding: 0.7rem 1.1rem; font-weight: 700; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.bay { padding-block: var(--bay); }
.bay--tight { padding-block: 4rem; }
.bay--lift { background: var(--panel); }

.rule-top { border-top: 1px solid var(--rule); }

.stack > * + * { margin-top: 1.15rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--shadow) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex; align-items: center; gap: 2rem;
  height: 84px;
}
.nav__mark {
  display: flex; align-items: center;
  text-decoration: none;
  margin-right: auto;
  flex: 0 0 auto;
}
.nav__mark .mark {
  display: block;
  width: auto;
  max-width: 100%;
}
.nav__mark--foot { margin: 0 0 1.1rem; display: inline-flex; }
.nav__mark--foot .mark { height: 48px !important; }

@media (max-width: 480px) {
  .nav__mark .mark { height: auto !important; width: min(322px, 58vw) !important; }
}
.nav__links { display: flex; gap: 1.75rem; align-items: center; }
.nav__links a {
  color: var(--dim); text-decoration: none;
  font-size: var(--t-sm); font-weight: 500;
  transition: color 0.15s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--key); }
/* .nav__links a out-specifies .btn — restate button colours here. */
.nav__links a.btn--key { color: #FFFFFF; }
.nav__links a.btn--key:hover { color: #FFFFFF; }
.nav__links a.btn--ghost { color: var(--key); }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--rule-bright);
  color: var(--key); border-radius: 3px; padding: 0.45rem 0.7rem;
  font: inherit; font-size: var(--t-sm); cursor: pointer;
}

@media (max-width: 1120px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute; inset-inline: 0; top: 84px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__links a { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
  .nav__links .btn { margin-top: 1rem; text-align: center; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font: inherit; font-weight: 700; font-size: var(--t-sm);
  padding: 0.82rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--key {
  background: var(--amber); color: #FFFFFF; border-color: var(--amber);
}
.btn--key:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn--ghost {
  background: transparent; color: var(--key); border-color: var(--rule-bright);
}
.btn--ghost:hover { border-color: var(--key-soft); background: rgba(255,255,255,0.03); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* --------------------------------------------------------------------------
   Hero — the one bold moment.
   Wireframe strokes draw in, then the shaded surfaces light up.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) var(--bay);
  overflow: hidden;
}
/* Key light falls from upper right, matching the render's own lighting */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 78% 18%, var(--amber-wash), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
}
.hero h1 { margin-bottom: 0.42em; }
.hero .lede { max-width: 46ch; margin-bottom: 2.1rem; }

.hero__art {
  position: relative;
  width: 100%;
}
.hero__art svg, .hero__art img { width: 100%; height: auto; display: block; }

/* Wireframe pass */
.wf {
  fill: none;
  stroke: var(--rim);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  opacity: 0.85;
  animation: draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
             wf-out 0.9s ease-out 1.75s forwards;
}
/* Shaded pass */
.sf {
  opacity: 0;
  animation: shade 1.1s ease-out 1.55s forwards;
}

@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes wf-out { to { opacity: 0.16; } }
@keyframes shade  { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .wf { stroke-dashoffset: 0; opacity: 0.16; animation: none; }
  .sf { opacity: 1; animation: none; }
}

/* --------------------------------------------------------------------------
   Spec table — capabilities as data, not as cards
   -------------------------------------------------------------------------- */

.spec { width: 100%; border-collapse: collapse; text-align: left; }
.spec caption { text-align: left; color: var(--dim); font-size: var(--t-sm); padding-bottom: 1rem; }
.spec th, .spec td {
  padding: 1.35rem 1.25rem 1.35rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spec thead th {
  color: var(--dimmer);
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.04em;
  padding-bottom: 0.7rem;
  border-bottom-color: var(--rule-bright);
}
.spec tbody th {
  color: var(--key);
  font-size: var(--t-md);
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: -0.012em;
  width: 30%;
}
.spec td { color: var(--dim); font-size: var(--t-sm); }
.spec td:first-of-type { color: var(--key-soft); font-size: var(--t-base); max-width: 46ch; }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: none; }

@media (max-width: 780px) {
  .spec, .spec tbody, .spec tr, .spec td, .spec th { display: block; }
  .spec thead { display: none; }
  .spec tbody tr { border-bottom: 1px solid var(--rule); padding-block: 1.5rem; }
  .spec tbody tr:last-child { border-bottom: none; }
  .spec th, .spec td { border: none; padding: 0 0 0.5rem; width: auto; max-width: none; }
  .spec td[data-label]::before {
    content: attr(data-label) " · ";
    color: var(--dimmer);
  }
}

/* --------------------------------------------------------------------------
   Pricing — one continuous table. The recommended column is lit, not badged.
   -------------------------------------------------------------------------- */

.tiers { overflow-x: auto; }
.tiers table { width: 100%; border-collapse: collapse; min-width: 700px; }
.tiers th, .tiers td { padding: 1rem 1.15rem; border-bottom: 1px solid var(--rule); text-align: left; }
.tiers thead th { border-bottom: 1px solid var(--rule-bright); vertical-align: bottom; }

.tiers .col-feature { width: 34%; color: var(--key-soft); font-weight: 400; font-size: var(--t-sm); }
.tiers .col-feature small { display: block; color: var(--dimmer); font-size: var(--t-xs); line-height: 1.45; }

.tier-name {
  display: block; color: var(--key);
  font-size: var(--t-md); font-weight: 800; font-stretch: 115%;
  letter-spacing: -0.015em; line-height: 1.1;
}
.tier-price {
  display: block; color: var(--key);
  font-size: var(--t-lg); font-weight: 700; font-stretch: 100%;
  letter-spacing: -0.02em; margin-top: 0.35rem;
}
.tier-note { display: block; color: var(--dim); font-size: var(--t-xs); margin-top: 0.4rem; font-weight: 400; }

/* The key light picks out the recommended tier */
.lit { background: linear-gradient(180deg, var(--amber-wash), rgba(255,174,59,0.02)); }
thead .lit { border-top: 2px solid var(--amber); }
thead .lit .tier-name { color: var(--amber); }

.yes { color: var(--amber); font-weight: 700; }
.no  { color: var(--dimmer); }
.val { color: var(--key-soft); font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   Work grid
   -------------------------------------------------------------------------- */

.grid-work {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.piece {
  display: block; text-decoration: none;
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: 4px; overflow: hidden;
  transition: border-color 0.18s;
}
.piece:hover { border-color: var(--rule-bright); }
.piece__frame {
  aspect-ratio: 4 / 3;
  background: #0c0d10;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--rule);
}
.piece__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece__slot { color: var(--dimmer); font-size: var(--t-xs); }
.piece__body {
  padding: 1.25rem 1.4rem 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.piece__body h3 {
  font-family: Fraunces, "Times New Roman", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.48rem);
  font-weight: 600;
  font-stretch: 100%;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  color: var(--key);
  transition: color 0.18s ease;
}
.piece:hover .piece__body h3 {
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   Scrub Slideshow — Cursor/drag scrubbing through product angles
   -------------------------------------------------------------------------- */

.scrub-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.scrub-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0c0d10;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.scrub-frame__slides {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0c0d10;
  overflow: hidden;
}

.scrub-frame__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c0d10;
  user-select: none;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  will-change: opacity;
  z-index: 1;
}

.scrub-frame__slide.is-active {
  opacity: 1;
  z-index: 3;
}

.scrub-frame__slide.was-active,
.scrub-frame__slide.is-prev {
  opacity: 0;
  z-index: 2;
}

/* Story dash progress bars */
.scrub-bars-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 12px 18px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.72) 0%, rgba(10, 10, 12, 0) 100%);
  z-index: 5;
  pointer-events: none;
}

.scrub-bars {
  display: flex;
  gap: 5px;
  width: 100%;
}

.scrub-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  transition: background-color 0.25s ease;
}

.scrub-bar__fill {
  width: 0%;
  height: 100%;
  background: var(--key);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.scrub-bar.is-active {
  background: rgba(255, 255, 255, 0.3);
}

.scrub-bar.is-active .scrub-bar__fill {
  width: 100%;
  background: var(--amber);
  box-shadow: 0 0 6px rgba(255, 174, 59, 0.8);
}

.scrub-bar.is-passed .scrub-bar__fill {
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
}

/* Badge label in lower left — high contrast, ultra legible */
.scrub-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  pointer-events: none;
  font-size: var(--t-xs);
  color: #FFFFFF;
  background: rgba(12, 13, 16, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.98;
  transition: opacity 0.2s ease;
}

.scrub-badge__index {
  color: #FFAE3B;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  background: rgba(255, 174, 59, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 174, 59, 0.3);
}

.scrub-badge__caption {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.015em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: opacity 0.18s ease;
}



/* Lightbox Trigger button in top right */
.scrub-zoom {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 6;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: rgba(20, 20, 23, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--key-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, color 0.15s ease, border-color 0.15s ease;
}

.scrub-zoom:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.scrub-frame:hover .scrub-zoom,
.scrub-frame:focus-within .scrub-zoom {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  padding: 1.5rem;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--key);
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  z-index: 10;
}

.lightbox__close:hover {
  background: var(--amber);
  color: #141416;
  border-color: var(--amber);
}

.lightbox__view {
  max-width: 90vw;
  max-height: 72vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: opacity 0.18s ease;
}

.lightbox__meta {
  margin-top: 1rem;
  text-align: center;
}

.lightbox__title {
  color: #fff;
  font-size: var(--t-md);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.lightbox__caption {
  color: var(--dim);
  font-size: var(--t-sm);
  margin: 0;
}

.lightbox__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.lightbox__thumb {
  width: 58px;
  height: 44px;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, border-color 0.15s;
  background: var(--panel);
}

.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__thumb.is-active,
.lightbox__thumb:hover {
  opacity: 1;
  border-color: var(--amber);
}


/* --------------------------------------------------------------------------
   Process — genuinely sequential, so numbering is warranted
   -------------------------------------------------------------------------- */

.phases { counter-reset: phase; display: grid; gap: 0; }
.phase {
  counter-increment: phase;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 11rem;
  gap: 1.5rem;
  padding-block: 2.1rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.phase:last-child { border-bottom: none; }
.phase::before {
  content: counter(phase, decimal-leading-zero);
  color: var(--amber);
  font-size: var(--t-md); font-weight: 700; font-stretch: 100%;
  line-height: 1.2;
}
.phase h3 { margin-bottom: 0.4rem; }
.phase p { margin: 0; color: var(--dim); font-size: var(--t-sm); }
.phase__span { color: var(--dim); font-size: var(--t-sm); text-align: right; }
@media (max-width: 760px) {
  .phase { grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; }
  .phase__span { grid-column: 2; text-align: left; }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { display: block; margin-bottom: 1.35rem; }
.field > span { display: block; color: var(--key-soft); font-size: var(--t-sm); font-weight: 600; margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--shadow-deep);
  border: 1px solid var(--rule-bright);
  border-radius: 3px;
  color: var(--key);
  font: inherit; font-size: var(--t-base);
  padding: 0.78rem 0.9rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--amber); outline: none;
  box-shadow: 0 0 0 3px var(--amber-wash);
}
.field textarea { resize: vertical; min-height: 8rem; }
/* .field > span out-specifies this, so restate weight and colour here. */
.field > span.field-note,
.field-note {
  color: var(--dimmer);
  font-size: var(--t-xs);
  font-weight: 400;
  margin-top: 0.4rem;
  line-height: 1.45;
}

.form-msg { padding: 0.9rem 1.1rem; border-radius: 3px; font-size: var(--t-sm); margin-bottom: 1.25rem; }
.form-msg--err { background: rgba(255,120,120,0.08); border: 1px solid rgba(255,120,120,0.3); color: #FFB0B0; }
.form-msg--ok  { background: var(--amber-wash); border: 1px solid var(--amber-deep); color: var(--amber); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot { background: var(--shadow-deep); border-top: 1px solid var(--rule); padding-block: 3.5rem 2.5rem; }
.foot__cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) { .foot__cols { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.foot h4 { color: var(--dimmer); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.55rem; }
.foot a { color: var(--dim); text-decoration: none; font-size: var(--t-sm); }
.foot a:hover { color: var(--key); }
.foot__legal {
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
  color: var(--dimmer); font-size: var(--t-xs); line-height: 1.6;
}
.foot__legal p { max-width: 78ch; margin-bottom: 0.75rem; }

/* Utilities */
.eyebrow { color: var(--amber); font-size: var(--t-sm); font-weight: 700; margin-bottom: 0.9rem; }
.dim { color: var(--dim); }
.center-measure { max-width: 62ch; }

/* Dark: the accent lightens, so button text must invert to keep contrast. */
:root[data-theme="dark"] .btn--key,
:root[data-theme="dark"] .nav__links a.btn--key,
:root[data-theme="dark"] .nav__links a.btn--key:hover,
:root[data-theme="dark"] .skip { color: #08131A; }

.nav__links .btn { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Virtual tradeshow page: card-style comparison tables that scroll sideways
   on narrow screens; the virtual / 3D column is lit like the pricing tiers
   -------------------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.prose-vt > * { max-width: 64ch; }
.vt-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1.5rem;
  background: var(--shadow); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(10, 30, 50, 0.04), 0 8px 24px rgba(10, 30, 50, 0.05);
}
.vt-scroll:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.vt-table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; text-align: left; }
.vt-table caption { caption-side: top; text-align: left; color: var(--dim); font-size: var(--t-xs); padding: 0.9rem 1.25rem 0; }
.vt-table th, .vt-table td { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.45; }
.vt-table thead th {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--dim); background: var(--panel); border-bottom: 1px solid var(--rule-bright); padding-block: 0.8rem;
}
.vt-table thead th.vt-hi { color: var(--amber); box-shadow: inset 0 3px 0 var(--amber); }
.vt-table tbody th { color: var(--key); font-size: var(--t-sm); font-weight: 700; width: 18%; white-space: nowrap; }
.vt-table td { color: var(--dim); font-size: var(--t-sm); width: 41%; }
.vt-table td.vt-hi { color: var(--key); background: var(--amber-wash); }
.vt-table--3 td:not(.vt-hi) { width: 28%; }
.vt-table--3 td.vt-hi { width: 54%; }
.vt-table tbody tr:last-child th, .vt-table tbody tr:last-child td { border-bottom: none; }
.vt-table tbody tr:hover th, .vt-table tbody tr:hover td:not(.vt-hi) { background: rgba(12, 125, 182, 0.025); }
.vt-note { color: var(--dim); font-size: var(--t-xs); margin-top: 0.9rem; max-width: 72ch; }
.vt-steps { padding-left: 1.3rem; margin: 0 0 1em; }
.vt-steps li { margin-bottom: 0.45em; color: var(--key-soft); }
.vt-pair { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.vt-pair > div > * { max-width: 60ch; }
@media (max-width: 860px) { .vt-pair { grid-template-columns: 1fr; } }
.vt-callout { border-left: 3px solid var(--amber); background: var(--shadow); padding: 1.25rem 1.5rem; border-radius: 0 8px 8px 0; box-shadow: 0 1px 2px rgba(10, 30, 50, 0.05); }
.vt-callout h3 { font-size: var(--t-md); margin: 0 0 0.5rem; }
.vt-callout p { margin: 0; color: var(--key-soft); }

/* --------------------------------------------------------------------------
   Home hero: Studio Showroom Stage & Horizontal Slide Track
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  width: 100%;
  min-height: clamp(450px, 48vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Luminous circular ambient floor light & contact shadow */
.hero-stage::before {
  content: "";
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(12, 125, 182, 0.18) 0%, rgba(79, 179, 232, 0.08) 50%, transparent 72%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.hero-stage::after {
  content: "";
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 76%;
  height: 18%;
  background: radial-gradient(ellipse at center, rgba(10, 20, 30, 0.16) 0%, rgba(10, 20, 30, 0.04) 55%, transparent 75%);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="dark"] .hero-stage::before {
  background: radial-gradient(ellipse at center, rgba(79, 179, 232, 0.28) 0%, rgba(109, 196, 239, 0.10) 50%, transparent 72%);
}
:root[data-theme="dark"] .hero-stage::after {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
}

.hero-show {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: visible;
  z-index: 1;
}

.hero-show__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease-in-out;
  will-change: opacity;
  box-sizing: border-box;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.hero-slide.is-prev {
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.hero__art .hero-slide img,
.hero__art .hero-slide picture {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(10, 30, 50, 0.14));
  transform-origin: center center;
  display: block;
  transition: transform 0.4s ease;
}

.hero-img--spinner {
  transform: scale(1.1);
}

.hero-img--emberblitz {
  transform: scale(1.06);
}

.hero-img--earbuds {
  transform: scale(1.06);
}

@media (max-width: 900px) {
  .hero-stage { min-height: 380px; }
  .hero__art .hero-slide img { max-height: 360px; }
  .hero-img--spinner,
  .hero-img--emberblitz,
  .hero-img--earbuds { transform: scale(1); }
}



.hero-show__nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  padding: 0 4px;
}

.hero-show__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-show__dot {
  position: relative;
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: var(--rule-bright);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.25s ease, width 0.25s ease, box-shadow 0.25s ease;
}

.hero-show__dot:hover {
  background: var(--key-soft);
}

.hero-show__dot.is-active {
  background: var(--amber);
  width: 48px;
  box-shadow: 0 0 10px rgba(12, 125, 182, 0.45);
}

.hero-show__pause {
  font: inherit; font-size: var(--t-xs); color: var(--dim);
  background: var(--shadow); border: 1px solid var(--rule); border-radius: 3px;
  padding: 0.3rem 0.6rem; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.hero-show__pause:hover { color: var(--key); border-color: var(--rule-bright); }
@media (prefers-reduced-motion: reduce) { .hero-show__pause { display: none; } }

/* --------------------------------------------------------------------------
   Two-column rows with image placeholders, and scroll reveal.
   Rows alternate text/image sides; on phones text always comes first.
   Reveal only runs when JS adds .reveal-on and motion is allowed.
   -------------------------------------------------------------------------- */
.vt-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.vt-row__text > * { max-width: 60ch; }
.vt-row__text > :last-child { margin-bottom: 0; }
.vt-row .vt-callout { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .vt-row { grid-template-columns: 1fr; }
  .vt-row--flip .vt-row__media { order: 2; }
}
.vt-ph { margin: 0; }
.vt-ph__box {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: 12px;
  border: 2px dashed var(--rule-bright);
  background:
    linear-gradient(135deg, rgba(12,125,182,0.06), rgba(109,196,239,0.10)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(12,125,182,0.035) 14px 15px);
  color: var(--dim); font-size: var(--t-sm); line-height: 1.5;
}
.vt-ph__box strong { color: var(--key); font-size: var(--t-md); line-height: 1.25; }
.vt-ph__tag { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }

@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal] { opacity: 0; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: opacity, transform; }
  .reveal-on [data-reveal="left"]  { transform: translateX(-48px); }
  .reveal-on [data-reveal="right"] { transform: translateX(48px); transition-delay: 0.12s; }
  .reveal-on [data-reveal="up"]    { transform: translateY(32px); }
  .reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
  @media (max-width: 860px) {
    .reveal-on [data-reveal="left"]  { transform: translateX(-24px); }
    .reveal-on [data-reveal="right"] { transform: translateX(24px); }
  }
}
.reveal-on main { overflow-x: clip; }
.vt-intro { text-align: center; }
.vt-intro .lede, .vt-intro p { margin-inline: auto; }
.vt-fig { margin: 0; }
.vt-fig img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 1px 2px rgba(10,30,50,0.06), 0 12px 32px rgba(10,30,50,0.10); }

/* Work page: video slides fill the frame like the stills; lightbox video sizing */
video.scrub-frame__slide { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__video { max-height: 72vh; width: auto; max-width: 100%; }
.featured-reel { margin-bottom: 2.5rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); background: #0c0d10; box-shadow: 0 8px 28px rgba(10,30,50,.14); }
.featured-reel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.lightbox__img[hidden] { display: none !important; }
