
/* ===== Magnolia Fencing Co. — design tokens ===== */
:root {
  /* type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --font-display: 'Clash Display', 'Archivo', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 74px;
}

/* dark = default (brand) */
:root,
[data-theme='dark'] {
  --color-bg: #0a0a0b;
  --color-surface: #121214;
  --color-surface-2: #1a1a1d;
  --color-surface-3: #232327;
  --color-border: #2c2c31;
  --color-divider: #202024;
  --color-text: #f2f1ee;
  --color-text-muted: #a3a29e;
  --color-text-faint: #6f6e6b;
  --color-gold: #c9a24a;
  --color-gold-soft: #e0c078;
  --color-steel: #d4d8dc;
  --color-on-gold: #100e08;
  --shadow-lg: 0 24px 60px -18px rgb(0 0 0 / 0.75);
  --shadow-sm: 0 2px 10px rgb(0 0 0 / 0.5);
  --hero-veil: linear-gradient(
    180deg,
    rgb(8 8 9 / 0.86) 0%,
    rgb(8 8 9 / 0.62) 38%,
    rgb(8 8 9 / 0.8) 78%,
    rgb(10 10 11 / 1) 100%
  );
  --grain-opacity: 0.045;
}

[data-theme='light'] {
  --color-bg: #f6f4ef;
  --color-surface: #fffefb;
  --color-surface-2: #efece4;
  --color-surface-3: #e5e1d7;
  --color-border: #d8d3c7;
  --color-divider: #e2ddd2;
  --color-text: #17160f;
  --color-text-muted: #5f5c52;
  --color-text-faint: #8a8679;
  --color-gold: #8a6a1c;
  --color-gold-soft: #6f5416;
  --color-steel: #3d3a33;
  --color-on-gold: #fffdf6;
  --shadow-lg: 0 24px 50px -22px rgb(38 32 18 / 0.28);
  --shadow-sm: 0 2px 10px rgb(38 32 18 / 0.1);
  --hero-veil: linear-gradient(
    180deg,
    rgb(10 9 7 / 0.8) 0%,
    rgb(10 9 7 / 0.5) 38%,
    rgb(10 9 7 / 0.72) 78%,
    rgb(10 9 7 / 0.9) 100%
  );
  --grain-opacity: 0.02;
}

/* ===== base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
::selection {
  background: var(--color-gold);
  color: var(--color-on-gold);
}
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}
section {
  position: relative;
}
.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
.divider-top {
  border-top: 1px solid var(--color-divider);
}

/* eyebrow / labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--color-gold);
  display: block;
}
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-head h2 {
  font-size: var(--text-2xl);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.section-head p {
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  max-width: 58ch;
}
.lede {
  font-size: var(--text-lg);
  line-height: 1.45;
  font-family: var(--font-body);
  font-weight: 500;
}

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem var(--space-6);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--gold {
  background: var(--color-gold);
  color: var(--color-on-gold);
  box-shadow: 0 10px 30px -12px rgb(201 162 74 / 0.6);
}
.btn--gold:hover {
  background: var(--color-gold-soft);
}
.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.btn--block {
  width: 100%;
}
.btn--lg {
  padding: 1.15rem var(--space-8);
}

/* ===== header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.header--scrolled {
  border-bottom-color: var(--color-divider);
  background: color-mix(in oklab, var(--color-bg) 94%, transparent);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.brand svg {
  width: 34px;
  height: 38px;
  flex: none;
  color: var(--color-gold);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}
.brand__name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}
.brand__sub {
  white-space: nowrap;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 4px;
  font-weight: 700;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 1.6vw, var(--space-7, 1.75rem));
}
.nav a {
  white-space: nowrap;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding-block: var(--space-2);
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-gold);
  transition: width 0.3s var(--ease);
}
.nav a:hover {
  color: var(--color-text);
}
.nav a:hover::after {
  width: 100%;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-text-muted);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.icon-btn:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.menu-btn {
  display: none;
}
[data-theme='dark'] .icon-sun {
  display: block;
}
[data-theme='dark'] .icon-moon {
  display: none;
}
[data-theme='light'] .icon-sun {
  display: none;
}
[data-theme='light'] .icon-moon {
  display: block;
}

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(var(--space-20), 12vh, var(--space-32)) clamp(var(--space-12), 7vw, var(--space-24));
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-veil);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: end;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.25rem, 1rem + 3.5vw, 4.25rem);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.025em;
  text-shadow: 0 6px 40px rgb(0 0 0 / 0.55);
}
.hero h1 .accent {
  color: var(--color-gold-soft);
  display: block;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f0e7d0;
  background: rgb(10 9 6 / 0.55);
  border: 1px solid rgb(201 162 74 / 0.45);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(6px);
}
.hero p.hero__sub {
  margin-top: var(--space-6);
  max-width: 48ch;
  color: #e7e4dc;
  font-size: var(--text-lg);
  line-height: 1.45;
  font-weight: 500;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.6);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.hero__loop {
  border: 1px solid rgb(201 162 74 / 0.32);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0a0b;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
}
.hero__loop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== trust strip ===== */
.strip {
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.strip__item {
  padding: clamp(var(--space-6), 3vw, var(--space-10)) clamp(var(--space-4), 2vw, var(--space-8));
  border-left: 1px solid var(--color-divider);
}
.strip__item:first-child {
  border-left: 0;
}
.strip__item h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}
.strip__item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ===== services ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(var(--space-4), 1.6vw, var(--space-6));
}
.card {
  position: relative;
  grid-column: span 2;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--color-gold) 55%, var(--color-border));
  box-shadow: var(--shadow-lg);
}
.card--wide {
  grid-column: span 3;
}
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-2);
}
.card--wide .card__media {
  aspect-ratio: 16 / 8;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__media img {
  transform: scale(1.05);
}
.card__num {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #f4e9cd;
  background: rgb(8 8 6 / 0.62);
  border: 1px solid rgb(201 162 74 / 0.4);
  border-radius: 999px;
  padding: 2px 12px;
  backdrop-filter: blur(4px);
}
.card__body {
  padding: clamp(var(--space-5), 2vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.card__body h3 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.card__body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
}
.tag {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ===== build spec / process ===== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}
.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}
.spec-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}
.spec-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.spec-list svg {
  width: 26px;
  height: 26px;
  color: var(--color-gold);
  margin-top: 3px;
}
.spec-list h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.spec-list p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(var(--space-4), 2vw, var(--space-8));
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
}
.step {
  padding-top: var(--space-5);
  border-top: 2px solid var(--color-gold);
}
.step span {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.step h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ===== film section ===== */
.film {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}
.film__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.film__player {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 1;
}
.film__player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== area ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}
.area-grid li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 500;
  transition:
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.area-grid li::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--color-gold);
  transform: rotate(45deg);
}
.area-grid li:hover {
  border-color: var(--color-gold);
}

/* ===== faq ===== */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 900px;
}
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-weight: 700;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 70ch;
}

/* ===== contact ===== */
.contact {
  background:
    linear-gradient(to bottom, color-mix(in oklab, var(--color-bg) 92%, #000 8%), var(--color-bg));
  border-top: 1px solid var(--color-divider);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: start;
}
.contact__aside h2 {
  font-size: var(--text-2xl);
  text-transform: uppercase;
}
.contact__aside p {
  color: var(--color-text-muted);
  margin-top: var(--space-5);
}
.contact__points {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0 0;
  display: grid;
  gap: var(--space-4);
}
.contact__points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact__points svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  margin-top: 4px;
}
.mail-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
  border-bottom: 1px solid color-mix(in oklab, var(--color-gold) 40%, transparent);
  padding-bottom: 4px;
  transition: color 0.25s var(--ease);
  word-break: break-word;
}
.mail-link:hover {
  color: var(--color-gold-soft);
  border-bottom-color: var(--color-gold);
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  box-shadow: var(--shadow-lg);
  position: relative;
}
.form-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}
.form-card__head h3 {
  font-size: var(--text-xl);
  text-transform: uppercase;
}
.form-card__head span {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.field label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
}
.field label .req {
  color: var(--color-gold);
}
.field input,
.field select,
.field textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem var(--space-4);
  font-size: var(--text-sm);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  width: 100%;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-faint);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-gold) 22%, transparent);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-gold) 50%),
    linear-gradient(135deg, var(--color-gold) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% + 2px),
    calc(100% - 14px) calc(50% + 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--space-10);
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.field--error input,
.field--error select,
.field--error textarea {
  border-color: #e0623f;
}
.err {
  display: none;
  font-size: var(--text-xs);
  color: #e0623f;
  font-weight: 600;
}
.field--error .err {
  display: block;
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}
.form-foot small {
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  max-width: 44ch;
}
.form-status {
  display: none;
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  border: 1px solid;
}
.form-status[data-state='ok'] {
  display: block;
  border-color: color-mix(in oklab, var(--color-gold) 55%, transparent);
  background: color-mix(in oklab, var(--color-gold) 12%, transparent);
  color: var(--color-text);
}
.form-status[data-state='err'] {
  display: block;
  border-color: #e0623f;
  background: color-mix(in oklab, #e0623f 12%, transparent);
  color: var(--color-text);
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid color-mix(in oklab, var(--color-on-gold) 40%, transparent);
  border-top-color: var(--color-on-gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.is-sending .spinner {
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.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;
}

/* ===== footer ===== */
.footer {
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.7fr));
  gap: clamp(var(--space-8), 4vw, var(--space-16));
}
.footer__logo {
  width: min(320px, 100%);
  margin-bottom: var(--space-6);
}
.footer p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 40ch;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
  font-weight: 700;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.footer ul a,
.footer ul li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer ul a:hover {
  color: var(--color-gold);
}
.footer__bottom {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ===== reveal motion ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  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'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== responsive ===== */
@media (max-width: 1040px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__loop {
    display: none;
  }
  .svc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card--wide {
    grid-column: span 4;
  }
  .contact__grid,
  .film__grid,
  .split {
    grid-template-columns: 1fr;
  }
  .strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .strip__item:nth-child(3) {
    border-left: 0;
  }
  .strip__item:nth-child(n + 3) {
    border-top: 1px solid var(--color-divider);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) clamp(var(--space-5), 5vw, var(--space-8)) var(--space-6);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav.open {
    transform: none;
  }
  .nav a {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-divider);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
  }
  .nav a::after {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .brand__sub {
    display: none;
  }
  .brand__name {
    font-size: 0.98rem;
  }
  .header__cta {
    display: none;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .card,
  .card--wide {
    grid-column: span 1;
  }
  .strip__grid {
    grid-template-columns: 1fr;
  }
  .strip__item {
    border-left: 0;
    border-top: 1px solid var(--color-divider);
  }
  .strip__item:first-child {
    border-top: 0;
  }
  .steps,
  .field-row {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: var(--space-16);
  }
}

/* hide duplicate quote link on wide screens (header CTA covers it) */
@media (min-width: 761px) {
  .nav__quote {
    display: none;
  }
}

/* hero sits on a dark photo veil in BOTH themes — force light-on-dark treatment */
.hero h1 .accent {
  color: #e2c47f;
}
.hero .btn--ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.45);
}
.hero .btn--ghost:hover {
  color: #e2c47f;
  border-color: #e2c47f;
}

/* hero title — single gold statement */
.hero h1.hero__title {
  color: #e9d3a0;
}

/* "also available" strip */
.also {
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-4) var(--space-6);
}
.also h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  flex: none;
}
.also ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}
.also li {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 13px;
}

/* service-area chip centered above the hero */
.hero__areas {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.hero__areas .hero__kicker {
  margin-bottom: 0;
  text-align: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 2px;
  max-width: 100%;
}
.hero__kicker .nw { white-space: nowrap; }
