/* ==========================================================================
   Chimbuk clone — design system
   Tokens mirror the original: night/frost/jade palette, Syne + Manrope +
   JetBrains Mono + Instrument Serif. Dark by default, light via data-theme.
   ========================================================================== */

:root {
  --night-900: #0a0f14;
  --night-800: #0e151c;
  --night-700: #141e27;
  --night-600: #1b2732;
  --frost: #e9eef2;
  --frost-muted: #97a6b2;
  --frost-faint: #5e6f7c;
  --hairline: #22303c;
  --hairline-strong: #31424f;
  --jade: #3ddc97;
  --jade-deep: #16a06a;
  --jade-ink: #062317;
  --jade-wash: rgba(61, 220, 151, .09);
  --ember: #e0a94e;
  --alert: #e0604a;
  --surface: rgba(20, 30, 39, .55);
  --glass: rgba(10, 15, 20, .72);
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .8);

  --acc-jade: #3ddc97;
  --acc-purple: #c07eff;
  --acc-sky: #38bdf8;
  --acc-amber: #fcbb00;
  --acc-rose: #ff667f;
  --acc-teal: #00d3bd;

  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 30px;
  --ease: cubic-bezier(.22, .68, .2, 1);
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

[data-theme="light"] {
  --night-900: #f5f2ea;
  --night-800: #fffdf7;
  --night-700: #faf7f0;
  --night-600: #ece7d8;
  --frost: #141210;
  --frost-muted: #55504a;
  --frost-faint: #837d72;
  --hairline: #ded9cb;
  --hairline-strong: #c4bda6;
  --jade: #0b7d54;
  --jade-deep: #085c3e;
  --jade-ink: #ffffff;
  --jade-wash: rgba(11, 125, 84, .07);
  --ember: #9a6a17;
  --alert: #bb4733;
  --surface: rgba(255, 253, 247, .8);
  --glass: rgba(245, 242, 234, .82);
  --shadow: 0 30px 70px -40px rgba(60, 50, 30, .35);
  --acc-jade: #0b7d54;
  --acc-purple: #8b3fd9;
  --acc-sky: #0278b5;
  --acc-amber: #a86800;
  --acc-rose: #c4224a;
  --acc-teal: #00826f;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--night-900); color: var(--frost);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--jade); color: var(--jade-ink); }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }
.muted { color: var(--frost-muted); }
.jade { color: var(--jade); }
.small { font-size: .78rem; }
.center { text-align: center; }
.center-block { display: table; margin: 0 auto; }
.mt-lg { margin-top: 40px; }
.fine { margin-top: 18px; font-size: .84rem; color: var(--frost-faint); line-height: 1.6; }
.fine a, .prose a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--jade); color: var(--jade-ink); border-radius: var(--r-md); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120; background: linear-gradient(90deg, var(--jade), var(--acc-sky)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- type ---------- */
.display { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.display.xl { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
.display.lg { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.display.sm { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
em.accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--jade); letter-spacing: -.01em; padding-right: .04em; }
.lead { margin-top: 18px; max-width: 46rem; font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--frost-muted); font-weight: 300; }
.lead.center { margin-left: auto; margin-right: auto; }
.eyebrow { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--jade); margin-bottom: 16px; }
.eyebrow-plain { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--frost-faint); }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid color-mix(in srgb, var(--acc, var(--jade)) 35%, transparent); background: color-mix(in srgb, var(--acc, var(--jade)) 9%, transparent); color: var(--acc, var(--jade)); border-radius: 999px; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc, var(--jade)); box-shadow: 0 0 10px var(--acc, var(--jade)); flex: none; }
.rule-label { display: flex; align-items: center; gap: 18px; font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: var(--frost-faint); margin: 0 auto 28px; max-width: 1240px; padding: 0 var(--gutter); }
.rule-label::before, .rule-label::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.rule-label.left { padding: 0; }
.rule-label.left::before { display: none; }

/* ---------- buttons ---------- */
.btn { --b: var(--hairline-strong); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid var(--b); transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--jade); color: var(--jade-ink); border-color: var(--jade); box-shadow: 0 10px 30px -12px var(--jade); }
.btn-primary:hover { background: color-mix(in srgb, var(--jade) 88%, white); }
.btn-ghost { background: color-mix(in srgb, var(--night-700) 60%, transparent); }
.btn-ghost:hover { border-color: var(--jade); color: var(--jade); }
.btn-glow { position: relative; background: var(--night-800); border: 1.5px solid transparent; background-image: linear-gradient(var(--night-800), var(--night-800)), linear-gradient(120deg, var(--jade), var(--acc-sky), var(--acc-purple), var(--jade)); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 0 24px -6px color-mix(in srgb, var(--jade) 60%, transparent); }
.btn-glow:hover { box-shadow: 0 0 34px -4px color-mix(in srgb, var(--jade) 80%, transparent); }
.btn-accent { background: var(--acc); color: #06110c; border-color: var(--acc); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-row.center { justify-content: center; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: color-mix(in srgb, var(--night-700) 70%, transparent); transition: border-color .2s, color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--jade); color: var(--jade); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--jade); font-weight: 600; font-size: .92rem; transition: gap .2s; }
.link-arrow:hover { gap: 10px; }
.link-btn { color: var(--jade); text-decoration: underline; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--hairline); border-radius: 6px; font-size: .68rem; color: var(--frost-faint); background: var(--surface); font-family: var(--font-mono); }
.tag-live { color: var(--jade); border-color: color-mix(in srgb, var(--jade) 40%, transparent); background: var(--jade-wash); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--glass); backdrop-filter: blur(8px); font-size: .74rem; }
.pill .mono { color: var(--frost-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.pill-live .mono { color: var(--jade); }
.star { color: var(--acc-amber); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; height: var(--header-h); background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; font-size: 1.05rem; flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand b { color: var(--jade); }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--frost-muted); transition: color .2s, background .2s; }
.nav-link:hover, .nav-link.is-active, .has-menu.open > .nav-link { color: var(--frost); background: color-mix(in srgb, var(--night-600) 60%, transparent); }
.nav-link.is-active { color: var(--jade); }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.has-menu { position: relative; }
.has-menu.open .chev { transform: rotate(-135deg) translateY(-1px); }
.mega { position: absolute; top: calc(100% + 12px); left: 50%; width: min(680px, 90vw); transform: translate(calc(-50% + var(--dx, 0px)), 8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; background: var(--night-800); border: 1px solid var(--hairline); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 14px; }
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.mega-sm { width: 360px; }
.has-menu.open .mega { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--dx, 0px)), 0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-grid.one { grid-template-columns: 1fr; }
.mega-grid a { display: block; padding: 12px 14px; border-radius: var(--r-md); transition: background .2s; }
.mega-grid a:hover { background: var(--jade-wash); }
.mega-grid strong { display: block; font-size: .9rem; font-weight: 600; }
.mega-grid a:hover strong { color: var(--jade); }
.mega-grid span { display: block; font-size: .78rem; color: var(--frost-faint); margin-top: 2px; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 12px 14px 4px; border-top: 1px solid var(--hairline); font-size: .8rem; color: var(--frost-faint); }
.mega-foot a { color: var(--jade); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-trigger { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--hairline-strong); color: var(--frost-faint); font-size: .82rem; transition: border-color .2s; }
.search-trigger:hover { border-color: var(--jade); }
.search-trigger svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
kbd { font-family: var(--font-mono); font-size: .64rem; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--hairline-strong); color: var(--frost-faint); }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
.burger { display: none; }
.burger span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 2px 0; transition: transform .3s; }

@media (max-width: 1180px) {
  .search-trigger .lbl, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; justify-content: center; padding: 0; }
  .nav-link { padding: 8px 9px; font-size: .84rem; }
}
@media (max-width: 1040px) {
  .main-nav, .header-actions .theme-toggle { display: none; }
  .burger { display: inline-grid; }
}
@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn, .search-trigger { width: 36px; height: 36px; }
  .header-actions .talk { padding: 0 12px; min-height: 36px; font-size: .8rem; }
  .brand { gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand span { font-size: .92rem; }
}
@media (max-width: 340px) { .brand span { display: none; } }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; background: var(--night-900); display: flex; flex-direction: column; padding: 0 var(--gutter) 24px; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); flex: none; }
.drawer-nav ol { counter-reset: d; }
.drawer-nav > ol > li { border-bottom: 1px solid var(--hairline); }
.d-row { display: flex; align-items: center; gap: 10px; }
.d-row a { flex: 1; padding: 16px 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.d-row a small { font-family: var(--font-mono); font-size: .66rem; color: var(--frost-faint); letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; }
.d-num { font-family: var(--font-mono); font-size: .72rem; color: var(--frost-faint); }
.d-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hairline-strong); font-size: 1.1rem; transition: transform .25s; }
.d-toggle[aria-expanded="true"] { transform: rotate(45deg); color: var(--jade); border-color: var(--jade); }
.d-sub { display: none; padding: 0 0 14px 4px; }
.d-group.open .d-sub { display: block; }
.d-sub a { display: block; padding: 7px 0; color: var(--frost-muted); }
.d-sub a:hover { color: var(--jade); }
.drawer-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; text-align: center; color: var(--frost-muted); font-size: .9rem; }

/* ---------- search modal ---------- */
.search-modal { position: fixed; inset: 0; z-index: 170; display: grid; place-items: start center; padding: 10vh 16px 16px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 10, .7); backdrop-filter: blur(6px); }
.search-panel { position: relative; width: min(640px, 100%); background: var(--night-800); border: 1px solid var(--hairline-strong); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.search-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--hairline); }
.search-input svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--frost-faint); stroke-width: 2; }
.search-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--frost); font: 500 1.02rem var(--font-sans); }
.search-input input::-webkit-search-cancel-button { display: none; }
.esc { font-family: var(--font-mono); font-size: .66rem; padding: 4px 8px; border: 1px solid var(--hairline-strong); border-radius: 6px; color: var(--frost-faint); }
.search-results { max-height: min(52vh, 440px); overflow-y: auto; padding: 8px; }
.search-results:empty { display: none; }
.search-results a { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: var(--r-md); }
.search-results a .t { font-weight: 600; }
.search-results a .x { display: block; font-size: .8rem; color: var(--frost-faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results a .k { flex: none; width: 82px; font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--jade); }
.search-results a .body { min-width: 0; flex: 1; }
.search-results li.active a, .search-results a:hover { background: var(--jade-wash); }
.search-results .none { padding: 18px; color: var(--frost-faint); text-align: center; }
.search-results mark { background: none; color: var(--jade); }
.search-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--hairline); font-size: .8rem; color: var(--frost-faint); }
.search-foot button { color: var(--jade); text-decoration: underline; }
.search-foot .hint { display: inline-block; margin-left: 8px; font-family: var(--font-mono); font-size: .66rem; }
.search-foot a { color: var(--jade); }
@media (max-width: 560px) { .search-foot .hint { display: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--night-800), var(--night-900)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 44px; }
.section-head > div { max-width: 760px; }
.section-head .link-arrow { flex: none; }
@media (max-width: 760px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(50px, 8vw, 90px) 0 clamp(60px, 8vw, 90px); border-bottom: 1px solid var(--hairline); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.06); animation: drift 26s ease-in-out infinite alternate; }
[data-theme="light"] .hero-bg img { opacity: .18; filter: saturate(.4); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 30%, transparent, var(--night-900) 85%), linear-gradient(180deg, transparent 50%, var(--night-900)); }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, 1%); } }
.hero-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 0 40px -6px var(--jade); margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.hero-title { font-size: clamp(2.6rem, 8vw, 6.1rem); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.hero-title em.accent { font-size: 1.04em; }
.hero-lead { margin-top: 26px; max-width: 38rem; font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: var(--jade); font-weight: 500; }
.hero-sub { margin-top: 14px; max-width: 37rem; color: var(--frost-muted); font-weight: 300; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; width: min(640px, 100%); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.hero-stats li { padding: 18px 10px; }
.hero-stats li + li { border-left: 1px solid var(--hairline); }
.hero-stats .mono { font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; margin-top: 4px; }
.stat { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.02em; }
@media (max-width: 560px) {
  .hero .btn-row { flex-direction: column; width: 100%; }
  .hero .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats li + li { border-left: 0; border-top: 1px solid var(--hairline); }
}

/* ---------- marquees ---------- */
.marquee { overflow: hidden; position: relative; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee.slow .marquee-track { animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.work-marquee, .projects-marquee { padding: 60px 0 70px; border-bottom: 1px solid var(--hairline); }
.tile { flex: none; width: clamp(250px, 26vw, 340px); border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-800); overflow: hidden; transition: transform .35s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: var(--jade); }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile p { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; font-size: .86rem; font-weight: 600; }
.tile p span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .mono { font-size: .6rem; color: var(--frost-faint); letter-spacing: .14em; font-weight: 400; }
.chips-marquee { padding: 50px 0; border-bottom: 1px solid var(--hairline); }
.chips-marquee .container { margin-bottom: 20px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 28px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-800); font-size: .74rem; color: var(--frost-muted); letter-spacing: .12em; }
.chip-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; color: var(--frost); font-size: .85rem; }
.chip-brand img { border-radius: 6px; }
.chip-app { padding: 0 18px; transition: border-color .2s; }
.chip-app:hover { border-color: var(--jade); }
.chip-app img { border-radius: 8px; }
.chip-app b { display: block; font-size: .84rem; color: var(--frost); letter-spacing: 0; }
.chip-app small { display: block; font-size: .58rem; color: var(--jade); text-transform: uppercase; letter-spacing: .14em; }
#ai-engine .marquee { margin: 0 0 40px; }
#ai-engine .chip { min-height: 46px; padding: 0 20px; }

/* ---------- practice stack ---------- */
.practice-section { background: radial-gradient(ellipse 60% 40% at 50% 0%, var(--jade-wash), transparent 70%); }
.stack-counter { flex: none; padding: 6px 14px; border: 1px solid var(--hairline-strong); border-radius: 999px; font-size: .72rem; }
.stack-counter b { color: var(--jade); }
.stack { display: grid; gap: 28px; }
.stack-card { --acc: var(--acc-jade); position: sticky; top: calc(var(--header-h) + 20px + var(--i) * 14px); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 50px); padding: clamp(22px, 3.5vw, 44px); border-radius: var(--r-2xl); border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--hairline)); background: radial-gradient(ellipse 80% 60% at 0% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 60%), var(--night-800); box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .7); transform-origin: 50% 0; transition: transform .3s linear, filter .3s linear; }
.acc-purple { --acc: var(--acc-purple); } .acc-sky { --acc: var(--acc-sky); } .acc-amber { --acc: var(--acc-amber); }
.acc-rose { --acc: var(--acc-rose); } .acc-teal { --acc: var(--acc-teal); } .acc-jade { --acc: var(--acc-jade); }
.stack-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.stack-card h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.stack-tag { margin-top: 10px; color: var(--acc); font-weight: 600; }
.stack-text { margin-top: 14px; color: var(--frost-muted); font-weight: 300; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.facts div { padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: color-mix(in srgb, var(--night-900) 50%, transparent); }
.facts dt { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--frost-faint); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: .9rem; }
.ticks li { position: relative; padding-left: 24px; margin-top: 8px; color: var(--frost-muted); font-size: .9rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--acc, var(--jade)); font-weight: 700; }
.ticks.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.ticks.big li { font-size: 1rem; margin-top: 12px; }
.stack-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.quote { display: flex; gap: 12px; align-items: flex-start; }
.quote p { font-style: italic; font-size: .84rem; color: var(--frost-muted); }
.quote small { font-size: .64rem; }
.avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--acc); color: var(--acc); font-size: .7rem; font-weight: 700; }
.stack-visual { display: flex; align-items: center; }
.window { width: 100%; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-900); padding: 14px; }
.window-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: auto; font-size: .62rem; color: var(--frost-faint); }
.window-img { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.window-img img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; transition: transform .8s var(--ease); }
.stack-card:hover .window-img img { transform: scale(1.04); }
.window-caption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: rgba(8, 12, 16, .82); backdrop-filter: blur(8px); color: #e9eef2; }
.window-caption b { display: block; font-size: .8rem; }
.window-caption small { display: block; font-size: .58rem; color: #97a6b2; }
.live { color: var(--acc); font-size: .66rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-top: 14px; }
.kpis b { display: block; font-family: var(--font-display); color: var(--acc); font-size: 1.05rem; }
.kpis small { font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; color: var(--frost-faint); }
@media (max-width: 900px) {
  .stack-card { grid-template-columns: 1fr; position: relative; top: auto; }
  .stack-visual { order: -1; }
}
@media (max-width: 560px) {
  .facts, .ticks.two { grid-template-columns: 1fr; }
  .stack-foot { flex-direction: column; align-items: stretch; }
  .stack-foot .btn { width: 100%; }
}

/* ---------- horizontal rails ---------- */
.rail-controls { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: -20px 0 22px; font-size: .7rem; }
.rail { --rail-pad: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--rail-pad) 26px; scroll-padding-inline: var(--rail-pad); scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging a { pointer-events: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.ind-card { width: min(400px, 82vw); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; background: var(--night-800); transition: border-color .3s, transform .35s var(--ease); display: flex; flex-direction: column; }
.ind-card:hover { border-color: var(--jade); transform: translateY(-4px); }
.ind-img { overflow: hidden; }
.ind-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.ind-card:hover .ind-img img { transform: scale(1.05); }
.ind-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ind-body .mono { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.ind-body h3 { font-size: 1.25rem; }
.ind-body > p:not(.mono):not(.ind-foot) { color: var(--frost-muted); font-size: .9rem; }
.ind-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .86rem; font-weight: 600; }

/* ---------- AI steps ---------- */
.ai-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.ai-step { padding: 26px 22px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); position: relative; }
.ai-step h3 { margin: 18px 0 10px; font-size: 1.35rem; }
.ai-step > p:not(.mono) { color: var(--frost-muted); font-size: .9rem; margin-bottom: 16px; }
.ai-step .ticks li { font-size: .84rem; }
.step-no { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--jade); color: var(--jade); font-size: .8rem; }
.ai-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.ai-foot .chip { min-height: 40px; padding: 0 16px; font-size: .66rem; }
.ai-foot .btn { margin-left: auto; }
@media (max-width: 980px) { .ai-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai-steps { grid-template-columns: 1fr; } .ai-foot .btn { margin-left: 0; width: 100%; } }

/* ---------- compare ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--hairline); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--frost-faint); font-weight: 500; }
.compare-table tbody th { font-weight: 600; }
.compare-table .us { background: var(--jade-wash); }
.compare-table thead .us { color: var(--jade); }
.m-yes { color: var(--jade); } .m-partly { color: var(--ember); } .m-no { color: var(--frost-faint); }
.compare-table td span { font-weight: 700; margin-right: 4px; }
.compare-cards { display: none; gap: 12px; }
.cc { border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px; background: var(--night-800); }
.cc-q { font-weight: 600; margin-bottom: 10px; }
.cc dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.cc dl div { padding: 8px 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--night-900) 60%, transparent); }
.cc dl div.us { background: var(--jade-wash); }
.cc dt { font-size: .68rem; color: var(--frost-faint); }
.cc dd { margin: 0; font-size: .84rem; font-weight: 600; }
.legend { margin-top: 18px; font-size: .72rem; color: var(--frost-faint); }
@media (max-width: 760px) { .compare .table-wrap { display: none; } .compare-cards { display: grid; } }

/* ---------- products ---------- */
.product-card { width: min(420px, 84vw); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; background: var(--night-800); display: flex; flex-direction: column; transition: border-color .3s, transform .35s var(--ease); }
.product-card:hover { border-color: var(--jade); transform: translateY(-4px); }
.product-shot { background: linear-gradient(135deg, var(--night-600), var(--night-900)); }
.product-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-id { display: flex; gap: 12px; align-items: center; }
.product-id img { border-radius: 11px; }
.product-id b { display: block; font-size: .9rem; }
.product-id small { display: block; font-size: .62rem; color: var(--frost-faint); text-transform: uppercase; letter-spacing: .12em; }
.product-body h3 { font-size: 1.3rem; }
.product-body > p:not(.tags):not(.product-id) { color: var(--frost-muted); font-size: .9rem; }
.product-body .link-arrow { margin-top: auto; }

/* ---------- process ---------- */
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.process-item { padding: 24px 20px; border-radius: var(--r-xl); border: 1px solid var(--hairline); background: var(--night-800); display: flex; flex-direction: column; gap: 10px; }
.process-item .mono { font-size: .72rem; }
.process-item h3 { font-size: 1.15rem; }
.process-item > p:not(.mono) { font-size: .86rem; color: var(--frost-muted); }
.process-item dl, .tl-body dl { margin: auto 0 0; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--hairline); }
dt.mono { font-size: .6rem; text-transform: uppercase; letter-spacing: .14em; color: var(--jade); }
dd { margin: 2px 0 0; font-size: .84rem; }
@media (max-width: 1100px) { .process-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .process-list { grid-template-columns: 1fr; } }

/* ---------- field notes / trust ---------- */
.notes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.note-card { padding: 26px; border-radius: var(--r-xl); border: 1px solid var(--hairline); background: var(--night-800); display: flex; flex-direction: column; gap: 10px; }
.note-card h3 { font-size: 1.35rem; }
.note-card .proof { padding: 12px 14px; border-left: 2px solid var(--jade); background: var(--jade-wash); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .88rem; }
.note-card .link-arrow { margin-top: auto; padding-top: 8px; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hairline); border-radius: var(--r-xl); margin-bottom: 28px; background: var(--night-800); }
.counters li { padding: 24px 20px; }
.counters li + li { border-left: 1px solid var(--hairline); }
.counters .stat { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--jade); }
.counters .mono { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-card { padding: 26px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); display: flex; flex-direction: column; gap: 10px; transition: border-color .3s; }
.trust-card:hover { border-color: color-mix(in srgb, var(--jade) 50%, var(--hairline)); }
.trust-card .tick { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--jade-wash); color: var(--jade); font-weight: 700; }
.trust-card h3 { font-size: 1.12rem; }
.trust-card p { color: var(--frost-muted); font-size: .88rem; }
.trust-card .link-arrow { margin-top: auto; }
@media (max-width: 980px) { .trust-grid { grid-template-columns: 1fr 1fr; } .counters { grid-template-columns: 1fr 1fr; } .counters li:nth-child(3) { border-left: 0; } .counters li:nth-child(n+3) { border-top: 1px solid var(--hairline); } }
@media (max-width: 640px) { .notes-grid, .trust-grid { grid-template-columns: 1fr; } }

/* ---------- post cards ---------- */
.post-card { width: min(400px, 84vw); padding: 26px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); display: flex; flex-direction: column; gap: 12px; transition: border-color .3s, transform .35s var(--ease); }
.post-card:hover { border-color: var(--jade); transform: translateY(-4px); }
.post-card h3 { font-size: 1.2rem; line-height: 1.25; }
.post-card > p:not(.mono):not(.jade) { color: var(--frost-muted); font-size: .88rem; }
.post-card .jade { margin-top: auto; font-weight: 600; }

/* ---------- phones ---------- */
.phones { list-style: none; }
.phone-link { display: block; transition: transform .35s var(--ease); }
.phone-link:hover { transform: translateY(-6px); }
.phone { width: 260px; height: 520px; border-radius: 38px; border: 6px solid #1c2630; background: linear-gradient(180deg, #0f1820, #0a1016); box-shadow: 0 36px 90px -36px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .04); overflow: hidden; display: flex; flex-direction: column; color: #e9eef2; position: relative; }
[data-theme="light"] .phone { border-color: #d6cfbc; background: linear-gradient(180deg, #fffdf7, #f4f0e4); color: #141210; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px 6px; font: 600 .64rem var(--font-mono); }
.phone-status .notch { width: 70px; height: 18px; border-radius: 12px; background: #000; }
[data-theme="light"] .phone-status .notch { background: #141210; }
.phone-body { flex: 1; padding: 10px 16px 18px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.ph-title { font: 700 1.22rem/1.15 var(--font-display); letter-spacing: -.02em; margin: 6px 0 4px; }
.ph-text { font-size: .74rem; color: #97a6b2; }
[data-theme="light"] .ph-text { color: #55504a; }
.ph-num { font: 700 1rem var(--font-display); color: #3ddc97; }
[data-theme="light"] .ph-num { color: #0b7d54; }
.ph-row { font-size: .74rem; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
[data-theme="light"] .ph-row { background: rgba(0, 0, 0, .03); border-color: rgba(0, 0, 0, .06); }
.ph-btn { margin-top: auto; text-align: center; padding: 11px; border-radius: 14px; background: #3ddc97; color: #062317; font-weight: 700; font-size: .8rem; }
.phone-label { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; font-size: .6rem; color: #5e6f7c; background: linear-gradient(transparent, rgba(10, 16, 22, .9) 50%); padding: 22px 8px 8px; }
.phone-caption { margin-top: 16px; text-align: center; font-size: .9rem; }
.phone-caption .muted { display: block; font-size: .76rem; }

/* ---------- flutter ---------- */
.flutter-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.feature-grid li { padding: 16px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-800); }
.feature-grid b { display: block; font-family: var(--font-display); }
.feature-grid span { display: block; font-size: .84rem; color: var(--frost-muted); margin-top: 4px; }
.device-duo { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0; }
.device-duo .phone { width: 220px; height: 450px; z-index: 2; margin-right: -50px; }
.browser { border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); background: var(--night-800); overflow: hidden; box-shadow: var(--shadow); align-self: center; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline-strong); }
.browser-bar span { margin: 0 auto; font-size: .62rem; color: var(--frost-faint); padding: 3px 12px; border-radius: 6px; background: var(--night-900); }
.browser-body { padding: 18px 18px 18px 64px; }
.b-title { font: 700 1rem var(--font-display); }
.b-title small { display: block; font-size: .58rem; font-weight: 400; margin-top: 2px; }
.b-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.b-kpis div { padding: 10px; border: 1px solid var(--hairline); border-radius: var(--r-md); }
.b-kpis b { display: block; font-family: var(--font-display); color: var(--jade); }
.b-kpis span { font-size: .62rem; color: var(--frost-faint); }
.b-kpis em { font-style: normal; color: var(--jade); }
.b-chart { display: flex; align-items: flex-end; gap: 5px; height: 70px; padding: 8px; border: 1px solid var(--hairline); border-radius: var(--r-md); }
.b-chart i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(var(--jade), color-mix(in srgb, var(--jade) 20%, transparent)); }
.b-rows { margin-top: 12px; font-size: .7rem; }
.b-rows li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--hairline); }
.b-rows b { font-weight: 500; color: var(--frost-muted); text-align: right; }
.duo-cap { grid-column: 1 / -1; margin-top: 18px; }
@media (max-width: 980px) { .flutter-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .device-duo { grid-template-columns: 1fr; justify-items: center; }
  .device-duo .phone { margin: 0 0 -40px; }
  .browser { width: 100%; }
  .browser-body { padding: 54px 16px 16px; }
}

/* ---------- ledger ---------- */
.ledger { padding: 60px 0; border-bottom: 1px solid var(--hairline); background: var(--night-800); }
.ledger-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.ledger-grid .stat { font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--jade); line-height: 1; }
.ledger-grid p:not(.stat) { margin-top: 10px; font-weight: 600; }
.ledger-grid small { display: block; margin-top: 4px; font-size: .66rem; }
@media (max-width: 1000px) { .ledger-grid { grid-template-columns: repeat(3, 1fr); row-gap: 34px; } }
@media (max-width: 620px) { .ledger-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .ledger-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- playbook ---------- */
.playbook { display: grid; gap: 16px; }
.play-step { display: grid; grid-template-columns: 160px 1fr; gap: 30px; padding: 30px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); }
.step-label { font-size: .7rem; letter-spacing: .2em; color: var(--frost-faint); }
.step-label b { display: block; font-family: var(--font-display); font-size: 3rem; color: var(--jade); letter-spacing: -.04em; margin-top: 6px; }
.play-step h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.play-step p { color: var(--frost-muted); margin-top: 10px; max-width: 54rem; }
.play-step .ticks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; }
@media (max-width: 700px) { .play-step { grid-template-columns: 1fr; gap: 10px; padding: 22px; } .step-label b { font-size: 2.2rem; display: inline; margin-left: 8px; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-800); transition: border-color .3s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--jade) 45%, var(--hairline)); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hairline-strong); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s; }
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary i { border-color: var(--jade); color: var(--jade); }
.faq-item[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 20px 20px; color: var(--frost-muted); font-size: .94rem; }
.faq-group { margin-bottom: 50px; }
.faq-group-head { display: flex; gap: 16px; align-items: baseline; margin-bottom: 18px; }
.faq-search input { width: 100%; max-width: 520px; margin-bottom: 40px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid > div:first-child { position: static; } }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(60px, 9vw, 110px) 0; }
.cta-card { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 60px); border: 1px solid color-mix(in srgb, var(--jade) 30%, var(--hairline)); border-radius: var(--r-2xl); background: var(--night-800); }
.cta-glow { position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in srgb, var(--jade) 22%, transparent), transparent 70%); pointer-events: none; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.08); } }
.cta-card > * { position: relative; }
.rating { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; margin-bottom: 22px; }
.rating .stars { color: var(--acc-amber); letter-spacing: 2px; }
.rating .mono { font-size: .66rem; color: var(--frost-faint); text-transform: uppercase; letter-spacing: .12em; }
.cta-card .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 560px) { .cta-card .btn-row { flex-direction: column; } .cta-card .btn { width: 100%; white-space: normal; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 80px) 0 clamp(50px, 8vw, 90px); border-bottom: 1px solid var(--hairline); }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px); background-size: 56px 56px; opacity: .35; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 30% 0%, #000, transparent 75%); pointer-events: none; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--jade) 18%, transparent), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: .7rem; color: var(--frost-faint); margin-bottom: 30px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a:hover { color: var(--jade); }
.crumbs [aria-current] { color: var(--frost-muted); }

/* scraped detail hero */
.scraped-hero { max-width: 900px; }
.scraped-hero > p:first-child, .scraped-hero > img + p { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--jade); margin-bottom: 16px; }
.scraped-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.1rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 18px; }
.scraped-hero p { color: var(--frost-muted); margin-top: 10px; max-width: 48rem; }
.scraped-hero > img:first-child { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 20px; }
.scraped-hero ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.scraped-hero ul li { padding: 10px 16px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--night-800); font-size: .9rem; }
.scraped-hero ul li p { margin: 0; }
.scraped-hero ul li p:first-child { font-family: var(--font-display); color: var(--frost); font-weight: 700; }
.scraped-hero ul li p + p { font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; }
.scraped-hero p a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; margin: 8px 10px 0 0; border-radius: 999px; border: 1px solid var(--hairline-strong); color: var(--frost); font-weight: 600; font-size: .9rem; transition: border-color .2s, transform .2s; }
.scraped-hero p a:first-child { background: var(--jade); color: var(--jade-ink); border-color: var(--jade); }
.scraped-hero p a:hover { transform: translateY(-2px); }
.scraped-hero p:has(> a[href="/about"]) a, .scraped-hero p a[href="/about"] { background: none; color: var(--jade); border: 0; padding: 0; min-height: 0; margin: 0; }
.hero-figure { margin: 30px 0 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--hairline); }

/* ---------- prose (long-form content) ---------- */
.detail-body { padding-top: clamp(50px, 7vw, 80px); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 5vw, 60px); align-items: start; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.aside-card { padding: 20px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-800); display: grid; gap: 10px; }
.aside-card .mono { text-transform: uppercase; letter-spacing: .12em; }
.aside-links a { display: block; padding: 6px 0; font-size: .88rem; color: var(--frost-muted); border-bottom: 1px dashed var(--hairline); }
.aside-links a:hover, .aside-links a[aria-current] { color: var(--jade); }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } .detail-aside { position: static; } }

.prose { color: var(--frost-muted); font-size: 1.02rem; line-height: 1.75; min-width: 0; }
.prose.big { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.prose.big p { margin-bottom: 1.2em; }
.prose.big strong { color: var(--frost); }
.prose.wide { max-width: 1000px; }
.prose > * + *, .prose section > * + *, .prose article > * + *, .prose aside > * + * { margin-top: 1em; }
.prose section, .prose article, .prose aside { display: block; }
.prose section + section, .prose article + section { margin-top: 3em; padding-top: 2.5em; border-top: 1px solid var(--hairline); }
.prose h1 { color: var(--frost); font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .4em; }
.prose h2 { color: var(--frost); font-size: clamp(1.45rem, 2.6vw, 2rem); margin-top: 1.8em; margin-bottom: .2em; }
.prose h3 { color: var(--frost); font-size: 1.2rem; margin-top: 1.4em; }
.prose h4 { color: var(--frost); font-size: 1rem; margin-top: 1.2em; }
.prose > h2:first-child, .prose section > h2:first-child, .prose section > p:first-child + h2 { margin-top: 0; }
.prose strong, .prose b { color: var(--frost); font-weight: 600; }
.prose ul, .prose ol { display: grid; gap: 8px; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--jade); }
.prose ol { counter-reset: o; }
.prose ol > li { counter-increment: o; position: relative; padding-left: 34px; }
.prose ol > li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 0; font: .76rem/2.1 var(--font-mono); color: var(--jade); }
.prose li > p { margin: 0; }
.prose li:has(> p + p) { padding: 14px 16px 14px 34px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--night-800); }
.prose li:has(> p + p)::before { left: 14px; top: 1.4em; }
.prose li > p:first-child:has(+ p) { color: var(--frost); font-weight: 600; }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 3px solid var(--jade); background: var(--jade-wash); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--frost); font-style: italic; }
.prose pre { position: relative; margin: 1.4em 0; padding: 20px; overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: #070b0f; color: #d5e2ea; font: .82rem/1.65 var(--font-mono); tab-size: 2; }
[data-theme="light"] .prose pre { background: #1a1f24; }
.prose code { font-family: var(--font-mono); font-size: .86em; padding: 1px 6px; border-radius: 5px; background: var(--night-700); color: var(--frost); border: 1px solid var(--hairline); }
.prose pre code { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
.copy-code { position: absolute; top: 10px; right: 10px; font: .64rem var(--font-mono); padding: 4px 10px; border-radius: 6px; border: 1px solid #31424f; color: #97a6b2; background: #0e151c; opacity: 0; transition: opacity .2s; }
.prose pre:hover .copy-code, .copy-code:focus { opacity: 1; }
.prose .table-wrap { margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.prose th { color: var(--frost); font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.prose img { border-radius: var(--r-lg); border: 1px solid var(--hairline); }
.prose figure { margin: 1.5em 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.prose figure img { flex: none; height: clamp(260px, 40vw, 440px); width: auto; scroll-snap-align: start; }
.prose figure:has(> img:only-child) img { width: 100%; height: auto; }
.prose details { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-800); padding: 0 18px; }
.prose details + details { margin-top: 10px; }
.prose summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--frost); }
.prose details[open] summary { color: var(--jade); }
.prose details > :not(summary) { padding-bottom: 16px; }
.prose aside { padding: 20px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-800); font-size: .9rem; }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 2em 0; }
.work-prose > article > ul:first-of-type, .projects-prose > article > ul:first-of-type { display: flex; flex-wrap: wrap; gap: 8px; }
.work-prose > article > ul:first-of-type li, .projects-prose > article > ul:first-of-type li { padding: 4px 12px 4px 26px; border: 1px solid var(--hairline); border-radius: 999px; font-size: .8rem; }
.work-prose > article > ul:first-of-type li::before, .projects-prose > article > ul:first-of-type li::before { left: 10px; top: .85em; }
.legal-prose > section:first-child { border: 0; padding: 0; }
.legal-prose > section:first-child > p:first-child { font: .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--jade); }
.post-prose { font-size: 1.06rem; }

/* blog post extras */
.post-hero .tags { margin: 0 0 18px; }
.post-hero .lead + .mono { margin-top: 18px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.post-nav a { padding: 18px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-800); display: grid; gap: 6px; transition: border-color .2s; }
.post-nav a:hover { border-color: var(--jade); }
.post-nav a.right { text-align: right; grid-column: 2; }
.post-nav b { font-size: .92rem; line-height: 1.35; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav a.right { grid-column: 1; } }

/* ---------- listings ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 40px; }
.filter-bar .mono { font-size: .72rem; margin-right: 6px; }
.filter { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hairline-strong); font-size: .82rem; color: var(--frost-muted); transition: all .2s; }
.filter small { color: var(--frost-faint); }
.filter:hover { border-color: var(--jade); color: var(--frost); }
.filter.is-on { background: var(--jade); border-color: var(--jade); color: var(--jade-ink); font-weight: 600; }
.filter.is-on small { color: inherit; }
.empty-state { padding: 40px; text-align: center; color: var(--frost-faint); border: 1px dashed var(--hairline-strong); border-radius: var(--r-lg); }
.work-group, .projects-group { margin-bottom: 60px; }
.work-grid, .projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card a, .projects-card a { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; background: var(--night-800); transition: border-color .3s, transform .35s var(--ease); }
.work-card a:hover, .projects-card a:hover { border-color: var(--jade); transform: translateY(-4px); }
.work-img, .projects-img { overflow: hidden; }
.work-img img, .projects-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.work-card a:hover .work-img img, .projects-card a:hover .projects-img img { transform: scale(1.05); }
.work-body, .projects-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-body .mono, .projects-body .mono { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.work-body h3, .projects-body h3 { font-size: 1.2rem; }
.work-body > p:not(.mono):not(.jade), .projects-body > p:not(.mono):not(.jade) { color: var(--frost-muted); font-size: .88rem; }
.work-body .jade, .projects-body .jade { margin-top: auto; font-weight: 600; font-size: .9rem; }
.note-box { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); color: var(--frost-muted); }
.note-box h2 { color: var(--frost); margin-bottom: 12px; }
.note-box p + p { margin-top: 12px; }
.note-box a { color: var(--jade); }
.banner-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: clamp(24px, 4vw, 44px); border: 1px solid color-mix(in srgb, var(--jade) 30%, var(--hairline)); border-radius: var(--r-2xl); background: radial-gradient(ellipse 60% 80% at 0% 0%, var(--jade-wash), transparent), var(--night-800); }
.banner-card p { margin-top: 10px; max-width: 44rem; }
@media (max-width: 980px) { .work-grid, .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid, .projects-grid { grid-template-columns: 1fr; } .banner-card { flex-direction: column; align-items: flex-start; } }

.service-index { border-top: 1px solid var(--hairline); }
.service-index a { display: grid; grid-template-columns: 60px 1fr 40px; gap: 18px; align-items: start; padding: 26px 6px; border-bottom: 1px solid var(--hairline); transition: background .25s, padding .25s; }
.service-index a:hover { background: var(--jade-wash); padding-left: 16px; }
.si-main b { display: block; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: -.02em; }
.si-main .tags { margin: 10px 0; }
.si-main > .muted { display: block; max-width: 44rem; font-size: .92rem; }
.si-arrow { font-size: 1.4rem; color: var(--jade); transition: transform .25s; }
a:hover .si-arrow { transform: translateX(5px); }
@media (max-width: 560px) { .service-index a { grid-template-columns: 34px 1fr; } .service-index .si-arrow { display: none; } }

.post-list li { border-bottom: 1px solid var(--hairline); }
.post-row { display: grid; grid-template-columns: 170px 1fr 30px; gap: 30px; padding: 30px 0; }
.post-row h2 { font-size: clamp(1.2rem, 2vw, 1.42rem); line-height: 1.3; transition: color .2s; }
.post-row:hover h2 { color: var(--jade); }
.post-row p.muted { margin-top: 10px; font-size: .94rem; max-width: 44rem; }
@media (max-width: 700px) { .post-row { grid-template-columns: 1fr; gap: 8px; } .post-row .si-arrow { display: none; } }

.tech-layout { display: grid; grid-template-columns: 220px 1fr; gap: 50px; align-items: start; }
.tech-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.tech-nav a { padding: 8px 12px; border-radius: var(--r-sm); font-size: .86rem; color: var(--frost-muted); border-left: 2px solid transparent; }
.tech-nav a:hover, .tech-nav a.on { color: var(--jade); border-left-color: var(--jade); background: var(--jade-wash); }
.tech-group { margin-bottom: 50px; }
.tech-group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.tech-group-head h2 { font-size: 1.5rem; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tech-card { display: grid; gap: 6px; height: 100%; padding: 18px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-800); transition: border-color .25s, transform .25s; }
.tech-card:hover { border-color: var(--jade); transform: translateY(-2px); }
.tech-card b { font-family: var(--font-display); }
.tech-card span { color: var(--frost-muted); font-size: .86rem; }
@media (max-width: 900px) {
  .tech-layout { grid-template-columns: 1fr; gap: 20px; }
  .tech-nav { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .tech-nav a { flex: none; border: 1px solid var(--hairline-strong); border-radius: 999px; }
}
@media (max-width: 600px) { .tech-grid { grid-template-columns: 1fr; } }

/* ---------- pricing / misc grids ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px; border: 1px solid var(--hairline); border-radius: var(--r-2xl); background: var(--night-800); }
.price-card.featured { border-color: var(--jade); background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--jade-wash), transparent), var(--night-800); box-shadow: 0 30px 80px -40px var(--jade); }
.price-card h2 { font-size: 1.6rem; }
.price-card .ticks { margin-bottom: 20px; }
.price-card .btn { margin-top: auto; }
.ribbon { position: absolute; top: -12px; left: 30px; padding: 4px 12px; border-radius: 999px; background: var(--jade); color: var(--jade-ink); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-grid.one { grid-template-columns: 1fr; }
.mini-grid.three { grid-template-columns: repeat(3, 1fr); }
.mini-grid.four { grid-template-columns: repeat(4, 1fr); }
.mini-grid > li { padding: 22px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); display: grid; gap: 8px; align-content: start; }
.mini-grid h3 { font-size: 1.1rem; }
.mini-grid p { color: var(--frost-muted); font-size: .9rem; }
.mini-grid .emoji { font-size: 1.6rem; }
@media (max-width: 980px) { .mini-grid.four { grid-template-columns: 1fr 1fr; } .mini-grid.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mini-grid, .mini-grid.four { grid-template-columns: 1fr; } }

.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--jade), var(--hairline)); }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 24px; }
.tl-no { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--jade); background: var(--night-900); color: var(--jade); font-size: .9rem; }
.tl-body { padding: 24px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); display: grid; gap: 10px; }
.tl-body h2 { font-size: 1.5rem; }
.tl-body > p:not(.mono) { color: var(--frost-muted); }
.tl-body dl { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .tl-item { grid-template-columns: 1fr; } .timeline::before { display: none; } .tl-body dl { grid-template-columns: 1fr; } }

.climb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--hairline); }
.climb li { padding: 28px 22px 10px 0; position: relative; display: grid; gap: 8px; align-content: start; }
.climb li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 12px var(--jade); }
.climb h3 { font-size: 1.25rem; }
@media (max-width: 860px) { .climb { grid-template-columns: 1fr 1fr; row-gap: 20px; } }
@media (max-width: 520px) { .climb { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.form-card { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--hairline); border-radius: var(--r-2xl); background: var(--night-800); }
.form-card > .muted { margin: 10px 0 24px; }
.brief-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: .82rem; font-weight: 600; color: var(--frost); padding: 0; margin-bottom: 7px; }
.field legend { margin-bottom: 10px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--night-900); color: var(--frost); font: 500 .95rem var(--font-sans); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--frost-faint) 50%), linear-gradient(135deg, var(--frost-faint) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--frost-faint); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--jade); box-shadow: 0 0 0 3px var(--jade-wash); }
.is-invalid { border-color: var(--alert) !important; }
.field-error { color: var(--alert); font-size: .8rem; }
.char-count { text-align: right; }
/* attachments */
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 18px; border: 1.5px dashed var(--hairline-strong); border-radius: var(--r-lg); background: var(--night-900); text-align: center; transition: border-color .2s, background .2s; cursor: pointer; }
.dropzone:hover, .dropzone.is-over { border-color: var(--jade); background: var(--jade-wash); }
.dropzone:focus-within { border-color: var(--jade); box-shadow: 0 0 0 3px var(--jade-wash); }
.dropzone.is-invalid { border-style: dashed; }
.dz-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dz-icon { width: 26px; height: 26px; fill: none; stroke: var(--jade); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dz-title { font-size: .9rem; }
.dz-or { color: var(--frost-muted); }
.dz-hint { font-size: .76rem; color: var(--frost-faint); }
.dz-list { display: grid; gap: 8px; }
.dz-item { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--night-900); min-width: 0; }
.dz-thumb { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--jade-wash); display: grid; place-items: center; font: 600 .62rem var(--font-mono); color: var(--jade); text-transform: uppercase; letter-spacing: .04em; }
.dz-meta { flex: 1; min-width: 0; }
.dz-name { display: block; font-size: .86rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-size { display: block; font-size: .74rem; color: var(--frost-faint); }
.dz-remove { flex: none; width: 32px; height: 32px; border-radius: 999px; color: var(--frost-muted); font-size: 1rem; line-height: 1; transition: color .2s, background .2s; }
.dz-remove:hover, .dz-remove:focus-visible { color: var(--alert); background: color-mix(in srgb, var(--alert) 12%, transparent); }
.dz-total { font-size: .74rem; color: var(--frost-faint); text-align: right; }
/* captcha */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-img { flex: none; width: 180px; height: 60px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: #eef3ee; user-select: none; -webkit-user-drag: none; }
.captcha-reload { flex: none; }
.captcha-reload svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.captcha-reload.spin svg { transform: rotate(360deg); }
.captcha-row input { flex: 1 1 140px; width: auto; min-width: 0; font-family: var(--font-mono); letter-spacing: .2em; text-transform: uppercase; }
.captcha-row input::placeholder { letter-spacing: normal; text-transform: none; font-family: var(--font-sans); }
.captcha-hint { margin-top: 0; font-size: .76rem; }
.status-notice { margin-top: 8px; font-weight: 400; font-size: .9rem; }
.mail-hint { margin-top: 0; }
.upload-bar { height: 4px; border-radius: 99px; background: var(--hairline); overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; background: var(--jade); transition: width .2s; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline-strong); font-size: .84rem; cursor: pointer; transition: all .2s; user-select: none; }
.check-chip input:checked + span { background: var(--jade-wash); border-color: var(--jade); color: var(--jade); }
.check-chip input:checked + span::before { content: "✓ "; }
.check-chip input:focus-visible + span { outline: 2px solid var(--jade); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; border-radius: var(--r-md); margin-bottom: 18px; font-weight: 500; }
.form-status.ok { background: var(--jade-wash); border: 1px solid var(--jade); color: var(--jade); }
.form-status.bad { background: color-mix(in srgb, var(--alert) 10%, transparent); border: 1px solid var(--alert); color: var(--alert); }
.form-status a { text-decoration: underline; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.contact-aside { display: grid; gap: 14px; }
.big-link { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.big-link:hover { color: var(--jade); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* shortener */
.shortener-hero .lead { margin-bottom: 8px; }
.forge { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; margin: 40px auto 0; max-width: 980px; }
.forge-form, .forge-qr { padding: 26px; border: 1px solid var(--hairline); border-radius: var(--r-2xl); background: var(--night-800); display: grid; gap: 16px; align-content: start; }
.slug-input { display: flex; align-items: center; border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--night-900); overflow: hidden; }
.slug-input:focus-within { border-color: var(--jade); box-shadow: 0 0 0 3px var(--jade-wash); }
.slug-input span { padding: 0 2px 0 14px; font-size: .8rem; white-space: nowrap; }
.slug-input input { border: 0; box-shadow: none !important; padding-left: 2px; }
.forge-result { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--jade); background: var(--jade-wash); }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.result-row a { color: var(--jade); font-weight: 600; word-break: break-all; }
.qr-box { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-lg); border: 1px dashed var(--hairline-strong); background: var(--night-900); padding: 16px; text-align: center; font-size: .86rem; }
.qr-box.has-qr { background: #fff; border-style: solid; }
.qr-box svg, .qr-box img { width: 100%; height: auto; }
.history { max-width: 980px; margin: 18px auto 0; padding: 20px 24px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); }
.history-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
#history-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 10px 0; border-top: 1px dashed var(--hairline); font-size: .86rem; }
#history-list li:first-child { border-top: 0; }
#history-list a { color: var(--jade); font-family: var(--font-mono); }
#history-list .dest { color: var(--frost-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (max-width: 760px) { .forge { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding-top: 70px; background: var(--night-800); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer-brand p { color: var(--frost-muted); max-width: 26rem; font-size: .92rem; }
.footer-brand em { font-family: var(--font-serif); color: var(--jade); font-size: 1.1em; }
.footer-brand .mono { font-size: .7rem; }
.socials { display: flex; gap: 16px; font-size: .86rem; color: var(--frost-muted); }
.socials a:hover { color: var(--jade); }
.site-footer nav h2 { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--frost-faint); font-weight: 500; margin-bottom: 16px; }
.site-footer nav li + li { margin-top: 10px; }
.site-footer nav a { font-size: .9rem; color: var(--frost-muted); transition: color .2s; }
.site-footer nav a:hover { color: var(--jade); }
.footer-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 19vw, 16rem); letter-spacing: -.05em; line-height: .8; text-align: center; margin-top: 50px; color: transparent; -webkit-text-stroke: 1px var(--hairline-strong); user-select: none; background: linear-gradient(180deg, var(--jade-wash), transparent); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 24px var(--gutter) 30px; border-top: 1px solid var(--hairline); font-size: .8rem; color: var(--frost-faint); }
.footer-bottom a:hover { color: var(--jade); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- floating actions + chat ---------- */
.fab-wa { position: fixed; right: 20px; bottom: 84px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--night-800); border: 1px solid var(--hairline-strong); color: var(--jade); box-shadow: var(--shadow); transition: transform .2s; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 22px; height: 22px; fill: currentColor; }
.fab-ask { position: fixed; right: 20px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--jade); color: var(--jade-ink); font-weight: 700; font-size: .9rem; box-shadow: 0 14px 40px -12px var(--jade); transition: transform .2s; }
.fab-ask:hover { transform: translateY(-2px); }
.chat { position: fixed; right: 20px; bottom: 22px; z-index: 160; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; border: 1px solid var(--hairline-strong); border-radius: var(--r-xl); background: var(--night-800); box-shadow: var(--shadow); overflow: hidden; animation: pop .25s var(--ease); }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); background: radial-gradient(ellipse 80% 120% at 0% 0%, var(--jade-wash), transparent); }
.chat-head strong { display: block; font-family: var(--font-display); }
.chat-head span { display: block; font-size: .7rem; color: var(--frost-faint); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.5; }
.msg.bot { align-self: flex-start; background: var(--night-700); border: 1px solid var(--hairline); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--jade); color: var(--jade-ink); border-bottom-right-radius: 4px; }
.msg .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg .links a { font-size: .76rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--jade); color: var(--jade); }
.msg.typing { color: var(--frost-faint); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-chips button { font-size: .74rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--hairline-strong); color: var(--frost-muted); }
.chat-chips button:hover { border-color: var(--jade); color: var(--jade); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--hairline); }
.chat-form input { min-height: 40px; }
body.chat-open .fab-ask, body.chat-open .fab-wa { display: none; }
@media (max-width: 560px) { .fab-ask { right: 14px; bottom: 14px; } .fab-wa { right: 14px; bottom: 74px; } .chat { right: 16px; bottom: 16px; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--frost); color: var(--night-900); font-weight: 600; font-size: .88rem; transition: all .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.notfound { padding: clamp(80px, 14vw, 160px) 0; }

/* shortener: validity + history status */
.validity { margin-top: 8px; font-size: .84rem; color: var(--jade); }
.validity b { color: var(--frost); }
.qr-caption { color: var(--frost-faint); overflow-wrap: anywhere; }
#history-list .h-main { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-ok, .badge-exp { font-size: .62rem; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.badge-ok { color: var(--jade); border-color: color-mix(in srgb, var(--jade) 40%, transparent); background: var(--jade-wash); }
.badge-exp { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 40%, transparent); }

/* shortener: expiry picker + change-date editor */
.expiry-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.expiry-chips small { opacity: .75; }
.check-chip input[type="radio"]:checked + span::before { content: "● "; }
.expiry-custom { display: grid; gap: 6px; margin-top: 10px; }
.expiry-custom input[type="date"], .expiry-edit input[type="date"] { max-width: 220px; color-scheme: dark; }
[data-theme="light"] .expiry-custom input[type="date"], [data-theme="light"] .expiry-edit input[type="date"] { color-scheme: light; }
.expiry-preview { margin-top: 10px; color: var(--jade); }
.expiry-preview b { color: var(--frost); }
.expiry-preview.bad { color: var(--alert); }
.expiry-edit { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; padding: 12px; border: 1px dashed var(--hairline-strong); border-radius: var(--r-md); }
.expiry-edit .fine { margin: 0; flex-basis: 100%; }
#history-list li { flex-wrap: wrap; }
input[type="date"] { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--night-900); color: var(--frost); font: 500 .92rem var(--font-sans); }
input[type="date"]:focus { outline: 0; border-color: var(--jade); box-shadow: 0 0 0 3px var(--jade-wash); }
.check-chip span { gap: 5px; align-items: baseline; }

/* ===================== About / Why us ===================== */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.about-intro .display { margin-bottom: 26px; }
.glance { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(22px, 3vw, 30px); border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); }
.glance ul { display: grid; gap: 0; }
.glance li { display: grid; gap: 3px; padding: 14px 0 14px 26px; border-top: 1px solid var(--hairline); position: relative; }
.glance li:first-child { border-top: 0; padding-top: 4px; }
.glance li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 10px; height: 10px; border-radius: 3px; background: var(--jade); box-shadow: 0 0 0 4px var(--jade-wash); }
.glance li:first-child::before { top: 11px; }
.glance b { font-weight: 600; color: var(--frost); }
.glance span { font-size: .88rem; color: var(--frost-muted); line-height: 1.55; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { padding: clamp(22px, 3vw, 30px); border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); transition: border-color .3s, transform .35s var(--ease); }
.why-card:hover { border-color: color-mix(in srgb, var(--jade) 45%, var(--hairline)); transform: translateY(-3px); }
.why-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--jade-wash); color: var(--jade); margin-bottom: 18px; }
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.why-card p { color: var(--frost-muted); font-size: .94rem; line-height: 1.65; }

.tone-jade { --tone: var(--jade); } .tone-sky { --tone: var(--acc-sky); } .tone-purple { --tone: var(--acc-purple); } .tone-amber { --tone: var(--acc-amber); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.team-card { border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .35s var(--ease); }
.team-card:hover { border-color: color-mix(in srgb, var(--jade) 40%, var(--hairline)); transform: translateY(-3px); }
.team-photo { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--tone) 35%, transparent), color-mix(in srgb, var(--tone) 8%, var(--night-900)) 70%); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo span { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.6rem); color: var(--tone); letter-spacing: .02em; }
.team-body { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; flex: 1; }
.team-body h3 { font-size: 1.08rem; }
.team-role { color: var(--jade); font-size: .84rem; font-weight: 600; }
.team-bio { color: var(--frost-muted); font-size: .88rem; line-height: 1.6; margin-top: 4px; }
.team-links { display: flex; gap: 14px; margin-top: 8px; font-size: .82rem; }
.team-links a { color: var(--frost-muted); border-bottom: 1px solid var(--hairline-strong); }
.team-links a:hover { color: var(--jade); border-color: var(--jade); }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.quote-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); position: relative; }
.quote-card::before { content: "“"; position: absolute; right: 22px; top: 6px; font-family: var(--font-serif, Georgia, serif); font-size: 5rem; line-height: 1; color: var(--jade-wash); pointer-events: none; }
.quote-stars { color: var(--acc-amber); letter-spacing: 3px; font-size: 1rem; }
.quote-stars span { color: var(--hairline-strong); }
.quote-card blockquote { margin: 0; flex: 1; font-size: 1rem; line-height: 1.7; color: var(--frost); }
.quote-by { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.quote-by > span:last-child { display: grid; gap: 1px; min-width: 0; }
.quote-by small { color: var(--frost-muted); font-size: .8rem; }
.quote-by .quote-service { color: var(--jade); font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; }
.quote-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .86rem; color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent); }
.quote-empty { display: flex; gap: 20px; align-items: flex-start; padding: clamp(24px, 4vw, 36px); border: 1px dashed var(--hairline-strong); border-radius: var(--r-xl); background: var(--night-800); }
.quote-mark { flex: none; font-family: Georgia, serif; font-size: 4rem; line-height: .8; color: var(--jade); }
.quote-empty h3 { font-size: 1.15rem; margin-bottom: 8px; }
.quote-empty p { color: var(--frost-muted); max-width: 46rem; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; font-weight: 400 !important; color: var(--frost-muted) !important; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--jade); }

@media (max-width: 980px) {
  .about-intro { grid-template-columns: 1fr; }
  .glance { position: static; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .why-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-body { padding: 14px 14px 16px; }
  .quote-empty { flex-direction: column; gap: 6px; }
}
@media (max-width: 380px) { .team-grid { grid-template-columns: 1fr; } }

/* ===================== Admin ===================== */
.admin-wrap { padding: clamp(30px, 5vw, 60px) 0 clamp(60px, 8vw, 100px); }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 26px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline-strong); font-size: .86rem; color: var(--frost-muted); }
.admin-tabs a.on, .admin-tabs a:hover { border-color: var(--jade); color: var(--jade); background: var(--jade-wash); }
.admin-tabs .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--jade); color: var(--night-900); font-size: .7rem; font-weight: 700; }
.admin-card { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--night-800); }
.admin-card + .admin-card { margin-top: 16px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-stats a { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-800); }
.admin-stats a:hover { border-color: var(--jade); }
.admin-stats b { font-family: var(--font-display); font-size: 2rem; }
.admin-stats span { color: var(--frost-muted); font-size: .86rem; }
.admin-list { display: grid; gap: 12px; }
.admin-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--night-900); }
.admin-row.is-hidden { opacity: .6; }
.admin-row .grow { flex: 1; min-width: 0; display: grid; gap: 4px; }
.admin-row .grow p { color: var(--frost-muted); font-size: .9rem; overflow-wrap: anywhere; }
.admin-thumb { flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; font-weight: 700; color: var(--tone); background: color-mix(in srgb, var(--tone) 15%, transparent); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin-actions form { display: inline; }
.admin-actions .btn, .admin-actions a.btn { padding: 7px 12px; font-size: .78rem; min-height: 0; }
.btn-danger { border: 1px solid color-mix(in srgb, var(--alert) 50%, transparent); color: var(--alert); background: transparent; }
.btn-danger:hover { background: color-mix(in srgb, var(--alert) 12%, transparent); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .68rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--hairline-strong); color: var(--frost-muted); }
.badge.jade { border-color: var(--jade); color: var(--jade); }
.badge.amber { border-color: var(--acc-amber); color: var(--acc-amber); }
.admin-flash { margin-bottom: 18px; }
.admin-login { max-width: 420px; margin: clamp(40px, 8vw, 90px) auto; }
.admin-photo-current { display: flex; align-items: center; gap: 14px; }
.admin-empty { text-align: center; padding: 40px 20px; color: var(--frost-muted); }
@media (max-width: 640px) { .admin-row { flex-wrap: wrap; } .admin-actions { width: 100%; justify-content: flex-start; } }
.contact-actions { display: flex; gap: 8px; margin: 8px 0 12px; }
.contact-actions a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hairline-strong); font-size: .8rem; color: var(--frost-muted); }
.contact-actions a:hover { border-color: var(--jade); color: var(--jade); }
.demo-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 7px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--acc-amber) 55%, transparent); color: var(--acc-amber); font: 600 .6rem/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.quote-stars .demo-tag { color: var(--acc-amber); letter-spacing: .1em; }

/* team: auto-scrolling row (right → left), pauses on hover / keyboard focus */
.team-marquee { margin-top: 4px; padding: 10px 0 18px; }
.team-marquee .marquee-track { animation-duration: var(--dur, 45s); align-items: stretch; }
.team-marquee:focus-within .marquee-track { animation-play-state: paused; }
.team-marquee .team-card { flex: none; width: 270px; }
@media (max-width: 620px) {
  .team-marquee .team-card { width: 220px; }
  .team-marquee .team-body { padding: 14px 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  /* no movement: a normal swipeable row, without the duplicate cards */
  .team-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
  .team-marquee .team-card { scroll-snap-align: start; }
  .team-marquee .team-card[aria-hidden="true"] { display: none; }
}

/* testimonials: auto-scrolling row (right → left), pauses on hover / keyboard focus */
.quote-marquee { margin-top: 4px; padding: 10px 0 18px; }
.quote-marquee .marquee-track { animation-duration: var(--dur, 60s); align-items: stretch; }
.quote-marquee:focus-within .marquee-track { animation-play-state: paused; }
.quote-marquee .quote-card { flex: none; width: 380px; }
@media (max-width: 620px) { .quote-marquee .quote-card { width: 290px; } }
@media (prefers-reduced-motion: reduce) {
  .quote-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
  .quote-marquee .quote-card { scroll-snap-align: start; }
  .quote-marquee .quote-card[aria-hidden="true"] { display: none; }
}
.big-link.phone-link { font-family: var(--font-sans); font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }

/* back-to-top button (above the WhatsApp button); the ring shows how far down the page you are */
.to-top { position: fixed; right: 20px; bottom: 142px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--frost); cursor: pointer; box-shadow: var(--shadow);
  background: radial-gradient(closest-side, var(--night-800) 86%, transparent 88%), conic-gradient(var(--jade) calc(var(--p, 0) * 360deg), var(--hairline-strong) 0);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s var(--ease), visibility .25s, color .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--jade); transform: translateY(-2px); }
.to-top:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none; } }
