/* ============================================================
   Collins Creative — Homepage v2 (Superside-structured)
   Editorial software studio · serif-italic accents
   Three switchable palettes via [data-palette] on <html>
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800;900&family=Hanken+Grotesk:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Palette: SUPERSIDE (default) — dark ink-green + lime ---- */
:root,
:root[data-palette="superside"] {
  --ink:        #071f1c;
  --ink-2:      #0b2925;
  --paper:      #f6f7f0;
  --paper-2:    #eef1e6;
  --card:       #ffffff;
  --accent:     #dfff72;   /* lime */
  --accent-2:   #8dfdba;   /* mint — hero em / on-dark accent text */
  --accent-ink: #071f1c;   /* text on accent */
  --on-dark:    #f7f9f2;
  --on-dark-mut:rgba(247,249,242,.72);
  --muted:      #5c6b66;
  --line:       rgba(7,31,28,.16);
  --line-dark:  rgba(255,255,255,.14);
  --showcase:   #2c4d44;   /* card body inside dark showcase */
}

/* ---- Palette: MONO — Collins Creative monochrome ---- */
:root[data-palette="mono"] {
  --ink:        #15140f;
  --ink-2:      #3a3833;
  --paper:      #f7f6f3;
  --paper-2:    #fffefb;
  --card:       #fffefb;
  --accent:     #15140f;
  --accent-2:   #c9c7bf;
  --accent-ink: #f5f4ef;
  --on-dark:    #f5f4ef;
  --on-dark-mut:rgba(245,244,239,.66);
  --muted:      #6e6c64;
  --line:       rgba(21,20,15,.14);
  --line-dark:  rgba(255,255,255,.13);
  --showcase:   #232220;
}

/* ---- Palette: HYBRID — restrained green + soft lime ---- */
:root[data-palette="hybrid"] {
  --ink:        #112824;
  --ink-2:      #1a3a34;
  --paper:      #f4f5ef;
  --paper-2:    #ebeee4;
  --card:       #ffffff;
  --accent:     #cbe88a;
  --accent-2:   #a9d6b6;
  --accent-ink: #112824;
  --on-dark:    #f4f6ee;
  --on-dark-mut:rgba(244,246,238,.72);
  --muted:      #5a6a64;
  --line:       rgba(17,40,36,.15);
  --line-dark:  rgba(255,255,255,.14);
  --showcase:   #244a40;
}

:root {
  --sans:    'Schibsted Grotesk', system-ui, sans-serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;
  --serif:   'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
  --maxw:    1280px;
  --gut:     max(24px, calc((100% - var(--maxw)) / 2));
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 5000;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-family: var(--sans); font-weight: 700;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; line-height: 1.03; }

/* serif-italic emphasis device (Superside) */
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
:root[data-serif="off"] em {
  font-family: inherit;
  font-style: italic;
  font-weight: 500;
}

/* ---- Section gutters: center content to --maxw ---- */
section, .header-inner, .hero, .footer-inner { padding-inline: var(--gut); }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid currentColor;
  padding-bottom: 14px;
  margin-bottom: 30px;
  line-height: 1.1;
}
.eyebrow.plain { border-bottom: 0; padding-bottom: 0; margin-bottom: 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em;
  border-radius: 100px; padding: 15px 26px; min-height: 52px;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: var(--on-dark); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--ink);
  transition: background .4s var(--ease);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; font-size: 1.18rem; color: var(--on-dark); }
.brand .mark {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  transform: skew(-11deg);
}
.brand .mark span { transform: skew(11deg); }
.brand .slash { color: var(--accent-2); font-weight: 400; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; color: var(--on-dark-mut); position: relative; transition: color .25s; white-space: nowrap; }
.nav-links a:hover { color: var(--on-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { min-height: 44px; padding: 11px 20px; font-size: 0.9rem; }
.menu-btn { display: none; color: var(--on-dark); border: 1px solid rgba(255,255,255,.4); border-radius: 100px; padding: 10px 16px; font-family: var(--sans); font-weight: 600; font-size: .9rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink); color: var(--on-dark-mut);
  display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr);
  gap: clamp(48px, 6vw, 110px); align-items: center;
  padding-top: 76px; min-height: 100vh; overflow: hidden;
}
.hero-copy { padding-block: clamp(60px, 8vw, 90px); max-width: 640px; }
.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
  border: 1px solid var(--line-dark); border-radius: 100px; padding: 8px 15px; margin-bottom: 34px;
}
.hero-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); position: relative; }
.hero-status .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent-2); opacity: .4; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .5;} 80%,100% { transform: scale(1.7); opacity: 0; } }
.hero h1 {
  color: var(--on-dark);
  font-size: clamp(2.9rem, 5.2vw, 5rem); font-weight: 600; line-height: 0.99; letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero h1 em { color: var(--accent-2); font-weight: 400; letter-spacing: -0.01em; }
.hero-sub { color: var(--on-dark); font-size: clamp(1.08rem, 1.5vw, 1.26rem); line-height: 1.5; margin-top: 30px; max-width: 50ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 38px; align-items: center; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--on-dark-mut); letter-spacing: .02em; margin-top: 24px; }

/* Scoping terminal card */
.hero-term {
  align-self: center; width: 100%; max-width: 540px; justify-self: end;
  background: var(--ink2, var(--ink-2)); border: 1px solid var(--line-dark); border-radius: 18px;
  overflow: hidden; box-shadow: 0 40px 90px -45px rgba(0,0,0,.7);
}
.term-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); }
.term-lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mut); }
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-dark); }
.term-body { padding: 26px; }
.term-qlbl, .term-albl { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.term-q { font-family: var(--body); font-size: 1.28rem; color: var(--on-dark); line-height: 1.35; min-height: 2.7em; }
.term-cur { display: inline-block; width: 9px; height: 1.05em; background: var(--accent-2); vertical-align: -2px; margin-left: 3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-divide { height: 1px; background: var(--line-dark); margin: 24px 0; }
.term-a { display: flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.term-a.show { opacity: 1; transform: none; }
.term-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 16px; flex: none; }
.term-nm { display: block; font-family: var(--sans); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--on-dark); }
.term-tg { display: block; font-size: 0.92rem; color: var(--on-dark-mut); margin-top: 2px; }
.term-chips { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; min-height: 30px; }
.term-chips span { font-family: var(--mono); font-size: 11px; color: var(--on-dark-mut); border: 1px solid var(--line-dark); border-radius: 100px; padding: 6px 12px; opacity: 0; transform: translateY(4px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.term-chips span.in { opacity: 1; transform: none; }
.term-chips span.on { background: var(--accent-2); color: var(--ink); border-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .term-cur { animation: none; }
  .term-a, .term-chips span { transition: none; }
}

/* ============================================================
   LOGOS
   ============================================================ */
.logos { background: var(--paper); text-align: center; padding-block: clamp(72px, 10vw, 120px); }
.logos .lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink); margin-bottom: clamp(40px, 5vw, 64px); font-family: var(--sans); font-weight: 500; letter-spacing: -0.01em; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 56px); }
.logo-row .logo { display: inline-flex; align-items: center; opacity: .55; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.logo-row .logo:hover { opacity: 1; filter: none; }
.logo-row .logo img { height: clamp(28px, 3.4vw, 44px); width: auto; max-width: 180px; object-fit: contain; display: block; }
.logo-row .logo-freestyle img { max-width: 240px; }

/* ============================================================
   SPLIT SECTIONS
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px);
  align-items: center; padding-block: clamp(72px, 10vw, 132px);
}
.split h2 { font-size: clamp(2.2rem, 3.8vw, 3.7rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.split .lead { font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.2; margin-top: 30px; font-family: var(--sans); font-weight: 500; letter-spacing: -0.015em; }
.split p.body { color: var(--ink-2); font-size: 1.08rem; line-height: 1.5; margin-top: 24px; max-width: 50ch; }
.split .btn { margin-top: 32px; }
.feature-img { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 4 / 3.4; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.split.flip .feature-img { order: -1; }

/* media card (partner) */
.media-card {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1.5; background: var(--ink);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.media-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(7,31,28,.55), rgba(7,31,28,.05)); }
.media-card .play {
  position: absolute; left: 28px; bottom: 28px; z-index: 2;
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 26px;
}
.media-card .tagline { position: absolute; right: 26px; top: 24px; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .9; }

/* ============================================================
   DARK SHOWCASE
   ============================================================ */
.showcase { background: var(--ink); color: var(--on-dark); text-align: center; padding-block: clamp(80px, 11vw, 150px); }
.showcase .eyebrow { color: var(--accent-2); }
.showcase h2 { font-size: clamp(2.1rem, 3.6vw, 3.5rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto clamp(48px, 6vw, 88px); text-wrap: balance; }
.show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.show-card { background: var(--showcase); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.show-card .ph { aspect-ratio: 1 / 0.92; overflow: hidden; }
.show-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.show-card h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 500; letter-spacing: -0.015em; padding: 30px 30px 34px; color: var(--on-dark); }
.show-card:nth-child(1) h3 { background: var(--accent); color: var(--accent-ink); }
.show-card:nth-child(3) h3 { background: var(--paper); color: var(--ink); }

/* ============================================================
   OUTGROWN SPLIT
   ============================================================ */
.outgrown { background: var(--paper); padding-block: clamp(72px, 10vw, 132px); }
.outgrown-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: flex-end; margin-bottom: clamp(40px, 5vw, 60px); }
.outgrown-head h2 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); font-weight: 600; line-height: 0.99; letter-spacing: -0.03em; max-width: 16ch; text-wrap: balance; }
.outgrown-head h2 em { color: var(--muted); }
.outgrown-head p { color: var(--muted); font-size: 1.06rem; line-height: 1.5; max-width: 36ch; padding-bottom: 6px; }
.outgrown-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.og-pane { border-radius: 16px; padding: clamp(28px, 3vw, 40px); }
.og-pane.bad { background: var(--paper-2); border: 1px solid var(--line); }
.og-pane.good { background: var(--ink); }
.og-lab { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 24px; }
.og-pane.bad .og-lab { color: var(--muted); }
.og-pane.good .og-lab { color: var(--accent-2); }
.og-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; font-family: var(--sans); font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -0.01em; }
.og-pane.bad .og-row { border-bottom: 1px solid var(--line); color: var(--muted); }
.og-pane.bad .og-row:last-child { border-bottom: 0; }
.og-pane.good .og-row { border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.og-pane.good .og-row:last-child { border-bottom: 0; }
.og-x, .og-c { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 13px; }
.og-x { background: rgba(180,86,74,.14); color: #b4564a; }
.og-c { background: var(--accent); color: var(--accent-ink); }
.og-t { text-decoration: line-through; text-decoration-color: rgba(92,107,102,.5); }

/* ============================================================
   STORIES
   ============================================================ */
.stories { padding-block: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
.stories-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 4vw, 52px); }
.stories-head .eyebrow { display: block; margin-bottom: 16px; }
.stories-head h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance; }
.stories-head h2 em { color: var(--muted); }
.stories-all { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; padding-bottom: 8px; transition: gap .3s var(--ease); }
.stories-all:hover { gap: 13px; }
.stories-all .arrow { transition: transform .3s var(--ease); }
.stories-all:hover .arrow { transform: translate(2px, -2px); }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story { position: relative; border-radius: 14px; overflow: hidden; min-height: 460px; color: #fff; display: block; }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story:hover img { transform: scale(1.04); }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.78)); }
.story-body { position: absolute; inset: 0; z-index: 1; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; }
.story .tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.6); border-radius: 100px; padding: 7px 13px; margin-bottom: auto; }
.story h3 { font-size: clamp(1.5rem, 2.2vw, 2.05rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; max-width: 22ch; }
.story .link { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; gap: 8px; }
.story:hover .link .arrow { transform: translateX(4px); }
.story .link .arrow { transition: transform .35s var(--ease); }

/* ============================================================
   SERVICES CLOUD
   ============================================================ */
.services { background: linear-gradient(var(--paper) 0%, var(--paper-2) 100%); text-align: center; padding-block: clamp(80px, 10vw, 130px); }
.services h2 { font-size: clamp(2.1rem, 3.8vw, 3.5rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; max-width: 24ch; margin: 0 auto clamp(44px, 5vw, 66px); text-wrap: balance; }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 940px; margin: 0 auto; }
.cloud span {
  font-family: var(--sans); font-weight: 600; font-size: clamp(.95rem, 1.4vw, 1.12rem); letter-spacing: -0.01em;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 24px;
  box-shadow: 0 10px 22px rgba(7,31,28,.05);
}
.cloud span:nth-child(3n+1) { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.cloud span:nth-child(5n+3) { background: var(--ink); color: var(--on-dark); border-color: transparent; }

/* ============================================================
   CASE GRID
   ============================================================ */
.cases { padding-block: clamp(72px, 9vw, 120px); }
.cases h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); font-weight: 600; letter-spacing: -0.025em; max-width: 18ch; margin-bottom: clamp(40px, 5vw, 60px); }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-card { border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; min-height: 230px; display: flex; flex-direction: column; transition: background .35s var(--ease); background: var(--card); }
.case-card:hover { background: var(--paper-2); transform: translateY(-3px); box-shadow: 0 20px 44px -30px rgba(7,31,28,.35); }
a.case-card { color: inherit; transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.case-card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 14px; }
.case-card p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.case-card .yr { margin-top: auto; padding-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }

/* ============================================================
   COMPARE
   ============================================================ */
.compare { background: var(--ink); color: var(--on-dark); padding-block: clamp(80px, 11vw, 140px); }
.compare h2 { font-size: clamp(2.1rem, 3.8vw, 3.6rem); font-weight: 600; letter-spacing: -0.025em; max-width: 18ch; margin-bottom: clamp(40px, 5vw, 64px); text-wrap: balance; }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.compare-card { border: 1px solid var(--line-dark); border-radius: 14px; padding: 34px 30px; min-height: 240px; display: flex; flex-direction: column; }
.compare-card h3 { font-size: 1.55rem; font-weight: 600; margin-bottom: 16px; }
.compare-card p { color: var(--on-dark-mut); font-size: 1.02rem; line-height: 1.5; }
.compare-card.selected { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.compare-card.selected p { color: var(--accent-ink); opacity: .82; }
.compare-card .pin { margin-top: auto; padding-top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

/* ============================================================
   SYSTEM / PROCESS PANEL
   ============================================================ */
.system { padding-block: clamp(80px, 11vw, 140px); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 6vw, 96px); align-items: center; }
.system h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; }
.system p { color: var(--muted); font-size: 1.08rem; line-height: 1.55; margin-top: 24px; max-width: 44ch; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px rgba(7,31,28,.1); padding: 18px; }
.panel-row { border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; margin-bottom: 14px; display: flex; align-items: center; gap: 18px; transition: background .35s var(--ease), color .35s var(--ease); }
.panel-row:last-child { margin-bottom: 0; }
.panel-row .step { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; opacity: .6; }
.panel-row .name { font-family: var(--sans); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.panel-row.active { background: var(--ink); color: var(--on-dark); border-color: transparent; }
.panel-row.active .name { color: var(--accent-2); }
.panel-row.active .step { opacity: .8; }

/* ============================================================
   FOUNDERS
   ============================================================ */
.founders { padding-block: clamp(72px, 10vw, 132px); }
.founders-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.founders-head h2 { font-size: clamp(2.2rem, 3.8vw, 3.7rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.founders-head > p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.5; max-width: 44ch; }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.founder { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; }
.founder-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 4.2; background: var(--paper-2); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-body { padding: 26px 18px 18px; }
.founder-body .role { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.founder-body h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; font-size: 1.6rem; margin-bottom: 12px; }
.founder-body p { color: var(--ink-2); font-size: 1.04rem; line-height: 1.58; max-width: 42ch; }
.founders-cta { margin-top: clamp(32px, 4vw, 48px); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { background: var(--ink); color: var(--on-dark); text-align: center; padding-block: clamp(90px, 12vw, 150px); }
.final-cta h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.0; max-width: 16ch; margin: 0 auto; text-wrap: balance; }
.final-cta h2 em { color: var(--accent-2); font-weight: 400; }
.final-cta p { color: var(--on-dark-mut); font-size: 1.15rem; margin: 26px auto 40px; max-width: 48ch; }
.final-cta .cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--on-dark); }
.footer-inner { padding-block: clamp(56px, 7vw, 84px) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; border-bottom: 1px solid var(--line-dark); }
.footer .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--on-dark-mut); max-width: 32ch; font-size: 0.98rem; }
.footer-col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; font-weight: 500; }
.footer-col a { display: block; color: var(--on-dark-mut); font-size: 0.97rem; padding: 6px 0; transition: color .25s; }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; flex-wrap: wrap; }
.footer-bottom p { font-family: var(--mono); font-size: 12px; color: var(--on-dark-mut); letter-spacing: .02em; }
.footer-bottom .socials { display: flex; gap: 22px; }
.footer-bottom .socials a { font-size: 0.9rem; color: var(--on-dark-mut); }
.footer-bottom .socials a:hover { color: var(--on-dark); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js-anim .reveal:not(.in) { opacity: 0; transform: translateY(22px); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal:not(.in) { opacity: 1; transform: none; }
  .reveal { transition: none; }
  .hero-status .dot::after, .tile img, .story img { animation: none; transition: none; }
}

/* ============================================================
   POPUP — multi-step project wizard
   ============================================================ */
.pf-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); background: rgba(7,15,13,.6); backdrop-filter: blur(7px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
.pf-overlay.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
.pf-dialog { position: relative; width: 100%; max-width: 600px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 90px -40px rgba(7,20,16,.5); transform: translateY(16px) scale(.984); transition: transform .35s var(--ease); max-height: calc(100dvh - 48px); overflow: hidden; display: flex; flex-direction: column; }
.pf-overlay.open .pf-dialog { transform: none; }
.pf-close { position: absolute; top: 14px; right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--muted); display: grid; place-items: center; transition: background .25s, color .25s; }
.pf-close:hover, .pf-close:focus-visible { background: var(--paper-2); color: var(--ink); }
.pf-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* header w/ progress */
.pf-top { padding: clamp(28px,3.5vw,40px) clamp(28px,4vw,44px) 0; }
.pf-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pf-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pf-progress { display: flex; gap: 7px; margin-top: 20px; }
.pf-progress .seg { flex: 1; height: 4px; border-radius: 100px; background: var(--paper-2); overflow: hidden; }
.pf-progress .seg::after { content: ""; display: block; height: 100%; width: 0; background: var(--ink); border-radius: 100px; transition: width .4s var(--ease); }
.pf-progress .seg.done::after { width: 100%; }
.pf-progress .seg.active::after { width: 100%; background: var(--accent); }

/* body / steps */
.pf-body { padding: 24px clamp(28px,4vw,44px) clamp(28px,4vw,44px); overflow-y: auto; display: flex; flex-direction: column; }
.pf-step { display: none; }
.pf-step.active { display: flex; flex-direction: column; flex: 1; animation: pfIn .4s var(--ease); }
@keyframes pfIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pf-step h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(1.5rem,2.8vw,2rem); line-height: 1.08; margin-bottom: 8px; max-width: 18ch; }
.pf-step h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.pf-step .sub { color: var(--muted); font-size: 1rem; margin-bottom: 26px; max-width: 42ch; }

/* choice grid (step 1) */
.pf-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-choice { display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.pf-choice:hover { border-color: var(--ink); transform: translateY(-1px); }
.pf-choice.sel { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.pf-choice .ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.pf-choice.sel .ic { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pf-choice .ic svg { width: 20px; height: 20px; }
.pf-choice .ct { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.15; }

/* fields */
.pf-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pf-field > span, .pf-field > label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pf-field > span em, .pf-field > label em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .7; }
.pf-field input, .pf-field textarea, .pf-field select { font-family: var(--body); font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s; resize: vertical; width: 100%; }
.pf-field input:focus, .pf-field textarea:focus, .pf-field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(7,31,28,.08); }
.pf-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pf-privacy { color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: 2px; }
.pf-privacy a, .pf-error a { text-decoration: underline; text-underline-offset: 2px; }
.pf-error { color: #9f2f26; font-size: .9rem; line-height: 1.4; min-height: 1.3em; margin-top: 10px; }
.pf-submit[disabled], .pf-foot .btn[disabled] { cursor: wait; opacity: .7; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pf-pill { font-family: var(--sans); font-weight: 500; font-size: .92rem; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); cursor: pointer; transition: all .2s; }
.pf-pill:hover { border-color: var(--ink); }
.pf-pill.sel { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* footer nav */
.pf-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 28px; }
.pf-foot .pf-spacer { flex: 1; }
.pf-back { font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; padding: 12px 4px; transition: color .2s; }
.pf-back:hover { color: var(--ink); }
.pf-hint { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }

/* success */
.pf-success { display: none; text-align: center; padding: clamp(36px,5vw,56px) clamp(28px,4vw,44px) clamp(40px,5vw,56px); }
.pf-success.show { display: block; animation: pfIn .4s var(--ease); }
.pf-success .pf-check { width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 28px; }
.pf-success h3 { font-family: var(--sans); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.pf-success p { color: var(--muted); margin: 0 auto 26px; max-width: 36ch; }
body.pf-lock, body.menu-lock { overflow: hidden; }

/* ============================================================
   BRAND LOGO ANIMATION (hover shine + slash spin · click decode)
   ============================================================ */
.brand { position: relative; }
.brand .mark { position: relative; overflow: hidden; transition: transform .55s cubic-bezier(.34,1.56,.64,1); }
.brand .mark > span { position: relative; z-index: 1; transition: transform .55s var(--ease); }
.brand .mark::before {
  content: ""; position: absolute; inset: -2px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.9) 50%, transparent 66%);
  transform: translateX(-130%);
}
.brand:hover .mark { transform: skew(-11deg) rotate(-7deg) scale(1.12); }
.brand:hover .mark > span { transform: skew(11deg) rotate(7deg); }
.brand:hover .mark::before { animation: brandShine .75s var(--ease); }
@keyframes brandShine { from { transform: translateX(-130%); } to { transform: translateX(130%); } }

.brand .brand-word { white-space: nowrap; }
.brand .slash { display: inline-block; transition: transform .55s var(--ease), color .4s var(--ease); }
.brand:hover .slash { transform: rotate(360deg) scale(1.18); color: var(--accent); }
.brand-word .g { color: var(--accent-2); font-weight: 600; }

.brand .mark.spin { animation: brandSpin .82s cubic-bezier(.45,.05,.25,1); }
@keyframes brandSpin {
  0%   { transform: skew(-11deg) rotate(0deg)   scale(1); }
  55%  { transform: skew(-11deg) rotate(382deg) scale(1.2); }
  100% { transform: skew(-11deg) rotate(360deg) scale(1); }
}
.brand-ring {
  position: absolute; border-radius: 7px; border: 2px solid var(--accent);
  pointer-events: none; transform-origin: center;
  animation: brandRing .82s var(--ease) forwards;
}
@keyframes brandRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.5); } }

@media (prefers-reduced-motion: reduce) {
  .brand .mark, .brand .mark > span, .brand .slash { transition: none; }
  .brand .mark::before, .brand .mark.spin, .brand-ring { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 14px; }
  .nav-actions { justify-self: end; }
  .menu-btn { display: inline-block; }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-term { justify-self: stretch; max-width: none; margin-bottom: 40px; }
  .system { grid-template-columns: 1fr; }
  .outgrown-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-actions { display: none; }
  .menu-btn { display: inline-block; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .feature-img { order: 0; }
  .show-grid, .case-grid, .compare-grid, .stories-grid { grid-template-columns: 1fr; }
  .stories-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .outgrown-cols { grid-template-columns: 1fr; }
  .founders-head, .founders-grid { grid-template-columns: 1fr; }
  .founders-head { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pf-overlay { padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .pf-dialog { max-height: calc(100dvh - 20px); border-radius: 18px; }
  .pf-top { padding: 20px 18px 0; }
  .pf-progress { margin-top: 12px; }
  .pf-body { min-height: 0 !important; padding: 14px 18px 18px; overflow: hidden; }
  .pf-step h3 { font-size: clamp(1.3rem, 6vw, 1.6rem); margin-bottom: 4px; }
  .pf-step .sub { font-size: .9rem; margin-bottom: 14px; }
  .pf-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-choice { gap: 8px; min-height: 58px; padding: 10px 8px; border-radius: 12px; }
  .pf-choice .ic { width: 32px; height: 32px; border-radius: 8px; }
  .pf-choice .ic svg { width: 17px; height: 17px; }
  .pf-choice .ct { font-size: .86rem; }
  .pf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-field { gap: 5px; margin-bottom: 10px; }
  .pf-field > span, .pf-field > label { font-size: 10px; letter-spacing: .07em; }
  .pf-field input, .pf-field textarea, .pf-field select { padding: 10px 11px; border-radius: 10px; font-size: .92rem; }
  .pf-pills { gap: 6px; }
  .pf-pill { padding: 7px 11px; font-size: .8rem; }
  .pf-privacy { font-size: .72rem; line-height: 1.3; }
  .pf-error { min-height: 1.1em; margin-top: 4px; font-size: .78rem; }
  .pf-foot { gap: 8px; padding-top: 14px; }
  .pf-foot .btn { min-height: 44px; padding: 10px 16px; font-size: .86rem; }
  .pf-back { padding: 8px 2px; font-size: .86rem; }
  .pf-success { padding: 34px 24px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .pf-overlay { padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
  .pf-dialog { max-height: calc(100dvh - 12px); border-radius: 14px; }
  .pf-close { top: 4px; right: 6px; width: 40px; height: 40px; font-size: 21px; }
  .pf-top { padding: 12px 14px 0; }
  .pf-eyebrow { gap: 6px; font-size: 9.5px; }
  .pf-eyebrow .dot { width: 5px; height: 5px; }
  .pf-progress { gap: 5px; margin-top: 6px; }
  .pf-progress .seg { height: 3px; }
  .pf-body { padding: 8px 14px 12px; }
  .pf-step h3 { font-size: 1.08rem; line-height: 1.05; margin-bottom: 4px; }
  .pf-step .sub { display: none; }
  .pf-choices { gap: 5px; }
  .pf-choice { gap: 6px; min-height: 44px; padding: 6px; border-radius: 10px; }
  .pf-choice .ic { width: 28px; height: 28px; border-radius: 7px; }
  .pf-choice .ic svg { width: 15px; height: 15px; }
  .pf-choice .ct { font-size: .72rem; line-height: 1.08; }
  .pf-field { gap: 3px; margin-bottom: 6px; }
  .pf-field > span, .pf-field > label { font-size: 8.5px; letter-spacing: .05em; }
  .pf-field input, .pf-field textarea, .pf-field select { padding: 7px 9px; border-radius: 9px; font-size: .84rem; line-height: 1.2; }
  .pf-field textarea { height: 52px; min-height: 52px; }
  .pf-pills { gap: 4px; }
  .pf-pill { padding: 5px 8px; font-size: .7rem; }
  .pf-privacy { margin-top: 0; font-size: .62rem; line-height: 1.2; }
  .pf-error { min-height: .9em; margin-top: 2px; font-size: .68rem; line-height: 1.2; }
  .pf-foot { padding-top: 8px; }
  .pf-foot .btn { min-height: 38px; padding: 7px 12px; font-size: .76rem; }
  .pf-back { padding: 6px 2px; font-size: .76rem; }
  .pf-hint { display: none; }
  .pf-success { padding: 24px 18px; }
  .pf-success .pf-check { width: 48px; height: 48px; margin-bottom: 14px; font-size: 22px; }
  .pf-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
  .pf-success p { margin-bottom: 16px; font-size: .88rem; }
}
@media (max-width: 520px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--on-dark); padding: 92px var(--gut) 40px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s var(--ease); }
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--sans); font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .pf-overlay, .pf-dialog, .pf-step.active, .pf-progress .seg::after { transition: none; animation: none; }
}
