/* ==========================================================================
   SEOdude: site styles
   One stylesheet, no framework. Sections:
   1 fonts & tokens  2 base  3 layout  4 header/nav  5 buttons & bits
   6 hero  7 marquee  8 statement  9 services  10 illustrations
   11 work  12 process  13 standards  14 faq  15 cta  16 footer
   17 inner pages  18 tabs  19 reveal & motion  20 responsive
   ========================================================================== */

/* 1 ---------------------------------------------------------------------- */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-style: normal; font-display: swap; }

:root {
  --paper: #f3f2ee;
  --paper-2: #eae8e1;
  --card: #fbfaf7;
  --ink: #111110;
  --ink-2: #3a3935;
  --mute: #6b6a64;
  --line: #d9d7cf;
  --accent: #2f3bff;
  --accent-soft: #e3e5ff;
  --lime: #c8f53c;
  --dark: #0e0e0d;
  --dark-2: #171716;
  --dark-line: #2a2a27;
  --dark-mute: #8f8e87;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  --max: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --sec: clamp(88px, 12vw, 168px);
  --r: 16px;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --header-h: 72px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* 2 ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); interpolate-size: allow-keywords; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll progress (scroll-driven where supported) */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* 3 ---------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); position: relative; }
.section.tight { padding-block: calc(var(--sec) * .6); }
.dark { background: var(--dark); color: #edece6; }
.dark ::selection { background: var(--lime); color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.dark .eyebrow { color: var(--dark-mute); }
.eyebrow .idx { color: var(--accent); }
.dark .eyebrow .idx { color: var(--lime); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.no-rule::before { display: none; }

.h-xl { font-size: clamp(3rem, 9vw, 8.6rem); letter-spacing: -0.055em; line-height: .92; }
.h-lg { font-size: clamp(2.4rem, 6vw, 5.4rem); letter-spacing: -0.05em; line-height: .96; }
.h-md { font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -0.04em; line-height: 1.02; }
.h-sm { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.025em; line-height: 1.15; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.dark .accent { color: var(--lime); }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; letter-spacing: -0.012em; }
.dark .lede { color: #bdbcb4; }
.muted { color: var(--mute); }
.mono { font-family: var(--mono); font-size: .8em; letter-spacing: .02em; }

.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(48px, 7vw, 96px); align-items: end; }
.sec-head > :first-child { grid-column: 1 / span 7; }
.sec-head > :last-child:not(:first-child) { grid-column: 9 / span 4; margin: 0; color: var(--mute); }
.dark .sec-head > :last-child:not(:first-child) { color: var(--dark-mute); }

/* 4 ---------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: transform .5s var(--ease), background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.header.hide { transform: translateY(-100%); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.04em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark .bars rect { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.logo:hover .logo-mark .bars rect { animation: bar-rise .9s var(--ease); }
.logo:hover .logo-mark .bars rect:nth-child(2) { animation-delay: .07s; }
.logo:hover .logo-mark .bars rect:nth-child(3) { animation-delay: .14s; }
@keyframes bar-rise { 0% { transform: scaleY(1); } 35% { transform: scaleY(.2); } 100% { transform: scaleY(1); } }
.logo .tld { color: var(--mute); font-weight: 400; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 8px 14px; font-size: 15px; border-radius: 99px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.status {
  display: inline-flex; align-items: center; gap: 9px; margin-left: 12px; padding: 8px 14px 8px 12px;
  border: 1px solid var(--line); border-radius: 99px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #f5a623; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--paper); padding: calc(var(--header-h) + 32px) var(--gut) 32px;
  display: flex; flex-direction: column; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden;
}
.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer a { font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1.1; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline;
  transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.drawer a small { font: 500 12px var(--mono); color: var(--mute); letter-spacing: .1em; }
.menu-open .drawer a { transform: none; opacity: 1; }
.menu-open .drawer a:nth-child(2) { transition-delay: .06s; }
.menu-open .drawer a:nth-child(3) { transition-delay: .12s; }
.menu-open .drawer a:nth-child(4) { transition-delay: .18s; }
.drawer .status { margin: auto 0 0; align-self: flex-start; }

/* 5 ---------------------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 24px;
  border-radius: 99px; background: var(--bg); color: var(--fg); font-weight: 500; font-size: 16px; letter-spacing: -0.01em;
  overflow: hidden; isolation: isolate; transition: transform .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: none; }
.btn .arr { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); transition: transform .5s var(--ease); flex: none; }
.btn:hover .arr { transform: rotate(-45deg); }
.btn .arr svg { width: 16px; height: 16px; }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); padding-right: 24px; }
.btn.ghost::before { background: var(--ink); }
.btn.ghost:hover { color: var(--paper); }
.dark .btn { --bg: var(--paper); --fg: var(--ink); }
.dark .btn::before { background: var(--lime); }
.dark .btn.ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1px var(--dark-line); }
.dark .btn.ghost::before { background: var(--paper); }
.dark .btn.ghost:hover { color: var(--ink); }

.link { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform-origin: 100% 50%; transform: scaleX(1); transition: transform .5s var(--ease); }
.link:hover::after { animation: line .8s var(--ease); }
@keyframes line { 0% { transform: scaleX(1); transform-origin: 100% 50%; } 45% { transform: scaleX(0); transform-origin: 100% 50%; } 46% { transform-origin: 0 50%; } 100% { transform: scaleX(1); transform-origin: 0 50%; } }
.link svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.link:hover svg { transform: translate(2px, -2px); }

.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.dark .tag { border-color: var(--dark-line); color: #c9c8c0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* spotlight surface: --mx/--my are set by JS on pointer move */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.spot:hover::after { opacity: 1; }
.dark .spot::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 245, 60, .09), transparent 60%); }

/* 6 ---------------------------------------------------------------------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .grid {
  position: absolute; inset: -1px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero-bg .glow {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--accent) 1px, transparent 1px), linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px; opacity: .55;
  -webkit-mask-image: radial-gradient(220px circle at var(--hx, -500px) var(--hy, -500px), #000, transparent 70%);
  mask-image: radial-gradient(220px circle at var(--hx, -500px) var(--hy, -500px), #000, transparent 70%);
}
.hero-bg .orb { position: absolute; width: 46vw; aspect-ratio: 1; right: -8vw; top: -10vw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%); filter: blur(20px); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-6vw, 8vw) scale(1.1); } }

.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.hero-copy { grid-column: 1 / span 7; grid-row: 1; }
.hero h1.h-xl { font-size: clamp(3rem, 5.4vw, 5.9rem); }

/* right-hand stage: a browser showing a coded sample site, a search card
   and the live speed card (.vitals) layered over each other */
.hero-stage { grid-column: 8 / span 5; grid-row: 1; position: relative; height: clamp(440px, 38vw, 540px); }
.stage-browser { position: absolute; top: 0; right: 0; width: 94%; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 50px 90px -40px rgba(17, 17, 16, .35); }
.stage-browser .chrome { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.stage-browser .chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.stage-url { margin-left: 12px; height: 22px; padding: 0 12px; border-radius: 6px; background: var(--paper-2); font: 500 11px/22px var(--mono); color: var(--ink-2); min-width: 180px; }
.stage-shots { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); }
/* coded sample site (not a client page), three variants cross-fading */
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4.5%; padding: 3.5% 5% 5%; background: #fff; opacity: 0; transition: opacity .9s var(--ease); font-family: var(--sans); color: #15151a; }
.mock.on { opacity: 1; }
.mock .m-nav { display: flex; align-items: center; gap: 4%; font-size: 11px; }
.mock .m-nav b { display: flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: -0.02em; margin-right: auto; white-space: nowrap; }
.mock .m-nav b i { width: 12px; height: 12px; border-radius: 4px; background: var(--a); }
.mock .m-nav > span { width: 9%; height: 5px; border-radius: 3px; background: #e6e6ea; }
.mock em { font-style: normal; font-weight: 600; font-size: 10px; color: #fff; background: var(--a); padding: 6px 11px; border-radius: 99px; white-space: nowrap; }
.mock .m-hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 5%; align-items: center; }
.mock .m-copy { display: flex; flex-direction: column; gap: 9px; }
.mock .m-copy small { font: 600 8.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--a); }
.mock .m-copy strong { font-size: clamp(15px, 1.55vw, 23px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.mock .m-copy > span { height: 5px; border-radius: 3px; background: #e6e6ea; width: 92%; }
.mock .m-copy > span + span { width: 70%; }
.mock .m-btns { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.mock .m-btns u { text-decoration: none; font-size: 10px; font-weight: 600; padding: 5px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px #d9d9df; }
.mock .m-pic { position: relative; height: 100%; min-height: 110px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, var(--sky), #fff 140%); }
.mock .m-pic .sun { position: absolute; width: 26%; aspect-ratio: 1; right: 16%; top: 14%; border-radius: 50%; background: var(--a); opacity: .22; }
.mock .m-pic .hill { position: absolute; border-radius: 50%; background: var(--a); }
.mock .m-pic .h1 { width: 120%; height: 70%; left: -40%; bottom: -42%; opacity: .45; }
.mock .m-pic .h2 { width: 110%; height: 60%; right: -45%; bottom: -38%; opacity: .75; }
.mock .m-rate { position: absolute; left: 8px; bottom: 8px; background: #fff; border-radius: 99px; padding: 4px 9px; font-size: 9px; color: #f2a516; box-shadow: 0 6px 14px -6px rgba(0,0,0,.3); }
.mock .m-rate b { color: #15151a; font-weight: 600; }
.mock .m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.mock .m-cards div { border: 1px solid #ececf0; border-radius: 8px; padding: 9px; display: grid; gap: 6px; }
.mock .m-cards i { width: 14px; height: 14px; border-radius: 5px; background: var(--sky); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--a) 35%, transparent); }
.mock .m-cards b { font-size: 10px; font-weight: 600; letter-spacing: -0.01em; }
.mock .m-cards span { height: 4px; border-radius: 2px; background: #ececf0; width: 80%; }
/* each piece builds in when its variant becomes active */
.mock .m-nav, .mock .m-copy > *, .mock .m-pic, .mock .m-cards > div { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.mock.on .m-nav, .mock.on .m-copy > *, .mock.on .m-pic, .mock.on .m-cards > div { opacity: 1; transform: none; }
.mock.on .m-copy > :nth-child(2) { transition-delay: .1s; }
.mock.on .m-copy > :nth-child(3) { transition-delay: .18s; }
.mock.on .m-copy > :nth-child(4) { transition-delay: .24s; }
.mock.on .m-copy > :nth-child(5) { transition-delay: .3s; }
.mock.on .m-pic { transition-delay: .2s; }
.mock.on .m-cards > :nth-child(1) { transition-delay: .35s; }
.mock.on .m-cards > :nth-child(2) { transition-delay: .42s; }
.mock.on .m-cards > :nth-child(3) { transition-delay: .49s; }
.stage-serp { position: absolute; left: 0; bottom: 2%; width: 290px; height: 236px; z-index: 2; animation: float 7s ease-in-out infinite; }
.stage-serp .art-serp { inset: 0; border-bottom: 1px solid var(--line); border-radius: 12px; box-shadow: 0 30px 60px -28px rgba(17, 17, 16, .35); }
.hero .vitals { grid-column: 8 / span 5; grid-row: 1; justify-self: end; align-self: end; width: 300px; position: relative; z-index: 3; margin-bottom: -36px; margin-right: -12px; animation: float 8s ease-in-out -3s infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.hero h1 { margin-bottom: 36px; }
.hero h1 .serif { color: var(--accent); padding-right: .06em; }
.rotator { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-2); }
.rotator .lbl { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.rot { position: relative; display: inline-grid; height: 1.5em; overflow: hidden; font-weight: 500; color: var(--ink); }
.rot > span { grid-area: 1 / 1; transform: translateY(110%); transition: transform .8s var(--ease); white-space: nowrap; }
.rot > span.on { transform: none; }
.rot > span.off { transform: translateY(-110%); }
.rot-box { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); transition: width .6s var(--ease); }
.hero .lede { margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.vitals { background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; font-family: var(--mono); font-size: 12.5px; box-shadow: 0 30px 60px -30px rgba(17, 17, 16, .18); }
.vitals-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px dashed var(--line); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); font-size: 11px; }
.vitals-head b { color: var(--ink); font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.vitals-head .pulse { background: #1fbf62; }
.vrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.vrow:last-of-type { border: 0; }
.vrow dt { color: var(--ink-2); }
.vrow dd { margin: 0; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.vrow .bar { margin: 0; grid-column: 1 / -1; height: 3px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.vrow .bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width 1.4s var(--ease); }
.vrow.good .bar i { background: #1fbf62; }
.vitals-note { margin: 12px 0 0; color: var(--mute); font-size: 11px; line-height: 1.5; letter-spacing: .01em; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 1; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--ink); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

/* 7 ---------------------------------------------------------------------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; display: flex; user-select: none; }
.marquee-track { display: flex; flex: none; gap: 48px; padding-right: 48px; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.03em; white-space: nowrap; color: var(--ink-2); }
.marquee span::after { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* 8 ---------------------------------------------------------------------- */
.statement { font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -0.045em; font-weight: 500; max-width: 22em; margin: 0; }
/* unlit words stay at 3:1 contrast so the paragraph is readable before it lights up */
.statement .wd { color: #8d8c85; transition: color .3s linear; }
.statement .wd.lit { color: var(--ink); }
.statement .serif { color: var(--accent); }
.statement-foot { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* 9 ---------------------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .3s;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(17, 17, 16, .3); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.svc-art { position: relative; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.svc-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.svc-num { font: 500 12px var(--mono); color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; }
.svc h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); margin-bottom: 14px; }
.svc p { color: var(--ink-2); font-size: 16px; }
.svc ul { margin: 6px 0 28px; display: grid; gap: 9px; font-size: 15px; color: var(--ink-2); }
.svc li { display: flex; gap: 10px; align-items: baseline; }
.svc li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); transform: translateY(-2px); }
.svc .link { margin-top: auto; align-self: flex-start; }

/* 10 --------------------------------------------------------------------- */
/* a) wireframe that builds itself */
.art-wire { position: absolute; inset: 9% 9% 0; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.art-wire .bar { height: 22px; border-bottom: 1px solid var(--line); display: flex; gap: 5px; align-items: center; padding-left: 9px; }
.art-wire .bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.art-wire .blk { position: absolute; background: var(--paper-2); border-radius: 4px; transform-origin: 0 50%; animation: wire 6s var(--ease) infinite; }
.art-wire .b1 { left: 8%; top: 52px; width: 56%; height: 14px; background: var(--ink); animation-delay: .1s; }
.art-wire .b2 { left: 8%; top: 74px; width: 38%; height: 14px; background: var(--ink); animation-delay: .25s; }
.art-wire .b3 { left: 8%; top: 102px; width: 44%; height: 6px; animation-delay: .4s; }
.art-wire .b4 { left: 8%; top: 113px; width: 36%; height: 6px; animation-delay: .5s; }
.art-wire .b5 { left: 8%; top: 134px; width: 22%; height: 18px; border-radius: 9px; background: var(--accent); animation-delay: .7s; }
.art-wire .b6 { right: 8%; top: 52px; width: 26%; height: 100px; animation-delay: .9s; }
.art-wire .b7 { left: 8%; top: 174px; width: 26%; height: 60px; animation-delay: 1.1s; }
.art-wire .b8 { left: 37%; top: 174px; width: 26%; height: 60px; animation-delay: 1.2s; }
.art-wire .b9 { right: 8%; top: 174px; width: 26%; height: 60px; animation-delay: 1.3s; }
@keyframes wire { 0% { transform: scaleX(0); opacity: 0; } 10% { transform: scaleX(1); opacity: 1; } 82% { transform: scaleX(1); opacity: 1; } 92%, 100% { transform: scaleX(1); opacity: 0; } }
.art-wire .cursor { position: absolute; width: 14px; height: 14px; left: 30%; top: 140px; animation: cur 6s var(--ease-io) infinite; }
@keyframes cur { 0% { transform: translate(120px, 80px); } 20% { transform: translate(0, 0); } 26% { transform: translate(0,0) scale(.8); } 30% { transform: translate(0,0) scale(1); } 60% { transform: translate(150px, -60px); } 100% { transform: translate(120px, 80px); } }

/* b) search results where "you" climb to first place */
.art-serp { position: absolute; inset: 9% 9% 0; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 14px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.art-serp .q { height: 26px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 8px; padding: 0 10px; font: 500 10.5px var(--mono); color: var(--ink-2); margin-bottom: 10px; }
.art-serp .q::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--mute); border-radius: 50%; }
.art-serp .rows { position: relative; height: 170px; }
.art-serp .row { position: absolute; left: 0; right: 0; height: 36px; padding: 6px 8px; border-radius: 6px; display: grid; gap: 5px; align-content: center; transition: none; }
.art-serp .row i { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); }
.art-serp .row i:first-child { width: 55%; height: 7px; background: #c9c7bf; }
.art-serp .row i:last-child { width: 80%; }
.art-serp .row.you { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); z-index: 1; }
.art-serp .row.you i:first-child { background: var(--accent); }
.art-serp .row.you i:last-child { background: color-mix(in srgb, var(--accent) 30%, #fff); }
.art-serp .rank { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 10px var(--mono); color: var(--accent); }
/* rows sit on 42px steps; "you" climbs 3 -> 0, the others step down as it passes */
.art-serp .r0 { animation: s0 7s var(--ease) infinite; }
.art-serp .r1 { animation: s1 7s var(--ease) infinite; }
.art-serp .r2 { animation: s2 7s var(--ease) infinite; }
.art-serp .you { animation: sy 7s var(--ease) infinite; }
@keyframes sy { 0%, 12% { transform: translateY(126px); } 24%, 36% { transform: translateY(84px); } 48%, 60% { transform: translateY(42px); } 72%, 92% { transform: translateY(0); } 100% { transform: translateY(126px); } }
@keyframes s2 { 0%, 12% { transform: translateY(84px); } 24%, 92% { transform: translateY(126px); } 100% { transform: translateY(84px); } }
@keyframes s1 { 0%, 36% { transform: translateY(42px); } 48%, 92% { transform: translateY(84px); } 100% { transform: translateY(42px); } }
@keyframes s0 { 0%, 60% { transform: translateY(0); } 72%, 92% { transform: translateY(42px); } 100% { transform: translateY(0); } }

/* c) maintenance terminal */
.art-term { position: absolute; inset: 9% 9% 0; background: var(--dark); color: #d6d5cd; border-radius: 10px 10px 0 0; padding: 14px 16px; font: 11px/1.75 var(--mono); box-shadow: 0 20px 40px -24px rgba(0,0,0,.5); overflow: hidden; }
.art-term .ln { white-space: nowrap; opacity: 0; animation: ln 8s steps(1) infinite; }
.art-term .ln b { font-weight: 500; color: var(--lime); }
.art-term .ln em { font-style: normal; color: var(--dark-mute); }
.art-term .ln:nth-child(1) { animation-delay: 0s; }
.art-term .ln:nth-child(2) { animation-name: ln2; }
.art-term .ln:nth-child(3) { animation-name: ln3; }
.art-term .ln:nth-child(4) { animation-name: ln4; }
.art-term .ln:nth-child(5) { animation-name: ln5; }
.art-term .ln:nth-child(6) { animation-name: ln6; }
@keyframes ln { 0%, 90% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes ln2 { 0%, 9% { opacity: 0; } 10%, 90% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes ln3 { 0%, 19% { opacity: 0; } 20%, 90% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes ln4 { 0%, 29% { opacity: 0; } 30%, 90% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes ln5 { 0%, 39% { opacity: 0; } 40%, 90% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes ln6 { 0%, 49% { opacity: 0; } 50%, 90% { opacity: 1; } 91%, 100% { opacity: 0; } }
.art-term .up { display: flex; gap: 3px; align-items: flex-end; height: 34px; margin-top: 10px; }
.art-term .up i { flex: 1; background: #2d6b3c; border-radius: 1px; height: 100%; transform-origin: bottom; animation: upb 8s var(--ease) infinite; }
.art-term .up i:nth-child(odd) { background: #34804a; }
@keyframes upb { 0%, 55% { transform: scaleY(0); } 70%, 90% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

/* 11 --------------------------------------------------------------------- */
.work { padding-bottom: calc(var(--sec) * .6); }
.stack { display: grid; gap: 24px; }
.proj {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 3.4vw, 44px);
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: calc(var(--r) + 6px); min-height: min(640px, 80vh);
  transform-origin: 50% 0;
}
@supports (animation-timeline: view()) {
  .proj:not(:last-child) { animation: shrink linear both; animation-timeline: view(); animation-range: exit-crossing 0% exit-crossing 100%; }
  @keyframes shrink { to { transform: scale(.92); filter: brightness(.55); } }
}
.proj-info { display: flex; flex-direction: column; }
.proj-top { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dark-mute); margin-bottom: auto; padding-bottom: 32px; }
.proj-top .n { color: var(--lime); }
.proj h3 { font-size: clamp(2.2rem, 4.4vw, 4rem); letter-spacing: -0.05em; margin-bottom: 18px; }
.proj p { color: #b6b5ad; font-size: 16.5px; max-width: 30em; }
.proj .tags { margin: 10px 0 30px; }
.proj-links { display: flex; gap: 24px; flex-wrap: wrap; }
.proj-shot { position: relative; align-self: center; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--dark-line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); transition: transform .8s var(--ease); }
.proj-shot .chrome { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #1f1f1d; border-bottom: 1px solid var(--dark-line); }
.proj-shot .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a37; }
.proj-shot .chrome span { margin-left: 12px; flex: 1; max-width: 260px; height: 20px; border-radius: 6px; background: #2a2a27; font: 500 10.5px/20px var(--mono); color: var(--dark-mute); padding: 0 10px; overflow: hidden; white-space: nowrap; }
.proj-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.proj:hover .proj-shot img { transform: scale(1.03); }

/* 12 --------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform 2.4s var(--ease); }
.steps.in::after { transform: scaleX(1); }
.step { position: relative; padding: 48px 28px 0 0; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); transition: background-color .4s; }
.steps.in .step::before { background: var(--ink); }
.steps.in .step:nth-child(2)::before { transition-delay: .6s; }
.steps.in .step:nth-child(3)::before { transition-delay: 1.2s; }
.steps.in .step:nth-child(4)::before { transition-delay: 1.8s; background: var(--accent); border-color: var(--accent); }
.step .k { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--mute); margin-bottom: 14px; display: block; }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 14px; }
.step p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* 13 --------------------------------------------------------------------- */
.std-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.std { padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .4s; }
.std:hover { background: var(--card); }
.std svg { width: 30px; height: 30px; margin-bottom: 40px; stroke: var(--ink); fill: none; stroke-width: 1.4; transition: transform .6s var(--ease), stroke .3s; }
.std:hover svg { transform: rotate(-8deg) scale(1.1); stroke: var(--accent); }
.std h3 { font-size: 1.3rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.std p { margin: 0; color: var(--mute); font-size: 15.5px; }

/* 14 --------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.025em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background-color .3s, border-color .3s, transform .5s var(--ease); }
.faq-list summary .pm::before, .faq-list summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease); }
.faq-list summary .pm::after { transform: rotate(90deg); }
.faq-list details[open] summary .pm { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(180deg); }
.faq-list details[open] summary .pm::after { transform: rotate(0); }
.faq-list summary:hover .pm { border-color: var(--ink); }
.faq-list .ans { padding: 0 64px 28px 0; color: var(--ink-2); max-width: 44em; }
.faq-list .ans p:last-child { margin: 0; }
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }

/* 15 --------------------------------------------------------------------- */
.cta { text-align: center; overflow: hidden; }
.cta .eyebrow { justify-content: center; }
.cta h2 { font-size: clamp(3rem, 10vw, 9.5rem); letter-spacing: -0.06em; line-height: .9; margin-bottom: 32px; }
.cta .lede { margin: 0 auto 40px; }
.cta-ring { position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.cta-ring circle { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cta-ring .spin { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
.cta-ring .spin circle { stroke: var(--accent); stroke-width: .5; vector-effect: none; stroke-dasharray: .25 2.4; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta .wrap { position: relative; z-index: 1; }

/* 16 --------------------------------------------------------------------- */
.footer { background: var(--dark); color: #d9d8d0; padding: 88px 0 28px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 32px; padding-bottom: 64px; }
.foot-top h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff; max-width: 14em; }
.foot-top h3 { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dark-mute); margin-bottom: 18px; }
.foot-top li + li { margin-top: 10px; }
.foot-top a { color: #d9d8d0; transition: color .2s; }
.foot-top a:hover { color: var(--lime); }
.foot-clock { font: 500 13px/1.6 var(--mono); color: var(--dark-mute); }
.foot-clock b { display: block; color: #fff; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.wordmark { display: flex; justify-content: space-between; font-size: clamp(4.5rem, 21.5vw, 22rem); font-weight: 600; letter-spacing: -0.07em; line-height: .78; color: #fff; padding: 24px 0 36px; user-select: none; }
.wordmark span { display: inline-block; transition: transform .7s var(--ease), color .4s; }
.wordmark:hover span { transform: translateY(-6%); }
.wordmark span:hover { color: var(--lime); transform: translateY(-14%) !important; }
.wordmark:hover span:nth-child(2) { transition-delay: .03s; }
.wordmark:hover span:nth-child(3) { transition-delay: .06s; }
.wordmark:hover span:nth-child(4) { transition-delay: .09s; }
.wordmark:hover span:nth-child(5) { transition-delay: .12s; }
.wordmark:hover span:nth-child(6) { transition-delay: .15s; }
.wordmark:hover span:nth-child(7) { transition-delay: .18s; }
.foot-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--dark-line); font: 500 12px var(--mono); color: var(--dark-mute); letter-spacing: .04em; }

/* 17 --------------------------------------------------------------------- */
.page-hero { padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 32px; max-width: 13em; }
.page-hero h1 .serif { color: var(--accent); }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 36px; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.page-hero .hero-bg .grid { -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 5%, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 5%, transparent 70%); }

.split { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); }
.split > .side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.prose { font-size: 18px; color: var(--ink-2); max-width: 40em; }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--ink); margin: 2.2em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; color: var(--ink); margin: 1.8em 0 .5em; letter-spacing: -0.025em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul { margin: 0 0 1.2em; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }

.inc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.inc { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.inc .k { font: 500 12px var(--mono); color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 26px; }
.inc h3 { font-size: 1.3rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.inc p { margin: 0; color: var(--mute); font-size: 15.5px; }

.art-frame { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); overflow: hidden; }

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rel { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 32px; min-height: 200px; border-radius: var(--r); border: 1px solid var(--dark-line); background: var(--dark-2); transition: border-color .3s, transform .6s var(--ease); }
.rel:hover { border-color: #4a4a45; transform: translateY(-4px); }
.rel h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); color: #fff; }
.rel .mono { color: var(--dark-mute); display: block; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .1em; }
.rel .circ { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--dark-line); display: grid; place-items: center; transition: background-color .4s, color .4s, transform .6s var(--ease); }
.rel:hover .circ { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: rotate(-45deg); }
.rel .circ svg { width: 18px; height: 18px; }

.case { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-shot { grid-column: 1 / -1; }
.case-shot .proj-shot { border-color: var(--line); box-shadow: 0 50px 90px -50px rgba(17, 17, 16, .45); }
.case-meta { grid-column: 1 / span 4; }
.case-body { grid-column: 6 / span 7; }
.case-meta h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 16px; }
.case-meta dl { margin: 32px 0 28px; display: grid; gap: 14px; font-size: 15px; }
.case-meta dt { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 2px; }
.case-meta dd { margin: 0; }

/* 18 --------------------------------------------------------------------- */
.tabs { border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); background: var(--card); overflow: hidden; }
.tablist { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tablist button { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 24px 28px; text-align: left; font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 500; letter-spacing: -0.02em; color: var(--mute); transition: color .4s; }
.tablist button .mono { color: inherit; opacity: .8; }
.tablist button[aria-selected="true"] { color: var(--paper); }
.tablist button:not([aria-selected="true"]):hover { color: var(--ink); }
.tab-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 12px; background: var(--ink); transition: transform .6s var(--ease), width .6s var(--ease); }
.tabpanel { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 4vw, 56px); }
.tabpanel[hidden] { display: none; }
.tabpanel.enter > * { animation: panel-in .7s var(--ease) both; }
.tabpanel.enter > :nth-child(2) { animation-delay: .08s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
.tabpanel h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 18px; }
.tabpanel .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 28px 0 36px; font-size: 15.5px; }
.tabpanel .checks li { display: flex; gap: 10px; align-items: flex-start; }
.tabpanel .checks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; stroke: var(--accent); fill: none; stroke-width: 2; }

/* 19 --------------------------------------------------------------------- */
/* Masked word reveal. Without scripting the text is simply visible. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
@media (scripting: enabled) {
  /* .01, not 0: Chrome skips fully transparent text for Largest Contentful Paint */
  [data-reveal] { opacity: .01; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1s); }
  [data-reveal].in { opacity: 1; transform: none; }
  [data-split] .w > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0) * 1s); }
  [data-split].in .w > span { transform: none; }
  [data-stagger] > * { opacity: .01; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
  [data-stagger].in > * { opacity: 1; transform: none; }
  [data-stagger].in > :nth-child(2) { transition-delay: .08s; }
  [data-stagger].in > :nth-child(3) { transition-delay: .16s; }
  [data-stagger].in > :nth-child(4) { transition-delay: .24s; }
  [data-stagger].in > :nth-child(5) { transition-delay: .32s; }
  [data-stagger].in > :nth-child(6) { transition-delay: .40s; }
  .img-reveal { clip-path: inset(12% 6% 12% 6% round 14px); transition: clip-path 1.4s var(--ease); }
  .img-reveal.in { clip-path: inset(0 0 0 0 round 12px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .statement .wd { color: var(--ink); }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* 20 --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / -1; }
  .hero-stage { grid-column: 1 / -1; grid-row: 2; height: auto; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
  .stage-browser { position: relative; width: 100%; }
  .stage-serp { display: none; }
  .hero .vitals { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; width: auto; max-width: 520px; margin: 0; animation: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:last-child { grid-column: 1 / -1; }
  .svc:last-child .svc-art { aspect-ratio: 16 / 7; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header .status { display: none; }
  .menu-btn { display: block; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head > :first-child, .sec-head > :last-child:not(:first-child) { grid-column: 1; }
  .proj { grid-template-columns: 1fr; min-height: 0; position: relative; top: 0; }
  .proj-top { padding-bottom: 20px; }
  .proj-shot { order: -1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before, .steps::after { display: none; }
  .std-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid, .split { grid-template-columns: 1fr; }
  .split > .side { position: static; }
  .tablist { grid-template-columns: 1fr; }
  .tablist button { padding: 18px 22px; }
  .tab-ind { left: 6px; right: 6px; top: 0; width: auto !important; height: 0; transition: transform .6s var(--ease), height .6s var(--ease); }
  .tabpanel { grid-template-columns: 1fr; }
  .case-meta, .case-body { grid-column: 1 / -1; }
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 48px); }
  .svc-grid, .std-grid, .inc-grid { grid-template-columns: 1fr; }
  .svc:last-child .svc-art { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .tabpanel .checks { grid-template-columns: 1fr; }
  .faq-list .ans { padding-right: 0; }
  .foot-top { grid-template-columns: 1fr; }
  .statement-foot { gap: 28px; }
  .scroll-cue { display: none; }
  .btn { height: 50px; font-size: 15px; }
  .btn .arr { width: 36px; height: 36px; }
}

/* service page fact list (sits under the art in the sticky side column) */
.facts { margin: 24px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9em 1fr; gap: 16px; font-size: 15px; }
.facts dt { font: 500 11.5px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 0; }

/* contact form ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 22px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field i { font-style: normal; color: var(--accent); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #8d8c85; }
.field input:hover, .field textarea:hover { border-color: #c4c2b9; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.field .bad { border-color: #d64545 !important; box-shadow: 0 0 0 4px rgba(214, 69, 69, .12) !important; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { margin-bottom: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; transition: background-color .25s, color .25s, border-color .25s; }
.choices label:hover span { border-color: var(--ink); }
.choices input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot p { margin: 0; font-size: 14px; }
.form .btn { border: 0; cursor: pointer; }
.form.sending .btn { pointer-events: none; opacity: .7; }
.form.sending .btn .arr svg { animation: spin 1s linear infinite; }
.form-error { padding: 14px 16px; border-radius: 10px; background: #fdecec; color: #8f1f1f; font-size: 15px; }
.form-done { text-align: center; padding: 24px 0 8px; }
.form-done h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 18px 0 12px; }
.form-done p { color: var(--ink-2); max-width: 30em; margin: 0 auto; }
.done-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); animation: pop .6s var(--ease); }
.done-mark svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form.done > :not(.form-done) { display: none; }
.contact-side { position: sticky; top: calc(var(--header-h) + 32px); }
.next { counter-reset: n; display: grid; border-top: 1px solid var(--line); margin-bottom: 32px; }
.next li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.next li::before { content: "0" counter(n); grid-row: span 2; font: 500 12px/1.9 var(--mono); color: var(--accent); }
.next b { font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.next span { color: var(--mute); font-size: 15.5px; }
.side-links { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
a.status { transition: border-color .2s, background-color .2s; }
a.status:hover { border-color: var(--ink); background: var(--card); }
.pulse.open { background: #1fbf62; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
