/* ============================================================
   THE BUILDERS COLLECTIVE — "Refined Dark" design system
   ------------------------------------------------------------
   Everything is driven by the variables in :root below, so you
   can re-skin the whole site by editing a handful of values.
   Sections are commented top-to-bottom in the order they appear.
   ============================================================ */

/* ---------- 1. DESIGN TOKENS (colors, type, spacing) ---------- */
:root {
  /* Color — warm near-blacks instead of pure #000, so it feels like
     wood-and-stone shadow rather than a cold tech template. */
  --ink:        #14120D;   /* page background (warm near-black) */
  --ink-2:      #1A1813;   /* slightly raised surface (alt sections) */
  --ink-3:      #221F18;   /* cards / hovers */
  --paper:      #ECE6DA;   /* primary text — warm off-white, never stark #fff */
  --paper-dim:  #A89F8E;   /* secondary / muted text */
  --line:       rgba(236, 230, 218, 0.14); /* hairline rules */
  --line-soft:  rgba(236, 230, 218, 0.08);

  /* Accent — a muted antique brass replaces the old neon lime.
     Brass reads "hardware / craft / warmth" — perfect for a builder. */
  --brass:      #C6952F;   /* antique gold accent — richer/more saturated so it pops on the dark */
  --brass-bright:#E6BB63;  /* hover / brighter moments — luminous gold */

  /* Type families */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;  /* headlines */
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* body + labels */

  /* Layout */
  --container: 1280px;     /* max content width */
  --gutter: clamp(20px, 5vw, 64px); /* side padding, scales with screen */
  --section-y: clamp(72px, 11vw, 168px); /* vertical rhythm between sections */
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

p { margin: 0; }

/* Shared container — centers content and applies side gutters */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Generic vertical section spacing */
.section { padding-block: var(--section-y); }

/* ---------- 3. FILM GRAIN OVERLAY ----------
   A fixed, non-interactive SVG-noise layer at very low opacity.
   Keeps the dark fields from looking flat/digital. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. SHARED TYPOGRAPHY HELPERS ---------- */

/* Small tracked-out uppercase label in brass — our "eyebrow" above headings.
   This replaces the old shouty all-caps headlines. */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 22px;
}
.eyebrow--ondark { color: var(--brass-bright); }

/* Section heading block */
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; max-width: none; flex-wrap: wrap;
}
.section__title {
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* Text link with a brass arrow that nudges on hover */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: 0.04em;
  color: var(--paper);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color .3s ease, border-color .3s ease;
}
.link-arrow span { color: var(--brass); transition: transform .3s ease; }
.link-arrow:hover { color: var(--brass-bright); border-color: var(--brass); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 2px;            /* near-square — architectural, not pill-y */
  transition: all .3s ease;
  cursor: pointer;
}
.btn--solid { background: var(--brass); color: var(--ink); }
.btn--solid:hover { background: var(--brass-bright); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-bright); }
.btn--ghost-light { border-color: rgba(236,230,218,0.4); }

/* ---------- 6. HEADER ----------
   Transparent over the hero; app.js adds .is-scrolled to make it
   solid (with a hairline) once you scroll past the hero. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 22px;
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(20, 18, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
/* Soft top scrim — keeps the logo + nav legible over bright hero imagery,
   then fades out once the header turns solid on scroll. */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,18,13,0.55), rgba(20,18,13,0));
  transition: opacity .4s ease;
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Real wordmark logo — white artwork on a transparent background,
   so it sits directly on the dark page with no blend tricks needed. */
.logo { display: flex; align-items: center; line-height: 0; }
.logo img { height: 58px; width: auto; display: block; }
.logo--footer img { height: 78px; }

/* Primary nav */
.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 14px; letter-spacing: 0.03em; color: var(--paper);
  position: relative; padding-block: 4px; transition: color .3s ease;
}
/* animated brass underline on hover */
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brass); transition: width .3s ease;
}
.nav a:hover { color: var(--brass-bright); }
.nav a:hover::after { width: 100%; }

/* ---------- 7. HERO ----------
   Full-bleed warm photo glowing inside the dark UI, with a gradient
   scrim at the bottom for headline legibility. */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* warm dark gradient: darkens the bottom for text, tints the whole image into the page */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(20,18,13,0.92) 0%, rgba(20,18,13,0.45) 40%, rgba(20,18,13,0.2) 70%, rgba(20,18,13,0.35) 100%);
}
.hero__inner { padding-bottom: clamp(56px, 9vw, 120px); padding-top: 140px; }
.hero__title {
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.98; letter-spacing: -0.02em;
  max-width: 14ch; margin-bottom: 28px;
}
.hero__lede { max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--paper); }
.hero__actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
/* tiny "Scroll" cue, bottom-right */
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim);
}
.hero__scroll span { position: relative; }
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 130%; width: 1px; height: 28px;
  background: linear-gradient(var(--brass), transparent);
}

/* ---------- 8. INTRO + STATS ---------- */
.intro__grid { max-width: 980px; }
.intro__lede {
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -0.01em;
  margin-bottom: 32px; max-width: 22ch;
}
.intro__body { max-width: 60ch; color: var(--paper-dim); font-size: 19px; }

.stats {
  list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);            /* the gap shows as hairline rules between cells */
  border-block: 1px solid var(--line);
}
.stats li { background: var(--ink); padding: 32px 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.stats__num { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); color: var(--paper); }
.stats__label { font-size: 13px; letter-spacing: 0.04em; color: var(--paper-dim); text-transform: uppercase; }

/* ---------- 9. SERVICES (image cards — not clickable) ---------- */
.services { background: var(--ink-2); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(30px, 3.4vw, 56px) clamp(28px, 3vw, 48px); }
.svc-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-3); margin-bottom: 22px; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.svc-card:hover .svc-card__media img { transform: scale(1.03); }   /* subtle life, but the card is not a link */
.svc-card__num { font-family: var(--serif); font-size: 16px; color: var(--brass); letter-spacing: 0.04em; }
.svc-card__name { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; margin: 10px 0 12px; }
.svc-card__desc { max-width: 50ch; color: var(--paper-dim); }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- 10. SELECTED WORK (asymmetric gallery) ---------- */
.work__meta { color: var(--paper-dim); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.work__gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-auto-rows: 1fr;
  gap: clamp(14px, 1.6vw, 22px);
  margin-bottom: 48px;
}
.work__fig { margin: 0; overflow: hidden; background: var(--ink-3); }
/* the lead image spans both rows on the left */
.work__fig--lead { grid-row: span 2; }
.work__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.work__fig:hover img { transform: scale(1.04); }

/* ---------- 11. THE COLLECTIVE ---------- */
.collective { background: var(--ink-2); }
.collective__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.collective__media { margin: 0; overflow: hidden; }
.collective__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.collective__body p { color: var(--paper-dim); margin-bottom: 20px; max-width: 50ch; }
.collective__body .section__title { margin-bottom: 28px; }
.collective__body .link-arrow { margin-top: 12px; }
.collective__links { display: flex; gap: clamp(22px, 3vw, 40px); flex-wrap: wrap; align-items: center; margin-top: 26px; }
.collective__links .link-arrow { margin-top: 0; }

/* ---------- 12. FULL-BLEED IMAGE BAND ---------- */
.band { height: clamp(280px, 48vw, 560px); overflow: hidden; }
.band__media { height: 100%; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 13. PROCESS (4-step grid) ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.step { background: var(--ink); padding: clamp(28px, 3vw, 44px) clamp(22px, 2vw, 32px); }
.step__num { font-family: var(--serif); font-size: 15px; color: var(--brass); letter-spacing: 0.05em; }
.step__name { font-size: clamp(20px, 2vw, 26px); margin: 18px 0 14px; }
.step__desc { color: var(--paper-dim); font-size: 16px; }

/* ---------- 14. TESTIMONIAL ---------- */
.quote { text-align: center; }
.quote__inner { max-width: 940px; margin-inline: auto; }
.quote__mark { display: block; font-family: var(--serif); font-size: 90px; line-height: 0.6; color: var(--brass); margin-bottom: 8px; }
.quote__text {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 50px); line-height: 1.18;
  letter-spacing: -0.01em; margin: 0 0 32px; font-style: italic; font-weight: 300;
}
.quote__cite { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 28px; }

/* ---------- 15. CONTACT ---------- */
.contact { background: var(--ink-2); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__title { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.01em; margin-bottom: 36px; }
.contact__details { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; }
.contact__details li { display: flex; flex-direction: column; gap: 8px; }
.contact__label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.contact__details a:hover { color: var(--brass-bright); }

/* ---------- 16. FOOTER ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 32px; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 40px; }
.logo--footer .logo__name { font-size: 22px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--paper-dim); transition: color .3s ease; }
.footer-nav a:hover { color: var(--brass-bright); }
.socials { display: flex; gap: 20px; }
.socials a { font-size: 13px; letter-spacing: 0.04em; color: var(--paper); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.socials a:hover { color: var(--brass-bright); border-color: var(--brass); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.site-footer__base span { font-size: 12px; letter-spacing: 0.06em; color: var(--paper-dim); }
.site-footer__lic { text-align: center; }
.site-footer__tag { color: var(--brass) !important; }

/* ---------- 17. SCROLL-REVEAL ANIMATION ----------
   Elements start slightly down + transparent; app.js adds .is-in
   when they enter the viewport. Quiet, slow, confident. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 18. RESPONSIVE (tablet & phone) ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav { display: none; }                 /* simple mockup: hide desktop nav on small screens */
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .work__gallery { grid-template-columns: 1fr 1fr; }
  .work__fig--lead { grid-row: auto; grid-column: span 2; }
  .collective__grid, .contact__grid { grid-template-columns: 1fr; }
  .collective__media { order: 2; }
  .contact__details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .svc { grid-template-columns: 48px 1fr; }
  .svc__arrow { display: none; }
  .work__gallery { grid-template-columns: 1fr; }
  .work__fig--lead { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact__details { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
}

/* Respect users who prefer reduced motion — turn off reveal + smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work__fig img, .member__photo img { transition: none; }
}

/* ============================================================
   19. TEAM PAGE ("The Collective")
   ============================================================ */
.team-intro { padding-top: clamp(132px, 16vh, 210px); padding-bottom: clamp(28px, 4vw, 52px); }
.team-intro__title { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 22px; max-width: 16ch; }
.team-intro__lede { max-width: 56ch; color: var(--paper-dim); font-size: clamp(17px, 1.6vw, 21px); }

.team-section { padding-block: clamp(36px, 5vw, 72px); }

/* Brass group label with a hairline rule trailing off to the right */
.team-group-title {
  display: flex; align-items: center; gap: 26px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 clamp(28px, 4vw, 48px);
}
.team-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Member grids — 3 across for leadership, 4 across for the crew */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 3vw, 52px) clamp(24px, 2.5vw, 40px); }
.team-grid--crew { grid-template-columns: repeat(4, 1fr); gap: clamp(26px, 2.5vw, 38px); }

.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); margin-bottom: 18px; }
.member__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: contrast(1.02) saturate(0.97);
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.member:hover .member__photo img { transform: scale(1.04); }
.member__name { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.12; margin-bottom: 6px; }
.member__role { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.member__bio { color: var(--paper-dim); font-size: 15px; line-height: 1.62; }

/* Crew cards a touch more compact */
.team-grid--crew .member__name { font-size: 18px; }
.team-grid--crew .member__role { margin-bottom: 9px; }
.team-grid--crew .member__bio { font-size: 14px; }

/* Active nav state for the current page */
.nav a.is-active { color: var(--brass-bright); }
.nav a.is-active::after { width: 100%; }

/* Small CTA band at the foot of the team page */
.cta-strip { text-align: center; border-top: 1px solid var(--line); }
.cta-strip__title { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.01em; max-width: 20ch; margin: 0 auto 28px; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid--crew { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .team-grid, .team-grid--crew { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   20. WORK INDEX + PROJECT DETAIL
   ============================================================ */

/* --- Work index page --- */
.work-intro { padding-top: clamp(132px, 16vh, 210px); padding-bottom: clamp(28px, 4vw, 56px); }
.work-intro__title { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 22px; }
.work-intro__lede { max-width: 54ch; color: var(--paper-dim); font-size: clamp(17px, 1.6vw, 21px); }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.project-card { position: relative; display: block; overflow: hidden; background: var(--ink-3); aspect-ratio: 3 / 2.3; }
.project-card--feature { grid-column: 1 / -1; aspect-ratio: 16 / 8.5; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.project-card:hover img { transform: scale(1.05); }
.project-card__overlay { position: absolute; inset: auto 0 0 0; padding: clamp(22px, 3vw, 44px); background: linear-gradient(to top, rgba(15,13,9,0.92), rgba(15,13,9,0)); }
.project-card__meta { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-bright); margin: 0 0 10px; }
.project-card__title { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 46px); line-height: 1.05; }
.project-card__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; letter-spacing: 0.04em; color: var(--paper); }
.project-card__cta span { color: var(--brass); transition: transform .3s ease; }
.project-card:hover .project-card__cta span { transform: translateX(5px); }

/* "Coming soon" placeholders — honest, not invented projects */
.project-card--soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--ink-2); border: 1px solid var(--line); }
.project-card--soon .soon-label { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); color: var(--paper-dim); }

/* Intentional "more on the way" panel — replaces empty placeholder tiles, with a CTA */
.work-more { grid-column: 1 / -1; background: var(--ink-2); border: 1px solid var(--line); padding: clamp(36px, 5vw, 72px); text-align: center; }
.work-more .eyebrow { margin-bottom: 14px; }
.work-more__title { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 auto 16px; max-width: 24ch; }
.work-more__desc { color: var(--paper-dim); max-width: 58ch; margin: 0 auto 30px; }

/* --- Project detail page --- */
.project-hero { position: relative; height: 86vh; min-height: 520px; display: flex; align-items: flex-end; }
.project-hero__media { position: absolute; inset: 0; z-index: -2; }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,18,13,0.92), rgba(20,18,13,0.25) 55%, rgba(20,18,13,0.4)); }
.project-hero__inner { padding-bottom: clamp(40px, 6vw, 84px); padding-top: 140px; }
.project-hero__title { font-size: clamp(44px, 7vw, 92px); line-height: 1.0; letter-spacing: -0.02em; }

/* Intro: statement + facts side by side */
.project-intro__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.project-statement { font-family: var(--serif); font-size: clamp(23px, 2.7vw, 36px); line-height: 1.24; letter-spacing: -0.01em; margin-bottom: 26px; }
.project-intro__body { color: var(--paper-dim); max-width: 56ch; }
.project-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.project-facts li { display: flex; flex-direction: column; gap: 5px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.project-facts .fact-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.project-facts .fact-value { color: var(--paper); }

/* Large centered feature image — shows tall/portrait shots in full, uncropped */
.feature-figure { margin: 0; text-align: center; }
.feature-figure img { width: auto; max-width: 100%; max-height: 90vh; margin-inline: auto; }

/* Full photo gallery — CSS-columns masonry preserves every aspect ratio */
.gallery { column-count: 3; column-gap: clamp(14px, 1.6vw, 22px); }
.gallery img { width: 100%; margin-bottom: clamp(14px, 1.6vw, 22px); break-inside: avoid; }

/* Foot nav (back to all work) */
.project-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 38px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .project-card, .project-card--feature { aspect-ratio: 3 / 2; }
  .project-card--soon { aspect-ratio: 3 / 1.5; }
  .project-intro__grid { grid-template-columns: 1fr; }
  .gallery { column-count: 2; }
}
@media (max-width: 560px) {
  .gallery { column-count: 1; }
}

/* ============================================================
   21. VIDEO BAND (brand film, mid-page)
   ============================================================ */
.video-band { position: relative; height: clamp(440px, 78vh, 820px); overflow: hidden; background: var(--ink); }
.video-band__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* seam gradients top + bottom so the video blends into the dark sections around it */
.video-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,18,13,0.6), rgba(20,18,13,0) 16%, rgba(20,18,13,0) 76%, rgba(20,18,13,0.88));
}
/* small brass eyebrow label, bottom-left */
.video-band__eyebrow {
  position: absolute; left: var(--gutter); bottom: clamp(18px, 3vw, 40px); margin: 0; z-index: 2;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass-bright); text-shadow: 0 1px 14px rgba(0,0,0,0.55);
}
/* sound toggle, bottom-right */
.video-band__sound {
  position: absolute; right: var(--gutter); bottom: clamp(18px, 3vw, 40px); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,18,13,0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(236,230,218,0.3); color: var(--paper);
  cursor: pointer; transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.video-band__sound:hover { border-color: var(--brass); color: var(--brass-bright); background: rgba(20,18,13,0.7); }
/* show the correct icon for the current state (button carries .is-muted when muted) */
.video-band__sound .vb-on { display: none; }
.video-band__sound:not(.is-muted) .vb-off { display: none; }
.video-band__sound:not(.is-muted) .vb-on { display: block; }

/* ============================================================
   22. CONTACT FORM
   ============================================================ */
.contact__head { max-width: 820px; margin-bottom: clamp(34px, 5vw, 60px); }
.contact__head .contact__title { margin-bottom: 16px; }
.contact__sub { color: var(--paper-dim); font-size: clamp(17px, 1.5vw, 20px); max-width: 48ch; }

/* override the old centered two-up layout for the form + details */
.contact__grid { grid-template-columns: 1.5fr 0.85fr; align-items: start; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-dim); }
/* "(optional)" hint: full-opacity dim tone (a faded version fell below the
   recommended contrast for small text on the dark background) */
.field__opt { text-transform: none; letter-spacing: 0; }

/* inputs sit on var(--ink) so they read as wells against the --ink-2 section */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; color: var(--paper); color-scheme: dark;
  background: var(--ink); border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--sans); font-size: 16px; padding: 14px 16px;
  transition: border-color .25s ease, background .25s ease;
}
.contact-form textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brass); background: var(--ink-3); }
/* a clear brass ring for keyboard users only (mouse clicks keep the quiet look) */
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.contact-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23A89F8E' stroke-width='1.6'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
/* error state toggled by app.js when a required field is empty/invalid */
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c2674a; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-status { margin: 0; font-size: 15px; min-height: 1.2em; }
.form-status.is-success { color: var(--brass-bright); }
.form-status.is-error { color: #d6906f; }

/* contact details become a single column in the narrower side panel */
.contact__aside { padding-top: 4px; }
.contact__aside .contact__details { grid-template-columns: 1fr; gap: 26px; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   23. COLLAPSIBLE TESTIMONIALS + CONTACT
   ============================================================ */
/* Collapse animation: grid-template-rows 0fr → 1fr (smooth, content-height aware).
   The inner wrapper clips overflow; visibility:hidden keeps closed content out of
   the tab order for accessibility. */
.testimonials__more,
.contact__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.8,.2,1); }
.testimonials__more.is-open,
.contact__panel.is-open { grid-template-rows: 1fr; }
.testimonials__more-inner,
.contact__panel-inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility .5s; }
.testimonials__more.is-open .testimonials__more-inner,
.contact__panel.is-open .contact__panel-inner { visibility: visible; }

/* the extra testimonials */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px); text-align: left; padding-top: clamp(44px, 5vw, 72px); }
.t-card blockquote {
  margin: 0 0 16px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(18px, 1.4vw, 21px); line-height: 1.42; color: var(--paper);
}
.t-card figcaption { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.quote__cta { margin-top: clamp(40px, 5vw, 64px); }

/* let .link-arrow style a <button> */
button.link-arrow { background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; cursor: pointer; }

/* contact bar: toggle button + inline details (shown while the form is collapsed) */
.contact__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
/* contact details now sit BELOW the form, as a hairline-topped info block */
.contact__details--row { display: flex; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; margin: clamp(40px, 5vw, 60px) 0 0; grid-template-columns: none; padding-top: clamp(26px, 3vw, 36px); border-top: 1px solid var(--line); }
.contact__details--row li { gap: 5px; }
.contact__panel .contact-form { padding-top: clamp(34px, 4vw, 54px); max-width: 760px; }

/* footer credit link */
.site-footer__tag a { color: inherit; border-bottom: 1px solid rgba(198,149,47,0.45); transition: border-color .3s ease, color .3s ease; }
.site-footer__tag a:hover { color: var(--brass-bright); border-color: var(--brass); }

@media (max-width: 760px) {
  .t-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   24. RESPONSIVE REFINEMENTS (tablet + mobile)
   ============================================================ */

/* Video band: on tablet & phones, show the full 16:9 frame instead of a tall,
   zoomed cover-crop. (Desktop keeps the cinematic clamp-height band.) */
@media (max-width: 900px) {
  .video-band { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .video-band__eyebrow { display: none; } /* would otherwise collide with the sound button */
}

/* Header + logo scale down below desktop so the bar isn't oversized */
@media (max-width: 900px) {
  .site-header { padding-block: 15px; }
  .site-header__inner { gap: 16px; }
  .logo img, .site-header.is-scrolled .logo img { height: 38px; }
}
@media (max-width: 560px) {
  .logo img, .site-header.is-scrolled .logo img { height: 34px; }
}

/* ---- Mobile navigation (hamburger) ---- */
.nav-toggle { display: none; }
.nav__cta { display: none; } /* the in-menu "Get in touch"; only shown in the mobile dropdown */

@media (max-width: 900px) {
  /* hide the desktop nav + inline CTA; reveal the hamburger */
  .site-header .nav,
  .site-header__inner > .btn--ghost { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--paper); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
  /* animate to an X when open */
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* solid bar + dropdown panel when the menu is open */
  .site-header.nav-open { background: rgba(20,18,13,0.98); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
  .site-header.nav-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 16px;
  }
  .site-header.nav-open .nav a { padding: 16px 2px; border-bottom: 1px solid var(--line-soft); font-size: 19px; }
  .site-header.nav-open .nav a::after { display: none; }
  .site-header.nav-open .nav .nav__cta { display: block; color: var(--brass-bright); border-bottom: 0; padding-top: 18px; }
}

/* Hero CTAs stack full-width on very narrow phones (cleaner than cramped two-up) */
@media (max-width: 430px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* The 2-line hero headline ("Built by a collective. / Managed as one.") is a touch
   wide for the narrowest phones at the 44px floor; nudge it down so each sentence
   keeps its own line. Scoped to small phones only — desktop/tablet scale is untouched. */
@media (max-width: 415px) {
  .hero__title { font-size: 38px; }
}

/* ============================================================
   25. PROCESS / "HOW WE WORK" PAGE
   ============================================================ */
.process-intro { padding-top: clamp(132px, 16vh, 210px); padding-bottom: clamp(20px, 3vw, 44px); }
.process-intro__title { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 22px; }
.process-intro__lede { max-width: 56ch; color: var(--paper-dim); font-size: clamp(17px, 1.6vw, 21px); }

/* homepage "How we work" callout (links to process.html) */
.process .section__head { margin-bottom: clamp(18px, 2.5vw, 28px); }
.process-callout__lede { max-width: 58ch; color: var(--paper-dim); font-size: clamp(17px, 1.5vw, 20px); margin: 0 0 30px; }

/* numbered vertical timeline: gold node circles joined by a hairline flow line */
.process-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; }
.pstep { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: clamp(22px, 3vw, 44px); padding-bottom: clamp(40px, 6vw, 76px); }
.pstep:last-child { padding-bottom: 0; }
/* the connecting line — sits behind the node circles (which carry the page bg to mask it) */
.pstep::before { content: ""; position: absolute; left: 35px; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: 0; }
.pstep:last-child::before { display: none; }
.pstep__num {
  position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--brass); color: var(--brass); background: var(--ink);
  font-family: var(--serif); font-size: 20px;
}
.pstep__content { padding-top: clamp(8px, 1.6vw, 18px); }
.pstep__name { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.08; margin-bottom: 12px; }
.pstep__desc { color: var(--paper-dim); max-width: 52ch; font-size: clamp(16px, 1.3vw, 18px); }

@media (max-width: 560px) {
  .pstep { grid-template-columns: 52px 1fr; gap: 18px; }
  .pstep::before { left: 25px; }
  .pstep__num { width: 52px; height: 52px; font-size: 16px; }
}

/* ============================================================
   26. ABOUT + JOIN PAGES + "COLLECTIVE" NAV DROPDOWN
   ============================================================ */
/* shared page intro (About, Join) */
.page-hero { padding-top: clamp(132px, 16vh, 210px); padding-bottom: clamp(20px, 3vw, 44px); }
.page-hero__title { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 22px; }
.page-hero__lede { max-width: 56ch; color: var(--paper-dim); font-size: clamp(17px, 1.6vw, 21px); }
.page-hero__lede + .page-hero__lede { margin-top: clamp(16px, 1.4vw, 20px); }
.page-hero__actions { margin-top: 32px; }

/* mission statement */
.big-statement { font-family: var(--serif); font-size: clamp(28px, 4.4vw, 56px); line-height: 1.12; letter-spacing: -0.01em; max-width: 20ch; margin: 14px auto 0; text-align: center; }
.big-statement__sub { max-width: 60ch; margin: 28px auto 0; text-align: center; color: var(--paper-dim); font-size: clamp(16px, 1.4vw, 19px); }

/* values: Honor / Ownership / Mastery */
.values { background: var(--ink-2); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 52px); }
.value { padding-top: 26px; border-top: 1px solid var(--line); }
.value__name { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; margin: 0 0 10px; }
.value__trio { font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brass); margin: 0 0 16px; }
.value__desc { color: var(--paper-dim); }

/* the difference */
.about-diff__body { max-width: 60ch; color: var(--paper-dim); font-size: clamp(17px, 1.4vw, 19px); margin-bottom: clamp(36px, 5vw, 64px); }

/* two doors */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.door { display: flex; flex-direction: column; gap: 8px; padding: clamp(32px, 4vw, 56px); background: var(--ink-2); border: 1px solid var(--line); transition: border-color .3s ease, background .3s ease; }
.door:hover { border-color: var(--brass); background: var(--ink-3); }
.door__eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.door__title { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; }
.door__arrow { color: var(--brass); font-size: 22px; margin-top: 8px; transition: transform .3s ease; }
.door:hover .door__arrow { transform: translateX(6px); }

/* join: why-build cards */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 52px); }
.why-card { padding-top: 26px; border-top: 1px solid var(--line); }
.why-card__name { font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 12px; }
.why-card__desc { color: var(--paper-dim); }

/* join: career ladder */
.ladder { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 900px; }
.rung { display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 3vw, 48px); align-items: baseline; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.rung__years { font-family: var(--serif); font-size: 16px; color: var(--brass); }
.rung__name { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; margin: 0 0 10px; }
.rung__desc { color: var(--paper-dim); max-width: 56ch; }

/* join: benefits */
.benefits-section { background: var(--ink-2); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px) clamp(28px, 3vw, 48px); }
.benefit { padding-top: 24px; border-top: 1px solid var(--line); }
.benefit h3 { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); margin: 0 0 10px; }
.benefit p { color: var(--paper-dim); font-size: 15px; }
.cta-strip__sub { max-width: 52ch; margin: 0 auto 28px; color: var(--paper-dim); }

/* join: code of conduct ("what we expect" — balances the enticing sections above) */
.conduct__title { margin-bottom: 16px; }
.conduct__lede { max-width: 58ch; color: var(--paper-dim); font-size: clamp(17px, 1.4vw, 19px); margin-bottom: clamp(38px, 5vw, 60px); }
.conduct-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 60px); }
.conduct-list li { display: flex; align-items: flex-start; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); color: var(--paper); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; }
.conduct-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6952F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
@media (max-width: 700px) { .conduct-list { grid-template-columns: 1fr; } }

/* ---- "The Collective" nav dropdown ---- */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-group__caret { font-size: 9px; margin-left: 5px; color: var(--brass); position: relative; top: -1px; }
.nav-group__menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  display: flex; flex-direction: column; min-width: 190px; padding: 8px 0;
  background: rgba(20,18,13,0.97); backdrop-filter: blur(10px); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s ease; z-index: 60;
}
.nav-group:hover .nav-group__menu,
.nav-group:focus-within .nav-group__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-group__menu a { padding: 11px 24px; font-size: 15px; white-space: nowrap; color: var(--paper); }
.nav-group__menu a::after { display: none; }
.nav-group__menu a:hover { color: var(--brass-bright); }

@media (max-width: 860px) {
  .values-grid, .why-grid { grid-template-columns: 1fr; gap: 0; }
  .value, .why-card { padding-block: 24px; }
  .duo-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rung { grid-template-columns: 1fr; gap: 6px; }
  .benefits { grid-template-columns: 1fr; }
}

/* mobile: the Collective dropdown expands inline inside the hamburger menu */
@media (max-width: 900px) {
  .site-header .nav-group { display: block; width: 100%; }
  .site-header .nav-group__caret { display: none; }
  .site-header.nav-open .nav-group__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; backdrop-filter: none; border: 0; padding: 0;
  }
  .site-header.nav-open .nav-group__menu a {
    padding: 14px 0 14px 18px; font-size: 17px; color: var(--paper-dim);
    border-bottom: 1px solid var(--line-soft);
  }
}

/* ============================================================
   27. APPLICATION MODAL (careers) + FILE-UPLOAD FIELD
   ============================================================ */
/* Hidden via visibility (not display) so the overlay + dialog can fade/slide in. */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__overlay {
  position: absolute; inset: 0; background: rgba(8, 7, 4, 0.74);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.modal.is-open .modal__overlay { animation: modalFade .3s ease; }
.modal__dialog {
  position: relative; z-index: 1;
  width: min(640px, calc(100% - 28px));
  margin: clamp(14px, 6vh, 72px) auto;
  max-height: calc(100svh - clamp(28px, 12vh, 144px));
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.modal.is-open .modal__dialog { animation: modalIn .35s cubic-bezier(.2,.8,.2,1); }
/* entrance animations are additive: resting state is fully visible, so the dialog
   can never get stuck hidden if animations don't run (e.g. headless/reduced-motion) */
@keyframes modalFade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } }
.modal__scroll { overflow-y: auto; padding: clamp(28px, 4vw, 48px); }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--paper-dim); cursor: pointer;
  border-radius: 50%; transition: color .3s ease, background .3s ease;
}
.modal__close:hover { color: var(--brass-bright); background: var(--ink-3); }
.modal__title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.01em; margin: 10px 0 12px; }
.modal__sub { color: var(--paper-dim); font-size: clamp(15px, 1.3vw, 17px); margin-bottom: clamp(24px, 3vw, 34px); max-width: 46ch; }
/* lock the page behind the modal while it's open (JS toggles the class) */
body.modal-open { overflow: hidden; }

/* custom file input: visually-hidden native input + styled label button + filename */
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.file-field__control { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-field__btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper); cursor: pointer; transition: border-color .3s ease, color .3s ease;
}
.file-field__btn:hover,
.file-field:focus-within .file-field__btn { border-color: var(--brass); color: var(--brass-bright); }
.file-field__name { font-size: 14px; color: var(--paper-dim); min-width: 0; word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  .modal.is-open .modal__overlay, .modal.is-open .modal__dialog { animation: none; }
}
