/* Layout: a study desk. Sheets, index cards and glass slides laid on real paper;
   every page has one oversized subject, and only that subject gets the highlighter. */
:root {
  /* Three colours only */
  --paper: #F3F2EE;   /* neutral, light: background */
  --ink:   #1B2753;   /* coloured, dark: typography (fountain-pen blue, hue 228) */
  --hi:    #F5CD38;   /* accent: highlighter yellow, hue 48 (180deg from ink) */

  /* tints of the same three */
  --ink-80: rgb(27 39 83 / .82);
  --ink-60: rgb(27 39 83 / .62);
  --ink-25: rgb(27 39 83 / .25);
  --ink-15: rgb(27 39 83 / .15);
  --ink-08: rgb(27 39 83 / .08);
  --paper-80: rgb(243 242 238 / .84);
  --paper-50: rgb(243 242 238 / .5);
  --paper-25: rgb(243 242 238 / .25);
  --sheet: #F8F7F4;

  --display: "Archivo", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  /* Paper: fine grain + long fibres + slow mottling */
  --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .16' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.10'/%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.07'/%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.12'/%3E%3C/svg%3E");
  /* Ink-dyed card stock: same fibres, quieter */
  --tex-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .2' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.01' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.09'/%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.08'/%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E");

  --lift: 0 1px 1px rgb(27 39 83 / .10), 0 16px 30px -18px rgb(27 39 83 / .5);
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-padding-top: 90px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--tex);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(17px, .5vw + 14.5px, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper) var(--tex);
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }
::selection { background: var(--hi); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1300px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- Type ---------- */
.mega, .display, h3, .h3, .kicker, .btn, .site-nav a, .brand-word, .num {
  font-family: var(--display);
  text-transform: uppercase;
}
.mega {
  font-stretch: 62%; font-weight: 900;
  font-size: clamp(44px, 9vw, 150px);
  line-height: .86; letter-spacing: -.005em;
  margin: 0; text-wrap: balance;
}
.display {
  font-stretch: 62%; font-weight: 900;
  font-size: clamp(32px, 5.2vw, 84px);
  line-height: .9; margin: 0; text-wrap: balance;
}
h3, .h3 {
  font-stretch: 75%; font-weight: 800;
  font-size: clamp(22px, 1.4vw + 13px, 30px);
  line-height: 1; letter-spacing: .005em; margin: 0; text-wrap: balance;
}
.kicker {
  font-stretch: 100%; font-weight: 600; font-size: 13px;
  letter-spacing: .16em; margin: 0; color: var(--ink-80);
}
.lede { font-size: clamp(19px, 1vw + 14px, 24px); line-height: 1.45; max-width: 34ch; margin: 0; }
.prose { display: grid; gap: 1.1em; }
.prose p { margin: 0; max-width: 62ch; }
.hand { font-family: var(--hand); font-weight: 500; line-height: 1; }
.note { font-family: var(--hand); font-size: 1.45em; line-height: 1.05; color: var(--ink-80); }
small, .fine { font-size: .8em; color: var(--ink-60); }

/* Highlighter swipe: the only way the accent touches words */
.hl { position: relative; display: inline-block; z-index: 0; padding-inline: .03em; }
.hl::before {
  content: ""; position: absolute; z-index: -1;
  left: -.07em; right: -.09em; top: .1em; bottom: .02em;
  background: var(--hi) var(--tex);
  transform: rotate(-1.4deg) skewX(-7deg);
  clip-path: polygon(1% 9%, 22% 3%, 51% 7%, 79% 1%, 99% 6%, 97% 47%, 100% 92%, 74% 99%, 45% 94%, 18% 100%, 0 94%, 2% 51%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-stretch: 85%; font-weight: 750; letter-spacing: .07em; font-size: 15px; line-height: 1;
  padding: 1em 1.45em; min-height: 48px;
  color: var(--ink); background: var(--sheet) var(--tex);
  border: 2px solid var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 var(--ink-15), 0 10px 16px -10px rgb(27 39 83 / .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--ink-15), 0 16px 20px -12px rgb(27 39 83 / .6); text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink-15), 0 4px 8px -6px rgb(27 39 83 / .5); }
.btn-hi { background: var(--hi) var(--tex); }
.btn-ink { background: var(--ink) var(--tex-dark); color: var(--paper); }
.btn-sm { font-size: 13px; padding: .75em 1.05em; min-height: 40px; }
.band .btn:not(.btn-hi) { background: transparent; color: var(--paper); border-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper) var(--tex);
  border-bottom: 1px solid var(--ink-15);
}
.bar { display: flex; align-items: center; gap: 22px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 52px; width: auto; display: block; }
.brand-word { font-stretch: 62%; font-weight: 900; font-size: 23px; line-height: .84; display: block; }
.brand-hand { font-family: var(--hand); font-size: 19px; line-height: 1; display: block; margin-top: 1px; color: var(--ink-80); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-stretch: 85%; font-weight: 650; font-size: 13.5px; letter-spacing: .07em;
  text-decoration: none; padding-block: 8px; display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink-25); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.menu-btn { display: none; }
.bar-end { display: flex; align-items: center; gap: 12px; }
.bar-end .btn-wa { white-space: nowrap; }
.lang-switch {
  font-family: "Alexandria", var(--display); font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; color: var(--ink); padding: 9px 12px; border: 2px solid var(--ink-25); border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.lang-switch:hover, .lang-switch:focus-visible { border-color: var(--ink); background: var(--hi); }
.lang-switch:lang(en) { font-family: var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
@media (max-width: 1200px) {
  .menu-btn { display: inline-flex; }
  .bar-end .btn-wa { display: none; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper) var(--tex); border-bottom: 1px solid var(--ink-15);
    box-shadow: 0 20px 30px -20px rgb(27 39 83 / .45);
    padding: 8px var(--gutter-r) 22px var(--gutter);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px dashed var(--ink-15); }
  .site-nav a { font-size: 22px; font-stretch: 70%; font-weight: 800; padding-block: 12px; border: 0; }
  .site-nav a[aria-current="page"]::after { content: " \2190 you are here"; font-family: var(--hand); text-transform: none; font-weight: 500; font-size: 20px; letter-spacing: 0; }
}

/* ---------- Sections & materials ---------- */
.section { padding-block: clamp(64px, 9vw, 140px); }
.section-tight { padding-block: clamp(44px, 6vw, 88px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4.5vw, 60px); max-width: 980px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Ink-dyed card stock with torn edges */
.band {
  background: var(--ink) var(--tex-dark); color: var(--paper);
  position: relative; padding-block: clamp(80px, 10vw, 150px);
  clip-path: polygon(0 12px,3% 4px,7% 10px,12% 2px,18% 9px,23% 1px,29% 8px,35% 3px,41% 11px,47% 2px,53% 9px,60% 3px,66% 10px,72% 1px,78% 8px,84% 3px,90% 11px,95% 4px,100% 9px,100% calc(100% - 10px),96% calc(100% - 2px),91% calc(100% - 9px),85% calc(100% - 1px),79% calc(100% - 10px),73% calc(100% - 3px),67% calc(100% - 11px),60% calc(100% - 2px),54% calc(100% - 9px),48% calc(100% - 1px),42% calc(100% - 10px),35% calc(100% - 3px),29% calc(100% - 11px),22% calc(100% - 2px),16% calc(100% - 8px),10% calc(100% - 1px),5% calc(100% - 9px),0 calc(100% - 3px));
}
.band .kicker { color: var(--paper-80); }
.band .fine, .band small { color: var(--paper-80); }

/* A loose sheet or index card */
.sheet {
  background: var(--sheet) var(--tex); box-shadow: var(--lift);
  padding: clamp(24px, 3vw, 40px); position: relative;
}
.ruled {
  background-image: var(--tex), repeating-linear-gradient(to bottom, transparent 0 33px, var(--ink-15) 33px 34px);
  background-position: 0 0, 0 70px;
}
.tape::after {
  content: ""; position: absolute; top: -15px; left: 50%; width: 112px; height: 32px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgb(243 242 238 / .62) var(--tex);
  box-shadow: 0 1px 2px rgb(27 39 83 / .14);
  clip-path: polygon(2% 0, 98% 5%, 100% 24%, 97% 42%, 100% 63%, 98% 100%, 3% 95%, 0 76%, 3% 52%, 0 27%);
}
.tilt-l { transform: rotate(-1.3deg); }
.tilt-r { transform: rotate(1.1deg); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "title title" "copy brain";
  padding-block: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 80px);
}
.hero .mega { grid-area: title; position: relative; z-index: 2; }
.hero-copy { grid-area: copy; position: relative; z-index: 2; display: grid; gap: 26px; align-content: start; padding-top: clamp(20px, 3vw, 44px); }
.hero-brain { grid-area: brain; position: relative; z-index: 1; margin: 0 -10vw 0 0; }
.hero-brain svg { display: block; width: 100%; height: auto; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 0; font-size: 15px; color: var(--ink-80); }
.hero-facts li::before { content: "\2014\00a0"; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "brain" "copy"; }
  .hero-brain { margin: 12px -16vw 0 -4vw; }
  .hero-copy { padding-top: 0; }
}

/* Page hero for inner pages: oversized subject + headline */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 96px) clamp(48px, 6vw, 100px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.page-hero .intro { display: grid; gap: 24px; align-content: end; position: relative; z-index: 2; }
.subject {
  font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  line-height: .78; margin: 0; position: relative; z-index: 0; justify-self: end;
}
.subject .mark { position: relative; display: inline-block; }
.subject .mark::before {
  content: ""; position: absolute; z-index: -1; inset: 8% -4% 6% -5%;
  background: var(--hi) var(--tex); transform: rotate(-2deg) skewX(-6deg);
  clip-path: polygon(0 6%, 30% 0, 62% 5%, 100% 2%, 97% 50%, 100% 96%, 66% 100%, 33% 94%, 2% 100%, 3% 48%);
}
@media (max-width: 860px) {
  .page-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .subject { justify-self: start; order: -1; }
}

/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px); list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 12px; align-content: start; }
.steps li:nth-child(odd) { transform: rotate(-1.2deg); }
.steps li:nth-child(even) { transform: rotate(1deg) translateY(16px); }
.step-no { font-family: var(--hand); font-size: 72px; line-height: .7; }
.steps p { margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li:nth-child(even) { transform: rotate(1deg); } }

/* ---------- Brain teaser ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .teaser { grid-template-columns: minmax(0, 1fr); } }
.teaser-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 34px; }
.teaser-row > * { min-width: 0; }
.teaser input { width: 100%; }
.teaser-form label { font-family: var(--hand); font-size: 26px; color: var(--paper-80); }
.teaser-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.teaser input {
  flex: 1 1 260px; min-width: 0;
  font-family: var(--display); font-stretch: 70%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 76px); letter-spacing: .14em; line-height: 1;
  color: var(--paper); background: transparent; border: 0; border-bottom: 3px solid var(--paper);
  padding: 4px 0 8px; caret-color: var(--hi); border-radius: 0;
}
.teaser input::placeholder { color: var(--paper-25); }
.teaser input:focus { outline: none; border-bottom-style: dashed; }
.teaser-msg { min-height: 1.6em; margin: 0; font-size: 17px; color: var(--paper-80); }
.lamps { list-style: none; padding: 0; margin: 0; display: grid; }
.lamps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 13px 0; border-bottom: 1px dashed var(--paper-50); }
.lamps .name { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 21px; position: relative; justify-self: start; padding-inline: 4px; z-index: 0; transition: color .2s; }
.lamps .name::before {
  content: ""; position: absolute; inset: 2px -4px 0; z-index: -1;
  background: var(--hi) var(--tex); transform: scaleX(0) skewX(-7deg); transform-origin: left;
  transition: transform .35s ease;
}
.lamps .why { font-size: 15px; color: var(--paper-80); grid-column: 1 / -1; }
.lamps .t { font-family: var(--hand); font-size: 24px; line-height: 1; }
.lamps li.lit .name { color: var(--ink); }
.lamps li:not(.lit) .why { display: none; }
.lamps li.lit .name::before { transform: scaleX(1) skewX(-7deg); }

/* ---------- Lists, roster, stats ---------- */
.roster { list-style: none; margin: 0; padding: 0; }
.roster li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-block: 12px 9px; border-bottom: 1px solid var(--ink-15); align-items: start; }
.roster svg { width: 30px; height: 30px; margin-top: 2px; }
.roster strong { font-weight: 600; }
.roster span { display: block; font-size: .9em; color: var(--ink-80); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat { display: grid; gap: 10px; align-content: start; border-top: 3px solid currentColor; padding-top: 18px; }
.num { font-stretch: 62%; font-weight: 900; font-size: clamp(76px, 9vw, 150px); line-height: .82; font-variant-numeric: tabular-nums; }
.stat p { margin: 0; max-width: 30ch; }
.source { margin-top: clamp(28px, 4vw, 48px); font-size: 14px; color: var(--ink-60); max-width: 80ch; }
.band .source { color: var(--paper-80); }

/* ---------- CTA sheet ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.cta .phone { font-family: var(--display); font-stretch: 70%; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: .03em; line-height: 1; user-select: all; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 20px; padding-block: 22px; border-top: 1px solid var(--ink-25); }
.timeline .when { font-family: var(--hand); font-size: 30px; line-height: 1; }
.timeline p { margin: 6px 0 0; max-width: 58ch; }
@media (max-width: 560px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--ink-15); }
.compare thead th { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 24px; border-bottom: 3px solid var(--ink); }
.compare tbody th { font-family: var(--display); font-stretch: 85%; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; width: 20%; color: var(--ink-80); }

/* ---------- Quiz ---------- */
.quiz { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 860px) { .quiz { grid-template-columns: minmax(0, 1fr); } }
.quiz li { display: grid; gap: 16px; align-content: start; }
.quiz .q { margin: 0; font-size: 1.05em; }
.quiz .choices { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz .choices .btn { flex: 1 1 140px; }
.quiz .choices .btn[aria-pressed="true"] { background: var(--ink) var(--tex-dark); color: var(--paper); }
.quiz .verdict { margin: 0; font-size: .95em; }
.quiz .verdict b { font-family: var(--hand); font-size: 1.5em; font-weight: 700; margin-right: .3em; }
.score { font-family: var(--hand); font-size: 30px; margin: 28px 0 0; min-height: 1.2em; }

/* ---------- Glass slides (skills) ---------- */
.graph {
  background-image: var(--tex), linear-gradient(var(--ink-08) 1px, transparent 1px), linear-gradient(90deg, var(--ink-08) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  background-attachment: scroll, fixed, fixed;
}
.slides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px); }
@media (max-width: 900px) { .slides { grid-template-columns: minmax(0, 1fr); } }
.slide {
  position: relative; overflow: hidden; border-radius: 5px;
  display: grid; grid-template-columns: 118px minmax(0, 1fr);
  /* clear glass: the graph paper shows through, slightly washed */
  background-color: rgb(255 255 255 / .24);
  border: 1px solid rgb(255 255 255 / .85);
  box-shadow: inset 0 0 0 1px var(--ink-08), inset 0 -4px 7px -5px var(--ink-60), inset 2px 0 0 rgb(255 255 255 / .6), 0 2px 3px rgb(27 39 83 / .14), 0 26px 34px -24px rgb(27 39 83 / .6);
}
.slide:nth-child(odd) { transform: rotate(-.6deg); }
.slide:nth-child(even) { transform: rotate(.7deg) translateY(10px); }
.slide::after, .slide::before { content: ""; position: absolute; pointer-events: none; transform: rotate(28deg); background: rgb(255 255 255 / .32); }
.slide::after { top: -60%; left: 52%; width: 15%; height: 220%; }
.slide::before { top: -60%; left: 71%; width: 3.5%; height: 220%; background: rgb(255 255 255 / .4); }
.slide-label {
  background: var(--sheet) var(--tex); border-right: 1px solid var(--ink-25);
  padding: 18px 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  position: relative; z-index: 1;
}
.slide-label .code { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 52px; line-height: .8; }
.slide-label .hand { font-size: 21px; }
.slide-body { padding: 24px 26px 26px; display: grid; gap: 14px; position: relative; z-index: 1; }
.slide-body dl { margin: 0; display: grid; gap: 10px; }
.slide-body dt { font-family: var(--display); font-stretch: 85%; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--ink-60); }
.slide-body dd { margin: 0; }
.slide-body ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 480px) { .slide { grid-template-columns: minmax(0, 1fr); } .slide-label { flex-direction: row; align-items: end; border-right: 0; border-bottom: 1px solid var(--ink-25); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 18px; max-width: 960px; }
.qa { background: var(--sheet) var(--tex); box-shadow: var(--lift); }
.qa summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 22px clamp(20px, 3vw, 34px);
  font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 1.2vw + 13px, 27px); line-height: 1.05;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--hand); font-size: 44px; line-height: .6; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 clamp(20px, 3vw, 34px) 26px; display: grid; gap: 1em; border-top: 1px dashed var(--ink-25); padding-top: 20px; margin-inline: clamp(20px, 3vw, 34px); padding-inline: 0; }
.qa .a p { margin: 0; max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); align-items: start; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-grid .sheet { display: grid; gap: 14px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--ink-15); }
.hours td:last-child { text-align: right; white-space: nowrap; }
.hours tr.today td { font-weight: 600; }
.hours tr.today td:first-child::after { content: "today"; font-family: var(--hand); font-weight: 500; font-size: 1.2em; margin: 0 .6em 0 .4em; }
.status { font-family: var(--hand); font-size: 26px; line-height: 1.1; margin: 0; }
.copy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy-row .val { user-select: all; font-weight: 600; overflow-wrap: anywhere; }
.copy-btn { font-family: var(--hand); font-size: 20px; background: none; border: 0; border-bottom: 1.5px solid var(--ink-60); padding: 0 2px; cursor: pointer; color: var(--ink); line-height: 1.1; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink) var(--tex-dark); color: var(--paper); margin-top: clamp(40px, 6vw, 90px);
  padding-block: clamp(70px, 8vw, 110px) clamp(28px, 4vw, 44px);
  clip-path: polygon(0 12px,4% 3px,9% 10px,15% 2px,21% 9px,27% 1px,33% 8px,40% 3px,46% 11px,52% 2px,58% 9px,64% 3px,70% 10px,76% 1px,82% 8px,88% 3px,94% 10px,100% 4px,100% 100%,0 100%);
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-grid h2 { font-family: var(--display); font-stretch: 85%; font-weight: 650; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; margin: 0 0 12px; color: var(--paper-80); }
.foot-grid p, .foot-grid ul { margin: 0; font-size: 16px; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.foot-brand .brand-word { font-size: 40px; }
.foot-brand .brand-hand { font-size: 26px; color: var(--paper-80); margin-bottom: 14px; }
.foot-hours { font-variant-numeric: tabular-nums; }
.foot-legal { margin-top: 56px; padding-top: 18px; border-top: 1px dashed var(--paper-50); font-size: 13px; color: var(--paper-80); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

/* Next-page link at the bottom of each page */
.next { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; border-top: 3px solid var(--ink); padding-top: 20px; }
.next a { font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 5vw, 72px); line-height: .9; text-decoration: none; }
.next a:hover { text-decoration: underline; text-decoration-thickness: .06em; }

/* ---------- Home hero: the logo as the subject, skills written around it ---------- */
.hero-logo { margin: 0 -2vw 0 0; position: relative; aspect-ratio: 1.3; max-width: 100%; }
.hero-logo .big-logo { position: absolute; left: 4%; top: 14%; width: 92%; height: auto; filter: drop-shadow(0 18px 22px rgb(27 39 83 / .18)); }
.tag-note {
  position: absolute; left: var(--x); top: var(--y); rotate: var(--r);
  font-family: var(--hand); font-weight: 700; font-size: clamp(19px, 1.9vw, 30px); line-height: 1; white-space: nowrap;
  color: var(--ink); text-decoration: none; padding: 2px 8px 4px; z-index: 2;
  background: var(--sheet) var(--tex); box-shadow: 0 6px 12px -8px rgb(27 39 83 / .55);
  transition: transform .15s ease;
}
.tag-note:hover, .tag-note:focus-visible { transform: translateY(-3px) scale(1.04); text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 860px) { .hero-logo { margin: 8px 0 28px; aspect-ratio: 1.15; } .tag-note { font-size: 17px; } }

/* ---------- Centered, interactive navigation (wide screens) ---------- */
@media (min-width: 1201px) {
  .bar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { margin-right: 0; justify-self: start; }
  .bar-end { justify-self: end; }
  .site-nav ul { gap: 2px 6px; justify-content: center; }
  .site-nav a { position: relative; isolation: isolate; padding: 10px 10px; border-bottom: 0; transition: transform .2s ease; }
  .site-nav a::before {
    content: ""; position: absolute; z-index: -1; left: 5px; right: 5px; bottom: 9px; height: .7em;
    background: var(--hi); transform: scaleX(0) skewX(-10deg); transform-origin: left; transition: transform .28s cubic-bezier(.3, .8, .3, 1);
  }
  .site-nav a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--ink);
    transform: scaleX(0); transition: transform .28s ease;
  }
  .site-nav a:hover, .site-nav a:focus-visible { transform: translateY(-2px); }
  .site-nav a:hover::before, .site-nav a:focus-visible::before { transform: scaleX(1) skewX(-10deg); }
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Super Kidboys: the playful voice, used in a few spots only ---------- */
.kid, .display.kid, .step-no, .score {
  font-family: "Super Kidboys", var(--hand);
  font-stretch: normal; font-weight: 400; text-transform: none; letter-spacing: 0;
}
.display.kid { font-size: clamp(30px, 4.4vw, 70px); line-height: 1; }
.teaser.solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.next a { font-size: clamp(28px, 4vw, 56px); }
.teaser input { font-size: clamp(32px, 5vw, 64px); }
.step-no { font-size: 54px; line-height: .9; }
.score { font-size: 26px; }

/* ---------- Reviews carousel ---------- */
.rev-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .rev-grid { grid-template-columns: minmax(0, 1fr); } }
.rev-intro { display: grid; gap: 20px; justify-items: start; }
.rev-intro p { margin: 0; max-width: 40ch; color: var(--paper-80); }
.rev-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 999px; border: 1px solid var(--paper-50);
  font-family: var(--display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px;
}
.rev-badge svg { width: 14px; height: 14px; fill: var(--hi); }
.rev-dots { display: flex; align-items: center; gap: 2px; margin-left: -8px; }
.rev-dots button {
  box-sizing: content-box; width: 10px; height: 10px; padding: 0; border: 8px solid transparent; background-clip: padding-box;
  border-radius: 999px; background-color: var(--paper-50); cursor: pointer; transition: width .35s ease, background-color .35s ease;
}
.rev-dots button[aria-selected="true"] { width: 34px; background-color: var(--paper); }
.rev-all { font-family: var(--hand); font-size: 22px; color: var(--paper); }
.rev-stage { position: relative; display: grid; margin: 0 36px 36px 0; }
.rev-ghost, .rev-card { grid-area: 1 / 1; }
.rev-ghost { background: var(--sheet) var(--tex); }
.rev-ghost.g1 { opacity: .2; transform: translate(18px, 18px) rotate(1.5deg); }
.rev-ghost.g2 { opacity: .1; transform: translate(36px, 36px) rotate(3deg); }
.rev-card {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px;
  background: var(--sheet) var(--tex); color: var(--ink); padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 24px 40px -22px rgb(0 0 0 / .7);
  opacity: 0; transform: translateX(28px) rotate(.6deg); filter: blur(6px); visibility: hidden;
  transition: opacity .6s ease, transform .6s ease, filter .6s ease, visibility 0s linear .6s;
}
.rev-card.on { opacity: 1; transform: rotate(-.8deg); filter: none; visibility: visible; transition: opacity .6s ease, transform .6s ease, filter .6s ease, visibility 0s; }
.rev-card .stars { display: flex; gap: 4px; }
.rev-card .stars svg { width: 22px; height: 22px; fill: var(--hi); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.rev-card blockquote { margin: 0; font-size: clamp(17px, .6vw + 14px, 20px); line-height: 1.55; position: relative; }
.rev-card blockquote::before { content: "\201C"; font-family: var(--display); font-weight: 900; font-size: 70px; line-height: 0; position: absolute; left: -6px; top: 18px; color: var(--ink-15); z-index: -1; }
.rev-foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--ink-15); padding-top: 16px; margin-top: auto; }
.rev-foot strong { display: block; font-weight: 600; }
.rev-foot small { display: block; font-size: 14px; color: var(--ink-60); }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink) var(--tex-dark); color: var(--paper); font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 16px; letter-spacing: .04em; }

/* ---------- Hand-inked map ---------- */
.map-duo { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .map-duo { grid-template-columns: minmax(0, 1fr); } }
.map-sheet { background: var(--sheet) var(--tex); box-shadow: var(--lift); padding: clamp(10px, 1.4vw, 18px); position: relative; transform: rotate(.5deg); }
.sketch-map { display: block; width: 100%; height: auto; }
.sketch-map .bld { fill: url(#hatch); stroke: var(--ink-25); stroke-width: 1.2; }
.sketch-map .svc { stroke: var(--ink-25); stroke-width: 1.6; stroke-dasharray: 6 5; }
.sketch-map .case { stroke: var(--ink); }
.sketch-map .fill { stroke: var(--sheet); }
.sketch-map .case.maj { stroke-width: 24; } .sketch-map .fill.maj { stroke-width: 16; }
.sketch-map .case.sec { stroke-width: 15; } .sketch-map .fill.sec { stroke-width: 9; }
.sketch-map .case.ter { stroke-width: 10; } .sketch-map .fill.ter { stroke-width: 5.5; }
.sketch-map .case.min { stroke-width: 6.5; } .sketch-map .fill.min { stroke-width: 3; }
.sketch-map .road-name { font-family: var(--display); font-stretch: 85%; font-weight: 750; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 7px; }
.sketch-map .hl-blob { fill: var(--hi); mix-blend-mode: multiply; }
.sketch-map .dot { fill: var(--ink); }
.sketch-map .ring { fill: none; stroke: var(--ink); stroke-width: 3; }
.sketch-map .arrow { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.sketch-map .pin-note { font-family: var(--hand); font-weight: 700; font-size: 42px; fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 9px; stroke-linejoin: round; }
.sketch-map .pin-code { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 28px; letter-spacing: .06em; fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 7px; }
.sketch-map .compass path { fill: var(--ink); }
.sketch-map .compass text { font-family: var(--display); font-weight: 800; font-size: 26px; fill: var(--ink); }
.sketch-map .scale path { fill: none; stroke: var(--ink); stroke-width: 3; }
.sketch-map .scale text { font-family: var(--hand); font-size: 26px; fill: var(--ink); }

/* ---------- Dropdown in the nav ---------- */
.has-sub { position: relative; }
.sub-toggle {
  font-family: var(--display); font-stretch: 85%; font-weight: 650; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase;
  background: none; border: 0; color: var(--ink); cursor: pointer; padding: 10px 10px; display: inline-flex; align-items: center; gap: 6px;
}
.sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.has-sub.open .sub-toggle::after, .has-sub:focus-within .sub-toggle::after { transform: rotate(-135deg) translateY(-1px); }
.sub-toggle.current { box-shadow: inset 0 -2px 0 var(--ink); }
.site-nav .sub { list-style: none; margin: 0; padding: 0; }
@media (min-width: 1201px) {
  .site-nav .sub {
    position: absolute; top: 100%; left: 50%; translate: -50% 0; min-width: 210px; z-index: 60;
    display: grid; gap: 0; padding: 10px; background: var(--sheet) var(--tex); box-shadow: var(--lift);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
  .site-nav .sub a { display: block; padding: 10px 12px; white-space: nowrap; }
  .site-nav .sub a::after { bottom: 4px; }
}
@media (max-width: 1200px) {
  .sub-toggle { display: none; }
  .site-nav .sub { display: block; }
  .site-nav .sub li { border-bottom: 1px dashed var(--ink-15); }
}

/* ---------- Photos on the step cards ---------- */
.step-photo { display: block; height: auto; width: calc(100% + 2 * clamp(24px, 3vw, 40px)); max-width: none; margin: calc(-1 * clamp(24px, 3vw, 40px)) calc(-1 * clamp(24px, 3vw, 40px)) 6px; aspect-ratio: 16 / 9; object-fit: cover; }
.panel.sheet { overflow: hidden; }
.panel.sheet.tape { overflow: visible; }
.panel .step-photo + .step-no { margin-top: 6px; }

/* ---------- Booking form ---------- */
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .book { grid-template-columns: minmax(0, 1fr); } }
.form-sheet { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--display); font-stretch: 85%; font-weight: 650; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-80); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--paper) var(--tex);
  border: 0; border-bottom: 2px solid var(--ink-60); padding: 10px 4px 8px; border-radius: 0; width: 100%; min-width: 0;
}
.field textarea { min-height: 96px; resize: vertical; border: 2px solid var(--ink-25); padding: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--sheet); }
.field input:user-invalid, .field select:user-invalid { border-color: #B3261E; }
.field .hint { font-size: 14px; color: var(--ink-60); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); }
.form-status { margin: 0; min-height: 1.4em; font-size: 16px; }
.form-status.ok { font-family: var(--hand); font-size: 24px; }
.form-status.err { color: #B3261E; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Center gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery .print { max-width: none; margin: 0; }
.gallery .print img { aspect-ratio: 3 / 4; object-position: 50% 40%; }
.gallery .print:nth-child(3n+1) { transform: rotate(-1.2deg); }
.gallery .print:nth-child(3n+2) { transform: rotate(.8deg) translateY(14px); }
.gallery .print:nth-child(3n) { transform: rotate(-.4deg); }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 860px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partner {
  min-height: 120px; display: grid; place-items: center; text-align: center; padding: 18px;
  background: var(--sheet) var(--tex); box-shadow: var(--lift);
  font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(18px, 1.6vw, 24px);
}
.partner img { max-width: 80%; max-height: 64px; width: auto; height: auto; }
.partner.slot { background: transparent; box-shadow: none; border: 2px dashed var(--ink-25); color: var(--ink-60); font-family: var(--hand); text-transform: none; font-weight: 500; font-size: 20px; }

.find-on { margin: 22px 0 0; max-width: 70ch; }
.find-on b { font-family: var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Vision, mission, values ---------- */
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 34px); }
@media (max-width: 760px) { .vm { grid-template-columns: minmax(0, 1fr); } }
.vm .sheet { display: grid; gap: 10px; align-content: start; }
.vm ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: minmax(0, 1fr); } }
.value { border-top: 3px solid var(--ink); padding-top: 12px; display: grid; gap: 6px; align-content: start; }
.value h3 { font-size: clamp(18px, 1.2vw + 10px, 22px); }
.value p { margin: 0; font-size: 16px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .founder { grid-template-columns: minmax(0, 1fr); } }
.founder .creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.founder .creds li { padding-bottom: 8px; border-bottom: 1px dashed var(--ink-25); }
.monogram { aspect-ratio: 1; display: grid; place-items: center; background: var(--ink) var(--tex-dark); color: var(--paper); font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(80px, 10vw, 140px); max-width: 320px; }

/* ---------- Specialists ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 34px); }
@media (max-width: 860px) { .team { grid-template-columns: minmax(0, 1fr); } }
.person { display: grid; gap: 10px; align-content: start; }
.person img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 30% 30%; }
.person dl { margin: 0; display: grid; gap: 4px; font-size: 15px; }
.person dt { font-family: var(--display); font-stretch: 85%; font-weight: 650; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); }
.person dd { margin: 0 0 6px; }
.person .tbc { color: var(--ink-60); font-style: normal; }

/* ---------- Research booklet ---------- */
.booklet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .booklet { grid-template-columns: minmax(0, 1fr); } }
/* the booklet as an object on the desk: cover on top of a few loose pages */
.booklet-cover { position: relative; display: block; max-width: 520px; justify-self: center; transform: rotate(1.6deg); transition: transform .25s ease; text-decoration: none; color: var(--ink); }
.booklet-cover::before, .booklet-cover::after { content: ""; position: absolute; inset: 0; background: var(--sheet) var(--tex); box-shadow: 0 1px 2px rgb(27 39 83 / .18); z-index: -1; }
.booklet-cover::before { transform: translate(10px, 8px) rotate(1.5deg); }
.booklet-cover::after { transform: translate(18px, 16px) rotate(3deg); }
.booklet-cover img { display: block; width: 100%; height: auto; box-shadow: 0 2px 3px rgb(27 39 83 / .2), 0 26px 40px -22px rgb(27 39 83 / .6); }
.booklet-cover:hover, .booklet-cover:focus-visible { transform: rotate(0deg) translateY(-6px); }
.booklet-tag { position: absolute; left: 50%; bottom: -20px; translate: -50% 0; background: var(--ink) var(--tex-dark); color: var(--paper); font-family: var(--display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: 14px; padding: .8em 1.2em; white-space: nowrap; box-shadow: 0 10px 16px -10px rgb(0 0 0 / .6); }
.booklet { isolation: isolate; }

/* ---------- Who we help: symptom lists ---------- */
.symptoms { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.symptoms li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; }
.symptoms li::before { content: ""; width: 10px; height: 10px; margin-top: .55em; border: 2px solid var(--ink); border-radius: 50%; }
.panel-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 35%; display: block; }

/* ---------- Social icons ---------- */
.foot-grid .social { display: flex; gap: 10px; margin-top: 8px; }
.foot-grid .social a { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--paper); display: grid; place-items: center; transition: background .15s, color .15s; }
.foot-grid .social a:hover { background: var(--paper); color: var(--ink); }
.foot-grid .social svg { width: 22px; height: 22px; }
.social-row { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.social-row svg { width: 38px; height: 38px; padding: 8px; border: 2px solid var(--ink); border-radius: 50%; flex: none; }
.social-row:hover span { text-decoration: underline; }

/* ---------- Photo print taped to the page ---------- */
.print { margin: 8px 0 0; max-width: 300px; background: var(--sheet) var(--tex); padding: 12px 12px 14px; box-shadow: var(--lift); position: relative; }
.print img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 72%; }
.print figcaption { font-family: var(--hand); font-size: 20px; line-height: 1.1; margin-top: 10px; color: var(--ink-80); }

/* ---------- Loading cover: the logo revealed through glass ---------- */
html.cover-on { overflow: hidden; }
html.cover-on::before { content: ""; position: fixed; inset: 0; z-index: 999; background: #F3F2EE; }
#bb-cover { position: fixed; inset: 0; z-index: 1000; background: #F3F2EE; transition: opacity .6s ease, transform .6s ease; }
#bb-cover.out { opacity: 0; transform: scale(1.03); pointer-events: none; }
#bb-cover .glass { position: absolute; inset: 0; }
#bb-cover .skip {
  position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 2;
  font-family: var(--display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
  background: transparent; border: 2px solid #1B2753; color: #1B2753; padding: .7em 1.1em; cursor: pointer;
}
#bb-cover .still { position: absolute; inset: 0; margin: auto; width: min(360px, 60vw); height: auto; }

/* ---------- Logo on paper (footer sticker) ---------- */
.foot-logo { display: inline-block; background: var(--sheet) var(--tex); padding: 12px 16px; transform: rotate(-2deg); box-shadow: 0 10px 18px -10px rgb(0 0 0 / .5); margin-bottom: 14px; }
.foot-logo img { height: 74px; width: auto; display: block; }

/* ---------- Tabs: the main interaction pattern ---------- */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  font-family: var(--display); font-stretch: 80%; font-weight: 750; text-transform: uppercase; letter-spacing: .06em;
  font-size: 14px; line-height: 1; padding: .85em 1.1em; min-height: 44px;
  color: var(--ink); background: transparent; border: 2px solid var(--ink); cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.tab:hover { transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--ink) var(--tex-dark); color: var(--paper); }
.band .tab { color: var(--paper); border-color: var(--paper); }
.band .tab[aria-selected="true"] { background: var(--paper) var(--tex); color: var(--ink); }
.tab.code { font-stretch: 62%; font-weight: 900; font-size: 26px; padding: .45em .7em; letter-spacing: .02em; }
.panel { animation: drop .28s ease; }
@keyframes drop { from { transform: translateY(6px) rotate(-.4deg); } to { transform: none; } }
.panel.sheet { max-width: 720px; display: grid; gap: 12px; }
.panel p { margin: 0; }

/* Interactive brain labels */
.spot { cursor: pointer; }
.spot text { transition: font-size .15s; }
.spot:hover text, .spot:focus-visible text { text-decoration: underline; text-decoration-thickness: 3px; }
.spot:focus { outline: none; }
.brain-note { font-family: var(--hand); font-size: 26px; line-height: 1.15; min-height: 2.4em; margin: 0; max-width: 26ch; }

/* Compact split used on short pages */
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* One-at-a-time quiz */
.quiz.one { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.quiz .next-q { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
