/* ============================================================
   DUST DEVELOPMENT — Design System
   Dark & premium: charcoal base, bronze accent, editorial serif
   ============================================================ */

:root {
  /* Color tokens */
  --bg: #0d0c0a;
  --bg-2: #131110;
  --surface: #1a1714;
  --surface-2: #211d19;
  --line: rgba(237, 233, 225, 0.09);
  --line-strong: rgba(237, 233, 225, 0.18);
  --text: #ede9e1;
  --text-soft: #cfc9be;
  --muted: #9c958a;
  --accent: #c6a15b;
  --accent-soft: #d9bc85;
  --accent-dim: rgba(198, 161, 91, 0.14);

  /* Type */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;

  --radius: 2px;
  --container: 1240px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #14110b; }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #14110b; padding: 12px 20px;
  font-weight: 600; font-size: 14px; border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Typography ---------- */
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
.display-xl { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.display-lg { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
.display-md { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.display-sm { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-soft); line-height: 1.7; max-width: 58ch; }
.body-muted { color: var(--muted); max-width: 62ch; }
.accent { color: var(--accent); }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-soft); }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 40px); } }

.section { padding-block: clamp(var(--space-5), 9vw, var(--space-7)); position: relative; }
.section-head { margin-bottom: clamp(var(--space-4), 5vw, var(--space-5)); }
.section-head .display-lg { margin-top: var(--space-2); }
.section-head .lede { margin-top: var(--space-3); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-4), 5vw, var(--space-6)); align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(13, 12, 10, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.4s ease;
}
.nav.is-solid {
  background: rgba(13, 12, 10, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: min(var(--container), 100% - 48px); margin-inline: auto; }

.brand { display: flex; flex-direction: column; line-height: 1; gap: 4px; padding: 8px 0; }
.brand-name { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; letter-spacing: 0.14em; }
.brand-sub { font-size: 10px; letter-spacing: 0.44em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); align-items: center; }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-soft); padding: 14px 2px; position: relative; transition: color 0.25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 8px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: inline-flex; }
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
}

/* Mobile menu */
.menu-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px; z-index: 120;
}
.menu-toggle span { width: 26px; height: 1.5px; background: var(--text); transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 960px) { .menu-toggle { display: flex; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-links a {
  font-family: var(--font-serif); font-size: clamp(2rem, 8vw, 3rem);
  padding: 10px 8px; color: var(--text-soft); display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line); transition: color 0.25s ease, padding-left 0.25s ease;
}
.mobile-menu-links a:hover, .mobile-menu-links a[aria-current="page"] { color: var(--accent); padding-left: 16px; }
.mobile-menu-links .idx { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.mobile-menu-foot { margin-top: 48px; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 30px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: var(--radius); position: relative; overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.btn .arrow { transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-primary { background: var(--accent); color: #14110b; }
.btn-primary:hover { background: var(--accent-soft); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-ghost {
  min-height: 48px; padding: 12px 4px; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 13px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid transparent; transition: gap 0.3s ease, border-color 0.3s ease;
}
.btn-ghost:hover { gap: 16px; border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(48px, 8vh, 88px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img, .hero-media video, .hero-media .img-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { transform: scale(1.08); }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(13, 12, 10, 0.96) 0%, rgba(13, 12, 10, 0.55) 45%, rgba(13, 12, 10, 0.35) 100%),
    linear-gradient(100deg, rgba(13, 12, 10, 0.75) 0%, rgba(13, 12, 10, 0.1) 65%);
}
.hero-content { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.hero-title { margin: var(--space-3) 0; max-width: 15ch; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: var(--space-4); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 80px);
  margin-top: clamp(40px, 7vh, 72px); padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.hero-meta .stat-num { font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--text); }
.hero-meta .stat-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.scroll-cue {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(56px, 10vh, 110px)) 0 clamp(40px, 6vh, 72px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .display-xl { margin-top: var(--space-2); max-width: 16ch; }
.page-hero .lede { margin-top: var(--space-3); }
.page-hero-bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.16;
  background-image: radial-gradient(ellipse 60% 55% at 78% 10%, rgba(198, 161, 91, 0.5), transparent 65%);
}

/* ---------- Imagery ---------- */
.frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(160deg, #221e19 0%, #14110e 55%, #1c1712 100%);
}
.frame::before {
  /* placeholder texture behind images — visible if a photo fails or while loading */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.frame img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.frame .parallax-img { height: 112%; width: 100%; will-change: transform; }
.frame-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(13, 12, 10, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--radius);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft);
}
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg); padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 18px; min-height: 320px;
  position: relative; transition: background 0.35s ease;
}
.service-card:hover { background: var(--surface); }
.service-card .num { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); transition: color 0.3s ease; }
.service-card:hover .num { color: var(--accent); }
.service-card .icon { width: 40px; height: 40px; color: var(--accent); }
.service-card .icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.35rem; margin-top: auto; }
.service-card p { color: var(--muted); font-size: 0.95rem; }
.service-card .card-link {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); display: inline-flex; gap: 8px; align-items: center; margin-top: 4px;
  opacity: 0.85; transition: gap 0.3s ease, opacity 0.3s ease;
}
.service-card:hover .card-link { gap: 14px; opacity: 1; }
.service-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.service-card:hover::after { transform: scaleX(1); }

/* Service detail rows (services page) */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.service-row:last-of-type { border-bottom: 0; }
.service-row:nth-child(even) .service-row-media { order: 2; }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
}
.service-row h3 { margin: 14px 0 16px; }
.feature-list { display: grid; gap: 12px; margin-top: 22px; }
.feature-list li { display: flex; gap: 14px; align-items: baseline; color: var(--text-soft); }
.feature-list li::before { content: "—"; color: var(--accent); flex-shrink: 0; }

/* ---------- Projects ---------- */
/* Pinned project showcase (home). Base styles are the static no-JS layout;
   the .js overrides below are the pinned full-bleed takeover. */
.showcase { position: relative; margin-top: clamp(32px, 5vw, 56px); }
.showcase-stage { position: relative; }
.slide { position: relative; min-height: 64svh; overflow: hidden; margin-bottom: 2px; }
.slide-img { position: absolute; inset: 0; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; }
.slide-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 12, 10, 0.85) 0%, rgba(13, 12, 10, 0.15) 55%);
}
.slide-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  width: min(var(--container), 100% - 48px); margin-inline: auto;
  padding-bottom: clamp(28px, 6vh, 64px);
}
.slide-copy .meta-row {
  display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-soft); margin-bottom: 12px;
}
.slide-copy h3 { font-size: clamp(2rem, 6vw, 4.4rem); }
.slide-copy .btn-ghost { margin-top: 16px; }
.slide-idx {
  position: absolute; top: calc(50% - 0.5em); right: clamp(20px, 5vw, 64px); z-index: 2;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--accent); opacity: 0.9;
}
.js .showcase-stage { height: 100svh; overflow: hidden; }
.js .slide { position: absolute; inset: 0; min-height: 0; margin: 0; visibility: hidden; }
.js .slide-img { clip-path: inset(28% 34% 28% 34% round 2px); }
@media (prefers-reduced-motion: reduce) {
  .js .showcase-stage { height: auto; overflow: visible; }
  .js .slide { position: relative; inset: auto; min-height: 64svh; margin-bottom: 2px; visibility: visible; }
  .js .slide-img { clip-path: none; }
}

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
@media (max-width: 1000px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card { display: block; position: relative; }
.project-card .frame { transition: transform 0.4s ease; }
.project-card .frame img { transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.4s ease; }
.project-card:hover .frame img { transform: scale(1.05); }
.project-card-body { padding: 18px 2px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.project-card-body h3 { font-size: 1.2rem; }
.project-card-body .loc { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.project-card .cat {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(13, 12, 10, 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: var(--accent-soft); padding: 7px 12px; border-radius: var(--radius);
}

/* Empty state — shown when a category filter returns nothing */
.empty-state {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.empty-state[hidden] { display: none; }
.empty-state .mark {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--accent); margin-bottom: 8px;
}
.empty-state .mark svg { width: 26px; height: 26px; }
.empty-state h3 { max-width: 20ch; }
.empty-state p { color: var(--muted); max-width: 48ch; }
.empty-state .btn { margin-top: 12px; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.filter-btn {
  min-height: 44px; padding: 10px 20px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #14110b; }

/* ---------- Stats band ---------- */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-cell { padding: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 40px); border-left: 1px solid var(--line); }
.stat-cell:first-child { border-left: 0; }
@media (max-width: 860px) { .stat-cell:nth-child(3) { border-left: 0; } .stat-cell:nth-child(n+3) { border-top: 1px solid var(--line); } }
.stat-cell .stat-num { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--accent-soft); line-height: 1; }
.stat-cell .stat-label { margin-top: 12px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Process ---------- */
.process-list { counter-reset: step; display: grid; gap: 0; }
.process-step {
  display: grid; grid-template-columns: 90px 1fr 2fr; gap: clamp(16px, 3vw, 48px);
  align-items: baseline; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line);
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .process-step { grid-template-columns: 56px 1fr; } .process-step p { grid-column: 2; } }
.process-step .step-num { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--accent); font-style: italic; }
.process-step h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.process-step p { color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; position: relative; }
.marquee-track { display: flex; gap: 64px; width: max-content; white-space: nowrap; will-change: transform; }
.marquee-item { display: flex; align-items: center; gap: 64px; font-family: var(--font-serif); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--muted); }
.marquee-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.quote-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px);
  background: var(--bg-2); display: flex; flex-direction: column; gap: 22px; height: 100%;
}
.quote-card blockquote { font-family: var(--font-serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--text-soft); }
.quote-card blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: 0.6; color: var(--accent); margin-bottom: 14px; }
.quote-card figcaption { margin-top: auto; font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.quote-card figcaption strong { display: block; color: var(--text); font-weight: 600; letter-spacing: 0.02em; }
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
@media (max-width: 960px) { .quotes-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 100%, rgba(198, 161, 91, 0.16), transparent 70%);
}
.cta-band .display-lg { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin: var(--space-3) auto 0; }
.cta-band .actions { margin-top: var(--space-4); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- About ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }
.value-cell { background: var(--bg); padding: clamp(28px, 3vw, 44px); }
.value-cell .idx { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-size: 1.3rem; }
.value-cell h3 { margin: 14px 0 10px; font-size: 1.3rem; }
.value-cell p { color: var(--muted); font-size: 0.95rem; }

.cred-strip { display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center; padding: 24px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.cred-strip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }
.team-card .frame { margin-bottom: 16px; }
.team-card h3 { font-size: 1.25rem; }
.team-card .role { color: var(--accent); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 6px; }
.team-card p { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 28px; margin-top: var(--space-4); }
.contact-list .item .label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-list .item a, .contact-list .item .val { font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--text); transition: color 0.25s ease; }
.contact-list .item a:hover { color: var(--accent); }

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--text-soft); margin-bottom: 10px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--text); font: inherit; font-size: 15px;
  padding: 14px 16px; transition: border-color 0.25s ease, background 0.25s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239c958a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: rgba(156, 149, 138, 0.6); }
.form-note { font-size: 13px; color: var(--muted); }
.form-note a { color: var(--accent); }

/* Spam honeypot — hidden from people, not from bots.
   Deliberately not display:none, which some bots detect and skip. */
.honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

/* Field-level validation */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #e06c5f; }
.field .error {
  display: block; font-size: 13px; color: #ef9186; margin-top: 8px;
}

/* Submit button states */
.form button[type="submit"][disabled] { opacity: 0.6; cursor: not-allowed; }
.form.is-sending button[type="submit"] .arrow { animation: sending 1s ease-in-out infinite; }
@keyframes sending {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(5px); opacity: 0.4; }
}

/* Form-level status message (errors) */
.form-status { font-size: 14px; line-height: 1.6; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #ef9186; }
.form-status.is-error a { color: var(--accent); }

/* Success panel that replaces the form */
.form-success {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: clamp(32px, 4vw, 56px); background: var(--bg-2);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.form-success .tick {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); margin-bottom: 6px;
}
.form-success .tick svg { width: 24px; height: 24px; }
.form-success p { color: var(--muted); max-width: 44ch; }
.form-success a { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .form.is-sending button[type="submit"] .arrow { animation: none; }
}

/* Service-area panel (replaces the old map placeholder) */
.coverage-panel { position: relative; }
.coverage {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(24px, 4vw, 44px); gap: 14px;
}
.coverage .pulse {
  width: 12px; height: 12px; background: var(--accent); border-radius: 50%;
  position: relative; margin-bottom: 10px; flex-shrink: 0;
}
.coverage .pulse::after {
  content: ""; position: absolute; inset: -12px; border: 1px solid var(--accent); border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}
.coverage .label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.coverage ul { display: grid; gap: 6px; }
.coverage li {
  font-family: var(--font-serif); font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--text);
}
.coverage .note {
  font-size: 13px; color: var(--muted); max-width: 30ch; line-height: 1.6; margin-top: 4px;
}
@keyframes pulse { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px, 7vw, 88px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: clamp(32px, 4vw, 64px); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 600; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { color: var(--text-soft); font-size: 14.5px; transition: color 0.25s ease; display: inline-flex; padding: 2px 0; }
.footer-links a:hover { color: var(--accent); }
.footer .brand-name { font-size: 1.7rem; }
.footer-blurb { color: var(--muted); font-size: 14px; max-width: 34ch; margin-top: 16px; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  color: var(--muted); font-size: 12.5px; letter-spacing: 0.04em;
}
.acknowledgement { margin-top: 28px; color: var(--muted); font-size: 12.5px; max-width: 72ch; line-height: 1.7; opacity: 0.85; }

/* ---------- Reveal defaults (GSAP takes over; graceful without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(24px); }
.js .hero-title .word { transform: translateY(110%); }
.js [data-fade] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-group] > *, .js [data-fade] { opacity: 1; transform: none; }
  .js .hero-title .word { transform: none; }
  .scroll-cue::after, .coverage .pulse::after { animation: none; }
}

/* Page transition veil */
.page-veil { position: fixed; inset: 0; z-index: 300; background: var(--bg); pointer-events: none; opacity: 0; }
