/* =============================================================
   D&D INVESTINGS — Landing page
   Palette v3 — anchored on the official Company Colors:
     primary (espresso olive-black) ... #26221A
     secondary (muted khaki) .......... #797255
   Everything else derived to match their warmth.
   Layout model reference: leveragecompanies.com
   ============================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette — names kept stable; values = palette v3 */
  --ink:        #26221a;  /* primary / dark surface (official) */
  --ink-800:    #2f2a20;  /* raised surface on dark */
  --ink-700:    #3d3729;  /* hairlines on dark */
  --olive:      #797255;  /* secondary / accent (official) */
  --olive-600:  #655e45;  /* accent deep — links & body on light */
  --olive-200:  #b8b296;  /* accent light — captions on dark */
  --bone:       #e7e3d6;  /* body text on dark */
  --paper:      #efebdf;  /* light page background */
  --paper-2:    #e0dbcb;  /* alternate light section */
  --white:      #ffffff;  /* raised card surface */

  /* Semantic */
  --bg:         var(--paper);
  --text:       var(--ink);
  --text-soft:  #6e6857;
  --accent:     var(--olive-600);
  --line:       rgba(38, 34, 26, 0.14);
  --line-soft:  rgba(38, 34, 26, 0.08);

  /* Type */
  --font-display: "Jost", "Century Gothic", "Futura", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-hero:  clamp(2.75rem, 1.2rem + 6.4vw, 6.25rem);
  --fs-h2:    clamp(2rem, 1.2rem + 3.2vw, 3.75rem);
  --fs-h3:    clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --fs-lede:  clamp(1.1rem, 1rem + 0.55vw, 1.4rem);
  --fs-body:  1rem;
  --fs-small: 0.82rem;

  /* Layout */
  --container: 1320px;
  --gutter:    clamp(1.25rem, 0.6rem + 3.2vw, 4rem);
  --section:   clamp(4.5rem, 2rem + 9vw, 9.5rem);
  --radius:    2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.19, 1);
  --dur:  0.7s;

  --header-h: 78px;
}
/* ---------- 1b. Brand fonts (self-hosted) ----------
   All three faces are served from assets/fonts/ on our own origin. Nothing is
   fetched from fonts.googleapis.com, fonts.gstatic.com or fonts.cdnfonts.com
   any more, so there is no third-party code path into the page and no visitor
   IP is handed to another company just to render text.

   unicode-range is copied verbatim from Google's own CSS: the browser still
   only downloads latin-ext if the page actually uses a character from it.

   Jost is a VARIABLE font - a single file covers the whole 300-400 range,
   which is why one @font-face carries a weight range instead of two rules.

   No local() lookup: it lets a page probe which fonts a visitor has installed
   (a fingerprinting signal) and can silently render a different version of the
   face. Always use our copy.

   Licences - Jost and Inter: SIL Open Font License 1.1.
              Arkhip: 1001Fonts FFC. Commercial use and webfont embedding are
              permitted; MODIFICATION IS NOT, so arkhip.woff is shipped exactly
              as downloaded - do not subset or re-convert it.
   ---------------------------------------------------- */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Arkhip";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/arkhip.woff") format("woff");
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }

/* ---------- 3. Utilities ---------- */
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 0.5rem + 2vw, 2.25rem);
  row-gap: clamp(2rem, 6vw, 4rem);
}
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
/* explicit start / end — column 5 (or 6) is left as a visual gutter */
.col-1-4  { grid-column: 1 / 5; }
.col-6-12 { grid-column: 6 / 13; }
.col-1-5  { grid-column: 1 / 6; }
.col-7-12 { grid-column: 7 / 13; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  transform: translateY(-150%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* ---------- 4. Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 5. Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 150;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--olive);
  transition: transform 0.1s linear;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--paper);
}
.site-header.is-scrolled {
  background: rgba(239, 235, 223, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  color: var(--ink);
  box-shadow: 0 1px 30px rgba(38, 34, 26, 0.06);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  flex: none;
  width: 30px; height: 41px;
  /* monogram only, transparent background — blends on any surface */
  background: url("assets/logo-mark.svg") center / contain no-repeat;
}
.brand__name {
  font-family: "Arkhip", var(--font-display); font-weight: 400;
  font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.brand__name em { font-style: normal; font-weight: inherit; opacity: 1; }

/* Nav */
.nav { display: flex; align-items: center; }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav__menu a {
  font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase;
  position: relative; padding-block: 0.4rem;
}
.nav__menu a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta {
  border: 1px solid currentColor; padding: 0.6rem 1.1rem !important;
  border-radius: var(--radius);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.site-header.is-scrolled .nav__cta:hover { background: var(--ink); color: var(--paper); }
.site-header:not(.is-scrolled) .nav__cta:hover { background: var(--paper); color: var(--ink); }

/* Burger */
.nav__toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; position: relative;
}
.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: ""; position: absolute; left: 10px;
  width: 24px; height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle-bar { top: 50%; }
.nav__toggle-bar::before { top: -7px; }
.nav__toggle-bar::after  { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: rotate(90deg) translateX(-7px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after  { opacity: 0; }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-size: 0.85rem; letter-spacing: 0.09em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all 0.3s var(--ease);
}
.btn--solid { background: var(--olive); color: var(--ink); }
.btn--solid:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--block { width: 100%; justify-content: center; }
.btn--line {
  padding: 0; border: 0; border-bottom: 1px solid currentColor;
  border-radius: 0; padding-bottom: 0.4rem;
}
.btn--line:hover .btn__arrow { transform: translateX(6px); }
.btn__arrow { transition: transform 0.3s var(--ease); }

/* ---------- 8. Eyebrow / section chrome ---------- */
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.8rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: currentColor;
}
.eyebrow--light { color: var(--olive-200); }

.section { padding-block: var(--section); }
.section--dark  { background: var(--ink);   color: var(--bone); --line: rgba(231,227,214,0.16); }
.section--muted { background: var(--paper-2); }

.section__head { max-width: 46ch; }
.section__head--row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
  max-width: none; margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section__head--row > div { flex: 1 1 20rem; max-width: 34rem; }
.section__head-note { flex: 0 1 34ch; max-width: 40ch; color: var(--text-soft); }
.section--dark .section__head-note { color: var(--olive-200); }

.section__index {
  font-family: var(--font-display);
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem;
}
.section__index--light { color: var(--olive-200); }
.section__title { font-size: var(--fs-h2); margin-top: 0.5rem; }

.lede { font-size: var(--fs-lede); color: var(--text); max-width: 52ch; }
.section--dark .lede { color: var(--paper); }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: calc(var(--header-h) + 3rem) clamp(2rem, 6vw, 4rem);
  color: var(--paper);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(38,34,26,0.34) 0%, rgba(38,34,26,0.72) 62%, rgba(38,34,26,0.94) 100%),
    linear-gradient(115deg, #2f2a20 0%, #524b39 46%, #797255 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(231,227,214,0.05) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg,  rgba(231,227,214,0.04) 0 1px, transparent 1px 88px);
  mask-image: linear-gradient(180deg, transparent, #000 30%);
}

.hero__inner { display: flex; flex-direction: column; gap: clamp(1.5rem, 4vw, 2.75rem); }

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 300;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.hero__title span { display: block; overflow: hidden; }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(231, 227, 214, 0.22);
}
.hero__lede { font-size: var(--fs-lede); max-width: 46ch; color: #e3dfd1; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(2rem, 6vw, 4rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 60px; background: rgba(231, 227, 214, 0.5);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--paper);
  animation: scrollpulse 2.2s var(--ease) infinite;
}
@keyframes scrollpulse {
  0%   { transform: translateY(-100%); }
  60%,100% { transform: translateY(100%); }
}

/* ---------- 10. Feature list (About) ---------- */
.feature-list { margin-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); }
.feature-list li {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: 1rem 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.feature-list__k { font-family: var(--font-display); font-size: 1.05rem; }
.feature-list__v { color: var(--text-soft); }

/* ---------- 11. Stats ---------- */
.stats__grid {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.stat:nth-child(4n) { border-right: 0; }
.stat__num {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--white);
}
.stat__label {
  display: block; margin-top: 1rem;
  font-size: 0.9rem; color: var(--olive-200); max-width: 24ch;
}

/* ---------- 12. Capability cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}
.card {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -30px rgba(38, 34, 26, 0.35);
  border-color: var(--olive);
}
.card__num {
  font-family: var(--font-display); font-size: 0.85rem;
  letter-spacing: 0.2em; color: var(--accent);
}
.card__title { font-size: var(--fs-h3); }
.card__text { color: var(--text-soft); flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.card__tags li {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 100px;
  color: var(--text-soft);
}

/* ---------- 13. Portfolio (asymmetric grid) ---------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.project { grid-column: span 12; }
.project--lg { grid-column: span 7; }
.project--sm { grid-column: span 5; }
/* zig-zag: pull the 2nd feature to the right on wide screens */
@media (min-width: 1025px) {
  .project--lg:nth-of-type(4) { grid-column: 6 / 13; }
}

.project__link { display: block; }
.project__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  transition: transform 0.6s var(--ease);
  /* Replace these gradients with real photography:
     .project__media--1 { background-image: url("images/foundry.jpg"); } */
}
.project--lg .project__media { aspect-ratio: 16 / 9; }
.project__link:hover .project__media { transform: scale(1.03); }
.project__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(38, 34, 26, 0.5));
}
.project__media--1 { background-image: linear-gradient(135deg, #3d3729, #797255); }
.project__media--2 { background-image: linear-gradient(135deg, #201c15, #524b39); }
.project__media--3 { background-image: linear-gradient(135deg, #655e45, #b8b296); }
.project__media--4 { background-image: linear-gradient(135deg, #2f2a20, #655e45); }
.project__media--5 { background-image: linear-gradient(135deg, #3d372900, #9c9578); background-color: #3d3729; }

/* ---- project image carousel ---- */
.project__carousel {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-800);
}
.project--lg .project__carousel { aspect-ratio: 16 / 9; }

.project__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s var(--ease);
}
.project__slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.project__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(38, 34, 26, 0.5));
}

.project__nav {
  position: absolute; top: 50%;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(38, 34, 26, 0.55);
  color: var(--bone);
  font-size: 1.5rem; line-height: 0;
  cursor: pointer; z-index: 2;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s var(--ease), background-color 0.25s var(--ease);
}
.project__nav--prev { left: 10px; }
.project__nav--next { right: 10px; }
.project:hover .project__nav,
.project__nav:focus-visible { opacity: 1; }
.project__nav:hover { background: var(--ink); }

.project__dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 7px;
  z-index: 2;
}
.project__dot {
  width: 7px; height: 7px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(231, 227, 214, 0.4);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.project__dot.is-active { background: var(--bone); transform: scale(1.3); }
.project__carousel[data-single] .project__nav,
.project__carousel[data-single] .project__dots { display: none; }

@media (hover: none) {
  .project__nav { opacity: 0.9; }
}

.project__meta { padding-top: 1.1rem; }
.project__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.8rem;
}
.project__name { font-size: var(--fs-h3); }
.project__arrow { color: var(--accent); transition: transform 0.3s var(--ease); }
.project__link:hover .project__arrow { transform: translate(4px, -4px); }
.project__info {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
  margin-top: 0.8rem;
  font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-soft);
}
.project__status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent);
}
.project__status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.project__status--live { color: #6e7a4a; }

/* ---------- 14. Steps (Approach) ---------- */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.4rem; color: var(--accent);
}
.step__title { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.step__text { color: var(--text-soft); max-width: 52ch; }

/* ---------- 15. Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}
.member__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #655e45, #b8b296);
  filter: grayscale(0.2);
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
  /* swap for real headshots:
     .member__photo--1 { background-image: url("images/team-1.jpg"); background-size: cover; } */
}
.member:hover .member__photo { filter: grayscale(0); transform: translateY(-4px); }
.member__photo--1 { background: linear-gradient(160deg, #3d3729, #797255); }
.member__photo--2 { background: linear-gradient(160deg, #524b39, #9c9578); }
.member__photo--3 { background: linear-gradient(160deg, #655e45, #b8b296); }
.member__photo--4 { background: linear-gradient(160deg, #201c15, #655e45); }
.member__name { font-size: 1.15rem; margin-top: 1.1rem; }
.member__role { font-size: 0.85rem; color: var(--text-soft); margin-top: 0.2rem; }

/* ---------- 16. Contact ---------- */
.contact__lede { color: var(--olive-200); margin-top: 1.4rem; max-width: 42ch; }
.contact__details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.contact__details li {
  display: grid; grid-template-columns: 5rem 1fr; gap: 1rem;
  padding-block: 1rem; border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.contact__details span {
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--olive-200);
}
.contact__details a:hover { color: var(--olive-200); text-decoration: underline; }
.contact__details address { font-style: normal; }

/* Form */
.form { display: flex; flex-direction: column; gap: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field__label {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--olive-200);
}
.field__label em { font-style: normal; opacity: 0.6; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(231, 227, 214, 0.28);
  padding: 0.7rem 0; color: var(--paper);
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 5rem; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--olive);
}
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #c08a6e; }

.form__status { font-size: 0.9rem; min-height: 1.2em; color: var(--olive-200); }
.form__status.is-error { color: #cf9078; }
.form__status.is-ok { color: #a7b98a; }
.form__note { font-size: 0.78rem; color: rgba(184, 178, 150, 0.5); }
.form__note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--bone);
  padding-block: clamp(3.5rem, 8vw, 6rem) 2rem;
  border-top: 1px solid rgba(231, 227, 214, 0.12);
  text-align: center;
}
.site-footer__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.75rem;
}

/* footer uses the stacked logo lockup: monogram above the wordmark */
.brand--footer {
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.brand--footer .brand__mark { width: 60px; height: 82px; }
.brand--footer .brand__name { font-size: 0.98rem; letter-spacing: 0.22em; }

/* address + phone + email as one tight, evenly-spaced block */
.site-footer__contact {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.95rem; line-height: 1.3;
}
.site-footer__contact span { color: var(--olive-200); }
.site-footer__contact a { color: var(--bone); transition: color 0.25s var(--ease); }
.site-footer__contact a:hover { color: var(--olive-200); }

.site-footer__social {
  display: flex; gap: 1.6rem; align-items: center;
  margin-block: 0.4rem;
}
.site-footer__social a {
  display: grid; place-items: center;
  width: 26px; height: 26px; color: var(--bone);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-footer__social a:hover { color: var(--olive-200); transform: translateY(-2px); }
.site-footer__social svg { width: 21px; height: 21px; fill: currentColor; }

.site-footer__legal {
  max-width: 64ch;
  padding-top: 0.5rem;
  font-size: 0.78rem; line-height: 1.6;
  color: rgba(231, 227, 214, 0.4);
}

.site-footer__bottom {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.8rem;
  width: 100%; max-width: 640px;
  margin-top: 0.5rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(231, 227, 214, 0.12);
  font-size: 0.8rem; color: rgba(231, 227, 214, 0.55);
}
.site-footer__bottom ul { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.site-footer__bottom a:hover { color: var(--bone); }

/* ---------- 18. Mobile navigation ---------- */
@media (max-width: 900px) {
  .nav__toggle { display: block; z-index: 120; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto;
    width: min(88vw, 400px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.75rem;
    padding: 4rem var(--gutter);
    background: var(--ink); color: var(--paper);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav__menu.is-open { transform: translateX(0); box-shadow: -40px 0 80px rgba(0,0,0,0.35); }
  .nav__menu a { font-size: 1.4rem; letter-spacing: 0.04em; text-transform: none; }
  .nav__cta { margin-top: 0.5rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- 19. Responsive layout ---------- */
@media (max-width: 1024px) {
  .col-4, .col-5, .col-6, .col-7, .col-8,
  .col-1-4, .col-6-12, .col-1-5, .col-7-12 { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .team { grid-template-columns: 1fr 1fr; }
  .project--lg, .project--sm { grid-column: span 12; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .cards, .team { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .feature-list li { grid-template-columns: 1fr; gap: 0.3rem; }
  .step { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .form__row { grid-template-columns: 1fr; }
  .section__head--row { align-items: flex-start; }
  .contact__details li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
