:root {
  --ink: #203027;
  --paper: #f3f0e8;
  --paper-deep: #e6e0d3;
  --green: #294d3a;
  --green-deep: #173426;
  --sage: #9aab91;
  --line: rgba(32, 48, 39, .2);
  --white: #fffdf8;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
p { margin: 0 0 1rem; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: var(--white); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 84px; padding: .8rem clamp(1rem, 5vw, 5rem); border-bottom: 1px solid var(--line); background: rgba(243, 240, 232, .94); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--paper); background: var(--green); font-family: var(--serif); font-size: 1rem; letter-spacing: .08em; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.1; }
.brand small { display: block; margin-top: .15rem; color: #5a685f; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.main-nav a { position: relative; padding: .6rem 0; text-decoration: none; font-size: .88rem; letter-spacing: .04em; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: .25rem; left: 0; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; border: 0; background: transparent; }

.eyebrow { margin: 0 0 1.1rem; color: #5c6e61; font-size: .73rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1.35rem; border: 1px solid var(--green); color: var(--white); background: var(--green); text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .05em; transition: color .2s ease, background .2s ease; }
.button:hover { color: var(--green); background: transparent; }
.button-light { border-color: var(--paper); color: var(--green-deep); background: var(--paper); }
.button-light:hover { color: var(--paper); background: transparent; }
.text-link { display: inline-flex; gap: .8rem; align-items: center; padding-bottom: .25rem; border-bottom: 1px solid currentColor; text-decoration: none; font-size: .84rem; font-weight: 700; letter-spacing: .04em; }

.home-hero { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(480px, 1.2fr); gap: clamp(2rem, 6vw, 7rem); min-height: calc(100vh - 84px); padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 6vw, 7rem); overflow: hidden; }
.home-hero-copy { align-self: center; max-width: 570px; }
.home-hero h1 { margin: 0 0 2rem; font-size: clamp(4rem, 8.2vw, 8.5rem); letter-spacing: -.055em; }
.home-hero .lead { max-width: 34rem; margin-bottom: 2rem; font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-collage { position: relative; min-height: 600px; }
.hero-collage figure { margin: 0; overflow: hidden; background: var(--paper-deep); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-main { position: absolute; inset: 0 10% 13% 0; }
.hero-small { position: absolute; border: 8px solid var(--paper); }
.hero-small-one { right: 0; bottom: 0; width: 42%; height: 43%; }
.hero-small-two { top: 5%; right: 0; width: 28%; height: 26%; }

.intro-band { display: grid; grid-template-columns: .55fr 1.2fr .7fr; gap: 3rem; align-items: start; padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 6vw, 7rem); color: var(--paper); background: var(--green-deep); }
.intro-band .eyebrow { color: var(--sage); }
.intro-band blockquote { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); letter-spacing: -.035em; }
.intro-band > p:last-child { max-width: 28rem; }

.featured-projects, .archive-grid, .project-documentation, .about-section, .contact-details, .legal-content { padding-right: clamp(1rem, 6vw, 7rem); padding-left: clamp(1rem, 6vw, 7rem); }
.featured-projects { padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: clamp(5rem, 10vw, 9rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-heading h2 { margin: 0; font-size: clamp(3rem, 5vw, 5rem); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem 1.4rem; }
.project-card { grid-column: span 4; }
.project-card:nth-child(2), .project-card:nth-child(5) { transform: translateY(3rem); }
.project-card a { text-decoration: none; }
.project-card figure, .archive-card figure { margin: 0; overflow: hidden; background: var(--paper-deep); }
.project-card figure { aspect-ratio: 4 / 5; }
.project-card img, .archive-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.project-card a:hover img, .archive-card a:hover img { transform: scale(1.035); }
.project-card div { position: relative; padding: 1.2rem .1rem; border-bottom: 1px solid var(--line); }
.project-card span { color: #67766b; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { margin: .4rem 2rem .2rem 0; font-size: clamp(1.5rem, 2vw, 2rem); }
.project-card b { position: absolute; right: .1rem; bottom: 1.5rem; }

.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 9rem); padding-top: clamp(5rem, 10vw, 10rem); padding-bottom: clamp(5rem, 10vw, 10rem); border-top: 1px solid var(--line); }
.about-title h2 { position: sticky; top: 130px; margin: 0; font-size: clamp(2.7rem, 4.5vw, 4.8rem); }
.prose { max-width: 760px; font-family: var(--serif); font-size: clamp(1.08rem, 1.4vw, 1.25rem); }
.prose p:first-child { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-band { display: flex; align-items: end; justify-content: space-between; gap: 3rem; padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 6vw, 7rem); color: var(--paper); background: var(--green); }
.contact-band .eyebrow { color: #c3d0c0; }
.contact-band h2 { max-width: 800px; margin: 0; font-size: clamp(2.6rem, 5vw, 5rem); }

.page-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 6vw, 7rem); }
.page-intro .eyebrow { grid-column: 1 / -1; }
.page-intro h1 { margin: 0; font-size: clamp(4rem, 9vw, 9rem); letter-spacing: -.055em; }
.page-intro > p:last-child { align-self: end; max-width: 38rem; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.7rem); }
.archive-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3.5rem 1.5rem; padding-bottom: clamp(6rem, 12vw, 11rem); }
.archive-card { grid-column: span 4; }
.archive-card:nth-child(5n + 2), .archive-card:nth-child(5n + 4) { grid-column: span 8; }
.archive-card a { text-decoration: none; }
.archive-card figure { aspect-ratio: 16 / 11; }
.archive-card div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.archive-card p { margin: 0; color: #617066; font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.archive-card h2 { margin: .4rem 0 .8rem; font-size: clamp(1.8rem, 3vw, 3rem); }
.archive-card span { display: flex; justify-content: space-between; font-size: .8rem; }

.page-hero { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 72vh; background: var(--paper-deep); }
.page-hero-copy { align-self: center; padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 6vw, 7rem); }
.page-hero h1 { margin: 0 0 2rem; font-size: clamp(3.8rem, 7.5vw, 7.5rem); letter-spacing: -.05em; overflow-wrap: anywhere; }
.page-hero-copy > p:not(.eyebrow) { max-width: 34rem; font-family: var(--serif); font-size: 1.25rem; }
.page-hero figure { margin: 0; min-height: 520px; }
.page-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.project-documentation { max-width: 1500px; margin: 0 auto; padding-top: clamp(5rem, 10vw, 10rem); padding-bottom: 4rem; }
.project-section { scroll-margin-top: 110px; margin-bottom: clamp(5rem, 9vw, 9rem); }
.project-section > h2 { max-width: 900px; margin: 0 0 2.5rem; font-size: clamp(2.4rem, 4.8vw, 5rem); }
.project-section > p, .project-section > ul, .project-section > ol, .project-section > blockquote { max-width: 780px; margin: 0 0 1.5rem; font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.23rem); }
.project-section > blockquote { padding-left: 1.5rem; border-left: 2px solid var(--green); }
.section-rule { margin: 5rem 0; border: 0; border-top: 1px solid var(--line); }
.gallery { columns: 3 300px; column-gap: 1.25rem; margin: 2.5rem 0; }
.gallery-item { break-inside: avoid; margin: 0 0 1.25rem; background: var(--white); }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--paper-deep); }
.gallery-item img { width: 100%; height: auto; transition: opacity .2s ease; }
.gallery-item button:hover img { opacity: .88; }
.gallery-item figcaption { padding: .7rem .8rem .85rem; color: #4f5f54; font-size: .75rem; line-height: 1.45; }
.next-project { display: flex; align-items: center; justify-content: flex-end; gap: 2rem; padding: 2.5rem clamp(1rem, 6vw, 7rem); border-top: 1px solid var(--line); }
.next-project a { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.5rem); text-decoration: none; }

.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 9vw, 9rem); }
.contact-details h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4.2rem); }
.email-control { min-height: 2rem; }
.email-reveal { padding: 0 0 .15rem; border: 0; border-bottom: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.email-reveal:hover, .email-reveal:focus-visible { color: var(--sage); }
.email-output:empty { display: none; }
.contact-email-control .email-reveal, .contact-email { display: inline-block; max-width: 100%; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 3rem); overflow-wrap: anywhere; text-decoration: none; }
.contact-email { border-bottom: 1px solid currentColor; }
.footer-email-control .email-output a { color: inherit; text-underline-offset: .2em; overflow-wrap: anywhere; }
.email-obfuscated { overflow-wrap: anywhere; }

.legal-header { padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 6vw, 7rem) clamp(3rem, 6vw, 6rem); border-bottom: 1px solid var(--line); }
.legal-header h1 { margin: 0; font-size: clamp(4rem, 9vw, 9rem); letter-spacing: -.05em; }
.legal-content { max-width: 980px; margin: 0 auto; padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: clamp(5rem, 10vw, 10rem); }
.legal-content h2 { scroll-margin-top: 110px; margin: 4rem 0 1.2rem; font-size: clamp(2rem, 3.3vw, 3.3rem); }
.legal-content h3 { margin: 2.8rem 0 1rem; font-size: clamp(1.4rem, 2.2vw, 2.1rem); }
.legal-content p, .legal-content li { max-width: 850px; }
.legal-content ul, .legal-content ol { padding-left: 1.4rem; }
.legal-content a { text-decoration-thickness: 1px; text-underline-offset: .2em; }

.site-footer { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 6vw, 7rem) 2rem; color: #d9dfd8; background: #12271d; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 4rem; }
.footer-brand { color: var(--white); font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); text-decoration: none; }
.footer-grid h2 { margin: .4rem 0 1rem; color: #aab9ad; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid ul { columns: 2; margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: .45rem; }
.footer-grid a { text-underline-offset: .2em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .75rem; }
.footer-bottom span:last-child { display: flex; gap: 1.5rem; }

.lightbox { width: min(94vw, 1400px); max-width: none; height: min(92vh, 1000px); padding: 3.5rem 1rem 1rem; border: 0; color: var(--white); background: #0d1812; }
.lightbox::backdrop { background: rgba(6, 12, 8, .88); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; height: calc(100% - 2.5rem); object-fit: contain; }
.lightbox p { margin: .7rem auto 0; text-align: center; font-size: .78rem; }
.lightbox-close { position: absolute; top: .6rem; right: 1rem; border: 0; color: var(--white); background: transparent; cursor: pointer; font-size: 2rem; }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-collage { min-height: 650px; }
  .intro-band { grid-template-columns: 1fr 1fr; }
  .intro-band blockquote { grid-column: 1 / -1; }
  .project-card { grid-column: span 6; }
  .project-card:nth-child(2), .project-card:nth-child(5) { transform: none; }
  .about-section, .page-hero { grid-template-columns: 1fr; }
  .about-title h2 { position: static; }
  .page-hero figure { min-height: 60vw; order: -1; }
  .archive-card, .archive-card:nth-child(5n + 2), .archive-card:nth-child(5n + 4) { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .brand small { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .nav-toggle { display: grid; gap: 5px; padding: .7rem; cursor: pointer; }
  .nav-toggle > span:not(.sr-only) { display: block; width: 25px; height: 1px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; padding: 1rem clamp(1rem, 5vw, 5rem) 2rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; }
  .home-hero { min-height: auto; padding-top: 4rem; }
  .home-hero h1 { font-size: clamp(4rem, 21vw, 6.5rem); }
  .hero-collage { min-height: 480px; }
  .hero-main { inset: 0 5% 12% 0; }
  .hero-small-one { width: 48%; height: 42%; }
  .hero-small-two { display: none; }
  .intro-band { grid-template-columns: 1fr; }
  .intro-band blockquote { grid-column: auto; }
  .section-heading { align-items: start; flex-direction: column; }
  .project-card { grid-column: 1 / -1; }
  .project-grid { gap: 2rem; }
  .contact-band { align-items: start; flex-direction: column; }
  .page-intro { grid-template-columns: 1fr; }
  .page-intro .eyebrow { grid-column: auto; }
  .archive-card, .archive-card:nth-child(5n + 2), .archive-card:nth-child(5n + 4) { grid-column: 1 / -1; }
  .page-hero h1 { font-size: clamp(3.5rem, 17vw, 5.5rem); }
  .gallery { columns: 2 220px; }
  .contact-details { grid-template-columns: 1fr; }
  .next-project { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-grid ul { columns: 1; }
  .footer-bottom { align-items: start; flex-direction: column; }
}

@media (max-width: 480px) {
  .gallery { columns: 1; }
  .hero-collage { min-height: 390px; }
  .project-section > h2 { overflow-wrap: anywhere; }
}

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