/* WiQo South Africa — Educational Archive
   Brand tokens mirrored from wiqo.com (plum / ink / cream, Sora + JetBrains Mono) */

:root {
  --plum: #6d0451;
  --plum-700: #4c0339;
  --plum-500: #864976;
  --plum-300: #d4bfcf;
  --plum-100: #f1eaef;
  --plum-50: #f7f2f5;
  --ink: #0b0409;
  --ink-80: #4f4a4d;
  --ink-60: #726e71;
  --cream: #fcfaf7;
  --mist: #ebedf0;
  --line: rgba(11, 4, 9, 0.12);
  --line-light: rgba(252, 250, 247, 0.18);
  --accent-blue: #2fa8d5;
  --accent-red: #c8102e;

  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(1rem, 4vw, 3.5rem);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--plum); color: var(--cream); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); display: inline-flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--plum-300); }

h1, h2, h3, h4 { font-weight: 300; margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
.h-xl { font-size: clamp(2.8rem, 8.2vw, 8.5rem); letter-spacing: -0.045em; line-height: 0.95; }
.h-lg { font-size: clamp(2.2rem, 5.4vw, 5rem); }
.h-md { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.12; }
.h-sm { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.015em; line-height: 1.3; font-weight: 400; }
em.accent, .accent { font-style: normal; color: var(--plum); }
.on-dark .accent { color: var(--plum-300); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-80); max-width: 38rem; }
.on-dark .lede { color: rgba(252, 250, 247, 0.75); }
p { margin: 0 0 1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 1.5rem; border-radius: 999px;
  background: var(--plum); color: var(--cream);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
  min-height: 44px;
}
.btn:hover { background: var(--plum-500); }
.btn:active { background: var(--plum-700); transform: scale(0.98); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--plum-100); }
.on-dark .btn--ghost { color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-light); }
.on-dark .btn--ghost:hover { background: rgba(252, 250, 247, 0.08); }
.btn--light { background: var(--cream); color: var(--plum); }
.btn--light:hover { background: var(--plum-100); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease), color 0.4s;
}
.site-header.is-scrolled { background: rgba(252, 250, 247, 0.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--plum); }
.brand svg { height: 1.55rem; width: auto; }
.brand .mono { color: var(--ink-60); padding-left: 0.85rem; border-left: 1px solid var(--line); line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-size: 0.88rem; font-weight: 400; position: relative; padding: 0.5rem 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px; background: var(--plum); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 0.7rem 1.2rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); padding: 1rem var(--pad) 2rem; box-shadow: 0 20px 40px rgba(11,4,9,0.08);
    clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease);
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); }
  .nav a:not(.btn) { font-size: 1.6rem; font-weight: 300; padding: 0.6rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1.2rem; }
  .menu-open .site-header { background: var(--cream); }
  .brand .mono { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 2.5rem) 0 2.5rem; overflow: hidden; }
.hero .wrap { width: 100%; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: end; }
.hero-top .h-xl { margin-top: 1.4rem; font-size: clamp(2.6rem, 6.3vw, 6.6rem); }
.hero-aside .lede { margin-bottom: 1.8rem; font-size: clamp(1rem, 1.2vw, 1.12rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line-mask > span { display: block; transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.line-mask:nth-child(2) > span { animation-delay: 0.12s; }
.line-mask:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0.5s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* hero shelf: the whole range standing on one line */
.shelf {
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 clamp(0.5rem, 1.6vw, 1.75rem);
  --shelf: clamp(12rem, 28vh, 19rem);
}
.shelf li { opacity: 0; transform: translateY(24px); animation: fadeUp 1.1s var(--ease) forwards; animation-delay: var(--d); }
.shelf a { display: flex; flex-direction: column; height: 100%; }
.shelf__img { height: var(--shelf); display: flex; align-items: flex-end; justify-content: center; position: relative; }
.shelf__img::after { /* soft contact shadow on the shelf line */
  content: ""; position: absolute; bottom: -4px; left: 22%; right: 22%; height: 8px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(76, 3, 57, 0.18), transparent);
}
.shelf__img img {
  height: calc(var(--h) * 100%); width: auto; max-width: 100%; object-fit: contain; object-position: bottom;
  mix-blend-mode: multiply; transition: transform 0.7s var(--ease); transform-origin: bottom;
}
.shelf a:hover .shelf__img img { transform: translateY(-10px); }
.shelf__label { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 0 0.5rem; border-top: 1px solid var(--ink); }
.shelf__label .mono { color: var(--ink-60); }
.shelf__label b { font-weight: 400; font-size: 0.95rem; line-height: 1.25; letter-spacing: -0.01em; transition: color 0.3s; }
.shelf__label small { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum); }
.shelf a:hover .shelf__label b { color: var(--plum); }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 1.5rem); }
  .hero-top { grid-template-columns: 1fr; }
  .shelf {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); gap: 1rem; --shelf: 13rem;
    margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: none;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf li { flex: 0 0 36vw; scroll-snap-align: start; }
}

/* ---------- chapter page opening ---------- */
.page-hero { padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: end; margin-top: clamp(2.5rem, 6vw, 5rem); }
.page-hero .h-xl { font-size: clamp(2.6rem, 6.4vw, 6.5rem); margin-top: 1.4rem; }
.page-hero .lede { margin: 0; }
.page-hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* ---------- home: chapter index ---------- */
.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.chapters a {
  display: grid; grid-template-columns: 5rem minmax(0, 1.1fr) minmax(0, 1fr) 3rem; gap: 1.5rem; align-items: center;
  padding: clamp(1.4rem, 2.6vw, 2.2rem) 0; border-bottom: 1px solid var(--line); position: relative; isolation: isolate;
}
.chapters a::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--pad)); background: var(--plum-100); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); z-index: -1; }
.chapters a:hover::before { transform: scaleY(1); }
.chapters .no { color: var(--ink-60); }
.chapters .ttl { font-size: clamp(1.7rem, 3.6vw, 3.2rem); letter-spacing: -0.035em; line-height: 1.05; transition: transform 0.5s var(--ease), color 0.3s; }
.chapters a:hover .ttl { transform: translateX(8px); color: var(--plum); }
.chapters .tz { color: var(--ink-80); }
.chapters .go { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.4s, color 0.4s, transform 0.5s var(--ease); }
.chapters a:hover .go { background: var(--plum); color: var(--cream); box-shadow: none; transform: rotate(-45deg); }
@media (max-width: 800px) {
  .chapters a { grid-template-columns: 2.6rem 1fr 2.6rem; gap: 0.4rem 1rem; }
  .chapters .tz { grid-column: 2; grid-row: 2; font-size: 0.92rem; }
  .chapters .go { grid-row: 1 / span 2; grid-column: 3; width: 2.6rem; height: 2.6rem; }
}

/* ---------- home: PRX feature ---------- */
.prx-feature { padding-top: 0; }
.chapters-sec { padding-bottom: clamp(3rem, 6vw, 5rem); }
.prx-feature__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 2rem; }
.prx-feature__head .h-md { max-width: 34ch; }
.prx-feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.prx-card { display: grid; grid-template-columns: 0.9fr 1fr; border-radius: 1.5rem; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease); }
.prx-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--plum-300), 0 30px 60px -30px rgba(109, 4, 81, 0.4); }
.prx-card__media { background: var(--plum-50); aspect-ratio: 4 / 5; }
.prx-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.prx-card:hover .prx-card__media img { transform: scale(1.05); }
.prx-card__body { padding: clamp(1.4rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; gap: 0.8rem; }
.prx-card__body .mono { color: var(--plum); }
.prx-card__body h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.035em; }
.prx-card__body p { color: var(--ink-80); margin: 0; }
.prx-card__go { margin-top: auto; display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink) !important; }
.prx-card:hover .arrow { transform: translateX(4px); }
.prx-card .arrow { transition: transform 0.4s var(--ease); }
@media (max-width: 1000px) { .prx-feature__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .prx-card { grid-template-columns: 1fr; } .prx-card__media { aspect-ratio: 5 / 4; } }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--cream); overflow: hidden; padding: 1.15rem 0; border-block: 1px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__item { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-size: clamp(1rem, 1.8vw, 1.45rem); font-weight: 300; white-space: nowrap; letter-spacing: -0.01em; }
.marquee__item svg { width: 1rem; height: 1rem; color: var(--plum-300); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 11vw, 10rem) 0; position: relative; }
.section--tight { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.on-dark { background: var(--ink); color: var(--cream); }
.on-plum { background: var(--plum); color: var(--cream); }
.on-blush { background: var(--plum-100); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .h-lg { margin-top: 1.2rem; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* manifesto: words light up on scroll */
.manifesto { font-size: clamp(1.7rem, 4.1vw, 3.9rem); line-height: 1.15; letter-spacing: -0.035em; max-width: 72rem; }
.manifesto .w { color: rgba(11, 4, 9, 0.14); transition: color 0.5s var(--ease); }
.manifesto .w.lit { color: var(--ink); }
.manifesto .w.lit.accent-w { color: var(--plum); }
.manifesto-foot { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 3rem; color: var(--ink-60); }

/* ---------- science ---------- */
.science-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.science-sticky { position: sticky; top: calc(var(--header-h) + 2rem); height: fit-content; }
.skin { width: 100%; height: auto; display: block; border-radius: 1.5rem; background: #150a12; }
.skin .layer { transition: opacity 0.8s var(--ease); }
.skin .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; fill: rgba(252,250,247,0.55); transition: fill 0.6s; }
.skin .stage { opacity: 0; transition: opacity 0.9s var(--ease); }
.skin[data-step="1"] .s1, .skin[data-step="2"] .s1, .skin[data-step="2"] .s2, .skin[data-step="3"] .s1, .skin[data-step="3"] .s2, .skin[data-step="3"] .s3 { opacity: 1; }
.skin[data-step="1"] .label.l-epi, .skin[data-step="2"] .label.l-derm, .skin[data-step="3"] .label.l-derm { fill: var(--plum-300); }
.skin .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
.skin .pulse:nth-of-type(2n) { animation-delay: 0.6s; } .skin .pulse:nth-of-type(3n) { animation-delay: 1.2s; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
.skin .fibre { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 2.4s var(--ease); }
.skin[data-step="3"] .fibre { stroke-dashoffset: 0; }
.science-caption { display: flex; justify-content: space-between; margin-top: 1rem; color: rgba(252,250,247,0.5); }
.step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; border-top: 1px solid var(--line-light); opacity: 0.35; transition: opacity 0.6s var(--ease); }
.step.is-active { opacity: 1; }
.step .mono { color: var(--plum-300); margin-bottom: 1.2rem; display: block; }
.step h3 { margin-bottom: 1.2rem; }
.step p { color: rgba(252,250,247,0.72); max-width: 32rem; }
.formula { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: 1rem; overflow: hidden; margin-top: 1.6rem; }
.formula div { background: var(--ink); padding: 1.1rem; }
.formula b { display: block; font-weight: 300; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--cream); }
.formula span { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(252,250,247,0.5); }
@media (max-width: 900px) {
  .science-grid { grid-template-columns: 1fr; }
  .science-sticky { position: sticky; top: var(--header-h); z-index: 2; background: var(--ink); padding: 0.5rem 0 1rem; }
  .science-sticky .skin { max-height: 34vh; object-fit: contain; }
  .science-caption { display: none; }
  .step { min-height: auto; padding: 2.5rem 0; opacity: 1; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.stat { padding: 2.2rem 1.5rem 0 0; border-right: 1px solid var(--line-light); }
.stat + .stat { padding-left: 1.5rem; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-weight: 300; font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -0.05em; line-height: 1; }
.stat b sup { font-size: 0.4em; vertical-align: top; position: relative; top: 0.25em; margin-left: 0.1em; color: var(--plum-300); }
.stat .mono { color: rgba(252,250,247,0.65); display: block; margin-top: 1rem; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.6rem 1rem 1.6rem 0; border-bottom: 1px solid var(--line-light); }
  .stat + .stat { padding-left: 0; }
  .stat:nth-child(2n) { padding-left: 1rem; border-right: 0; }
}

/* ---------- archive index ---------- */
.archive-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.65rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: all 0.3s var(--ease); min-height: 40px;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--plum); color: var(--plum); }
.chip[aria-pressed="true"] { background: var(--plum); color: var(--cream); box-shadow: none; }
.chip .count { opacity: 0.6; margin-left: 0.35rem; }
.view-toggle { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.5rem 0.9rem; border-radius: 999px; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-row a {
  display: grid; grid-template-columns: 5rem 1fr 12rem 10rem 3rem; align-items: center; gap: 1rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line); position: relative;
  transition: padding 0.5s var(--ease), color 0.4s;
}
.index-row a::before { content: ""; position: absolute; inset: 0; background: var(--plum-100); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); z-index: -1; }
.index-row a:hover::before, .index-row a:focus-visible::before { transform: scaleY(1); }
.index-row a:hover { padding-left: 1.2rem; padding-right: 1.2rem; }
.index-row .no { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-60); }
.index-row .name { font-size: clamp(1.3rem, 2.6vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.1; }
.index-row .name small { display: block; font-size: 0.85rem; letter-spacing: 0; color: var(--ink-60); margin-top: 0.35rem; }
.index-row .cat, .index-row .fmt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-80); }
.index-row .go { width: 2.6rem; height: 2.6rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: all 0.4s var(--ease); justify-self: end; }
.index-row a:hover .go { background: var(--plum); color: var(--cream); box-shadow: none; transform: rotate(-45deg); }
.index-row .new { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--plum); color: var(--cream); padding: 0.2rem 0.5rem; border-radius: 999px; vertical-align: middle; margin-left: 0.6rem; position: relative; top: -0.3em; }
.index-row[hidden] { display: none; }
.index-row .thumb { display: none; }
@media (max-width: 900px) {
  .index-row a { grid-template-columns: 4.5rem 1fr 2.6rem; gap: 0.75rem 1rem; padding: 1rem 0; }
  .index-row a:hover { padding-left: 0; padding-right: 0; }
  .index-row .no, .index-row .cat, .index-row .fmt { display: none; }
  .index-row .thumb { display: block; width: 4.5rem; aspect-ratio: 4/5; background: #fff; border-radius: 0.6rem; overflow: hidden; }
  .index-row .thumb img { width: 100%; height: 100%; object-fit: contain; }
}
.cursor-preview {
  position: fixed; left: 0; top: 0; width: 240px; aspect-ratio: 4/5; pointer-events: none; z-index: 40;
  border-radius: 1rem; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(11,4,9,0.35);
  opacity: 0; scale: 0.8; transition: opacity 0.35s var(--ease), scale 0.45s var(--ease);
}
.cursor-preview.is-on { opacity: 1; scale: 1; }
.cursor-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.3s; }
.cursor-preview img.is-on { opacity: 1; }
@media (hover: none), (max-width: 900px) { .cursor-preview { display: none; } }

.grid-view { display: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.archive[data-view="grid"] .index { display: none; }
.archive[data-view="grid"] .grid-view { display: grid; }
.card { display: flex; flex-direction: column; border-radius: 1.25rem; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--plum-300), 0 30px 60px -30px rgba(109,4,81,0.4); }
.card .media { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.9s var(--ease); }
.card:hover .media img { transform: scale(1.05); }
.card .media .mono { position: absolute; top: 1rem; left: 1rem; color: var(--ink-60); }
.card .body { padding: 1.2rem 1.25rem 1.4rem; border-top: 1px solid var(--line); background: var(--cream); flex: 1; }
.card .body h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.5rem; }
.card .body .mono { color: var(--plum); }
.card[hidden] { display: none; }

/* ---------- skin concerns chooser ---------- */
.cx { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cx > * { min-width: 0; }
.cx__side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.cx__list { margin-top: 1.4rem; border-top: 1px solid var(--ink); }
.cx__tab {
  width: 100%; display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 0.8rem; align-items: center; text-align: left;
  padding: 1.05rem 0.9rem 1.05rem 0; border-bottom: 1px solid var(--line); position: relative; isolation: isolate;
  transition: color 0.3s, padding 0.5s var(--ease);
}
.cx__tab::before { content: ""; position: absolute; inset: 0 0 0 -0.9rem; border-radius: 0.6rem; background: var(--plum-100); opacity: 0; transition: opacity 0.3s; z-index: -1; }
.cx__tab:hover::before { opacity: 0.6; }
.cx__no { color: var(--ink-60); transition: color 0.3s; }
.cx__nm { font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -0.02em; line-height: 1.2; }
.cx__ct {
  min-width: 1.7rem; height: 1.7rem; border-radius: 999px; display: grid; place-items: center; padding: 0 0.45rem;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-60); font-size: 0.66rem;
}
.cx__tab[aria-selected="true"] { color: var(--plum); padding-left: 0.9rem; }
.cx__tab[aria-selected="true"]::before { opacity: 1; }
.cx__tab[aria-selected="true"] .cx__no { color: var(--plum); }
.cx__tab[aria-selected="true"] .cx__ct { background: var(--plum); color: var(--cream); box-shadow: none; }

.cx__panel { background: var(--plum-100); border-radius: 1.75rem; padding: clamp(1.5rem, 4vw, 3.5rem); animation: panelIn 0.7s var(--ease) both; }
.cx__panel:focus-visible { outline-offset: 4px; }
.cx__panel .h-lg { margin: 1.1rem 0 1.2rem; font-size: clamp(2rem, 4.2vw, 3.8rem); }
.cx__panel .lede { margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.cx-group + .cx-group { margin-top: 1.8rem; }
.cx-group__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; padding-bottom: 0.8rem; margin-bottom: 0.9rem; border-bottom: 1px solid rgba(109, 4, 81, 0.18); }
.cx-group__head .mono { color: var(--plum); }
.cx-group__note { font-size: 0.85rem; color: var(--ink-60); }
.cx-group__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.8rem; }
.cx-card {
  display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.6rem 2.6rem 0.6rem 0.6rem;
  background: var(--cream); border-radius: 1.1rem; position: relative; box-shadow: 0 0 0 1px rgba(109, 4, 81, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.4s; animation: panelIn 0.7s var(--ease) both;
}
.cx-card:nth-child(2) { animation-delay: 0.06s; } .cx-card:nth-child(3) { animation-delay: 0.12s; } .cx-card:nth-child(4) { animation-delay: 0.18s; }
.cx-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--plum-300), 0 24px 40px -26px rgba(109, 4, 81, 0.45); }
.cx-card__img { height: 6.4rem; border-radius: 0.75rem; background: #fff; display: flex; align-items: center; justify-content: center; padding: 0.6rem 0.4rem; }
.cx-card__img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--ease); }
.cx-card:hover .cx-card__img img { transform: scale(1.06); }
.cx-card__body { display: flex; flex-direction: column; gap: 0.2rem; }
.cx-card__body .mono { color: var(--ink-60); font-size: 0.62rem; }
.cx-card__body b { font-weight: 400; font-size: 1.05rem; letter-spacing: -0.015em; line-height: 1.2; }
.cx-card__body small { color: var(--ink-60); font-size: 0.8rem; line-height: 1.4; }
.cx-card__go { position: absolute; right: 0.9rem; top: 50%; translate: 0 -50%; color: var(--plum); transition: transform 0.4s var(--ease); }
.cx-card:hover .cx-card__go { transform: translateX(3px); }
@media (max-width: 900px) {
  .cx { grid-template-columns: 1fr; }
  .cx__side { position: relative; top: 0; }
  .cx__list { display: flex; overflow-x: auto; scroll-padding-inline: var(--pad); gap: 0.5rem; border-top: 0; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 0.3rem; scrollbar-width: none; }
  .cx__list::-webkit-scrollbar { display: none; }
  .cx__tab { flex: none; width: auto; grid-template-columns: auto auto; gap: 0.5rem; padding: 0.65rem 1rem !important; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
  .cx__tab::before { inset: 0; border-radius: inherit; }
  .cx__tab .cx__ct { display: none; }
  .cx__nm { font-size: 0.95rem; }
}

/* ---------- protocol ---------- */
.protocol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.p-step {
  display: grid; grid-template-columns: minmax(7rem, 0.55fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 4vw, 3.2rem) 0; border-bottom: 1px solid var(--line); align-items: start;
}
.p-step__no { font-size: clamp(4rem, 9vw, 8.5rem); font-weight: 200; line-height: 0.8; letter-spacing: -0.06em; color: var(--plum); font-variant-numeric: tabular-nums; }
.p-step__body .mono { color: var(--ink-60); display: block; margin-bottom: 1rem; }
.p-step__body .h-md { margin-bottom: 1rem; }
.p-step__body p { color: var(--ink-80); max-width: 36rem; margin: 0; }
.p-step__uses { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.2rem; }
.p-step__uses > .mono { color: var(--plum); margin-bottom: 0.4rem; }
.p-step__aside { color: var(--ink-60); font-size: 0.92rem; margin: 0; max-width: 22rem; }
.mini { display: flex; align-items: center; gap: 0.85rem; padding: 0.4rem 0.9rem 0.4rem 0.4rem; border-radius: 0.8rem; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 0.92rem; font-weight: 400; line-height: 1.25; transition: box-shadow 0.3s, transform 0.4s var(--ease); }
.mini:hover { box-shadow: 0 0 0 1px var(--plum); transform: translateX(4px); }
.mini__img { flex: none; width: 2.8rem; aspect-ratio: 4 / 5; border-radius: 0.5rem; background: var(--plum-50); overflow: hidden; }
.mini__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.protocol-note { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.5rem; color: var(--ink-60); font-size: 0.9rem; max-width: 52rem; }
@media (max-width: 900px) {
  .p-step { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .p-step__no { font-size: 3.6rem; }
  .p-step__uses { grid-column: 2; }
}

/* ---------- actives glossary ---------- */
.actives { border-top: 1px solid var(--line-light); }
.active-item { border-bottom: 1px solid var(--line-light); }
.active-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 7rem 1fr auto; gap: 1rem; align-items: center; padding: 1.6rem 0; }
.active-item summary::-webkit-details-marker { display: none; }
.active-item .sym { font-family: var(--mono); font-size: 0.85rem; color: var(--plum-300); }
.active-item .nm { font-size: clamp(1.3rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; transition: color 0.3s, transform 0.5s var(--ease); }
.active-item summary:hover .nm { color: var(--plum-300); transform: translateX(6px); }
.active-item .pm { width: 2.4rem; height: 2.4rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-light); position: relative; flex: none; }
.active-item .pm::before, .active-item .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.8rem; height: 1px; background: currentColor; translate: -50% -50%; transition: transform 0.4s var(--ease); }
.active-item .pm::after { transform: rotate(90deg); }
.active-item[open] .pm::after { transform: rotate(0); }
.active-item .ans { display: grid; grid-template-columns: 7rem 1fr 1fr; gap: 1rem 2rem; padding: 0 0 2rem; color: rgba(252,250,247,0.72); }
.active-item .ans > :first-child { grid-column: 2; }
.active-item .ans .found { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(252,250,247,0.5); }
.active-item .ans .found a { color: var(--cream); border-bottom: 1px solid var(--line-light); display: inline-block; margin: 0.35rem 0.6rem 0 0; }
.active-item .ans .found a:hover { color: var(--plum-300); border-color: var(--plum-300); }
@media (max-width: 800px) {
  .active-item summary { grid-template-columns: 4rem 1fr auto; }
  .active-item .ans { grid-template-columns: 1fr; }
  .active-item .ans > :first-child { grid-column: auto; }
}

/* ---------- climate feature ---------- */
/* 12-month treatment calendar */
.cal { background: var(--cream); border-radius: 1.5rem; padding: clamp(1.2rem, 3vw, 2.5rem); box-shadow: 0 0 0 1px var(--line); }
.cal__row { display: grid; grid-template-columns: minmax(12rem, 1.3fr) repeat(12, minmax(0, 1fr)); align-items: center; column-gap: 0; }
.cal__row + .cal__row { border-top: 1px solid var(--line); }
.cal__row--head { padding-bottom: 0.8rem; }
.cal__row--head .cal__label .mono { color: var(--ink-60); }
.cal__row--seasons { border-top: 0 !important; padding: 0 0 1rem; }
.cal__label { padding: 1.3rem 1.5rem 1.3rem 0; display: flex; flex-direction: column; gap: 0.2rem; }
.cal__label b { font-weight: 400; letter-spacing: -0.01em; }
.cal__label small { color: var(--ink-60); font-size: 0.82rem; }
.cal__mnote { display: none; }
.cal__month { text-align: center; color: var(--ink-80); padding: 0.4rem 0; border-radius: 999px; }
.cal__month .short { display: none; }
.cal__month.is-now { background: var(--ink); color: var(--cream); }
.cal__season { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); text-align: center; border-top: 1px solid var(--plum-300); padding-top: 0.45rem; margin: 0 0.2rem; }
.cal__bar { height: 2.6rem; border-radius: 999px; display: flex; align-items: center; padding: 0 1rem; margin: 0 0.15rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; transform-origin: left; }
.cal__bar span { overflow: hidden; text-overflow: ellipsis; }
.cal__bar--solid { background: var(--plum); color: var(--cream); }
.cal__bar--daily { color: var(--plum-700); background: repeating-linear-gradient(90deg, rgba(109, 4, 81, 0.28) 0 1px, transparent 1px 7px), var(--plum-100); }
.cal__bar--daily span { background: var(--plum-100); padding-right: 0.5rem; }
.cal__bar--dashed { color: var(--ink-60); background: transparent; box-shadow: none; border: 1px dashed rgba(11, 4, 9, 0.35); }
.cal.reveal .cal__bar { transform: scaleX(0); transition: transform 1.4s var(--ease); }
.cal.reveal.is-in .cal__bar { transform: none; }
.cal.reveal.is-in .cal__row:nth-of-type(4) .cal__bar { transition-delay: 0.15s; }
.cal.reveal.is-in .cal__row:nth-of-type(5) .cal__bar { transition-delay: 0.3s; }
@media (max-width: 900px) {
  .cal__row { grid-template-columns: 0 repeat(12, minmax(0, 1fr)); }
  .cal__label { grid-column: 1 / -1; padding: 1.1rem 0 0.6rem; }
  .cal__row--head .cal__label, .cal__row--seasons .cal__label { display: none; }
  .cal__row--seasons .cal__season { grid-row: 1; }
  .cal__row:not(.cal__row--head):not(.cal__row--seasons) .cal__bar { margin-bottom: 1.1rem; }
  .cal__season { font-size: 0.52rem; letter-spacing: 0.04em; margin: 0 0.1rem; }
  .cal__bar { font-size: 0.6rem; padding: 0 0.6rem; height: 2.2rem; }
  .cal__bar--short span { display: none; }
  .cal__mnote { display: block; color: var(--plum) !important; }
}
@media (max-width: 560px) {
  .cal__month .full { display: none; }
  .cal__month .short { display: inline; }
}

/* ---------- contact / cta ---------- */
.cta { text-align: center; overflow: hidden; position: relative; }
.cta .h-xl { max-width: 14ch; margin: 1.5rem auto 2rem; }
.cta .lede { margin: 0 auto 2.5rem; }
.cta-orb { position: absolute; width: 60vmax; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(134,73,118,0.55), transparent 60%); pointer-events: none; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { scale: 1.15; opacity: 0.7; } }
.cta .wrap { position: relative; }
.cta-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 4rem 0 2rem; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.foot-grid h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(252,250,247,0.5); margin-bottom: 1rem; font-weight: 400; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 0.5rem; }
.foot-grid a:hover { color: var(--plum-300); }
.foot-grid p { color: rgba(252,250,247,0.6); font-size: 0.9rem; max-width: 26rem; }
.foot-mark { color: var(--plum); margin: 3rem 0 1rem; }
.foot-mark svg { width: 100%; height: auto; opacity: 0.95; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: rgba(252,250,247,0.45); font-size: 0.8rem; }
.foot-legal p { margin: 0; max-width: 52rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; color: var(--ink-60); padding-top: calc(var(--header-h) + 1.5rem); }
.crumbs a:hover { color: var(--plum); }
.p-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding: 2rem 0 clamp(4rem, 8vw, 7rem); align-items: start; }
.p-media { position: sticky; top: calc(var(--header-h) + 1.5rem); border-radius: 1.75rem; background: #fff; aspect-ratio: 4/5; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.p-media img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.p-media:hover img { transform: scale(1.07); }
.p-media .badge { position: absolute; top: 1.2rem; left: 1.2rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.p-media .badge span { font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--plum-100); color: var(--plum); }
.p-media .badge span.solid { background: var(--plum); color: var(--cream); }
.p-media .entry { position: absolute; bottom: 1.2rem; right: 1.4rem; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-60); }
.variants { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.variants button { width: 4.4rem; aspect-ratio: 4/5; background: #fff; border-radius: 0.7rem; box-shadow: 0 0 0 1px var(--line); overflow: hidden; position: relative; }
.variants button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--plum); }
.variants button img { width: 100%; height: 100%; object-fit: contain; }
.p-info h1 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); letter-spacing: -0.04em; margin: 1.2rem 0 1.2rem; }
.p-info .tagline { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--plum); margin-bottom: 2rem; font-weight: 400; letter-spacing: -0.01em; }
.spec { border-top: 1px solid var(--ink); margin: 2rem 0 2.5rem; }
.spec div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-60); padding-top: 0.2rem; }
.spec dd { margin: 0; font-weight: 400; }
.p-block { padding: 2rem 0; border-top: 1px solid var(--line); }
.p-block h2 { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--plum); margin-bottom: 1rem; font-weight: 400; }
.p-block p, .p-block li { color: var(--ink-80); }
.p-block ul { padding-left: 1.1rem; margin: 0; }
.p-block li { margin-bottom: 0.45rem; }
.p-block li::marker { color: var(--plum); }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0 !important; }
.pill-list li { margin: 0; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--plum-100); color: var(--plum-700) !important; font-size: 0.88rem; font-weight: 400; }
.note { font-size: 0.85rem; color: var(--ink-60); padding: 1rem 1.2rem; border-radius: 0.9rem; background: var(--mist); margin-top: 1rem; display: flex; gap: 0.75rem; }
.note svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: var(--plum); }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.pager a { padding: 2.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; transition: color 0.3s; }
.pager a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 2rem; align-items: flex-end; }
.pager a:first-child { padding-right: 2rem; }
.pager a .mono { color: var(--ink-60); }
.pager a b { font-weight: 300; font-size: clamp(1.2rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; }
.pager a:hover b { color: var(--plum); }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1.25rem; }
@media (max-width: 900px) {
  .p-hero { grid-template-columns: 1fr; }
  .p-media { position: relative; top: 0; }
  .spec div { grid-template-columns: 7rem 1fr; }
  .pager a { padding: 1.6rem 0; }
}

/* ---------- misc ---------- */
.progress { position: fixed; left: 0; top: 0; height: 2px; background: var(--plum); width: 100%; transform-origin: left; transform: scaleX(0); z-index: 60; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--plum); color: var(--cream); padding: 0.6rem 1rem; border-radius: 999px; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 70; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .manifesto .w { color: var(--ink); }
  .line-mask > span { transform: none; }
  .fade-up { opacity: 1; transform: none; }
}

/* =========================================================
   v4 (Oct 2026): end-user homepage
   ========================================================= */

/* running banner: slimmer */
.marquee { padding: 0.7rem 0; }
.marquee__item { font-size: clamp(0.85rem, 1.2vw, 1.05rem); gap: 1.6rem; padding-right: 1.6rem; }
.marquee__item svg { width: 0.75rem; height: 0.75rem; }

/* header over the video hero */
.has-video-hero .site-header:not(.is-scrolled) { color: var(--cream); }
.has-video-hero .site-header:not(.is-scrolled) .brand { color: var(--cream); }
.has-video-hero .site-header:not(.is-scrolled) .brand .mono { color: rgba(252,250,247,0.75); border-color: var(--line-light); }
.has-video-hero .site-header:not(.is-scrolled) .nav a:not(.btn)::after { background: var(--cream); }
.has-video-hero .site-header:not(.is-scrolled) .menu-btn { box-shadow: inset 0 0 0 1px var(--line-light); }
.menu-btn span { background: currentColor; }
@media (max-width: 900px) {
  .nav { color: var(--ink); }
  .has-video-hero.menu-open .site-header { color: var(--ink); }
  .has-video-hero.menu-open .site-header .brand { color: var(--plum); }
}

/* video hero */
.vhero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 7vw, 5.5rem); background: #1d1a22; }
.vhero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vhero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,4,9,0.45) 0%, rgba(11,4,9,0) 28%, rgba(11,4,9,0.15) 50%, rgba(11,4,9,0.72) 100%); }
.vhero__inner { position: relative; width: 100%; }
.vhero .h-xl { font-size: clamp(2.6rem, 7vw, 7rem); margin: 1.2rem 0 1.4rem; max-width: 12ch; }
.vhero .lede { color: rgba(252,250,247,0.88); margin-bottom: 1.8rem; }
.vhero .eyebrow { color: var(--cream); }
.vhero .accent { color: var(--plum-300); }
.vhero__toggle { position: absolute; right: var(--pad); bottom: 1.5rem; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-light); display: grid; place-items: center; color: var(--cream); background: rgba(11,4,9,0.25); }
.vhero__toggle:hover { background: rgba(11,4,9,0.5); }
.i-pause { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.vhero__toggle.is-paused .i-pause { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; margin-left: 3px; }
@media (max-width: 700px) {
  .vhero { min-height: 88svh; }
  .vhero__toggle { bottom: auto; top: calc(var(--header-h) + 0.75rem); }
}

/* treatments */
.tx-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); max-width: 46rem; }
.tx-head .lede { margin: 0; }
.tx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.tx-card { display: flex; flex-direction: column; border-radius: 1.5rem; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease); }
.tx-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--plum-300), 0 30px 60px -30px rgba(109, 4, 81, 0.4); }
.tx-card__media { aspect-ratio: 16 / 11; overflow: hidden; position: relative; background: var(--mist); }
.tx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tx-card__media--glow { background: radial-gradient(60% 70% at 50% 60%, rgba(255,255,255,0.9), transparent 70%), linear-gradient(110deg, #f2a65a 0%, #f6c9a8 38%, #e9d6f0 72%, #c9c3f2 100%); }
.tx-card__media--glow img { object-fit: contain; padding: 8% 0 4%; filter: drop-shadow(0 24px 30px rgba(76,3,57,0.25)); }
.tx-card:hover .tx-card__media img { transform: scale(1.04); }
.tx-card__body { padding: clamp(1.4rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; flex: 1; }
.tx-card__body .mono { color: var(--plum); }
.tx-card__body h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; }
.tx-card__body p { color: var(--ink-80); margin: 0 0 0.6rem; }
.tx-card__body .btn { margin-top: auto; }
.tag-new { position: absolute; top: 1rem; left: 1rem; background: var(--plum); color: var(--cream); padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.62rem; }
@media (max-width: 800px) { .tx-grid { grid-template-columns: 1fr; } }

/* stats: compact band */
.section--compact { padding: clamp(2rem, 4vw, 3rem) 0; }
.stats--compact { border-top: 0; }
.stats--compact .stat { padding-top: 0.4rem; }
.stats--compact .stat b { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.stats--compact .stat .mono { margin-top: 0.6rem; }
@media (max-width: 800px) { .stats--compact .stat { padding: 1rem 1rem 1rem 0; } .stats--compact .stat:nth-child(n+3) { border-bottom: 0; } }

/* product ranges */
.range { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.range#homecare { padding-top: clamp(1rem, 2vw, 2rem); }
.range__banner { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0; margin-bottom: clamp(2rem, 4vw, 3rem); background: var(--plum-700); }
.range__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; mix-blend-mode: luminosity; }
.range__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(76,3,57,0.92) 0%, rgba(76,3,57,0.55) 60%, rgba(76,3,57,0.2) 100%); }
.range__banner .wrap { position: relative; z-index: 1; }
.range__banner .h-lg { margin: 1rem 0 1rem; }
.range__banner .lede { margin: 0; }
.range__cards { display: grid; gap: 1.25rem; }
.range__cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.range__cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.range .card .media { background: #fff; }
.range .card .media img { padding: 6%; }
.range .card .body { display: flex; flex-direction: column; gap: 0.35rem; }
.range .card .body h3 { margin: 0; }
.range .card .body p { color: var(--ink-80); font-size: 0.92rem; margin: 0 0 0.8rem; }
.card__go { margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink) !important; }
.card:hover .card__go .arrow { transform: translateX(4px); }
.card__go .arrow { transition: transform 0.4s var(--ease); }
@media (max-width: 1000px) { .range__cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .range__cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .range__cards { gap: 0.75rem; }
  .range .card .body { padding: 0.9rem; }
  .range .card .body h3 { font-size: 1rem; }
  .range .card .body p { display: none; }
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-wrap .h-lg { margin-top: 1.2rem; }
.faq { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid rgba(109, 4, 81, 0.18); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -0.015em; font-weight: 400; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--plum); }
.faq__item p { color: var(--ink-80); max-width: 40rem; margin: 0 0 1.4rem; }
.faq__item p a { color: var(--plum); border-bottom: 1px solid var(--plum-300); }
.faq .pm { width: 2.2rem; height: 2.2rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(109, 4, 81, 0.25); position: relative; flex: none; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.75rem; height: 1px; background: currentColor; translate: -50% -50%; transition: transform 0.4s var(--ease); }
.faq .pm::after { transform: rotate(90deg); }
.faq__item[open] .pm::after { transform: rotate(0); }
@media (max-width: 800px) { .faq-wrap { grid-template-columns: 1fr; } }

/* Instagram */
.ig__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.ig__head .h-lg { margin-top: 1rem; }
.ig__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; }
.ig__tile { position: relative; aspect-ratio: 1; border-radius: 1rem; overflow: hidden; background: var(--mist); }
.ig__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ig__over { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream); background: rgba(109, 4, 81, 0.45); opacity: 0; transition: opacity 0.4s var(--ease); }
.ig__over svg { width: 1.8rem; height: 1.8rem; }
.ig__tile:hover img { transform: scale(1.06); }
.ig__tile:hover .ig__over, .ig__tile:focus-visible .ig__over { opacity: 1; }
@media (max-width: 800px) { .ig__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* contact: smaller than the old full-height CTA */
.cta--compact .h-lg { margin: 1.2rem auto 1.2rem; max-width: 16ch; }
.cta--compact .lede { margin: 0 auto 2rem; }
.cta--compact .cta-orb { width: 40vmax; }

/* footer logo: smaller */
.foot-mark { max-width: 22rem; margin: 2.5rem 0 1.5rem; }

/* v4 polish */
.card .media .tag-new { color: var(--cream); top: 1rem; left: 1rem; }
#professional { padding-top: clamp(2.5rem, 5vw, 4rem); }
.foot-mark { max-width: min(22rem, 55%); }
@media (max-width: 700px) { .vhero__toggle { top: auto; bottom: 1.25rem; } }
@media (max-width: 520px) {
  .range__cards--3 { grid-template-columns: 1fr; }
  .range__cards--3 .card { flex-direction: row; }
  .range__cards--3 .card .media { width: 38%; flex: none; aspect-ratio: 1; }
  .range__cards--3 .card .body { border-top: 0; border-left: 1px solid var(--line); justify-content: center; }
  .range__cards--3 .card .body p { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; }
}
