/* =========================================================
   Boosters Only · Korean skin booster trade
   1. Tokens  2. Base  3. Ambient  4. Glass  5. Header
   6. Hero  7. Sections  8. Components  9. Footer  10. Motion
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --crimson: #B3143A;
  --crimson-deep: #8C0D2C;
  --crimson-light: #E0476A;
  --blush: #FCEEF1;

  --bg: #FFFBFC;
  --bg-tint: #FCF1F4;
  --ink: #24121A;
  --muted: #6E5A61;
  --line: rgba(179, 20, 58, .14);
  --accent-text: #B3143A;

  --glass-bg: rgba(255, 255, 255, .62);
  --glass-bg-strong: rgba(255, 255, 255, .82);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-shadow: 0 10px 40px -14px rgba(140, 13, 44, .16), inset 0 1px 0 rgba(255, 255, 255, .9);

  --orb-1: rgba(240, 120, 150, .32);
  --orb-2: rgba(224, 71, 106, .18);
  --orb-3: rgba(255, 205, 216, .60);

  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  color-scheme: light;
  --font: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -.02em; }
h2, .page-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 300; }
.page-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.25rem; font-weight: 800; }
h4 { font-size: 1.05rem; font-weight: 800; }
.step h3 { font-size: 1.05rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--crimson-light); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: .75rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-text);
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.center { display: flex; justify-content: center; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--crimson); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 16px; }

/* ---------- 3. Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.orb-1 { width: 46vw; height: 46vw; background: var(--orb-1); top: -12vw; right: -8vw; animation: drift1 26s var(--ease) infinite alternate; }
.orb-2 { width: 38vw; height: 38vw; background: var(--orb-2); bottom: -14vw; left: -10vw; animation: drift2 32s var(--ease) infinite alternate; }
.orb-3 { width: 30vw; height: 30vw; background: var(--orb-3); top: 40%; left: 40%; animation: drift3 22s var(--ease) infinite alternate; }
.grain {
  position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-light));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- 4. Glass ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius);
  position: relative;
}
/* Pointer-follow sheen (position set by main.js) */
.glass.sheen::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .35), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.glass.sheen:hover::after { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 .95rem/1 var(--font); letter-spacing: .01em;
  padding: 1em 1.6em; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn-sm { padding: .75em 1.2em; font-size: .85rem; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #C8325A, var(--crimson) 55%, var(--crimson-deep));
  box-shadow: 0 8px 24px -8px rgba(179, 20, 58, .6), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(179, 20, 58, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-glass { color: var(--ink); background: var(--glass-bg); border-color: var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { transform: translateY(-2px); background: var(--glass-bg-strong); }
.btn-outline { color: var(--accent-text); border-color: var(--line); background: transparent; width: 100%; }
.btn-outline:hover { background: var(--crimson); color: #fff; border-color: var(--crimson); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  padding: 12px var(--gutter) 0;
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 12px 10px 22px; border-radius: 999px;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.site-header.scrolled .header-inner { background: var(--glass-bg-strong); padding-block: 6px; }

/* Logo: transparent masks cut from the logo artwork, colored by theme tokens.
   The mask images live in logo.css (embedded so the logo also shows when opening index.html from disk).
   --logo-h sets the height of "Boosters"; every other size scales from it. */
.logo { --logo-h: 27px; --u: calc(var(--logo-h) / 171); display: inline-flex; align-items: flex-end; gap: calc(46 * var(--u)); flex: none; }
.logo > span { display: block; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: background-color .3s var(--ease); }
.logo-boosters { width: calc(837 * var(--u)); height: calc(171 * var(--u)); margin-bottom: calc(44 * var(--u)); background: var(--ink); }
.logo-only { width: calc(551 * var(--u)); height: calc(230 * var(--u)); background: var(--accent-text); }
.logo-tagline { width: calc(505 * var(--u)); height: calc(39 * var(--u)); background: var(--muted); }
.logo:hover .logo-boosters { background: var(--accent-text); }
/* Stacked version keeps the original artwork's offsets */
.logo-stacked { --logo-h: 34px; flex-direction: column; align-items: flex-start; gap: 0; }
.logo-stacked .logo-boosters { margin-bottom: calc(19 * var(--u)); }
.logo-stacked .logo-only { margin-left: calc(163 * var(--u)); margin-bottom: calc(29 * var(--u)); }
.logo-stacked .logo-tagline { margin-left: calc(168 * var(--u)); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 .92rem/1 var(--font); color: var(--ink);
  padding: 11px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer;
  position: relative; transition: color .25s, background .25s;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"], .nav-link.is-current { color: var(--accent-text); background: var(--glass-bg); }
.chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.mega-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(560px, 90vw);
  padding: 14px; background: rgba(255, 255, 255, .97);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(.98);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mega.open { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); transition: background .25s; }
.mega-item:hover { background: var(--glass-bg); }
.mega-item strong { display: block; font-weight: 800; }
.mega-item small { color: var(--muted); font-size: .8rem; }
.mega-thumb { width: 48px; height: 60px; flex: none; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(140, 13, 44, .45); transition: transform .4s var(--ease); }
.mega-item:hover .mega-thumb { transform: translateY(-2px) scale(1.05); }
.mega-all { display: block; margin-top: 8px; padding: 12px; border-top: 1px solid var(--line); font-weight: 800; color: var(--accent-text); font-size: .9rem; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-bg); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.drawer { margin: 10px auto 0; max-width: var(--maxw); padding: 14px; display: flex; flex-direction: column; gap: 2px; background: var(--glass-bg-strong); }
.drawer a, .drawer summary { padding: 12px 14px; font-weight: 700; border-radius: var(--radius-sm); cursor: pointer; }
.drawer-sub { display: flex; flex-direction: column; }
.drawer details a { display: block; padding-left: 28px; font-weight: 600; color: var(--muted); }
.drawer .btn { margin-top: 8px; }
.drawer a[aria-current="page"] { color: var(--accent-text); background: var(--glass-bg); }

@media (max-width: 1040px) {
  .main-nav, .header-actions > .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- 6. Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.display { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 200; letter-spacing: -.035em; line-height: 1.02; }
.display .line { display: block; }
.display em { font-style: italic; font-weight: 900; color: var(--accent-text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; aspect-ratio: 5 / 6; max-width: 440px; width: 100%; justify-self: center; }
.hero-glow {
  position: absolute; inset: 8% 4% 2%; border-radius: 40%;
  background: radial-gradient(closest-side, rgba(224, 71, 106, .35), rgba(255, 205, 216, .25) 60%, transparent);
  filter: blur(40px);
}
.hero-photo {
  position: absolute; inset: 0; margin: 0; padding: 10px; border-radius: 32px;
  box-shadow: 0 30px 60px -24px rgba(140, 13, 44, .35), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .6s var(--ease);
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.chip {
  position: absolute; padding: 10px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip strong { color: var(--accent-text); font-size: 1.05rem; }
/* Chips sit on the glass and background, never over the vial label */
.chip-1 { top: 28%; left: -8%; }
.chip-2 { bottom: 16%; right: -8%; animation-delay: -2.5s; }
.chip-3 { bottom: 4%; left: 4%; animation-delay: -4.5s; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; }
  .chip-2 { right: 0; }
  .chip-1 { left: 0; top: 22%; }
}

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 16px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--crimson-light); font-size: .7rem; }

/* ---------- 7. Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.page-first { padding-top: clamp(40px, 6vw, 72px); }
.section-tint { background: linear-gradient(180deg, transparent, var(--bg-tint) 20%, var(--bg-tint) 80%, transparent); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-head.wide { max-width: none; }
.section-head.row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.section-head.row > div { display: flex; flex-direction: column; gap: 14px; }

/* Categories */
/* Each card is a subgrid over 5 shared rows (photo, title, text, actives, link), so cards in the
   same row line up their actives and links no matter how long each description is. */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { padding: 28px 24px; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 12px; align-content: start; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cat-card .actives { align-self: start; }
.cat-card::before {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; top: -60px; right: -60px;
  background: var(--tint, var(--crimson-light)); opacity: .22; filter: blur(30px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cat-card:hover::before { opacity: .4; transform: scale(1.2); }
.cat-photo { margin: -14px -10px 6px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 12px 28px -16px rgba(140, 13, 44, .35); }
.cat-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover .cat-photo img { transform: scale(1.04); }
.cat-card p { color: var(--muted); font-size: .95rem; }
.actives { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.actives li { font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-bg); }
.card-link { margin-top: auto; font-weight: 800; font-size: .9rem; color: var(--accent-text); display: inline-flex; gap: 6px; align-items: center; }
.card-link span { transition: transform .3s var(--ease); }
.card-link:hover span { transform: translateX(4px); }

@media (max-width: 1024px) { .category-grid { grid-template-columns: repeat(2, 1fr); } .cat-photo { aspect-ratio: 1; } .cat-photo img { object-position: 50% 48%; } }
/* Phones: compact horizontal card. Full, uncropped 4:5 photo on the left, text on the right. */
@media (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat-card { grid-row: auto; grid-template-rows: none; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; padding: 14px; }
  .cat-card > :not(.cat-photo) { grid-column: 2; }
  .cat-photo { grid-column: 1; grid-row: 1 / span 4; margin: 0; aspect-ratio: 4 / 5; align-self: start; }
  .cat-photo img { object-position: 50% 50%; }
  .cat-card h3 { font-size: 1.1rem; }
  .cat-card p { font-size: .9rem; }
  .cat-card .actives { margin: 0; }
}

/* Product list (products.html): type buttons, heading, cards */
.type-filter { display: flex; gap: 8px; margin-bottom: clamp(28px, 4vw, 40px); overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.type-filter::-webkit-scrollbar { display: none; }
.type-filter a {
  flex: none; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: .92rem;
  border: 1px solid var(--line); background: var(--glass-bg-strong); color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.type-filter a:hover { color: var(--accent-text); border-color: var(--crimson-light); transform: translateY(-1px); }
.type-filter a[aria-current="page"] {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #C8325A, var(--crimson) 55%, var(--crimson-deep));
  box-shadow: 0 8px 20px -10px rgba(179, 20, 58, .6);
}
.listing-head { margin-bottom: 18px; }
.listing-intro { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 1.05rem; }
.listing-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.listing-tools:empty { display: none; }
.search-field, .select-field { position: relative; display: flex; align-items: center; }
.search-field { flex: 1 1 260px; max-width: 420px; }
.search-field svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search-field input, .select-field select { width: 100%; font: 600 .95rem var(--font); color: var(--ink); padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-bg-strong); }
.search-field input { padding-left: 42px; }
.search-field input:focus, .select-field select:focus { outline: none; border-color: var(--crimson-light); box-shadow: 0 0 0 4px rgba(224, 71, 106, .18); }
.product[hidden] { display: none !important; }
.listing-count { font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.empty { color: var(--muted); }
.empty a { color: var(--accent-text); font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product { padding: 16px 16px 20px; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; align-content: start; transition: transform .5s var(--ease); }
.product:hover { transform: translateY(-6px); }
.product-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 12px 28px -16px rgba(140, 13, 44, .35); }
.product-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product-media img { transform: scale(1.04); }
.product-name { font-size: 1.05rem; font-weight: 800; }
.product-name a:hover { color: var(--accent-text); }
.tag { position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--glass-bg-strong); color: var(--muted); }
.product-cat { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.specs { margin: 0 0 6px; display: grid; gap: 4px; font-size: .85rem; }
.specs div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.product .btn { margin-top: auto; }

@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } .product-media { aspect-ratio: 1; } .product-media img { object-position: 50% 48%; } }

/* Product page (product.html) */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: clamp(20px, 3vw, 32px); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs [aria-current="page"] { color: var(--ink); }
.pd { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.pd-photo { margin: 0; padding: 10px; border-radius: 28px; position: relative; }
.pd-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.pd-photo .tag { top: 22px; left: 22px; }
.pd-info { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.pd-specs { font-size: .95rem; max-width: 420px; }
.pd-label { font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pd-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.pd-more { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(32px, 5vw, 48px); }
.pd-more p { color: var(--muted); }
.not-found { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.not-found p { color: var(--muted); }
@media (max-width: 860px) { .pd, .pd-more { grid-template-columns: 1fr; } .pd-photo { max-width: 360px; justify-self: center; width: 100%; } }
/* Phones: compact horizontal product card, full-width button underneath (same breakpoint as category cards). */
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product { grid-row: auto; grid-template-rows: none; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding: 12px; }
  .product > :not(.product-media) { grid-column: 2; }
  .product-media { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 4 / 5; align-self: start; }
  .product-media img { object-position: 50% 50%; }
  .product-media .tag { top: 6px; left: 6px; font-size: .6rem; padding: 3px 6px; }
  .product .btn { grid-column: 1 / -1; margin-top: 6px; }
}

/* Authenticity promise strip (Home + product pages) */
.auth-wrap { margin-top: clamp(28px, 4vw, 44px); }
.auth-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; border-radius: var(--radius); }
.auth-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.auth-item + .auth-item { border-left: 1px solid var(--line); }
.auth-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--accent-text); background: var(--blush); }
.auth-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-item p { display: flex; flex-direction: column; gap: 3px; }
.auth-item strong { font-size: .95rem; }
.auth-item span { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.auth-strip.compact { grid-template-columns: 1fr; padding: 4px; margin-top: 6px; }
.auth-strip.compact .auth-item { padding: 12px 14px; }
.auth-strip.compact .auth-item + .auth-item { border-left: 0; border-top: 1px solid var(--line); }
.auth-strip.compact .auth-icon { width: 34px; height: 34px; }
@media (max-width: 760px) { .auth-strip { grid-template-columns: 1fr; } .auth-item + .auth-item { border-left: 0; border-top: 1px solid var(--line); } }

/* Home teasers */
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.teaser { padding: clamp(24px, 3vw, 32px); display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 12px; align-content: start; transition: transform .5s var(--ease); }
.teaser:hover { transform: translateY(-6px); }
.teaser > p:not(.eyebrow) { color: var(--muted); font-size: .95rem; }
.teaser .card-link { padding-top: 6px; }
.teaser:hover .card-link span { transform: translateX(4px); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); overflow: hidden; }
.cta > div { display: flex; flex-direction: column; gap: 12px; }
.cta > div > p:last-child { color: var(--muted); }
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } }

/* OEM/ODM */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 40px; }
.offer { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.offer h3 { font-size: 2rem; font-weight: 900; letter-spacing: .04em; color: var(--accent-text); }
.offer > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; font-weight: 600; font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--crimson) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.step { padding: 22px 18px; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 8px; align-content: start; }
.steps-6 .step { grid-row: span 3; }
.step-icon { justify-self: start; }
.step-icon { flex: none; }
.step-icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--crimson-light), var(--crimson));
  box-shadow: 0 8px 18px -8px rgba(179, 20, 58, .6);
}
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step p { color: var(--muted); font-size: .9rem; }
.step small { margin-top: auto; font-weight: 800; color: var(--accent-text); font-size: .8rem; }

.moq-badge { align-self: flex-start; font-size: .9rem; font-weight: 700; color: var(--ink); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-bg-strong); }
.moq-badge strong { color: var(--accent-text); font-weight: 900; }
.docs { margin-bottom: 40px; }
.docs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.docs-cols .pd-label { margin-bottom: 10px; }
.checks-muted li::before { background-color: var(--muted); }
.fca-split { margin-bottom: 0; }
.fca-split .offer h3 { font-size: 1.4rem; letter-spacing: 0; }
@media (max-width: 700px) { .docs-cols { grid-template-columns: 1fr; } }
.steps-6 { grid-template-columns: repeat(6, 1fr); margin-bottom: 0; }
.steps-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
.steps-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.steps-3 .step { grid-row: span 3; }
.steps-4 .step { grid-row: span 3; }
.sub-head { font-size: 1.6rem; font-weight: 300; margin: clamp(48px, 6vw, 72px) 0 24px; }

@media (max-width: 1024px) { .steps, .steps-4 { grid-template-columns: repeat(2, 1fr); } .steps-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .split, .steps, .steps-6, .steps-4, .steps-3 { grid-template-columns: 1fr; } }

/* Consulting */
.consult-badges { margin: -12px 0 clamp(28px, 4vw, 40px); }
.consult-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* service cards: icon, title, text, checklist share rows across the grid */
.consult-grid .offer { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 14px; align-content: start; }
.consult-grid .offer h3 { font-size: 1.4rem; letter-spacing: 0; }
.consult-grid .checks { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .consult-grid { grid-template-columns: 1fr; } .consult-grid .offer { grid-row: auto; grid-template-rows: none; } }

/* Journey: four stages joined by connectors, current stage highlighted */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.journey li { padding: 24px 20px; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
.journey h3 { font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.journey h3 a:hover { color: var(--accent-text); }
.journey p { color: var(--muted); font-size: .92rem; }
.journey li:not(:last-child)::before {
  content: ""; position: absolute; top: 45px; right: -22px; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--crimson-light), var(--crimson));
}
.journey .is-here { color: #fff; border-color: transparent; background: linear-gradient(135deg, #C8325A, var(--crimson) 55%, var(--crimson-deep)); box-shadow: 0 18px 40px -18px rgba(179, 20, 58, .65); }
.journey .is-here p { color: rgba(255, 255, 255, .86); }
.journey .is-here .step-icon { background: #fff; color: var(--crimson); }
.here-tag { font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
@media (max-width: 1024px) { .journey { grid-template-columns: repeat(2, 1fr); } .journey li:not(:last-child)::before { display: none; } }
@media (max-width: 560px) { .journey { grid-template-columns: 1fr; } .journey li { grid-row: auto; grid-template-rows: none; } }

/* Who we advise */
.audience { list-style: none; padding: 0; margin: 0 0 clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience li { padding: 24px; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
.audience.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .audience.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .audience.cols-4 { grid-template-columns: 1fr; } }
.audience h3 { font-size: 1.15rem; }
.audience p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } .audience li { grid-row: auto; grid-template-rows: none; } }

/* Shipment */
.ship-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; padding: clamp(24px, 3vw, 36px); margin-bottom: 18px; }
.ship-card > div { display: flex; flex-direction: column; gap: 14px; }
.ship-time { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.1; color: var(--accent-text); }
.ship-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { font-weight: 900; letter-spacing: .1em; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-bg); }
.pills-soft span { font-weight: 700; letter-spacing: .02em; }

@media (max-width: 760px) { .ship-card, .ship-pair { grid-template-columns: 1fr; } }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { padding: 14px 14px 24px; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 12px; align-content: start; transition: transform .5s var(--ease); }
.post-cover, .article-cover {
  display: block; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .7), transparent 40%),
    radial-gradient(circle at 70% 80%, var(--tint), transparent 60%),
    linear-gradient(135deg, var(--blush), color-mix(in srgb, var(--tint) 40%, var(--blush)));
}
.post-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; font-weight: 700; color: var(--muted); padding-inline: 6px; }
.post-meta span { color: var(--accent-text); text-transform: uppercase; letter-spacing: .14em; }
.post h3, .post > p, .post > .card-link { padding-inline: 6px; }
.post h3 a:hover { color: var(--accent-text); }
.post > p { color: var(--muted); font-size: .95rem; }

/* Article page (post.html) */
.article { max-width: 760px; margin-inline: auto; }
.article-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(24px, 4vw, 36px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.post-cover, .article-cover { overflow: hidden; }
.post-cover img, .article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .8s var(--ease); }
.post-cover:has(img)::after, .article-cover:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--tint) 35%, transparent)); pointer-events: none; }
.post:hover .post-cover img { transform: scale(1.04); }
.post-cover .tag, .article-cover .tag { z-index: 1; }
.article-cover { aspect-ratio: 21 / 8; border-radius: var(--radius); margin-bottom: clamp(28px, 4vw, 44px); }
.article-cover .tag, .post-cover .tag { top: 14px; left: 14px; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; margin-top: 1.8em; }
.prose ul { list-style: none; padding: 0; display: grid; gap: .5em; }
.prose li { position: relative; padding-left: 1.4em; }
.prose li::before { content: ""; position: absolute; left: .2em; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); }
.sample-note { font-size: .9rem; color: var(--muted); padding: 12px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--line); }
.article-cta { margin-top: clamp(36px, 5vw, 56px); }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-grid > div { display: flex; flex-direction: column; gap: 18px; }
/* About hero: editorial copy + layered photo composition with a credentials card */
.about-title em { font-style: italic; font-weight: 800; color: var(--accent-text); }
.fact-line { list-style: none; margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .7rem; font-weight: 800; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; color: var(--muted); }
.fact-line li { padding: 2px 14px; }
.fact-line li:first-child { padding-left: 0; }
.fact-line li + li { border-left: 1px solid rgba(179, 20, 58, .3); }
.about-stage { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1.08; justify-self: center; }
.stage-frame { position: absolute; left: 20%; top: 0; width: 62%; height: 78%; border: 1px solid rgba(179, 20, 58, .35); border-radius: 28px; transform: translate(18px, -16px); }
.about-stage figure { position: absolute; margin: 0; overflow: hidden; }
.about-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage-main { left: 16%; top: 4%; width: 62%; aspect-ratio: 5 / 6; border-radius: 26px; box-shadow: 0 40px 70px -30px rgba(140, 13, 44, .5); }
.stage-side { border: 5px solid #fff; border-radius: 18px; box-shadow: 0 24px 44px -22px rgba(140, 13, 44, .55); }
.stage-side.s1 { right: 0; top: 16%; width: 30%; aspect-ratio: 4 / 5; }
.stage-side.s2 { left: 0; bottom: 6%; width: 28%; aspect-ratio: 4 / 5; }
.cred { position: absolute; right: 2%; bottom: 3%; padding: 14px 18px; border-radius: 16px; display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--muted); background: rgba(255, 255, 255, .9); }
.cred strong { color: var(--ink); font-size: .88rem; }
.cred-label { font-size: .64rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }

/* Philosophy statement */
.manifesto { margin: 0 auto; max-width: 900px; text-align: center; }
.manifesto blockquote { margin: 0; }
.manifesto blockquote::before { content: "\201C"; display: block; font-size: 5.5rem; line-height: .7; font-weight: 800; color: var(--crimson-light); opacity: .35; }
.manifesto p { font-size: clamp(1.5rem, 3.1vw, 2.45rem); font-weight: 300; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.manifesto em { font-style: italic; font-weight: 800; color: var(--accent-text); }
.manifesto figcaption { margin-top: 22px; font-size: .75rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Principles: numbered editorial list with hairlines */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 72px); }
.principles li { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; padding: 28px 0; border-top: 1px solid var(--line); align-content: start; }
.pr-no { grid-row: span 2; font-size: 2.6rem; font-weight: 200; line-height: 1; letter-spacing: -.04em; color: var(--accent-text); }
.principles h3 { font-size: 1.2rem; }
.principles p { color: var(--muted); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } .principles li { grid-template-columns: 56px minmax(0, 1fr); } .pr-no { font-size: 2rem; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-stage { max-width: 420px; margin-top: 8px; } }

/* Quote */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 56px); overflow: hidden; }
.quote::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; left: -120px; bottom: -160px;
  background: var(--crimson-light); opacity: .22; filter: blur(60px); pointer-events: none;
}
.quote-copy { display: flex; flex-direction: column; gap: 16px; position: relative; }
.quote-copy > p { color: var(--muted); }
.note { font-size: .85rem; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--glass-bg); }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field.full, .full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .8rem; font-weight: 800; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea {
  font: 600 .95rem var(--font); color: var(--ink);
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--glass-bg-strong);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--crimson-light); box-shadow: 0 0 0 4px rgba(224, 71, 106, .18); }
.field input[aria-invalid="true"] { border-color: var(--crimson); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.checkbox-row label {
  display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--ink);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-bg); cursor: pointer;
}
.checkbox-row input { accent-color: var(--crimson); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-weight: 700; color: var(--accent-text); }
.form-status.ok { color: #1D7A45; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--crimson); flex: none; }
.consent a { color: var(--accent-text); font-weight: 700; }
.consent.invalid { color: var(--crimson); }
.turnstile-box { min-height: 65px; }
.turnstile-box[hidden] { display: none; }
.chat-alt { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .92rem; color: var(--muted); }
.chat-alt:empty { display: none; }
.contact-faq { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); }
.audience a { color: var(--accent-text); font-weight: 700; word-break: break-word; }

@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .quote-form { grid-template-columns: 1fr; } }

/* ---------- 9. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .9fr .9fr 1.5fr; gap: 32px; }
.footer-grid > * { display: flex; flex-direction: column; gap: 10px; }
.footer-grid h2 { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.footer-grid nav a { font-weight: 600; }
.footer-grid nav a:hover { color: var(--accent-text); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a:hover { color: var(--accent-text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 10. Motion ---------- */
@keyframes drift1 { to { transform: translate(-12vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(14vw, -12vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-16vw, -8vh) scale(.85); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes loadIn { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
@keyframes rise { from { opacity: .2; transform: translateY(40px) scale(.98); } }
@keyframes grow { to { transform: scaleX(1); } }

/* Page transitions between pages (Chrome, Edge, Safari 18.2+; other browsers switch instantly).
   The header and the ambient light keep their own layers, so only the page content fades and rises. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.ambient { view-transition-name: ambient; }
::view-transition-old(root) { animation: pageOut .28s var(--ease) both; }
::view-transition-new(root) { animation: pageIn .55s var(--ease) both; }
::view-transition-group(site-header), ::view-transition-group(ambient) { animation-duration: 0s; }
@keyframes pageOut { to { opacity: 0; transform: translateY(-16px); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
@keyframes pageFadeOut { to { opacity: 0; } }
@keyframes pageFadeIn { from { opacity: 0; } }

/* Hero load sequence (staggered by --d) */
.load-in { animation: loadIn 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 100ms); }

/* Scroll-driven effects. Browsers without support simply show everything. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .scroll-progress { animation: grow linear both; animation-timeline: scroll(root); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Reduced motion keeps a plain crossfade between pages: no movement, no blur */
  ::view-transition-old(root) { animation: pageFadeOut .2s ease both !important; }
  ::view-transition-new(root) { animation: pageFadeIn .3s ease both !important; }
  html { scroll-behavior: auto; }
}

/* Footer socials */
.footer-email a { color: var(--accent-text); font-weight: 700; }
.footer-address { font-style: normal; display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.footer-address svg { width: 15px; height: 15px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nw { white-space: nowrap; }
.footer-reg { font-size: .78rem; color: var(--muted); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-text); border: 1px solid var(--line); background: var(--glass-bg-strong); transition: background .25s, color .25s, transform .3s var(--ease); }
.footer-social a:hover { background: var(--crimson); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Floating WhatsApp button (shown only when a number is set in site-data.js) */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 22px 7px 7px; border-radius: 999px; cursor: pointer;
  font: 800 1rem/1 var(--font); color: #075E54; letter-spacing: .01em;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(37, 211, 102, .35);
  box-shadow: 0 16px 36px -12px rgba(18, 140, 126, .55), 0 0 0 6px rgba(37, 211, 102, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-btn:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(18, 140, 126, .65), 0 0 0 8px rgba(37, 211, 102, .16); }
.wa-badge {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #3BE27A, #25D366 45%, #128C7E);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 14px -6px rgba(18, 140, 126, .8);
}
/* Soft pulse ring (switched off by the global reduced-motion rule) */
.wa-badge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.wa-glyph { width: 28px; height: 28px; }
.wa-bubble { fill: #fff; }
.wa-phone { fill: #128C7E; }
.wa-panel { padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 200px; background: rgba(255, 255, 255, .97); }
.wa-panel p { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 4px 8px; }
.wa-panel a { padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 700; }
.wa-panel a:hover { background: var(--blush); color: var(--accent-text); }
@media (max-width: 560px) {
  .wa-label { display: none; }
  .wa-btn { padding: 0; border: 3px solid #fff; background: transparent; box-shadow: 0 14px 30px -10px rgba(18, 140, 126, .7), 0 0 0 5px rgba(37, 211, 102, .14); }
  .wa-badge { width: 58px; height: 58px; }
  .wa-glyph { width: 32px; height: 32px; }
}
/* Keep the last footer line clear of the floating WhatsApp button */
body:has(.wa-float) .site-footer { padding-bottom: 110px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.faq-group { display: flex; flex-direction: column; gap: 10px; }
.faq-group h2 { font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.faq-item { border-radius: var(--radius-sm); padding: 0; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 800; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent-text); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 20px 20px; color: var(--muted); line-height: 1.7; }
