:root {
  --bg: oklch(98% 0.006 80);
  --surface: oklch(96% 0.007 75);
  --surface-2: oklch(93% 0.008 75);
  --ink: oklch(21% 0.018 60);
  --ink-soft: oklch(40% 0.02 60);
  --ink-faint: oklch(50% 0.014 60);
  --line: oklch(88% 0.01 70);
  --accent: #33507e;
  --accent-ink: #fdfcfa;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font-body); }
button, input, select { font: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.site-shell { min-height: 100vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.section-rule { border-top: 1px solid var(--line); }
.measure { max-width: 780px; }

.site-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 6vw; border-bottom: 1px solid var(--line); gap: 12px; }
.site-name { color: var(--ink); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav { display: flex; gap: 18px; align-items: center; }
.primary-nav > a:not(.icon-link) { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); }

.hero { max-width: 1680px; margin: 0 auto; padding: 7vw 6vw 5vw; }
.hero-role { margin-bottom: 20px; color: var(--ink); font-weight: 600; }
.hero h1 { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(38px, 5.4vw, 80px); font-weight: 400; line-height: 1.06; letter-spacing: -.01em; text-wrap: pretty; }
.hero-intro { margin: 0 0 24px; font-size: 18.5px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.capabilities { margin-bottom: 32px; color: var(--ink-faint); line-height: 1.65; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; margin: 20px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.stats > div { padding: 0 24px; }
.stats > div:first-child { padding-left: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: 34px; }
.stats dt { margin-top: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.sample-note { margin-top: 14px; color: var(--ink-faint); font-size: 10px; letter-spacing: .01em; text-transform: none; }
.fade-up { animation: fade-up .7s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } .fade-up { animation: none; } }

.about { margin-top: 2vw; padding: 5vw 6vw 6vw; }
.section-label { margin-bottom: 16px; font-weight: 400; }
.about p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.about .about-lead { font-family: var(--font-display); font-size: 22px; line-height: 1.55; color: var(--ink); }
.about .credentials { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

.work { padding: 5vw 6vw 0; }
.work-heading-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.work h2, .contact h2 { margin: 0; font-family: var(--font-display); font-weight: 400; }
.work h2 { font-size: 32px; }
.filters { display: flex; flex-direction: column; gap: 16px; margin-bottom: 38px; }
.filter-group { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.filter-label { width: 88px; flex: 0 0 88px; padding-top: 14px; }
.filter-options { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill { min-height: 44px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; white-space: nowrap; cursor: pointer; transition: border-color .15s ease, transform .1s ease; }
.pill:hover { transform: translateY(-1px); border-color: var(--accent); }
.pill[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.clear-filters, .no-results button { min-height: 44px; padding: 11px 6px; border: 0; background: none; color: var(--ink-soft); font-family: var(--font-mono); font-size: 11.5px; text-decoration: underline; cursor: pointer; }

.projects-wrap { padding: 0 6vw 7vw; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.project-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px oklch(30% .02 60 / .35); border-color: var(--ink-faint); }
.gallery { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--surface-2); touch-action: pan-y; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; transform: translateY(-50%); border: 0; border-radius: 50%; background: oklch(20% 0 0 / .5); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.gallery-nav:hover { background: oklch(20% 0 0 / .72); }
.gallery-prev { left: 4px; }
.gallery-next { right: 4px; }
.gallery-dots { position: absolute; right: 0; bottom: 8px; left: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.gallery-dot { width: 5px; height: 5px; border-radius: 50%; background: oklch(100% 0 0 / .4); box-shadow: 0 0 0 1px oklch(20% 0 0 / .15); }
.gallery-dot.is-active { background: #fff; }
.photo-credit { min-height: 14px; color: var(--ink-soft); font-family: var(--font-mono); font-size: 10.5px; line-height: 1.35; overflow-wrap: anywhere; }
a.photo-credit:hover { text-decoration: underline; }
.project-taxonomy, .project-heading-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.project-heading-row { justify-content: flex-start; align-items: center; margin-bottom: 6px; }
.project-role { color: var(--accent); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em; }
.status-badge { padding: 2px 8px; border-radius: 3px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-constr { background: oklch(88% .09 70 / .4); color: oklch(32% .09 55); }
.status-design { background: oklch(88% .05 300 / .35); color: oklch(38% .09 300); }
.status-hold { background: oklch(88% .06 25 / .35); color: oklch(40% .11 25); }
.status-masterplan { background: oklch(90% .03 240 / .4); color: oklch(38% .07 240); }
.status-dev { background: oklch(90% .07 90 / .4); color: oklch(38% .09 85); }
.status-concept { background: oklch(92% .015 60 / .6); color: oklch(40% .02 60); }
.project-card h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; font-weight: 400; line-height: 1.3; text-wrap: pretty; }
.project-subtitle { color: var(--ink-soft); font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; }
.project-description { flex-grow: 1; margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.project-scale { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-faint); font-family: var(--font-mono); font-size: 11px; line-height: 1.45; text-align: right; }
.no-results { padding: 60px 0; border: 1px dashed var(--line); text-align: center; }
.no-results p { margin: 0 0 10px; font-family: var(--font-display); font-size: 20px; }

.contact { padding: 6vw 6vw 5vw; background: var(--surface); }
.contact-measure { max-width: 640px; }
.contact h2 { margin-bottom: 20px; font-size: 34px; }
.contact p:not(.section-label) { margin: 0 0 28px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.cta { display: inline-block; padding: 13px 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em; transition: transform .15s ease, opacity .15s ease; }
.cta:hover { transform: translateY(-2px); color: var(--accent-ink); opacity: .92; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 6vw; }
.footer-links { display: flex; align-items: center; gap: 14px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 4px; color: var(--ink); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; }

@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 5vw; }
  .primary-nav { width: 100%; justify-content: space-between; gap: 4px; }
  .hero { padding: 54px 6vw 46px; }
  .hero h1 { font-size: 40px; }
  .hero-intro { font-size: 17px; }
  .stats > div { padding: 0 12px; }
  .stats dd { font-size: 30px; }
  .stats dt { font-size: 9.5px; }
  .about, .work, .contact { padding-top: 48px; padding-bottom: 48px; }
  .filter-group { display: block; }
  .filter-label { width: auto; padding: 0; margin-bottom: 8px; }
  .project-grid { grid-template-columns: 1fr; }
  .projects-wrap { padding-bottom: 56px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 36px; }
  .pill { padding-inline: 13px; }
  .project-card { padding: 16px; }
}
