/* ============================================================
   ZURO — shared system  ·  brand v1
   Paper + Ink · single violet accent · Space + Schibsted Grotesk
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Schibsted+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg:       #F1EEE7;   /* paper */
  --bg-2:     #E9E5DC;
  --surface:  #FFFFFF;   /* cards */
  --lens:     #6E6E76;
  --ink:      #16150F;   /* text / mark */
  --ink-2:    #6B6356;   /* slate secondary */
  --ink-3:    #9A9588;
  --line:     rgba(22,21,15,0.10);
  --line-2:   rgba(22,21,15,0.16);

  --accent:   #6A5FB0;   /* violet */
  --accent-2: #8E80E0;   /* violet-300 (on dark) */
  --accent-tint: rgba(106,95,176,0.10);

  --dark:     #06070A;   /* void */
  --dark-2:   #16161A;   /* slate-900 cards */
  --paper-2:  #E9ECF2;   /* paper text on dark */
  --muted-d:  #8B93A6;   /* muted on dark */

  /* crisp elevation (hairline + one calibrated shadow) */
  --nm:        0 2px 4px rgba(22,21,15,0.04), 0 16px 40px rgba(22,21,15,0.08);
  --nm-sm:     0 1px 2px rgba(22,21,15,0.04), 0 6px 18px rgba(22,21,15,0.06);
  --nm-inset:  inset 0 1px 2px rgba(22,21,15,0.05);

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Space Grotesk", ui-monospace, "SF Mono", Menlo, monospace;
  --term: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 700px at 50% -8%, rgba(106,95,176,0.06), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- custom cursor: native cursor hidden only once a mouse is detected
   (see .has-cursor rules in the craft layer) ---- */
#cur-dot, #cur-ring {
  position: fixed; top: 0; left: 0; pointer-events: none;
  transform: translate(-50%, -50%); border-radius: 50%;
  z-index: 9999; mix-blend-mode: difference;
}
#cur-dot  { width: 6px;  height: 6px;  background: #0A0A0A; z-index: 9999; transition: width .25s, height .25s; }
#cur-ring {
  width: 32px; height: 32px; border: 1.5px solid rgba(10,10,10,0.18);
  background: transparent; z-index: 9998; mix-blend-mode: normal;
  transition: width .3s, height .3s, border-color .3s, background-color .3s;
}
body.cur-hover #cur-dot  { width: 0; height: 0; }
body.cur-hover #cur-ring {
  width: 56px; height: 56px;
  border-color: rgba(142,128,224,0.55);
  background: rgba(142,128,224,0.06);
}
@media (pointer: coarse) { #cur-dot, #cur-ring { display: none; } }

/* ---- hero lens cursor (landing hero only) ---- */
#lens { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9997; opacity: 0; transition: opacity .3s ease; }
body.lens-on #lens { opacity: 1; }
body.lens-on #cur-dot, body.lens-on #cur-ring { opacity: 0; }
.lens-inner {
  position: absolute; left: 0; top: 0; width: 128px; height: 128px;
  transform: translate(-50%, -50%) scale(var(--lg, 0.9));
  transition: transform .12s linear;
}
.lens-blur {
  position: absolute; inset: 0; border-radius: 50%;
  -webkit-backdrop-filter: blur(5px) saturate(105%); backdrop-filter: blur(5px) saturate(105%);
  border: 1px solid rgba(120,120,128,0.26);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}
.lens-node { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: rgba(120,120,128,0.5); transform: translate(-50%, -50%); box-shadow: 0 0 7px rgba(120,120,128,0.4); }
@media (pointer: coarse) { #lens { display: none; } }

.hero-sub { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .01em; color: var(--ink-2); margin-top: 18px; }

/* hero ambient depth — faint node field + mild center/edge depth */
.hero-fx {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(64% 56% at 50% 44%, rgba(255,255,255,0.35), transparent 72%),
    radial-gradient(130% 120% at 50% 118%, rgba(11,11,12,0.045), transparent 62%);
}
.hero-dots { position: absolute; inset: -6%; width: 112%; height: 112%; }
.hero-dots circle { fill: rgba(11,11,12,0.05); }

/* ---- asymmetric editorial hero ---- */
.hero-wrap { position: relative; z-index: 1; width: 100%; text-align: left; }
.hero-wrap .display { font-size: clamp(46px, 9vw, 132px); margin-top: 26px; max-width: 13ch; }
.hero-wrap .lede { margin-left: 0; }
.hero-wrap .cta-row { justify-content: flex-start; }
.hero-orbit {
  position: absolute; top: 50%; right: clamp(-340px, -16vw, -120px); left: auto; bottom: auto;
  transform: translateY(-50%); display: block; z-index: 0; pointer-events: none;
  width: min(860px, 78vw); aspect-ratio: 1; opacity: 0.9;
}
.hero-orbit .orbit { width: 100%; }
.hero-foot {
  display: flex; align-items: center; gap: 14px; margin-top: clamp(40px, 7vh, 96px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.hero-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scrollcue { position: relative; width: 22px; height: 30px; }
.hero-scrollcue::before, .hero-scrollcue::after {
  content: ""; position: absolute; left: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateX(-50%) rotate(45deg); animation: scrollcue 1.8s ease-in-out infinite;
}
.hero-scrollcue::before { top: 2px; }
.hero-scrollcue::after { top: 11px; opacity: .5; animation-delay: .15s; }
@keyframes scrollcue { 0%,100%{ transform: translate(-50%,0) rotate(45deg); opacity: .4; } 50%{ transform: translate(-50%,6px) rotate(45deg); opacity: 1; } }
@media (max-width: 900px) {
  .hero-orbit { right: -30%; top: 38%; width: 120vw; opacity: 0.5; }
  .hero-wrap .display { font-size: clamp(44px, 12vw, 80px); }
}
@media (prefers-reduced-motion: reduce) { .hero-scrollcue::before, .hero-scrollcue::after { animation: none; } .eco-ic { animation: none; } }

/* ---- focus + a11y ---- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 4px; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-160%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-family: var(--mono); font-size: 13px; transition: transform .2s;
}
.skip-link:focus-visible { transform: none; outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---- scroll reveal ---- */
[data-reveal] {
  opacity: 0; transform: translateY(50px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
/* masked headline reveal — every display/title rises out of a clip */
[data-reveal].display, [data-reveal].title {
  opacity: 1; clip-path: inset(0 0 116% 0); transform: translateY(0.16em);
  transition: clip-path 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
[data-reveal].display.in, [data-reveal].title.in { clip-path: inset(-14% 0 -16% 0); transform: none; }
/* hard net: when JS can't rely on transitions firing (throttled/offscreen),
   snap everything visible with no animation left to freeze */
html.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
html.reveal-all [data-reveal].display, html.reveal-all [data-reveal].title { clip-path: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal].display, [data-reveal].title { clip-path: none !important; }
}

/* ============================================================
   layout
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.sec { padding-block: clamp(68px, 8.5vw, 124px); }

.eyebrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.0; text-wrap: balance; }
.display { font-size: clamp(38px, 5vw, 72px); letter-spacing: -0.04em; line-height: 1.0; }
h2.title { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; }
.lede { font-family: var(--sans); font-size: clamp(17px, 1.55vw, 21px); color: var(--ink-2); line-height: 1.5; max-width: 56ch; text-wrap: pretty; }

/* ---- fluid type-scale tokens — use these instead of inline font-size ---- */
.display-page { font-size: clamp(40px, 5.6vw, 66px); letter-spacing: -0.035em; }  /* page headers (was 60px) */
.title-lg { font-size: clamp(32px, 4.4vw, 56px); }                                /* larger section title (was 55px) */
.final.final-compact h2 { font-size: clamp(42px, 6.5vw, 66px); }                  /* compact final CTA (was 60px) */
.fs-cap { font-size: clamp(13px, 1vw, 14px); }                                    /* small captions (was 14px) */

/* ============================================================
   nav
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 11px var(--gutter);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(241,238,231,0.72);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 9px;
}
.brand { display: inline-flex; align-items: center; white-space: nowrap; }
.brand-logo { height: 44px; width: auto; display: block; transition: transform .3s, filter .3s; }
.brand:hover .brand-logo { transform: scale(1.03); }
.brand:active .brand-logo { transform: scale(.96); }
.nav-links {
  display: flex; align-items: center; gap: 2px;
  padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--nm-sm);
}
.nav-links a {
  font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0;
  padding: 7px 15px; border-radius: 999px; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--surface); box-shadow: var(--nm-sm); }
.nav .btn { padding: 10px 18px; font-size: 12.5px; }
@media (max-width: 880px) { .nav-links { display: none; } .nav .btn:not(.nav-toggle) { display: none; } }

/* ---- mobile menu ---- */
.nav .nav-toggle {
  display: none; width: 42px; height: 42px; border: 1.5px solid var(--ink); border-radius: 9px;
  background: var(--surface); position: relative; flex: none; box-shadow: 2px 2px 0 rgba(22,21,15,0.12);
  padding: 0;
}
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 20px; } .nav-toggle span:nth-child(3) { top: 26px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 80px var(--gutter) 40px; transform: translateY(-100%); transition: transform .45s cubic-bezier(.16,1,.3,1);
  visibility: hidden;
}
body.menu-open .mobile-menu { transform: none; visibility: visible; }
.mobile-menu a.mm-link { font-family: var(--display); font-weight: 700; font-size: clamp(34px,9vw,56px); letter-spacing: -0.03em; color: var(--ink); padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.mobile-menu a.mm-link:last-of-type { border-bottom: none; }
.mobile-menu .mm-cta { margin-top: 28px; align-self: flex-start; }
@media (max-width: 880px) { .nav .nav-toggle { display: block; } }
@media (min-width: 881px) { .mobile-menu { display: none; } body.menu-open { overflow: auto; } }

/* ============================================================
   buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 13.5px; letter-spacing: .01em;
  padding: 15px 26px; border-radius: 999px; border: none; white-space: nowrap;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .25s;
}
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary {
  font-family: var(--term); font-weight: 700; border-radius: 8px;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(22,21,15,0.22);
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 rgba(22,21,15,0.26); }
.btn-ghost {
  background: var(--surface); color: var(--ink); box-shadow: var(--nm-sm); border: 1px solid var(--line);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--nm); }

/* ============================================================
   neumorphic / glass primitives
   ============================================================ */
.nm     { background: var(--surface); box-shadow: var(--nm); border: 1px solid var(--line); border-radius: 20px; }
.glass  {
  background: rgba(255,255,255,0.66); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--nm);
  border-radius: 18px;
}

/* ============================================================
   credibility bar
   ============================================================ */
.cred-sec { padding-block: clamp(40px, 5vw, 72px); }
.cred {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cred > div { padding: 34px clamp(16px,3vw,40px); border-left: 1px solid var(--line); }
.cred > div:first-child { border-left: none; }
.cred .num { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.03em; font-family: var(--display); }
.cred .num .u { font-size: 0.5em; font-weight: 600; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }
.cred .lab { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 8px; letter-spacing: .02em; }
@media (max-width: 760px){ .cred{ grid-template-columns: repeat(2,1fr);} .cred>div:nth-child(3){border-left:none;} .cred>div:nth-child(odd){border-left:none;} .cred>div:nth-child(n+3){border-top:1px solid var(--line);} }

/* ============================================================
   problem — copy + isometric build illustration
   ============================================================ */
.problem-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(36px, 6vw, 84px); align-items: stretch; }
.problem-art { display: flex; }
.problem-copy { display: flex; flex-direction: column; }
.problem-copy h2.title { margin-top: 20px; max-width: 16ch; }
.iso-panel {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  background:
    linear-gradient(180deg, #FBFAF7, #F1EEE7);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(22,21,15,0.06), 12px 12px 0 rgba(22,21,15,0.03);
}
.iso-panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.iso-cap { position: absolute; font-family: var(--term); font-weight: 700; font-size: 10.5px; letter-spacing: .1em; color: var(--ink-2); z-index: 2; line-height: 1.4; text-transform: uppercase; }
.iso-tl { top: 18px; left: 20px; }
.iso-bl { bottom: 18px; left: 20px; }
.iso-br { bottom: 18px; right: 20px; text-align: right; color: var(--ink); }
@media (max-width: 880px){
  .problem-grid { grid-template-columns: 1fr; }
  .problem-copy h2.title { max-width: 18ch; }
  .iso-panel { aspect-ratio: 16 / 11; max-width: 520px; }
}

/* ============================================================
   pains
   ============================================================ */
.pains { display: grid; gap: 0; margin-top: auto; padding-top: 40px; }
.pain {
  display: grid; grid-template-columns: 48px 1fr; gap: 22px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.pain:last-child { border-bottom: 1px solid var(--line); }
.pain .pi { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.pain p { font-size: clamp(19px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; transition: color .25s; }
.pain { cursor: default; }
.pain:hover p, .pain:hover .pi { color: var(--accent); }

/* ============================================================
   services table
   ============================================================ */
.svc-row {
  display: grid; grid-template-columns: 60px minmax(180px, 1fr) 2fr;
  gap: clamp(16px, 4vw, 56px); align-items: start;
  padding: 38px clamp(12px,2vw,28px); border-top: 1px solid var(--line);
  transition: background .35s, color .35s;
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .si { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 6px; transition: color .35s; }
.svc-row h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.svc-row p  { color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.svc-row .meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 12px; letter-spacing: .04em; text-transform: uppercase; }
.svc-row.feature {
  background: linear-gradient(180deg, rgba(142,128,224,0.13), rgba(142,128,224,0.06));
  border-radius: 16px; border-color: transparent;
}
.svc-row:hover { background: rgba(255,255,255,0.55); border-radius: 16px; box-shadow: var(--nm-sm); }
.svc-row:hover .si { color: var(--accent); }
.svc-row:hover h3 { transform: translateX(6px); }

/* ============================================================
   manifesto · work cards · testimonials  (brand v1 content)
   ============================================================ */
.manifesto-h { margin-top: 22px; }
.manifesto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,72px); margin-top: 40px; align-items: start; }
.manifesto-body { font-size: 16px; line-height: 1.6; max-width: 46ch; }
@media (max-width: 820px){ .manifesto-grid { grid-template-columns: 1fr; gap: 18px; } }

.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.work-card {
  display: flex; flex-direction: column; padding: 26px 26px 24px;
  border-radius: 16px; background: var(--surface); border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(22,21,15,0.06), 10px 10px 0 rgba(22,21,15,0.03);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
}
.work-card:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 rgba(22,21,15,0.09), 16px 16px 0 rgba(22,21,15,0.04); }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.work-fig { font-family: var(--term); font-weight: 700; font-size: 12px; color: var(--ink); letter-spacing: .04em; }
.work-tag { font-family: var(--term); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); padding: 0; background: none; border-radius: 0; }
.work-card h3 { font-family: var(--term); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 16px; }
.work-card p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; margin-top: 9px; text-wrap: pretty; }
.work-stat { font-family: var(--display); font-weight: 700; font-size: clamp(34px,3.4vw,48px); letter-spacing: -0.03em; line-height: 1; margin-top: 20px; color: var(--ink); }
.work-stat span { display: block; font-family: var(--term); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-top: 9px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 9px 18px; align-items: center; margin-top: 22px; font-family: var(--term); font-size: 12px; color: var(--ink-3); letter-spacing: .01em; }
.trust-strip b { color: var(--ink); font-weight: 700; }
.trust-strip .ts-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.work-metrics { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 22px; }
.work-metrics span { font-family: var(--term); font-size: 12.5px; font-weight: 400; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.work-metrics span::before { content: "+"; width: auto; height: auto; background: none; color: var(--accent); font-family: var(--term); font-weight: 700; flex: none; }
@media (max-width: 900px){ .work-grid { grid-template-columns: 1fr; } }

.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  padding: 26px 26px 24px; border-radius: 16px; background: var(--surface);
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(22,21,15,0.06), 10px 10px 0 rgba(22,21,15,0.03);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s;
}
.quote:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(22,21,15,0.09), 14px 14px 0 rgba(22,21,15,0.04); }
.quote blockquote { font-family: var(--term); font-weight: 400; font-size: 15.5px; line-height: 1.55; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.quote blockquote::before { content: "> "; color: var(--accent); font-family: var(--term); font-weight: 700; }
.quote figcaption { display: flex; flex-direction: column; gap: 3px; padding-top: 18px; border-top: 1.5px solid var(--line); }
.quote .qname { font-family: var(--term); font-weight: 700; font-size: 13px; color: var(--ink); letter-spacing: .02em; }
.quote .qrole { font-family: var(--term); font-size: 11.5px; color: var(--ink-3); letter-spacing: .03em; }
.quote .qname::before { content: "// "; color: var(--ink-3); }
@media (max-width: 900px){ .quotes { grid-template-columns: 1fr; } }

/* ============================================================
   services — clean node-to-node step flow
   ============================================================ */
.flow2 {
  display: flex; align-items: flex-start; gap: clamp(8px,1.6vw,18px); margin-top: 52px;
}
.flow2-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.flow2-node {
  width: 100%; text-align: center; padding: 24px 20px 26px;
  border: 1.5px solid var(--ink); border-radius: 14px; background: var(--surface);
  box-shadow: 5px 5px 0 rgba(22,21,15,0.07);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s;
}
.flow2-node:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(22,21,15,0.1); }
.flow2-node .fn-num { font-family: var(--term); font-weight: 700; font-size: 11px; letter-spacing: .12em; color: var(--ink-3); }
.flow2-node h3 { font-family: var(--term); font-weight: 700; font-size: clamp(22px,2.4vw,28px); letter-spacing: -0.01em; margin-top: 8px; }
.flow2-node p { font-family: var(--sans); color: var(--ink-2); font-size: 14px; line-height: 1.45; margin-top: 10px; text-wrap: pretty; }
.flow2-node.is-root { border-color: var(--accent); box-shadow: 5px 5px 0 rgba(106,95,176,0.18); }
.flow2-node.is-root .fn-num { color: var(--accent); }
.flow2-node.is-root:hover { box-shadow: 7px 7px 0 rgba(106,95,176,0.22); }

.flow2-stem { width: 1.5px; height: 26px; background: var(--line-2); }
.flow2-chips { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.chip {
  font-family: var(--term); font-size: 12.5px; color: var(--ink);
  padding: 9px 15px; border: 1.5px solid var(--line-2); border-radius: 8px;
  background: var(--surface); box-shadow: 2px 2px 0 rgba(22,21,15,0.05);
  transition: border-color .25s, transform .25s;
}
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.is-root + .flow2-stem + .flow2-chips .chip { border-color: rgba(106,95,176,0.4); }

.flow2-arrow {
  flex: 0 0 auto; align-self: flex-start; margin-top: clamp(34px,4vw,52px);
  font-family: var(--term); font-weight: 700; color: var(--ink-3); font-size: clamp(20px,2.4vw,28px);
}
@media (max-width: 820px){
  .flow2 { flex-direction: column; gap: 0; align-items: stretch; }
  .flow2-col { width: 100%; }
  .flow2-arrow { align-self: center; margin: 14px 0; transform: rotate(90deg); }
  .flow2-chips { gap: 9px; }
}

/* ============================================================
   live timer / flip-clock section
   ============================================================ */
.timer-sec { overflow: hidden; text-align: center; }
.timerbg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 0; pointer-events: none; gap: 0; }
.timerbg span { font-family: var(--display); font-weight: 700; letter-spacing: -0.05em; line-height: 0.78; color: rgba(22,21,15,0.05); font-size: clamp(110px, 24vw, 360px); }
.timer-sec .wrap { position: relative; z-index: 1; }
.flipclock { display: flex; justify-content: center; gap: clamp(10px,1.6vw,20px); margin-top: 34px; flex-wrap: wrap; }
.flip { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.flip-v {
  font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 7vw, 92px); letter-spacing: -0.03em; line-height: 1;
  color: #fff; background: linear-gradient(180deg, #2A2A30, #161519);
  padding: 18px clamp(14px,2vw,26px); border-radius: 16px; min-width: 1.5em; text-align: center;
  box-shadow: 0 18px 44px rgba(22,21,15,0.28), inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.4);
  position: relative;
}
.flip-v::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1.5px; background: rgba(0,0,0,0.35); transform: translateY(-50%); }
.flip-l { font-family: var(--term); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.timer-cap { max-width: 56ch; margin: 38px auto 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
@media (max-width: 600px){ .flip-v { font-size: 44px; padding: 14px 14px; } }

/* ============================================================
   about page — values + voice
   ============================================================ */
.about-values { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 48px; }
.aval {
  display: flex; flex-direction: column; padding: 28px 26px 24px;
  border-radius: 16px; background: var(--surface); border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(22,21,15,0.06), 10px 10px 0 rgba(22,21,15,0.03);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s;
}
.aval:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(22,21,15,0.09), 14px 14px 0 rgba(22,21,15,0.04); }
.aval-n { font-family: var(--term); font-weight: 700; font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.aval h3 { font-family: var(--term); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin-top: 18px; }
.aval p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-top: 12px; }
.aval-term { font-family: var(--term); font-size: 11px; letter-spacing: .08em; color: var(--accent); margin-top: 18px; }
@media (max-width: 720px){ .about-values { grid-template-columns: 1fr; } }

/* ============================================================
   pricing page — 3 plans, hover-to-focus shade
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 56px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 30px 28px 28px;
  border-radius: 16px; background: var(--surface); border: 1.5px solid var(--ink);
  box-shadow: none; transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
}
/* shade appears only on hover (and on the focused one in a hovered group) */
[data-plans]:hover .plan { opacity: .62; transition: opacity .35s, transform .4s, box-shadow .4s; }
[data-plans] .plan:hover {
  opacity: 1; transform: translate(-3px,-4px);
  box-shadow: 8px 10px 0 rgba(22,21,15,0.10), 16px 20px 0 rgba(22,21,15,0.04);
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.plan-name { font-family: var(--term); font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.plan-fig { font-family: var(--term); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.plan-flag { font-family: var(--term); font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 10px; border-radius: 999px; }
.plan-price { font-family: var(--display); font-weight: 700; font-size: 44px; letter-spacing: -0.03em; margin-top: 24px; display: flex; align-items: baseline; gap: 8px; }
.plan-per { font-family: var(--term); font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--ink-3); }
.plan-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-top: 14px; text-wrap: pretty; }
.plan-feats { list-style: none; margin-top: 22px; padding: 22px 0 0; border-top: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
.plan-feats li { font-family: var(--sans); font-size: 14px; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.plan-feats li::before { content: "+"; font-family: var(--term); font-weight: 700; color: var(--accent); flex: none; }
.plan-cta { margin-top: 26px; justify-content: center; }
.plan-term { font-family: var(--term); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); margin-top: 18px; }
.plan-feature { border-width: 2px; }
.plan-feature .plan-term { color: var(--accent); }
@media (max-width: 900px){ .plans { grid-template-columns: 1fr; } [data-plans]:hover .plan { opacity: 1; } }

/* ============================================================
   process / how it works
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 38px; }
.step {
  padding: 22px 22px 20px; border-radius: 14px; position: relative; min-height: 208px;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(22,21,15,0.06), 10px 10px 0 rgba(22,21,15,0.03);
  background-image: radial-gradient(rgba(22,21,15,0.05) 1px, transparent 1px);
  background-size: 13px 13px;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s;
}
.step:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(22,21,15,0.09), 14px 14px 0 rgba(22,21,15,0.04); }
.step .sn { font-family: var(--term); font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.step .stag {
  font-family: var(--term); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); padding: 0; border-radius: 0; background: none;
  align-self: flex-start; margin-top: 4px; display: none;
}
.step h3 { font-family: var(--term); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; margin-top: auto; }
.step p { color: var(--ink-2); margin-top: 12px; font-size: 14.5px; }
.step::after {
  content: "> READY _"; font-family: var(--term); font-size: 11px; letter-spacing: .08em;
  color: var(--accent); margin-top: 16px; display: block;
}
.step:nth-child(1)::after { content: "> LISTENING _"; }
.step:nth-child(2)::after { content: "> BUILDING _"; }
.step:nth-child(3)::after { content: "> RUNNING _"; }
@media (max-width: 820px){ .steps{ grid-template-columns: 1fr; } }

/* ============================================================
   tool ecosystem — proximity reveal grid
   ============================================================ */
.eco-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  margin-top: 56px;
}
.eco-tile {
  aspect-ratio: 1 / 1; border-radius: 18px; background: var(--bg);
  box-shadow: none; border: 1px solid rgba(22,21,15,0.07); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; position: relative; overflow: hidden;
  transition: background .3s, border-color .3s;
}
.eco-tile.lit { background: #EDEAF2; border-color: rgba(106,95,176,0.18); }
/* travelling-node arrival highlight: tile turns white + opaque, logo + name shown */
.eco-tile.passing { background: #FFFFFF !important; border-color: rgba(106,95,176,0.32) !important; box-shadow: 0 8px 22px rgba(22,21,15,0.09); }
.eco-tile.passing .eco-ic { opacity: 1 !important; color: var(--ink) !important; transition: none; }
.eco-tile.passing .eco-ic svg [stroke] { stroke-width: 1.9; }
.eco-tile.passing .label { opacity: 1 !important; transform: none !important; transition: none; }
.eco-ic { width: 36px; height: 36px; color: var(--ink-2); display: block; opacity: 0.5; transition: opacity .3s, color .3s; animation: ecoBreathe 5s ease-in-out infinite; }
@keyframes ecoBreathe { 0%,100%{ opacity: 0.46; } 50%{ opacity: 0.6; } }
.eco-ic svg { width: 100%; height: 100%; display: block; }
.eco-tile.lit .eco-ic { opacity: 1; color: var(--ink); }
.eco-tile.lit .eco-ic svg [stroke] { stroke-width: 1.9; }
.eco-tile.round { border-radius: 50%; }
.eco-tile .label {
  font-family: var(--display); font-weight: 500; font-size: clamp(12px,1.1vw,15px);
  letter-spacing: -0.01em; color: var(--ink);
  opacity: 0; transform: scale(.86); transition: opacity .3s, transform .35s cubic-bezier(.16,1,.3,1);
  text-align: center; padding: 6px;
}
.eco-tile .dotmark {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-3); opacity: .35; transition: opacity .3s;
}
.eco-tile.lit .dotmark { opacity: 0; }
@media (max-width: 920px){ .eco-grid{ grid-template-columns: repeat(4,1fr);} }
@media (max-width: 560px){ .eco-grid{ grid-template-columns: repeat(3,1fr);} }

/* ============================================================
   live viz — dark node section
   ============================================================ */
.viz {
  background: var(--dark-2); color: var(--paper-2); border-radius: 28px; overflow: hidden;
  position: relative; margin-block: clamp(40px,7vw,90px);
}
.viz canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.viz-rail { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,0.08); z-index: 3; }
.viz-rail span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; will-change: transform; }
.viz-screen { position: relative; z-index: 2; padding: clamp(30px,5vw,64px); min-height: clamp(540px, 84vh, 860px); display: flex; }
.viz-a { align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.viz-b { align-items: stretch; justify-content: center; }
.viz-head { max-width: 56ch; }
.viz .eyebrow { color: rgba(237,237,242,0.5); }
.viz .eyebrow::before { background: var(--accent-2); }
.viz h2 { color: #fff; }
.viz .lede { color: rgba(237,237,242,0.62); }
.viz-stats {
  display: flex; flex-direction: column; gap: 8px; text-align: right;
  font-family: var(--mono); font-size: 12px; color: rgba(237,237,242,0.5);
}
.viz-stats b { color: #fff; font-weight: 500; }

/* demo reel — full, sharp-edged rectangle */
.demo-full {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: 0; border: 1px solid rgba(255,255,255,0.16); overflow: hidden;
  background: #0a0a0c;
  display: grid; place-items: center;
}
.demo-full video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-full .play {
  position: relative; z-index: 2;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: grid; place-items: center;
  box-shadow: 0 8px 34px rgba(0,0,0,0.45);
  pointer-events: none; opacity: 1; transition: opacity .4s;
}
.demo-full.playing .play { opacity: 0; }
.demo-full .play::after { content:""; border-left: 18px solid #16161a; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.demo-full .cap { position: absolute; z-index: 2; left: 18px; bottom: 16px; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.62); letter-spacing: .04em; background: rgba(10,10,12,0.55); padding: 5px 9px; border-radius: 4px; backdrop-filter: blur(4px); }
@media (max-width: 760px){ .viz-stats { text-align: left; } }

/* ============================================================
   pricing
   ============================================================ */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 56px; }
.tier { padding: 38px 34px; border-radius: 24px; background: var(--surface); box-shadow: var(--nm); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tier.feature { background: linear-gradient(180deg, #1E1E24, #16161A); color: #fff; box-shadow: 0 24px 60px rgba(6,7,10,0.28); }
.tier .tname { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tier.feature .tname { color: var(--accent-2); }
.tier .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin-top: 18px; }
.tier .price small { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.tier.feature .price small { color: rgba(255,255,255,0.5); }
.tier .tdesc { color: var(--ink-2); margin-top: 16px; font-size: 15px; }
.tier.feature .tdesc { color: rgba(255,255,255,0.7); }
.tier .tfor { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 14px; letter-spacing: .02em; }
.tier.feature .tfor { color: rgba(255,255,255,0.55); }
.tier .btn { margin-top: 28px; justify-content: center; }
.pricing-note { font-family: var(--mono); font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 30px; }
@media (max-width: 880px){ .tiers{ grid-template-columns: 1fr; } }

/* ============================================================
   about
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px,6vw,90px); margin-top: 56px; align-items: start; }
.about-grid p { color: var(--ink-2); font-size: 17px; margin-top: 20px; max-width: 52ch; text-wrap: pretty; }
.values { display: grid; gap: 0; }
.value { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: baseline; }
.value:last-child { border-bottom: 1px solid var(--line); }
.value .vn { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.value h4 { font-size: 18px; font-weight: 600; }
.value p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
@media (max-width: 820px){ .about-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   faq
   ============================================================ */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 4px; font-size: clamp(17px,2vw,22px); font-weight: 500; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa .ic { width: 22px; height: 22px; position: relative; flex: none; }
.qa .ic::before, .qa .ic::after { content:""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.qa .ic::before { left: 0; right: 0; top: 10px; height: 2px; }
.qa .ic::after  { top: 0; bottom: 0; left: 10px; width: 2px; }
.qa[open] .ic::after { transform: scaleY(0); }
.qa .ans { padding: 0 4px 30px; color: var(--ink-2); max-width: 70ch; font-size: 16px; text-wrap: pretty; }
.qa .ans a { color: var(--accent); border-bottom: 1px solid var(--accent-tint); }

/* ============================================================
   final cta
   ============================================================ */
.final { text-align: center; position: relative; overflow: hidden; }
.final .bar { width: 64px; height: 4px; border-radius: 999px; background: var(--accent); margin: 0 auto 28px; }
.final h2 { font-size: clamp(46px, 8vw, 104px); letter-spacing: -0.04em; }
.final p { color: var(--ink-2); font-size: clamp(16px,1.8vw,20px); margin-top: 18px; }
.final .btn { margin-top: 40px; padding: 18px 34px; font-size: 14px; }
.final .orbit-bg { position: absolute; inset: 0; z-index: -1; opacity: .5; display: grid; place-items: center; pointer-events: none; }
.final .cta-globe { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.final .cta-globe canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 132%; height: 132%; display: block; }
.final .wrap { position: relative; z-index: 1; }

/* ============================================================
   footer
   ============================================================ */
footer { border-top: 1px solid var(--line); padding-block: 64px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; font-weight: 500; }
.foot-grid a { display: block; color: var(--ink-2); padding: 6px 0; font-size: 14px; transition: color .2s; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand .foot-word { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.foot-brand .foot-logo { display: block; width: clamp(150px, 16vw, 188px); height: auto; margin-bottom: 4px; }
.foot-brand .foot-word .tld { color: var(--accent); }
.foot-brand .foot-mark { width: 24px; height: 24px; }
.foot-brand .foot-mark path { fill: var(--ink); }
.foot-brand p { font-family: var(--sans); letter-spacing: 0; color: var(--ink-2); font-size: 14px; margin-top: 14px; max-width: 30ch; }
.foot-base { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 12px; letter-spacing: .02em; color: var(--ink-3); }
@media (max-width: 820px){ .foot-grid{ grid-template-columns: 1fr 1fr; } .foot-brand{ grid-column: 1 / -1; } }

/* ---- orbital line art ---- */
.orbit { width: min(820px, 92vw); aspect-ratio: 1; }
.orbit ellipse, .orbit circle, .orbit line { fill: none; stroke: rgba(11,11,12,0.13); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit .axis { stroke: rgba(11,11,12,0.06); }

/* ============================================================
   projects — glassmorphic file folders
   ============================================================ */
.folders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; margin-top: 64px; }
.folder {
  position: relative; margin-top: 24px; padding: 34px 30px 36px;
  border-radius: 3px 14px 14px 14px;
  background: rgba(228,228,232,0.5); backdrop-filter: blur(16px);
  border: 1.5px solid rgba(60,58,52,0.55);
  box-shadow: 5px 5px 0 rgba(22,21,15,0.10), 10px 10px 0 rgba(22,21,15,0.04);
  min-height: 320px; display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s, border-color .3s;
}
.folder::before {
  content: ""; position: absolute; top: -15px; left: 0; width: 46%; height: 19px;
  background: rgba(228,228,232,0.6); backdrop-filter: blur(16px);
  border: 1.5px solid rgba(60,58,52,0.55); border-bottom: none;
  border-radius: 8px 12px 0 0;
  clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
}
.folder:hover { transform: translate(-3px,-5px); box-shadow: 8px 9px 0 rgba(22,21,15,0.13), 16px 18px 0 rgba(22,21,15,0.05); border-color: var(--ink); }
.folder .fcase { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.folder .fmeta { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-top: 14px; letter-spacing: .01em; }
.folder .fresult { font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -0.03em; margin-top: auto; }
.folder .fresult small { font-size: 16px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.folder .fdesc { color: var(--ink-2); font-size: 14.5px; margin-top: 14px; text-wrap: pretty; }
.folder .ftags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.folder .ftag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; padding: 5px 10px; border-radius: 999px; background: rgba(11,11,12,0.05); color: var(--ink-2); }
.folder.feature {
  background: rgba(142,128,224,0.16); border-color: rgba(106,95,176,0.6);
  box-shadow: 5px 5px 0 rgba(106,95,176,0.18), 10px 10px 0 rgba(106,95,176,0.08);
}
.folder.feature::before { background: rgba(142,128,224,0.2); border-color: rgba(106,95,176,0.6); }
.folder.feature .fcase { color: var(--accent); }
.folder.feature .ftag { background: rgba(106,95,176,0.12); color: var(--accent); }
@media (max-width: 980px){ .folders{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .folders{ grid-template-columns: 1fr; } }

/* ---- work demo drawer (expands below the clicked file) ---- */
.folder { cursor: pointer; }
.folder[aria-expanded="true"] { border-color: var(--ink); box-shadow: 5px 5px 0 rgba(22,21,15,0.14), 10px 10px 0 rgba(22,21,15,0.06); }
.demo-drawer { grid-column: 1 / -1; overflow: hidden; }
.demo-drawer[hidden] { display: none; }
.demo-drawer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px;
  box-shadow: 6px 6px 0 rgba(22,21,15,0.06), 12px 12px 0 rgba(22,21,15,0.03);
  padding: 18px; margin-top: 6px;
  animation: drawerIn .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes drawerIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.demo-stage {
  position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  background: var(--bg-2); display: grid; place-items: center; border: 1px solid var(--line);
}
.demo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.demo-ph { position: relative; display: grid; place-items: center; gap: 14px; text-align: center; z-index: 1; }
.demo-ph .ph-icon { width: 56px; height: 46px; border: 1.5px solid var(--ink-3); border-radius: 6px; position: relative; }
.demo-ph .ph-icon::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 16px; border-radius: 3px; background: var(--ink-3); opacity: .35; clip-path: polygon(0 100%, 30% 40%, 50% 65%, 72% 20%, 100% 100%); }
.demo-ph .ph-icon::after { content: ""; position: absolute; top: 9px; right: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: .5; }
.demo-ph .cap { font-family: var(--term); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.demo-side { display: flex; flex-direction: column; padding: 14px 14px 8px; }
.demo-side-title { font-family: var(--term); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.demo-side-note { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; margin-top: 12px; }
.demo-side-note code { font-family: var(--term); font-size: 12px; background: rgba(22,21,15,0.06); padding: 2px 6px; border-radius: 5px; }
.demo-close { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px){ .demo-drawer-inner { grid-template-columns: 1fr; } }

/* utility */
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   hero — three columns: You talk · [flip] · You grow
   ============================================================ */
.hero3 {
  min-height: 82vh; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(108px,14vh,156px) var(--gutter) clamp(28px,4vh,48px); position: relative;
}
.hero3-cap { text-align: left; }
.hero3-cap .eyebrow { font-size: clamp(15px,1.7vw,21px); letter-spacing: .2em; }
.hero3-cap p { font-family: var(--display); font-weight: 500; font-size: clamp(13px,1.15vw,15px); color: var(--ink-2); margin-top: 14px; letter-spacing: -0.01em; max-width: none; white-space: nowrap; }
.hero3-grid {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center;
  margin-top: clamp(24px,4vh,46px);
}
.hero3-col {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: clamp(56px,12vh,150px) 16px; min-height: clamp(280px,46vh,500px);
  position: relative;
}
.hero3-col + .hero3-col::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.hero3-small { font-family: var(--display); font-weight: 500; font-size: clamp(20px,2.8vw,38px); color: var(--ink-3); letter-spacing: -0.02em; line-height: 1; }
.hero3-big { font-family: var(--display); font-weight: 700; font-size: clamp(44px,5.8vw,92px); letter-spacing: -0.04em; line-height: 0.92; color: var(--ink); }
.hero3-flip {
  position: relative; display: inline-grid; place-items: center;
  min-height: 1em;
}
.hero3-flip .flip-word {
  grid-area: 1 / 1; font-family: var(--display); font-weight: 700;
  font-size: clamp(44px,5.8vw,92px); letter-spacing: -0.04em; line-height: 0.92; color: var(--accent);
  white-space: nowrap;
  opacity: 0; transform: translateY(0.4em);
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1);
}
.hero3-flip .flip-word.is-on { opacity: 1; transform: none; }
.hero3-flip .flip-word.is-out { opacity: 0; transform: translateY(-0.4em); }
@media (prefers-reduced-motion: reduce) { .hero3-flip .flip-word { transition: opacity .2s; } }
.hero3-foot { margin-top: clamp(28px,4vh,48px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.hero3-foot .hero3-sub { justify-self: start; text-align: left; }
.hero3-foot .hero-foot { justify-self: center; margin: 0; }
.hero3-foot .cta-row { justify-self: end; }
.hero3-sub { font-family: var(--sans); font-size: clamp(14px,1.4vw,17px); color: var(--ink-2); max-width: 38ch; line-height: 1.5; }
.hero3 .hero-foot { margin-top: 6px; }
@media (max-width: 760px){
  .hero3-grid { grid-template-columns: 1fr; }
  .hero3-cap p, .hero3-sub { white-space: normal; }
  .hero3-foot { grid-template-columns: 1fr; text-align: left; gap: 16px; }
  .hero3-foot .hero3-sub, .hero3-foot .hero-foot, .hero3-foot .cta-row { justify-self: start; }
  .hero3-col { min-height: auto; padding: 26px 16px; }
  .hero3-col + .hero3-col { border-top: 1px solid var(--line); }
  .hero3-col + .hero3-col::before { display: none; }
}

/* underlined statement links */
.statement-h { margin-top: 20px; max-width: 20ch; }
.ul-link {
  color: var(--ink); text-decoration: none; position: relative;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px; transition: background-size .3s, color .25s;
}
.ul-link:hover { color: var(--accent); background-size: 100% 100%; -webkit-text-fill-color: #fff; color: #fff; padding-inline: 4px; }
.statement-body { font-size: 17px; line-height: 1.6; max-width: 50ch; margin-top: 22px; }

/* terminal-style button (matches the mono cards) */
.btn-term {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--term); font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
  padding: 11px 18px; border-radius: 8px; white-space: nowrap;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(22,21,15,0.10);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .25s, color .25s;
}
.btn-term .arr { transition: transform .25s; }
.btn-term:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 rgba(22,21,15,0.14); }
.btn-term:hover .arr { transform: translateX(4px); }
.btn-term:active { transform: translate(0,0); box-shadow: 2px 2px 0 rgba(22,21,15,0.12); }
.btn-term.ghost { box-shadow: none; background: transparent; }
.btn-term.ghost:hover { background: var(--surface); box-shadow: 3px 3px 0 rgba(22,21,15,0.10); }

/* ============================================================
   craft layer — load orchestration · micro-interactions
   · section transitions · pinned beat
   ============================================================ */

/* ---- page-load orchestration ---- */
@media (prefers-reduced-motion: no-preference) {
  html.is-loading .nav,
  html.is-loading .hero-wrap > * { opacity: 0; }
  html.is-loading .hero-orbit { opacity: 0; transform: translateY(-50%) scale(0.96); }

  html.loaded .nav { animation: introFade .7s cubic-bezier(.16,1,.3,1) both; }
  html.loaded .hero-orbit { animation: introOrbit 1.4s cubic-bezier(.16,1,.3,1) .15s both; }
  html.loaded .hero-wrap > * { animation: introUp .9s cubic-bezier(.16,1,.3,1) both; }
  html.loaded .hero-wrap > *:nth-child(1){ animation-delay:.18s; }
  html.loaded .hero-wrap > *:nth-child(2){ animation-delay:.30s; }
  html.loaded .hero-wrap > *:nth-child(3){ animation-delay:.42s; }
  html.loaded .hero-wrap > *:nth-child(4){ animation-delay:.52s; }
  html.loaded .hero-wrap > *:nth-child(5){ animation-delay:.62s; }
  html.loaded .hero-wrap > *:nth-child(6){ animation-delay:.74s; }
}
@keyframes introUp   { from{ opacity:0; transform:translateY(26px);} to{ opacity:1; transform:none;} }
@keyframes introFade { from{ opacity:0; transform:translateY(-10px);} to{ opacity:1; transform:none;} }
@keyframes introOrbit{ from{ opacity:0; transform:translateY(-50%) scale(0.94) rotate(-8deg);} to{ opacity:.9; transform:translateY(-50%) scale(1) rotate(0);} }
/* the masked hero headline keeps its own clip reveal; let intro handle opacity only */
html.loaded .hero-wrap .display { clip-path: none; }

/* ---- animated link underline (footer + inline) ---- */
.foot-grid a, .qa .ans a {
  position: relative; background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s cubic-bezier(.16,1,.3,1), color .2s;
}
.foot-grid a:hover, .qa .ans a:hover { background-size: 100% 1px; }
.qa .ans a { border-bottom: none; }

/* ---- magnetic / pressable buttons ---- */
.btn { will-change: transform; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120px 60px at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.32), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::after { opacity: 1; }

/* ---- tonal section transition into the dark viz ---- */
#viz { position: relative; }
#viz::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 140px;
  background: linear-gradient(180deg, transparent, rgba(33,34,41,0.05));
  pointer-events: none; z-index: -1;
}
.viz { position: relative; }

/* ---- pinned signature beat: panel pins, two screens cross-fade.
   Gated behind a JS-added `.pin` class so it degrades to normal
   stacked flow if JS is off / fails. ---- */
#viz.pin .viz-track { height: 220vh; }
#viz.pin .viz { position: sticky; top: 6vh; height: 88vh; margin: 0; }
#viz.pin .viz-screen { position: absolute; inset: 0; will-change: opacity, transform; transform-origin: center; backface-visibility: hidden; }
#viz.pin .viz-b { opacity: 0; }
.viz-b { display: flex; flex-direction: column; justify-content: center; gap: clamp(18px,3vw,32px); }
.viz-b-head { position: static; }
.viz-b-head .eyebrow { margin-bottom: 14px; }

/* ---- tempo: a tighter, denser section after airy ones ---- */
.sec.sec-tight { padding-block: clamp(46px, 5.5vw, 82px); }

/* ---- smoother in-page nav ---- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---- cursor fallback: only hide native cursor when it actually moves
   (hybrid laptops with touch get the native cursor until a mouse is used) ---- */
@media (pointer: fine) { html, body, a, button, [data-hover], input, label { cursor: auto; } }
@media (pointer: fine) { html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor [data-hover], html.has-cursor input, html.has-cursor label, html.has-cursor .skip-link { cursor: none; } }
html:not(.has-cursor) #cur-dot, html:not(.has-cursor) #cur-ring { opacity: 0; }

/* ============================================================
   statement — text inside a rounded box, line in from the left,
   node branch out to the right
   ============================================================ */
.statement-sec { position: relative; overflow: hidden; }
.statement-box {
  position: relative; max-width: 720px;
  border: 1.5px solid rgba(22,21,15,0.13); border-radius: 28px;
  padding: clamp(30px,4vw,52px) clamp(30px,4vw,56px);
}
.sb-line { position: absolute; top: 50%; right: 100%; width: 100vw; height: 1.5px; background: rgba(22,21,15,0.12); }
.sb-line::before { content: ""; position: absolute; right: 0; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sb-nodes { position: absolute; left: calc(100% - 1px); top: 0; height: 100%; width: clamp(220px, 26vw, 380px); pointer-events: none; }
.sb-nodes svg { width: 100%; height: 100%; display: block; }
.sb-flow { animation: sgflow 2.4s linear infinite; }
@keyframes sgflow { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce){ .sb-flow { animation: none; } }
.statement-box .statement-h { margin-top: 18px; }
.statement-box .statement-body { margin-top: 18px; }
@media (max-width: 880px){ .sb-nodes, .sb-line { display: none; } .statement-box { max-width: none; } }

/* stack section — wire threading through the connected tiles */
.stack-sec { position: relative; overflow: hidden; }
.eco-wrap { position: relative; }
.eco-net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.stack-sec .eco-grid { position: relative; z-index: 1; }
#eco-net-marker { filter: drop-shadow(0 0 5px rgba(106,95,176,0.6)); }
@media (prefers-reduced-motion: reduce){ #eco-net-marker { display: none; } }
.eco-net .eco-pin { fill: var(--accent); }
@media (max-width: 760px){ .eco-net { display: none; } }

/* ============================================================
   process — wireframe globe background
   ============================================================ */
.globe-sec { position: relative; overflow: visible; padding-block: clamp(56px, 6vw, 104px); }
.globe-bg { position: absolute; left: 0; right: 0; top: -22%; height: 144%; z-index: 0; pointer-events: none; }
.globe-bg canvas { width: 100%; height: 100%; display: block; }
.globe-sec .wrap { position: relative; z-index: 1; }

/* ============================================================
   testimonials — heading left + page-flip card right
   ============================================================ */
.words-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,84px); align-items: center; }
.words-head h2 { margin-top: 18px; }
.words-sub { font-size: 14px; margin-top: 16px; max-width: 32ch; }
.words-flip { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.bookcard { position: relative; width: 100%; max-width: 500px; aspect-ratio: 3 / 2; perspective: 2000px; cursor: pointer; }
.book-page {
  position: absolute; inset: 0; border-radius: 14px; background: var(--surface);
  border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 rgba(22,21,15,0.08);
  padding: clamp(26px,3vw,38px); display: flex; flex-direction: column;
}
.book-base { z-index: 1; }
/* two-sided turning leaf */
.book-leaf { position: absolute; inset: 0; transform-origin: center center; transform-style: preserve-3d; z-index: 5; will-change: transform; pointer-events: none; }
.book-leaf.turning { transition: transform .8s cubic-bezier(.5,.05,.2,1); }
.book-leaf .face {
  position: absolute; inset: 0; border-radius: 14px; background: var(--surface);
  border: 1.5px solid var(--ink); padding: clamp(26px,3vw,38px);
  display: flex; flex-direction: column; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 22px 48px rgba(22,21,15,0.20);
}
.book-leaf .face.back { transform: rotateY(180deg); }
/* lighting sweep — darkens the leaf toward the spine as it turns */
.book-leaf .face::after { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; opacity: 0; transition: opacity .8s; background: linear-gradient(105deg, rgba(22,21,15,0.16), rgba(22,21,15,0) 55%); }
.book-leaf.turning .face::after { opacity: 1; }
.bk-head { font-family: var(--term); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.bk-ch { font-family: var(--term); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-top: clamp(20px,3vw,34px); }
.bk-q { font-family: var(--display); font-weight: 500; font-size: clamp(18px,1.9vw,23px); line-height: 1.42; letter-spacing: -0.01em; color: var(--ink); margin-top: 16px; text-wrap: pretty; }
.bk-foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; padding-top: 20px; }
.bk-name { font-family: var(--term); font-weight: 700; font-size: 13px; color: var(--ink); }
.bk-name::before { content: "// "; color: var(--ink-3); }
.bk-role { font-family: var(--term); font-size: 11.5px; color: var(--ink-3); }
.bk-page { position: absolute; right: clamp(26px,3vw,38px); bottom: clamp(22px,2.6vw,30px); font-family: var(--term); font-size: 12px; color: var(--ink-3); }
.book-corner { position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; z-index: 3; pointer-events: none; border-bottom-right-radius: 14px; background: linear-gradient(135deg, transparent 50%, rgba(22,21,15,0.10) 50%, rgba(22,21,15,0.2)); transition: width .3s, height .3s; }
.bookcard:hover .book-corner { width: 50px; height: 50px; }
.book-foot { display: flex; align-items: center; gap: 16px; }
.book-nav { width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); font-family: var(--term); font-size: 18px; line-height: 1; box-shadow: 2px 2px 0 rgba(22,21,15,0.1); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.book-nav:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 rgba(22,21,15,0.14); }
.book-idx { font-family: var(--term); font-size: 13px; color: var(--ink-2); min-width: 66px; text-align: center; }
@media (max-width: 860px){ .words-grid { grid-template-columns: 1fr; gap: 36px; } .bookcard { max-width: 360px; } }

/* ============================================================
   TWEAKS — three expressive controls (accent · material · motion)
   Defaults (violet / terminal / balanced) are no-ops, so the page
   looks identical until a control is touched.
   ============================================================ */

/* accent glow follows the active accent */
body { background-image: radial-gradient(1200px 700px at 50% -8%, var(--accent-tint), transparent 60%); }

/* ---- MATERIAL: soft — trade the terminal hard-offset blocks for
   rounded, blurred, neumorphic surfaces across every card ---- */
html[data-material="soft"] .step,
html[data-material="soft"] .work-card,
html[data-material="soft"] .aval,
html[data-material="soft"] .plan,
html[data-material="soft"] .quote,
html[data-material="soft"] .flow2-node,
html[data-material="soft"] .demo-drawer-inner,
html[data-material="soft"] .iso-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--nm);
  background-image: none;
}
html[data-material="soft"] .chip,
html[data-material="soft"] .btn-term {
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--nm-sm);
}
html[data-material="soft"] .folder {
  border: 1px solid var(--line);
  border-radius: 6px 20px 20px 20px;
  box-shadow: var(--nm);
}
html[data-material="soft"] .folder::before {
  border: 1px solid var(--line);
  border-bottom: none;
}
html[data-material="soft"] .flow2-node.is-root,
html[data-material="soft"] .plan-feature { border-color: var(--accent); }
/* replace the hard-offset hover with a soft float */
html[data-material="soft"] .step:hover,
html[data-material="soft"] .work-card:hover,
html[data-material="soft"] .aval:hover,
html[data-material="soft"] .flow2-node:hover,
html[data-material="soft"] .folder:hover,
html[data-material="soft"] .plan:hover {
  transform: translateY(-7px);
  box-shadow: var(--nm), 0 34px 64px rgba(22,21,15,0.12);
}

/* ---- MOTION: calm / kinetic — reshape how the whole page arrives
   on scroll (travel distance + pacing) ---- */
html[data-motion="calm"]    [data-reveal] { transition-duration: 1.1s; }
html[data-motion="kinetic"] [data-reveal] { transition-duration: .56s; }
html[data-motion="calm"]    [data-reveal]:not(.in) { transform: translateY(16px); }
html[data-motion="kinetic"] [data-reveal]:not(.in) { transform: translateY(72px) scale(0.985); }
/* echo the energy in the scroll cue + ambient breathing */
html[data-motion="calm"]    .hero-scrollcue::before,
html[data-motion="calm"]    .hero-scrollcue::after { animation-duration: 2.8s; }
html[data-motion="kinetic"] .hero-scrollcue::before,
html[data-motion="kinetic"] .hero-scrollcue::after { animation-duration: 1.05s; }
html[data-motion="calm"]    .eco-ic { animation-duration: 6.5s; }
html[data-motion="kinetic"] .eco-ic { animation-duration: 2.6s; }

/* ---- tweaks panel chrome: keep it on-brand ---- */
#tweaks-root { position: relative; z-index: 10000; }

/* ============================================================
   About — blueprint / spec-sheet language
   ============================================================ */
.bp-sec { position: relative; }
.bp-x { position: absolute; font-family: var(--term); font-weight: 700; color: var(--ink-3); font-size: 18px; opacity: .5; line-height: 1; pointer-events: none; transform: translate(-50%,-50%); }
.bp-tag { font-family: var(--term); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.bp-top { display: flex; justify-content: space-between; gap: 16px; border-block: 1px solid var(--line); padding: 11px 0; margin-bottom: clamp(28px,5vw,52px); }
.bp-scatter { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; margin-top: clamp(20px,3vw,34px); }
.bp-bot { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: clamp(28px,4vw,44px); }
.hl { background: var(--accent); color: #fff; padding: 0 .14em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ============================================================
   About — pixel-logo reveal hero (dark)
   ============================================================ */
.about-hero {
  background: var(--dark); color: var(--paper-2);
  min-height: 76vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: clamp(28px,5vh,48px);
  text-align: center; overflow: hidden; position: relative;
}
.al-final {
  width: clamp(200px, 30vw, 380px); height: auto; opacity: 1;
}
.about-hero.al-in .al-final { animation: alIn 1.1s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes alIn { from { opacity: 0; transform: scale(.92); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.about-hero.al-done .al-final { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .al-final { animation: none !important; } }
.al-stage { display: flex; align-items: center; gap: clamp(26px,5vw,68px); }
.al-mark { width: clamp(96px,15vw,180px); height: auto; display: block; }
.al-blk { fill: var(--paper-2); transform-box: fill-box; transform-origin: center; }
.al-mark.in .al-blk { animation: alCellIn .5s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes alCellIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
.al-blk.glitch { animation: alGlitch 2.8s steps(1) infinite; }
@keyframes alGlitch { 0%,86%,100% { opacity: 1; } 88% { opacity: .12; } 90% { opacity: 1; } 93% { opacity: .35; } }
.al-divider { width: 1.5px; height: clamp(54px,9vw,104px); background: rgba(233,236,242,0.38); transform-origin: center; }
.al-stage.in .al-divider { animation: alDiv .6s cubic-bezier(.16,1,.3,1) .5s backwards; }
@keyframes alDiv { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.al-word {
  font-family: var(--display); font-weight: 600; font-size: clamp(44px,9vw,116px);
  letter-spacing: -0.045em; line-height: 1; color: var(--paper-2);
  font-size: clamp(30px,6vw,74px);
}
.al-stage.in .al-word { animation: alWord .6s cubic-bezier(.16,1,.3,1) .7s backwards; }
@keyframes alWord { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.al-ai { color: var(--accent-2); font-size: 0.46em; vertical-align: baseline; margin-left: 0.04em; }
.al-cap {
  font-family: var(--term); letter-spacing: .26em; text-transform: uppercase;
  color: rgba(233,236,242,0.5); font-size: clamp(11px,1.1vw,13px);
}
.about-hero.in .al-cap { animation: alCap .6s ease 1.2s backwards; }
@keyframes alCap { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .al-blk, .al-divider, .al-word, .al-cap { animation: none !important; }
}
.about-hero.al-done .al-blk:not(.glitch),
.about-hero.al-done .al-divider,
.about-hero.al-done .al-word,
.about-hero.al-done .al-cap { animation: none !important; }

/* navbar dark mode (over dark sections) */
.nav.nav-dark { background: rgba(6,7,10,0.72); -webkit-backdrop-filter: blur(20px) saturate(120%); backdrop-filter: blur(20px) saturate(120%); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.nav.nav-dark .brand-logo { filter: brightness(0) invert(1); }
.nav.nav-dark .nav-links { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); box-shadow: none; }
.nav.nav-dark .nav-links a { color: rgba(233,236,242,0.7); }
.nav.nav-dark .nav-links a:hover { color: #fff; }
.nav.nav-dark .nav-links a.active { color: #fff; background: rgba(255,255,255,0.12); }
.nav.nav-dark .btn-term { background: transparent; color: var(--paper-2); border-color: rgba(255,255,255,0.5); box-shadow: 3px 3px 0 rgba(0,0,0,0.4); }

/* ============================================================
   work — project preview modal (overlay + image carousel)
   ============================================================ */
body.modal-open { overflow: hidden; }
.work-modal { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: clamp(16px,4vw,48px); }
.work-modal[hidden] { display: none; }
.wm-backdrop { position: absolute; inset: 0; background: rgba(22,21,15,0.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: wmFade .25s ease; }
.wm-card {
  position: relative; z-index: 1; width: min(680px, 100%);
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px;
  box-shadow: 10px 12px 0 rgba(22,21,15,0.14), 0 30px 70px rgba(22,21,15,0.28);
  padding: clamp(20px,2.6vw,28px); animation: wmPop .32s cubic-bezier(.16,1,.3,1);
}
@keyframes wmFade { from { opacity: 0; } }
@keyframes wmPop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.wm-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface); font-family: var(--term); font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 2px 2px 0 rgba(22,21,15,0.1); transition: transform .2s, box-shadow .2s; }
.wm-x:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 rgba(22,21,15,0.14); }
.wm-head { padding-right: 44px; }
.wm-title { display: block; font-family: var(--term); font-weight: 700; font-size: clamp(17px,2vw,21px); letter-spacing: -0.01em; }
.wm-kicker { display: block; font-family: var(--term); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.wm-stage { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.wm-frame { position: relative; flex: 1 1 auto; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; border: 1px solid var(--line); }
.wm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.wm-ph { display: grid; place-items: center; gap: 12px; text-align: center; }
.wm-ph .ph-icon { width: 52px; height: 42px; border: 1.5px solid var(--ink-3); border-radius: 6px; position: relative; display: block; }
.wm-ph .ph-icon::before { content: ""; position: absolute; left: 7px; right: 7px; bottom: 7px; height: 14px; background: var(--ink-3); opacity: .35; clip-path: polygon(0 100%, 32% 42%, 52% 66%, 74% 22%, 100% 100%); }
.wm-cap { font-family: var(--term); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.wm-arrow { flex: none; width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--surface); font-family: var(--term); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 rgba(22,21,15,0.1); transition: transform .2s, box-shadow .2s; }
.wm-arrow:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 rgba(22,21,15,0.14); }
.wm-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.wm-dots { display: flex; gap: 7px; }
.wm-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; transition: background .2s; }
.wm-dots i.on { background: var(--accent); border-color: var(--accent); }
.wm-path { font-family: var(--term); font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 560px){ .wm-arrow { width: 34px; height: 34px; } .wm-path { display: none; } }

/* ============================================================
   final CTA — slowly interlocking concentric orbits
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .final .orbit ellipse { transform-box: fill-box; transform-origin: center; }
  .final .orbit ellipse:nth-of-type(1) { animation: spin0   64s linear infinite; }
  .final .orbit ellipse:nth-of-type(2) { animation: spin45  82s linear infinite reverse; }
  .final .orbit ellipse:nth-of-type(3) { animation: spin90  72s linear infinite; }
  .final .orbit ellipse:nth-of-type(4) { animation: spin135 96s linear infinite reverse; }
}
@keyframes spin0   { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes spin45  { from { transform: rotate(45deg); }  to { transform: rotate(405deg); } }
@keyframes spin90  { from { transform: rotate(90deg); }  to { transform: rotate(450deg); } }
@keyframes spin135 { from { transform: rotate(135deg); } to { transform: rotate(495deg); } }

/* ============================================================
   logo — circuit boost on hover/active
   ============================================================ */
/* logo hover (nav lockup) */
.brand .brand-logo { will-change: transform; }

/* ============================================================
   services — node / circuit-chip grid
   ============================================================ */
.svc-net-sec { position: relative; }
.svc-net {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px;
  background-image: radial-gradient(rgba(22,21,15,0.05) 1px, transparent 1px);
  background-size: 22px 22px; padding: 30px; border-radius: 18px;
  border: 1px solid var(--line);
}
.svc-chip {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 12px;
  padding: 24px 22px 22px; box-shadow: 5px 5px 0 rgba(22,21,15,0.07);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s;
}
.svc-chip:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 rgba(22,21,15,0.1); }
/* IC pins along the top + bottom edges */
.svc-chip::before, .svc-chip::after {
  content: ""; position: absolute; left: 22px; right: 22px; height: 5px;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 16px);
  opacity: .5;
}
.svc-chip::before { top: -3px; } .svc-chip::after { bottom: -3px; }
.chip-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1.5px solid var(--line); }
.chip-id { font-family: var(--term); font-weight: 700; font-size: 11px; letter-spacing: .12em; color: var(--ink-3); }
.chip-led { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 3px rgba(22,21,15,0.05); }
.svc-chip h3 { font-family: var(--term); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin-top: 18px; }
.svc-chip p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; margin-top: 10px; text-wrap: pretty; }
.chip-tools { font-family: var(--term); font-size: 11px; letter-spacing: .03em; color: var(--ink-3); margin-top: auto; padding-top: 18px; text-transform: uppercase; }
.svc-chip.is-root { border-color: var(--accent); box-shadow: 5px 5px 0 rgba(106,95,176,0.18); }
.svc-chip.is-root::before, .svc-chip.is-root::after { background-image: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 16px); opacity: .6; }
.svc-chip.is-root .chip-id { color: var(--accent); }
.svc-chip.is-root .chip-led { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint), 0 0 10px rgba(106,95,176,0.5); }
.svc-chip.is-root:hover { box-shadow: 8px 8px 0 rgba(106,95,176,0.22); }
@media (max-width: 900px){ .svc-net { grid-template-columns: repeat(2,1fr); gap: 18px; padding: 20px; } }
@media (max-width: 560px){ .svc-net { grid-template-columns: 1fr; } }

/* ============================================================
   boot-sequence terminal (home · services)
   ============================================================ */
.boot { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(22,21,15,0.05); }
/* scannable service grid under the terminal */
.svc-scan { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.svc-scan-cell { background: var(--bg); padding: 22px 24px 24px; display: block; transition: background .25s, transform .25s; }
.svc-scan-cell:hover { background: var(--surface); }
.svc-scan-cell .ssc-n { font-family: var(--term); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); }
.svc-scan-cell h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-top: 10px; color: var(--ink); }
.svc-scan-cell:hover h3 { color: var(--accent); }
.svc-scan-cell p { color: var(--ink-2); font-size: 13.5px; margin-top: 5px; line-height: 1.45; }
@media (max-width: 760px){ .svc-scan { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .svc-scan { grid-template-columns: 1fr; } }
.boot-bar { display: flex; align-items: center; gap: 8px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.boot-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.boot-bar span { font-family: var(--term); font-size: 11.5px; color: var(--ink-3); margin-left: 10px; letter-spacing: .06em; }
.boot-body { padding: 24px clamp(18px,3vw,36px) 32px; font-family: var(--term); font-size: clamp(14px,1.45vw,17px); line-height: 2.15; min-height: 360px; }
.boot-line { color: var(--ink-2); white-space: pre-wrap; }
.boot-line .ar { color: var(--accent); }
.boot-line .ok { color: #1f8a5b; }
.boot-line .mod { color: var(--ink); font-weight: 500; }
.boot-cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--accent); vertical-align: -2px; animation: bootblink 1s steps(1) infinite; }
@keyframes bootblink { 50% { opacity: 0; } }

/* ============================================================
   worktop modal + mini-mocks (services chips → tap to open)
   ============================================================ */
.svc-chip { cursor: pointer; }
.chip-open { font-family: var(--term); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.svc-chip:hover .chip-open { opacity: 1; transform: none; }
.wt-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(22,21,15,0.34); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.wt-overlay.open { opacity: 1; pointer-events: auto; }
.wt-card { width: min(680px, 96vw); background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: 10px 10px 0 rgba(22,21,15,0.12); overflow: hidden; transform: translateY(14px) scale(.98); transition: transform .35s cubic-bezier(.16,1,.3,1); }
.wt-overlay.open .wt-card { transform: none; }
.wt-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1.5px solid var(--line); }
.wt-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.wt-bar .wt-title { font-family: var(--term); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--ink); margin-left: 10px; text-transform: uppercase; }
.wt-close { margin-left: auto; width: 30px; height: 30px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); font-family: var(--term); font-size: 15px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.wt-close:hover { border-color: var(--accent); color: var(--accent); }
.wt-body { padding: clamp(20px,3vw,30px); }
.wt-h { font-family: var(--term); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.wt-desc { color: var(--ink-2); font-size: 14px; margin-top: 18px; text-wrap: pretty; }

.mk { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.flow-row { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 12px; }
.flow-node { width: 84px; height: 56px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--term); font-size: 10.5px; color: var(--ink-2); text-align: center; padding: 4px; }
.flow-link { width: 26px; height: 2px; background: var(--accent); opacity: .5; }
.cal { display: grid; grid-template-columns: repeat(7,1fr); gap: 7px; }
.cal div { aspect-ratio: 1; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); }
.cal div.f { background: rgba(106,95,176,0.16); border-color: rgba(106,95,176,0.3); }
.arts { display: flex; gap: 16px; flex-wrap: wrap; }
.art { width: 150px; height: 104px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.art::before { content: ""; position: absolute; left: 12px; top: 12px; width: 40%; height: 10px; border-radius: 3px; background: rgba(106,95,176,0.3); }
.art::after { content: ""; position: absolute; left: 12px; top: 32px; right: 12px; bottom: 12px; border-radius: 6px; background: var(--bg); }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; }
.bars div { width: 46px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg,var(--accent-2),var(--accent)); }
.slides { display: flex; gap: 14px; flex-wrap: wrap; }
.slide { width: 150px; height: 100px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); padding: 14px; }
.slide .sl-t { width: 60%; height: 9px; border-radius: 3px; background: rgba(106,95,176,0.35); }
.slide .sl-b { width: 100%; height: 7px; border-radius: 3px; background: var(--line); margin-top: 9px; }
.slide .sl-b.s { width: 70%; }
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.stat b { font-size: 26px; letter-spacing: -0.02em; }
.stat small { font-family: var(--term); font-size: 10px; color: var(--ink-3); display: block; margin-top: 4px; letter-spacing: .04em; }
@media (max-width: 540px){ .stats { grid-template-columns: 1fr 1fr; } }
