/* ==========================================================================
   Blind Ambition — Design System
   Gold is light, purple is shade. Motion is transform/opacity only.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — neutrals biased toward the purple so they read as chosen */
  --paper:      #FAF8FC;
  --paper-2:    #F1ECF7;
  --linen:      #E3DAEF;
  --espresso:   #201436;
  --espresso-2: #2C1E48;

  /* Ink */
  --ink:        #1D1231;
  --ink-2:      #3A2C57;
  --muted:      #665A7C;
  --on-dark:    #F3EFFA;
  --on-dark-2:  #C0B3D8;

  /* Accent. The scheme has one idea: gold is light, purple is shade.
     Purple carries interaction (links, focus, controls); gold carries
     light (calls to action, sun, stars, highlights). */
  --royal:      #4C2A85;   /* interactive text on paper (9.2:1) */
  --royal-soft: #8B6FC4;   /* purple on dark grounds */
  --gold:       #C9A227;   /* fills; pairs with --ink text (6.5:1) */
  --gold-deep:  #7A5A07;   /* gold as text: 6.0:1 on paper, 4.9:1 over the backdrop */
  --gold-soft:  #E6CC73;   /* gold on dark grounds (10.4:1) */
  --line:       #DED3EC;
  --line-dark:  #3A2C55;

  /* Scrim over the backdrop photograph. Tune these two to show more or less of
     the picture — lower alpha is more photo, less text contrast. */
  --scrim:      rgba(250, 248, 252, 0.90);
  --scrim-sm:   rgba(250, 248, 252, 0.93);

  /* Content surfaces. Translucent so the backdrop reads through them rather
     than being boxed out, blurred so text stays legible over the picture. */
  --surface:    rgba(250, 248, 252, 0.86);
  --surface-2:  rgba(241, 236, 247, 0.78);
  --surface-blur: saturate(140%) blur(12px);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1:  clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.5vw, 2.75rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.5vw, 3.9rem);
  --step-5:  clamp(2.7rem, 1.9rem + 3.9vw, 5.4rem);

  /* Space (4/8 rhythm) */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 68ch;
  --max: 1240px;

  /* Shape + depth (purple-tinted shadows) */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --e-1: 0 1px 2px rgba(45, 26, 74, 0.06), 0 2px 8px rgba(45, 26, 74, 0.05);
  --e-2: 0 2px 6px rgba(45, 26, 74, 0.07), 0 12px 28px rgba(45, 26, 74, 0.09);
  --e-3: 0 4px 12px rgba(45, 26, 74, 0.09), 0 24px 56px rgba(45, 26, 74, 0.13);

  /* Motion */
  --dur-1: 160ms; --dur-2: 240ms; --dur-3: 380ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.55, 0, 1, 0.45);
  --spring:   cubic-bezier(0.34, 1.42, 0.5, 1);

  /* Layers */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-header: 60; --z-overlay: 100;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Photographic backdrop ---------- */
/* A fixed photograph sits behind the whole site, with a paper scrim over it so
   body copy keeps the contrast the palette was built for. Two fixed layers
   rather than background-attachment: fixed, which iOS Safari renders against
   document height instead of the viewport. */
body::before,
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body::before {
  background: url("../photos/backdrop.webp") center / cover no-repeat;
}
body::after { background: var(--scrim); }

@media (max-width: 700px) {
  /* Portrait phones crop a landscape backdrop to almost nothing readable, and
     the scrim has to work harder over a smaller slice of it. */
  body::before { background-position: 62% center; }
  body::after { background: var(--scrim-sm); }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--royal); color: #fff; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  z-index: var(--z-overlay);
  background: var(--ink); color: var(--paper);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-sm);
  transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 900px; }
.section { padding-block: clamp(3.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--dark { background: var(--espresso); color: var(--on-dark-2); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--tint { background: var(--surface-2); backdrop-filter: var(--surface-blur); }

.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: var(--s-6); }

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6;
}
.section--dark .eyebrow { color: var(--gold-soft); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 54ch; }
.section--dark .lede { color: var(--on-dark-2); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--s-4); }
.section-head { max-width: 66ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head > * + * { margin-top: var(--s-4); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px; padding: var(--s-3) var(--s-6);
  font-size: var(--step-0); font-weight: 500; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  transition: transform var(--dur-1) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: var(--e-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); box-shadow: var(--e-1); }
.btn .ico { flex: none; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .ico--arrow { transform: translateX(3px); }

.btn--accent { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: var(--ink); }
.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bg: var(--paper-2); --btn-bd: var(--ink); }
.section--dark .btn--ghost,
.cta-band .btn--ghost { --btn-fg: var(--on-dark); --btn-bd: var(--line-dark); }
.section--dark .btn--ghost:hover,
.cta-band .btn--ghost:hover { --btn-bg: rgba(255,255,255,0.06); --btn-bd: var(--on-dark-2); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 500; color: var(--royal); text-decoration: none;
  padding-block: var(--s-2);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 88%;
  transition: background-size var(--dur-2) var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(250, 248, 252, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.header[data-scrolled="true"] { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(45,26,74,0.06); }
.header__bar {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 76px;
  transition: min-height var(--dur-3) var(--ease-out);
}
.header[data-scrolled="true"] .header__bar { min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; margin-right: auto; padding-block: var(--s-2); }
.brand__mark { flex: none; }
/* The mark's louvers tilt shut on hover. */
.brand__mark .slat {
  transform-box: fill-box; transform-origin: center;
  transition: transform var(--dur-3) var(--ease-out);
}
.brand:hover .brand__mark .slat { transform: scaleY(0.24); }
.brand__mark .slat:nth-of-type(2) { transition-delay: 40ms; }
.brand__mark .slat:nth-of-type(3) { transition-delay: 80ms; }
.brand__mark .slat:nth-of-type(4) { transition-delay: 120ms; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.32rem; letter-spacing: -0.02em; color: var(--ink);
}
.brand__sub {
  font-size: 0.63rem; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; white-space: nowrap;
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.5rem); }
.nav__link {
  position: relative; display: block;
  padding: 14px var(--s-3);
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-2) var(--ease-out);
}
.nav__link::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 8px;
  height: 2px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--ink); }

.header__cta { display: none; }
.header__phone {
  display: none; align-items: center; gap: var(--s-2); white-space: nowrap;
  font-weight: 500; text-decoration: none; color: var(--ink);
  padding: var(--s-2) var(--s-3); border-radius: var(--r-pill);
  transition: background-color var(--dur-2) var(--ease-out);
}
.header__phone:hover { background: var(--paper-2); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: calc(var(--s-2) * -1);
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-2) var(--ease-out);
}
.menu-toggle:hover { background: var(--paper-2); }
.menu-toggle__bars { display: grid; gap: 5px; width: 20px; }
.menu-toggle__bars span {
  display: block; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  display: grid; grid-template-rows: auto 1fr;
  background: var(--paper);
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.mobile-nav[data-open="true"] { visibility: visible; opacity: 1; transition-delay: 0s; }
.mobile-nav__head { display: flex; align-items: center; min-height: 76px; }
.mobile-nav__body { padding-block: var(--s-5) var(--s-8); overflow-y: auto; }
.mobile-nav__list { border-top: 1px solid var(--line); }
.mobile-nav__list li { border-bottom: 1px solid var(--line); }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; padding-block: var(--s-3);
  font-family: var(--font-display); font-size: var(--step-2); color: var(--ink);
  text-decoration: none;
  opacity: 0; transform: translateY(14px);
}
.mobile-nav[data-open="true"] .mobile-nav__link {
  animation: navIn 420ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
}
@keyframes navIn { to { opacity: 1; transform: none; } }
.mobile-nav__link svg { color: var(--royal); opacity: 0.7; }
.mobile-nav__actions { display: grid; gap: var(--s-3); margin-top: var(--s-7); }

/* Sticky mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--dur-3) var(--ease-out);
}
.callbar[data-visible="true"] { transform: none; }
.callbar__item {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 58px; padding: var(--s-3);
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  background: var(--paper); color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.callbar__item--accent { background: var(--gold); color: var(--ink); }
.callbar__item:active { filter: brightness(0.95); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background: radial-gradient(ellipse at 65% 0%, rgba(201,162,39,0.20), transparent 62%);
  pointer-events: none;
}
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero__copy > * + * { margin-top: var(--s-5); }
.hero h1 { max-width: 14ch; }
.hero h1 em {
  font-style: italic; color: var(--royal);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 60;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-2); }
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-top: var(--s-4); }
.hero__proof-item { display: flex; align-items: center; gap: var(--s-2); font-size: var(--step--1); color: var(--muted); }
.hero__proof-item svg { color: var(--gold-deep); flex: none; }

/* Louvered reveal */
.reveal-window {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--e-3);
  background: var(--linen);
  isolation: isolate;
}
.reveal-window img { width: 100%; }
.louvers {
  position: absolute; inset: 0; z-index: 2;
  display: grid; grid-template-rows: repeat(var(--slats, 14), 1fr);
  perspective: 1200px; pointer-events: none;
}
.louvers span {
  display: block;
  background: linear-gradient(180deg, #FBF7EA 0%, #F1E7CB 62%, #DCCB9C 100%);
  border-bottom: 1px solid rgba(122, 94, 18, 0.16);
  transform-origin: 50% 0%;
  transform: rotateX(0deg);
  will-change: transform, opacity;
}
.reveal-window[data-open="true"] .louvers span {
  animation: louverOpen 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 45ms);
}
@keyframes louverOpen {
  0%   { transform: rotateX(0deg);   opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: rotateX(-88deg); opacity: 0; }
}
.reveal-window::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,236,178,0.52) 0%, transparent 42%);
  opacity: 0; transition: opacity 900ms var(--ease-out) 500ms;
}
.reveal-window[data-open="true"]::after { opacity: 1; }

.hero__badge {
  position: absolute; z-index: 4; left: clamp(-1rem, -1vw, 0rem); bottom: clamp(1rem, 4vw, 2rem);
  display: grid; gap: 2px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
  box-shadow: var(--e-2);
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-3) var(--ease-out) 900ms, transform var(--dur-3) var(--spring) 900ms;
}
.reveal-window[data-open="true"] + .hero__badge,
.hero__media[data-open="true"] .hero__badge { opacity: 1; transform: none; }
.hero__badge b { font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); line-height: 1; }
.hero__badge span { font-size: var(--step--1); color: var(--muted); }
.hero__media { position: relative; }

/* ---------- Marquee (service areas / brands) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(2rem, 5vw, 4rem); padding-right: clamp(2rem, 5vw, 4rem); }
.marquee__item {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-display); font-size: var(--step-1); color: var(--ink-2); white-space: nowrap;
}
.section--dark .marquee__item { color: var(--on-dark-2); }
.marquee__item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); backdrop-filter: var(--surface-blur);
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
a.card:hover, .card--interactive:hover { transform: translateY(-4px); box-shadow: var(--e-3); border-color: #C6B4E2; }
a.card:active { transform: translateY(-1px); }
.card__media { position: relative; overflow: hidden; background: var(--linen); aspect-ratio: 5 / 6; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
a.card:hover .card__media img { transform: scale(1.045); }
.card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); flex: 1; }
.card__body p { color: var(--muted); font-size: 0.96rem; }
.card__foot { margin-top: auto; padding-top: var(--s-3); display: flex; align-items: center; gap: var(--s-2); color: var(--royal); font-weight: 500; font-size: 0.95rem; }
a.card:hover .card__foot svg { transform: translateX(3px); }
.card__foot svg { transition: transform var(--dur-2) var(--ease-out); }
.tag {
  position: absolute; z-index: 2; top: var(--s-4); left: var(--s-4);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px var(--s-3); border-radius: var(--r-pill);
  background: rgba(32,20,54,0.86); color: var(--on-dark);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.grid-products { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }

/* ---------- Feature rows ---------- */
.feature { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 7vw, 6rem); }
.feature__body > * + * { margin-top: var(--s-4); }
.feature__media img { border-radius: var(--r-md); box-shadow: var(--e-2); width: 100%; }
.checklist { display: grid; gap: var(--s-3); padding-top: var(--s-2); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; }
.checklist svg { flex: none; margin-top: 4px; color: var(--gold-deep); }
.section--dark .checklist svg { color: var(--gold-soft); }

/* ---------- Numbered step marker ---------- */
/* Used by the "what happens next" list on the contact page. */
.step__num {
  font-family: var(--font-display); font-size: var(--step-1); color: var(--royal);
  font-variant-numeric: tabular-nums;
}

/* ---------- Light-control demo ---------- */
.demo { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.demo__stage {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--e-3); background: #241738; isolation: isolate;
}
.demo__scene { width: 100%; transition: filter var(--dur-3) linear; }
.demo__slats {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: grid; grid-template-rows: repeat(16, 1fr); perspective: 1600px;
}
.demo__slats span {
  display: block;
  background: linear-gradient(180deg, #FBF6E7, #E9DCB9 70%, #CEBE92);
  border-bottom: 1px solid rgba(110,86,18,0.20);
  transform-origin: 50% 0%;
  /* --tilt is set in JS as acos(1 - open/100) so the visible opening
     tracks the percentage the user sees, rather than the raw angle. */
  transform: rotateX(calc(var(--tilt, 0) * -1deg));
  transition: transform var(--dur-3) var(--ease-out);
  will-change: transform;
}
.demo__glow {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,229,160,0.78), transparent 55%);
  opacity: calc(var(--open, 0) / 100);
  transition: opacity var(--dur-3) linear;
}
.demo__controls { display: grid; gap: var(--s-5); }
.demo__readout { display: flex; align-items: baseline; gap: var(--s-3); }
.demo__readout b { font-family: var(--font-display); font-size: var(--step-3); color: var(--ink); font-variant-numeric: tabular-nums; }
.demo__readout span { color: var(--muted); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; }

.slider { width: 100%; }
.slider input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; background: transparent; cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--royal) var(--pct, 60%), var(--line) var(--pct, 60%));
}
.slider input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--r-pill); background: var(--line); }
.slider input[type="range"]::-moz-range-progress { height: 6px; border-radius: var(--r-pill); background: var(--royal); }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -12px;
  border-radius: 50%; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--e-2);
  transition: transform var(--dur-1) var(--ease-out);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--e-2);
}
.slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.slider__labels { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, 1fr); }
.stat { display: grid; gap: var(--s-1); }
.stat b {
  font-family: var(--font-display); font-size: var(--step-3); line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.section--dark .stat b { color: var(--on-dark); }
.stat span { font-size: var(--step--1); color: var(--muted); letter-spacing: 0.03em; }
.section--dark .stat span { color: var(--on-dark-2); }

/* ---------- Testimonials ---------- */
.quote {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md);
  height: 100%;
}
.quote blockquote { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.42; color: var(--ink); }
.quote figcaption { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.quote figcaption b { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.stars { display: flex; gap: 3px; color: var(--gold-deep); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--linen); aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: var(--s-6) var(--s-4) var(--s-4);
  background: linear-gradient(transparent, rgba(24,14,42,0.82));
  color: var(--on-dark); font-size: 0.92rem;
  transform: translateY(6px); opacity: 0.9;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out);
}
.gallery__item:hover .gallery__cap { transform: none; opacity: 1; }
.gallery__cap b { display: block; font-family: var(--font-display); font-size: var(--step-1); }

/* ---------- Area list ---------- */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.section--dark .areas { background: var(--line-dark); border-color: var(--line-dark); }
.area {
  display: grid; gap: var(--s-1); padding: var(--s-5) var(--s-4);
  background: var(--paper); min-height: 108px;
  transition: background-color var(--dur-2) var(--ease-out);
}
.section--dark .area { background: var(--espresso); }
.area:hover { background: var(--paper-2); }
.section--dark .area:hover { background: var(--espresso-2); }
.area b { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
.section--dark .area b { color: var(--on-dark); }
.area span { font-size: var(--step--1); color: var(--muted); }
.section--dark .area span { color: var(--on-dark-2); }

/* ---------- Forms ---------- */
/* The form is the one long run of text with no card behind it, so it needs its
   own surface — labels sitting straight on the backdrop photograph don't hold
   contrast. */
.form {
  display: grid; gap: var(--s-5);
  padding: var(--s-6); border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface);
  backdrop-filter: var(--surface-blur);
}
@media (max-width: 560px) {
  .form { padding: var(--s-5) var(--s-4); }
}
/* Keep a focused/scrolled-to field clear of the sticky header. */
.field { display: grid; gap: var(--s-2); scroll-margin-top: 110px; }
.field > label { font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.field .req { color: var(--royal); }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4);
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.field textarea { min-height: 132px; 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' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23665A7C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s-4) center; padding-right: var(--s-8); }
.field input::placeholder, .field textarea::placeholder { color: #9A8FB0; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #C0B0DC; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(76, 42, 133, 0.18);
}
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea, .field[data-invalid="true"] select { border-color: #A33427; }
.field[data-invalid="true"] input:focus, .field[data-invalid="true"] textarea:focus { box-shadow: 0 0 0 3px rgba(163, 52, 39, 0.16); }
.field__error { display: none; align-items: center; gap: 6px; font-size: var(--step--1); color: #8E2B20; font-weight: 500; }
.field[data-invalid="true"] .field__error { display: flex; }
.form__row { display: grid; gap: var(--s-5); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); }
.choice {
  position: relative; display: flex; align-items: center; gap: var(--s-3);
  min-height: 56px; padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
  background: var(--paper);
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.choice:hover { border-color: #C0B0DC; background: var(--paper-2); }
.choice:active { transform: scale(0.99); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  flex: none; width: 20px; height: 20px; border-radius: 5px;
  border: 1.5px solid #B4A5D2; display: grid; place-items: center;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.choice__box svg { opacity: 0; transform: scale(0.6); color: #FBF8FF; transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--spring); }
.choice input:checked ~ .choice__box { background: var(--royal); border-color: var(--royal); }
.choice input:checked ~ .choice__box svg { opacity: 1; transform: none; }
.choice input:focus-visible ~ .choice__box { outline: 3px solid var(--royal); outline-offset: 3px; }
.choice span { font-size: 0.95rem; }
.form__status { display: none; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); font-size: 0.95rem; }
.form__status[data-state="success"] { display: flex; background: #EDF2E9; color: #2F4527; border: 1px solid #CBD9C1; }
.form__status[data-state="error"] { display: flex; background: #F8ECEA; color: #7E2A20; border: 1px solid #E4C6C1; }
.form__status svg { flex: none; margin-top: 2px; }
.btn .spinner { display: none; }
.btn[data-loading="true"] .spinner { display: block; animation: spin 800ms linear infinite; }
.btn[data-loading="true"] .btn__label { opacity: 0.75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Callout / CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--espresso); color: var(--on-dark-2); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.cta-band::after {
  content: ""; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,162,39,0.30), transparent 66%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: var(--s-6); text-align: left; }
.cta-band h2 { color: var(--on-dark); max-width: 18ch; }
.cta-band .lede { color: var(--on-dark-2); }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; gap: var(--s-7); padding-block: clamp(3rem, 7vw, 5rem); }
.footer h3 { font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-2); font-weight: 500; margin-bottom: var(--s-4); }
.footer .brand__name { color: var(--on-dark); }
.footer .brand__sub { color: var(--on-dark-2); }
.footer__links { display: grid; gap: var(--s-2); }
.footer__links a, .footer address a {
  display: inline-block; padding-block: 11px;
  color: var(--on-dark-2); text-decoration: none; font-size: 0.95rem;
  transition: color var(--dur-2) var(--ease-out);
}
.footer__links a:hover, .footer address a:hover { color: var(--gold-soft); }
.footer address { font-style: normal; display: grid; gap: var(--s-1); font-size: 0.95rem; line-height: 1.7; }
.footer__hours { display: grid; gap: var(--s-1); font-size: 0.92rem; }
.footer__hours div { display: flex; justify-content: space-between; gap: var(--s-4); max-width: 260px; }
.footer__bottom {
  display: grid; gap: var(--s-3);
  padding-block: var(--s-5); border-top: 1px solid var(--line-dark);
  font-size: 0.85rem; color: var(--on-dark-2);
}
.footer__bottom p { margin: 0; }

/* ---------- Page hero (interior pages) ---------- */
/* Transparent so the backdrop photograph runs from under the header rather
   than starting below a band of paper. */
.page-hero { position: relative; padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); background: transparent; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60%;
  background: repeating-linear-gradient(180deg, rgba(76,42,133,0.06) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero > .wrap > * + * { margin-top: var(--s-4); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--step--1); color: var(--muted); }
.breadcrumb a { text-decoration: none; padding-block: var(--s-1); }
.breadcrumb a:hover { color: var(--royal); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: var(--s-2); opacity: 0.5; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Accordion (FAQ) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%; min-height: 68px; padding: var(--s-4) 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: var(--step-1); color: var(--ink);
  transition: color var(--dur-2) var(--ease-out);
}
.faq__q:hover { color: var(--royal); }
.faq__icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.5px;
  background: var(--gold-deep); transform-origin: center;
  transition: transform var(--dur-2) var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-3) var(--ease-out); }
/* The answer is a sibling of the heading, not of the button inside it, so the
   open state is carried on the item rather than read off the button. */
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: var(--s-5); color: var(--muted); max-width: 62ch; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.table-scroll:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
table.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.95rem; }
table.compare caption { text-align: left; padding: var(--s-5) var(--s-5) var(--s-3); color: var(--muted); font-size: var(--step--1); }
table.compare th, table.compare td { padding: var(--s-4) var(--s-5); text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
table.compare thead th {
  border-top: 0; font-family: var(--font-sans); font-weight: 500;
  font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
table.compare tbody th { font-family: var(--font-display); font-size: var(--step-0); font-weight: 600; color: var(--ink); white-space: nowrap; }
table.compare tbody tr:hover { background: var(--paper-2); }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 10px var(--s-4); border-radius: var(--r-pill);
  text-decoration: none;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 0.88rem; color: var(--ink-2);
}
a.pill { transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
a.pill:hover { border-color: var(--ink); background: var(--paper-2); }
.section--dark .pill { border-color: var(--line-dark); background: var(--espresso-2); color: var(--on-dark-2); }

/* ---------- Info panel ---------- */
.panel {
  display: grid; gap: var(--s-4);
  padding: var(--s-6); border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface);
  backdrop-filter: var(--surface-blur);
}
.panel--tint { background: var(--paper-2); }
/* Panels that lead with a picture: the image runs edge to edge, the text keeps
   the padding a plain panel has. align-content stops the grid stretching the
   image when a taller sibling sets the row height. */
.panel--media { padding: 0; overflow: hidden; align-content: start; }
.panel--media > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.panel--media > :not(img) { margin-inline: var(--s-6); }
.panel--media > :last-child { margin-bottom: var(--s-6); }
.section--dark .panel { background: var(--espresso-2); border-color: var(--line-dark); }
.section--dark .panel p { color: var(--on-dark-2); }
.panel h3 { font-size: var(--step-1); }
.panel p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Product anchor sections ---------- */
.product-block { scroll-margin-top: 100px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
/* Horizontal reveals only where the layout is actually side-by-side; on
   narrow screens the offset would push past the gutter and cause overflow. */
[data-reveal="left"], [data-reveal="right"] { transform: translateY(22px); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .grid-products, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .cta-band__inner { grid-template-columns: 1.2fr auto; align-items: center; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* Header chrome needs more room than the content grid: brand + five nav
   items + phone + CTA only fit on one line from 1200px up (measured
   with Fraunces and DM Sans loaded, not the fallback stack). */
@media (min-width: 1200px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .header__phone { display: inline-flex; }
  .menu-toggle { display: none; }
  .callbar { display: none; }
}

@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.02fr 1fr; }
  .grid-products { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--flip .feature__media { order: -1; }
  [data-reveal="left"]  { transform: translateX(-24px); }
  [data-reveal="right"] { transform: translateX(24px); }
  .demo { grid-template-columns: 1.15fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 8 / 3; }
  #contact-layout { grid-template-columns: 1.35fr 1fr; align-items: start; }
}

/* Keep content clear of the sticky mobile call bar */
@media (max-width: 1199px) {
  body { padding-bottom: 58px; }
  .footer__bottom { padding-bottom: var(--s-6); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .louvers { display: none; }
  .reveal-window::after { opacity: 1; }
  .hero__badge { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .demo__slats span { transition: none; }
}

/* ---------- Print ---------- */
@media print {
  .header, .callbar, .cta-band, .mobile-nav, .btn { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
