/* ==========================================================================
   Solent Web — shared styles
   Motion notes: custom curves only, transform/opacity only, UI < 300ms,
   hover gated behind (hover: hover), reduced-motion respected.
   ========================================================================== */

:root {
  --bg: #08090a;
  --bg-2: #101214;
  --bg-3: #16191b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ecedee;
  --muted: #8a8e93;
  --dim: #55595e;
  --accent: #5271ff;          /* brand blue (from the SW logo) */
  --accent-strong: #3f5ef0;   /* button fill — passes AA with white text */
  --accent-soft: rgba(82, 113, 255, 0.14);
  --accent-ink: #ffffff;
  --paper: #e7eaea;
  --paper-ink: #0b0d0e;
  --paper-muted: #6c7274;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --radius: 18px;
  --header-h: 76px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg);
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.92;
  font-size: clamp(44px, 8.4vw, 136px);
  text-wrap: balance;
}
.display--md { font-size: clamp(36px, 5.6vw, 88px); }
.display--sm { font-size: clamp(30px, 3.8vw, 56px); line-height: 0.96; }
.display em, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
}
.display em { color: var(--accent); }
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--muted); }

/* Line-mask reveal for headlines: each .line clips its inner span */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: block; }
.js [data-split] .line > span { transform: translateY(105%); }
.js [data-split].is-in .line > span {
  transform: none;
  transition: transform 1000ms var(--ease-out);
  transition-delay: calc(var(--l, 0) * 70ms + var(--d, 0ms));
}

/* Generic fade-up reveal */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.04); --btn-fg: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--accent { --btn-bg: var(--accent-strong); --btn-fg: #ffffff; }
.btn--dark { --btn-bg: #15181a; --btn-fg: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: #ffffff; }
  .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.09); }
  .btn--accent:hover { --btn-bg: #3552e0; }
  .btn--dark:hover { --btn-bg: #1f2326; }
  .btn:hover svg { transform: translateX(3px); }
}

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 10, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 36px; width: auto; }
.footer-logo img { height: clamp(88px, 9vw, 120px); width: auto; }
.logo__word { font-family: var(--font-serif); font-size: 23px; letter-spacing: 0.01em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--muted);
  transition: color 200ms ease, background-color 200ms ease;
}
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--text); } }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform 240ms var(--ease-out); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.menu-btn:active { transform: scale(0.97); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 240ms var(--ease-out), visibility 0s linear 240ms;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 240ms var(--ease-out); }
.mobile-menu nav a {
  display: block; padding: 6px 0;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(36px, 11vw, 56px); letter-spacing: -0.02em; line-height: 1.05;
  opacity: 0; transform: translateY(12px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.mobile-menu nav a[aria-current="page"] { color: var(--accent); }
.menu-open .mobile-menu nav a {
  opacity: 1; transform: none;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  transition-delay: calc(60ms + var(--i) * 40ms);
}
.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Intro loader (home, first visit per session) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 150; background: #000;
  display: none; clip-path: inset(0 0 0 0);
}
.js .intro.is-active { display: block; }
.intro.is-leaving { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out); }
.intro__corner { position: absolute; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.intro__corner--tl { top: 24px; left: var(--gutter); }
.intro__corner--tr { top: 24px; right: var(--gutter); text-align: right; }
.intro__corner--bl { bottom: 24px; left: var(--gutter); }
.intro__corner--br { bottom: 24px; right: var(--gutter); text-align: right; }
.intro__word {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 9vw, 140px); letter-spacing: -0.03em; line-height: 1;
}
.intro__word span { display: block; overflow: hidden; }
.intro__word span > b { display: block; font-weight: inherit; transform: translateY(105%); animation: intro-up 900ms var(--ease-out) 150ms forwards; }
@keyframes intro-up { to { transform: none; } }
.intro__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px; height: 1px; background: var(--line); overflow: hidden; }
.intro__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: intro-bar 1400ms var(--ease-in-out) forwards; }
@keyframes intro-bar { to { transform: scaleX(1); } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: calc(var(--header-h) + clamp(56px, 12vh, 140px));
  text-align: center; isolation: isolate;
}
.hero .display { max-width: 12ch; margin-inline: auto; }
.hero .lede { margin: 28px auto 32px; text-align: center; max-width: 40ch; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__horizon {
  position: absolute; z-index: -1; left: 50%; top: max(76%, calc(var(--header-h) + 560px));
  width: max(1500px, 150vw); aspect-ratio: 1; border-radius: 50%;
  translate: -50% 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 113, 255, 0.22), transparent 26%),
    radial-gradient(circle at 50% 8%, #161b33, #0b0d16 34%, #08090a 60%);
  box-shadow: 0 -1px 0 rgba(150, 170, 255, 0.55), 0 -30px 120px rgba(82, 113, 255, 0.22), inset 0 30px 80px rgba(82, 113, 255, 0.12);
  will-change: transform;
}
.hero__horizon::before {
  /* "city lights" — dotted grid lit near the rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background-image: radial-gradient(rgba(195, 208, 255, 0.5) 1px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0, rgba(0,0,0,0.5) 14%, transparent 32%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0, rgba(0,0,0,0.5) 14%, transparent 32%);
  animation: spin 240s linear infinite;
}
.hero__horizon::after {
  /* latitude rings */
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 90px transparent, inset 0 0 0 1px rgba(255,255,255,0.03);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__fade { position: absolute; inset: auto 0 0; height: 18vh; background: linear-gradient(transparent, var(--bg)); z-index: -1; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 8px; border-radius: 999px;
  background: rgba(20, 24, 26, 0.72); box-shadow: inset 0 0 0 1px var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12.5px; color: var(--text); white-space: nowrap;
}
.chip__dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); }
.chip__dot svg { width: 11px; height: 11px; color: var(--accent); }
.hero__chips { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__chips .chip { position: absolute; }
.hero__chips .chip:nth-child(1) { left: 9%; bottom: 9%; }
.hero__chips .chip:nth-child(2) { right: 13%; bottom: 17%; }
.hero__chips .chip:nth-child(3) { left: 24%; bottom: 17%; }
.hero__chips .chip:nth-child(4) { right: 6%; bottom: 7%; }
.js .hero__chips .chip { opacity: 0; transform: translateY(10px) scale(0.96); }
.js .hero.is-in .hero__chips .chip {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(700ms + var(--i) * 120ms);
}
.hero__chips .chip > span { display: inline-flex; align-items: center; gap: 8px; animation: float 6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.6s); }
@keyframes float { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 1;
  display: flex; justify-content: space-between; padding-inline: var(--gutter);
}
@media (max-width: 720px) {
  .hero__chips .chip:nth-child(3), .hero__chips .chip:nth-child(4) { display: none; }
  .hero__chips .chip:nth-child(1) { left: 16px; bottom: 16%; }
  .hero__chips .chip:nth-child(2) { right: 16px; bottom: 26%; }
  .hero__meta .label:last-child { display: none; }
}

/* ---------- Showcase (pinned, 3D browser) ---------- */
.showcase { position: relative; height: 320vh; }
.showcase__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; perspective: 1400px; }
.showcase__tiles { position: absolute; inset: -10%; }
.showcase__tile {
  position: absolute; width: clamp(110px, 13vw, 190px); aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  filter: blur(3px) brightness(0.55); opacity: 0.5; will-change: transform;
}
.showcase__tile .shot { height: 100%; border-radius: 0; }
.showcase__stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 36px; padding-inline: var(--gutter); }
.browser {
  width: min(680px, 84vw, calc((100svh - 340px) * 1.6)); border-radius: 14px; overflow: hidden;
  background: #0e1012; box-shadow: 0 0 0 1px var(--line-strong), 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(82, 113, 255, 0.08);
  transform-style: preserve-3d; will-change: transform;
}
.browser__bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #121517; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2f33; }
.browser__url { margin-left: 14px; flex: 1; max-width: 300px; height: 20px; border-radius: 6px; background: #1a1e21; font: 10.5px/20px var(--font-mono); color: var(--muted); padding-left: 10px; overflow: hidden; white-space: nowrap; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; }
.browser__screen .shot { position: absolute; inset: 0; border-radius: 0; opacity: 0; filter: blur(6px); transition: opacity 500ms ease, filter 500ms ease; }
.browser__screen .shot.is-active { opacity: 1; filter: blur(0); }
.browser__screen .shot .shot__bar { display: none; }
.showcase__copy { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; will-change: transform, opacity; }

/* ---------- Placeholder website "screenshots" ---------- */
.shot {
  --a: #1d3b3a; --b: #0d1718; --c: #e9f3f1; --k: #5271ff;
  position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 12px; background: linear-gradient(160deg, var(--a), var(--b));
  color: var(--c); isolation: isolate;
}
.shot__bar { height: 22px; flex: none; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: rgba(0, 0, 0, 0.25); }
.shot__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.shot__body { flex: 1; display: flex; flex-direction: column; padding: 6% 7%; gap: 8%; }
.shot__nav { display: flex; justify-content: space-between; align-items: center; font-size: clamp(7px, 0.8vw, 11px); opacity: 0.85; }
.shot__nav b { font-weight: 600; letter-spacing: 0.02em; }
.shot__nav span { display: flex; gap: 6px; }
.shot__nav span i { width: 18px; height: 3px; border-radius: 2px; background: currentColor; opacity: 0.4; }
.shot__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95;
  font-size: clamp(14px, 2.6vw, 40px); max-width: 11ch;
}
.shot--serif .shot__title { font-family: var(--font-serif); text-transform: none; font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.shot__cta { display: flex; gap: 6px; }
.shot__cta i { width: 22%; max-width: 70px; height: clamp(8px, 1vw, 14px); border-radius: 999px; background: var(--k); }
.shot__cta i + i { background: transparent; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.5; }
.shot__grid { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.shot__grid u { aspect-ratio: 4 / 3; border-radius: 6px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.shot__orb { position: absolute; z-index: -1; right: -10%; top: 10%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--k), transparent 65%); opacity: 0.45; }
.shot--light { --c: #0d1011; }
.shot--light .shot__bar { background: rgba(0, 0, 0, 0.06); }
.shot--light .shot__bar i { background: rgba(0, 0, 0, 0.18); }
.shot--light .shot__grid u { background: rgba(0, 0, 0, 0.06); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); }

/* palettes */
.p-coffee { --a: #3a2618; --b: #140d08; --c: #f3e6d6; --k: #e2a15b; }
.p-marine { --a: #0f2a44; --b: #06101b; --c: #e6f0fa; --k: #5fb3ff; }
.p-dental { --a: #f4f7f6; --b: #dfe9e7; --k: #1aa393; }
.p-barber { --a: #1b1b1b; --b: #070707; --c: #f0ece4; --k: #d4463b; }
.p-yoga { --a: #efe5da; --b: #dccbb8; --k: #8a6a4f; }
.p-physio { --a: #10302b; --b: #081a17; --c: #e7f6f1; --k: #7de3b5; }
.p-bakery { --a: #f6ead9; --b: #ecd3b1; --k: #c0582d; }
.p-builder { --a: #2a2d31; --b: #121416; --c: #f1f1f1; --k: #f2b705; }
.p-florist { --a: #2f1a26; --b: #12090e; --c: #f7e8ef; --k: #ff8fb8; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 14vw, 180px); position: relative; }
.section--tight { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--split { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
.section-head--split .lede { justify-self: end; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } .section-head--split .lede { justify-self: start; } }

/* Light "paper" section */
.paper { background: var(--paper); color: var(--paper-ink); border-radius: 28px 28px 0 0; }
.paper + .paper { border-radius: 0; }
.paper .label, .paper .muted, .paper .lede { color: var(--paper-muted); }
.paper .display em { color: #3552e0; }
.paper-end { border-radius: 0 0 28px 28px; }

/* Metrics marquee (light section) */
.metrics { position: relative; overflow: hidden; }
.metrics__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; min-height: 640px; }
.metrics__col { height: 640px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.metrics__track { display: flex; flex-direction: column; gap: 22px; animation: marquee-y 38s linear infinite; }
.metrics__col--rev .metrics__track { animation-direction: reverse; animation-duration: 44s; }
.metrics__item { display: flex; align-items: baseline; justify-content: center; gap: 10px; color: rgba(11, 13, 14, 0.28); }
.metrics__item strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.02em; }
.metrics__item span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.metrics__item.is-hot { color: var(--paper-ink); }
@keyframes marquee-y { to { transform: translateY(calc(-50% - 11px)); } }
.metrics__center { text-align: center; display: grid; gap: 4px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; letter-spacing: -0.01em; }
.metrics__center .label { margin-bottom: 14px; }
@media (max-width: 760px) {
  .metrics__inner { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .metrics__col { height: 520px; }
  .metrics__center { position: absolute; inset: 0; display: grid; place-content: center; background: radial-gradient(closest-side, var(--paper) 55%, transparent); z-index: 1; }
}

/* Service rows */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: 64px 1fr auto 40px; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line);
}
.row::before {
  /* accent wipe on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent);
  clip-path: inset(0 100% 0 0); transition: clip-path 400ms var(--ease-out);
}
.row__num { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.row__title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(26px, 4vw, 56px); letter-spacing: -0.02em; line-height: 1; transition: transform 300ms var(--ease-out); }
.row__price { font-size: 14px; color: var(--muted); text-align: right; }
.row__price strong { display: block; color: var(--text); font-size: 18px; font-weight: 500; }
.row__arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color 200ms ease, color 200ms ease; }
.row__arrow svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
  .row:hover::before { clip-path: inset(0 0 0 0); }
  .row:hover .row__title { transform: translateX(8px); }
  .row:hover .row__arrow { background: var(--accent); color: var(--accent-ink); }
}
@media (max-width: 640px) { .row { grid-template-columns: 1fr auto; gap: 8px 16px; } .row__num, .row__arrow { display: none; } .row__price strong { font-size: 16px; } }

/* Scroll-spy feature list ("the Southampton bit") */
.spy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.spy__list { display: grid; gap: 0; }
.spy__item { padding: 28vh 0; }
.spy__item:first-child { padding-top: 6vh; }
.spy__item:last-child { padding-bottom: 30vh; }
.spy__item h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 4vw, 58px); letter-spacing: -0.02em; line-height: 1; color: var(--dim); transition: color 400ms ease; }
.spy__item p { margin-top: 18px; max-width: 38ch; color: var(--muted); opacity: 0.35; transition: opacity 400ms ease; }
.spy__item.is-active h3 { color: var(--text); }
.spy__item.is-active p { opacity: 1; }
.spy__panel { position: sticky; top: calc(var(--header-h) + 5vh); height: calc(100svh - var(--header-h) - 10vh); min-height: 420px; border-radius: 24px; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.spy__card { position: absolute; inset: 0; padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transform: scale(0.98); filter: blur(6px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), filter 500ms var(--ease-out); }
.spy__card.is-active { opacity: 1; transform: none; filter: none; }
.spy__big { font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 8vw, 128px); letter-spacing: -0.04em; line-height: 0.9; }
.spy__big small { display: block; font-size: 0.26em; letter-spacing: -0.01em; color: var(--muted); font-weight: 500; margin-top: 12px; }
.spy__card--map { background: radial-gradient(circle at 60% 40%, rgba(82, 113, 255, 0.16), transparent 55%); }
.spy__card--map svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
@media (max-width: 860px) {
  .spy { grid-template-columns: 1fr; }
  .spy__panel { display: none; }
  .spy__item { padding: 36px 0; border-top: 1px solid var(--line); }
  .spy__item:first-child { padding-top: 36px; }
  .spy__item:last-child { padding-bottom: 0; }
  .spy__item h3 { color: var(--text); }
  .spy__item p { opacity: 1; }
}

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.work-card { grid-column: span 6; display: grid; gap: 16px; }
.work-card--wide { grid-column: span 12; }
.work-card--wide .shot { aspect-ratio: 21 / 9; }
.work-card__media { border-radius: 16px; overflow: hidden; }
.js [data-clip] { clip-path: inset(12% 6% 12% 6% round var(--clip-r, 16px)); }
.js [data-clip].is-in { clip-path: inset(0 0 0 0 round var(--clip-r, 16px)); transition: clip-path 1100ms var(--ease-out); }
.work-card__media .shot { border-radius: 16px; transition: transform 600ms var(--ease-out); }
.work-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.work-card__meta h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.work-card__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.tag--accent { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(82, 113, 255, 0.35); }
@media (hover: hover) and (pointer: fine) { .work-card:hover .shot { transform: scale(1.02); } }
@media (max-width: 760px) { .work-card, .work-card--wide { grid-column: span 12; } .work-card--wide .shot { aspect-ratio: 16 / 10; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.step { background: var(--bg); padding: clamp(24px, 2.6vw, 36px); min-height: 300px; display: flex; flex-direction: column; gap: 14px; }
.step__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.step h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; letter-spacing: -0.015em; margin-top: auto; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } .step h3 { margin-top: 24px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(64px, 12vw, 150px)); padding-bottom: clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.page-hero .label { display: block; margin-bottom: 28px; }
.display > .label { display: block; margin-bottom: 28px; font-weight: 400; line-height: 1.4; }
.page-hero .lede { margin-top: 32px; }
.page-hero__glow { position: absolute; z-index: -1; right: -20vw; top: -30vw; width: 70vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(82, 113, 255, 0.12), transparent); pointer-events: none; }
.crumbs { display: flex; gap: 10px; align-items: center; }
.crumbs a { color: var(--muted); }

/* ---------- Services page ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.plan { position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.6vw, 36px); border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.plan--featured { background: linear-gradient(180deg, rgba(82, 113, 255, 0.1), var(--bg-2) 40%); box-shadow: inset 0 0 0 1px rgba(82, 113, 255, 0.35); }
.plan h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 28px; letter-spacing: -0.015em; line-height: 1; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price small { font-size: 13px; color: var(--muted); }
.plan__price strong { font-family: var(--font-display); font-weight: 600; font-size: 48px; letter-spacing: -0.03em; line-height: 1; }
.plan p { color: var(--muted); margin: 0; font-size: 15px; }
.plan ul { display: grid; gap: 10px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.plan .btn { margin-top: auto; }
.plan__badge { position: absolute; top: 20px; right: 20px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

.extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.extra { background: var(--bg); padding: clamp(24px, 2.6vw, 36px); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: baseline; }
.extra h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.extra__price { font-size: 15px; color: var(--text); white-space: nowrap; }
.extra__price small { color: var(--muted); }
.extra p { grid-column: 1 / -1; color: var(--muted); margin: 0; font-size: 15px; max-width: 52ch; }
@media (max-width: 760px) { .extras { grid-template-columns: 1fr; } }

.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.guide { background: var(--bg); padding: clamp(24px, 2.6vw, 36px); display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; }
.guide h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.guide p { margin: 0; color: var(--muted); font-size: 15px; }
.guide .link-arrow { margin-top: 6px; }
@media (max-width: 860px) { .guides { grid-template-columns: 1fr; } }
.packages-faq { max-width: 860px; }

.included { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.included div { display: grid; gap: 10px; align-content: start; }
.included svg { width: 22px; height: 22px; color: var(--paper-ink); }
.included h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.included p { margin: 0; font-size: 14.5px; color: var(--paper-muted); }
@media (max-width: 960px) { .included { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .included { grid-template-columns: 1fr; } }

/* ---------- Portfolio page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .filter:not([aria-pressed="true"]):hover { color: var(--text); } }
[data-cat].is-hidden { display: none; }
[data-cat].is-filtered-in { animation: filter-in 320ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes filter-in { from { opacity: 0; transform: translateY(8px); } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: #cdd6ff; font-size: 14px; margin-bottom: 40px; }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* ---------- Blog ---------- */
.post-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); margin-bottom: clamp(48px, 6vw, 80px); }
.post-feature h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.02em; line-height: 0.98; margin: 16px 0 20px; }
.post-feature p { color: var(--muted); max-width: 46ch; }
@media (max-width: 860px) { .post-feature { grid-template-columns: 1fr; } }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.post-card { display: grid; gap: 14px; align-content: start; }
.post-card h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.post-card__art { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.post-card__meta { display: flex; gap: 12px; align-items: center; }
.post-card--soon { opacity: 0.55; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.art { width: 100%; height: 100%; display: grid; place-items: center; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: inherit; position: relative; overflow: hidden; }
.art__big { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.04em; line-height: 1; }
.art--teal { background: radial-gradient(circle at 70% 20%, rgba(82, 113, 255, 0.35), transparent 55%), var(--bg-2); }
.art--sand { background: radial-gradient(circle at 20% 80%, rgba(226, 161, 91, 0.3), transparent 55%), var(--bg-2); }
.art--blue { background: radial-gradient(circle at 50% 110%, rgba(95, 179, 255, 0.35), transparent 60%), var(--bg-2); }

/* Article */
.article { max-width: 720px; margin-inline: auto; }
.article__head { text-align: left; }
.article__meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.prose { font-size: 18px; line-height: 1.75; color: #c9cccf; }
.prose h2 { font-family: var(--font-display); color: var(--text); font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; margin: 2em 0 0.6em; }
.prose h3 { color: var(--text); font-size: 21px; margin: 1.6em 0 0.5em; }
.prose p { margin: 0 0 1.25em; }
.prose ul { list-style: none; margin: 0 0 1.4em; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1px; background: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); font-family: var(--font-serif); font-style: italic; font-size: 28px; line-height: 1.3; color: var(--text); }
.callout { margin: 2em 0; padding: 24px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.callout strong { display: block; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__nav { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 4px; }
.faq__nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; transition: color 200ms ease, background-color 200ms ease; }
.faq__nav a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
@media (hover: hover) and (pointer: fine) { .faq__nav a:hover { color: var(--text); } }
.faq__group + .faq__group { margin-top: 80px; }
.faq__group > .label { display: block; margin-bottom: 16px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; text-align: left; font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; letter-spacing: -0.01em; }
.qa__icon { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color 200ms ease, box-shadow 200ms ease; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform 250ms var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa__q[aria-expanded="true"] .qa__icon { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.qa__q[aria-expanded="true"] .qa__icon::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.qa__a > div { overflow: hidden; }
.qa__a p { color: var(--muted); max-width: 62ch; margin: 0; padding-bottom: 24px; opacity: 0; transition: opacity 200ms ease; }
.qa__a a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.qa__q[aria-expanded="true"] + .qa__a { grid-template-rows: 1fr; }
.qa__q[aria-expanded="true"] + .qa__a p { opacity: 1; transition-delay: 60ms; }
@media (hover: hover) and (pointer: fine) { .qa__q:hover .qa__icon { box-shadow: inset 0 0 0 1px var(--text); } }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__nav { position: static; display: flex; flex-wrap: wrap; } }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-intro .prose { font-size: 18px; }
.portrait { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; text-align: center; padding: 24px; }
.portrait::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 55%, rgba(8, 9, 10, 0.85)); pointer-events: none; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.portrait__caption { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: end; gap: 12px; text-align: left; }
.portrait__caption strong { display: block; font-family: var(--font-serif); font-weight: 400; font-style: italic; font-size: 32px; line-height: 1; }
.portrait__inner { position: relative; display: grid; gap: 12px; justify-items: center; }
.portrait__inner svg { width: 72px; height: 72px; color: var(--muted); }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; } .portrait { position: relative; top: 0; aspect-ratio: 1; } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.value { padding: clamp(24px, 2.6vw, 36px); border-radius: 20px; background: rgba(11, 13, 14, 0.04); box-shadow: inset 0 0 0 1px rgba(11, 13, 14, 0.08); display: grid; gap: 14px; align-content: start; }
.value .step__num { color: #3552e0; }
.value h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; letter-spacing: -0.015em; line-height: 1; }
.value p { color: var(--paper-muted); margin: 0; font-size: 15.5px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack .tag { height: 36px; padding: 0 16px; font-size: 14px; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 40px; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.04em; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* ---------- CTA + footer ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(110px, 16vw, 220px) clamp(64px, 8vw, 100px); text-align: center; isolation: isolate; }
.cta__glow { position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 140vw; max-width: 1800px; aspect-ratio: 2 / 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(82, 113, 255, 0.16), transparent); }
.cta .display { margin-inline: auto; max-width: 14ch; }
.cta__email { display: inline-block; margin-top: 40px; font-family: var(--font-serif); font-style: italic; font-size: clamp(28px, 4.2vw, 60px); line-height: 1.1; position: relative; }
.cta__email::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform-origin: right; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cta__email:hover::after { transform: scaleX(0); } }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

.clocks { display: flex; justify-content: center; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; margin-top: 72px; }
.clock { display: grid; gap: 4px; text-align: center; }
.clock__time { font-family: var(--font-mono); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }

.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-mono); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { display: grid; gap: 8px; }
.footer-grid a { color: #c3c6c9; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { color: var(--text); } }
.footer-grid p { color: var(--muted); max-width: 32ch; margin-top: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.footer-word { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.8; font-size: clamp(52px, 14.2vw, 230px); color: #121517; text-align: center; margin-top: 48px; user-select: none; white-space: nowrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-split] .line > span, .js [data-reveal], .js .hero__chips .chip, .js [data-clip] { transform: none !important; clip-path: none !important; }
  .js [data-reveal], .js .hero__chips .chip { transition: opacity 300ms ease !important; }
  .hero__horizon::before, .metrics__track, .hero__chips .chip > span { animation: none; }
  .spy__card { transform: none; filter: none; }
  .browser__screen .shot { filter: none; }
  .showcase { height: auto; }
  .showcase__sticky { position: relative; height: auto; padding-block: 120px; }
  .showcase__tiles { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Brand assets, photo & blog additions ---------- */
.intro__logo { position: absolute; inset: 0; display: grid; place-items: center; }
.intro__logo img {
  width: clamp(200px, 30vw, 380px); height: auto;
  clip-path: inset(0 0 100% 0); transform: translateY(24px);
  animation: intro-logo 1100ms var(--ease-out) 120ms forwards;
}
@keyframes intro-logo { to { clip-path: inset(0 0 0 0); transform: none; } }

.spy__card--photo { padding: 0; }
.spy__card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.spy__card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8, 9, 10, 0.55), transparent 30%, transparent 45%, rgba(8, 9, 10, 0.9)); }
.spy__card--photo > .label, .spy__card--photo > .spy__big { position: relative; z-index: 1; padding: clamp(24px, 3.4vw, 44px); }
.spy__card--photo > .label { color: #d6d8da; padding-bottom: 0; }
.spy__card--photo > .spy__big { padding-top: 0; font-size: clamp(44px, 6vw, 96px); }

.intro-me { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 40px; }
.intro-me img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; box-shadow: 0 0 0 1px var(--line-strong); }
.intro-me p { margin: 0; color: var(--muted); font-size: 15px; max-width: 44ch; }
.intro-me strong { color: var(--text); font-weight: 500; }

a.post-card { color: inherit; }
.post-card__art .art { transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.post-card:hover .post-card__art .art { transform: scale(1.03); }
  a.post-card:hover h3 { color: #ffffff; }
}
.post-card h3 { transition: color 200ms ease; }
.art--violet { background: radial-gradient(circle at 80% 80%, rgba(155, 120, 255, 0.32), transparent 55%), var(--bg-2); }
.art--green { background: radial-gradient(circle at 25% 20%, rgba(90, 210, 150, 0.28), transparent 55%), var(--bg-2); }
.art--rose { background: radial-gradient(circle at 70% 90%, rgba(255, 120, 150, 0.26), transparent 55%), var(--bg-2); }
.posts--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .posts--two { grid-template-columns: 1fr; } }
.related { padding-block: clamp(72px, 9vw, 120px) 0; }
.related .label { display: block; margin-bottom: 28px; }
.article-author { display: flex; align-items: center; gap: 12px; }
.article-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.prose .note { font-size: 15px; color: var(--muted); }
.prose ol { margin: 0 0 1.4em; padding-left: 1.3em; display: grid; gap: 10px; }
.prose ol li { padding-left: 4px; }
.prose ol li::before { display: none; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.table-scroll { overflow-x: auto; margin: 0 0 1.6em; }
.table-scroll table { margin: 0; min-width: 520px; }

/* Real screenshots in work cards and the showcase browser */
.work-card__media img { display: block; width: 100%; height: auto; border-radius: 16px; transition: transform 600ms var(--ease-out); }
.work-card--wide .work-card__media img { aspect-ratio: 21 / 11; object-fit: cover; object-position: top; }
@media (hover: hover) and (pointer: fine) { .work-card:hover .work-card__media img { transform: scale(1.02); } }
@media (max-width: 760px) { .work-card--wide .work-card__media img { aspect-ratio: auto; } }
.browser__screen img.shot { width: 100%; height: 100%; object-fit: cover; object-position: top; background: #0e1012; }
.work-card:not(.work-card--wide) .work-card__media img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.cta__privacy { margin: 20px auto 0; font-size: 13.5px; color: var(--muted); }
.cta__privacy a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .cta__privacy a:hover { text-decoration-color: currentColor; } }

/* ---------- Closing CTA: button + email ---------- */
.cta__actions { margin-top: 40px; }
.cta__or { margin: 28px 0 0; font-size: 13px; color: var(--muted); }
.cta__or + .cta__email { margin-top: 4px; font-size: clamp(24px, 3.2vw, 44px); }

/* ---------- Project enquiry form ---------- */
.enquiry { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.enquiry__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 40px; }
.enquiry__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.enquiry__steps li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; color: var(--dim); font-size: 15px; transition: color 200ms ease, background-color 200ms ease; }
.enquiry__steps li.is-current { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.enquiry__steps li.is-done { color: var(--muted); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .enquiry__steps li.is-done:hover { color: var(--text); } }
.enquiry__num { font-family: var(--font-mono); font-size: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px currentColor; flex: none; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.enquiry__steps li.is-current .enquiry__num { background: var(--accent-strong); color: #fff; box-shadow: none; }
.enquiry__steps li.is-done .enquiry__num { background: rgba(82, 113, 255, 0.16); color: var(--accent); box-shadow: none; }
.enquiry__help .intro-me img { width: 52px; height: 52px; }
.enquiry__help .intro-me p { font-size: 14px; }

.enquiry__form { position: relative; padding: clamp(24px, 3.4vw, 48px); border-radius: 24px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.enquiry__progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.enquiry__progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0.2); transition: transform 400ms var(--ease-out); }
.enquiry__count { margin: 0 0 32px; }
.fstep { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
.fstep[hidden], .enquiry [hidden] { display: none !important; }
.fstep.is-entering { animation: step-in 320ms var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 14px)); } }
.fstep__title { padding: 0; margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(28px, 3vw, 40px); line-height: 1; outline: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field__label { font-size: 14.5px; font-weight: 500; color: var(--text); }
.field label b, .field__label b, .consent b { color: var(--accent); font-weight: 600; }
.field label span, .field__label > span { color: var(--dim); font-weight: 400; font-size: 13px; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 0; border-radius: 12px; padding: 13px 14px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%238a8e93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field ::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(82, 113, 255, 0.16); }
@media (hover: hover) and (pointer: fine) { .field input:hover:not(:focus), .field select:hover:not(:focus), .field textarea:hover:not(:focus) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26); } }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--bg);
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.choice > span svg { width: 0; height: 13px; opacity: 0; transition: width 200ms var(--ease-out), opacity 200ms ease; }
.choice:active > span { transform: scale(0.97); }
.choice input:checked + span { color: #fff; background: rgba(82, 113, 255, 0.18); box-shadow: inset 0 0 0 1.5px var(--accent); }
.choice input:checked + span svg { width: 13px; opacity: 1; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .choice:hover input:not(:checked) + span { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); } }

.style-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .style-cards { grid-template-columns: 1fr 1fr; } }
.style-card { position: relative; display: grid; gap: 10px; padding: 12px; border-radius: 16px; cursor: pointer; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out); }
.style-card:active { transform: scale(0.98); }
.style-card input { position: absolute; opacity: 0; pointer-events: none; }
.style-card__swatch { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 56px; border-radius: 10px; overflow: hidden; }
.style-card__name { font-size: 14px; color: var(--muted); transition: color 200ms ease; }
.style-card:has(input:checked) { background: rgba(82, 113, 255, 0.12); box-shadow: inset 0 0 0 1.5px var(--accent); }
.style-card:has(input:checked) .style-card__name { color: #fff; }
.style-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .style-card:hover:not(:has(input:checked)) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); } }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; margin-top: 4px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-strong); }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.enquiry__error { margin: 24px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(255, 99, 99, 0.1); color: #ffb4b4; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255, 99, 99, 0.3); }
.enquiry__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.enquiry__nav [data-next], .enquiry__nav [data-submit] { margin-left: auto; }
.enquiry__nav button[disabled] { opacity: 0.6; pointer-events: none; }

@media (max-width: 900px) {
  .enquiry { grid-template-columns: 1fr; }
  .enquiry__aside { position: static; order: 2; }
  .enquiry__steps { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fstep.is-entering { animation: none; } }

/* Markdown tables in blog posts scroll sideways on small screens */
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; white-space: nowrap; } }

/* ---------- Areas covered (home) ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.areas li { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.areas li:first-child { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(82, 113, 255, 0.35); }
