/* ============================================================
   BRAT Foundations Kit · styles
   Tokens come from clients/<slug>/tokens.json and are written to
   :root by app.js at boot. The values here are the fallbacks so
   the page always paints, even before tokens arrive.
   ============================================================ */

:root {
  --paper: #FFFFFF;
  --ink: #0A0A0A;
  --grey-1: #6E6E6E;
  --grey-2: #A3A3A3;
  --panel: #F2F2F2;
  --hair: rgba(10, 10, 10, .14);
  --hair-soft: rgba(10, 10, 10, .07);

  --font-display: "Neue Haas Grotesk Display Pro", "NeueHaasDisplay", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Neue Haas Grotesk Text Pro", "NeueHaasText", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Neue Haas Grotesk Text Pro", "NeueHaasText", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --display-weight: 500;
  --display-tracking: -0.035em;
  --body-weight: 400;

  --ease: cubic-bezier(.77, 0, .18, 1);
  --dur-fast: .3s;
  --dur: .7s;
  --dur-slow: 1.2s;

  --gut: clamp(20px, 4vw, 72px);
  --max: 1520px;
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A0A0A;
    --ink: #FFFFFF;
    --grey-1: #9A9A9A;
    --grey-2: #5E5E5E;
    --panel: #141414;
    --hair: rgba(255, 255, 255, .16);
    --hair-soft: rgba(255, 255, 255, .08);
  }
}
:root[data-theme="dark"] {
  --paper: #0A0A0A;
  --ink: #FFFFFF;
  --grey-1: #9A9A9A;
  --grey-2: #5E5E5E;
  --panel: #141414;
  --hair: rgba(255, 255, 255, .16);
  --hair-soft: rgba(255, 255, 255, .08);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: var(--body-weight);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, canvas { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-1);
  white-space: nowrap;
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- wordmark ---------- */
.wordmark { display: inline-block; line-height: 0; }
.wordmark svg { display: block; height: 1em; width: auto; }
.wordmark svg * { fill: currentColor !important; stroke: none; }
.wordmark img { display: block; height: 1em; width: auto; }
.wordmark.is-text { line-height: 1; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.04em; }
.header .brand .wordmark { font-size: 22px; }
.header .brand .wordmark.is-text { font-size: 18px; letter-spacing: -0.01em; }
.home-hero .logo-line { display: block; margin-bottom: .06em; }
.home-hero .logo-line .wordmark { font-size: .82em; }
.home-hero .logo-line .wordmark.is-text { font-size: 1em; }
.spec .mark .wordmark { font-size: clamp(64px, 12vw, 200px); }
.spec-vars .v .wordmark { font-size: 28px; }
.spec-vars .v.small .wordmark { font-size: 14px; }
.spec-vars .v.small { display: flex; align-items: center; gap: 12px; }
.spec-vars .v.small::after { content: "24 px minimum"; font-family: var(--font-body); font-weight: 400; font-size: 11px; letter-spacing: .06em; color: var(--grey-1); }
.misuse .frame .wordmark { font-size: 40px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark img { filter: invert(1); } }
:root[data-theme="dark"] .wordmark img { filter: invert(1); }
.spec-vars .v.inv .wordmark img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .spec-vars .v.inv .wordmark img { filter: none; } }
:root[data-theme="dark"] .spec-vars .v.inv .wordmark img { filter: none; }

/* ---------- chrome ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gut);
  mix-blend-mode: difference;
  color: #FFFFFF;
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header .brand {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -0.01em;
  font-size: 17px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.header .brand span { font-family: var(--font-mono); font-size: 11px; opacity: .7; letter-spacing: .06em; }
.header .index-btn {
  font-size: 15px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header .index-btn i {
  width: 8px; height: 8px;
  border: 1px solid currentColor;
  display: inline-block;
  transition: background var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
body.index-open .header .index-btn i { background: currentColor; transform: rotate(45deg); }

.corner {
  position: fixed;
  left: var(--gut);
  bottom: 22px;
  z-index: 40;
  display: flex;
  gap: 16px;
  align-items: center;
  mix-blend-mode: difference;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.corner .demo { border: 1px solid currentColor; padding: 2px 6px; opacity: .8; }

/* index overlay */
.index {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-rows: var(--header-h) 1fr auto;
  padding: 0 var(--gut) 28px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
body.index-open .index { transform: none; visibility: visible; transition: transform var(--dur) var(--ease); }
.index ol {
  list-style: none; margin: 0; padding: 0;
  align-self: center;
  display: grid;
  gap: 2px;
  max-width: 1100px;
}
.index li a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair-soft);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(26px, 4.6vw, 58px);
  line-height: 1;
  transition: opacity var(--dur-fast) ease;
}
.index li a:hover { opacity: .5; }
.index li a b { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; color: var(--grey-1); }
.index li a span:last-child { font-family: var(--font-mono); font-size: 11px; color: var(--grey-1); letter-spacing: .06em; }
.index li.current a { color: var(--grey-2); }
.index .foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--grey-1);
}
.index .foot button { text-decoration: underline; text-underline-offset: 3px; }

/* page transition veil */
.veil {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ---------- page ---------- */
#app { min-height: 100vh; }
.page { padding-bottom: 96px; }

/* HOME */
.home-hero {
  min-height: calc(100vh - 0px);
  position: relative;
  display: grid;
  align-content: center;
  padding: calc(var(--header-h) + 40px) var(--gut) 60px;
  overflow: hidden;
}
.home-hero .gl { position: absolute; inset: 0; z-index: 0; opacity: .9; width: 100%; height: 100%; }
.home-hero .inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; width: 100%; }
.home-hero h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(56px, 12vw, 190px);
  line-height: .9;
  margin: 0 0 32px;
  text-wrap: balance;
}
.home-hero h1 span { display: block; }
.home-hero h1 > span:last-child { color: var(--grey-1); }
.home-hero p { max-width: 44ch; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.4; margin: 0; }
.home-hero .hint { margin-top: 48px; }

.home-chapters { padding: 0 var(--gut) 40px; max-width: var(--max); margin: 0 auto; }
.home-chapters ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.home-chapters li a {
  display: grid;
  grid-template-columns: 60px 1fr 1.2fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair-soft);
  transition: padding-left var(--dur-fast) var(--ease);
}
.home-chapters li a:hover { padding-left: 8px; }
.home-chapters li a .t {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: -0.02em; font-size: clamp(22px, 3vw, 40px); line-height: 1;
}
.home-chapters li a .d { color: var(--grey-1); font-size: 14px; max-width: 48ch; }
.home-chapters li a .a { font-family: var(--font-mono); font-size: 13px; }
@media (max-width: 760px) {
  .home-chapters li a { grid-template-columns: 44px 1fr auto; }
  .home-chapters li a .d { display: none; }
}

/* CHAPTER HERO */
.ch-hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-content: end;
  padding: calc(var(--header-h) + 40px) var(--gut) 56px;
  overflow: hidden;
}
.ch-hero .bg { position: absolute; inset: 0; z-index: 0; }
.ch-hero .bg canvas, .ch-hero .bg img, .ch-hero .bg video { width: 100%; height: 100%; object-fit: cover; }
.ch-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--paper) 0%, transparent 55%); }
.ch-hero .inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; width: 100%; display: grid; gap: 28px; grid-template-columns: 1fr; }
.ch-hero h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(56px, 11vw, 168px);
  line-height: .9;
  margin: 0;
}
.ch-hero .thesis { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; max-width: 720px; }
.ch-hero .thesis p { margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; max-width: 52ch; }
.ch-hero .thesis .label { padding-top: 6px; }

/* generic block spacing */
.block { padding: clamp(64px, 9vw, 140px) var(--gut) 0; }
.block .in { max-width: var(--max); margin: 0 auto; }

/* NOTES PULL */
.notes .in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 5vw, 96px);
  align-items: start;
}
.notes h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -0.03em;
  font-size: clamp(34px, 5.5vw, 84px);
  line-height: .95;
  margin: 0;
  text-wrap: balance;
}
.notes .side { display: grid; gap: 14px; padding-top: 10px; }
.notes .side p { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.45; }
@media (max-width: 760px) { .notes .in { grid-template-columns: 1fr; } }

/* RULE BLOCK */
.rule .in { display: grid; gap: 34px; }
.rule .head {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  align-items: baseline;
}
.rule .head .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.rule .head .lab { font-family: var(--font-mono); font-size: 12px; color: var(--grey-1); letter-spacing: .06em; margin-bottom: 14px; }
.rule .head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -0.025em;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1;
  max-width: 20ch;
}
.rule .head p { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.45; }
.rule .art { border-top: 1px solid var(--hair-soft); padding-top: 26px; }

/* SPEC CANVAS (logo) */
.spec {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.spec .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hair-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.spec.on .grid { opacity: 1; }
.spec .mark {
  position: relative;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -0.04em;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 1;
  padding: .3em .35em;
}
.spec .mark img, .spec .mark svg { height: clamp(64px, 12vw, 200px); width: auto; }
.spec .clear {
  position: absolute; inset: 0;
  border: 1px dashed var(--grey-1);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.spec.on .clear { opacity: 1; }
.spec .tag {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--grey-1); letter-spacing: .06em;
}
.spec .toggle {
  position: absolute; right: 14px; top: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  border: 1px solid var(--hair); padding: 6px 10px;
  background: var(--paper);
}
.spec-vars { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); margin-top: 1px; }
.spec-vars > div { background: var(--paper); padding: 16px; display: grid; gap: 8px; }
.spec-vars .v { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 28px; letter-spacing: -0.03em; line-height: 1; padding: 20px 0; }
.spec-vars .v.inv { background: var(--ink); color: var(--paper); padding: 20px 14px; }

/* MISUSE GRID */
.misuse { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.misuse > div { background: var(--paper); padding: 18px; display: grid; gap: 14px; }
.misuse .frame {
  aspect-ratio: 4 / 3; background: var(--panel); display: grid; place-items: center; position: relative; overflow: hidden;
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.04em; font-size: 40px;
}
.misuse .frame img, .misuse .frame svg { height: 40px; width: auto; }
.misuse .no .frame::before, .misuse .no .frame::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 140%; height: 1px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg);
}
.misuse .no .frame::after { transform: translate(-50%, -50%) rotate(-45deg); }
.misuse .cap { font-size: 13px; line-height: 1.4; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.misuse .cap b { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .06em; color: var(--grey-1); }
.misuse .frame.skew { transform: none; }
.misuse .frame.skew .m { transform: skewX(-18deg) scaleX(1.25); display: inline-block; }
.misuse .frame.tilt .m { transform: rotate(-12deg); display: inline-block; }
.misuse .frame.outline .m { -webkit-text-stroke: 1px var(--ink); color: transparent; }
.misuse .frame.crowd .m { outline: 6px solid var(--grey-2); outline-offset: -2px; }

/* TYPE SPECIMEN */
.specimen { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.specimen > div { background: var(--paper); padding: 22px 20px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; }
.specimen .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--grey-1); }
.specimen .s {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) { .specimen > div { grid-template-columns: 1fr; gap: 8px; } }
.glyphs {
  margin-top: 1px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(22px, 3.4vw, 46px);
  letter-spacing: .06em;
  line-height: 1.3;
  color: var(--ink);
  padding: 22px 20px;
  border: 1px solid var(--hair);
  border-top: 0;
  overflow-wrap: anywhere;
}

/* TYPE PLAYGROUND */
.play { border: 1px solid var(--ink); }
.play .stage {
  padding: clamp(28px, 5vw, 72px) clamp(18px, 3vw, 40px);
  min-height: 46vh;
  display: grid;
  align-content: center;
}
.play .stage [contenteditable] {
  font-family: var(--font-display);
  font-weight: var(--wt, 500);
  font-size: var(--sz, 96px);
  letter-spacing: var(--tr, -0.03em);
  line-height: var(--lh, .95);
  outline: none;
  overflow-wrap: anywhere;
  caret-color: var(--ink);
}
.play .bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--hair);
  border-top: 1px solid var(--ink);
}
.play .bar label { background: var(--paper); padding: 12px 14px; display: grid; gap: 10px; align-content: start; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--grey-1); }
.play .bar label output { color: var(--ink); }
.play input[type=range] { width: 100%; accent-color: var(--ink); }
.play .bar .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.play .bar .btns button { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--hair); padding: 6px 9px; }
.play .bar .btns button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* HIERARCHY */
.hier { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.hier > div { background: var(--paper); padding: 22px 20px; display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: baseline; }
.hier .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--grey-1); line-height: 1.5; }
.hier .k small { display: block; color: var(--grey-2); }
@media (max-width: 640px) { .hier > div { grid-template-columns: 1fr; gap: 8px; } }

/* SWATCHES */
.swatches { display: grid; gap: 34px; }
.swatch-group h3 { margin: 0 0 12px; font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .06em; color: var(--grey-1); display: flex; gap: 14px; }
.swatch-group h3 span { color: var(--ink); }
.swatch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.swatch {
  height: clamp(150px, 14vw, 210px);
  position: relative;
  display: grid;
  align-content: end;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-align: left;
  transition: transform var(--dur-fast) var(--ease);
}
.swatch:hover { transform: scale(.985); }
.swatch b { font-weight: 400; display: block; font-family: var(--font-body); font-size: 14px; letter-spacing: 0; margin-bottom: 4px; }
.swatch small { display: block; opacity: .75; }
.swatch .copied { position: absolute; top: 10px; right: 10px; opacity: 0; transition: opacity .2s; }
.swatch.did .copied { opacity: 1; }

/* PALETTE SHUFFLE */
.shuffle { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.shuffle .comp {
  --c-bg: var(--paper); --c-fg: var(--ink); --c-acc: var(--grey-1);
  background: var(--c-bg); color: var(--c-fg);
  aspect-ratio: 4 / 3;
  padding: clamp(18px, 3vw, 40px);
  display: grid; align-content: space-between;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.shuffle .comp .h {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: -0.03em; font-size: clamp(28px, 4.5vw, 64px); line-height: .95; max-width: 12ch; margin: 0;
}
.shuffle .comp .row { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.shuffle .comp .row p { margin: 0; max-width: 28ch; font-size: 14px; line-height: 1.4; }
.shuffle .comp .cta { border: 1px solid var(--c-fg); padding: 10px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
.shuffle .comp .acc { width: 46px; height: 46px; background: var(--c-acc); transition: background var(--dur) var(--ease); }
.shuffle .ctl { background: var(--paper); padding: 20px; display: grid; align-content: space-between; gap: 18px; }
.shuffle .ctl dl { margin: 0; display: grid; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; }
.shuffle .ctl dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; }
.shuffle .ctl dt { color: var(--grey-1); }
.shuffle .ctl dd { margin: 0; display: flex; gap: 10px; align-items: center; }
.shuffle .ctl dd i { width: 14px; height: 14px; border: 1px solid var(--hair); display: inline-block; }
.shuffle .ctl .go { justify-self: start; border: 1px solid var(--ink); padding: 12px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
.shuffle .ctl .go:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .shuffle { grid-template-columns: 1fr; } }

/* MEDIA CAROUSEL */
.carousel { position: relative; }
.carousel .track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; padding-bottom: 6px; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track.drag { cursor: grabbing; scroll-snap-type: none; }
.carousel .slide { flex: 0 0 min(78vw, 980px); scroll-snap-align: start; display: grid; gap: 12px; }
.carousel .slide .fr { aspect-ratio: 16 / 10; background: var(--panel); overflow: hidden; }
.carousel .slide .fr > * { width: 100%; height: 100%; object-fit: cover; }
.carousel .slide .cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--grey-1); display: flex; justify-content: space-between; gap: 12px; }
.carousel .bar { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.carousel .bar .arrows { display: flex; gap: 6px; }
.carousel .bar button { width: 44px; height: 36px; border: 1px solid var(--hair); display: grid; place-items: center; }
.carousel .bar button:hover { border-color: var(--ink); }
.carousel .bar .cnt { font-variant-numeric: tabular-nums; }

/* GALLERY WALL */
.wall-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--grey-1); }
.wall-bar div { display: flex; gap: 6px; }
.wall-bar button { border: 1px solid var(--hair); padding: 7px 11px; color: var(--ink); }
.wall-bar button:hover { border-color: var(--ink); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.wall .cell { background: var(--paper); position: relative; aspect-ratio: 1; overflow: hidden; }
.wall .cell.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.wall .cell > canvas, .wall .cell > img, .wall .cell > video { width: 100%; height: 100%; object-fit: cover; }
.wall .cell .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em;
  color: #FFFFFF; mix-blend-mode: difference;
  opacity: 0; transition: opacity var(--dur-fast);
}
.wall .cell:hover .cap { opacity: 1; }
@media (max-width: 640px) { .wall .cell.wide { grid-column: span 1; aspect-ratio: 1; } }

/* MOTION REEL */
.reel { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.reel .tile { background: var(--paper); position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer; }
.reel .tile > canvas, .reel .tile > video, .reel .tile > img { width: 100%; height: 100%; object-fit: cover; }
.reel .tile .cap { position: absolute; left: 12px; bottom: 10px; right: 12px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; color: #FFFFFF; mix-blend-mode: difference; }
.reel .tile .play { position: absolute; right: 12px; top: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: #FFFFFF; mix-blend-mode: difference; }

/* DOWNLOADS */
.dl { border-top: 1px solid var(--ink); }
.dl a { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--hair-soft); }
.dl a:hover .n { text-decoration: underline; text-underline-offset: 4px; }
.dl a .n { font-size: 17px; }
.dl a .f, .dl a .s { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--grey-1); }
.dl-note { margin: 14px 0 0; font-size: 13px; color: var(--grey-1); max-width: 60ch; }

/* VOICE PAIRS */
.pairs { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.pairs > div { background: var(--paper); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.pairs > div > div { padding: 22px 20px; display: grid; gap: 10px; align-content: start; }
.pairs .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--grey-1); }
.pairs p { margin: 0; font-size: 18px; line-height: 1.35; }
.pairs .no p { color: var(--grey-1); text-decoration: line-through; text-decoration-color: var(--grey-2); }
@media (max-width: 640px) { .pairs > div { grid-template-columns: 1fr; } }

/* STATEMENT */
.statement .in { display: grid; gap: 22px; }
.statement h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -0.035em;
  font-size: clamp(38px, 7.5vw, 128px);
  line-height: .92;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.statement p { margin: 0; max-width: 54ch; font-size: 17px; line-height: 1.45; color: var(--grey-1); }

/* NEXT */
.next { padding: clamp(80px, 12vw, 180px) var(--gut) 0; }
.next a {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; align-items: baseline;
  border-top: 1px solid var(--ink); padding-top: 22px;
}
.next a b { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; }
.next a .t {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(48px, 9vw, 150px); line-height: .9;
  transition: transform var(--dur) var(--ease);
}
.next a:hover .t { transform: translateX(12px); }
.next a .arr { font-size: 40px; line-height: 1; }

/* reveal */
.rv { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .veil { display: none; }
}

/* fix 16.10.2026: grid blowout from carousels inside rule blocks */
.rule .in { grid-template-columns: minmax(0, 1fr); }
.rule .head { grid-template-columns: 60px minmax(0, 1fr); }
.rule .head > *, .rule .art, .carousel { min-width: 0; }

/* ---------- client hero on gradient (16.10.2026) ---------- */
.home-hero .bg { position: absolute; inset: 0; z-index: 0; }
.pebbles { display: block; width: 100%; height: 100%; }
.on-grad { color: #FFFFFF; }
.on-grad .bg::after { display: none; }
.on-grad h1 > span:last-child { color: rgba(255,255,255,.72) !important; }
.on-grad .label, .on-grad .hint { color: rgba(255,255,255,.85); }
.home-hero.on-grad .logo-line .wordmark svg { fill: currentColor; }

/* ---------- gradients ---------- */
.grads { display: grid; gap: 48px; }
.grad .bar { height: clamp(120px, 18vw, 220px); border: 1px solid var(--hair); }
.grad .stops { position: relative; height: 74px; margin: 0 0 8px; }
.grad .stops span { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.grad .stops span:first-child { transform: none; justify-items: start; }
.grad .stops span:last-child { transform: translateX(-100%); justify-items: end; }
.grad .stops i { width: 1px; height: 14px; background: var(--ink) !important; }
.grad .stops b { font-weight: 500; font-size: 11px; }
.grad .stops small { color: var(--grey-1); }
.grad .meta { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; border-top: 1px solid var(--hair-soft); padding-top: 14px; }
.grad .meta h3 { margin: 4px 0 6px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; letter-spacing: -0.02em; }
.grad .meta p { margin: 0; max-width: 60ch; font-size: 14px; color: var(--grey-1); }
.grad .copy, .stones + .dl-note { font-family: var(--font-mono); }
.grad .copy { font-size: 11px; letter-spacing: .06em; border: 1px solid var(--ink); padding: 8px 12px; }
@media (max-width: 640px) { .grad .stops span:not(:first-child):not(:last-child) small { display: none; } .grad .stops { height: 60px; } }

/* ---------- stone family ---------- */
.stones { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.stones figure { background: var(--paper); padding: 22px 18px 14px; display: grid; gap: 14px; }
.stones .st { display: block; aspect-ratio: 1; background: var(--ink); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.stones figure .st { -webkit-mask-size: 70%; mask-size: 70%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.stones figure.hero { background: var(--ink); color: var(--paper); }
.stones figure.hero .st { background: var(--paper); }
.stones figcaption { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.stones figcaption span { color: var(--grey-1); }
.stones figure.hero figcaption span { color: inherit; opacity: .7; }

/* ---------- spec list ---------- */
.speclist { margin: 0; display: grid; border-top: 1px solid var(--hair); }
.speclist div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--hair-soft); }
.speclist dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--grey-1); }
.speclist dd { margin: 0; font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) { .speclist div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- pending note ---------- */
.pending .in { border: 1px dashed var(--grey-1); padding: 18px 20px; display: grid; gap: 6px; }
.pending p { margin: 0; font-size: 15px; }
.media-box img, .media-box video { display: block; width: 100%; height: 100%; }
.fit-cover img, .fit-cover video { object-fit: cover; }
.fit-contain img { object-fit: contain; padding: 8%; box-sizing: border-box; }
.media-box { max-width: 100%; }
.rule .art .media-box[style*="4/5"] { max-width: 720px; }
.media-box img, .media-box video { display: block; width: 100%; height: 100%; }
.fit-cover img, .fit-cover video { object-fit: cover; }
.fit-contain img { object-fit: contain; padding: 8%; box-sizing: border-box; }
.rule .art .media-box[style*="4/5"] { max-width: 720px; }
.stones, .swatch-row { background: transparent; border: 0; }
.stones figure, .swatch-row .swatch { box-shadow: 0 0 0 1px var(--hair); }

/* ---------- header: pure black, pure white over dark ground (16.10.2026) ---------- */
.header { mix-blend-mode: normal; color: #000000; }
.header .brand, .header .index-btn { transition: color .25s ease; color: #000000; }
.header.inv-l .brand { color: #FFFFFF; }
.header.inv-r .index-btn { color: #FFFFFF; }
.header .brand span { opacity: 1; }
body.index-open .header .brand, body.index-open .header .index-btn { color: var(--ink); }
.corner { mix-blend-mode: normal; color: #000000; transition: color .25s ease; }
.corner.inv { color: #FFFFFF; }

/* ---------- logo stage (16.10.2026): black stage, outline build, sweep, zoom out, fill ---------- */
.logostage { background: #000000; color: #FFFFFF; position: relative; }
.logostage .ls-pin { height: 100vh; position: relative; overflow: hidden; background: #000000; display: grid; place-items: center; }
.logostage .ls-svg { width: 100%; height: 100%; display: block; }
.logostage path { fill: rgba(255,255,255,var(--fill,0)); stroke: rgba(255,255,255,calc(1 - var(--fill,0) * .9)); stroke-width: 1.2; }
.logostage .ls-guides line { stroke: rgba(255,255,255,.22); stroke-width: 1; }
.logostage .ls-lab { position: absolute; left: var(--gut); bottom: 64px; color: rgba(255,255,255,.75); }
.logostage .ls-side { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center; color: rgba(255,255,255,.45); white-space: nowrap; }
.logostage .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.logostage.static .ls-pin { height: 70vh; }

/* ---------- spec studio (16.10.2026): interactive construction ---------- */
.studio { display: grid; gap: 0; border: 1px solid var(--hair); }
.st-canvas { position: relative; aspect-ratio: 16 / 9; background: #EDEDED; color: #000; display: grid; place-items: center; overflow: hidden; transition: background .35s ease, color .35s ease; --anno: #1954EA; }
.st-canvas.v-reversed { background: #000; color: #FFF; --anno: #8CAAF4; }
.st-canvas.v-gradient { color: #FFF; --anno: #FFFFFF; }
.st-canvas.v-ghost { background: #FFF; color: #F9F9F9; --anno: #1954EA; }
.st-canvas .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px); background-size: 40px 40px; opacity: 0; transition: opacity .35s ease; }
.st-canvas.v-reversed .grid, .st-canvas.v-gradient .grid { background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); }
.st-canvas.on .grid { opacity: 1; }
.st-box { position: relative; --lw: min(54vw, 640px); width: var(--lw); }
.st-canvas.v-minimum .st-box { --lw: 120px; }
.st-logo .wordmark { display: block; width: 100%; font-size: inherit; }
.st-logo .wordmark svg { display: block; width: 100%; height: auto; }
.st-box::before { content: ""; position: absolute; inset: 0; outline: 1px solid var(--anno); opacity: 0; transition: opacity .3s; }
.st-clear { position: absolute; inset: calc(var(--lw) * var(--ratio, .2) * var(--clear) * -1); border: 1px dashed var(--anno); background: color-mix(in srgb, var(--anno) 8%, transparent); opacity: 0; transition: opacity .3s, inset .4s ease; pointer-events: none; }
.st-canvas.on .st-box::before, .st-canvas.on .st-clear, .st-canvas.on .dim { opacity: 1; }
.st-clear .cs { position: absolute; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--anno); white-space: nowrap; }
.st-clear .cs.t { top: 4px; left: 50%; transform: translateX(-50%); }
.st-clear .cs.l { left: 4px; top: 50%; transform: rotate(-90deg) translateX(-50%); transform-origin: left top; }
.dim { position: absolute; display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .3s; color: var(--anno); font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
.dim i { display: block; background: var(--anno); }
.dim.w { left: 0; right: 0; bottom: -30px; justify-content: center; padding-top: 10px; }
.dim.w i { position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.dim.w b { position: relative; z-index: 1; background: inherit; padding: 0 6px; font-weight: 400; }
.dim.h { top: 0; bottom: 0; right: -14px; transform: translateX(100%); }
.dim.h i { width: 1px; align-self: stretch; }
.dim b { font-weight: 400; }
.st-canvas.v-minimum .dim, .st-canvas.v-minimum .st-clear .cs { font-size: 9px; }
.st-canvas .st-note { position: absolute; left: 14px; bottom: 12px; color: inherit; opacity: .75; }
.st-canvas.v-ghost .st-note { color: #000; }
.st-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px; border-top: 1px solid var(--hair); background: var(--paper); }
.st-bar .seg { display: flex; flex-wrap: wrap; border: 1px solid var(--hair); }
.st-bar button { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 9px 12px; color: var(--ink); background: transparent; }
.st-bar .seg button + button { border-left: 1px solid var(--hair); }
.st-bar button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.st-bar button:disabled { opacity: .35; cursor: default; }
.st-bar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.st-bar .st-con { margin-left: auto; border: 1px solid var(--ink); }
.st-read { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--hair); }
.st-read div { padding: 14px; border-right: 1px solid var(--hair-soft); }
.st-read dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-1); }
.st-read dd { margin: 6px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .st-box { --lw: 62vw; } .st-bar .st-con { margin-left: 0; } .dim.h { display: none; } }

/* ---------- one family only (16.10.2026): Neue Haas everywhere; the "mono" voice is Neue Haas Text,
   medium, small, uppercase, widely tracked, tabular figures ---------- */
:root { --font-mono: var(--font-body) !important; }
.label, .lab, .ls-lab, .ls-side, .corner, .header .brand span, .index li a b, .index li a span:last-child, .index .foot,
.speclist dt, .st-read dt, .st-bar button, .dim, .st-clear .cs, .grad .stops span, .grad .copy, .stones figcaption,
.dl .f, .dl .s, .dl-note, .misuse .cap b, .spec .tag, .spec .toggle, .rule .head .n, .rule .head .lab, .home-chapters li a .num,
.swatch small, .carousel .bar, .wall-bar, .reel .cap, .hier .k small, .specimen .k, .play .bar, .shuffle .ctl, [class*="mono"] {
  font-family: var(--font-body) !important;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "case" 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.st-read dd, .speclist dd { font-variant-numeric: tabular-nums; }

/* ---------- BRAT signature, bottom right (16.10.2026) ---------- */
.sig { position: fixed; right: max(var(--gut), env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 40; color: #000000; transition: color .25s ease; line-height: 0; }
.sig.inv { color: #FFFFFF; }
.sig .sig-logo { height: 11px; width: auto; display: block; }
.sig b { font: 700 11px var(--font-display); letter-spacing: -0.02em; }
body.index-open .sig { color: var(--ink); }
/* sig with a programme credit, e.g. "THE NEXXT STAGE by BRAT" (client.json: sig.pre) */
.sig.has-pre { display: flex; align-items: flex-end; gap: .42em; line-height: 1; font-size: 12px; }
.sig.has-pre .sig-pre { font: 700 1em/1 var(--font-display); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.sig.has-pre .sig-lead, .sig.has-pre .sig-by { font: 400 1em/1 var(--font-body); letter-spacing: 0; }
.sig.has-pre .sig-logo { height: .72em; margin-bottom: .2em; }
@media (max-width: 760px) { .sig.has-pre { font-size: 11px; } }

/* ---------- chapter heroes: solid colour or image (17.10.2026) ---------- */
.ch-hero.on-solid { color: #000000; }
.ch-hero.on-solid.dark, .ch-hero.on-img { color: #FFFFFF; }
.ch-hero.on-solid .bg::after, .ch-hero.on-solid .bg { display: none; }
.ch-hero.on-solid .label { color: inherit; opacity: .8; }
.ch-hero.on-img .bg::after { background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%); }
.ch-hero.on-img .label { color: rgba(255,255,255,.85); }

/* ===== Story & Voice (17.10.2026) ===== */
.part { background: #000; color: #FFF; padding: clamp(96px, 16vw, 220px) var(--gut); margin-top: clamp(64px, 9vw, 140px); }
.part.light { background: var(--paper); color: var(--ink); border-top: 1px solid var(--ink); }
.part .in { max-width: var(--max); margin: 0 auto; display: grid; gap: 22px; }
.part .label { color: inherit; opacity: .7; }
.part h2 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.045em; line-height: .86; font-size: clamp(72px, 15vw, 240px); text-wrap: balance; }
.part p { margin: 0; max-width: 48ch; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.4; opacity: .85; }

.manifesto { padding: clamp(80px, 12vw, 180px) var(--gut); }
.manifesto .in { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(18px, 3vw, 40px); }
.mf-line { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(30px, 5.2vw, 84px); max-width: 18ch; opacity: var(--on, .15); transition: opacity .2s linear; text-wrap: balance; }
.mf-line em { font-style: normal; background: linear-gradient(90deg, #1954EA, #9F2BCE 50%, #EF2DB9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mf-line.big { font-size: clamp(40px, 8vw, 140px); max-width: 14ch; }

.thin { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--hair); }
.thin-vis { background: #FFF; aspect-ratio: 1; position: relative; overflow: hidden; }
.thin-vis svg { width: 100%; height: 100%; display: block; }
.thin-vis .probe { transition: r .15s linear; }
.tl-tags text { font-family: var(--font-body); font-weight: 500; fill: #000; opacity: .35; transition: opacity .3s; }
.thin[data-k="0"] .t0, .thin[data-k="1"] .t1, .thin[data-k="2"] .t2 { opacity: 1; }
.thin-txt { padding: clamp(20px, 3vw, 40px); display: grid; align-content: center; gap: 16px; background: var(--paper); transition: background .4s, color .4s; }
.thin[data-k="0"] .thin-txt { background: #000; color: #FFF; }
.thin .depth { display: flex; align-items: baseline; gap: 8px; }
.thin .depth b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(64px, 9vw, 150px); letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.thin .depth span { font-size: 18px; }
.thin h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1; }
.thin p { margin: 0; font-size: 16px; line-height: 1.45; max-width: 40ch; opacity: .85; }
.thin input[type=range] { width: 100%; accent-color: #EF2DB9; }
.thin .ticks { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
@media (max-width: 760px) { .thin { grid-template-columns: 1fr; } }

.measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--ink); }
.ms { padding: 22px 18px 26px 0; border-bottom: 1px solid var(--hair-soft); display: grid; gap: 10px; }
.ms .n { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.05em; line-height: .9; font-size: clamp(64px, 8vw, 128px); font-variant-numeric: tabular-nums; }
.ms .n small { font-size: .28em; letter-spacing: 0; }
.ms p { margin: 0; font-size: 14px; max-width: 26ch; color: var(--grey-1); }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.pl { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #000; color: #FFF; outline-offset: 3px; }
.pl-img { position: absolute; inset: 0; }
.pl-img img, .pl-img canvas { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .9s var(--ease), opacity .6s; opacity: .85; }
.pl:hover .pl-img img, .pl:focus .pl-img img { transform: scale(1.08); opacity: .55; }
.pl-txt { position: absolute; inset: auto 0 0 0; padding: 22px; display: grid; gap: 8px; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); }
.pl-txt .label { color: rgba(255,255,255,.8); }
.pl-txt h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.035em; font-size: clamp(32px, 3.4vw, 52px); line-height: .95; }
.pl-txt p { margin: 0; font-size: 15px; line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.pl:hover .pl-txt p, .pl:focus .pl-txt p { max-height: 12em; opacity: 1; }
@media (hover: none) { .pl-txt p { max-height: none; opacity: 1; } }

.personas { border: 1px solid var(--hair); }
.ps-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); border-bottom: 1px solid var(--hair); }
.ps-tabs button { text-align: left; padding: 16px; display: grid; gap: 4px; border-right: 1px solid var(--hair-soft); color: var(--ink); }
.ps-tabs button b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; letter-spacing: -0.03em; }
.ps-tabs button span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-1); }
.ps-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.ps-tabs button[aria-selected="true"] span { color: inherit; opacity: .7; }
.ps-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.ps-img { aspect-ratio: 4 / 5; background: var(--panel); }
.ps-img canvas, .ps-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-body { padding: clamp(20px, 3vw, 40px); display: grid; align-content: start; gap: 14px; }
.ps-body h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.05em; font-size: clamp(56px, 7vw, 112px); line-height: .9; display: flex; align-items: baseline; gap: 14px; }
.ps-body h3 small { font-size: .3em; letter-spacing: 0; color: var(--grey-1); }
.ps-role { margin: 0; font-size: 17px; }
.ps-body dl { margin: 0; display: grid; border-top: 1px solid var(--hair); }
.ps-body dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair-soft); }
.ps-body dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-1); font-weight: 500; }
.ps-body dd { margin: 0; font-size: 15px; line-height: 1.45; }
.ps-body blockquote { margin: 6px 0 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.1; }
@media (max-width: 760px) { .ps-panel { grid-template-columns: 1fr; } .ps-img { aspect-ratio: 16 / 10; } .ps-body dl div { grid-template-columns: 1fr; gap: 4px; } }

.day { border: 1px solid var(--hair); padding: clamp(18px, 3vw, 36px); display: grid; gap: 20px; --seg: #1954EA; }
.day-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 4vw, 48px); align-items: end; }
.day .clock { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.05em; line-height: .85; font-size: clamp(72px, 12vw, 190px); font-variant-numeric: tabular-nums; color: var(--seg); transition: color .4s; }
.day h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.035em; line-height: .95; }
.day-top p { margin: 0; max-width: 40ch; font-size: 16px; }
.day-bar { display: flex; height: 14px; gap: 2px; }
.day-bar i { display: block; }
.day input[type=range] { width: 100%; accent-color: var(--seg); }
.day-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border-top: 1px solid var(--hair); }
.day-grid div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hair-soft); }
.day-grid dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-1); font-weight: 500; }
.day-grid dd { margin: 4px 0 0; font-size: 15px; }
@media (max-width: 640px) { .day-top { grid-template-columns: 1fr; } }

.quotes { background: #000; color: #FFF; padding: clamp(28px, 5vw, 64px); display: grid; gap: 24px; justify-items: start; }
.quotes .q { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.04em; line-height: .95; font-size: clamp(44px, 7vw, 112px); }
.quotes .q.in { animation: qin .5s var(--ease); }
@keyframes qin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.quotes button { border: 1px solid #FFF; color: #FFF; padding: 10px 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }

.scales { display: grid; gap: 4px; }
.sc-key { display: flex; gap: 22px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.sc-key span { display: flex; align-items: center; gap: 8px; }
.scales i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.scales i.me { background: linear-gradient(135deg, #1954EA, #EF2DB9); }
.scales i.them { border: 1.5px solid var(--grey-1); background: transparent; }
.sc { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr) minmax(0, 140px); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair-soft); }
.sc .l, .sc .r { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(16px, 1.8vw, 24px); letter-spacing: -0.02em; }
.sc .r { text-align: right; }
.sc .track { position: relative; height: 2px; background: var(--hair); }
.sc .track i { position: absolute; top: 50%; left: var(--x); transform: translate(-50%, -50%); width: 18px; height: 18px; transition: left 1.2s var(--ease); }
.sc .track i.me { width: 26px; height: 26px; z-index: 1; }
@media (max-width: 640px) { .sc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sc .track { grid-column: 1 / -1; order: 3; } }

.vmap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--hair); }
.vm-plot { position: relative; aspect-ratio: 1; margin: 34px; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background-image: linear-gradient(var(--hair-soft) 1px, transparent 1px), linear-gradient(90deg, var(--hair-soft) 1px, transparent 1px); background-size: 25% 25%; }
.vm-plot .ax { position: absolute; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--grey-1); white-space: nowrap; }
.ax.y1 { top: -22px; left: 0; } .ax.y0 { bottom: 6px; left: 8px; } .ax.x0 { bottom: -24px; left: 0; } .ax.x1 { bottom: -24px; right: 0; }
.pt { position: absolute; transform: translate(-50%, 50%); display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; white-space: nowrap; }
.pt i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); flex: none; }
.pt.avoid i { background: transparent; border: 1.5px solid var(--grey-1); }
.pt.avoid span { color: var(--grey-1); }
.pt.me i { width: 26px; height: 26px; background: linear-gradient(135deg, #1954EA, #EF2DB9); }
.pt.me span { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.pt.on span { text-decoration: underline; text-underline-offset: 4px; }
.vm-note { padding: clamp(20px, 3vw, 36px); border-left: 1px solid var(--hair); display: grid; align-content: center; gap: 10px; }
.vm-note h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(36px, 4vw, 60px); letter-spacing: -0.04em; line-height: .95; }
.vm-note p { margin: 0; font-size: 16px; line-height: 1.45; }
@media (max-width: 760px) { .vmap { grid-template-columns: 1fr; } .vm-note { border-left: 0; border-top: 1px solid var(--hair); } }

.vrules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.vrules li { display: grid; grid-template-columns: clamp(64px, 10vw, 150px) minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--hair-soft); align-items: baseline; }
.vrules .n { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(56px, 8vw, 120px); letter-spacing: -0.05em; line-height: .8; }
.vrules h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(26px, 3.2vw, 48px); letter-spacing: -0.035em; line-height: 1; }
.vrules p { margin: 0; font-size: 16px; max-width: 52ch; }

.rw { border: 1px solid var(--hair); }
.rw-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--hair); }
.rw-tabs button { padding: 12px 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--ink); border-right: 1px solid var(--hair-soft); }
.rw-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.rw-stage { position: relative; min-height: clamp(240px, 30vw, 380px); padding: clamp(22px, 4vw, 48px); display: grid; align-content: center; }
.rw-stage p { margin: 0; grid-area: 1 / 1; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.035em; line-height: 1; transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s; }
.rw .no { font-size: clamp(24px, 3.2vw, 44px); color: var(--grey-1); }
.rw .yes { font-size: clamp(48px, 7.5vw, 120px); letter-spacing: -0.05em; opacity: 0; transform: translateY(16px); }
.rw.done .no { opacity: 0; transform: translateY(-16px); filter: blur(4px); }
.rw.done .yes { opacity: 1; transform: none; }
.rw-go { margin: 0 0 clamp(18px, 3vw, 32px) clamp(22px, 4vw, 48px); border: 1px solid var(--ink); padding: 12px 16px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--ink); }
.rw.done .rw-go { background: var(--ink); color: var(--paper); }

.lines { border-top: 1px solid var(--ink); }
.ln { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hair-soft); align-items: baseline; }
.ln p { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.035em; line-height: 1; font-size: clamp(28px, 4.2vw, 64px); transition: color .3s; }
.ln:hover p { background: linear-gradient(90deg, #1954EA, #9F2BCE 50%, #EF2DB9); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 640px) { .ln { grid-template-columns: 1fr; gap: 6px; } }

/* ---- v11 pass: chapter flow and part dividers ---- */
.part { margin-top: 0; min-height: 100svh; display: grid; padding: calc(var(--header-h) + 32px) var(--gut) calc(88px + env(safe-area-inset-bottom, 0px)); }
.page > *:has(+ .part) { padding-bottom: clamp(80px, 11vw, 180px); }
.ch-hero:has(+ .part) { padding-bottom: clamp(48px, 6vw, 88px); }
.part .in { width: 100%; display: grid; grid-template-rows: auto 1fr; gap: 0; }
.part-top { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid currentColor; padding-top: 14px; }
.part-top .part-n { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(14px, 1.1vw, 16px); letter-spacing: .02em; opacity: .7; font-variant-numeric: tabular-nums; }
.part-main { align-self: end; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(24px, 4vw, 64px); align-items: end; }
.part h2 { line-height: .9; padding-bottom: .06em; font-size: clamp(64px, 13.5vw, 220px); }
.part-side { display: grid; gap: 28px; padding-bottom: .6em; }
.part-side p { font-size: clamp(16px, 1.3vw, 19px); }
.part-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.28); }
.part.light .part-toc { border-color: var(--hair); }
.part-toc li { border-bottom: 1px solid rgba(255,255,255,.18); }
.part.light .part-toc li { border-color: var(--hair); }
.part-toc a { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 9px 0; color: inherit; text-decoration: none; font-size: 15px; line-height: 1.3; opacity: .78; transition: opacity .2s, padding .25s; }
.part-toc a span { font-size: 11px; letter-spacing: .08em; opacity: .6; padding-top: 3px; font-variant-numeric: tabular-nums; }
.part-toc a:hover, .part-toc a:focus-visible { opacity: 1; padding-left: 6px; }
@media (max-width: 860px) {
  .part-main { grid-template-columns: 1fr; }
  .part-side { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .part h2 { font-size: 19vw; }
  .corner .demo { display: none; }
}
/* v14: rewrite machine goes FLAVEDO blue on reveal */
.rw { transition: background .45s var(--ease), color .45s var(--ease); }
.rw-tabs { background: var(--paper); }
.rw.done { background: #1954EA; color: #FFFFFF; border-color: #1954EA; }
.rw.done .yes { color: #FFFFFF; }
.rw.done .rw-go { background: #FFFFFF; color: #1954EA; border-color: #FFFFFF; }
.rw-go { margin-top: 0; }

/* ================= v17 Logo labs ================= */
.mk { display: block; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.mk.stone, .mk.v-mark { aspect-ratio: 833 / 1060; }
.mk.v-logotype { aspect-ratio: 1850 / 326; }
.mk.v-cafe { aspect-ratio: 1850 / 425; }
.mk.v-lettered { aspect-ratio: 1850 / 326; }

/* MarkLab */
.mlab { border: 1px solid var(--hair); }
.ml-stage { position: relative; min-height: clamp(420px, 62vw, 760px); display: grid; place-items: center; overflow: hidden; perspective: 1200px; --rx: 0deg; --ry: 0deg; --lx: 50%; --ly: 30%; transition: background .5s var(--ease), color .5s var(--ease); }
.ml-stage.g-black { background: #000; color: #fff; }
.ml-stage.g-white { background: #fff; color: #000; }
.ml-stage.g-gradient { background: linear-gradient(180deg,#AFC8F3 0%,#AFC8F3 14%,#C998E9 24%,#EF2DB9 47%,#9F2BCE 63%,#1954EA 74%,#1954EA 100%); color: #fff; }
.ml-stage.g-blue { background: #1954EA; color: #fff; }
.ml-stage:not([data-sc="mark"]) { background: #EDEBE6; color: #000; }
.ml-scene { position: absolute; inset: 0; display: grid; place-items: center; }
.ml-scene[hidden] { display: none; }
.ml-scene > * { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; transform-style: preserve-3d; }
.ml-mark { position: relative; height: var(--h, 360px); aspect-ratio: 833 / 1060; }
.ml-mark .stone { height: 100%; width: 100%; }
.ml-clear { position: absolute; inset: calc(var(--h, 360px) * -0.1965); border: 1px dashed currentColor; opacity: 0; transition: opacity .3s; pointer-events: none; aspect-ratio: auto; }
.ml-clear::after { content: "¼ W"; position: absolute; top: 6px; left: 8px; font-size: 11px; letter-spacing: .08em; }
.mlab.show-clear .ml-clear { opacity: .7; }
.mlab.too-small .ml-mark .stone { opacity: .35; }
.ml-read { position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); display: grid; gap: 4px; max-width: 46ch; z-index: 2; }
.ml-read b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1; }
.ml-read span { font-size: 14px; line-height: 1.4; opacity: .8; }
.ml-num { position: absolute; right: clamp(16px, 3vw, 32px); top: clamp(16px, 3vw, 28px); font-size: 11px; letter-spacing: .1em; opacity: .7; }
.ml-ctrl { display: flex; flex-wrap: wrap; gap: 18px 32px; padding: 18px clamp(16px, 3vw, 28px); border-top: 1px solid var(--hair); align-items: center; }
.ml-group { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ml-group[hidden] { display: none; }
.ml-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-chips button, .ml-toggle { display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--hair); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--ink); }
.ml-chips button[aria-pressed="true"], .ml-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(128,128,128,.5); }
.sw-black { background: #000; } .sw-white { background: #fff; } .sw-blue { background: #1954EA; }
.sw-gradient { background: linear-gradient(180deg,#AFC8F3,#EF2DB9,#1954EA); }
.ml-group input[type=range] { width: 180px; accent-color: #1954EA; }
.ml-size { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 17ch; }
.ml-size.bad { color: #EF2DB9; }
/* scenes */
.ml-phone { width: min(300px, 60%); aspect-ratio: 9 / 16; border-radius: 40px; background: linear-gradient(160deg,#e9e6f5,#c9d6f3 40%,#f1c7e6); border: 10px solid #111; padding: 48px 22px; box-shadow: 0 40px 80px rgba(0,0,0,.25); }
.ml-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
.ml-app { display: grid; gap: 6px; justify-items: center; }
.ml-app i { width: 100%; aspect-ratio: 1; border-radius: 24%; background: rgba(255,255,255,.55); display: block; }
.ml-app small { width: 70%; height: 4px; border-radius: 2px; background: rgba(0,0,0,.18); }
.ml-app.me { aspect-ratio: 1; border-radius: 24%; display: grid; place-items: center; position: relative; box-shadow: 0 6px 16px rgba(25,84,234,.35); }
.ml-app.me .stone { height: 56%; width: auto; color: #fff; }
.ml-app.me small { position: absolute; bottom: -16px; width: auto; height: auto; background: none; font-size: 8px; letter-spacing: .04em; color: #000; }
.ml-cupclear { width: min(300px, 58%); aspect-ratio: 3 / 4; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); background: linear-gradient(90deg, rgba(150,110,80,.85), rgba(205,170,135,.9) 40%, rgba(160,120,90,.85)); display: grid; place-items: center; }
.ml-foil, .vx-stk .foil { width: 46%; aspect-ratio: 4 / 5; background: linear-gradient(115deg,#b9bcc2 0%,#eef0f3 var(--lx,40%),#a9adb4 70%,#d9dce1 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 2px 6px rgba(0,0,0,.2); display: grid; place-items: center; }
.mk.emb { color: #c9ccd2; filter: drop-shadow(-1px -1px 0 rgba(255,255,255,.9)) drop-shadow(1.5px 1.5px 1px rgba(0,0,0,.35)); }
.ml-foil .stone { height: 58%; width: auto; }
.ml-bag { width: min(340px, 62%); aspect-ratio: 3 / 4; background: #c9a77c radial-gradient(circle at 30% 20%, rgba(255,255,255,.15), transparent 60%); clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); display: grid; place-items: center; position: relative; }
.ml-ink .stone { height: 120px; width: auto; color: #1b1b1b; opacity: .88; filter: url(#none); -webkit-mask-composite: source-in; }
.ml-baglabel { position: absolute; bottom: 14%; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #3a2d1d; }
.ml-lid { width: min(380px, 66%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at var(--lx,35%) var(--ly,30%), #fff 0%, #d7dadf 18%, #8f949c 45%, #e9ebee 62%, #6f747c 80%, #cfd2d7 100%); box-shadow: 0 30px 60px rgba(0,0,0,.25), inset 0 0 0 10px rgba(255,255,255,.35); display: grid; place-items: center; }
.ml-lid-in { width: 64%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at var(--lx,40%) var(--ly,35%), #f4f5f7, #a3a8b0 70%); display: grid; place-items: center; }
.ml-lid-in .stone { height: 46%; width: auto; }
.ml-browser { width: min(560px, 86%); background: #fff; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.18); overflow: hidden; }
.ml-tab { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f1f1f1; border-radius: 10px 10px 0 0; margin: 10px 0 0 12px; font-size: 14px; }
.ml-tab .stone.fav { height: 16px; width: auto; color: #000; }
.ml-tab em { font-style: normal; opacity: .4; margin-left: 24px; }
.ml-url { background: #f1f1f1; padding: 12px 18px; font-size: 14px; color: #555; border-top: 1px solid #e3e3e3; }

/* VersionLab */
.vlab { border: 1px solid var(--hair); }
.vl-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.vl-tabs button { text-align: left; padding: 14px 16px; display: grid; gap: 4px; border-right: 1px solid var(--hair); color: var(--ink); }
.vl-tabs button b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; letter-spacing: -0.02em; }
.vl-tabs button span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.vl-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.vl-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-bottom: 1px solid var(--hair); }
.vl-spec { background: #fff; color: #000; min-height: clamp(220px, 26vw, 360px); display: grid; place-items: center; padding: 8%; }
.vl-spec .vl-hero.v-logotype, .vl-spec .vl-hero.v-lettered { width: 88%; }
.vl-spec .vl-hero.v-cafe { width: 74%; }
.vl-spec .vl-hero.v-mark { height: clamp(140px, 18vw, 260px); width: auto; }
.vl-info { padding: clamp(20px, 3vw, 36px); display: grid; align-content: center; gap: 18px; border-left: 1px solid var(--hair); }
.vl-rule { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.025em; line-height: 1.1; }
.vl-info dl { margin: 0; display: grid; gap: 10px; }
.vl-info dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 14px; }
.vl-info dt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; padding-top: 3px; }
.vl-info dd { margin: 0; }
.vl-status { justify-self: start; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid #EF2DB9; color: #EF2DB9; padding: 4px 8px; }
.vl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vt { margin: 0; border-right: 1px solid var(--hair); }
.vt:last-child { border-right: 0; }
.vt figcaption { padding: 12px 16px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-top: 1px solid var(--hair); }
.vx { aspect-ratio: 4 / 3.4; position: relative; overflow: hidden; display: grid; place-items: center; background: #EDEBE6; color: #000; }
.vx .w { color: #fff; }
/* cup */
.vx-cup .cup { width: 34%; aspect-ratio: 3 / 4; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); display: grid; place-items: center; margin-top: 8%; }
.vx-cup .on-cup { width: 50%; color: #000; }
.vx-cup .lidc { position: absolute; top: calc(50% - 34% * 4 / 3 / 2 * 1.17); width: 38%; height: 7%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg,#f4f5f7,#9aa0a8 60%,#e3e5e8); }
.vx-web { background: #dcdcdc; place-items: stretch; padding: 12% 8% 0; grid-template-rows: auto auto 1fr; display: grid; }
.vx-web .bar { display: flex; gap: 5px; background: #fff; padding: 8px; border-radius: 8px 8px 0 0; }
.vx-web .bar i { width: 7px; height: 7px; border-radius: 50%; background: #ccc; }
.vx-web .hd { display: flex; align-items: center; gap: 14px; background: #fff; padding: 10px 12px; font-size: 10px; border-top: 1px solid #eee; }
.vx-web .hdlogo { width: 34%; margin-right: auto; }
.vx-web .hero { min-height: 60px; }
.vx-rec .slip { width: 46%; background: #fff; padding: 9% 7%; box-shadow: 0 10px 30px rgba(0,0,0,.12); display: grid; gap: 6px; font-size: 9px; letter-spacing: .06em; }
.vx-rec .rlogo { width: 100%; margin-bottom: 10px; }
.vx-rec p { margin: 0; display: flex; justify-content: space-between; }
.vx-rec .tot { border-top: 1px dashed #000; padding-top: 6px; font-weight: 600; }
.vx-rec .th { justify-content: center; margin-top: 8px; opacity: .7; }
.vx-icon { gap: 8px; align-content: center; }
.vx-icon .app { width: 34%; aspect-ratio: 1; border-radius: 24%; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(25,84,234,.3); }
.vx-icon .app .v-mark { height: 56%; width: auto; }
.vx-icon small { font-size: 11px; }
.vx-stk { background: linear-gradient(90deg,#7b5a3e,#b88d66 45%,#7b5a3e); }
.vx-stk .foil { width: 30%; }
.vx-stk .foil .v-mark { height: 56%; width: auto; }
.vx-av { gap: 6px; align-content: center; background: #fff; }
.vx-av .ring { width: 36%; aspect-ratio: 1; border-radius: 50%; padding: 4px; background: linear-gradient(135deg,#1954EA,#EF2DB9); }
.vx-av .av { width: 100%; height: 100%; border-radius: 50%; background: #000; display: grid; place-items: center; border: 3px solid #fff; }
.vx-av .av .v-mark { height: 46%; width: auto; }
.vx-av b { font-size: 13px; } .vx-av small { font-size: 10px; opacity: .6; }
.vx-shop { background: #d8d4cc; grid-template-rows: auto 1fr; place-items: stretch; padding: 10% 8% 0; }
.vx-shop .fascia { background: #000; display: grid; place-items: center; padding: 6% 10%; }
.vx-shop .fascia .v-cafe { width: 70%; }
.vx-shop .glass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding-top: 4px; }
.vx-shop .glass span { background: linear-gradient(180deg,#9fb4c9,#5b6f84); }
.vx-map { background: #e7eadf repeating-linear-gradient(35deg, transparent 0 34px, #fff 34px 40px); }
.vx-map .pin { width: 15%; aspect-ratio: 1; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #000; display: grid; place-items: center; margin-bottom: 30%; }
.vx-map .pin .v-mark { height: 55%; width: auto; transform: rotate(45deg); }
.vx-map .card { position: absolute; left: 8%; right: 8%; bottom: 8%; background: #fff; padding: 10px 12px; display: grid; gap: 2px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); font-size: 12px; }
.vx-map .card small { font-size: 10px; opacity: .6; }
.vx-hoard { align-content: center; gap: 12px; }
.vx-hoard .v-cafe { width: 62%; }
.vx-hoard small { color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.vx-ghost, .vx-tissue, .vx-menu { background: #fff; }
.mk.gh { color: #F9F9F9; }
.vx-ghost .big { position: absolute; width: 140%; left: -20%; color: #F4F4F4; }
.vx-ghost p { position: relative; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; letter-spacing: -0.03em; margin: 0; }
.vx-tissue { grid-template-columns: repeat(3, 1fr); gap: 18px 14px; padding: 10%; align-content: center; }
.vx-tissue .gh { color: #EFEFEF; width: 100%; }
.vx-menu { place-items: start; padding: 10%; align-content: center; }
.vx-menu .big2 { position: absolute; width: 120%; left: -10%; top: 40%; color: #F4F4F4; }
.vx-menu ul { position: relative; list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 8px; font-size: 13px; }
.vx-menu li { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.vx-del { background: #fff; place-items: stretch; grid-template-rows: 1fr auto; padding: 8%; gap: 10px; }
.vx-del .img { border-radius: 10px; }
.vx-del .row { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.vx-del .row small { display: block; font-size: 10px; opacity: .6; }
.vx-del .lg { width: 46px; height: 46px; border-radius: 50%; background: #000; display: grid; place-items: center; padding: 6px; }
.vx-del .lg .v-lettered { width: 100%; }
.vx-pin { background: #e7eadf repeating-linear-gradient(-30deg, transparent 0 30px, #fff 30px 36px); align-content: center; }
.vx-pin .bub { background: #000; padding: 10px 14px; border-radius: 20px; width: 58%; }
.vx-pin .bub .v-lettered { width: 100%; }
.vx-pin i { width: 12px; height: 12px; background: #000; transform: rotate(45deg); margin-top: -6px; }
.vx-legal { background: #fff; align-content: end; justify-items: start; padding: 8%; gap: 8px; }
.vx-legal .v-lettered { width: 34%; }
.vx-legal p { margin: 0; font-size: 9px; letter-spacing: .04em; opacity: .7; border-top: 1px solid #ddd; padding-top: 6px; width: 100%; }
.vx-cw .v-logotype { width: 62%; }
@media (max-width: 860px) {
  .vl-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vl-tabs button { border-bottom: 1px solid var(--hair); }
  .vl-head { grid-template-columns: 1fr; }
  .vl-info { border-left: 0; border-top: 1px solid var(--hair); }
  .vl-tiles { grid-template-columns: 1fr; }
  .vt { border-right: 0; border-bottom: 1px solid var(--hair); }
  .ml-ctrl { gap: 14px; }
  .ml-group input[type=range] { width: 140px; }
}

/* ================= v18 MisuseLab ================= */
.mlx { border: 1px solid var(--hair); }
.mlx-do { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-bottom: 1px solid var(--hair); }
.mlx-do-img { background: #fff; color: #000; min-height: clamp(200px, 22vw, 300px); display: grid; place-items: center; position: relative; }
.mlx-do-img::after { content: ""; position: absolute; inset: 18% 10%; border: 1px dashed rgba(0,0,0,.25); }
.mlx-do-txt { padding: clamp(20px, 3vw, 36px); border-left: 1px solid var(--hair); display: grid; align-content: center; gap: 14px; }
.mlx-do-txt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mlx-do-txt li { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.02em; line-height: 1.15; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.mlx-badge { display: inline-grid; place-items: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #fff; padding: 5px 9px; justify-self: start; }
.mlx-badge.ok { background: #1954EA; }
.mlx-badge.no { background: #EF2DB9; }
.mlx-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px clamp(14px, 2vw, 20px); border-bottom: 1px solid var(--hair); }
.mlx-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.mlx-filter button { padding: 9px 12px; border: 1px solid var(--hair); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--ink); }
.mlx-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mlx-hint { font-size: 12px; opacity: .6; }
.mlx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); }
.mlx-card { all: unset; box-sizing: border-box; cursor: pointer; background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.mlx-card[hidden] { display: none; }
.mlx-card:focus-visible { outline: 2px solid #1954EA; outline-offset: -2px; }
.mlx-vis { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mlx-vis .bad, .mlx-vis .good { position: absolute; inset: 0; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.mlx-vis .good { opacity: 0; transform: scale(.98); }
.mlx-card[aria-pressed="true"] .bad { opacity: 0; transform: scale(1.02); }
.mlx-card[aria-pressed="true"] .good { opacity: 1; transform: none; }
.mlx-vis .mlx-badge { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; padding: 0; font-size: 14px; border-radius: 50%; transition: opacity .3s; }
.mlx-vis .mlx-badge.fix { opacity: 0; }
.mlx-card[aria-pressed="true"] .mlx-badge.no { opacity: 0; }
.mlx-card[aria-pressed="true"] .mlx-badge.fix { opacity: 1; }
.mx { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; color: #000; }
.mx .mk { transform-origin: center; }
.mlx-cap { padding: 14px 16px 18px; display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--hair); }
.mlx-cap b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 19px; letter-spacing: -0.02em; line-height: 1.1; }
.mlx-cap span { font-size: 13px; line-height: 1.4; opacity: .75; }
.mlx-cap .fixline { display: none; color: #1954EA; opacity: 1; font-weight: 500; }
.mlx-card[aria-pressed="true"] .why { display: none; }
.mlx-card[aria-pressed="true"] .fixline { display: block; }
.mx-calm { width: 50%; padding: 6%; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.mx-crowd { grid-auto-flow: column; gap: 4px; align-content: center; justify-content: center; }
.mx-crowd span, .mx-air span { font-size: 11px; letter-spacing: .04em; max-width: 12ch; line-height: 1.2; }
.mx-crowd span { margin-left: -2px; }
.mx-air { grid-auto-flow: column; gap: 9%; align-content: center; justify-content: center; }
.mx-box { width: 46%; border: 3px solid #000; border-radius: 4px; padding: 3%; }
.mx-tag { position: absolute; bottom: 10px; right: 12px; font-style: normal; font-size: 10px; letter-spacing: .08em; opacity: .6; }
.mx-cupw { background: #EDEBE6; }
.cupx { width: 34%; aspect-ratio: 3 / 4; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); display: grid; place-items: center; color: #000; }
.mx-sign { background: #d8d4cc; grid-template-rows: 38% 1fr; place-items: stretch; padding: 8% 10% 0; }
.mx-sign .fas { background: #000; display: grid; place-items: center; }
.mx-sign .win { background: linear-gradient(180deg,#9fb4c9,#5b6f84); margin-top: 4px; }
.mx-copy { background: #fff; padding: 10%; }
.mx-copy p { margin: 0; font-size: 16px; line-height: 1.4; }
@media (max-width: 960px) { .mlx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mlx-grid { grid-template-columns: 1fr; } .mlx-do { grid-template-columns: 1fr; } .mlx-do-txt { border-left: 0; border-top: 1px solid var(--hair); } }
.mx .fx { display: block; }
.mx .w { color: #fff; }
.mx-crowd, .mx-air { display: flex; align-items: center; justify-content: center; }
.mx-crowd { gap: 3px; }
.mx-air { gap: 9%; }

/* ================= v20 FilesBand: BRAT grey, spreadsheet ================= */
:root { --brat-grey: #E4E4E4; }
.files-band { background: var(--brat-grey); color: #000; margin-top: clamp(64px, 9vw, 140px); padding: clamp(40px, 6vw, 80px) var(--gut); }
.files-band .in { max-width: var(--max); margin: 0 auto; }
.fb-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 14px; }
.fb-t { display: flex; align-items: baseline; gap: 18px; }
.fb-n { font-size: 11px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.files-band h2 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -0.04em; line-height: .95; }
.fb-zip { display: inline-flex; align-items: center; gap: 14px; background: #000; color: #fff; text-decoration: none; padding: 12px 14px 12px 16px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.fb-zip span { font-weight: 400; opacity: .65; }
.fb-zip i { font-style: normal; font-size: 15px; }
.fb-zip:hover { background: #1954EA; }
.fb-note { margin: 0 0 18px; font-size: 13px; line-height: 1.45; max-width: 70ch; opacity: .7; }
.fb-scroll { overflow-x: auto; border-top: 1px solid #000; }
.fb-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.fb-table th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 9px 12px; border-bottom: 1px solid #000; white-space: nowrap; }
.fb-table td { padding: 9px 12px; border-bottom: 1px solid rgba(0,0,0,.16); vertical-align: middle; }
.fb-table td + td, .fb-table th + th { border-left: 1px solid rgba(0,0,0,.16); }
.fb-table tbody tr:not(.fb-g):hover td { background: #fff; }
.fb-table .fb-g td { padding: 16px 12px 7px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid #000; border-left: 0; }
.fb-table .fb-g td span { margin-left: 10px; opacity: .5; }
.fb-table .c-n { width: 40px; opacity: .55; }
.fb-table .c-a { font-weight: 500; white-space: nowrap; }
.fb-table .c-file { font-size: 12px; opacity: .7; white-space: nowrap; }
.fb-table .c-u { opacity: .7; }
.fb-table .c-f, .fb-table .c-s { width: 70px; white-space: nowrap; font-size: 11px; letter-spacing: .06em; }
.fb-table .c-d { width: 52px; padding: 0; text-align: center; }
.fb-table .c-d a { display: grid; place-items: center; height: 38px; color: #000; text-decoration: none; font-size: 16px; }
.fb-table .c-d a:hover { background: #000; color: #fff; }
@media (max-width: 760px) {
  .fb-table .c-file, .fb-table .c-u, .fb-table th:nth-child(3), .fb-table th:nth-child(4) { display: none; }
}

/* ================= v21 Stone & Bean ================= */
.triad { display: grid; grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr) 48px minmax(0,1fr); border: 1px solid var(--hair); }
.td { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 10px; align-content: start; }
.td-vis { height: clamp(140px, 15vw, 200px); display: grid; place-items: center; background: var(--panel); margin-bottom: 8px; }
.td-mk { height: 64%; aspect-ratio: .786; }
.td-row { width: 86%; aspect-ratio: 5.67; }
.td-mk.many { opacity: .9; filter: blur(.4px); }
.td-n { font-size: 11px; letter-spacing: .08em; opacity: .6; }
.td h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.04em; line-height: .95; }
.td p { margin: 0; font-size: 14px; line-height: 1.45; opacity: .8; }
.td-op { display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 34px; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); }
@media (max-width: 860px) { .triad { grid-template-columns: 1fr; } .td-op { border: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 6px; font-size: 24px; } }

.bb { background: #000; color: #fff; }
.bb-stage { position: relative; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px) 0; }
.bb-stage svg { display: block; width: 100%; height: auto; max-height: 64vh; overflow: visible; }
.bb-s { fill: #fff; stroke: #fff; stroke-width: .006; }
.bb-avg { fill: url(#none); fill: #fff; }
.bb-lbl text { fill: #fff; font-family: var(--font-display); font-size: .13px; }
.bb-lbl .w { font-size: .075px; opacity: .6; }
.bb-num { fill: #fff; font-size: .07px; letter-spacing: .01px; opacity: 0; }
.bb-steps { list-style: none; margin: clamp(16px, 3vw, 28px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.2); }
.bb-steps li { padding: 14px 12px 16px 0; display: grid; gap: 4px; opacity: .35; transition: opacity .4s; border-top: 2px solid transparent; margin-top: -1px; }
.bb-steps li.on { opacity: 1; border-top-color: #fff; }
.bb-steps b { font-size: 11px; letter-spacing: .08em; font-weight: 500; }
.bb-steps span { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(16px, 1.6vw, 22px); letter-spacing: -0.02em; }
.bb-ui { display: flex; align-items: center; gap: 16px; padding: 16px clamp(16px, 4vw, 48px) 22px; border-top: 1px solid rgba(255,255,255,.2); }
.bb-play { padding: 10px 16px; border: 1px solid #fff; color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; min-width: 88px; }
.bb-play:hover { background: #fff; color: #000; }
.bb-ui input[type=range] { flex: 1; accent-color: #fff; }
.bb-pct { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
@media (max-width: 600px) { .bb-steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.next a { grid-template-columns: auto minmax(0, 1fr) auto; }
.next a .t { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .next a .t { font-size: clamp(40px, 13vw, 64px); } .next a .arr { font-size: 28px; } }
.td-img { height: clamp(104px, 11vw, 148px); width: auto; }

/* ================= v23 Blend system ================= */
.bl-stone { display: block; width: 100%; height: 100%; }
.bl-stone path { fill: currentColor; }
.bl-bar { display: flex; gap: 2px; width: 100%; }
.bl-bar span { position: relative; min-width: 0; display: grid; gap: 6px; }
.bl-bar i { display: block; height: 10px; background: currentColor; }
.bl-bar b { font-size: 10px; letter-spacing: .06em; font-weight: 600; line-height: 1; white-space: nowrap; }
.bl-bar small { font-size: 10px; opacity: .6; font-variant-numeric: tabular-nums; line-height: 1; }
.bl-bar.big i { height: 18px; }
.bl-bar.mini { gap: 1px; } .bl-bar.mini i { height: 5px; } .bl-bar.mini b { font-size: 7px; }
.bl-bar span:has(i) b, .bl-bar span small { overflow: visible; }

.bla { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--hair); }
.bla-vis { background: #000; color: #fff; display: grid; place-items: center; padding: 10%; min-height: clamp(320px, 36vw, 520px); }
.bla-vis .bl-stone { width: 62%; height: auto; }
.bla-spec { display: grid; }
.bla-row { padding: clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--hair); display: grid; gap: 10px; align-content: start; }
.bla-row:last-child { border-bottom: 0; }
.bla-row .k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.bla-row p { margin: 0; font-size: 14px; line-height: 1.45; opacity: .75; max-width: 52ch; }
.bla-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(40px, 5vw, 76px); letter-spacing: -0.045em; line-height: .9; }
.bla-code { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(18px, 2vw, 28px); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

.blab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--hair); }
.blab-vis { background: #000; color: #fff; padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; align-content: center; justify-items: center; }
.blab-vis .bl-stone { width: min(260px, 60%); height: auto; }
.blab-vis .bl-stone path { transition: d .15s linear; }
.blab-id { text-align: center; display: grid; gap: 6px; }
.blab-id b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.04em; line-height: 1; }
.blab-id span { font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; opacity: .8; }
.blab-vis [data-blbar] { width: 100%; max-width: 440px; }
.blab-ctl { padding: clamp(20px, 3vw, 36px); display: grid; gap: 10px; align-content: center; }
.blab-s { display: grid; grid-template-columns: 24px 1fr 34px; gap: 14px; align-items: center; }
.blab-s b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; }
.blab-s input { accent-color: #000; width: 100%; }
.blab-s span { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.blab-btns { display: flex; gap: 8px; margin-top: 10px; }
.blab-btns button { padding: 10px 14px; border: 1px solid var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.blab-btns button:hover { background: var(--ink); color: var(--paper); }
.blab-note { margin: 4px 0 0; font-size: 12px; opacity: .6; }

.blc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.blc-c { margin: 0; background: var(--paper); display: grid; }
.blc-v { aspect-ratio: 1; display: grid; place-items: center; padding: 22%; color: var(--ink); }
.blc-c.is-house .blc-v { background: #000; color: #fff; }
.blc-c figcaption { padding: 14px 16px 18px; display: grid; gap: 8px; border-top: 1px solid var(--hair); }
.blc-c figcaption b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; letter-spacing: -0.02em; }
.blc-c code { font-family: inherit; font-size: 10px; letter-spacing: .04em; opacity: .7; font-variant-numeric: tabular-nums; }

.bu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.bu-c { margin: 0; background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.bu-v { aspect-ratio: 4 / 3.3; background: #EDEBE6; display: grid; place-items: center; overflow: hidden; color: #000; }
.bu-c figcaption { padding: 14px 16px 18px; display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--hair); }
.bu-c figcaption b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; letter-spacing: -0.02em; }
.bu-c figcaption span { font-size: 13px; line-height: 1.4; opacity: .75; }
.bu-bag .bag { width: 150px; aspect-ratio: 3 / 4.2; background: #c9a77c; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); padding: 18px 20px; display: grid; gap: 6px; justify-items: center; align-content: start; color: #1b1b1b; }
.bu-bag .bl-stone { width: 44px; height: auto; opacity: .9; margin-top: 6px; }
.bu-bag b { font-size: 12px; font-weight: 700; margin-top: 4px; }
.bu-bag code { font-family: inherit; font-size: 6.5px; letter-spacing: .02em; }
.bu-bag .bl-bar { width: 100%; }
.bu-bag .origin { display: flex; gap: 1px; width: 100%; margin-top: 8px; font-size: 6px; flex-wrap: wrap; }
.bu-bag .origin small { width: 100%; font-size: 6px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.bu-bag .origin span { border-top: 5px solid #1b1b1b; padding-top: 2px; opacity: .85; }
.bu-table .tent { width: 150px; background: #fff; padding: 20px; display: grid; gap: 6px; justify-items: center; box-shadow: 0 14px 28px rgba(0,0,0,.12); }
.bu-table .bl-stone { width: 56px; height: auto; }
.bu-table b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; letter-spacing: -0.02em; }
.bu-table small { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.bu-loyal .card { width: 230px; aspect-ratio: 1.6; background: #1954EA; color: #fff; border-radius: 10px; padding: 14px; display: grid; grid-template-rows: auto 1fr; gap: 8px; box-shadow: 0 14px 28px rgba(25,84,234,.3); }
.bu-loyal .lg b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 15px; display: block; }
.bu-loyal .lg small { font-size: 9px; opacity: .8; }
.bu-loyal .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-content: center; }
.bu-loyal .grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); padding: 4px; color: rgba(255,255,255,.18); }
.bu-loyal .grid span.on { color: #fff; border-color: #fff; }
.bu-drop .tag { width: 130px; aspect-ratio: 1 / 1.7; background: #000; color: #fff; padding: 16px 14px; display: grid; gap: 6px; justify-items: center; align-content: start; position: relative; border-radius: 4px; }
.bu-drop .hole { width: 10px; height: 10px; border-radius: 50%; background: #EDEBE6; margin-bottom: 8px; }
.bu-drop .bl-stone { width: 48px; height: auto; }
.bu-drop b { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.bu-drop span { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 16px; }
.bu-drop .bl-bar { width: 100%; }
.bu-drop small { font-size: 8px; letter-spacing: .1em; opacity: .7; }
.bu-rec .slip { width: 150px; background: #fff; padding: 16px 14px; display: grid; gap: 5px; font-size: 8px; letter-spacing: .06em; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.bu-rec p { margin: 0; display: flex; justify-content: space-between; }
.bu-rec .tot { border-top: 1px dashed #000; padding-top: 5px; font-weight: 600; margin-bottom: 10px; }
.bu-rec .nm { justify-content: center; font-size: 6px; opacity: .7; margin-top: 4px; }
.bu-place { background: #d8d4cc; width: 100%; height: 100%; display: grid; place-items: center; }
.bu-place .plaque { width: 170px; background: #000; color: #fff; padding: 20px; display: grid; gap: 6px; justify-items: center; }
.bu-place .bl-stone { width: 46px; height: auto; }
.bu-place b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; letter-spacing: -0.03em; }
.bu-place code { font-family: inherit; font-size: 9px; letter-spacing: .08em; }
.bu-place span { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.bl-stone.w { color: #fff; }
@media (max-width: 960px) { .blc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bla, .blab { grid-template-columns: 1fr; } .bu { grid-template-columns: 1fr; } }
.bl-mk { aspect-ratio: 833 / 1060; height: auto; }
.bla-vis .bl-mk { width: 46%; }
.blc-v .bl-mk { width: 78%; height: auto; }
.bu .bl-mk { height: auto; }
.blab-vis .bl-stone { aspect-ratio: 1; }

/* ================= v24 Fruit + Location House Blends ================= */
.cl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--hair); }
.cl-vis { background: #fff; display: grid; place-items: center; padding: 6%; min-height: clamp(340px, 38vw, 560px); }
.cl-vis svg { width: 86%; height: auto; overflow: visible; }
.cl-vis [data-layer] { transition: opacity .45s var(--ease), filter .45s var(--ease); }
.cl:not([data-on="skin"]) [data-layer="skin"] { opacity: .22; }
.cl:not([data-on="pulp"]) [data-layer="pulp"] { opacity: .35; }
.cl:not([data-on="parchment"]) [data-layer="parchment"] { opacity: .4; }
.cl:not([data-on="silverskin"]) [data-layer="silverskin"] { opacity: .3; }
.cl:not([data-on="bean"]) [data-layer="bean"] { opacity: .35; }
.cl-txt { border-left: 1px solid var(--hair); display: grid; grid-template-rows: auto 1fr; }
.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-list button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: baseline; text-align: left; padding: 14px clamp(16px, 2vw, 24px); border-bottom: 1px solid var(--hair); color: var(--ink); }
.cl-list button span { font-size: 11px; opacity: .55; }
.cl-list button b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -0.02em; }
.cl-list button small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.cl-list button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cl-body { padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 10px; align-content: start; }
.cl-body h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1.05; }
.cl-body p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 50ch; opacity: .85; }

.lb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.lb-c { margin: 0; background: var(--paper); display: grid; }
.lb-v { aspect-ratio: 1.3; display: grid; place-items: center; color: var(--ink); }
.lb-v .bl-stone { width: auto; height: 62%; aspect-ratio: 1; }
.lb-v .bl-mk { height: 56%; width: auto; }
.lb-c.is-origin .lb-v { background: #000; color: #fff; }
.lb-c figcaption, .lb-meta { padding: 14px 16px 18px; display: grid; gap: 6px; border-top: 1px solid var(--hair); }
.lb-c .k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.lb-c figcaption > b, .lb-meta > b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.035em; line-height: 1; }
.lb-c em, .lb-meta em { font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.lb-c code, .lb-meta code { font-family: inherit; font-size: 11px; letter-spacing: .04em; opacity: .7; font-variant-numeric: tabular-nums; }
.lb-try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border: 1px solid var(--hair); border-top: 0; }
.lb-form { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--hair); }
.lb-form label { display: grid; gap: 4px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.lb-form input { font: 15px var(--font-body); padding: 10px 12px; border: 1px solid var(--hair); background: var(--paper); color: var(--ink); text-transform: none; letter-spacing: 0; }
.lb-form button { justify-self: start; padding: 11px 16px; background: var(--ink); color: var(--paper); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.lb-out { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; }
.lb-out .lb-v { background: #000; color: #fff; height: 100%; aspect-ratio: auto; min-height: 220px; }
.lb-out .lb-v .bl-stone { height: 150px; }
.lb-out .lb-meta { border-top: 0; padding: clamp(18px, 2.4vw, 28px); }
@media (max-width: 860px) { .cl, .lb-try, .lb-out { grid-template-columns: 1fr; } .cl-txt { border-left: 0; border-top: 1px solid var(--hair); } .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lb-form { border-right: 0; border-bottom: 1px solid var(--hair); } }

/* ================= v25 BeanScale ================= */
.bsc { border: 1px solid var(--hair); }
.bsc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); }
.bsc-c { margin: 0; background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.bsc-v { position: relative; background: #fff; }
.bsc-v svg { display: block; width: 100%; height: auto; }
.bsc-k { position: absolute; top: 12px; left: 14px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; color: #000; }
.bsc-c figcaption { padding: 14px 16px 18px; display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--hair); }
.bsc-c figcaption b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; letter-spacing: -0.02em; }
.bsc-c code { font-family: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.bsc-c figcaption span { font-size: 13px; line-height: 1.45; opacity: .8; }
.bsc-rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsc-rules li { padding: 14px 16px; font-size: 14px; line-height: 1.4; border-bottom: 1px solid var(--hair); }
.bsc-rules li:nth-child(odd) { border-right: 1px solid var(--hair); }
.bsc-rules li::before { content: "→ "; }
@media (max-width: 860px) { .bsc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bsc-rules { grid-template-columns: 1fr; } .bsc-rules li:nth-child(odd) { border-right: 0; } }

/* ================= v26 Peaberry ================= */
.pb { border: 1px solid var(--hair); }
.pb-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); }
.pb-c { margin: 0; background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.pb-v { background: #fff; display: grid; place-items: center; padding: 10%; }
.pb-v svg { width: 78%; height: auto; }
.pb-c.ours .pb-v { background: #000; } .pb-c.ours .pb-v path { fill: #fff; }
.pb-c figcaption { padding: 14px 16px 18px; display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--hair); }
.pb-c figcaption b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; letter-spacing: -0.02em; }
.pb-c figcaption span { font-size: 13px; line-height: 1.45; opacity: .8; }
.pb-facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.pb-facts div { padding: 16px; border-right: 1px solid var(--hair); display: grid; gap: 6px; align-content: start; }
.pb-facts div:last-child { border-right: 0; }
.pb-facts dt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.pb-facts dd { margin: 0; font-size: 14px; line-height: 1.45; }
.pb-note { margin: 0; padding: 14px 16px; border-top: 1px solid var(--hair); font-size: 13px; opacity: .7; }
@media (max-width: 860px) { .pb-row { grid-template-columns: 1fr; } .pb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pb-facts div:nth-child(2) { border-right: 0; } }

/* ================= v27 FruitStrip ================= */
.fs { border: 1px solid var(--hair); }
.fs-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--hair); counter-reset: fs; }
.fs-c { background: var(--paper); padding: 0 0 20px; display: grid; gap: 8px; align-content: start; position: relative; opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d) * .14s); }
.fs:not(.in) .fs-c { opacity: 0; transform: translateY(14px); }
.fs-c:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: calc(50% - 60px); z-index: 2; width: 18px; height: 18px; display: grid; place-items: center; background: var(--paper); font-size: 12px; border: 1px solid var(--hair); border-radius: 50%; }
.fs-v { aspect-ratio: 1; display: grid; place-items: center; background: #fff; margin-bottom: 8px; }
.fs-v svg { width: 70%; height: auto; overflow: visible; }
.fs-c.ours .fs-v { background: #000; }
.fs-n, .fs-c b, .fs-c p { padding: 0 16px; }
.fs-n { font-size: 11px; letter-spacing: .08em; opacity: .55; }
.fs-c b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -0.03em; line-height: 1; }
.fs-c p { margin: 0; font-size: 14px; line-height: 1.4; opacity: .8; }
.fs-line { margin: 0; padding: clamp(18px, 2.6vw, 30px) 16px; border-top: 1px solid var(--hair); font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px, 3vw, 44px); letter-spacing: -0.035em; line-height: 1; }
.fs-sci { border-top: 1px solid var(--hair); }
.fs-sci summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.fs-sci summary::-webkit-details-marker { display: none; }
.fs-sci summary i { font-style: normal; font-size: 18px; transition: transform .3s var(--ease); }
.fs-sci[open] summary i { transform: rotate(45deg); }
.fs-sci .cl, .fs-sci .pb { border-left: 0; border-right: 0; border-bottom: 0; }
@media (max-width: 960px) { .fs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fs-c.ours { grid-column: span 2; } .fs-c::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .fs:not(.in) .fs-c { opacity: 1; transform: none; } }

/* ================= v28 Typography, playful ================= */
.tt, .gx, .ws, .et { --ff: 'Neue Regrade'; }
.tt { border: 1px solid var(--hair); }
.tt-stage { min-height: clamp(380px, 52vw, 640px); display: grid; align-content: center; padding: clamp(24px, 5vw, 64px); transition: background .4s, color .4s; overflow: hidden; }
.tt-stage.g-black { background: #000; color: #fff; } .tt-stage.g-white { background: #fff; color: #000; }
.tt-stage.g-blue { background: #1954EA; color: #fff; }
.tt-stage.g-gradient { background: linear-gradient(180deg,#AFC8F3 0%,#AFC8F3 14%,#C998E9 24%,#EF2DB9 47%,#9F2BCE 63%,#1954EA 74%,#1954EA 100%); color: #fff; }
.tt-text { font-family: var(--ff), var(--font-display); line-height: .95; outline: none; overflow-wrap: anywhere; caret-color: #EF2DB9; transition: font-weight .2s; }
.tt-text.pop { animation: ttpop .5s var(--ease); }
@keyframes ttpop { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tt-bar { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 14px clamp(14px, 2vw, 22px); border-top: 1px solid var(--hair); }
.tt-w, .gx-w { display: flex; gap: 4px; flex-wrap: wrap; }
.tt-w button, .gx-w button { padding: 8px 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--ink); border: 1px solid transparent; }
.tt-w button[aria-pressed="true"], .gx-w button[aria-pressed="true"] { border-color: var(--ink); }
.tt-w button::before, .gx-w button::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: transparent; vertical-align: 1px; }
.tt-w button[aria-pressed="true"]::before, .gx-w button[aria-pressed="true"]::before { background: currentColor; }
.tt-r { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.tt-r input { width: 120px; accent-color: #000; }
.tt-g { display: flex; gap: 4px; }
.tt-g button { padding: 6px; border: 1px solid transparent; }
.tt-g button[aria-pressed="true"] { border-color: var(--ink); }
.tt-g .sw { display: block; width: 16px; height: 16px; }
.tt-shuffle { margin-left: auto; padding: 9px 14px; background: var(--ink); color: var(--paper); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

.gx { border: 1px solid var(--hair); }
.gx-stage { position: relative; height: clamp(420px, 56vw, 720px); background: #F2F2F2; color: #000; display: grid; place-items: center; overflow: hidden; }
.gx-big { font-family: var(--ff), var(--font-display); font-size: clamp(260px, 42vw, 620px); line-height: 1; transition: font-weight .25s; }
.gx-big.in { animation: gxin .45s var(--ease); }
@keyframes gxin { from { opacity: 0; transform: translateY(6%) scale(.96); } to { opacity: 1; transform: none; } }
.gx-meta { position: absolute; right: 16px; bottom: 12px; font-size: 11px; letter-spacing: .08em; opacity: .55; }
.gx-fly { position: absolute; font-family: var(--ff), var(--font-display); font-weight: 800; font-size: clamp(120px, 16vw, 240px); line-height: 1; color: #000; transform: rotate(var(--r, 0deg)); transition: transform .2s linear; pointer-events: none; }
.gx-fly.f1 { left: 4%; top: -6%; } .gx-fly.f2 { right: 6%; top: 4%; font-weight: 300; } .gx-fly.f3 { left: 10%; bottom: -10%; font-weight: 500; }
.gx-bar { display: grid; grid-template-columns: auto auto 1fr; gap: 18px; align-items: center; padding: 12px clamp(14px, 2vw, 22px); border-top: 1px solid var(--hair); }
.gx-bar > b { font-size: 12px; font-weight: 500; }
.gx-set { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; font-family: var(--ff), var(--font-display); }
.gx-set button { padding: 2px 3px; font-size: 13px; color: var(--ink); opacity: .45; font-family: inherit; }
.gx-set button[aria-pressed="true"] { opacity: 1; font-weight: 800; }

.ws { border: 1px solid var(--hair); padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 40px); display: grid; gap: 22px; cursor: ew-resize; }
.ws-word { font-family: var(--ff), var(--font-display); font-size: clamp(64px, 14vw, 230px); line-height: .9; letter-spacing: -0.02em; transition: font-weight .18s; user-select: none; }
.ws-scale { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--hair); }
.ws-scale span { padding: 10px 0; font-size: 12px; opacity: .45; display: grid; gap: 2px; transition: opacity .2s; }
.ws-scale span b { font-size: 11px; letter-spacing: .08em; font-weight: 500; }
.ws-scale span.on { opacity: 1; border-top: 2px solid var(--ink); margin-top: -1px; }
.ws-hint { margin: 0; font-size: 12px; opacity: .6; }

.et { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.et-c { margin: 0; background: var(--paper); }
.et-v { aspect-ratio: 1; background: #000; color: #fff; overflow: hidden; position: relative; font-family: var(--ff), var(--font-display); }
.et-v span { position: absolute; left: 8%; right: 0; font-size: clamp(34px, 5vw, 76px); line-height: .9; letter-spacing: -0.03em; white-space: nowrap; }
.et-v.stack span { top: calc(14% + var(--i) * 12%); animation: etstack 3.2s var(--ease) infinite; animation-delay: calc(var(--i) * -.12s); opacity: calc(1 - var(--i) * .12); }
@keyframes etstack { 0% { transform: translateY(40%); } 50%, 100% { transform: translateY(-60%); } }
.et-v.weights span { top: calc(8% + var(--i) * 12.4%); animation: etstep 4.2s steps(1) infinite; animation-delay: calc(var(--i) * .3s); opacity: .25; }
@keyframes etstep { 0%, 30% { opacity: 1; } 31%, 100% { opacity: .25; } }
.et-v.echo span { top: 42%; opacity: calc(1 - var(--i) * .14); animation: etecho 2.8s var(--ease) infinite alternate; animation-delay: calc(var(--i) * .07s); }
@keyframes etecho { from { transform: translate(-6%, calc(var(--i) * -9%)); } to { transform: translate(4%, calc(var(--i) * 9%)); } }
.et-c figcaption { padding: 14px 16px 18px; display: grid; gap: 6px; border-top: 1px solid var(--hair); }
.et-c figcaption b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; letter-spacing: -0.02em; }
.et-c figcaption span { font-size: 13px; line-height: 1.4; opacity: .75; }
@media (max-width: 860px) { .et { grid-template-columns: 1fr; } .gx-bar { grid-template-columns: 1fr; } .gx-set { justify-content: flex-start; } .tt-shuffle { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .et-v span { animation: none !important; } }

/* ================= v29 Showcase ================= */
.sx { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.sx-row { display: grid; gap: clamp(12px, 1.6vw, 20px); opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.sx-row.in, .sx-type.in { opacity: 1; transform: none; }
.sx-s { margin: 0; position: relative; cursor: zoom-in; overflow: hidden; background: #111; outline: none; }
.sx-m { overflow: hidden; height: 100%; }
.sx-m > * { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sx-s:hover .sx-m > *, .sx-s:focus-visible .sx-m > * { transform: scale(1.04); }
.sx-full .sx-m > * { transform: translateY(var(--py, 0)) scale(1.12); transition: none; }
.sx-s figcaption { position: absolute; left: 14px; bottom: 12px; right: 14px; display: flex; gap: 10px; align-items: baseline; color: #fff; font-size: 13px; text-shadow: 0 1px 8px rgba(0,0,0,.35); pointer-events: none; }
.sx-s figcaption span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.sx-full .sx-s { aspect-ratio: 21 / 9; }
.sx-pair { grid-template-columns: 1.2fr 1fr; }
.sx-pair .sx-s { aspect-ratio: 4 / 5; }
.sx-pair .sx-s:first-child { aspect-ratio: auto; }
.sx-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.sx-trio .sx-s { aspect-ratio: 3 / 4; }
.sx-trio .sx-s:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.sx-strip { position: relative; }
.sx-strip-in { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 28vw, 420px); gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; padding-bottom: 4px; }
.sx-strip-in::-webkit-scrollbar { display: none; }
.sx-strip-in.drag { cursor: grabbing; scroll-snap-type: none; }
.sx-strip-in .sx-s { aspect-ratio: 4 / 5; scroll-snap-align: start; }
.sx-hint { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.sx-type { padding: clamp(48px, 9vw, 140px) 0; opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.sx-type p { margin: 0; font-family: 'Neue Regrade', var(--font-display); font-weight: 800; font-size: clamp(44px, 8vw, 132px); letter-spacing: -0.04em; line-height: .92; max-width: 16ch; }
.sx-lb { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.sx-lb[hidden] { display: none; }
.sx-lb-m { height: 86vh; display: grid; place-items: center; }
.sx-lb-m img, .sx-lb-m video { max-width: 100%; max-height: 86vh; object-fit: contain; }
.sx-lb-ph { color: #fff; font-family: var(--font-display); font-size: clamp(24px, 3vw, 44px); letter-spacing: -0.02em; border: 1px dashed rgba(255,255,255,.4); padding: 18vh 10vw; }
.sx-lb button { color: #fff; font-size: 26px; height: 64px; }
.sx-lb .x { position: absolute; top: 16px; right: 16px; width: 48px; }
@media (max-width: 760px) { .sx-pair, .sx-trio { grid-template-columns: 1fr; } .sx-trio .sx-s:nth-child(2) { margin-top: 0; } .sx-full .sx-s { aspect-ratio: 4 / 5; } .sx-pair .sx-s:first-child { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) { .sx-row, .sx-type { opacity: 1; transform: none; } }
.sx { padding: clamp(40px, 6vw, 96px) var(--gut) 0; }
.sx-full { margin: 0 calc(-1 * var(--gut)); }
.sx-strip { margin-right: calc(-1 * var(--gut)); }

/* script logotypes (index.logoMode: "overflow"): the mark runs large and may bleed; the second line sits on top of its lower stroke */
.home-hero h1.logo-overflow { position: relative; }
.home-hero h1.logo-overflow .logo-line { display: block; width: 100%; margin: 0 0 -0.95em -0.72em; pointer-events: none; }
.home-hero h1.logo-overflow .logo-line .wordmark { display: block; width: 100%; }
.home-hero h1.logo-overflow .logo-line .wordmark svg { height: min(52vh, 50vw); width: auto; max-width: none; overflow: visible; }
.home-hero h1.logo-overflow > span:last-child { position: relative; z-index: 1; }
.home-hero:has(h1.logo-overflow) { overflow: hidden; }
@media (max-width: 760px) {
  .home-hero h1.logo-overflow .logo-line { margin-bottom: -0.66em; margin-left: -0.62em; }
  .home-hero h1.logo-overflow .logo-line .wordmark svg { height: auto; width: 116%; }
}
.header .brand .wordmark.hdr-script svg { height: 40px; }
.header .brand:has(.hdr-script) { display: inline-flex; align-items: center; gap: 12px; }
.header .brand:has(.hdr-script) .wordmark { margin-top: 10px; }

/* hero portrait (client.json hero.portrait): grain photograph, right side, behind the title */
.home-hero .hero-portrait { position: absolute; top: 6vh; right: 0; bottom: 0; width: min(58vw, calc(94vh * .75)); z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.home-hero .hero-portrait.on { opacity: 1; }
.home-hero .hero-portrait.left { right: auto; left: 0; }
.home-hero .hero-portrait canvas { display: block; width: 100%; height: 100%; }
.home-hero .hero-portrait { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); transition: opacity 2.4s ease; }
@media (max-width: 760px) {
  .home-hero .hero-portrait { top: calc(var(--header-h) + 8px); bottom: auto; height: 50%; width: 100%; }
  .home-hero .hero-portrait.on { opacity: .42; }
}

/* ===== SELENA colour modules ===== */
.prop-bar { display: flex; height: clamp(120px, 18vw, 220px); gap: 3px; }
.prop-bar .seg { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; min-width: 0; overflow: hidden; transition: flex-grow .6s var(--ease); }
.prop-bar .seg b { font: 500 clamp(22px, 3vw, 44px)/1 var(--font-display); letter-spacing: -0.03em; }
.prop-bar .seg span { font: 500 11px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.prop-bar:hover .seg { flex-grow: 1 !important; }
.prop-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 28px; margin-top: 22px; }
.prop-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 0; }
.prop-legend b { font: 500 12px var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.prop-legend p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--grey-1); }
.ramps { display: grid; gap: 26px; }
.ramp-h { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.ramp-h span { color: var(--grey-1); text-transform: none; letter-spacing: 0; font-size: 13px; text-align: right; }
.ramp-row { display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; }
.chip { position: relative; aspect-ratio: 3/4; border: 0; padding: 8px 7px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; cursor: copy; font: 500 10px/1.2 var(--font-body); letter-spacing: .03em; transition: transform .3s var(--ease); }
.chip:hover { transform: translateY(-4px); }
.chip .k { font-size: 11px; }
.chip .core { position: absolute; top: 8px; right: 7px; font-size: 9px; border: 1px solid currentColor; padding: 1px 4px; }
.chip .h { font-size: 9.5px; word-break: break-all; }
.ramp-row:has(.chip:nth-child(7):last-child) { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 760px) { .ramp-row { grid-template-columns: repeat(6, 1fr) !important; } .chip .h { font-size: 8.5px; } }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 3px; }
.cg { position: relative; padding: 18px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.cg .aa { font: 500 54px/1 var(--font-display); letter-spacing: -0.03em; }
.cg-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; letter-spacing: .05em; }
.cg-meta b { font-size: 15px; letter-spacing: 0; }
.cg-names { font-size: 11px; opacity: .8; margin-top: 6px; }
.cg.fail .cg-meta span { text-decoration: line-through; }
.gold-stage { position: relative; background: radial-gradient(120% 90% at var(--mx, 50%) var(--my, 40%), #3F0D31 0%, #1C0416 55%, #12020E 100%); aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; cursor: crosshair; }
.gs-tilt { position: relative; width: min(72%, 900px); transform-style: preserve-3d; will-change: transform; }
.gs-tilt img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.gs-sheen { position: absolute; inset: 0; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: radial-gradient(9% 12% at var(--mx, 50%) var(--my, 40%), rgba(255,255,252,1), rgba(255,252,244,.9) 45%, rgba(255,250,240,0) 100%),
    radial-gradient(30% 40% at var(--mx, 50%) var(--my, 40%), rgba(255,248,236,.95), rgba(251,238,218,.6) 35%, rgba(251,236,214,.2) 65%, rgba(251,236,214,0) 85%);
  mix-blend-mode: screen; pointer-events: none; }
.gs-sheen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(48% 60% at var(--mx, 50%) var(--my, 40%), rgba(255,240,215,.35), rgba(255,240,215,0) 70%); }
.gold-stage .gs-tilt img { filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)) brightness(1.06) contrast(1.04); }
.gold-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(28% 34% at var(--mx, 50%) var(--my, 40%), rgba(255,226,190,.10), rgba(255,226,190,0) 70%); }
.gs-hint { position: absolute; left: 18px; bottom: 16px; color: #F6EEE9; opacity: .7; }
@media (max-width: 760px) { .gold-stage { aspect-ratio: 4/5; } .gs-tilt { width: 88%; } }
.gtiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.gt { margin: 0; background: var(--panel); }
.gt.wide { grid-column: 1 / -1; }
.gt-img { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.gt.wide .gt-img { aspect-ratio: 21/9; }
.gt figcaption { padding: 16px 18px 20px; display: grid; gap: 6px; }
.gt h3 { margin: 0; font: 500 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.gt p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--grey-1); }
.gt-stops { display: flex; gap: 3px; margin-top: 6px; } .gt-stops i { width: 18px; height: 18px; }
.gt .copy { justify-self: start; margin-top: 8px; font-size: 11px; letter-spacing: .06em; border: 1px solid var(--ink); padding: 8px 12px; background: none; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) { .gtiles { grid-template-columns: 1fr; } .gt.wide .gt-img { aspect-ratio: 16/9; } }

/* gradient families with five variants */
.gfams { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.gf { margin: 0; background: var(--panel); display: flex; flex-direction: column; }
.gf-img { position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center; transition: background-image .5s ease; }
.gf-code { position: absolute; left: 14px; top: 12px; color: #F6EEE9; mix-blend-mode: difference; }
.gf figcaption { padding: 16px 18px 20px; display: grid; gap: 12px; }
.gf-top { display: flex; gap: 12px; align-items: baseline; }
.gf h3 { margin: 0; font: 500 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.gf-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.gf-thumbs button { position: relative; aspect-ratio: 16/9; border: 0; padding: 0; background-size: cover; background-position: center; cursor: pointer; outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .2s ease, transform .3s var(--ease); }
.gf-thumbs button span { position: absolute; left: 5px; bottom: 3px; font: 500 10px var(--font-body); color: #F6EEE9; mix-blend-mode: difference; }
.gf-thumbs button:hover { transform: translateY(-2px); }
.gf-thumbs button[aria-selected="true"] { outline-color: var(--ink); }
.gf-v { margin: 0; display: grid; gap: 4px; min-height: 3.6em; }
.gf-v b { font: 500 13px var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.gf-v span { font-size: 14px; line-height: 1.45; color: var(--grey-1); }
.gf-act { display: flex; gap: 8px; }
.gf-act .copy { font-size: 11px; letter-spacing: .06em; border: 1px solid var(--ink); padding: 8px 12px; background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
@media (max-width: 760px) { .gfams { grid-template-columns: 1fr; } }

/* SELENA signature draw */
.sigdraw { --sd-bg: #1C0416; --sd-ink: #F6EEE9; --sd-nib: rgba(255,248,236,.9); background: var(--sd-bg); color: var(--sd-ink); transition: background .6s ease, color .6s ease; }
.sigdraw.g-night { --sd-bg: radial-gradient(90% 80% at 70% 20%, #4B234F 0%, #441C47 30%, #3F0D31 62%, #1C0416 100%); --sd-ink: #F6EEE9; }
.sigdraw.g-pearl { --sd-bg: #F6EEE9; --sd-ink: #441C47; --sd-nib: rgba(150,71,133,.75); }
.sigdraw.g-plum { --sd-bg: #441C47; --sd-ink: #F6EEE9; }
.sd-stage { aspect-ratio: 16/10; display: grid; place-items: center; padding: 6% 10%; }
.sd-svg { width: 100%; height: 100%; overflow: visible; }
.sd-ink { fill: var(--sd-ink); }
.sd-word path { transform-box: fill-box; }
.sd-nib { fill: var(--sd-nib); filter: blur(5px); transition: opacity .3s ease; }
.sd-bar { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid rgba(246,238,233,.14); color: var(--sd-ink); }
.sigdraw.g-pearl .sd-bar { border-top-color: rgba(68,28,71,.14); }
.sd-bar button { font: 500 11px var(--font-body); letter-spacing: .08em; background: none; color: inherit; border: 1px solid currentColor; padding: 8px 12px; cursor: pointer; }
.sd-bar input[type=range] { width: 100%; accent-color: #964785; }
.sd-step { min-width: 16ch; color: inherit; opacity: .8; }
.sd-grounds { display: flex; gap: 4px; } .sd-grounds button { padding: 8px 10px; opacity: .55; } .sd-grounds button[aria-pressed="true"] { opacity: 1; }
@media (max-width: 760px) { .sd-stage { aspect-ratio: 4/4; padding: 8% 4%; } .sd-bar { grid-template-columns: auto 1fr; } .sd-step { grid-column: 1 / -1; order: 3; } .sd-grounds { grid-column: 1 / -1; } }
.sigdraw { background: none; } .sigdraw > .sd-stage, .sigdraw > .sd-bar { background: var(--sd-bg); }

/* SELENA logo modules */
.isvg { display: block; line-height: 0; } .isvg svg { width: 100%; height: auto; display: block; fill: currentColor; }
.lhier { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3px; }
.lh { background: var(--panel); display: flex; flex-direction: column; }
.lh-stage { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; padding: 9%; }
.lh-stage .isvg, .lh-stage img { width: 86%; max-height: 100%; object-fit: contain; }
.lh-share { position: absolute; left: 16px; top: 14px; color: inherit; opacity: .75; }
.lh-txt { padding: 18px 20px 24px; display: grid; gap: 10px; }
.lh-txt h3 { margin: 0; font: 500 26px/1.05 var(--font-display); letter-spacing: -0.02em; }
.lh-txt p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--grey-1); }
.lh-txt dl { margin: 6px 0 0; display: grid; gap: 8px; } .lh-txt dl div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; }
.lh-txt dt { font: 500 11px var(--font-body); letter-spacing: .08em; padding-top: 2px; } .lh-txt dd { margin: 0; color: var(--grey-1); }
@media (max-width: 760px) { .lhier { grid-template-columns: 1fr; } }
.lcon { background: #F6EEE9; color: #441C47; }
.lc-tabs { display: flex; gap: 4px; padding: 14px 16px; border-bottom: 1px solid rgba(68,28,71,.14); flex-wrap: wrap; }
.lc-tabs button, .lg-tabs button { font: 500 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; background: none; border: 1px solid currentColor; color: inherit; padding: 8px 12px; cursor: pointer; opacity: .55; }
.lc-tabs button[aria-selected="true"], .lg-tabs button[aria-selected="true"] { opacity: 1; }
.lc-tabs button[aria-selected="true"] { background: #441C47; border-color: #441C47; color: #F6EEE9; }
.lc-stage { padding: 3% 6%; }
.lc-art { position: relative; } .lc-art .isvg svg { width: 100%; height: auto; }
.lc-ov { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc-zone { fill: rgba(150,71,133,.10); stroke: none; }
.lc-box, .lc-x { fill: none; stroke: #964785; } .lc-x { fill: rgba(150,71,133,.14); }
.lc-t { fill: #964785; font-family: var(--font-body); font-weight: 500; letter-spacing: .04em; }
.lc-tb { fill: #441C47; }
.lc-lead { stroke: #964785; } .lc-dot { fill: #964785; }
.lc-g { stroke: #964785; stroke-dasharray: 6 6; opacity: .8; }
.lc-note { margin: 0; padding: 14px 18px 20px; font-size: 14px; line-height: 1.5; border-top: 1px solid rgba(68,28,71,.14); }
.lc-min { display: flex; gap: 48px; align-items: flex-end; flex-wrap: wrap; padding: 40px 6% 30px; }
.lc-min figure { margin: 0; display: grid; gap: 12px; } .lc-min figcaption { display: grid; gap: 2px; font-size: 12px; } .lc-min figcaption b { font: 500 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.lgrid .lg-tabs { display: flex; gap: 4px; margin-bottom: 12px; color: var(--ink); }
.lg-tabs button[aria-selected="true"] { color: var(--paper); background: var(--ink); }
.lg-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.lg-cell { margin: 0; background: var(--panel); }
.lg-stage { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; padding: 12%; overflow: hidden; }
.lg-stage > * { grid-area: 1 / 1; } .lg-mark { width: 100%; } .lg-img { width: 92%; height: 92%; object-fit: contain; }
.lg-cell figcaption { padding: 12px 14px 16px; display: grid; gap: 4px; font-size: 13px; line-height: 1.4; }
.lg-cell figcaption b { font: 500 12px var(--font-body); letter-spacing: .05em; text-transform: uppercase; } .lg-cell figcaption span { color: var(--grey-1); }
.lg-cell figcaption em { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #964785; }
@media (max-width: 760px) { .lg-cells { grid-template-columns: 1fr 1fr; } }
.lmis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.lm { margin: 0; background: var(--panel); }
.lm-stage { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; padding: 16%; background: #1C0416; color: #F6EEE9; overflow: hidden; }
.lm-stage .lm-logo { width: 100%; }
.lm-x { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(246,238,233,.55) 50%, transparent calc(50% + 1px)); }
.lm figcaption { padding: 12px 14px 16px; display: grid; gap: 4px; font-size: 13px; line-height: 1.4; }
.lm figcaption b { font: 500 12px var(--font-body); letter-spacing: .05em; text-transform: uppercase; } .lm figcaption span { color: var(--grey-1); }
.fx-stretch .lm-logo svg { transform: scaleX(1.45) scaleY(.8); }
.fx-rotate .lm-logo svg { transform: rotate(-14deg); }
.fx-outline .lm-logo svg { fill: none; stroke: currentColor; stroke-width: 6; }
.fx-glow .lm-logo svg { filter: drop-shadow(0 0 10px #FF4FD8) drop-shadow(0 8px 6px rgba(0,0,0,.8)); }
.fx-flatgold { color: #C9A227 !important; }
.fx-neon { color: #39FF14 !important; }
.fx-busy { background: url('../clients/selena/media/tex-3.jpg') center/cover !important; color: #964785 !important; }
.lm-retype { font-family: "Brush Script MT", "Snell Roundhand", cursive; font-size: clamp(34px, 4vw, 60px); line-height: .9; text-align: center; }
.lm-retype small { display: block; font: 400 12px var(--font-body); letter-spacing: .5em; margin-top: 8px; }
.lm-film { width: 70%; aspect-ratio: 4/3; border: 2px solid #F6EEE9; display: grid; place-items: center; position: relative; background: repeating-linear-gradient(90deg, transparent 0 10%, rgba(246,238,233,.25) 10% 12%); }
.lm-film span { font: 500 clamp(26px, 3vw, 40px) var(--font-display); letter-spacing: -0.02em; }
.lm-film i { position: absolute; inset: -12%; background: linear-gradient(to top right, transparent calc(50% - 2px), #F6EEE9 50%, transparent calc(50% + 2px)); }
.lm-rule { grid-column: span 2; grid-row: span 2; } .lm-rule .lm-stage { aspect-ratio: auto; height: 100%; background: #441C47; } .lm-rule .lm-x { display: none; } .lm-rule figcaption { padding: 18px 20px 22px; } .lm-rule figcaption b { font-size: 14px; } .lm-rule figcaption span { font-size: 15px; line-height: 1.5; color: var(--ink); }
.lm-rule { display: grid; grid-template-rows: 1fr auto; } .lm-rule figcaption b { color: #964785; }
@media (max-width: 760px) { .lmis { grid-template-columns: 1fr 1fr; } .lm-rule { grid-row: auto; } .lm-rule .lm-stage { aspect-ratio: 2/1; } }

.lm-script { font-size: clamp(30px, 3.4vw, 52px); transform: rotate(-8deg); }
@media (max-width: 760px) { .lc-t { font-size: 46px; } .lc-tb { font-size: 50px; } }

/* LogoStage in client colours (block tone) */
.logostage.ls-velvet, .logostage.ls-velvet .ls-pin { background: #1C0416; color: #F6EEE9; }
.logostage.ls-velvet path { fill: rgba(246,238,233,var(--fill,0)); stroke: rgba(246,238,233,calc(1 - var(--fill,0) * .9)); }
.logostage.ls-velvet .ls-guides line { stroke: rgba(246,238,233,.2); }
.logostage.ls-velvet .ls-lab { color: rgba(246,238,233,.75); } .logostage.ls-velvet .ls-side { color: rgba(246,238,233,.45); }

/* hierarchy, editorial */
.lhier2 { --lh-ink: #441C47; }
.lh2-band { display: grid; grid-template-columns: 1fr 1fr; background: #F6EEE9; color: var(--lh-ink); }
.lh2-side { position: relative; aspect-ratio: 3/2; display: grid; place-items: center; transition: opacity .5s ease; }
.lh2-side + .lh2-side { border-left: 1px solid rgba(68,28,71,.14); }
.lh2-mark { width: 48%; } .lh2-mark.big { width: 56%; }
.lh2-n { position: absolute; left: 22px; top: 20px; color: rgba(68,28,71,.6); }
.lh2-share { position: absolute; left: 22px; bottom: 18px; color: rgba(68,28,71,.6); }
.lh2-cols { display: grid; grid-template-columns: 1fr 1fr; }
.lh2-col { padding: 26px 28px 6px 0; display: grid; gap: 10px; align-content: start; transition: opacity .5s ease; }
.lh2-col + .lh2-col { padding-left: 28px; border-left: 1px solid var(--hair); }
.lh2-col h3 { margin: 0; font: 500 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.lh2-col p { margin: 0; max-width: 42ch; font-size: 15px; line-height: 1.55; color: var(--grey-1); }
.lh2-col p.lh2-k { font-size: 13px; line-height: 1.5; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--hair-soft); }
.lh2-col p.lh2-k b { font: 500 10.5px/1.9 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.lhier2[data-focus="0"] [data-lh="1"], .lhier2[data-focus="1"] [data-lh="0"] { opacity: .35; }
@media (max-width: 760px) { .lh2-band, .lh2-cols { grid-template-columns: 1fr; } .lh2-side + .lh2-side { border-left: 0; border-top: 1px solid rgba(68,28,71,.14); } .lh2-side { aspect-ratio: 4/3; } .lh2-col { padding: 22px 0 6px; } .lh2-col + .lh2-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); margin-top: 18px; } }

/* construction, measured */
.lgeo { --gc: #964785; background: #F6EEE9; color: #441C47; max-width: 1180px; margin: 0 auto; }
.lgeo-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid rgba(68,28,71,.14); padding: 0 6px; }
.lgeo-tabs button { background: none; border: 0; color: inherit; font: 500 10.5px var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 14px 12px 12px; cursor: pointer; opacity: .5; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.lgeo-tabs button i { font-style: normal; opacity: .6; margin-right: 6px; }
.lgeo-tabs button[aria-selected="true"] { opacity: 1; border-bottom-color: #441C47; }
.lgeo-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.lgeo-win { display: grid; place-items: center; padding: 22px 26px; min-height: 0; }
.lgeo-art { position: relative; width: 100%; max-height: min(62vh, 620px); max-width: calc(min(62vh, 620px) * 1.36); margin: 0 auto; }
.lgeo-art .isvg, .lgeo-art .isvg svg { width: 100%; height: 100%; }
.lgeo-ov { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lgeo-ov .g { fill: none; stroke: var(--gc); stroke-width: .75px; vector-effect: non-scaling-stroke; }
.lgeo-ov .g.faint { stroke: rgba(150,71,133,.32); stroke-width: .5px; }
.lgeo-ov .g.dash { stroke-dasharray: 4 4; }
.lgeo-ov .g.zone { fill: rgba(150,71,133,.07); stroke: none; }
.lgeo-ov rect.g.hi { fill: rgba(150,71,133,.06); }
.lgeo-ov .g.dot { fill: var(--gc); stroke: none; }
.lgeo-ov .g.ring { fill: rgba(150,71,133,.12); }
.lgeo-ov .t { fill: var(--gc); font-family: var(--font-body); font-weight: 500; letter-spacing: .02em; }
.lgeo-ov .t.big { font-family: var(--font-display); letter-spacing: -0.01em; }
.lgeo-data { border-left: 1px solid rgba(68,28,71,.14); padding: 22px 22px 26px; display: grid; align-content: start; gap: 16px; }
.lgeo-note { margin: 0; font-size: 14px; line-height: 1.55; }
.lgeo-data dl { margin: 0; display: grid; }
.lgeo-data dl div { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid rgba(68,28,71,.12); }
.lgeo-data dt { font: 500 10px var(--font-body); letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.lgeo-data dd { margin: 0; font-size: 13.5px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.lgeo-min { display: flex; gap: 48px; align-items: flex-end; flex-wrap: wrap; padding: 40px 10px; }
.lgeo-min figure { margin: 0; display: grid; gap: 12px; } .lgeo-min figcaption { display: grid; gap: 2px; font-size: 12px; } .lgeo-min b { font: 500 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) { .lgeo-body { grid-template-columns: 1fr; } .lgeo-data { border-left: 0; border-top: 1px solid rgba(68,28,71,.14); } .lgeo-win { padding: 14px 10px; } .lgeo-ov .t { font-size: 34px; } .lgeo-tabs { overflow-x: auto; flex-wrap: nowrap; } .lgeo-tabs button { white-space: nowrap; } }

/* construction section floats on pearl */
.block.rule:has(.lgeo) { background: #F6EEE9; }
.block.rule:has(.lgeo) .head, .block.rule:has(.lgeo) .in > * { border-color: rgba(68,28,71,.16); }
.lgeo { background: transparent; }
.lgeo-tabs { justify-content: center; }

.lgeo-win { position: relative; }
.lgeo-min { position: absolute; inset: 0; justify-content: center; align-items: center; padding: 0 10px; }
.lgeo-min[hidden] { display: none; }

/* colourways: marks 30% smaller inside their cells */
.lg-mark { width: 70%; justify-self: center; }
.lg-mark .lg-img { width: 100%; height: auto; display: block; }

/* ===== SignatureMisuse (FLAVEDO MisuseLab pattern, SELENA dress) ===== */
.smx { --sp: #F6EEE9; --spl: #441C47; --sh: rgba(68,28,71,.16); border: 1px solid var(--hair); }
.smx-do { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-bottom: 1px solid var(--hair); }
.smx-do-img { background: var(--sp); color: var(--spl); min-height: clamp(260px, 26vw, 380px); display: grid; place-items: center; position: relative; }
.smx-cs { width: 30%; position: relative; display: block; }
.smx-cs::after { content: ""; position: absolute; inset: -22% -16%; border: 1px dashed rgba(68,28,71,.32); pointer-events: none; }
.smx-dl { position: absolute; left: 16px; bottom: 14px; color: rgba(68,28,71,.6); }
.smx-do-txt { padding: clamp(22px, 3vw, 40px); border-left: 1px solid var(--hair); display: grid; align-content: center; gap: 16px; }
.smx-do-txt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.smx-do-txt li { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -0.015em; line-height: 1.2; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.smx-do-txt li:last-child { border-bottom: 0; }
.smx-film { background: #1C0416; color: #F6EEE9; padding: clamp(28px, 4vw, 56px) clamp(22px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px 40px; align-items: end; border-bottom: 1px solid var(--hair); }
.smx-film .label { grid-column: 1 / -1; color: #A587A7; }
.smx-film h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(30px, 3.6vw, 54px); letter-spacing: -0.03em; line-height: 1; }
.smx-film p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(246,238,233,.78); max-width: 60ch; }
.smx-badge { display: inline-grid; place-items: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.smx-badge.wide { justify-self: start; padding: 6px 10px; background: #441C47; color: #F6EEE9; }
.smx-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px clamp(14px, 2vw, 20px); border-bottom: 1px solid var(--hair); }
.smx-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.smx-filter button { padding: 8px 12px; border: 1px solid var(--hair); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--ink); background: none; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.smx-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.smx-hint { font-size: 12px; color: var(--grey-1); }
.smx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); }
.smx-card { all: unset; box-sizing: border-box; cursor: pointer; background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.smx-card[hidden] { display: none; }
.smx-card:focus-visible { outline: 1px solid #964785; outline-offset: -1px; }
.smx-vis { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.smx-vis .bad, .smx-vis .good { position: absolute; inset: 0; display: block; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.smx-vis .good { opacity: 0; transform: scale(.985); }
.smx-card[aria-pressed="true"] .bad { opacity: 0; transform: scale(1.015); }
.smx-card[aria-pressed="true"] .good { opacity: 1; transform: none; }
.smx-vis .smx-badge { position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; letter-spacing: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.smx-vis .smx-badge.no { background: #964785; color: #fff; }
.smx-vis .smx-badge.ok { background: #F6EEE9; color: #441C47; box-shadow: 0 0 0 1px rgba(68,28,71,.28); opacity: 0; transform: scale(.6); }
.smx-card[aria-pressed="true"] .smx-badge.no { opacity: 0; transform: scale(.6); }
.smx-card[aria-pressed="true"] .smx-badge.ok { opacity: 1; transform: none; }
.smx-s { position: absolute; inset: 0; display: grid; place-items: center; background: #F6EEE9; color: #441C47; overflow: hidden; }
.smx-s.col { grid-auto-flow: row; align-content: center; justify-items: center; gap: 7%; }
.smx-s.col.crowd { gap: 0; }
.smx-l { display: block; width: 36%; }
.smx-m { aspect-ratio: 1335 / 985; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.smx-img { height: auto; width: 40%; }
.x-stretch svg { transform: scale(1.45, .78); }
.x-rotate svg { transform: rotate(-14deg); }
.x-outline svg { fill: none !important; stroke: currentColor; stroke-width: 7; }
.x-glow svg { filter: drop-shadow(0 0 8px #FF5FD2) drop-shadow(0 0 22px rgba(255,95,210,.7)) drop-shadow(6px 9px 4px rgba(0,0,0,.9)); }
.x-split svg { overflow: visible; }
.x-crop { width: 36%; transform: scale(2.3) translate(14%, 6%); }
.smx-stack { width: 36%; display: grid; justify-items: center; gap: 2%; }
.smx-stack .w { width: 42%; } .smx-stack .isvg:last-child { width: 100%; }
.smx-pair { width: 42%; display: grid; grid-template-columns: 1fr 1.3fr; align-items: end; gap: 6%; }
.smx-pair .k svg { max-height: 120px; width: 100%; }
.smx-t { font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; font-style: italic; font-size: clamp(30px, 3.2vw, 48px); line-height: 1; }
.smx-cap { font: 500 10px var(--font-body); letter-spacing: .32em; text-transform: uppercase; }
.smx-cap.tight { margin-top: 2px; margin-left: 30%; letter-spacing: .08em; font-size: 12px; }
.smx-box { width: 40%; display: block; border: 1.5px solid currentColor; border-radius: 10px; padding: 7% 9%; }
.smx-tag { position: absolute; right: 12px; bottom: 10px; font: 500 10px var(--font-body); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: rgba(68,28,71,.7); }
.smx-copy { margin: 0; padding: 0 12%; font-family: var(--font-display); font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -0.015em; line-height: 1.3; text-align: center; }
.smx-pat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6% 8%; width: 92%; transform: rotate(-8deg); opacity: .9; }
.smx-capt { padding: 14px 16px 16px; display: grid; gap: 5px; align-content: start; grid-template-rows: auto auto 1fr; border-top: 1px solid var(--hair); }
.smx-capt b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 18px; letter-spacing: -0.015em; line-height: 1.15; }
.smx-capt > span { font-size: 13px; line-height: 1.45; color: var(--grey-1); }
.smx-capt .fixline { display: none; color: #5F187F; }
.smx-card[aria-pressed="true"] .why { display: none; }
.smx-card[aria-pressed="true"] .fixline { display: block; }
.smx-cue { align-self: end; margin-top: 8px; color: #964785 !important; font-size: 10px; letter-spacing: .1em; }
.smx-cue i { font-style: normal; } .smx-cue .b { display: none; }
.smx-cue i::after { content: " →"; display: inline-block; transition: transform .35s var(--ease); }
.smx-card:hover .smx-cue i::after { transform: translateX(4px); }
.smx-card[aria-pressed="true"] .smx-cue .a { display: none; } .smx-card[aria-pressed="true"] .smx-cue .b { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .smx-capt .fixline { color: #C9B6CD; } :root:not([data-theme="light"]) .smx-cue { color: #A587A7 !important; } }
:root[data-theme="dark"] .smx-capt .fixline { color: #C9B6CD; } :root[data-theme="dark"] .smx-cue { color: #A587A7 !important; }
@media (max-width: 960px) { .smx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .smx-film { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .smx-grid { grid-template-columns: 1fr; } .smx-do { grid-template-columns: 1fr; } .smx-do-txt { border-left: 0; border-top: 1px solid var(--hair); } .smx-cs { width: 46%; } }

/* optical centre: the script carries its weight on the right, so every boxed lockup/script sits 7.5% of its width left of true centre */
.lh2-mark .isvg[data-isvg*="LOCKUP"], .lh2-mark .isvg[data-isvg*="SCRIPT"],
.lg-mark .isvg, .lg-mark .lg-img,
.smx-s:not(.col) > .smx-l:not(.x-crop), .smx-cs { transform: translateX(-7.5%); }

/* SELENA type voices */
:root { --font-marquee: "Grand Casino", "Neue Haas Grotesk Display Pro", Helvetica, Arial, sans-serif; --slant: 10.7deg; }
.f-marquee { font-family: var(--font-marquee); font-weight: 400; text-transform: uppercase; }
.f-haas { font-family: var(--font-display); }

/* SELENA: kit accents retuned from the FLAVEDO gradient to the SELENA palette */
:root { --sel-grad: linear-gradient(135deg, #5F187F, #964785 55%, #C9B6CD); }
.mf-line em, .ln:hover p { background: linear-gradient(90deg, #5F187F, #964785 50%, #C9B6CD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scales i.me, .pt.me i { background: var(--sel-grad); }
.day { --seg: #964785; }
.rw.done { background: #441C47; color: #F6EEE9; border-color: #441C47; }
.rw.done .rw-go { background: #F6EEE9; color: #441C47; border-color: #F6EEE9; }
.fb-zip:hover { background: #441C47; }
.part.dark { background: #1C0416; }
.quotes { background: #1C0416; color: #F6EEE9; }

/* chapters not yet open: faded, not clickable */
li.soon { opacity: .28; pointer-events: none; cursor: default; }

/* landing: textured brand purple rising softly from the bottom of the first screen, behind the portrait */
.home-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42vh; z-index: 0; pointer-events: none;
  background: url('../clients/selena/media/grad/G2.1.jpg') center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.34) 40%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.34) 40%, rgba(0,0,0,0) 100%); }

.home-hero .hero-portrait { z-index: 1; } .home-hero .inner { z-index: 2; }

/* misuse accordion: first row only until opened */
.smx:not([data-open]) .smx-card.is-more { display: none; }
.smx[data-open] .smx-card.is-more { animation: smxIn .6s var(--ease) both; }
@keyframes smxIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.smx-more { display: flex; justify-content: center; border-top: 1px solid var(--hair); padding: 18px; }
.smx-more[hidden] { display: none; }
.smx-more-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--ink); background: none; color: var(--ink); font: 500 11px var(--font-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.smx-more-btn:hover { background: var(--ink); color: var(--paper); }
.smx-more-btn i { font-style: normal; font-size: 15px; line-height: 1; transition: transform .4s var(--ease); }
.smx-more-btn .c { display: none; }
.smx[data-open] .smx-more-btn .o { display: none; } .smx[data-open] .smx-more-btn .c { display: inline; } .smx[data-open] .smx-more-btn i { transform: rotate(45deg); }
