/* ============================================================
   NIDDOBOND — Brand Site
   Production stylesheet · Light (default) + Dark mode
   Built on Brand Identity Book v1.5
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Raw palette */
  --obsidian: #1C1814;
  --linen:    #F7F2EA;
  --ember:    #BF7848;
  --stone:    #8C8279;
  --sand:     #D9CCBA;

  /* Type */
  --font-logo: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px; --sp-32: 128px;

  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 10px;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */ /* settle, ease-out */
  --t-fast: 160ms var(--ease);
  --t-base: 280ms var(--ease);
  --t-slow: 460ms var(--ease);

  --shadow-sm: 0 1px 3px rgba(28,24,20,0.08);
  --shadow-md: 0 4px 16px rgba(28,24,20,0.08);
  --shadow-lg: 0 14px 40px rgba(28,24,20,0.12);
}

/* ---------- Light (default) ---------- */
:root, [data-theme="light"] {
  --bg:        var(--linen);
  --bg-alt:    #EFE7D9;
  --surface:   #FFFFFF;
  --text:      var(--obsidian);
  --text-2:    var(--stone);
  --border:    var(--sand);
  --accent:    var(--ember);
  --inverse-bg:   var(--obsidian);
  --inverse-text: var(--linen);
  --inverse-text-2: #A99F92;
  --cta-bg:    var(--obsidian);
  --cta-text:  var(--linen);
  --placeholder-bg: #E4DACA;
  --placeholder-ink: #1C1814;
}

/* ---------- Dark ---------- */
[data-theme="dark"] {
  --bg:        #18130F;
  --bg-alt:    #211B15;
  --surface:   #241E18;
  --text:      var(--linen);
  --text-2:    #A99F92;
  --border:    rgba(247,242,234,0.14);
  --accent:    #CF9067;
  --inverse-bg:   #241E18;
  --inverse-text: var(--linen);
  --inverse-text-2: #A99F92;
  --cta-bg:    var(--linen);
  --cta-text:  var(--obsidian);
  --placeholder-bg: #2E2720;
  --placeholder-ink: #F7F2EA;
  --shadow-md: 0 4px 16px rgba(0,0,0,0.30);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.42);
}

/* ============================================================
   BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-base), color var(--t-base);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.divider { border: none; border-top: 1px solid var(--border); }

/* ---------- Type utilities ---------- */
.overline {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-2);
}
h1, h2, h3 { font-family: var(--font-body); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 5.2vw, 60px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.2; }
h3 { font-size: clamp(20px, 2vw, 26px); }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); line-height: 1.65; }
p { text-wrap: pretty; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 15px 32px; border: 1.5px solid transparent;
  border-radius: var(--radius-sm); transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--cta-bg); color: var(--cta-text); }
.btn--primary:hover { opacity: 0.88; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { opacity: 0.9; }
.btn--sm { padding: 10px 22px; font-size: 12px; }
.btn--block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-base), border-color var(--t-base);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; align-items: center; flex: 1 1 0; justify-content: flex-start; }
.nav__logo img { height: 38px; width: auto; }
.logo-light-only { display: block; }
.logo-dark-only  { display: none; }
[data-theme="dark"] .logo-light-only { display: none; }
[data-theme="dark"] .logo-dark-only  { display: block; }

.nav__inner { position: relative; }
.nav__links { display: flex; gap: 34px; justify-content: center; flex: 0 1 auto; white-space: nowrap; }
.nav__link {
  font-size: 13px; letter-spacing: 0.04em; color: var(--text-2);
  transition: color var(--t-fast); position: relative; padding: 4px 0;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--accent);
}
.nav__right { display: flex; align-items: center; gap: 14px; flex: 1 1 0; justify-content: flex-end; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text); display: inline-flex;
  align-items: center; justify-content: center; transition: border-color var(--t-fast), color var(--t-fast);
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* Mobile menu button */
.nav__burger { display: none; width: 38px; height: 38px; border: none; background: transparent; color: var(--text); }
.nav__burger svg { width: 22px; height: 22px; }

/* ============================================================
   PLACEHOLDER (photo slots)
   ============================================================ */
.ph {
  position: relative; background: var(--placeholder-bg);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-base);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 22px, color-mix(in srgb, var(--placeholder-ink) 5%, transparent) 22px 23px);
  pointer-events: none;
}
.ph__note {
  position: relative; z-index: 1; text-align: center; max-width: 260px;
  padding: 24px; color: var(--placeholder-ink); opacity: 0.55;
}
.ph__note .mark { width: 46px; height: 46px; margin: 0 auto 12px; opacity: 0.5; }
.ph__note .cap { font-size: 11px; letter-spacing: 0.08em; line-height: 1.6; text-transform: uppercase; }

/* Bond mark (two overlapping circles, ember intersection) */
.bondmark { display: inline-block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: rgba(18,15,12,0.90); color: var(--inverse-text); padding: 72px 0 0; transition: background var(--t-base); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  border-bottom: 1px solid var(--border);
}
.footer__logo img { height: 42px; width: auto; margin-bottom: 18px; }
.footer__tagline { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.footer__bio { font-size: 13px; color: var(--inverse-text-2); line-height: 1.6; max-width: 260px; margin-bottom: 22px; }
.footer__social { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__social a { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--inverse-text-2); transition: color var(--t-fast); }
.footer__social a:hover { color: var(--accent); }
.footer__col-title { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 13px; color: var(--inverse-text-2); line-height: 1; padding: 7px 0; transition: color var(--t-fast); }
.footer__col a:hover { color: var(--inverse-text); }
.footer__bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 11px; color: var(--inverse-text-2); letter-spacing: 0.04em; flex-wrap: wrap;
}
.footer__bottom a { color: var(--inverse-text-2); }
.footer__bottom a:hover { color: var(--inverse-text); }

/* ---------- Simple footer ---------- */
.footer--simple { padding: 60px 0; }
.footer__simple { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer__simple-logo { height: 38px; width: auto; }
.footer__email { font-size: 15px; color: var(--inverse-text); border-bottom: 1px solid rgba(247,242,234,0.4); padding-bottom: 3px; transition: color var(--t-fast), border-color var(--t-fast); }
.footer__email:hover { color: var(--accent); border-color: var(--accent); }
.footer__copy { font-size: 11px; color: var(--inverse-text-2); letter-spacing: 0.04em; margin-top: 8px; }

/* ---------- Transparent nav (over hero) ---------- */
.nav--over {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 0 clamp(16px, 4vw, 40px);
  background: transparent; backdrop-filter: none; border-bottom: none;
}
/* Floating liquid-glass pill around the content */
.nav--over .nav__inner {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-radius: 999px;
  padding: 0 18px 0 22px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--obsidian) 9%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 10px 34px rgba(28,24,20,0.12);
}
.nav--over .nav__link { color: color-mix(in srgb, var(--obsidian) 70%, transparent); }
.nav--over .nav__link:hover, .nav--over .nav__link[aria-current="page"] { color: var(--obsidian); }
.nav--over .nav__link[aria-current="page"]::after { background: var(--accent); }
.nav--over .theme-toggle { border-color: color-mix(in srgb, var(--obsidian) 28%, transparent); color: var(--obsidian); }
.nav--over .theme-toggle:hover { border-color: var(--obsidian); }
.nav--over .nav__burger { color: var(--obsidian); }
/* Header entrance (opacity/transform only) */
.nav--over .nav__inner { transition: background var(--t-base), backdrop-filter var(--t-base); }
.js-reveal .nav__inner { opacity: 0; transform: translateY(-16px); }
.js-reveal .nav__inner.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.nav__inner.reveal-instant { opacity: 1 !important; transform: none !important; transition: none !important; }
/* Scroll-driven shrink: every dimension interpolates frame-for-frame via --nav-p (0..1),
   including the header's outer top spacing, so the whole header shrinks with the scroll. */
.nav--over .nav__inner {
  height: calc(68px - 22px * var(--nav-p, 0));
  margin-top: calc(30px - 22px * var(--nav-p, 0)) !important;
  padding: 0 calc(30px - 9px * var(--nav-p, 0)) !important;
}
.nav--over .nav__logo img { height: calc(46px - 15px * var(--nav-p, 0)) !important; width: auto !important; }
.nav--over .nav__social a { width: calc(36px - 7px * var(--nav-p, 0)); height: calc(36px - 7px * var(--nav-p, 0)); }
.nav--over .nav__social svg { width: calc(19px - 3px * var(--nav-p, 0)); height: calc(19px - 3px * var(--nav-p, 0)); }
.nav--over .nav__shop svg { width: calc(20px - 3px * var(--nav-p, 0)); height: calc(20px - 3px * var(--nav-p, 0)); }
.nav--over .nav__shop.btn {
  padding: calc(10px - 2px * var(--nav-p, 0)) calc(22px - 5px * var(--nav-p, 0)) !important;
  font-size: calc(12px - 1px * var(--nav-p, 0)) !important;
}
/* Header social icons */
.nav__social { display: flex; align-items: center; gap: 2px; }
.nav__social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--obsidian);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__social a:hover { color: var(--accent); background: color-mix(in srgb, var(--obsidian) 8%, transparent); }
.nav__social svg { width: 19px; height: 19px; }
.nav__shop svg { width: 20px; height: 20px; }
.nav__drawer-social { display: flex; gap: 10px; margin-top: 24px; }
.nav__drawer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nav__drawer-social a:hover { color: var(--accent); border-color: var(--accent); }
.nav__drawer-social svg { width: 21px; height: 21px; }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.nav__drawer {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: flex; flex-direction: column; padding: 24px;
  transform: translateX(100%); transition: transform var(--t-base);
  visibility: hidden;
}
.nav__drawer.is-open { transform: translateX(0); visibility: visible; }
.nav__drawer-top { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 24px; }
.nav__drawer-top img { height: 34px; }
.nav__drawer-close { width: 40px; height: 40px; border: none; background: transparent; color: var(--text); }
.nav__drawer-close svg { width: 24px; height: 24px; }
.nav__drawer a.dlink {
  font-size: 22px; font-weight: 700; color: var(--text); padding: 16px 0;
  border-bottom: 1px solid var(--border); letter-spacing: -0.01em;
}
.nav__drawer .btn { margin-top: 28px; }

/* ============================================================
   HERO — FULL-BLEED IMMERSIVE (B)
   ============================================================ */
.hero {
  position: relative; min-height: clamp(620px, 98vh, 904px);
  display: flex; align-items: flex-end; overflow: hidden;
}
/* Fixed full-viewport video background — scrubs with scroll */
.bg-video { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #2A2017; }
.bg-video__el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
/* Mobile (and the mobile preview): no background video — scroll-scrubbing video is
   unreliable on phones, so we show a static still (the video's first frame). */
.bg-video__el--mobile { display: none; }
.is-preview-mobile .bg-video__el { display: none; }
.is-preview-mobile .bg-video { background: #2A2017 url("../assets/hero-mobile.jpg") center top / cover no-repeat; }
/* Uniform dimming filter over the whole video, matching the hero tone */
.bg-video::after { content: ""; position: absolute; inset: 0; background: rgba(24,20,16,0.66); pointer-events: none; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__media .ph { position: absolute; inset: 0; border-radius: 0; height: 100%; background: #2A2017; }
.hero__media .ph::after { background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(247,242,234,0.05) 22px 23px); }
.hero__media .ph .ph__note { color: var(--linen); }
.hero__scrim {
  position: absolute; inset: 0;
  background: none;
}
.hero__content { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px 80px; color: var(--linen); display: flex; flex-direction: column; align-items: flex-end; }
/* Legibility halo for text sitting directly over the moving video */
.hero__content h1, .hero__content .lede, .hero__content .overline, .hero__content .hero__kicker { text-shadow: 0 1px 24px rgba(18,15,12,0.55), 0 1px 3px rgba(18,15,12,0.45); }
.cta-band h2, .cta-band .lede, .cta-band .overline { text-shadow: 0 1px 22px rgba(18,15,12,0.5), 0 1px 3px rgba(18,15,12,0.4); }
.belief { background: rgba(28,24,20,0.69); }
.belief .sec-head { margin-left: auto; margin-right: auto; max-width: 100%; }
.belief h2, .belief .lede, .belief .overline { text-shadow: 0 1px 22px rgba(18,15,12,0.55), 0 1px 3px rgba(18,15,12,0.45); }
.belief h2 { margin-left: auto !important; margin-right: auto !important; }

/* ---------- Giving Back + FAQ over video ---------- */
.giveback h2, .giveback .lede, .giveback .overline,
.faq-sec h2, .faq-sec .overline { text-shadow: 0 1px 22px rgba(18,15,12,0.55), 0 1px 3px rgba(18,15,12,0.45); }
.textlink { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--linen); border-bottom: 1px solid rgba(247,242,234,0.5); padding-bottom: 6px; transition: color var(--t-fast), border-color var(--t-fast); }
.textlink:hover { color: #E8C9AE; border-color: #E8C9AE; }
.textlink svg { width: 18px; height: 18px; }
.faq--over .faq__item { border-bottom-color: rgba(247,242,234,0.18); }
.faq--over .faq__item:first-child { border-top-color: rgba(247,242,234,0.18); }
.faq--over .faq__q { color: var(--linen); text-shadow: 0 1px 16px rgba(18,15,12,0.5); }
.faq--over .faq__a p { color: rgba(247,242,234,0.78); }
.hero__panel {
  width: fit-content; max-width: 640px;
  text-align: right;
}
.hero__panel .lede { margin-left: auto; width: 100% !important; }
.hero__content .overline { color: #E8C9AE; }
/* Hero kicker: a short accent rule above an uppercase product label. */
.hero__kicker {
  display: inline-flex; flex-direction: column; gap: 14px;
  margin: 0 0 18px auto; color: #BF7848;
  font-size: 17px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
.hero__kicker::before { content: ""; align-self: flex-end; width: 46px; height: 2px; background: currentColor; opacity: 0.9; }
.hero__content h1 { color: var(--linen); max-width: 680px; margin: 18px 0 20px; }
.hero__content .lede { color: rgba(247,242,234,0.84); max-width: 480px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 22px; }
.hero .btn--ghost { color: var(--linen); border-color: rgba(247,242,234,0.6); }
.hero .btn--ghost:hover { background: var(--linen); color: var(--obsidian); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  color: rgba(247,242,234,0.6); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll svg { width: 16px; height: 16px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Compact page hero (interior pages) */
.pagehero { position: relative; background: var(--bg-alt); padding: 100px 0 64px; text-align: center; transition: background var(--t-base); }
.pagehero .overline { margin-bottom: 14px; }
.pagehero h1 { max-width: 760px; margin: 0 auto 16px; }
.pagehero .lede { max-width: 540px; margin: 0 auto; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .overline { margin-bottom: 14px; }
.sec-head h2 { margin-bottom: 14px; }

/* ============================================================
   MOMENT / SPLIT BLOCKS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--media-left .split__media { order: -1; }
.split__media .ph { aspect-ratio: 11 / 10; height: auto; }
.split__media .split__photo { width: 100%; aspect-ratio: 11 / 10; height: auto; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.split__figure { position: relative; margin: 0; }
.split__figure figcaption { position: absolute; left: 18px; bottom: 18px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); background: rgba(255,255,255,0.82); backdrop-filter: blur(4px); padding: 7px 12px; border-radius: var(--radius-sm); }

/* ---- Angle gallery (carousel) ---- */
.gallery { position: relative; aspect-ratio: 11 / 10; border-radius: var(--radius-lg); overflow: hidden; background: #FFFFFF; border: 1px solid var(--border); }
.gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; padding: 18px; box-sizing: border-box; }
.gallery__slide--cover img { object-fit: cover; padding: 0; }
.gallery__slide figcaption { position: absolute; left: 18px; bottom: 18px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); background: rgba(255,255,255,0.22); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%); border: 1px solid rgba(255,255,255,0.55); box-shadow: 0 6px 18px rgba(28,24,20,0.12), inset 0 1px 0 rgba(255,255,255,0.5); padding: 7px 12px; border-radius: var(--radius-sm); }
.gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: rgba(255,255,255,0.86); backdrop-filter: blur(4px); color: var(--text); border-radius: 50%; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); z-index: 2; }
.gallery__arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.gallery__arrow svg { width: 20px; height: 20px; }
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
.gallery__dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.gallery__dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(28,24,20,0.22); cursor: pointer; transition: background var(--t-fast), width var(--t-fast); }
.gallery__dots button.is-active { width: 22px; border-radius: 4px; background: var(--accent); }

.split__body h2 { margin-bottom: 16px; }
.split__body p + p { margin-top: 14px; }
.split__body .lede { margin-bottom: 24px; }
.split__list { list-style: none; margin: 22px 0 0; }
.split__list li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--border); font-size: 15px; color: var(--text); }
.split__list li:last-child { border-bottom: 1px solid var(--border); }
.split__list li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   MODE TOGGLE (two-mode product)
   ============================================================ */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.mode-card .ph { height: 280px; border-radius: 0; }
.mode-card .gallery { background: #fff; }
.mode-card__body { padding: 26px 26px 30px; }
.mode-card__tag { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.mode-card h3 { margin: 10px 0 10px; }
.mode-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(247,242,234,0.16); border: 1px solid rgba(247,242,234,0.16); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: rgba(28,24,20,0.69); padding: 38px 32px; transition: background var(--t-base); }
.feature__icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; }
.feature__icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.feature__icon--text { width: auto; height: 30px; }
.feature__icon--text svg { width: auto; }
.feature h3 { font-size: 18px; margin-bottom: 10px; color: var(--linen); }
.feature p { font-size: 14px; color: rgba(247,242,234,0.78); line-height: 1.6; }
/* 5-up: 3 on top, 2 evenly filling the bottom row */
.features--5 { grid-template-columns: repeat(6, 1fr); }
.features--5 .feature { grid-column: span 2; }
.features--5 .feature:nth-child(4), .features--5 .feature:nth-child(5) { grid-column: span 3; }

/* Compact: icon-left horizontal cards so all six fit alongside the photos */
.features--compact .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 22px 26px; align-items: start; }
.features--compact .feature__icon { grid-row: 1 / span 2; grid-column: 1; margin-bottom: 0; width: 26px; height: 26px; }
.features--compact .feature__icon--text { width: auto; height: 47px; align-self: start; }
.features--compact .feature h3 { grid-column: 2; font-size: 16px !important; margin: 0 0 6px !important; width: auto !important; }
.features--compact .feature p { grid-column: 2; font-size: 13px !important; line-height: 1.5; }

/* ============================================================
   SPEC TABLE
   ============================================================ */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.spec-row dt { font-size: 14px; color: var(--text-2); }
.spec-row dd { font-size: 14px; font-weight: 700; color: var(--text); text-align: right; }

/* ============================================================
   STAT BAND
   ============================================================ */
.statband { background: rgba(28,24,20,0.69); color: var(--inverse-text); transition: background var(--t-base); }
.statband__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto; padding: 64px 40px; text-align: center; }
.stat .n { font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; }
.stat .n span { color: var(--accent); }
.stat .l { font-size: 12px; color: var(--inverse-text-2); letter-spacing: 0.06em; margin-top: 6px; }

/* ============================================================
   PRICE / BUY BLOCK
   ============================================================ */
.buy { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.buy__media .ph { height: 460px; }
.buy__price { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 18px; }
.buy__price .amt { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.buy__price .note { font-size: 13px; color: var(--text-2); }
.buy__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.buy__assure { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.buy__assure span { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.buy__assure svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ============================================================
   REVIEWS
   ============================================================ */
.rev-grid { columns: 3; column-gap: 24px; }
.rev-card {
  break-inside: avoid; margin-bottom: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
}
.rev-stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 14px; }
.rev-stars svg { width: 15px; height: 15px; }
.rev-card p { font-size: 15px; line-height: 1.6; color: var(--text); margin-bottom: 18px; text-wrap: pretty; }
.rev-by { display: flex; align-items: center; gap: 12px; }
.rev-av { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--accent); }
.rev-meta b { font-size: 13px; font-weight: 700; display: block; }
.rev-meta span { font-size: 11px; color: var(--text-2); }
.rev-summary { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 8px; }
.rev-summary .big { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.rev-summary .ssub { font-size: 13px; color: var(--text-2); }
.rev-summary .ssub .rev-stars { margin-bottom: 6px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__q {
  width: 100%; text-align: left; background: transparent; border: none; color: var(--text);
  font-size: 17px; font-weight: 700; padding: 24px 40px 24px 0; position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__q::after { content: "+"; position: absolute; right: 4px; font-size: 22px; font-weight: 400; color: var(--accent); transition: transform var(--t-fast); }
.faq__item.is-open .faq__q::after { content: "\2212"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t-base); }
.faq__a p { padding: 0 0 24px; font-size: 15px; color: var(--text-2); line-height: 1.7; max-width: 600px; }
.faq__item.is-open .faq__a { max-height: 320px; }

/* ============================================================
   FORMS
   ============================================================ */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-2); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
  transition: border-color var(--t-fast); width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--text-2) 70%, transparent); }
[data-form-note] { font-size: 14px; min-height: 20px; opacity: 0; transition: opacity var(--t-base); }
[data-form-note].is-visible { opacity: 1; }

/* Inline newsletter */
.subscribe { display: flex; gap: 10px; max-width: 460px; }
.subscribe input { flex: 1; font-family: inherit; font-size: 15px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.subscribe input:focus { outline: none; border-color: var(--accent); }
.subscribe--dark input { background: rgba(247,242,234,0.06); border-color: rgba(247,242,234,0.2); color: var(--linen); }
.subscribe--dark input::placeholder { color: rgba(247,242,234,0.5); }

/* ============================================================
   CONTACT LAYOUT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-aside h3 { margin-bottom: 16px; }
.contact-aside .lede { margin-bottom: 30px; }
.contact-list { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-item b { font-size: 14px; display: block; margin-bottom: 3px; }
.contact-item span, .contact-item a { font-size: 14px; color: var(--text-2); }
.contact-item a:hover { color: var(--accent); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: rgba(28,24,20,0.69); transition: background var(--t-base); color: var(--linen); padding: 77px 0; }
.cta-band h2, .cta-band .lede { color: var(--linen); }
.cta-band .overline { color: #E8C9AE; }
.cta-band .btn--ghost { color: var(--linen); border-color: rgba(247,242,234,0.6); }
.cta-band .btn--ghost:hover { background: var(--linen); color: var(--obsidian); }
.cta-band__inner { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 40px; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lede { margin: 0 auto 28px; max-width: 520px; }
.cta-band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* On pages without the photo background (Product, Story), the CTA band + footer
   are translucent over linen and look washed out. Flatten them to the solid brand
   darks so they match the home page on both desktop and mobile. */
body:not(.bg-page) .cta-band { background: #1C1814; }
body:not(.bg-page) .footer { background: #120F0C; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
/* Reveal: transform-only slide-up, opacity ALWAYS 1 so content is never
   hidden — even if the animation clock is frozen or JS/IO never fires.
   The hiding transform only applies once JS adds .js-reveal.            */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); will-change: opacity, transform; }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
/* Fail-safe: elements snapped visible on load (frozen-clock environments) skip the transition */
[data-reveal].reveal-instant { transition: none !important; }
[data-reveal-d="1"] { transition-delay: 140ms; }
[data-reveal-d="2"] { transition-delay: 280ms; }
[data-reveal-d="3"] { transition-delay: 420ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .wrap, .nav__inner, .footer__inner, .footer__bottom { padding-left: 24px; padding-right: 24px; }
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; align-items: center; justify-content: center; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__brand-col { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  /* Stacked order on small screens: heading + text first, dedicated photo below */
  .split__body { order: 1; }
  .split__media, .split--media-left .split__media { order: 2; }
  /* Home "Two Modes" section (mobile only): bind each text to the photo right below it,
     and give each pair more separation from the heading / the previous pair. */
  .two-modes .split { gap: 16px; margin-top: 52px; }
  /* Normalize the trailing margin so every text→photo gap is exactly the 16px grid gap. */
  .two-modes .split__body > *:last-child { margin-bottom: 0; }
  /* aspect-ratio governs height so photo crop proportions stay constant at every width */
  .modes { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .features--5 { grid-template-columns: 1fr; }
  .features--5 .feature, .features--5 .feature:nth-child(4), .features--5 .feature:nth-child(5) { grid-column: auto; }
  .specs { grid-template-columns: 1fr; gap: 0; }
  .statband__inner { grid-template-columns: 1fr; gap: 28px; padding: 48px 24px; }
  .buy { grid-template-columns: 1fr; gap: 32px; }
  .buy__media .ph { height: 340px; }
  .rev-grid { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__content { padding-bottom: 56px; }
  .hero__panel { max-width: 100%; padding: 24px 22px; }
  .hero__content { align-items: stretch; }
  .hero__actions { justify-content: flex-start; }
  .hero__content .lede { width: auto !important; height: auto !important; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .rev-grid { columns: 1; }
  .subscribe { flex-direction: column; }
  .hero { min-height: 600px; }
}

/* ============================================================
   MOBILE OPTIMIZATION (phones)
   ============================================================ */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }

  /* --- Header: logo + menu only; social/shop live in the drawer --- */
  .nav--over .nav__social, .nav--over .nav__shop { display: none; }
  /* Scroll-driven shrink on mobile too (matches desktop): starts larger for brand
     presence, then reduces frame-for-frame via --nav-p as you scroll. */
  .nav--over .nav__inner {
    margin-top: calc(16px - 6px * var(--nav-p, 0)) !important;
    height: calc(62px - 10px * var(--nav-p, 0)) !important;
    padding: 0 14px 0 18px !important;
    gap: 12px;
  }
  .nav--over .nav__inner .nav__logo img { height: calc(36px - 6px * var(--nav-p, 0)) !important; width: auto !important; }
  .nav__burger { display: inline-flex; align-items: center; justify-content: center; }

  /* --- Hero: panel pinned top-left, compact side-by-side CTAs --- */
  .hero { min-height: 78vh; align-items: stretch; }
  .hero__content { align-items: flex-start; justify-content: space-between; padding: 96px 22px 102px; }
  .hero__panel { text-align: left; max-width: 100%; width: 100% !important; }
  .hero__panel .lede { margin-left: 0; }
  .hero__content .overline { font-size: 10px !important; letter-spacing: 0.16em !important; line-height: 1.6 !important; width: auto !important; height: auto !important; text-align: left !important; }
  .hero__kicker { margin: 0 0 14px 0; font-size: 14px; gap: 10px; }
  .hero__kicker::before { align-self: flex-start; width: 38px; }
  /* Mobile-only: darken the bottom of the hero photo so text is legible. Desktop is untouched. */
  .hero__scrim { background: linear-gradient(to top, rgba(18,15,12,0.9) 0%, rgba(18,15,12,0.62) 34%, rgba(18,15,12,0.22) 66%, rgba(18,15,12,0) 100%); }
  .hero__content h1, .hero__content .lede, .hero__content .hero__kicker { text-shadow: 0 2px 6px rgba(12,9,7,0.72), 0 1px 30px rgba(12,9,7,0.6); }
  .hero__content h1 { text-align: left !important; max-width: 100% !important; width: auto !important; height: auto !important; font-size: 32px !important; line-height: 1.16 !important; letter-spacing: -0.01em !important; margin: 0 0 16px !important; }
  .hero__content .lede { display: block !important; font-size: 15px !important; line-height: 1.5 !important; letter-spacing: 0.2px !important; text-align: left !important; margin: 0 0 22px !important; color: rgba(247,242,234,0.82) !important; }
  .hero__actions { flex-direction: row; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 9px; margin-top: 0; width: 100%; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding: 11px 8px !important; font-size: 11px !important; letter-spacing: 0.03em !important; white-space: nowrap; justify-content: center; text-align: center; }
  /* Center the scroll cue between the buttons and the next section (equal gap above & below). */
  .hero__scroll { bottom: 32px; }

  /* --- Mobile: static still (first video frame) instead of any background video --- */
  .bg-video__el { display: none; }
  .bg-video { background: #2A2017 url("../assets/hero-mobile.jpg") center top / cover no-repeat; }
  /* Hero photo ~50% more visible than the rest of the page: brighten the fixed
     background where the hero sits (reduces the perceived dim) without adding a
     photo layer, so nothing drifts on scroll. Rest of page keeps its dim. */
  .hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    -webkit-backdrop-filter: brightness(1.55);
    backdrop-filter: brightness(1.55);
  }
  .hero__scrim, .hero__content { position: relative; z-index: 2; }

  /* --- Coherent mobile type scale (overrides desktop inline sizes) --- */
  .section { padding: 52px 0 !important; }
  .sec-head { margin-bottom: 28px !important; }
  .section .overline, .cta-band .overline { font-size: 10px !important; letter-spacing: 0.16em !important; margin-bottom: 12px !important; }
  /* --- Headings: tamed & line-capped on mobile (no oversized text on any phone) --- */
  .sec-head h2, .belief h2, .giveback h2, .faq-sec h2, .cta-band h2, .buy__body h2 {
    font-size: 22px !important; line-height: 1.22 !important; letter-spacing: -0.01em !important; text-wrap: balance;
  }
  .split__body h2 { font-size: clamp(18px, 5vw, 21px) !important; line-height: 1.22 !important; letter-spacing: -0.01em !important; text-wrap: balance; }
  .pagehero h1 { font-size: 27px !important; line-height: 1.16 !important; letter-spacing: -0.01em !important; white-space: normal !important; }
  /* Story intro paragraph: widen column + shrink so it stays ~8 lines max on phones */
  .pagehero .wrap { padding-left: 18px !important; padding-right: 18px !important; }
  .pagehero .lede { font-size: clamp(12.5px, 3.9vw, 16.5px) !important; line-height: 1.5 !important; }
  .cta-band h2 { white-space: normal !important; }
  /* CTA band: keep the two buttons side by side at equal width on mobile */
  .cta-band__actions { flex-wrap: nowrap !important; gap: 10px !important; }
  .cta-band__actions .btn { flex: 1 1 0 !important; min-width: 0 !important; padding: 13px 10px !important; font-size: 12px !important; white-space: nowrap !important; justify-content: center !important; text-align: center !important; }
  /* A lone CTA-band button shouldn't stretch full-width — match the page's other accent buttons. */
  .cta-band__actions .btn:only-child { flex: 0 0 auto !important; width: auto !important; padding: 15px 32px !important; font-size: 13px !important; }
  /* Product title: NIDDOBOND and the model name each on their own single line */
  .sec-head h2.prod-title { font-size: clamp(15px, calc(6vw - 3px), 22px) !important; white-space: nowrap !important; line-height: 1.14 !important; }
  .prod-title span { display: inline !important; }
  /* Bed spec list: tame label size and keep each value on its own single line */
  .bed-specs__row { flex-direction: column !important; align-items: flex-start !important; gap: 1px !important; padding: 11px 0 !important; }
  .bed-specs dt { font-size: 14px !important; font-weight: 600 !important; }
  .bed-specs dd { font-size: 13px !important; text-align: left !important; white-space: nowrap !important; }
  /* Ledes / body copy — capped to ~3 lines */
  .belief .lede, .giveback .lede, .cta-band .lede, .section .lede, .split__body .lede {
    font-size: 14px !important; line-height: 1.55 !important; text-wrap: pretty;
  }
  /* "Secure bonds" headline + its lede: shrink with width so they stay ≤3 lines on the narrowest phones */
  .belief .sec-head h2 { font-size: clamp(18px, 5.4vw, 22px) !important; }
  .belief .sec-head .lede { font-size: clamp(12px, 3.4vw, 15px) !important; line-height: 1.5 !important; }
  .statband__inner { grid-template-columns: 1fr 1fr !important; gap: 26px 16px !important; padding: 40px 22px !important; }
  .buy { grid-template-columns: 1fr !important; gap: 28px !important; }
  .features-photos { grid-template-columns: 1fr !important; gap: 16px !important; }
  .stat .n { font-size: 28px !important; }
  .stat .l { font-size: 11px !important; }
  .feature { padding: 28px 22px !important; }
  .feature h3 { font-size: 17px !important; }
  .feature p { font-size: 14px !important; }
  .faq__q { font-size: 15px !important; }

  /* --- Dim the rest of the page more for legibility — ONLY on the photo-bg page (index) --- */
  .bg-page .belief, .bg-page .statband, .bg-page .cta-band { background: rgba(22, 18, 14, 0.84) !important; }
  .bg-page .section:not(.belief):not(.statband):not(.cta-band):not(.faq-sec),
  .bg-page .faq-sec { background: rgba(22, 18, 14, 0.5) !important; }
  .bg-page .footer { background: rgba(14, 11, 8, 0.94) !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
