:root {
  color-scheme: dark;
  --bg: #101210;
  --surface: #171a17;
  --surface-strong: #1d211d;
  --text: #ecf0e8;
  --muted: #a9b2a7;
  --faint: #6e786e;
  --line: rgba(226, 237, 224, 0.14);
  --line-strong: rgba(226, 237, 224, 0.26);
  --accent: #97d7b2;
  --accent-strong: #c1f0cf;
  --accent-ink: #132018;
  --max: 1240px;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4ef;
  --surface: #e8ebe3;
  --surface-strong: #dce2d8;
  --text: #172019;
  --muted: #526057;
  --faint: #748078;
  --line: rgba(23, 32, 25, 0.14);
  --line-strong: rgba(23, 32, 25, 0.28);
  --accent: #347d50;
  --accent-strong: #23623b;
  --accent-ink: #f2f7ef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.site-shell { width: min(100% - 48px, var(--max)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 20; transform: translateY(-140%); padding: 10px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; transition: transform 180ms var(--ease); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 76px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.wordmark-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--accent); border-radius: 9px; color: var(--accent); font-size: 14px; }
.desktop-nav, .footer-links { display: flex; align-items: center; gap: 24px; }
.desktop-nav a, .footer-links a { color: var(--muted); font-size: 14px; transition: color 180ms ease; }
.desktop-nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--accent-strong); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle { border: 0; padding: 5px 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.theme-toggle:hover { color: var(--accent-strong); }
.menu-toggle { display: none; width: 36px; height: 36px; padding: 8px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px 0; background: var(--text); transition: transform 180ms ease; }
.mobile-nav { display: none; }

.section-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: clamp(32px, 7vw, 104px); align-items: start; }
.hero { min-height: min(780px, calc(100dvh - 76px)); padding: clamp(72px, 11vw, 144px) 0 clamp(88px, 12vw, 156px); }
.hero-copy { align-self: center; max-width: 680px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; line-height: 1.3; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 34px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.055em; line-height: 0.98; }
h1 { max-width: 680px; margin-bottom: 30px; font-size: clamp(58px, 7.5vw, 112px); }
h2 { margin-bottom: 28px; font-size: clamp(42px, 5vw, 74px); }
h3 { margin-bottom: 14px; font-size: clamp(25px, 2.3vw, 34px); }
.hero-lede { max-width: 550px; margin-bottom: 16px; color: var(--text); font-size: clamp(20px, 2.3vw, 29px); letter-spacing: -0.035em; line-height: 1.2; }
.hero-detail, .section-intro, .story-copy p, .contact-copy > p:not(.eyebrow), .principles-list p { max-width: 52ch; color: var(--muted); }
.hero-detail { margin-bottom: 36px; }
.hero-actions, .contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button { display: inline-flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-strong); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid var(--line-strong); color: var(--text); font-size: 14px; font-weight: 700; transition: color 180ms ease, border-color 180ms ease; }
.text-link:hover { border-color: var(--accent); }

.image-frame { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius); background: var(--surface); }
.image-frame::after { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(16, 18, 16, 0.04), rgba(16, 18, 16, 0.36)); content: ""; pointer-events: none; }
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-visual { align-self: center; aspect-ratio: 1 / 1.08; }
.hero-visual img { min-height: 100%; }
.hero-visual figcaption { position: absolute; right: 22px; bottom: 20px; z-index: 1; max-width: 220px; color: #e7eee4; font-size: 12px; line-height: 1.35; }

.intro-band { display: grid; grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr); gap: 40px; padding: clamp(44px, 6vw, 76px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-kicker { margin: 0; color: var(--accent-strong); font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.intro-statement { max-width: 850px; margin: 0; font-size: clamp(28px, 4vw, 54px); letter-spacing: -0.055em; line-height: 1.04; }

.section-block { padding: clamp(112px, 15vw, 206px) 0; }
.section-heading { margin-bottom: clamp(52px, 7vw, 86px); }
.section-heading .section-intro { padding-top: 6px; }
.work-list { border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(180px, 0.42fr); gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding 220ms var(--ease), background 220ms ease; }
.work-row:hover { padding-left: 18px; padding-right: 18px; background: var(--surface); }
.work-index { padding-top: 2px; color: var(--accent-strong); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.work-main p { max-width: 58ch; margin-bottom: 22px; color: var(--muted); }
.work-meta, .tag-list { display: flex; flex-wrap: wrap; gap: 12px 20px; color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; text-transform: uppercase; }
.work-meta { margin-bottom: 16px; }
.tag-list span { color: var(--muted); text-transform: none; }
.work-result { align-self: end; color: var(--muted); font-size: 14px; line-height: 1.4; }
.work-result strong { color: var(--text); font-weight: 600; }
.work-links { display: flex; flex-direction: column; align-items: flex-start; align-self: end; gap: 8px; }
.work-links a { color: var(--accent-strong); font-size: 13px; font-weight: 700; }

.image-story { padding: clamp(96px, 13vw, 180px) 0; align-items: center; }
.story-image { aspect-ratio: 1.14 / 1; }
.story-copy { max-width: 590px; }
.story-copy h2 { max-width: 590px; }
.story-copy p:not(.eyebrow) { margin-bottom: 18px; }
.story-copy .text-link { margin-top: 18px; }

.timeline-section { padding-top: clamp(96px, 13vw, 170px); }
.timeline-wrap { border-top: 1px solid var(--line); }
.timeline { position: relative; max-width: 930px; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 202px; width: 1px; background: var(--line); content: ""; }
.timeline-item { display: grid; grid-template-columns: 170px 64px minmax(0, 1fr); min-height: 142px; border-bottom: 1px solid var(--line); }
.timeline-date { padding: 32px 0; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.timeline-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 9px; height: 9px; margin: 37px auto; border: 2px solid var(--bg); border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 1px var(--line-strong); }
.timeline-item.current .timeline-marker { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.timeline-content { padding: 29px 0 29px 0; }
.timeline-content h3 { margin-bottom: 8px; font-size: clamp(22px, 2.5vw, 31px); }
.timeline-content p { max-width: 58ch; margin: 0; color: var(--muted); }
.builder-bridge { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; max-width: 930px; padding-top: 34px; }
.builder-bridge span { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.builder-bridge strong { max-width: 580px; font-size: 20px; font-weight: 500; letter-spacing: -0.035em; }

.principles-section { padding: clamp(100px, 13vw, 170px) 0; border-top: 1px solid var(--line); }
.principles-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.principles-list article { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.principles-list span { display: block; margin-bottom: 48px; color: var(--accent-strong); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.principles-list h3 { margin-bottom: 12px; font-size: 25px; }

.contact-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr); gap: 48px; align-items: end; padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.contact-copy h2 { max-width: 720px; margin-bottom: 24px; }
.contact-actions { justify-content: flex-end; padding-bottom: 8px; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: end; padding: 34px 0 46px; border-top: 1px solid var(--line); }
.site-footer p { max-width: 300px; margin: 14px 0 0; color: var(--faint); font-size: 12px; }
.footer-note { margin: 0 !important; text-align: right; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual, .intro-band, .work-row, .timeline-item, .principles-list article { animation: rise-in 700ms var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-copy > :nth-child(4) { animation-delay: 190ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .hero-visual { animation-delay: 160ms; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 900px) {
  .section-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero { min-height: auto; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(100%, 720px); max-height: 620px; }
  .contact-section { grid-template-columns: 1fr; align-items: start; }
  .contact-actions { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .site-shell { width: min(100% - 32px, var(--max)); }
  .site-header { min-height: 68px; }
  .desktop-nav, .theme-toggle { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: flex; flex-direction: column; gap: 2px; max-height: 0; overflow: hidden; border-bottom: 0 solid var(--line); transition: max-height 220ms var(--ease), padding 220ms var(--ease); }
  .mobile-nav.open { max-height: 260px; padding: 14px 0 18px; border-bottom-width: 1px; }
  .mobile-nav a { padding: 9px 0; color: var(--muted); }
  .mobile-nav a:hover { color: var(--accent-strong); }
  h1 { font-size: clamp(52px, 15vw, 78px); }
  h2 { font-size: clamp(42px, 12vw, 60px); }
  .intro-band { grid-template-columns: 1fr; gap: 24px; }
  .work-row { grid-template-columns: 34px 1fr; gap: 14px; padding: 28px 0; }
  .work-result, .work-links { grid-column: 2; align-self: start; }
  .work-row:hover { padding-left: 10px; padding-right: 10px; }
  .timeline::before { left: 10px; }
  .timeline-item { grid-template-columns: 1fr; min-height: auto; padding: 28px 0 28px 34px; }
  .timeline-date { padding: 0 0 12px; }
  .timeline-marker { position: absolute; left: 6px; margin: 4px 0 0; }
  .timeline-content { padding: 0; }
  .builder-bridge { flex-direction: column; align-items: flex-start; gap: 14px; }
  .principles-list { grid-template-columns: 1fr; gap: 34px; }
  .principles-list span { margin-bottom: 24px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .footer-note { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

