/* ==========================================================================
   MODOM — Components
   Header, nav, mobile drawer, footer, cookie banner, sticky CTA,
   reusable cards / accordion / icon lists / forms.
   ========================================================================== */

/* --- Header --------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Blur starts at 0 so the solid state can fade in instead of popping */
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  transition: background 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              backdrop-filter 0.3s var(--ease-out),
              -webkit-backdrop-filter 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
/* Contrast scrim behind the transparent hero menu — guarantees legibility of the
   cream nav over bright parts of the hero (sky / interior). Fades out once solid. */
.header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 210px;
  background: linear-gradient(to bottom,
    rgba(12, 10, 7, 0.52) 0%,
    rgba(12, 10, 7, 0.30) 42%,
    rgba(12, 10, 7, 0) 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s var(--ease-out);
}

/* Transparent over the dark hero; solidifies to light paper over content */
.header--solid {
  background: rgba(245, 240, 233, 0.85);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  border-bottom-color: var(--border);
  /* Entering the solid state fades in slowly; leaving uses the quick base timing */
  transition: background 1s var(--ease-out),
              box-shadow 1s var(--ease-out),
              border-color 1s var(--ease-out),
              backdrop-filter 1s var(--ease-out),
              -webkit-backdrop-filter 1s var(--ease-out);
}
.header--solid::before { opacity: 0; transition: opacity 1s var(--ease-out); }

/* Full-bleed header: logo and nav sit near the edges with comfortable inset */
.header__inner {
  width: 100%;
  padding-inline: var(--edge-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.brand { display: inline-flex; align-items: center; flex: none; }
/* Cormorant Garamond wordmark — cream over hero, ink over content */
.brand-word {
  font-family: var(--logo);
  font-weight: 500;
  font-size: clamp(1.55rem, 1.25rem + 1vw, 2.05rem);
  letter-spacing: var(--tracking-logo);
  line-height: 1;
  color: var(--paper);
  text-shadow: 0 1px 10px rgba(8, 9, 5, 0.45);
  transition: color 0.3s var(--ease-out), text-shadow 0.3s var(--ease-out);
}
.header--solid .brand-word { color: var(--ink); text-shadow: none; transition: color 1s var(--ease-out), text-shadow 1s var(--ease-out); }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.75rem); }
.nav__list { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.75rem); }
.nav__link {
  position: relative;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-cream);
  padding: 0.5rem 0.25rem;
  opacity: 1;
  pointer-events: auto;
  text-shadow: 0 1px 2px rgba(8, 9, 5, 0.78), 0 0 12px rgba(8, 9, 5, 0.58);
  transition: opacity 0.25s, color 0.3s var(--ease-out), text-shadow 0.3s var(--ease-out);
}
/* Hover: smooth underline wipe-in; text colour stays as-is (uses currentColor) */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.32rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.34s var(--ease-out);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }
/* Over light content the nav switches to ink text */
.header--solid .nav__link { color: var(--ink-soft); text-shadow: none; transition: opacity 0.25s, color 1s var(--ease-out), text-shadow 1s var(--ease-out); }
.header--solid .nav-toggle { color: var(--ink); transition: color 1s var(--ease-out); }

.header__cta { display: inline-flex; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-cream);
  transition: color 0.3s var(--ease-out);
}
.nav-toggle__bars { position: relative; width: 24px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Mobile drawer -------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
  /* Keep the drawer visible through the slide-out so the close animates smoothly */
  transition: visibility 0s linear var(--dur-slow);
}
.drawer.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(23, 26, 29, 0.55);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(88vw, 380px);
  background: var(--color-ink);
  color: var(--color-cream);
  padding: calc(var(--header-h) + 1rem) var(--space-32) var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__close {
  position: absolute; top: 1rem; right: 1.25rem;
  width: 48px; height: 48px; color: var(--color-cream);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.4rem;
}
/* No focus border on the close button; keep a subtle highlight for keyboard users */
.drawer__close:focus-visible { outline: none; background: rgba(247, 240, 236, 0.14); }
.drawer__nav { display: flex; flex-direction: column; gap: var(--space-4); }
.drawer__link {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--line-on-dark);
}
.drawer__link:hover { color: var(--accent-soft); }
/* Bronze accent CTA — stands out on the dark drawer, fits the ATELIER palette */
.drawer .btn { margin-top: var(--space-16); --btn-bg: var(--accent); --btn-fg: #fff; }
.drawer .btn:hover { background: #83603c; }

@media (max-width: 900px) {
  .nav__list, .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* --- Footer (ATELIER — warm dark close) ---------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1d1813, #15110d);
  color: var(--color-cream);
  padding-block: clamp(4rem, 3rem + 4vw, 7rem) var(--space-32);
}
/* Oversized faint brand watermark anchored to the bottom edge */
.footer__watermark {
  position: absolute; left: 50%; bottom: -0.16em; transform: translateX(-50%);
  font-family: var(--logo); font-weight: 600;
  font-size: clamp(8rem, 26vw, 24rem); line-height: 0.8; letter-spacing: 0.06em;
  color: rgba(199, 154, 106, 0.06);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.footer .container { position: relative; z-index: 1; }

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1.7fr;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.footer__word {
  display: block;
  font-family: var(--logo); font-weight: 600;
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem);
  letter-spacing: var(--tracking-logo);
  color: var(--color-cream); line-height: 1;
}
.footer__logo { height: clamp(58px, 4vw + 2rem, 74px); width: auto; }
.footer__brand { display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2rem); }
.footer__brand-sep { flex: none; width: 1px; align-self: stretch; min-height: 68px; background: rgba(199, 154, 106, 0.3); }
.footer__tagline {
  margin: 0; max-width: 34ch;
  font-size: 0.95rem; line-height: 1.65; color: rgba(245, 240, 233, 0.62);
}
.footer__cta {
  display: inline-flex; align-items: center; gap: var(--space-12);
  margin-top: var(--space-32); min-height: 52px; padding: 0 1.6rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em;
  color: #1b1612; background: linear-gradient(145deg, #c79a6a, #a87b4c);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), filter var(--dur-base);
}
.footer__cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.footer__cta svg { width: 17px; height: 17px; transition: transform var(--dur-base) var(--ease-out); }
.footer__cta:hover svg { transform: translateX(3px); }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-32); align-content: start; }
.footer__col h4 {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: #c79a6a;
  margin-bottom: var(--space-20);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-12); }
.footer__col li { color: rgba(245, 240, 233, 0.6); font-size: 0.95rem; }
.footer__col a { color: rgba(245, 240, 233, 0.72); transition: color var(--dur-base); }
.footer__col a:hover { color: var(--color-cream); }

/* Footer contact icons */
.footer__col li > .fa-solid { width: 1.1em; margin-right: 0.55em; text-align: center; color: #c79a6a; font-size: 0.9em; }

/* Footer availability block: label + time with icon */
.footer__hours { display: flex; flex-direction: column; gap: var(--space-4); }
.footer__hours-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #c79a6a;
}
.footer__hours-time { display: inline-flex; align-items: center; gap: 0.5em; }
.footer__hours-time .fa-clock { color: #c79a6a; font-size: 0.9em; }

.footer__divider {
  height: 1px; margin-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--space-24);
  background: linear-gradient(90deg, rgba(199, 154, 106, 0.35), rgba(199, 154, 106, 0.08) 60%, transparent);
}
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-16);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-small); color: rgba(245, 240, 233, 0.5);
}
.footer__claim { font-family: var(--logo); font-size: 1.05rem; letter-spacing: 0.12em; color: #c79a6a; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); }
.footer__legal a { color: rgba(245, 240, 233, 0.6); transition: color var(--dur-base); }
.footer__legal a:hover { color: var(--color-cream); }
.footer__credit { display: inline-flex; align-items: center; gap: 0.4em; color: rgba(245, 240, 233, 0.6); }
.footer__credit a { color: rgba(245, 240, 233, 0.78); }
.footer__heart { font-size: 15px; color: #c79a6a; flex: none; }
.footer__sep { color: rgba(245, 240, 233, 0.3); }

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; gap: var(--space-40); }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-32); }
  .footer__bottom { justify-content: flex-start; gap: var(--space-12); }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: var(--space-16); }
  .footer__brand-sep { display: none; }
  /* Credit and privacy link stack under each other, no dot between them */
  .footer__legal { flex-direction: column; align-items: flex-start; gap: var(--space-8); }
  .footer__sep { display: none; }
}

/* --- Icon (bronze line) --------------------------------------------------- */
.ico {
  width: 28px; height: 28px;
  stroke: var(--color-copper);
  stroke-width: 1.6;
  fill: none;
  flex: none;
}
.section--dark .ico, .section--warm .ico { stroke: var(--accent-soft); }

/* --- Reusable cards ------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-32);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-line-light); }
.card h3 { margin-bottom: var(--space-12); }
.card p { color: var(--text-muted); }

/* Icon feature item */
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.feature__icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-sand);
  border: 1px solid var(--line);
}
.section--dark .feature__icon, .section--warm .feature__icon {
  background: rgba(247,240,236,0.06); border-color: var(--line-on-dark);
}
.feature h3, .feature h4 { font-size: var(--fs-h4); }
.feature p { color: var(--text-muted); font-size: 0.98rem; }
.section--dark .feature p, .section--warm .feature p { color: var(--text-on-dark-muted); }

/* --- Accordion (brief 4/6: works without GSAP) --------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  text-align: left;
  padding: var(--space-24) 0;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  color: var(--text);
}
.accordion__icon { position: relative; width: 20px; height: 20px; flex: none; }
.accordion__icon::before,
.accordion__icon::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform var(--dur-base) var(--ease-out);
}
.accordion__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.accordion__icon::after { left: 9px; top: 0; width: 2px; height: 20px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel {
  overflow: hidden;
  height: 0;
  transition: height var(--dur-base) var(--ease-out);
}
.accordion__panel-inner { padding-bottom: var(--space-24); color: var(--text-muted); max-width: 70ch; }
@media (prefers-reduced-motion: reduce) {
  .accordion__panel { transition: none; }
}

/* --- Forms (ATELIER) ------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: var(--space-8); margin-bottom: var(--space-24); }
.field label {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.field .req { color: var(--accent); }
.field .hint { font-size: var(--fs-small); color: var(--muted); }
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background-color: #fdfbf7;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 2px rgba(70, 54, 42, 0.05);
  transition: border-color var(--dur-base), box-shadow var(--dur-base), background-color var(--dur-base);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

/* Custom select chevron (taupe) — removes default OS arrow */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239a744d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 18px;
  padding-right: 2.9rem;
  cursor: pointer;
}
.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover { border-color: #c6b49f; }
.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(154, 116, 77, 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(45, 39, 34, 0.42); }
/* :not() keeps specificity above the base `.field input:not(...)` rule;
   the :focus variant keeps the red visible on the auto-focused field too */
.field--error input:not([type="checkbox"]),
.field--error select,
.field--error textarea,
.field--error input:not([type="checkbox"]):focus,
.field--error select:focus,
.field--error textarea:focus { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }
/* Validation feedback = red border only (see .field--error rules below) */

/* File input */
.field input[type="file"] { padding: 0.7rem 1.1rem; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: var(--space-16); padding: 0.5rem 1rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.82rem;
  color: var(--ink); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
}

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: var(--space-12); align-items: start; margin-bottom: var(--space-8); }
.checkbox input {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0;
  flex: none; cursor: pointer; position: relative;
  background: #fdfbf7;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  transition: background var(--dur-base), border-color var(--dur-base);
}
.checkbox input:hover { border-color: #c6b49f; }
/* Error state must beat the .checkbox input rule above (same-specificity order) */
.field--error input[type="checkbox"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }
.checkbox input:checked { background: var(--accent); border-color: var(--accent); }
.checkbox input:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px;
  width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox label { font-weight: var(--weight-body); font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.checkbox a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* --- Custom select (JS-enhanced; native select kept hidden for submit) --- */
.select-wrap { position: relative; }
.select-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.select-btn {
  width: 100%;
  min-height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12);
  padding: 0.9rem 1.1rem;
  font-family: var(--sans); font-size: 0.98rem; color: var(--ink); text-align: left;
  background-color: #fdfbf7;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 2px rgba(70, 54, 42, 0.05);
  cursor: pointer;
  transition: border-color var(--dur-base), box-shadow var(--dur-base), background-color var(--dur-base);
}
.select-btn:hover { border-color: #c6b49f; }
.select-btn[aria-expanded="true"],
.select-btn:focus-visible { outline: none; background-color: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154, 116, 77, 0.18); }
.select-btn--placeholder .select-btn__label { color: rgba(45, 39, 34, 0.42); }
.select-btn__chev { flex: none; width: 18px; height: 18px; color: var(--accent); transition: transform var(--dur-base) var(--ease-out); }
.select-btn[aria-expanded="true"] .select-btn__chev { transform: rotate(180deg); }
.field--error .select-btn { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }

.select-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  margin: 0; padding: 6px; list-style: none;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 280px; overflow-y: auto;
}
.select-list[hidden] { display: none; }
.select-opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--ink); cursor: pointer;
}
.select-opt.is-active { background: var(--panel); }
.select-opt[aria-selected="true"] { color: var(--accent); font-weight: 700; }
.select-opt__check { width: 16px; height: 16px; opacity: 0; flex: none; }
.select-opt[aria-selected="true"] .select-opt__check { opacity: 1; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-24); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Inline status messages */
.form-status { display: none; padding: var(--space-16) var(--space-20); border-radius: var(--radius-sm); margin-bottom: var(--space-24); font-weight: var(--weight-medium); }
.form-status.is-visible { display: block; }
.form-status--success { background: #e7f3ec; color: #1f5135; border: 1px solid #bcdcc8; }
.form-status--error { background: #fbe9e8; color: #8a201a; border: 1px solid #f0c4c0; }

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-small); color: var(--text-muted); display: flex; gap: var(--space-8); align-items: center; }
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb span[aria-current] { color: var(--text); font-weight: var(--weight-medium); }

/* ==========================================================================
   Shared editorial components (moved from home.css — used on home + subpages)
   ========================================================================== */
.headline { font-size: clamp(2.75rem, 1.7rem + 4.6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.055em; }
.section-copy { margin-top: var(--space-32); max-width: 39rem; color: var(--text-soft); font-size: var(--fs-lead); line-height: 1.72; }
.section-copy .hl { color: var(--accent); font-weight: var(--weight-bold); }

/* Floating data card */
.float-card { position: absolute; z-index: 3; border-radius: var(--radius-panel); overflow: hidden; }
.fc-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding: var(--space-20) var(--space-24); }
.fc-head h3 { font-family: var(--sans); font-size: 0.94rem; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.fc-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d6c5b2; background: var(--panel-2); color: var(--accent); }
.fc-badge svg { width: 16px; height: 16px; }
.fc-badge i { font-size: 15px; line-height: 1; }
.fc-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--space-12); padding: var(--space-12) var(--space-24); border-top: 1px solid var(--line-warm); }
.fc-row__label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.fc-row__value { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fc-row__value .u { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-left: 2px; }

/* Model card */
.mcard {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.mcard__media { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.mcard:hover .mcard__media img { transform: scale(1.03); }
.mcard--feature .mcard__media { aspect-ratio: 16/10; }
.mcard--compact .mcard__media { height: 150px; }
.mcard__ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: linear-gradient(135deg, #e7ddd0, #f1ebe2);
}
.mcard__badge {
  position: absolute; top: var(--space-16); left: var(--space-16); z-index: 1;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--panel-2); color: var(--accent);
  padding: 0.35rem 0.8rem; font-size: 0.68rem; font-weight: 800; letter-spacing: -0.02em;
  box-shadow: var(--bevel);
}
.mcard__body { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-20); padding: clamp(1.1rem, 0.8rem + 1vw, 1.5rem); }
.mcard__type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); }
.mcard h3 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -0.045em; color: var(--ink); margin-top: var(--space-8); }
.mcard--feature h3 { font-size: 1.78rem; }
.mcard--compact h3 { font-size: 1.45rem; }
.mcard p { margin-top: var(--space-12); font-size: 0.84rem; font-weight: 600; line-height: 1.5; color: var(--muted); }
.mcard__arrow {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #d6c5b2; background: var(--panel-2); color: var(--accent);
  box-shadow: var(--bevel); transition: transform var(--dur-base), border-color var(--dur-base);
}
.mcard:hover .mcard__arrow { transform: translateX(3px); border-color: #ad8356; }
.mcard__arrow svg { width: 16px; height: 16px; }

/* Whole card clickable — transparent overlay link covers the card */
.mcard__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

/* Feature card: arrow sits at the bottom of the box */
.mcard--feature .mcard__body { flex: 1; flex-direction: column; align-items: flex-start; }
.mcard--feature .mcard__arrow { margin-top: auto; align-self: flex-end; }

/* Spec rows panel */
.layer-card { border-radius: var(--radius-panel); overflow: hidden; }
.layer-card__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-24) var(--space-32); }
.layer-card__head h3 { font-family: var(--sans); font-size: 0.96rem; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.layer { display: flex; align-items: center; gap: var(--space-16); padding: var(--space-20) var(--space-32); border-top: 1px solid var(--line-warm); }
.layer__dot { width: 16px; height: 40px; border-radius: 4px; flex: none; box-shadow: var(--bevel); }
.layer__name { flex: 1; font-size: 0.9rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.layer__spec { font-size: 0.82rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --- Toast notifications (stacked bottom-right; created by main.js) ------- */
.toast-stack {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vh, 2rem);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  width: min(460px, calc(100vw - 2rem));
}
/* Dark espresso toast — impossible to miss on the paper site */
.toast {
  display: flex; align-items: center; gap: var(--space-16);
  padding: var(--space-20) var(--space-24);
  background: linear-gradient(135deg, #262019, #17130f);
  border: 1px solid rgba(199, 154, 106, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(20, 15, 10, 0.45);
  opacity: 0; transform: translateY(18px) scale(0.97);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.toast.is-in { opacity: 1; transform: none; }
.toast__badge {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.toast--success .toast__badge { background: rgba(93, 158, 120, 0.18); color: #8fc7a4; border: 1px solid rgba(93, 158, 120, 0.45); }
.toast--error .toast__badge { background: rgba(217, 119, 80, 0.16); color: #e2a389; border: 1px solid rgba(217, 119, 80, 0.4); }
.toast__body strong { display: block; font-size: 1.02rem; letter-spacing: -0.02em; color: var(--paper); }
.toast__body p { margin-top: 3px; font-size: 0.88rem; line-height: 1.5; color: rgba(245, 240, 233, 0.72); }
.toast__close {
  flex: none; margin-left: auto; align-self: flex-start;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(245, 240, 233, 0.55);
  transition: color var(--dur-base), background var(--dur-base);
}
.toast__close:hover { color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.toast__close i { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity 0.2s; transform: none; } }

/* Submit button loading state — muted background makes "inactive" obvious */
.btn.is-loading {
  pointer-events: none;
  background: #8b8177;
  box-shadow: none;
}


/* --- Privacy modal (footer partial; opens via JS, :target as no-JS fallback) */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  visibility: hidden; pointer-events: none;
  transition: visibility 0s linear 0.4s;
}
.modal.is-open, .modal:target { visibility: visible; pointer-events: auto; transition: none; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(23, 20, 17, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.modal.is-open .modal__scrim, .modal:target .modal__scrim { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(84vh, 860px);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(26px) scale(0.97);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.modal.is-open .modal__panel, .modal:target .modal__panel { opacity: 1; transform: none; }
.modal__head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-24);
  padding: var(--space-24) clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-bottom: 1px solid var(--line-warm);
}
.modal__head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -0.04em; }
.modal__close {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #d6c5b2; background: var(--panel-2); color: var(--accent);
  box-shadow: var(--bevel);
  transition: transform var(--dur-base), border-color var(--dur-base), color var(--dur-base);
}
.modal__close:hover { border-color: #ad8356; color: var(--ink); transform: rotate(90deg); }
.modal__close i { font-size: 15px; }
.modal__body {
  padding: var(--space-24) clamp(1.5rem, 1rem + 1.5vw, 2.5rem) var(--space-32);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Slim warm scrollbar instead of the default one */
  scrollbar-width: thin;
  scrollbar-color: #cbbba7 transparent;
}
.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-track { background: transparent; }
.modal__body::-webkit-scrollbar-thumb {
  background: #cbbba7;
  border-radius: 999px;
  border: 2px solid var(--panel);
}
.modal__body::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.modal__body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -0.035em; margin: var(--space-32) 0 var(--space-12); }
.modal__body p, .modal__body li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.modal__body p + p { margin-top: var(--space-12); }
.modal__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.modal__body a:hover { color: var(--ink); }
.modal__body ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: var(--space-8); }
.modal__notice {
  background: #fbeecf; border: 1px solid #ecd29a; color: #6b4a12;
  border-radius: var(--radius-sm);
  padding: var(--space-16) var(--space-20);
  font-size: 0.9rem; line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .modal__panel { transition: opacity 0.2s; transform: none; }
}
