:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --white: #fffef9;
  --ink: #172125;
  --muted: #48585e;
  --deep: #111f24;
  --deep-line: #34474a;
  --line: #d9dcd2;
  --amber: #f8c66a;
  --accent: #8a4f18;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1.03rem/1.65 var(--sans); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #ba7522; outline-offset: 5px; }
.wrap { width: min(1220px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; inset: 12px auto auto 12px; padding: .65rem 1rem; background: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header, .hero, .site-footer { background: var(--deep); color: var(--white); }
.site-header { border-bottom: 1px solid var(--deep-line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.brand { display: inline-flex; align-items: center; gap: .68rem; font-size: 1.12rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #7f9592; color: var(--amber); font: 650 .75rem var(--mono); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); font-size: .9rem; }
.site-nav a { color: #e3e9e4; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-footer a:hover { color: var(--amber); }
.nav-contact { border: 1px solid #63777a; padding: .42rem .76rem; }
.hero { overflow: hidden; background-image: radial-gradient(ellipse at 79% 34%, #263b3e 0%, var(--deep) 66%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 79px); align-items: center; padding-block: clamp(66px, 9vw, 128px); }
.eyebrow, .micro, .tag, .figure-labels, .meta dt { font: 650 .72rem/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { margin: 0 0 1.15rem; color: var(--accent); }
.hero .eyebrow, .site-footer .eyebrow { color: var(--amber); }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.055em; font-weight: 650; }
.hero h1 { font-size: clamp(3.05rem, 6.1vw, 6.1rem); }
.hero h1 em { color: var(--amber); font: italic 500 .88em/1.18 Georgia, serif; letter-spacing: -.065em; display: block; }
.hero p.lead { color: #d4dedb; margin-block: 1.45rem 1.7rem; max-width: 37rem; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.26rem); line-height: 1.55; }
.actions { display: flex; align-items: center; gap: .85rem 1.3rem; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 1.15rem; padding: .78rem 1rem; text-decoration: none; font-weight: 700; font-size: .91rem; line-height: 1.4; }
.button-primary { background: var(--amber); color: #24180c; }
.button-primary:hover { background: #ffdb94; }
.button-outline { border: 1px solid var(--line); color: var(--ink); }
.button-outline:hover { border-color: var(--accent); }
.quiet-link, .text-link { font-size: .92rem; font-weight: 700; }
.quiet-link:hover { color: var(--amber); }
.flow-card { border: 1px solid #547073; padding: clamp(.8rem, 2vw, 1.35rem); background: #182a2d; }
.flow-card .micro { color: #c7d6d3; }
.flow-card img { margin-block: .7rem; }
.figure-labels { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; text-align: center; color: #f1efe6; }
.flow-card figcaption { border-top: 1px solid #547073; padding-top: .8rem; margin-top: 1rem; color: #c7d6d3; font-size: .81rem; line-height: 1.5; }
.section { padding-block: clamp(64px, 8vw, 105px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem 3rem; margin-bottom: 2.1rem; }
.section-head h2, .site-footer h2 { font-size: clamp(2.65rem, 5.5vw, 4.9rem); }
.section-head p:not(.eyebrow) { max-width: 29rem; color: var(--muted); }
.feature, .project-grid { display: grid; gap: 1rem; }
.feature { grid-template-columns: 1.1fr .9fr; background: var(--white); border: 1px solid var(--line); margin-bottom: 1rem; }
.feature .visual { min-height: 278px; padding: clamp(12px, 3vw, 36px); }
.feature .visual img { background: #fff; }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); }
.visual { display: grid; align-items: center; min-width: 0; background: #e6ebdf; padding: 1rem; }
.card .visual { height: 168px; border-bottom: 1px solid var(--line); }
.card .visual img { max-height: 136px; object-fit: contain; }
.card .photo { padding: 0; overflow: hidden; }
.card .photo img { height: 100%; max-height: none; object-fit: cover; }
.card .moxy-visual { grid-template-columns: 1fr auto 1fr; gap: .5rem; padding: .85rem; background: #243c3b; color: #f7f4e9; text-align: center; font: 500 clamp(1.7rem, 3.1vw, 2.8rem) Georgia, serif; }
.moxy-visual small { font: 650 .7rem var(--mono); color: var(--amber); }
.card-body { display: flex; flex-direction: column; align-items: start; padding: clamp(1.15rem, 2.7vw, 2.25rem); }
.card .card-body { flex: 1; }
.tag { margin-bottom: .68rem; color: var(--accent); }
.card-body h3 { font-size: clamp(1.7rem, 3.1vw, 3rem); }
.card .card-body h3 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.card-body p:not(.tag) { margin: .8rem 0 1.15rem; color: var(--muted); }
.card-body .text-link { margin-top: auto; }
.text-link:hover { color: var(--accent); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 7vw, 94px); }
.split h2 { font-size: clamp(2.05rem, 4.4vw, 3.8rem); }
.prose p + p { margin-top: 1rem; }
.prose p { max-width: 68ch; color: var(--muted); }
.about { background: #e7eae1; }
.education { margin-top: 1.1rem; }
.education strong { display: block; }
.education p, .record p { color: var(--muted); }
.record { border-top: 1px solid #c6cfc3; padding-block: 1rem; }
.record h3 { font-size: 1.23rem; letter-spacing: -.025em; margin-bottom: .25rem; }
.site-footer { padding-block: 3.1rem 1.65rem; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 1rem 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; }
.footer-bottom { margin-top: 2rem; border-top: 1px solid var(--deep-line); padding-top: .85rem; font: 500 .8rem var(--mono); color: #bdcac7; }
.detail-hero { background: #e7eae1; border-bottom: 1px solid var(--line); padding-block: 1.55rem clamp(3rem, 7vw, 6rem); }
.back { display: inline-block; margin-bottom: clamp(2rem, 5vw, 3.9rem); font-size: .9rem; font-weight: 650; }
.detail-hero h1 { font-size: clamp(2.5rem, 6.7vw, 6rem); max-width: 14ch; }
.detail-hero .lead { margin-top: 1.1rem; max-width: 43rem; color: var(--muted); }
.detail-hero .actions { margin-top: 1.45rem; }
.detail-layout { display: grid; grid-template-columns: minmax(170px, .52fr) minmax(0, 1.75fr); gap: clamp(25px, 6vw, 90px); align-items: start; }
.detail-content { min-width: 0; }
.meta { border-top: 2px solid var(--ink); }
.meta div { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.meta dt { color: var(--accent); }
.meta dd { margin: .25rem 0 0; font-size: .93rem; }
.detail-content h2 { font-size: clamp(1.8rem, 4.2vw, 3.1rem); margin-top: 2.7rem; margin-bottom: .75rem; }
.detail-content h2:first-child { margin-top: 0; }
.detail-content h3 { margin-top: 1.4rem; font-size: 1.25rem; letter-spacing: -.022em; }
.detail-content ul { margin: .55rem 0 1.15rem; padding-left: 1.25rem; color: var(--muted); }
.detail-content li + li { margin-top: .35rem; }
.detail-content figure { margin-block: 1.4rem 1.8rem; }
.detail-content figure img { background: #fff; border: 1px solid var(--line); object-fit: contain; }
.detail-content figcaption { color: var(--muted); margin-top: .45rem; font-size: .88rem; }
.measurements { width: 100%; border-collapse: collapse; margin-block: 1.05rem; font-variant-numeric: tabular-nums; font-size: .94rem; }
.measurements caption { caption-side: bottom; text-align: left; color: var(--muted); padding-top: .5rem; font-size: .86rem; }
.measurements th, .measurements td { border-bottom: 1px solid var(--line); text-align: left; padding: .58rem .35rem .58rem 0; }
.measurements thead th { border-bottom-color: var(--ink); }
.callout { background: #e7eae1; border-left: 3px solid var(--accent); padding: 1rem 1.2rem; margin-block: 1.4rem; }
.detail-next { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2.3rem; }
@media (max-width: 920px) {
  .wrap { width: calc(100% - 64px); }
  .hero-inner { gap: 30px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; gap: .6rem; }
  .brand { gap: .35rem; font-size: .88rem; }
  .brand-mark { width: 26px; height: 26px; font-size: .66rem; }
  .site-nav { gap: .62rem; font-size: .76rem; }
  .nav-contact { padding: .35rem .48rem; }
  .hero-inner, .feature, .split, .detail-layout, .footer-main { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 52px; }
  .section-head { align-items: start; flex-direction: column; }
  .feature .visual { min-height: 0; }
  .detail-layout { gap: 2.1rem; }
  .meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .8rem; }
}
@media (max-width: 470px) {
  .project-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

