/* ===========================================================================
   Atlas Custom Homes - Editorial Premium, dark, cinematic
   Palette: paper #0e1216 / ink #ececec / accent gold #c9a227 / slate #3b4a5a
   Type: Space Grotesk (display) + Manrope (body). One accent, theme locked dark.
   =========================================================================== */

:root {
  --paper: #0e1216;
  --paper-2: #131a21;
  --paper-3: #182129;
  --ink: #ececec;
  --ink-dim: #aeb6bf;
  --ink-faint: #7d8893;
  --line: rgba(236, 236, 236, 0.10);
  --line-2: rgba(236, 236, 236, 0.16);
  --accent: #c9a227;
  --accent-soft: #e0bf52;
  --accent-deep: #8f7218;
  --slate: #3b4a5a;
  --slate-2: #4c5e72;
  --on-accent: #14110a;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 18px 50px -22px rgba(201, 162, 39, 0.5);
}

/* NAV-SAFETY: [hidden] must never be out-ranked */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.4rem); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.96rem;
  line-height: 1; white-space: nowrap;
  padding: 0.92rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-gold); }
.btn--primary:hover { background: var(--accent-soft); transform: translateY(-2px); }

.btn--call { background: var(--ink); color: var(--paper); }
.btn--call:hover { background: #fff; transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

.btn--lg { padding: 1.1rem 1.85rem; font-size: 1.04rem; }
.btn--block { width: 100%; }

/* ===== Cursor-follow accent glow (technique c) ===== */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px;
  margin: -240px 0 0 -240px; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0) 62%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.5s ease;
  will-change: transform;
}
body.has-cursor .cursor-glow { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 18, 22, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled { background: rgba(11, 14, 18, 0.92); border-bottom-color: var(--line-2); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); flex: none; }
.brand__mark { color: var(--accent); display: inline-flex; }
.brand__name { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.16rem; letter-spacing: -0.01em; }
.brand__name em { font-style: normal; color: var(--ink-dim); font-weight: 500; }

.nav__links { display: flex; gap: 1.7rem; margin-left: auto; }
.nav__links a {
  font-size: 0.94rem; color: var(--ink-dim); font-weight: 500; position: relative; padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--accent); transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 0.7rem; }
.nav__actions .btn { padding: 0.7rem 1.15rem; font-size: 0.9rem; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav__toggle-bar { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile nav ===== */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10, 13, 17, 0.98);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 6rem 1.6rem 2rem;
}
.mobile-nav a { font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 600; color: var(--ink); padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 0.8rem; font-size: 1.05rem; padding: 1rem; }
.mobile-nav__close {
  position: absolute; top: 1.5rem; right: 1.5rem; width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* ===== HERO (alive on load) ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(620px, 92vh, 940px);
  display: flex; align-items: center;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(120% 90% at 78% 6%, rgba(59, 74, 90, 0.42), transparent 55%),
    radial-gradient(90% 70% at 12% 100%, rgba(201, 162, 39, 0.10), transparent 60%),
    linear-gradient(180deg, #0c1014, #0e1216 60%, #0b0e12);
}
.hero__fx {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  display: block; pointer-events: none;
}
.hero__grid-overlay {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(236, 236, 236, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 236, 236, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 35%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 50% 35%, #000 35%, transparent 78%);
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 120% at 50% 40%, transparent 50%, rgba(7, 9, 12, 0.7) 100%);
}

.hero__inner { position: relative; max-width: 920px; }
.hero__eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-soft); margin-bottom: 1.25rem;
  padding: 0.45rem 0.9rem; border: 1px solid rgba(201, 162, 39, 0.32); border-radius: 999px;
  background: rgba(201, 162, 39, 0.06);
}

.hero__title {
  font-size: clamp(2.3rem, 5.3vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 17ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line__mask { display: block; white-space: nowrap; padding-right: 0.14em; }
.hero__title .accent { color: var(--accent); }
@media (max-width: 560px) {
  .hero__title { font-size: clamp(1.7rem, 7.2vw, 2.4rem); max-width: 18ch; }
  .hero__title .line { overflow: hidden; }
  .hero__title .line__mask { white-space: nowrap; padding-right: 0.1em; }
}

.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink-dim); max-width: 40ch; margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 0.7rem 2rem; align-items: center;
  font-size: 0.92rem; color: var(--ink-faint);
}
.hero__trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero__trust li:not(:last-child)::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--slate-2); margin-left: 2rem; }
.hero__trust strong { color: var(--accent-soft); font-weight: 700; }

/* JS load-in: only applied when motion is allowed and JS runs.
   Default (no JS / reduced motion) leaves the hero fully visible. */
.js-anim .hero__title .line__mask { will-change: transform; }
.js-anim [data-hero-in] { opacity: 0; }

/* ===== Trust strip ===== */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust__row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding: 1.5rem clamp(1.2rem, 4vw, 2.4rem);
}
.trust__item { display: flex; align-items: center; gap: 0.7rem; color: var(--ink-dim); font-size: 0.95rem; font-weight: 500; justify-content: center; }
.trust__item svg { color: var(--accent); flex: none; }

/* ===== Section base ===== */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section__head { max-width: 640px; margin-bottom: 3.2rem; }
.section__head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1rem; }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem; display: block;
}
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-dim); }

/* Scroll reveal (refined motion under the cinematic layer) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Services ===== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: linear-gradient(180deg, var(--paper-3), var(--paper-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(140% 120% at 0% 0%, rgba(201, 162, 39, 0.10), transparent 45%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 12px; background: rgba(201, 162, 39, 0.10); color: var(--accent);
  border: 1px solid rgba(201, 162, 39, 0.22); margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-dim); font-size: 0.98rem; }
.card--feature {
  background: linear-gradient(155deg, rgba(201, 162, 39, 0.12), var(--paper-3) 55%);
  border-color: rgba(201, 162, 39, 0.28);
}

/* ===== THE BUILD (pinned scroll showpiece) ===== */
.build { position: relative; background: #0a0d11; }
.build__sticky {
  position: sticky; top: 0; height: 100vh; min-height: 560px;
  overflow: hidden; display: flex; align-items: flex-end;
}
.build__stage { position: absolute; inset: 0; z-index: 0; }
.build__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s linear;
}
.build__img[data-stage="0"] { opacity: 1; }            /* first stage visible by default */
.build__img.is-shown { opacity: 1; }
.build__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.55) 0%, rgba(7, 9, 12, 0.15) 38%, rgba(7, 9, 12, 0.88) 100%);
}
.build__overlay { position: relative; z-index: 1; padding-bottom: clamp(2.5rem, 6vw, 5rem); padding-top: 4rem; max-width: var(--maxw); }
.build__title { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 1.4rem; max-width: 16ch; }
.build__captions { display: grid; gap: 0.55rem; margin-bottom: 1rem; max-width: 32ch; }
.build__captions li {
  display: flex; align-items: center; gap: 0.8rem; color: var(--ink-faint);
  font-size: 1.02rem; font-weight: 500; opacity: 0.35; transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.build__captions li.is-active { opacity: 1; color: var(--ink); }
.build__step { font-family: "Space Grotesk", sans-serif; font-size: 0.85rem; color: var(--accent); border: 1px solid rgba(201,162,39,0.4); border-radius: 6px; padding: 0.15rem 0.4rem; flex: none; }
.build__caption-static { display: none; color: var(--ink-dim); max-width: 38ch; margin-bottom: 1.4rem; }
.build__overlay .btn { margin-top: 0.6rem; }

/* Reduced-motion / no-JS: show finished home + static caption, no pin behaviour */
@media (prefers-reduced-motion: reduce) {
  .build__sticky { position: relative; height: clamp(460px, 70vh, 680px); }
  .build__img { opacity: 0; transition: none; }
  .build__img[data-stage="0"] { opacity: 0; }
  .build__img[data-stage="4"] { opacity: 1; }
  .build__captions { display: none; }
  .build__caption-static { display: block; }
}

/* ===== Why ===== */
.why { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.why__intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 1rem; }
.why__intro .btn { margin-top: 1.6rem; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.why__list li { padding-top: 1.3rem; border-top: 1px solid var(--line-2); }
.why__num { font-family: "Space Grotesk", sans-serif; font-size: 0.9rem; color: var(--accent); font-weight: 600; display: block; margin-bottom: 0.7rem; }
.why__list h3 { font-size: 1.18rem; margin-bottom: 0.45rem; }
.why__list p { color: var(--ink-dim); font-size: 0.96rem; }

/* ===== Builder promise / CTA ===== */
.hook__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hook__copy h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1.1rem; }
.hook__points { display: grid; gap: 0.7rem; margin: 1.6rem 0 2rem; }
.hook__points li { position: relative; padding-left: 1.9rem; color: var(--ink-dim); }
.hook__points li::before {
  content: ""; position: absolute; left: 0; top: 0.4em; width: 13px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.hook__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.hook__stat {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.hook__stat-num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; color: var(--accent);
}
.hook__stat-label { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.45; }

/* ===== Work / gallery ===== */
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.work__item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 0; }
.work__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.work__item:hover img { transform: scale(1.05); }
.work__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.1rem 0.9rem;
  font-size: 0.88rem; font-weight: 500; color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(7, 9, 12, 0.9));
}
.work__item--tall { grid-row: span 2; }
.work__item--wide { grid-column: span 2; }

/* ===== Reviews ===== */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review {
  background: linear-gradient(180deg, var(--paper-3), var(--paper-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; margin: 0;
}
.review__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 1rem; font-size: 0.95rem; }
.review p { color: var(--ink); font-size: 1.04rem; line-height: 1.55; margin-bottom: 1.2rem; }
.review cite { font-style: normal; color: var(--ink-faint); font-size: 0.9rem; font-weight: 500; }

/* ===== Area ===== */
.area { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.area__copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1rem; }
.area__copy .btn { margin-top: 1.5rem; }
.area__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem 1rem; }
.area__list li {
  padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-dim); font-size: 0.92rem; font-weight: 500; text-align: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.area__list li:hover { border-color: rgba(201, 162, 39, 0.4); color: var(--ink); background: rgba(201, 162, 39, 0.05); }

/* ===== FAQ ===== */
.faq__wrap { max-width: 820px; margin: 0 auto; }
.faq__list { display: grid; gap: 0.7rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); overflow: hidden; transition: border-color 0.25s var(--ease); }
.faq__item[open] { border-color: var(--line-2); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.25rem 1.4rem; font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 1.06rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.faq__plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__plus::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); opacity: 0; }
.faq__body { padding: 0 1.4rem 1.3rem; }
.faq__body p { color: var(--ink-dim); font-size: 0.98rem; }

/* ===== CTA + form ===== */
.cta { background: radial-gradient(120% 100% at 80% 0%, rgba(59, 74, 90, 0.35), transparent 55%), var(--paper-2); border-top: 1px solid var(--line); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cta__copy h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.cta__phone { margin: 1.6rem 0 1.4rem; }
.cta__phone a { display: inline-flex; align-items: center; gap: 0.6rem; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; color: var(--accent-soft); }
.cta__phone svg { color: var(--accent); }
.cta__assure { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; color: var(--ink-faint); font-size: 0.92rem; }
.cta__assure li { display: flex; align-items: center; gap: 0.5rem; }
.cta__assure li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.cta__form { background: linear-gradient(180deg, var(--paper-3), #0d1318); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-dim); }
.field .opt { color: var(--ink-faint); font-weight: 400; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(7, 9, 12, 0.55); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 0.8rem 0.95rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18); }
.field textarea { resize: vertical; min-height: 84px; }
.form-note { margin-top: 0.9rem; padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.92rem; background: rgba(201, 162, 39, 0.12); border: 1px solid rgba(201, 162, 39, 0.3); color: var(--accent-soft); }
.form-note.is-error { background: rgba(208, 91, 91, 0.12); border-color: rgba(208, 91, 91, 0.4); color: #e89a9a; }
.form-fineprint { margin-top: 0.9rem; font-size: 0.8rem; color: var(--ink-faint); }

/* ===== Footer ===== */
.footer { background: #0a0d11; border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.brand--footer { margin-bottom: 1rem; }
.footer__brand p { color: var(--ink-faint); font-size: 0.94rem; max-width: 34ch; margin-top: 1rem; }
.footer__col h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 1rem; font-family: "Space Grotesk", sans-serif; }
.footer__col p { color: var(--ink-faint); font-size: 0.92rem; margin-bottom: 0.55rem; }
.footer__col a { color: var(--ink-dim); transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--accent-soft); }
.footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.footer__base p { color: var(--ink-faint); font-size: 0.86rem; }
.footer__social { display: flex; gap: 1.4rem; }
.footer__social a { color: var(--ink-faint); font-size: 0.86rem; transition: color 0.2s var(--ease); }
.footer__social a:hover { color: var(--accent-soft); }

/* ===== Sticky mobile call bar ===== */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: none;
  grid-template-columns: 1fr 1.3fr; gap: 0.6rem; padding: 0.7rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 13, 17, 0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2);
}
.callbar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem; border-radius: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.98rem; }
.callbar__quote { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.callbar__call { background: var(--accent); color: var(--on-accent); }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 1024px) {
  .nav__links { gap: 1.2rem; }
  .services__grid, .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__item--wide { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { height: 66px; }

  .why__grid, .hook__grid, .area__grid, .cta__grid { grid-template-columns: 1fr; }
  .why__intro { margin-bottom: 0.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  body { padding-bottom: 4.6rem; } /* room for sticky call bar */
  .callbar { display: grid; }
}

@media (max-width: 680px) {
  .trust__row { grid-template-columns: 1fr 1fr; gap: 0.9rem 0.5rem; }
  .trust__item { justify-content: flex-start; font-size: 0.88rem; }
  .services__grid, .reviews__grid { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .work__item--tall { grid-row: span 1; }
  .work__item--wide { grid-column: span 1; }
  .area__list { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 0.5rem 1.2rem; }
  .hero__trust li:not(:last-child)::after { display: none; }
  .build__captions { max-width: none; }
}

/* Honour reduced motion globally for transitions that imply movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .work__item:hover img { transform: none; }
}

/* =====================================================================
   DRAFTLINE SET-PIECE  ("Drawings to keys")
   ---------------------------------------------------------------------
   A pinned stage. As the page scrolls through a tall track, an
   architectural line-drawing of a modern Atlas home draws itself
   (footprint -> walls -> cantilever+roof -> glazing+door), then
   crossfades from gold line-work to a solid, rendered home in the
   Atlas palette. Driven purely off one --dl-p (0..1) custom property
   written by JS, so it is GPU-cheap. Self-contained, no GSAP.
   Reduced-motion + no-JS force --dl-p:1 and unpin.
   ===================================================================== */
.draftline {
  --dl-p: 0;
  position: relative;
  background: var(--paper);
  color: var(--ink);
}
/* Scroll runway: how much scroll the sequence consumes. */
.dl-track { position: relative; height: 400vh; }
/* Pinned canvas. Sticky beats JS position-swap: no jank on resize.
   dvh stops iOS Safari address-bar jump mid-pin. */
.dl-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* "Drafting table": a cool grid that warms toward gold as it finishes. */
.dl-paper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(78% 70% at 50% 16%,
      color-mix(in srgb, #1b2735 calc(78% * (1 - var(--dl-p))), var(--paper)) 0%,
      var(--paper) 74%);
}
.dl-paper::before {
  /* engineering grid, fades out as the build "renders" */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(201, 162, 39, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 162, 39, 0.10) 1px, transparent 1px);
  background-size: clamp(26px, 4vw, 46px) clamp(26px, 4vw, 46px);
  opacity: calc(0.85 - 0.65 * var(--dl-p));
  -webkit-mask-image: radial-gradient(110% 95% at 50% 34%, #000 55%, transparent 92%);
  mask-image: radial-gradient(110% 95% at 50% 34%, #000 55%, transparent 92%);
}
.dl-paper::after {
  /* warm gold wash that arrives with the finished home */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 55% at 70% 16%, rgba(201, 162, 39, 0.26), transparent 66%);
  opacity: var(--dl-p);
}

.dl-stage-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 1rem + 3vw, 3rem);
  align-items: center;
}
@media (min-width: 940px) {
  .dl-stage-inner { grid-template-columns: 0.82fr 1.18fr; }
}

.dl-copy { max-width: 30rem; }
.dl-eyebrow { color: var(--accent-soft); }
.dl-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
  margin-top: 0.6rem;
}
.dl-title em { font-style: italic; font-weight: 500; color: var(--accent); }
.dl-lede {
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.22rem);
  color: var(--ink-dim);
  margin-top: 1.05rem;
  max-width: 42ch;
  line-height: 1.55;
}

/* Phase ticker: lights up as its phase draws. */
.dl-phases { display: grid; gap: 0.55rem; margin-top: 1.8rem; }
.dl-phase {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-dim);
  opacity: 0.5;
  transition: opacity 0.34s var(--ease), color 0.34s var(--ease);
}
.dl-phase .dl-phase-mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
  flex: none;
}
.dl-phase .dl-phase-mark svg {
  width: 11px; height: 11px;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.dl-phase.is-active { opacity: 1; color: var(--ink); }
.dl-phase.is-done { opacity: 1; color: var(--accent-soft); }
.dl-phase.is-done .dl-phase-mark { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dl-phase.is-done .dl-phase-mark svg { opacity: 1; transform: scale(1); }

.dl-figure { position: relative; width: 100%; margin: 0; }
.dl-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Free DrawSVG: JS sets --dash (path length) + --draw (0..1) per path. */
.dl-line {
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--dash);
  stroke-dashoffset: calc(var(--dash) * (1 - var(--draw, 0)));
  filter: drop-shadow(0 0 5px rgba(201, 162, 39, 0.4));
}
.dl-line-faint { stroke: rgba(201, 162, 39, 0.45); stroke-width: 1.4; filter: none; }

.dl-blue { opacity: clamp(0, calc((0.96 - var(--dl-p)) / 0.18), 1); }

.dl-solid {
  opacity: clamp(0, calc((var(--dl-p) - 0.74) / 0.2), 1);
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scale(calc(0.985 + 0.015 * clamp(0, calc((var(--dl-p) - 0.74) / 0.2), 1)));
}

.dl-scan {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: clamp(0, calc((0.78 - var(--dl-p)) / 0.08), 0.85);
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.65));
}

.dl-stamp {
  position: absolute;
  right: clamp(0.5rem, 2vw, 1.5rem);
  bottom: clamp(0.5rem, 2vw, 1.2rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
  opacity: clamp(0, calc((var(--dl-p) - 0.9) / 0.08), 1);
  transform: translateY(calc(8px * (1 - clamp(0, calc((var(--dl-p) - 0.9) / 0.08), 1))));
  pointer-events: none;
}
.dl-stamp svg { width: 14px; height: 14px; flex: none; }

/* Reduced motion / no-JS: no pin, finished home, static. */
@media (prefers-reduced-motion: reduce) {
  .dl-track { height: auto; }
  .dl-stage { position: static; height: auto; min-height: 70vh; padding-block: clamp(4rem, 2.5rem + 6vw, 7.5rem); }
  .draftline { --dl-p: 1 !important; }
}
/* No-JS / not-yet-initialised: show the finished home, no pin. The driver
   adds .dl-on once it is live, which switches on the runway + pinning. */
.draftline:not(.dl-on) { --dl-p: 1; }
.draftline:not(.dl-on) .dl-track { height: auto; }
.draftline:not(.dl-on) .dl-stage { position: static; height: auto; min-height: 70vh; padding-block: clamp(4rem, 2.5rem + 6vw, 7.5rem); }
