/* =========================================================================
   Dream Properties — Davangere
   Style: Editorial Grid / Magazine (light, photography-led)
   Tokens are the source of truth. Never write raw hex inside a component.
   See design-system/dream-properties/MASTER.md
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #FAF8F4;   /* ivory page ground */
  --bg-alt:        #F3EFE8;   /* alternating band */
  --surface:       #FFFFFF;   /* card */
  --surface-2:     #F6F2EB;   /* input / raised */
  --ink:           #14100C;   /* inverted band ground */

  /* Text — every pair below verified >= 4.5:1 */
  --fg:            #14100C;
  --fg-muted:      #554D42;
  --fg-subtle:     #6E655A;
  --fg-on-ink:     #F7F4EF;
  --fg-on-ink-mut: #C2B8AA;

  /* Accent */
  --accent:        #8A5A2B;   /* bronze */
  --accent-deep:   #6B4420;
  --accent-tint:   #F0E7DC;
  --accent-on-ink: #E0B77E;   /* lightened bronze for the dark band */
  --on-accent:     #FFFFFF;

  /* Lines */
  --border:        rgba(20, 16, 12, 0.12);
  --border-strong: rgba(138, 90, 43, 0.42);
  --hairline:      rgba(20, 16, 12, 0.09);

  --destructive:   #B3261E;
  --ring:          #8A5A2B;

  /* Spacing — density 4/10 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --radius: 2px;
  --radius-lg: 3px;
  --container: 1280px;
  --nav-h: 76px;

  /* Type */
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Josefin Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Motion */
  --dur-micro: 220ms;
  --dur-hover: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card: 0 18px 44px -28px rgba(20, 16, 12, 0.42);
  --shadow-lift: 0 26px 60px -30px rgba(20, 16, 12, 0.5);

  color-scheme: light;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  /* Josefin Sans has a low x-height — 17px/1.75 is a deliberate uplift from 16px */
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

button { font: inherit; color: inherit; cursor: pointer; }

/* Focus — visible on every interactive element, never removed */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--radius);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }

.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: var(--fg-on-ink); }
.section--ink .section-lead { color: var(--fg-on-ink-mut); }

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 999;
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top var(--dur-micro) var(--ease-out);
}
.skip-link:focus { top: var(--space-3); color: var(--on-accent); }

/* ---------- 4. Editorial type helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-4);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 140px;
}
.section--ink .eyebrow { color: var(--accent-on-ink); }
.section--ink .eyebrow::after { background: rgba(247, 244, 239, 0.22); }

/* Editorial section number — 01 / 02 / 03 */
.numeral {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  flex: none;
}

.section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 20ch; }
.section-lead {
  color: var(--fg-muted);
  max-width: 56ch;
  margin-top: var(--space-4);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Editorial split head: title left, lead right */
@media (min-width: 900px) {
  .section-head--split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-7);
    align-items: end;
  }
  .section-head--split .eyebrow { grid-column: 1 / -1; }
  .section-head--split .section-lead { margin-top: 0; }
}

.accent-text { color: var(--accent); }
.section--ink .accent-text { color: var(--accent-on-ink); }

/* ---------- 5. Buttons (min 44px touch target) ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color var(--dur-hover) var(--ease-out),
              border-color var(--dur-hover) var(--ease-out),
              transform var(--dur-hover) var(--ease-out),
              box-shadow var(--dur-hover) var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-hover) var(--ease-out);
  /* z-index 0 (not -1): .btn gains a stacking context on hover via transform,
     which would otherwise flip the paint order of a negative-index pseudo. */
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-2px); color: var(--on-accent); border-color: var(--accent-deep); }
.btn:hover::after { transform: scaleX(1); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-bd: var(--accent);
  box-shadow: var(--shadow-card);
}
.btn--ghost { --btn-fg: var(--fg); --btn-bd: var(--border-strong); }
.section--ink .btn--ghost { --btn-fg: var(--fg-on-ink); --btn-bd: rgba(247, 244, 239, 0.38); }

.btn--sm { min-height: 44px; padding: 0 var(--space-4); font-size: 0.78rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Editorial arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform var(--dur-hover) var(--ease-out); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-hover) var(--ease-out),
              border-color var(--dur-hover) var(--ease-out);
}
.nav.is-stuck {
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--fg);
  min-height: 44px;
  flex: 0 1 auto;
  min-width: 0;
}
.brand:hover { color: var(--fg); }
.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: background-color var(--dur-hover) var(--ease-out),
              color var(--dur-hover) var(--ease-out);
}
.brand:hover .brand__mark { background: var(--accent); color: var(--on-accent); }
.brand__mark svg { width: 20px; height: 20px; }
.brand__name {
  font-family: var(--font-display);
  white-space: nowrap;      /* flex was shrinking this below its content width */
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--fg-subtle);
  text-transform: uppercase;
  font-weight: 600;
}
/* Narrow phones: keep the wordmark on one line beside the mark and toggle */
@media (max-width: 460px) {
  .brand__name { font-size: 0.82rem; letter-spacing: 0.08em; }
  .brand__sub { font-size: 0.54rem; letter-spacing: 0.22em; }
  .brand__mark { width: 34px; height: 34px; }
}
@media (max-width: 400px) {
  /* Below this the wordmark cannot fit beside the mark and the toggle.
     Let it wrap to two lines — wrapping is always better than clipping. */
  .brand__name { white-space: normal; font-size: 0.74rem; letter-spacing: 0.04em; line-height: 1.08; }
}

.nav__links { display: none; align-items: center; gap: var(--space-5); }
@media (min-width: 1024px) { .nav__links { display: flex; } }

.nav__link {
  color: var(--fg-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color var(--dur-hover) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-hover) var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--fg); }
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__cta { display: none; }
@media (min-width: 768px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  transition: border-color var(--dur-hover) var(--ease-out);
}
.nav__toggle:hover { border-color: var(--accent); }
@media (min-width: 1024px) { .nav__toggle { display: none; } }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: calc(var(--nav-h) + var(--space-6)) var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--dur-hover) var(--ease-out),
              transform var(--dur-hover) var(--ease-out);
}
/* Hiding is done by the [hidden] attribute, not a visibility transition:
   .drawer's own display:flex would otherwise beat the UA [hidden] rule, and a
   transitioned visibility can leave the panel unfocusable if the frame is late. */
.drawer[hidden] { display: none; }
.drawer.is-open { opacity: 1; transform: none; }
.drawer__link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--fg);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--hairline);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.drawer__link:hover { color: var(--accent); }
.drawer__foot { margin-top: auto; display: grid; gap: var(--space-3); padding-top: var(--space-5); }

/* ---------- 7. Hero — editorial asymmetric split ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--space-6));
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 0;
    /* stretch, not center: the media column then matches the row height exactly.
       With height:100svh on the child it overran the fold by the nav height. */
    align-items: stretch;
    min-height: 100svh;
    padding-top: var(--nav-h);
  }
}

.hero__copy { padding-inline: var(--space-4); }
@media (min-width: 768px) { .hero__copy { padding-inline: var(--space-6); } }
@media (min-width: 1000px) {
  /* Align the left edge with .container while the media bleeds to the right */
  .hero__copy {
    padding-left: max(var(--space-6), calc((100vw - var(--container)) / 2 + var(--space-6)));
    padding-right: clamp(40px, 5vw, 80px);
    padding-block: var(--space-7);
    display: flex;
    flex-direction: column;
    justify-content: center;   /* copy stays centred now the grid stretches */
  }
}

.hero__title {
  font-size: clamp(2.5rem, 6.6vw, 4.7rem);
  line-height: 1.04;
  margin-bottom: var(--space-5);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; will-change: transform; }

.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--fg-muted);
  max-width: 44ch;
  margin-bottom: var(--space-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  max-width: 40rem;
}
@media (min-width: 560px) { .hero__meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero__meta div { display: flex; flex-direction: column; min-width: 0; }
.hero__meta dt {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 700;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--fg);
}

/* Short desktop viewports (laptops, 800-900px tall): scale the copy down so
   the hero still resolves within one screen instead of running past the fold. */
@media (min-width: 1000px) and (max-height: 900px) {
  .hero__copy { padding-block: var(--space-5); }
  .hero__title { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: var(--space-4); }
  .hero__lead { font-size: 1rem; margin-bottom: var(--space-5); }
  .hero__actions { margin-bottom: var(--space-5); }
  .hero__meta { padding-top: var(--space-4); }
  .hero__meta dd { font-size: 1.1rem; }
}

/* Hero photograph */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;          /* reserves space — no layout shift */
  overflow: hidden;
  background: var(--bg-alt);
}
@media (min-width: 1000px) {
  /* No fixed height — the stretched grid row sets it, so the photo ends
     exactly at the fold instead of running past it. */
  .hero__media { aspect-ratio: auto; height: auto; }
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero__caption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  background: rgba(20, 16, 12, 0.8);
  color: var(--fg-on-ink);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--radius);
  max-width: calc(100% - var(--space-6));
}

/* ---------- 8. Ticker ---------- */
.ticker {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  padding-block: var(--space-4);
}
.ticker__track { display: flex; width: max-content; gap: var(--space-6); animation: ticker 44s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
.ticker__item svg { width: 12px; height: 12px; color: var(--accent); flex: none; }
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 9. Reveal utility ---------- */
.reveal { opacity: 0; transform: translate3d(0, 22px, 0); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 750ms var(--ease-out), transform 750ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
/* No-JS safety net: never leave content invisible */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 10. Services — editorial cards ---------- */
.grid-services {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-services { grid-template-columns: repeat(3, 1fr); } }

.tilt { perspective: 1100px; }

.card {
  position: relative;
  height: 100%;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color var(--dur-hover) var(--ease-out),
              box-shadow var(--dur-hover) var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(138, 90, 43, 0.10),
    transparent 62%
  );
  opacity: 0;
  transition: opacity var(--dur-hover) var(--ease-out);
  pointer-events: none;
}
.card:hover, .card:focus-within { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card > * { position: relative; transform: translateZ(24px); }

.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: var(--space-4);
  transition: background-color var(--dur-hover) var(--ease-out),
              color var(--dur-hover) var(--ease-out);
}
.card:hover .card__icon { background: var(--accent); color: var(--on-accent); }
.card__icon svg { width: 22px; height: 22px; }

.card__title { font-size: 1.26rem; margin-bottom: var(--space-3); }
.card__text { color: var(--fg-muted); font-size: 0.95rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.tag {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;   /* never let a chip label wrap mid-word */
  font-weight: 600;
}

/* ---------- 11. Portfolio — photo-led property cards ---------- */
.grid-portfolio {
  display: grid;
  gap: var(--space-6) var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .grid-portfolio { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-portfolio { grid-template-columns: repeat(3, 1fr); } }

.plot { display: flex; flex-direction: column; }

.plot__figure {
  position: relative;
  margin: 0 0 var(--space-4);
  aspect-ratio: 4 / 3;          /* reserves space before the image loads */
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}
.plot__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.plot:hover .plot__figure img { transform: scale(1.045); }

.plot__badge {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 2;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg);
  background: rgba(250, 248, 244, 0.95);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}
.plot__title { font-size: 1.32rem; margin-bottom: var(--space-2); }
.plot__desc { color: var(--fg-muted); font-size: 0.94rem; margin-bottom: var(--space-3); }
.plot__link { margin-top: auto; align-self: flex-start; }

.note {
  margin-top: var(--space-6);
  padding: var(--space-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--fg-muted);
  font-size: 0.88rem;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--surface);
}
.note svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 2px;
  overflow-wrap: anywhere;
}

/* ---------- 12. 3D model band (dark, on ink) ---------- */
.model { position: relative; overflow: hidden; }
.model__grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1000px) {
  .model__grid { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: var(--space-7); }
}
.model__canvas-wrap {
  position: relative;
  aspect-ratio: 5 / 4;
  border: 1px solid rgba(247, 244, 239, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Fallback ground if WebGL is unavailable or the canvas has not painted */
  background:
    radial-gradient(70% 60% at 50% 84%, rgba(224, 183, 126, 0.22), transparent 70%),
    linear-gradient(180deg, #1D1811, #0D0A07);
}
#model-canvas { width: 100%; height: 100%; display: block; }
.model__legend {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-on-ink-mut);
  background: rgba(13, 10, 7, 0.78);
  padding: 7px 12px;
  border-radius: var(--radius);
  pointer-events: none;
}
.model__list { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.model__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--fg-on-ink-mut);
  font-size: 0.95rem;
}
.model__list svg { width: 20px; height: 20px; color: var(--accent-on-ink); flex: none; margin-top: 4px; }

/* ---------- 13. Stats ---------- */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  transition: background-color var(--dur-hover) var(--ease-out);
}
.stat:hover { background: var(--accent-tint); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 700;
}

/* ---------- 14. Why us — editorial photo + pull quote ---------- */
.why-grid { display: grid; gap: var(--space-6); }
@media (min-width: 1000px) { .why-grid { grid-template-columns: 0.82fr 1.18fr; gap: var(--space-7); } }

.why__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.why__figure img { width: 100%; height: 100%; object-fit: cover; }

.pullquote {
  margin: 0 0 var(--space-6);
  padding-left: var(--space-5);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.2vw, 1.64rem);
  line-height: 1.34;
  color: var(--fg);
}

.pillars { display: grid; }
.pillar {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hairline);
  transition: transform var(--dur-hover) var(--ease-out);
}
.pillar:hover { transform: translateX(6px); }
.pillar__icon { color: var(--accent); flex: none; }
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.06rem; margin-bottom: 4px; }
.pillar p { color: var(--fg-muted); font-size: 0.93rem; }

.rating-card {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--accent-tint);
}
.rating-card__score { display: flex; align-items: baseline; gap: var(--space-3); font-family: var(--font-display); flex-wrap: wrap; }
.rating-card__score b { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 700; color: var(--accent-deep); line-height: 1; }
.rating-card__score span { font-size: 0.94rem; color: var(--fg-muted); font-family: var(--font-body); letter-spacing: 0.06em; }
.stars { display: flex; gap: 3px; margin: var(--space-3) 0; }
.stars svg { width: 20px; height: 20px; color: var(--accent); }
.rating-card p { color: var(--fg-muted); margin-bottom: var(--space-3); font-size: 0.93rem; }

/* ---------- 15. Process ---------- */
.process { position: relative; display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }

.process::before {
  content: "";
  position: absolute;
  left: 25px; top: 26px; bottom: 26px;
  width: 1px;
  background: var(--border);
}
@media (min-width: 900px) {
  .process::before { left: 0; right: 0; top: 26px; bottom: auto; width: auto; height: 1px; }
}
.process__fill {
  position: absolute;
  left: 25px; top: 26px;
  width: 1px;
  height: 0;
  background: var(--accent);
  transform-origin: top;
}
@media (min-width: 900px) {
  .process__fill {
    left: 0; top: 26px;
    width: 100%; height: 1px;
    transform: scaleX(0);
    transform-origin: left center;
  }
}

.step { position: relative; padding-left: 68px; }
@media (min-width: 900px) { .step { padding-left: 0; padding-top: 68px; } }
.step__dot {
  position: absolute;
  left: 0; top: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  transition: background-color var(--dur-hover) var(--ease-out),
              color var(--dur-hover) var(--ease-out);
}
.step:hover .step__dot { background: var(--accent); color: var(--on-accent); }
.step__title { font-size: 1.16rem; margin-bottom: var(--space-2); }
.step__text { color: var(--fg-muted); font-size: 0.93rem; }

/* ---------- 16. Contact ---------- */
.contact-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.05fr; gap: var(--space-7); } }

.contact-list { display: grid; margin-bottom: var(--space-5); }
.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hairline);
}
.contact-item__icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--accent);
}
.contact-item__icon svg { width: 20px; height: 20px; }
/* The email address is a long unbreakable token — without this it forces
   horizontal scroll on narrow phones. min-width:0 lets the flex child shrink. */
.contact-item > div { min-width: 0; }
.contact-item dd, .contact-item dt { overflow-wrap: anywhere; }
.contact-item dt {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-item dd { margin: 0; color: var(--fg); font-size: 1rem; }
.contact-item dd a {
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  min-height: 44px;      /* standalone link, not inline prose — full touch target */
}
.contact-item dd a:hover { color: var(--accent); }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16 / 10;   /* reserves space — prevents layout shift */
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Form */
.form {
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.field label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 700;
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px var(--space-3);
  min-height: 48px;
  width: 100%;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A5A2B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-color: transparent;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-subtle); }

.field__error { color: var(--destructive); font-size: 0.84rem; min-height: 1.2em; display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--destructive); }
.field.has-error .field__error { display: block; }

.form__hint { color: var(--fg-subtle); font-size: 0.84rem; margin-top: var(--space-3); }
.form__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.form__status { margin-top: var(--space-4); font-size: 0.92rem; color: var(--accent-deep); min-height: 1.4em; font-weight: 600; }

/* ---------- 17. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: var(--space-7) var(--space-5);
}
.footer__grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-bottom: var(--space-6); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.footer__list { display: grid; }
.footer__list a, .footer__list span {
  color: var(--fg-muted);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
.footer__list a { min-height: 44px; display: inline-flex; align-items: center; }
.footer__list a:hover { color: var(--accent); }
.footer__blurb { color: var(--fg-muted); max-width: 38ch; margin: var(--space-4) 0; font-size: 0.94rem; }

.social { display: flex; gap: var(--space-2); }
.social a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg-muted);
  background: var(--surface);
  transition: color var(--dur-hover) var(--ease-out),
              border-color var(--dur-hover) var(--ease-out),
              transform var(--dur-hover) var(--ease-out);
}
.social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; }

.footer__bar {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
  align-items: center;
  color: var(--fg-subtle);
  font-size: 0.84rem;
}

/* Build credit */
.credit { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* standalone link — full touch target */
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  transition: color var(--dur-hover) var(--ease-out);
}
.credit a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 11px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-hover) var(--ease-out);
}
.credit a:hover { color: var(--accent-deep); }
.credit a:hover::after { transform: scaleX(1); transform-origin: left center; }

/* ---------- 18. Floating call button (mobile) ---------- */
.fab {
  /* Hidden until the hero's own CTA has scrolled away — otherwise it covers it */
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  position: fixed;
  right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-4);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-lift);
  transition: transform var(--dur-hover) var(--ease-out),
              opacity var(--dur-hover) var(--ease-out);
}
.fab.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.fab.is-visible:hover { transform: translateY(-3px); color: var(--on-accent); }
/* No JS? Then no observer — show it rather than hiding the phone number. */
.no-js .fab { opacity: 1; pointer-events: auto; transform: none; }
.fab svg { width: 19px; height: 19px; }
@media (min-width: 768px) { .fab { display: none; } }

/* ---------- 19. Preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 550ms var(--ease-out), visibility 550ms;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__word {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: var(--space-4);
}
.loader__bar { width: min(220px, 60vw); height: 2px; background: var(--border); margin-inline: auto; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 200ms linear; }

/* ---------- 20. Reduced motion ---------- */
@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;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .ticker__track { animation: none; }
  .btn:hover, .pillar:hover, .social a:hover, .fab:hover { transform: none; }
  .plot:hover .plot__figure img { transform: none; }
}
