/* Livid LLC — site styles
   Palette: warm paper, ink, one electric "livid" blue accent.
   Type: Fraunces (display) / Instrument Sans (body) / JetBrains Mono (labels). */

:root {
  --paper: #F3F0E8;
  --paper-2: #EAE6DB;
  --ink: #0E1116;
  --ink-2: #353A42;
  --mute: #6F747C;
  --line: #D6D1C4;
  --livid: #2A4BFF;
  --livid-ink: #1B34C8;
  --livid-soft: #DCE2FF;

  --bg: var(--paper);
  --fg: var(--ink);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--livid);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--ink-2); max-width: 36em; }
.mute { color: var(--mute); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Mono eyebrow labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--livid); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; }
.brand .wordmark { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.brand .wordmark small { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--mute); margin-left: 8px; vertical-align: middle; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.95rem; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--livid); transition: right .3s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--livid); border-color: var(--livid); color: #fff; transform: translateY(-1px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .btn:hover { background: var(--livid); color: #fff; border-color: var(--livid); }
.dark .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(243,240,232,.3); }
.dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.1fr .9fr; align-items: end; } }
.section-head p { margin: 0; }
.dark { background: var(--ink); color: var(--paper); }
.dark .mute, .dark .lede { color: #B5B9C0; }
.dark .eyebrow { color: #9DA2AB; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dark .rule { border-color: rgba(243,240,232,.14); }
.tint { background: var(--paper-2); }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) 0; position: relative; }
.hero-grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.hero h1 { max-width: 11em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--livid); }
.hero .lede { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-aside { font-family: var(--font-mono); font-size: .8rem; color: var(--mute); line-height: 1.7; border-left: 2px solid var(--livid); padding-left: 18px; max-width: 34ch; }
.hero-aside b { color: var(--ink); font-weight: 500; }
.hero-figure { margin: clamp(40px, 6vw, 80px) 0 0; position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.hero-figure figcaption {
  position: absolute; left: 20px; bottom: 20px; z-index: 1;
  background: var(--paper); padding: 10px 14px; border-radius: 6px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.hero-figure::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(180deg, transparent 55%, rgba(14,17,22,.35));
  pointer-events: none;
}

/* Entrance sequence */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.d1 { animation-delay: .1s } .d2 { animation-delay: .2s } .d3 { animation-delay: .3s } .d4 { animation-delay: .45s }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Service rows (cardless) ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
@media (min-width: 820px) { .svc-row { grid-template-columns: 70px 1.1fr 1.4fr auto; gap: 32px; align-items: start; } }
.svc-row:hover { padding-left: 6px; }
.svc-num { font-family: var(--font-mono); font-size: .8rem; color: var(--mute); padding-top: 8px; }
.svc-row h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.svc-row p { margin: 0; color: var(--ink-2); }
.svc-row .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .05em; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }
.svc-row .go { font-size: 1.4rem; color: var(--mute); transition: transform .3s var(--ease), color .3s; padding-top: 6px; }
.svc-row:hover .go { transform: translateX(6px); color: var(--livid); }

/* ---------- Work grid ---------- */
.work-grid { display: grid; gap: 40px 32px; }
@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-grid .span { grid-column: 1 / -1; }
.work-card { display: block; }
.work-card .media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--paper-2); }
.span .media { aspect-ratio: 21 / 9; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85); }
.work-card:hover img { transform: scale(1.04); filter: saturate(1); }
.work-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.work-card h3 { font-size: 1.35rem; }
.work-card .meta span { font-family: var(--font-mono); font-size: .72rem; color: var(--mute); white-space: nowrap; }
.work-card p { color: var(--ink-2); margin: 8px 0 0; max-width: 46ch; }
.dark .work-card p { color: #B5B9C0; }

/* ---------- Stats / proof line ---------- */
.proof { display: grid; gap: 28px; }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof div { border-top: 1px solid var(--line); padding-top: 18px; }
.dark .proof div { border-color: rgba(243,240,232,.14); }
.proof strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.03em; display: block; line-height: 1; }
.proof span { font-size: .9rem; color: var(--mute); display: block; margin-top: 8px; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 32px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step .n { font-family: var(--font-mono); font-size: .75rem; color: var(--livid); margin-bottom: 14px; display: block; }
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* ---------- Two-col feature ---------- */
.feature { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 72px; } .feature.flip > :first-child { order: 2; } }
.feature img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; }
.feature h2 { margin-bottom: 14px; }
.feature ul { padding-left: 1.1em; color: var(--ink-2); }
.feature li { margin: 6px 0; }

/* ---------- Quote ---------- */
.quote { max-width: 46em; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.25; letter-spacing: -.01em; font-weight: 400; }
.quote blockquote::before { content: "\201C"; color: var(--livid); }
.quote cite { display: block; font-style: normal; margin-top: 24px; font-family: var(--font-mono); font-size: .78rem; color: var(--mute); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--livid); color: #fff; }
.cta-band h2 { max-width: 14em; }
.cta-band .lede { color: rgba(255,255,255,.82); }
.cta-band .btn { background: #fff; color: var(--livid-ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 32px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9DA2AB; font-weight: 400; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a:hover { color: var(--livid-soft); }
.site-footer .brand .wordmark { color: var(--paper); }
.site-footer p { color: #B5B9C0; max-width: 34ch; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(243,240,232,.14); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--font-mono); font-size: .72rem; color: #9DA2AB; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); }
.page-head h1 { max-width: 12em; }
.page-head .lede { margin-top: 24px; }

/* ---------- Service detail blocks ---------- */
.detail { display: grid; gap: 28px; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .detail { grid-template-columns: 90px 1fr 1fr; gap: 48px; } }
.detail .n { font-family: var(--font-mono); font-size: .8rem; color: var(--livid); }
.detail h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.detail .cols { color: var(--ink-2); }
.detail ul { padding-left: 1.1em; margin: 0 0 20px; }
.detail li { margin: 6px 0; }
.detail img { border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; width: 100%; margin-top: 18px; }

/* Values */
.values { display: grid; gap: 28px; }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values div { border-top: 1px solid rgba(243,240,232,.14); padding-top: 18px; }
.values h3 { font-size: 1.3rem; margin-bottom: 8px; }
.values p { color: #B5B9C0; margin: 0; font-size: .97rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px; } }
.contact-info dl { margin: 0; }
.contact-info dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-top: 24px; }
.contact-info dd { margin: 6px 0 0; font-size: 1.1rem; }
.contact-info dd a:hover { color: var(--livid); }
form .row { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 640px) { form .row.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0; border-radius: 0; transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--livid); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--mute); margin-top: 14px; }

/* Budget radio chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: .88rem; position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: all .2s; color: var(--ink-2); }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--livid); outline-offset: 2px; }

/* ---------- Brand page ---------- */
.swatches { display: grid; gap: 16px; }
@media (min-width: 700px) { .swatches { grid-template-columns: repeat(5, 1fr); } }
.swatch { border-radius: var(--radius); aspect-ratio: 1; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; font-family: var(--font-mono); font-size: .72rem; border: 1px solid var(--line); line-height: 1.5; }
.logo-stage { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 6vw, 72px); display: grid; place-items: center; min-height: 240px; }
.logo-stage.dark-stage { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.logo-stage.livid-stage { background: var(--livid); color: #fff; border-color: var(--livid); }
.logo-lockup { display: inline-flex; align-items: center; gap: 18px; }
.logo-lockup img { width: 64px; height: 64px; }
.logo-lockup .wm { font-family: var(--font-display); font-size: 3rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.type-specimen .label { font-family: var(--font-mono); font-size: .72rem; color: var(--mute); margin: 28px 0 10px; display: block; }
.brand-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .brand-grid { grid-template-columns: 1fr 1fr; } }
.stage-caption { font-family: var(--font-mono); font-size: .72rem; color: var(--mute); margin-top: 10px; }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 20px; }
.grid-2 { display: grid; gap: 32px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.small { font-size: .9rem; }

/* ---------- Mobile nav ---------- */
@media (max-width: 840px) {
  .nav-links {
    display: none; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 76px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Capabilities (About) ---------- */
.caps { display: grid; gap: 32px; }
@media (min-width: 900px) { .caps { grid-template-columns: repeat(2, 1fr); gap: 40px 64px; } }
.cap { border-top: 1px solid var(--line); padding-top: 20px; }
.cap h3 { font-size: 1.3rem; margin-bottom: 14px; }
.cap .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cap .tag { color: var(--ink-2); border-color: var(--line); font-size: .74rem; padding: 6px 11px; }

/* ---------- Founder (About) ---------- */
.founder img { aspect-ratio: 5 / 6; object-position: center top; }
.founder p { color: var(--ink-2); }
.founder-sig { font-family: var(--font-mono); font-size: .8rem; color: var(--mute) !important; margin-top: 28px; line-height: 1.8; }
.founder-sig a:hover { color: var(--livid); }

/* =====================================================================
   Motion & texture layer
   ===================================================================== */

/* Cross-document page transitions (Chromium); harmless elsewhere */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease-out both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Film grain */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: 9999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-2%)} 100%{transform:translate(3%,1%)} }

/* Header hides on scroll down */
.site-header { transition: border-color .3s, transform .45s var(--ease); }
.site-header.hide { transform: translateY(-100%); }

/* Hero: word lift */
.hero h1.split { opacity: 1; animation: none; margin-bottom: .12em; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(112%); animation: lift 1s var(--ease) forwards; animation-delay: calc(.08s + var(--i) * .07s); }
@keyframes lift { to { transform: none; } }

/* Hero image: Ken Burns + parallax */
.hero-figure { overflow: hidden; border-radius: var(--radius); }
.hero-figure img { transform: scale(1.12); animation: kb 2.4s var(--ease) forwards; will-change: transform; }
@keyframes kb { to { transform: scale(1); } }
.hero-figure.parallax img { animation: none; transform: translateY(var(--py, 0)) scale(1.08); }

/* Industries ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 0 28px; position: relative; white-space: nowrap; }
.ticker-track span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--livid); transform: translateY(-50%); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Buttons: magnetic + press */
.btn { will-change: transform; }
.btn:active { transform: scale(.96) !important; transition-duration: .08s; }
.btn.magnet { transition: transform .18s var(--ease), background .25s, color .25s, border-color .25s; }

/* Service row cursor preview */
.svc-preview { position: fixed; left: 0; top: 0; width: 260px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; pointer-events: none; z-index: 60; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg); transition: opacity .35s var(--ease), transform .45s var(--ease); box-shadow: 0 24px 48px -16px rgba(14,17,22,.45); }
.svc-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
.svc-row { cursor: pointer; }

/* Staggered reveal for siblings */
.svc-row.reveal, .step.reveal, .cap.reveal, .values .reveal, .work-card.reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* Image unmask */
.mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.mask.in { clip-path: inset(0 0 0 0); }
.mask > img { transform: scale(1.1); transition: transform 1.4s var(--ease); }
.mask.in > img { transform: scale(1); }
.work-card:hover .mask.in > img { transform: scale(1.04); }

/* Quote: words fade in sequence */
.quote blockquote .qw { opacity: .18; transition: opacity .5s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.quote.in blockquote .qw { opacity: 1; }

/* Count-up numbers */
.proof strong { font-variant-numeric: tabular-nums; }

/* Giant footer wordmark */
.footer-mark { font-family: var(--font-display); font-weight: 600; letter-spacing: -.05em; line-height: .78; font-size: clamp(5.5rem, 24vw, 22rem); color: transparent; -webkit-text-stroke: 1px rgba(243,240,232,.22); margin: 56px 0 -.06em; user-select: none; transition: color .6s var(--ease); overflow: hidden; }
.site-footer:hover .footer-mark { color: rgba(243,240,232,.06); }

/* Underlines that draw in */
.contact-info dd a { background-image: linear-gradient(var(--livid), var(--livid)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease); }
.contact-info dd a:hover { background-size: 100% 1px; }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .hero h1 .w > span { transform: none; animation: none; }
  .hero-figure img, .hero-figure.parallax img { animation: none; transform: none; }
  .ticker-track { animation: none; }
  .mask, .mask > img { clip-path: none; transform: none; transition: none; }
  .quote blockquote .qw { opacity: 1; transition: none; }
  .site-header.hide { transform: none; }
  .svc-preview { display: none; }
  .svc-row.reveal, .step.reveal, .cap.reveal, .values .reveal, .work-card.reveal { transition-delay: 0s; }
}
