/* Birkly home + shared type tokens (P64) */
:root {
  --bk-ink: #1E1F2A;
  --bk-mint: #7CE3DE;
  --bk-mint-deep: #2AA69F;
  --bk-paper: #F8F9F7;
  --bk-line: #E7EAE4;
  --bk-muted: #5F6577;          /* was #717789 — raised for WCAG AA on paper */
  --bk-muted-soft: #6E7484;     /* was #A2A7B5 — 2.5:1, failed AA */
  --bk-focus: #1E1F2A;
  --bk-wrap: min(1720px, 94vw);
  --bk-pad: 32px;
  --bk-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --bk-sans: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --bk-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

body { margin: 0; background: var(--bk-paper); -webkit-font-smoothing: antialiased; }
::selection { background: var(--bk-mint); color: var(--bk-ink); }
input::placeholder { color: var(--bk-muted-soft); }

/* --- Keyboard accessibility ------------------------------------------- */
.bk-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--bk-ink);
  color: var(--bk-paper);
  font-family: var(--bk-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}
.bk-skip:focus {
  left: 0;
  outline: 3px solid var(--bk-mint);
  outline-offset: 2px;
}
:focus-visible {
  outline: 3px solid var(--bk-mint-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
[data-theme="dark"] :focus-visible,
[data-h-shell] :focus-visible,
[data-hiw-theme="dark"] :focus-visible {
  outline-color: var(--bk-mint);
}
@supports selector(:focus-visible) {
  a:focus:not(:focus-visible),
  button:focus:not(:focus-visible) { outline: none; }
}

.bk-root { font-family: var(--bk-sans); color: var(--bk-ink); background: var(--bk-paper); overflow-x: clip; line-height: 1.6; }
.bk-wrap { max-width: var(--bk-wrap); margin: 0 auto; padding-left: var(--bk-pad); padding-right: var(--bk-pad); box-sizing: border-box; }
.bk-section { padding-left: var(--bk-pad); padding-right: var(--bk-pad); box-sizing: border-box; }
.bk-section-inner { position: relative; max-width: var(--bk-wrap); margin: 0 auto; padding: 0 var(--bk-pad); box-sizing: border-box; }

.bk-display {
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 210px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}
.bk-h2 {
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 720px;
  text-wrap: balance;
}
.bk-h2-light {
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 760px;
  color: #F8F9F7;
  text-wrap: balance;
}
.bk-h3 {
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
.bk-card-h {
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: clamp(22px, 1.8vw, 32px);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.bk-kicker {
  font-family: var(--bk-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.bk-hub-card { border-radius: 20px; padding: 32px 28px; min-height: 220px; display: flex; flex-direction: column; }
.bk-card-p { font-size: clamp(14px, 0.8vw, 17px); margin: 0 0 auto; text-wrap: pretty; }
.bk-card-k { font-family: var(--bk-mono); font-size: 12px; margin: 0 0 18px; }

/* --- Hero intro: CSS-owned ---------------------------------------------
   This used to be gsap.from({yPercent:115}) inside birkly-fx.js. Because the
   headline is the LCP element and its wrapper clips overflow, the browser
   could not count it as painted until GSAP had downloaded, booted, waited out
   a poll and finished the tween — measured LCP 5.6s on an unthrottled desktop.
   As CSS it starts with the first paint instead. */
@media (prefers-reduced-motion: no-preference) {
  [data-hero-line] {
    display: block;
    animation: bk-hero-line-in .8s cubic-bezier(.16, 1, .3, 1) both;
  }
  .bk-display > span:nth-child(2) [data-hero-line],
  .bk-h1 > span:nth-child(2) [data-hero-line],
  h1 > span:nth-child(2) [data-hero-line] { animation-delay: .10s; }
  .bk-display > span:nth-child(3) [data-hero-line],
  .bk-h1 > span:nth-child(3) [data-hero-line],
  h1 > span:nth-child(3) [data-hero-line] { animation-delay: .20s; }

  [data-hero-kicker] { animation: bk-hero-fade-in .6s ease-out both; }
  [data-hero-sub],
  [data-hero-cta],
  [data-hero-meta] { animation: bk-hero-fade-in .7s ease-out .18s both; }
}
@keyframes bk-hero-line-in {
  from { transform: translateY(108%); }
  to   { transform: translateY(0); }
}
@keyframes bk-hero-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* --- 04 / Features ------------------------------------------------------ */
.bk-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 16px;
}
.bk-fcard-home {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 32px 28px;
  min-height: 230px;
  box-sizing: border-box;
  transition: transform .35s ease, border-color .35s ease;
}
.bk-fcard-home:hover { transform: translateY(-4px); }
.bk-fcard-home[data-theme="light"]:hover { border-color: var(--bk-mint); }
.bk-stat {
  font-family: var(--bk-mono);
  font-size: clamp(28px, 2.6vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--bk-mint-deep);
}
.bk-fcard-home[data-theme="dark"] .bk-stat { color: var(--bk-mint); }
.bk-fcard-home[data-theme="mint"] .bk-stat { color: #1F857F; }
.bk-fcard-home .bk-card-p { margin: 0; }
.bk-fcard-home[data-theme="dark"] .bk-card-p { color: #B4B9C6; }
.bk-fcard-home[data-theme="mint"] .bk-card-p { color: #4A4F5E; }
.bk-fcard-home[data-theme="light"] .bk-card-p { color: var(--bk-muted); }
.bk-fcard-home[data-theme="dark"] .bk-card-h { color: #F8F9F7; }

/* --- Templating & connection: real code, not stock photos --------------- */
.bk-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
  align-items: stretch;
}
.bk-code-card {
  display: flex;
  flex-direction: column;
  background: var(--bk-paper);
  border: 1px solid var(--bk-line);
  border-radius: 20px;
  padding: 30px 28px;
  box-sizing: border-box;
  transition: border-color .3s ease, transform .3s ease;
}
.bk-code-card:hover { border-color: var(--bk-mint); transform: translateY(-4px); }
.bk-code-card .bk-card-p { margin: 0 0 22px; }
.bk-code {
  margin: auto 0 0;
  background: var(--bk-ink);
  color: #E7EAE4;
  font-family: var(--bk-mono);
  font-size: clamp(12px, .75vw, 14px);
  line-height: 1.65;
  padding: 18px 20px;
  border-radius: 14px;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.bk-code code { font-family: inherit; background: none; padding: 0; color: inherit; }
.bk-code::-webkit-scrollbar { height: 6px; }
.bk-code::-webkit-scrollbar-thumb { background: #3A3D4E; border-radius: 99px; }

/* --- 05 / Why Birkly exists --------------------------------------------- */
.bk-philosophy {
  font-family: var(--bk-serif);
  font-weight: 500;
  font-size: clamp(24px, 3.1vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
  border: none;
  padding: 0;
  quotes: none;
}
@media (max-width: 900px) { .bk-philosophy { max-width: none; } }

/* --- Hub availability labels -------------------------------------------- */
.bk-hub-avail {
  font-family: var(--bk-mono);
  font-size: 11px;
  letter-spacing: .04em;
  margin: 16px 0 0;
  color: var(--bk-mint-deep);
}
.bk-hub-card[data-theme="dark"] .bk-hub-avail { color: var(--bk-mint); }
.bk-hub-card[data-theme="mint"] .bk-hub-avail { color: #1F857F; }
.bk-hub-avail--soon { color: var(--bk-muted-soft) !important; }

.bk-cta-dark { transition: background .25s ease, color .25s ease; }
.bk-cta-dark:hover { background: var(--bk-mint) !important; color: var(--bk-ink) !important; }
.bk-cta-mint { transition: box-shadow .3s ease; }
.bk-cta-mint:hover { box-shadow: 0 10px 30px rgba(124,227,222,0.5); }
.bk-cta-ghost { transition: border-color .3s ease; }
.bk-cta-ghost:hover { border-color: var(--bk-ink); }
.bk-underline { transition: color .25s ease; }
.bk-underline:hover { color: var(--bk-mint-deep); }
.bk-row { transition: background .35s ease, padding .35s ease; }
.bk-row:hover { background: #FFFFFF; padding-left: 24px; padding-right: 24px; }
.bk-panel { transition: border-color .3s ease; }
.bk-panel:hover { border-color: var(--bk-mint); }
.bk-card { transition: transform .35s ease, border-color .35s ease; }
.bk-card:hover { transform: scale(1.015); }
.bk-card[data-theme="light"]:hover { border-color: var(--bk-mint); }
.bk-tcard { transition: border-color .3s ease, transform .3s ease; }
.bk-tcard:hover { border-color: var(--bk-mint); transform: translateY(-4px); }

[data-theme="dark"] { background: #262836; border: 1px solid #343648; color: #E7EAE4; }
[data-theme="dark"] .bk-h { color: #F8F9F7; }
[data-theme="dark"] .bk-p { color: #B4B9C6; }
[data-theme="dark"] .bk-kicker { color: var(--bk-mint); }
[data-theme="dark"] .bk-deco { stroke: var(--bk-mint); opacity: .12; }
[data-theme="mint"] { background: #E9FAF9; border: 1px solid #D6F5F3; color: var(--bk-ink); }
[data-theme="mint"] .bk-h { color: var(--bk-ink); }
[data-theme="mint"] .bk-p { color: #4A4F5E; }
[data-theme="mint"] .bk-kicker { color: #1F857F; }
[data-theme="mint"] .bk-deco { stroke: var(--bk-mint-deep); opacity: .25; }
[data-theme="light"] { background: #FFFFFF; border: 1px solid var(--bk-line); color: var(--bk-ink); }
[data-theme="light"] .bk-h { color: var(--bk-ink); }
[data-theme="light"] .bk-p { color: var(--bk-muted); }
[data-theme="light"] .bk-kicker { color: var(--bk-muted-soft); }
.bk-kicker:empty, .bk-stat:empty { display: none; }

[data-hiw-theme="dark"] { background: var(--bk-ink) !important; border: none !important; color: #E7EAE4; }
[data-hiw-theme="dark"] h3 { color: #F8F9F7; font-family: var(--bk-serif); font-weight: 500; }
[data-hiw-theme="dark"] p:last-child { color: #B4B9C6; }
[data-hiw-theme="dark"] p:first-of-type { color: var(--bk-mint); }
[data-step] h3 { font-family: var(--bk-serif); font-weight: 500; font-size: clamp(20px, 1.6vw, 28px); }

/* Personas morph shell */
[data-h-scroll] { background: transparent !important; padding: 0 !important; margin: 0 !important; }
[data-h-shell] {
  background: var(--bk-ink);
  color: #E7EAE4;
  position: relative;
  padding: clamp(64px, 7vw, 120px) 0;
  box-sizing: border-box;
  will-change: border-radius, margin;
}
[data-h-waves] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0;
}

/* --- Scroll reveals: CSS-owned, so nothing can get stuck invisible ----- */
[data-row], [data-step], [data-h-panel] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .bk-anim-ready [data-row],
  .bk-anim-ready [data-step],
  .bk-anim-ready [data-h-panel] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  }
  .bk-anim-ready [data-row].is-revealed,
  .bk-anim-ready [data-step].is-revealed,
  .bk-anim-ready [data-h-panel].is-revealed {
    opacity: 1;
    transform: none;
  }

  [data-reveal].bk-reveal-init {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  }
  [data-reveal].bk-reveal-init.is-revealed {
    opacity: 1;
    transform: none;
  }
  [data-reveal-group].bk-reveal-init > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
  }
  [data-reveal-group].bk-reveal-init.is-revealed > * {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) { [data-feature-col] { margin-top: 0 !important; } }
@media (max-width: 760px) {
  [data-row] { grid-template-columns: 1fr !important; gap: 10px !important; padding: 30px 10px !important; }
  [data-h-panel] { padding: 30px 24px !important; min-height: 340px !important; }
  [data-step] { padding: 24px 18px !important; }
  .bk-fcard-home { padding: 26px 22px; min-height: 190px; }
  .bk-code-card { padding: 26px 22px; }
  [data-nav] nav { display: none !important; }
  [data-nav] > div > a[data-magnetic] { display: none !important; }
  [data-birkly-burger] { display: inline-flex !important; }
  #top { padding-top: 124px !important; }
}
@media (max-width: 520px) {
  [data-nav] > div { padding: 10px 16px !important; gap: 12px !important; }
  [data-logo] { width: 78px !important; }
  [data-footer-wordmark] { font-size: 30vw !important; }
}
@keyframes birkly-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Mobile nav fallback: if the burger never mounts (FX bundle failed to load),
   show the nav as a scrollable strip instead of leaving mobile with no nav. */
@media (max-width: 760px) {
  [data-nav]:not(:has([data-birkly-burger])) nav {
    display: flex !important;
    order: 3;
    width: 100%;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 18px;
  }
  [data-nav]:not(:has([data-birkly-burger])) nav::-webkit-scrollbar { display: none; }
}

/* Logo mint-dot presence (CSS fallback; FX may enhance/fly on subpages) */
[data-logo-dot] {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: birkly-logo-dot 1.6s ease-in-out infinite alternate;
}
@keyframes birkly-logo-dot {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0.5; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  [data-logo-dot] { animation: none; }
  [data-h-shell] { will-change: auto; }
  * { scroll-behavior: auto !important; }
}

/* How-it-works / hub body fonts */
#how-it-works .bk-h2, #hub-strip .bk-h2 { font-family: var(--bk-serif); font-weight: 500; }
#how-it-works p, #hub-strip p, #hub-strip .bk-card-p { font-family: var(--bk-sans); }
#how-it-works .bk-h3 { font-family: var(--bk-serif); font-weight: 500; }

/* Hub creative mosaic */
.bk-hub-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
}
.bk-hub-mosaic > * { min-height: 220px; }
.bk-hub-mosaic .bk-hub-card { min-height: 220px; height: 100%; box-sizing: border-box; }
.bk-hub-photo {
  position: relative;
  border-radius: 20px; overflow: hidden; background: var(--bk-line); min-height: 200px;
}
.bk-hub-photo img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 200px; }
.bk-hub-photo--tall { grid-row: span 2; min-height: 100%; }
.bk-hub-photo--tall img { min-height: 100%; }
.bk-hub-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(30,31,42,.08), rgba(30,31,42,.28));
  pointer-events: none;
}
@media (max-width: 900px) {
  .bk-hub-mosaic { grid-template-columns: 1fr 1fr; }
  .bk-hub-photo--tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .bk-hub-mosaic { grid-template-columns: 1fr; }
}

/* Collapse leftover space after personas / before hub */
#how-it-works { padding-bottom: clamp(48px, 5vw, 88px) !important; }
#how-it-works .bk-wrap > div[style*="sticky"] { position: relative !important; top: auto !important; }
[data-h-scroll] + #how-it-works { margin-top: 0 !important; }

/* Perf: reserve header space before custom element upgrades (deferred JS). */
birkly-header{display:block;min-height:72px}
birkly-footer{display:block;min-height:280px}
/* System fallbacks while webfonts load (non-blocking stylesheet). */
.bk-root,body{font-family:"Instrument Sans",ui-sans-serif,system-ui,-apple-system,sans-serif}
.bk-display,.bk-h1,.bk-h2,.bk-h2-light,.bk-h3,h1,h2,h3{font-family:"Source Serif 4",ui-serif,Georgia,serif}

/* --- Hero: CRT-style templating-syntax flicker cameo ---------------------
   Automatically alternates the rendered headline with the real template
   tags that generate it, using a proper old-TV signal-glitch look:
   blackout frames, chromatic-aberration text-shadow, a rolling scan bar,
   and a static-noise texture — driven from JS (see index.html) which sets
   opacity/transform/filter/text-shadow per frame; the CSS here just
   supplies the base look and the rolling-bar/noise overlay. Shown as
   real, multi-line Birkly template syntax (from/get/endget), monospace,
   no dark box — sits directly over the hero, transparent background.
   Braces are HTML-entity-escaped so the live templating engine never
   tries to resolve them as real fields. The rendered <h1> stays in the
   DOM at all times (only its inline styles change), so assistive tech
   always has the real heading; the syntax layer is aria-hidden and,
   under reduced motion, never shown. */
.bk-hero-stage { position: relative; }
.bk-hero-syn {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; opacity: 0; pointer-events: none;
}
.bk-hero-syn-line {
  margin: 0; font-family: var(--bk-mono); font-weight: 500;
  font-size: clamp(20px, 4.4vw, 92px); line-height: 1.32; letter-spacing: -0.01em;
  color: rgba(30,31,42,.68); white-space: pre;
}
.bk-hero-syn-indent { padding-left: 1.1em; }
.bk-hero-syn-mark { color: var(--bk-mint-deep); font-weight: 600; }
.bk-hero-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(30,31,42,.10) 0px, rgba(30,31,42,.10) 1px, transparent 1px, transparent 3px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: auto, 160px 160px;
  mix-blend-mode: multiply;
  transition: opacity .06s linear;
}
.bk-hero-scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(124,227,222,.55), transparent);
  transform: translateY(-140%);
}
.bk-hero-scan.is-active::after { animation: bk-hero-rollbar .42s linear; }
@keyframes bk-hero-rollbar {
  0%   { transform: translateY(-140%); }
  100% { transform: translateY(240%); }
}
.bk-hero-scan.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .bk-hero-syn, .bk-hero-scan { display: none; }
}

/* ============================================================
   Merged from home-shapes.css (2026-08-28): both files were only
   ever loaded together, only by index.html — no reuse reason to
   keep them separate.
   ============================================================ */

/* Birkly — "what you can build": one content model, many shapes.
 *
 * Deliberately CSS-only, driven by hidden radio inputs. This page has had a
 * long run of JavaScript-timing bugs, and a section whose entire job is to
 * switch panels does not need a script to do it. It also means the section
 * works before any JS loads, and keyboard/screen-reader behaviour comes free
 * from the radio group.
 */
.bk-shapes-sec {
  padding: clamp(96px, 10vw, 190px) 0;
  box-sizing: border-box;
  background: var(--bk-paper);
  border-top: 1px solid var(--bk-line);
}
.bk-shapes { position: relative; }

/* Inputs live before the tabs so `:checked ~` can reach both tabs and panels.
   Visually hidden, but focusable — the focus ring lands on the label below. */
.bk-shape-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.bk-shape-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--bk-line-soft, #DDE1DA);
}
.bk-shape-tab {
  font-family: var(--bk-sans); font-size: clamp(14px, .85vw, 17px); font-weight: 600;
  padding: 11px 20px; border-radius: 99px; cursor: pointer; user-select: none;
  border: 1px solid #D5D9D2; background: transparent; color: var(--bk-muted);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.bk-shape-tab:hover { color: var(--bk-ink); border-color: var(--bk-mint); }

.bk-shape-panel { display: none; padding-top: clamp(30px, 3.5vw, 52px); }
.bk-shape-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 72px);
  align-items: start;
}
.bk-shape-h {
  font-family: var(--bk-serif); font-weight: 500;
  font-size: clamp(26px, 2.8vw, 50px); line-height: 1.12; letter-spacing: -.02em;
  margin: 0 0 14px; text-wrap: balance;
}
.bk-shape-p { font-size: clamp(15px, .9vw, 19px); color: var(--bk-muted); margin: 0; max-width: 46ch; text-wrap: pretty; }
.bk-shape-plug {
  margin: 22px 0 0; font-family: var(--bk-mono); font-size: 12.5px; color: var(--bk-muted-soft);
}
.bk-shape-plug b { color: var(--bk-mint-deep); font-weight: 500; }

/* The model itself: the collections this shape is made of. */
.bk-shape-model {
  background: #FFFFFF; border: 1px solid var(--bk-line); border-radius: 20px;
  padding: clamp(22px, 2.4vw, 34px); box-sizing: border-box;
}
.bk-shape-model-label {
  font-family: var(--bk-mono); font-size: 12px; color: var(--bk-muted-soft);
  margin: 0 0 16px;
}
.bk-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.bk-chip {
  font-family: var(--bk-mono); font-size: clamp(12.5px, .8vw, 14.5px);
  padding: 9px 14px; border-radius: 10px;
  background: var(--bk-paper); border: 1px solid var(--bk-line); color: var(--bk-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.bk-chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--bk-mint); flex-shrink: 0;
}
.bk-chip--plugin { background: var(--bk-ink); border-color: #343648; color: #E7EAE4; }
.bk-chip--plugin::before { background: var(--bk-mint-deep); border-radius: 50%; }
.bk-shape-count {
  margin: 18px 0 0; font-size: 13.5px; color: var(--bk-muted); border-top: 1px solid var(--bk-line);
  padding-top: 16px;
}

/* Selected state — one rule per shape, generated from the input id. */
#shape-blog:checked      ~ .bk-shape-tabs [for="shape-blog"],
#shape-shop:checked      ~ .bk-shape-tabs [for="shape-shop"],
#shape-social:checked    ~ .bk-shape-tabs [for="shape-social"],
#shape-events:checked    ~ .bk-shape-tabs [for="shape-events"],
#shape-docs:checked      ~ .bk-shape-tabs [for="shape-docs"],
#shape-portfolio:checked ~ .bk-shape-tabs [for="shape-portfolio"] {
  background: var(--bk-ink); border-color: var(--bk-ink); color: var(--bk-paper);
  transform: translateY(-1px);
}
#shape-blog:checked      ~ .bk-shape-panels .bk-shape-panel--blog,
#shape-shop:checked      ~ .bk-shape-panels .bk-shape-panel--shop,
#shape-social:checked    ~ .bk-shape-panels .bk-shape-panel--social,
#shape-events:checked    ~ .bk-shape-panels .bk-shape-panel--events,
#shape-docs:checked      ~ .bk-shape-panels .bk-shape-panel--docs,
#shape-portfolio:checked ~ .bk-shape-panels .bk-shape-panel--portfolio {
  display: block;
  animation: bk-shape-in .42s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes bk-shape-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.bk-shape-input:focus-visible ~ .bk-shape-tabs label {
  /* Nothing: only the matching label should light up, handled below. */
}
#shape-blog:focus-visible      ~ .bk-shape-tabs [for="shape-blog"],
#shape-shop:focus-visible      ~ .bk-shape-tabs [for="shape-shop"],
#shape-social:focus-visible    ~ .bk-shape-tabs [for="shape-social"],
#shape-events:focus-visible    ~ .bk-shape-tabs [for="shape-events"],
#shape-docs:focus-visible      ~ .bk-shape-tabs [for="shape-docs"],
#shape-portfolio:focus-visible ~ .bk-shape-tabs [for="shape-portfolio"] {
  outline: 3px solid var(--bk-mint-deep); outline-offset: 3px;
}

@media (max-width: 900px) {
  .bk-shape-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bk-shape-tab { padding: 10px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-shape-panel { animation: none !important; }
  .bk-shape-tab { transition: none; }
}
