/* ==========================================================================
   ABDUL BUILDS — design system
   One file, shared by every page.

   Brand: the creator system (ink + bone + one lime signal), per
   Abdul Builds/Brand/ABDUL-BUILDS-BRAND-SPEC.md. The orange riso system
   belongs to the post-sale client PDFs and never appears here.

   Direction: cinematic and photo-led. Full-bleed media owns the fold, the
   page changes rhythm as you scroll (band, split, feature, chapter), and
   nothing is a three-card grid.

   Motion values are measured from MotionSites Library/demos (portal), not
   invented: blur-in entrances, cubic-bezier(.16,1,.3,1), 300ms hover,
   700-1000ms entrance, bottom blur masked rather than a flat scrim.
   ========================================================================== */

/* ---------- fonts ----------
   Two families, per the brand spec. Space Grotesk is the variable file, so
   300-700 all come from one 22KB download. Space Mono carries every label,
   eyebrow, button and number: it is the builder/terminal signal. */
@font-face{font-family:'Space Grotesk';src:url('../fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:'Space Mono';src:url('../fonts/SpaceMono-400.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Space Mono';src:url('../fonts/SpaceMono-700.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap}

/* ---------- tokens ---------- */
:root{
  --ink:#0C0C0D; --ink-2:#131317; --ink-3:#1A1A20;
  --bone:#F4F1EA; --bone-2:#E8E3D6;
  --lime:#C9FF3D; --lime-dk:#A9DE10;
  --muted:#8E8E86; --soft:#B9B6AE;
  --line:#26262B; --hair:rgba(244,241,234,.11);

  --disp:'Space Grotesk',system-ui,-apple-system,sans-serif;
  --body:'Space Grotesk',system-ui,-apple-system,sans-serif;
  --mono:'Space Mono',ui-monospace,SFMono-Regular,monospace;

  --pad:clamp(20px,4.2vw,64px);
  --maxw:1280px;
  --narrow:860px;

  /* was 76-152. At 152 the gaps between sections were reading as holes rather
     than as breathing room, which is most of why the page felt empty. */
  --sec:clamp(62px,7.2vw,110px);
  --sec-tight:clamp(48px,5.4vw,78px);

  --ease:cubic-bezier(.16,1,.3,1);
  --t-hover:300ms;
  --t-enter:900ms;

  /* rounding scale */
  --r-sm:10px; --r:16px; --r-lg:22px;
}

/* ---------- reset ---------- */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html,body{max-width:100%;overflow-x:clip}
body{
  background:var(--ink);color:var(--bone);
  font-family:var(--body);font-weight:400;
  font-size:clamp(16px,.28vw + 15px,17.5px);line-height:1.6;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
img,svg,video,canvas{display:block;max-width:100%}
/* `a{color:inherit}` is what stops the browser painting visited links purple.
   Do NOT add `a:visited{color:inherit}` on top: it outranks .btn-primary, so a
   visited button inherits bone and its label disappears on the bone fill. */
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
:focus-visible{outline:2px solid var(--lime);outline-offset:3px;border-radius:2px}
::selection{background:var(--lime);color:var(--ink)}

/* ---------- layout ---------- */
.shell{width:min(100% - var(--pad)*2,var(--maxw));margin-inline:auto}
.shell-narrow{width:min(100% - var(--pad)*2,var(--narrow));margin-inline:auto}
section{padding-block:var(--sec);position:relative}
section.tight{padding-block:var(--sec-tight)}
.above{position:relative;z-index:1}

/* ==========================================================================
   THE STAGE — the full-bleed cinematic fold
   Media owns the viewport. Type sits at the bottom over a masked blur, which
   is what keeps it legible without dropping a flat black scrim over the
   picture and killing it.
   ========================================================================== */
/* padding-block:0 overrides the blanket `section` rule. Without it the stage
   inherits section padding and the fold ends 150px above the viewport edge. */
.stage{position:relative;min-height:100svh;padding-block:0;
  display:flex;flex-direction:column;
  justify-content:flex-end;overflow:hidden;isolation:isolate}
.stage-short{min-height:min(78svh,760px)}
/* On a phone a 78svh closing fold leaves a big empty grid above the content
   (it sits at flex-end), which reads as endless dead scroll. Hug the content
   instead. */
@media (max-width:640px){
  .stage-short{min-height:auto;justify-content:flex-start;
    padding-block:clamp(76px,17vh,120px)}
}

.stage-media{position:absolute;inset:0;z-index:0;overflow:hidden;background:var(--ink)}

/* The field is the stand-in until real footage lands. It is a lightfield, not
   a flat gradient: three coloured sources at different depths over ink, so the
   frame has somewhere dark to put the type and somewhere warm to look at.
   Drop a video into .stage-video and this sits behind it, unseen. */
.stage-field{position:absolute;inset:-10%;
  background:
    /* the key light: a hard warm source off the top right, the brightest
       thing in frame, so the picture has a direction */
    radial-gradient(38% 44% at 88% 8%, rgba(255,214,158,.55), transparent 58%),
    radial-gradient(62% 66% at 82% 14%, rgba(226,132,66,.40), transparent 66%),
    /* cool fill across the middle, which is what makes the warm read warm */
    radial-gradient(70% 62% at 26% 40%, rgba(74,104,190,.34), transparent 70%),
    radial-gradient(46% 52% at 6% 76%, rgba(56,78,150,.26), transparent 72%),
    /* the one lime moment, low and left, away from the wordmark */
    radial-gradient(34% 34% at 22% 96%, rgba(201,255,61,.20), transparent 66%),
    /* floor bounce, keeps the bottom edge from going dead black */
    radial-gradient(120% 40% at 60% 116%, rgba(210,120,64,.22), transparent 62%),
    linear-gradient(172deg,#101018 0%,#191924 40%,#0A0A0E 100%);
  will-change:transform}
.stage-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}

/* ---------- the rig ----------
   A lightfield alone gives the eye nothing to land on, so the fold reads as
   empty no matter how the type is set. The rig puts real artifacts in frame:
   the status readout, a drafted quote, a job list. They sit at photographic
   scale, angled, bleeding off the top right, and the blur band eats their
   lower halves so the headline stays clean. Decorative, so aria-hidden.
   When real footage lands, .stage-video covers all of this. */
.rig{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;
  -webkit-mask-image:radial-gradient(158% 130% at 58% 12%,#000 46%,rgba(0,0,0,.52) 80%,transparent 100%);
          mask-image:radial-gradient(158% 130% at 58% 12%,#000 46%,rgba(0,0,0,.52) 80%,transparent 100%)}
.rig-card{position:absolute;border:1px solid rgba(244,241,234,.13);border-radius:12px;
  background:rgba(16,16,20,.80);overflow:hidden;
  box-shadow:0 40px 90px -20px rgba(0,0,0,.75);
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.rig-bar{display:flex;align-items:center;gap:7px;padding:10px 14px;
  border-bottom:1px solid rgba(244,241,234,.09);
  font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;color:rgba(255,255,255,.42)}
.rig-bar span{width:7px;height:7px;border-radius:50%;background:rgba(244,241,234,.16)}
.rig-body{padding:15px 17px;font-family:var(--mono);font-size:12px;line-height:2.05;
  color:rgba(244,241,234,.70);white-space:nowrap}
.rig-body .p{color:var(--lime)}
.rig-body .c{color:rgba(244,241,234,.30)}

/* All three live in the top right quadrant and nowhere else: clear of the nav
   above them and clear of the headline below them. Nothing sits behind type. */
/* base rotation lives in --rot so the JS transform can compose tilt + parallax
   on top of it instead of overwriting it */
.rig-card{transform:rotate(var(--rot,0deg))}
/* the status readout: furthest back, largest, catching the key light */
.rig-1{top:7%;right:-9%;width:min(46vw,620px);--rot:-4.5deg}
/* the drafted quote, on bone, the one light object in the frame */
.rig-2{top:21%;right:23%;width:min(28vw,364px);--rot:3.5deg;
  background:rgba(244,241,234,.94);border-color:rgba(244,241,234,.25)}
.rig-2 .rig-body{color:#26262a;white-space:normal;font-family:var(--body);
  font-size:13px;line-height:1.6}
.rig-2 .rig-bar{color:#8a8578;border-bottom-color:rgba(12,12,13,.10)}
.rig-2 .rig-bar span{background:rgba(12,12,13,.14)}
/* the job list, nearest, smallest, tucked to the right of the headline */
.rig-3{top:33%;right:-6%;width:min(22vw,292px);--rot:-1.5deg}
.rig-3 .rig-body{line-height:2.3}
/* furthest back and mostly off the left edge. It exists to stop the upper
   left reading as a hole, so it is dim and half out of frame on purpose. */
/* Fully in frame, not bled off the left edge: a card that runs off the left
   shows the ENDS of its lines, which reads as broken text rather than depth. */
.rig-4{top:9%;left:1.5%;width:min(23vw,302px);--rot:2.5deg;opacity:.62}
.rig-4 .rig-body{line-height:2.3}

@media (max-width:1100px){
  .rig-1{width:66vw;right:-18%}
  .rig-2{width:46vw;right:12%;top:24%}
  .rig-3,.rig-4{display:none}
}
/* on a phone the artifacts would sit behind the headline rather than beside
   it, so one stays, high and small, and the rest go */
@media (max-width:720px){
  .rig{-webkit-mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.3) 44%,transparent 60%);
               mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.3) 44%,transparent 60%)}
  .rig-1{width:132vw;right:-34%;top:8%}
  .rig-2{display:none}
}

/* the nav floats over whatever the rig puts up there, so it gets its own
   scrim rather than relying on the picture being dark in that corner */
.stage-cap{position:absolute;left:0;right:0;top:0;height:170px;z-index:4;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(8,8,9,.80) 0%,rgba(8,8,9,.34) 46%,transparent 100%)}

/* grain, so the field reads as photographed rather than rendered */
.stage-grain{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.30;
  mix-blend-mode:overlay;
  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='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")}

/* the blueprint grid, spec texture, only over media */
.stage-grid{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.05;color:var(--bone);
  background-image:linear-gradient(currentColor 1px,transparent 1px),
                   linear-gradient(90deg,currentColor 1px,transparent 1px);
  background-size:44px 44px}

/* vignette pulls the eye to the middle and darkens the type corner */
.stage-vig{position:absolute;inset:0;z-index:3;pointer-events:none;
  background:radial-gradient(128% 104% at 62% 22%,transparent 46%,rgba(6,6,7,.58) 100%)}

/* portal's technique: real backdrop blur masked to fade out upward, so the
   picture stays sharp at the top and the copy at the bottom stays readable */
.stage-blur{position:absolute;left:0;right:0;bottom:0;height:62%;z-index:4;pointer-events:none;
  backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px);
  -webkit-mask-image:linear-gradient(to top,#000 0%,transparent 68%);
          mask-image:linear-gradient(to top,#000 0%,transparent 68%)}
.stage-fade{position:absolute;left:0;right:0;bottom:0;height:70%;z-index:4;pointer-events:none;
  background:linear-gradient(to top,rgba(8,8,9,.94) 0%,rgba(8,8,9,.62) 34%,transparent 78%)}

.stage-in{position:relative;z-index:5;width:100%;
  padding-block:clamp(40px,6vh,86px)}
.stage-foot{position:relative;z-index:5;width:100%;
  padding-bottom:clamp(18px,3vh,30px)}

/* ---------- type ---------- */
/* display never reads bold: weight 500, sub-1 leading, hard negative tracking.
   eyebrows go the other way, wide tracking, low contrast, mono. */
.eyebrow{font-family:var(--mono);font-size:11px;font-weight:400;
  letter-spacing:.26em;text-transform:uppercase;color:var(--muted)}
.eyebrow .on{color:var(--bone)}
.led{display:inline-block;width:6px;height:6px;border-radius:50%;
  background:var(--lime);margin-right:9px;vertical-align:middle}

h1,.h1{font-family:var(--disp);font-weight:500;letter-spacing:-.045em;line-height:.94;
  font-size:clamp(43px,7.4vw,112px);text-wrap:balance}
h2,.h2{font-family:var(--disp);font-weight:500;letter-spacing:-.04em;line-height:.98;
  font-size:clamp(31px,4.6vw,64px);text-wrap:balance}
h3,.h3{font-family:var(--disp);font-weight:500;letter-spacing:-.028em;line-height:1.16;
  font-size:clamp(21px,2vw,27px)}
.h4{font-family:var(--disp);font-weight:500;letter-spacing:-.02em;line-height:1.25;
  font-size:clamp(17px,1.4vw,19.5px)}
.soft{color:var(--muted)}
.lede{color:var(--soft);font-size:clamp(17px,1.25vw,20.5px);line-height:1.55;max-width:50ch}
.lede-wide{max-width:62ch}
.body-sm{color:var(--soft);font-size:15.5px;line-height:1.62}
.on-media{color:#fff;text-shadow:0 1px 40px rgba(0,0,0,.5)}
.on-media .lede{color:rgba(255,255,255,.80)}

.sec-head{max-width:22ch;margin-bottom:clamp(36px,4.6vw,64px)}
.sec-head-wide{max-width:34ch}
.sec-head .eyebrow{display:block;margin-bottom:20px}
.sec-head h2 + p{margin-top:20px;max-width:46ch}

/* ---------- controls ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:52px;padding:0 26px;border-radius:99px;white-space:nowrap;
  font-family:var(--mono);font-size:12px;letter-spacing:.11em;text-transform:uppercase;
  border:1px solid transparent;
  transition:background var(--t-hover) var(--ease),
             border-color var(--t-hover) var(--ease),
             color var(--t-hover) var(--ease)}
.btn-primary{background:var(--bone);color:var(--ink);font-weight:700}
.btn-primary:hover{background:#fff}
.btn-lime{background:var(--lime);color:var(--ink);font-weight:700}
.btn-lime:hover{background:#d8ff6b}
.btn-ghost{border-color:var(--hair);color:var(--bone);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.btn-ghost:hover{border-color:rgba(244,241,234,.36)}
.btn .arw{width:11px;height:11px;flex:none;
  transition:transform var(--t-hover) var(--ease)}
.btn:hover .arw{transform:translate(2px,-2px)}
.cta-row{display:flex;flex-wrap:wrap;gap:11px}

/* ---------- meta row: the small facts above the headline ---------- */
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;
  font-family:var(--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.66)}
.meta i{display:block;width:3px;height:3px;border-radius:50%;background:rgba(255,255,255,.34)}
.meta b{font-weight:400;color:#fff}
/* the row wraps at phone width and a separator dot ends up stranded at the
   end of a line, so below 560px the gap does the separating */
@media (max-width:560px){.meta{gap:6px 16px}.meta i{display:none}}

/* the scroll cue sits under the fold on a phone, where it tells nobody
   anything */
@media (max-width:640px){.stage-foot{display:none}}

/* ---------- scroll cue ---------- */
.cue{display:flex;align-items:center;justify-content:space-between;gap:16px;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(255,255,255,.66)}
.cue .rule{flex:1;height:1px;background:linear-gradient(90deg,rgba(255,255,255,.32),transparent)}

/* ==========================================================================
   BAND — a full-width strip of hard facts. Adds density right under the fold
   without adding another block of prose.
   ========================================================================== */
.band{border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  background:var(--ink-2)}
.band-in{display:grid;grid-template-columns:repeat(4,1fr)}
.band-cell{padding:clamp(22px,3vw,38px) clamp(14px,2vw,28px);
  border-left:1px solid var(--line);min-width:0}
.band-cell:first-child{border-left:0}
.band-cell .k{font-family:var(--disp);font-weight:500;letter-spacing:-.035em;line-height:1;
  font-size:clamp(26px,3.4vw,44px)}
.band-cell .k.lime{color:var(--lime)}
.band-cell .v{margin-top:12px;font-family:var(--mono);font-size:10.5px;
  letter-spacing:.17em;text-transform:uppercase;color:var(--muted);line-height:1.5}
@media (max-width:720px){
  .band-in{grid-template-columns:repeat(2,1fr)}
  .band-cell:nth-child(3){border-left:0}
  .band-cell:nth-child(n+3){border-top:1px solid var(--line)}
}

/* ==========================================================================
   SPLIT — sticky heading on the left, the list scrolls past it on the right.
   Replaces the card grid. On mobile it collapses to plain stacked blocks.
   ========================================================================== */
.split{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  gap:clamp(28px,5vw,90px);align-items:start}
.split-stick{position:sticky;top:clamp(90px,12vh,130px)}
@media (max-width:900px){
  .split{grid-template-columns:1fr;gap:clamp(28px,5vw,44px)}
  .split-stick{position:static}
}

/* big numbered items, hairline separated. no boxes, no hover cards. */
.items{display:grid}
.item{display:grid;grid-template-columns:auto 1fr;gap:clamp(16px,2.4vw,36px);
  padding-block:clamp(26px,3.2vw,42px);border-top:1px solid var(--line);align-items:start}
.item:last-child{border-bottom:1px solid var(--line)}
.item .n{font-family:var(--mono);font-size:11px;letter-spacing:.16em;color:var(--lime);
  padding-top:8px}
.item p{color:var(--soft);margin-top:11px;font-size:15.8px;line-height:1.62;max-width:52ch}

/* ==========================================================================
   FEATURE — alternating media / text rows. This is the photo-led spine of the
   page: every other row flips, so the eye never settles into a template.
   ========================================================================== */
.feature{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(24px,4vw,72px);align-items:center;
  padding-block:clamp(30px,4vw,58px)}
.feature + .feature{border-top:1px solid var(--line)}
.feature.flip .feature-media{order:2}
.feature-text{max-width:46ch}
.feature-text .eyebrow{display:block;margin-bottom:16px}
.feature-text p{color:var(--soft);margin-top:14px;font-size:15.8px;line-height:1.64}
@media (max-width:820px){
  .feature{grid-template-columns:1fr;gap:22px}
  .feature.flip .feature-media{order:0}
}

/* a media plate: picture, screen, or coded field, always in a fixed ratio so
   the row heights stay honest before the real assets land */
.plate{position:relative;overflow:hidden;background:var(--ink-2);
  border:1px solid var(--line);aspect-ratio:4/3}
.plate-tall{aspect-ratio:4/5}
.plate-wide{aspect-ratio:16/10}
.plate img{width:100%;height:100%;object-fit:cover}
.plate .stage-field{inset:-6%}
.plate figcaption{position:absolute;left:0;right:0;bottom:0;z-index:5;
  padding:16px 18px;font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:rgba(255,255,255,.72);
  background:linear-gradient(to top,rgba(6,6,7,.86),transparent)}

/* a bone plate: the one light surface on the page. Spec says light zones are
   for reading, and it stops the whole site being a single dark slab. */
/* The light plate is content-sized rather than ratio-locked. A fixed ratio
   made the note overflow its own box at 390px and run under the caption. */
.plate-bone{background:var(--bone);border-color:var(--bone-2);aspect-ratio:auto}
/* the caption gradient is built for a dark picture. On the light plate it
   smears grey, so the light plate gets its own. */
.plate-bone figcaption{color:#6f6a5e;
  background:linear-gradient(to top,rgba(244,241,234,.96),rgba(244,241,234,0))}
.doc{padding:clamp(26px,3vw,40px);
  padding-bottom:clamp(62px,6vw,78px);   /* clears the caption at every width */
  color:#1b1b1e;display:flex;flex-direction:column;gap:11px}
.doc-h{font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;
  color:#8a8578;margin-bottom:10px}
.doc-l{font-size:clamp(13.5px,1.15vw,15.5px);line-height:1.62;color:#2a2a2d}
.doc-l b{font-weight:700}
.doc-dim{color:#9a9488;font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;
  line-height:1.6;margin-top:6px}

/* voice input, drawn rather than photographed */
.wave{position:absolute;inset:0;z-index:4;display:flex;align-items:center;
  justify-content:center;gap:clamp(5px,.9vw,10px);padding:0 12%}
.wave span{display:block;width:clamp(3px,.5vw,5px);height:var(--h);
  min-height:6px;border-radius:99px;background:var(--lime);opacity:.86}
.wave span:nth-child(even){opacity:.42}

/* ==========================================================================
   CHAPTER — the three sessions. The numeral is display-scale, not a 12px
   mono tag, which is where the page gets its type contrast.
   ========================================================================== */
.chapter{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,.9fr);
  gap:clamp(18px,3vw,56px);align-items:start;
  padding-block:clamp(30px,4vw,52px);border-top:1px solid var(--line)}
.chapter:last-of-type{border-bottom:1px solid var(--line)}
.chapter .cn{font-family:var(--disp);font-weight:300;letter-spacing:-.05em;line-height:.8;
  font-size:clamp(48px,7vw,104px);color:transparent;
  -webkit-text-stroke:1px rgba(244,241,234,.28)}
.chapter:hover .cn{-webkit-text-stroke-color:var(--lime)}
.chapter .cn{transition:-webkit-text-stroke-color var(--t-hover) var(--ease)}
.chapter p{color:var(--soft);font-size:15.8px;line-height:1.64}
.chapter .keep{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--muted);line-height:1.9}
.chapter .keep b{color:var(--bone);font-weight:400}
@media (max-width:900px){
  .chapter{grid-template-columns:auto minmax(0,1fr)}
  .chapter .keep{grid-column:1 / -1;margin-top:4px}
}

/* ---------- pull quote: the one line that closes the argument ---------- */
.pull{font-family:var(--disp);font-weight:500;letter-spacing:-.035em;line-height:1.08;
  font-size:clamp(26px,3.6vw,50px);max-width:19ch}
.pull .hl{background:var(--lime);color:var(--ink);padding:0 .14em;
  box-decoration-break:clone;-webkit-box-decoration-break:clone}

/* ---------- price ---------- */
.price{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(28px,5vw,80px);align-items:end}
.price .fig{font-family:var(--disp);font-weight:500;letter-spacing:-.05em;line-height:.82;
  font-size:clamp(88px,15vw,220px)}
.price .cur{font-family:var(--mono);font-size:11px;letter-spacing:.24em;
  text-transform:uppercase;color:var(--muted);margin-top:20px}
.price ul{list-style:none;display:grid;margin-top:clamp(24px,3vw,36px)}
.price li{border-top:1px solid var(--line);padding-block:14px;
  font-size:15.5px;color:var(--soft)}
.price li:last-child{border-bottom:1px solid var(--line)}
@media (max-width:820px){.price{grid-template-columns:1fr;align-items:start}}

/* the recurring package is a sibling note, never a third column */
.after{margin-top:clamp(36px,5vw,72px);border-top:1px solid var(--line);
  padding-top:clamp(26px,3.4vw,40px);
  display:grid;grid-template-columns:minmax(0,.5fr) minmax(0,1fr);gap:clamp(20px,4vw,64px)}
.after p{color:var(--soft);font-size:15.8px;line-height:1.64;max-width:56ch}
@media (max-width:820px){.after{grid-template-columns:1fr;gap:16px}}

/* ---------- terminal card: the signature component, the only rounded thing ---------- */
.term{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--ink-2)}
.term-bar{display:flex;align-items:center;gap:8px;padding:12px 16px;
  border-bottom:1px solid var(--line);font-family:var(--mono);font-size:11px;color:var(--muted)}
.term-dot{width:8px;height:8px;border-radius:50%;background:#2A2D34}
.term-body{padding:clamp(18px,2.2vw,28px);font-family:var(--mono);
  font-size:clamp(12.5px,1.05vw,14px);line-height:2.0}
.term-body .p{color:var(--lime)}
.term-body .c{color:var(--muted)}
.term-body .blink{display:inline-block;width:8px;height:15px;background:var(--lime);
  vertical-align:-2px;margin-left:4px;animation:blink 1.15s steps(1,end) infinite}
@keyframes blink{0%,55%{opacity:1}56%,100%{opacity:0}}

/* ---------- the build archive ----------
   Rows, not cards. At one post a day a grid of tiles becomes a wall inside a
   month; a row list stays scannable at any length. */
.build-list{list-style:none}
.build-item{border-top:1px solid var(--line)}
.build-item:last-child{border-bottom:1px solid var(--line)}
.build-item a{display:grid;grid-template-columns:auto auto 1fr;align-items:baseline;
  gap:clamp(12px,1.6vw,26px);padding-block:clamp(15px,1.7vw,21px);min-height:56px;
  transition:color var(--t-hover) var(--ease)}
.build-item a:hover{color:var(--lime)}
.build-item time{font-family:var(--mono);font-size:12px;color:var(--muted);
  font-variant-numeric:tabular-nums;white-space:nowrap}
.build-kind{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--muted);white-space:nowrap}
.build-title{font-family:var(--disp);font-weight:500;letter-spacing:-.025em;
  font-size:clamp(15.5px,1.5vw,19px);line-height:1.3;min-width:0}
.build-item a:hover .build-kind{color:var(--lime)}
@media (max-width:620px){
  .build-item a{grid-template-columns:auto 1fr;row-gap:4px}
  .build-kind{grid-row:1;grid-column:2;justify-self:start}
  .build-title{grid-column:1 / -1}
}

/* ==========================================================================
   EMAIL CAPTURE
   The download link sits next to the form on purpose. Gating a free thing
   behind an address you can trivially fake buys a worse list and a worse
   first impression, so the trade is stated and the door is left open.
   ========================================================================== */
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.capture{margin-top:clamp(26px,3vw,34px);border-top:1px solid var(--line);
  padding-top:clamp(20px,2.4vw,26px)}
.capture-h{font-family:var(--mono);font-size:11px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--muted);margin-bottom:14px}
.capture-row{display:flex;gap:10px;flex-wrap:wrap}
.capture input{flex:1 1 240px;min-width:0;min-height:52px;padding:0 18px;
  background:var(--ink-2);border:1px solid var(--line);border-radius:99px;
  color:var(--bone);font-family:var(--body);font-size:15.5px;
  transition:border-color var(--t-hover) var(--ease)}
.capture input::placeholder{color:#6E6E68}
.capture input:hover{border-color:rgba(244,241,234,.24)}
.capture input:focus-visible{border-color:var(--lime);outline:none}
.capture #lead-biz{margin-top:10px;width:100%;flex:none}
.capture .btn{flex:0 0 auto}
.capture-note{margin-top:14px;font-size:13.5px;line-height:1.55;color:var(--muted);max-width:52ch}
.capture-msg{margin-top:14px;font-family:var(--mono);font-size:12.5px;line-height:1.6;
  color:var(--lime);min-height:0}
.capture-msg:empty{display:none}
.capture-msg a{text-decoration:underline;text-underline-offset:3px}
.capture-msg.bad{color:#FFB4A2}
.capture.sent .capture-row,.capture.sent #lead-biz,.capture.sent .capture-note{display:none}

/* ---------- faq ---------- */
details{border-top:1px solid var(--line)}
details:last-of-type{border-bottom:1px solid var(--line)}
summary{list-style:none;cursor:pointer;display:flex;align-items:center;
  justify-content:space-between;gap:18px;min-height:56px;
  padding-block:clamp(19px,2.3vw,26px);
  font-family:var(--disp);font-weight:500;letter-spacing:-.025em;
  font-size:clamp(17.5px,1.6vw,21px)}
summary::-webkit-details-marker{display:none}
.chev{width:18px;height:18px;flex:none;color:var(--lime);
  transition:transform var(--t-hover) var(--ease)}
details[open] .chev{transform:rotate(45deg)}
details p{padding-bottom:clamp(19px,2.3vw,27px);color:var(--soft);max-width:66ch}

/* ---------- nav ----------
   Transparent over the stage, glass once you leave it. */
.nav{position:fixed;top:0;left:0;right:0;z-index:30;
  border-bottom:1px solid transparent;
  transition:background var(--t-hover) var(--ease),
             border-color var(--t-hover) var(--ease),
             backdrop-filter var(--t-hover) var(--ease)}
/* .92 rather than .72: at .72 the bone plate scrolling underneath tints half
   the bar grey and it reads as a stray rectangle. */
.nav.stuck{background:rgba(10,10,11,.92);border-bottom-color:var(--line);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.nav-in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px}
.mark{display:inline-flex;align-items:center;gap:8px;min-height:44px;
  font-family:var(--disp);font-weight:500;font-size:17px;letter-spacing:-.035em}
.caret{width:9px;height:18px;background:var(--lime)}   /* the mark */
.nav-links{display:flex;align-items:center;gap:clamp(12px,1.8vw,26px);
  font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.62)}
.nav-links a{display:inline-flex;align-items:center;min-height:44px;
  transition:color var(--t-hover) var(--ease)}
.nav-links a:hover,.nav-links a[aria-current]{color:#fff}
.lang{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  display:inline-flex;align-items:center;min-height:44px;padding-inline:4px}
/* ---------- mobile nav ----------
   Below 780px the inline page links hide and a hamburger <details> holds them.
   Built with <details> so it works with no JS: tap opens, tap-away/tap-again
   closes. The links live in the HTML per page, so they are crawlable too. */
.mnav{display:none}
.mark{white-space:nowrap}
@media (max-width:780px){
  /* the bar carries only the logo, the hamburger and Book. Every page link
     plus the language toggle moves into the dropdown, so nothing crowds. */
  .nav-links .hide-sm,.nav-links .lang{display:none}
  .mnav{display:block}
  .mnav>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;
    width:44px;height:44px;cursor:pointer;color:#fff;-webkit-tap-highlight-color:transparent}
  .mnav>summary::-webkit-details-marker{display:none}
  .mnav .bars{position:relative;width:20px;height:14px}
  .mnav .bars::before,.mnav .bars::after,.mnav .bars i{content:"";position:absolute;left:0;right:0;
    height:2px;background:currentColor;border-radius:2px;
    transition:transform .3s var(--ease),opacity .2s var(--ease)}
  .mnav .bars::before{top:0}.mnav .bars i{top:6px}.mnav .bars::after{top:12px}
  .mnav[open] .bars::before{transform:translateY(6px) rotate(45deg)}
  .mnav[open] .bars i{opacity:0}
  .mnav[open] .bars::after{transform:translateY(-6px) rotate(-45deg)}
  /* fixed under the bar and anchored to the screen edge, so width and position
     never depend on where the hamburger sits in the flex row */
  .mnav-panel{position:fixed;top:64px;right:var(--pad);left:auto;
    width:min(260px,calc(100vw - var(--pad)*2));
    background:rgba(10,10,11,.98);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
    border:1px solid var(--line);border-radius:14px;padding:8px;
    display:flex;flex-direction:column;z-index:45;
    box-shadow:0 26px 64px -14px rgba(0,0,0,.85)}
  .mnav-panel a{font-family:var(--mono);font-size:12.5px;letter-spacing:.13em;text-transform:uppercase;
    color:var(--soft);padding:0 15px;min-height:50px;display:flex;align-items:center;border-radius:9px}
  .mnav-panel a:hover,.mnav-panel a[aria-current]{color:#fff;background:var(--ink-3)}
  .mnav-panel .mnav-lang{color:var(--lime);border-top:1px solid var(--line);
    margin-top:4px;border-radius:0 0 8px 8px}
}

/* pages that do not open on a stage still need the fixed nav cleared */
.pad-nav{padding-top:70px}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--line);padding-block:44px;
  font-family:var(--mono);font-size:11px;letter-spacing:.13em;text-transform:uppercase;
  color:var(--muted)}
.foot-in{display:flex;flex-wrap:wrap;gap:14px 30px;align-items:center;justify-content:space-between}
.foot a{display:inline-flex;align-items:center;min-height:44px;
  transition:color var(--t-hover) var(--ease)}
.foot a:hover{color:var(--lime)}
/* social presence: real glyphs, not text. Grouped, prominent, 44px tap targets. */
.foot-social{display:inline-flex;align-items:center;gap:4px}
.foot-ico{display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;color:var(--soft);
  transition:color var(--t-hover) var(--ease),transform var(--t-hover) var(--ease)}
.foot-ico:hover{color:var(--lime);transform:translateY(-2px)}
.foot-ico svg{width:23px;height:23px;display:block}
@media (max-width:560px){
  /* stack the footer cleanly and give the social row its own line, centred */
  .foot-in{gap:18px 20px}
  .foot-social{gap:8px}
  .foot-ico svg{width:25px;height:25px}
}

/* ---------- motion ----------
   Entrances blur in. That single technique is what separates the reference
   demos from a generic fade-and-slide.

   Two safeguards, because decoration must never be able to eat the content:
   1. Content is VISIBLE by default. Only once the inline head script proves
      JS is alive does `.js` opt into hiding it.
   2. Transitions, not keyframe animations. A CSS animation does not advance
      while a page is unrendered (background tab, minimised window), so it
      sticks on its from-state and the section stays blank. A transition's end
      state is just the computed style of `.in`, so the worst case is that it
      appears without animating. */
.rise{opacity:1}
.js .rise{
  opacity:0;transform:translateY(38px);filter:blur(20px);
  transition:opacity 1s var(--ease),transform 1s var(--ease),filter 1s var(--ease);
  transition-delay:var(--d,0ms);
}
.js .rise.in{opacity:1;transform:none;filter:blur(0)}
.d1{--d:80ms}.d2{--d:180ms}.d3{--d:280ms}
.d4{--d:380ms}.d5{--d:480ms}.d6{--d:580ms}

/* Headline words arrive one after another. The words are real text in the
   HTML; JS only wraps them, so with JS off the headline is simply there. */
.js h1 .w{display:inline-block;opacity:0;transform:translateY(28px);filter:blur(16px);
  transition:opacity .9s var(--ease),transform .9s var(--ease),filter .9s var(--ease);
  transition-delay:calc(var(--i) * 55ms + 120ms)}
.js h1.in .w{opacity:1;transform:none;filter:blur(0)}
.js h1.words{opacity:1;transform:none;filter:none}

/* the field drifts, very slowly. decoration only: it hides no content, so a
   keyframe is safe here. */
@keyframes drift{
  from{transform:scale(1.04) translate3d(-1.2%,-0.8%,0)}
  to  {transform:scale(1.10) translate3d(1.2%,0.8%,0)}
}
.stage-field{animation:drift 42s var(--ease) infinite alternate}

.feature-media,.plate{transition:border-color var(--t-hover) var(--ease)}
.feature:hover .plate{border-color:rgba(201,255,61,.30)}

/* Archive rows stagger in behind each other rather than all at once */
.js .build-item{opacity:0;transform:translateY(14px);
  transition:opacity .6s var(--ease),transform .6s var(--ease);
  transition-delay:calc(var(--i,0) * 40ms)}
.js .build-item.in{opacity:1;transform:none}

/* A hairline that fills as you read. The only chrome that moves on scroll. */
.progress{position:fixed;top:0;left:0;height:2px;width:100%;z-index:40;
  background:var(--lime);transform:scaleX(var(--p,0));transform-origin:0 50%;
  pointer-events:none;opacity:.9}

/* ==========================================================================
   POLISH PASS — rounding, green keyword accents, 3D depth, scroll motion
   All motion here is decoration on top of a page that already works, gated by
   .js and killed under prefers-reduced-motion. anime.js drives the entrances
   and parallax; every effect degrades to the plain static layout.
   ========================================================================== */

/* ---- rounding: soften the hard-edged surfaces ---- */
.card{border-radius:var(--r)}
.plate{border-radius:var(--r-lg)}
.plate figcaption{border-radius:0}
.band{border-radius:0}
.after,.price li{border-radius:0}

/* ---- green keyword accents ----
   Lime stays a signal, not a flood: .kw tints a load-bearing phrase, .kw-b
   slams a single key term in a lime block. On the bone plate, use the darker
   lime so it stays legible. */
.kw{color:var(--lime);font-weight:500}
.on-media .kw{color:var(--lime)}
.doc .kw,.plate-bone .kw{color:var(--lime-dk)}
.kw-b{background:var(--lime);color:var(--ink);padding:.02em .2em;border-radius:.28em;
  font-weight:500;box-decoration-break:clone;-webkit-box-decoration-break:clone}

/* ---- 3D scaffolding ----
   A .scene sets the perspective; .tilt children rotate inside it. JS writes the
   rotation via custom properties so CSS keeps the smoothing and reduced-motion
   can zero it out. */
.scene{perspective:1300px}
.tilt{transform-style:preserve-3d;
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0);
  transition:transform .5s var(--ease)}
.stage-media{perspective:1400px}
.rig{transform-style:preserve-3d}
/* each rig card sits at its own depth so scroll and pointer move them apart */
.rig-1{--rz:60px}.rig-2{--rz:120px}.rig-3{--rz:30px}.rig-4{--rz:10px}
/* the container carries scroll parallax; each card carries depth + tilt, so the
   two never fight over the same transform */
.js .rig{transform:translateY(var(--rigY,0))}
.js .rig-card{
  transform:translateZ(var(--rz,0)) rotate(var(--rot,0deg))
    rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition:transform .45s var(--ease);will-change:transform}

/* feature plates tilt toward the pointer inside their row's perspective */
.feature{perspective:1200px}
.feature .plate{transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition:transform .5s var(--ease);will-change:transform}

/* anime.js sets opacity/transform inline for these; keep them hidden until it
   runs, but only when JS is proven alive (same rule as .rise) */
.js .pop{opacity:0}
.js .plate-in{opacity:0}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important;scroll-behavior:auto !important}
  .rise,.js .rise,
  .js h1 .w,.js .build-item,
  .js .pop,.js .plate-in{opacity:1;transform:none;filter:none;transition:none}
  .tilt{transform:none !important}
  .js .rig-card{transform:rotate(var(--rot,0deg)) !important}
  .stage-field{animation:none;transform:none}
  .term-body .blink{animation:none}
  .progress{display:none}
}
