/* shell.css — the portfolio chrome that holds the ten worlds.
 *
 * Art direction: illustrated and bright. Lavender/periwinkle field, a rich
 * purple primary, soft pink and warm yellow as the two signal colours, cloud
 * white for reading surfaces, and a deep violet ink for type.
 *
 * These tokens are the SHELL's. Each of the ten worlds owns its own local
 * design system and must never inherit them — the whole argument of the site
 * is that one palette is not a strategy. The only shared value crossing the
 * boundary is `--accent`, which each card sets from the world manifest.
 *
 * Shape language is deliberately not card-and-pill SaaS: sections are full
 * bleed sheets, rules are drawn as ink lines, labels are sticker-like cut
 * shapes, and the world list is an editorial directory rather than a grid of
 * boxes. */

:root {
  /* shell palette */
  --lav:        #EFE7F7;
  --lav-deep:   #DCCFF0;
  --peri:       #B9C6F2;
  --purple:     #6B4FD8;
  --purple-dk:  #251B3D;
  --purple-mid: #4A3684;
  --pink:       #F58BB4;
  --pink-soft:  #FBD3E2;
  --yellow:     #F7B267;
  --cream:      #FFF8EE;
  --sky:        #CFE4F5;
  --ink:        #251B3D;
  --ink-soft:   #55456F;
  --line:       rgba(37, 27, 61, .18);
  --line-soft:  rgba(37, 27, 61, .10);

  /* type */
  --sans: ui-sans-serif, system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  /* geometry */
  --sheet: clamp(1.15rem, 4.5vw, 4.5rem);
  --measure: 62ch;
  --edge: 2px;
  --lift: 0 2px 0 rgba(37, 27, 61, .16), 0 14px 34px -22px rgba(37, 27, 61, .5);
  --lift-hot: 0 3px 0 rgba(37, 27, 61, .22), 0 22px 44px -24px rgba(37, 27, 61, .55);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  /* the painted field: no flat fill, per the art direction */
  background-color: var(--lav);
  background-image:
    radial-gradient(58rem 34rem at 78% -8%, rgba(245, 139, 180, .30), transparent 62%),
    radial-gradient(46rem 30rem at 8% 4%, rgba(247, 178, 103, .22), transparent 60%),
    radial-gradient(52rem 40rem at 50% 108%, rgba(107, 79, 216, .18), transparent 64%),
    linear-gradient(178deg, #F4EEFB 0%, #EFE7F7 38%, #E7DDF5 72%, #DED3F0 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.6;
  overflow-x: hidden;
  /* nothing decorative may cause sideways scroll, at any width */
  max-width: 100%;
}

img, svg { max-width: 100%; height: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 90;
  transform: translateY(-180%);
  padding: .7rem 1rem; border: var(--edge) solid var(--ink); border-radius: 4px;
  background: var(--cream); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.skip:focus-visible { transform: none; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* every world link declares its own accent */
:where(a, .card, .exp):focus-visible { outline-color: var(--accent, var(--purple)); }

/* ══ buttons & sticker labels ══════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .78rem 1.4rem;
  border: var(--edge) solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 750;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(37, 27, 61, .2);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1),
              box-shadow .22s cubic-bezier(.2, .8, .3, 1),
              background-color .22s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(37, 27, 61, .22); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(37, 27, 61, .24); }

.btn--primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple-dk);
  box-shadow: 0 3px 0 var(--purple-dk);
}
.btn--primary:hover { background: var(--purple-mid); }

kbd {
  display: inline-block; min-width: 1.6em; padding: .1em .35em;
  border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: 5px;
  background: var(--cream);
  font: 600 .82em/1.4 var(--mono);
  text-align: center;
}

/* ══ topbar ═══════════════════════════════════════════════════════════════ */

.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .7rem var(--sheet);
  border-bottom: var(--edge) solid var(--ink);
  background: rgba(247, 243, 253, .86);
  backdrop-filter: blur(10px) saturate(1.2);
}

.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-right: auto;
  color: var(--ink);
  font-weight: 800; font-size: .95rem; letter-spacing: -.015em;
  text-decoration: none;
}
.brand__mark {
  width: 18px; height: 18px; flex: none;
  border: var(--edge) solid var(--ink); border-radius: 5px;
  background: linear-gradient(150deg, var(--pink) 0 48%, var(--yellow) 48% 100%);
  box-shadow: 2px 2px 0 rgba(37, 27, 61, .25);
}
.brand:hover .brand__mark { background: linear-gradient(150deg, var(--yellow) 0 48%, var(--pink) 48% 100%); }

.menu-btn {
  display: none;
  align-items: center; gap: .5rem;
  padding: .5rem .85rem;
  border: var(--edge) solid var(--ink); border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
}
.menu-btn__bars { display: grid; gap: 3px; }
.menu-btn__bars i {
  display: block; width: 15px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .24s ease, opacity .18s ease;
}
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .35rem; }
.nav__link {
  padding: .42rem .7rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: .88rem; font-weight: 650; letter-spacing: .005em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.nav__link:hover { background: var(--purple); color: #fff; }
.nav__link[aria-current="true"] { background: var(--purple-dk); color: #fff; }

@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  .nav {
    flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding-top: .5rem;
  }
  /* without JS the drawer never collapses, so the links stay visible as a
     plain list rather than being hidden behind a dead button */
  .nav[data-collapsible="true"] { display: none; }
  .nav[data-collapsible="true"][data-open="true"] { display: flex; }
  .nav__link { padding: .7rem .4rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1rem; }
  .nav__link:hover { background: transparent; color: var(--purple); }
}

/* ══ hero mount ════════════════════════════════════════════════════════════ */
/* hero.css owns everything inside .hero. The shell only guarantees the
   section exists and that nothing after it floats over it. */
.hero { position: relative; z-index: 1; }

/* ══ the statement — the page's actual headline ════════════════════════════ */

.statement {
  /* positioned so the weather layer inside it is clipped by this box and
     cannot contribute a pixel of width to the page */
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 9vw, 7rem) var(--sheet) clamp(2.5rem, 7vw, 5rem);
  border-top: var(--edge) solid var(--ink);
  border-bottom: var(--edge) solid var(--ink);
  background:
    radial-gradient(40rem 22rem at 88% 10%, rgba(247, 178, 103, .3), transparent 60%),
    linear-gradient(180deg, var(--cream), #FDF2F7 55%, var(--lav-deep));
}

.statement__kicker {
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .95rem;
  border: var(--edge) solid var(--ink); border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 rgba(37, 27, 61, .28);
  font: 800 .78rem/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
}

.statement__line {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  max-width: 20ch;
  font-size: clamp(2.4rem, 8.6vw, 6.6rem);
  line-height: .95;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
}
.statement__line em {
  font-family: var(--serif);
  font-style: italic; font-weight: 600;
  color: var(--purple);
  /* the last line of the headline sits on a hand-drawn underline */
  background-image: linear-gradient(transparent 78%, rgba(245, 139, 180, .85) 78% 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .06em;
}

.statement__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 82rem;
}
.statement__body p { margin: 0; max-width: var(--measure); }
.statement__body p + p { margin-top: 1rem; }
.statement__body em { font-family: var(--serif); font-style: italic; }
.statement__cta {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-top: 1.75rem !important;
}

/* the cloud field mounts here; clipped by the section and behind every word,
   so a silhouette can never sit on top of the headline */
.statement__weather {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.statement > *:not(.statement__weather) { position: relative; z-index: 1; }

/* ══ shared section furniture ══════════════════════════════════════════════ */

section[id] { scroll-margin-top: 5rem; }

.sec-head {
  display: grid; gap: .9rem;
  max-width: 72rem;
  margin-bottom: clamp(1.8rem, 5vw, 3.2rem);
}

@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem; align-items: end; }
}

.sec-head__h {
  margin: 0;
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 800;
}
.sec-head__note {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

/* ══ the ten worlds — an editorial directory, not a card grid ══════════════ */

.worlds { padding: clamp(3rem, 8vw, 6rem) var(--sheet); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--edge) solid var(--ink);
}

.card {
  position: relative;
  border-bottom: var(--edge) solid var(--ink);
  border-right: 1px solid var(--line);
  /* the grid's own rules must never push the page wide */
  min-width: 0;
}
.cards > .card:nth-child(5n) { border-right: 0; }
@media (max-width: 719px) {
  .card { border-right: 0; }
  .cards > .card:nth-child(5n) { border-right: 0; }
}

.card::before {
  /* a hairline of the world's own accent down the leading edge */
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent, var(--purple));
  transform: scaleY(.16);
  transform-origin: top;
  transition: transform .42s cubic-bezier(.2, .8, .3, 1);
}

.card__hit {
  display: grid; gap: .3rem;
  height: 100%;
  padding: clamp(1.1rem, 2.4vw, 1.7rem) clamp(1.1rem, 2.4vw, 1.6rem) clamp(1.3rem, 2.6vw, 1.8rem) 1.6rem;
  color: inherit;
  text-decoration: none;
  transition: background-color .28s ease;
}
.card__hit:hover { background: color-mix(in srgb, var(--accent, var(--purple)) 11%, transparent); }
.card:hover::before, .card__hit:focus-visible::before, .card:focus-within::before { transform: scaleY(1); }

.card__num {
  font: 700 .74rem/1 var(--mono);
  letter-spacing: .18em;
  color: var(--accent, var(--purple));
}

.card__name {
  font-size: clamp(1.22rem, 2.6vw, 1.55rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
}

.card__trade {
  font-size: .82rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft);
}

.card__line {
  margin-top: .3rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.02rem; line-height: 1.45;
  color: var(--ink-soft);
}

.card__why {
  margin-top: .7rem; padding-top: .7rem;
  border-top: 1px dashed var(--line);
  font-size: .93rem; line-height: 1.5;
}
.card__why b { font-weight: 800; }

.card__go {
  margin-top: .8rem;
  font-size: .85rem; font-weight: 750; letter-spacing: .04em;
  color: var(--accent, var(--purple));
}

.cards-fallback {
  padding: 1.4rem;
  border: var(--edge) dashed var(--ink); border-radius: 6px;
  background: var(--cream);
}
.cards-fallback p { margin: 0 0 .9rem; max-width: 52ch; }
.cards-fallback p:last-child { margin-bottom: 0; }

.worlds__foot {
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  max-width: 58ch;
  color: var(--ink-soft);
}
.worlds__foot a { color: var(--purple); font-weight: 750; }

/* ══ works os teaser — drawn in CSS, so it survives with no script ═════════ */

.os-teaser {
  padding: clamp(3rem, 8vw, 6rem) var(--sheet);
  border-top: var(--edge) solid var(--ink);
  background: linear-gradient(180deg, var(--purple-dk), #32255A 62%, #3B2C68);
  color: var(--cream);
}
.os-teaser .sec-head__note { color: rgba(255, 248, 238, .76); }

.desk {
  max-width: 62rem;
  border: var(--edge) solid #0E0A18;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, .8);
}

.desk__bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem .75rem;
  border-bottom: var(--edge) solid #0E0A18;
  background: #F3EAFB;
}
.desk__bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9B7E0; }
.desk__zone {
  margin-left: .5rem;
  font: 700 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--purple-mid);
}

.desk__wall {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 15rem;
  background: linear-gradient(180deg, #6C5BB4, #8C79CE 52%, #A88FDD);
  isolation: isolate;
}
.desk__hill {
  position: absolute; left: -10%; right: -10%; bottom: 0;
  height: 58%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.desk__hill--far { bottom: 12%; background: rgba(58, 44, 106, .45); }
.desk__hill--near { height: 40%; background: rgba(37, 27, 61, .62); }

.desk__app {
  position: absolute;
  width: clamp(24px, 5.4%, 46px); aspect-ratio: 3 / 4;
  border: 1.5px solid #0E0A18; border-radius: 7px;
  background: rgba(255, 248, 238, .92);
  box-shadow: 0 3px 0 rgba(14, 10, 24, .5);
}
/* ten icons in a 5×2 arrangement, each carrying its world's own colour so the
   teaser never implies one shared palette */
.desk__app--1  { left: 8%;  top: 12%; background: #EFE7FF; }
.desk__app--2  { left: 22%; top: 8%;  background: #E6EFDD; }
.desk__app--3  { left: 36%; top: 13%; background: #FFD9EC; }
.desk__app--4  { left: 50%; top: 7%;  background: #D6EEF7; }
.desk__app--5  { left: 64%; top: 12%; background: #E4E0F2; }
.desk__app--6  { left: 78%; top: 9%;  background: #F6DDCB; }
.desk__app--7  { left: 14%; top: 40%; background: #F1E2D2; }
.desk__app--8  { left: 28%; top: 44%; background: #E2E4FA; }
.desk__app--9  { left: 58%; top: 42%; background: #FBECC9; }
.desk__app--10 { left: 72%; top: 45%; background: #E8E1FB; }

.desk__win {
  position: absolute;
  left: 34%; top: 26%;
  width: 40%; height: 52%;
  display: grid; grid-template-rows: auto 1fr;
  border: var(--edge) solid #0E0A18; border-radius: 8px; overflow: hidden;
  background: var(--cream);
  box-shadow: 0 16px 34px -14px rgba(14, 10, 24, .7);
}
.desk__win-bar { display: block; height: 14px; background: #F7B267; border-bottom: 1.5px solid #0E0A18; }
.desk__win-body {
  display: block;
  background:
    linear-gradient(180deg, #FFF3DE 0 38%, transparent 38%),
    linear-gradient(160deg, #6D5BD0 0 46%, #F28F86 46% 70%, #25213A 70% 100%);
}

.os-teaser__go {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem;
  margin: clamp(1.5rem, 4vw, 2.2rem) 0 0;
}
.os-teaser__hint { color: rgba(255, 248, 238, .7); font-size: .92rem; }
.os-teaser kbd { border-color: rgba(255, 248, 238, .3); background: rgba(255, 248, 238, .12); color: var(--cream); }

/* ══ how they're made ══════════════════════════════════════════════════════ */

.made {
  padding: clamp(3rem, 8vw, 6rem) var(--sheet);
  border-top: var(--edge) solid var(--ink);
  background: linear-gradient(180deg, var(--cream), var(--lav));
}

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rule {
  position: relative;
  padding-top: 1.15rem;
  border-top: var(--edge) solid var(--ink);
}
.rule__n {
  position: absolute; top: 1.1rem; right: 0;
  font: 700 .8rem/1 var(--mono); letter-spacing: .14em;
  color: var(--purple);
  text-transform: lowercase;
}
.rule__h {
  margin: 0 0 .5rem;
  max-width: 22ch;
  font-size: clamp(1.1rem, 2.2vw, 1.32rem);
  line-height: 1.16; letter-spacing: -.015em; font-weight: 800;
}
.rule p { margin: 0; max-width: 46ch; color: var(--ink-soft); font-size: .97rem; }

/* ══ what this person can make ════════════════════════════════════════════ */

.canmake {
  padding: clamp(3rem, 8vw, 6rem) var(--sheet);
  border-top: var(--edge) solid var(--ink);
  background:
    radial-gradient(34rem 24rem at 12% 0%, rgba(245, 139, 180, .22), transparent 62%),
    linear-gradient(180deg, var(--lav), var(--peri) 120%);
}

.cans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.2rem, 2.6vw, 1.8rem);
  margin: 0; padding: 0;
  list-style: none;
}

.can {
  display: grid; gap: .5rem; align-content: start;
  padding: 1.3rem 1.35rem 1.15rem;
  border: var(--edge) solid var(--ink); border-radius: 10px;
  background: var(--cream);
  box-shadow: var(--lift);
}
.can__h { margin: 0; font-size: 1.12rem; line-height: 1.18; letter-spacing: -.015em; font-weight: 800; }
.can p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.can__ev {
  margin-top: .3rem !important;
  padding-top: .55rem;
  border-top: 1px dashed var(--line);
  font: 700 .74rem/1.35 var(--mono) !important;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple) !important;
}

/* ══ experiments ══════════════════════════════════════════════════════════ */

.experiments {
  padding: clamp(3rem, 8vw, 6rem) var(--sheet);
  border-top: var(--edge) solid var(--ink);
  background: linear-gradient(180deg, var(--peri), var(--cream));
}

.exps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
  border-top: var(--edge) solid var(--ink);
}
.exp { border-bottom: var(--edge) solid var(--ink); border-right: 1px solid var(--line); }
@media (max-width: 719px) { .exp { border-right: 0; } }

.exp__hit {
  display: grid; gap: .35rem;
  height: 100%;
  padding: clamp(1.1rem, 2.4vw, 1.6rem) clamp(1.1rem, 2.4vw, 1.5rem);
  color: inherit; text-decoration: none;
  transition: background-color .26s ease;
}
.exp:nth-child(odd) .exp__hit:hover { background: rgba(247, 178, 103, .3); }
.exp:nth-child(even) .exp__hit:hover { background: rgba(245, 139, 180, .26); }

.exp__what {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: .22em;
  text-underline-offset: .16em;
}
.exp__where { font-size: .92rem; color: var(--ink-soft); max-width: 42ch; }

/* ══ about ════════════════════════════════════════════════════════════════ */

.about {
  padding: clamp(3rem, 8vw, 6rem) var(--sheet);
  border-top: var(--edge) solid var(--ink);
  background: var(--cream);
}

.about__h {
  margin: 0 0 clamp(1.4rem, 4vw, 2.2rem);
  max-width: 18ch;
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  line-height: 1.02; letter-spacing: -.03em; font-weight: 800;
}

.about__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: clamp(1.1rem, 3vw, 2.6rem);
}
.about__cols p { margin: 0; max-width: var(--measure); }
.about__name {
  display: block; margin-bottom: .3rem;
  font-size: 1.05em; font-weight: 800;
}

.about__words {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin: clamp(1.8rem, 4vw, 2.6rem) 0 0;
}
/* sticker words: cut shapes, not pills in a row */
.about__words span {
  padding: .42rem 1.05rem;
  border: var(--edge) solid var(--ink);
  border-radius: 4px 14px 5px 12px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 rgba(37, 27, 61, .25);
  font-weight: 800; letter-spacing: .02em;
}
.about__words span:nth-child(2) { background: var(--pink); transform: rotate(-1.6deg); }
.about__words span:nth-child(3) { background: var(--lav-deep); transform: rotate(1.2deg); }

/* the closing scene (T4Footer) sits below; it paints its own background */

/* ══ reveal on scroll ═════════════════════════════════════════════════════ */
/* Applied by js/shell.js only when motion is welcome, and the reveal state is
   fully legible without it: with no script nothing is hidden. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1);
}
[data-reveal="in"] { opacity: 1; transform: none; }

/* ══ narrow widths ════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  :root { --edge: 1.5px; }
  .statement__line { letter-spacing: -.028em; }
  .card__hit { padding-left: 1.35rem; }
  .desk__wall { min-height: 12rem; }
}

/* ══ reduced motion: nothing moves, nothing is left invisible ═════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1 !important; transform: none !important; }

  .card::before { transform: scaleY(1); }
  .card:hover .card__hit,
  .exp__hit:hover { background-color: transparent; }
  .btn:hover, .btn:active { transform: none; }
  .about__words span:nth-child(2),
  .about__words span:nth-child(3) { transform: none; }
}
