/* ==========================================================================
   Hasnat Ahmad — portfolio
   Tokens: cobalt field, ink text, cool paper. One variable family (Archivo)
   whose width axis is used as a motion device.
   ========================================================================== */
:root {
  --cobalt: #2B2BF0;
  --cobalt-d: #1614A8;
  --cobalt-l: #DCDDFF;
  --ink: #0A0E2A;
  --ink-2: #474C6E;
  --ink-3: #7A7E98;
  --paper: #F3F4F8;
  --white: #FFFFFF;
  --marker: #FFC93C;
  --line: rgba(10, 14, 42, .12);
  --line-l: rgba(255, 255, 255, .18);

  --f: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --gut: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --r-lg: 28px;
  --r-md: 18px;

  --t-hero: clamp(2.7rem, 7.4vw, 8rem);
  --t-h1: clamp(3rem, 10vw, 10rem);
  --t-h2: clamp(2.1rem, 4.6vw, 4.4rem);
  --t-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --t-lede: clamp(1.08rem, 1.3vw, 1.3rem);
  --t-body: 1.0625rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-size: var(--t-body); line-height: 1.6;
  font-variation-settings: 'wdth' 100; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Type ---------- */
.h2 {
  font-size: var(--t-h2); line-height: .98; letter-spacing: -.035em;
  font-weight: 760; font-variation-settings: 'wdth' 112; max-width: 18ch;
}
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.line-mask { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px; position: relative; display: inline-flex; align-items: center; gap: .6em;
  height: var(--bh); padding: 0 1.5em; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-weight: 600; font-size: 1rem; font-variation-settings: 'wdth' 106; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .3s var(--ease);
}
.btn svg { font-size: 1.15em; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--lg { --bh: 60px; padding: 0 1.8em; font-size: 1.05rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light::before { background: var(--marker); }
.btn--ghost-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::before { background: var(--cobalt); }
.btn--text { height: auto; padding: .4em 0; border-radius: 0; color: var(--ink-2); }
.btn--text::before { display: none; }
.btn--text:hover { color: var(--ink); }
.btn--nav { --bh: 44px; padding: 0 1.2em; font-size: .95rem; background: var(--ink); color: #fff; }
.btn--nav::before { background: var(--cobalt); }
.magnetic { will-change: transform; }

/* ---------- Loader / curtain / cursor ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--cobalt); color: #fff;
  display: grid; grid-template-rows: 1fr auto auto; padding: var(--gut);
}
.loader__name { align-self: center; font-size: clamp(3.5rem, 13vw, 13rem); line-height: .86; font-weight: 800; letter-spacing: -.04em; }
.loader__name span { display: block; font-variation-settings: 'wdth' 62; }
.loader__count { font-size: clamp(1rem, 1.4vw, 1.25rem); font-variant-numeric: tabular-nums; }
.loader__bar { height: 2px; background: rgba(255,255,255,.2); margin-top: 12px; }
.loader__bar i { display: block; height: 100%; width: 0; background: #fff; }
html:not(.js) .loader, .loader.is-done { display: none; }

.curtain { position: fixed; inset: 0; z-index: 190; pointer-events: none; }
.curtain__panel { position: absolute; inset: 0; background: var(--cobalt); transform: translateY(100%); border-radius: 50% 50% 0 0 / 12% 12% 0 0; }
/* Arriving from an in-site link: the page starts covered and uncovers itself with CSS only, so it never waits on scripts */
.is-arriving .curtain__panel { transform: translateY(0); border-radius: 0; animation: curtainOut .8s .05s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes curtainOut { to { transform: translateY(-101%); border-radius: 0 0 50% 50% / 0 0 12% 12%; } }
.curtain__label {
  position: absolute; left: var(--gut); bottom: var(--gut); color: #fff; opacity: 0;
  font-size: clamp(2rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.03em; font-variation-settings: 'wdth' 118;
}

.cursor { position: fixed; left: 0; top: 0; z-index: 180; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor.is-live { opacity: 1; }
.cursor__dot { position: fixed; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--cobalt); }
.cursor__ring {
  position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1.5px solid rgba(43,43,240,.5); display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease);
}
.cursor__label { font-size: .8rem; font-weight: 600; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); white-space: nowrap; font-variation-settings: 'wdth' 110; }
.cursor.is-label .cursor__ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--cobalt); border-color: var(--cobalt); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-link .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--cobalt); }
.cursor.on-dark .cursor__dot { background: #fff; }
.cursor.on-dark .cursor__ring { border-color: rgba(255,255,255,.55); }
.cursor.on-dark.is-label .cursor__ring { background: #fff; border-color: #fff; }
.cursor.on-dark.is-label .cursor__label { color: var(--ink); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px; height: 84px; padding: 0 var(--gut);
  color: var(--ink); transition: color .4s, height .4s var(--ease), transform .5s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 10px calc(var(--gut) - 14px); z-index: -1; border-radius: 22px;
  background: rgba(243,244,248,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(10,14,42,.3);
  opacity: 0; transition: opacity .4s, background .4s;
}
.nav.is-scrolled { height: 76px; }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-dark { color: #fff; }
.nav.is-dark::before { background: rgba(20,19,120,.35); box-shadow: 0 1px 0 var(--line-l); }
.nav.is-dark .btn--nav { background: #fff; color: var(--ink); }
.nav.is-dark .btn--nav::before { background: var(--marker); }
.nav__logo { display: flex; align-items: center; gap: 12px; font-weight: 750; font-variation-settings: 'wdth' 112; letter-spacing: -.02em; font-size: 1.1rem; }
.nav__mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: .85rem;
  background: var(--cobalt); color: #fff; font-variation-settings: 'wdth' 125; transition: transform .6s var(--ease), background .4s;
}
.nav.is-dark .nav__mark { background: #fff; color: var(--cobalt); }
.nav__logo:hover .nav__mark { transform: rotate(-12deg) scale(1.06); }
.nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__drop > a { display: block; }
.nav__links > a, .nav__drop > a {
  position: relative; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .98rem; transition: background .3s;
}
.nav__links > a:hover, .nav__drop > a:hover { background: rgba(127,127,160,.14); }
.nav__drop { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: -20px; width: 320px; padding: 10px; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(10,14,42,.35), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 500; font-size: .95rem; transition: background .25s; }
.nav__menu a:hover { background: var(--paper); }
.nav__menu i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.nav__burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); position: relative; margin-left: auto; }
.nav__burger i { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger i:first-child { top: 19px; } .nav__burger i:last-child { top: 27px; }
.nav.is-dark .nav__burger { background: #fff; } .nav.is-dark .nav__burger i { background: var(--ink); }
.menu-open .nav__burger i:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .nav__burger i:last-child { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--cobalt); color: #fff;
  clip-path: circle(0% at calc(100% - var(--gut) - 24px) 42px); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - var(--gut) - 24px) 42px); visibility: visible; }
.menu-open .nav { color: #fff; }
.menu-open .nav .nav__burger { background: #fff; } .menu-open .nav .nav__burger i { background: var(--ink); }
.menu-open .nav .nav__mark { background: #fff; color: var(--cobalt); }
.menu-open .nav::before { opacity: 0; }
.menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--gut) var(--gut); }
.menu__links a { display: block; overflow: hidden; font-size: clamp(2.6rem, 12vw, 5rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; font-variation-settings: 'wdth' 118; }
.menu__links a span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); }
.menu-open .menu__links a span { transform: none; }
.menu-open .menu__links a:nth-child(2) span { transition-delay: .05s; } .menu-open .menu__links a:nth-child(3) span { transition-delay: .1s; }
.menu-open .menu__links a:nth-child(4) span { transition-delay: .15s; } .menu-open .menu__links a:nth-child(5) span { transition-delay: .2s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: 500; opacity: .85; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; background: var(--cobalt); color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 78% 40%, rgba(120,120,255,.55), transparent 70%), radial-gradient(50% 60% at 0% 100%, var(--cobalt-d), transparent 70%);
}
.hero__gl { position: absolute; inset: 0; z-index: 0; }
.hero__gl canvas { width: 100% !important; height: 100% !important; }
.hero__fallback { position: absolute; right: 4vw; top: 50%; transform: translateY(-50%); display: none; gap: 16px; z-index: 0; }
.hero__fallback img { width: 13vw; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.hero__fallback img:nth-child(2) { margin-top: 12vh; }
.no-webgl .hero__fallback { display: flex; }
.hero__inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 44px; pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .98rem; margin-bottom: 28px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.hero__kicker i, .cta__avail i { width: 9px; height: 9px; border-radius: 50%; background: #3DFF9A; box-shadow: 0 0 0 0 rgba(61,255,154,.6); animation: ping 2s infinite; }
.hero__kicker--dark { background: rgba(43,43,240,.08); color: var(--cobalt); }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61,255,154,0); } 100% { box-shadow: 0 0 0 0 rgba(61,255,154,0); } }
.hero__title {
  font-size: var(--t-hero); line-height: .9; letter-spacing: -.045em; font-weight: 800;
  font-variation-settings: 'wdth' 114;
}
.hero__title .ln { display: block; white-space: nowrap; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; margin-top: 40px; }
.hero__sub { font-size: var(--t-lede); line-height: 1.5; max-width: 34ch; color: rgba(255,255,255,.86); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.proof {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-l); margin: 0 var(--gut); max-width: calc(var(--max) - 2 * var(--gut));
}
@media (min-width: 1440px) { .proof { margin: 0 auto; width: calc(var(--max) - 2 * var(--gut)); } }
.proof li { padding: 20px 16px 26px 0; display: flex; flex-direction: column; gap: 2px; }
.proof li + li { padding-left: 20px; border-left: 1px solid var(--line-l); }
.proof strong { display: flex; align-items: center; gap: 6px; font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 700; font-variation-settings: 'wdth' 112; }
.proof strong svg { color: var(--marker); font-size: .85em; }
.proof span { font-size: .9rem; color: rgba(255,255,255,.7); }
.hero__scroll { position: absolute; right: var(--gut); bottom: 110px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .78rem; opacity: .7; writing-mode: vertical-rl; }
.hero__scroll i { width: 1.5px; height: 56px; background: linear-gradient(#fff, transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(28px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee__row { display: flex; width: max-content; align-items: center; gap: clamp(20px, 3vw, 44px); will-change: transform; }
.marquee__item { font-size: clamp(2.4rem, 6.4vw, 6.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variation-settings: 'wdth' 125; }
.marquee__item:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee__sep { color: var(--cobalt); font-size: clamp(1.4rem, 3vw, 2.8rem); }

/* ---------- Project cards ---------- */
.pcard { display: flex; flex-direction: column; gap: 18px; }
.pcard__media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--pc); aspect-ratio: 4 / 3; transform: translateZ(0); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease); }
.pcard__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 1.1s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.08) rotate(-.6deg); }
.pcard:hover .pcard__media::after { transform: translateX(100%); }
.pcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pcard__name { font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 780; letter-spacing: -.03em; line-height: 1.05; font-variation-settings: 'wdth' 115; transition: font-variation-settings .6s var(--ease); }
.pcard:hover .pcard__name { font-variation-settings: 'wdth' 125; }
.pcard__year { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pcard__line { color: var(--ink-2); margin-top: 4px; max-width: 42ch; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pcard__tags li { font-size: .82rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }

/* ---------- Work (home, pinned horizontal) ---------- */
.work { padding-top: clamp(80px, 12vw, 160px); }
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 60px; margin-bottom: clamp(40px, 6vw, 72px); }
.work__pin { position: relative; }
.work__track { display: flex; gap: clamp(20px, 3vw, 44px); padding: 0 var(--gut); width: max-content; will-change: transform; }
.pcard--h { width: min(64vw, calc((100svh - 330px) * 4 / 3)); min-width: 340px; }
.work__all {
  width: min(34vw, 420px); min-width: 260px; aspect-ratio: 3 / 4; align-self: flex-start; border-radius: var(--r-lg);
  display: flex; flex-direction: column; justify-content: space-between; padding: 32px; background: var(--ink); color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 780; line-height: 1.05; letter-spacing: -.03em; font-variation-settings: 'wdth' 115;
  transition: background .5s var(--ease);
}
.work__all svg { font-size: 2.4rem; align-self: flex-end; transition: transform .6s var(--ease); }
.work__all:hover { background: var(--cobalt); }
.work__all:hover svg { transform: translateX(8px) rotate(-45deg); }
.work__progress { display: flex; align-items: center; gap: 16px; margin-top: 32px; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; }
.work__progress i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; max-width: 360px; }
.work__progress b { position: absolute; inset: 0; background: var(--cobalt); transform-origin: left; transform: scaleX(0); }

/* ---------- Services list (home) ---------- */
.svc { position: relative; padding: clamp(100px, 14vw, 180px) 0 clamp(60px, 8vw, 110px); }
.svc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 60px; margin-bottom: clamp(36px, 5vw, 64px); }
.svc__list { border-top: 1px solid var(--line); }
.svc__list li { border-bottom: 1px solid var(--line); }
.svc__row {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1.1fr) minmax(0, 1fr) 56px; align-items: center; gap: 28px;
  padding: clamp(22px, 3vw, 36px) 0; overflow: hidden;
}
.svc__row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.svc__row { isolation: isolate; transition: color .45s var(--ease), padding .6s var(--ease); }
.svc__swatch { width: 14px; height: 14px; border-radius: 4px; transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.svc__name { font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 780; letter-spacing: -.035em; line-height: 1; font-variation-settings: 'wdth' 108; transition: font-variation-settings .6s var(--ease); }
.svc__short { color: var(--ink-2); max-width: 44ch; transition: color .45s; }
.svc__go { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); font-size: 1.3rem; transition: background .45s, color .45s, transform .6s var(--ease); }
.svc__row.is-hot, .svc__row:focus-visible { color: #fff; padding-left: 20px; padding-right: 20px; }
.svc__row.is-hot::before, .svc__row:focus-visible::before { transform: scaleY(1); }
.svc__row.is-hot .svc__short, .svc__row:focus-visible .svc__short { color: rgba(255,255,255,.72); }
.svc__row.is-hot .svc__name { font-variation-settings: 'wdth' 125; }
.svc__row.is-hot .svc__swatch { transform: scale(1.5) rotate(45deg); border-radius: 50%; }
.svc__row.is-hot .svc__go, .svc__row:focus-visible .svc__go { background: #fff; color: var(--ink); transform: rotate(-45deg); }
.svc__float {
  position: fixed; left: 0; top: 0; z-index: 5; width: 340px; aspect-ratio: 7 / 5; pointer-events: none;
  border-radius: 22px; overflow: hidden; opacity: 0; transform: scale(.6); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.svc__float-in { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .45s ease; }
.svc__float-in.is-on { opacity: 1; }

/* ---------- About ---------- */
.about { padding: clamp(60px, 9vw, 120px) 0; }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--cobalt); position: relative; isolation: isolate; }
.about__portrait {
  position: absolute; left: 50%; top: 48%; width: 64%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  padding: 10px; background: conic-gradient(from 200deg, #fff, rgba(255,255,255,.2), #FFC93C, #fff); box-shadow: 0 40px 80px -30px rgba(10,10,80,.8);
}
.about__portrait picture, .about__portrait img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about__chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: 0 20px 40px -18px rgba(10,10,80,.6);
}
.about__chip svg { color: var(--marker); }
.about__chip--a { left: 7%; top: 12%; }
.about__chip--b { right: 6%; top: 62%; background: var(--marker); }
.about__chip--c { left: 10%; bottom: 9%; background: var(--ink); color: #fff; }
.about__mono {
  position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.28);
  font-size: clamp(8rem, 22vw, 20rem); font-weight: 900; letter-spacing: -.06em; font-variation-settings: 'wdth' 125;
  background: radial-gradient(70% 60% at 30% 20%, rgba(255,255,255,.22), transparent 60%), var(--cobalt);
}
.about__text .lede { margin-top: 24px; max-width: 54ch; }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.about__stats > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.about__stats > div:nth-child(odd) { padding-right: 20px; }
.about__stats > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.about__stats dt { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variation-settings: 'wdth' 118; font-variant-numeric: tabular-nums; }
.about__stats dd { color: var(--ink-2); margin-top: 6px; font-size: .96rem; }
.about__stack { margin-top: 28px; color: var(--ink-2); font-size: .98rem; max-width: 60ch; }
.about__stack strong { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* ---------- Steps ---------- */
.steps { padding: clamp(60px, 9vw, 120px) 0; --sc: var(--cobalt); }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); margin-top: clamp(36px, 5vw, 64px); counter-reset: s; }
.steps__list li { position: relative; padding-top: 36px; }
.steps__list li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.steps__list li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--sc); transform: scaleX(var(--p, 0)); transform-origin: left; }
.steps__n { position: absolute; top: -18px; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 2px var(--sc); color: var(--sc); font-weight: 700; font-size: .95rem; z-index: 1; transition: background .4s, color .4s; }
.steps__list li.is-on .steps__n { background: var(--sc); color: #fff; }
.steps__list h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.02em; margin: 12px 0 10px; font-variation-settings: 'wdth' 110; line-height: 1.2; }
.steps__list p { color: var(--ink-2); }

/* ---------- Reviews ---------- */
.reviews { padding: clamp(80px, 11vw, 150px) 0; background: var(--ink); color: #fff; overflow: hidden; }
.reviews .lede { color: rgba(255,255,255,.66); margin-top: 18px; }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.score { display: flex; align-items: center; gap: 20px; padding: 18px 24px; border-radius: 22px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-l); }
.score__big { font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variation-settings: 'wdth' 118; }
.score__big small { font-size: .38em; color: rgba(255,255,255,.5); letter-spacing: 0; margin-left: 2px; }
.score__meta { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; color: rgba(255,255,255,.75); }
.stars { display: inline-flex; gap: 3px; color: var(--marker); font-size: 1.05rem; }
.reviews__track { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; padding: 0 var(--gut); scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reviews__rail { display: flex; gap: 20px; width: max-content; padding-right: var(--gut); }
@media (min-width: 1440px) { .reviews__track { padding-left: calc((100vw - var(--max)) / 2 + var(--gut)); } }
.review {
  width: min(84vw, 440px); flex: none; display: flex; flex-direction: column; gap: 22px; padding: 30px; border-radius: 24px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-l); scroll-snap-align: start;
  transition: background .5s var(--ease), transform .5s var(--ease);
}
.review:hover { background: rgba(255,255,255,.1); }
.review blockquote { font-size: clamp(1.1rem, 1.4vw, 1.28rem); line-height: 1.5; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 14px; }
.review__av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); font-weight: 700; }
.review strong { display: block; font-weight: 600; }
.review em { display: block; font-style: normal; font-size: .88rem; color: rgba(255,255,255,.6); }
.review--more { justify-content: space-between; background: var(--cobalt); box-shadow: none; font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 780; line-height: 1.1; letter-spacing: -.03em; font-variation-settings: 'wdth' 115; }
.review--more svg { font-size: 2.2rem; align-self: flex-end; transition: transform .5s var(--ease); }
.review--more:hover { background: #3D3DFF; }
.review--more:hover svg { transform: translate(4px, -4px); }

/* ---------- Certifications ---------- */
.certs { padding: clamp(80px, 11vw, 150px) 0 clamp(40px, 6vw, 80px); }
.certs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.certs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; background: #fff;
  box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.cert::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.cert:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(10,14,42,.35); }
.cert:hover::after { transform: scaleX(1); }
.cert__seal { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--cobalt); font-size: 1.5rem; margin-bottom: 8px; }
.cert__seal svg { width: 28px; height: 28px; stroke: none; }
.cert__seal--meta svg path { stroke-width: 5; }
.cert h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; font-variation-settings: 'wdth' 108; }
.cert__issuer { color: var(--ink-2); font-size: .94rem; }
.cert__id { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 2px; }
.cert__id span { font-size: .8rem; color: var(--ink-3); }
.cert__id code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .9rem; word-break: break-all; }
.cert__verify { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--cobalt); font-size: .94rem; }
.cert--todo { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border: 0; }
.cert--todo h3, .cert--todo .cert__issuer, .cert--todo code { color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { padding-top: clamp(60px, 9vw, 120px); padding-bottom: clamp(80px, 11vw, 150px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font-size: clamp(1.08rem, 1.4vw, 1.25rem); font-weight: 600; letter-spacing: -.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); font-size: 1.1rem; transition: transform .5s var(--ease), background .4s, color .4s; }
.faq__item[open] summary i { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 26px; color: var(--ink-2); max-width: 62ch; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--cobalt); color: #fff; padding: clamp(90px, 13vw, 180px) 0 clamp(60px, 8vw, 100px); isolation: isolate; }
.cta__glow { position: absolute; width: 70vw; height: 70vw; left: 50%; top: 40%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(140,140,255,.7), transparent); filter: blur(30px); transform: translate(-50%, -50%); }
.cta__avail { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 28px; }
.cta__title { font-size: clamp(3rem, 9vw, 9rem); line-height: .9; letter-spacing: -.05em; font-weight: 820; font-variation-settings: 'wdth' 100; max-width: 12ch; }
.cta__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(36px, 5vw, 64px); }
.cta__text { max-width: 44ch; font-size: var(--t-lede); color: rgba(255,255,255,.85); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__trust { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line-l); font-size: .95rem; color: rgba(255,255,255,.85); }
.cta__trust li { display: flex; align-items: center; gap: 8px; }
.cta__trust svg { font-size: 1.1rem; }
.cta__trust li:first-child svg { color: var(--marker); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #fff; padding-top: clamp(60px, 8vw, 100px); overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: 40px; }
.foot__logo { font-size: 1.5rem; font-weight: 780; letter-spacing: -.03em; font-variation-settings: 'wdth' 115; }
.foot__brand p { color: rgba(255,255,255,.6); margin: 14px 0 20px; max-width: 36ch; font-size: .96rem; }
.foot__mail { font-weight: 600; border-bottom: 1.5px solid rgba(255,255,255,.3); padding-bottom: 2px; transition: border-color .3s; }
.foot__mail:hover { border-color: #fff; }
.foot h3 { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.foot__grid > div > a:not(.foot__logo):not(.foot__mail) { display: block; padding: 5px 0; color: rgba(255,255,255,.85); font-size: .96rem; transition: color .3s, transform .4s var(--ease); }
.foot__grid > div > a:not(.foot__logo):not(.foot__mail):hover { color: #fff; transform: translateX(4px); }
.foot__giant span { display: inline-block; }
.foot__base { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line-l); font-size: .9rem; color: rgba(255,255,255,.55); }
.foot__top:hover { color: #fff; }
.foot__giant {
  font-size: 12.6vw; line-height: 1; font-weight: 900; letter-spacing: -.05em; white-space: nowrap; text-align: center;
  font-variation-settings: 'wdth' 125; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.3);
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 80%); -webkit-background-clip: text; background-clip: text;
  padding: 0 var(--gut) .06em; user-select: none; overflow: hidden;
}

/* ---------- Mobile dock CTA ---------- */
.dock {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: none; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600;
  box-shadow: 0 20px 40px -12px rgba(10,14,42,.5); transform: translateY(140%); transition: transform .6s var(--ease);
}
.dock.is-on { transform: none; }
.page-contact .dock { display: none !important; }

/* ---------- Page heads (index pages) ---------- */
.phead { padding-top: clamp(140px, 22vh, 220px); padding-bottom: clamp(40px, 6vw, 80px); }
.phead__title { font-size: var(--t-h1); line-height: .85; letter-spacing: -.055em; font-weight: 850; font-variation-settings: 'wdth' 125; }
.phead__lead { font-size: var(--t-lede); color: var(--ink-2); max-width: 48ch; margin-top: 28px; }
.phead__lead a, .pains__cta a { color: var(--cobalt); border-bottom: 1.5px solid currentColor; }
.phead--404 { min-height: 70vh; }
.phead--404 .hero__ctas { margin-top: 36px; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.filters__btn { padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: .95rem; box-shadow: inset 0 0 0 1px var(--line); transition: background .35s, color .35s, box-shadow .35s; }
.filters__btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filters__btn.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 44px); }
.grid-cards--work { padding-bottom: clamp(80px, 10vw, 140px); }
.grid-cards--work .grid-cards__cell:nth-child(even) { margin-top: clamp(0px, 10vw, 140px); }
.grid-cards__cell.is-hidden { display: none; }

.svcgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: clamp(80px, 10vw, 140px); }
.svccard { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.svccard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(10,14,42,.4); }
.svccard__media { aspect-ratio: 7 / 4; overflow: hidden; background: var(--sc); }
.svccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svccard:hover .svccard__media img { transform: scale(1.06); }
.svccard__body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svccard h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 780; letter-spacing: -.03em; line-height: 1.05; font-variation-settings: 'wdth' 112; }
.svccard p { color: var(--ink-2); max-width: 46ch; }
.svccard__meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sc); }
.svccard__meta svg { transition: transform .5s var(--ease); }
.svccard:hover .svccard__meta svg { transform: translateX(6px); }

/* ---------- Service page ---------- */
.shero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; background: var(--sc); color: #fff; overflow: hidden; isolation: isolate; }
.shero__bg { position: absolute; inset: 0; z-index: -1; }
.shero__bg img { position: absolute; right: -6%; top: -10%; width: 72%; height: 120%; object-fit: cover; border-radius: 0 0 0 40px; opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
.shero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%), linear-gradient(90deg, var(--sc) 20%, transparent 70%), linear-gradient(0deg, rgba(0,0,0,.25), transparent 50%); }
.shero__inner { padding-top: 140px; padding-bottom: clamp(48px, 7vw, 96px); }
.back { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; opacity: .85; margin-bottom: 32px; transition: opacity .3s; }
.back svg { transform: rotate(180deg); transition: transform .5s var(--ease); }
.back:hover { opacity: 1; } .back:hover svg { transform: rotate(180deg) translateX(4px); }
.shero__title { font-size: clamp(2.6rem, 6.6vw, 7rem); line-height: .9; letter-spacing: -.05em; font-weight: 830; font-variation-settings: 'wdth' 108; max-width: 15ch; }
.shero__lead { font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.35; max-width: 30ch; margin: 28px 0 36px; font-weight: 500; }
.sintro { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(40px, 6vw, 80px); }
.sintro__text { font-size: clamp(1.5rem, 3vw, 2.7rem); line-height: 1.22; letter-spacing: -.025em; font-weight: 600; font-variation-settings: 'wdth' 104; max-width: 34ch; }
.pains { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.pains__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; }
.pains__list li { display: flex; gap: 16px; align-items: flex-start; padding: 24px 26px; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); font-size: 1.1rem; font-weight: 500; }
.pains__list svg { flex: none; font-size: 1.1rem; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--sc); color: #fff; stroke-width: 2.4; }
.pains__cta { margin-top: 28px; font-size: 1.1rem; color: var(--ink-2); }
.pains__cta a { color: var(--sc); }
.incl { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(20px, 4vw, 40px); }
.incl__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.incl__item { position: relative; padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.incl__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sc); clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .7s var(--ease); }
.incl__item h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; font-variation-settings: 'wdth' 110; }
.incl__item p { color: var(--ink-2); transition: color .5s; }
@media (hover: hover) {
  .incl__item:hover { color: #fff; }
  .incl__item:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
  .incl__item:hover p { color: rgba(255,255,255,.85); }
}
.related { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); }
.related__head { margin-bottom: clamp(32px, 4vw, 56px); }
.related__head .lede { margin-top: 16px; }
.nextsvc { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(60px, 8vw, 110px); }
.nextsvc__link { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; isolation: isolate; transition: color .6s var(--ease); }
.nextsvc__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sc); transform: translateY(101%); transition: transform .8s var(--ease); }
.nextsvc__link:hover { color: #fff; } .nextsvc__link:hover::before { transform: none; }
.nextsvc__label { font-weight: 500; opacity: .7; }
.nextsvc__name { font-size: clamp(2.2rem, 6vw, 5.6rem); font-weight: 820; letter-spacing: -.045em; line-height: .95; font-variation-settings: 'wdth' 110; transition: font-variation-settings .8s var(--ease); }
.nextsvc__link:hover .nextsvc__name { font-variation-settings: 'wdth' 125; }

/* ---------- Case study ---------- */
.chero { background: var(--pc); color: #fff; padding: clamp(130px, 18vh, 180px) 0 clamp(120px, 18vh, 200px); }
.chero--light { color: var(--ink); }
.chero__title { font-size: clamp(3.4rem, 11vw, 11.5rem); line-height: .84; letter-spacing: -.055em; font-weight: 850; font-variation-settings: 'wdth' 118; }
.chero__lead { font-size: clamp(1.2rem, 1.9vw, 1.65rem); line-height: 1.35; font-weight: 500; max-width: 36ch; margin-top: 28px; opacity: .92; }
.chero__meta { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid currentColor; border-color: rgba(127,127,127,.35); }
.chero__meta > div { padding: 18px 16px 0 0; }
.chero__meta dt { font-size: .84rem; opacity: .65; margin-bottom: 4px; }
.chero__meta dd { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.chero__meta a { display: inline-flex; align-items: center; gap: 4px; border-bottom: 1.5px solid currentColor; }
.cbanner { margin: calc(-1 * clamp(80px, 13vh, 150px)) auto 0; padding: 0 var(--gut); max-width: calc(var(--max) + 200px); }
.cbanner picture, .cbanner img { display: block; width: 100%; border-radius: var(--r-lg); overflow: hidden; }
.cbanner img { aspect-ratio: 2 / 1; object-fit: cover; box-shadow: 0 60px 100px -50px rgba(10,14,42,.6); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.facts__item { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.facts__item + .facts__item { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { font-size: clamp(2.2rem, 4.4vw, 4.2rem); font-weight: 820; letter-spacing: -.045em; line-height: 1; font-variation-settings: 'wdth' 118; }
.facts span { color: var(--ink-2); }
.cbody { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(28px, 5vw, 80px); padding-top: clamp(80px, 10vw, 140px); }
.toc { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc a { position: relative; padding: 10px 0 10px 18px; color: var(--ink-3); font-weight: 500; transition: color .3s; }
.toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line); transition: background .3s, transform .4s var(--ease); }
.toc a.is-on { color: var(--ink); }
.toc a.is-on::before { background: var(--pa); transform: scale(1.6); }
.toc--ghost { visibility: hidden; }
.csec { padding-bottom: clamp(64px, 8vw, 110px); }
.csec__h { font-size: var(--t-h2); line-height: 1; letter-spacing: -.04em; font-weight: 790; font-variation-settings: 'wdth' 114; margin-bottom: clamp(24px, 3vw, 40px); }
.csec__p { font-size: clamp(1.2rem, 1.75vw, 1.55rem); line-height: 1.45; letter-spacing: -.01em; max-width: 40ch; }
.csec__p + .csec__p { margin-top: 1em; }
.csec__p--impact { margin-top: clamp(32px, 4vw, 56px); font-weight: 600; max-width: 36ch; }
.sol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sol__item { padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.sol__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pa); transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease); }
.sol__item.is-in::before { transform: none; }
.sol__item h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; font-variation-settings: 'wdth' 108; }
.sol__item p { color: var(--ink-2); }
.show { position: relative; background: var(--pc); padding: clamp(60px, 8vw, 120px) var(--gut); overflow: hidden; }
.show::before { content: ""; position: absolute; left: 50%; top: 50%; width: 90vw; height: 90vw; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--pa), transparent); opacity: .45; }
.show__stage { position: relative; max-width: 1240px; margin: 0 auto; }
.show__browser { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 60px 120px -40px rgba(0,0,0,.6); width: 86%; }
.show__bar { height: 40px; background: #f1f1f3; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid #e3e3e6; }
.show__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .show__bar i:nth-child(2) { background: #febc2e; } .show__bar i:nth-child(3) { background: #28c840; }
.show__bar b { margin-left: 14px; font-weight: 500; font-size: .82rem; color: #777; background: #fff; padding: 3px 14px; border-radius: 8px; border: 1px solid #e3e3e6; }
.show__screen { height: min(62vh, 640px); overflow: hidden; position: relative; }
.show__screen img { width: 100%; will-change: transform; }
.show__phone { position: absolute; right: 0; bottom: -40px; width: 24%; border-radius: 38px; padding: 10px; background: #0d0d10; box-shadow: 0 50px 90px -30px rgba(0,0,0,.7), inset 0 0 0 2px #2c2c33; }
.show__phone img { border-radius: 30px; width: 100%; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.results__item { padding: 28px; border-radius: 22px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 10px; min-height: 200px; justify-content: space-between; }
.results__item strong { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 820; letter-spacing: -.045em; line-height: 1; font-variation-settings: 'wdth' 116; }
.results__item span { color: rgba(255,255,255,.72); }
.stack { margin-top: 40px; }
.stack h3 { font-size: .95rem; font-weight: 500; color: var(--ink-3); margin-bottom: 12px; }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: .94rem; }
.stack__links a { display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.stack__links a:hover { color: var(--cobalt); }
.inline-cta { margin-top: 56px; padding: 28px 32px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.inline-cta p { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; font-variation-settings: 'wdth' 108; }
.nextcase { position: relative; display: block; background: var(--pc); color: #fff; overflow: hidden; padding: clamp(80px, 12vw, 160px) 0; isolation: isolate; }
.nextcase__inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.nextcase__label { font-weight: 500; opacity: .75; }
.nextcase__name { font-size: clamp(3.4rem, 12vw, 12rem); font-weight: 860; letter-spacing: -.055em; line-height: .85; font-variation-settings: 'wdth' 100; transition: font-variation-settings 1s var(--ease); mix-blend-mode: difference; }
.nextcase:hover .nextcase__name { font-variation-settings: 'wdth' 125; }
.nextcase__line { font-size: 1.2rem; opacity: .85; max-width: 40ch; }
.nextcase__img { position: absolute; right: var(--gut); top: 50%; width: min(40vw, 560px); transform: translateY(-50%) rotate(4deg) scale(.9); opacity: .0; transition: opacity .7s var(--ease), transform 1s var(--ease); border-radius: 24px; overflow: hidden; z-index: 1; }
.nextcase:hover .nextcase__img { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }
.page-case .foot, .page-case .cta { position: relative; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(130px, 18vh, 180px); padding-bottom: clamp(60px, 8vw, 100px); align-items: start; }
.contact__title { font-size: clamp(2.8rem, 6.2vw, 6rem); line-height: .9; letter-spacing: -.05em; font-weight: 830; font-variation-settings: 'wdth' 114; }
.contact__lead { margin-top: 24px; font-size: var(--t-lede); color: var(--ink-2); max-width: 42ch; }
.next { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.next li { display: flex; gap: 16px; }
.next li > span { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--cobalt-l); color: var(--cobalt); }
.next strong { font-weight: 650; }
.next p { color: var(--ink-2); font-size: .96rem; }
.alt { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.alt__h { font-size: .92rem; color: var(--ink-3); margin-bottom: 8px; }
.alt__link { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 550; transition: color .3s; }
.alt__link svg { font-size: 1.2rem; color: var(--cobalt); }
.alt__link:hover { color: var(--cobalt); }
.mini-review { margin-top: 40px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.mini-review blockquote { margin: 12px 0; font-size: 1.02rem; }
.mini-review figcaption { font-size: .9rem; color: var(--ink-3); }
.contact__formwrap { position: sticky; top: 100px; }
.lead, .done.is-static { position: relative; background: #fff; border-radius: 32px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 0 0 1px var(--line), 0 50px 100px -60px rgba(10,14,42,.45); overflow: hidden; }
.lead__progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--paper); }
.lead__progress i { display: block; height: 100%; width: 50%; background: var(--cobalt); transition: width .8s var(--ease); }
.lead.on-2 .lead__progress i { width: 100%; }
.lead__error { margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; background: #FFE9EC; color: #9B1231; font-weight: 500; }
.lead__step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.lead__step.is-active { display: block; }
.no-js .lead__step { display: block; }
.no-js .lead__step + .lead__step { margin-top: 36px; }
.no-js [data-next], .no-js [data-prev] { display: none; }
.lead__legend { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--ink-3); margin-bottom: 22px; padding: 0; }
.lead__legend span { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--ink); font-weight: 760; letter-spacing: -.03em; line-height: 1.1; font-variation-settings: 'wdth' 110; }
.lead__q { font-weight: 600; margin: 26px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 550; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--ease); user-select: none; }
.chips--sm .chip span { min-height: 42px; padding: 0 15px; font-size: .95rem; border-radius: 999px; }
.chip span:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip input:checked + span { background: var(--cobalt); color: #fff; box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.chip input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.chips.is-invalid .chip span { box-shadow: inset 0 0 0 1.5px #E0215A; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.lead__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.lead__hint { color: var(--ink-3); font-size: .92rem; }
.lead__fine { margin-top: 18px; font-size: .86rem; color: var(--ink-3); }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper); border: 0; border-radius: 16px;
  padding: 28px 18px 10px; outline: none; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.field label { position: absolute; left: 18px; top: 19px; color: var(--ink-3); pointer-events: none; transform-origin: left; transition: transform .35s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.78); color: var(--cobalt); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 1.5px #E0215A; }
.check { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--cobalt); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: left; }
.done[hidden] { display: none; }
.done__check { width: 72px; height: 72px; margin-bottom: 24px; color: var(--cobalt); }
.done__check svg { width: 100%; height: 100%; stroke-width: 2.4; }
.done.is-static .done__check { display: grid; place-items: center; border-radius: 50%; background: var(--cobalt); color: #fff; font-size: 2rem; }
.done__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.done__check path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.done.is-in circle { animation: draw .8s var(--ease) forwards; }
.done.is-in path { animation: draw .5s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 820; letter-spacing: -.04em; line-height: 1; font-variation-settings: 'wdth' 115; }
.done p { color: var(--ink-2); margin: 16px 0 28px; max-width: 40ch; font-size: 1.1rem; }
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading svg { animation: nudge .8s infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* Headlines wait for the intro; the delayed animation is a failsafe if scripts never run */
.js [data-hero-title] { visibility: hidden; animation: failsafe 0s 2.5s forwards; }
.js [data-hero-title].is-ready { visibility: visible; animation: none; }
@keyframes failsafe { to { visibility: visible; } }

/* ---------- Reveal helpers (JS adds motion; content is visible without JS) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(40px); }


/* ---------- Blog ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bfilter { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.bfilter .filters { margin-top: 0; }
.filters a.filters__btn { display: inline-block; }
.bsearch { position: relative; width: min(320px, 100%); }
.bsearch input { width: 100%; height: 48px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 52px 0 20px; font: inherit; color: var(--ink); }
.bsearch input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.bsearch button { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.blog { padding-bottom: clamp(80px, 10vw, 140px); }
.blog__featured { margin-bottom: clamp(40px, 5vw, 64px); }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.blog__note { margin-bottom: 24px; color: var(--ink-2); }
.blog__note a { color: var(--cobalt); }
.blog__empty { padding: 60px 0; max-width: 46ch; }
.blog__empty h2 { font-size: 2rem; font-weight: 780; letter-spacing: -.03em; margin-bottom: 10px; }
.blog__empty p { color: var(--ink-2); margin-bottom: 24px; }
.pager { display: flex; gap: 8px; margin-top: 56px; }
.pager a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; }
.pager a.is-on { background: var(--ink); color: #fff; box-shadow: none; }

.pcover { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--cc, var(--cobalt)); }
.pcover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pcover--gen { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2.4vw, 32px); color: #fff; isolation: isolate; }
.pcover--gen::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 90% at 100% 0%, rgba(255,255,255,.28), transparent 60%), repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 14px); transition: transform 1.2s var(--ease); }
.pcover__cat { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); align-self: flex-start; }
.pcover__t { font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.02; font-weight: 820; letter-spacing: -.035em; font-variation-settings: 'wdth' 115; max-width: 16ch; transition: font-variation-settings .8s var(--ease); }
.pcover--wide { aspect-ratio: 21 / 9; }
.pcover--wide .pcover__t { font-size: clamp(2rem, 5vw, 4.6rem); max-width: 18ch; }
.bcard { display: flex; flex-direction: column; gap: 18px; }
.bcard:hover .pcover img { transform: scale(1.05); }
.bcard:hover .pcover--gen::before { transform: scale(1.15) rotate(2deg); }
.bcard:hover .pcover__t { font-variation-settings: 'wdth' 125; }
.bcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--ink-3); }
.bcard__cat { color: var(--cc); font-weight: 600; }
.bcard__title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 740; letter-spacing: -.025em; line-height: 1.15; font-variation-settings: 'wdth' 106; margin: 6px 0 8px; transition: color .3s; }
.bcard:hover .bcard__title { color: var(--cobalt); }
.bcard__ex { color: var(--ink-2); font-size: .98rem; }
.bcard--big { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.bcard--big .bcard__title { font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: 1; letter-spacing: -.04em; font-variation-settings: 'wdth' 112; }
.bcard--big .bcard__ex { font-size: 1.1rem; }
.bcard--big .pcover { aspect-ratio: 16 / 11; }

/* Post */
.readbar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.readbar i { display: block; height: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(0); }
.post__preview { position: relative; z-index: 2; margin: 110px auto 0; width: min(900px, 92vw); padding: 12px 18px; border-radius: 14px; background: #FFF1CC; color: #6B4200; font-weight: 500; }
.post__preview a { font-weight: 700; text-decoration: underline; }
.post__head { padding-top: clamp(130px, 18vh, 180px); max-width: 1100px; }
.post__preview + .post__head { padding-top: 40px; }
.post__crumbs { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-3); margin-bottom: 24px; }
.post__crumbs a:hover { color: var(--cobalt); }
.post__crumbs a:last-child { color: var(--cc); font-weight: 600; }
.post__title { font-size: clamp(2.4rem, 5.6vw, 5.4rem); line-height: .95; letter-spacing: -.045em; font-weight: 830; font-variation-settings: 'wdth' 110; max-width: 20ch; }
.post__lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--ink-2); max-width: 52ch; margin-top: 24px; }
.post__meta { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.post__meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post__meta strong { display: block; font-weight: 650; }
.post__meta span { color: var(--ink-3); font-size: .92rem; }
.post__cover { margin-top: clamp(32px, 4vw, 56px); }
.post__cover img { aspect-ratio: 21 / 9; }
.post__grid { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(60px, 8vw, 100px); }
.post__aside { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 32px; }
.post__toc, .post__share { display: flex; flex-direction: column; gap: 2px; }
.post__toc p, .post__share p { font-size: .85rem; color: var(--ink-3); margin-bottom: 8px; }
.post__toc a { position: relative; padding: 7px 0 7px 16px; color: var(--ink-3); font-size: .94rem; line-height: 1.35; border-left: 2px solid var(--line); transition: color .3s, border-color .3s; }
.post__toc a.lvl-h3 { padding-left: 28px; font-size: .88rem; }
.post__toc a:hover, .post__toc a.is-on { color: var(--ink); border-color: var(--cc); }
.post__share a, .post__share button { text-align: left; padding: 5px 0; font-weight: 550; color: var(--ink-2); transition: color .3s; }
.post__share a:hover, .post__share button:hover { color: var(--cobalt); }
.prose { font-size: 1.14rem; line-height: 1.75; color: #22263F; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 780; font-variation-settings: 'wdth' 108; color: var(--ink); margin-top: 2em; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.35rem; font-weight: 720; letter-spacing: -.02em; color: var(--ink); margin-top: 1.6em; scroll-margin-top: 110px; }
.prose a { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--cc); font-weight: 700; }
.prose blockquote { border-left: 4px solid var(--cc); padding: 6px 0 6px 22px; font-size: 1.3rem; line-height: 1.5; font-weight: 550; color: var(--ink); }
.prose img { border-radius: 18px; margin: 2em 0; }
.prose pre { background: var(--ink); color: #E8E9FF; padding: 20px; border-radius: 14px; overflow-x: auto; font-size: .92rem; line-height: 1.6; }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
.prose :not(pre) > code { background: rgba(43,43,240,.08); padding: 2px 6px; border-radius: 6px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 16px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none !important; padding: 0 !important; margin-top: 2.4em !important; }
.post__tags li { margin: 0 !important; }
.post__tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; color: var(--ink-2); text-decoration: none; }
.post__tags a:hover { color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }
.author { display: flex; gap: 20px; align-items: center; margin-top: 3em !important; padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0; flex: none; }
.author strong { display: block; font-size: 1.1rem; color: var(--ink); }
.author p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); margin: 4px 0 8px; }
.author a { font-weight: 600; font-size: 1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.related-posts { padding-bottom: clamp(80px, 10vw, 140px); }
.related-posts .h2 { margin-bottom: clamp(28px, 4vw, 48px); }

@media (max-width: 1100px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .blog__grid, .bcard--big { grid-template-columns: 1fr; }
  .post__grid { grid-template-columns: 1fr; }
  .post__aside { position: static; order: 2; }
  .post__toc { display: none; }
  .post__share { flex-direction: row; gap: 18px; align-items: center; }
  .post__share p { margin: 0; }
  .pcover--wide { aspect-ratio: 16 / 10; }
  .author { flex-direction: column; align-items: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links, .btn--nav { display: none; }
  .nav__burger { display: block; }
  .proof { grid-template-columns: repeat(3, 1fr); }
  .proof li:nth-child(4) { padding-left: 0; border-left: 0; }
  .proof li:nth-child(n+4) { border-top: 1px solid var(--line-l); }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .chero__meta { grid-template-columns: repeat(3, 1fr); }
  .chero__meta > div { padding-bottom: 16px; }
  .incl__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__scroll { display: none; }
}
@media (max-width: 860px) {
  :root { --r-lg: 22px; }
  .dock { display: flex; }
  .hero__inner { padding-top: 120px; }
  .hero__title { font-variation-settings: 'wdth' 100; }
  .hero__title .ln { white-space: normal; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof li { padding: 14px 10px 16px 0 !important; border-left: 0 !important; border-top: 1px solid var(--line-l); }
  .proof li:first-child, .proof li:nth-child(2) { border-top: 0; }
  .proof li:nth-child(5) { display: none; }
  .proof { position: relative; margin: 0; padding: 0 var(--gut); background: rgba(22,20,168,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 0; }
  .hero__title { text-shadow: 0 2px 30px rgba(22,20,168,.45); }
  .chero__title { font-size: 13vw; font-variation-settings: 'wdth' 100; }
  .shero__title { font-size: 10.4vw; font-variation-settings: 'wdth' 100; }
  .nextcase__name, .phead__title { overflow-wrap: normal; }
  .work__pin { height: auto !important; }
  .work__track { flex-direction: column; width: auto; transform: none !important; gap: 48px; }
  .pcard--h { width: 100%; min-width: 0; }
  .work__all { width: 100%; aspect-ratio: auto; min-height: 160px; }
  .work__progress { display: none; }
  .svc__row { grid-template-columns: 14px 1fr 44px; gap: 16px; }
  .svc__short { grid-column: 2 / 3; grid-row: 2; font-size: .95rem; }
  .svc__go { width: 44px; height: 44px; grid-row: 1 / 3; grid-column: 3; }
  .svc__float { display: none; }
  .about__grid, .faq, .contact, .cbody { grid-template-columns: 1fr; }
  .contact__lead { margin-top: 14px; }
  .about__photo { max-width: 460px; width: 100%; aspect-ratio: 1; }
  .about__chip { font-size: .8rem; padding: 8px 12px; }
  .grid-cards, .svcgrid, .pains__list, .sol, .results, .facts, .incl__grid { grid-template-columns: 1fr; }
  .grid-cards--work .grid-cards__cell:nth-child(even) { margin-top: 0; }
  .facts__item + .facts__item { padding-left: 0; border-left: 0; }
  .facts__item { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .toc { display: none; }
  .show__browser { width: 100%; }
  .show__screen { height: 52vh; }
  .show__phone { width: 34%; right: -4%; bottom: -30px; }
  .chero__meta { grid-template-columns: repeat(2, 1fr); }
  .contact { padding-top: 110px; row-gap: 28px; }
  .contact__left { display: contents; }
  .contact__head { order: 1; } .contact__formwrap { order: 2; } .contact__side { order: 3; }
  .contact__formwrap { position: static; }
  .contact__head .hero__kicker { margin-bottom: 18px; }
  .nextcase__img { display: none; }
  .shero__bg img { width: 100%; right: 0; opacity: .35; -webkit-mask-image: none; mask-image: none; }
  .foot__base { margin-bottom: 80px; }
  .cta__btns .btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .steps__list, .certs__grid, .foot__grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .about__stats { grid-template-columns: 1fr; }
  .about__stats > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .score { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal-up { opacity: 1; transform: none; }
}
