/* ==========================================================================
   PurelyEpic — Digital Production Studio
   Design system: warm studio-black, VU amber, signal red.
   Type: Archivo (variable width) display · Instrument Sans body · IBM Plex Mono utility
   ========================================================================== */

:root {
  --ink:        #0F0C08;   /* deep warm black — the studio room     */
  --ink-2:      #16110C;   /* slightly lifted                        */
  --panel:      #1C1610;   /* raised hardware surfaces               */
  --line:       #2E251B;   /* seams between panels                   */
  --amber:      #FFB224;   /* VU meter amber — primary               */
  --amber-soft: #FFCA5F;
  --red:        #FF4D2E;   /* signal peak — hot accent               */
  --paper:      #F7F1E5;   /* warm white type                        */
  --stone:      #A79C8E;   /* secondary type                         */
  --stone-dim:  #6E6457;   /* tertiary / disabled                    */
  --bronze:     #7A5200;   /* amber's readable cousin on paper       */
  --cert-ink:   #3F3830;   /* body text on certificate paper         */

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body:    "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "Consolas", monospace;

  --wide: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3, p, dl, dd, ol { margin: 0; }

a { color: inherit; }

::selection { background: var(--amber); color: var(--ink); }

/* scrollbar (WebKit) — quiet hardware */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--ink); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .8rem;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- shared atoms ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "● ";
  color: var(--red);
  animation: blink 2.4s steps(1) infinite;
}

@keyframes blink { 50% { opacity: .25; } }

.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8.5rem) var(--pad) 0;
}

.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.section__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: .9rem 0 1.1rem;
}

.section__lede { color: var(--stone); max-width: 56ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s, color .25s, border-color .25s, box-shadow .25s;
}

.btn--solid {
  background: var(--amber);
  color: var(--ink);
}
.btn--solid:hover {
  background: var(--amber-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 178, 36, .25);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

/* ---------- reveal system ---------- */

.reveal-line { display: block; overflow: hidden; }
.reveal-inner { display: block; }

.js .reveal-inner {
  transform: translateY(115%);
  opacity: 0;
}

.js .is-loaded .reveal-inner {
  animation: rise .9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

.hero .eyebrow .reveal-inner       { --d: .10s; }
.hero .hero__purely .reveal-inner  { --d: .22s; }
.hero .hero__epic .reveal-inner    { --d: .34s; }
.hero .hero__sub .reveal-inner     { --d: .50s; }
.hero .hero__cta .reveal-inner     { --d: .62s; }

@keyframes rise {
  to { transform: translateY(0); opacity: 1; }
}

.js [data-io] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--iod, 0s);
}
.js [data-io].io-in {
  opacity: 1;
  transform: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 12, 8, .82);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  max-width: var(--wide);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}

.brand__mark { width: 34px; height: 34px; }

.brand:hover .brand__mark .bar { animation: meter-pop .5s var(--ease-out); }
.brand:hover .brand__mark .b1 { animation-delay: 0s; }
.brand:hover .brand__mark .b2 { animation-delay: .05s; }
.brand:hover .brand__mark .b3 { animation-delay: .10s; }
.brand:hover .brand__mark .b4 { animation-delay: .15s; }
.brand:hover .brand__mark .b5 { animation-delay: .20s; }

@keyframes meter-pop {
  40% { transform: scaleY(1.35); transform-origin: center; transform-box: fill-box; }
}

.brand__word {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 116;
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: .01em;
}
.brand__word b { color: var(--amber); font-weight: 900; }

.nav__links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--stone);
  transition: color .2s;
}
.nav__links a:hover { color: var(--amber); }

.nav__cta { padding: .7rem 1.2rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(15, 12, 8, .97);
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 2rem var(--pad);
}

.menu nav { display: grid; gap: .25rem; }

.menu a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem .25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: uppercase;
}
.menu a:hover { color: var(--amber); }

.menu__idx {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--amber);
  min-width: 5.5rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero__title {
  text-transform: uppercase;
  line-height: .92;
  margin: 1.4rem 0 1.8rem;
}

.hero__purely {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  letter-spacing: .34em;
  color: var(--amber);
}

.hero__epic {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  font-size: clamp(4.6rem, 17.5vw, 13.5rem);
  letter-spacing: .015em;
  color: var(--paper);
  text-shadow: 0 0 80px rgba(255, 178, 36, .18);
}

.hero__sub {
  max-width: 46ch;
  color: var(--stone);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.hero__cta { margin-top: 2.2rem; }
.hero__cta .reveal-inner { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem clamp(1rem, 4vw, 3rem);
  justify-content: space-between;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--stone-dim);
}

/* ---------- console / services ---------- */

.console__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.channel {
  position: relative;
  background: var(--ink-2);
  padding: 1.7rem 1.6rem 1.5rem;
  transition: background .3s, transform .3s var(--ease-out);
}

.channel:hover,
.channel:focus-within {
  background: var(--panel);
}

.channel::after {           /* amber seam that lights up */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.channel:hover::after,
.channel:focus-within::after { transform: scaleX(1); }

.channel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.channel__id {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--amber);
}

/* segmented LED meter */
.channel__meter {
  --level: var(--idle, .3);
  position: relative;
  width: 96px;
  height: 12px;
  background:
    repeating-linear-gradient(90deg,
      var(--line) 0 5px,
      transparent 5px 8px);
  border-radius: 2px;
  overflow: hidden;
}

.channel__meter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      var(--amber) 0 5px,
      transparent 5px 8px);
  clip-path: inset(0 calc((1 - var(--level)) * 100%) 0 0);
  transition: clip-path .5s var(--ease-out);
}

.channel__meter::after {    /* hot tip that goes red at high level */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      var(--red) 0 5px,
      transparent 5px 8px);
  clip-path: inset(0 0 0 78%);
  opacity: 0;
  transition: opacity .3s;
}

.js .channel__meter::before {
  animation: idle-bounce var(--dur, 3s) ease-in-out infinite alternate;
}

@keyframes idle-bounce {
  from { clip-path: inset(0 calc((1 - var(--level)) * 100%) 0 0); }
  to   { clip-path: inset(0 calc((1 - var(--level) * 1.45) * 100%) 0 0); }
}

.channel:hover .channel__meter::before,
.channel:focus-within .channel__meter::before {
  animation: none;
  clip-path: inset(0 4% 0 0);
}
.channel:hover .channel__meter::after,
.channel:focus-within .channel__meter::after { opacity: 1; }

.channel__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 116;
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: .6rem;
}

.channel__copy {
  color: var(--stone);
  font-size: .96rem;
  margin-bottom: 1.2rem;
}

.channel__tags {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  color: var(--stone-dim);
}

/* ---------- systems bench / ISO ---------- */

.hero__strip-hot { color: var(--amber); opacity: .75; }

.bench__certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.cert {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 2.1rem 2.1rem 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}

.cert:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px var(--amber);
}

.cert__seal {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 2px 6px rgba(122, 82, 0, .35));
  transition: transform .35s var(--ease-out);
}

.cert:hover .cert__seal { transform: rotate(-8deg) scale(1.06); }

.cert__label {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: .4rem;
}

.cert__num {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 122;
  font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: .35rem;
}

.cert__scope {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1rem;
  max-width: 30ch;
}

.cert__copy {
  color: var(--cert-ink);
  font-size: .98rem;
  margin-bottom: 1.4rem;
  max-width: 46ch;
}

.cert__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #C9BFA9;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--bronze);
}

.ims {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1.2rem;
  margin-top: 1.6rem;
  padding: 1.1rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.ims__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--amber);
  white-space: nowrap;
}

.ims__copy { color: var(--stone); font-size: .95rem; }

.protocol {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}

.protocol__step {
  border-left: 2px solid var(--line);
  padding-left: 1.1rem;
  transition: border-color .3s;
}

.protocol__step:hover { border-left-color: var(--amber); }

.protocol__code {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--stone-dim);
  margin-bottom: .45rem;
}
.protocol__code b { color: var(--red); font-weight: 600; }

.protocol__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 116;
  font-weight: 700;
  font-size: 1.12rem;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.protocol__copy { color: var(--stone); font-size: .92rem; }

.bench__more {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.bench__meta {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .22em;
  color: var(--stone-dim);
}

/* ---------- growth & turnaround ---------- */

.growth__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.boost {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.9rem 1.9rem 1.6rem;
  overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}

.boost::before {              /* gain fader running up the left edge */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(to top, var(--amber) 0%, var(--amber) var(--gain, 55%), var(--line) var(--gain, 55%));
  transition: --gain .4s;
}

.boost:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .45);
}

.boost__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--amber);
  border: 1px dashed var(--amber);
  border-radius: 4px;
  padding: .3rem .7rem;
  margin-bottom: 1.1rem;
}

.boost__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.boost__copy {
  color: var(--stone);
  font-size: .97rem;
  margin-bottom: 1.2rem;
  max-width: 50ch;
}

.boost__tags {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  color: var(--stone-dim);
}

.boost--red::before {
  background: linear-gradient(to top, var(--red) 0%, var(--red) 85%, var(--line) 85%);
}

.boost--red:hover { border-color: var(--red); }

.boost--red .boost__label {
  color: var(--red);
  border-color: var(--red);
  animation: blink 2.4s steps(1) infinite;
}

/* ---------- why / spec plate ---------- */

.why__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.why__narrative p:not(.eyebrow) {
  color: var(--stone);
  margin-bottom: 1.1rem;
  max-width: 56ch;
}

.why__kicker {
  color: var(--paper) !important;
  font-weight: 600;
}

.plate {
  position: relative;
  background:
    linear-gradient(160deg, #241D14, #1A140D 60%, #211A11);
  border: 1px solid #3A2F20;
  border-radius: 10px;
  padding: 2.4rem 2.2rem 2rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 210, .07),
    0 30px 60px rgba(0, 0, 0, .45);
}

.plate__screw {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4A3E2C, #211A11 70%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.8), 0 1px 0 rgba(255,241,210,.06);
}
.plate__screw::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; top: 6px;
  height: 1.5px;
  background: #0E0A06;
  transform: rotate(38deg);
}
.plate__screw--tl { top: 12px; left: 12px; }
.plate__screw--tr { top: 12px; right: 12px; transform: rotate(70deg); }
.plate__screw--bl { bottom: 12px; left: 12px; transform: rotate(-50deg); }
.plate__screw--br { bottom: 12px; right: 12px; transform: rotate(15deg); }

.plate__title {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--amber);
  margin-bottom: 1.6rem;
}

.plate__rows { display: grid; gap: 0; }

.plate__rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .72rem 0;
  border-bottom: 1px dashed #3A2F20;
}
.plate__rows > div:last-child { border-bottom: none; }

.plate__rows dt {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--stone-dim);
}

.plate__rows dd {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--paper);
  text-align: right;
}

.plate__foot {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid #3A2F20;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .24em;
  color: var(--stone-dim);
  text-align: center;
}

/* ---------- session / process ---------- */

.session__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  counter-reset: takes;
  position: relative;
}

/* the tape line */
.session__steps::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.take { position: relative; padding-top: 2rem; }

.take::before {              /* playhead dot on the tape */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--amber);
  transition: background .3s;
}
.take:hover::before { background: var(--amber); }

.take__code {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--stone-dim);
  margin-bottom: .5rem;
}
.take__code b { color: var(--red); font-weight: 600; }

.take__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 116;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.take__copy { color: var(--stone); font-size: .95rem; }

/* ---------- contact ---------- */

.contact { padding-bottom: clamp(5rem, 12vh, 8rem); }

.contact__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact__wavelet { width: 240px; margin: 1.4rem 0 1.6rem; }

.contact__note { color: var(--stone); max-width: 40ch; margin-bottom: 1.4rem; }

.contact__meta {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  color: var(--stone-dim);
}

.form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.5rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.field { display: grid; gap: .55rem; }

.field__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--amber);
}

.field__input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .85rem 1rem;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}

.field__input::placeholder { color: var(--stone-dim); }

.field__input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 178, 36, .15);
}

.field__input--area { resize: vertical; min-height: 130px; }

.chips { border: none; margin: 0; padding: 0; }
.chips legend { padding: 0; margin-bottom: .7rem; }
.chips__hint { color: var(--stone-dim); letter-spacing: .1em; }

.chips__row { display: flex; flex-wrap: wrap; gap: .6rem; }

.chip { position: relative; }

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-block;
  padding: .5rem .95rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--stone);
  transition: all .2s;
  user-select: none;
}

.chip:hover span { border-color: var(--stone); color: var(--paper); }

.chip input:checked + span {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 600;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.nope {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1.1rem;
  font-size: .9rem;
  border: none;
}

.form__submit-meter {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.form.is-sending .form__submit { pointer-events: none; opacity: .85; }
.form.is-sending .form__submit-meter {
  animation: transmit 1.4s ease-in-out infinite;
}

@keyframes transmit {
  0% { transform: scaleX(0); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: left; }
  56% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

.form__status {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  min-height: 1.2em;
}
.form__status.ok { color: var(--amber); }
.form__status.err { color: var(--red); }

/* success state swaps the whole form */
.form.is-done > *:not(.form__status) { display: none; }
.form.is-done {
  min-height: 300px;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.form.is-done .form__status {
  font-size: 1rem;
  letter-spacing: .12em;
  line-height: 2;
}

/* ---------- sub-pages ---------- */

.page-hero {
  padding: calc(var(--nav-h) + clamp(3.5rem, 9vh, 6rem)) var(--pad) 0;
  max-width: var(--wide);
  margin: 0 auto;
}

.page-hero__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 122;
  font-weight: 900;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 1rem 0 1.2rem;
  max-width: 16ch;
}

.page-hero__sub { color: var(--stone); max-width: 58ch; margin-bottom: 1.8rem; }

.page-hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.page-hero__rule {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border: none;
  border-top: 1px solid var(--line);
}

.deep {
  display: grid;
  grid-template-columns: .38fr .62fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.2rem, 5vh, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.deep:last-of-type { border-bottom: none; }

.deep__side { position: relative; }

.deep__badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--amber);
  margin-bottom: .6rem;
}

.deep__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 120;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.deep__sub {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone-dim);
  margin-top: .6rem;
}

.deep__body p { color: var(--stone); margin-bottom: 1rem; max-width: 62ch; }
.deep__body p strong { color: var(--paper); font-weight: 600; }

.deep__list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem 1.8rem;
}

.deep__list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--stone);
  font-size: .94rem;
}

.deep__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 12px;
  height: 5px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 3px, transparent 3px 5px);
}

.faq { display: grid; gap: .8rem; }

.faq details {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.faq details[open] { border-color: var(--amber); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--paper);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq details[open] summary::after { content: "–"; }

.faq .faq__a {
  padding: 0 1.4rem 1.2rem;
  color: var(--stone);
  max-width: 68ch;
}

.cta-band {
  margin: clamp(3rem, 8vh, 5rem) auto 0;
  max-width: var(--wide);
  padding: 0 var(--pad);
}

.cta-band__inner {
  background: var(--amber);
  color: var(--ink);
  border-radius: 14px;
  padding: clamp(2rem, 5vw, 3.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 120;
  font-weight: 900;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  text-transform: uppercase;
  line-height: 1;
}

.cta-band__sub {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  margin-top: .5rem;
  color: #5C4300;
}

.cta-band .btn {
  background: var(--ink);
  color: var(--paper);
}
.cta-band .btn:hover { background: #241D14; transform: translateY(-2px); }

/* ---------- footer ---------- */

.footer {
  margin-top: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

.footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem var(--pad) 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer__tag {
  margin-top: .9rem;
  color: var(--stone);
  font-size: .92rem;
}

.footer__nav { display: grid; gap: .55rem; justify-items: start; }

.footer__nav a {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--stone);
}
.footer__nav a:hover { color: var(--amber); }

.footer__meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--stone-dim);
  display: grid;
  gap: .55rem;
}
.footer__meta p { margin: 0; }

.footer__legal {
  border-top: 1px solid var(--line);
  padding: 1.2rem var(--pad);
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--stone-dim);
}
.footer__legal p { margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .console__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; }
  .session__steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .session__steps::before { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .bench__certs { grid-template-columns: 1fr; }
  .protocol { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .growth__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero__sub { font-size: 1rem; }
  .hero__strip { justify-content: flex-start; }

  .console__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .session__steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .protocol { grid-template-columns: 1fr; }
  .cert { padding: 1.7rem 1.5rem 1.3rem; }
  .cert__seal { width: 46px; height: 46px; top: 1.3rem; right: 1.3rem; }
  .deep { grid-template-columns: 1fr; gap: 1.2rem; }
  .deep__list { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal-inner {
    transform: none;
    opacity: 1;
    animation: none !important;
  }

  .js [data-io] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .channel__meter::before { animation: none; }

  .eyebrow::before { animation: none; }

  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
}
