/* =========================================================================
   THE RUBBER STAMP SHOP, INC. — Design System
   Palette sampled from the scraped logo (black serif monogram + gold rule)
   and the source product photography (deep navy wall, warm wood, white paper).
   Vanilla CSS. Mobile-first. No frameworks.
   ========================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Ink family — from the logo monogram */
  --ink:         #101820;
  --ink-soft:    #1B2530;
  --ink-deep:    #0A0F16;

  /* Navy — from the product photography backdrop */
  --navy:        #17304B;
  --navy-deep:   #0E1F33;

  /* Gold — sampled from the logo rule */
  --gold:        #D99A2B;
  --gold-bright: #F0B44A;
  --gold-deep:   #A5711A;
  --gold-wash:   rgba(217, 154, 43, 0.12);

  /* Paper */
  --parchment:   #F7F2E9;
  --parchment-2: #EFE7D8;
  --paper:       #FFFFFF;

  /* Text */
  --text:        #17130F;
  --text-muted:  #665E52;
  --text-invert: #F7F2E9;

  /* Structure */
  --line:        #E4DACA;
  --line-strong: #CFC0A6;
  --line-dark:   rgba(247, 242, 233, 0.14);

  /* Signal */
  --success:     #1E7A54;
  --error:       #A93226;
  --oxblood:     #8E2A20;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "Courier Prime", "Courier New", ui-monospace, monospace;

  /* Multi-layer shadows — never a single flat blur */
  --shadow-sm:   0 1px 2px rgba(16, 24, 32, .06), 0 2px 6px -2px rgba(16, 24, 32, .08);
  --shadow-card: 0 1px 2px rgba(16, 24, 32, .06), 0 8px 20px -6px rgba(16, 24, 32, .10), 0 24px 48px -12px rgba(16, 24, 32, .14);
  --shadow-lift: 0 2px 4px rgba(16, 24, 32, .08), 0 18px 36px -8px rgba(16, 24, 32, .18), 0 44px 80px -20px rgba(16, 24, 32, .22);
  --shadow-gold: 0 1px 2px rgba(165, 113, 26, .18), 0 10px 24px -6px rgba(165, 113, 26, .28), 0 22px 48px -14px rgba(165, 113, 26, .30);
  /* Debossed — pressed into the paper */
  --emboss:      inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(16, 24, 32, .10), inset 0 2px 6px rgba(16, 24, 32, .08);
  --deboss:      inset 0 2px 4px rgba(16, 24, 32, .16), inset 0 -1px 0 rgba(255, 255, 255, .55);

  /* Shape */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Motion */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 150ms;
  --t-base: 240ms;
  --t-slow: 640ms;

  /* Z-index scale */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 20;
  --z-header: 30;
  --z-overlay: 40;
  --z-modal: 50;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 92px;
  --header-h-sm: 64px;
  --topbar-h: 40px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* NB: do NOT set overflow-x here — it breaks position:sticky on the header.
     Decorative overflow is clipped per-section instead. */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-sm) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Paper grain — a fixed, very low-opacity fibre texture over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background-color: var(--parchment-2); }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure, blockquote { margin: 0; }

::selection { background: var(--gold); color: var(--ink); }

/* Focus — visible everywhere, keyboard-first */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  padding: .75rem 1.5rem;
  background: var(--ink);
  color: var(--text-invert);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  transition: transform var(--t-base) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

.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;
}

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5.25rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.2vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.18; }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.28; letter-spacing: -.012em; }

p { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Eyebrow — Courier Prime, reads like type set on a stamp die */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex: none;
}
.eyebrow--light { color: var(--gold-bright); }
.eyebrow--center { justify-content: center; }

.ink-accent { color: var(--gold-deep); }
.serif-em { font-family: var(--font-display); font-style: italic; font-weight: 700; }

/* ---------- 4. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: var(--z-base);
}
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; overflow: hidden; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--ink { background: var(--ink); color: var(--text-invert); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--parchment); }
.section--navy { background: var(--navy-deep); color: var(--text-invert); }
.section--navy h2, .section--navy h3 { color: var(--parchment); }
.section--paper { background: var(--paper); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 5. THEME TEXTURES ---------- */

/* Perforated rubber-die edge — used as a section divider */
.die-edge {
  height: 14px;
  width: 100%;
  background-image: radial-gradient(circle at 8px 14px, transparent 6.5px, currentColor 7px);
  background-size: 16px 14px;
  background-repeat: repeat-x;
  color: var(--parchment);
}
.die-edge--top { transform: rotate(180deg); }
.die-edge--ink { color: var(--ink); }
.die-edge--navy { color: var(--navy-deep); }
.die-edge--paper { color: var(--paper); }

/* Halftone ink-dot field */
.halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 14px 14px;
  color: rgba(217, 154, 43, .35);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 68%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 68%);
}

/* Concentric notary-seal ring watermark */
.seal-watermark {
  position: absolute;
  width: clamp(320px, 46vw, 660px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: .07;
  border: 2px solid currentColor;
  color: var(--gold);
}
.seal-watermark::before,
.seal-watermark::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.seal-watermark::after { inset: 14%; border-style: dashed; }

/* The rotated "since 1963" approval stamp */
.stamp-badge {
  --size: clamp(104px, 12vw, 148px);
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  border: 3px double var(--oxblood);
  color: var(--oxblood);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .62rem;
  line-height: 1.35;
  transform: rotate(-13deg);
  opacity: .82;
  background: rgba(142, 42, 32, .05);
  /* ink-bleed: slightly uneven edge */
  filter: contrast(1.05);
}
.stamp-badge span { display: block; }
.stamp-badge .stamp-badge__big {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.01em;
  line-height: 1;
  margin-block: .18rem;
}

/* ---------- 6. BUTTONS — stamp-press interaction ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .9rem 1.8rem;
  border-radius: var(--r-pill);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -.005em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  border: 1.5px solid transparent;
  transition: background-color var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              transform 120ms var(--ease-out);
  will-change: auto;
}
.btn:active { transform: scale(.962); }
.btn.is-released { animation: stamp-release 420ms var(--ease-spring); }

@keyframes stamp-release {
  0%   { transform: scale(.962); }
  55%  { transform: scale(1.028); }
  100% { transform: scale(1); }
}

/* The ink impression left behind by a press */
.btn__ink {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: currentColor;
  opacity: .28;
  pointer-events: none;
  animation: ink-spread 620ms var(--ease-out) forwards;
}
@keyframes ink-spread {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { background: var(--gold-bright); box-shadow: var(--shadow-lift); }

.btn--ink {
  background: var(--ink);
  color: var(--parchment);
  box-shadow: var(--shadow-card);
}
.btn--ink:hover { background: var(--ink-soft); box-shadow: var(--shadow-lift); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--parchment); border-color: var(--ink); }

.btn--ghost-light {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(247, 242, 233, .35);
}
.btn--ghost-light:hover { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }

.btn--sm { min-height: 44px; padding: .6rem 1.25rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn[disabled], .btn[aria-busy="true"] { opacity: .62; pointer-events: none; }

/* Text link with a gold rule that grows */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); }
.link-underline svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease-out); }
.link-underline:hover svg { transform: translateX(4px); }
.link-underline--light { color: var(--parchment); }

/* ---------- 7. TOP UTILITY BAR ---------- */
.topbar {
  background: var(--ink-deep);
  color: rgba(247, 242, 233, .78);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  height: var(--topbar-h);
  overflow: hidden;
  transition: height var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--topbar-h);
}
.topbar__group { display: flex; align-items: center; gap: 1.5rem; }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease-out);
}
a.topbar__item:hover { color: var(--gold-bright); }
.topbar__item svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.topbar__social {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.topbar__social:hover { background: var(--gold); border-color: var(--gold); }
.topbar__social:hover svg { color: var(--ink); }
.topbar__social svg { width: 14px; height: 14px; color: var(--parchment); }

/* Mobile: marquee the contact strip */
.topbar__marquee { display: none; }
@media (max-width: 860px) {
  .topbar__group--desk { display: none; }
  .topbar__marquee {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    animation: marquee 26s linear infinite;
    white-space: nowrap;
  }
  .topbar__inner {
    justify-content: flex-start;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 8. HEADER — sticky, shrinking, glass on scroll ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--parchment);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height var(--t-base) var(--ease-out);
}

/* Brand slot — renders the SCRAPED logo file only. No text titles here. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  transform-origin: left center;
  transition: transform var(--t-base) var(--ease-out);
}
.brand img {
  /* Fluid: a fixed width here overflows the header at 320px. */
  width: clamp(166px, 42vw, 246px);
  height: auto;
  aspect-ratio: 319 / 85;
  object-fit: contain;
  background: none;
}

/* Scrolled state */
.site-header.is-scrolled {
  background: rgba(247, 242, 233, .95);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
          backdrop-filter: blur(18px) saturate(165%);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-card);
}
.site-header.is-scrolled .site-header__bar { height: var(--header-h-sm); }
.site-header.is-scrolled .brand { transform: scale(.8); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: var(--parchment); }
}

/* Topbar collapses away on scroll */
.topbar.is-hidden { height: 0; opacity: 0; }

/* Scroll progress rule */
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  z-index: 1;
}

/* Nav — ink fills from the bottom */
.nav { display: none; }
@media (min-width: 1280px) {
  .nav { display: flex; align-items: center; gap: .15rem; }
}
.nav__link {
  position: relative;
  white-space: nowrap;
  padding: .5rem .62rem;
  font-size: .9rem;
  font-weight: 550;
  color: var(--text);
  border-radius: var(--r-xs);
  isolation: isolate;
  transition: color var(--t-base) var(--ease-out);
}
.nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  border-radius: var(--r-xs);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--t-base) var(--ease-out);
}
.nav__link:hover::before, .nav__link:focus-visible::before { transform: scaleY(1); }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--gold-deep); font-weight: 700; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .62rem; right: .62rem; bottom: .1rem;
  height: 2px;
  background: var(--gold);
}

.header__actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.header__cta { display: none; }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }

/* Hamburger */
.hamburger {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong);
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.hamburger:hover { background: var(--ink); border-color: var(--ink); }
.hamburger:hover .hamburger__line { background: var(--parchment); }
@media (min-width: 1280px) { .hamburger { display: none; } }
.hamburger__box { width: 20px; height: 14px; position: relative; }
.hamburger__line {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.hamburger__line:nth-child(1) { top: 0; }
.hamburger__line:nth-child(2) { top: 6px; }
.hamburger__line:nth-child(3) { top: 12px; }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 9. MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(16, 24, 32, .92);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
          backdrop-filter: blur(22px) saturate(150%);
  padding: calc(var(--header-h-sm) + 2rem) var(--gutter) 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-menu { background: var(--ink); }
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-base) var(--ease-out), visibility 0s;
}
.mobile-menu__close {
  position: absolute;
  top: 1.25rem; right: var(--gutter);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--parchment);
}
.mobile-menu__close:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.mobile-menu__close svg { width: 22px; height: 22px; }
.mobile-menu__list { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 2rem; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--parchment);
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(14px);
}
.mobile-menu.is-open .mobile-menu__link {
  animation: menu-in 460ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 90ms);
}
@keyframes menu-in { to { opacity: 1; transform: translateY(0); } }
.mobile-menu__link svg { width: 18px; height: 18px; color: var(--gold); }
.mobile-menu__link[aria-current="page"] { color: var(--gold-bright); }
.mobile-menu__foot { display: grid; gap: .75rem; }
.mobile-menu__meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, .6);
}

body.is-locked { overflow: hidden; }

/* ---------- 10. HERO — layered parallax ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, var(--parchment) 0%, var(--parchment-2) 62%, #E7DCC7 100%);
  /* Chrome sitting above the hero at scroll 0: topbar + header + the header's
     1px bottom border. The mobile action bar overlays the foot of the screen,
     so its 60px + 1px border is subtracted too on small screens. */
  --hero-chrome: calc(var(--header-h) + var(--topbar-h) + 1px);
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--hero-chrome));
  min-height: calc(100svh - var(--hero-chrome));
  padding-block: clamp(1rem, 2.6vh, 3rem);
}
@media (max-width: 768px) {
  .hero { --hero-chrome: calc(var(--header-h) + var(--topbar-h) + 62px); }
}
.hero__layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.hero__layer--grid {
  background-image:
    linear-gradient(to right, rgba(16,24,32,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,24,32,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 5%, transparent 72%);
          mask-image: radial-gradient(ellipse at 30% 20%, #000 5%, transparent 72%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  gap: clamp(1.25rem, 3.2vh, 4rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}
@media (max-width: 999px) {
  /* Stacked layout: pin the hero to exactly one viewport and let the figure take
     only the row that is left over, so the copy always clears the fold. */
  .hero {
    height: calc(100vh - var(--hero-chrome));
    height: calc(100svh - var(--hero-chrome));
    min-height: 0;
    align-items: stretch;
    /* A grid item defaults to min-height:auto and refuses to shrink below its
       content, which would push the row past the hero's fixed height. */
    grid-template-rows: minmax(0, 1fr);
    padding-block: clamp(.65rem, 1.9vh, 2rem);
  }
  .hero__lead-more { display: none; }
  .hero__inner {
    height: 100%;
    min-height: 0;
    gap: clamp(.75rem, 2.2vh, 2rem);
    grid-template-rows: auto minmax(0, 1fr);
    align-content: center;
  }
  .hero .hero__figure {
    min-height: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .hero .hero__figure picture { flex: 1 1 auto; min-height: 0; }
  .hero .hero__figure img {
    height: 100%;
    width: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 58%;
    margin-inline: 0;
  }
  .hero__actions { flex-wrap: wrap; gap: .55rem; }
  .hero__actions .btn {
    flex: 1 1 auto;
    /* never shrink a pill below its own label */
    min-width: max-content;
    padding-inline: .9rem;
    font-size: .87rem;
    min-height: 48px;
    white-space: nowrap;
  }
  /* Keeping both CTAs on one row leaves the photograph a usable amount of
     height; the arrow is decoration and is the cheapest thing to drop. */
  .hero__actions .btn svg { display: none; }
  .hero__trust { gap: .45rem 1.25rem; }
  .hero__trust-item { font-size: .8rem; }
  .hero__stamp { right: -10px; bottom: 26px; }
  .stamp-badge { --size: clamp(76px, 10vh, 112px); }
}

/* Below the smallest real handset viewport, forcing one screen would clip the
   copy. Fall back to natural flow so the page simply scrolls instead. */
@media (max-width: 999px) and (max-height: 540px) {
  .hero { height: auto; min-height: 0; padding-block: 1.5rem; }
  .hero__inner { height: auto; grid-template-rows: auto; }
}

/* Short stacked viewports cannot carry the photograph as well. The stamp badge
   keeps the theme present; the same photo appears again further down the page. */
@media (max-width: 999px) and (max-height: 800px) {
  /* Must match the .hero-scoped specificity used in the stacked block above. */
  .hero .hero__figure { display: none; }
  .hero h1 { font-size: clamp(1.9rem, 7.6vw, 2.6rem); }
}

/* Very short handsets: tighten the remaining rhythm so the whole hero still
   resolves inside one viewport. Touch targets stay at 44px. */
@media (max-width: 999px) and (max-height: 700px) {
  .hero .eyebrow { font-size: .68rem; margin-bottom: .55rem; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero__actions .btn { font-size: .8rem; padding-inline: .72rem; min-height: 44px; }
  .hero__trust { padding-top: .7rem; gap: .32rem 1rem; }
  .hero__trust-item { font-size: .74rem; }
  .hero__trust-item svg { width: 16px; height: 16px; }
}

/* Narrow handsets. Declared after the short-viewport block so these win the
   cascade — both blocks match at e.g. 320x568. */
@media (max-width: 400px) {
  .hero__actions { gap: .4rem; }
  .hero__actions .btn {
    font-size: .76rem;
    padding-inline: .55rem;
    min-height: 44px;
    gap: .3rem;
  }
  .hero__trust { gap: .28rem .9rem; padding-top: .6rem; }
  .hero__trust-item { font-size: .7rem; gap: .45rem; }
  .hero .eyebrow { font-size: .64rem; letter-spacing: .14em; margin-bottom: .45rem; }
}
.hero h1 {
  font-size: clamp(2rem, min(6.2vw, 8.4vh), 5rem);
  margin-bottom: .34em;
}
.hero h1 .hero__line { display: block; overflow: hidden; }
.hero h1 .hero__word {
  display: inline-block;
  transform: translateY(102%);
  animation: word-rise 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 85ms + 120ms);
}
@keyframes word-rise { to { transform: translateY(0); } }

.hero__lead {
  max-width: 52ch;
  font-size: clamp(.95rem, min(1.35vw, 2.05vh), 1.22rem);
  margin-bottom: clamp(.9rem, 2.6vh, 2rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: clamp(.9rem, 2.8vh, 2.25rem); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.5rem, 1.4vh, 1.25rem) 2rem;
  padding-top: clamp(.85rem, 2.4vh, 1.75rem);
  border-top: 1px solid var(--line-strong);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: clamp(.78rem, 1.6vh, .88rem);
  font-weight: 550;
  color: var(--text-muted);
}
.hero__trust-item svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; }

/* Hero figure — paper card holding the real product photograph */
.hero__figure {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: clamp(8px, 1.2vh, 14px);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.4deg);
  will-change: transform;
}
.hero__figure picture { display: block; }
.hero__figure img {
  border-radius: var(--r-md);
  width: auto;
  max-width: 100%;
  /* Bound by the space the hero actually has, so the figure never pushes the
     hero past the fold. */
  max-height: calc(100svh - var(--hero-chrome) - 9.5rem);
  aspect-ratio: 300 / 322;
  object-fit: cover;
  margin-inline: auto;
}
.hero__figure figcaption {
  font-family: var(--font-mono);
  font-size: clamp(.6rem, 1.3vh, .68rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding-top: clamp(.5rem, 1.2vh, .9rem);
}
.hero__stamp {
  position: absolute;
  right: -26px;
  bottom: 58px;
  z-index: 3;
  background: var(--parchment);
  box-shadow: var(--shadow-card);
}

/* Floating props — long, desynchronised drifts */
.float {
  position: absolute;
  pointer-events: none;
  opacity: .5;
  color: var(--gold-deep);
  animation: drift var(--dur, 15s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(0, -26px, 0) rotate(9deg); }
}
.float--1 { top: 14%;  left: 4%;   --dur: 13s; --delay: 0s;   width: 54px; }
.float--2 { top: 62%;  left: 2%;   --dur: 17s; --delay: 1.4s; width: 40px; opacity: .34; }
.float--3 { top: 8%;   right: 8%;  --dur: 19s; --delay: .7s;  width: 46px; opacity: .3; }
.float--4 { bottom: 12%; right: 3%; --dur: 15s; --delay: 2.1s; width: 62px; opacity: .28; }
.float--5 { top: 40%;  left: 46%;  --dur: 21s; --delay: 1s;   width: 34px; opacity: .22; }
/* Below the two-column hero breakpoint the props would overlap the headline. */
@media (max-width: 999px) { .float { display: none; } }

/* ---------- 11. TRUST STRIP ---------- */
.trust-strip {
  background: var(--ink);
  color: var(--parchment);
  padding-block: 1.5rem;
  overflow: hidden;
}
.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, .82);
}
.trust-strip__item svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- 12. CARDS — 3D tilt + emboss ---------- */
.tilt-wrap { perspective: 1000px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
  will-change: transform;
}
.card:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); }

/* Specular sheen that tracks the cursor */
.card__sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 62%);
  transition: opacity var(--t-base) var(--ease-out);
}
.card:hover .card__sheen { opacity: 1; }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(150deg, var(--parchment-2), #E2D6BE);
  transform: translateZ(22px);
}
.card__media picture { display: block; width: 100%; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media svg { width: 100%; height: 100%; }

.card__body { padding: 1.5rem 1.5rem 1.65rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; transform: translateZ(34px); }
.card__title { margin: 0; font-size: 1.22rem; }
.card__text { font-size: .94rem; color: var(--text-muted); margin: 0; flex: 1; }
.card__foot {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: .35rem;
}
.card__foot svg { width: 15px; height: 15px; transition: transform var(--t-base) var(--ease-out); }
.card:hover .card__foot svg { transform: translateX(5px); }

.card__tag {
  position: absolute;
  top: .9rem; left: .9rem;
  z-index: 4;
  padding: .28rem .7rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  transform: translateZ(48px);
}

/* Feature card — embossed panel, no photo */
.feature {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--parchment);
  border: 1px solid var(--line);
  box-shadow: var(--emboss);
  height: 100%;
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--gold);
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.feature__icon svg { width: 25px; height: 25px; }
.feature h3 { font-size: 1.24rem; margin-bottom: .45rem; }
.feature p { font-size: .94rem; color: var(--text-muted); margin: 0; }
.feature--dark { background: var(--ink-soft); border-color: var(--line-dark); box-shadow: none; }
.feature--dark h3 { color: var(--parchment); }
.feature--dark p { color: rgba(247, 242, 233, .72); }
.feature--dark .feature__icon { background: var(--gold); color: var(--ink); }

/* ---------- 13. STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--ink);
  padding: clamp(1.6rem, 3vw, 2.4rem) 1.25rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -.03em;
  display: block;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, .68);
  margin-top: .7rem;
  display: block;
}

/* ---------- 14. PROCESS TIMELINE ---------- */
.process { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }
.process__step { position: relative; padding-top: 2.75rem; }
.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold-deep);
}
.process__step::after {
  content: "";
  position: absolute;
  top: .55rem; left: 3.2rem; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
@media (min-width: 900px) { .process__step:last-child::after { display: none; } }
.process__step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.process__step p { font-size: .93rem; color: var(--text-muted); margin: 0; }

/* ---------- 15. GOOGLE REVIEWS ---------- */
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.rating-summary { display: flex; align-items: center; gap: 1rem; }
.rating-summary__score {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; color: var(--gold); }
.rating-summary__meta { font-size: .86rem; color: var(--text-muted); }

/* Filter chips — glass */
.chips {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: thin;
  -ms-overflow-style: none;
}
.chip {
  flex: none;
  min-height: 44px;
  padding: .55rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--gold-bright); }

.review-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px)  { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.review:hover { box-shadow: var(--shadow-card); }
.review.is-filtered { display: none; }
.review.is-entering { animation: review-in 400ms var(--ease-out) both; }
@keyframes review-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.review__top { display: flex; align-items: center; gap: .8rem; }
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  flex: none;
}
.review__name { font-weight: 650; font-size: .96rem; line-height: 1.3; }
.review__date { font-size: .78rem; color: var(--text-muted); }
.review__text { font-size: .95rem; color: var(--text-muted); margin: 0; flex: 1; }
.review__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .6rem;
  border-top: 1px solid var(--line);
}
.review__source {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.review__source svg { width: 15px; height: 15px; }
.review__cat {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.review-empty {
  grid-column: 1 / -1;
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}

/* ---------- 16. FORM ---------- */
.form-panel {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(247, 242, 233, .18);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-lift);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .form-panel { background: rgba(23, 48, 75, .82); }
}
.form-panel--paper {
  background: var(--paper);
  border-color: var(--line);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
}

.field { position: relative; display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, .72);
}
.form-panel--paper .field label { color: var(--text-muted); }
.field label .req { color: var(--gold-bright); }
.form-panel--paper .field label .req { color: var(--oxblood); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  border-radius: var(--r-xs);
  border: 1.5px solid rgba(247, 242, 233, .2);
  background: rgba(10, 15, 22, .35);
  color: var(--parchment);
  font-size: 1rem;
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.form-panel--paper .field input,
.form-panel--paper .field select,
.form-panel--paper .field textarea {
  background: var(--parchment);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: var(--deboss);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input[type="file"] { padding: .55rem .75rem; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: .9rem;
  padding: .45rem 1rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out);
}
.field input[type="file"]::file-selector-button:hover { background: var(--gold-bright); }
.field input::placeholder, .field textarea::placeholder { color: rgba(247, 242, 233, .38); }
.form-panel--paper .field input::placeholder,
.form-panel--paper .field textarea::placeholder { color: #A79C88; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-wash);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--error);
}
.field__error {
  display: none;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: #F1948A;
}
.form-panel--paper .field__error { color: var(--error); }
.field__error svg { width: 14px; height: 14px; flex: none; }
.field.has-error .field__error { display: flex; }

/* Check-mark draw on a valid field */
.field.is-valid::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 38px;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg);
  transform-origin: left top;
  animation: check-draw 320ms var(--ease-out) both;
}
@keyframes check-draw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.field--checkbox { flex-direction: row; align-items: flex-start; gap: .7rem; }
.field--checkbox input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 3px; accent-color: var(--gold); }
.field--checkbox label {
  font-family: var(--font-body);
  font-size: .86rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  line-height: 1.5;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  margin-top: 1rem;
  font-size: .9rem;
  min-height: 1.4em;
  color: var(--gold-bright);
}
.form-panel--paper .form-status { color: var(--gold-deep); }

/* ---------- 17. CTA BAND ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--parchment);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}
.cta-band h2 { color: var(--parchment); max-width: 18ch; margin-inline: auto; }
.cta-band p { margin-inline: auto; color: rgba(247, 242, 233, .78); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 2rem; }
.cta-band__bg {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 18% 30%, rgba(217,154,43,.16), transparent 60%),
    radial-gradient(500px circle at 82% 70%, rgba(23,48,75,.55), transparent 62%);
  will-change: transform;
}

/* ---------- 18. FOOTER ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(247, 242, 233, .74);
  padding-top: clamp(3rem, 6vw, 5rem);
  position: relative;
}
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 780px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 3rem; } }

.footer__brand img {
  width: min(240px, 78%);
  height: auto;
  aspect-ratio: 220 / 59;
  object-fit: contain;
  background: none;
  margin-bottom: 1.25rem;
}
.footer__about { font-size: .92rem; line-height: 1.65; margin-bottom: 1.5rem; }

.footer__title {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}
.footer__list { display: flex; flex-direction: column; gap: .6rem; font-size: .93rem; }
.footer__list a { transition: color var(--t-fast) var(--ease-out), padding-left var(--t-fast) var(--ease-out); }
.footer__list a:hover { color: var(--gold-bright); padding-left: 5px; }

.footer__contact { display: flex; flex-direction: column; gap: .85rem; font-size: .93rem; }
.footer__contact-row { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact-row svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 3px; }
.footer__contact-row a:hover { color: var(--gold-bright); }

.footer__map {
  margin-top: 1.1rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  line-height: 0;
}
.footer__map iframe { width: 100%; height: 168px; border: 0; filter: grayscale(.35) contrast(1.05); }

.footer__socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.footer__social:hover { background: var(--gold); border-color: var(--gold); }
.footer__social:hover svg { color: var(--ink); }
.footer__social svg { width: 18px; height: 18px; color: var(--parchment); }

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}
.footer__credit a {
  color: var(--gold);
  font-weight: 600;
  position: relative;
}
.footer__credit a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.footer__credit a:hover::after { transform: scaleX(1); }

/* ---------- 19. STICKY MOBILE ACTION BAR ---------- */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .mobile-bar {
    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-dark);
    border-top: 1px solid var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 8px rgba(16,24,32,.10), 0 -12px 32px rgba(16,24,32,.18);
  }
  body { padding-bottom: 70px; }
}
.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 60px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mobile-bar__btn svg { width: 19px; height: 19px; flex: none; }
.mobile-bar__btn--call { background: var(--ink); color: var(--parchment); }
.mobile-bar__btn--call svg { color: var(--gold); }
.mobile-bar__btn--wa { background: #128C7E; color: #fff; position: relative; }
.mobile-bar__btn--wa::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  transform: translateX(-58px);
  animation: pulse-ring 2.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0%   { transform: translateX(-58px) scale(.6); opacity: .9; }
  70%  { transform: translateX(-58px) scale(1.5); opacity: 0; }
  100% { transform: translateX(-58px) scale(1.5); opacity: 0; }
}

/* ---------- 20. DEMO POPUP ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(10, 15, 22, .62);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms;
}
.popup.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms var(--ease-out), visibility 0s;
}
.popup__card:focus, .mobile-menu:focus, .lightbox:focus { outline: none; }

.popup__card {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--r-lg);
  background: rgba(247, 242, 233, .93);
  border: 1px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
          backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--shadow-lift);
  text-align: center;
  transform: scale(1.55) rotate(-6deg);
  opacity: 0;
  filter: blur(3px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .popup__card { background: var(--parchment); }
}
.popup.is-open .popup__card { animation: stamp-down 520ms var(--ease-spring) forwards; }
@keyframes stamp-down {
  0%   { transform: scale(1.55) rotate(-6deg); opacity: 0; filter: blur(3px); }
  60%  { transform: scale(.97) rotate(.6deg); opacity: 1; filter: blur(0); }
  100% { transform: scale(1) rotate(0); opacity: 1; filter: blur(0); }
}

.popup__seal {
  position: absolute;
  top: -22px; right: -14px;
  z-index: 2;
}
.popup__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.popup__close:hover { background: var(--ink); color: var(--parchment); }
.popup__close svg { width: 20px; height: 20px; }
.popup h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: .6rem; }
.popup p { margin-inline: auto; font-size: .98rem; color: var(--text-muted); }
.popup__meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-block: 1.4rem;
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  background: var(--gold-wash);
  border: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.popup__meta svg { width: 15px; height: 15px; }
.popup__actions { display: flex; flex-direction: column; gap: .7rem; margin-top: .5rem; }
.popup__later {
  font-size: .86rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
}
.popup__later:hover { color: var(--ink); }

/* ---------- 21. BREADCRUMB & PAGE HEAD ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--parchment);
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.page-head h1 { color: var(--parchment); font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: .3em; }
.page-head p { color: rgba(247, 242, 233, .76); max-width: 58ch; }
.page-head__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(247,242,233,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247,242,233,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse at 20% 50%, #000, transparent 70%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, .58);
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .5; }
.breadcrumb [aria-current="page"] { color: var(--gold); }

/* ---------- 22. PROSE / SPEC LIST / ACCORDION ---------- */
.prose h2 { margin-top: 2.25em; }
.prose h3 { margin-top: 1.75em; }
.prose ul { display: flex; flex-direction: column; gap: .6rem; margin: 0 0 1.5rem; }
.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-muted);
  max-width: 68ch;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.spec-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.spec-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out);
}
.accordion__trigger:hover { color: var(--gold-deep); }
.accordion__icon {
  position: relative;
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.accordion__icon::before { width: 10px; height: 1.5px; }
.accordion__icon::after  { width: 1.5px; height: 10px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon { background: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { opacity: 0; }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base) var(--ease-out);
}
.accordion__panel > div { overflow: hidden; }
.accordion__trigger[aria-expanded="true"] + .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel p { padding-bottom: 1.35rem; color: var(--text-muted); font-size: .96rem; }

/* ---------- 23. GALLERY + LIGHTBOX ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base) var(--ease-out);
}
.gallery__item:nth-child(4n+1) { aspect-ratio: 4 / 5; }
.gallery__item:hover { box-shadow: var(--shadow-lift); }
.gallery__item picture { display: block; width: 100%; height: 100%; }
.gallery__item img, .gallery__item svg { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem .9rem;
  background: linear-gradient(to top, rgba(10,15,22,.85), transparent);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: rgba(10, 15, 22, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-base) var(--ease-out), visibility 0s;
}
.lightbox__stage { max-width: min(1000px, 92vw); max-height: 82vh; }
.lightbox__stage img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: var(--r-sm); }
.lightbox__cap { text-align: center; color: rgba(247,242,233,.75); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding-top: 1rem; }
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--parchment);
  transition: background-color var(--t-fast) var(--ease-out);
}
.lightbox__btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; transform: none; }

/* ---------- 24. SPLIT / MEDIA BLOCK ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: repeat(2, 1fr); } }
.split--flip > *:first-child { order: 2; }
@media (max-width: 939px) { .split--flip > *:first-child { order: 0; } }

.media-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--paper);
}
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-frame--tall img { aspect-ratio: 3 / 4; }
.media-frame picture { display: block; }
/* Scraped photography is capped at 300px wide by the source server, so these
   frames use the image's natural ratio rather than cropping it further. */
.media-frame--natural img { aspect-ratio: auto; height: auto; }

.quote-block {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-left: 3px solid var(--gold);
  background: var(--parchment-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}
.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- 25. SCROLL REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Heading roll-on: ink applied left to right.
   Uses a mask, not clip-path — clip-path collapses the element's intersection
   box to zero width, which stops IntersectionObserver ever firing for it. */
[data-reveal="clip"] {
  transform: none;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 50%);
          mask-image: linear-gradient(90deg, #000 50%, transparent 50%);
  -webkit-mask-size: 200% 100%;
          mask-size: 200% 100%;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
  transition: -webkit-mask-position 900ms var(--ease-out), mask-position 900ms var(--ease-out);
}
[data-reveal="clip"].is-visible {
  -webkit-mask-position: 0 0;
          mask-position: 0 0;
}

/* ---------- 26. 404 ---------- */
.error-page { display: grid; place-items: center; text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 15rem);
  font-weight: 900;
  line-height: .82;
  color: var(--ink);
  letter-spacing: -.05em;
  opacity: .12;
}

/* ---------- 27. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  /* Everything must end up visible and usable */
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal="clip"] { -webkit-mask-image: none !important; mask-image: none !important; }
  .hero h1 .hero__word { transform: none !important; }
  .mobile-menu.is-open .mobile-menu__link { opacity: 1 !important; transform: none !important; }
  .popup.is-open .popup__card { transform: none !important; opacity: 1 !important; filter: none !important; }
  .float, .mobile-bar__btn--wa::before, .topbar__marquee { animation: none !important; }
  .hero__layer, .cta-band__bg { transform: none !important; }
  .card { transform: none !important; }
}

/* ---------- 28. PRINT ---------- */
@media print {
  .topbar, .site-header, .mobile-bar, .popup, .lightbox, .cta-band, .site-footer { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  body::before { display: none; }
}
