/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f4efe4;
  --bg-2:      #e8ddc5;
  --paper:     #ffffff;
  --ink:       #241c15;
  --ink-soft:  #3a2f24;
  --ink-mute:  #6f6152;
  --accent:    #b1502c;
  --accent-2:  #7d6234;
  --emergency: #1f4e8c;
  --emergency-2: #16386b;
  --cream:     #faf6ec;
  --line:      rgba(36, 28, 21, 0.14);
  --line-soft: rgba(36, 28, 21, 0.08);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-label:   "Cinzel", "Trajan Pro", "Palatino Linotype", Georgia, serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
}

@property --mx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.7rem 1.1rem; background: var(--ink); color: var(--cream);
  border-radius: 4px; font-weight: 500; transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
}
.eyebrow::before {
  content: "";
  width: 1.5em; height: 1px;
  background: var(--accent-2);
  opacity: 0.7;
}

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

/* =============================================================
   4. Typography
   ============================================================= */
.section-head {
  display: grid; gap: 0.9rem;
  max-width: 620px;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--ink-mute); max-width: 56ch; margin: 0; }

.split-word { display: inline-block; will-change: transform, opacity; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  font-family: var(--font-label);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.95em 1.5em;
  border-radius: 2px;
  background: var(--accent);
  color: var(--cream);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px rgba(36, 28, 21, 0.1), 0 1px 3px rgba(36, 28, 21, 0.08);
  transition: transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft), background 0.3s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(36, 28, 21, 0.16), 0 10px 20px rgba(177, 80, 44, 0.22);
}
.btn:active { transform: translateY(-1px); transition-duration: 0.12s; }
.btn.ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--accent-2); box-shadow: 0 10px 24px rgba(36, 28, 21, 0.08); }
/* Dark hero background — ghost buttons need light text/border, not the default dark --ink */
.hero .btn.ghost { color: var(--cream); border-color: rgba(250, 246, 236, 0.45); }
.hero .btn.ghost:hover { border-color: var(--cream); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

/* Emergency CTA — deliberately cool blue, breaks from the terracotta accent on purpose */
.btn.emergency {
  background: var(--emergency); color: var(--cream); border-color: var(--emergency);
}
.btn.emergency:hover {
  box-shadow: 0 22px 44px rgba(22, 56, 107, 0.28), 0 10px 20px rgba(22, 56, 107, 0.22);
}
.btn.emergency:active { background: var(--emergency-2); border-color: var(--emergency-2); }

/* Magnetic wrapper (JS adds .has-magnetic + injects .magnetic-inner) */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform 0.8s var(--ease-soft);
}

/* Reveal on scroll (defensive CSS — see A.4.5) */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; } /* gotcha A.4.5 defensive rule */

/* =============================================================
   6. Sections — Nav
   ============================================================= */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(244, 239, 228, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: var(--font-label);
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.12em;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.brand-mark { width: 40px; height: 40px; object-fit: contain; }
.nav-links {
  display: flex; gap: clamp(1.2rem, 2vw, 2.2rem);
  font-size: 0.92rem;
}
.nav-link { position: relative; padding: 0.25rem 0; color: var(--ink-mute); transition: color 0.25s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* =============================================================
   6b. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ambientZoom 30s ease-in-out infinite;
}
@keyframes ambientZoom {
  0%, 100% { transform: scale(1.04) translate3d(0, 0, 0); }
  50%      { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(36, 25, 16, 0.92) 0%, rgba(36, 25, 16, 0.55) 42%, rgba(36, 25, 16, 0.28) 68%, rgba(36, 25, 16, 0.4) 100%);
}
.hero-inner {
  width: 100%;
  padding-block: clamp(3rem, 8vw, 5rem) clamp(2.5rem, 6vw, 4rem);
  display: grid; gap: 1.5rem;
  max-width: 780px;
}
.hero .eyebrow { color: #e7c9a8; }
.hero .eyebrow::before { background: #e7c9a8; }
.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  color: var(--cream);
  max-width: 16ch;
}
.hero-title em {
  font-style: italic;
  color: #e79a6c;
}
.hero-lede {
  font-size: 1.1rem;
  color: rgba(250, 246, 236, 0.82);
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.hero-meta {
  display: flex; gap: clamp(1.4rem, 4vw, 2.6rem); flex-wrap: wrap;
  margin-top: 1.6rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(250, 246, 236, 0.22);
}
.hero-meta-item {
  font-family: var(--font-label); font-size: 0.72rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(250, 246, 236, 0.62);
}
.hero-meta-item strong {
  display: block; font-family: var(--font-sans); font-weight: 600;
  font-size: 0.98rem; letter-spacing: 0; text-transform: none;
  color: var(--cream); margin-bottom: 0.15rem;
}

.arcade { display: block; width: 100%; height: clamp(52px, 8vw, 96px); }
.arcade path { fill: none; stroke: var(--line); stroke-width: 1.4; }
.arcade path.fg { stroke: var(--accent-2); opacity: 0.55; }

/* =============================================================
   6c. Praefatio (about)
   ============================================================= */
.praefatio { padding-block: clamp(3.5rem, 8vw, 6rem); }
.praefatio .wrap {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.mechanism-card {
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper);
  padding: clamp(1rem, 2vw, 1.4rem);
  display: grid; justify-items: center; gap: 1rem; text-align: center;
  position: sticky; top: calc(var(--nav-h) + 2rem);
}
.mechanism-video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 3px; background: var(--ink);
}
.mechanism-card .cap {
  font-family: var(--font-label); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute);
  line-height: 1.5;
}

.praefatio-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-block: 0.7rem 1.2rem; }
.praefatio-text p { margin-bottom: 1.1rem; }
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
  margin-block: 1.6rem;
}

/* =============================================================
   6d. Opera (services)
   ============================================================= */
.opera { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  position: relative; isolation: isolate;
  background: var(--paper);
  padding: 2.1rem 1.8rem;
  display: grid; gap: 0.9rem;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease-soft);
}
.service-card:hover { transition-duration: 0.15s; }
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(177, 80, 44, 0.14), transparent 62%);
  opacity: 0; transition: opacity 0.35s;
}
.service-card:hover::before { opacity: 1; }
.service-numeral {
  font-family: var(--font-label); font-size: 0.95rem;
  color: var(--accent-2); letter-spacing: 0.08em;
}
.service-icon { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--ink-mute); font-size: 0.94rem; margin: 0; }

/* =============================================================
   6d-2. In Situ (real work photo gallery)
   ============================================================= */
.insitu { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--bg-2); }
.insitu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
}
.insitu-photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 3px; aspect-ratio: 4 / 3;
  box-shadow: 0 1px 0 var(--line);
}
.insitu-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) sepia(0.06);
  transition: transform 0.8s var(--ease-soft), filter 0.55s;
}
.insitu-photo:hover img { transform: scale(1.08); filter: saturate(1.2) sepia(0); }
.insitu-photo figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 0.9rem 1rem 0.7rem;
  background: linear-gradient(0deg, rgba(36, 28, 21, 0.82) 0%, transparent 100%);
  color: var(--cream);
  font-family: var(--font-label); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* =============================================================
   6e. Statio Perpetua (24/7 band)
   ============================================================= */
.statio { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--bg-2); }
.statio .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.statio h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-top: 0.6rem; margin-bottom: 1rem; }
.statio p { color: var(--ink-mute); max-width: 48ch; }
.statio .btn { margin-top: 1.4rem; }
.dial { justify-self: center; display: grid; justify-items: center; gap: 0.9rem; }
.dial svg { width: 168px; height: 168px; }
.dial .label {
  font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute); text-align: center;
}
.dial .label strong {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: 1.4rem; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.dial-hand { transform-box: view-box; transform-origin: 84px 84px; animation: spin linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Minute hand sweeps a full turn every 10s; the hour hand takes 12x as long —
   the same 1:12 ratio a real clock uses — so one minute-hand lap advances the
   hour hand exactly 30°, keeping the two mechanically in sync. */
.dial-hand-minute { animation-duration: 10s; }
.dial-hand-hour { animation-duration: 120s; }

/* =============================================================
   6f. Area (coverage)
   ============================================================= */
.area { padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.area .wrap {
  display: flex; flex-wrap: wrap; gap: 1.4rem 3rem;
  align-items: baseline; justify-content: space-between;
}
.area h2 { font-size: 1.4rem; max-width: 32ch; }
.area-list { display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; font-size: 0.92rem; color: var(--ink-mute); }
.area-list li::before { content: "— "; color: var(--accent-2); }

/* =============================================================
   6g. Contactus
   ============================================================= */
.contactus { padding-block: clamp(3.5rem, 8vw, 6rem); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.3rem);
}
.contact-card .email {
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
  color: var(--accent); word-break: break-word;
}
.contact-card dl { margin-top: 1.6rem; display: grid; gap: 0.7rem; font-size: 0.92rem; }
.contact-card dt { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.contact-card dd { margin-top: 0.15rem; }
.map-embed {
  margin-top: 1.6rem; border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

form.inquiry { display: grid; gap: 1.1rem; }
.field { position: relative; }
.field label {
  display: block; font-family: var(--font-label); font-size: 0.7rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%; font: inherit; font-family: var(--font-sans);
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: 0.8em 0.95em; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 112px; }
.form-note { font-size: 0.78rem; color: var(--ink-mute); }
.form-error {
  font-size: 0.88rem; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 3px; padding: 0.8em 1em;
}
.form-error a { text-decoration: underline; text-underline-offset: 2px; }
/* Honeypot: off-screen, never shown to real visitors, but present in the DOM
   for bots that fill every field blindly. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  display: flex; align-items: flex-start; gap: 0.6em;
  font-size: 0.84rem; color: var(--ink-mute); line-height: 1.5;
  cursor: pointer;
}
.consent input { margin-top: 0.2em; accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.consent a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink-soft); }
.consent a:hover { color: var(--accent); }

/* =============================================================
   6h. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.2rem; }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.9rem;
  font-size: 0.78rem; color: var(--ink-mute);
}
.footer-brand {
  font-family: var(--font-label); letter-spacing: 0.1em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.footer-mark { width: 22px; height: 22px; object-fit: contain; }
.footer-links a { text-decoration: underline; text-underline-offset: 2px; }
.footer-links a:hover { color: var(--accent); }

/* Credits page */
.page-credits main { max-width: 760px; margin-inline: auto; padding: clamp(6rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem) 4rem; }
.page-credits h1 { font-size: 2rem; margin-bottom: 1rem; }
.page-credits .back { font-size: 0.85rem; color: var(--ink-mute); display: inline-block; margin-bottom: 2rem; }
.page-credits .back:hover { color: var(--accent); }
.credits-list li { padding-block: 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.credits-list a { text-decoration: underline; text-underline-offset: 2px; }

.legal-page p, .legal-page ul { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.1rem; max-width: 68ch; }
.legal-page h2 {
  font-size: 1.15rem; font-family: var(--font-label); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-2);
  margin-top: 2.2rem; margin-bottom: 0.8rem;
}
.legal-page ul { padding-left: 1.3rem; list-style: disc; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page a { text-decoration: underline; text-underline-offset: 2px; }
.legal-page a:hover { color: var(--accent); }
.legal-updated { font-size: 0.8rem; color: var(--ink-mute); margin-top: 2.5rem; }

/* =============================================================
   6i. Wizard (presupuesto / emergencia multi-step)
   ============================================================= */
.wizard {
  position: fixed; inset: 0; z-index: 500;
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}
.wizard:not([hidden]) { display: flex; }
.wizard-backdrop {
  position: absolute; inset: 0;
  background: rgba(36, 28, 21, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.wizard-panel {
  position: relative; z-index: 1;
  background: var(--paper); border-radius: 6px;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: 0 40px 80px -20px rgba(36, 28, 21, 0.45);
}
.wizard-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-mute); font-size: 0.9rem;
  transition: background 0.25s, color 0.25s;
}
.wizard-close:hover { background: var(--bg-2); color: var(--ink); }
.wizard-progress {
  font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.4rem;
}
.wizard-step[hidden] { display: none; }
.wizard-step h2 { font-size: 1.5rem; margin-top: 0.5rem; margin-bottom: 1rem; }
.wizard-step > p.eyebrow { margin-bottom: 0; }
.wizard-step > p:not(.eyebrow):not(.wizard-fee-text) { color: var(--ink-mute); margin-bottom: 1.3rem; }

.wizard-zone-list {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin: 1.1rem 0; font-size: 0.94rem; color: var(--ink-mute);
}
.wizard-zone-list li::before { content: "— "; color: var(--accent-2); }
.wizard-note { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 1.4rem; }

.wizard-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.wizard-type-card {
  text-align: left; border: 1px solid var(--line); border-radius: 4px;
  padding: 1.3rem 1.2rem; display: grid; gap: 0.5rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.wizard-type-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.wizard-type-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wizard-type-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.wizard-type-desc { font-size: 0.85rem; color: var(--ink-mute); }

.wizard-fee-text {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.1rem 1.2rem; font-size: 0.94rem; color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.wizard-counter { font-size: 0.78rem; color: var(--ink-mute); text-align: right; margin-top: 0.3rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wizard-optional { font-weight: 400; text-transform: none; letter-spacing: 0; }

.wizard-review { display: grid; gap: 0.7rem; margin: 1.2rem 0 1.4rem; font-size: 0.92rem; }
.wizard-review div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.wizard-review dt { color: var(--ink-mute); }
.wizard-review dd { text-align: right; max-width: 60%; }

.wizard-error {
  font-size: 0.85rem; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 3px; padding: 0.7em 0.9em; margin-bottom: 1rem;
}
.wizard-error a { text-decoration: underline; }

.wizard-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.wizard-actions .btn { flex: 0 0 auto; }
.wizard-actions .btn:only-child { flex: 1 1 auto; justify-content: center; }

@media (max-width: 539px) {
  .wizard-type-grid, .field-row { grid-template-columns: 1fr; }
  .wizard-actions { flex-direction: column-reverse; }
  .wizard-actions .btn { width: 100%; justify-content: center; }
}

/* =============================================================
   7. Cursor (archetype 01 signature — two clean circles)
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  display: none; mix-blend-mode: difference;
  opacity: 0; transition: opacity 0.25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: var(--cream); border-radius: 50%; }
.cursor-ring {
  width: 32px; height: 32px; margin: -16px; border: 1px solid var(--cream); border-radius: 50%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 50px; height: 50px; margin: -25px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .nav-links { display: none; }
  .praefatio .wrap { grid-template-columns: 1fr; }
  .mechanism-card { position: static; justify-self: start; max-width: 260px; }
  .statio .wrap { grid-template-columns: 1fr; }
  .dial { justify-self: start; }
  .contact-grid { grid-template-columns: 1fr; }
  .area .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 539px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* =============================================================
   9. Reduced-motion — only genuinely intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  /* Gear rotation stays on — slow ambient loop, same category as a mesh-gradient
     drift (see gotcha A.2). Do NOT disable: tilt, hover, fades, reveals, magnetic. */
}
