:root {
  --bg: #0c1117;
  --surface: #141d25;
  --surface-strong: #1c2932;
  --text: #f5f1e8;
  --muted: #9eabb0;
  --line: rgba(245, 241, 232, .14);
  --accent: #f08a5d;
  --accent-strong: #ffad79;
  --secondary: #a9d2d2;
  --focus: #f8d36b;
  --sans: "DM Sans", sans-serif;
  --display: "Space Grotesk", sans-serif;
}

:root[data-theme="light"] {
  --bg: #f4f0e8;
  --surface: #e8e2d8;
  --surface-strong: #dce5e2;
  --text: #17232a;
  --muted: #536269;
  --line: rgba(23, 35, 42, .17);
  --accent: #c65a3a;
  --accent-strong: #9c3d28;
  --secondary: #28676d;
  --focus: #8a5a00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}

button, a, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--focus);
  color: #17232a;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
.section-shell { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.site-header {
  max-width: 1180px;
  margin: auto;
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 700 13px var(--display);
  transform: rotate(-8deg);
}
.brand-name { font: 600 19px var(--display); letter-spacing: -.04em; }
.brand-name span { color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a, .language-switch {
  color: var(--muted);
  font: 500 13px var(--sans);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s ease;
}
.site-nav a:hover, .language-switch:hover { color: var(--text); }
.language-switch { border: 1px solid var(--line); padding: 7px 10px; }
.accessibility-tools { display: flex; gap: 6px; }
.accessibility-button {
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.accessibility-button:hover, .accessibility-button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.accessibility-button:disabled { cursor: not-allowed; opacity: .4; }
.accessibility-button .icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.accessibility-button[data-theme="dark"] .icon-sun, .accessibility-button[data-theme="light"] .icon-moon { display: none; }
.menu-toggle { display: none; background: none; border: 0; }
.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 30px;
  padding-top: 74px;
  padding-bottom: 100px;
}
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 25px; }
.status-dot { width: 7px; height: 7px; background: var(--accent); display: inline-block; border-radius: 50%; margin-right: 9px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent); }
h1, h2, h3 { font-family: var(--display); margin-top: 0; line-height: 1.05; letter-spacing: -.06em; }
h1 { font-size: clamp(48px, 7vw, 87px); max-width: 780px; margin-bottom: 29px; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.hero-text { max-width: 510px; color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: 22px; text-decoration: none; padding: 14px 18px; font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--accent); color: #17232a; }
.button-primary:hover { background: var(--accent-strong); }
.button-ghost { border: 1px solid var(--line); color: var(--text); }
.button-ghost:hover { border-color: var(--accent); }
.hero-meta { display: flex; gap: 11px; margin-top: 55px; color: var(--muted); font-size: 12px; }
.meta-separator { color: var(--accent); }
.hero-art { height: 450px; position: relative; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.orb-back { width: 360px; height: 360px; background: var(--surface); transform: translate(30px, -15px); }
.orb-front { width: 285px; height: 285px; border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.monogram { position: relative; display: flex; align-items: center; gap: 0; font: 700 140px/1 var(--display); letter-spacing: -.2em; margin-right: 22px; }
.monogram span:first-child { color: var(--text); }
.monogram span:last-child { color: var(--accent); position: relative; top: 27px; }
.art-label { position: absolute; font: 600 10px var(--sans); letter-spacing: .18em; color: var(--muted); }
.art-label-top { top: 48px; right: 35px; }
.art-label-bottom { bottom: 50px; left: 25px; writing-mode: vertical-rl; transform: rotate(180deg); }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 110px; padding-bottom: 110px; border-top: 1px solid var(--line); }
h2 { font-size: clamp(36px, 4vw, 58px); margin-bottom: 0; }
.section-content { padding-top: 20px; max-width: 500px; }
.lead { color: var(--text); font-size: 22px; line-height: 1.4; margin-top: 0; }
.section-content p:not(.lead), .timeline p, .contact-card > div > p:last-child { color: var(--muted); font-size: 15px; }
.social-links { display: flex; gap: 25px; margin-top: 35px; }
.social-links a, .text-link { color: var(--secondary); font-size: 13px; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--secondary) 50%, transparent); padding-bottom: 4px; }
.projects { padding-top: 100px; padding-bottom: 110px; border-top: 1px solid var(--line); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 50px; }
.section-heading-row .eyebrow { margin-bottom: 20px; }
.project-list { border-top: 1px solid var(--line); }
.project-card { display: grid; grid-template-columns: 70px 1fr 30px; align-items: center; gap: 25px; padding: 27px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: padding .25s ease, background .25s ease; }
.project-card:hover { padding-left: 15px; padding-right: 15px; background: var(--surface); }
.project-number { color: var(--muted); font: 500 13px var(--display); }
.project-info { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 20px; }
.project-tag { color: var(--accent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.project-info h3 { font-size: 24px; margin: 0; }
.project-info p { color: var(--muted); font-size: 13px; margin: 0; }
.project-arrow { color: var(--accent); font-size: 20px; }
.field-notes { padding-top: 100px; padding-bottom: 110px; border-top: 1px solid var(--line); }
.section-aside { display: block; max-width: 180px; color: var(--muted); font-size: 12px; line-height: 1.4; text-align: right; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note-card { min-height: 280px; padding: 25px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.note-card:nth-child(2) { background: var(--surface-strong); }
.note-card:nth-child(3) { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.note-type { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.note-card h3 { font-size: 24px; line-height: 1.08; margin: 42px 0 15px; }
.note-card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.note-link { color: var(--secondary); font-size: 12px; margin-top: auto; padding-top: 20px; }
.timeline { padding-top: 10px; }
.timeline-item { display: grid; grid-template-columns: 140px 1fr; gap: 30px; border-top: 1px solid var(--line); padding: 28px 0; }
.timeline-date { color: var(--accent); font-size: 12px; font-weight: 700; }
.timeline h3 { font-size: 22px; margin-bottom: 10px; }
.timeline p { margin: 0; max-width: 470px; }
.skills { padding-top: 90px; padding-bottom: 110px; border-top: 1px solid var(--line); }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.skill-cloud span { border: 1px solid var(--line); padding: 12px 18px; color: var(--muted); font: 500 14px var(--display); transition: border-color .2s ease, color .2s ease; }
.skill-cloud span:hover { border-color: var(--accent); color: var(--accent); }
.contact { padding-top: 0; padding-bottom: 90px; }
.contact-card { background: var(--surface-strong); padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border: 1px solid var(--line); }
.contact-card h2 { margin-bottom: 20px; }
.contact-card > div > p:last-child { max-width: 390px; }
.contact-actions { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.contact-form { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.contact-form label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-top: 8px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 11px; font: 14px var(--sans); resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 1px solid var(--focus); }
.contact-form .button { border: 0; cursor: pointer; margin-top: 10px; align-self: flex-start; }
.contact-line { color: var(--text); font: 500 15px var(--display); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.contact-direct { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer { border-top: 1px solid var(--line); padding-top: 25px; padding-bottom: 30px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.form-status { min-height: 20px; margin: 2px 0 0; color: var(--accent) !important; font-size: 12px !important; }
.form-status.success { color: var(--secondary) !important; }
:root[data-font-scale="large"] .hero-text, :root[data-font-scale="large"] .section-content p:not(.lead), :root[data-font-scale="large"] .timeline p, :root[data-font-scale="large"] .note-card p, :root[data-font-scale="large"] .project-info p { font-size: 16px; }
:root[data-font-scale="small"] .hero-text, :root[data-font-scale="small"] .section-content p:not(.lead), :root[data-font-scale="small"] .timeline p, :root[data-font-scale="small"] .note-card p, :root[data-font-scale="small"] .project-info p { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media (max-width: 900px) { .site-header { flex-wrap: wrap; } .site-nav { order: 3; width: 100%; justify-content: flex-end; } .accessibility-tools { margin-left: auto; } }
@media (max-width: 760px) {
  .site-header { padding: 20px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
  .menu-toggle span { display: block; width: 24px; height: 1px; background: var(--text); }
  .site-nav { position: absolute; top: 75px; left: 20px; right: 20px; width: auto; background: var(--surface); padding: 22px; display: none; flex-direction: column; align-items: flex-start; gap: 20px; border: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .accessibility-tools { order: 2; margin-left: 0; }
  .hero { display: flex; flex-direction: column; align-items: flex-start; min-height: auto; padding-top: 80px; padding-bottom: 80px; }
  .hero-art { width: 100%; height: 280px; margin-top: 25px; }
  .orb-back { width: 230px; height: 230px; }
  .orb-front { width: 185px; height: 185px; }
  .monogram { font-size: 90px; }
  .art-label-top { top: 8px; right: 15px; }
  .art-label-bottom { bottom: 20px; left: 5px; }
  .section-grid { grid-template-columns: 1fr; gap: 25px; padding-top: 75px; padding-bottom: 75px; }
  .section-heading-row { display: block; }
  .section-heading-row .text-link { display: inline-block; margin-top: 20px; }
  .project-info { display: block; }
  .project-info h3 { margin: 8px 0; }
  .field-notes { padding-top: 75px; padding-bottom: 75px; }
  .notes-grid { grid-template-columns: 1fr; }
  .section-aside { text-align: left; margin-top: 18px; }
  .note-card { min-height: 240px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .contact-card { padding: 30px 22px; grid-template-columns: 1fr; }
  .site-footer { display: grid; gap: 10px; }
}
