/* DESIGN SYSTEM LOCK 2026-11 (v2 "Swatch Atelier", replaces the v1 parchment/teal lock):
   do not auto-replace this file. Builders must not append to or rewrite it.
   Source of truth: /workspace/website/redesign-premium/ (BRIEF-PREMIUM.md, styles.premium.css).
   Structure: 1) tokens  2) legacy component rules re-pointed at v2 tokens  3) v2 premium layer (wins).
   Direction: gallery-white + ink monochrome chrome; ALL color comes from real Ohuhu swatches
   and product imagery. Inter Tight display/UI, IBM Plex Mono for codes and prices. */

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial");
  size-adjust: 94%;
  ascent-override: 103%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plex Mono";
  src: url("assets/fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* v2 tokens */
  --ink: #111214;
  --ink-2: #1b1d20;
  --ink-soft: #2a2c30;
  --paper: #fbfbf9;
  --mist: #f1f1ec;
  --stone: #e4e4de;
  --line: #e0e0d9;
  --line-dark: rgba(255,255,255,.14);
  --muted: #5b5d62;
  --muted-on-dark: #b9bbbf;
  --white: #ffffff;
  --holly-red: #a73f3b;
  --holly-jade: #366f63;

  --font-display: "Inter Tight", "Inter Tight Fallback", Arial, sans-serif;
  --font-sans: "Inter Tight", "Inter Tight Fallback", Arial, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-mega: clamp(2.75rem, 1.2rem + 6.4vw, 7rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.6rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-mono: .78rem;

  --ease: cubic-bezier(.2,.7,.1,1);
  --dur: .5s;

  /* legacy names re-pointed at v2 (keeps inner pages coherent) */
  --color-deep-teal: var(--ink);
  --color-deep-teal-hover: var(--ink-soft);
  --color-parchment: var(--paper);
  --color-linen: var(--mist);
  --color-pressed-cotton: var(--stone);
  --color-graphite: var(--ink);
  --color-slate: var(--muted);
  --color-dusk: #3a3c40;
  --color-white: #ffffff;
  --color-gold: #d8d2c0;
  --color-terracotta: var(--ink);
  --color-hairline: var(--line);

  --text-caption: .9375rem;
  --text-body: 1.0625rem;
  --text-body-lg: 1.1875rem;
  --text-display: var(--fs-h1);
  --text-title: var(--fs-h2);
  --leading-body: 1.6;
  --tracking-body: 0;
  --tracking-display: -0.035em;
  --tracking-wordmark: -0.03em;

  --page-max: 82rem;
  --content-max: 42rem;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 5rem; --space-9: 8rem;

  --radius-btn: 999px;
  --radius-card: 4px;
  --radius-img: 2px;

  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-parchment);
  color: var(--color-graphite);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-deep-teal); }
a:hover { color: var(--color-deep-teal-hover); }

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--color-deep-teal);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-parchment);
  border-bottom: 1px solid var(--color-hairline);
}

.header-inner,
.wrap {
  width: min(100% - 2.5rem, var(--page-max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: var(--tracking-wordmark);
  color: var(--color-graphite);
  text-decoration: none;
  line-height: 1;
  text-wrap: balance;
}
.wordmark:hover { color: var(--color-deep-teal); }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 100%;
}
.nav-toggle-box span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--color-graphite);
  border-radius: 1px;
}
.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem 1.35rem;
}
.nav a {
  color: var(--color-graphite);
  text-decoration: none;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  white-space: nowrap;
}
.nav a:hover { color: var(--color-deep-teal); }
.nav a.nav-cta {
  color: var(--color-white);
  padding: 0.65rem 1.1rem;
  min-height: 2.75rem;
  margin-left: 0.35rem;
  white-space: nowrap;
}
.nav a.nav-cta:hover { color: var(--color-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  text-wrap: balance;
}
.btn-primary {
  background: var(--color-deep-teal);
  color: var(--color-white);
  border-color: var(--color-deep-teal);
}
.btn-primary:hover {
  background: var(--color-deep-teal-hover);
  color: var(--color-white);
  border-color: var(--color-deep-teal-hover);
}
.btn-on-dark {
  background: var(--color-parchment);
  color: var(--color-deep-teal);
  border-color: var(--color-parchment);
}
.btn-on-dark:hover {
  background: var(--color-white);
  color: var(--color-deep-teal-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--color-deep-teal);
  border-color: var(--color-deep-teal);
}
.btn-ghost:hover {
  background: var(--color-deep-teal);
  color: var(--color-white);
}
.btn-ghost-on-dark {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-ghost-on-dark:hover {
  background: var(--color-white);
  color: var(--color-deep-teal);
}
.btn-soon,
.btn[aria-disabled="true"] {
  background: var(--color-pressed-cotton);
  color: var(--color-graphite);
  border-color: var(--color-pressed-cotton);
  cursor: default;
  pointer-events: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.75rem;
}

/* Gumroad overlay buttons: keep the site's button look, hide the default Gumroad chrome */
a.gumroad-button.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background-image: none !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 3.15rem !important;
  padding: 0.85rem 1.5rem !important;
  border-radius: var(--radius-btn) !important;
  font-family: var(--font-sans) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  text-decoration: none !important;
}
a.gumroad-button.btn-primary {
  background: var(--color-deep-teal) !important;
  color: var(--color-white) !important;
  border: 1px solid var(--color-deep-teal) !important;
}
a.gumroad-button.btn-primary:hover {
  background: var(--color-deep-teal-hover) !important;
  border-color: var(--color-deep-teal-hover) !important;
  color: var(--color-white) !important;
}
a.gumroad-button.btn-ghost {
  background: transparent !important;
  color: var(--color-deep-teal) !important;
  border: 1px solid var(--color-deep-teal) !important;
}
a.gumroad-button.btn-ghost:hover {
  background: var(--color-deep-teal) !important;
  color: var(--color-white) !important;
}
a.gumroad-button.btn-on-dark {
  background: var(--color-parchment) !important;
  color: var(--color-deep-teal) !important;
  border: 1px solid var(--color-parchment) !important;
}
a.gumroad-button.btn-on-dark:hover {
  background: var(--color-white) !important;
  color: var(--color-deep-teal-hover) !important;
}
a.gumroad-button img,
a.gumroad-button .gumroad-button-logo {
  display: none !important;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-deep-teal);
  color: var(--color-white);
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}
.hero-inner {
  width: min(100% - 2.5rem, var(--page-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--color-gold);
  letter-spacing: 0;
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  margin: 0 0 1.15rem;
  text-wrap: balance;
  color: var(--color-white);
}
.hero .lead {
  font-size: var(--text-body-lg);
  line-height: 1.5;
  max-width: 34rem;
  margin: 0;
  color: rgba(245, 245, 238, 0.92);
  text-wrap: pretty;
}
.hero-visual {
  position: relative;
  min-height: 22rem;
}
.cover-stack {
  position: relative;
  height: 100%;
  min-height: 26rem;
}
.cover-stack .cover {
  position: absolute;
  width: min(58%, 19rem);
  border: 2px solid rgba(245, 245, 238, 0.7);
  border-radius: 2px;
  background: var(--color-parchment);
}
.cover-stack .cover img {
  width: 100%;
  height: auto;
}
.cover-stack .cover-a {
  left: 0;
  top: 6%;
  transform: rotate(-3.5deg);
  z-index: 1;
}
.cover-stack .cover-b {
  right: 4%;
  top: 16%;
  transform: rotate(3deg);
  z-index: 2;
}

/* ---------- Sections ---------- */
section { padding: var(--space-8) 0; }
.section-linen { background: var(--color-linen); }
.section-head {
  max-width: 38rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.rule {
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--color-terracotta);
  margin: 0 auto 1.25rem;
  border: 0;
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: var(--tracking-display);
  margin: 0 0 0.85rem;
  text-wrap: balance;
  color: var(--color-graphite);
}
.section-head p {
  margin: 0;
  color: var(--color-slate);
  font-size: var(--text-body-lg);
  text-wrap: pretty;
}
.center-cta { text-align: center; margin-top: 2rem; }
.note {
  margin: 1rem 0 0;
  font-size: var(--text-caption);
  color: var(--color-slate);
}

/* Sample preview row */
.sample-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 0 auto 0.5rem;
  max-width: 56rem;
}
.sample-preview figure {
  margin: 0;
  background: var(--color-parchment);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-hairline);
}
.sample-preview img {
  width: 100%;
  height: auto;
}
.sample-preview figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: var(--text-caption);
  color: var(--color-slate);
}

/* ---------- Book cards ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 52rem;
  margin-inline: auto;
}
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}
.book-actions .btn { align-self: stretch; }
.book-card,
.shop-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.book-card a.cover-frame { color: inherit; }
.book-card .cover-link,
.book-card .cover-frame {
  display: block;
  align-self: center;
  width: min(100%, 18rem);
  border-radius: var(--radius-img);
  overflow: hidden;
  border: 1px solid var(--color-hairline);
}
.book-card h3,
.shop-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
  text-wrap: balance;
}
.book-card .meta,
.shop-card .meta {
  margin: 0 0 0.75rem;
  color: var(--color-slate);
  font-size: var(--text-caption);
}
.book-card p,
.shop-card p {
  margin: 0;
  text-wrap: pretty;
}
.book-card .btn,
.shop-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Shops ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.why-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.why-item p { margin: 0; color: var(--color-slate); text-wrap: pretty; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-deep-teal);
  color: var(--color-white);
  padding: 4rem 0 2.5rem;
}
.footer-inner {
  width: min(100% - 2.5rem, var(--page-max));
  margin-inline: auto;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  letter-spacing: var(--tracking-wordmark);
  line-height: 0.95;
  margin: 0 0 0.6rem;
  color: var(--color-white);
}
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-gold);
  font-size: 1.2rem;
  margin: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 2.25rem 0 2rem;
}
.footer-col-title {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.footer-links {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.0625rem;
}
.footer-links a:hover { color: var(--color-gold); }
.footer-legal {
  margin: 0;
  font-size: var(--text-caption);
  color: rgba(245, 245, 238, 0.8);
  max-width: 46rem;
}


/* ---------- T-shirts / Wear the art ---------- */
.eyebrow-light {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-terracotta);
  letter-spacing: 0;
  margin: 0 0 0.35rem;
}
.shirt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.shirt-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 0.85rem 0.85rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.shirt-photo {
  border-radius: var(--radius-img);
  overflow: hidden;
  border: 1px solid var(--color-hairline);
  background: var(--color-linen);
  aspect-ratio: 4 / 5;
}
.shirt-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.shirt-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
  padding: 0 0.15rem;
}
.shirt-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.shirt-card .meta {
  margin: 0 0 0.65rem;
  color: var(--color-slate);
  font-size: var(--text-caption);
}
.shirt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}
.shirt-actions .btn {
  flex: 1 1 auto;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  font-size: 1.05rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner,
  .book-grid,
  .shop-grid,
  .sample-preview,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .shirt-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-visual { order: 0; }
  .cover-stack {
    min-height: 18.25rem;
    max-width: min(22rem, 100%);
    margin: 0 auto 0.5rem;
  }
  .cover-stack .cover { width: 58%; }
  .cover-stack .cover-a { left: 5%; top: 8%; }
  .cover-stack .cover-b { right: 5%; top: 18%; }
  section { padding: 4rem 0; }
  .header-inner { flex-wrap: wrap; padding: 0.6rem 0; }
  .book-card .btn,
  .shop-card .btn { align-self: stretch; }
}

@media (max-width: 520px) {
  .shirt-grid {
    grid-template-columns: 1fr;
  }
  .header-inner, .wrap, .hero-inner, .footer-inner {
    width: min(100% - 1.5rem, var(--page-max));
  }
  .wordmark { font-size: 1.45rem; }
  .nav { gap: 0.2rem 1.15rem; }
  .hero h1 { font-size: 2.15rem; }
  .btn-row .btn, .book-actions .btn, .shirt-actions .btn, .center-cta .btn, .palette-extra-cta .btn { width: 100%; }
  .cover-stack { min-height: 17.75rem; }
  .cover-stack .cover-a { left: 4%; top: 6%; }
  .cover-stack .cover-b { right: 4%; top: 16%; }
  .why-grid { gap: 1.75rem; }
}

@media (min-width: 1100px) {
  .book-card {
    flex-direction: row;
    align-items: stretch;
    gap: 1.75rem;
  }
  .book-card .cover-frame,
  .book-card .cover-link {
    width: 13.5rem;
    flex: 0 0 13.5rem;
    align-self: flex-start;
  }
  .book-body { display: flex; flex-direction: column; flex: 1; }
  .book-body .btn,
  .book-actions { margin-top: auto; align-self: stretch; }
}

/* ---------- Traffic pages (blog, free landing, products) ---------- */
.page-hero {
  background: var(--color-deep-teal);
  color: var(--color-white);
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  margin: 0 0 1rem;
  text-wrap: balance;
  color: var(--color-white);
}
.page-hero .lead {
  margin: 0;
  font-size: var(--text-body-lg);
  color: rgba(245, 245, 238, 0.92);
  text-wrap: pretty;
}
.page-hero a { color: var(--color-gold); }
.page-hero a:hover { color: var(--color-white); }
.wrap.narrow { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }
.eyebrow-light {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-slate);
  margin: 0 0 0.75rem;
}
.eyebrow-light a { color: inherit; text-decoration: none; }
.eyebrow-light a:hover { color: var(--color-deep-teal); }

.article { padding: var(--space-8) 0 var(--space-9); }
.article-header, .prose {
  width: min(100% - 2.5rem, 42rem);
  margin-inline: auto;
}
.article-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: var(--tracking-display);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.article-header .meta { margin: 0 0 0.5rem; color: var(--color-slate); font-size: var(--text-caption); }
.prose { padding-top: 2rem; }
.prose h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin: 2.4rem 0 0.8rem;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 1.8rem 0 0.6rem;
  letter-spacing: -0.015em;
}
.prose p { margin: 0 0 1.15rem; text-wrap: pretty; }
.prose ul { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.prose li { margin: 0 0 0.4rem; }
.prose li ul { margin: 0.4rem 0 0; }
.prose em { font-family: var(--font-sans); }

.prose .article-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
.prose figure.article-figure {
  margin: 0 0 1.5rem;
}
.prose .article-previews figure.article-figure {
  margin: 0;
}
.prose img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-img);
  background: var(--color-white);
}
@media (max-width: 859px) {
  .prose .article-previews { grid-template-columns: 1fr 1fr; }
}

.blog-list { display: grid; gap: 1.5rem; padding: 0 0 1rem; }
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.6rem;
}
.blog-card h2 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-card h2 a:hover { color: var(--color-deep-teal); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.free-hero-inner { grid-template-columns: 1fr; max-width: 46rem; }
.free-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}
.free-grid figure {
  margin: 0;
  grid-column: span 2;
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.free-grid figure:nth-child(4) { grid-column: 2 / span 2; }
.free-grid figure:nth-child(5) { grid-column: 4 / span 2; }
.free-grid img { width: 100%; height: auto; }

.product-page { padding: var(--space-8) 0 var(--space-9); }
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.product-page .cover-frame {
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--color-white);
}
.product-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}
.product-copy .meta { margin: 0 0 1rem; color: var(--color-slate); }
.product-copy p { margin: 0 0 1rem; text-wrap: pretty; }
.product-page .shirt-grid { margin-top: 0; }
.shirt-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}

@media (max-width: 859px) {
  .free-grid, .free-grid figure:nth-child(4), .free-grid figure:nth-child(5) {
    grid-template-columns: 1fr 1fr;
    grid-column: auto;
  }
  .free-grid { grid-template-columns: 1fr 1fr; }
  .free-grid figure { grid-column: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .product-page .cover-frame { width: min(100%, 18rem); margin-inline: auto; }
}

/* ---------- Free sets hub (free-coloring-pages, 18 Nov 2026) ---------- */
.freebie-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 30rem));
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto;
}
.freebie-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.freebie-previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.freebie-previews img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-img);
  background: var(--color-white);
}
.freebie-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0.25rem 0 0;
  text-wrap: balance;
}
.freebie-card .meta { margin: 0; color: var(--color-slate); font-size: var(--text-caption); }
.freebie-card p { margin: 0; text-wrap: pretty; }
.freebie-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.freebie-actions .text-link { color: var(--color-deep-teal); }
.freebie-actions .freebie-more { color: var(--color-terracotta); }
@media (max-width: 859px) {
  .freebie-actions a.gumroad-button.btn { align-self: stretch; }
}

/* ---------- Marker palettes ---------- */
.product-grid.palette-product-grid {
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
}
.product-page .cover-frame.square-frame,
.palette-card a.cover-frame.square-frame {
  width: 100%;
  aspect-ratio: 1;
  align-self: stretch;
}
.product-page .cover-frame.square-frame img,
.palette-card a.cover-frame.square-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.palette-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
}
.palette-gallery figure {
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.palette-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.palette-gallery figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: var(--text-caption);
  color: var(--color-slate);
}
.product-details {
  margin-top: 3rem;
  width: min(100%, 42rem);
}
.product-details h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin: 2.2rem 0 0.8rem;
}
.product-details ul,
.product-details ol {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
}
.product-details li { margin: 0 0 0.4rem; }
.palette-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
  text-wrap: balance;
}
.palette-card h2 a { color: inherit; text-decoration: none; }
.palette-card h2 a:hover { color: var(--color-deep-teal); }
.palette-home-grid { max-width: 72rem; margin-inline: auto; }
.palette-note {
  margin: 2rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: var(--text-caption);
  color: var(--color-slate);
}
@media (max-width: 859px) {
  .product-grid.palette-product-grid { grid-template-columns: 1fr; }
  .product-page .cover-frame.square-frame { width: min(100%, 22rem); margin-inline: auto; }
  .palette-gallery { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  .palette-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .palette-card { flex-direction: column; }
  .palette-card a.cover-frame.square-frame {
    width: 100%;
    flex: none;
    align-self: stretch;
  }
}

/* ---------- Palette SEO + online coloring ---------- */
.faq { margin-top: 2.5rem; }
.faq details {
  border-bottom: 1px solid var(--color-hairline);
  padding: 0.85rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--color-graphite);
}
.faq details p { margin: 0.6rem 0 0.2rem; }
.free-sample-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 1.4rem 0 1.2rem;
}
.palette-extra-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; }
.palette-extra-cta p { width: 100%; margin: 0.4rem 0 0; }
.palette-hub-notes { margin-top: 2.5rem; }
.color-app-wrap { padding-bottom: 2rem; }
.color-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 1rem;
}
.page-picker, .color-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.color-app {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 960px) {
  .color-app { grid-template-columns: minmax(0, 1fr) 20rem; }
}
.color-canvas-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  overflow: auto;
  padding: 0.5rem;
}
#color-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  margin-inline: auto;
  cursor: crosshair;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.color-picker-panel {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  padding: 1rem 0.9rem 1.1rem;
  max-height: 75vh;
  overflow: auto;
}
.picker-label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
#set-select, #palette-select {
  width: 100%;
  font: inherit;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  margin-bottom: 0.6rem;
}
.picker-hint, .color-status { font-size: var(--text-caption); color: var(--color-slate); margin: 0 0 0.8rem; }
.palette-group { margin: 0 0 0.9rem; }
.palette-group h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--color-graphite);
}
.swatch-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  border: 2px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 0.2rem 0.15rem 0.25rem;
  cursor: pointer;
  min-width: 3.15rem;
  font: inherit;
  color: inherit;
}
.swatch i {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 49, 54, 0.25);
}
.swatch small { font-size: 0.72rem; line-height: 1.2; }
.swatch[aria-pressed="true"] { border-color: var(--color-deep-teal); }
.page-picker .btn[aria-pressed="true"] {
  background: var(--color-deep-teal);
  color: var(--color-white);
  border-color: var(--color-deep-teal);
}
@media (max-width: 639px) {
  #color-canvas { max-height: 58vh; }
  .color-picker-panel { max-height: none; }
  .color-toolbar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .page-picker, .color-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .page-picker .btn, .color-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 0.4rem 0.3rem;
    font-size: 0.9rem;
    min-height: 2.6rem;
    text-align: center;
  }
}

/* ---------- 2026-11 redesign ---------- */
.hero-product {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.hero-product-frame {
  display: block;
  width: min(100%, 28rem);
  margin: 0;
  background: var(--color-parchment);
  border: 1px solid rgba(245, 245, 238, 0.45);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.hero-product-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.hero-chip-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.4rem;
  width: min(100%, 28rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.hero-chip-color {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  border: 1px solid rgba(245, 245, 238, 0.35);
}
.hero-chip-code {
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 238, 0.9);
  text-align: center;
  word-break: break-all;
}
.hero-swatch-note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(245, 245, 238, 0.86);
  max-width: 28rem;
}
.cta-band {
  background: var(--color-deep-teal);
  color: var(--color-white);
  padding: 3.5rem 0;
}
.cta-band .wrap {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.cta-band h2 {
  color: var(--color-white);
  margin: 0;
}
.cta-band p {
  margin: 0;
  max-width: 36rem;
  color: rgba(245, 245, 238, 0.92);
}
.cta-band .btn-row { margin-top: 0.5rem; }
.product-card.is-free {
  border-color: var(--color-deep-teal);
}
.product-card .pill {
  display: inline-block;
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-deep-teal);
}
.palette-home-grid .shop-card,
.palette-home-grid .palette-card {
  min-width: 0;
}
.palette-home-grid .book-actions,
.palette-card .book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.palette-home-grid .book-actions .btn {
  flex: 1 1 10rem;
  min-width: 0;
}

@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner {
    flex-wrap: nowrap;
    padding: 0;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-parchment);
    border-bottom: 1px solid var(--color-hairline);
    padding: 0.75rem 1.25rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body.nav-open .nav { display: flex; }
  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-hairline);
    white-space: normal;
  }
  .nav a.nav-cta {
    margin: 0.85rem 0 0;
    width: 100%;
    border-bottom: 0;
    justify-content: center;
  }
  .site-header { position: sticky; }
  .hero-chip-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 519px) {
  .footer-cols { grid-template-columns: 1fr; }
  .hero-chip-code { font-size: 0.64rem; }
}
@media (min-width: 860px) {
  .nav-toggle { display: none !important; }
  body.nav-open .nav { display: flex; }
}

/* =====================================================================
   v2 PREMIUM LAYER — "Swatch Atelier". Everything below wins over legacy.
   ===================================================================== */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: 0;
  font-feature-settings: "ss01", "cv11";
}
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.hx :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible, .play :focus-visible,
.freeband :focus-visible, .cta-band :focus-visible, .announce :focus-visible { outline-color: #fff; }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
h3 { font-weight: 600; letter-spacing: -0.015em; }
p { text-wrap: pretty; }

.mono, .meta, .eyebrow, .eyebrow-light {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-style: normal;
}
.eyebrow { color: var(--muted); margin: 0 0 1.25rem; }
.eyebrow-light { color: var(--muted-on-dark); }
.meta { color: var(--muted); letter-spacing: .04em; line-height: 1.7; }

.wrap, .header-inner, .footer-inner { width: min(100% - 3rem, var(--page-max)); margin-inline: auto; }
@media (max-width: 520px) {
  .wrap, .header-inner, .footer-inner, .hero-inner { width: min(100% - 2.5rem, var(--page-max)); }
}

/* ---------- Announcement + header ---------- */
.site-header {
  position: sticky;
  top: -2.25rem;
  z-index: 30;
  background: rgba(251,251,249,.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.announce {
  margin: 0;
  height: 2.25rem;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.announce a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 2rem);
  display: inline-flex; align-items: center; gap: .6rem;
}
.announce a:hover { color: #fff; text-decoration: underline; }
.announce-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--holly-red); box-shadow: .7rem 0 0 #5fb182; margin-right: .7rem; flex: 0 0 auto; }
.header-inner { min-height: var(--header-h); gap: 1.5rem; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: .6rem;
}
.wordmark:hover { color: var(--ink); }
.wordmark-mark { display: grid; grid-template-columns: repeat(2, .55rem); grid-template-rows: repeat(2, .55rem); gap: 2px; }
.wordmark-mark i { display: block; border-radius: 1px; }
.wordmark-mark i:nth-child(1) { background: #a73f3b; }
.wordmark-mark i:nth-child(2) { background: #dbdfa5; }
.wordmark-mark i:nth-child(3) { background: #366f63; }
.wordmark-mark i:nth-child(4) { background: #f5e4ca; }
.nav { gap: .25rem 2rem; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink); padding: .4rem 0; letter-spacing: 0; position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav a.nav-cta { color: #fff; min-height: 2.6rem; padding: .55rem 1.2rem; font-size: .9rem; margin-left: .25rem; }
.nav-toggle { border-radius: 999px; border-color: var(--line); background: #fff; }
@media (max-width: 859px) {
  .nav { background: var(--paper); padding: .5rem 1.5rem 1.5rem; }
  .nav a { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; padding: .9rem 0; }
  .nav a::after { display: none; }
  .nav a.nav-cta { font-size: 1rem; margin-top: 1rem; min-height: 3.1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  min-height: 3.1rem;
  padding: .85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: .975rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  gap: .5rem;
}
.btn:active { transform: translateY(1px); }
.btn-primary, a.gumroad-button.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover, a.gumroad-button.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }
.btn-ghost, a.gumroad-button.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(17,18,20,.28); }
.btn-ghost:hover, a.gumroad-button.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-on-dark, a.gumroad-button.btn-on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn-on-dark:hover, a.gumroad-button.btn-on-dark:hover { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.btn-ghost-on-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.text-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }

/* ---------- Generic sections + cards (all pages) ---------- */
section { padding: clamp(4.5rem, 8vw, 8.5rem) 0; }
.section-linen { background: var(--mist); }
.rule { display: none; }
.section-head { max-width: 48rem; margin-bottom: clamp(2.25rem, 4vw, 3.75rem); }
.section-head p { color: var(--muted); font-size: var(--fs-lead); line-height: 1.55; max-width: 40rem; }
.shop-card, .book-card, .freebie-card, .blog-card, .shirt-card, .why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: none;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.shop-card:hover, .book-card:hover, .freebie-card:hover, .blog-card:hover, .shirt-card:hover { border-color: rgba(17,18,20,.45); }
.why-item { padding: 1.75rem; }
.shop-card h3, .book-card h3, .freebie-card h3, .shirt-card h3, .blog-card h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
}
.shop-card h3 a, .blog-card h2 a, .palette-card h2 a { color: var(--ink); text-decoration: none; }
.shop-card h3 a:hover, .blog-card h2 a:hover, .palette-card h2 a:hover { text-decoration: underline; }
.cover-frame, .shirt-photo, .freebie-previews img, .palette-gallery figure, .sample-preview figure {
  border-radius: var(--radius-img);
  background: var(--mist);
  box-shadow: none;
}
.note { color: var(--muted); }

/* ---------- Inner-page hero (blog, products hub, freebies) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3.5rem, 6vw, 6rem); }
.page-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.04em; max-width: 18ch; }
.page-hero .lead { color: var(--muted-on-dark); font-size: var(--fs-lead); max-width: 40rem; }
.page-hero a { color: #fff; }

/* ---------- Product pages ---------- */
.product-page { padding: clamp(3rem, 6vw, 6rem) 0; }
.product-page h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem); line-height: 1.02; letter-spacing: -0.04em; }
.product-grid { gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.product-page .cover-frame { background: var(--mist); padding: clamp(1rem, 3vw, 2.5rem); border: 0; }
.product-copy .book-actions .btn { width: 100%; }
.product-details h2, .faq h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.03em; margin-top: 2.5rem; }
.faq details { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 1.1rem 0; }
.faq summary { font-weight: 600; font-size: 1.1rem; }

/* ---------- Articles ---------- */
.article-header h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.9rem); line-height: 1.03; letter-spacing: -0.04em; }
.prose { font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -0.03em; margin-top: 3rem; }
.prose em { font-family: inherit; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: clamp(4.5rem, 8vw, 7rem) 0 2.5rem; border: 0; }
.footer-wordmark { font-family: var(--font-display); font-weight: 650; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.75rem); letter-spacing: -0.05em; color: #fff; line-height: 1; margin: 0 0 1rem; }
.footer-tag { color: var(--muted-on-dark); font-size: 1.05rem; max-width: 26rem; margin: 0 0 1.5rem; }
.footer-cta { margin: 0 0 2rem; }
.footer-col-title { font-family: var(--font-mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: .1em; color: #8e9095; font-weight: 500; }
.footer-links a { color: #fff; text-decoration: none; font-size: 1rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line-dark); color: #8e9095; font-size: .85rem; padding-top: 1.75rem; margin-top: 3rem; }
@media (min-width: 960px) {
  .footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 4rem; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- Color Online chrome ---------- */
.color-app-wrap .swatch { border-radius: 4px; }
#set-select, #palette-select { border-radius: 999px; border-color: var(--line); }

/* =====================================================================
   HOMEPAGE
   ===================================================================== */
.home section { padding: clamp(5rem, 9vw, 9.5rem) 0; }
.idx { display: flex; gap: .9rem; align-items: center; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; }
.idx::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.on-dark .idx, .hx .idx, .play .idx, .freeband .idx { color: var(--muted-on-dark); }
.freeband .idx { color: rgba(255,255,255,.78); }

/* Hero */
.home .hx { background: var(--ink); color: #fff; padding: clamp(3.5rem, 7vw, 7rem) 0 0; overflow: hidden; position: relative; }
.hx-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hx-grid { grid-template-columns: 1.15fr .85fr; gap: 2rem; } }
.hx-title {
  font-size: var(--fs-mega);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -0.05em;
  margin: 0 0 1.75rem;
  max-width: 11ch;
}
.hx-title span { color: #8e9095; }
.hx-lead { color: var(--muted-on-dark); font-size: var(--fs-lead); line-height: 1.55; max-width: 34rem; margin: 0 0 2.25rem; }
.hx-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hx-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 2.5rem 0 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9a9ca1; }
.hx-facts li::before { content: "●"; color: #5fb182; margin-right: .55rem; font-size: .6rem; vertical-align: .1em; }

/* Swatch chip (Pantone-style) */
.chip {
  --c: #ccc;
  background: #fff;
  border-radius: 6px;
  padding: 6px 6px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -18px rgba(0,0,0,.55);
  color: var(--ink);
}
.chip-color { display: block; background: var(--c); border-radius: 3px; aspect-ratio: 1 / 1; }
.chip-label { display: block; padding: .55rem .2rem .6rem; line-height: 1.2; }
.chip-code { display: block; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em; }
.chip-name { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Fan */
.fan { position: relative; height: clamp(19rem, 34vw, 30rem); margin: 0 auto; width: 100%; max-width: 34rem; }
.fan .chip {
  position: absolute; left: 50%; bottom: 8%;
  width: clamp(6.25rem, 10vw, 9rem);
  margin-left: calc(clamp(6.25rem, 10vw, 9rem) / -2);
  transform-origin: 50% 150%;
  transform: rotate(var(--r));
  animation: fan-in 1.1s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms + 150ms);
}
.fan .chip:hover { transform: rotate(var(--r)) translateY(-14px); transition: transform .35s var(--ease); }
@keyframes fan-in { from { transform: rotate(0deg) translateY(30px); opacity: 0; } to { transform: rotate(var(--r)); opacity: 1; } }
.fan-caption { text-align: center; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #8e9095; margin: .5rem 0 0; }

/* Rail marquee */
.rail { margin-top: clamp(3.5rem, 6vw, 5.5rem); border-top: 1px solid var(--line-dark); padding: 1.5rem 0 1.75rem; overflow: hidden; position: relative; }
.rail::before, .rail::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6rem; z-index: 2; pointer-events: none; }
.rail::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.rail::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.rail-track { display: flex; gap: .6rem; width: max-content; animation: rail 90s linear infinite; list-style: none; margin: 0; padding: 0; }
.rail:hover .rail-track { animation-play-state: paused; }
.rail-item { width: 4.5rem; flex: 0 0 auto; }
.rail-item i { display: block; height: 3rem; border-radius: 3px; background: var(--c); }
.rail-item b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .66rem; color: #9a9ca1; margin-top: .45rem; letter-spacing: .03em; }
@keyframes rail { to { transform: translateX(-50%); } }

/* Statement */
.statement-text { font-family: var(--font-display); font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.4rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; max-width: 22em; margin: 0; }
.statement-text span { color: #9a9ca1; }
.pillars { display: grid; gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.pillar h3 { font-size: 1.15rem; margin: .75rem 0 .5rem; }
.pillar p { color: var(--muted); margin: 0; }
.pillar .mono { color: var(--muted); }

/* Feature product */
.feature { display: grid; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
@media (min-width: 960px) { .feature { grid-template-columns: 1.1fr .9fr; } }
.plate { --plate: #1e3a2e; display: block; background: var(--plate); border-radius: var(--radius-card); padding: clamp(1.5rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.plate img { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); transition: transform .8s var(--ease); }
.plate:hover img { transform: scale(1.025) rotate(-.4deg); }
.plate-tag { position: absolute; top: 1rem; left: 1rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.feature h2, .duo-card h3 { margin: 0 0 1rem; }
.feature-lead { font-size: var(--fs-lead); color: var(--muted); margin: 0 0 2rem; line-height: 1.55; }
.spec { margin: 0 0 2rem; border-top: 1px solid var(--line); }
.spec div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; text-align: right; }
.price { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: 0; }
.buy-row { display: grid; gap: .65rem; }
@media (min-width: 520px) { .buy-row { grid-template-columns: 1fr 1fr; } }
.buy-more { margin: 1.25rem 0 0; }

/* Duo product cards */
.duo { display: grid; gap: clamp(2.5rem, 4vw, 3rem); margin-top: clamp(5rem, 9vw, 8rem); }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card { display: flex; flex-direction: column; }
.duo-card .plate { padding: clamp(1.25rem, 4vw, 3.25rem); margin-bottom: 1.75rem; }
.duo-card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.08; }
.duo-card h3 a { color: var(--ink); text-decoration: none; }
.duo-card h3 a:hover { text-decoration: underline; }
.duo-card p { color: var(--muted); margin: 0 0 1.5rem; }
.duo-card .buy-row { margin-top: auto; }
.duo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }

.indep { margin: clamp(3rem, 5vw, 4rem) 0 0; color: var(--muted); font-size: .9rem; max-width: 46rem; }

/* Free band */
.home .freeband { background: #366f63; color: #fff; }
.freeband-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .freeband-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; } }
.freeband h2 { color: #fff; }
.freeband p { color: rgba(255,255,255,.86); font-size: var(--fs-lead); max-width: 32rem; }
.freeband .note { color: rgba(255,255,255,.78); font-size: .9rem; margin-top: 1.25rem; }
.holly { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; list-style: none; margin: 0; padding: 0; }
.holly .chip { box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); transition: transform .4s var(--ease); }
.holly .chip:hover { transform: translateY(-6px); }
@media (max-width: 420px) { .holly { gap: .5rem; } .holly .chip-name { display: none; } .holly .chip-code { font-size: .7rem; } }

/* Library (all 8 palettes) */
.lib { display: grid; gap: 2.5rem 3.5rem; }
@media (min-width: 900px) { .lib { grid-template-columns: 1fr 1fr; } }
.lib-item h3 { font-size: 1.05rem; margin: 0 0 .75rem; display: flex; justify-content: space-between; gap: 1rem; }
.lib-item h3 small { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; gap: 3px; }
.strip li i { display: block; height: clamp(3.25rem, 6vw, 4.75rem); background: var(--c); border-radius: 2px; transition: transform .35s var(--ease); transform-origin: bottom; }
.strip li:hover i { transform: scaleY(1.08); }
.strip li b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .62rem; color: var(--muted); margin-top: .4rem; letter-spacing: 0; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.lib-foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.lib-foot p { margin: 0; color: var(--muted); max-width: 38rem; font-size: .95rem; }

/* Play (Color Online) */
.home .play { background: var(--ink); color: #fff; }
.play-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .play-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.play h2 { color: #fff; }
.play p { color: var(--muted-on-dark); font-size: var(--fs-lead); max-width: 32rem; }
.play-art { background: #fff; border-radius: var(--radius-card); padding: clamp(1.25rem, 3vw, 2rem); display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: center; }
.play-art img { width: 100%; height: auto; max-height: 26rem; object-fit: contain; }
.play-swatches { display: grid; gap: .5rem; }
.play-swatches i { display: block; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c); }
.play-swatches i:first-child { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }

/* Journal */
.journal { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .journal { grid-template-columns: 1fr 1fr; } }
.jcard { display: block; padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .3s var(--ease), transform .4s var(--ease); }
.jcard:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-3px); }
.jcard h3 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.1; margin: 1.25rem 0 .9rem; }
.jcard p { color: var(--muted); margin: 0 0 1.5rem; }
.jcard .more { font-weight: 600; }
.sec-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.sec-top h2 { margin: 0; max-width: 16ch; }

/* Studio (books, free pages, shirts, shops, why) */
.home .book-grid { gap: 1.5rem; }
.home .book-card { padding: 1.5rem; }
.home .shirt-grid { gap: 1rem; }
.home .shirt-card { padding: 0; overflow: hidden; }
.home .shirt-body { padding: 1.1rem 1.25rem 1.35rem; }
.home .sample-preview figure { padding: 1rem; background: #fff; border: 1px solid var(--line); }
.home .shop-grid { gap: 1.5rem; }
.home .shop-card { padding: clamp(1.75rem, 3vw, 2.5rem); }
.home .why-grid { gap: 1rem; }

/* Reveal on scroll (progressive: only when JS adds .js) */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rail-track, .fan .chip { animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- v2 refinements ---------- */
.wrap, .header-inner, .footer-inner { width: min(100% - clamp(2.5rem, 7vw, 7rem), 80rem); }
.section-head { margin: 0 0 clamp(2.25rem, 4vw, 3.75rem); text-align: left; max-width: 48rem; }
.section-head h2 { max-width: 18ch; }
.footer-tag { font-family: var(--font-sans); font-style: normal; color: var(--muted-on-dark); font-size: 1.05rem; }
.footer-legal { max-width: none; color: #8e9095; font-size: .85rem; }
.footer-cols { margin: 0 0 1rem; align-self: start; }
@media (min-width: 960px) { .footer-cols { padding-top: .75rem; } }
.announce .short { display: none; }
@media (max-width: 640px) { .announce .long { display: none; } .announce .short { display: inline; } }

/* Fan: wider, bolder */
.fan .chip {
  width: clamp(7.25rem, 12vw, 10.5rem);
  margin-left: calc(clamp(7.25rem, 12vw, 10.5rem) / -2);
  transform-origin: 50% 175%;
  bottom: 10%;
}
@media (min-width: 960px) { .fan { height: 33rem; } }
@media (max-width: 959px) { .fan { height: 24rem; } }
@media (max-width: 420px) { .fan .chip { width: 6.4rem; margin-left: -3.2rem; } .fan { height: 20rem; } }

/* Studio sections on home */
.home .sample-preview, .home .why-grid, .home .book-grid { max-width: none; margin: 0; }
@media (min-width: 900px) {
  .home .book-grid { grid-template-columns: repeat(3, 1fr); }
  .home .why-grid { grid-template-columns: repeat(4, 1fr); }
}
.home .book-card { flex-direction: column !important; gap: 1.25rem; }
.home .book-card .cover-frame { width: 100% !important; flex: none !important; align-self: stretch !important; border: 0; background: var(--mist); padding: 1.5rem 2.5rem; }
.home .book-card .cover-frame img { width: 100%; max-width: 15rem; margin: 0 auto; box-shadow: 0 20px 40px -22px rgba(0,0,0,.45); }
.home .book-actions { flex-direction: column; align-items: stretch; }
.home #books .book-card .btn { width: 100%; }
.home .center-cta { text-align: left; margin-top: 2rem; }
.home .center-cta .note { max-width: 46rem; }
.fan .chip { bottom: 20%; }
@media (max-width: 959px) { .fan .chip { bottom: 12%; } }
.product-page .cover-frame { padding: 0; }
.product-page .cover-frame img { object-fit: contain; }
.page-hero .btn-primary, .cta-band .btn-primary, .free-hero .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.page-hero .btn-primary:hover, .cta-band .btn-primary:hover, .free-hero .btn-primary:hover { background: var(--mist); color: var(--ink); }
.page-hero .btn-ghost, .cta-band .btn-ghost, .free-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.page-hero .btn-ghost:hover, .cta-band .btn-ghost:hover, .free-hero .btn-ghost:hover { background: #fff; color: var(--ink); }
[hidden] { display: none !important; }
.eyebrow-light { color: var(--muted); }
.page-hero .eyebrow-light, .cta-band .eyebrow-light, .free-hero .eyebrow-light { color: var(--muted-on-dark); }
.freeband .idx, .freeband .note { color: #fff; }

/* =====================================================================
   v2.1 FUTURE LAYER — immersive swatch hero, glass depth, scroll-driven motion
   ===================================================================== */
.home .hx { isolation: isolate; background: #0b0c0e; }
.hx-mesh { position: absolute; inset: -10% -10% 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hx-mesh i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; opacity: .55; will-change: transform; animation: drift 22s ease-in-out infinite alternate; }
.hx-mesh i:nth-child(1) { background: radial-gradient(closest-side, rgba(167,63,59,.85), transparent 70%); left: 45%; top: -20%; }
.hx-mesh i:nth-child(2) { background: radial-gradient(closest-side, rgba(54,111,99,.9), transparent 70%); left: 62%; top: 25%; animation-duration: 28s; animation-delay: -6s; }
.hx-mesh i:nth-child(3) { background: radial-gradient(closest-side, rgba(95,177,130,.45), transparent 70%); left: -15%; top: 40%; animation-duration: 32s; animation-delay: -12s; }
.hx-mesh i:nth-child(4) { background: radial-gradient(closest-side, rgba(178,78,97,.55), transparent 70%); left: 20%; top: -35%; animation-duration: 26s; animation-delay: -3s; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-6%, 5%, 0) scale(1.12); } 100% { transform: translate3d(5%, -4%, 0) scale(.95); } }
.hx::after { /* pointer spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(255,255,255,.07), transparent 60%);
}
.hx-grid-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hx-title { font-size: clamp(3rem, 1rem + 7.6vw, 8.25rem); }
.hx-title .grad {
  color: #dbdfa5;
  background: linear-gradient(100deg, #dbdfa5 0%, #f5e4ca 22%, #ecacbf 44%, #5fb182 66%, #f2cbbf 84%, #dbdfa5 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen { to { background-position: -220% 0; } }

/* Glass panel holding the fan */
.glass {
  position: relative;
  border-radius: 28px;
  padding: 1rem 1rem 1.25rem;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 40px 80px -40px rgba(0,0,0,.8);
  transform: perspective(1200px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .6s var(--ease);
}
.glass-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); padding: .25rem .5rem; }
.glass .fan-caption { color: rgba(255,255,255,.72); }
.fan .chip { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.fan:hover .chip { transform: rotate(calc(var(--r) * 1.35)); }
.fan .chip:hover { transform: rotate(calc(var(--r) * 1.35)) translateY(-26px) scale(1.06) !important; z-index: 5; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.4); }

/* Buttons: light sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn-primary::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); }

/* Library strips: expand on hover */
.strip { display: flex; }
.strip li { flex: 1 1 0; min-width: 0; transition: flex-grow .5s var(--ease); }
.strip:hover li { flex-grow: .8; }
.strip li:hover { flex-grow: 2.6; }
.strip li i { transition: transform .5s var(--ease), border-radius .5s var(--ease); }
.strip li:hover i { transform: translateY(-4px); border-radius: 6px; }

/* Plates: depth on hover */
.plate { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.plate:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); }
.plate::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--px, 50%) var(--py, 0%), rgba(255,255,255,.18), transparent 50%); opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 1; }
.plate:hover::before { opacity: 1; }

/* Scroll progress bar */
.scroll-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 50; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #a73f3b, #ecacbf, #5fb182, #366f63); pointer-events: none; }

/* Scroll-driven reveals + statement fill where supported (progressive) */
@supports (animation-timeline: view()) {
  .statement-text span { animation: fill-in linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
  @keyframes fill-in { from { color: #c9cacd; } to { color: var(--ink); } }
  .lib-item { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes rise { from { opacity: .2; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
  .scroll-bar { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

@media (max-width: 959px) {
  .glass { border-radius: 22px; }
  .hx-mesh i { width: 80vmax; height: 80vmax; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-mesh i, .hx-title .grad { animation: none !important; }
  .glass { transform: none !important; }
  .statement-text span, .lib-item, .scroll-bar { animation: none !important; }
  .scroll-bar { display: none; }
  .btn::after { display: none; }
}
.fan .chip { animation-fill-mode: backwards; }
.hx-title { font-size: clamp(3rem, .5rem + 6.3vw, 8rem); max-width: 12ch; }
@media (min-width: 960px) { .hx-grid { grid-template-columns: 1.3fr .7fr; } .glass .fan { height: 25rem; } .glass .fan .chip { bottom: 16%; } }
.hx-mesh i { opacity: .72; }
/* Dark glass header on the homepage */
body:has(main.home) .site-header { background: rgba(11,12,14,.72); border-bottom-color: rgba(255,255,255,.08); }
body:has(main.home) .wordmark, body:has(main.home) .nav a:not(.nav-cta) { color: #fff; }
body:has(main.home) .nav a:not(.nav-cta)::after { background: #fff; }
body:has(main.home) .nav a.nav-cta { background: #fff; color: var(--ink); border-color: #fff; }
body:has(main.home) .nav-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
body:has(main.home) .nav-toggle-box span { background: #fff; }
body:has(main.home) .announce { background: #000; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 859px) {
  body:has(main.home) .nav { background: rgba(11,12,14,.97); }
  body:has(main.home) .nav a { border-bottom-color: rgba(255,255,255,.1); }
}
body:has(main.home) .site-header { background: rgba(11,12,14,.95); }
@media (min-width: 960px) { .glass .fan .chip { width: clamp(6.5rem, 8.2vw, 9.5rem); margin-left: calc(clamp(6.5rem, 8.2vw, 9.5rem) / -2); } }
.glass { overflow: hidden; }
@media (min-width: 960px) { .glass .fan .chip { bottom: 30%; } .glass .fan { height: 24rem; } }
@supports (animation-timeline: view()) {
  @keyframes rise { from { transform: translateY(48px) scale(.97); } to { transform: none; } }
}
