/* =====================================================================
   VEDRA, Creating Calm in Chaos
   Calm, warm, Mediterranean. Brand palette only, gentle fades only.
   ===================================================================== */

/* Brand typeface: ABC Monument Grotesk (licensed, Dinamo). When Vedra sends the
   web font files, put them in assets/fonts/ with these names and uncomment the
   three rules below. Until then the stack falls back to Inter.
@font-face { font-family: "ABC Monument Grotesk"; font-weight: 300; font-display: swap; src: url("../assets/fonts/ABCMonumentGrotesk-Light.woff2") format("woff2"); }
@font-face { font-family: "ABC Monument Grotesk"; font-weight: 400; font-display: swap; src: url("../assets/fonts/ABCMonumentGrotesk-Regular.woff2") format("woff2"); }
@font-face { font-family: "ABC Monument Grotesk"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ABCMonumentGrotesk-Medium.woff2") format("woff2"); }
*/

:root {
  --barley: #e9e5df;
  --barley-soft: #f1eee9;
  --alabaster: #d0c3be;
  --lava: #777073;
  --sheridan: #5d6776;
  --sage: #969c84;
  --ink: #1c1b1a;
  --ink-soft: #4a4646;
  --line: rgba(28, 27, 26, .14);
  --line-light: rgba(233, 229, 223, .22);

  --font: "ABC Monument Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1360px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* one warm, earthy grade across all photography */
  --grade: sepia(.1) saturate(.9) contrast(.98);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--barley); color: var(--ink); font-family: var(--font);
  font-weight: 400; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 1px solid var(--sheridan); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vh, 150px) 0; }
.section--tight { padding: clamp(56px, 8vh, 96px) 0; }

/* ---------- type ---------- */
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--lava); margin-bottom: 22px; }
.display { font-weight: 300; font-size: clamp(36px, 5vw, 68px); line-height: 1.06; letter-spacing: -.02em; }
.h2 { font-weight: 300; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; letter-spacing: -.015em; }
.h3 { font-weight: 400; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; }
.lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: var(--ink-soft); max-width: 56ch; }
.muted { color: var(--lava); }
.small { font-size: 13px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font-size: 13px;
  letter-spacing: .04em; border: 1px solid currentColor; transition: background .3s var(--ease), color .3s var(--ease); }
.btn:hover { background: var(--ink); color: var(--barley); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--barley); border-color: var(--ink); }
.btn--solid:hover { background: var(--sheridan); border-color: var(--sheridan); }
.btn--light { color: var(--barley); }
.btn--light:hover { background: var(--barley); color: var(--ink); border-color: var(--barley); }
.link-arrow { font-size: 13px; letter-spacing: .03em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); color: var(--ink); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: block; width: clamp(104px, 9vw, 132px); color: inherit; }
.nav__logo svg { display: block; width: 100%; height: auto; }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 34px); font-size: 13px; letter-spacing: .02em; }
.nav__links a { position: relative; padding: 6px 0; opacity: .86; transition: opacity .3s; }
.nav__links a:hover, .nav__links a.active { opacity: 1; }
.nav__links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.nav__burger { display: none; width: 34px; height: 34px; position: relative; }
.nav__burger span { position: absolute; left: 5px; right: 5px; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.nav__burger span:first-child { top: 13px; } .nav__burger span:last-child { top: 20px; }
.nav.solid { background: rgba(233, 229, 223, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
/* over a full-bleed film the nav is light until the page is scrolled */
.nav.on-dark:not(.solid):not(.open) { color: var(--barley); }

.menu { position: fixed; inset: 0; z-index: 49; background: var(--ink); color: var(--barley);
  display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.menu a { font-weight: 300; font-size: clamp(30px, 8vw, 44px); line-height: 1.3; }
.menu__foot { margin-top: 40px; display: grid; gap: 4px; font-size: 13px; color: var(--alabaster); }
.nav.open { color: var(--barley); }
body.menu-open { overflow: hidden; }
body.menu-open .menu { opacity: 1; visibility: visible; }
body.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

/* ---------- reveal: gentle fade only. Content is visible without JS. ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- media frames: images always fill, never letterbox ---------- */
.frame { position: relative; overflow: hidden; background: var(--alabaster); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform 1.4s var(--ease); }
.r-4x3 { aspect-ratio: 4 / 3; } .r-3x2 { aspect-ratio: 3 / 2; } .r-16x10 { aspect-ratio: 16 / 10; } .r-4x5 { aspect-ratio: 4 / 5; }

/* =====================================================================
   01 Landing film
   ===================================================================== */
.landing { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--ink); color: var(--barley); }
.landing__media { position: absolute; inset: 0; }
.landing__media img, .landing__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.landing__night { opacity: 0; animation: dayToNight 26s var(--ease) infinite; }
@keyframes dayToNight { 0%, 18% { opacity: 0; } 46%, 70% { opacity: 1; } 96%, 100% { opacity: 0; } }
.landing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,27,26,.38), rgba(28,27,26,.12) 40%, rgba(28,27,26,.42)); }
.landing__center { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; gap: 18px; padding: 0 var(--gutter); }
.landing__logo { width: min(440px, 68vw); margin: 0 auto; color: var(--barley); opacity: 0; animation: fadeIn 1.6s .2s var(--ease) forwards; }
.landing__logo svg { width: 100%; height: auto; display: block; }
.landing__line { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--barley); opacity: 0; animation: fadeIn 1.6s .9s var(--ease) forwards; }
.landing__bar { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 28px; display: grid;
  grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.landing__track { position: relative; height: 1px; background: var(--line-light); }
.landing__dot { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--barley); animation: dotTravel 26s var(--ease) infinite; }
@keyframes dotTravel { 0%, 18% { left: 0; } 46%, 70% { left: calc(100% - 7px); } 96%, 100% { left: 0; } }
.landing__scroll { position: absolute; z-index: 2; left: 50%; bottom: 58px; transform: translateX(-50%); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.landing.has-video .landing__night, .landing.has-video .landing__dot { animation: none; }
@keyframes fadeIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .landing__night, .landing__dot { animation: none; } .landing__logo, .landing__line { animation: none; opacity: 1; } }

/* =====================================================================
   02 Two doors
   ===================================================================== */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 100px); align-items: end; }
.intro .lede { max-width: 48ch; }
.intro__side p + p { margin-top: 14px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: clamp(48px, 7vh, 84px); }
.door { position: relative; display: block; aspect-ratio: 4 / 4.2; overflow: hidden; color: var(--barley); background: var(--ink); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform 1.6s var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,27,26,.72), rgba(28,27,26,0) 58%); }
.door:hover img { transform: scale(1.03); }
.door__body { position: absolute; z-index: 2; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(22px, 3vw, 40px); }
.door__kicker { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.door__title { font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin: 10px 0 10px; }
.door__text { font-size: 14px; line-height: 1.55; max-width: 40ch; opacity: .9; }
.door__cta { display: inline-block; margin-top: 18px; font-size: 12px; letter-spacing: .04em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
@media (max-width: 800px) {
  .intro { grid-template-columns: 1fr; align-items: start; }
  .doors { grid-template-columns: 1fr; }
  .door { aspect-ratio: 4 / 4.4; }
}

/* =====================================================================
   03 Proof
   ===================================================================== */
.stats { background: var(--sheridan); color: var(--barley); }
.stats__grid { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); align-items: end; padding: clamp(52px, 8vh, 90px) 0; }
.stats__label .eyebrow { color: var(--alabaster); margin-bottom: 10px; }
.stats__label p { font-size: 13px; color: var(--barley); opacity: .85; }
.stat__value { font-weight: 300; font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -.02em; }
.stat__label { margin-top: 10px; font-size: 12px; letter-spacing: .03em; color: var(--alabaster); }
@media (max-width: 800px) {
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .stats__label { grid-column: 1 / -1; }
}

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vh, 56px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font-size: 12px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); transition: all .3s var(--ease); }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--barley); }

.cases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 64px) clamp(20px, 3vw, 44px); }
.case { display: block; transition: opacity .5s var(--ease); }
.case.is-hidden { display: none; }
.case:hover .frame img { transform: scale(1.025); }
.case__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--lava); }
.case__title { font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); margin: 8px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; font-size: 13px; line-height: 1.5; }
.facts dt { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--lava); padding-top: 2px; }
.facts dd { margin: 0; color: var(--ink-soft); }
.tbc { font-style: italic; color: var(--lava); }
.cases__more { margin-top: clamp(40px, 6vh, 64px); }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } .facts { grid-template-columns: 96px 1fr; } }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); padding: clamp(56px, 9vh, 100px) 0; border-top: 1px solid var(--line); margin-top: clamp(56px, 9vh, 100px); }
.quote p { font-weight: 300; font-size: clamp(20px, 2vw, 27px); line-height: 1.35; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 12px; color: var(--lava); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

.logos__row { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); }
.logos__row > * { min-height: 92px; display: grid; place-items: center; border-right: 1px solid var(--line); padding: 18px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--lava); }
.logos__row > *:last-child { border-right: 0; }
.logos__row img { max-height: 40px; width: auto; filter: grayscale(1) opacity(.7); }
.logos__note { margin-top: 12px; font-size: 11px; color: var(--lava); }
@media (max-width: 760px) { .logos__row { grid-template-columns: repeat(3, 1fr); } .logos__row > *:nth-child(3n) { border-right: 0; } .logos__row > *:nth-child(n+4) { border-top: 1px solid var(--line); } }

.capability { margin-top: clamp(48px, 8vh, 88px); background: var(--alabaster); padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.capability .eyebrow { margin-bottom: 8px; }
.capability p { font-size: clamp(18px, 1.6vw, 22px); font-weight: 300; }

/* =====================================================================
   04 Process
   ===================================================================== */
.process__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 100px); align-items: end; margin-bottom: clamp(40px, 6vh, 64px); }
.progress { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin-bottom: 28px; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line); }
.progress__fill { position: absolute; left: 0; top: 4px; height: 1px; background: var(--sheridan); width: 0; transition: width .9s var(--ease); }
.progress__step { position: relative; padding-top: 22px; font-size: 11px; color: var(--lava); transition: color .5s; }
.progress__step::before { content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--barley); border: 1px solid var(--lava); transition: background .5s, border-color .5s; }
.progress__step.on { color: var(--ink); }
.progress__step.on::before { background: var(--sheridan); border-color: var(--sheridan); }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stage { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(22px, 2.6vw, 36px); background: var(--barley-soft); }
.stage__num { font-size: 11px; letter-spacing: .14em; color: var(--lava); }
.stage__title { font-weight: 400; font-size: clamp(19px, 1.6vw, 23px); margin: 6px 0 18px; }
.stage dl { margin: 0; display: grid; gap: 14px; }
.stage dt { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--lava); margin-bottom: 4px; }
.stage dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.stage dd.value { color: var(--sheridan); }
.swipe-hint { display: none; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--lava); margin-bottom: 14px; }
@media (max-width: 900px) {
  .process__head { grid-template-columns: 1fr; }
  .progress { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
  .progress::-webkit-scrollbar { display: none; }
  .progress__step { flex: 0 0 auto; }
  .progress__fill { display: none; }
  .swipe-hint { display: block; }
  /* one stage per card, swiped */
  .stages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border: 0; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .stages::-webkit-scrollbar { display: none; }
  .stage { flex: 0 0 82%; scroll-snap-align: start; border: 1px solid var(--line); }
}

/* full Our Approach page */
.approach-stage { display: grid; grid-template-columns: 120px 1fr 1.3fr; gap: clamp(20px, 4vw, 64px); padding: clamp(40px, 6vh, 72px) 0; border-top: 1px solid var(--line); }
.approach-stage__num { font-weight: 300; font-size: clamp(40px, 4vw, 60px); line-height: 1; color: var(--sheridan); }
.approach-stage h2 { font-weight: 300; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; }
.approach-stage .lede { margin-top: 14px; }
.approach-stage dl { margin: 0; display: grid; gap: 22px; }
.approach-stage dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--lava); margin-bottom: 6px; }
.approach-stage dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
@media (max-width: 860px) { .approach-stage { grid-template-columns: 1fr; gap: 14px; } }

/* =====================================================================
   05 About teaser / Our People
   ===================================================================== */
.story { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.story .frame { aspect-ratio: 4 / 3.4; }
.story p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; max-width: 50ch; }
.story p + p { margin-top: 14px; }
.story .btn { margin-top: 28px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* team: equal boxes, grayscale portraits that turn to colour on hover */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; filter: grayscale(1) contrast(1.03); transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.member:hover .member__photo img, .member:focus-within .member__photo img { filter: grayscale(0) var(--grade); transform: scale(1.03); }
.member__initials { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 300; font-size: clamp(26px, 3vw, 40px); color: var(--alabaster); }
.member__name { margin-top: 10px; font-size: 13px; line-height: 1.3; }
.member__role { font-size: 11px; color: var(--lava); letter-spacing: .03em; }
.team--teaser .member--more .member__photo { background: var(--alabaster); display: grid; place-items: center; font-size: 13px; color: var(--ink); }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (hover: none) { .member__photo img { filter: grayscale(.35) var(--grade); } }

/* office marquee */
.marquee { overflow: hidden; margin-top: clamp(48px, 8vh, 88px); }
.marquee__track { display: flex; gap: 8px; width: max-content; animation: marquee 90s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: clamp(170px, 22vw, 290px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: var(--grade); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.service h3 { font-weight: 400; font-size: clamp(19px, 1.6vw, 23px); margin: 18px 0 10px; }
.service p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.service ul { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.service li { font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

.side-note { background: var(--barley-soft); border-left: 2px solid var(--sage); padding: clamp(22px, 3vw, 34px); }
.side-note p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.side-note p + p { margin-top: 12px; }

/* =====================================================================
   06 Musings
   ===================================================================== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.post { display: block; }
.post:hover .frame img { transform: scale(1.03); }
.post__tag { margin-top: 16px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--lava); }
.post__title { font-weight: 400; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; margin: 6px 0 6px; }
.post__excerpt { font-size: 13px; color: var(--ink-soft); }
.post__time { margin-top: 8px; font-size: 11px; color: var(--lava); }
@media (max-width: 860px) {
  .posts--swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .posts--swipe::-webkit-scrollbar { display: none; }
  .posts--swipe .post { flex: 0 0 78%; scroll-snap-align: start; }
  .posts:not(.posts--swipe) { grid-template-columns: 1fr; }
}

.article { max-width: 720px; margin: 0 auto; }
.article__body p { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; color: var(--ink-soft); }
.article__body p + p { margin-top: 1.1em; }
.notice { font-size: 12px; color: var(--lava); border: 1px dashed var(--lava); padding: 10px 14px; margin-bottom: 28px; }

/* =====================================================================
   07 Contact (dark) + footer
   ===================================================================== */
.contact { background: var(--ink); color: var(--barley); }
.contact .eyebrow { color: var(--alabaster); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); margin-top: clamp(36px, 6vh, 60px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--alabaster); }
.field input, .field textarea { font: inherit; font-size: 15px; color: var(--barley); background: transparent; border: 0;
  border-bottom: 1px solid var(--line-light); padding: 8px 0; border-radius: 0; transition: border-color .3s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--barley); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; font-size: 12px; padding: 8px 15px; border: 1px solid var(--line-light); border-radius: 999px; cursor: pointer; transition: all .3s var(--ease); }
.choice input:checked + span { background: var(--barley); color: var(--ink); border-color: var(--barley); }
.choice input:focus-visible + span { outline: 1px solid var(--barley); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__status { font-size: 13px; color: var(--alabaster); }
.hp { position: absolute; left: -9999px; }
.map { position: relative; aspect-ratio: 16 / 10; background: #2a2928; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.18) contrast(.9) brightness(.82); }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; font-size: 13px; line-height: 1.6; }
.details .label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--lava); margin-bottom: 6px; }
.details a:hover { color: var(--alabaster); }
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr 1fr; }
}

.footer { background: var(--ink); color: var(--alabaster); border-top: 1px solid var(--line-light); padding: 26px 0; font-size: 12px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__logo { width: 92px; color: var(--barley); }
.footer__logo svg { display: block; width: 100%; height: auto; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--barley); }

/* ---------- inner page head ---------- */
.pagehead { padding: calc(var(--nav-h) + clamp(56px, 10vh, 120px)) 0 clamp(40px, 7vh, 80px); }
.pagehead .lede { margin-top: 24px; }
.pagehead--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 100px); align-items: end; }
@media (max-width: 860px) { .pagehead--split { grid-template-columns: 1fr; } }

/* ---------- projects page: images two thirds, sector notes one third ---------- */
.work { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.work .cases { grid-template-columns: 1fr 1fr; }
.work__note { position: sticky; top: calc(var(--nav-h) + 24px); }
.work__note h3 { font-weight: 300; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin-bottom: 14px; }
.work__note p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.work__note p + p { margin-top: 12px; }
.fade-swap { transition: opacity .4s var(--ease); }
@media (max-width: 960px) { .work { grid-template-columns: 1fr; } .work__note { position: static; order: -1; } }
@media (max-width: 620px) { .work .cases { grid-template-columns: 1fr; } }

/* ---------- single project ---------- */
.p-hero { padding-top: var(--nav-h); }
.p-hero .frame { aspect-ratio: 16 / 8; max-height: 78vh; width: 100%; }
@media (max-width: 760px) { .p-hero .frame { aspect-ratio: 4 / 3.4; } }
.p-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 6vw, 100px); }
.p-intro .overview p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; color: var(--ink-soft); }
.p-intro .overview p + p { margin-top: 1em; }
.p-facts { border-top: 1px solid var(--line); }
.p-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.p-facts dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--lava); padding-top: 3px; }
.p-facts dd { margin: 0; color: var(--ink-soft); }
.p-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.p-story h3 { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--lava); font-weight: 400; margin-bottom: 12px; padding-top: 16px; border-top: 1px solid var(--ink); }
.p-story p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.p-delivery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.p-delivery > div { background: var(--barley-soft); padding: 22px; }
.p-delivery dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--lava); margin-bottom: 8px; }
.p-delivery dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery .frame { aspect-ratio: 3 / 2; }
.gallery .frame.wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.p-next { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .p-intro, .p-story { grid-template-columns: 1fr; }
  .p-delivery { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .frame.wide { aspect-ratio: 3 / 2; }
}

/* ---------- careers ---------- */
.roles { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.role h3 { font-weight: 400; font-size: 19px; }
.role p { font-size: 13px; color: var(--lava); }
@media (max-width: 700px) { .role { grid-template-columns: 1fr; gap: 8px; } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.values h3 { font-weight: 400; font-size: 19px; margin-bottom: 10px; padding-top: 16px; border-top: 1px solid var(--ink); }
.values p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

.placeholder-box { border: 1px dashed var(--lava); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field .choice { text-transform: none; letter-spacing: normal; font-size: 12px; color: var(--barley); }
.stages, .posts--swipe { scroll-padding-inline: var(--gutter); }
.tagline { font-size: 13px; letter-spacing: .02em; color: var(--lava); margin-top: 22px; }

/* =====================================================================
   Inner page hero: the landing idea at page scale. Full-bleed photo,
   title over it, light nav until scrolled.
   ===================================================================== */
.hero { position: relative; height: 72vh; height: 72svh; min-height: 460px; max-height: 820px; overflow: hidden; background: var(--ink); color: var(--barley); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--grade); animation: heroSettle 2.4s var(--ease) both; }
@keyframes heroSettle { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,27,26,.42), rgba(28,27,26,.1) 34%, rgba(28,27,26,.74)); }
.hero__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(36px, 7vh, 76px); }
.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.hero .eyebrow { color: var(--alabaster); }
.hero .display { opacity: 0; animation: fadeIn 1.4s .3s var(--ease) forwards; }
.hero .lede { color: var(--barley); opacity: 0; animation: fadeIn 1.4s .7s var(--ease) forwards; }
.hero--short { height: 58vh; height: 58svh; min-height: 400px; }
@media (max-width: 860px) {
  .hero { height: 78svh; }
  .hero__inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hero img, .hero .display, .hero .lede { animation: none; opacity: 1; } }
.after-hero { padding-top: clamp(56px, 9vh, 110px); }

/* Our Approach: progress line that follows the stages */
.progress--sticky { position: sticky; top: var(--nav-h); z-index: 5; background: var(--barley); padding: 18px 0 10px; margin-bottom: 0; }
.progress--sticky .progress__step a { color: inherit; }

/* Musings: the latest article leads */
.posts--lead .post:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: clamp(16px, 3vh, 32px); }
.posts--lead .post:first-child .post__title { font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; margin: 10px 0 14px; }
.posts--lead .post:first-child .post__excerpt { font-size: 16px; }
.posts--lead .post:first-child .post__tag { margin-top: 0; }
@media (max-width: 860px) { .posts--lead .post:first-child { grid-template-columns: 1fr; } }

/* stats band inside inner pages */
.stats--inline .stats__grid { padding: clamp(40px, 6vh, 64px) 0; }
.posts--lead { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .posts--lead { grid-template-columns: 1fr; } }
