/* ============================================================
   Bearshield SA — public site
   Light editorial / Swiss. Warm paper, ink text, sparing gold.
   Flat surfaces, no glows. Product visuals stay dark.
   ============================================================ */

:root {
  --bg:        #f7f4ee;   /* warm paper */
  --bg-2:      #f1ece2;
  --surface:   #fffdf8;
  --elevated:  #fbf8f1;
  --line:      rgba(22,20,15,.13);
  --line-2:    rgba(22,20,15,.07);
  --text:      #16140f;   /* ink */
  --text-2:    #57524a;
  --muted:     #8b857a;
  --accent:    #b4763a;   /* gold — used sparingly */
  --accent-2:  #9a6230;
  --accent-dk: #875420;
  --accent-ink:#fffaf0;   /* light text on the gold fill */
  --metal:     #b4763a;
  --glow:      transparent;
  --maxw: 1120px;
  --r: 12px;
  --ease: cubic-bezier(.16,1,.3,1);
  --font-sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:        #0c0d0f;
  --bg-2:      #0f1012;
  --surface:   #141518;
  --elevated:  #17191c;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.055);
  --text:      #ecebe7;
  --text-2:    #a7a59c;
  --muted:     #79756c;
  --accent:    #e0a96d;
  --accent-2:  #f0c48f;
  --accent-dk: #b9863f;
  --accent-ink:#171206;
  --metal:     #c9a972;
  --glow:      transparent;
  color-scheme: dark;
}

/* Product visuals stay dark on the light page (app-screenshot pattern). */
.hero-visual, .mock {
  --bg:        #0c0d0f;
  --bg-2:      #0f1012;
  --surface:   #141518;
  --elevated:  #17191c;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.055);
  --text:      #ecebe7;
  --text-2:    #a7a59c;
  --muted:     #807c72;
  --accent:    #e0a96d;
  color: var(--text);   /* re-resolve so inherited text isn't body's dark ink */
}
/* caption sits on the light page, below the dark frame */
.mock > .mock-cap { color: var(--muted); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 {
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: -.012em; line-height: 1.08; margin: 0;
  font-optical-sizing: auto;
}

.eyebrow {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: 1.04rem; letter-spacing: 0; text-transform: none; color: var(--accent);
  display: inline-flex; align-items: center; gap: .65rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .55; }

.lead { color: var(--text-2); font-size: 1.18rem; line-height: 1.55; font-family: var(--font-sans); }
em { color: var(--text); font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 500; font-size: .96rem;
  padding: .82rem 1.45rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .3s, color .2s;
  will-change: transform;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-2); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 34px; flex: none; }
.brand small { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .2em; color: var(--muted); align-self: flex-start; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a.lnk { position: relative; padding: .55rem .9rem; border-radius: 8px; color: var(--text-2); font-size: .94rem; transition: color .2s; }
.nav-links a.lnk:hover, .nav-links a.lnk.active { color: var(--text); }
.nav-links a.lnk.active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .3rem; height: 1.5px; background: var(--accent); border-radius: 2px; }
.nav-cta { margin-left: .6rem; }

.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--text-2); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root:not([data-theme="dark"]) .icon-btn .moon { display: none; }
.icon-btn[data-theme-toggle] { display: none; }  /* theme retained in code, toggle hidden (light-only) */
.nav-toggle { display: none; }

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; padding: 120px 0; }
.section.tight { padding: 84px 0; }
.section-head { max-width: 700px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); margin: 18px 0 0; }
.section-head p { margin: 18px 0 0; }
.divider { height: 1px; background: var(--line-2); border: 0; margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; padding: 92px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.5rem); margin: 22px 0 0; line-height: 1.04; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.reveal-lines .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.reveal-lines .ln > span { display: block; }
.hero p.lead { margin: 26px 0 0; max-width: 545px; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; margin-top: 54px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; gap: 3px; }
.hero-meta b { font-family: var(--font-head); font-size: 1.55rem; font-weight: 600; }
.hero-meta span { font-family: var(--font-mono); font-size: .71rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-visual .frame-tag { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-family: var(--font-mono); font-size: .67rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.hero-visual .corner { position: absolute; width: 14px; height: 14px; border: 1px solid var(--accent); opacity: .5; }
.hero-visual .corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hero-visual .corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hero-visual .corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hero-visual .corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* ---------- logo wall ---------- */
.strip { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 34px 0; }
.strip .label { display: block; font-family: var(--font-mono); font-size: .71rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 22px; }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 28px; align-items: center; }
.logo-wall .lg { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--text-2); opacity: .6; transition: opacity .3s, color .3s, transform .3s; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; }
.logo-wall .lg:hover { opacity: 1; color: var(--text); transform: translateY(-2px); }
.logo-wall .lg svg { width: 18px; height: 18px; flex: none; }

/* ---------- pillars (numbered rows, not flat cards) ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 96px 1fr minmax(260px, 1.1fr); gap: 28px; align-items: start; padding: 48px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.pillar:hover { background: linear-gradient(90deg, var(--surface), transparent 60%); }
.pillar .idx { font-family: var(--font-mono); font-size: .9rem; color: var(--accent); padding-top: 8px; }
.pillar h3 { font-size: 1.7rem; }
.pillar .desc { color: var(--text-2); margin-top: 12px; max-width: 36ch; }
.pillar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pillar ul li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); font-size: .96rem; }
.pillar ul li::before { content: ""; width: 6px; height: 6px; flex: none; margin-top: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* ---------- thesis split + animated SVG flow ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .body h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: 16px; }
.split .body p { color: var(--text-2); margin-top: 18px; }

.flow-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 30px 26px; }
.flow-svg { width: 100%; height: auto; display: block; }
.flow-svg .conn { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 9; opacity: .8; animation: flowdash 1.1s linear infinite; }
.flow-svg .rail { fill: none; stroke: var(--line); stroke-width: 1.6; }
.flow-svg .node { fill: var(--surface); stroke: var(--accent); stroke-width: 1.4; }
.flow-svg .node-dot { fill: var(--accent); }
.flow-svg .lbl { fill: var(--text-2); font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; }
@keyframes flowdash { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) { .flow-svg .conn { animation: none; } }

/* vertical pipe list (approach detail) */
.pipeline { display: grid; gap: 14px; }
.pipe-node { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: transform .25s var(--ease), border-color .25s; }
.pipe-node:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pipe-node .n { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; }
.pipe-node b { font-family: var(--font-head); font-weight: 600; display: block; }
.pipe-node span { color: var(--muted); font-size: .9rem; }
.pipe-link { width: 1px; height: 16px; margin-left: 40px; background: linear-gradient(var(--accent), transparent); }

/* ---------- service detail blocks ---------- */
.svc-block { padding: 66px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.svc-block:last-child { border-bottom: 0; }
.svc-block .meta .eyebrow { margin-bottom: 16px; }
.svc-block .meta h3 { font-size: 2rem; }
.svc-block .meta p { color: var(--text-2); margin-top: 14px; max-width: 34ch; }
.svc-rows { display: grid; gap: 0; }
.svc-row { padding: 20px 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 210px 1fr; gap: 24px; }
.svc-row:first-child { border-top: 0; }
.svc-row h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.svc-row p { color: var(--text-2); font-size: .95rem; margin: 0; }

/* ---------- metric / results band ---------- */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.band-grid > div { padding: 54px 28px; border-left: 1px solid var(--line); }
.band-grid > div:first-child { border-left: 0; padding-left: 0; }
.band-grid b { font-family: var(--font-head); font-size: 2.5rem; font-weight: 600; display: block; letter-spacing: -.02em; }
.band-grid b .u { color: var(--accent); }
.band-grid span { color: var(--muted); font-size: .92rem; }
.ph-tag { display: inline-block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; color: var(--accent-dk); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; margin-left: 8px; vertical-align: middle; text-transform: uppercase; }

/* ---------- pinned approach steps ---------- */
.pin-section { position: relative; z-index: 1; }
.pin-inner { padding: 100px 0; }
.pin-head { max-width: 620px; margin-bottom: 56px; }
.pin-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 16px; }
.pin-stage { display: grid; grid-template-columns: .55fr 1fr; gap: 56px; }
.pin-rail { display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--line); }
.pin-rail .step { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: baseline; padding: 16px 20px; margin-left: -1px; border-left: 2px solid transparent; opacity: .38; transition: opacity .45s var(--ease), border-color .45s; }
.pin-rail .step.on { opacity: 1; border-left-color: var(--accent); }
.pin-rail .step .num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.pin-rail .step h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; }
.pin-panels { position: relative; min-height: 320px; }
.pin-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(22px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.pin-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.pin-panel .big { font-family: var(--font-mono); color: var(--accent); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.pin-panel h3 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: 14px; }
.pin-panel p { color: var(--text-2); margin-top: 16px; max-width: 44ch; }
.pin-panel ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.pin-panel ul li { display: flex; gap: 12px; color: var(--text-2); font-size: .96rem; }
.pin-panel ul li::before { content: ""; width: 6px; height: 6px; flex: none; margin-top: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: center; }
.founder .photo { aspect-ratio: 4 / 5; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; position: relative; background: radial-gradient(120% 90% at 30% 10%, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--bg-2)); display: grid; place-items: center; }
.founder .photo .ph { text-align: center; color: var(--muted); }
.founder .photo .ph .ini { font-family: var(--font-head); font-size: 3.4rem; color: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.founder .photo .ph small { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 8px; }
.founder blockquote { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.32; letter-spacing: -.01em; }
.founder .sig { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.founder .sig b { font-family: var(--font-sans); font-weight: 600; }
.founder .sig span { color: var(--muted); font-size: .9rem; }
.founder .sig .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ---------- engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.model { border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.model:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 22px 48px -34px rgba(30,22,10,.26); }
.model .tier { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.model h3 { font-size: 1.6rem; }
.model > p { color: var(--text-2); font-size: .96rem; margin: 0; }
.model ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.model ul li { display: flex; gap: 10px; color: var(--text-2); font-size: .93rem; }
.model ul li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }
.model .foot { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .85rem; }

/* ---------- CTA ---------- */
.cta { border: 1px solid var(--line); border-radius: 18px; padding: 60px 52px; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 18ch; }
.cta p { color: var(--text-2); margin-top: 12px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.contact-info h2 { font-size: clamp(2.1rem, 4vw, 2.9rem); margin-top: 16px; }
.contact-info p { color: var(--text-2); margin-top: 18px; }
.contact-detail { margin-top: 34px; display: grid; gap: 18px; }
.contact-detail .row { display: grid; gap: 3px; }
.contact-detail .row span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-detail .row b { font-weight: 500; font-size: 1.02rem; }

form.enquiry { border: 1px solid var(--line); border-radius: var(--r); padding: 32px; background: var(--surface); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.two { grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; font-family: var(--font-sans); font-size: .98rem; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: .82rem; }
.flash { border-radius: 10px; padding: .85rem 1rem; font-size: .92rem; }
.flash.ok { background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); color: var(--text); }
.flash.err { background: rgba(200,90,70,.13); border: 1px solid rgba(200,90,70,.4); color: #e7a98f; }

/* ---------- about ---------- */
.about-lead { max-width: 780px; }
.about-lead h1 { font-size: clamp(2.5rem, 5.2vw, 3.8rem); margin-top: 20px; line-height: 1.05; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 12px; }
.value { padding: 40px 28px 40px 0; border-right: 1px solid var(--line); }
.value:last-child { border-right: 0; padding-right: 0; }
.value h3 { font-size: 1.35rem; }
.value p { color: var(--text-2); margin-top: 12px; font-size: .96rem; }
.value .k { font-family: var(--font-mono); color: var(--accent); font-size: .8rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 66px 0 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer p.f-desc { color: var(--text-2); max-width: 34ch; font-size: .95rem; }
.footer .col h5 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.footer .col a { display: block; color: var(--text-2); padding: 5px 0; font-size: .95rem; transition: color .2s; }
.footer .col a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.footer-base small { color: var(--muted); font-size: .84rem; }
.team-link { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; transition: color .2s; }
.team-link:hover { color: var(--accent); }
.team-link svg { width: 14px; height: 14px; }

/* ============================================================
   Product mock — illustrative app UI (synthetic data, hand-built SVG)
   ============================================================ */
.mock { margin: 0; }
.mock-frame { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 30px 64px -40px rgba(30,22,10,.32); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--elevated), var(--surface)); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.13); }
:root[data-theme="light"] .mock-bar .dot { background: rgba(0,0,0,.12); }
.mock-url { margin-left: 12px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .03em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 14px; }
.mock-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.lvdot { width: 6px; height: 6px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 0 0 rgba(95,208,138,.5); animation: livepulse 1.9s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(95,208,138,.45); } 70% { box-shadow: 0 0 0 6px rgba(95,208,138,0); } 100% { box-shadow: 0 0 0 0 rgba(95,208,138,0); } }
.arch-pk { fill: var(--accent); }
@media (prefers-reduced-motion: reduce) { .lvdot { animation: none; } }
.mock-body { padding: 20px; display: grid; gap: 16px; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; background: var(--bg-2); display: flex; flex-direction: column; gap: 10px; min-height: 116px; }
.kpi-label { font-family: var(--font-mono); font-size: .61rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }
.kpi-val { font-family: var(--font-head); font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin-top: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi-val .u { color: var(--accent); font-size: .85em; }
.spark { width: 100%; height: 22px; display: block; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

.mock-chart { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg-2); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.chart-head h5 { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; margin: 0; }
.chart-head .legend { font-family: var(--font-mono); font-size: .62rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.rev-chart { height: 188px; width: 100%; }
.rev-svg { width: 100%; height: 100%; display: block; }
.rev-grid line { stroke: var(--line); stroke-width: 1; }
.rev-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rev-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; }
.rev-month { fill: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: .03em; }

.recon { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.recon-head { font-family: var(--font-mono); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.recon table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.recon th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 9px 16px; }
.recon td { padding: 11px 16px; border-top: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.recon td.cust { color: var(--text); font-weight: 500; }
.ta-r { text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .05em; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.checking { color: var(--muted); }
.pill.checking::before { animation: pillpulse 1s ease-in-out infinite; }
.pill.ok { color: #7fc8a0; border-color: rgba(127,200,160,.32); background: rgba(127,200,160,.08); }
.pill.warn { color: var(--accent); border-color: rgba(224,169,109,.32); background: rgba(224,169,109,.08); }
@keyframes pillpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill.checking::before { animation: none; } }

.mock-cap { text-align: center; margin-top: 16px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; color: var(--muted); }

@media (max-width: 720px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .recon { overflow-x: auto; }
  .recon table { min-width: 480px; }
  .rev-chart { height: 150px; }
}

/* ---------- shared panel (funnel / SDR / architecture) ---------- */
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: 0 24px 56px -42px rgba(30,22,10,.30); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--elevated), var(--surface)); }
.panel-head h5 { font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin: 0; }
.panel-head .tagm { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel-body { padding: 20px; }

/* funnel */
.funnel { display: grid; gap: 12px; }
.fn-row { display: grid; grid-template-columns: 140px 1fr 72px; gap: 16px; align-items: center; }
.fn-label b { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); display: block; font-weight: 500; }
.fn-label span { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.fn-track { height: 28px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.fn-bar { height: 100%; width: var(--w); min-width: 16px; border-radius: 7px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 50%, var(--surface)), var(--accent)); transform-origin: left center; }
.fn-val { font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-align: right; font-variant-numeric: tabular-nums; }

/* SDR routing schema */
.route { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.route-chip { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .05em; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); background: var(--bg-2); white-space: nowrap; }
.route-chip.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.route-flow { flex: 1 1 24px; min-width: 24px; height: 12px; }
.route-flow svg { width: 100%; height: 100%; display: block; }
.route-rail { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 7; vector-effect: non-scaling-stroke; opacity: .7; animation: flowdash 1.1s linear infinite; }

/* SDR rows */
.sdr-row { display: grid; grid-template-columns: 124px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.sdr-row:first-child { border-top: 0; }
.sdr-who { display: flex; align-items: center; gap: 10px; }
.ava { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-mono); font-size: .76rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.sdr-who b { font-weight: 500; font-size: .92rem; }
.sdr-metrics { display: grid; gap: 9px; }
.sdr-m { display: grid; grid-template-columns: 68px 1fr 64px; gap: 10px; align-items: center; }
.m-lbl { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.m-track { position: relative; height: 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.m-bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--accent); transform-origin: left center; border-radius: 6px; }
.m-bar.resp { background: color-mix(in srgb, var(--accent) 50%, var(--text-2)); }
.m-bar.closed { background: color-mix(in srgb, var(--accent) 32%, var(--surface)); }
.m-bar.collected { background: var(--accent); }
.m-val { font-family: var(--font-head); font-weight: 600; font-size: .86rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sdr-legend { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sdr-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 18px; height: 8px; border-radius: 3px; background: var(--accent); display: inline-block; }
.sw.faint { background: color-mix(in srgb, var(--accent) 32%, var(--surface)); }

/* architecture */
.arch-svg { width: 100%; max-width: 760px; height: auto; display: block; margin: 0 auto; }
.arch-edges path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 8; vector-effect: non-scaling-stroke; opacity: .6; animation: flowdash 1.1s linear infinite; }
.arch-chip { fill: var(--bg-2); stroke: var(--line); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.arch-lbl { fill: var(--text-2); font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; }
.arch-hub .hub-chip { fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.hub-lbl { fill: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .route-rail, .arch-edges path { animation: none; } }

/* mock layout */
.mock-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 880px) {
  .mock-duo { grid-template-columns: 1fr; }
  .fn-row { grid-template-columns: 118px 1fr 60px; gap: 12px; }
  .sdr-row { grid-template-columns: 108px 1fr; }
}

/* ============================================================
   Case study (/work)
   ============================================================ */
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.case-meta .chip { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; background: var(--surface); }
.case-meta .chip b { color: var(--accent); font-weight: 500; margin-right: 6px; }
.case-note { margin-top: 22px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; color: var(--muted); }

.q-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.q-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.q-item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 40px; }
.q-item:nth-child(even) { padding-left: 40px; }
.q-item .qn { font-family: var(--font-mono); color: var(--accent); font-size: .9rem; padding-top: 5px; }
.q-item h3 { font-size: 1.24rem; }
.q-item p { color: var(--text-2); margin-top: 9px; font-size: .95rem; }

.stages { display: grid; border-top: 1px solid var(--line); }
.stage { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.stage .sn { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.stage h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; }
.stage p { color: var(--text-2); margin-top: 10px; font-size: .96rem; max-width: 64ch; }
.stage .tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stage .tools span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; }

.alerts { display: grid; gap: 12px; }
.alert-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .25s, transform .25s var(--ease); }
.alert-row:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.alert-row .sev { width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; background: var(--accent); }
.alert-row.r1 .sev { background: #d97a5a; }
.alert-row.r2 .sev { background: #d9a441; }
.alert-row.r3 .sev { background: #d97a5a; }
.alert-row.r4 .sev { background: var(--accent); }
.alert-row h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.alert-row h4 code { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .03em; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.alert-row p { color: var(--text-2); margin-top: 9px; font-size: .94rem; }

.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; }
.highlight { display: grid; grid-template-columns: 22px 1fr; gap: 13px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.highlight svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.highlight b { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.highlight p { color: var(--text-2); margin-top: 5px; font-size: .92rem; }

.case-quote { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.34; letter-spacing: -.01em; max-width: 30ch; }
.case-quote::before { content: ""; display: block; width: 38px; height: 2px; background: var(--accent); margin-bottom: 26px; }

/* case-study teaser (homepage) */
.case-teaser { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; background: var(--surface); }
.case-teaser .body { padding: 44px 44px; }
.case-teaser .body .eyebrow { margin-bottom: 16px; }
.case-teaser .body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.case-teaser .body p { color: var(--text-2); margin: 16px 0 26px; max-width: 46ch; }
.case-teaser .aside { border-left: 1px solid var(--line); background: var(--bg-2); display: grid; align-content: center; gap: 18px; padding: 40px; }
.case-teaser .aside .stat b { font-family: var(--font-head); font-weight: 600; font-size: 1.9rem; display: block; }
.case-teaser .aside .stat span { color: var(--muted); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 880px) {
  .q-grid, .highlights, .case-teaser { grid-template-columns: 1fr; }
  .q-item:nth-child(odd) { border-right: 0; padding-right: 0; }
  .q-item:nth-child(even) { padding-left: 0; }
  .stage { grid-template-columns: 1fr; gap: 6px; }
  .case-teaser .aside { border-left: 0; border-top: 1px solid var(--line); grid-auto-flow: column; justify-content: start; gap: 36px; }
}

/* ============================================================
   Motion — initial states only applied while JS+GSAP run and
   motion is allowed. Fallback class .no-anim re-reveals all.
   ============================================================ */
html.anim [data-reveal] { opacity: 0; }
html.anim [data-reveal="up"]    { transform: translateY(28px); }
html.anim [data-reveal="left"]  { transform: translateX(-40px); }
html.anim [data-reveal="right"] { transform: translateX(40px); }
html.anim [data-reveal="scale"] { transform: scale(.96); }
html.anim [data-stagger] > * { opacity: 0; transform: translateY(22px); }
html.anim .reveal-lines .ln > span { transform: translateY(110%); }

html.no-anim [data-reveal],
html.no-anim [data-stagger] > *,
html.no-anim .reveal-lines .ln > span { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-stagger] > *, .reveal-lines .ln > span { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid, .founder { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .founder .photo { max-width: 320px; }
  .pin-stage { grid-template-columns: 1fr; gap: 32px; }
  .pin-panels { min-height: 0; }
  .pin-panel { position: relative; opacity: 1; transform: none; pointer-events: auto; }
  .pin-panel + .pin-panel { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .band-grid > div { border-left: 0; padding: 38px 0; border-top: 1px solid var(--line); }
  .band-grid > div:nth-child(-n+2) { border-top: 0; }
  .models, .values { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .value:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillar { grid-template-columns: 56px 1fr; }
  .pillar ul { grid-column: 1 / -1; padding-top: 8px; }
  .svc-block { grid-template-columns: 1fr; gap: 28px; }
  .svc-row { grid-template-columns: 1fr; gap: 6px; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 86px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 28px 22px; gap: 2px; }
  .nav-links.open .nav-cta { margin: 8px 0 0; }
  .cta { padding: 40px 28px; }
  .field.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pin-rail .step { grid-template-columns: 34px 1fr; }
}
