/* ---------- Tokens ---------- */
:root {
  /* Brand palette carried over from founder.zianova.io: neutral monochrome + peach → pink → purple gradient */
  --bg: #fafafa; --bg2: #ffffff; --surface: #ffffff; --surface2: #f2f2f2;
  --line: #e6e6e6; --text: #0d0d0d; --muted: #6b6b6b;
  --accent: #a63fb8; --accent2: #d63c6b; --on-accent: #ffffff;
  --grad: linear-gradient(90deg, #ffb6a3, #ff8ba7, #c86dd7);
  --glow: rgba(200, 109, 215, .22); --shadow: 0 18px 50px -22px rgba(13, 13, 13, .22);
  --grid: rgba(13, 13, 13, .045);
  /* Same typography as the original founder.zianova.io site: the native system UI font throughout */
  --font-b: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-d: var(--font-b); --font-m: var(--font-b);
  --r: 18px; --r-sm: 12px; --gut: 20px; --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141414; --bg2: #171717; --surface: #1a1a1a; --surface2: #262626;
  --line: #333333; --text: #fafafa; --muted: #a3a3a3;
  --accent: #ff8ba7; --accent2: #ffb6a3; --on-accent: #ffffff;
  --glow: rgba(200, 109, 215, .26); --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --grid: rgba(255, 255, 255, .04);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gut: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s, color .4s; }
body.is-gated { overflow: hidden; height: 100svh; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--font-m); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 0 var(--accent2); animation: pulse 2s infinite; margin-right: 8px; vertical-align: 1px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* split-text helpers */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 500 .95rem var(--font-b); text-decoration: none; white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s, background-color .3s, border-color .3s, color .3s; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--grad); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(120, 30, 90, .35); box-shadow: 0 12px 32px -8px rgba(208, 113, 208, .6); }
.btn--primary:hover { box-shadow: 0 14px 38px -6px rgba(208, 113, 208, .7), 0 0 0 8px rgba(200, 109, 215, .12); }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { opacity: .85; }
.btn--ghost { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn[disabled] { opacity: 0; pointer-events: none; transform: translateY(10px); }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, color .3s, transform .3s; }
.iconbtn:hover { border-color: var(--accent); color: var(--accent); }
.iconbtn svg { width: 20px; height: 20px; }

/* ---------- Gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); clip-path: inset(0 0 0 0); }
.gate__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 70%); animation: gridmove 6s linear infinite; }
@keyframes gridmove { to { background-position: 44px 44px; } }
.gate__inner { position: relative; display: grid; justify-items: center; gap: 22px; padding: 24px; text-align: center; }
.gate__mark { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.gate__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.gate__ring-bg { stroke: var(--line); stroke-width: 2; }
.gate__ring { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 327; stroke-dashoffset: 327; filter: drop-shadow(0 0 8px var(--glow)); }
.gate__count { font: 600 2.6rem var(--font-d); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gate__status { color: var(--muted); min-height: 1.4em; }
.gate__name { color: var(--muted); opacity: .7; }
.gate__enter { transition: opacity .5s, transform .5s var(--ease), box-shadow .35s; }

/* ---------- Cursor + progress ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); pointer-events: none; opacity: 0; display: grid; place-items: center; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s, background-color .3s; mix-blend-mode: normal; }
.cursor.is-on { opacity: .9; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: color-mix(in srgb, var(--accent) 22%, transparent); backdrop-filter: blur(2px); }
.cursor.is-label { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--accent); }
.cursor__label { font: 500 .7rem var(--font-m); letter-spacing: .06em; text-transform: uppercase; color: var(--on-accent); opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.progress { position: fixed; left: 0; top: 0; z-index: 80; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

/* ---------- Nav ---------- */
.nav { position: fixed; z-index: 70; top: 12px; left: 50%; translate: -50% 0; width: min(calc(100% - 24px), var(--max)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg2) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); transition: transform .5s var(--ease), background-color .4s; }
.nav.is-hidden { transform: translateY(-140%); }
.nav__brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-decoration: none; padding-left: 6px; transition: opacity .25s; }
.nav__brand:hover { opacity: .7; }
.nav__name { font: 700 1.05rem var(--font-d); white-space: nowrap; }
.nav__by { font: 500 .62rem var(--font-b); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: none; gap: 4px; }
.nav__links a { padding: 8px 12px; border-radius: 999px; font-size: .875rem; text-decoration: none; color: var(--muted); transition: color .25s, background-color .25s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface2); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; transition: border-color .3s, color .3s; }
.nav__search:hover { border-color: var(--accent); color: var(--text); }
.nav__search svg { width: 16px; height: 16px; }
.nav__search span, .nav__search kbd { display: none; }
kbd { font: 500 .68rem var(--font-m); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.theme { display: none; padding: 3px; border-radius: 999px; border: 1px solid var(--line); gap: 2px; }
.theme button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background-color .3s, color .3s; }
.theme button svg { width: 15px; height: 15px; }
.theme button[aria-checked="true"] { background: var(--text); color: var(--bg); }
.nav__cta { display: none; }
.nav__burger { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-content: center; gap: 6px; }
.nav__burger span { width: 16px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 65; padding: 96px var(--gut) 32px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; overflow-y: auto; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu nav { display: grid; }
.menu a { padding: 13px 0; border-bottom: 1px solid var(--line); font: 500 1.5rem var(--font-d); letter-spacing: -.02em; text-decoration: none; transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.menu.is-open a { transform: none; opacity: 1; }
.menu.is-open a:nth-child(n) { transition-delay: calc(var(--i, 0) * 35ms); }
.menu .theme { display: inline-flex; margin-top: 24px; }
@media (min-width: 560px) { .theme { display: inline-flex; } .nav__cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav__links { display: flex; } .nav__burger { display: none; }
  .nav__search span, .nav__search kbd { display: inline; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: minmax(300px, 44svh) auto; padding: 72px 0 40px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 80% 20%, var(--glow), transparent 70%),
  radial-gradient(40% 40% at 10% 90%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent 70%),
  linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px; mask-image: linear-gradient(#000 70%, transparent); }
.hero__visual { position: relative; min-height: 0; }
.hero__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.hero__visual.is-3d canvas { opacity: 1; }
.hero__fallback { position: absolute; inset: 0; margin: auto; height: 100%; width: auto; max-width: 90%; object-fit: cover; border-radius: var(--r); mask-image: radial-gradient(ellipse at 45% 50%, #000 45%, transparent 75%); transition: opacity .8s; }
.hero__visual.is-3d .hero__fallback { opacity: 0; }
.hero__chip { position: absolute; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg2) 70%, transparent); backdrop-filter: blur(10px); font-size: .65rem; color: var(--muted); }
.hero__chip i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #f5b301; margin-right: 8px; }
.hero__chip--a { left: var(--gut); bottom: 8px; }
.hero__chip--b { display: none; right: 8%; top: 22%; }
.hero__copy { position: relative; z-index: 2; padding: 20px var(--gut) 0; max-width: 680px; }
.eyebrow { color: var(--muted); margin-bottom: 16px; }
.hero__title { font-size: clamp(2.4rem, 9.6vw, 4.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.04; }
.hero__title .w:nth-last-child(-n+3) .wi { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: ui-serif, Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 600; padding-right: .08em; }
.hero__role { margin-top: 20px; font-size: 1.05rem; color: var(--muted); }
.hero__role strong { color: var(--text); }
.rotator { display: inline-block; color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--accent2); min-width: 4ch; }
.rotator::after { content: '▍'; margin-left: 2px; animation: blink 1s steps(2) infinite; color: var(--accent2); }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { margin-top: 12px; color: var(--muted); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__stats dt { font: 600 1.7rem var(--font-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero__stats dd { font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.hero__scroll { display: none; position: absolute; left: 75%; bottom: 18px; translate: -50% 0; color: var(--muted); text-decoration: none; align-items: center; gap: 10px; font-size: .65rem; }
.hero__scroll span { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: drop 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 960px) {
  .hero { grid-template-rows: none; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; padding: 96px 0 56px; }
  .hero__copy { grid-column: 1; grid-row: 1; padding: 0 0 0 max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); max-width: none; }
  .hero__visual { grid-column: 2; grid-row: 1; height: 100%; min-height: 560px; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); max-width: 640px; }
  .hero__chip--a { left: 12%; bottom: 12%; } .hero__chip--b { display: block; }
  .hero__scroll { display: flex; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg2); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 .9rem var(--font-d); white-space: nowrap; color: var(--muted); }
.ticon { --c: currentColor; flex: none; width: 20px; height: 20px; background: var(--c); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; transition: background-color .3s; }
.ticon--mono { background: none; -webkit-mask: none; mask: none; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--c); color: var(--c); font: 700 .58rem var(--font-m); letter-spacing: -.02em; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 140px 0; } }
.section__head { margin-bottom: 40px; max-width: 820px; }
.label { color: var(--accent); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.section__head h2 { font-size: clamp(2rem, 6.4vw, 4rem); }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
@media (min-width: 960px) { .section__head { margin-bottom: 64px; } }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 36px; }
.about__photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface2); box-shadow: var(--shadow); }
.about__photo img { width: 100%; height: 116%; object-fit: cover; object-position: 30% 60%; }
.about__photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(8px); font-size: .65rem; }
.about__text > p { color: var(--muted); margin-bottom: 18px; max-width: 62ch; }
.about__text > p.lead { color: var(--text); font: 500 1.3rem/1.45 var(--font-d); letter-spacing: -.015em; }
.about__text a { color: var(--accent); }
.journey { position: relative; margin: 32px 0; display: grid; gap: 0; }
.journey__item { position: relative; padding: 0 0 26px 30px; }
.journey .rail { left: 4px; top: 11px; bottom: 26px; }
.journey__item::before, .journey__item::after { left: 0; top: 7px; width: 9px; height: 9px; }

/* ---------- Timeline rail: scroll-driven line, travelling head, dots that light up ---------- */
.rail { position: absolute; left: 5px; top: 11px; bottom: 36px; width: 1px; background: var(--line); --p: 0; list-style: none; pointer-events: none; }
.rail__fill { position: absolute; inset: 0 -0.5px; background: linear-gradient(#ffb6a3, #ff8ba7, #c86dd7); transform-origin: top; transform: scaleY(var(--p)); }
.rail__head { position: absolute; left: 50%; top: calc(var(--p) * 100%); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 139, 167, .28), 0 0 18px 5px rgba(200, 109, 215, .85); opacity: 0; transition: opacity .3s; z-index: 2; }
.rail.is-moving .rail__head { opacity: 1; }
.rail-item::before, .rail-item::after { content: ''; position: absolute; border-radius: 50%; z-index: 1; }
.rail-item::before { background: var(--bg); border: 2px solid var(--accent); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, border-color .3s, box-shadow .5s; }
.rail-item::after { border: 1.5px solid var(--accent); opacity: 0; }
.rail-item.is-active::before { background: #ff8ba7 linear-gradient(135deg, #ffb6a3, #c86dd7); border-color: transparent; transform: scale(1.45); box-shadow: 0 0 0 5px rgba(255, 139, 167, .16), 0 0 16px 2px rgba(200, 109, 215, .65); }
.rail-item.is-active::after { animation: ring .9s ease-out 1; }
.rail-item.is-current::after { animation: ring 1.9s ease-out infinite; }
.rail-item:hover::before { transform: scale(1.75); }
.rail-item:hover::after { animation: ring .9s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.js-rail .rail-item > * { opacity: .32; transform: translateX(-10px); transition: opacity .6s, transform .7s var(--ease); }
.js-rail .rail-item.is-active > *, .js-rail .rail-item:hover > * { opacity: 1; transform: none; }
.js-rail .rail-item > *:nth-child(2) { transition-delay: .08s; }
.journey__year { color: var(--accent); }
.journey__item h3 { font-size: 1.15rem; margin: 4px 0; letter-spacing: -.01em; }
.journey__item p { color: var(--muted); font-size: .95rem; max-width: 54ch; }
.about__links { display: flex; flex-wrap: wrap; gap: 10px; }
.about__links .btn { text-decoration: none; color: var(--text); }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 72px; align-items: start; } .about__photo { position: sticky; top: 110px; } }

/* ---------- Services ---------- */
.services { background: var(--bg2); border-block: 1px solid var(--line); }
.services__grid { display: grid; gap: 14px; }
.svc { position: relative; padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transform-style: preserve-3d; transition: border-color .4s, box-shadow .4s; }
.svc::before { content: ''; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.svc:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.svc:hover::before { opacity: 1; }
.svc__n { color: var(--accent); }
.svc h3 { font-size: 1.4rem; margin: 34px 0 10px; }
.svc p { color: var(--muted); font-size: .95rem; }
.svc ul { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .875rem; }
.svc li::before { content: '→'; color: var(--accent2); margin-right: 8px; }
@media (min-width: 640px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Work / cases ---------- */
.work { padding-bottom: 0; }
.work__index { display: flex; flex-wrap: wrap; gap: 8px; }
.work__chip, .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; text-decoration: none; color: var(--muted); background: var(--surface); transition: color .25s, border-color .25s, background-color .25s; white-space: nowrap; }
.work__chip b { font: 500 .7rem var(--font-m); color: var(--accent); }
.work__chip:hover, .chip:hover { color: var(--text); border-color: var(--accent); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--sm .chip { min-height: 34px; font-size: .8rem; padding: 0 12px; }
.case { position: relative; padding: 64px 0; border-top: 1px solid var(--line); margin-top: 64px; }
.case:nth-child(even) { background: var(--bg2); }
.case__in { display: grid; gap: 32px; }
.case__num { color: var(--accent); }
.case__client { font-size: clamp(1.9rem, 5vw, 3rem); margin: 12px 0 8px; }
.case__title { font: 500 1.15rem/1.4 var(--font-d); color: var(--accent2); letter-spacing: -.01em; }
.case__summary { margin-top: 14px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { padding: 4px 10px; border-radius: 999px; background: var(--surface2); font: 500 .68rem var(--font-m); letter-spacing: .03em; color: var(--muted); }
.case__blocks { margin-top: 26px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.case__block { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.case__block h4 { font: 500 .72rem var(--font-m); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.case__block p, .case__block li { color: var(--muted); font-size: .95rem; }
.case__block ul { display: grid; gap: 7px; }
.case__block li { position: relative; padding-left: 18px; }
.case__block li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent2); rotate: 45deg; }
.case__block--result p { color: var(--text); }
.case__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.case__stats div { padding: 14px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); }
.case__stats b { display: block; font: 600 1.3rem var(--font-d); letter-spacing: -.02em; color: var(--text); line-height: 1.15; }
.case__stats span { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); line-height: 1.35; }
.case__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.media { position: relative; display: block; width: 100%; text-align: left; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface2); box-shadow: var(--shadow); isolation: isolate; }
.media--wide { grid-column: 1 / -1; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media--video { aspect-ratio: 16 / 8.3; }
.media--reel { aspect-ratio: 9 / 16; }
.media--image { aspect-ratio: 1; }
.media--image.media--wide { aspect-ratio: 16 / 10.6; }
.media--page { aspect-ratio: 16 / 10.6; }
.media--doc { aspect-ratio: 4 / 5; background: #fff; }
.media__bar { position: absolute; z-index: 2; inset: 0 0 auto 0; height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--line); }
.media__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.media__bar i:first-child { background: #ff5f57; } .media__bar i:nth-child(2) { background: #febc2e; } .media__bar i:nth-child(3) { background: #28c840; }
.media--page .media__shot { position: absolute; inset: 28px 0 0 0; overflow: hidden; }
.media--page .media__shot img { height: auto; object-fit: initial; transform: none; transition: transform 9s linear; }
.media--page:hover .media__shot img, .media--page:focus-visible .media__shot img { transform: translateY(calc(-100% + var(--shot-h, 300px))); }
.media__play { position: absolute; z-index: 2; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #000 45%, transparent); backdrop-filter: blur(6px); color: #fff; border: 1px solid rgba(255, 255, 255, .35); transition: transform .4s var(--ease), background-color .3s; }
.media__play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.media:hover .media__play { transform: scale(1.12); background: var(--accent); }
.media__cap { position: absolute; z-index: 2; left: 8px; bottom: 8px; right: 8px; width: fit-content; max-width: calc(100% - 16px); padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; backdrop-filter: blur(8px); font: 500 .66rem var(--font-m); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 980px) {
  .case { padding: 110px 0; margin-top: 0; }
  .case__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
  .case__info { position: sticky; top: 96px; }
  .case:nth-child(even) .case__info { order: 2; }
  .case__media { gap: 16px; }
}

/* ---------- Library ---------- */
.library__bar { display: grid; gap: 14px; margin-bottom: 28px; }
.library__search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); }
.library__search:focus-within { border-color: var(--accent); }
.library__search svg { width: 16px; height: 16px; flex: none; }
.library__search input, .palette__input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; }
.library__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.lib { display: flex; flex-direction: column; text-align: left; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .4s; }
.lib:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.lib__img { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface2); }
.lib__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.lib:hover .lib__img img { transform: scale(1.06); }
.lib__cat { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; backdrop-filter: blur(8px); font: 500 .64rem var(--font-m); letter-spacing: .05em; text-transform: uppercase; }
.lib__body { padding: 18px; display: grid; gap: 8px; }
.lib h3 { font-size: 1.1rem; letter-spacing: -.01em; }
.lib p { font-size: .875rem; color: var(--muted); }
.lib .tags { margin-top: 4px; }
.library__empty { color: var(--muted); padding: 24px 0; }
.library__more { display: flex; justify-content: center; margin-top: 24px; }
.library__more [hidden] { display: none; }
@media (min-width: 760px) { .library__bar { grid-template-columns: 1fr 280px; align-items: center; } }

/* ---------- Stack ---------- */
.stack { background: var(--bg2); border-block: 1px solid var(--line); }
.stack__groups { display: grid; gap: 0; }
.stack__group { display: grid; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.stack__group:last-child { border-bottom: 1px solid var(--line); }
.stack__group h3 { font-size: 1.4rem; }
.stack__group > div > p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.stack__items { display: flex; flex-wrap: wrap; gap: 10px; }
.tool { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: 500 .92rem var(--font-d); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.tool .ticon { width: 24px; height: 24px; --c: var(--muted); }
.tool .ticon--mono { font-size: .62rem; }
.tool:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 12px 28px -14px var(--brand); }
.tool:hover .ticon { --c: var(--brand); }
@media (min-width: 860px) { .stack__group { grid-template-columns: 280px 1fr; gap: 40px; padding: 36px 0; } }

/* ---------- Certs ---------- */
.certs__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cert { text-align: left; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform .45s var(--ease), box-shadow .4s, border-color .3s; }
.cert:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.cert__img { display: block; aspect-ratio: 1.41; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.cert__img img { width: 100%; height: 100%; object-fit: cover; }
.cert__body { padding: 18px; }
.cert__meta { color: var(--accent); font-size: .66rem; }
.cert h3 { font-size: 1.08rem; margin: 6px 0; letter-spacing: -.01em; }
.cert p { font-size: .85rem; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; }
.tl { position: relative; padding: 0 0 36px 34px; display: grid; gap: 6px; }
.tl::before, .tl::after { left: 0; top: 6px; width: 11px; height: 11px; }
.tl__when { color: var(--accent); }
.tl h3 { font-size: 1.3rem; }
.tl__org { font-weight: 500; }
.tl p { color: var(--muted); font-size: .95rem; max-width: 64ch; }
.tl ul { margin-top: 6px; display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.tl li::before { content: '·'; margin-right: 8px; color: var(--accent2); font-weight: 700; }
@media (min-width: 860px) { .tl { grid-template-columns: 180px 1fr; column-gap: 32px; padding-left: 44px; } .tl__when { padding-top: 4px; } .tl__main { display: grid; gap: 6px; } }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg2); border-block: 1px solid var(--line); overflow: hidden; }
.quotes { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))) 20px; scrollbar-width: none; }
.quotes::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 min(86vw, 460px); scroll-snap-align: center; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.quote blockquote { font: 400 1.05rem/1.6 var(--font-b); }
.quote blockquote::before { content: '“'; display: block; font: 700 3.4rem/0.7 var(--font-d); color: var(--accent); margin-bottom: 12px; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); font: 600 .85rem var(--font-d); }
.quote cite { font-style: normal; font-weight: 600; display: block; }
.quote footer span { font-size: .82rem; color: var(--muted); }
.quotes__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ---------- Advisor ---------- */
.advisor__box { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: 20px; box-shadow: var(--shadow); }
.advisor textarea { width: 100%; resize: vertical; min-height: 96px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--text); padding: 14px 16px; font: inherit; }
.advisor textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.advisor__row { display: grid; gap: 14px; margin-top: 14px; }
.advisor__out { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.advisor__out h3 { font-size: 1.5rem; margin: 6px 0 18px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow__node { padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font: 500 .85rem var(--font-d); }
.flow__arrow { color: var(--accent2); font-weight: 700; }
.advisor__why { margin: 18px 0; color: var(--muted); max-width: 70ch; }
.advisor__tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.advisor__tools span.mono { color: var(--muted); margin-right: 4px; }
@media (min-width: 760px) { .advisor__box { padding: 32px; } .advisor__row { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Contact ---------- */
.contact__title { font-size: clamp(2.4rem, 8vw, 5.2rem) !important; }
.contact__grid { display: grid; gap: 20px; }
.calendly { position: relative; min-height: 220px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface) radial-gradient(60% 80% at 50% 0%, var(--glow), transparent 70%); overflow: hidden; }
.calendly.is-loaded { min-height: 0; display: block; background: #fff; }
.calendly iframe { width: 100%; height: 720px; border: 0; display: block; }
.contact__list { display: grid; gap: 10px; }
.contact__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .3s, transform .35s var(--ease); }
.contact__list a:hover { border-color: var(--accent); transform: translateX(4px); }
.contact__list small { display: block; font: 500 .66rem var(--font-m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact__list b { font-weight: 500; overflow-wrap: anywhere; }
.contact__list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.contact__avail { margin-top: 18px; color: var(--muted); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px; align-items: start; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .85rem; }
.footer__in { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.footer a { color: var(--text); }

/* ---------- Lightbox ---------- */
dialog { border: 0; padding: 0; color: var(--text); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(3, 5, 10, .82); backdrop-filter: blur(10px); }
.lightbox { width: 100vw; height: 100dvh; background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 60px 14px 14px; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.lightbox__close { position: fixed; top: 12px; right: 12px; z-index: 2; }
.lightbox__body { max-width: min(1200px, 100%); max-height: 100%; min-height: 0; overflow: auto; border-radius: var(--r-sm); overscroll-behavior: contain; }
.lightbox__body img { width: 100%; height: auto; }
.lightbox__body img.fit { width: auto; max-height: calc(100dvh - 130px); }
.lightbox__body video { max-width: 100%; max-height: calc(100dvh - 130px); background: #000; border-radius: var(--r-sm); }
.lightbox__cap { color: #cfd6e4; padding-top: 10px; text-align: center; }

/* ---------- Palette ---------- */
.palette { background: transparent; width: 100vw; height: 100dvh; }
.palette[open] { display: grid; align-items: start; justify-items: center; padding: 12vh 14px 0; animation: fade .2s; }
.palette__box { width: min(620px, 100%); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.palette__input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette__input svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.palette__input input { font-size: 1.05rem; }
.palette__list { max-height: min(50vh, 380px); overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.palette__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.palette__item[aria-selected="true"] { background: var(--surface2); }
.palette__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__item small { flex: none; font: 500 .62rem var(--font-m); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.palette__none { padding: 18px 12px; color: var(--muted); }
.palette__hint { padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .62rem; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cursor { display: none; }
}
