/* ============================================================
   NSX — DTC online store
   Palette: slate blue + deep navy + ice white, amber accent.
   Confident type, layered sections, real motion in interactions.
   ============================================================ */

/* Fonts are loaded via <link> tags in each page head (preconnect + css2)
   instead of @import — avoids a render-blocking request chain. */

:root {
  --bg: #FFFFFF;
  --bg-alt: #EFF4F8;
  --bg-deep: #E3EBF2;
  --surface: #FFFFFF;
  --ink: #0B1523;
  --ink-2: #263341;
  --ink-3: #5C6B7A;
  --ink-4: #8E9BA8;
  --line: #DCE5EC;
  --line-2: #C4D1DC;
  --accent: #2C5F8A;
  --accent-2: #3A729F;
  --accent-deep: #0C2D45;
  --accent-soft: #E2ECF5;
  --accent-bright: #5B8FBE;
  --warn: #B5651D;
  --danger: #B4231C;
  --gold: #D9822B;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --r: 10px;
  --r-lg: 16px;
  --serif: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --t: 200ms cubic-bezier(.2,.6,.2,1);
  --t-slow: 460ms cubic-bezier(.2,.6,.2,1);
  --sh-1: 0 1px 2px rgba(11,21,35,.04), 0 2px 6px rgba(11,21,35,.04);
  --sh-2: 0 4px 12px rgba(11,21,35,.06), 0 12px 32px rgba(11,21,35,.06);
  --sh-3: 0 12px 28px rgba(11,21,35,.08), 0 32px 64px rgba(11,21,35,.10);
  --sh-accent: 0 18px 42px rgba(44,95,138,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 500; }
h4 { font-size: 1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
p { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 60ch; line-height: 1.6; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '»';
  font-size: 1.25em;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  display: inline-block;
  transform: translateY(-1px);
}
.muted { color: var(--ink-3); }
em.serif-i { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 500; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: clamp(60px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dark { background: var(--ink); color: #E5E5E0; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p { color: #B5B5B0; }
.dark .eyebrow { color: #A3C6E6; }
.dark .eyebrow::before { background: #A3C6E6; }
.green { background: var(--accent); color: #fff; }
.green h1, .green h2, .green h3, .green h4 { color: #fff; }
.green p { color: #C8DBD0; }
.green .eyebrow { color: #C8DBD0; }
.green .eyebrow::before { background: #C8DBD0; }

/* ---------- Promo bar above header ---------- */
.promo {
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
.promo .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9px var(--pad);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.promo .inner > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.promo .dot { width: 4px; height: 4px; border-radius: 50%; background: #A3C6E6; }
.promo a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.promo a:hover { color: #C8DBD0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* Image-based brand logo. Transparent PNGs: navy wordmark on light surfaces,
   white variant (nsx-logo-white.png) on dark surfaces — no pill needed. */
.brand-img { padding: 0; line-height: 0; display: inline-block; transition: opacity var(--t); }
.brand-img img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}
.brand-img:hover { opacity: 0.85; }
.brand-img-footer { margin-bottom: 16px; display: inline-block; }
.brand-img-footer img { height: 42px; content: url('/assets/img/logo/nsx-logo-white.png'); }
[data-theme="dark"] .brand-img img { content: url('/assets/img/logo/nsx-logo-white.png'); }
@media (max-width: 720px) {
  .brand-img img { height: 36px; }
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}
.primary-nav {
  display: flex;
  gap: 30px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav > li { position: relative; }
.primary-nav > li > a,
.primary-nav > li > button {
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.primary-nav > li > a::after,
.primary-nav > li > button::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.primary-nav > li > a:hover::after,
.primary-nav > li > button:hover::after { transform: scaleX(1); }
.primary-nav > li > a:hover,
.primary-nav > li > button:hover { color: var(--accent); }
.primary-nav .caret { font-size: 0.55rem; opacity: 0.7; margin-top: 2px; }

.header-tools {
  display: flex;
  gap: 14px;
  align-items: center;
}
.icon-btn {
  background: none;
  border: 0;
  font-size: 0.9rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--r);
  font-weight: 500;
  transition: background var(--t);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 2px;
}

/* ---------- Mega menu ---------- */
.megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  min-width: 680px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 36px;
  box-shadow: var(--sh-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 60;
}
.primary-nav > li:hover .megamenu,
.primary-nav > li:focus-within .megamenu,
.primary-nav > li.open .megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.megamenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
}
.megamenu a:hover { color: var(--accent); }
.megamenu a::after { content: '→'; opacity: 0; transform: translateX(-4px); transition: all var(--t); color: var(--accent); }
.megamenu a:hover::after { opacity: 1; transform: translateX(0); }
.megamenu .mega-title {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.megamenu .all-link {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-weight: 600;
}

/* Wide Shop mega-menu — 6 category columns */
.megamenu.megamenu-wide {
  min-width: 980px;
  display: block;
  padding: 32px 36px;
}
.megamenu.megamenu-wide .mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
  margin-bottom: 18px;
}
.megamenu.megamenu-wide .mega-col .mega-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  transition: color var(--t);
}
.megamenu.megamenu-wide .mega-col .mega-col-head span {
  font-size: 0.8rem;
  opacity: 0;
  color: var(--accent);
  transition: opacity var(--t), transform var(--t);
  transform: translateX(-4px);
}
.megamenu.megamenu-wide .mega-col .mega-col-head:hover { color: var(--accent); }
.megamenu.megamenu-wide .mega-col .mega-col-head:hover span { opacity: 1; transform: translateX(0); }
.megamenu.megamenu-wide .mega-col ul { list-style: none; padding: 0; margin: 0; }
.megamenu.megamenu-wide .mega-col li { padding: 0; }
.megamenu.megamenu-wide .mega-col li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--ink-3);
  border: 0;
}
.megamenu.megamenu-wide .mega-col li a::after { content: ''; }
.megamenu.megamenu-wide .mega-col li a:hover { color: var(--accent); }
@media (max-width: 1100px) {
  .megamenu.megamenu-wide { min-width: 720px; }
  .megamenu.megamenu-wide .mega-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  /* Collapse the wide mega-menu by default on mobile — only show it when
     the parent <li> has the .open class (toggled by tapping "Shop ▾").
     Specificity has to match `.megamenu.megamenu-wide` so the `display:
     block` from the desktop rule doesn't override. */
  .megamenu.megamenu-wide {
    min-width: 0;
    padding: 4px 0 12px 12px;
    display: none;
  }
  .primary-nav > li.open .megamenu.megamenu-wide { display: block; }
  .megamenu.megamenu-wide .mega-grid { grid-template-columns: 1fr; gap: 14px; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: var(--r);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none;
  cursor: pointer;
}
.btn .arr { transition: transform var(--t); display: inline-block; }
.btn:hover .arr { transform: translateX(3px); }
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--sh-accent);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: var(--sh-accent); }
.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.84rem; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-alt); color: var(--ink); }
.btn-pill { border-radius: 999px; }

/* ---------- HERO (DTC) ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
  background: var(--bg);
  overflow: hidden;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  line-height: 1;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero .lead { font-size: 1.2rem; margin-bottom: 36px; max-width: 50ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-strip .pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
}
.hero-strip .pill .ic {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Hero visual: layered product card composition (no moving bg) */
.hero-stack {
  position: relative;
  aspect-ratio: 5/6;
  perspective: 1400px;
}
.hero-stack .card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  display: flex;
  flex-direction: column;
}
.hero-stack .card .ph {
  flex: 1;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}
.hero-stack .card .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-stack .card .info {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.hero-stack .card .info .b { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px; }
.hero-stack .card .info .n { font-size: 0.92rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.hero-stack .card .info .p { font-family: var(--serif); font-size: 1.05rem; color: var(--accent); }
.hero-stack .c1 { top: 0; left: 4%; width: 64%; transform: rotate(-4deg); z-index: 1; }
.hero-stack .c2 { top: 24%; right: 0; width: 60%; transform: rotate(3deg); z-index: 2; }
.hero-stack .c3 { bottom: 0; left: 12%; width: 62%; transform: rotate(-2deg); z-index: 3; }
.hero-stack:hover .c1 { transform: rotate(-6deg) translate(-8px, -4px); box-shadow: var(--sh-3); }
.hero-stack:hover .c2 { transform: rotate(5deg) translate(8px, -8px); box-shadow: var(--sh-3); }
.hero-stack:hover .c3 { transform: rotate(-1deg) translate(0, 4px); box-shadow: var(--sh-3); }

.hero-stack .badge {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--accent);
  color: #fff;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: center;
  z-index: 10;
  box-shadow: var(--sh-2);
  line-height: 1.1;
}
.hero-stack .badge strong { font-size: 1.05rem; display: block; }

/* ---------- Trust strip / logo marquee ---------- */
.trust-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.trust-strip .caption {
  text-align: center;
  color: var(--ink-3);
  font-size: 0.78rem;
  margin-bottom: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Contact hero with double marquee ---------- */
.contact-hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.contact-hero .grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.contact-hero .crumbs {
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  font-weight: 500;
}
.contact-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 14px;
}
.contact-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.contact-hero .meta {
  color: var(--ink-3);
  font-size: 0.95rem;
  margin: 22px 0 28px;
  line-height: 1.6;
}
.contact-hero .meta strong { color: var(--ink); display: block; font-weight: 600; }

.marquee-stack {
  display: grid;
  gap: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-row {
  overflow: hidden;
  position: relative;
}
.marquee-row .track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-h 38s linear infinite;
}
.marquee-row.reverse .track { animation-direction: reverse; }
.marquee-row:hover .track { animation-play-state: paused; }
@keyframes marquee-h { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-row .track { animation: none; } }

.marquee-card {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  display: block;
  text-decoration: none;
  color: inherit;
}
.marquee-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.marquee-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.marquee-card .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--ink);
}
.marquee-card .ph.green { background: var(--accent); }
.marquee-card .ph.cream { background: var(--bg-alt); color: var(--accent); }

/* Scramble CTA */
.btn-scramble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  min-width: 200px;
  text-decoration: none;
}
.btn-scramble:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--sh-accent); color: #fff; }
.btn-scramble .arr { transition: transform var(--t); display: inline-block; }
.btn-scramble:hover .arr { transform: translateX(4px); }

@media (max-width: 1100px) {
  .contact-hero .grid { grid-template-columns: 1fr; }
  .marquee-card { width: 160px; height: 160px; }
}
@media (max-width: 720px) {
  .marquee-card { width: 130px; height: 130px; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee-track > .logo {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  font-weight: 500;
  padding: 0 14px;
  opacity: 0.85;
  transition: opacity var(--t), color var(--t);
}
.marquee-track > .logo:hover { opacity: 1; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head .left { max-width: 56ch; }
.section-head h2 { margin-bottom: 10px; }
.section-head .desc { color: var(--ink-3); font-size: 1rem; margin: 0; }
.section-head .link { font-size: 0.9rem; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.section-head .link::after { content: '→'; transition: transform var(--t); }
.section-head .link:hover::after { transform: translateX(4px); }

/* ---------- Category tiles ---------- */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-tile {
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  isolation: isolate;
}
.cat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 30%, rgba(10,10,10,0.6) 100%);
  z-index: 2;
  opacity: 0.85;
  transition: opacity var(--t);
}
.cat-tile:hover::before { opacity: 1; }
.cat-tile .pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 40%),
    radial-gradient(circle at 70% 60%, var(--accent-soft), transparent 35%),
    var(--bg-alt);
  z-index: 1;
}

/* Image-backed category tile (uses a real photo behind the dark gradient) */
.cat-tile-img .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform var(--t-slow);
}
.cat-tile-img:hover .bg { transform: scale(1.05); }
.cat-tile-img::before {
  background: linear-gradient(180deg, rgba(10,10,10,0) 35%, rgba(10,10,10,0.7) 100%);
  opacity: 0.95;
}
.cat-tile-img:hover::before { opacity: 1; }
.cat-tile .pattern .mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: rgba(44,95,138,0.14);
  letter-spacing: -0.02em;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  line-height: 1;
  transition: transform var(--t-slow);
}
.cat-tile:hover .pattern .mark { transform: scale(1.06); }
.cat-tile .body {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.cat-tile .body .count {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: auto;
  backdrop-filter: blur(4px);
}
.cat-tile .body h3 {
  color: #fff;
  font-size: 1.7rem;
  margin: 8px 0 4px;
}
.cat-tile .body .sublist {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.86);
  margin-bottom: 14px;
}
.cat-tile .body .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}
.cat-tile .body .go::after { content: '→'; transition: transform var(--t); }
.cat-tile:hover .body .go::after { transform: translateX(4px); }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  cursor: pointer;
  transition: transform var(--t);
}
.product-card .imgwrap {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  transition: border-color var(--t), box-shadow var(--t-slow), transform var(--t-slow);
}
.product-card:hover .imgwrap {
  border-color: var(--line-2);
  box-shadow: var(--sh-2);
  transform: translateY(-4px);
}
.product-card .imgwrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .imgwrap img { transform: scale(1.04); }
.product-card .badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.product-card .badge {
  background: var(--ink);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  padding: 5px 9px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
}
.product-card .badge.sale { background: var(--accent); }
.product-card .badge.new { background: var(--gold); color: var(--ink); }
.product-card .quick {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 11px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--r);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), background var(--t);
}
.product-card:hover .quick { opacity: 1; transform: translateY(0); }
.product-card .quick:hover { background: var(--accent); }
.product-card .info { padding: 14px 4px 0; }
.product-card .brand-line {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 600;
}
.product-card h3 {
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--ink);
  min-height: 2.7em;
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.stars .s { color: var(--gold); letter-spacing: 0.06em; font-size: 0.86rem; }
.stars .s .o { color: var(--line-2); }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 600;
}
.price-was {
  font-size: 0.85rem;
  color: var(--ink-3);
  text-decoration: line-through;
}
.save-pct {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-2);
  border-color: var(--accent);
}
.step .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 600;
}
.step h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p { color: var(--ink-3); font-size: 0.92rem; margin: 0; }

/* ---------- Value strip ---------- */
.values-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
}
.values-strip .v {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background var(--t);
}
.values-strip .v:last-child { border-right: 0; }
.values-strip .v:hover { background: var(--bg-alt); }
.values-strip .v .ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.values-strip .v h4 { font-size: 0.85rem; margin-bottom: 4px; }
.values-strip .v p { font-size: 0.82rem; color: var(--ink-3); margin: 0; line-height: 1.45; }

/* ---------- Stats banner ---------- */
.stats {
  background: var(--accent);
  color: #fff;
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}
.stats .container { position: relative; z-index: 1; }
.stats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stats .grid .stat .n {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 500;
  display: block;
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
}
.stats .grid .stat .lbl {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  font-weight: 600;
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.quote {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  position: relative;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.quote::before {
  content: '"';
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--accent-soft);
  position: absolute;
  top: 12px; right: 24px;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.quote .body { font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; color: var(--ink); margin-bottom: 20px; position: relative; }
.quote .author { display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif); }
.quote .meta { font-size: 0.85rem; color: var(--ink-3); }
.quote .meta strong { color: var(--ink); display: block; }
.quote .stars-row { margin-bottom: 14px; color: var(--gold); letter-spacing: 0.1em; }

/* ---------- Compliance / "Why shop" grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature-grid .f {
  background: var(--bg);
  padding: 36px 32px;
  transition: background var(--t);
}
.feature-grid .f:hover { background: var(--bg-alt); }
.feature-grid .f .ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.feature-grid .f h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.feature-grid .f p { color: var(--ink-3); font-size: 0.92rem; margin: 0; }

/* ---------- Editorial deal split ---------- */
.deal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.deal-split .pane { padding: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.deal-split .pane.img {
  background: var(--accent);
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.deal-split .pane.img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, var(--accent-2), transparent 60%),
    radial-gradient(circle at 20% 80%, var(--accent-deep), transparent 50%);
}
.deal-split .pane.img .label {
  position: absolute;
  bottom: 32px; left: 32px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: rgba(255,255,255,0.18);
  letter-spacing: -0.02em;
  z-index: 1;
  font-style: italic;
  line-height: 1;
}
.deal-split h2 { color: #fff; }
.deal-split p { color: rgba(255,255,255,0.78); margin-bottom: 24px; }
.deal-split .eyebrow { color: var(--accent-bright); }
.deal-split .eyebrow::before { background: var(--accent-bright); }

/* ---------- Pages: shared header ---------- */
.page-head {
  background: var(--bg-alt);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-head .crumbs {
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 500;
}
.page-head .crumbs a:hover { color: var(--accent); }
.page-head h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 14px;
}
.page-head p { max-width: 60ch; color: var(--ink-2); margin: 0; }

/* ---------- Filter bar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 0.84rem;
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--t);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.sort select {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  border-radius: var(--r);
  cursor: pointer;
}

/* ---------- Product detail ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-top: 56px;
  padding-bottom: 80px;
}
.pdp-gallery .main {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  aspect-ratio: 1;
  overflow: hidden;
  transition: box-shadow var(--t-slow);
}
.pdp-gallery .main:hover { box-shadow: var(--sh-2); }
.pdp-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.pdp-gallery .thumbs .t {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: border-color var(--t), transform var(--t);
}
.pdp-gallery .thumbs .t:hover, .pdp-gallery .thumbs .t.active { border-color: var(--accent); transform: translateY(-2px); }
.pdp-info h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 12px;
  line-height: 1.1;
}
.pdp-info .brand-line {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}
.pdp-info .price-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 20px 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.pdp-info .price-block .now {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 600;
}
.pdp-info .price-block .was { color: var(--ink-3); text-decoration: line-through; font-size: 1rem; }
.pdp-info .stars { font-size: 0.9rem; margin-bottom: 4px; }
.pdp-info .desc { color: var(--ink-2); margin: 20px 0; line-height: 1.65; }
.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}
.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.bullets li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-top: 1px; }
.qty-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}
.qty {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.qty button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qty button {
  background: var(--bg);
  border: 0;
  width: 44px;
  font-size: 1.1rem;
  color: var(--ink);
  transition: background var(--t);
}
.qty button:hover { background: var(--bg-alt); }
.qty input {
  width: 64px;
  border: 0;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
}
.pdp-meta {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pdp-meta .m {
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pdp-meta .m .ic {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.pdp-meta .m strong { display: block; color: var(--ink); font-size: 0.82rem; }
.pdp-meta .m span { color: var(--ink-3); font-size: 0.78rem; }

/* PDP reviews block */
.reviews {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.reviews h2 { margin-bottom: 24px; }
.review {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.review .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 12px; }
.review .name { font-weight: 600; }
.review .date { font-size: 0.8rem; color: var(--ink-3); }
.review p { margin: 6px 0 0; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.4);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow), visibility var(--t-slow);
  backdrop-filter: blur(2px);
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: #fff;
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  box-shadow: -16px 0 40px rgba(0,0,0,0.1);
}
.drawer.open { transform: translateX(0); }
.drawer .head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer .head h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0; }
.drawer .head button { background: none; border: 0; font-size: 1.4rem; color: var(--ink-3); padding: 4px 8px; }
.drawer .head button:hover { color: var(--ink); }
.drawer .body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer .item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.drawer .item > * { min-width: 0; }
.drawer .item .name { overflow-wrap: anywhere; }
.drawer .item .p { white-space: nowrap; }
.drawer .item .img { width: 80px; height: 80px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.drawer .item .img img { width: 100%; height: 100%; object-fit: cover; }
.drawer .item .name { font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.drawer .item .brand-line { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 6px; }
.drawer .item .row { display: flex; justify-content: space-between; align-items: center; }
.drawer .item .qty-mini { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.drawer .item .qty-mini button { background: none; border: 0; width: 36px; height: 36px; font-size: 1rem; color: var(--ink-2); cursor: pointer; }
.drawer .item .qty-mini button:hover { background: var(--bg-alt); }
.drawer .item .qty-mini button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.drawer .item .qty-mini span { width: 30px; text-align: center; font-size: 0.85rem; font-weight: 600; }
.drawer .item .p { font-family: var(--serif); font-size: 1.05rem; }
.drawer .item .x { background: none; border: 0; color: var(--ink-3); font-size: 0.78rem; text-decoration: underline; padding: 0; }
.drawer .empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.drawer .foot {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  background: var(--bg-alt);
}
.drawer .foot .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; color: var(--ink-2); }
.drawer .foot .total { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
.drawer .foot .actions { display: grid; gap: 10px; margin-top: 14px; }
.drawer .freeship-bar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.drawer .freeship-bar .pb { width: 100%; height: 4px; background: var(--bg-deep); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.drawer .freeship-bar .pb > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width var(--t-slow); }

/* ---------- Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  padding: 64px 0 80px;
}
.cart-items { border-top: 1px solid var(--line); }
.cart-row {
  display: grid;
  grid-template-columns: 110px 1fr auto auto auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row .img { width: 110px; height: 110px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cart-row .img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .name { font-weight: 500; font-size: 1rem; margin-bottom: 4px; color: var(--ink); }
.cart-row .meta { font-size: 0.82rem; color: var(--ink-3); }
.cart-row .price { font-family: var(--serif); font-size: 1.15rem; }
.cart-row .remove { background: none; border: 0; font-size: 0.82rem; color: var(--ink-3); text-decoration: underline; padding: 4px 0; }
.cart-row .remove:hover { color: var(--danger); }
.cart-summary {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: sticky;
  top: 120px;
  align-self: start;
}
.cart-summary h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 22px; }
.cart-summary .line { display: flex; justify-content: space-between; padding: 9px 0; font-size: 0.95rem; color: var(--ink-2); }
.cart-summary .total { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.empty-state { text-align: center; padding: 100px 20px; color: var(--ink-3); }
.empty-state h2 { color: var(--ink); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; min-width: 0; }
.form-row { display: grid; gap: 6px; min-width: 0; }
.form-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form input, .form textarea, .form select { min-width: 0; width: 100%; box-sizing: border-box; }
.form label { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.form input, .form textarea, .form select {
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 13px 15px;
  color: var(--ink);
  border-radius: var(--r);
  transition: border-color var(--t), box-shadow var(--t);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--ink-3); }
.alert {
  padding: 14px 18px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  border-radius: var(--r);
}

/* ---------- About / editorial ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  margin: 28px 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.post-card { display: block; transition: transform var(--t-slow); }
.post-card:hover { transform: translateY(-4px); }
.post-card .thumb {
  aspect-ratio: 16/10;
  background: var(--accent);
  border-radius: var(--r-lg);
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: end;
  padding: 24px;
  color: rgba(255,255,255,0.9);
  font-family: var(--serif);
  font-size: 1.3rem;
}
.post-card .thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, var(--accent-2), transparent 60%),
    radial-gradient(circle at 20% 80%, var(--accent-deep), transparent 50%);
}
.post-card .thumb > span { position: relative; z-index: 1; }
.post-card .meta {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}
.post-card h3 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 8px; transition: color var(--t); }
.post-card:hover h3 { color: var(--accent); }
.post-card p { font-size: 0.92rem; color: var(--ink-2); margin: 0; }

.article { max-width: 720px; margin: 0 auto; padding: 56px 0 80px; }
.article .meta { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 700; }
.article h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 16px; line-height: 1.05; }
.article .lede { font-size: 1.25rem; color: var(--ink-2); margin-bottom: 36px; line-height: 1.5; }
.article h2 { font-size: 1.7rem; margin-top: 44px; margin-bottom: 14px; }
.article p { font-size: 1.05rem; line-height: 1.72; color: var(--ink-2); }
.article ul, .article ol { color: var(--ink-2); padding-left: 1.4em; line-height: 1.75; }
.article ul li, .article ol li { margin-bottom: 6px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.newsletter h2 { color: #fff; margin-bottom: 8px; }
.newsletter p { color: rgba(255,255,255,0.7); margin: 0; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid #333;
  background: #1A1A1A;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}
.newsletter input:focus { outline: 0; border-color: var(--accent-bright); }
.newsletter button {
  padding: 14px 24px;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  border: 0;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background var(--t);
}
.newsletter button:hover { background: var(--accent-2); }

/* ---------- Contact card (was inline-styled) ---------- */
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  transition: transform .35s, box-shadow .35s, border-color .15s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--accent);
}

/* ---------- Newsletter / subscribe success card ---------- */
/* When subscribe succeeds, forms.js wipes the input+button row and renders this card. */
form.form-success {
  display: block !important;
  width: 100%;
}
.newsletter-success {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 194, 168, 0.35);
  border-radius: 12px;
  padding: 20px 22px;
  color: #EFF4F8;
  animation: nsSuccessIn 360ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes nsSuccessIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.newsletter-success .ns-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.newsletter-success .ns-check {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #A3C6E6;
  color: #2C5F8A;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.newsletter-success .ns-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.4rem;
  line-height: 1.15;
  margin: 0 0 4px;
  color: #fff;
}
.newsletter-success .ns-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.newsletter-success .ns-sub strong { color: #fff; font-weight: 600; }
.newsletter-success .ns-code-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.newsletter-success .ns-code-block {
  flex: 1 1 220px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(148, 194, 168, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.newsletter-success .ns-code-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A3C6E6;
}
.newsletter-success .ns-code {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  margin-top: 4px;
  word-break: break-all;
  user-select: all;
}
.newsletter-success .ns-copy {
  flex: 0 0 auto;
  padding: 0 22px;
  min-height: 52px;
  border-radius: 8px;
  background: #A3C6E6;
  color: #2C5F8A;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--t, .15s), transform var(--t, .15s);
}
.newsletter-success .ns-copy:hover { background: #BFDCF2; transform: translateY(-1px); }
.newsletter-success .ns-copy:active { transform: translateY(0); }
.newsletter-success .ns-copy.copied { background: #2C5F8A; color: #BFDCF2; }
.newsletter-success .ns-fine {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

/* Light-surface variant — used when the parent newsletter band isn't dark
   (e.g. the home deal-split pane that's already on the dark green pane, or
   any future light-background newsletter placement). */
.deal-split .newsletter-success,
.section:not(.dark):not(.contact-hero) .newsletter-success {
  /* These contexts are also dark-toned (green pane, dark band), so the
     defaults still read correctly. No change needed for now — placeholder
     hook for future light placements. */
}

@media (max-width: 720px) {
  .newsletter-success { padding: 18px; }
  .newsletter-success .ns-title { font-size: 1.2rem; }
  .newsletter-success .ns-code { font-size: 1rem; }
  .newsletter-success .ns-copy { width: 100%; padding: 14px 22px; }
  .newsletter-success .ns-code-row { flex-direction: column; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A5A59F; padding: 80px 0 32px; }
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #232323;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: #A5A59F; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-block .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-block .brand small { color: #6E6E68; }
.site-footer .brand-block p { font-size: 0.9rem; color: #7E7E78; max-width: 36ch; }
.site-footer .footer-contact { margin-top: 14px; font-size: 0.92rem; }
.site-footer .footer-contact a { color: #BFDCF2; font-weight: 600; border-bottom: 1px solid rgba(191,234,209,0.55); padding-bottom: 1px; }
.site-footer .footer-contact a:hover { color: #fff; border-bottom-color: #fff; }
.site-footer .social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer .social a {
  width: 36px; height: 36px;
  border: 1px solid #2A2A28;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #A5A59F;
}
.site-footer .social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-footer .legal {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.78rem;
  color: #5E5E58;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .legal .pay {
  display: inline-flex; gap: 6px; align-items: center;
}
.site-footer .legal .pay span {
  background: #2A2A28;
  padding: 4px 10px;
  border-radius: 3px;
  color: #A5A59F;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r);
  font-size: 0.92rem;
  z-index: 200;
  transition: transform var(--t-slow);
  box-shadow: var(--sh-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast::before { content: '✓'; color: var(--accent-bright); font-weight: 700; }

/* ---------- Motion: scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(0.985); transition: opacity 850ms cubic-bezier(.16,.65,.2,1), transform 850ms cubic-bezier(.16,.65,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 700ms cubic-bezier(.16,.65,.2,1), transform 700ms cubic-bezier(.16,.65,.2,1); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 40ms; }
.stagger.in > *:nth-child(2) { transition-delay: 110ms; }
.stagger.in > *:nth-child(3) { transition-delay: 180ms; }
.stagger.in > *:nth-child(4) { transition-delay: 250ms; }
.stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.stagger.in > *:nth-child(6) { transition-delay: 390ms; }
.stagger.in > *:nth-child(7) { transition-delay: 460ms; }
.stagger.in > *:nth-child(8) { transition-delay: 530ms; }

/* ============================================================
   DARK THEME (toggled via [data-theme="dark"] on <html>)
   Brand color stays slate blue; everything else inverts.
   ============================================================ */
[data-theme="dark"] {
  --bg: #0A1119;
  --bg-alt: #101B26;
  --bg-deep: #16232F;
  --surface: #101B26;
  --ink: #EFF4F8;
  --ink-2: #C3CFDA;
  --ink-3: #8496A6;
  --ink-4: #566878;
  --line: #223243;
  --line-2: #2E4155;
  --accent: #5B8FBE;
  --accent-2: #7FA9D2;
  --accent-deep: #1B3D5C;
  --accent-soft: #142433;
  --accent-bright: #A3C6E6;
  --sh-1: 0 1px 2px rgba(0,0,0,.5);
  --sh-2: 0 6px 16px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.4);
  --sh-3: 0 18px 36px rgba(0,0,0,.5), 0 36px 72px rgba(0,0,0,.5);
  --sh-accent: 0 18px 42px rgba(91,143,190,.25);
}
[data-theme="dark"] body { color: var(--ink); background: var(--bg); }
[data-theme="dark"] .site-header { background: var(--bg); border-bottom-color: var(--line); }
[data-theme="dark"] .promo { background: var(--accent-deep); }
[data-theme="dark"] .product-card .imgwrap img,
[data-theme="dark"] .pdp-gallery .main img,
[data-theme="dark"] .cart-row .img img,
[data-theme="dark"] .drawer .item .img img,
[data-theme="dark"] .hero-stack .card .ph img { filter: brightness(0.92) contrast(1.05); }
[data-theme="dark"] .stats::before { opacity: 0.4; }
[data-theme="dark"] .post-card .thumb { background: var(--accent-deep); }

/* Sections that are intentionally dark in both themes (the design uses them as
   high-contrast bands against the page bg). var(--ink) flips light in dark mode,
   which would invert these into white-on-white. Pin them to a permanent dark. */
[data-theme="dark"] .newsletter,
[data-theme="dark"] .deal-split,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .stats,
[data-theme="dark"] .toast,
[data-theme="dark"] .dark,
[data-theme="dark"] .section.dark {
  background: #0A0A0A;
  color: #EFF4F8;
}
[data-theme="dark"] .newsletter h2,
[data-theme="dark"] .deal-split h2,
[data-theme="dark"] .section.dark h2,
[data-theme="dark"] .dark h1,
[data-theme="dark"] .dark h2,
[data-theme="dark"] .dark h3,
[data-theme="dark"] .dark h4 { color: #FFFFFF; }
[data-theme="dark"] .newsletter p,
[data-theme="dark"] .deal-split p,
[data-theme="dark"] .section.dark .desc { color: rgba(255,255,255,0.78); }
[data-theme="dark"] .deal-split .eyebrow,
[data-theme="dark"] .section.dark .eyebrow { color: #A3C6E6; }
[data-theme="dark"] .deal-split .eyebrow::before,
[data-theme="dark"] .section.dark .eyebrow::before { background: #A3C6E6; }
[data-theme="dark"] .newsletter input {
  background: #1A1A1A; color: #fff; border-color: #333;
}
[data-theme="dark"] .newsletter input::placeholder { color: rgba(255,255,255,0.45); }
[data-theme="dark"] .site-footer a { color: #A5A59F; }
[data-theme="dark"] .site-footer a:hover { color: #fff; }
[data-theme="dark"] .site-footer h4 { color: #fff; }
[data-theme="dark"] .stats .n { color: #fff; }
[data-theme="dark"] .stats .lbl { color: rgba(255,255,255,0.75); }
[data-theme="dark"] .btn-outline:hover { background: #0A0A0A; color: #fff; border-color: #0A0A0A; }
[data-theme="dark"] .btn-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Theme toggle (header) ---------- */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  transition: background var(--t), border-color var(--t);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.theme-toggle .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--t), background var(--t);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.theme-toggle .thumb svg { width: 12px; height: 12px; }
[data-theme="dark"] .theme-toggle .thumb { transform: translateX(28px); background: var(--accent-bright); color: var(--ink); }
.theme-toggle .icons { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 6px; color: var(--ink-3); font-size: 11px; pointer-events: none; }
.theme-toggle .icons svg { width: 12px; height: 12px; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item button {
  width: 100%;
  background: none;
  border: 0;
  padding: 22px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--t);
}
.faq-item button:hover { color: var(--accent); }
.faq-item .ic-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  transition: transform var(--t), background var(--t);
  flex-shrink: 0;
}
.faq-item.open .ic-toggle { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-item .answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 380ms cubic-bezier(.2,.6,.2,1);
}
.faq-item .answer-inner {
  padding-bottom: 22px;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 60ch;
}
.faq-item .answer-inner a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ============================================================
   TESTIMONIAL CAROUSEL (auto-rotating, single-card)
   ============================================================ */
.testimonial-carousel {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.testimonial-carousel .left { max-width: 460px; }
.testimonial-carousel .dots {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}
.testimonial-carousel .dots button {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: var(--line-2);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: width var(--t), background var(--t);
}
.testimonial-carousel .dots button.active { width: 36px; background: var(--accent); }
.testimonial-carousel .stage {
  position: relative;
  min-height: 360px;
  isolation: isolate;
}
.testimonial-carousel .stage::before,
.testimonial-carousel .stage::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--accent-soft);
  z-index: 0;
}
.testimonial-carousel .stage::before { top: -16px; right: -16px; }
.testimonial-carousel .stage::after { bottom: -16px; left: -16px; }
.testimonial-carousel .slide {
  position: absolute;
  inset: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-2);
  opacity: 0;
  transform: translateX(40px) scale(0.96);
  transition: opacity 500ms cubic-bezier(.2,.6,.2,1), transform 500ms cubic-bezier(.2,.6,.2,1);
  pointer-events: none;
  z-index: 1;
}
.testimonial-carousel .slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}
.testimonial-carousel .slide .quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--accent-soft);
  margin-bottom: 12px;
}
.testimonial-carousel .slide .body {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 28px;
  flex: 1;
}
.testimonial-carousel .slide .stars-row { color: var(--gold); letter-spacing: 0.1em; margin-bottom: 16px; font-size: 1rem; }
.testimonial-carousel .slide .author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial-carousel .slide .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--serif);
}
.testimonial-carousel .slide .meta { font-size: 0.9rem; color: var(--ink-3); }
.testimonial-carousel .slide .meta strong { color: var(--ink); display: block; font-size: 1rem; }

/* ============================================================
   BENTO GALLERY ("real customers" tiles + modal)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.bento .tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: pointer;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  isolation: isolate;
}
.bento .tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.bento .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.bento .tile:hover img { transform: scale(1.05); }
.bento .tile .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,0.78));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t);
}
.bento .tile:hover .cap { opacity: 1; transform: translateY(0); }
.bento .tile .cap h4 { color: #fff; font-family: var(--sans); font-size: 0.86rem; margin-bottom: 2px; letter-spacing: 0; font-weight: 600; text-transform: none; }
.bento .tile .cap p { color: rgba(255,255,255,.78); font-size: 0.76rem; margin: 0; }
.bento .tile .tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(10,10,10,0.7);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  font-weight: 600;
  z-index: 2;
}
.bento .s1 { grid-column: span 2; grid-row: span 2; }
.bento .s2 { grid-column: span 1; grid-row: span 2; }
.bento .s3 { grid-column: span 1; grid-row: span 1; }
.bento .s4 { grid-column: span 2; grid-row: span 1; }

/* Bento modal */
.bento-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow), visibility var(--t-slow);
  padding: 20px;
}
.bento-modal.open { opacity: 1; visibility: visible; }
.bento-modal .panel {
  background: var(--bg);
  border-radius: var(--r-lg);
  width: min(720px, 100%);
  overflow: hidden;
  transform: scale(.96);
  transition: transform var(--t-slow);
  position: relative;
}
.bento-modal.open .panel { transform: scale(1); }
.bento-modal .panel img { width: 100%; height: 480px; object-fit: cover; background: var(--bg-alt); }
.bento-modal .panel .body { padding: 24px 28px; }
.bento-modal .panel h3 { margin-bottom: 6px; }
.bento-modal .panel p { color: var(--ink-3); margin: 0; }
.bento-modal .close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(10,10,10,0.6);
  color: #fff;
  border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

/* ============================================================
   TEAM GRID
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.team-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(10,10,10,0.02);
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--accent);
}
.team-card .avatar {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.team-card .name { font-size: 0.96rem; font-weight: 600; color: var(--ink); }
.team-card .role { font-size: 0.84rem; color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   COVERAGE MAP (SVG-based, no MapLibre dependency)
   ============================================================ */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 56px);
  box-shadow: var(--sh-1);
}
.coverage .map-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg-deep));
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.coverage svg.us-map { width: 100%; height: 100%; display: block; }
.coverage svg.us-map path.state { fill: var(--bg-deep); stroke: var(--line-2); stroke-width: 1; transition: fill var(--t); }
.coverage svg.us-map path.state.served { fill: var(--accent-soft); stroke: var(--accent); }
.coverage svg.us-map path.state:hover { fill: var(--accent); }
.coverage .pin {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(44,95,138,0.4);
  z-index: 2;
}
.coverage .pin::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pinPulse 2.4s ease-out infinite;
  opacity: 0;
}
@keyframes pinPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}
.coverage .pin .pin-label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.coverage .pin:hover .pin-label { opacity: 1; }
.coverage .legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.coverage .legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.coverage .legend .dot.area { background: var(--accent-soft); border: 1px solid var(--accent); }

/* ============================================================
   3D mouse-tilt on cards
   ============================================================ */
.tilt {
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(.2,.6,.2,1);
  will-change: transform;
}
.tilt-child { transform: translateZ(20px); transition: transform var(--t-slow); }
@media (prefers-reduced-motion: reduce) { .tilt, .tilt-child { transform: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .faq { grid-template-columns: 1fr; }
  .testimonial-carousel { grid-template-columns: 1fr; gap: 32px; }
  .testimonial-carousel .stage { min-height: 380px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 140px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero .grid { grid-template-columns: 1fr; }
  .hero-stack { max-width: 480px; margin: 0 auto; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values-strip { grid-template-columns: repeat(2, 1fr); }
  .values-strip .v:nth-child(2) { border-right: 0; }
  .values-strip .v:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .quotes { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer .brand-block { grid-column: 1 / -1; }
  .deal-split { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  /* On phones, stack the email input and Subscribe button vertically so
     neither gets clipped against the right edge. */
  .newsletter form { flex-direction: column; align-items: stretch; }
  .newsletter form input { width: 100%; min-width: 0; }
  .newsletter form button { width: 100%; padding: 14px; }
  .hero-strip { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .bento .s1 { grid-column: span 2; grid-row: span 2; }
  .bento .s4 { grid-column: span 2; }
  .testimonial-carousel .slide { padding: 28px 24px; }
  .testimonial-carousel .slide .body { font-size: 1.15rem; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px var(--pad);
    gap: 4px;
    align-items: stretch;
  }
  .primary-nav.open { display: flex; }
  .primary-nav > li { width: 100%; }
  .primary-nav > li > a, .primary-nav > li > button { width: 100%; padding: 10px 0; justify-content: space-between; }
  .megamenu {
    position: static;
    transform: none;
    min-width: 0;
    border: 0;
    padding: 4px 0 12px 12px;
    box-shadow: none;
    grid-template-columns: 1fr;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .primary-nav > li.open .megamenu { display: grid; }
  /* Cancel the desktop hover/open translateX(-50%) on mobile — it shifts
     the menu off the left edge when expanded. */
  .primary-nav > li:hover .megamenu,
  .primary-nav > li:focus-within .megamenu,
  .primary-nav > li.open .megamenu { transform: none; }
  .nav-toggle { display: inline-block; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .product-grid > * { min-width: 0; }

  /* HOME PAGE — stack product cards one per row at full width so every
     listing is fully visible without swiping. Visitors scroll the page
     vertically; nothing is cut off. */
  .home-page .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-page .product-grid > * {
    width: 100%;
    min-width: 0;
  }
  .cat-tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .values-strip { grid-template-columns: 1fr; }
  .values-strip .v { border-right: 0; border-bottom: 1px solid var(--line); }
  .values-strip .v:last-child { border-bottom: 0; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .pdp-meta { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 70px 1fr; gap: 14px; }
  .cart-row .img { width: 70px; height: 70px; }
  .cart-row .price, .cart-row .qty, .cart-row .remove { grid-column: 2; }
  .promo .inner > span:not(:first-child) { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  /* Hide the decorative product-card stack on phones — it's pure desktop
     ornamentation, and at this width it collapsed into an empty box with
     just a floating "30% OFF" badge hanging in mid-page. */
  .hero-stack { display: none; }
}

/* ---------- YouTube Shorts carousel ---------- */
.shorts-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 8px 0;
  opacity: 1 !important; /* defeat any .reveal opacity:0 inherited from parent */
  transform: none !important;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.shorts-track {
  display: inline-flex;
  gap: 18px;
  width: max-content;
  white-space: nowrap;
  animation: shortsScroll 36s linear infinite;
  will-change: transform;
}
.shorts-marquee:hover .shorts-track,
.shorts-track.paused { animation-play-state: paused; }
@keyframes shortsScroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  /* Honor reduce-motion but keep the slideshow swipeable instead of static. */
  .shorts-marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .shorts-marquee::-webkit-scrollbar { height: 6px; }
  .shorts-marquee::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
  .shorts-track { animation: none; }
  .shorts-card { scroll-snap-align: start; }
}
.shorts-card {
  position: relative;
  flex: 0 0 auto;
  width: 252px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0A0A0A;
  cursor: pointer;
  box-shadow: var(--sh-2);
  transition: transform var(--t), box-shadow var(--t);
}
.shorts-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.shorts-card.playing { cursor: default; transform: none; }
.shorts-card .thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.shorts-card iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
}
.shorts-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--t);
}
.shorts-card.playing::after { opacity: 0; }
.shorts-card .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 58, 45, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform var(--t), background var(--t);
  z-index: 2;
}
.shorts-card .play:hover,
.shorts-card:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); }
.shorts-card .play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.shorts-card .play svg { width: 28px; height: 28px; margin-left: 3px; }
.shorts-card.playing .play { display: none; }

@media (max-width: 720px) {
  .shorts-card { width: 200px; border-radius: 14px; }
  .shorts-card .play { width: 52px; height: 52px; }
  .shorts-card .play svg { width: 22px; height: 22px; }
  .shorts-track { gap: 12px; animation-duration: 28s; }
}

/* =========================================================================
   CHECKOUT — editorial minimal with confidence-green accent
   Applied via ui-ux-pro-max skill: pattern "Editorial Grid / Magazine"
   + reasoning rule (E-commerce + if_checkout → emphasize-trust).
   ========================================================================= */
.checkout-page { background: var(--bg); }

/* Stepper: Bag → Checkout → Confirmation */
.ck-stepper { padding: 22px 0 8px; border-bottom: 1px solid var(--line); background: var(--bg); }
.ck-stepper ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.ck-stepper li { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); font-weight: 700; }
.ck-stepper li + li::before {
  content: ''; width: 28px; height: 1px; background: var(--line); display: inline-block; margin-right: -10px;
}
.ck-stepper li .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--ink-4, var(--line));
}
.ck-stepper li.done { color: var(--accent); }
.ck-stepper li.done .dot { background: var(--accent); border-color: var(--accent); }
.ck-stepper li.active { color: var(--ink); }
.ck-stepper li.active .dot { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(44,95,138,0.12); }
.ck-stepper li a { color: inherit; text-decoration: none; }
.ck-stepper li a:hover { color: var(--accent); }

/* COD hero band */
.ck-hero { padding: 56px 0 40px; }
.ck-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.ck-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1; letter-spacing: -0.02em;
  margin: 14px 0 18px;
  color: var(--ink);
}
.ck-hero h1 em { color: var(--accent); font-style: italic; }
.ck-hero .lead {
  font-size: 1.05rem; line-height: 1.7; color: var(--ink-2);
  max-width: 56ch; margin: 0;
}
.ck-hero-promises {
  list-style: none; padding: 28px; margin: 0;
  display: grid; gap: 18px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px;
}
.ck-hero-promises li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  align-items: start; font-size: 0.94rem; line-height: 1.5; color: var(--ink-2);
}
.ck-hero-promises li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.ck-hero-promises li strong { display: block; color: var(--ink); margin-bottom: 2px; font-weight: 600; }

/* Layout grid */
.ck-section { padding: 24px 0 96px; }
.ck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
}

/* Form */
.ck-form-col { min-width: 0; }
.ck-form { display: grid; gap: 36px; }
.ck-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px clamp(20px, 3vw, 32px);
  background: var(--bg);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.ck-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(44,95,138,0.08); }
.ck-group legend {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0; margin-bottom: 22px; width: 100%;
}
.ck-group .ck-step { color: var(--accent); }
.ck-group legend h2 {
  font-family: var(--serif); font-size: 1.5rem;
  letter-spacing: -0.01em; line-height: 1.2; margin: 0; color: var(--ink);
}

.ck-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ck-grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.ck-form .ck-grid-2 + .ck-grid-2,
.ck-form .ck-field + .ck-field,
.ck-form .ck-field + .ck-grid-2,
.ck-form .ck-field + .ck-grid-3,
.ck-form .ck-grid-2 + .ck-field,
.ck-form .ck-grid-3 + .ck-field { margin-top: 14px; }

.ck-field { display: flex; flex-direction: column; gap: 6px; }
.ck-field > span {
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 600;
}
.ck-field > span small { font-size: 0.7rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0.04em; text-transform: none; margin-left: 4px; }
.ck-field input,
.ck-field select,
.ck-field textarea {
  width: 100%; min-height: 48px;
  padding: 12px 14px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.ck-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.ck-field input:hover, .ck-field select:hover, .ck-field textarea:hover { border-color: var(--ink-3); }
.ck-field input:focus, .ck-field select:focus, .ck-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(44,95,138,0.12);
  background: var(--bg);
}
.ck-field input:invalid:not(:placeholder-shown) { border-color: #C45A4F; }

/* Final CTA */
.ck-final { margin-top: 8px; }
.ck-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; width: 100%;
  padding: 18px 28px;
  font: 600 1.02rem/1 var(--sans);
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--accent);
  border: 0; border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(44,95,138,0.18);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.ck-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(44,95,138,0.28); background: var(--accent-2, var(--accent)); }
.ck-cta:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(44,95,138,0.18); }
.ck-cta:focus-visible { outline: 3px solid var(--accent-bright, #A3C6E6); outline-offset: 3px; }
.ck-cta[disabled] { opacity: 0.7; cursor: not-allowed; transform: none; }
.ck-cta svg { width: 18px; height: 18px; transition: transform 200ms ease; }
.ck-cta:hover svg { transform: translateX(3px); }
.ck-cta-inline { width: auto; padding: 14px 22px; font-size: 0.95rem; }
.ck-fineprint { text-align: center; margin: 14px 0 0; font-size: 0.82rem; color: var(--ink-3); line-height: 1.5; }
.ck-fineprint a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* Sidebar */
.ck-side { display: grid; gap: 18px; position: sticky; top: 96px; min-width: 0; }
.ck-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.ck-card-title {
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.25;
  margin: 6px 0 16px; color: var(--ink);
}

/* Summary */
.ck-summary-card { background: var(--bg-alt); }
.ck-summary .ck-lines { display: grid; gap: 0; margin-bottom: 16px; }
.ck-line {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.ck-line:last-child { border-bottom: 0; }
.ck-line-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ck-line-brand { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.ck-line-name { font-size: 0.94rem; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.ck-line-meta { font-size: 0.8rem; color: var(--ink-3); }
.ck-line-sub { font-size: 0.95rem; color: var(--ink); }

.ck-freeship {
  margin: 8px 0 14px; padding: 10px 12px; border-radius: 8px;
  background: var(--bg); border: 1px dashed var(--line);
  font-size: 0.85rem; color: var(--ink-2);
}
.ck-freeship-ok { background: var(--accent-soft, rgba(44,95,138,0.08)); border-style: solid; border-color: var(--accent); color: var(--accent); font-weight: 600; }

.ck-totals { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.ck-totals > div { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; color: var(--ink-2); }
.ck-totals dt, .ck-totals dd { margin: 0; }
.ck-totals dd { color: var(--ink); font-weight: 600; }
.ck-totals .ck-save { color: var(--accent); }
.ck-totals .ck-total-row {
  margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 1rem;
}
.ck-totals .ck-total-row dt { color: var(--ink); font-weight: 600; }
.ck-totals .ck-total-row dd { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.ck-pay-note { margin: 14px 0 0; font-size: 0.78rem; color: var(--ink-3); text-align: center; line-height: 1.5; }

/* Timeline */
.ck-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ck-timeline li {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  font-size: 0.88rem; line-height: 1.45; color: var(--ink-2);
}
.ck-timeline .t-num {
  font-family: var(--serif); font-size: 0.95rem; font-weight: 600;
  color: var(--accent); padding-top: 1px;
}
.ck-timeline strong { display: block; color: var(--ink); margin-bottom: 2px; font-weight: 600; }

/* Trust */
.ck-trust-card { padding: 18px 24px; }
.ck-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ck-trust li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; font-size: 0.88rem; color: var(--ink-2); }
.ck-trust li svg { width: 20px; height: 20px; color: var(--accent); }

/* Empty state */
.ck-empty {
  grid-column: 1 / -1; max-width: 560px; margin: 24px auto;
  text-align: center; padding: 48px 24px;
}
.ck-empty h2 { font-family: var(--serif); font-size: 2rem; margin: 10px 0 12px; }
.ck-empty p { color: var(--ink-2); }

/* Success */
.ck-success {
  grid-column: 1 / -1; max-width: 760px; margin: 8px auto;
  text-align: center;
}
.ck-success-badge {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--accent); color: #fff;
  margin: 0 auto 22px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(44,95,138,0.32);
  animation: ck-pop 420ms cubic-bezier(.2,.7,.2,1) both;
}
.ck-success-badge svg { width: 44px; height: 44px; }
.ck-success h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 8px 0 14px; }
.ck-success h2 em { color: var(--accent); font-style: italic; }
.ck-success-lead { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; max-width: 560px; margin: 0 auto 28px; }
.ck-success-card {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin: 0 auto 28px; max-width: 620px; text-align: left;
}
.ck-success-card > div { display: flex; flex-direction: column; gap: 4px; }
.ck-success-card strong { font-size: 0.95rem; color: var(--ink); font-weight: 600; word-break: break-all; }
.ck-success-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.ck-link { color: var(--ink-2); font-size: 0.94rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 150ms ease, border-color 150ms ease; }
.ck-link:hover { color: var(--accent); border-color: var(--accent); }
@keyframes ck-pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }

/* Dark-mode trust card lifts */
[data-theme="dark"] .ck-card { background: var(--bg-alt); }
[data-theme="dark"] .ck-summary-card { background: var(--bg-deep, #1C1C1C); }
[data-theme="dark"] .ck-group { background: var(--bg); }
[data-theme="dark"] .ck-field input,
[data-theme="dark"] .ck-field select,
[data-theme="dark"] .ck-field textarea { background: var(--bg-alt); }
[data-theme="dark"] .ck-stepper li.active .dot { box-shadow: 0 0 0 4px rgba(245,245,242,0.08); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ck-cta, .ck-cta:hover, .ck-cta svg, .ck-success-badge { transition: none !important; transform: none !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .ck-hero { padding: 40px 0 28px; }
  .ck-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .ck-layout { grid-template-columns: 1fr; gap: 40px; }
  .ck-side { position: static; top: auto; order: -1; }
  .ck-success-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ck-stepper ol { gap: 14px; font-size: 0.7rem; }
  .ck-stepper li + li::before { width: 16px; }
  .ck-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .ck-grid-2, .ck-grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .ck-group { padding: 22px 18px; }
  .ck-group legend h2 { font-size: 1.25rem; }
  .ck-cta { padding: 16px 22px; font-size: 0.98rem; }
  .ck-success-card { grid-template-columns: 1fr; text-align: center; }
}

/* =========================================================================
   ABOUT — Editorial Grid / Magazine + Trust & Authority + Minimalism
   Applied via ui-ux-pro-max skill: large editorial layout with numbered
   chapters, drop-cap prose column (max 65ch), at-a-glance facts panel,
   pull-quote, signed founder letter on dark band.
   ========================================================================= */
.about-page { background: var(--bg); }

/* HERO — masthead */
.ab-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.ab-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}
.ab-hero-text .crumbs {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 22px;
}
.ab-hero-text .crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.ab-hero-text .crumbs a:hover { color: var(--accent); border-color: var(--accent); }
.ab-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 16px 0 24px; color: var(--ink);
}
.ab-hero h1 em { color: var(--accent); font-style: italic; }
.ab-hero .lead {
  font-size: 1.15rem; line-height: 1.6;
  color: var(--ink-2); max-width: 56ch; margin: 0;
}

/* AT-A-GLANCE facts panel */
.ab-facts {
  padding: 24px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ab-facts > .eyebrow { display: inline-flex; margin-bottom: 16px; }
.ab-facts dl { display: grid; gap: 12px; margin: 0; padding: 0; }
.ab-facts dl > div {
  display: grid; grid-template-columns: 130px 1fr; gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ab-facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ab-facts dt {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; margin: 0;
}
.ab-facts dd { margin: 0; color: var(--ink); font-size: 0.95rem; font-weight: 500; }

/* CHAPTERS — numbered editorial sections */
.ab-chapter { padding: 80px 0; }
.ab-chapter + .ab-chapter { padding-top: 0; }
.ab-chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: 64px;
  align-items: start;
}
.ab-chapter-head { position: sticky; top: 96px; }
.ab-ch-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.95rem; font-style: italic;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.ab-chapter-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 0; color: var(--ink);
}
.ab-chapter-head h2 em { color: var(--accent); font-style: italic; }

/* PROSE column — max 65ch with drop-cap on first paragraph */
.ab-prose {
  max-width: 65ch;
  color: var(--ink-2);
  font-size: 1.05rem; line-height: 1.72;
}
.ab-prose p + p { margin-top: 18px; }
.ab-prose a { color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.ab-prose .ab-dropcap::first-letter {
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 0.86;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--accent);
  font-weight: 600;
}

/* PULL QUOTE — editorial accent between chapters */
.ab-pullquote { padding: 24px 0 56px; }
.ab-pullquote blockquote {
  max-width: 880px; margin: 0 auto;
  padding: 0;
  border: 0;
  text-align: center;
}
.ab-pullquote blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  position: relative;
}
.ab-pullquote blockquote p::before,
.ab-pullquote blockquote p::after {
  content: '';
  display: block;
  width: 48px; height: 2px;
  background: var(--accent);
  margin: 0 auto 24px;
}
.ab-pullquote blockquote p::after { margin: 24px auto 0; }

/* STATS — inline, no big black band */
.ab-stats { padding: 40px 0 80px; border-top: 1px solid var(--line); }
.ab-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.ab-stat {
  text-align: left;
  padding: 8px 0;
}
.ab-stat .n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1; color: var(--ink);
  letter-spacing: -0.02em;
}
.ab-stat .lbl {
  display: block;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  margin-top: 10px;
}

/* OPERATIONS — three numbered cards */
.ab-ops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ab-op {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}
.ab-op-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 14px;
}
.ab-op h3 {
  font-family: var(--serif);
  font-size: 1.3rem; margin: 0 0 8px;
  color: var(--ink);
}
.ab-op p { font-size: 0.94rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
.ab-op a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* FOUNDER LETTER — dark band, magazine-style */
.ab-letter {
  background: #0A0A0A;
  color: #EFF4F8;
  padding: 96px 0;
}
.ab-letter-inner {
  max-width: 760px;
  margin: 0 auto;
}
.ab-letter-inner > .eyebrow { color: #A3C6E6; }
.ab-letter-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 14px 0 32px; color: #fff;
}
.ab-letter-body p {
  font-size: 1.06rem; line-height: 1.75;
  color: #D5D5D0;
  margin: 0 0 20px;
}
.ab-letter-body p:last-child { margin-bottom: 0; }
.ab-signoff {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid rgba(245,245,242,0.16);
  display: flex; flex-direction: column; gap: 4px;
}
.ab-sign {
  font-family: var(--serif); font-size: 1.2rem; font-style: italic;
  color: #fff;
}
.ab-role { font-size: 0.88rem; color: #A3C6E6; letter-spacing: 0.02em; }

/* BRAND-EVALUATOR CALLOUT */
.ab-brand-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.ab-brand-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.1; margin: 12px 0 14px;
  color: var(--ink);
}
.ab-brand-card p {
  font-size: 1rem; line-height: 1.65; color: var(--ink-2);
  margin: 0; max-width: 56ch;
}
.ab-brand-card a { color: var(--accent); border-bottom: 1px solid currentColor; }
.ab-brand-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.ab-brand-actions .btn-accent { text-align: center; }
.ab-brand-actions .link {
  color: var(--ink-2); text-align: center; font-size: 0.94rem;
  text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.ab-brand-actions .link:hover { color: var(--accent); border-color: var(--accent); }

/* TEAM */
.ab-team-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.ab-team-head > .eyebrow { margin-left: auto; margin-right: auto; }
.ab-team-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.1; margin: 12px 0 0;
  color: var(--ink);
}
.ab-team { max-width: 720px; margin: 0 auto; }
.ab-person {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ab-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.ab-person-role {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  margin-bottom: 6px;
}
.ab-person h3 {
  font-family: var(--serif);
  font-size: 1.5rem; line-height: 1.2;
  margin: 0 0 12px; color: var(--ink);
}
.ab-person p { font-size: 0.96rem; line-height: 1.65; color: var(--ink-2); margin: 0; }
.ab-person a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* Dark-mode tweaks */
[data-theme="dark"] .ab-facts,
[data-theme="dark"] .ab-brand-card,
[data-theme="dark"] .ab-op,
[data-theme="dark"] .ab-person { background: var(--bg-alt); }

/* HERO additions — CTA row + 2×2 collage */
.ab-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.ab-hero-cta .link { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; font-weight: 500; transition: color 150ms ease, border-color 150ms ease; }
.ab-hero-cta .link:hover { color: var(--accent); border-color: var(--accent); }
.ab-hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
}
.ab-hero-collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.ab-hero-collage img:nth-child(odd) { border-radius: 14px 8px 8px 14px; }
.ab-hero-collage img:nth-child(even) { border-radius: 8px 14px 14px 8px; }
.ab-hero-collage img:nth-child(1) { border-radius: 16px 8px 8px 8px; }
.ab-hero-collage img:nth-child(2) { border-radius: 8px 16px 8px 8px; }
.ab-hero-collage img:nth-child(3) { border-radius: 8px 8px 8px 16px; }
.ab-hero-collage img:nth-child(4) { border-radius: 8px 8px 16px 8px; }

/* CUSTOMER-FACING AT-A-GLANCE bar */
.ab-glance { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.ab-glance ul {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.ab-glance li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 4px 8px; }
.ab-glance li + li { border-left: 1px solid var(--line); }
.ab-glance .g-num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ab-glance .g-num .g-sub {
  font-size: 0.55em;
  color: var(--ink-3);
  margin-left: 2px;
  letter-spacing: 0;
}
.ab-glance .g-lbl {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-top: 4px;
}

/* TEAM — by-the-numbers roles grid */
.ab-team-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.ab-team-head .eyebrow { margin-left: auto; margin-right: auto; }
.ab-team-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.1; margin: 12px 0 14px; color: var(--ink);
}
.ab-team-head h2 em { color: var(--accent); font-style: italic; }
.ab-team-lead { font-size: 1rem; line-height: 1.65; color: var(--ink-2); max-width: 56ch; margin: 0 auto; }
.ab-team-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 32px auto 0;
}
.ab-role-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.ab-role-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--accent); }
.ab-role-num {
  font-family: var(--serif);
  font-size: 2.6rem; line-height: 1;
  color: var(--accent);
  font-style: italic;
  display: inline-block;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.ab-role-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem; margin: 0 0 8px;
  color: var(--ink);
}
.ab-role-card p { font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); margin: 0; }
.ab-role-card a { color: var(--accent); border-bottom: 1px solid currentColor; }
.ab-team-foot { text-align: center; margin: 32px 0 0; color: var(--ink-2); font-size: 0.94rem; }
.ab-team-foot a { color: var(--accent); border-bottom: 1px solid currentColor; }

[data-theme="dark"] .ab-glance { background: var(--bg-alt); }
[data-theme="dark"] .ab-role-card { background: var(--bg-alt); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ab-chapter-head { position: static; top: auto; }
  .ab-hero-collage img { transition: none; }
  .ab-role-card { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .ab-hero { padding: 48px 0 40px; }
  .ab-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ab-hero-collage { aspect-ratio: 16 / 10; max-width: 560px; }
  .ab-chapter { padding: 56px 0; }
  .ab-chapter-grid { grid-template-columns: 1fr; gap: 28px; }
  .ab-chapter-head { position: static; top: auto; }
  .ab-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ab-ops { grid-template-columns: repeat(2, 1fr); }
  .ab-glance ul { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ab-glance li + li:nth-child(4n+1) { border-left: 0; }
  .ab-team-roles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ab-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  /* 2x2 collage at a 1:1 aspect so each image is a clean square and all
     four fit within the viewport width. minmax(0, 1fr) keeps the rows
     from expanding past the container to fit image natural height. */
  .ab-hero-collage {
    aspect-ratio: 1 / 1;
    max-width: 100%;
    gap: 8px;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .ab-hero-collage img { min-height: 0; border-radius: 10px !important; }
  .ab-letter { padding: 64px 0; }
  .ab-letter-inner h2 { font-size: 1.8rem; }
  .ab-letter-body p { font-size: 1rem; }
  .ab-prose .ab-dropcap::first-letter { font-size: 3.6rem; }
  .ab-ops { grid-template-columns: 1fr; }
  .ab-team-roles { grid-template-columns: 1fr; }
  .ab-glance { padding: 18px 0; }
  .ab-glance ul { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ab-glance li + li { border-left: 0; }
  .ab-glance li { border-top: 1px solid var(--line); padding-top: 12px; }
  .ab-glance li:nth-child(-n+2) { border-top: 0; padding-top: 4px; }
  .ab-pullquote { padding: 16px 0 32px; }
  .ab-pullquote blockquote p::before,
  .ab-pullquote blockquote p::after { width: 36px; margin-bottom: 16px; }
}

/* =========================================================================
   BLOG — Editorial Magazine layout
   Index: masthead + featured + 3-up grid with category chips
   Post:  hero + 2-col article body with sticky TOC scrollspy
   ========================================================================= */
.blog-page, .blog-post-page { background: var(--bg); }

/* INDEX masthead */
.blog-masthead { padding: 64px 0 32px; border-bottom: 1px solid var(--line); }
.blog-masthead .crumbs { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.blog-masthead .crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.blog-masthead .crumbs a:hover { color: var(--accent); border-color: var(--accent); }
.blog-masthead h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1; letter-spacing: -0.02em;
  margin: 14px 0 22px; color: var(--ink);
}
.blog-masthead h1 em { color: var(--accent); font-style: italic; }
.blog-masthead .lead { font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin: 0 0 32px; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--ink-2); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  cursor: pointer;
}
.blog-chip:hover { color: var(--accent); border-color: var(--accent); }
.blog-chip-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.blog-chip-active:hover { color: var(--bg); }

/* FEATURED card */
.blog-featured-wrap { padding: 40px 0 0; }
.blog-featured {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 200ms ease;
}
.blog-featured > * { min-width: 0; }
.blog-featured h2, .blog-featured p { overflow-wrap: anywhere; }
.blog-featured:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--accent); }
.blog-featured-img {
  background-size: cover; background-position: center;
  min-height: 360px;
}
.blog-featured-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.blog-featured-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.3vw, 2.4rem);
  line-height: 1.1; letter-spacing: -0.01em;
  margin: 0; color: var(--ink);
}
.blog-featured-body p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; margin: 0; }
.blog-meta { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-3); }
.blog-cta { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-top: 6px; }

/* GRID */
.blog-grid-wrap { padding: 64px 0; }
.blog-section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin: 0 0 28px; color: var(--ink); letter-spacing: -0.01em;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 200ms ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--accent); }
.blog-card-img {
  aspect-ratio: 5 / 3;
  background-size: cover; background-position: center;
  background-color: var(--bg-alt);
}
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem; line-height: 1.25;
  margin: 0; color: var(--ink);
}
.blog-card-body p { color: var(--ink-2); font-size: 0.92rem; line-height: 1.55; margin: 0; flex: 1; }
.blog-card[hidden] { display: none; }
.blog-empty { text-align: center; color: var(--ink-3); padding: 40px 0; }

/* =========================
   POST PAGE
   ========================= */
.bp-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.bp-head .crumbs { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.bp-head .crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.bp-head .crumbs a:hover { color: var(--accent); border-color: var(--accent); }
.bp-head h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 14px 0 18px; color: var(--ink);
  max-width: 24ch;
}
.bp-lede { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin: 0 0 22px; }
.bp-byline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0.02em; }
.bp-byline-sep { opacity: 0.5; }

.bp-hero-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  background-size: cover; background-position: center;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.bp-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 56px 16px;
  align-items: start;
}

/* TOC */
.bp-toc-wrap { position: sticky; top: 96px; align-self: start; }
.bp-toc {
  padding: 22px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bp-toc > .eyebrow { display: inline-flex; margin-bottom: 14px; }
.bp-toc ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 4px;
  counter-reset: toc;
}
.bp-toc li { margin: 0; }
.bp-toc a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 6px;
  align-items: baseline;
  padding: 8px 10px;
  font-size: 0.88rem; line-height: 1.35;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.bp-toc a:hover { color: var(--accent); background: var(--bg); }
.bp-toc-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 0.85rem;
}
.bp-toc-active {
  color: var(--accent) !important;
  background: var(--bg) !important;
  border-left-color: var(--accent) !important;
  font-weight: 600;
}
.bp-toc-active .bp-toc-num { color: var(--accent); }

/* PROSE — 65ch */
.bp-prose { max-width: 65ch; min-width: 0; }
.bp-section { margin-bottom: 40px; scroll-margin-top: 80px; }
.bp-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  line-height: 1.2; letter-spacing: -0.01em;
  margin: 0 0 16px; color: var(--ink);
}
.bp-para { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.bp-para p { margin: 0 0 18px; }
.bp-para p:last-child { margin-bottom: 0; }
.bp-para a { color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.bp-para a:hover { color: var(--accent-2, var(--accent)); }
.bp-dropcap p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.85;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--accent);
  font-weight: 600;
}

/* CTA card at end of prose */
.bp-cta {
  margin-top: 48px;
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bp-cta h3 {
  font-family: var(--serif);
  font-size: 1.4rem; margin: 10px 0 8px; color: var(--ink);
}
.bp-cta p { color: var(--ink-2); font-size: 0.96rem; line-height: 1.55; margin: 0; }
.bp-cta a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* Related-grid: force 3 columns for variety on post pages */
.blog-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Dark-mode */
[data-theme="dark"] .blog-featured,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .bp-toc,
[data-theme="dark"] .bp-cta { background: var(--bg-alt); }
[data-theme="dark"] .blog-card { background: var(--bg-deep, var(--bg-alt)); }
[data-theme="dark"] .blog-chip-active { background: var(--bg-alt); color: var(--ink); border-color: var(--ink); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blog-featured, .blog-card { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-masthead { padding: 48px 0 24px; }
  .blog-featured { grid-template-columns: minmax(0, 1fr); }
  /* aspect-ratio + min-height was forcing min-width past viewport (240*16/9=427).
     Drop min-height and let aspect-ratio set the height from the actual width. */
  .blog-featured-img { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .bp-body { grid-template-columns: 1fr; gap: 28px; padding: 32px 16px 56px; }
  .bp-toc-wrap { position: static; top: auto; }
  .bp-toc ol { grid-template-columns: repeat(2, 1fr); display: grid; gap: 4px 12px; }
}
@media (max-width: 640px) {
  .blog-masthead h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .blog-grid, .blog-grid-3 { grid-template-columns: 1fr; }
  .blog-featured-body h2 { font-size: 1.5rem; }
  .bp-hero-img { aspect-ratio: 4 / 3; }
  .bp-head h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .bp-toc ol { grid-template-columns: 1fr; }
  .bp-section h2 { font-size: 1.4rem; }
  .bp-para { font-size: 1rem; }
  .bp-dropcap p:first-child::first-letter { font-size: 3.2rem; }
}

/* =========================================================================
   WELCOME POP-UP — first-visit "10% off" overlay
   ========================================================================= */
.cnx-popup {
  position: fixed; inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  /* Respect safe-area insets so the popup never sits behind a notch or the
     home indicator on iOS. */
  padding:
    max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}
.cnx-popup[hidden] { display: none; }

.cnx-popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.cnx-popup.is-open .cnx-popup-backdrop { opacity: 1; }

.cnx-popup-card {
  position: relative;
  display: grid;
  grid-template-columns: 230px 1fr;
  width: 100%;
  max-width: 720px;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 240ms ease, transform 240ms cubic-bezier(.2,.7,.2,1);
}
.cnx-popup.is-open .cnx-popup-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cnx-popup-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: background 150ms ease;
  z-index: 2;
}
.cnx-popup-x:hover { background: rgba(255,255,255,0.18); }
.cnx-popup-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cnx-popup-art {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 28px 20px;
}
.cnx-popup-pct {
  font-family: var(--serif);
  font-size: 5.2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-style: italic;
}
.cnx-popup-off {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-top: 4px;
  opacity: 0.9;
}

.cnx-popup-body {
  padding: 36px 36px 32px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.cnx-popup-body .eyebrow { margin-bottom: 4px; }
.cnx-popup-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 4px; color: var(--ink);
}
.cnx-popup-body p {
  font-size: 0.95rem; line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

.cnx-popup-form {
  display: flex; gap: 8px; margin-top: 14px;
}
.cnx-popup-form input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  font: inherit; font-size: 0.95rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.cnx-popup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44,95,138,0.12);
}
.cnx-popup-form button[type="submit"] {
  padding: 12px 18px;
  font: inherit; font-size: 0.92rem; font-weight: 600;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease;
}
.cnx-popup-form button[type="submit"]:hover { background: var(--accent); border-color: var(--accent); }
.cnx-popup-form button[type="submit"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cnx-popup-skip {
  align-self: flex-start;
  margin-top: 6px;
  background: transparent;
  border: none;
  padding: 6px 0;
  font: inherit; font-size: 0.82rem;
  color: var(--ink-3);
  text-decoration: underline;
  cursor: pointer;
}
.cnx-popup-skip:hover { color: var(--ink); }

.cnx-popup-form.form-success { display: block; }
.cnx-popup-form.form-success .newsletter-success { margin: 4px 0 0; }

[data-theme="dark"] .cnx-popup-card { background: var(--bg-alt); }
[data-theme="dark"] .cnx-popup-form input[type="email"] { background: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .cnx-popup-backdrop,
  .cnx-popup-card { transition: none; }
}

@media (max-width: 640px) {
  /* Centered card with comfortable margins — NOT a bottom-sheet that
     can visually bleed into the page header. */
  .cnx-popup { padding: 24px 24px; align-items: center; }
  .cnx-popup-card {
    grid-template-columns: 1fr;
    width: calc(100% - 48px);
    max-width: 360px;
    border-radius: 18px;
    transform: translateY(14px) scale(.96);
  }
  .cnx-popup.is-open .cnx-popup-card { transform: translateY(0) scale(1); }
  .cnx-popup-x { color: #fff; top: 8px; right: 10px; }
  .cnx-popup-art {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    padding: 22px 20px;
  }
  .cnx-popup-pct { font-size: 3.4rem; }
  .cnx-popup-off { font-size: 1.15rem; margin: 0; }
  .cnx-popup-body { padding: 22px 22px 24px; gap: 10px; }
  .cnx-popup-body h2 { font-size: 1.4rem; }
  .cnx-popup-body p { font-size: 0.9rem; }
  .cnx-popup-form { flex-direction: column; gap: 10px; }
  .cnx-popup-form button[type="submit"] { width: 100%; padding: 13px; }
  .cnx-popup-skip { font-size: 0.78rem; }
}

/* ============================================================
   NSX v2 — home page additions: hero entrance, deal of the week,
   journal teaser, home FAQ, floating hero cards.
   ============================================================ */

/* Hero headline entrance — each line rises in */
.hero h1 .hl { display: block; overflow: hidden; }
.hero h1 .hl > span { display: block; transform: translateY(112%); animation: hlUp 0.85s cubic-bezier(.2,.65,.2,1) forwards; }
.hero h1 .hl:nth-child(2) > span { animation-delay: 0.14s; }
.hero h1 .hl:nth-child(3) > span { animation-delay: 0.28s; }
@keyframes hlUp { to { transform: translateY(0); } }

/* Hero cards — gentle float, pause on hover */
.hero-stack .card { animation: cardFloat 7s ease-in-out infinite alternate; }
.hero-stack .card.c2 { animation-delay: 1.2s; animation-duration: 8s; }
.hero-stack .card.c3 { animation-delay: 2.1s; animation-duration: 6.5s; }
.hero-stack .card:hover { animation-play-state: paused; }
.hero-stack .badge { animation: badgePulse 2.6s ease-in-out infinite; }
@keyframes cardFloat { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* Deal of the week */
.dotw {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  background: var(--accent-deep);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-accent);
}
.dotw-media { position: relative; min-height: 380px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 28px; }
.dotw-media img { max-height: 360px; width: auto; object-fit: contain; }
.dotw-media .flag {
  position: absolute; top: 18px; left: 18px;
  background: var(--gold); color: #3A2107;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
}
.dotw-body { padding: clamp(28px, 4vw, 56px); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.dotw-body .eyebrow { color: var(--gold); }
.dotw-body .eyebrow::before { background: var(--gold); }
.dotw-body h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); color: #fff; margin: 14px 0 12px; }
.dotw-body > p { color: rgba(255,255,255,0.75); font-size: 0.97rem; margin: 0 0 20px; max-width: 52ch; }
.dotw-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.dotw-price .now { font-size: 2rem; font-weight: 800; color: #fff; }
.dotw-price .was { font-size: 1.1rem; color: rgba(255,255,255,0.55); text-decoration: line-through; }
.dotw-price .save { background: rgba(217,130,43,0.18); color: var(--gold); font-weight: 700; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; }
.dotw-timer { display: flex; gap: 12px; margin-bottom: 28px; }
.dotw-timer .cell {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r);
  min-width: 74px; padding: 12px 10px 10px;
  text-align: center;
}
.dotw-timer .num { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.dotw-timer .num.tick { animation: numTick 0.4s ease; }
.dotw-timer .lbl { display: block; margin-top: 6px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
@keyframes numTick { 0% { transform: translateY(-6px); opacity: 0.3; } 100% { transform: translateY(0); opacity: 1; } }
.dotw .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .dotw { grid-template-columns: 1fr; }
  .dotw-media { min-height: 260px; }
  .dotw-media img { max-height: 240px; }
  .dotw-timer { flex-wrap: wrap; }
}

/* Journal teaser (home) */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.j-card {
  display: block; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t);
}
.j-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.j-card .im { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.j-card .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.6,.2,1); }
.j-card:hover .im img { transform: scale(1.05); }
.j-card .bd { padding: 20px 22px 24px; }
.j-card .bd .tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.j-card .bd h3 { font-family: var(--serif); font-size: 1.18rem; margin: 8px 0 8px; transition: color var(--t); }
.j-card:hover .bd h3 { color: var(--accent); }
.j-card .bd p { font-size: 0.9rem; color: var(--ink-3); margin: 0 0 12px; }
.j-card .bd .rt { font-size: 0.8rem; color: var(--ink-4); }
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr; } }

/* Home FAQ teaser */
.home-faq { max-width: 860px; margin: 0 auto; }
.home-faq .faq-cta { text-align: center; margin-top: 28px; }

/* Dark theme support for the new sections */
[data-theme="dark"] .dotw-media { background: #E9EEF3; }
[data-theme="dark"] .j-card { background: var(--surface); }

/* Reduced motion: kill the decorative animation layer */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .hl > span { animation: none; transform: none; }
  .hero-stack .card, .hero-stack .badge, .dotw-timer .num.tick { animation: none; }
}

/* ============================================================
   NSX v2 — motion layer additions
   ============================================================ */

/* Scroll progress bar */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 300;
  pointer-events: none;
}

/* Hover lift on interactive cards site-wide (adds to existing hovers) */
.product-card, .cat-tile, .ab-role-card, .ab-op {
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.product-card:hover, .ab-role-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }

/* Section headline accent sweep — the em underline draws in when revealed */
.section-head h2 em.serif-i, .ab-chapter h2 em.serif-i {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 2px;
  transition: background-size 900ms cubic-bezier(.2,.6,.2,1) 250ms;
}
.reveal.in h2 em.serif-i, .in .section-head h2 em.serif-i, .section-head.in h2 em.serif-i { background-size: 100% 2px; }

@media (prefers-reduced-motion: reduce) {
  #scrollProgress { display: none; }
}

/* ============================================================
   NSX v3 — visual signature pass ("forward motion").
   Overrides late in the cascade on purpose: navy page banners,
   chevron motif, inverted trust strip, navy footer, textures.
   ============================================================ */

/* Chevron eyebrow: neutralize legacy line backgrounds from context overrides */
.eyebrow::before { background: none !important; width: auto !important; height: auto !important; }
.dark .eyebrow::before, .green .eyebrow::before,
.deal-split .eyebrow::before, [data-theme="dark"] .section.dark .eyebrow::before { color: var(--gold); }

/* Speed-line texture helper values reused below */
/* Page banners — every subpage head goes deep navy with diagonal speed-lines */
.page-head {
  position: relative;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 28px),
    linear-gradient(120deg, var(--accent-deep) 0%, #123A5C 78%, var(--accent) 130%);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
.page-head::after {
  content: '»';
  position: absolute;
  right: -0.05em;
  bottom: -0.42em;
  font-size: 17rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.045);
  pointer-events: none;
}
.page-head h1 { color: #fff; }
.page-head p { color: rgba(255,255,255,0.78); }
.page-head .crumbs { color: rgba(255,255,255,0.55); }
.page-head .crumbs a { color: var(--gold); }
.page-head .crumbs a:hover { color: #fff; }
.page-head .eyebrow { color: #A3C6E6; }
[data-theme="dark"] .page-head { border-bottom-color: var(--gold); }

/* Trust strip — inverted navy band */
.trust-strip {
  background: var(--accent-deep);
  border-top: 0;
  border-bottom: 0;
}
.trust-strip .caption { color: var(--gold); }
.trust-strip .marquee-track > .logo { color: rgba(255,255,255,0.55); }
.trust-strip .marquee-track > .logo:hover { color: #fff; }
.trust-strip .marquee::before,
.trust-strip .marquee::after { display: none; }

/* Stats band — texture + amber numerals */
.stats {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 28px),
    linear-gradient(120deg, var(--accent-deep), var(--accent));
}
.stats .grid .stat .n, [data-theme="dark"] .stats .grid .stat .n { color: var(--gold); }

/* Newsletter — navy gradient panel, pill controls */
.newsletter {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 28px),
    linear-gradient(120deg, var(--accent-deep) 10%, #123A5C 90%);
  border: 1px solid rgba(255,255,255,0.08);
}
.newsletter input {
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter button { border-radius: 999px; }

/* Footer — navy, amber top rule, giant watermark */
.site-footer {
  position: relative;
  background: var(--accent-deep);
  color: #93A7B8;
  border-top: 3px solid var(--gold);
  overflow: hidden;
}
.site-footer::after {
  content: 'NSX';
  position: absolute;
  right: 8px;
  bottom: -0.28em;
  font-family: var(--serif);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.035);
  pointer-events: none;
}
.site-footer .grid { border-bottom-color: rgba(255,255,255,0.1); position: relative; z-index: 1; }
.site-footer a { color: #93A7B8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-block p { color: #7E95A9; }
.site-footer .footer-contact a { color: #BFDCF2; border-bottom-color: rgba(191,220,242,0.45); }
[data-theme="dark"] .site-footer { background: #081E30; }
[data-theme="dark"] .site-footer a { color: #93A7B8; }

/* Bullet lists — chevron markers */
.bullets li { list-style: none; position: relative; padding-left: 22px; }
.bullets li::before {
  content: '»';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}
.bullets { padding-left: 0; }

/* Links — chevron nudge on hover */
.link { position: relative; transition: color var(--t); }
.link:hover { color: var(--accent); }

/* Product cards — snappier zoom + amber bestseller badge */
.product-card:hover .imgwrap img { transform: scale(1.07); }
.product-card .badges .badge-bestseller,
.badge.bestseller { background: var(--gold); color: #3A2107; }

/* Pill inputs elsewhere (checkout, contact, forms) */
input[type="email"], input[type="text"], input[type="tel"] { border-radius: 999px; }
textarea { border-radius: var(--r-lg); }

@media (max-width: 720px) {
  .page-head::after { font-size: 9rem; }
  .site-footer::after { font-size: 6.5rem; }
}

/* ============================================================
   NSX — dotted surface hero background layer
   ============================================================ */
.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero .grid { position: relative; z-index: 1; }
[data-theme="dark"] .hero-dots { opacity: 0.4; }

/* ============================================================
   Checkout promo code
   ============================================================ */
.ck-promo { display: flex; gap: 8px; margin: 14px 0 4px; }
.ck-promo input {
  flex: 1; padding: 10px 16px; font-size: 0.9rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--bg); color: var(--ink); font-family: inherit;
  text-transform: uppercase;
}
.ck-promo input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(44,95,138,0.12); }
.ck-promo button {
  padding: 10px 18px; font-size: 0.84rem; font-weight: 700;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #fff; cursor: pointer;
  transition: background var(--t);
}
.ck-promo button:hover { background: var(--accent-deep); }
.ck-promo-err { font-size: 0.82rem; color: var(--danger); margin: 6px 2px 0; }
.ck-promo-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 14px 0 4px; padding: 10px 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-bright);
  border-radius: 999px; font-size: 0.88rem; color: var(--accent);
  font-weight: 600;
}
.ck-promo-remove {
  background: none; border: none; color: var(--ink-3);
  font-size: 0.8rem; cursor: pointer; text-decoration: underline; padding: 0;
}
.ck-promo-remove:hover { color: var(--danger); }

/* ============================================================
   Form flash-message layout fix: the inline status box is a flex
   sibling of the input/button — without this, its height stretches
   them into ovals. Center the controls and give the box its own row.
   ============================================================ */
.newsletter form, .deal-split form { align-items: center; flex-wrap: wrap; }
form [data-flash] { flex-basis: 100%; width: 100%; }
.newsletter input, .deal-split form input { height: 54px; }
.newsletter button, .deal-split form .btn { white-space: nowrap; }
