/* ============================================================
   PhaseSave — Palm Springs luxury · 2026 refresh
   Trends: kinetic type · micro-interactions · dark mode ·
   organic shapes · accessibility-first · variable fonts · perf
   ============================================================ */

/* ---------- Brand constants ---------- */
:root {
  --clay: #c25e3a;
  --gold: #d9a441;
  --brass: #b98a2e;
  --sage: #6c7c5b;
  --night: #211a12;
  --night-2: #2a2218;
  --night-3: #38302a;
  --night-line: rgba(244, 236, 223, 0.12);
  --cream: #f3eadb;
  --cream-2: #cfc3ae;
  --cream-3: #a3967f;
  --sun-gradient: linear-gradient(115deg, #e3a13b 0%, #c96a3b 55%, #b44b3c 100%);

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", "Jost", "Century Gothic", system-ui, sans-serif;

  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Semantic tokens (day) ---------- */
:root,
:root[data-theme="day"] {
  --bg: #fbf6ee;
  --bg-2: #f4ecdf;
  --surface: #ffffff;
  --ink: #241c14;
  --ink-2: #4c4236;
  --ink-3: #6e6252;
  --accent: #a34a2b;
  --line: #e6d8c2;
  --line-soft: rgba(36, 28, 20, 0.1);
  --nav-bg: rgba(251, 246, 238, 0.86);
  --sage-deep: #526144;
  --sage-soft: rgba(108, 124, 91, 0.14);
  --gold-soft: rgba(185, 138, 46, 0.16);
  --why-hover: rgba(255, 255, 255, 0.55);
  --badge-bg: rgba(251, 246, 238, 0.9);
  --shadow-sm: 0 2px 10px rgba(36, 28, 20, 0.06);
  --shadow-md: 0 18px 50px -18px rgba(36, 28, 20, 0.25);
  --grain-blend: multiply;
  --grain-opacity: 0.05;
}

/* ---------- Semantic tokens (dusk) ---------- */
:root[data-theme="dusk"] {
  --bg: #171209;
  --bg-2: #1e1710;
  --surface: #211a12;
  --ink: #f3eadb;
  --ink-2: #d3c7b2;
  --ink-3: #a2947f;
  --accent: #e0835d;
  --line: rgba(244, 236, 223, 0.14);
  --line-soft: rgba(244, 236, 223, 0.1);
  --nav-bg: rgba(23, 18, 9, 0.85);
  --sage-deep: #b9c9a3;
  --sage-soft: rgba(159, 178, 135, 0.16);
  --gold-soft: rgba(217, 164, 65, 0.16);
  --why-hover: rgba(255, 255, 255, 0.04);
  --badge-bg: rgba(23, 18, 9, 0.9);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 20px 55px -18px rgba(0, 0, 0, 0.7);
  --grain-blend: overlay;
  --grain-opacity: 0.07;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.06;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--clay); color: #fff; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--clay));
  z-index: 1500;
  pointer-events: none;
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}
.section--night .eyebrow { color: var(--gold); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }

.btn--primary {
  background: var(--sun-gradient);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(194, 94, 58, 0.7);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(194, 94, 58, 0.8);
}
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--clay); color: var(--clay); transform: translateY(-2px); }

.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav__inner {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { color: var(--clay); display: inline-flex; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand__name span { color: var(--clay); }
.brand__tag {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

/* Theme toggle (micro-interaction) */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--clay); }
.theme-toggle svg {
  width: 20px;
  height: 20px;
  position: absolute;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.ico-sun { transform: translateY(140%) rotate(90deg); opacity: 0; }
:root[data-theme="dusk"] .ico-sun { transform: none; opacity: 1; }
:root[data-theme="dusk"] .ico-moon { transform: translateY(-140%) rotate(-90deg); opacity: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 24px;
  box-shadow: var(--shadow-md);
}
.nav__drawer a {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
}
.nav__drawer .btn { margin-top: 16px; justify-content: center; }
.nav__drawer.is-open { display: flex; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle at center, rgba(217, 164, 65, 0.18), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}

/* Kinetic sun burst */
.hero__sun {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
  animation: sun-spin 90s linear infinite;
}
@keyframes sun-spin { to { transform: rotate(360deg); } }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(52px, 7.2vw, 96px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

/* Kinetic split words */
.hero__line { display: block; }
html.js [data-split] .word {
  display: inline-block;
  vertical-align: bottom;
}
html.js [data-split] .word > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
html.js [data-split].is-in .word > span { opacity: 1; transform: none; }

/* Rotating phrase */
.hero__rotator { display: block; position: relative; }
.hero__phrase {
  display: inline;
  font-style: italic;
  font-weight: 500;
  background: var(--sun-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html.js .hero__rotator {
  height: 1.12em;
  overflow: hidden;
}
html.js .hero__phrase {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(70%);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js .hero__phrase.is-active { opacity: 1; transform: none; }
html:not(.js) .hero__phrase:not(:first-child) { display: none; }

.hero__lede {
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 0 26px;
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.hero__services span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  padding: 7px 16px;
  border: 1px solid var(--sage);
  border-radius: 999px;
}
:root[data-theme="dusk"] .hero__services span { border-color: var(--sage-deep); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__frame { display: flex; justify-content: center; perspective: 1100px; }

/* Arch frame */
.arch {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 240px 240px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  will-change: transform;
}
.arch--hero { max-width: 460px; }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.arch__badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--badge-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  color: var(--clay);
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}
.arch__badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.arch__badge strong { font-weight: 600; font-family: var(--font-display); font-size: 16px; }

/* Hero stats */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.stat { text-align: left; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  display: block;
}
.stat__num .count { color: var(--clay); }
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee__track i { color: var(--gold); font-style: normal; font-size: 14px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-2); }
.section--night {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(194, 94, 58, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(108, 124, 91, 0.14), transparent 60%),
    var(--night);
  color: var(--cream);
  position: relative;
}
.section--night h2, .section--night h3 { color: var(--cream); }

/* Organic wave divider hand-off */
.wave {
  display: block;
  width: 100%;
  height: 72px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}
.section--night.has-wave { margin-top: -72px; padding-top: 184px; }

.section__head { max-width: 720px; margin-bottom: 60px; }
.section__head h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 600; margin-bottom: 20px; }
.section__head h2 em { font-style: italic; color: var(--clay); }
.section--night .section__head h2 em { color: var(--gold); }
.section__lede { font-size: 19px; color: var(--ink-2); max-width: 620px; }
.section--night .section__lede { color: var(--cream-2); }

/* ============================================================
   Services cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--sage-soft);
  color: var(--accent);
  margin-bottom: 4px;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.05); }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 25px; font-weight: 600; }
.card p { font-size: 15.5px; color: var(--ink-2); flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.card__tags em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: var(--sage-soft);
  padding: 5px 11px;
  border-radius: 999px;
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  transition: gap 0.3s var(--ease);
}
.card__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__cta:hover { gap: 14px; }

/* ============================================================
   PhaseStore (night)
   ============================================================ */
.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 54px;
}
.chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.chip:hover { transform: translateY(-4px); border-color: rgba(217, 164, 65, 0.4); }
.chip strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}
.chip span { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-3); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}
.step {
  border-top: 1px solid var(--night-line);
  padding-top: 22px;
  position: relative;
}
.step__n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { font-size: 15.5px; color: var(--cream-2); }

/* Estimator */
.estimator {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 54px;
}
.estimator__intro h3 { font-size: 30px; margin-bottom: 8px; }
.estimator__intro p { color: var(--cream-3); margin-bottom: 30px; }
.estimator__body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: stretch;
}
.estimator__controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 36px;
}
.range { display: flex; flex-direction: column; gap: 12px; }
.range__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.range__label strong { color: var(--gold); font-family: var(--font-display); font-size: 20px; font-weight: 600; text-transform: none; letter-spacing: 0; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--clay));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--clay);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: grab;
  transition: transform 0.2s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.2); cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--clay);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: grab;
}

.estimator__result {
  background: linear-gradient(160deg, var(--night-2), var(--night));
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.estimator__result-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-3); }
.estimator__result-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  background: var(--sun-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}
.estimator__result-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.estimator__result-sub { font-size: 13.5px; color: var(--cream-3); }
.estimator__result-sub strong { color: var(--cream); font-weight: 500; }
.estimator__note { font-size: 12.5px; line-height: 1.5; color: var(--cream-3); margin: 0 0 18px; }
.estimator__note.is-warn { color: #e6b26a; }
.estimator__result .btn { align-self: flex-start; }

/* Comparison table */
.compare h3 { font-size: 28px; margin-bottom: 22px; }
.table {
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tr { display: grid; grid-template-columns: 1fr 1fr 1.1fr; }
.tr:not(:last-child) { border-bottom: 1px solid var(--night-line); }
.td { padding: 18px 22px; font-size: 15px; color: var(--cream-2); }
.td--label { color: var(--cream); font-weight: 500; }
.tr--head .td {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
  background: rgba(255, 255, 255, 0.03);
}
.td--win { color: var(--gold); font-weight: 500; }
.tr--head .td--win { color: var(--gold); }

/* ============================================================
   Why grid
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why {
  padding: 30px 28px;
  border-left: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.why:hover { border-left-color: var(--clay); background: var(--why-hover); }
.why__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--brass);
  margin-bottom: 16px;
}
.why__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { font-size: 23px; margin-bottom: 8px; }
.why p { font-size: 15px; color: var(--ink-2); }

/* ============================================================
   Process
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process__step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px 30px;
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.process__step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process__n {
  position: absolute;
  top: -20px;
  left: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 8px 22px -8px rgba(194, 94, 58, 0.8);
}
.process__step h3 { font-size: 23px; margin: 8px 0 10px; }
.process__step p { font-size: 15px; color: var(--ink-2); }

/* ============================================================
   Field notes
   ============================================================ */
.notes {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.note--feature { margin: 0; }
.note--feature img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.note__list { display: flex; flex-direction: column; gap: 26px; }
.note { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; padding-bottom: 0; }
.note__loc {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.note h3 { font-size: 26px; margin-bottom: 8px; }
.note h3 a { transition: color 0.3s var(--ease); }
.note h3 a:hover { color: var(--accent); }
.note p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 14px; }
.note__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.note__meta em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  background: var(--gold-soft);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ============================================================
   About
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about__frame { margin: 0; display: flex; justify-content: center; }

/* Stacked, slightly rotated arch = organic / anti-grid */
.arch--stack { max-width: 380px; transform: rotate(-2deg); }
.arch--stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--clay);
  border-radius: 240px 240px 26px 26px;
  transform: translate(18px, 18px) rotate(3deg);
  z-index: -1;
  opacity: 0.5;
}
.about__frame .arch img { aspect-ratio: 4 / 5; }

.about__copy h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 24px; }
.about__copy h2 em { font-style: italic; color: var(--clay); }
.about__copy p { font-size: 17px; color: var(--ink-2); margin-bottom: 18px; }

.about__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 10px 0 26px;
}
.about__card-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.about__card p { font-size: 15.5px; margin-bottom: 14px; }

.about__sign { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--ink-2); }
.about__sign strong { font-style: normal; color: var(--ink); }

.about__define { font-size: 18px; color: var(--ink); }
.about__define strong { color: var(--accent); font-weight: 500; }

/* ============================================================
   Blog article
   ============================================================ */
.article { padding-bottom: 0; }
.article__hero {
  padding: 150px 0 40px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--clay); }

.article__title {
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 24px;
}
.article__title em { font-style: italic; color: var(--clay); }
.article__deck {
  font-size: 21px;
  color: var(--ink-2);
  max-width: 720px;
  margin-bottom: 28px;
  font-weight: 300;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.article__meta strong { color: var(--ink); font-weight: 500; }

.article__figure {
  margin: 0 auto;
  width: min(1180px, 100% - 48px);
  padding: 56px 0 0;
}
.article__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.article__body {
  max-width: 760px;
  padding: 72px 0 110px;
}
.article__summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 44px;
}
.article__summary p { font-size: 17px; color: var(--ink-2); margin: 0; }
.article__summary strong { color: var(--ink); }

.article__body h2 {
  font-size: clamp(27px, 3.4vw, 36px);
  margin: 52px 0 18px;
}
.article__body h2:first-of-type { margin-top: 0; }
.article__body p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 22px;
}
.article__body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(163, 74, 43, 0.4);
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.article__body a:hover { color: var(--clay); text-decoration-color: var(--clay); }
.article__body strong { color: var(--ink); font-weight: 500; }

.article__steps, .article__list { margin: 0 0 26px; padding-left: 0; }
.article__steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 18px; }
.article__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 58px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
}
.article__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  box-shadow: 0 8px 22px -8px rgba(194, 94, 58, 0.8);
}
.article__steps li strong { display: block; color: var(--ink); }
.article__list { padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.article__list li { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.article__list li::marker { color: var(--clay); }
.article__list strong { color: var(--ink); font-weight: 500; }

.article__quote {
  margin: 46px 0;
  padding: 30px 34px;
  border: 0;
  border-left: 3px solid var(--clay);
  background: var(--bg-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.article__cta {
  margin-top: 46px;
  background: var(--night);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background-image: radial-gradient(500px 240px at 50% 0%, rgba(194, 94, 58, 0.25), transparent 70%);
}
.article__cta h3 { color: var(--cream); font-size: 28px; }
.article__cta p { color: var(--cream-2); margin: 0 0 8px; font-size: 17px; }
.article__disclaimer { font-size: 12.5px !important; color: var(--cream-3) !important; margin: 10px 0 0 !important; max-width: 460px; }

@media (max-width: 620px) {
  .article__hero { padding-top: 130px; }
  .article__figure { width: calc(100% - 40px); }
  .article__body { padding: 48px 0 80px; }
  .article__steps li { padding-left: 0; padding-top: 52px; }
  .article__cta { padding: 28px 22px; }
}

/* ============================================================
   FAQ (AEO / voice-search friendly)
   ============================================================ */
.faq { max-width: 880px; }
.faq .section__head { margin-bottom: 40px; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq__item[open] { border-color: var(--clay); box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 22px; font-weight: 600; margin: 0; color: var(--ink); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.faq__item p { padding: 0 24px 24px; color: var(--ink-2); font-size: 16px; max-width: 68ch; }
.faq__plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  background: var(--clay);
  transition: opacity 0.3s var(--ease);
}
.faq__plus::before { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq__plus::after { top: 50%; left: 0; height: 2px; width: 100%; transform: translateY(-50%); }
.faq__item[open] .faq__plus::before { opacity: 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.contact__intro h2 { font-size: clamp(36px, 4.6vw, 58px); margin-bottom: 22px; }
.contact__intro h2 em { font-style: italic; color: var(--gold); }
.contact__intro > p { color: var(--cream-2); font-size: 18px; max-width: 460px; margin-bottom: 34px; }

.contact__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact__meta li { display: flex; align-items: center; gap: 14px; color: var(--cream); font-size: 16px; }
.contact__meta svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.contact__meta a:hover { color: var(--gold); }

.form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-3); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--night-line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.3);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--cream-3); }
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d9a441' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__note { font-size: 14px; color: var(--cream-2); display: flex; align-items: center; gap: 10px; }
.form__note.is-success { color: #a7c48f; }

/* Animated checkmark */
.form__note .check {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #a7c48f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.form__note .check path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw-check 0.5s var(--ease) forwards;
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--night); color: var(--cream-2); padding: 80px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--night-line);
}
.footer__brand .brand__name { color: var(--cream); }
.footer__brand .brand__name span { color: var(--gold); }
.footer__brand p { font-size: 15px; max-width: 320px; margin-top: 18px; color: var(--cream-3); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { color: var(--cream); font-size: 13px; font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px; }
.footer__col a, .footer__col span { font-size: 15px; color: var(--cream-2); }
.footer__col a:hover { color: var(--gold); }
.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px 0;
  font-size: 13px;
  color: var(--cream-3);
}
.footer__links { display: flex; gap: 22px; }
.footer__links a:hover { color: var(--gold); }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }

  .hero { padding-top: 130px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__frame { order: -1; }
  .arch { max-width: 320px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .estimator__body { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .notes { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__frame { order: -1; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  .section { padding: 80px 0; }
  .section--night.has-wave { padding-top: 150px; }
  .cards { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 28px; }
  .estimator { padding: 28px; }
  .estimator__controls { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 1fr; }
  .tr--head { display: none; }
  .td { padding: 13px 18px; border-bottom: 1px solid var(--night-line); }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__base { justify-content: center; text-align: center; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, html.js [data-split] .word > span, html.js .hero__phrase { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__sun, .marquee__track { animation: none !important; }
  .arch--stack { transform: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
