/* ============================================================
   Extrafy homepage depth — drop-in CSS
   2026-11-23  ·  /workspace/extrafy/design/homepage-depth-2026-11-23/
   Visual only. No layout, section, or copy changes.

   MUST NOT introduce a vertical green scan, sweep, or scan-line
   of any kind. Motion is only slow, large, soft blobs (transform
   + opacity). See spec.md.

   Markup hooks to add (see spec.md for where):
     1. Inside .hero, before the content wrapper:
        <div class="hero-depth" aria-hidden="true">
          <span class="hero-depth__blob hero-depth__blob--a"></span>
          <span class="hero-depth__blob hero-depth__blob--b"></span>
          <span class="hero-depth__blob hero-depth__blob--c"></span>
        </div>
     2. Once, as a sibling of main (or last child of body):
        <div class="page-grain" aria-hidden="true"></div>
     3. Band classes on existing sections (no markup rewrite).
     4. Optional interviewer: wrap existing bubbles in
        .iv-chat > .iv-chat__track and duplicate the bubble list
        once so the loop is seamless.
   ============================================================ */

:root {
  --depth-hero-base: #020302;
  --depth-base: #0B0C0B;
  --depth-raised: #101310;
  --depth-deep: #080908;
  --depth-line: #1c211c;
  --depth-green: #61D835;
  --depth-green-rgb: 97, 216, 53;
  --depth-ink: #F5F5F5;
  --depth-mut: #A3AAA3;
}

/* ---------- Headlines: wrap on phrase boundaries ---------- */
section h2,
section h3,
.h-balance {
  text-wrap: balance;
}

/* ============================================================
   A. HERO — darker, slow-moving background (not a sweep)
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--depth-hero-base);
  overflow: hidden;
}

/* Keep the existing mesh/image. Darken it. Do not replace it. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: none;
}

.hero-bg::after,
.hero::after {
  content: none;
}

.hero-depth {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-depth__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  will-change: transform, opacity;
  /* normal blend — screen/lighten would fight "darker than before" */
  pointer-events: none;
}

/* Large, very dark green — drifts diagonally, 48s */
.hero-depth__blob--a {
  width: 62vw;
  height: 62vw;
  top: -18%;
  left: -16%;
  background: rgba(16, 42, 14, 0.28);
  opacity: 0.85;
  animation: depth-drift-a 48s ease-in-out infinite;
}

/* Mid, cooler dark — opposite path, 56s */
.hero-depth__blob--b {
  width: 54vw;
  height: 54vw;
  right: -14%;
  bottom: -16%;
  background: rgba(8, 22, 12, 0.32);
  opacity: 0.8;
  animation: depth-drift-b 56s ease-in-out infinite;
}

/* Faint green breath in a far corner only. Opacity stays tiny
   so this never reads as a wash, band, or scan. 40s. */
.hero-depth__blob--c {
  width: 46vw;
  height: 46vw;
  right: 8%;
  top: 28%;
  background: rgba(var(--depth-green-rgb), 0.07);
  opacity: 0.75;
  animation: depth-drift-c 40s ease-in-out infinite;
}

/* Text-area scrim: center stays dark enough for AA+ on the
   white and #61D835 headlines. Do not brighten this. */
.hero-depth::after {
  content: none;
}

/* Content stays above the background layers */
.hero-in,
.hero .hero-content,
.hero > .w {
  position: relative;
  z-index: 2;
}

/*
  Drift paths are elliptical (x and y together), never a
  top-to-bottom translation of a band or line.
  Transform + opacity only.
*/
@keyframes depth-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50%      { transform: translate3d(14%, 10%, 0) scale(1.08); opacity: 0.95; }
}
@keyframes depth-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
  50%      { transform: translate3d(-12%, -9%, 0) scale(1.06); opacity: 0.9; }
}
@keyframes depth-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  50%      { transform: translate3d(-8%, 8%, 0) scale(1.1); opacity: 0.85; }
}

/* ============================================================
   B. PAGE DEPTH — grain, bands, soft washes
   ============================================================ */

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 40; /* below sticky nav (site nav is z-index 50) */
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%22160%22%3E%3Cfilter%20id%3D%22n%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.8%22%20numOctaves%3D%224%22%20stitchTiles%3D%22stitch%22%20seed%3D%227%22/%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22/%3E%3C/filter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23n%29%22/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* Alternating section backgrounds. Add one class per section.
   Do not change padding, max-width, or typography. */
.band-base {
  background-color: var(--depth-base);
}
.band-raised {
  background-color: var(--depth-raised);
  background-image: radial-gradient(
    80% 50% at 50% 0%,
    rgba(var(--depth-green-rgb), 0.045),
    transparent 62%
  );
}
.band-deep {
  background-color: var(--depth-deep);
}
.band-glow {
  background-color: var(--depth-base);
  background-image: radial-gradient(
    55% 60% at 50% 100%,
    rgba(var(--depth-green-rgb), 0.10),
    transparent 64%
  );
}

/* Optional side wash for the interviewer column (chat side). */
.band-side-wash {
  background-color: var(--depth-base);
  background-image: radial-gradient(
    50% 60% at 82% 50%,
    rgba(var(--depth-green-rgb), 0.06),
    transparent 70%
  );
}

/* Suggested mapping — apply to the existing section elements:
     Hero                 already handled above
     Block A (problem)    .band-raised
     Block B (3 steps)    .band-deep
     AI interviewer       .band-side-wash
     What our AI checks   .band-raised
     Pricing / free teaser .band-deep
     Final CTA            .band-glow
     Newsletter           .band-base
     Footer               .band-deep
*/

/* ============================================================
   C. OPTIONAL — interviewer chat auto-scroll
   Duplicate the existing bubble list inside .iv-chat__track
   so a -50% translate loops seamlessly. Do not change the
   column grid or the 64px gap. Stretch the chat panel to the
   copy column height so the empty space is filled.
   ============================================================ */

.iv-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 420px;
  overflow: hidden;
}

.iv-chat__viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.iv-live{margin:18px auto 0;max-width:640px;text-align:left}
.iv-live[hidden]{display:none!important}
.iv-live .iv-chat{background:#101410;border:1px solid rgba(255,255,255,.1);border-radius:18px;overflow:hidden}
.iv-live .ch6-h{gap:12px}
.iv-live .ch6-h span:first-child{letter-spacing:.04em;text-transform:none;font:600 13px/1.3 Inter,sans-serif;color:#e8ece8}
.iv-skip{flex:none;background:transparent;border:1px solid #3a413a;color:#e8ece8;border-radius:999px;padding:7px 12px;font:600 12px/1 Inter,sans-serif;cursor:pointer}
.iv-live .iv-chat__viewport{max-height:none;overflow:visible}
.iv-live .ch6-b{animation:none;transform:none}
.iv-live-row{display:flex;gap:8px;padding:12px;border-top:1px solid #1e221e}
.iv-live-row input{flex:1;min-width:0;background:#0d0f0d;border:1px solid #2e352e;border-radius:999px;color:#eef1ee;padding:12px 16px;font:500 15px/1.3 Inter,sans-serif}
.iv-live-note{margin:10px 2px 0;font:500 12.5px/1.45 Inter,sans-serif;color:#9aa19a}
.iv-live-note a{color:#cfd5cf}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

.iv-chat__track {
  display: flex;
  flex-direction: column;
  gap: inherit; /* keep existing bubble spacing if set on parent */
  animation: iv-chat-scroll 32s linear infinite;
  will-change: transform;
}

/* If the existing .ch6-b already has gap/padding, put .iv-chat__track
   inside it, or give .iv-chat__track the same gap: */
.iv-chat__track,
.ch6-b.iv-chat__track {
  gap: 10px;
}

.iv-chat:hover .iv-chat__track,
.iv-chat:focus-within .iv-chat__track {
  animation-play-state: paused;
}

@keyframes iv-chat-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}

/* ============================================================
   D. REDUCED MOTION — freeze everything to the darker static
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-mesh { display: none !important; }
  .hero-bg { background: #020302 url(media/carbon-poster.jpg) center top / cover; }
  .hero-depth__blob,
  .iv-chat__track {
    animation: none !important;
  }
  .hero-depth__blob--a { transform: translate3d(6%, 4%, 0) scale(1.03); }
  .hero-depth__blob--b { transform: translate3d(-5%, -4%, 0) scale(1.02); }
  .hero-depth__blob--c { transform: none; opacity: 0.6; }
  .iv-chat__track { transform: none; }
  .iv-chat__viewport {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: auto;
  }
}

/* Homepage pass: keep the grain under the sticky nav, space the trust line,
   stretch the interviewer chat, and honor the page's existing static flag. */
.nav{z-index:50}
.hdp{margin-top:28px}
.step-free{text-align:center;margin:16px 0 8px;color:#c9cfc9;font-size:15px}
.ivc6-l .iv-cta{margin:18px 0 12px;text-align:left}
.ivc6-l .iv-cta .btn{display:inline-flex}
.ivc6 h2{max-width:none;text-wrap:wrap}
.ivc6 h2 .l1{white-space:nowrap}
.lab2{display:inline-flex!important;align-items:flex-start;gap:8px}
.lab2>.spk{margin:1px 0 0;vertical-align:0;flex:none}
.ivc6 .lab2{justify-content:flex-start!important}
.nw{white-space:nowrap}
h1,h2,h3,h4,.lab2,.subg2,.fq summary,.md-tx b,.pn6{text-wrap:wrap}
p,li,blockquote{text-wrap:pretty}
.proll,.tag-later,.st7{white-space:nowrap}
h1 .nw,h2 .nw,h3 .nw,h4 .nw,.one{white-space:nowrap!important}
.ln{display:block;white-space:nowrap}
h2 .ln{font-size:clamp(22px,3.2vw,48px)}
h2.one,h3.one{font-size:clamp(18px,3.2vw,40px)}
.final h2{font-size:clamp(26px,5vw,72px)!important}
.narrow,.mob{display:none}
.hero h1 .accent{color:var(--g)}
.sub-narrow,.ed-narrow{display:none}
@media(max-width:1023px){
  .ed-wide{display:none}
  .ed-narrow{display:inline}
  .ed-narrow .ln{display:block;white-space:nowrap}
}
@media(max-width:800px){
  .desk{display:none}
  .mob{display:block}
}
@media(max-width:600px){
  .wide{display:none}
  .narrow{display:inline}
  .narrow .ln{display:block;white-space:nowrap}
  .sub-wide{display:none}
  .sub-narrow{display:block}
}
.beats{grid-template-columns:repeat(4,minmax(0,1fr))}
.beat{padding:20px 8px 18px}
.beat h3{font-size:22px;letter-spacing:-.02em;line-height:1.15;white-space:nowrap}
@media(max-width:1199px){.beats{grid-template-columns:1fr 1fr}.beat h3{font-size:22px}}
@media(max-width:700px){.beats{grid-template-columns:1fr}.beat h3{font-size:22px;white-space:nowrap}}
.aiv .lab2{white-space:nowrap!important}
.h2two .nw{display:inline;color:inherit}
.lab2{white-space:nowrap!important}
.count-head{margin:40px auto 8px;text-align:center;color:#61D835;font:800 34px/1.1 "Inter Tight",Inter,sans-serif;letter-spacing:-.03em}
h3.ct-sub{font:600 clamp(20px,2.2vw,28px)/1.25 "Inter Tight",Inter,sans-serif;letter-spacing:-.02em;color:#61D835;margin:28px 0 10px;text-wrap:wrap}
.ct-tabs h3.ct-sub:first-child,.ct-accs h3.ct-sub:first-child{margin-top:0}
.ct-tab{font-size:14.5px}
.ct-tab .one{white-space:nowrap}
.ct-tab .si,.ct-tab .spk,.ct-acc summary .si,.ct-acc summary .spk{width:22px;height:22px;flex:none}
.si{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ct-pi{display:grid;place-items:center;padding:0}
.ct-pi .si,.ct-pi .spk{width:24px;height:24px}
.md-t{flex-wrap:nowrap;align-items:flex-start}
.md-tx{min-width:0;flex:1}
.md-tx b{display:inline}
.md-t .si,.md-t .spk{width:18px;height:18px;flex:none;margin-top:2px}
.p6t tbody th .si,.p6t tbody th .spk{width:16px;height:16px;margin-right:8px;vertical-align:-3px}
.ct-tab{height:auto;white-space:normal;text-align:left}
.see-all{margin:14px 0 0;font-size:14px}
.see-all a{color:#61D835}
.ae-line{text-align:center;margin:22px auto 0;max-width:720px;color:#c3c9c3;font-size:16px}
.ae-line a{color:#61D835}
.tag-later,.proll{font:800 10px/1.2 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#c5b48a;border:1px solid rgba(197,180,138,.45);border-radius:999px;padding:3px 7px;margin-left:8px;vertical-align:middle}
.md-off,.dr-off{opacity:.72}
.cgroup{margin:48px 0 18px;padding-top:28px;border-top:1px solid rgba(255,255,255,.12)}
.cgroup h2{font-size:36px;margin:0 0 8px}
.cgroup p{color:#c3c9c3;font-size:18px;max-width:720px}
.ir7{flex-wrap:wrap}
.ir7-g{flex:1 0 100%;font:800 11px/1 Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#8d948d;margin:16px 0 4px}
@media(max-width:900px){
  .faq6 .fg{grid-template-columns:1fr}
  .fq summary{min-width:0}
  .ct{display:none}
  .ct-accs{display:flex;flex-direction:column;gap:10px;margin-top:28px}
  .ct-acc{background:#111311;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:0 16px}
  .ct-acc summary{list-style:none;display:flex;align-items:center;gap:12px;padding:16px 0;font:700 16px/1.2 Inter,sans-serif;cursor:pointer}
  .ct-acc summary::-webkit-details-marker{display:none}
  .ct{grid-template-columns:minmax(0,1fr);min-width:0}
  .ct-tabs{flex-direction:row;overflow-x:auto;gap:8px;padding-bottom:8px;min-width:0;max-width:100%}
  .ct-tab{flex:none}
  .ct-grp{flex:none;align-self:center}
}
.count-go{margin:0 auto 28px;text-align:center;color:#c3c9c3;font-size:16px}
.how-cta{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:48px;text-align:center}
.how-cta .step-free{margin:0}
.ed-soon{margin-top:36px;text-align:center}
.ed-punch{margin:0 0 18px;font:800 clamp(20px,4.2vw,40px)/1.08 "Inter Tight",Inter,sans-serif;letter-spacing:-.03em;color:#f4f6f4}
@media (max-width:600px){.ed-punch{font-size:20px}.ivc6 h2{font-size:30px}}
.ed-kicker{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;font:800 13px/1 Inter,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#61D835}
.ed-kicker .spk{width:14px;height:14px}
.ed-chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.ed-chips span{border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:12px 18px;font:700 16px/1 Inter,sans-serif;color:#e7ebe7}
.ed-later{margin:16px 0 0;color:#c3c9c3;font-size:16px}
.ivc6-pts a{color:#61D835;text-decoration:underline}
.tq7-lh .tq7-ph img{object-position:50% 22%}
.tq7 blockquote{min-height:6.1em}
.tq7 figcaption{margin-top:6px}
@media (max-width:1100px){
  .ftop{flex-direction:column;align-items:flex-start;gap:16px}
  .ftop nav{flex-wrap:wrap;gap:10px 16px}
  .hf{width:min(820px,100%)}
  .beats{grid-template-columns:repeat(2,1fr)}
  .hag{grid-template-columns:1fr}
  .tq7-g{grid-template-columns:1fr}
  .ivc6-in{grid-template-columns:1fr!important}
}
@media (max-width:1100px){
  .nl-in{flex-direction:column;align-items:flex-start}
  .nl-f{width:min(470px,100%)}
}
@media (max-width:600px){
  .beats{grid-template-columns:1fr}
  .lab2{white-space:normal!important}
  .count-head{font-size:24px;margin-top:28px}
}
.ivc6-in{align-items:stretch}
.ha h3{text-wrap:balance}
/* Production hero: one grayscale mesh at .32, bottom vignette, playback .75.
   The lower gradient goes to near-black behind the engine row. */
.hero{isolation:isolate;background:#070707}
.hero-bg{position:absolute;inset:auto;left:0;top:-90px;width:100%;height:calc(100% + 140px);background:#070707;overflow:hidden;z-index:0;pointer-events:none}
.hero-mesh{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;filter:grayscale(1);transition:opacity 1.2s;-webkit-mask:linear-gradient(#000 52%,transparent 92%);mask:linear-gradient(#000 52%,transparent 92%)}
.hero-mesh.on{opacity:.32}
.hero:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;height:auto;background:linear-gradient(180deg,rgba(7,7,7,.55) 0%,rgba(7,7,7,.22) 14%,transparent 28%,transparent 58%,rgba(7,7,7,.72) 74%,#070707 86%,#070707 100%)}
.hero::after,.hero-bg::after{content:none!important}
.hero-depth{display:none}
.hero-in{position:relative;z-index:2}
.hero .kx{display:inline-flex;align-items:flex-start;justify-content:center;gap:10px;margin:0;max-width:100%;padding:0;border:0;border-radius:0;background:none;font:500 13px/1.4 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.2em;text-transform:uppercase;color:#9a9a9a}
.hero .kx i{width:7px;height:7px;margin-top:.35em;border-radius:50%;background:#9a9a9a;box-shadow:none;flex:none}
.hero .kx span{min-width:0}
.hero .kx b{color:#fff;font-weight:500}
.hero h1{font-size:clamp(40px,5.8vw,84px);letter-spacing:-.05em;line-height:1.02;margin:22px 0 0;text-wrap:balance}
.hero h1 .l1{white-space:nowrap}
.hero .subg2{font:700 clamp(22px,2.4vw,34px)/1.25 "Inter Tight",Inter,sans-serif;letter-spacing:-.02em;color:var(--g);margin:22px auto 0;max-width:760px}
.hero .sub{margin-top:16px}
@media (max-width:900px){
  .hero h1 .l1{white-space:normal}
}
@media (max-width:600px){
  .hero .kx{font-size:11px;letter-spacing:.14em;gap:8px}
  .hero h1{font-size:clamp(26px,8vw,32px);margin-top:16px}
  section h2,.faq6 h2,h2 .ln{font-size:20px}
  .lab2{font-size:11px;letter-spacing:.08em;white-space:nowrap!important}
  .hero .subg2{font-size:22px}
}
html.static .hero-mesh{display:none!important}
html.static .hero-depth__blob,
html.static .iv-chat__track{animation:none!important}
html.static .iv-chat__viewport{-webkit-mask-image:none;mask-image:none;overflow:auto}

/* Header collapses at 900px now that it has four links (Dec 1, 2026) */
@media (max-width:900px){
  .links,.nav .btn.sm{display:none}
  .burger{display:flex;flex-direction:column;gap:5px;margin-left:auto;background:none;border:1px solid var(--line2);border-radius:12px;padding:12px 11px}
  .burger i{width:18px;height:2px;background:var(--ink);display:block;border-radius:2px}
  .nav-in.open .links{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:#0c0e0c;padding:18px 22px;gap:14px;z-index:60;border-bottom:1px solid rgba(255,255,255,.12)}
}
