/* Hallmark · genre: atmospheric · macrostructure: bespoke (the word in metal, then prints) · theme: custom, studied from the Kokoro app
 * paper: #000 night + #f3e3c3 print paper · accent: ember #f07528 (orb light, "you, now") · display: Avenir Next 200 / Nunito Sans 200 + Gloock for the programs gallery
 * nav: N9 edge-aligned · footer: Ft5 statement · enrichment: live liquid-metal wordmark and k (Paper shaders) + real app captures + real program covers
 * pre-emit critique: P5 H4 E5 S5 R4 V5 */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scrollbar-color: var(--color-ash) var(--color-night); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-night);
  color: var(--color-pearl);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--color-ember); color: var(--color-night); }
:focus-visible { outline: 2px solid var(--color-pearl); outline-offset: 4px; border-radius: 6px; }

.skip {
  position: absolute; left: var(--gutter); top: var(--space-md); z-index: 30;
  padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill);
  background: var(--color-pearl); color: var(--color-night); font-size: var(--text-small); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page-max)); margin-inline: auto; }

/* ---------- top bar (N9: two edges, nothing in the middle) ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--space-lg) + env(safe-area-inset-top, 0px)) var(--gutter) 0;
}
.wordmark { font-size: 1.375rem; font-weight: 400; letter-spacing: -0.012em; line-height: 1; text-decoration: none; }
.top-get {
  font-size: var(--text-small); font-weight: 500; text-decoration: none; color: var(--color-pearl-soft);
  padding: var(--space-xs) 0; transition: color var(--dur-short) var(--ease-out);
}
.top-get:hover { color: var(--color-pearl); }

/* ---------- hero: the wordmark in liquid metal, then one sentence ---------- */
.top--home { justify-content: flex-end; }
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--space-3xl) + env(safe-area-inset-top, 0px)) var(--gutter) var(--space-2xl);
}
/* the texture keeps air around the letters (10.8% above and below, 4.2% at the sides); the margins take it back */
.kmetal.kmetal--word {
  width: min(100vw - 2 * var(--gutter) + 8vw, 72rem, 165svh);
  aspect-ratio: 3200 / 1228;
  margin-block: -2.5% -1%;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 40rem; }
.hero-title {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.5rem);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero-title .line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; white-space: nowrap; }
.hero-title .line > span { display: block; }
.hero-sub {
  margin-top: var(--space-md);
  max-width: 28rem;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-pearl-soft);
  text-wrap: balance;
}
.get { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.hero .get { justify-content: center; flex-direction: column; gap: var(--space-sm); }
.badge { display: inline-block; border-radius: 10px; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.badge img { height: 3.25rem; width: auto; }
.badge:hover { opacity: 0.86; }
.badge:active { transform: scale(0.97); }
.get-note { font-size: var(--text-small); color: var(--color-ash); }

@media (min-width: 60rem) {
  .hero { padding-block: var(--space-4xl) var(--space-3xl); }
  .hero-sub { margin-top: var(--space-lg); }
  .hero .get { margin-top: var(--space-xl); }
}

/* the one load sequence: a light sweeps across the metal word, then the sentence rises under it */
@media (prefers-reduced-motion: no-preference) {
  .js .kmetal--word:not(.is-shown) {
    -webkit-mask: linear-gradient(100deg, #000 0 38%, transparent 62% 100%) 100% 0 / 280% 100% no-repeat;
    mask: linear-gradient(100deg, #000 0 38%, transparent 62% 100%) 100% 0 / 280% 100% no-repeat;
  }
  .js .is-ready .kmetal--word:not(.is-shown) { animation: word-in 2.6s var(--ease-out) 0.15s both; }
  .js .hero-title .line > span { transform: translateY(105%); }
  .js .hero-sub, .js .hero .get { opacity: 0; }
  .js .is-ready .hero-title .line > span { transform: none; transition: transform 1.2s var(--ease-out); }
  .js .is-ready .hero-title .line:nth-child(1) > span { transition-delay: 0.9s; }
  .js .is-ready .hero-title .line:nth-child(2) > span { transition-delay: 1.02s; }
  .js .is-ready .hero-sub { opacity: 1; transition: opacity 0.9s var(--ease-out) 1.5s; }
  .js .is-ready .hero .get { opacity: 1; transition: opacity 0.9s var(--ease-out) 1.65s; }
}
@keyframes word-in { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* ---------- say what's on your mind ---------- */
.say { padding-block: var(--space-section); }
.say-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3xl); align-items: center; }
.section-title, .close-line, .study-line, .made-title, .guide-name { overflow-wrap: anywhere; min-width: 0; }
.section-title {
  font-size: var(--text-heading);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-lead { margin-top: var(--space-md); max-width: 34rem; font-size: var(--text-lead); color: var(--color-pearl-soft); text-wrap: pretty; }

.exchange { margin-top: var(--space-3xl); position: relative; padding-left: var(--space-xl); }
.exchange::before { /* the making line */
  content: ""; position: absolute; left: 0; top: 0.45em; bottom: 0.6em; width: 1px;
  background: linear-gradient(var(--color-pearl-soft), var(--color-ember));
  transform-origin: top; transform: scaleY(var(--made, 1));
  transition: transform var(--dur-slow) var(--ease-in-out);
}
.thought {
  font-size: var(--text-thought);
  font-weight: 200;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 19ch;
  min-height: calc(3 * 1.18em);
  text-wrap: pretty;
}
.thought-caret {
  display: inline-block; width: 2px; height: 0.95em; margin-left: 0.06em; vertical-align: -0.12em;
  background: var(--color-ember);
  animation: blink 1.05s steps(1) infinite;
}
.is-done .thought-caret { opacity: 0; animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.made { margin-top: var(--space-2xl); }
.made-title { font-size: var(--text-display); font-weight: 200; line-height: 1.04; letter-spacing: -0.035em; }
.made-meta { margin-top: var(--space-sm); color: var(--color-pearl-soft); max-width: 30rem; }

.js .exchange:not(.is-done) { --made: 0; }
.js .exchange:not(.is-done) .made { opacity: 0; transform: translateY(0.75rem); }
.made { transition: opacity var(--dur-long) var(--ease-out) 0.5s, transform var(--dur-long) var(--ease-out) 0.5s; }

.screen {
  position: relative;
  justify-self: center;
  width: min(20.5rem, 78vw);
  aspect-ratio: 804 / 1748;
  border-radius: 13.7% / 6.3%;
  overflow: hidden;
  background: var(--color-night-raised);
  box-shadow: var(--shadow-screen);
}
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.9s var(--ease-in-out); }
.screen .screen-after { opacity: 0; }
.screen.is-done .screen-after { opacity: 1; }
.screen.is-done .screen-before { opacity: 0; }
.screen-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (min-width: 60rem) {
  .say-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); }
  .screen { width: min(22rem, 100%); }
}

/* ---------- guides ---------- */
.guides { padding-block: 0 var(--space-section); }
.guide-list { margin-top: var(--space-3xl); border-top: 1px solid var(--color-hairline); }
.guide { position: relative; border-bottom: 1px solid var(--color-hairline); }
.guide-error { color: var(--color-ember-light); }
.guide-play {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name icon" "desc icon";
  align-items: center;
  column-gap: var(--space-lg);
  row-gap: var(--space-2xs);
  padding: var(--space-xl) 0 var(--space-xl);
  text-align: left;
  border-radius: 0;
  transition: opacity var(--dur-long) var(--ease-out);
}
.guide-play:focus-visible { outline-offset: -2px; border-radius: 8px; }
.guide-name {
  grid-area: name;
  font-size: var(--text-name);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color var(--dur-long) var(--ease-out);
}
.guide-desc { grid-area: desc; color: var(--color-pearl-soft); font-size: var(--text-body); }
.guide-desc span { color: var(--color-ash); }
.guide-icon {
  grid-area: icon;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--color-hairline);
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.guide-icon svg { width: 1.125rem; height: 1.125rem; }
.guide-icon .i-pause, .guide-icon .i-wait { display: none; }
.guide-play:hover .guide-icon { box-shadow: inset 0 0 0 1px var(--color-pearl-soft); }
.guide-play:active .guide-icon { transform: scale(0.94); }
.guide.is-playing .guide-name { color: var(--guide); }
.guide.is-playing .guide-icon { background: var(--guide); color: var(--color-night); box-shadow: none; }
.guide.is-playing .i-play, .guide.is-loading .i-play { display: none; }
.guide.is-playing .i-pause { display: block; }
.guide.is-loading .i-wait { display: block; }
.guide-list.has-playing .guide:not(.is-playing) .guide-play { opacity: 0.42; }
.guide-list.has-playing .guide:not(.is-playing) .guide-play:hover { opacity: 0.7; }
/* the divider under each guide is a line; while that guide speaks, it draws her voice */
.guide-wave { position: absolute; left: 0; right: 0; bottom: -24px; width: 100%; height: 48px; pointer-events: none; }
/* hover: the line under a guide draws in her colour, a hint that a voice lives here */
@media (hover: hover) and (pointer: fine) {
  .guide::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--guide); transform: scaleX(0); transform-origin: left;
    transition: transform 380ms var(--ease-out); pointer-events: none;
  }
  .guide:hover::after, .guide:focus-within::after { transform: scaleX(1); }
  .guide.is-playing::after { opacity: 0; }
}
.guides-note { margin-top: var(--space-xl); font-size: var(--text-small); color: var(--color-ash); }

@media (min-width: 48rem) {
  .guide-play {
    grid-template-columns: minmax(0, 1fr) minmax(0, 17rem) auto;
    grid-template-areas: "name desc icon";
    column-gap: var(--space-2xl);
    padding-block: var(--space-2xl);
  }
}

/* ---------- programs: the gallery. Prints under one warm light, on a sheet laid over the night ---------- */
.programs {
  position: relative;
  z-index: 2;
  isolation: isolate;
  color: var(--color-pearl);
  padding-block: var(--space-section);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background:
    radial-gradient(110% 60% at 50% 0%, rgb(243 227 195 / 0.085), transparent 72%),
    radial-gradient(70% 50% at 50% 100%, rgb(240 117 40 / 0.035), transparent 70%),
    var(--color-gallery);
  box-shadow: inset 0 1px 0 rgb(243 227 195 / 0.16), 0 -40px 80px -20px rgb(0 0 0 / 0.9);
}
/* fine grain, so the dark reads as a surface and not a screen */
.programs::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .96 0 0 0 0 .9 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.guides { transform-origin: 50% 100%; will-change: transform, opacity; }

.programs-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.kicker {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: var(--text-tiny); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-ash);
}
.kicker::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: 0.6; }
.programs-title {
  font-family: var(--font-print);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.4rem + 5vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--color-paper);
  max-width: 11ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.programs .section-lead { margin-top: 0; max-width: 26rem; }

/* each cover prints in from the top, once, in a short stagger; the frame is there first, waiting */
.program-list.is-waiting .program img { clip-path: inset(0 0 100% 0); transform: scale(1.06); }
.program-list.is-printed .program img {
  clip-path: inset(0 0 0 0); transform: none;
  transition: clip-path 1.1s var(--ease-out), transform 1.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.program-list {
  counter-reset: program;
  margin-top: var(--space-4xl);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(76vw, 21rem);
  gap: var(--space-xl);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: var(--space-md) var(--gutter) var(--space-xl);
  margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: none;
}
.program-list::-webkit-scrollbar { display: none; }
.program { counter-increment: program; scroll-snap-align: start; }
.program-cover {
  position: relative;
  border-radius: var(--radius-print);
  background: rgb(243 227 195 / 0.03);
  box-shadow:
    0 0 0 1px rgb(243 227 195 / 0.1),
    0 2px 3px rgb(0 0 0 / 0.5),
    0 34px 60px -26px rgb(0 0 0 / 1);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 1.1s var(--ease-out);
}
.program-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: inherit; }
/* a laminated print: a soft band of light follows the hand across it */
.program-cover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(70% 70% at var(--mx, 50%) var(--my, 0%), rgb(255 250 238 / 0.32), transparent 65%),
    linear-gradient(115deg, transparent calc(var(--mx, 50%) - 32%), rgb(255 255 255 / 0.16) var(--mx, 50%), transparent calc(var(--mx, 50%) + 32%));
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.program-name::before {
  content: counter(program, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-tiny);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-ash);
  font-variant-numeric: tabular-nums;
}
.program-name { margin-top: var(--space-lg); font-family: var(--font-print); font-weight: 400; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.005em; color: var(--color-paper); }
.program-promise { margin-top: var(--space-xs); color: var(--color-pearl-soft); text-wrap: pretty; }
.program-time {
  margin-top: var(--space-md); padding-top: var(--space-sm);
  border-top: 1px solid var(--color-hairline);
  font-size: var(--text-tiny); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-ash); font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .program:hover .program-cover { transition-duration: 0.35s; }
  .program:hover .program-cover::after { opacity: 1; }
}

@media (min-width: 60rem) {
  .programs-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-2xl); align-items: end; }
  .programs-head .kicker { grid-column: 1 / -1; }
  .programs .section-lead { justify-self: end; padding-bottom: 0.6rem; }
  .program-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    column-gap: var(--space-2xl);
    row-gap: var(--space-4xl);
    overflow: visible;
    padding: 0;
    margin-inline: 0;
  }
  /* a hung wall, not a table: every other print sits lower */
  .program:nth-child(even) { margin-top: var(--space-3xl); }
}

/* the study: a printed card on the gallery wall */
.study {
  position: relative;
  margin-top: var(--space-section);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  padding: clamp(2rem, 1rem + 4.5vw, 5.5rem);
  background: var(--color-paper);
  color: var(--color-ink);
  border-radius: var(--radius-print);
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.4), 0 50px 90px -40px rgb(0 0 0 / 1);
}
.study ::selection { background: var(--color-ink); color: var(--color-paper); }
.study-line {
  font-family: var(--font-print);
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.012em;
  max-width: 13ch;
  text-wrap: balance;
}
.study-body { max-width: 34rem; color: var(--color-ink-soft); font-size: var(--text-lead); text-wrap: pretty; }
.study-cite { margin-top: var(--space-md); font-size: var(--text-tiny); color: var(--color-ink-soft); }
.study-mark { display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--color-vermilion); margin-right: 0.5em; vertical-align: 0.08em; }
@media (min-width: 60rem) {
  .study { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-2xl); align-items: end; }
}

/* ---------- close + footer (Ft5: the page ends on a sentence) ---------- */
.close { padding-block: var(--space-section) var(--space-4xl); }
.close-line {
  font-size: var(--text-hero);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
}
.close .get { margin-top: var(--space-2xl); }

/* the k in liquid metal (Prism). The poster is the same frame as the live metal, which fades in over it. */
.kmetal { position: relative; display: block; aspect-ratio: 1; }
.kmetal-in { position: absolute; inset: 0; }
.kmetal-in img, .kmetal-live { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kmetal-live { opacity: 0; transition: opacity 2.4s var(--ease-out); }
.kmetal.is-live .kmetal-live { opacity: 1; }
.kmetal.is-live img { visibility: hidden; transition: visibility 0s linear 2.4s; }
.close-grid { display: grid; gap: var(--space-xl); align-items: center; }
.kmetal--close { width: min(78vw, 22rem); justify-self: center; order: -1; margin-bottom: calc(var(--space-xl) * -1); }
@media (min-width: 60rem) {
  .close-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-2xl); }
  .kmetal--close { order: 0; width: min(100%, 34rem); justify-self: end; margin: calc(var(--space-3xl) * -1) calc(var(--space-xl) * -1) calc(var(--space-2xl) * -1) 0; }
}

.foot {
  padding-block: var(--space-2xl) calc(var(--space-2xl) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-hairline);
  font-size: var(--text-small);
  color: var(--color-ash);
}
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg) var(--space-2xl); }
.foot-brand { display: inline-flex; align-items: center; gap: var(--space-sm); }
/* the app icon, live: a 44 px tile with a 1 px inner rim, as on the expo.dev footer */
.foot-tile { position: relative; display: block; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: #000; transition: transform var(--dur-micro) var(--ease-out); }
.foot-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(236 231 222 / 0.22); pointer-events: none; }
.foot-tile:active { transform: scale(0.96); }
.kmetal--tile { width: 100%; height: 100%; }
.foot .wordmark { color: var(--color-pearl); font-size: 1.125rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.foot-links a { text-decoration: none; white-space: nowrap; padding-block: var(--space-2xs); transition: color var(--dur-short) var(--ease-out); }
.foot-links a:hover { color: var(--color-pearl); }
.foot-made { width: 100%; }

/* ---------- phone: the store button stays in reach after the hero ---------- */
.dock {
  position: fixed; z-index: 20;
  left: 50%; bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 0.875rem 1.375rem;
  border-radius: var(--radius-pill);
  background: var(--color-pearl); color: var(--color-night);
  font-size: var(--text-body); font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-dock);
  opacity: 0; transform: translateY(1rem); pointer-events: none;
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.dock svg { width: 1.0625rem; height: 1.0625rem; margin-top: -2px; }
.dock.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.dock:active { transform: scale(0.97); }
@media (min-width: 48rem) { .dock { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 150ms !important; transition-delay: 0s !important; animation: none !important; }
  .thought-caret { display: none; }
}
