/* ==========================================================================
   Dubreville Atelier - design system (dark, cinematic, architectural)
   Approved v2 direction. Photography leads; UI stays quiet.
   ========================================================================== */

:root {
  /* Palette (warm, dark-first) */
  --ink:        #14110E;
  --bg:         #211C18;   /* primary dark canvas */
  --bg-alt:     #2A241F;   /* lifted section */
  --bg-deep:    #1A1512;   /* deepest bands */
  --cream:      #F4EFE6;
  --bone:       #EAE3D6;
  --sand:       #D8CDBB;
  --stone:      #A89A85;   /* muted captions / secondary */
  --stone-soft: #8C8071;
  --clay:       #B4704F;   /* accent, used sparingly */
  --white:      #FCFAF5;

  --text:       #E9E2D6;   /* body text on dark */
  --text-dim:   #B3A895;   /* secondary body text */
  --hairline:   rgba(216, 205, 187, 0.16);

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(22px, 5vw, 96px);
  --section-y: clamp(90px, 12vw, 190px);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-y: visible;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; color: var(--cream); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--white);
}
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow.clay { color: var(--clay); }

.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.prose p { max-width: 62ch; margin-bottom: 1.25em; color: var(--text-dim); }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--stone); }

/* Layout helpers ---------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(60px, 8vw, 120px); }
.bg-alt { background: var(--bg-alt); }
.bg-deep { background: var(--bg-deep); }
.hairline { height: 1px; background: var(--hairline); border: 0; }

/* Links / buttons --------------------------------------------------------- */
.link {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  padding-bottom: 4px;
  position: relative;
}
.link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--clay); transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.link:hover::after { transform: scaleX(1); }
.link .arrow { transition: transform .4s ease; display: inline-block; }
.link:hover .arrow { transform: translateX(5px); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(244,239,230,0.5);
  padding: 16px 32px;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: var(--white); }
.btn--ink:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* Navigation -------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 2.2vw, 30px) var(--gutter);
  transition: background .5s ease, padding .5s ease, box-shadow .5s ease;
}
.nav.scrolled {
  background: rgba(26, 21, 18, 0.92);
  backdrop-filter: blur(10px);
  padding-top: 16px; padding-bottom: 16px;
  box-shadow: 0 1px 0 var(--hairline);
}
.nav__brand img { height: clamp(30px, 3vw, 40px); width: auto; }
.nav__brand .wordmark { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .16em; color: var(--cream); }
.nav__brand .wordmark small { display: block; font-family: var(--sans); font-size: .5rem; letter-spacing: .42em; color: var(--stone); text-align: center; margin-top: 2px; }
.nav__links { display: flex; gap: clamp(20px, 2.4vw, 40px); align-items: center; }
.nav__links a {
  font-family: var(--sans); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream);
  position: relative; padding-bottom: 3px; opacity: .92;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--clay); transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.nav__links a:hover::after, .nav__links a.current::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 30px; height: 18px; position: relative; z-index: 110; }
.nav__toggle span { position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--cream); transition: transform .35s ease, opacity .35s ease; }
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { bottom: 0; }
body.menu-open .nav__toggle span:nth-child(1) { top: 8px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { bottom: 8px; transform: rotate(-45deg); }

/* Mobile overlay menu */
.nav__overlay {
  position: fixed; inset: 0; z-index: 105;
  background: var(--bg-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
}
body.menu-open .nav__overlay { opacity: 1; visibility: visible; }
.nav__overlay a { font-family: var(--serif); font-size: 1.9rem; color: var(--cream); }
.nav__overlay a:hover { color: var(--clay); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.hero__media, .hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,17,14,.55) 0%, rgba(20,17,14,.36) 30%, rgba(20,17,14,.38) 58%, rgba(20,17,14,.74) 100%);
}
.hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding-inline: var(--gutter);
}
.hero .eyebrow { color: rgba(244,239,230,.85); margin-bottom: 22px; }
.hero__title { max-width: 15ch; margin-inline: auto; }
.hero__sub { margin-top: 26px; max-width: 60ch; color: rgba(244,239,230,.9); font-size: 1.02rem; line-height: 1.6; }
.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; }
.hero__scroll .eyebrow { font-size: .62rem; }
.hero__scroll .line { width: 1px; height: 46px; background: rgba(244,239,230,.45); margin: 12px auto 0; }

/* Centered statement ------------------------------------------------------ */
.statement { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.statement .eyebrow { margin-bottom: 14px; }
.statement__note { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--stone); }

/* Featured projects (editorial grid) ------------------------------------- */
.work__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.feature { display: block; margin-top: clamp(48px, 7vw, 96px); }
.feature:first-of-type { margin-top: 40px; }
.feature__media { position: relative; overflow: hidden; }
.feature__media img { width: 100%; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.feature:hover .feature__media img { transform: scale(1.045); }
.feature--flagship .feature__media { aspect-ratio: 16 / 9; }
.feature--flagship .feature__media img { height: 100%; object-fit: cover; }
.feature__brand {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.feature__brand .mark { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: .12em; }
.feature__brand img.mark-logo { width: 400px; height: 136px; max-width: 70%; object-fit: contain; }
.feature__brand .sub { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; opacity: .9; margin-top: 12px; }
.feature__meta { display: flex; align-items: baseline; gap: 20px; margin-top: 22px; }
.feature__meta .name { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--cream); }
.feature__meta .desc { margin-left: auto; color: var(--stone); font-size: .95rem; }

/* Split feature (alternating) */
.feature--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.feature--split.reverse .feature__media { order: 2; }
.feature--split .feature__body .eyebrow { margin-bottom: 14px; }
.feature--split .feature__body .name { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--cream); margin-bottom: 14px; }
.feature--split .feature__body p { color: var(--text-dim); margin-bottom: 22px; max-width: 40ch; }
.feature--split .feature__media { aspect-ratio: 4 / 3; }
.feature--split .feature__media img { height: 100%; object-fit: cover; }
.work__all { text-align: center; margin-top: clamp(60px, 8vw, 110px); }

/* Difference pillars ------------------------------------------------------ */
.pillars { margin-top: 20px; }
.pillar { display: grid; grid-template-columns: 120px 1.2fr 1.4fr; gap: clamp(20px, 4vw, 60px); align-items: start; padding-block: clamp(30px, 4vw, 48px); border-top: 1px solid var(--hairline); }
.pillar:last-child { border-bottom: 1px solid var(--hairline); }
.pillar__num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--clay); font-weight: 300; line-height: 1; }
.pillar__title { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--cream); padding-top: 6px; }
.pillar__body { color: var(--text-dim); padding-top: 10px; }

/* Founder ----------------------------------------------------------------- */
.founder { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.founder__quote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.24; color: var(--cream); letter-spacing: -0.01em; }
.founder__bio { margin-top: 26px; color: var(--text-dim); max-width: 46ch; }
.founder__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* CTA band ---------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,17,14,.82) 0%, rgba(20,17,14,.5) 50%, rgba(20,17,14,.35) 100%); }
.cta__inner { position: relative; z-index: 2; padding-block: clamp(110px, 15vw, 220px); }
.cta__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 3.8rem); color: var(--white); max-width: 16ch; line-height: 1.08; }
.cta__inner .btn { margin-top: 34px; }

/* Footer ------------------------------------------------------------------ */
.footer { background: var(--bg-deep); padding-block: clamp(60px, 8vw, 96px); border-top: 1px solid var(--hairline); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.footer__brand img { height: 40px; margin-bottom: 20px; }
.footer__brand p { color: var(--stone); max-width: 30ch; font-size: .95rem; }
.footer h4 { font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 20px; }
.footer__col a, .footer__col p { display: block; color: var(--text-dim); font-size: .95rem; margin-bottom: 12px; transition: color .3s ease; }
.footer__col a:hover { color: var(--cream); }
.footer__base { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(50px, 7vw, 80px); padding-top: 26px; border-top: 1px solid var(--hairline); }
.footer__base p { color: var(--stone-soft); font-size: .78rem; letter-spacing: .04em; }
.footer__base a { color: var(--stone); transition: color .3s ease; }
.footer__base a:hover { color: var(--cream); }
.footer__sep { opacity: .45; margin: 0 6px; }
.footer__base .eyebrow { font-size: .64rem; }

/* Page headers (interior) ------------------------------------------------- */
.page-hero { padding-top: clamp(150px, 20vh, 240px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero__title { max-width: 18ch; }
.page-hero__lead { margin-top: 24px; max-width: 56ch; font-size: clamp(1.12rem, 1.9vw, 1.5rem); line-height: 1.5; }

/* Image-backed interior hero (full-bleed, like the home) */
.page-hero--media { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; padding: 0; }
.page-hero--media .page-hero__bg { position: absolute; inset: 0; }
.page-hero--media .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--media .page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,17,14,.5) 0%, rgba(20,17,14,.2) 38%, rgba(20,17,14,.85) 100%); }
.page-hero--media .wrap { position: relative; z-index: 2; width: 100%; padding-top: clamp(150px, 22vh, 240px); padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero--media .page-hero__title, .page-hero--media .display { color: var(--white); }
.page-hero--media .page-hero__lead { color: rgba(244,239,230,.9); }
.page-hero--media .eyebrow { color: rgba(244,239,230,.85); }

/* Capability strip / lists */
.caps { display: flex; flex-wrap: wrap; gap: 14px 10px; margin-top: 8px; }
.caps li { border: 1px solid var(--hairline); padding: 10px 18px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }

/* Process steps ----------------------------------------------------------- */
.step { display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; padding-block: clamp(30px, 4vw, 46px); border-top: 1px solid var(--hairline); }
.process-list .step:last-child { border-bottom: 1px solid var(--hairline); }
.step__num { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--clay); font-weight: 300; }
.step__title { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--cream); margin-bottom: 10px; }
.step__body { color: var(--text-dim); max-width: 52ch; }

/* Timeline: horizontal rail, grouped by year (year label + underline per group) */
.tlx { display: flex; margin-top: 48px; }
.tlx__group { flex-basis: 0; padding-right: 26px; }
.tlx__group:last-child { padding-right: 0; }
.tlx__year { font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--cream); padding-bottom: 12px; border-bottom: 1px solid var(--clay); margin-bottom: 30px; }
.tlx__items { display: flex; position: relative; }
.tlx__items::before { content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--hairline); }
.tlx__item { flex: 1 1 0; position: relative; padding: 26px 14px 0 0; transition: opacity .35s ease; }
.tlx__item::before { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-alt); border: 1.5px solid var(--clay); z-index: 2; transition: background .5s ease, transform .35s ease; }
/* Scroll-in: dots fill left to right in sequence when the timeline enters view */
.tlx.in .tlx__item::before { background: var(--clay); transition-delay: calc(var(--i, 0) * 0.09s), 0s; }
/* Focus dim: hovering one milestone softens the others */
.tlx:hover .tlx__item { opacity: .4; }
.tlx:hover .tlx__item:hover { opacity: 1; }
.tlx__item:hover::before { background: var(--clay); transform: scale(1.25); }
.tlx__when { display: block; min-height: 1em; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.tlx__what { display: block; color: var(--text-dim); font-size: .86rem; margin-top: 7px; max-width: 16ch; transition: color .35s ease; }
.tlx__item:hover .tlx__what { color: var(--cream); }
.timeline__foot { margin-top: 34px; color: var(--stone); font-size: .9rem; }

/* Image bands (process / founder) */
.img-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 16px); margin-top: clamp(40px, 6vw, 80px); }
.img-band figure { overflow: hidden; aspect-ratio: 3 / 2; }
.img-band figure a { display: block; width: 100%; height: 100%; }
.img-band img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.img-band figure a:hover img { transform: scale(1.045); }
.img-full { margin-top: clamp(40px, 6vw, 80px); overflow: hidden; aspect-ratio: 16 / 7; }
.img-full img { width: 100%; height: 100%; object-fit: cover; }

/* Services (Atelier) */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 24px; }
.service { border-top: 1px solid var(--hairline); padding-top: 22px; }
.service h3 { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--cream); margin-bottom: 10px; }
.service p { color: var(--text-dim); max-width: 44ch; }

/* Founder approach */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.approach__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Project details / materials */
.proj-details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.proj-details h4 { font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.proj-details p { color: var(--text-dim); }
.placeholder-note { color: var(--stone-soft); font-style: italic; }

/* Legal / policy pages */
.legal { max-width: 68ch; margin-inline: auto; }
.legal h2 { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--cream); margin: 40px 0 14px; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 14px; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal .review-note { border: 1px solid var(--hairline); padding: 16px 20px; color: var(--stone); font-size: .88rem; margin-bottom: 30px; }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a { color: var(--stone-soft); font-size: .78rem; transition: color .3s ease; }
.footer__legal a:hover { color: var(--cream); }

/* Projects index: scroll-pinned fullscreen sequence, snaps between projects */
.proj-pin { background: var(--bg); }
.proj-pin__track { position: relative; }
.proj-pin__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg); }

.proj-panel {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}
.proj-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-panel__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,16,12,.42) 0%, rgba(20,16,12,0) 28%, rgba(20,16,12,0) 50%, rgba(20,16,12,.78) 100%);
}
.proj-panel--empty { background: var(--bg-alt); }
.proj-panel--empty .proj-panel__scrim { display: none; }

.proj-panel__body { position: absolute; left: 0; bottom: 0; width: 100%; padding-bottom: clamp(60px, 10vh, 128px); }
.proj-panel__title { font-size: clamp(2.6rem, 7.5vw, 6.6rem); line-height: .96; color: var(--white); margin-top: 16px; }
.proj-panel img.proj-panel__logo { display: block; position: initial; width: 300px; height: 102px; max-width: 60vw; object-fit: contain; margin-top: 16px; }
.proj-panel__desc { margin-top: 20px; max-width: 42ch; color: rgba(252,250,245,.85); font-size: clamp(.94rem, 1.3vw, 1.15rem); line-height: 1.5; }
.proj-panel__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; color: rgba(252,250,245,.7); font-size: .82rem; letter-spacing: .04em; }

.proj-pin__index {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-end;
  pointer-events: none; z-index: 10;
}
.proj-pin__index span { font-family: var(--serif); font-size: .95rem; color: var(--white); opacity: .35; transition: opacity .35s ease; }
.proj-pin__index span.is-active { opacity: 1; }

@media (max-width: 760px) {
  .proj-pin__index { display: none; }
}

/* Single project ---------------------------------------------------------- */
.project-hero { position: relative; height: 86vh; min-height: 560px; overflow: hidden; }
.project-hero__media, .project-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,17,14,.4), rgba(20,17,14,.15) 40%, rgba(20,17,14,.75)); }
.project-hero__inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: clamp(50px, 8vw, 90px); text-align: center; }
.project-hero__inner .name { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 7vw, 5rem); color: var(--white); letter-spacing: .04em; }
.project-hero__logo { width: clamp(220px, 26vw, 420px); height: auto; margin-inline: auto; }
.facts { border-block: 1px solid var(--hairline); padding-block: 36px; }
.facts__top { display: flex; flex-wrap: wrap; gap: 60px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--hairline); }
.facts__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts .k { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.facts .v { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); }
/* Gallery lead image (full width) */
.gallery__lead { display: block; overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: clamp(10px, 1.4vw, 16px); }
.gallery__lead img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.gallery__lead:hover img { transform: scale(1.03); }

/* Uniform 2-column gallery grid (consistent tile size, no gaps) */
.jgallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 16px); }
.jgallery__item { display: block; aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.jgallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.jgallery__item:hover img { transform: scale(1.04); }
.lb { cursor: zoom-in; }

/* Full-width project video (muted autoplay loop) */
.project-video { width: 100%; background: var(--bg-deep); line-height: 0; }
.project-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(15,12,10,.97); }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__btn { position: absolute; color: var(--cream); background: none; border: 0; cursor: pointer; opacity: .8; transition: opacity .3s ease; line-height: 1; font-family: var(--serif); }
.lightbox__btn:hover { opacity: 1; }
.lightbox__close { top: 20px; right: 26px; font-size: 2rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); font-size: 2.6rem; padding: 10px 18px; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--stone); font-size: .78rem; letter-spacing: .18em; }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.field { margin-bottom: 30px; }
.field label { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hairline);
  color: var(--cream); font-family: var(--sans); font-size: 1rem; padding: 10px 0; transition: border-color .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); }
.field select { color: var(--text-dim); }
.field option { background: var(--bg); color: var(--cream); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-detail { margin-bottom: 30px; }
.contact-detail .k { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.contact-detail .v { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); }

/* Fluent Forms, styled to match the site (dark underline inputs) */
.fluentform .ff-el-group { margin-bottom: 26px; }
.fluentform .ff-el-input--label label,
.fluentform label.ff-el-input--label { display: block; margin-bottom: 10px; font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.fluentform .ff-el-is-required-star,
.fluentform .ff-el-input--label .text-danger,
.fluentform label span[class*="required"],
.fluentform .ff-el-is-required label:after { color: var(--clay) !important; }
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="number"],
.fluentform textarea,
.fluentform select,
.fluentform .ff-el-form-control {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hairline);
  border-radius: 0; box-shadow: none; color: var(--cream); font-family: var(--sans);
  font-size: 1rem; line-height: 1.5; padding: 10px 0; height: auto; transition: border-color .3s ease;
}
.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus,
.fluentform .ff-el-form-control:focus { outline: none; background: transparent; border-color: var(--clay); box-shadow: none; }
.fluentform textarea { resize: vertical; min-height: 120px; }
.fluentform select { color: var(--text-dim); }
.fluentform select option { background: var(--bg); color: var(--cream); }
.fluentform ::placeholder { color: var(--stone-soft); opacity: 1; }
.fluentform .ff-t-container { gap: clamp(16px, 3vw, 32px); }
.fluentform .ff-btn-submit,
.fluentform button.ff-btn-submit,
.fluentform button[type="submit"],
.form-embed button[type="submit"] {
  background: transparent !important; color: var(--cream) !important;
  border: 1px solid rgba(244,239,230,0.5) !important; border-radius: 0 !important;
  padding: 16px 32px !important; margin-top: 8px; box-shadow: none !important; cursor: pointer;
  font-family: var(--sans); font-weight: 500; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.fluentform .ff-btn-submit:hover,
.fluentform button.ff-btn-submit:hover,
.fluentform button[type="submit"]:hover,
.form-embed button[type="submit"]:hover { background: var(--clay) !important; border-color: var(--clay) !important; color: var(--white) !important; }
.ff-message-success { color: var(--clay); font-family: var(--serif); font-size: 1.2rem; }
.fluentform .text-danger,
.fluentform .error { color: #cc8f6e; font-size: .82rem; }

/* Motion reveal ----------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .statement, .founder, .feature--split, .contact-grid, .proj-grid { grid-template-columns: 1fr; }
  .feature--split.reverse .feature__media { order: 0; }
  .founder__media { order: -1; max-width: 340px; }
  .pillar, .step { grid-template-columns: 1fr; gap: 10px; }
  .pillar__num, .step__num { font-size: 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__base { flex-direction: column; gap: 14px; text-align: center; }
  .feature__meta { flex-direction: column; gap: 4px; }
  .feature__meta .desc { margin-left: 0; }
  .gallery__lead { aspect-ratio: 3 / 2; }
  .lightbox__prev, .lightbox__next { font-size: 2rem; padding: 8px 12px; }
  .services, .approach, .proj-details { grid-template-columns: 1fr; }
  .approach__media { max-width: 340px; order: -1; }
  .img-band { grid-template-columns: 1fr; }
  /* Timeline stacks: year groups vertical, items vertical with a left rail */
  .tlx { flex-direction: column; gap: 34px; }
  .tlx__group { padding-right: 0; }
  .tlx__items { flex-direction: column; padding-left: 24px; }
  .tlx__items::before { top: 4px; bottom: 4px; left: 5px; right: auto; width: 1px; height: auto; }
  .tlx__item { padding: 0 0 18px 0; }
  .tlx__item::before { top: 2px; left: -19px; }
  .tlx__what { max-width: none; }
  .facts__row { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .facts__top { gap: 30px; }
  .proj-panel img.proj-panel__logo { width: 220px; height: 75px; }
}
@media (max-width: 600px) {
  .page-hero__lead { font-size: 1.08rem; line-height: 1.5; }
  .hero__sub { font-size: .95rem; }
  .lead { font-size: 1.3rem; }
  .jgallery { grid-template-columns: 1fr; }
  .proj-panel img.proj-panel__logo { width: 170px; height: 58px; }
}
@media (max-width: 475px) {
  .footer__sep { display: none; }
  .footer__copy, .footer__credit { display: block; }
  .footer__credit { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature:hover .feature__media img, .proj-card:hover .proj-card__media img, .jgallery__item:hover img { transform: none; }
  .tlx__item::before { transition: none !important; }
  .tlx__item:hover::before { transform: none; }
  .tlx:hover .tlx__item { opacity: 1; }
}
