:root {
  color-scheme: dark;
  --background: #0b0f14;
  --surface: #121821;
  --line: #293341;
  --text: #f4f7fb;
  --muted: #aab5c3;
  --subtle: #788595;
  --accent: #78b7ff;
  --accent-strong: #a6d0ff;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--accent-strong); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.025em; }
h1 { max-width: 800px; margin-bottom: 1.5rem; font-size: clamp(2.75rem, 7vw, 5.8rem); font-weight: 760; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { margin-bottom: .75rem; font-size: 1.45rem; }
h4 { margin-bottom: .55rem; font-size: 1.15rem; }

.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--text); color: var(--background); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--background); }
.header-inner, .section, .facts-inner, .site-footer { width: min(var(--content), calc(100% - 3rem)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 2rem; }
.brand { color: var(--text); font-weight: 700; line-height: 1.2; text-decoration: none; }
.brand small { display: block; margin-top: .3rem; color: var(--muted); font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.5rem; }
nav a { color: var(--muted); font-size: .94rem; font-weight: 650; text-decoration: none; }
.section { padding-block: 7rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; min-height: 690px; gap: clamp(3rem, 8vw, 7rem); }
.eyebrow { margin-bottom: 1rem; color: var(--accent); font-size: .8rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.hero-summary { max-width: 700px; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.hero-actions, .project-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.15rem; border: 1px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none; }
.button-primary { border-color: var(--accent); background: var(--accent); color: #07111e; }
.button-primary:hover { background: var(--accent-strong); color: #07111e; }
.button-secondary:hover { border-color: var(--muted); color: var(--text); }
.profile-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.profile-links a { color: var(--muted); font-size: .95rem; }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; border: 1px solid var(--line); background: var(--surface); object-fit: cover; }

.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts p { margin: 0; padding: 1.7rem; border-left: 1px solid var(--line); }
.facts p:last-child { border-right: 1px solid var(--line); }
.facts strong, .facts span { display: block; }
.facts strong { font-size: 1.05rem; }
.facts span { margin-top: .2rem; color: var(--muted); font-size: .86rem; }

.section-heading { max-width: 720px; margin-bottom: 3rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.1rem; }
.featured-grid, .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.5rem; }
.project { overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.project-media { display: grid; height: 300px; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #070a0e; }
.project-media img { width: 100%; height: 100%; object-fit: contain; }
.landscape-media img { object-fit: cover; }
.project-featured { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(0, 1.2fr); }
.project-featured .project-media { height: 100%; min-height: 440px; border-right: 1px solid var(--line); border-bottom: 0; }
.project-body { display: flex; flex-direction: column; padding: 1.5rem; }
.project-featured .project-body { padding: 2rem; }
.project-body > p { color: var(--muted); }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; color: var(--subtle); font-size: .77rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0 1.5rem; padding: 0; list-style: none; }
.tag-list li { padding: .25rem .55rem; border: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.project-links { margin-top: auto; }
.project-links a, .more-work a { font-weight: 700; }

.more-work { margin-top: 4rem; }
.more-work > h3 { margin-bottom: 1.5rem; }
.more-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.more-work-grid article { overflow: hidden; border-left: 1px solid var(--line); }
.more-work-grid article:last-child { border-right: 1px solid var(--line); }
.more-work-grid p:not(.project-meta) { color: var(--muted); }
.more-work-media { height: 170px; overflow: hidden; border-bottom: 1px solid var(--line); background: #070a0e; }
.more-work-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.more-work-body { padding: 1.5rem; }

.section-split { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.4fr); gap: clamp(3rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.timeline article { padding: 0 0 2.5rem 2rem; border-left: 1px solid var(--line); }
.timeline article:last-child { padding-bottom: 0; }
.timeline h3 { font-size: 1.25rem; }
.timeline p:last-child, .about-content > p, .capability-grid p { color: var(--muted); }
.timeline-date { margin-bottom: .65rem; color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.about-content > p:first-child { margin-bottom: 2.5rem; font-size: 1.2rem; }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.capability-grid div { padding: 1.5rem; background: var(--surface); }
.capability-grid h3 { font-size: 1.1rem; }
.capability-grid p { margin-bottom: 0; }
.contact { border-top: 1px solid var(--line); text-align: center; }
.contact h2 { max-width: 820px; margin-inline: auto; }
.contact > p:not(.eyebrow):not(.location) { color: var(--muted); font-size: 1.1rem; }
.contact-email { display: inline-block; margin: 1.5rem 0; font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 750; }
.location { color: var(--subtle); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); color: var(--subtle); font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 1.25rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) 240px; min-height: auto; }
  .facts-inner { grid-template-columns: repeat(2, 1fr); }
  .facts p:nth-child(3), .facts p:nth-child(4) { border-top: 1px solid var(--line); }
  .featured-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-featured { display: block; }
  .project-featured .project-media { height: 380px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .header-inner, .section, .facts-inner, .site-footer { width: min(100% - 2rem, var(--content)); }
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 1rem; gap: 1rem; }
  nav { justify-content: flex-start; gap: 1rem; }
  .section { padding-block: 4.5rem; }
  .hero { grid-template-columns: 1fr; gap: 3rem; }
  .portrait { width: min(260px, 75vw); }
  .facts-inner, .featured-grid, .project-grid, .more-work-grid, .section-split, .capability-grid { grid-template-columns: 1fr; }
  .facts p, .facts p:last-child, .more-work-grid article, .more-work-grid article:last-child { border-right: 1px solid var(--line); }
  .facts p:not(:first-child), .more-work-grid article:not(:first-child) { border-top: 1px solid var(--line); }
  .project-media, .project-featured .project-media { height: 360px; }
  .section-split { gap: 2rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  body { font-size: .98rem; }
  nav { gap: .7rem 1rem; }
  .hero-actions .button { width: 100%; }
  .project-media, .project-featured .project-media { height: 320px; }
  .project-body, .project-featured .project-body { padding: 1.25rem; }
  .contact-email { overflow-wrap: anywhere; }
}
