/* ==========================================================================
   Fortunitus — editorial system
   Ink · Paper · one Control Blue · film grain · frosted-glass isometrics
   ========================================================================== */

@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/BricolageGrotesque-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/BricolageGrotesque-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/JetBrainsMono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/JetBrainsMono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f3f2ee;
  --paper-2: #e9e8e2;
  --white: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1d1d21;
  --text: #17171a;
  --mute: #5e5e63; /* 4.5:1+ on the darker paper (#e9e8e2) too */
  --mute-dark: #8f8f97;
  --hair: rgba(11, 11, 12, .14);
  --hair-dark: rgba(255, 255, 255, .14);
  --blue: #2f55ff;
  --blue-deep: #1231c8;
  --blue-soft: #dfe5ff;

  --display: "Bricolage", system-ui, sans-serif;
  --body: "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Bricolage", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --shell: 16px;
  --radius: 22px;
  --gutter: clamp(1.25rem, 3.5vw, 3.5rem);
  --space: clamp(5rem, 10vw, 10rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--text); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper); font: 16px/1.5 var(--body); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open, body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; line-height: .96; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 9vw, 9rem); letter-spacing: -.045em; line-height: .92; }
h2 { font-size: clamp(2.4rem, 5.6vw, 5.4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: -.025em; line-height: 1.02; }
h4 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.1; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
html { scrollbar-color: var(--ink) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 8px; }
input, textarea, select { caret-color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 400; top: .75rem; left: .75rem; padding: .7rem 1rem; border-radius: 999px; background: var(--blue); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* film grain over everything, fixed and cheap */
/* film grain removed 2026-11-16 (owner: distracting) */
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); } 50% { transform: translate(3%, -2%); } 75% { transform: translate(-1%, -3%); } 100% { transform: translate(2%, 2%); } }

.wrap { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; }
.mono { font-family: var(--label); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.dim { color: var(--mute); }
.on-dark { color: #fff; }
.on-dark .dim { color: var(--mute-dark); }
.section { padding-block: var(--space); }
.lede { font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.45; max-width: 36rem; color: var(--mute); }
.on-dark .lede { color: var(--mute-dark); }

/* ---------- loader curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 500; background: var(--ink); display: grid; place-items: center; color: #fff; transform-origin: top; }
.curtain .word { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 6vw, 5rem); letter-spacing: -.04em; overflow: hidden; }
.curtain .word span { display: block; transform: translateY(110%); animation: up 1s var(--ease) .1s forwards; }
.curtain.leave { animation: curtain 1s var(--ease-io) forwards; }
@keyframes up { to { transform: none; } }
@keyframes curtain { to { transform: translateY(-101%); } }
.wipe { position: fixed; inset: 0; z-index: 500; background: var(--blue); transform: translateY(101%); pointer-events: none; }
.wipe.in { animation: wipe .7s var(--ease-io) forwards; }
@keyframes wipe { to { transform: translateY(0); } }

/* ---------- cursor ---------- */
.cursor { position: fixed; z-index: 350; top: 0; left: 0; pointer-events: none; width: 92px; height: 92px; border-radius: 50%; background: var(--blue); opacity: 0; display: grid; place-items: center; --s: .11; }
.cursor::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); transform: scale(var(--s)); transition: transform .4s var(--ease), background .3s ease, box-shadow .3s ease; }
.cursor.on { opacity: 1; }
.cursor { background: transparent; }
.cursor.link { --s: .48; }
.cursor.link::before { background: rgba(47, 85, 255, .18); box-shadow: inset 0 0 0 1px var(--blue); }
.cursor.view { --s: 1; }
.cursor .label { position: relative; font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s ease; }
.cursor.view .label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: .9rem; min-height: 3.4rem; padding: 0 .45rem 0 1.5rem; border-radius: 999px; font-weight: 500; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .6s var(--ease), background .4s ease, color .4s ease, box-shadow .4s ease; }
.btn .t { position: relative; display: block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn .t i { display: block; font-style: normal; transition: transform .55s var(--ease); }
.btn:hover .t i, .btn:focus-visible .t i { transform: translateY(-100%); }
.btn .o { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: none; transition: transform .6s var(--ease), background .4s ease, color .4s ease; }
.btn .o svg { width: 1rem; height: 1rem; transition: transform .55s var(--ease); }
.btn:hover .o svg { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink .o { background: #fff; color: var(--ink); }
.btn-ink:hover .o { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white .o { background: var(--ink); color: #fff; }
.btn-white:hover .o { background: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue .o { background: #fff; color: var(--blue); }
.btn-line { color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn-line .o { background: var(--ink); color: #fff; }
.on-dark .btn-line .o { background: #fff; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; box-shadow: none; }
.on-dark .btn-line:hover { background: #fff; color: var(--ink); }
.btn-line:hover .o { background: var(--blue); color: #fff; }
.lnk { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; }
.lnk .u { position: relative; }
.lnk .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.15em; height: 1px; background: currentColor; transform: scaleX(1); transform-origin: right; transition: transform .5s var(--ease); }
.lnk:hover .u::after { transform: scaleX(0); transform-origin: left; animation: relink .5s var(--ease) .25s forwards; }
@keyframes relink { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.lnk .arr { transition: transform .45s var(--ease); }
.lnk:hover .arr { transform: translate(3px, -3px); }
.arr { width: 1rem; height: 1rem; flex: none; }

/* ---------- header ---------- */
.site-header { position: fixed; z-index: 200; top: 0; left: 0; right: 0; padding: calc(var(--shell) + .6rem) calc(var(--shell) + 1.25rem) 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; color: #fff; mix-blend-mode: difference; pointer-events: none; transition: transform .6s var(--ease); }
.site-header > * { pointer-events: auto; }
.site-header.hide { transform: translateY(-130%); }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.045em; }
.brand small { font-family: var(--label); font-weight: 500; font-size: .56rem; letter-spacing: .12em; opacity: .7; }
.nav { display: flex; justify-content: center; gap: 1.75rem; font-size: .9rem; }
.nav a { position: relative; padding: .25rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr-right { justify-self: end; display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; }
.hdr-cta { display: inline-flex; align-items: center; gap: .6rem; }
.hdr-cta .o { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px currentColor; transition: background .35s ease, color .35s ease; }
.hdr-cta .o svg { width: .85rem; height: .85rem; }
.hdr-cta:hover .o { background: #fff; color: #000; }
.menu-btn { display: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; position: relative; }
.menu-btn i { position: absolute; left: 50%; width: 1rem; height: 1.5px; margin-left: -.5rem; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn i:first-child { top: calc(50% - 4px); } .menu-btn i:last-child { top: calc(50% + 3px); }
.menu-btn[aria-expanded="true"] i:first-child { top: 50%; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 50%; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 190; display: grid; align-content: end; padding: 6rem var(--gutter) 2.5rem; background: var(--ink); color: #fff; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: flex; justify-content: space-between; align-items: baseline; padding: .9rem 0; border-top: 1px solid var(--hair-dark); font-family: var(--display); font-size: 2.4rem; font-weight: 500; letter-spacing: -.04em; }
.mobile-menu a small { font-family: var(--label); font-weight: 500; font-size: .65rem; opacity: .5; }
.mobile-menu .meta { margin-top: 1.5rem; color: var(--mute-dark); font-size: .9rem; display: grid; gap: .25rem; }
@media (max-width: 900px) { .nav, .hdr-cta { display: none; } .menu-btn { display: block; } .site-header { grid-template-columns: 1fr auto; } }

/* ---------- hero ---------- */
.hero { position: relative; margin: var(--shell); min-height: calc(100svh - 2 * var(--shell)); border-radius: var(--radius); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; display: grid; grid-template-rows: 1fr auto; }
.hero canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero-glow { position: absolute; z-index: 0; inset: 0; background: radial-gradient(45% 55% at 78% 35%, rgba(47, 85, 255, .42), transparent 70%); pointer-events: none; }
.hero-body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 2rem; align-items: end; padding: clamp(9rem, 20vh, 13rem) clamp(1.5rem, 4vw, 4rem) 2.5rem; }
.hero h1 { color: #fff; max-width: 12ch; }
.hero-kick { color: rgba(255, 255, 255, .74); font-size: clamp(.95rem, 1.2vw, 1.1rem); font-weight: 600; letter-spacing: .01em; margin: 0 0 1rem; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .w i { display: inline-block; font-style: normal; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-ready .hero h1 .w i { transform: none; }
.hero-side { display: grid; gap: 1.25rem; max-width: 22rem; justify-self: end; align-self: end; opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) .6s, transform 1s var(--ease) .6s; }
.is-ready .hero-side { opacity: 1; transform: none; }
.hero-side p { font-size: 1.02rem; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.hero-side p b { color: #fff; font-weight: 600; }
.hero-rail { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 1rem; margin: 0 clamp(1.5rem, 4vw, 4rem); padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--hair-dark); font-size: .9rem; opacity: 0; transition: opacity 1s ease 1s; }
.is-ready .hero-rail { opacity: 1; }
.hero-rail a { display: flex; align-items: center; gap: .9rem; padding: .35rem 0; }
.hero-rail a b { font-family: var(--label); font-weight: 400; font-size: .68rem; color: var(--mute-dark); }
.hero-rail a span { display: grid; }
.hero-rail a span small { color: var(--mute-dark); font-size: .78rem; }
.hero-rail a:hover strong { color: var(--blue); }
.hero-rail strong { font-weight: 500; transition: color .3s ease; }
.hero-scroll { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .12em; color: var(--mute-dark); display: inline-flex; align-items: center; gap: .6rem; }
.hero-scroll i { display: block; width: 1px; height: 2.2rem; background: linear-gradient(#fff, transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-mark { position: absolute; z-index: 1; right: clamp(1.5rem, 4vw, 4rem); top: clamp(7rem, 16vh, 10rem); width: clamp(9rem, 20vw, 20rem); pointer-events: none; opacity: 0; transform: translateY(20px) scale(.96); transition: opacity 1.4s var(--ease) .4s, transform 1.4s var(--ease) .4s; }
.is-ready .hero-mark { opacity: 1; transform: none; }
.hero-mark .ic { width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6)); }
@media (max-width: 900px) {
  .hero { margin: 10px; min-height: calc(100svh - 20px); }
  .hero-body { grid-template-columns: 1fr; padding-top: 8rem; }
  .hero-side { justify-self: start; }
  .hero-rail { grid-template-columns: 1fr; gap: 0; }
  .hero-rail a { padding: .6rem 0; border-top: 1px solid var(--hair-dark); }
  .hero-rail a:first-child { border-top: 0; }
  .hero-scroll { display: none; }
  .hero-mark { top: 6.5rem; width: 8rem; right: 1.25rem; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 1.75rem 0; border-bottom: 1px solid var(--hair); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-set { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; white-space: nowrap; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -.03em; }
.marquee-set .ic { width: 4.4rem; height: 4.4rem; background: var(--ink); border-radius: 22px; padding: .25rem; }
.marquee-set i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--blue); }

/* ---------- manifesto ---------- */
.manifesto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.manifesto .meta { font-family: var(--label); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: grid; gap: .4rem; position: sticky; top: 7rem; }
.manifesto-text { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.3vw, 3.2rem); line-height: 1.12; letter-spacing: -.03em; }
.manifesto-text .w { color: rgba(11, 11, 12, .18); transition: color .25s ease; }
.manifesto-text .w.on { color: var(--ink); }
.manifesto-text .w.blue.on { color: var(--blue); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--hair); }
.facts div { display: grid; gap: .5rem; }
.facts b { font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; }
.facts p { color: var(--mute); font-size: .95rem; max-width: 22rem; }
@media (max-width: 900px) { .manifesto { grid-template-columns: 1fr; } .manifesto .meta { position: static; } .facts { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- directions slab ---------- */
.slab { margin: 0 var(--shell); padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5rem); border-radius: var(--radius); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.slab-glow { position: absolute; inset: 0; background: radial-gradient(40% 50% at 100% 0%, rgba(47, 85, 255, .3), transparent 70%); pointer-events: none; }
.slab-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); position: relative; }
.slab-head .lede { max-width: 30rem; }
.dir-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; position: relative; }
.dir-list { display: grid; }
.dir { display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 1.5rem; padding: clamp(1.1rem, 2vw, 1.75rem) 0; border-top: 1px solid var(--hair-dark); text-align: left; color: rgba(255, 255, 255, .32); transition: color .5s var(--ease); position: relative; }
.dir:last-child { border-bottom: 1px solid var(--hair-dark); }
.dir::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.dir.is-active { color: #fff; }
.dir.is-active::after { transform: scaleX(1); }
.dir b { font-family: var(--label); font-weight: 400; font-size: .72rem; letter-spacing: .08em; }
.dir strong { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 5.4vw, 5rem); letter-spacing: -.04em; line-height: .95; }
.dir .o { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: background .4s ease, transform .6s var(--ease); }
.dir .o svg { width: 1rem; height: 1rem; }
.dir.is-active .o { background: var(--blue); box-shadow: none; transform: rotate(-45deg); }
.dir-panel { position: sticky; top: 7rem; display: grid; gap: 1.25rem; min-height: 30rem; }
.dir-view { display: grid; gap: 1.25rem; }
.dir-view[hidden] { display: none; }
.dir-view .ic { width: clamp(11rem, 18vw, 16rem); height: auto; aspect-ratio: 1; margin: -1rem 0 0 -1.5rem; animation: pop .9s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.dir-view h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.dir-view p { color: var(--mute-dark); max-width: 26rem; }
.dir-view ul { display: grid; gap: .45rem; font-size: .95rem; }
.dir-view li { display: flex; gap: .7rem; align-items: baseline; }
.dir-view li::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--blue); flex: none; transform: translateY(-.15em); }
.dir-view .lnk { margin-top: .5rem; }
@media (max-width: 900px) { .dir-grid { grid-template-columns: 1fr; } .dir-panel { position: static; min-height: 0; } .dir { grid-template-columns: 2.5rem 1fr auto; } }

/* ---------- showcase sections ---------- */
.show { padding-block: var(--space); }
.show-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.show-head .idx { font-family: var(--label); font-weight: 500; font-size: .72rem; letter-spacing: .1em; color: var(--blue); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .75rem; }
.show-head .idx::after { content: ""; width: 3rem; height: 1px; background: currentColor; }
.show-head .lede { max-width: 30rem; }
.show-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .45fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.show-body.flip { grid-template-columns: minmax(0, .45fr) minmax(0, 1.55fr); }
.show-body.flip .show-side { order: -1; }
.show-side { display: grid; gap: 1.5rem; position: sticky; top: 7rem; }
.show-side h3 { font-size: 1.5rem; }
.show-side ul { display: grid; }
.show-side li { padding: .8rem 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; font-size: .95rem; align-items: start; }
.show-side li:last-child { border-bottom: 1px solid var(--hair); }
.show-side li .ic { width: 1.5rem; height: 1.5rem; }
.on-dark .show-side li { border-color: var(--hair-dark); }
.show-side .tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.show-side .tools span { font-family: var(--label); font-weight: 500; font-size: .68rem; letter-spacing: .04em; padding: .35rem .6rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); }
.on-dark .show-side .tools span { box-shadow: inset 0 0 0 1px var(--hair-dark); }
.show-dark { margin: 0 var(--shell); border-radius: var(--radius); background: var(--ink); color: #fff; padding: 0 clamp(1.5rem, 4vw, 4rem); position: relative; overflow: hidden; }
.show-dark .show-head .lede { color: var(--mute-dark); }
.stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); color: #fff; box-shadow: 0 60px 100px -60px rgba(0, 0, 0, .7); }
.stage.light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair), 0 60px 100px -70px rgba(0, 0, 0, .35); }
@media (max-width: 960px) { .show-head, .show-body, .show-body.flip { grid-template-columns: minmax(0, 1fr); } .show-side { position: static; } .show-body.flip .show-side { order: 0; } }

/* Tracking: before/after */
.compare { position: relative; aspect-ratio: 16 / 9.6; user-select: none; touch-action: pan-y; }
.compare-pane { position: absolute; inset: 0; padding: clamp(1rem, 2.5vw, 2rem); display: grid; grid-template-rows: auto 1fr; gap: 1rem; background: var(--ink-2); }
.compare-pane.after { clip-path: inset(0 0 0 var(--cut, 50%)); background: radial-gradient(60% 70% at 100% 100%, rgba(47, 85, 255, .35), transparent 70%), var(--ink-2); }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--label); font-weight: 500; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-dark); }
.cp-head .state { display: inline-flex; align-items: center; gap: .5rem; color: #ff7a8a; }
.after .cp-head .state { color: #fff; }
.cp-head .state i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.after .cp-head .state i { background: var(--blue); }
.cp-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto 1fr; gap: 1px; background: var(--hair-dark); border: 1px solid var(--hair-dark); border-radius: 14px; overflow: hidden; }
.cp-card { padding: 1rem 1.1rem; background: var(--ink-2); display: grid; gap: .3rem; align-content: start; min-width: 0; }
.cp-card small { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-card b { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.cp-card .delta { font-size: .78rem; color: #ff7a8a; }
.after .cp-card .delta { color: #8fa4ff; }
.cp-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; align-content: stretch; }
.cp-chart { display: flex; align-items: flex-end; gap: 5px; height: 100%; min-height: 90px; }
.cp-chart i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(255, 255, 255, .16); height: var(--h, 40%); }
.after .cp-chart i { background: linear-gradient(180deg, #6d8bff, #2f55ff); }
.before .cp-chart i:nth-child(3n) { background: rgba(255, 122, 138, .55); }
.cp-list { display: grid; gap: .45rem; font-size: .8rem; color: var(--mute-dark); align-content: end; }
.cp-list li { display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.cp-list i { width: .4rem; height: .4rem; border-radius: 50%; background: #ff7a8a; flex: none; }
.after .cp-list i { background: var(--blue); }
.after .cp-list { color: #fff; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 0; z-index: 3; }
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; }
.compare-knob { position: absolute; top: 50%; left: 0; width: 3.4rem; height: 3.4rem; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: ew-resize; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .8); }
.compare-knob svg { width: 1.2rem; height: 1.2rem; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; -webkit-appearance: none; appearance: none; }
.compare-range:focus-visible + .compare-handle .compare-knob { outline: 2px solid var(--blue); outline-offset: 3px; }
.compare-labels { display: flex; justify-content: space-between; padding: 1rem clamp(1rem, 2.5vw, 2rem) 0; font-family: var(--label); font-weight: 500; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 720px) { .compare { aspect-ratio: 4 / 5; } .cp-grid { grid-template-columns: repeat(2, 1fr); } .cp-wide { grid-template-columns: 1fr; } .cp-list { display: none; } }

/* Email: automation flow */
.flow { padding: clamp(1.25rem, 3vw, 2.5rem); display: grid; gap: 2rem; }
.flow-line { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.flow-line::before { content: ""; position: absolute; left: 2.5%; right: 2.5%; top: 1.4rem; height: 1px; background: var(--hair-dark); }
.flow-line::after { content: ""; position: absolute; left: 2.5%; right: 2.5%; top: 1.4rem; height: 1px; background: var(--blue); transform: scaleX(var(--prog, 0)); transform-origin: left; transition: transform .8s var(--ease); }
.fstep { position: relative; display: grid; gap: .75rem; text-align: left; padding: 0 .25rem; color: var(--mute-dark); transition: color .4s ease; justify-items: start; }
.fstep .dot { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-dark); display: grid; place-items: center; font-family: var(--label); font-weight: 500; font-size: .68rem; transition: background .4s ease, box-shadow .4s ease, transform .6s var(--ease); }
.fstep.is-active, .fstep.done { color: #fff; }
.fstep.is-active .dot { background: var(--blue); box-shadow: 0 0 0 6px rgba(47, 85, 255, .2); transform: scale(1.08); }
.fstep.done .dot { background: #fff; color: var(--ink); }
.fstep strong { font-weight: 500; font-size: .95rem; display: block; }
.fstep small { display: block; font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.mail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.mail-card { border-radius: 16px; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8); display: grid; grid-template-rows: auto 1fr; min-height: 22rem; animation: pop .8s var(--ease); }
.mail-top { padding: 1rem 1.25rem; border-bottom: 1px solid var(--hair); display: grid; gap: .25rem; font-size: .85rem; }
.mail-top .from { display: flex; justify-content: space-between; color: var(--mute); }
.mail-top .subj { font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; }
.mail-body { padding: 1.25rem; display: grid; gap: .8rem; align-content: start; font-size: .9rem; line-height: 1.5; }
.mail-body .hero-img { height: 6rem; border-radius: 10px; background: linear-gradient(120deg, #1d1d21, #2f55ff); position: relative; overflow: hidden; }
.mail-body .hero-img::after { content: ""; position: absolute; inset: 0; background: url("/assets/images/grain.png"); background-size: 120px; opacity: .25; mix-blend-mode: overlay; }
.mail-body .cta { justify-self: start; padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 500; }
.mail-stats { display: grid; align-content: start; }
.mail-stats div { padding: 1.1rem 0; border-top: 1px solid var(--hair-dark); display: grid; gap: .25rem; }
.mail-stats div:last-child { border-bottom: 1px solid var(--hair-dark); }
.mail-stats small { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-dark); }
.mail-stats b { font-family: var(--display); font-weight: 500; font-size: 1.5rem; letter-spacing: -.03em; }
.mail-stats p { font-size: .85rem; color: var(--mute-dark); }
.mail-note { font-family: var(--label); font-weight: 500; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-dark); }
@media (max-width: 720px) { .flow-line { grid-template-columns: repeat(5, minmax(4.5rem, 1fr)); overflow-x: auto; padding-bottom: .5rem; } .mail { grid-template-columns: 1fr; } }

/* Ads: ad builder */
.ads { padding: clamp(1.25rem, 3vw, 2.5rem); display: grid; gap: 1.5rem; }
.ads-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.ads-tab { padding: .6rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: .88rem; font-weight: 500; transition: background .3s ease, color .3s ease; }
.ads-tab.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.ads-view { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.5rem; align-items: start; }
.ads-view[hidden] { display: none; }
.serp { border-radius: 16px; background: var(--paper); padding: 1.25rem; display: grid; gap: 1rem; box-shadow: inset 0 0 0 1px var(--hair); }
.serp-bar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); font-size: .95rem; min-height: 3rem; }
.serp-bar .q::after { content: "|"; color: var(--blue); animation: blink 1s steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.serp-ad { padding: 1rem 1.1rem; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); display: grid; gap: .3rem; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.serp-ad.in { opacity: 1; transform: none; }
.serp-ad .tag { font-size: .72rem; font-weight: 700; color: var(--ink); display: flex; gap: .4rem; align-items: center; }
.serp-ad .tag span { font-weight: 400; color: var(--mute); }
.serp-ad .h { font-size: 1.05rem; color: #1a0dab; font-weight: 500; }
.serp-ad .d { font-size: .85rem; color: var(--mute); line-height: 1.4; }
.serp-ad .ext { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .8rem; color: #1a0dab; }
.shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.shop div { border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); padding: .6rem; display: grid; gap: .3rem; font-size: .72rem; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.shop div.in { opacity: 1; transform: none; }
.shop i { display: block; height: 4rem; border-radius: 6px; background: linear-gradient(135deg, #e9e8e2, #cfd4e6); }
.shop b { font-weight: 600; }
.feed { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; max-width: 24rem; margin-inline: auto; }
.feed-top { display: flex; gap: .7rem; align-items: center; padding: .9rem 1rem; font-size: .85rem; }
.feed-top i { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); }
.feed-top small { display: block; color: var(--mute); font-size: .72rem; }
.feed-img { aspect-ratio: 1; background: var(--ink); position: relative; overflow: hidden; color: #fff; }
.feed-img .cre { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.05; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.feed-img .cre.b { background: var(--blue); opacity: 0; transform: scale(1.04); }
.feed-img.alt .cre.a { opacity: 0; transform: scale(.98); }
.feed-img.alt .cre.b { opacity: 1; transform: none; }
.feed-img .lbl { position: absolute; z-index: 2; top: .75rem; left: .75rem; font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .1em; padding: .3rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.feed-bot { padding: .9rem 1rem; display: grid; gap: .5rem; font-size: .85rem; }
.feed-bot .cta { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-radius: 8px; background: var(--paper); font-weight: 600; }
.ads-side { display: grid; gap: 0; }
.ads-side .kv { display: grid; gap: .25rem; padding: 1rem 0; border-top: 1px solid var(--hair); }
.ads-side .kv:last-child { border-bottom: 1px solid var(--hair); }
.ads-side small { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.ads-side b { font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; }
.ads-side p { font-size: .88rem; color: var(--mute); }
@media (max-width: 900px) { .ads-view { grid-template-columns: 1fr; } }

/* ---------- process strip ---------- */
.process { position: relative; height: 320vh; }
.process-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 2.5rem; }
.process-head { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.process-track { display: flex; gap: 1rem; padding: 0 var(--gutter); will-change: transform; width: max-content; }
.stepc { flex: none; width: min(80vw, 34rem); aspect-ratio: 4 / 3; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--hair); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; position: relative; overflow: hidden; }
.stepc:nth-child(2) { background: var(--ink); color: #fff; box-shadow: none; }
.stepc:nth-child(4) { background: var(--blue); color: #fff; box-shadow: none; }
.stepc .n { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -.05em; line-height: .9; }
.stepc .ic { position: absolute; right: 1.25rem; top: 1.25rem; width: clamp(5rem, 8vw, 8rem); height: auto; aspect-ratio: 1; }
.stepc h3 { align-self: end; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.stepc p { color: var(--mute); max-width: 26rem; }
.stepc:nth-child(2) p, .stepc:nth-child(4) p { color: rgba(255, 255, 255, .75); }
.stepc .dur { font-family: var(--label); font-weight: 500; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
@media (max-width: 900px) { .process { height: auto; } .process-sticky { position: static; height: auto; } .process-track { flex-direction: column; } .stepc { width: auto; aspect-ratio: auto; min-height: 18rem; } }

/* ---------- formats (pale) ---------- */
.formats { margin: 0 var(--shell); border-radius: var(--radius); background: var(--paper-2); padding: var(--space) clamp(1.5rem, 4vw, 4rem); }
.fmt-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.fmt-list { display: grid; }
.fmt { display: grid; grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--hair); }
.fmt:last-child { border-bottom: 1px solid var(--hair); }
.fmt .n { font-family: var(--label); font-weight: 500; font-size: .72rem; letter-spacing: .08em; color: var(--mute); align-self: start; padding-top: .6rem; }
.fmt h3 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
.fmt .for { color: var(--mute); margin-top: .5rem; max-width: 26rem; }
.fmt-meta { display: grid; gap: .9rem; }
.fmt-meta div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; font-size: .95rem; align-items: baseline; }
.fmt-meta small { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.fmt .btn { justify-self: end; }
.fmt-note { margin-top: 2rem; display: grid; grid-template-columns: 3rem 1fr; gap: 2rem; color: var(--mute); font-size: .95rem; max-width: 60rem; align-items: center; }
.fmt-note .ic { width: 3rem; height: 3rem; }
@media (max-width: 900px) { .fmt { grid-template-columns: 1fr; gap: 1rem; } .fmt .btn { justify-self: start; } .fmt-head { grid-template-columns: 1fr; } }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.team-intro { position: sticky; top: 7rem; display: grid; gap: 1.5rem; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.person { display: grid; gap: 1rem; }
.person:nth-child(2) { margin-top: 4rem; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--ink); isolation: isolate; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease); }
.portrait::after { content: ""; position: absolute; inset: 0; background: var(--blue); mix-blend-mode: multiply; opacity: 0; transition: opacity .8s var(--ease); }
.portrait:hover img { transform: scale(1.04); }
.portrait:hover::after { opacity: .55; }
.portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1rem; color: var(--mute-dark); font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; background: radial-gradient(70% 55% at 50% 100%, rgba(47, 85, 255, .4), transparent 70%), var(--ink-2); }
.portrait .ph::before { content: ""; position: absolute; inset: 0; background: url("/assets/images/grain.png"); background-size: 140px; opacity: .14; }
.portrait .ph > * { position: relative; }
.portrait .ph .ic { width: 6rem; height: 6rem; }
.portrait img + .ph { display: none; }
.person h3 { font-size: 1.5rem; }
.person .role { color: var(--blue); font-weight: 500; font-size: .9rem; margin-top: .2rem; }
.person p { color: var(--mute); font-size: .95rem; }
.person .lnk { font-size: .88rem; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } .team-intro { position: static; } .person:nth-child(2) { margin-top: 0; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* ---------- principles rail ---------- */
.rail { margin: 0 var(--shell); border-radius: var(--radius); background: var(--ink); color: #fff; padding: var(--space) clamp(1.5rem, 4vw, 4rem); display: grid; gap: 3rem; overflow: hidden; position: relative; }
.rail-head { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.rail-nav { display: flex; gap: .5rem; align-items: center; font-family: var(--label); font-weight: 500; font-size: .7rem; letter-spacing: .08em; }
.rail-nav button { width: 3rem; height: 3rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair-dark); display: grid; place-items: center; transition: background .3s ease, color .3s ease; }
.rail-nav button:hover { background: #fff; color: var(--ink); }
.rail-nav button svg { width: 1rem; height: 1rem; }
.rail-nav span { margin: 0 .75rem; }
.rail-view { overflow: hidden; }
.rail-track { display: flex; transition: transform .9s var(--ease-io); }
.quote { flex: none; width: 100%; display: grid; gap: 1.5rem; }
.quote p { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05; max-width: 24ch; }
.quote p em { font-style: normal; color: var(--blue); }
.quote footer { font-size: .9rem; color: var(--mute-dark); }

/* ---------- journal ---------- */
.journal { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.25rem; }
.post { display: grid; grid-template-rows: auto 1fr auto; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--hair); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--ink); }
.post.big { grid-row: span 2; background: var(--ink); color: #fff; box-shadow: none; }
.post.big:hover { box-shadow: 0 50px 80px -50px rgba(0, 0, 0, .8); }
.post .meta { display: flex; justify-content: space-between; font-family: var(--label); font-weight: 500; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.post.big .meta { color: var(--mute-dark); }
.post h3, .post h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 500; text-transform: none; margin: 0; }
.post.big h3, .post.big h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.post p { color: var(--mute); }
.post.big p { color: var(--mute-dark); max-width: 30rem; }
.post .ic { width: clamp(6rem, 10vw, 10rem); height: auto; aspect-ratio: 1; justify-self: end; }
.post .lnk { font-size: .9rem; }
@media (max-width: 900px) { .journal { grid-template-columns: 1fr; } .post.big { grid-row: auto; } }
.journal-more { margin-top: clamp(2rem, 4vw, 3rem); }
.journal-more h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .75rem; text-transform: none; letter-spacing: -.01em; }
.journal-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.journal-more li { border-top: 1px solid var(--hair); }
.journal-more a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: .85rem 0; font-size: 1.02rem; line-height: 1.3; color: inherit; }
.journal-more a svg { flex: none; width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
.journal-more a:hover svg { transform: translate(2px, -2px); }
@media (max-width: 700px) { .journal-more ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA / footer ---------- */
.cta { text-align: center; display: grid; justify-items: center; gap: 2rem; padding: var(--space) var(--gutter); }
.cta h2 { font-size: clamp(2.8rem, 7vw, 7rem); letter-spacing: -.045em; line-height: .92; max-width: 14ch; }
.cta h2 em { font-style: normal; color: var(--blue); }
.cta p { max-width: 34rem; color: var(--mute); font-size: 1.05rem; }
.cta .row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.site-footer { margin: 0 var(--shell) var(--shell); border-radius: var(--radius); background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem) 1.5rem; overflow: hidden; position: relative; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-bottom: 3rem; }
.footer-grid h4, .footer-grid .footer-h { line-height: 1.4; font-family: var(--label); font-weight: 400; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-dark); margin-bottom: 1rem; }
.footer-grid ul { display: grid; gap: .5rem; font-size: .95rem; }
.footer-grid a { transition: color .3s ease; }
.footer-grid a:hover { color: var(--blue); }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand p { color: var(--mute-dark); max-width: 26rem; }
.footer-legal { display: grid; gap: .25rem; font-size: .85rem; color: var(--mute-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--hair-dark); font-size: .8rem; color: var(--mute-dark); }
.footer-word { margin-top: 1.5rem; font-family: var(--display); font-weight: 600; font-size: clamp(3.4rem, 15.2vw, 24rem); line-height: .8; letter-spacing: -.06em; color: #fff; user-select: none; white-space: nowrap; overflow: hidden; }
.footer-word span { display: inline-block; transform: translateY(40%); transition: transform 1.2s var(--ease); }
.footer-word.in span { transform: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* glass icons need ink behind them on paper surfaces */
.stepc:nth-child(odd) .ic, .deep-head .ic, .case:nth-child(odd) .ic, .page-hero.light .ic, .fmt-note .ic, .post:not(.big) .ic, .ic.on-paper { background: var(--ink); border-radius: 22px; padding: .35rem; }

/* ---------- reveal grammar: lines rise from a mask ---------- */
.rl { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rl > * { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.rl.in > * { transform: none; }
.rv { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.rv.in { clip-path: inset(0 0 0 0); }
.rf { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rf.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* ---------- inner pages ---------- */
.page-hero { margin: var(--shell); padding: clamp(9rem, 18vh, 12rem) clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4rem); border-radius: var(--radius); background: var(--ink); color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 2rem; align-items: end; }
.page-hero.light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.page-hero h1 { font-size: clamp(3rem, 7.4vw, 7rem); max-width: 14ch; }
.page-hero .lede { margin-top: 1.5rem; color: var(--mute-dark); }
.page-hero.light .lede { color: var(--mute); }
.page-hero .side { justify-self: end; display: grid; gap: 1rem; max-width: 22rem; }
.page-hero .side .ic { width: clamp(8rem, 14vw, 14rem); height: auto; aspect-ratio: 1; justify-self: end; }
.page-hero .glow { position: absolute; inset: 0; background: radial-gradient(45% 55% at 85% 20%, rgba(47, 85, 255, .35), transparent 70%); pointer-events: none; }
@media (max-width: 900px) { .page-hero { grid-template-columns: 1fr; margin: 10px; padding-top: 7.5rem; } .page-hero .side { justify-self: start; } .page-hero .side .ic { justify-self: start; width: 7rem; } }

.prose { max-width: 42rem; display: grid; gap: 1.1rem; font-size: 1.08rem; line-height: 1.6; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-top: 1.5rem; }
.prose h3 { margin-top: .75rem; font-size: 1.4rem; }
.prose ul, .prose ol { display: grid; gap: .5rem; padding-left: 1.25rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose blockquote { margin: .5rem 0; padding: 1.25rem 1.5rem; border-left: 1px solid var(--blue); font-family: var(--display); font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.prose code { font-family: var(--mono); font-size: .85em; padding: .1em .4em; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { font-family: var(--label); font-weight: 500; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.table-wrap { overflow-x: auto; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 6vw, 6rem); }
.article-aside { position: sticky; top: 7rem; align-self: start; display: grid; gap: 1rem; }
.aside-card { padding: 1.25rem; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); display: grid; gap: .75rem; font-size: .9rem; }
.aside-card p { color: var(--mute); }
.aside-card h3 { font-size: 1.25rem; line-height: 1.1; letter-spacing: -.02em; font-weight: 500; }
.aside-card.dark { background: var(--ink); color: #fff; box-shadow: none; }
.aside-card.dark p { color: var(--mute-dark); }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* service deep rows */
.deep { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 6rem); padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--hair); scroll-margin-top: 5rem; }
.deep-head { position: sticky; top: 7rem; display: grid; gap: 1.25rem; align-content: start; }
.deep-head .ic { width: clamp(8rem, 12vw, 12rem); height: auto; aspect-ratio: 1; margin-left: -1rem; }
.deep-head h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.deep-head p { color: var(--mute); max-width: 28rem; }
.deep-body { display: grid; gap: 2rem; }
.list-block h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.list-block ul { display: grid; }
.list-block li { padding: .8rem 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start; }
.list-block li:last-child { border-bottom: 1px solid var(--hair); }
.list-block li b { font-family: var(--label); font-weight: 400; font-size: .68rem; color: var(--mute); padding-top: .3rem; }
.list-block li span { font-size: .98rem; }
.list-block li small { display: block; color: var(--mute); font-size: .88rem; margin-top: .15rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.kv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; }
.kv-row div { background: #fff; padding: 1.1rem 1.25rem; display: grid; gap: .3rem; }
.kv-row small { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.kv-row b { font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -.03em; }
@media (max-width: 900px) { .deep { grid-template-columns: 1fr; } .deep-head { position: static; } .two, .kv-row { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 6rem); }
.faq-list { display: grid; }
.faq-item { border-top: 1px solid var(--hair); }
.faq-item:last-child { border-bottom: 1px solid var(--hair); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; padding: 1.4rem 0; text-align: left; font-family: var(--display); font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; transition: color .3s ease; }
.faq-q:hover { color: var(--blue); }
.faq-q .plus { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); display: grid; place-items: center; position: relative; transition: background .35s ease, transform .6s var(--ease); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; width: .8rem; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.faq-q .plus::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .plus { background: var(--ink); color: #fff; box-shadow: none; transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .plus::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 1.4rem; color: var(--mute); max-width: 40rem; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* cases */
.cases { display: grid; gap: 1rem; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.case:nth-child(even) { background: var(--ink); color: #fff; box-shadow: none; }
.case-head { display: grid; gap: 1rem; align-content: start; }
.case-head .tags { display: flex; flex-wrap: wrap; gap: .4rem; font-family: var(--label); font-weight: 500; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.case-head .tags span { padding: .35rem .6rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); }
.case:nth-child(even) .tags span { box-shadow: inset 0 0 0 1px var(--hair-dark); }
.case-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.case-head p { color: var(--mute); }
.case:nth-child(even) .case-head p { color: var(--mute-dark); }
.case-head .ic { width: clamp(6rem, 9vw, 9rem); height: auto; aspect-ratio: 1; margin-left: -.75rem; }
.case-cols { display: grid; }
.case-col { padding: 1rem 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.case:nth-child(even) .case-col { border-color: var(--hair-dark); }
.case-col:last-child { border-bottom: 1px solid var(--hair); }
.case:nth-child(even) .case-col:last-child { border-color: var(--hair-dark); }
.case-col small { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding-top: .25rem; }
.case:nth-child(even) .case-col small { color: var(--mute-dark); }
.case-col ul { display: grid; gap: .35rem; font-size: .93rem; }
.case-col li { display: flex; gap: .55rem; align-items: baseline; }
.case-col li::before { content: ""; width: .35rem; height: .35rem; border-radius: 50%; background: var(--blue); flex: none; transform: translateY(-.15em); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case-col { grid-template-columns: 1fr; gap: .4rem; } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .88rem; font-weight: 500; }
.field label span { color: var(--mute); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; min-height: 3.3rem; padding: .85rem 0; border: 0; border-bottom: 1px solid var(--hair); background: transparent; font: inherit; font-size: 1.05rem; color: var(--text); border-radius: 0; transition: border-color .3s ease; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #a3a3a9; }
.field .err { display: none; font-size: .8rem; color: #c8102e; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-bottom-color: #c8102e; }
.field.invalid .err { display: block; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--mute); }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--blue); flex: none; }
.consent .err { display: none; color: #c8102e; }
.consent.invalid { color: #c8102e; }
.consent.invalid .err { display: block; margin-top: .3rem; }
.consent.invalid input { outline: 2px solid #c8102e; outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .5rem; }
.form-status { padding: 1rem 1.15rem; border-radius: 12px; font-size: .95rem; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--blue-soft); color: var(--blue-deep); }
.form-status.fail { background: #fde8ea; color: #a1122a; }
.hp { position: absolute; left: -9999px; }
.contact-side { display: grid; }
.contact-card { display: grid; gap: .6rem; padding: 1.5rem 0; border-top: 1px solid var(--hair); }
.contact-card:last-child { border-bottom: 1px solid var(--hair); }
.contact-card h3, .contact-card h2 { font-size: 1.15rem; line-height: 1.02; letter-spacing: -.025em; font-weight: 500; text-transform: none; margin: 0; }
.contact-card p, .contact-card li { color: var(--mute); font-size: .95rem; }
.contact-card a.big { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.contact-card a.big:hover { color: var(--blue); }
.contact-card ol { display: grid; gap: .6rem; counter-reset: s; }
.contact-card ol li { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; align-items: baseline; }
.contact-card ol li::before { counter-increment: s; content: "0" counter(s); font-family: var(--label); font-weight: 500; font-size: .66rem; color: var(--blue); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* empty / 404 */
.empty { display: grid; gap: 1rem; padding: clamp(2rem, 5vw, 4rem) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); max-width: 48rem; }
.empty p { color: var(--mute); max-width: 34rem; }
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--space) var(--gutter); }
.nf .code { font-family: var(--label); font-weight: 500; color: var(--blue); letter-spacing: .1em; margin-bottom: 1rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::after { animation: none; }
  .rl > *, .hero h1 .w i { transform: none; }
  .rv { clip-path: none; }
  .rf, .hero-side, .hero-rail, .hero-mark { opacity: 1; transform: none; }
  .curtain { display: none; }
  .footer-word span { transform: none; }
  .process { height: auto; } .process-sticky { position: static; height: auto; } .process-track { flex-wrap: wrap; }
}

/* QA-only: ?static=1 caps viewport-relative heights so a tall headless window renders the whole page */
.is-static .hero { min-height: 880px; }
.is-static .process { height: auto; }
.is-static .process-sticky { position: static; height: auto; padding-block: var(--space); }
.is-static .process-track { flex-wrap: wrap; }
.is-static body::after { display: none; }

/* ==========================================================================
   v3 additions
   ========================================================================== */

/* ---------- mega menu ---------- */
.nav { position: relative; }
.nav .has-menu { position: static; }
.nav .has-menu > a::before { content: ""; position: absolute; left: -1rem; right: -1rem; top: 100%; height: 1.4rem; }
.mega { position: absolute; top: calc(100% + 1rem); left: 50%; transform: translate(-50%, 8px); width: min(52rem, calc(100vw - 3rem)); padding: .75rem; border-radius: 20px; background: rgba(11, 11, 12, .92); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .8); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s .35s; }
.has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.mega a { display: grid; grid-template-columns: 3.2rem 1fr; gap: .9rem; align-items: start; padding: 1rem; border-radius: 14px; transition: background .3s ease; }
.mega a::after { display: none; }
.mega a:hover { background: rgba(255, 255, 255, .07); }
.mega .ic { width: 3.2rem; height: 3.2rem; }
.mega b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: -.02em; margin-bottom: .2rem; }
.mega small { display: block; font-size: .8rem; color: var(--mute-dark); line-height: 1.4; }
.mega .all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; border-top: 1px solid var(--hair-dark); font-size: .85rem; color: var(--mute-dark); border-radius: 0; }
.mega .all:hover { background: none; color: #fff; }
.site-header { mix-blend-mode: normal; transition: transform .6s var(--ease), color .4s ease; }
.site-header.on-light { color: var(--ink); }
.mobile-menu .sub { display: grid; padding: 0 0 .5rem 1rem; }
.mobile-menu .sub a { font-size: 1.25rem; padding: .55rem 0; border: 0; font-family: var(--body); font-weight: 400; color: var(--mute-dark); }

/* ---------- logo chips in the marquee ---------- */
.marquee { padding: 1.5rem 0; }
.logo-chip { display: inline-flex; align-items: center; gap: .7rem; height: 3.6rem; padding: 0 1.2rem 0 .9rem; border-radius: 999px; background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .08), inset 0 1px 0 #fff, 0 10px 30px -18px rgba(11, 11, 12, .35); position: relative; overflow: hidden; font-family: var(--body); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.logo-chip::before { content: ""; position: absolute; inset: 0; background: url("/assets/images/grain.png"); background-size: 120px; opacity: .08; pointer-events: none; }
.logo-chip img { height: 1.5rem; width: auto; position: relative; }
.logo-chip img.wide { height: 1.15rem; }
.logo-chip img.tall { height: 1.7rem; }
.marquee-set { gap: 2rem; padding-right: 2rem; font-size: clamp(1.4rem, 2.6vw, 2.2rem); }

/* ---------- tracking visualisation ---------- */
.tviz { padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.5rem; }
.tviz-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.tviz-top .k { font-family: var(--label); font-weight: 500; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-dark); }
.switch { display: inline-flex; align-items: center; gap: .75rem; padding: .35rem .35rem .35rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hair-dark); font-size: .85rem; font-weight: 500; cursor: pointer; user-select: none; }
.switch i { position: relative; width: 3rem; height: 1.7rem; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .4s ease; flex: none; }
.switch i::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff; transition: transform .5s var(--ease); }
.tviz[data-mode="server"] .switch i { background: var(--blue); }
.tviz[data-mode="server"] .switch i::after { transform: translateX(1.3rem); }
.switch .lbl b { display: none; font-weight: 500; }
.tviz[data-mode="server"] .switch .lbl b { display: inline; }
.tviz[data-mode="server"] .switch .lbl span { display: none; }
.tviz-stage { position: relative; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 2.5rem; align-items: stretch; min-height: 22rem; }
.tviz-stage svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wire { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; transition: stroke .4s ease, opacity .4s ease; }
.wire.live { stroke: var(--blue); stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
.wire.blocked { stroke: #ff7a8a; stroke-dasharray: 2 6; opacity: .75; }
.wire.off { opacity: .15; }
.tnode { position: relative; z-index: 1; display: grid; gap: .5rem; align-content: start; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--hair-dark); transition: box-shadow .4s ease, background .4s ease, opacity .4s ease; }
.tnode.hi { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 6px rgba(47, 85, 255, .12); background: rgba(47, 85, 255, .08); }
.tnode .t { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.tnode .t .ic { width: 2.6rem; height: 2.6rem; flex: none; margin: -.3rem 0; }
.tnode .t .lg { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: #fff; padding: .3rem; flex: none; }
.tnode .t .lg img { width: 100%; height: 100%; object-fit: contain; }
.tnode small { font-size: .8rem; color: var(--mute-dark); line-height: 1.4; }
.tnode .val { font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tnode .val em { font-style: normal; font-size: .8rem; color: var(--mute-dark); margin-left: .35rem; font-family: var(--body); }
.tcol { display: grid; gap: .75rem; align-content: center; }
.tnode.off { opacity: .35; }
.tnode.bad .val { color: #ff7a8a; }
.tviz[data-mode="server"] .tnode.bad .val { color: #fff; }
.tviz[data-mode="server"] .tnode.off { opacity: 1; }
.tviz-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair-dark); border: 1px solid var(--hair-dark); border-radius: 14px; overflow: hidden; }
.tviz-bottom div { padding: 1rem 1.1rem; background: var(--ink-2); display: grid; gap: .25rem; }
.tviz-bottom small { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-dark); }
.tviz-bottom b { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tviz-bottom p { font-size: .82rem; color: var(--mute-dark); }
.tviz[data-mode="server"] .tviz-bottom b { color: #8fa4ff; }
.tviz-note { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-dark); }
.events { display: grid; gap: .35rem; }
.events span { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--mono); font-size: .68rem; padding: .35rem .5rem; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.events span b { font-weight: 400; color: var(--mute-dark); }
.loss { height: .45rem; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.loss i { display: block; height: 100%; width: 100%; transform: scaleX(var(--s, .38)); transform-origin: left; background: #ff7a8a; transition: transform 1s var(--ease), background .4s ease; }
.tviz[data-mode="server"] .loss i { background: var(--blue); }
@media (max-width: 900px) { .tviz-stage { grid-template-columns: 1fr; gap: 1rem; } .tviz-stage svg.wires { display: none; } .tviz-bottom { grid-template-columns: 1fr; } }

/* ---------- email: why + gallery ---------- */
.why3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair-dark); border: 1px solid var(--hair-dark); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.why3 div { padding: 1.5rem; background: var(--ink); display: grid; gap: .5rem; align-content: start; }
.why3 b { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; line-height: 1; }
.why3 b em { font-style: normal; color: var(--blue); }
.why3 p { color: var(--mute-dark); font-size: .92rem; }
.why3 small { font-family: var(--label); font-weight: 500; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-dark); }
@media (max-width: 800px) { .why3 { grid-template-columns: 1fr; } }
.mailgal { position: relative; min-width: 0; max-width: 100%; }
.mailgal-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1.25rem; scrollbar-width: none; }
.mailgal-track::-webkit-scrollbar { display: none; }
.mailframe { flex: none; width: 21rem; scroll-snap-align: start; display: grid; gap: .75rem; }
.mailframe .shell { position: relative; height: 30rem; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px var(--hair-dark); transition: transform .6s var(--ease); }
.mailframe:hover .shell { transform: translateY(-6px); }
.mailframe iframe { width: 600px; height: 1600px; border: 0; transform: scale(.56); transform-origin: 0 0; pointer-events: none; }
.mailframe .shell::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5rem; background: linear-gradient(transparent, rgba(0, 0, 0, .18)); pointer-events: none; }
.mailframe .open { position: absolute; left: 50%; bottom: 1rem; transform: translate(-50%, 8px); opacity: 0; transition: opacity .4s ease, transform .5s var(--ease); z-index: 2; }
.mailframe:hover .open, .mailframe:focus-within .open { opacity: 1; transform: translate(-50%, 0); }
.mailframe .cap { display: grid; gap: .15rem; }
.mailframe .cap b { font-weight: 500; }
.mailframe .cap small { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-dark); }
.mailgal-nav { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .5rem; }
.mailgal-nav button { width: 3rem; height: 3rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair-dark); display: grid; place-items: center; transition: background .3s ease, color .3s ease; }
.mailgal-nav button:hover { background: #fff; color: var(--ink); }
.mailgal-nav svg { width: 1rem; height: 1rem; }

/* ---------- ads: side by side + realistic feed ---------- */
.ads-duo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.25rem; align-items: start; }
.ads-duo .col { display: grid; gap: .75rem; }
.ads-duo .col > .k { font-family: var(--label); font-weight: 500; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: .5rem; }
.ads-duo .col > .k img { height: .95rem; }
@media (max-width: 900px) { .ads-duo { grid-template-columns: 1fr; } }
.ig { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -40px rgba(0, 0, 0, .5); overflow: hidden; max-width: 25rem; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #262626; }
.ig-top { display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; }
.ig-top .av { width: 2.1rem; height: 2.1rem; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); flex: none; }
.ig-top .av i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #2e3b2f; box-shadow: inset 0 0 0 2px #fff; }
.ig-top b { display: block; font-size: .82rem; font-weight: 600; line-height: 1.2; }
.ig-top small { display: block; font-size: .7rem; color: #737373; }
.ig-top .dots { margin-left: auto; font-weight: 700; letter-spacing: .1em; color: #262626; }
.ig-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.ig-img .cre { position: absolute; inset: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.ig-img .cre.b { opacity: 0; transform: scale(1.03); }
.ig-img.alt .cre.a { opacity: 0; transform: scale(.985); }
.ig-img.alt .cre.b { opacity: 1; transform: none; }
.ig-img .lbl { position: absolute; z-index: 3; right: .75rem; top: .75rem; font-family: var(--label); font-weight: 500; font-size: .6rem; letter-spacing: .1em; padding: .3rem .55rem; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; }
.ig-cta { display: flex; justify-content: space-between; align-items: center; padding: .7rem .9rem; border-top: 1px solid #efefef; border-bottom: 1px solid #efefef; font-size: .82rem; font-weight: 600; }
.ig-cta svg { width: .9rem; height: .9rem; }
.ig-acts { display: flex; gap: .9rem; padding: .65rem .9rem .3rem; }
.ig-acts svg { width: 1.45rem; height: 1.45rem; stroke: #262626; fill: none; stroke-width: 1.8; }
.ig-acts svg:last-child { margin-left: auto; }
.ig-body { padding: 0 .9rem .9rem; font-size: .8rem; line-height: 1.4; display: grid; gap: .3rem; }
.ig-body b { font-weight: 600; }
.ig-body .m { color: #737373; font-size: .72rem; }
/* product creative: natural cosmetics, 2026 clean aesthetic */
.cre-a { background: #ece6da; display: grid; place-items: center; }
.cre-a::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 100%, rgba(120, 110, 90, .35), transparent 70%); }
.cre-a::after { content: ""; position: absolute; inset: 0; background: url("/assets/images/grain.png"); background-size: 140px; opacity: .14; mix-blend-mode: multiply; pointer-events: none; }
.bottle { position: relative; width: 34%; aspect-ratio: 1 / 2.6; display: grid; grid-template-rows: 14% 6% 1fr; filter: drop-shadow(0 30px 30px rgba(60, 50, 30, .35)); }
.bottle .cap { background: linear-gradient(90deg, #2b2b2b, #4a4a4a 40%, #262626); border-radius: 6px 6px 2px 2px; margin: 0 22%; }
.bottle .neck { background: #d9d2c4; margin: 0 30%; }
.bottle .body { background: linear-gradient(90deg, #d9d2c4, #f2ede4 35%, #e6dfd2 70%, #cfc6b5); border-radius: 12px 12px 18px 18px; position: relative; overflow: hidden; }
.bottle .body::after { content: ""; position: absolute; left: 14%; right: 14%; top: 30%; height: 42%; background: #fff; opacity: .92; border-radius: 4px; }
.bottle .label { position: absolute; left: 14%; right: 14%; top: 30%; height: 42%; display: grid; place-content: center; text-align: center; font-family: var(--display); color: #2b2b2b; z-index: 1; }
.bottle .label b { font-weight: 600; font-size: clamp(.7rem, 1.4vw, 1.05rem); letter-spacing: -.02em; }
.bottle .label small { font-size: clamp(.42rem, .8vw, .58rem); letter-spacing: .12em; text-transform: uppercase; color: #6b6660; margin-top: .3em; }
.cre-a .tag { position: absolute; left: 1rem; bottom: 1rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.03em; color: #2b2b2b; line-height: 1.05; max-width: 60%; }
.cre-a .tag small { display: block; font-family: var(--body); font-size: .72rem; letter-spacing: 0; color: #6b6660; margin-top: .3rem; font-weight: 400; }
.cre-b { background: #1f2a22; display: grid; align-content: end; padding: 1.25rem; color: #f3efe6; }
.cre-b::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 70% 30%, rgba(120, 160, 120, .35), transparent 70%); }
.cre-b::after { content: ""; position: absolute; inset: 0; background: url("/assets/images/grain.png"); background-size: 140px; opacity: .12; pointer-events: none; }
.cre-b .big { position: relative; font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.04em; line-height: .95; }
.cre-b .row { position: relative; display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.cre-b .row span { font-size: .68rem; padding: .3rem .6rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(243, 239, 230, .4); }
.cre-b .leaf { position: absolute; right: -10%; top: -6%; width: 70%; opacity: .45; }

/* ---------- process: one card in view ---------- */
.process-track { gap: 1.25rem; }
.stepc { width: min(100vw - 2 * var(--gutter), 1100px); aspect-ratio: auto; min-height: min(56vh, 30rem); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr auto; gap: 1rem 2rem; }
.stepc .n { grid-column: 1; grid-row: 1; }
.stepc .ic { position: static; grid-column: 2; grid-row: 1; justify-self: end; width: clamp(6rem, 10vw, 11rem); }
.stepc > div:not(.n):not(.dur) { grid-column: 2; grid-row: 2; align-self: end; }
.stepc h3 { align-self: auto; }
.stepc .dur { grid-column: 1; grid-row: 3; }
.process-prog { display: flex; gap: .4rem; margin-top: 1rem; }
.process-prog i { width: 2.2rem; height: 3px; border-radius: 3px; background: var(--hair); transition: background .4s ease; }
.process-prog i.on { background: var(--ink); }
@media (max-width: 900px) { .stepc { grid-template-columns: 1fr; width: auto; min-height: 0; } .stepc .n, .stepc .ic, .stepc > div:not(.n):not(.dur), .stepc .dur { grid-column: auto; grid-row: auto; } .stepc .ic { justify-self: start; } }

/* ---------- testimonials ---------- */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tcard { display: grid; grid-template-rows: auto 1fr auto auto; gap: 1.25rem; padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--radius); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--hair-dark); }
.tcard .stars { display: flex; gap: .2rem; color: var(--blue); }
.tcard .stars svg { width: 1rem; height: 1rem; fill: currentColor; }
.tcard p { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -.02em; line-height: 1.2; }
.tcard footer { display: flex; align-items: center; gap: .8rem; font-size: .85rem; }
.tcard footer .av { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: .9rem; flex: none; }
.tcard footer b { display: block; font-weight: 500; }
.tcard footer small { color: var(--mute-dark); }
.tcard .res { font-family: var(--label); font-weight: 500; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-dark); display: flex; gap: .5rem; align-items: center; padding-top: .75rem; border-top: 1px solid var(--hair-dark); }
.tcard .res b { color: #8fa4ff; font-weight: 500; }
@media (max-width: 900px) { .testi { grid-template-columns: 1fr; } }

/* ---------- service pages ---------- */
.svc-hero { margin: var(--shell); border-radius: var(--radius); background: var(--ink); color: #fff; padding: clamp(8rem, 16vh, 11rem) clamp(1.5rem, 4vw, 4rem) clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; display: grid; gap: 2.5rem; }
.svc-hero .glow { position: absolute; inset: 0; background: radial-gradient(45% 55% at 85% 20%, rgba(47, 85, 255, .4), transparent 70%); pointer-events: none; }
.crumbs { position: relative; display: flex; gap: .6rem; font-family: var(--label); font-weight: 500; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-dark); }
.crumbs a:hover { color: #fff; }
.svc-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2rem; align-items: end; }
.svc-hero h1 { font-size: clamp(2.8rem, 6.6vw, 6.4rem); max-width: 14ch; }
.svc-hero .lede { color: var(--mute-dark); margin-top: 1.5rem; max-width: 34rem; }
.svc-hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.svc-hero .side { display: grid; gap: 1rem; justify-items: end; }
.svc-hero .side .ic { width: clamp(9rem, 16vw, 16rem); height: auto; aspect-ratio: 1; }
.svc-hero .proof { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.svc-hero .proof .logo-chip { height: 2.6rem; font-size: .8rem; padding: 0 .9rem 0 .6rem; }
.svc-hero .proof .logo-chip img { height: 1.05rem; }
.svc-hero .kpis { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--hair-dark); }
.svc-hero .kpis div { display: grid; gap: .2rem; }
.svc-hero .kpis b { font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -.03em; }
.svc-hero .kpis small { color: var(--mute-dark); font-size: .8rem; }
@media (max-width: 900px) { .svc-hero { margin: 10px; padding-top: 7rem; } .svc-hero-grid { grid-template-columns: 1fr; } .svc-hero .side { justify-items: start; } .svc-hero .proof { justify-content: flex-start; } .svc-hero .kpis { grid-template-columns: 1fr 1fr; } }
.explain { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.explain .sticky { position: sticky; top: 7rem; display: grid; gap: 1.25rem; }
.explain .prose { max-width: none; }
.explain .prose > p:first-child { font-size: 1.2rem; }
@media (max-width: 900px) { .explain { grid-template-columns: 1fr; } .explain .sticky { position: static; } }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.numbers div { padding: 1.5rem; background: #fff; display: grid; gap: .4rem; align-content: start; }
.numbers b { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.045em; line-height: .95; }
.numbers b em { font-style: normal; color: var(--blue); }
.numbers p { font-size: .92rem; color: var(--text); }
.numbers small { font-size: .72rem; color: var(--mute); }
.numbers small a { text-decoration: underline; }
@media (max-width: 900px) { .numbers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .numbers { grid-template-columns: 1fr; } }
.step-row { display: grid; grid-template-columns: 4rem minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 1.5rem; padding: clamp(1.25rem, 2.5vw, 2rem) 0; border-top: 1px solid var(--hair); align-items: start; }
.step-row:last-child { border-bottom: 1px solid var(--hair); }
.step-row .n { font-family: var(--display); font-weight: 500; font-size: 2rem; letter-spacing: -.04em; color: var(--blue); line-height: 1; }
.step-row h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.step-row p { color: var(--mute); }
.step-row .dur { font-family: var(--label); font-weight: 500; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); white-space: nowrap; padding-top: .5rem; }
@media (max-width: 900px) { .step-row { grid-template-columns: 3rem 1fr; } .step-row p, .step-row .dur { grid-column: 2; } }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vs > div { padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--radius); display: grid; gap: 1rem; align-content: start; }
.vs .them { background: #fff; box-shadow: inset 0 0 0 1px var(--hair); color: var(--mute); }
.vs .us { background: var(--ink); color: #fff; }
.vs h3 { font-size: 1.2rem; }
.vs .them h3 { color: var(--ink); }
.vs ul { display: grid; gap: .55rem; font-size: .95rem; }
.vs li { display: flex; gap: .6rem; align-items: baseline; }
.vs li::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; flex: none; transform: translateY(-.1em); background: #c8c8cc; }
.vs .us li::before { background: var(--blue); }
@media (max-width: 800px) { .vs { grid-template-columns: 1fr; } }
.toc { display: flex; flex-wrap: wrap; gap: .4rem; }
.toc a { font-size: .82rem; padding: .45rem .8rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); transition: background .3s ease, color .3s ease; }
.toc a:hover { background: var(--ink); color: #fff; }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; }
.section-head.split .lede { grid-column: 1; }
@media (max-width: 720px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- tracking: "Gal čia jūsų verslas?" ---------- */
.tracking-fit { padding-block: var(--space); }
.tracking-fit-head { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(18rem, .88fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; margin-bottom: clamp(2.25rem, 4vw, 4rem); }
.tracking-fit-head h2 { max-width: 10ch; }
.tracking-fit-head .lede { max-width: 34rem; justify-self: end; }
.fit-stage { --fit-pad: clamp(1.15rem, 2.4vw, 2.25rem); position: relative; overflow: hidden; isolation: isolate; padding: var(--fit-pad); border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 0 42px 90px -58px rgba(0, 0, 0, .72); }
.fit-stage::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .8; background: radial-gradient(45rem 24rem at 52% 52%, rgba(47, 85, 255, .13), transparent 65%); pointer-events: none; }
.fit-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; position: relative; z-index: 4; }
.fit-tab { min-height: 5.25rem; display: grid; grid-template-columns: 2.2rem 1fr; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: #fff; text-align: left; transition: color .4s ease, background .5s var(--ease), box-shadow .4s ease, transform .5s var(--ease); }
.fit-tab svg { width: 2rem; height: 2rem; transition: transform .5s var(--ease); }
.fit-tab span { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.fit-tab b { font-family: var(--display); font-weight: 500; font-size: clamp(1rem, 1.35vw, 1.25rem); letter-spacing: -.02em; line-height: 1.1; }
.fit-tab small { padding-left: .8rem; border-left: 1px solid rgba(255, 255, 255, .22); color: var(--mute-dark); font-family: var(--label); font-size: .61rem; font-weight: 500; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }
.fit-tab:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.fit-tab:hover svg { transform: scale(1.08); }
.fit-tab.is-active { background: var(--blue); box-shadow: 0 16px 38px -23px rgba(47, 85, 255, .9); }
.fit-tab.is-active small { color: rgba(255, 255, 255, .72); }
.fit-tab:focus-visible { outline-color: #fff; outline-offset: 3px; }
.fit-scenes { position: relative; min-height: clamp(27rem, 35vw, 32rem); margin-top: clamp(1.4rem, 2.6vw, 2.4rem); }
.fit-scene { position: relative; z-index: 2; min-height: inherit; display: grid; grid-template-columns: minmax(15rem, .9fr) minmax(8rem, .52fr) minmax(20rem, 1fr); gap: clamp(1.25rem, 3vw, 3.25rem); align-items: center; }
.fit-scene[hidden] { display: none; }
.fit-scene.is-active { animation: fitSceneIn .72s var(--ease) both; }
@keyframes fitSceneIn { from { opacity: .01; filter: blur(10px); clip-path: inset(0 0 12% 0 round 16px); } to { opacity: 1; filter: none; clip-path: inset(0 round 16px); } }
.fit-source { position: relative; z-index: 3; align-self: center; min-height: 15.5rem; padding: clamp(1.25rem, 2.2vw, 2rem); border-radius: 16px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); display: grid; align-content: start; gap: .42rem; }
.fit-source::after { content: ""; position: absolute; top: 50%; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(47, 85, 255, .26), 0 0 22px 6px rgba(47, 85, 255, .68); transform: translate(50%, -50%) scale(.55); animation: fitNode 2.1s ease-in-out infinite; }
.fit-source-label { margin-bottom: .35rem; color: var(--mute-dark); font-family: var(--label); font-size: .65rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.fit-source > strong { color: rgba(255, 255, 255, .75); font-size: .95rem; font-weight: 500; }
.fit-source > b { font-family: var(--display); font-size: clamp(2rem, 3.1vw, 3rem); font-weight: 500; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.fit-source-meta { display: grid; grid-template-columns: 2.85rem 1fr; align-items: center; gap: .85rem; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--hair-dark); }
.fit-source-mark { width: 2.85rem; height: 2.85rem; padding: .55rem; border-radius: 11px; background: #fff; display: grid; place-items: center; }
.fit-source-mark img { width: 100%; height: 100%; object-fit: contain; }
.fit-source-meta > span:last-child { display: grid; gap: .15rem; }
.fit-source-meta b { font-size: .95rem; font-weight: 500; }
.fit-source-meta small { color: var(--mute-dark); font-size: .77rem; line-height: 1.35; }
.fit-core { position: relative; z-index: 3; justify-self: center; width: clamp(7.7rem, 10vw, 9rem); aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center; align-content: center; gap: .4rem; color: #fff; background: var(--blue); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 18px 42px -19px rgba(47, 85, 255, .8), 0 0 32px rgba(47, 85, 255, .42); }
.fit-core::before, .fit-core::after { content: ""; position: absolute; inset: -10px; border-radius: 31px; border: 1px solid rgba(105, 133, 255, .55); animation: fitCoreRing 2.8s var(--ease) infinite; }
.fit-core::after { inset: -20px; opacity: .26; animation-delay: .55s; }
.fit-core i { position: absolute; inset: -4rem; z-index: -1; background: radial-gradient(circle, rgba(47, 85, 255, .22), transparent 66%); }
.fit-core svg { width: 1.8rem; height: 1.8rem; }
.fit-core b { font-family: var(--display); font-size: 1.05rem; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; text-align: center; }
.fit-benefits { position: relative; z-index: 3; display: grid; gap: .72rem; }
.fit-benefit { min-height: 7rem; display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: background .4s ease, transform .5s var(--ease), box-shadow .4s ease; }
.fit-benefit:hover { background: rgba(255, 255, 255, .105); transform: translateX(-5px); box-shadow: inset 0 0 0 1px rgba(119, 143, 255, .58), 0 20px 36px -30px rgba(47, 85, 255, .85); }
.fit-benefit > span { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: rgba(47, 85, 255, .18); color: #7290ff; display: grid; place-items: center; }
.fit-benefit svg { width: 1.75rem; height: 1.75rem; }
.fit-benefit p { display: grid; gap: .2rem; }
.fit-benefit b { font-family: var(--display); font-size: clamp(1rem, 1.35vw, 1.25rem); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.fit-benefit small { color: var(--mute-dark); font-size: .82rem; line-height: 1.35; }
.fit-signal-map { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fit-path { fill: none; stroke: var(--blue); stroke-width: 2.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(47, 85, 255, .9)); opacity: .9; stroke-dasharray: .014 .009; animation: fitFlow 1.4s linear infinite; }
.fit-signal-dot { fill: #fff; stroke: var(--blue); stroke-width: 3; filter: drop-shadow(0 0 7px #2f55ff); }
.fit-footer { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(14rem, .7fr); align-items: end; gap: clamp(1rem, 3vw, 3rem); padding-top: clamp(1.2rem, 2.5vw, 2rem); border-top: 1px solid var(--hair-dark); }
.fit-footer > div { display: grid; gap: .35rem; }
.fit-footer > div small { color: var(--mute-dark); font-family: var(--label); font-size: .65rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.fit-footer > div strong { max-width: 29rem; font-family: var(--display); font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; }
.fit-footer .btn { justify-self: start; white-space: nowrap; }
.fit-footer > p { display: flex; align-items: center; gap: .85rem; padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--hair-dark); color: rgba(255, 255, 255, .8); font-size: .82rem; line-height: 1.45; }
.fit-footer > p svg { width: 1.65rem; flex: none; color: #7490ff; }
@keyframes fitFlow { to { stroke-dashoffset: -.092; } }
@keyframes fitNode { 50% { transform: translate(50%, -50%) scale(1); } }
@keyframes fitCoreRing { 0%, 100% { transform: scale(.96); opacity: .25; } 50% { transform: scale(1.05); opacity: .65; } }
@media (max-width: 1050px) {
  .fit-tab span { grid-template-columns: 1fr; gap: .25rem; }
  .fit-tab small { padding-left: 0; border-left: 0; }
  .fit-scene { grid-template-columns: minmax(14rem, .82fr) minmax(7rem, .4fr) minmax(18rem, 1fr); gap: 1.4rem; }
  .fit-benefit { grid-template-columns: 2.8rem 1fr; }
  .fit-benefit > span { width: 2.8rem; height: 2.8rem; }
}
@media (max-width: 820px) {
  .tracking-fit-head { grid-template-columns: 1fr; gap: 1.25rem; }
  .tracking-fit-head .lede { justify-self: start; }
  .fit-tabs { display: flex; overflow-x: auto; padding-bottom: .35rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fit-tabs::-webkit-scrollbar { display: none; }
  .fit-tab { flex: 0 0 min(76vw, 21rem); scroll-snap-align: start; }
  .fit-scenes { min-height: 0; }
  .fit-scene { min-height: 0; grid-template-columns: 1fr; gap: 1.2rem; padding-top: .4rem; }
  .fit-source { min-height: 13.5rem; }
  .fit-source::after { top: auto; right: 50%; bottom: -8px; transform: translate(50%, 50%) scale(.55); animation-name: fitNodeMobile; }
  .fit-core { width: 7.3rem; border-radius: 22px; margin-block: .7rem; }
  .fit-benefits { gap: .6rem; }
  .fit-benefit { min-height: 0; transform: none; }
  .fit-signal-map { display: none; }
  .fit-footer { grid-template-columns: 1fr; align-items: start; }
  .fit-footer .btn { width: 100%; justify-content: space-between; }
  .fit-footer > p { padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--hair-dark); }
  @keyframes fitNodeMobile { 50% { transform: translate(50%, 50%) scale(1); } }
}
@media (max-width: 560px) {
  .tracking-fit { width: calc(100% - 2 * var(--shell)); }
  .tracking-fit-head { padding-inline: calc(var(--gutter) - var(--shell)); }
  .tracking-fit-head h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .fit-stage { --fit-pad: 1rem; }
  .fit-tab { min-height: 4.75rem; grid-template-columns: 1.8rem 1fr; padding: .9rem 1rem; }
  .fit-tab svg { width: 1.7rem; height: 1.7rem; }
  .fit-source { min-height: 12.5rem; padding: 1.2rem; }
  .fit-source > b { font-size: 2rem; }
  .fit-benefit { padding: .9rem; }
  .fit-benefit b { font-size: 1rem; }
  .fit-benefit small { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fit-path, .fit-source::after, .fit-core::before, .fit-core::after { animation: none; }
  .fit-signal-dot { display: none; }
  .fit-scene.is-active { animation: none; }
}

/* ==========================================================================
   Mobile-first corrections (375–560px). Phones are ~90% of visitors.
   ========================================================================== */
@media (max-width: 900px) {
  .hero-body { padding-top: 13.5rem; }
  .hero-mark { top: 5.6rem; width: 7.5rem; right: 1.25rem; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 4rem); }
  .slab-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .manifesto-text { font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.18; }
  .process-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .process-track { width: auto; }
  .stepc { padding: 1.5rem; }
  .stepc .n { font-size: 2.6rem; }
  .fmt-head { grid-template-columns: 1fr; }
  .svc-hero .kpis { grid-template-columns: 1fr 1fr; gap: 1rem .75rem; }
  .svc-hero .kpis b { font-size: 1.15rem; }
  .numbers b { font-size: 2.2rem; }
  .rail-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cta h2 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .footer-word { font-size: 19vw; }
  .site-footer { padding-top: 2.5rem; }
  /* directions: list becomes an accordion-free stacked list on phones */
  .dir-list, .dir-panel { display: none; }
  .dir-stack { display: grid; }
  .dir-item { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--hair-dark); }
  .dir-item:last-child { border-bottom: 1px solid var(--hair-dark); }
  .dir-item .ic { width: 4.5rem; height: 4.5rem; }
  .dir-item strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.035em; line-height: 1; margin-bottom: .35rem; }
  .dir-item p { color: var(--mute-dark); font-size: .95rem; margin-bottom: .6rem; }
}
@media (min-width: 901px) { .dir-stack { display: none; } }
@media (max-width: 560px) {
  .mailframe { width: 16.5rem; }
  .mailframe .shell { height: 26rem; }
  .mailframe iframe { transform: scale(.44); }
  .ads { padding: 1rem; }
  .ig { max-width: none; }
  .btn { min-height: 3.2rem; font-size: .92rem; }
  .hero-side .btn, .cta .btn, .fmt .btn { width: 100%; justify-content: space-between; }
  .cta .row { width: 100%; }
  .toc { gap: .35rem; }
  .toc a { font-size: .78rem; padding: .4rem .65rem; }
  .step-row .n { font-size: 1.5rem; }
  .why3 div { padding: 1.25rem; }
}

/* ---------- service pages: symptoms + not-us ---------- */
.sym { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.sym-item { padding: clamp(1.25rem, 2.5vw, 2rem); background: #fff; display: grid; gap: .6rem; align-content: start; }
.sym-item h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.sym-item p { color: var(--mute); font-size: .95rem; }
.notus { margin-top: 1rem; padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--radius); background: var(--paper-2); display: grid; gap: .6rem; max-width: 60rem; }
.notus h3 { font-size: 1.2rem; }
.notus p { color: var(--mute); }
@media (max-width: 900px) { .sym { grid-template-columns: 1fr; } }

.journal.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .journal.three { grid-template-columns: minmax(0, 1fr); } }

/* ---------- client logo marquee: direct hero continuation ---------- */
.client-marquee-strip {
  padding: .85rem 0 1rem;
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
}
.client-marquees { display: grid; gap: .7rem; }
.client-row.marquee {
  position: relative;
  padding: 0;
  border: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.client-track { align-items: stretch; }
.client-set.marquee-set {
  gap: .85rem;
  padding-right: .85rem;
  font: inherit;
  letter-spacing: normal;
}
.client-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 clamp(11rem, 15vw, 15rem);
  width: clamp(11rem, 15vw, 15rem);
  height: clamp(5.6rem, 7vw, 6.8rem);
  padding: 1rem 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(11, 11, 12, .13);
  border-radius: 14px;
  background: #fff;
}
.client-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/images/grain.png") repeat;
  background-size: 110px;
  opacity: .025;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.client-logo img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 4.45rem;
  object-fit: contain;
}
.client-logo--paper { border-color: rgba(11, 11, 12, .13); background: #fff; }
.client-logo--ink { border-color: #2a2d36; background: #101218; }
.client-logo--ink:has(img[src$="fasttrack.svg"]) { border-color: rgba(11, 11, 12, .13); background: #fff; }
.client-logo--forest { border-color: #314536; background: #17251b; }
.client-logo--petrol img { width: 136%; max-width: none; max-height: none; }
.client-logo--amber img { width: 88%; }
.client-logo--nuomajums img { width: 148%; max-width: none; max-height: none; transform: translateY(-10%); }
.client-logo--ipv4 img { width: 94%; }
.client-logo--manage img { width: 102%; max-width: none; }
.client-logo--moonart img { max-height: 4.6rem; }
.client-logo--dovanu img { width: 132%; max-width: none; max-height: none; }
.client-logo--anthonys img { width: 100%; }
.client-logo--ruta img { max-height: 4.1rem; }
.client-logo--ledinukas img { max-height: 5rem; }
.client-logo--sumani img { width: 98%; }
.client-logo--kaita img { max-height: 4.15rem; }
.client-logo--property img { width: 94%; }
.client-logo--savicki img { max-height: 4.2rem; }
.client-logo--weltaus img { width: 98%; }
.client-logo--fasttrack img { width: 100%; }
/* ---------- relocated technology marquee ---------- */
.tools-marquee {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--paper-2);
}
.tools-marquee__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.tools-marquee__head h2 { max-width: 13ch; font-size: clamp(2.6rem, 5vw, 5rem); }
.tools-marquee__head p { max-width: 34rem; color: var(--mute); font-size: 1.05rem; }
.marquee--tools { padding: 1rem 0; border-block: 1px solid var(--hair); background: rgba(255, 255, 255, .28); }
.marquee--tools .marquee-set { gap: 1.25rem; padding-right: 1.25rem; }
.marquee--tools .logo-chip { height: 3.35rem; background: rgba(255, 255, 255, .82); }

@media (hover: hover) {
  .client-row:hover .client-track,
  .marquee--tools:hover .marquee-track { filter: saturate(.88); }
}

@media (max-width: 760px) {
  .client-marquee-strip { padding-block: .65rem; }
  .tools-marquee__head { grid-template-columns: 1fr; gap: 1.1rem; align-items: start; }
  .tools-marquee__head p { max-width: 31rem; }
  .client-row.marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
  }
  .client-logo {
    flex-basis: 10.25rem;
    width: 10.25rem;
    height: 5.35rem;
    padding: .8rem 1rem;
  }
  .client-logo img { max-height: 3.75rem; }
  .client-logo--moonart img,
  .client-logo--ledinukas img { max-height: 4.1rem; }
  .tools-marquee { padding: 4.5rem 0; }
  .marquee--tools .marquee-set { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .client-row.marquee,
  .marquee--tools { overflow-x: auto; scrollbar-width: thin; }
  .client-row.marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .client-track,
  .marquee--tools .marquee-track { transform: none !important; }
}

/* Source files with generous square canvases are cropped inside the card,
   preserving the original artwork while keeping the wordmarks readable. */
.client-logo--petrol img,
.client-logo--nuomajums img,
.client-logo--dovanu img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  transform: none;
}
.client-logo--nuomajums img { object-position: center 60%; }

/* ==========================================================================
   Header v3: floating glass pill, sticky, adaptive to the surface below it
   ========================================================================== */
.site-header { position: fixed; z-index: 200; top: 0; left: 0; right: 0; padding: .75rem var(--shell) 0; display: flex; justify-content: center; grid-template-columns: none; gap: 0; color: #fff; mix-blend-mode: normal; pointer-events: none; transition: transform .6s var(--ease); }
.site-header.hide { transform: translateY(-130%); }
.hdr-pill { pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; width: min(100%, 1180px); min-height: 3.6rem; padding: .4rem .45rem .4rem 1.35rem; border-radius: 999px; background: rgba(11, 11, 12, .58); color: #fff; backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 60px -30px rgba(0, 0, 0, .7); transition: background .4s ease, color .4s ease, box-shadow .4s ease; }
.site-header.on-light .hdr-pill { background: rgba(255, 255, 255, .72); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .08), inset 0 1px 0 #fff, 0 24px 60px -34px rgba(11, 11, 12, .3); }
.site-header .brand { font-size: 1.1rem; gap: .5rem; }
.site-header .brand small { font-size: .56rem; letter-spacing: .14em; opacity: .65; }
.site-header .nav { position: relative; display: flex; justify-content: center; gap: .15rem; font-size: .9rem; }
.site-header .nav a { padding: .5rem .9rem; border-radius: 999px; opacity: .78; transition: opacity .25s ease, background .25s ease; }
.site-header .nav a::after { display: none; }
.site-header .nav a:hover, .site-header .nav a:focus-visible, .site-header .nav a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .1); }
.site-header.on-light .nav a:hover, .site-header.on-light .nav a:focus-visible, .site-header.on-light .nav a[aria-current="page"] { background: rgba(11, 11, 12, .06); }
.hdr-right { justify-self: end; display: flex; align-items: center; gap: .5rem; }
.hdr-cta { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.8rem; padding: 0 .35rem 0 1.1rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; transition: background .3s ease, color .3s ease, transform .5s var(--ease); }
.hdr-cta .o { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: none; transition: background .3s ease; }
.hdr-cta:hover { transform: translateY(-1px); }
.hdr-cta:hover .o { background: var(--blue); color: #fff; }
.site-header.on-light .hdr-cta { background: var(--ink); color: #fff; }
.site-header.on-light .hdr-cta .o { background: #fff; color: var(--ink); }
.site-header.on-light .hdr-cta:hover .o { background: var(--blue); color: #fff; }
.menu-btn { display: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.site-header.on-light .menu-btn { box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .18); }
.mega { top: calc(100% + .85rem); width: min(48rem, calc(100vw - 2.5rem)); grid-template-columns: repeat(3, 1fr); border-radius: 24px; }
.mobile-menu { position: fixed; inset: 0; z-index: 190; display: grid; grid-template-rows: 1fr auto; padding: 5.5rem calc(var(--shell) + .75rem) calc(var(--shell) + 1rem); background: rgba(11, 11, 12, .94); color: #fff; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { align-self: center; display: grid; }
.mobile-menu a { display: flex; justify-content: space-between; align-items: baseline; padding: .85rem 0; border-top: 1px solid var(--hair-dark); font-family: var(--display); font-size: clamp(2rem, 8.5vw, 2.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.mobile-menu nav > a:first-child { border-top: 0; }
.mobile-menu a small { font-family: var(--label); font-weight: 500; font-size: .66rem; letter-spacing: .1em; opacity: .5; }
.mobile-menu .sub { display: grid; padding: 0 0 .75rem 0; }
.mobile-menu .sub a { font-size: 1.05rem; padding: .45rem 0 .45rem 1.25rem; border: 0; font-family: var(--body); font-weight: 400; color: var(--mute-dark); letter-spacing: 0; }
.mobile-menu .sub a::before { content: ""; width: .35rem; height: .35rem; border-radius: 50%; background: var(--blue); margin: 0 .75rem 0 -1.25rem; align-self: center; }
.mobile-menu .meta { display: grid; gap: .4rem; padding-top: 1.25rem; border-top: 1px solid var(--hair-dark); color: var(--mute-dark); font-size: .9rem; }
@media (max-width: 900px) {
  .site-header { padding: .6rem 10px 0; }
  .hdr-pill { width: 100%; grid-template-columns: 1fr auto; min-height: 3.4rem; padding: .3rem .3rem .3rem 1.1rem; gap: .5rem; }
  .site-header .nav, .hdr-cta { display: none; }
  .menu-btn { display: block; }
}

/* hero rail: the three directions are the second thing a visitor reads */
.hero-rail { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1.5rem; padding: 1.75rem 0 1.75rem; }
.hero-rail a { align-items: flex-start; gap: 1rem; }
.hero-rail a b { padding-top: .5rem; }
.hero-rail strong { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.85rem); letter-spacing: -.035em; line-height: 1; margin-bottom: .3rem; }
.hero-rail a span small { font-size: .88rem; }
@media (max-width: 900px) {
  .hero-rail { padding: 1rem 0 .5rem; gap: 0; }
  .hero-rail a { padding: .9rem 0; }
  .hero-rail strong { font-size: 1.5rem; }
}
@media (max-width: 900px) {
  .hero-rail { grid-template-columns: minmax(0, 1fr); }
  .hero-rail a { border-top: 1px solid var(--hair-dark); }
  .hero-rail a:first-child { border-top: 0; }
  .hdr-pill { background: rgba(20, 20, 22, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 40px -24px rgba(0, 0, 0, .8); }
}

/* ---------- header alignment: pill lives inside the hero shell, edges on the content grid ---------- */
.site-header { padding: calc(var(--shell) + .75rem) calc(var(--shell) + clamp(1.5rem, 4vw, 4rem)) 0; }
.hdr-pill { width: min(100%, 1280px); }
.site-header .nav .has-menu { position: static; display: flex; align-items: center; }
.site-header .nav .has-menu > a { display: inline-flex; align-items: center; }
.site-header .nav .has-menu > a::before { top: 100%; height: 1rem; }
.site-header .nav a { line-height: 1.2; }
@media (max-width: 900px) {
  .site-header { padding: calc(10px + .6rem) calc(10px + .9rem) 0; }
}

.client-label { margin: .35rem 0 .9rem; padding: 0 calc(var(--shell) + clamp(1.5rem, 4vw, 4rem)); font-family: var(--label); font-weight: 500; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.tools + .marquee { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--hair); }
@media (max-width: 900px) { .client-label { padding: 0 calc(10px + .9rem); } }

/* ---------- Paslaugos.lt rating badge (hero, author page) ---------- */
.pl-badge { display: inline-flex; align-items: center; gap: .55rem; justify-self: start; width: max-content; max-width: 100%; padding: .45rem .8rem .45rem .55rem; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .1), 0 8px 24px -14px rgba(11, 11, 12, .45); font: 600 .86rem/1 var(--body); letter-spacing: -.01em; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pl-badge img { height: 1.35rem; width: auto; display: block; }
.pl-badge__stars { display: inline-flex; gap: 1px; color: #F5A524; }
.pl-badge__stars svg { width: .82rem; height: .82rem; fill: currentColor; }
.pl-badge b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-badge__n { color: var(--mute); font-weight: 500; }
.pl-badge:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .14), 0 12px 28px -14px rgba(11, 11, 12, .55); }
.pl-badge:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.pl-badge--dark { box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .7); }
.pl-badge--hero { margin-top: 1rem; }
@media (max-width: 340px) { .pl-badge__n { display: none; } }

/* Wordmark logo (docs/brand/logo/final): letters follow text colour, dot is signal blue */
.brand--logo { display: inline-flex; align-items: center; line-height: 0; --logo-dot: #6B87FF; }
.brand--logo .wordmark { display: block; height: 1.3rem; width: auto; }
.site-header.on-light .brand--logo { --logo-dot: #2F55FF; }
.site-footer .brand--logo .wordmark { height: 1.9rem; }
@media (max-width: 700px) { .brand--logo .wordmark { height: 1.15rem; } }
