:root {
  --paper: #f5f5f3;
  --ink: #20211f;
  --muted: #74736e;
  --rule: #d9d8d2;
  --gold: #b19a4e;
  --rail: 200px;
  --pad: clamp(24px, 4vw, 64px);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 13px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.site-rail { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--rail); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--rule); padding: 50px 34px 42px; background: rgba(245,245,243,.97); }
.rail-top { display: flex; justify-content: space-between; align-items: flex-start; }
.brand { display: inline-flex; flex-direction: column; width: max-content; letter-spacing: .02em; line-height: 1; }
.brand-name { font-size: 25px; font-weight: 700; letter-spacing: -.06em; }
.brand-name::first-letter { color: var(--gold); }
.brand-subtitle { margin-top: 4px; font-size: 9px; letter-spacing: .03em; }
.site-navigation { margin-top: 120px; }
.site-nav-list { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav-list a { position: relative; color: #55544f; text-transform: uppercase; font-size: 11px; font-weight: 500; letter-spacing: .05em; }
.site-nav-list a.is-active, .site-nav-list a:hover { color: var(--gold); }
.site-nav-list a.is-active::before { content: ""; position: absolute; right: calc(100% + 14px); top: 50%; width: 12px; height: 1px; background: var(--gold); }
.rail-bottom { color: var(--muted); }
.language-switch { display: flex; gap: 10px; margin: 0 0 24px; font-size: 11px; font-weight: 600; }
.language-switch a { color: var(--gold); }
.language-separator { color: var(--rule); }
.social-links { display: flex; gap: 22px; }
.social-links a { font-size: 21px; font-weight: 700; }
.mobile-menu-toggle { display: none; border: 0; background: transparent; padding: 4px; }
.mobile-menu-toggle span:not(.screen-reader-text) { display: block; width: 20px; height: 1px; margin: 4px; background: var(--ink); }

.site-main { margin-left: var(--rail); min-height: calc(100vh - 140px); }
.section-block { border-bottom: 1px solid var(--rule); padding: 30px var(--pad); }
.eyebrow, .project-card-type, .publication-date { margin: 0; text-transform: uppercase; color: #54534f; font-size: 10px; font-weight: 600; letter-spacing: .07em; }
.gold-line { display: inline-block; vertical-align: middle; width: 16px; height: 1px; margin-right: 10px; background: var(--gold); }
.gold-rule { display: block; width: 42px; height: 2px; margin-top: 18px; background: var(--gold); }
.text-link { display: inline-flex; align-items: center; gap: 13px; color: #41413d; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.text-link span { color: var(--gold); font-size: 17px; line-height: .5; }

.home-hero { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(420px, 1.75fr); min-height: 375px; border-bottom: 1px solid var(--rule); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 42px 40px 42px var(--pad); }
.hero-copy h1, .archive-hero h1, .project-intro h1 { margin: 34px 0 0; font-size: clamp(31px, 3.25vw, 50px); font-weight: 400; line-height: 1.08; letter-spacing: .035em; text-transform: uppercase; }
.hero-copy .hero-text { max-width: 300px; margin: 34px 0 24px; color: #74736e; font-size: 13px; }
.hero-media { position: relative; min-height: 375px; overflow: hidden; }
.hero-media a, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-counter { position: absolute; right: 23px; bottom: 14px; padding-left: 38px; color: white; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.hero-counter::before { content: "•••"; position: absolute; left: 0; color: white; letter-spacing: 5px; }
.hero-empty, .project-card-placeholder { display: block; height: 100%; min-height: 260px; background: linear-gradient(135deg, #dcdbd4, #bfc0b8); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.project-filter-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.project-filter-links a { color: #76756f; font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.project-filter-links a.is-active, .project-filter-links a:hover { color: var(--gold); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.project-grid-featured { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.project-card { min-width: 0; }
.project-card-image { display: block; height: clamp(150px, 14vw, 230px); overflow: hidden; background: #e4e3de; }
.project-grid-featured .project-card-image { height: clamp(120px, 10.5vw, 165px); }
.project-card-image img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-card-image img { transform: scale(1.035); }
.project-card-type { margin-top: 10px; color: #88867d; font-size: 8px; }
.project-card h3 { margin: 2px 0 0; overflow: hidden; font-size: 12px; font-weight: 500; letter-spacing: .02em; line-height: 1.3; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.project-card .gold-rule { width: 18px; height: 1px; margin-top: 8px; }

.home-lower { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(400px, 1.55fr); gap: 40px; }
.about-panel { padding-right: 35px; border-right: 1px solid var(--rule); }
.about-content { display: grid; grid-template-columns: .8fr 1.15fr; gap: 24px; margin-top: 30px; }
.about-drawing { min-height: 152px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); background: repeating-linear-gradient(-18deg, transparent 0 9px, rgba(32,33,31,.1) 10px 11px); color: #72716b; font-size: 22px; letter-spacing: .19em; line-height: 1.4; text-align: center; }
.about-content p { margin: 0 0 14px; color: #66655f; }
.publication-panel .section-heading { margin-bottom: 20px; }
.publication-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.publication-card { display: grid; grid-template-columns: 95px 1fr; gap: 12px; }
.publication-card img { width: 95px; height: 130px; object-fit: cover; }
.publication-card h3 { margin: 8px 0 22px; font-size: 11px; font-weight: 600; line-height: 1.4; text-transform: uppercase; }
.publication-card .text-link { font-size: 8px; }

.archive-hero { padding-top: 65px; padding-bottom: 35px; }
.archive-hero h1 { margin-top: 26px; }
.archive-filters { margin-top: 30px; }
.archive-projects { padding-top: 0; }
.pagination-wrap { margin-top: 36px; }
.nav-links { display: flex; gap: 14px; }
.nav-links a, .nav-links .current { padding: 5px 9px; border: 1px solid var(--rule); }
.nav-links .current { border-color: var(--gold); color: var(--gold); }
.empty-message { color: var(--muted); }

.project-detail { padding-top: 42px; }
.project-intro { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(460px, 1.8fr); gap: 50px; }
.project-intro h1 { margin-top: 25px; font-size: clamp(30px, 3.1vw, 48px); }
.project-intro .eyebrow { line-height: 1.9; }
.project-intro .eyebrow span { margin: 0 8px; color: var(--gold); }
.project-facts { display: grid; grid-template-columns: 92px 1fr; gap: 7px 20px; margin: 32px 0; color: #73716b; font-size: 12px; }
.project-facts dt { color: #45443f; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.project-facts dd { margin: 0; }
.project-description { max-width: 380px; color: #6e6d67; }
.project-description:empty { display: none; }
.project-gallery { min-width: 0; }
.project-hero-image { position: relative; display: block; width: 100%; height: min(55vw, 550px); padding: 0; overflow: hidden; border: 0; background: #e2e1dc; cursor: zoom-in; }
.project-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.project-image-expand { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; color: white; background: rgba(32,33,31,.7); font-size: 9px; font-weight: 700; letter-spacing: .08em; opacity: 0; text-transform: uppercase; transition: opacity .2s ease; }
.project-hero-image:hover .project-image-expand, .project-hero-image:focus-visible .project-image-expand { opacity: 1; }
.gallery-meta { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.gallery-arrows { color: #575650; font-size: 17px; }
.project-thumbnails { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); gap: 7px; overflow-x: auto; }
.project-thumbnail { display: block; padding: 0; overflow: hidden; border: 1px solid transparent; background: #e2e1dc; cursor: pointer; }
.project-thumbnail.is-active { border-color: var(--gold); }
.project-thumbnail img { width: 100%; height: 105px; object-fit: cover; }
.has-lightbox-open { overflow: hidden; }
.project-lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; grid-template-columns: minmax(42px, 1fr) minmax(0, 12fr) minmax(42px, 1fr); align-items: center; gap: 16px; padding: 56px 5vw 38px; background: rgba(19,20,18,.96); }
.project-lightbox[hidden] { display: none; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; max-height: 100%; margin: 0; }
.lightbox-figure img { width: auto; max-width: 100%; max-height: calc(100vh - 118px); object-fit: contain; }
.lightbox-figure figcaption { margin-top: 11px; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.lightbox-close, .lightbox-nav { border: 0; color: white; background: transparent; cursor: pointer; }
.lightbox-close { position: absolute; top: 19px; right: 26px; font-size: 34px; font-weight: 200; line-height: 1; }
.lightbox-nav { padding: 12px; font-size: 31px; font-weight: 300; }
.project-pagination { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.standard-posts { max-width: 850px; }
.standard-post { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.standard-post h2 { margin: 7px 0 12px; font-size: 24px; font-weight: 400; }

.site-footer { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.05fr auto; gap: 26px; margin-left: var(--rail); padding: 20px var(--pad); border-top: 1px solid var(--rule); background: var(--paper); color: #6f6e68; font-size: 10px; }
.site-footer p, .footer-brand { margin: 0; }
.footer-brand { display: flex; flex-direction: column; gap: 3px; font-size: 10px; }
.footer-brand strong { color: #3c3c37; letter-spacing: .05em; }
.back-to-top { align-self: center; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 1099px) {
  :root { --rail: 0px; --pad: 30px; }
  .site-rail { position: sticky; width: 100%; height: auto; min-height: 74px; flex-direction: row; align-items: center; padding: 18px 30px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .rail-top { align-items: center; width: auto; }
  .brand-name { font-size: 21px; }
  .site-navigation { display: block; margin: 0 0 0 auto; }
  .site-nav-list { flex-direction: row; gap: 18px; }
  .site-nav-list a.is-active::before, .rail-bottom { display: none; }
  .site-main, .site-footer { margin-left: 0; }
  .project-grid-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-lower { grid-template-columns: 1fr; }
  .about-panel { padding-right: 0; padding-bottom: 32px; border-right: 0; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 700px) {
  :root { --pad: 20px; }
  body { font-size: 12px; }
  .site-rail { position: relative; padding: 16px 20px; }
  .mobile-menu-toggle { display: block; }
  .site-navigation { display: none; position: absolute; inset: 64px 0 auto; margin: 0; padding: 20px; border-bottom: 1px solid var(--rule); background: var(--paper); }
  .site-navigation.is-open { display: block; }
  .site-nav-list { gap: 14px; }
  .site-nav-list a { font-size: 10px; }
  .home-hero, .project-intro { grid-template-columns: 1fr; }
  .home-hero { min-height: 0; }
  .hero-copy { min-height: 330px; padding: 42px var(--pad); }
  .hero-media { min-height: 260px; }
  .section-heading { align-items: start; flex-direction: column; }
  .project-grid, .project-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .project-card-image, .project-grid-featured .project-card-image { height: 32vw; min-height: 130px; }
  .project-card h3 { white-space: normal; font-size: 11px; }
  .about-content { grid-template-columns: 1fr; }
  .about-drawing { min-height: 125px; }
  .publication-grid { grid-template-columns: 1fr; }
  .project-detail { padding-top: 25px; }
  .project-intro { gap: 32px; }
  .project-hero-image { height: 66vw; }
  .project-thumbnails { grid-auto-columns: 88px; }
  .project-thumbnail img { height: 88px; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .back-to-top { grid-column: 1 / -1; }
}
