/* ==========================================================================
   Lucid Mesa Web Design
   Palette: Desert Dusk. Type: Archivo (variable width + weight).
   ========================================================================== */

:root {
  /* Brand palette */
  --night: #151A2E;
  --night-deep: #0F1328;
  --night-raised: #1E2442;
  --terracotta: #D9622B;
  --terracotta-hover: #E6773F;
  --clay: #A8461A;            /* terracotta dark enough for text on light backgrounds */
  --sandstone: #E8D5B7;
  --bone: #FAF7F2;
  --ink: #1B1B1B;
  --ink-soft: #57514B;

  /* Strata: sandstone deepening with depth */
  --strata-1: #F5EDE0;
  --strata-2: #EFE3CF;
  --strata-3: #E8D5B7;
  --strata-4: #DFC8A4;

  --line: rgba(21, 26, 46, 0.14);
  --line-strong: #C4AE8C;
  --on-night: #FAF7F2;
  --on-night-soft: rgba(250, 247, 242, 0.74);
  --error: #B42318;

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 116%;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);
  --display: clamp(2rem, 0.9rem + 5.1vw, 5rem);

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 8vw, 112px);
  --radius: 10px;
  --nav-h: 64px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 40px);
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--night);
  font-stretch: var(--wide);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; }

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

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--terracotta);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

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

.section-intro {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-intro > * { max-width: 30ch; }
.section-intro > p { max-width: 58ch; }
.section-intro h2 { font-size: var(--step-3); }
.section-intro p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 680;
  font-stretch: 108%;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--terracotta); color: var(--night); }
.btn-primary:hover { background: var(--terracotta-hover); }

.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(250, 247, 242, 0.1); }
.on-light .btn-ghost:hover { background: rgba(21, 26, 46, 0.06); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.text-link {
  color: var(--night);
  font-weight: 680;
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.15s ease;
}
.text-link:hover { color: var(--clay); }

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1080px, 100%);
  min-height: var(--nav-h);
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  background: var(--bone);
  box-shadow: 0 12px 32px -14px rgba(15, 19, 40, 0.55);
  pointer-events: auto;
}

.nav-logo { display: block; flex-shrink: 0; border-radius: 6px; }
.nav-logo img { width: auto; height: 34px; }

.nav-menu { display: flex; align-items: center; gap: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links > li > a,
.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--night);
  font: inherit;
  font-size: 1rem;
  font-weight: 560;
  text-decoration: none;
  cursor: pointer;
}
.nav-links > li > a:hover,
.nav-sub-toggle:hover { color: var(--clay); }
.nav-links > li > a[aria-current="page"] { text-decoration: underline 2px var(--terracotta); text-underline-offset: 6px; }

.nav-sub-toggle svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.has-sub.open .nav-sub-toggle svg { transform: rotate(180deg); }

.nav-sub {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  display: none;
  width: 340px;
  padding: 8px;
  border-radius: 18px;
  background: var(--bone);
  box-shadow: 0 24px 48px -18px rgba(15, 19, 40, 0.5), 0 0 0 1px var(--line);
  list-style: none;
}
/* Invisible bridge so the menu stays open while the pointer crosses the gap */
.nav-sub::before { content: ""; position: absolute; inset: -20px 0 100%; }

.has-sub.open .nav-sub { display: block; }
@media (hover: hover) and (min-width: 961px) {
  .has-sub:hover .nav-sub { display: block; }
}

.nav-sub a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--night);
  text-decoration: none;
}
.nav-sub a:hover,
.nav-sub a[aria-current="page"] { background: var(--strata-2); }
.nav-sub strong { font-weight: 680; font-stretch: 108%; }
.nav-sub span { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.4; }

.nav-cta { min-height: 48px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--night);
  border-radius: 999px;
  background: transparent;
  color: var(--night);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.nav-toggle-icon { position: relative; width: 16px; height: 10px; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { top: 8px; }
.nav.open .nav-toggle-icon::before { top: 4px; transform: rotate(45deg); }
.nav.open .nav-toggle-icon::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --nav-h: 58px; }
  .nav { flex-wrap: wrap; gap: 0; padding: 7px 7px 7px 18px; border-radius: 29px; }
  .nav-logo img { height: 26px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 10px 12px 0;
  }
  .nav.open .nav-menu { display: flex; }
  .nav.open { border-radius: 24px; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li > a,
  .nav-sub-toggle { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.0625rem; }
  .nav-sub {
    position: static;
    width: auto;
    padding: 0 0 10px;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .nav-sub::before { display: none; }
  .nav-sub a { padding: 10px 12px; }
  .nav-cta { margin-top: 8px; }
}

@media (max-width: 380px) {
  .nav-logo img { height: 22px; }
  .nav-toggle { padding: 0 12px; }
}

/* ---------- Hero (home) ---------- */

/* Fill the first screen so the mesa horizon always sits at its bottom edge */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(64px, 7vw, 96px));
  padding-bottom: clamp(190px, 15vw, 260px);
  background: linear-gradient(180deg, var(--night) 0%, #171C33 45%, #1D2140 72%, #2B2542 100%);
  color: var(--on-night);
}

.horizon {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(220px, max(25vw, 30svh), 460px);
  object-fit: cover;
  object-position: right bottom;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.service-index {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: clamp(20px, 3vw, 44px);
  margin: 0 0 clamp(28px, 3.5vw, 44px);
  font-size: var(--display);
  line-height: 1;
}

.service-index a {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
  padding-block: 0.06em;
  color: var(--on-night);
  text-decoration: none;
}

.service-index .verb {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  font-stretch: 122%;
  font-weight: 800;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
}

/* Dotted leader from each verb to its service name, like an index */
.service-index .verb::after {
  content: "";
  flex: 1;
  min-width: 0.6em;
  height: 4px;
  background: radial-gradient(circle, rgba(232, 213, 183, 0.38) 1.6px, transparent 2.2px) 0 50% / 12px 4px repeat-x;
  transition: background-color 0.15s ease;
}
.service-index a:hover .verb::after {
  background-image: radial-gradient(circle, var(--terracotta) 1.6px, transparent 2.2px);
}

.service-index .what {
  color: var(--sandstone);
  font-size: var(--step-1);
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.service-index a:hover .verb { color: var(--terracotta); }
.service-index a:hover .what { opacity: 1; }

.hero-lead {
  max-width: 50ch;
  margin-bottom: 32px;
  color: var(--on-night-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .service-index,
  .service-index a { grid-template-columns: 1fr; }
  .service-index a { padding-block: 0.12em; }
  .service-index .verb { font-stretch: 112%; }
  .service-index .verb::after { display: none; }
  .service-index .what { margin-top: 4px; font-size: var(--step--1); }
}

/* The one orchestrated moment: the window in the mesa lights up at dusk */
.hero .horizon-window { animation: window-on 1.4s 0.5s ease-out both; }
.hero .horizon-glow { animation: glow-rise 2.4s 0.3s ease-out both; }

@keyframes window-on {
  0% { opacity: 0; }
  30% { opacity: 0.55; }
  38% { opacity: 0.2; }
  100% { opacity: 1; }
}
@keyframes glow-rise {
  from { opacity: 0.15; }
  to { opacity: 1; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(64px, 8vw, 104px));
  padding-bottom: clamp(190px, 20vw, 320px);
  background: linear-gradient(180deg, var(--night) 0%, #181D36 55%, #262340 100%);
  color: var(--on-night);
}
.page-hero .horizon { height: clamp(180px, 20vw, 360px); }

.page-hero h1 {
  max-width: 17ch;
  margin-bottom: 22px;
  color: var(--on-night);
  font-size: var(--step-4);
  font-weight: 800;
}
.page-hero .lead {
  max-width: 54ch;
  margin-bottom: 32px;
  color: var(--on-night-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

.breadcrumb { margin-bottom: 28px; font-size: var(--step--1); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.breadcrumb li { color: var(--on-night-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumb a { color: var(--sandstone); text-underline-offset: 3px; }

/* Rounded panel that rises over the bottom of the dark hero (as in the reference layout) */
.panel {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  border-radius: 24px 24px 0 0;
  background: var(--bone);
}

/* ---------- Services as strata ---------- */

.strata { display: grid; }

/* On the home page the strata start right at the panel's rounded top */
.services .stratum:first-child { border-radius: 24px 24px 0 0; }

.stratum {
  padding-block: clamp(44px, 5.5vw, 72px);
  background: var(--bg, var(--strata-1));
}

.stratum-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.stratum h3 { display: grid; gap: 10px; }
.stratum-verb {
  font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1;
}
.stratum-name {
  color: var(--ink-soft);
  font-size: var(--step-1);
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: 0;
}

.stratum-fit { font-size: 1.125rem; line-height: 1.55; }

.stratum-detail { display: grid; gap: 22px; justify-items: start; }

.tick-list { display: grid; gap: 10px; list-style: none; }
.tick-list li { position: relative; padding-left: 26px; line-height: 1.45; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 14px;
  height: 14px;
  background: var(--terracotta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.stratum .tick-list li::before { background: var(--clay); }

/* Lists of things that are NOT included use a dash or a cross, never a tick */
.tick-list.is-dash li::before {
  top: 0.72em;
  height: 2px;
  width: 12px;
  -webkit-mask: none;
          mask: none;
}
.tick-list.is-x li::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
  .stratum-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Process steps (a real sequence, so numbered) ---------- */

.steps {
  --gap: clamp(24px, 3vw, 40px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  gap: var(--gap);
  list-style: none;
}

/* Dashed trail connecting the steps, from the first marker to the last */
.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: calc((100% - (var(--steps, 4) - 1) * var(--gap)) / var(--steps, 4) - 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong) 55%, transparent 0) 0 0 / 14px 2px repeat-x;
}

.step { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 72px; }

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--night);
  color: var(--sandstone);
  font-size: 1.125rem;
  font-stretch: 116%;
  font-weight: 760;
  box-shadow: 0 0 0 6px var(--step-ring, var(--bone));
}

.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-soft); }

.steps-note { max-width: 64ch; margin-top: clamp(36px, 4vw, 52px); color: var(--ink-soft); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before {
    top: 24px;
    bottom: 24px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--line-strong) 55%, transparent 0) 0 0 / 2px 14px repeat-y;
  }
  .step { padding-top: 0; padding-left: 72px; min-height: 48px; }
  .step h3 { padding-top: 10px; }
}

/* ---------- Studio section ---------- */

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.studio-copy { display: grid; gap: 20px; }
.studio-copy h2 { font-size: var(--step-3); }
.studio-copy > p { color: var(--ink-soft); font-size: 1.125rem; }

.studio-art img { width: 100%; height: auto; }

.commitments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
  margin: 12px 0 0;
}
.commitments div { padding-top: 16px; border-top: 2px solid var(--night); }
.commitments dt { color: var(--night); font-weight: 700; font-stretch: 108%; }
.commitments dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.975rem; line-height: 1.5; }

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-art { order: -1; max-width: 560px; }
}
@media (max-width: 520px) {
  .commitments { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq-grid .section-intro { position: sticky; top: calc(var(--nav-h) + 48px); margin-bottom: 0; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  position: relative;
  padding: 22px 52px 22px 0;
  color: var(--night);
  font-size: 1.1875rem;
  font-stretch: 104%;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--clay); }

.faq-answer { display: grid; gap: 12px; max-width: 64ch; padding-bottom: 26px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-intro { position: static; }
}

/* ---------- Service page blocks ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.split > .section-intro { margin-bottom: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.fit-list { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
.fit-list li {
  padding: 20px 0 20px 36px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--night);
  font-size: 1.1875rem;
  font-weight: 560;
  line-height: 1.4;
}
.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 18px;
  height: 18px;
  background: var(--clay);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fit-alt { margin-top: 22px; color: var(--ink-soft); }

.included {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  list-style: none;
}
.included li { display: grid; align-content: start; gap: 6px; padding: 24px 0; border-top: 1px solid var(--line); }
.included h3 { font-size: 1.1875rem; font-stretch: 108%; }
.included p { color: var(--ink-soft); }
@media (max-width: 720px) { .included { grid-template-columns: 1fr; } }

/* Two-column comparison (e.g. what changes / what stays) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.compare-col { padding: clamp(24px, 3vw, 36px); border-radius: 18px; }
.compare-col h3 { margin-bottom: 18px; font-size: var(--step-2); }
.compare-col.is-night { background: var(--night); color: var(--on-night); }
.compare-col.is-night h3 { color: var(--on-night); }
.compare-col.is-night .tick-list li::before { background: var(--terracotta); }
.compare-col.is-sand { background: var(--strata-3); }
.compare-col.is-sand .tick-list li::before { background: var(--clay); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

/* Band on sandstone */
.band { background: var(--strata-2); }
.band .step-num { --step-ring: var(--strata-2); }

.note {
  max-width: 68ch;
  margin-top: 36px;
  padding: 20px 24px;
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--strata-1);
  color: var(--ink);
}
.band .note { background: var(--bone); }

/* Other services */
.more-services { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
.more-services a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 10rem;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  color: var(--night);
  text-decoration: none;
}
.more-services .verb { font-size: var(--step-2); font-stretch: 120%; font-weight: 800; line-height: 1.1; transition: color 0.15s ease; }
.more-services .desc { color: var(--ink-soft); }
.more-services .go {
  justify-self: end;
  font-weight: 680;
  text-decoration: underline 2px var(--terracotta);
  text-underline-offset: 5px;
}
.more-services a:hover .verb { color: var(--clay); }
@media (max-width: 720px) {
  .more-services a { grid-template-columns: 1fr; gap: 6px; }
  .more-services .go { justify-self: start; }
}

.nowrap { white-space: nowrap; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.project-form { display: grid; gap: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; align-content: start; }
.field label,
.field legend { color: var(--night); font-weight: 650; }
.field .hint { color: var(--ink-soft); font-size: var(--step--1); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #C8B99F;
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--night); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--night); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); }

.field-error { color: var(--error); font-size: 0.925rem; font-weight: 560; }
.field-error:empty { display: none; }

fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 8px; padding: 0; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1.5px solid #C8B99F;
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--night);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: var(--night); }
.choice input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--clay);
}
.choice:has(input:checked) { border-color: var(--clay); background: #FBEFE6; }
.choice:has(input:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 2px; }

.form-status { padding: 18px 20px; border-radius: var(--radius); font-weight: 560; }
.form-status:empty { display: none; }
.form-status.is-success { background: #E6F2E8; color: #1D5B2C; }
.form-status.is-error { background: #FBE9E7; color: var(--error); }

.form-submit { justify-self: start; min-width: 220px; }

.contact-aside { display: grid; gap: 32px; }
.contact-aside h2 { font-size: var(--step-2); margin-bottom: 18px; }
.contact-aside .steps { --steps: 1; gap: 22px; }
.contact-aside .steps::before {
  top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto;
  background: linear-gradient(180deg, var(--line-strong) 55%, transparent 0) 0 0 / 2px 14px repeat-y;
}
.contact-aside .step { padding-top: 0; padding-left: 68px; min-height: 48px; }
.contact-aside .step h3 { padding-top: 12px; font-size: 1.0625rem; }
.contact-aside .step p { font-size: 0.975rem; }

.email-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--night);
  color: var(--on-night-soft);
}
.email-card h2 { color: var(--on-night); font-size: var(--step-1); margin-bottom: 8px; }
.email-card a {
  color: var(--on-night);
  font-size: 1.125rem;
  font-weight: 650;
  text-decoration: underline 2px var(--terracotta);
  text-underline-offset: 5px;
  word-break: break-word;
}

/* ---------- Footer ---------- */

.pre-footer { padding-bottom: calc(var(--section) + clamp(50px, 7vw, 110px)); }

.site-footer {
  position: relative;
  z-index: 3; /* above .panel so the mesa edge can rise over it */
  background: var(--night);
  color: var(--on-night-soft);
}

.footer-edge {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: clamp(50px, 7vw, 110px);
  color: var(--night);
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(250, 247, 242, 0.14);
}
.footer-cta h2 { color: var(--on-night); font-size: var(--step-4); font-weight: 800; max-width: 14ch; }
.footer-cta p { margin-top: 14px; max-width: 46ch; font-size: var(--step-1); }
.footer-cta .btn-row { justify-content: flex-end; }
@media (max-width: 800px) {
  .footer-cta { grid-template-columns: 1fr; }
  .footer-cta .btn-row { justify-content: flex-start; }
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: clamp(40px, 5vw, 64px);
}
.footer-brand img { width: 190px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; font-size: 0.95rem; }
.footer-cols h2 {
  margin-bottom: 14px;
  color: var(--sandstone);
  font-size: 1rem;
  font-stretch: 110%;
  font-weight: 700;
}
.footer-cols ul { display: grid; gap: 10px; list-style: none; }
.footer-cols a { color: var(--on-night); text-decoration: none; text-underline-offset: 4px; }
.footer-cols a:hover { color: var(--terracotta); text-decoration: underline; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px 32px;
  border-top: 1px solid rgba(250, 247, 242, 0.14);
  font-size: var(--step--1);
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */

.not-found-links { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* The contact page already is the call to action */
.page-contact .footer-cta { display: none; }
.page-contact .footer-cols { padding-top: clamp(56px, 7vw, 88px); }
