/* =========================================================
   VL&Y Construction — site styles
   Craftsman palette: linen paper, charcoal siding, cedar timber,
   Methow pine. Fraunces (serif display) + Inter (text & labels).
   ========================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-variable.woff2") format("woff2");
}

:root {
  --paper: #f5f0e8;
  --paper-2: #ece4d6;
  --ink: #1e1c19;
  --ink-soft: #46413a;
  --muted: #7a7166;
  --line: #ddd3c3;
  --cedar: #9c5a2e;
  --cedar-dark: #7a4321;
  --pine: #26302a;
  --pine-2: #313d35;
  --on-dark: #efe8dc;
  --on-dark-muted: #b9b09f;
  --red: #d7261e;

  --maxw: 1360px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --header-h: 84px;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 380;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}
em { font-style: italic; }
h1 em, h2 em { color: var(--cedar); font-weight: 340; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--cedar); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--pine); color: var(--on-dark); }

/* Small caps label, echoing the logo's tracked "CONSTRUCTION LLC" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cedar);
  margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: ""; width: 2.25rem; height: 1px; background: currentColor;
}
.section--dark .eyebrow,
.section--dark h2 em { color: #d39a6a; }

.section-title {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  max-width: 18ch;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head p { color: var(--ink-soft); max-width: 46ch; margin: 0; }
.section--dark .section-head p { color: var(--on-dark-muted); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(30, 28, 25, .5);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 2.5rem; }
.primary-nav ul {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
}
.primary-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.4rem 0;
  background: linear-gradient(var(--cedar), var(--cedar)) left bottom / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.primary-nav a:not(.btn):hover { background-size: 100% 1px; color: var(--cedar-dark); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05em 1.9em;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
  cursor: pointer;
}
.btn:hover { background: var(--cedar-dark); border-color: var(--cedar-dark); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(245, 240, 232, .6); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--sm { padding: 0.85em 1.4em; font-size: 0.7rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding-bottom: 4px; border-bottom: 1px solid var(--cedar);
  transition: color .2s, gap .3s var(--ease);
}
.text-link:hover { color: var(--cedar-dark); gap: 1em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--pine);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  transform: scale(1.04);
  animation: hero-zoom 14s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 20, .05) 30%, rgba(20, 22, 20, .72) 100%),
    linear-gradient(90deg, rgba(20, 22, 20, .45), rgba(20, 22, 20, 0) 65%);
}
.hero-content {
  position: relative; z-index: 1;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}
.hero .eyebrow { color: #f0c9a4; }
.hero h1 {
  font-size: clamp(2.9rem, 7.6vw, 6.4rem);
  font-weight: 340;
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.hero h1 em { color: #f0c9a4; }
.hero-sub {
  margin: 1.75rem 0 2.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 44ch;
  color: rgba(255, 255, 255, .88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-credit {
  position: absolute; right: var(--gutter); bottom: 1.5rem; z-index: 1;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
@media (max-width: 680px) { .hero-credit { display: none; } }

/* ---------- Intro / philosophy ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.intro-statement {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  font-weight: 340;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0;
}
.intro-statement em { color: var(--cedar); }
.intro-body p { color: var(--ink-soft); margin: 0 0 1.25rem; }
.intro-body .signature {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink);
  margin-top: 2rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}
.fact { padding: 2rem 1.5rem 0 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact strong {
  display: block;
  font-family: var(--serif); font-weight: 340;
  font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1;
  color: var(--ink);
}
.fact span { display: block; margin-top: .8rem; color: var(--muted); font-size: .95rem; max-width: 22ch; }
@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Featured work ---------- */
.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  text-decoration: none; color: inherit;
}
.work-media { overflow: hidden; background: var(--paper-2); position: relative; }
.work-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
a:hover .work-media img { transform: scale(1.035); }
.work-feature .work-media { aspect-ratio: 4 / 3; }
.work-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1rem;
}
.work-title { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 1.25rem; }
.work-text p { color: var(--ink-soft); margin: 0 0 1.75rem; max-width: 42ch; }
.work-quote {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5;
  color: var(--ink); margin: 0 0 2rem; padding-left: 1.25rem; border-left: 2px solid var(--cedar);
}

.work-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}
.work-card { text-decoration: none; color: inherit; display: block; }
.work-card .work-media { aspect-ratio: 5 / 4; margin-bottom: 1.5rem; }
.work-card .work-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .6rem; }
.work-card p { color: var(--ink-soft); margin: 0 0 1.25rem; max-width: 46ch; }
.work-card:nth-child(2) { margin-top: clamp(0rem, 8vw, 7rem); }
@media (max-width: 820px) {
  .work-feature, .work-pair { grid-template-columns: 1fr; }
  .work-card:nth-child(2) { margin-top: 0; }
}

/* ---------- Details mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 240px);
  gap: clamp(8px, 1.2vw, 16px);
}
.mosaic figure { margin: 0; position: relative; overflow: hidden; background: #ddd; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem .9rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}
.m1 { grid-column: span 5; grid-row: span 2; }
.m2 { grid-column: span 4; }
.m3 { grid-column: span 3; grid-row: span 2; }
.m4 { grid-column: span 4; }
.m5 { grid-column: span 4; }
.m6 { grid-column: span 8; }
@media (max-width: 820px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .mosaic figure { grid-column: span 1; grid-row: span 1; }
  .m1, .m6 { grid-column: span 2; }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: 2.25rem 1.75rem 2.5rem 0;
}
.service + .service { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.service .num {
  font-family: var(--serif); font-style: italic; color: var(--cedar); font-size: 1.05rem;
}
.service h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: .9rem 0 .9rem; }
.service p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 1.25rem; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li {
  font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: .45rem 0; border-top: 1px dashed var(--line);
}
@media (max-width: 1020px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 2rem 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
}

/* ---------- Process (dark) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 2.25rem; border-top: 1px solid rgba(239, 232, 220, .22); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -0.85rem; left: 0;
  background: var(--pine); padding-right: .9rem;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #d39a6a;
}
.step h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); margin-bottom: .9rem; color: var(--on-dark); }
.step p { color: var(--on-dark-muted); margin: 0; font-size: .98rem; }
@media (max-width: 1020px) { .process { grid-template-columns: 1fr 1fr; row-gap: 3.5rem; } }
@media (max-width: 620px) { .process { grid-template-columns: 1fr; } }

.process-figure {
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 16px);
}
.process-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.process-figure figcaption {
  grid-column: 1 / -1;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted);
  margin-top: .5rem;
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.testimonial { margin: 0; }
.testimonial .mark {
  font-family: var(--serif); font-size: 5rem; line-height: .6; color: var(--cedar);
  display: block; height: 2.25rem;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--serif); font-weight: 340;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.38;
}
.testimonial figcaption {
  margin-top: 1.75rem; display: flex; align-items: center; gap: 1rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.testimonial figcaption span { color: var(--muted); font-weight: 500; }
.testimonial figcaption::before { content: ""; width: 2rem; height: 1px; background: var(--ink); }
@media (max-width: 820px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--pine);
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22, 26, 23, .86) 0%, rgba(22, 26, 23, .6) 55%, rgba(22, 26, 23, .25) 100%);
}
.cta .container {
  position: relative; z-index: 1;
  padding-block: clamp(5rem, 12vw, 10rem);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: end;
}
.cta .eyebrow { color: #f0c9a4; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 340; max-width: 12ch; }
.cta h2 em { color: #f0c9a4; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 44ch; margin: 1.5rem 0 0; }
.contact-card {
  background: rgba(245, 240, 232, .08);
  border: 1px solid rgba(245, 240, 232, .22);
  backdrop-filter: blur(6px);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.contact-row { padding: 1.1rem 0; border-bottom: 1px solid rgba(245, 240, 232, .18); }
.contact-row:first-child { padding-top: 0; }
.contact-row .label {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .65); margin: 0 0 .35rem;
}
.contact-row a, .contact-row span.value {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  text-decoration: none; color: #fff; word-break: break-word;
}
.contact-row a:hover { color: #f0c9a4; }
.contact-card .btn { margin-top: 1.75rem; width: 100%; justify-content: center; }
@media (max-width: 900px) { .cta .container { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer-brand img { height: 64px; width: auto; }
.footer-brand p { color: var(--ink-soft); max-width: 32ch; margin: 1.25rem 0 0; font-size: .95rem; }
.footer-col h4 {
  font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .3rem 0; font-size: .95rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--cedar-dark); }
.footer-base {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: var(--muted);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Project detail page ---------- */
.project-hero {
  position: relative;
  min-height: clamp(420px, 78svh, 820px);
  display: grid; align-items: end;
  color: #fff; overflow: hidden; background: var(--pine);
}
.project-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 20, 0) 35%, rgba(20, 22, 20, .75) 100%);
}
.project-hero .container { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.project-hero .eyebrow { color: #f0c9a4; }
.project-hero .eyebrow a { text-decoration: none; }
.project-hero .eyebrow a:hover { color: #fff; }
.project-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); font-weight: 340; max-width: 16ch; letter-spacing: -0.02em; }

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.project-lead {
  font-family: var(--serif); font-weight: 340;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.42; margin: 0;
}
.project-facts {
  margin: 0;
  border-top: 1px solid var(--ink);
}
.project-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.project-facts dt {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding-top: .25rem;
}
.project-facts dd { margin: 0; }
.project-highlights { list-style: none; padding: 0; margin: 0; }
.project-highlights li { position: relative; padding-left: 1.1rem; }
.project-highlights li + li { margin-top: .35rem; }
.project-highlights li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 5px; height: 5px; background: var(--cedar); transform: rotate(45deg);
}
@media (max-width: 820px) { .project-intro { grid-template-columns: 1fr; } }

.project-quote {
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  max-width: 900px; text-align: center;
}
.project-quote .mark { font-family: var(--serif); font-size: 5rem; line-height: .6; color: var(--cedar); display: block; height: 2.25rem; }
.project-quote blockquote {
  margin: 0; font-family: var(--serif); font-weight: 340; font-style: italic;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem); line-height: 1.36;
}
.project-quote figcaption {
  margin-top: 1.75rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.project-quote figcaption span { color: var(--muted); font-weight: 500; }

.gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.gallery-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.gallery-head p { margin: 0; color: var(--muted); font-size: .9rem; }

.gallery { columns: 3 300px; column-gap: 12px; }
.gallery button {
  display: block; width: 100%;
  padding: 0; margin: 0 0 12px; border: 0; background: var(--paper-2);
  cursor: zoom-in; overflow: hidden; break-inside: avoid;
}
.gallery img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.03); }

.project-next {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.project-next .label { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.project-next h3 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 340; transition: color .25s; }
.project-next:hover h3 { color: var(--cedar-dark); }
.project-next .circle {
  width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--ink); display: grid; place-items: center; font-size: 1.5rem;
  transition: background .25s, color .25s, transform .4s var(--ease);
}
.project-next:hover .circle { background: var(--ink); color: var(--paper); transform: translateX(6px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20, 20, 18, .95);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox .lb-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer;
  padding: 0 1rem; opacity: .75;
}
.lightbox .lb-nav:hover { opacity: 1; }
.lightbox .lb-prev { left: .5rem; }
.lightbox .lb-next { right: .5rem; }
.lightbox .lb-count {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .7); font-size: .78rem; letter-spacing: .18em;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .1s; }
.js .reveal-d2 { transition-delay: .2s; }
.js .reveal-d3 { transition-delay: .3s; }

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 var(--gutter) 1.75rem;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-top: 1px solid var(--line); }
  .primary-nav a:not(.btn) { display: block; padding: 1rem 0; }
  .primary-nav .btn { margin-top: 1rem; justify-content: center; }
}

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