/* Geometrical — mockup. Neutrals only (no accent yet). Values from DS tokens v12. */
:root {
  --ink: #292929;
  --muted: #625f59;
  --bg: #f7f6f3;
  --bg-200: #fbfaf8;
  --bg-300: #efeeea;
  --wall: #e2ded6;
  --rule: rgba(41, 41, 41, .16);

  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --margin: 20px;
  --header-h: 46px;
  --section-pad: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 768px)  { :root { --margin: 32px; --section-pad: 80px; } }
@media (min-width: 1200px) { :root { --margin: 64px; --section-pad: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }

/* ============ HEADER ============
   Ported 1:1 from geometrical-landing.html (.bar). */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: #efeeea;
  border-bottom: 1px solid rgba(31, 29, 26, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  height: var(--header-h);
  padding: 0 clamp(16px, 1.5vw, 24px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 11px; font-weight: 650; letter-spacing: -0.035em; text-transform: uppercase;
}
.header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-divider { width: 1px; height: 12px; background: currentColor; flex: none; }
.menu-toggle { font-size: 11px; font-weight: 650; letter-spacing: -0.035em; text-transform: uppercase; min-width: 60px; min-height: 44px; text-align: left; }
.crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb-num { font-family: var(--mono); font-weight: 400; }
.crumb-label { display: inline-block; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.crumb-label.is-swapping { opacity: 0; transform: translateY(-4px); }
.header-center { font-weight: 650; letter-spacing: -0.035em; white-space: nowrap; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: clamp(12px, 1.6vw, 25px); }
.header-right > a { display: inline-flex; align-items: center; min-height: 44px; }
.join { text-decoration: underline; text-underline-offset: 4px; padding-bottom: 3px; }
.lang { display: flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.site-header .lang { letter-spacing: -0.035em; }
.lang button { display: inline-grid; place-items: center; min-width: 28px; min-height: 44px; padding: 0 2px; opacity: .62; /* matches geometrical-landing.html (4.0:1, below AA by user choice) */ transition: opacity .2s; }
.lang button:hover, .lang button:focus-visible { opacity: 1; }
.lang button.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lang span { opacity: .4; }
/* English only until the new site is translated (2026-11-26): selector hidden */
.site-header .lang { display: none; }

@media (max-width: 1024px) { .join { display: none !important; } }
@media (max-width: 640px)  { .header-center { display: none; } .header-inner { grid-template-columns: 1fr auto; } .site-header .lang { display: none; } }

/* ============ MENU (push drawer from the left) ============ */
:root { --dw: min(400px, 88vw); --ease-dr: cubic-bezier(.65, 0, .35, 1); }
body { overflow-x: clip; }
.menu-toggle .mc { display: none; }
body.dr-open .menu-toggle .mo { display: none; }
body.dr-open .menu-toggle .mc { display: inline; }

.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 55;
  width: var(--dw);
  background: var(--bg);
  border-right: 1px solid var(--rule);
  padding: 22px 24px 24px;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-100%);
  transition: transform .9s var(--ease-dr);
}
body.dr-open .drawer { transform: none; }
.page, .site-header { transition: transform .9s var(--ease-dr); }
body.dr-open .page, body.dr-open .site-header { transform: translateX(var(--dw)); }
/* clicking the pushed page closes the drawer */
body.dr-open .page { cursor: w-resize; }
body.dr-open .page > * { pointer-events: none; }

.dr-top { display: flex; justify-content: flex-end; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.dr-h { font-size: clamp(40px, 3.4vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.dr-close { flex: none; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; min-width: 60px; min-height: 44px; text-align: right; transition: opacity .2s; }
.dr-close:hover { opacity: .55; }

.dr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.dr-list a { display: flex; align-items: baseline; gap: 14px; min-height: 30px; }
.dn { font-family: var(--mono); font-size: 11px; width: 32px; flex: none; color: var(--muted); }
.dr-list b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; transition: opacity .2s; }
.dr-list a:hover b { opacity: .55; }
.dr-list p { font-size: 13px; font-weight: 500; line-height: 1.3; margin: 4px 0 0 46px; color: var(--muted); }
.dr-sub { list-style: none; display: grid; gap: 10px; margin: 12px 0 4px 46px; padding: 0 0 0 14px; border-left: 1px solid var(--rule); }
.dr-sub a { justify-content: space-between; gap: 10px; min-height: 24px; }
.dr-sub b { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.dr-sub a span { color: var(--muted); display: inline-flex; }
.dr-list .dr-sub p { margin: 2px 0 0; font-size: 12.5px; }
.ico-ar { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dr-list > li > a b { text-transform: none; }
.dr-sub--plain { gap: 6px; }
.dr-sub--plain a { min-height: 28px; align-items: center; }
.dr-subhead { margin: 14px 0 0 46px !important; font-family: var(--mono); font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; }
.dr-subhead + .dr-sub { margin-top: 8px; }
.dr-more { display: flex; gap: 20px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 500; }
.dr-more a:hover { opacity: .55; }
.dr-boxes { display: grid; gap: 10px; margin-top: 34px; }
.dr-box small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; opacity: .7; }
.dr-box {
  display: flex; justify-content: space-between; align-items: flex-end;
  min-height: 120px; padding: 16px;
  border-radius: 12px 12px 0 0;
  background: var(--wall);
  font-size: 20px; font-weight: 500; letter-spacing: -0.02em;
  transition: transform .3s var(--ease);
}
.dr-box:hover { transform: translateY(-3px); }
.dr-box i { font-style: normal; font-size: 24px; display: inline-flex; }
.dr-box i .ico-ar { width: 22px; height: 22px; stroke-width: 1.6; }
.dr-box.dark { background: var(--ink); color: var(--bg); }
.dr-box.mid { background: var(--muted); color: var(--bg); }
.lang--big { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-family: inherit; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; gap: 6px; }
.lang--big button { min-width: 48px; min-height: 48px; }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  padding: calc(var(--header-h) + 3vh) var(--margin) 4vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -0.02em;
  margin-bottom: clamp(16px, 3.5vh, 44px);
}
.hero-eyebrow svg { width: 1.2em; height: 1.2em; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.eb-light { font-weight: 400; letter-spacing: .06em; }
.eb-dot { color: var(--muted); }
.hero-eyebrow strong { font-weight: 700; letter-spacing: -0.03em; }

.hero-title {
  font-size: min(6.4vw, 10.2vh, 112px);
  font-weight: 800; line-height: .94; letter-spacing: -0.055em;
}
.hero-title span { display: block; }

.hero-sub {
  margin-top: clamp(16px, 3.2vh, 40px);
  font-size: clamp(19px, min(2vw, 3.4vh), 34px);
  line-height: 1.3; letter-spacing: -0.015em; font-weight: 400;
}
.hero-label {
  margin-top: clamp(20px, 4vh, 52px);
  font-family: var(--mono); font-size: clamp(14px, min(1.25vw, 2.1vh), 21px); letter-spacing: .04em;
}
.ai-grid {
  margin-top: clamp(12px, 2vh, 22px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vh, 18px);
  width: min(100%, 640px);
}
.ai-btn {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  height: clamp(46px, 5.8vh, 58px);
  border: 1.25px solid var(--ink); border-radius: 6px;
  font-family: var(--mono); font-size: clamp(15px, min(1.2vw, 2.1vh), 21px);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.ai-btn svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.ai-btn svg .fill { fill: currentColor; stroke: none; }
.ai-btn .arr { font-size: .9em; transition: transform .2s var(--ease); }
.ai-btn:hover { background: var(--ink); color: var(--bg); }
.ai-btn:hover .arr { transform: translate(2px, -2px); }

.cta-pill {
  margin-top: clamp(20px, 4vh, 48px);
  display: inline-flex; align-items: center; gap: 18px;
  height: clamp(54px, 6.8vh, 68px); padding: 0 clamp(32px, 3vw, 54px);
  border-radius: 9999px; background: var(--ink); color: var(--bg);
  font-size: clamp(19px, min(1.6vw, 2.7vh), 28px); font-weight: 700; letter-spacing: -0.03em;
  transition: transform .2s var(--ease);
}
.cta-pill:active { transform: scale(.98); }
.cta-arrow { transition: transform .25s var(--ease); }
.cta-pill:hover .cta-arrow { transform: translateX(5px); }
.hero-foot {
  margin-top: clamp(14px, 2.4vh, 28px);
  font-family: var(--mono); font-size: clamp(13px, min(1vw, 1.8vh), 17px); color: var(--muted);
}
.hero-foot a { border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.hero-foot a:hover { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 640px) {
  .hero-title { font-size: 12.5vw; }
  .hero-title span { display: inline; }
  .hero-sub br { display: none; }
  .ai-grid { grid-template-columns: 1fr; }
}

/* ============ SPLIT ============ */
.split {
  min-height: 100svh;
  background: var(--bg-300);
  padding: calc(var(--header-h) + 24px) var(--margin) 48px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  align-items: center;
}
.split-text { grid-column: 1 / span 6; max-width: 820px; }
.split-title {
  font-size: clamp(48px, min(5.6vw, 11vh), 112px);
  font-weight: 700; line-height: .98; letter-spacing: -0.035em;
}
.split-body {
  margin-top: clamp(24px, 4vh, 44px);
  font-size: clamp(19px, min(1.85vw, 3.4vh), 34px);
  line-height: 1.3; letter-spacing: -0.02em; max-width: 19.5em;
}
.text-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(32px, 7vh, 80px);
  font-size: clamp(18px, 1.5vw, 26px); letter-spacing: -0.02em;
  padding-bottom: 8px; border-bottom: 1.5px solid var(--ink);
}
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.text-link--sm { margin: 0; font-size: 16px; padding-bottom: 4px; font-weight: 500; }
.text-link--sm:hover span { transform: translate(2px, -2px); }
.split-figure { grid-column: 7 / span 6; }
.iso-frame { display: block; width: 100%; aspect-ratio: 1310 / 815; border: 0; background: transparent; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; row-gap: 48px; }
  .split-text, .split-figure { grid-column: 1; }
}


/* ============ SHOWCASE ============ */
.showcase { background: linear-gradient(to bottom, var(--bg-300) 0%, var(--bg-300) 55%, var(--bg) 100%); line-height: 0; }
.showcase img {
  display: block; width: 100%; height: auto; max-height: 100svh; object-fit: cover;
  /* image bg is #f0efef vs bg-300 #efeeea: feather top/bottom so no seam shows */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 72%, rgba(0,0,0,.35) 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 72%, rgba(0,0,0,.35) 88%, transparent 100%);
}

/* ============ SECTION HEAD (shared) ============ */
.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 20px;
  align-items: end; margin-bottom: clamp(40px, 6vw, 80px);
}
.kicker {
  grid-column: 1 / -1;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.section-title {
  grid-column: 1 / span 8;
  font-size: clamp(36px, 4.2vw, 68px); font-weight: 700; line-height: .98; letter-spacing: -0.045em;
  max-width: 14em;
}
.section-aside { grid-column: 9 / span 4; font-size: 16px; color: var(--muted); max-width: 26em; }
.section-head--kicker { margin-bottom: clamp(24px, 3vw, 40px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row .kicker { margin-bottom: 20px; }
@media (max-width: 900px) { .section-title, .section-aside { grid-column: 1 / -1; } }

/* ============ ACCORDION (5 steps) ============
   Each step is a full-bleed band. Closed: eyebrow + title left, dark
   description right. Open: the band turns into a grey block that fills the
   viewport under the header; the description gives way to poster + paragraph. */
:root { --accent-2: #a94a38; --ink-on-accent: #f7f6f3; }
.signal { padding: var(--section-pad) var(--margin) 0; }
.acc { margin-inline: calc(-1 * var(--margin)); }

.acc-item {
  position: relative;
  padding: clamp(28px, 3vw, 44px) var(--margin);
  overflow: hidden;
  cursor: pointer;
  transition: background-color .45s var(--ease);
}
.acc-item::before { /* row rule, inset to the content margins */
  content: ""; position: absolute; top: 0; left: var(--margin); right: var(--margin);
  height: 1px; background: var(--ink);
}
.acc-item.is-open { background: var(--bg-300); cursor: default; }
.acc-item.is-open::before { opacity: 0; }

.acc-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.acc-head { grid-column: 1 / span 7; }
.acc-btn { display: block; text-align: left; width: 100%; }
.acc-eyebrow {
  display: block;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.acc-title {
  display: block; margin-top: 12px;
  font-size: clamp(52px, 6.2vw, 128px); font-weight: 700; line-height: .95; letter-spacing: -0.05em;
  transition: transform .45s var(--ease);
}
.acc-item:not(.is-open):hover .acc-title { transform: translateX(8px); }

/* right column: description (closed) or panel (open), aligned to the title's top */
.acc-right { grid-column: 8 / span 4; padding-top: calc(13px * 1.3 + 12px + .1em); }
.acc-desc {
  font-size: clamp(17px, 1.35vw, 22px); line-height: 1.35; letter-spacing: -0.015em; color: var(--ink);
  max-width: 26em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.acc-item.is-open .acc-desc { display: none; }
.acc-panel { display: none; }
.acc-item.is-open .acc-panel { display: block; }
.acc-panel > * { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.acc-item.is-shown .acc-panel > * { opacity: 1; transform: none; }
.acc-item.is-shown .acc-panel > :nth-child(2) { transition-delay: .06s; }
.acc-item.is-shown .acc-panel > :nth-child(3) { transition-delay: .12s; }

.poster { margin: 0; width: 236px; max-width: 100%; aspect-ratio: 4 / 5; color: currentColor; }
.poster svg, .poster img { display: block; width: 100%; height: 100%; }
.acc-para {
  margin-top: clamp(24px, 3vh, 40px);
  font-size: clamp(19px, 1.55vw, 30px); line-height: 1.3; letter-spacing: -0.02em; max-width: 22em;
}
.acc-support { margin-top: 16px; font-size: 16px; line-height: 1.45; max-width: 28em; }
.acc-links { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.acc-link {
  display: inline-flex; gap: 10px; font-size: 17px; font-weight: 500;
  padding-bottom: 4px; border-bottom: 1.5px solid currentColor;
}
.acc-item:not(.is-red) .acc-pill { background: var(--ink); color: var(--bg); }
.acc-link span, .acc-pill span { transition: transform .25s var(--ease); }
.acc-link:hover span, .acc-pill:hover span { transform: translateX(4px); }
.acc-pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 28px; border-radius: 9999px;
  background: var(--ink-on-accent); color: var(--accent-2);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}

.acc-icon {
  grid-column: 12; justify-self: end; margin-top: calc(13px * 1.3 + 4px);
  width: 64px; height: 64px; border-radius: 9999px; border: 1.2px solid currentColor;
  position: relative; transition: background .25s var(--ease), transform .45s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.4px; background: currentColor;
  transform: translate(-50%, -50%);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-icon { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* step 05: red band (accent-secondary + ink-on-accent per DS) */
.acc-item.is-red, .acc-item.is-red.is-open { background: var(--accent-2); color: var(--ink-on-accent); }
.acc-item.is-red::before { opacity: 0; }
.acc-item.is-red .acc-eyebrow, .acc-item.is-red .acc-desc { color: var(--ink-on-accent); }
.acc-item.is-red .acc-eyebrow { opacity: .8; }
.acc-item.is-red.is-open .acc-icon { background: var(--ink-on-accent); border-color: var(--ink-on-accent); color: var(--accent-2); }

@media (max-width: 900px) {
  .acc-head { grid-column: 1 / -1; grid-row: 1; padding-right: 64px; }
  .acc-title { font-size: clamp(36px, 11vw, 64px); }
  .acc-eyebrow { font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
  .acc-icon { grid-column: 1 / -1; grid-row: 1; width: 52px; height: 52px; }
  .acc-right { grid-column: 1 / -1; padding-top: 16px; }
  .poster { width: 60%; }
}

/* ============ LIBRARY / CARDS ============ */
.library { background: var(--wall); padding: 72px 0 var(--section-pad); }
.lib-head {
  margin: 0 var(--margin);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 1px solid var(--ink);
}
.lib-head .kicker { margin-bottom: 20px; }
.lib-head .section-title { max-width: none; }
.lib-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lib-controls .text-link { margin: 0 12px 0 16px; }
.lib-filters { display: flex; gap: 8px; }
.pill-filter {
  height: 40px; padding: 0 18px; border-radius: 9999px; border: 1px solid var(--ink);
  font-family: var(--mono); font-size: 13px; transition: background .2s, color .2s;
}
.pill-filter:hover { background: rgba(41,41,41,.06); }
.pill-filter.is-active { background: var(--ink); color: var(--bg); }
.circle-btn {
  width: 52px; height: 52px; border-radius: 9999px; border: 1.2px solid var(--ink);
  font-size: 18px; display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.circle-btn:hover { background: var(--ink); color: var(--wall); }
.circle-btn:disabled { opacity: .3; pointer-events: none; }
.lib-count {
  margin: 0 var(--margin); padding: 16px 0 20px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.track {
  display: flex; gap: 24px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin);
  padding: 0 var(--margin) 16px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track::after { content: ""; flex: 0 0 1px; }
.card {
  position: relative;
  flex: 0 0 clamp(280px, 21vw, 420px);
  scroll-snap-align: start;
  background: var(--bg-200);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card[hidden] { display: none; }
.card:not(.is-wip):hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(41,41,41,.04), 0 18px 40px rgba(41,41,41,.10); }
/* art sits directly on the card; a single rule separates it from the text */
.card-fig { aspect-ratio: 4 / 3; display: grid; place-items: center; border-bottom: 1px solid var(--rule); }
.card-fig svg { width: 38%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: transform .6s var(--ease); }
.card-fig svg .dot { fill: var(--ink); stroke: none; }
.card-fig { overflow: hidden; }
.card-fig img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:not(.is-wip):hover .card-fig img { transform: scale(1.04); }
.card.is-wip .card-fig img { opacity: .45; filter: grayscale(.35); }
.card:not(.is-wip):hover .card-fig svg { transform: scale(1.06) rotate(-2deg); }
.card-body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-title {
  margin-top: 16px;
  font-size: clamp(22px, 1.55vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em;
  min-height: 2.2em; /* always reserve two lines so subtitles and CTAs align */
}
.card-sub { margin-top: 12px; font-size: clamp(15px, 1vw, 18px); line-height: 1.4; color: var(--muted); min-height: 2.8em; }
.card-foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.card-foot { margin-top: 28px; }
.card-cta { font-size: clamp(15px, 1vw, 18px); font-weight: 600; display: inline-flex; gap: 8px; }
.card-cta::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.card-cta span { transition: transform .2s var(--ease); }
.card:hover .card-cta span { transform: translate(2px, -2px); }
.card-src { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.card.is-wip { background: transparent; border: 1px dashed rgba(41,41,41,.35); }
.card.is-wip .card-fig { border-bottom-style: dashed; border-bottom-color: rgba(41,41,41,.25); }
.card.is-wip .card-fig svg { opacity: .28; }
.card.is-wip .card-title { color: var(--muted); }
.card.is-wip .card-foot { border-top-style: dashed; }
.wip { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wip::before { content: "●"; margin-right: 8px; }

@media (max-width: 767px) { .card { border-radius: 4px; } .lib-filters { order: 3; width: 100%; overflow-x: auto; } }

/* ============ FAQ (rows share the accordion's visual language) ============ */
.faq { padding: var(--section-pad) var(--margin); }
.faq .lib-head { margin: 0 0 clamp(24px, 3vw, 40px); border-bottom: 0; padding-bottom: 0; }
.acc--faq { border-bottom: 1px solid var(--ink); margin-inline: calc(-1 * var(--margin)); }
.acc--faq .acc-item { cursor: pointer; }
.acc--faq .acc-item.is-open { background: transparent; cursor: pointer; }
.acc--faq .acc-item.is-open::before { opacity: 1; }
.acc--faq .acc-title { font-size: clamp(30px, 3.2vw, 60px); line-height: 1; letter-spacing: -0.045em; max-width: 14em; }
.acc--faq .acc-item.is-open .acc-desc { display: -webkit-box; }
.acc--faq .acc-item:not(.is-open):hover .acc-title { transform: translateX(6px); }
.faq-answer { overflow: hidden; height: 0; }
.faq-answer p {
  padding-top: 20px; font-size: clamp(16px, 1.1vw, 19px); line-height: 1.55; color: var(--muted); max-width: 34em;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease) .1s, transform .45s var(--ease) .1s;
}
.acc--faq .acc-item.is-open .faq-answer p { opacity: 1; transform: none; }
.lib-empty { margin: 8px var(--margin) 0; padding: 48px 0; font-size: 18px; color: var(--muted); border: 1px dashed rgba(41,41,41,.35); text-align: center; }
.faq-all { margin-top: 40px; }
/* home FAQ: one accordion step; closing rule under it like the rows above */
.faq--step { padding: 72px var(--margin) var(--section-pad); }
.faq--step .acc { position: relative; }
.faq--step .acc::after { content: ""; position: absolute; left: var(--margin); right: var(--margin); bottom: 0; height: 1px; background: var(--ink); }
.q-list { border-top: 1px solid var(--rule); max-width: 30em; }
.q-item { border-bottom: 1px solid var(--rule); }
.q-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 18px 0; text-align: left;
  font-size: clamp(19px, 1.55vw, 30px); line-height: 1.3; letter-spacing: -0.02em;
}
.q-btn i { flex: none; position: relative; width: 16px; height: 16px; margin-top: .45em; transition: transform .35s var(--ease); }
.q-btn i::before, .q-btn i::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.4px; background: currentColor; }
.q-btn i::after { transform: rotate(90deg); }
.q-item.is-open .q-btn i { transform: rotate(45deg); }
.q-btn:hover span { opacity: .65; }
.q-ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.q-ans > p { overflow: hidden; min-height: 0; font-size: clamp(16px, 1.1vw, 19px); line-height: 1.5; color: var(--muted); }
.q-item.is-open .q-ans { grid-template-rows: 1fr; }
.q-item.is-open .q-ans > p { padding-bottom: 20px; }
.faq--page { padding-top: 56px; }

/* ============ FOOTER ============ */
.site-footer { padding: 28px calc(var(--margin) / 2 + 8px) 32px; }
.foot-tagline {
  font-size: clamp(18px, 1.9vw, 36px); font-weight: 300; letter-spacing: -0.025em;
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-size: 19vw; font-weight: 700; letter-spacing: -0.062em; line-height: .78;
  padding: 3vw 0 3.4vw; margin-left: -0.04em;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap; overflow: hidden;
}
.foot-cols { display: grid; grid-template-columns: repeat(5, 1fr); padding: 20px 0 32px; border-bottom: 1px solid var(--rule); }
.foot-col { display: flex; flex-direction: column; gap: 10px; padding: 0 24px; border-left: 1px solid var(--rule); }
.foot-col:first-child { border-left: 0; padding-left: 0; }
.foot-col h3 { display: flex; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 400; color: var(--muted); margin-bottom: 2px; }
.foot-col h3 span { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.foot-col a { font-size: 18px; width: fit-content; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.foot-col a:hover { background-size: 100% 1px; }
.foot-col a i { font-style: normal; font-size: .8em; color: var(--muted); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; color: var(--muted); }
.foot-bottom strong { color: var(--ink); font-weight: 600; }
.foot-bottom a { color: var(--ink); }
.foot-legal { display: flex; gap: 20px; }
.foot-legal a { color: var(--muted); }
.foot-legal a:hover, .foot-bottom a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .foot-cols { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .foot-col:nth-child(4) { border-left: 0; padding-left: 0; }
}
.foot-mobile { display: none; }
@media (max-width: 640px) {
  .foot-cols { display: none; }
  .foot-tagline { font-size: 18px; }
  .wordmark { font-size: 17.6vw; padding: 5vw 0 6vw; }
  .foot-mobile { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
  .foot-cta { display: flex; justify-content: center; align-items: center; gap: 10px; height: 52px; border-radius: 9999px; background: var(--ink); color: var(--bg); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
  .foot-top { display: flex; justify-content: center; align-items: center; gap: 8px; height: 48px; font-size: 16px; font-weight: 500; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

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