/* Layout: a slim sticky header, then full-width bands that alternate background. Each band has one job and one heading; content sits in cards on a 1080px grid. */
:root {
  --bg: #FFFFFF; --band: #F3F6FA; --surface: #FFFFFF; --fg: #132033; --muted: #55657A; --line: #DCE3EC;
  --accent: #1F3A5F; --accent-2: #2F6FB5; --accent-soft: #E7EEF7; --on-accent: #FFFFFF;
  --ok: #1E6B52; --ok-soft: #E1F1EA; --warn: #8A5A12; --warn-soft: #F6ECD8;
  --display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E151F; --band: #131C28; --surface: #182331; --fg: #E7EDF4; --muted: #9DABBC; --line: #27364A;
    --accent: #A5C4EE; --accent-2: #7FB0EA; --accent-soft: #1B2A3E; --on-accent: #0E151F;
    --ok: #7FD1B0; --ok-soft: #163229; --warn: #E6BE78; --warn-soft: #33290F;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent-2); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.in { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header */
.site { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; white-space: nowrap; }
.site nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 6px 12px; border-radius: 6px; }
.site nav a:hover, .site nav a[aria-current="page"] { color: var(--fg); background: var(--band); }
.site nav a.navcta { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; font-family: var(--display); font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 8px; background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent); }
.button.ghost { background: transparent; color: var(--accent); }

/* Hero */
.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.kicker { font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.015em; }
.sub { font-size: 1.12rem; color: var(--muted); max-width: 54ch; }
.shot { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 18px 40px -24px rgba(19, 32, 51, 0.45); min-width: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot-cap { display: block; padding: 10px 14px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); text-decoration: none; }
.shot-cap b { color: var(--accent-2); }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--band); }
.stats ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; }
.stats li { display: flex; flex-direction: column; min-width: 0; }
.stats b { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats span { font-size: 0.9rem; color: var(--muted); }

/* Bands */
.band { padding: 56px 0; }
.band.alt { background: var(--band); }
.band-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; max-width: 62ch; }
.band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.band-head p { color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; height: 100%; }
.card h3 { font-size: 1.12rem; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.96rem; }
a.card { text-decoration: none; color: var(--fg); border-top: 4px solid var(--accent); }
a.card:hover { border-color: var(--accent-2); }
.tagline { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.go { margin-top: auto; padding-top: 4px; font-weight: 600; color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: auto 0 0; padding: 6px 0 0; }
.chips li { font-family: var(--mono); font-size: 0.74rem; padding: 2px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.pill { align-self: flex-start; font-size: 0.72rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.num { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--accent-2); line-height: 1; }
.note { color: var(--muted); font-size: 0.93rem; margin-top: 20px; max-width: 70ch; }

/* Path */
.path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.path li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.path li:first-child { border-top: 0; }
.path .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.path b { font-family: var(--display); font-weight: 600; }
.path span.at { color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:first-child { border-top: 0; }
.faq summary { font-family: var(--display); font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* Contact band */
.contact-band { background: var(--accent); color: var(--on-accent); padding: 52px 0; }
.contact-band .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: 22ch; }
.contact-band p { opacity: 0.85; margin-top: 6px; }
.contact-band .button { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.contact-band code { font-family: var(--mono); font-size: 0.95rem; user-select: all; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
footer.end { padding: 20px 0; font-size: 0.85rem; color: var(--muted); }

/* 404 */
.lost { padding: 80px 0; display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero { padding: 36px 0 32px; }
  .band { padding: 40px 0; }
  .grid.four, .grid.three, .grid.two { grid-template-columns: minmax(0, 1fr); }
  .path li { grid-template-columns: minmax(0, 1fr); }
  .site .in { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 1rem; }
  .site nav { flex-wrap: nowrap; gap: 0; }
  .site nav a { padding: 6px 7px; font-size: 0.86rem; }
  .site nav a.navcta { padding: 6px 10px; margin-left: 4px; }
  .site nav a.hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Freelance availability badge */
.avail { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--ok); background: var(--ok-soft); padding: 5px 12px; border-radius: 999px; }
.avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.band-cta { margin-top: 22px; }
