/* ============================================================================
   BRYANT MEDIA — styles.css
   ----------------------------------------------------------------------------
   Table of contents
     01. Design tokens (brand palette, type, spacing, motion)
     02. Reset & base
     03. Layout helpers & typography
     04. Buttons
     05. Header / navigation
     06. Hero
     07. Marquee
     08. Problem section
     09. Services
     10. Work / portfolio
     11. Process
     12. Contact
     13. Footer
     14. Scroll animations
     15. Responsive breakpoints (tablet ≤ 1024px, mobile ≤ 900px / 600px)
     16. Reduced motion
   ============================================================================ */


/* ============================================================================
   01. DESIGN TOKENS
   Palette: black, white, and one darker "iron gold" accent.
     - Gold (#957839) is used on black: eyebrows, highlights, icons, focus.
     - Gold Deep (#6f5a26) is used where gold text sits on white (primary
       button label), so it keeps ≥ 4.5:1 contrast.
   Typography, styled like the reference:
     - Primary: Helvetica Neue, ALL CAPS, widely tracked — headlines,
       titles, buttons. Also used (normal case) for the hero intro line.
     - Secondary: Nunito Sans — body copy, eyebrows, labels, nav links.
   ============================================================================ */
:root {
  /* Core palette */
  --black:      #000000;
  --white:      #ffffff;
  --gold:       #957839;   /* iron gold — primary accent on dark (4.9:1 on black) */
  --gold-light: #b09450;   /* hover / success text */
  --gold-deep:  #6f5a26;   /* iron gold for text on white backgrounds (6.6:1) */

  /* Surfaces (neutral blacks) */
  --bg:         #050505;
  --bg-alt:     #0c0c0c;
  --surface:    #141414;
  --surface-2:  #1b1b1b;
  --line:       rgba(255, 255, 255, 0.12);
  --line-strong:rgba(255, 255, 255, 0.26);

  /* Semantic roles */
  --text:        var(--white);
  --text-muted:  #b0b0b0;          /* ≈ 9:1 on --bg */
  --accent:      var(--gold);
  --accent-hover:var(--gold-light);
  --on-accent:   var(--black);

  /* Typography */
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;   /* primary: headlines, titles, buttons */
  --font-body:    "Nunito Sans", "Helvetica Neue", Arial, sans-serif; /* secondary: body copy, labels */
  --font-label:   var(--font-body);   /* eyebrows, tags, UI labels */

  /* Letter-spacing (the defining trait of the reference type style) */
  --track-heading: 0.12em;   /* uppercase headlines */
  --track-eyebrow: 0.32em;   /* light, airy eyebrows */
  --track-label:   0.18em;   /* nav, tags, small caps UI */
  --track-body:    0.03em;   /* subtle openness in body copy */

  /* Fluid type scale (clamps between mobile and desktop).
     Headlines are smaller than a typical tight-tracked scale because the
     wide tracking adds a lot of width. */
  --fs-hero: clamp(1.9rem, 0.9rem + 4.2vw, 4.75rem);
  --fs-h2:   clamp(1.6rem, 1.05rem + 2.3vw, 3.1rem);
  --fs-h3:   clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  --fs-lg:   clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem);
  --fs-base: 1rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  /* Spacing */
  --gutter:      clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-pad: clamp(5rem, 3rem + 8vw, 10rem);
  --container:   1320px;
  --radius:      14px;
  --radius-sm:   8px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);   /* expo-out: smooth, premium */
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  0.25s;
  --dur:       0.6s;
  --dur-slow:  1.1s;

  --header-h: 76px;
}


/* ============================================================================
   02. RESET & BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;                       /* native smooth anchor scroll */
  scroll-padding-top: var(--header-h);           /* offset for fixed header */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  letter-spacing: var(--track-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sections receive programmatic focus after nav clicks (for screen readers);
   don't draw a focus ring around the whole section. */
[tabindex="-1"]:focus { outline: none; }

/* Lock page scroll while the mobile menu is open */
body.menu-open { overflow: hidden; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  padding: 0.75rem 1rem; background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }


/* ============================================================================
   03. LAYOUT HELPERS & TYPOGRAPHY
   ============================================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); position: relative; }

/* Eyebrow: light weight, very wide tracking, gold (reference: "FULL-SERVICE + AWARD WINNING") */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-label);
  font-size: var(--fs-sm);
  font-weight: 300;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
  max-width: 22ch;
}

/* All headings and card titles use the primary face (Helvetica Neue) */
h1, h2, h3 { font-family: var(--font-display); }

/* Keep multi-word accents (e.g. "in person") together when the headline wraps */
.hero__title em { white-space: nowrap; }

/* Accent words: same face, gold, no italic — keeps the clean reference look */
.h2 em, .hero__title em {
  font-style: normal;
  color: var(--accent);
}

.section-head { margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.section-head__sub {
  margin-top: 1.5rem; max-width: 52ch;
  font-size: var(--fs-lg); color: var(--text-muted);
}
.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

/* Text-based wordmark: shown only when a logo image fails to load */
.wordmark {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.wordmark span { font-weight: 300; margin-left: 0.35em; color: var(--accent); }
.wordmark--lg { font-size: 1.6rem; }
.logo-missing + .wordmark { display: inline-block; }
.logo-missing { display: none !important; }


/* ============================================================================
   04. BUTTONS
   ============================================================================ */
.btn {
  --btn-pad-y: 0.85rem;
  --btn-pad-x: 1.5rem;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;                 /* matches the headline/title style */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease,
              transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease;
}
.btn:active { transform: scale(0.97); }

.btn--sm    { --btn-pad-y: 0.6rem;  --btn-pad-x: 1.3rem; font-size: var(--fs-xs); }
.btn--lg    { --btn-pad-y: 1.15rem; --btn-pad-x: 2.4rem; font-size: clamp(0.85rem, 0.8rem + 0.25vw, 1rem); }
.btn--block { width: 100%; }

/* Primary: white pill with deep-gold label (mirrors the reference's
   white "Request a Free Quote"); gold sweeps up on hover. */
.btn--primary { background: var(--white); color: var(--gold-deep); }
.btn--primary:hover { color: var(--black); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn--primary:hover::before { transform: translateY(0); }

/* Ghost: white outline (reference "View Our Studios"); fills white on hover */
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }

.btn__icon {
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn__icon { transform: translateX(4px); }


/* ============================================================================
   05. HEADER / NAVIGATION
   ============================================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease,
              border-color 0.4s ease, transform 0.45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
/* Solid, blurred bar after scrolling past the top */
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
/* Slides up out of view while scrolling down */
.site-header.is-hidden { transform: translateY(-100%); }
/* While the mobile menu is open, drop transform/backdrop-filter: both create a
   containing block that would trap the fixed full-screen menu inside the bar. */
body.menu-open .site-header {
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: transparent;
  border-bottom-color: transparent;
}

.nav {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.nav__brand { display: flex; align-items: center; position: relative; z-index: 2; }
/* Wordmark in the nav (no bear). Letters were ~14px tall inside the old
   combination logo; now 24px (+10). Width follows the file: ≈ 342px. */
.nav__logo  { height: 24px; width: auto; max-width: 60vw; object-fit: contain; }

.nav__menu  { display: flex; align-items: center; gap: 2.5rem; }
.nav__links { display: flex; gap: 2.25rem; }

/* Link hover: underline grows from the left */
.nav__link {
  position: relative;
  font-family: var(--font-label);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  padding-block: 0.4rem;
  transition: color var(--dur-fast) ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Hamburger (hidden on desktop) */
.nav__toggle {
  display: none;
  position: relative; z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.nav__toggle span {
  position: absolute; left: 50%; width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
  transform: translateX(-50%);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child  { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: translateX(-50%) rotate(-45deg); }


/* ============================================================================
   06. HERO
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;                             /* accounts for mobile browser UI */
  display: flex; align-items: center;            /* centered, like the reference */
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(4rem, 3rem + 4vw, 6rem);
  overflow: hidden;
}

/* Background media stack: video → dark overlay → film grain */
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  /* Fallback if no video/poster: charcoal vignette with a faint gold glow */
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(149, 120, 57, 0.16), transparent 65%),
    radial-gradient(ellipse 90% 80% at 50% 50%, #1e1e1e 0%, var(--bg) 75%);
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-zoom 14s var(--ease-out) forwards;   /* slow Ken Burns settle */
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    /* Even darkening so centered white type reads over any footage */
    radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%, rgba(0,0,0,0.85) 100%);
}
/* Subtle animated film grain (SVG noise, no image request) */
.hero__grain {
  position: absolute; inset: -50%;
  opacity: 0.07; pointer-events: none;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

.hero__inner { position: relative; text-align: center; }


.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--track-heading);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
/* Line-by-line mask reveal on load */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.reveal-line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: line-up 1.1s var(--ease-out) forwards;
}
.reveal-line:nth-child(1) > span { animation-delay: 0.15s; }
.reveal-line:nth-child(2) > span { animation-delay: 0.28s; }
.reveal-line:nth-child(3) > span { animation-delay: 0.41s; }

.hero__sub {
  font-family: var(--font-display);                /* Helvetica Neue, normal case */
  max-width: 56ch;
  margin-inline: auto;
  font-size: var(--fs-lg);
  letter-spacing: 0.06em;                          /* reference body is noticeably open */
  color: var(--white);
  margin-bottom: 2.75rem;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }

/* Scroll cue, bottom right */
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-family: var(--font-label); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
  writing-mode: vertical-rl;
}
.hero__scroll i {
  position: relative; width: 1px; height: 56px; background: var(--line-strong); overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  animation: scroll-cue 2s var(--ease-io) infinite;
}


/* ============================================================================
   07. MARQUEE
   ============================================================================ */
.marquee {
  pointer-events: none;                      /* purely decorative: rolls by, no hover/click response */
  user-select: none;
  border-block: 1px solid var(--line);
  padding-block: 1.6rem;
  overflow: hidden;
  background: var(--bg-alt);
  /* Soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 64s linear infinite;   /* ≈ 60px/s */ }
.marquee__list { display: flex; flex-shrink: 0; }
.marquee__list li {
  display: flex; align-items: center;
  padding-inline: 2rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  white-space: nowrap;
}
/* Logo items: steady white at 80%. Height comes from --h (set per logo in
   index.html for equal visual weight). Scales down on phones. */
.marquee__logo {
  height: var(--h, 36px); width: auto; max-width: none;
  opacity: 0.8;
}
@media (max-width: 600px) {
  .marquee__logo { height: calc(var(--h, 36px) * 0.8); }
  .marquee__list li { padding-inline: 1.25rem; }
  .marquee__list li::after { margin-left: 2.5rem; }
}
.marquee__list li::after {
  content: "✦"; margin-left: 4rem; color: var(--accent); font-size: 0.7em;
}


/* ============================================================================
   08. PROBLEM SECTION
   ============================================================================ */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 2rem + 4vw, 7rem);
  align-items: start;
}
.problem__lead { position: sticky; top: calc(var(--header-h) + 2rem); }

.problem__item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.75rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}
.problem__item:last-child { border-bottom: 1px solid var(--line); }
.problem__num {
  font-family: var(--font-label); font-size: var(--fs-sm); color: var(--accent);
  padding-top: 0.3rem;
}
.problem__item h3 {
  font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 0.02em;
}
.problem__item p { color: var(--text-muted); max-width: 48ch; }


/* ============================================================================
   09. SERVICES
   ============================================================================ */
.services { background: var(--bg-alt); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;                                      /* hairline grid via background */
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 320px;
  padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem);
  background: var(--bg-alt);
  transition: background-color 0.5s var(--ease-out);
  overflow: hidden;
}
/* Radial glow that follows the cursor (position set in script.js) */
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(149, 120, 57, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.4s ease;
}
.service-card:hover { background: var(--surface); }
.service-card:hover::before { opacity: 1; }

.service-card__index {
  font-family: var(--font-label); font-size: var(--fs-xs); color: var(--text-muted);
  letter-spacing: 0.12em;
}
.service-card__icon {
  width: 36px; height: 36px; margin: 2.5rem 0 1.5rem;
  fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover .service-card__icon { transform: translateY(-4px) scale(1.05); }
.service-card__title {
  font-size: var(--fs-h3); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.service-card__text { color: var(--text-muted); font-size: 0.95rem; }
.service-card__arrow {
  position: absolute; top: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem); right: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem);
  color: var(--accent); font-size: 1.25rem;
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.service-card:hover .service-card__arrow { opacity: 1; transform: translateX(0); }


/* ============================================================================
   10. WORK / PORTFOLIO
   ============================================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-label); font-size: var(--fs-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  transition: all var(--dur-fast) ease;
}
.filter:hover { color: var(--text); border-color: var(--white); }
.filter.is-active { background: var(--white); color: var(--bg); border-color: var(--white); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
}

.work-card { display: block; transition: opacity 0.4s ease, transform 0.4s var(--ease-out); }
.work-card--wide { grid-column: 1 / -1; }
/* Filter states (toggled by script.js) */
.work-card.is-filtered-out { display: none; }

.work-card__media {
  --tint: var(--gold-deep);
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  /* Placeholder shown until a real thumbnail is added */
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--tint) 70%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--tint) 45%, var(--bg)) 0%, var(--surface) 100%);
}
.work-card--wide .work-card__media { aspect-ratio: 21 / 9; }

.work-card__media img,
.work-card__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 0.6s ease;
  filter: saturate(0.9);
}
.work-card__media video { opacity: 0; transition: opacity 0.4s ease; }
.work-card.is-previewing .work-card__media video { opacity: 1; }

/* Hover: slow zoom + color restore */
.work-card:hover .work-card__media img { transform: scale(1.05); filter: saturate(1.05); }

.work-card__play {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  padding-left: 4px;
  font-size: 1.1rem;
  color: var(--on-accent);
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.work-card:hover .work-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.work-card__meta {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding-top: 1.25rem;
}
.work-card__title { font-size: var(--fs-h3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.work-card__tags {
  margin-top: 0.3rem;
  font-family: var(--font-label); font-size: var(--fs-xs);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.work-card__cta {
  flex-shrink: 0;
  font-family: var(--font-label); font-size: var(--fs-xs);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  padding-top: 0.35rem;
}
.work-card__cta span { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.work-card:hover .work-card__cta span { transform: translateX(4px); }

.work__more { display: flex; justify-content: center; margin-top: 4rem; }


/* ============================================================================
   11. PROCESS
   ============================================================================ */
.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-top: 3rem;
}
/* Horizontal track; the inner span fills via --progress (script.js) */
.process__line {
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--line);
}
.process__line span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--accent));
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  transition: transform 0.2s linear;
}

.step__num {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 1.75rem;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--font-label); font-size: var(--fs-sm); color: var(--accent);
  background: var(--bg);
}
.step__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.step p { color: var(--text-muted); max-width: 36ch; }


/* ============================================================================
   12. CONTACT
   ============================================================================ */
.contact {
  background:
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(149, 120, 57, 0.10), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
  align-items: start;
}
.contact__title { max-width: 16ch; }
.contact__sub { margin-top: 1.5rem; font-size: var(--fs-lg); color: var(--text-muted); max-width: 44ch; }

.contact__direct { margin-top: 3rem; display: grid; gap: 1.25rem; }
.contact__direct li { display: grid; gap: 0.2rem; }
.contact__direct .label {
  font-family: var(--font-label); font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
.contact__direct a {
  font-size: var(--fs-lg); font-weight: 500;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 1px;
  transition: background-size 0.4s var(--ease-out), color var(--dur-fast) ease;
  justify-self: start;
}
.contact__direct a:hover { background-size: 100% 1px; color: var(--accent); }

/* Form card */
.contact-form {
  display: grid; gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; border: 0; }
.field label, .field legend {
  font-family: var(--font-label); font-size: var(--fs-xs);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  resize: vertical;
}
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(149, 120, 57, 0.18);
}
.field textarea::placeholder { color: #6b6b6b; }
.field.has-error input { border-color: #d9534f; }

/* Service chips (styled checkboxes) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend { width: 100%; margin-bottom: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: var(--fs-sm); color: var(--text-muted);
  cursor: pointer; user-select: none;
  transition: all var(--dur-fast) ease;
}
.chip span:hover { color: var(--text); border-color: var(--white); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.25rem; font-size: var(--fs-sm); color: var(--gold-light); text-align: center; }
.form-status.is-error { color: #ef8a86; }


/* ---------- Services: featured + supporting rows ---------- */
.services__grid--featured { grid-template-columns: repeat(3, 1fr); }
.services__grid--more     { grid-template-columns: repeat(2, 1fr); margin-top: 1.25rem; }
.service-card--featured   { min-height: 400px; }
.service-card--featured .service-card__title { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); }
.service-card__index { display: flex; align-items: center; gap: 0.75rem; }
.service-card__tag {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(149, 120, 57, 0.5);
  border-radius: 999px;
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light);
}
.services__note {
  margin-top: 2rem; max-width: 60ch;
  font-size: var(--fs-sm); color: var(--text-muted);
}

/* ---------- Contact card (right column of Start a Project) ---------- */
.contact-card {
  display: grid; gap: 1.75rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}
.contact-card__title {
  font-size: var(--fs-h3); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.contact-card__steps { display: grid; gap: 1.25rem; }
.contact-card__steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.contact-card__steps span {
  font-family: var(--font-label); font-size: var(--fs-sm); color: var(--accent); padding-top: 0.15rem;
}
.contact-card__steps p { color: var(--text-muted); }
.contact-card__steps strong { color: var(--text); font-weight: 600; }


/* "Our Promise" block (contact card) + one-line version (pop-up) */
.promise {
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(149, 120, 57, 0.4);
  border-radius: var(--radius);
  background: rgba(149, 120, 57, 0.06);
}
.promise__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.9rem;
}
.promise__list { display: grid; gap: 0.7rem; }
.promise__list li { display: grid; grid-template-columns: 18px 1fr; gap: 0.7rem; align-items: start; }
.promise__list svg {
  width: 18px; height: 18px; margin-top: 0.2rem;
  fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.promise__list span { font-size: var(--fs-sm); color: var(--text-muted); }
.promise__list strong { color: var(--text); font-weight: 600; }
.promise-line {
  text-align: center; font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--gold-light); margin-top: -0.5rem;
}

/* Scarcity line ("X of 5 spots open") */
.spots { font-size: var(--fs-sm); color: var(--text-muted); }
.spots strong { color: var(--text); font-weight: 600; }
.spots--center { text-align: center; margin-top: -0.25rem; }
.spots__dot {
  display: inline-block; vertical-align: middle; margin: -2px 0.55rem 0 0.2rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(149, 120, 57, 0.2);
}

/* Select field (pop-up budget) styled to match inputs */
.field select {
  width: 100%;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  font: inherit; color: var(--text);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23957839' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field select:hover { border-color: var(--line-strong); }
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(149, 120, 57, 0.18); }
.field select:invalid { color: #8a8a8a; }
.field select option { color: #111; }
.field.has-error select { border-color: #d9534f; }

/* ============================================================================
   12b. FAQ
   Native <details>; script.js animates height and keeps one open at a time.
   ============================================================================ */
.faq { background: var(--bg); border-top: 1px solid var(--line); }
.faq__grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start;
}
.faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq__head .section-head__sub a { color: var(--accent); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-light); }
/* Plus icon that turns into a minus */
.faq__icon { position: relative; flex-shrink: 0; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 100%; height: 1.5px; background: var(--accent);
  transition: transform 0.4s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { overflow: hidden; }
.faq__answer p { color: var(--text-muted); max-width: 62ch; padding-bottom: 1rem; }
.faq__answer p:last-child { padding-bottom: 1.6rem; }
.faq__answer strong { color: var(--text); font-weight: 600; }


/* ============================================================================
   12c. OFFER POP-UP (<dialog>)
   ============================================================================ */
html.offer-open { overflow: hidden; }                       /* lock page scroll */
.offer {
  margin: auto;
  width: min(640px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; background: transparent; color: var(--text);
  overflow: visible;
}
.offer::backdrop {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.offer[open] { animation: offer-in 0.5s var(--ease-out); }
.offer[open]::backdrop { animation: fade-in 0.4s ease; }
.offer__card {
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.offer__form, .offer__done { display: grid; gap: 1.1rem; }
.offer__done[hidden] { display: none; }
.offer .eyebrow { margin-bottom: 0; }
.offer__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
}
.offer__sub { color: var(--text-muted); margin-bottom: 0.5rem; }
@keyframes offer-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }


/* ============================================================================
   13. FOOTER
   ============================================================================ */
.site-footer { background: #000; padding-top: clamp(4rem, 3rem + 4vw, 7rem); }

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}
/* Wordmark (PNG, white on transparent) */
.footer__logo { height: 24px; width: auto; max-width: 100%; object-fit: contain; }  /* wide wordmark ≈ 330px */
.footer__tagline { margin-top: 1.5rem; max-width: 34ch; color: var(--text-muted); }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__col h4 {
  font-family: var(--font-label); font-size: var(--fs-xs); font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer__col ul { display: grid; gap: 0.7rem; }
.footer__col li, .footer__col a { color: var(--text-muted); font-size: 0.95rem; word-break: break-word; }
.footer__col a { transition: color var(--dur-fast) ease; }
.footer__col a:hover { color: var(--text); }

.socials a { display: inline-flex; align-items: center; gap: 0.6rem; }
.socials svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--dur-fast) var(--ease-out);
}
.socials a:hover svg { transform: translateY(-2px); color: var(--accent); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-block: 2rem;
  font-family: var(--font-label); font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: 0.06em;
}
.footer__top-link:hover { color: var(--accent); }


/* ============================================================================
   14. SCROLL ANIMATIONS
   Elements with [data-animate] start hidden and fade up when script.js adds
   .is-visible. data-delay="1..4" staggers siblings.
   The `.js` guard means content stays visible if JavaScript fails.
   ============================================================================ */
.js [data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js [data-animate].is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s !important; }
[data-delay="2"] { transition-delay: 0.16s !important; }
[data-delay="3"] { transition-delay: 0.24s !important; }
[data-delay="4"] { transition-delay: 0.32s !important; }

/* Hero items animate on load, slightly after the headline */
.js .hero [data-animate] { transition-duration: 1.1s; }
.js .hero [data-delay="3"] { transition-delay: 0.6s !important; }
.js .hero [data-delay="4"] { transition-delay: 0.75s !important; }

@keyframes line-up    { to { transform: translateY(0); } }
@keyframes hero-zoom  { to { transform: scale(1); } }
@keyframes marquee    { to { transform: translateX(-50%); } }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 5%); }
  80% { transform: translate(6%, 2%); }
}


/* ============================================================================
   15. RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .faq__grid      { grid-template-columns: 1fr; }
  .faq__head      { position: static; }
  .problem__grid  { grid-template-columns: 1fr; }
  .problem__lead  { position: static; }
  .footer__top    { grid-template-columns: 1fr; }
  .hero__scroll   { display: none; }
}

/* ---------- Mobile nav + stacked layouts (≤ 900px) ---------- */
@media (max-width: 900px) {
  .services__grid--featured { grid-template-columns: 1fr; }
  .service-card--featured   { min-height: 0; }
  :root { --header-h: 68px; }

  .nav__toggle { display: block; }
  .nav__logo   { height: 16px; }                 /* ≈ 228px wide on phones */

  /* Full-screen overlay menu */
  .nav__menu {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 3rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background: var(--bg);
    clip-path: inset(0 0 100% 0);                 /* hidden: collapsed to top */
    transition: clip-path 0.7s var(--ease-out);
    visibility: hidden;
  }
  .nav__menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

  .nav__links { flex-direction: column; gap: 0.5rem; }
  .nav__link {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 2.75rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--text);
    /* Staggered slide-in when the menu opens */
    display: inline-block;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.6s var(--ease-out), color var(--dur-fast) ease;
  }
  .nav__link::after { display: none; }
  .nav__link:hover { color: var(--accent); }
  .nav__menu.is-open .nav__link { opacity: 1; transform: none; }
  .nav__menu.is-open li:nth-child(1) .nav__link { transition-delay: 0.15s; }
  .nav__menu.is-open li:nth-child(2) .nav__link { transition-delay: 0.22s; }
  .nav__menu.is-open li:nth-child(3) .nav__link { transition-delay: 0.29s; }
  .nav__menu.is-open li:nth-child(4) .nav__link { transition-delay: 0.36s; }
  .nav__cta { --btn-pad-y: 1rem; --btn-pad-x: 1.8rem; font-size: var(--fs-sm); }

  .contact__grid   { grid-template-columns: 1fr; }
  .process__steps  { grid-template-columns: 1fr; padding-top: 0; padding-left: 2.5rem; }
  /* Process line turns vertical */
  .process__line   { left: 0; top: 0; bottom: 0; right: auto; width: 1px; height: auto; }
  .process__line span { width: 100%; height: 100%; transform-origin: top; transform: scaleY(var(--progress, 0)); }
  .step__num { margin-bottom: 1rem; }
}

/* ---------- Small mobile (≤ 600px) ---------- */
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  /* Pop-up: keep first/last name side by side and tighten spacing so the
     whole form fits on a phone screen without scrolling */
  .offer .field-row:first-of-type { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .offer__form { gap: 0.8rem; }
  .offer__card { padding: 1.4rem; }
  .offer .field input { padding-block: 0.7rem; }
  .offer textarea { min-height: 4.25rem; }
  .offer .field { gap: 0.35rem; }
  .offer__title { font-size: 1.3rem; }
  .offer__sub { font-size: 0.92rem; margin-bottom: 0; }
  .btn--lg { letter-spacing: 0.1em; --btn-pad-x: 1.25rem; white-space: nowrap; }   /* long CTAs stay on one line */
  .services__grid--more { grid-template-columns: 1fr; }
  .service-card   { min-height: 0; }
  .service-card__icon { margin-top: 1.5rem; }

  .work__grid { grid-template-columns: 1fr; }
  .work-card--wide .work-card__media { aspect-ratio: 4 / 3; }
  .work-card__cta { display: none; }

  .hero__actions .btn { width: 100%; }
  .eyebrow { font-size: var(--fs-xs); letter-spacing: 0.24em; }
  .field-row      { grid-template-columns: 1fr; }
  .footer__cols   { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .problem__item  { gap: 1.25rem; }
}


/* ============================================================================
   16. REDUCED MOTION
   Respects the OS-level "reduce motion" setting: no parallax, marquee,
   grain, or reveal transforms; content is simply shown.
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal-line > span { transform: none; }
  .js [data-animate] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
