@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100..125,600..900&family=Instrument+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;450;500&display=swap");

:root {
  color-scheme: dark;
  --bg: #101014;
  --surface: #1a191e;
  --surface-sunken: #0b0b0e;
  --ink: #f5f2ed;
  --ink-muted: #a7a29a;
  --ink-faint: #6e6a64;
  --line: #2b2a31;
  --line-strong: #45434c;
  --accent: #e8695a;
  --accent-hover: #f08a7d;
  --on-accent: #161519;
  --success-bg: #123f20;
  --error: #e06068;
  --error-bg: #5c171c;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wide: 112%;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s24: 96px;
  --container: 1200px;

  --r-sm: 2px; --r-md: 4px; --r-full: 9999px;
  --shadow-1: 0 0 0 1px var(--line);
  --shadow-3: 0 16px 40px rgb(0 0 0 / .6);
  --fast: 120ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --z-sticky: 200; --z-modal: 400; --z-toast: 500; --z-max: 999;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity var(--fast) var(--ease); }
a:hover { opacity: .7; }
:target { scroll-margin-top: var(--s24); }
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: inherit;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: var(--z-max);
  background: var(--ink); color: var(--bg);
  padding: var(--s2) var(--s4); border-radius: var(--r-full);
}
.skip-link:focus-visible { top: var(--s4); }

.display-xl, .display-lg, .display-md, .heading { font-family: var(--font-display); text-wrap: balance; }
.display-xl { font-size: clamp(3rem, 7vw, 6rem); line-height: .95; font-weight: 800; letter-spacing: -.02em; font-stretch: var(--wide); }
.display-lg { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; font-weight: 800; letter-spacing: -.015em; font-stretch: var(--wide); }
.display-md { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; font-stretch: var(--wide); }
.heading { font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.005em; text-wrap: initial; }
.lead { font-size: 1.125rem; line-height: 1.6; }
.body { font-size: 1rem; line-height: 1.55; }
.small { font-size: .875rem; line-height: 1.5; }
.eyebrow, .index {
  font: 450 13px/1.4 var(--font-mono);
  letter-spacing: .02em;
  display: inline-block;
}
.eyebrow { color: var(--ink-muted); }
.eyebrow--icon { display: inline-flex; align-items: center; gap: 8px; }
.index { color: var(--ink); }
.muted { color: var(--ink-muted); }
.lede { max-width: 60ch; }
.measure { max-width: 65ch; }
.narrow { max-width: 22ch; }
.mid { max-width: 28ch; }

.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--s4);
}
.section { padding: var(--s16) 0; }
.section--tight { padding: var(--s12) 0; }
.rule { border-top: 1px solid var(--line); }
.cols { display: grid; gap: var(--s8); }
.cols--offset { align-items: start; }
.stack > * + * { margin-top: var(--s4); }
.stack--loose > * + * { margin-top: var(--s6); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); }
.mt-10 { margin-top: var(--s10); }
.mt-12 { margin-top: var(--s12); }
.mt-16 { margin-top: var(--s16); }

.icon { width: 16px; height: 16px; flex: none; color: var(--ink-muted); }
.icon--lg { width: 22px; height: 22px; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 40px; padding: 0 var(--s6);
  border: 1px solid transparent; border-radius: var(--r-full);
  font: 500 16px/1 var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { opacity: 1; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: rgb(245 242 237 / .08); }
.btn--lg { height: 48px; padding: 0 var(--s8); font-size: 18px; }
.btn--full { width: 100%; }
.link { color: var(--accent); font-weight: 500; }
.link-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { opacity: .7; }

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .container { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--s6); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 22px/1 var(--font-display); font-stretch: var(--wide); letter-spacing: -.02em;
  color: var(--ink); white-space: nowrap;
}
.logo-mark { width: 26px; height: 26px; flex: none; }
.nav { display: none; align-items: center; gap: var(--s8); }
.nav a { font: 500 16px var(--font-sans); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav .btn { padding-bottom: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer;
  transition: background var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-sunken); }
.icon-btn svg { width: 16px; height: 16px; }

.menu {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: var(--bg); display: flex; flex-direction: column;
  padding: var(--s3) var(--s4) var(--s6);
}
.menu[hidden] { display: none; }
.menu-head { height: 58px; display: flex; align-items: center; justify-content: space-between; }
.menu-list { margin-top: var(--s16); display: flex; flex-direction: column; gap: var(--s6); }
.menu-list li { display: flex; align-items: baseline; gap: var(--s4); }
.menu-list a[aria-current="page"] { color: var(--accent); }
.menu-foot { margin-top: auto; }

.hero { padding: var(--s16) 0 var(--s12); }
.hero .lede { margin-top: var(--s8); }
.hero h1 { max-width: 16ch; }
.hero--404 { min-height: 60vh; }
.hero--404 .lede { max-width: 52ch; }

.photo { position: relative; aspect-ratio: 4 / 3; margin: 0; background: var(--surface); overflow: hidden; }
.photo img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover;
  filter: saturate(.85) sepia(.12) brightness(.9);
  transform: translate3d(0, var(--py, 0), 0); will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .photo img { top: 0; height: 100%; transform: none; } }

.list li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.list--bullets li { padding-left: var(--s6); position: relative; }
.list--bullets li::before { content: "·"; position: absolute; left: var(--s2); color: var(--ink-muted); }
.numbered { counter-reset: item; }
.numbered li {
  counter-increment: item;
  display: grid; grid-template-columns: auto 1fr; gap: var(--s4);
  padding: var(--s3) 0; border-bottom: 1px solid var(--line);
}
.numbered li::before { content: "(" counter(item, decimal-leading-zero) ")"; font: 400 13px var(--font-mono); letter-spacing: .02em; }
.not-found-links { display: flex; flex-wrap: wrap; gap: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
.not-found-links a { font-weight: 500; }

.services { display: grid; gap: var(--s8); }
.service { padding-top: var(--s4); border-top: 1px solid var(--line); }
.service header { display: flex; align-items: center; gap: var(--s3); }
.service p { margin-top: var(--s3); }
.steps { display: grid; }
.step { display: grid; gap: var(--s4); padding: var(--s8) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3);
  font: 700 clamp(1.75rem, 3vw, 2.5rem)/1 var(--font-display); font-stretch: var(--wide); letter-spacing: -.01em;
  color: var(--ink-muted);
}

.case { display: grid; gap: var(--s6); padding: var(--s12) 0; border-top: 1px solid var(--line); }
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case-meta { display: flex; flex-direction: column; gap: var(--s2); }
.case-body p { margin-top: var(--s4); }
.case-body .eyebrow { margin-top: var(--s6); }
.case-link { align-self: end; }
.snapshot div { display: grid; gap: var(--s1); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.snapshot dt, .role-meta dt { font: 450 13px var(--font-mono); letter-spacing: .02em; color: var(--ink-muted); }
.quote p {
  font: 700 clamp(1.75rem, 3vw, 2.5rem)/1.1 var(--font-display);
  font-stretch: var(--wide); letter-spacing: -.01em; text-wrap: balance;
}
.quote footer { margin-top: var(--s6); }

.role { padding: var(--s12) 0; border-top: 1px solid var(--line); }
.role:last-of-type { border-bottom: 1px solid var(--line); }
.role-meta { display: grid; gap: var(--s3); margin-top: var(--s8); }
.role-meta div { display: grid; gap: var(--s1); }

.form {
  display: grid; gap: var(--s6);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s6); box-shadow: var(--shadow-1);
}
.form-row { display: grid; gap: var(--s6); }
.field label { display: block; font: 500 14px/1.4 var(--font-sans); margin-bottom: var(--s2); }
.field input, .field textarea {
  width: 100%; height: 40px; padding: 0 var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 400 16px/1.5 var(--font-sans); color: var(--ink);
  transition: border-color var(--fast) var(--ease);
}
.field textarea { height: auto; min-height: 150px; padding: var(--s3); resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field .err { display: none; margin-top: var(--s2); font: 450 13px/1.4 var(--font-mono); letter-spacing: .02em; color: var(--error); }
.field.is-error input, .field.is-error textarea { border-color: var(--error); }
.field.is-error .err { display: block; }
.form-foot { display: flex; flex-direction: column; gap: var(--s4); }
.form-foot .btn { align-self: flex-start; }
.form-note { display: none; padding: var(--s4); border-radius: var(--r-sm); background: var(--success-bg); }
.form-note--err { background: var(--error-bg); }
.form-note.is-visible { display: block; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-block { display: grid; gap: var(--s6); }
.contact-block p + p { margin-top: var(--s1); }

.site-footer { background: var(--surface-sunken); border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: var(--s12); padding: var(--s16) 0 var(--s12); }
.footer-tag { margin-top: var(--s6); max-width: 14ch; }
.footer-cols { display: grid; gap: var(--s8); }
.footer-cols p + p { margin-top: var(--s1); }
.footer-links { display: flex; flex-direction: column; gap: var(--s2); }
.footer-links a { font-weight: 500; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: var(--s6) 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4);
}
.footer-legal { display: flex; gap: var(--s4); }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

.legal { max-width: 65ch; }
.legal h3 { margin-top: var(--s8); }
.legal h4 { font-size: 16px; color: var(--ink-muted); margin-top: var(--s6); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .list li { border-bottom: 0; padding: var(--s2) 0 var(--s2) var(--s6); }

.cookie {
  position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: var(--z-toast);
  max-width: 520px; padding: var(--s6);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-3);
  transition: transform .32s var(--ease), opacity .32s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.is-leaving { transform: translateY(16px); opacity: 0; }
.cookie-head { display: flex; align-items: center; gap: var(--s3); }
.cookie-head .icon { color: var(--ink); }
.cookie h2 { font: 600 18px/1.3 var(--font-sans); letter-spacing: -.01em; }
.cookie > p { margin-top: var(--s3); color: var(--ink-muted); }
.cookie p a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.cookie-actions .btn { height: 36px; font-size: 14px; padding: 0 var(--s4); }
.cookie-prefs { margin-top: var(--s6); border-top: 1px solid var(--line); }
.cookie-prefs[hidden] { display: none; }
.cookie-opt {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s6);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.cookie-opt strong { display: block; font: 500 15px/1.4 var(--font-sans); }
.cookie-opt span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.cookie-opt .eyebrow { margin-top: 4px; }
.switch {
  position: relative; flex: none; width: 44px; height: 24px; padding: 0;
  border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--surface-sunken); cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink); transition: transform var(--fast) var(--ease);
}
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--on-accent); }

@media (min-width: 768px) {
  .container { padding: 0 var(--s6); }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s12); }
  .cols--offset { grid-template-columns: 5fr 7fr; }
  .cols--rev { grid-template-columns: 7fr 5fr; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list--cols { columns: 2; column-gap: var(--s8); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snapshot div { grid-template-columns: 2fr 3fr; gap: var(--s6); }
  .role-meta, .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo { aspect-ratio: 21 / 9; }
  .step { grid-template-columns: 120px 1fr; gap: var(--s8); }
  .case { grid-template-columns: 3fr 7fr 2fr; gap: var(--s8); }
  .case-link { justify-self: end; }
  .cookie { left: var(--s8); bottom: var(--s8); right: auto; }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--s8); }
  .section { padding: var(--s24) 0; }
  .hero { padding: var(--s24) 0 var(--s16); }
  .site-header .container { height: 72px; }
  .nav { display: flex; }
  .burger { display: none; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s12) var(--s8); }
  .form { padding: var(--s8); }
  .footer-top { grid-template-columns: 7fr 5fr; padding: var(--s24) 0 var(--s16); }
}
