:root {
  --paper: #f4f1ea;
  --ink: #151515;
  --muted: #6d6a63;
  --line: #d8d3c8;
  --accent: #c65728;
  --dark: #1b211d;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(216,211,200,.9);
  background: rgba(244,241,234,.92);
  backdrop-filter: blur(14px);
}
.brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
  letter-spacing: -.04em;
}
nav { display: flex; gap: clamp(18px, 3vw, 38px); font-size: 14px; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--ink); transition: width .25s ease; }
nav a:hover::after { width: 100%; }

.section-pad { width: min(var(--max), 100%); margin: 0 auto; padding: clamp(64px, 8vw, 112px) clamp(22px, 4vw, 64px); }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.hero {
  min-height: calc(88vh - 40px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.hero h1 { margin: 0; font-size: clamp(64px, 9vw, 150px); line-height: .86; letter-spacing: -.065em; font-weight: 600; }
.hero-statement { max-width: 720px; margin: 34px 0 0; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.18; letter-spacing: -.025em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-solid { background: var(--ink); color: var(--paper); }
.hero-media { display: flex; flex-direction: column; gap: 12px; }
.hero-collage-frame { padding: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.68); }
.hero-collage-main, .hero-collage-row { display: grid; gap: 12px; }
.hero-collage-row { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.hero-image-button { background: #ebe6db; }
.hero-collage-main img { aspect-ratio: 16 / 10; object-fit: cover; }
.hero-collage-row img { aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media figcaption { color: var(--muted); font-size: 12px; }

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro-strip p { margin: 0; padding: 22px clamp(22px, 4vw, 64px); font-size: 13px; border-right: 1px solid var(--line); }
.intro-strip p:last-child { border-right: 0; }

.section-heading { max-width: 900px; margin-bottom: clamp(60px, 7vw, 100px); }
.section-heading h2, .about h2, .contact h2 { margin: 0; font-size: clamp(42px, 6vw, 88px); line-height: .98; letter-spacing: -.05em; font-weight: 500; }
.section-lead { max-width: 680px; margin: 28px 0 0; color: #d8ddd9; font-size: 20px; }

.project { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.42fr); gap: clamp(34px, 6vw, 90px); padding: clamp(70px, 8vw, 115px) 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project-copy { position: sticky; top: 120px; align-self: start; }
.project-index { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.project h3 { margin: 12px 0 24px; max-width: 650px; font-size: clamp(32px, 4vw, 62px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.project-copy > p:not(.project-index) { max-width: 610px; font-size: 17px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }

.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.image-button { overflow: hidden; padding: 0; border: 0; background: #e6e2d9; cursor: zoom-in; }
.image-button.wide { grid-column: 1 / -1; }
.image-button img { height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .45s cubic-bezier(.2,.75,.2,1); }
.image-button.wide img { aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.image-button:hover img { transform: scale(1.018); }

.cad-preview { display: flex; flex-direction: column; gap: 10px; }
.cad-preview.wide { grid-column: 1 / -1; }
.cad-pdf-link { display: block; width: 100%; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.cad-pdf-link img { aspect-ratio: auto; height: auto; object-fit: contain; background: #fff; }
.cad-preview-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.cad-preview-meta span { font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.cad-preview-meta small { color: var(--muted); font-size: 11px; }


.tech-gallery { align-items: start; }
.tech-preview { display: flex; flex-direction: column; gap: 10px; }
.tech-preview.wide { grid-column: 1 / -1; }
.tech-preview .image-button { width: 100%; border: 1px solid var(--line); background: #fff; }
.tech-main-preview img { aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.tech-detail-preview img { aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.tech-preview-meta { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.tech-preview-meta span { font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.tech-preview-meta small { color: var(--muted); font-size: 11px; text-align: right; }

.construction { max-width: none; width: 100%; background: var(--dark); color: #f3f0e9; }
.construction-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(50px, 7vw, 100px); }
.construction .section-heading { margin-bottom: 0; }
.construction-points { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.18); }
.construction-points div { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.construction-points span { color: #d18a68; font-size: 12px; }
.construction-points p { margin: 0; color: #d8ddd9; font-size: 15px; }
.construction-gallery { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; align-items: stretch; }
.construction-gallery .tall { grid-row: span 2; }
.construction-gallery .image-button { background: #2c332e; }
.construction-gallery img { object-fit: cover; aspect-ratio: 4 / 5; }
.construction-gallery .tall img { height: 100%; aspect-ratio: auto; }

.about { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(45px, 8vw, 125px); align-items: start; }
.about-photo { position: sticky; top: 120px; }
.about-photo img { aspect-ratio: 4 / 7; object-fit: cover; object-position: center 42%; filter: saturate(.92); }
.about-copy > p:not(.eyebrow) { max-width: 800px; font-size: 19px; }
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.skills-grid h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.skills-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.contact { border-top: 1px solid var(--line); }
.contact h2 { max-width: 1180px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 55px; font-size: clamp(17px, 2vw, 24px); }
.contact-links a { border-bottom: 1px solid currentColor; }
.contact-links span { color: var(--muted); }

footer { display: flex; justify-content: space-between; padding: 26px clamp(22px, 4vw, 64px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.lightbox { width: min(94vw, 1600px); max-width: none; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(12,12,12,.92); backdrop-filter: blur(5px); }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; margin: auto; }

.lightbox-full {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(8px);
}
.lightbox-full:hover { background: rgba(0,0,0,.82); }

.lightbox-close { position: fixed; top: 24px; right: 28px; z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 27px; cursor: pointer; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .hero, .project, .construction-grid, .about { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 85px; }
  .hero-media { margin: 10px 0 0; }
  .hero-collage-frame { padding: 18px; }
  .hero-collage-main img { aspect-ratio: 16 / 11; }
  .intro-strip { grid-template-columns: 1fr; }
  .intro-strip p { border-right: 0; border-bottom: 1px solid var(--line); }
  .intro-strip p:last-child { border-bottom: 0; }
  .project-copy, .about-photo { position: static; }
  .construction-grid { width: 100%; }
  .about-photo { max-width: 560px; }
}

@media (max-width: 680px) {
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .brand { width: 36px; height: 36px; font-size: 13px; }
  nav { gap: 14px; font-size: 12px; }
  nav a:nth-child(4) { display: none; }
  .hero h1 { font-size: clamp(64px, 23vw, 100px); }
  .hero-statement { font-size: 22px; }
  .hero-collage-row { grid-template-columns: 1fr; }
  .hero-collage-main img, .hero-collage-row img { aspect-ratio: 4 / 3; }
  .project-gallery { grid-template-columns: 1fr; }
  .tech-preview-meta, .cad-preview-meta { flex-direction: column; gap: 2px; }
  .tech-preview-meta small, .cad-preview-meta small { text-align: left; }
  .image-button.wide { grid-column: auto; }
  .image-button.wide img, .image-button img { aspect-ratio: 4 / 3; object-fit: contain; }
  .construction-gallery { grid-template-columns: 1fr 1fr; }
  .construction-gallery .tall { grid-column: 1 / -1; grid-row: auto; }
  .construction-gallery .tall img { aspect-ratio: 4 / 3; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-links { flex-direction: column; align-items: flex-start; }
  footer { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* CAD preview strategy:
   home page = readable previews; click = original vector PDF */
.cad-preview .image-button { background: #fff; }
.cad-preview.wide .cad-pdf-link img {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
}
.tech-gallery .cad-preview:not(.wide) .cad-pdf-link {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tech-gallery .cad-preview:not(.wide) .cad-pdf-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tech-gallery .cad-preview:last-child .cad-pdf-link {
  aspect-ratio: 16 / 9;
}

/* True-vector CAD previews generated directly from PDF paths. */
.tech-gallery .cad-pdf-link img[src$=".svg"] {
  image-rendering: auto;
  shape-rendering: geometricPrecision;
}
.tech-gallery .cad-preview.wide .cad-pdf-link img[src$=".svg"] {
  width: 100%;
  height: auto;
  max-height: none;
}


/* Original PDF is embedded directly here, so the CAD stays vector at every zoom level. */
.vector-pdf-shell {
  width: 100%;
  aspect-ratio: 1.414 / 1;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.vector-pdf-preview {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.vector-pdf-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vector-sheet .cad-preview-meta a {
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid currentColor;
}


.estuary-sheet { display: flex; flex-direction: column; gap: 10px; }
.estuary-sheet.wide { grid-column: 1 / -1; }
.estuary-pdf-link { display: block; width: 100%; border: 1px solid var(--line); background: #fff; }
.estuary-pdf-link img { width: 100%; height: auto; object-fit: contain; background: #fff; }
.estuary-sheet-meta { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.estuary-sheet-meta span { font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.estuary-sheet-meta small { color: var(--muted); font-size: 11px; }


/* Estuary Bridges — editorial layout */
.project-estuary { align-items: start; }
.project-estuary .project-index { color: #b95f2b; }
.estuary-editorial { display: grid; gap: 14px; }
.estuary-top-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 14px;
}
.estuary-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 0;
  border: 0;
  padding: 0;
  background: #17215c;
  cursor: pointer;
}
.estuary-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.75,.2,1);
}
.estuary-card:hover img { transform: scale(1.018); }
.estuary-ecology-card { aspect-ratio: 1 / 1; }
.estuary-ecology-card img { object-fit: cover; }
.estuary-context-card { aspect-ratio: 1 / 1; background: #eae5da; }
.estuary-card-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  background: rgba(244,241,234,.93);
  color: #151515;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.estuary-strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.estuary-strategy-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.estuary-strategy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(21,21,21,.08);
}
.estuary-strategy-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
}
.estuary-strategy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.estuary-strategy-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 16px;
  border-top: 1px solid var(--line);
}
.estuary-number {
  color: #c65728;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.estuary-strategy-caption strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}
.estuary-strategy-caption small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.estuary-arrow { font-size: 15px; line-height: 1; }
.estuary-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.estuary-source-links a { border-bottom: 1px solid currentColor; }

@media (max-width: 980px) {
  .estuary-top-grid, .estuary-strategy-grid { grid-template-columns: 1fr; }
  .estuary-ecology-card, .estuary-context-card { aspect-ratio: 4 / 3; }
  .estuary-strategy-image { aspect-ratio: 16 / 11; }
}


/* Visual Studies */
.visual-studies { background: #eeeae1; border-top: 1px solid var(--line); }
.visual-studies-head {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 34px;
}
.visual-studies-head h2 { margin: 0; font-size: clamp(46px, 5vw, 80px); line-height: .98; font-weight: 500; letter-spacing: -.04em; }
.visual-studies-head .section-lead { margin: 0; max-width: 620px; }

.visual-studies-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.visual-art-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  background: #fff;
  cursor: zoom-in;
}
.visual-art-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s cubic-bezier(.2,.75,.2,1);
}
.visual-art-card:hover img { transform: scale(1.012); }
.visual-art-card > span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  background: rgba(244,241,234,.94);
  color: #151515;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.visual-city { grid-column: 1 / span 8; aspect-ratio: 1.414 / 1; }
.visual-city img { object-fit: contain; background: #fff; }

.visual-botanical-group {
  grid-column: 9 / span 4;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.botanical-card { aspect-ratio: 16 / 8.4; border: 0; background: #fff; }
.botanical-card img { object-fit: contain; }
.visual-group-label {
  padding-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.visual-figure { grid-column: 1 / span 4; aspect-ratio: 4 / 3; }
.visual-figure img { object-fit: contain; background: #f8f6f1; }
.visual-painting { grid-column: span 4; aspect-ratio: 4 / 5; background: #e5e0d6; }
.visual-painting img { object-fit: cover; }

@media (max-width: 980px) {
  .visual-studies-head { grid-template-columns: 1fr; gap: 18px; }
  .visual-studies-grid { grid-template-columns: 1fr 1fr; }
  .visual-city, .visual-botanical-group { grid-column: 1 / -1; }
  .visual-figure, .visual-painting { grid-column: auto; }
}
@media (max-width: 640px) {
  .visual-studies-grid { grid-template-columns: 1fr; }
  .visual-city, .visual-botanical-group, .visual-figure, .visual-painting { grid-column: 1; }
}


/* Professional positioning refinements */
.construction-employer {
  margin: -12px 0 20px;
  color: #bfc5c0;
  font-size: 13px;
  letter-spacing: .01em;
}
.about .skills-grid h4 {
  line-height: 1.15;
}


.section-note {
  margin: 14px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.visual-note {
  margin-top: 10px;
  font-size: 12px;
}

.visual-studies .section-lead {
  color: #4f4d47;
}
