/* Tokens. Light by default, dark follows the OS setting. */
:root {
  --bg: #f7f7f8;
  --surface: #fdfdfd;
  --ink: #17171a;
  --muted: #55555e;
  --line: #e3e3e7;
  --accent: #c2410c;
  --accent-tint: #fcebe1;
  --tile-strong: #17171a;
  --tile-strong-ink: #f2f2f4;
  --tile-strong-muted: #b4b4bc;
  --shadow: 0 1px 2px rgb(23 23 26 / .04), 0 10px 30px rgb(23 23 26 / .05);

  --radius: 16px;
  --pill: 999px;
  --gutter: 24px;
  --nav-h: 68px;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface: #161619;
    --ink: #f2f2f4;
    --muted: #a3a3ad;
    --line: #26262b;
    --accent: #fb8a4c;
    --accent-tint: #2a1a12;
    --tile-strong: #222227;
    --tile-strong-ink: #f2f2f4;
    --tile-strong-muted: #a3a3ad;
    --shadow: none;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--ink); color: var(--bg);
  padding: 8px 14px; border-radius: var(--pill); z-index: 20;
}
.skip:focus { top: 12px; }

/* Buttons: pill for every interactive control, 16px radius for every surface. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  border-radius: var(--pill);
  font-weight: 500; font-size: 1rem; white-space: nowrap;
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.brand { font-weight: 600; letter-spacing: -.01em; text-decoration: none; margin-right: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9375rem; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.6rem, 4.4vw + .6rem, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 600;
  max-width: 13ch;
}
.lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 1.1875rem;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 540px;
  justify-self: end;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(165deg, var(--accent-tint), var(--surface) 70%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.monogram {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 600;
  letter-spacing: -.07em;
  color: var(--accent);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.fact { padding-top: 24px; border-top: 1px solid var(--line); }
.fact-value { font-size: 2rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.fact-text { margin-top: 10px; color: var(--muted); max-width: 32ch; }

/* Sections */
.section { padding-top: 128px; }
.section-title {
  font-size: clamp(2rem, 2.2vw + 1rem, 2.75rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 40px;
}

/* Services bento: 4 items, 4 cells */
.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.tile {
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 12px;
  min-height: 230px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tile h3 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.tile p { color: var(--muted); max-width: 44ch; }

.tile-feature {
  grid-row: span 2;
  min-height: 476px;
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%),
    linear-gradient(180deg, var(--accent-tint), var(--surface));
}
.tile-feature h3 { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.25rem); letter-spacing: -.035em; max-width: 14ch; line-height: 1.1; }
.tile-feature p { font-size: 1.125rem; color: color-mix(in srgb, var(--ink) 75%, var(--muted)); }

.tile-pattern {
  grid-column: span 2;
  background-color: var(--surface);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 0 0;
}
.tile-pattern h3, .tile-pattern p { background: var(--surface); width: fit-content; }
.tile-pattern p { padding-right: 4px; }

.tile-strong { background: var(--tile-strong); border-color: var(--tile-strong); color: var(--tile-strong-ink); }
.tile-strong p { color: var(--tile-strong-muted); }

/* About */
.about {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-copy p { color: var(--muted); max-width: 60ch; }
.about-copy p + p { margin-top: 20px; }
.about-copy .about-lead {
  color: var(--ink);
  font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem);
  line-height: 1.4;
  letter-spacing: -.02em;
  max-width: 30ch;
}
.promises {
  display: grid;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.promises dt { font-weight: 600; letter-spacing: -.01em; }
.promises dd { margin-top: 4px; color: var(--muted); }

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
}
.process li { position: relative; padding-top: 28px; }
.process li::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 40px; height: 2px;
  background: var(--accent);
}
.process h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.process p { margin-top: 8px; color: var(--muted); }
.billing { margin-top: 48px; color: var(--muted); font-size: .9375rem; }

/* Contact */
.contact {
  padding: clamp(36px, 5vw, 72px);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 120% at 100% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.contact h2 {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.contact p { margin-top: 16px; color: var(--muted); max-width: 52ch; font-size: 1.125rem; }
.contact-email {
  display: inline-block;
  margin-top: 36px;
  font-size: clamp(1.125rem, 2.4vw + .4rem, 2.25rem);
  font-weight: 500;
  letter-spacing: -.025em;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  overflow-wrap: anywhere;
  transition: color .2s, text-decoration-color .2s;
}
.contact-email:hover { color: var(--accent); text-decoration-color: var(--accent); }
.contact-links { display: flex; gap: 24px; margin-top: 24px; }
.contact-links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .25em;
  transition: color .2s, text-decoration-color .2s;
}
.contact-links a:hover { color: var(--ink); text-decoration-color: var(--accent); }

/* Footer */
.footer { margin-top: 128px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
  font-size: .9375rem;
  color: var(--muted);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Legal page */
.legal { max-width: 720px; padding-top: 72px; }
.legal h1 { font-size: clamp(2.25rem, 3vw + 1rem, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.legal h2 { margin-top: 48px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.legal p { margin-top: 12px; color: var(--muted); }
.legal a { text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: .2em; }

/* Motion: load-in for the hero, reveal-on-scroll for sections. JS-gated so content is never hidden without it. */
@media (prefers-reduced-motion: no-preference) {
  .load { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .tile { transition: transform .3s var(--ease), opacity .8s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 0.8fr; gap: 40px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-feature { grid-row: auto; grid-column: span 2; min-height: 320px; }
  .tile-pattern { grid-column: span 2; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; border-top: 0; }
  .process li { border-top: 1px solid var(--line); }
}

/* Phone: everything collapses to one column */
@media (max-width: 720px) {
  :root { --gutter: 16px; --nav-h: 60px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 64px; gap: 40px; }
  .portrait { justify-self: stretch; aspect-ratio: 5 / 4; max-height: none; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .section { padding-top: 96px; }
  .bento { grid-template-columns: 1fr; }
  .tile-feature, .tile-pattern { grid-column: auto; }
  .tile, .tile-feature { min-height: 0; padding: 24px; }
  .process { grid-template-columns: 1fr; }
  .promises { padding: 24px; }
  .footer { margin-top: 96px; }
}
