:root {
    --bg: #0F0F0E; --ink: #F2F1EE; --ink-2: #B9B8B3; --muted: #8A8985; --rule: #262624;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --pad: clamp(24px, 5vw, 64px);
    color-scheme: dark;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { background: var(--bg); scroll-padding-top: env(safe-area-inset-top, 0px); }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  a { color: inherit; }
  a:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; border-radius: 2px; }
  [hidden] { display: none !important; }

  .site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px var(--pad); }
  .wordmark { font-weight: 500; font-size: 0.95rem; letter-spacing: 0.42em; margin-right: -0.42em; text-decoration: none; }
  .site-header nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; transition: color .2s ease; }
  .site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }

  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

  /* Home */
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: 7vh; padding-bottom: 12vh; }
  .vision h1 { margin: 0 0 32px; max-width: 13em; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.018em; }
  .vision p { margin: 0 0 1.05em; max-width: 31em; font-family: var(--serif); font-weight: 300; font-size: clamp(1.18rem, 1.5vw, 1.36rem); line-height: 1.5; color: var(--ink-2); }
  .vision p.lead { color: var(--ink); }
  .hero-figure { margin: 0; position: sticky; top: 32px; height: min(80vh, 860px); min-height: 420px; overflow: hidden; border-radius: 2px; background: #161615; }
  .hero-figure img { display: block; width: 100%; height: 100%; object-fit: cover; animation: appear 2s ease both; }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }

  .section { padding-top: 12vh; }
  .label { margin: 0 0 28px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.14em; color: var(--muted); }
  .areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
  .areas li { border-top: 1px solid var(--rule); padding: 22px 0 30px; }
  .areas h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 500; }
  .areas p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

  .join { padding: 14vh 0 16vh; }
  .join h2 { margin: 0 0 22px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; letter-spacing: -0.01em; }
  .arrow-link { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; border-bottom: 1px solid #4A4A47; padding-bottom: 3px; transition: color .2s ease, border-color .2s ease; }
  .arrow-link:hover { color: var(--ink); border-color: var(--ink-2); }

  /* Careers */
  .careers-intro { padding-top: 10vh; padding-bottom: 9vh; }
  .careers-intro h1 { margin: 0 0 24px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em; }
  .careers-intro p { margin: 0; max-width: 36em; color: var(--ink-2); font-size: 1.08rem; line-height: 1.65; }
  .roles { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
  .roles a { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--rule); text-decoration: none; transition: color .2s ease; }
  .roles .title { font-size: 1.12rem; }
  .roles .type { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; }
  .roles .go { color: var(--muted); transition: transform .2s ease, color .2s ease; }
  .roles a:hover .go { transform: translateX(4px); color: var(--ink); }
  .other { padding: 10vh 0 16vh; }
  .other h2 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 500; }
  .other p { margin: 0 0 20px; max-width: 34em; color: var(--muted); line-height: 1.6; }

  /* Legal */
  .legal { max-width: 68ch; margin: 0 auto; padding: 8vh 24px 96px; }
  .legal h1 { margin: 0 0 10px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; }
  .legal .updated { margin: 0 0 48px; color: var(--muted); font-size: 0.88rem; }
  .legal h2 { margin: 2.6em 0 0.7em; font-size: 1.02rem; font-weight: 600; }
  .legal p, .legal li { color: var(--ink-2); font-size: 1rem; line-height: 1.72; }
  .legal p { margin: 0 0 1em; }
  .legal ul { margin: 0 0 1em; padding-left: 1.2em; }
  .legal li { margin-bottom: 0.45em; }
  .legal strong { color: var(--ink); font-weight: 500; }
  .legal a { text-underline-offset: 3px; text-decoration-color: #555552; }

  footer { border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; padding: 28px var(--pad); font-size: 0.82rem; color: var(--muted); }
  footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
  footer a { text-decoration: none; color: var(--muted); transition: color .2s ease; }
  footer a:hover { color: var(--ink); }

  @media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; padding-top: 4vh; }
    .hero-figure { position: static; height: 56vh; min-height: 320px; order: -1; }
  }
  @media (max-width: 640px) {
    .areas { grid-template-columns: 1fr; }
    .roles a { grid-template-columns: 1fr auto; }
    .roles .type { grid-column: 1; grid-row: 2; }
    .roles .go { grid-row: 1 / span 2; grid-column: 2; }
  }
  @media (prefers-reduced-motion: reduce) { .hero-figure img { animation: none; } }
