/* Unknown Frontier · landing
   World: one uncut sheet. Vermilion washi ground, fold-white paper planes,
   sumi ink, valley and mountain creases, a single gold dot for "you are here". */

@font-face {
  font-family: "Commissioner";
  src: url("../assets/fonts/commissioner-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Commissioner";
  src: url("../assets/fonts/commissioner-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* material */
  --washi: #C33421;          /* mean of the generated washi texture */
  --washi-deep: #A42818;     /* pressed fold, hover */
  --washi-ink: #A92A1B;      /* vermilion used as text on paper (AA) */
  --paper: #F7F4EE;          /* fold-white sheet */
  --paper-2: #ECE6DB;        /* crease shadow on paper */
  --paper-line: #D9D0C2;
  --sumi: #1A1918;
  --sumi-2: #4F4A44;         /* secondary ink on paper (7:1) */
  --on-washi: #FFFFFF;
  --on-washi-2: #FFF8F4;     /* secondary text on vermilion; near-white so fibers never drop it under 4.5:1 */
  --crease: rgba(255, 244, 236, 0.5);
  --gold: #D9B23C;
  --on-ink-2: #CFC8BE;

  /* type */
  --font: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --quiet: "FLAR" 0, "VOLM" 0;
  --flared: "FLAR" 100, "VOLM" 0;
  --voiced: "FLAR" 100, "VOLM" 100;

  /* space */
  --rail: 0px;
  --nav-h: 68px;
  --gutter: clamp(20px, 4.2vw, 56px);
  /* spacing scale: three intervals set the page's rhythm */
  --section: clamp(88px, 10vw, 152px);   /* every band's block padding */
  --block: clamp(56px, 6.5vw, 96px);     /* between sibling pieces inside a band */
  --head: clamp(40px, 4.5vw, 64px);      /* from a section heading to its content */
  --plane: clamp(28px, 3.6vw, 52px);     /* inside a paper plane */
  --wrap: 1240px;

  /* motion + depth */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fold: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-paper: 0 1px 1px rgba(60, 20, 10, 0.08), 0 10px 24px -8px rgba(60, 20, 10, 0.35);
  --shadow-lift: 0 2px 2px rgba(60, 20, 10, 0.1), 0 22px 40px -14px rgba(60, 20, 10, 0.45);
  /* a fold seam: a lit ridge and the shadow of the crease just under it */
  --seam: inset 0 1px 0 rgba(255, 244, 236, 0.32), inset 0 16px 18px -16px rgba(40, 10, 0, 0.42);

  color-scheme: light;
}

@media (min-width: 1100px) {
  :root { --rail: 84px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--washi-deep) var(--paper);
}
body {
  margin: 0;
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--font);
  font-variation-settings: var(--quiet);
  font-size: clamp(1.0625rem, 0.35vw + 0.98rem, 1.1875rem);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-left: var(--rail);
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h4 { margin: 0; font: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; font-variation-settings: var(--voiced); font-weight: 600; }
::selection { background: var(--gold); color: var(--sumi); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.paper :focus-visible, .plane :focus-visible, .resource:focus-visible { outline-color: var(--washi-ink); }
.ink :focus-visible, .player :focus-visible { outline-color: var(--gold); }
input { caret-color: var(--gold); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--sumi); padding: 10px 16px; font-weight: 600; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }

/* surfaces */
.washi {
  background-color: var(--washi);
  background-image: url("../assets/img/washi-tile.webp");
  background-size: 384px;
  color: var(--on-washi);
}
.paper { background: var(--paper); color: var(--sumi); }
.ink { background: var(--sumi); color: var(--paper); }
.seam { position: relative; box-shadow: var(--seam); }
/* frameless photographs: the photo's own washi dissolves into the page's washi */
.tool__media--free { --fade: 11%; -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent), linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent), linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-composite: intersect; }

/* ---------- type ---------- */
.display {
  font-size: clamp(2.75rem, 4.7vw + 0.5rem, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 300;
  font-variation-settings: var(--flared);
}
.display--md { font-size: clamp(2.5rem, 4.4vw + 0.5rem, 5rem); }
.h2 {
  font-size: clamp(2rem, 2.6vw + 0.9rem, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 350;
  font-variation-settings: var(--flared);
}
.h3 {
  font-size: clamp(1.6rem, 1.4vw + 1rem, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-variation-settings: var(--flared);
}
.lede {
  font-size: clamp(1.25rem, 0.8vw + 1rem, 1.6rem);
  line-height: 1.38;
  letter-spacing: -0.01em;
  font-weight: 350;
}
.pair {
  font-variation-settings: var(--voiced);
  font-weight: 560;
  letter-spacing: 0.005em;
}
.list-title {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 0.9em;
}

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: transparent;
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0.75em 1.25em;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: 2px;
  font-size: 0.875rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .25s, color .25s, opacity .25s;
}
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.btn--lg { min-height: 56px; padding-inline: 1.5em; font-size: 0.9375rem; }
.btn--paper { --bg: var(--paper); --fg: var(--sumi); box-shadow: var(--shadow-paper); }
.btn--paper:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--paper:focus-visible { outline-color: #fff; }
.btn--washi { --bg: var(--washi); --fg: #fff; box-shadow: var(--shadow-paper); }
.btn--washi:hover { --bg: var(--washi-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ink { --bg: transparent; --fg: var(--sumi); --bd: var(--sumi); }
.btn--ink:hover { --bg: var(--sumi); --fg: var(--paper); }
.btn--line { --bd: currentColor; }
.btn--line:hover { --bg: rgba(40, 10, 0, 0.14); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  min-height: 40px; padding: 0.4em 0.9em;
  background: transparent; border: 1px solid var(--crease); border-radius: 2px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; transition: background-color .25s, border-color .25s;
}
.chip:hover { background: rgba(40, 10, 0, 0.14); border-color: #fff; }
.chip[hidden] { display: none; }

.link-out {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
}
.link-out .icon { width: 1em; height: 1em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background-color: var(--washi);
  background-image: url("../assets/img/washi-tile.webp");
  background-size: 384px;
  color: #fff;
  transition: box-shadow .3s var(--ease-out);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--crease), 0 10px 30px -18px rgba(40, 10, 0, 0.6); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; background: currentColor;
  -webkit-mask: url("../assets/brand/isologo-mask.png") center / contain no-repeat;
  mask: url("../assets/brand/isologo-mask.png") center / contain no-repeat;
}
.brand__name { font-weight: 600; letter-spacing: 0.01em; font-size: 1.0625rem; font-variation-settings: var(--flared); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__links a:not(.btn) { text-decoration: none; font-size: 0.9375rem; font-weight: 500; position: relative; padding: 6px 0; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }
.nav__toggle .icon { width: 26px; height: 26px; }

@media (max-width: 919px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 39;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 28px var(--gutter) 40px;
    overflow-y: auto; overscroll-behavior: contain;
    background-color: var(--washi);
    background-image: url("../assets/img/washi-tile.webp"); background-size: 384px;
    box-shadow: var(--seam);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
  }
  .nav__links a:not(.btn) { font-size: 1.75rem; font-weight: 350; font-variation-settings: var(--flared); padding: 10px 0; }
    .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease-out), transform .45s var(--ease-out); }
}

/* ---------- rail: the sheet's margin column ---------- */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail {
    display: block; position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 41;
    background-color: var(--washi);
    background-image: url("../assets/img/washi-tile.webp"); background-size: 384px;
    box-shadow: inset -1px 0 0 var(--crease), inset -14px 0 16px -14px rgba(40, 10, 0, 0.35);
  }
  .rail__list { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: grid; gap: 26px; justify-items: center; }
  .rail a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: #fff; opacity: 0.82; position: relative; padding: 4px 6px; transition: opacity .3s; }
  .rail__num { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
  .rail__label { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); opacity: 0; height: 0; overflow: hidden; transition: opacity .4s var(--ease-out); }
  .rail a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .5s var(--ease-out); }
  .rail a.is-current { opacity: 1; }
  .rail a.is-current::before { transform: scale(1); }
  .rail a.is-current .rail__label { opacity: 1; height: auto; }
  .rail a:hover { opacity: 1; }
}

/* ---------- crane scenes: the hero (the crane rests, then flies off) and the close (it flies back and lands) ---------- */
.scene { position: absolute; inset: 0; z-index: -1; --crane-x: 62%; } /* keeps the whole crane in the right half, clear of the words */
/* the video spans the full width, resting on the bottom edge; where the frame is taller than the film,
   its top dissolves into the page's washi instead of ending in a horizontal cut */
.scene__loop { position: absolute; left: var(--film-shift, 0%); right: auto; bottom: 0; width: 100%; height: auto; max-width: none; object-fit: cover; object-position: var(--crane-x) 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%), linear-gradient(to right, transparent 0, #000 12%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%), linear-gradient(to right, transparent 0, #000 12%); mask-composite: intersect; }
@media (min-width: 900px) { .hero__scene { --film-shift: 7%; } }

.hero__scene { transform-origin: 70% 50%; will-change: opacity, transform; }
@media (min-width: 900px) and (max-width: 1279px) {
  .scene { --crane-x: 66%; }
}

/* the pin gives the flight room to play before the next section arrives */
.hero-pin { display: contents; }
main > section { position: relative; z-index: 1; } /* every band slides over the resting hero */
.hero { position: sticky; top: var(--nav-h); z-index: 0; height: calc(100svh - var(--nav-h)); min-height: 560px; overflow: hidden; isolation: isolate; display: grid; align-items: center; }
.hero__copy { position: relative; }
.hero__copy > *, .close__copy > * { max-width: min(34rem, 40vw); }
.hero .display { margin-bottom: 0.42em; }
@media (min-width: 900px) { .hero__copy > .display { max-width: none; white-space: nowrap; } }
.hero__dek { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem); line-height: 1.5; color: var(--on-washi-2); margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

/* phones and small tablets: the crane video is gone (see the "no photography" rule near the end of this
   file), so the hero is just the copy, flowing in the normal document */
@media (max-width: 899px) {
  .hero { position: relative; top: 0; height: auto; min-height: 0; display: block; }
  .hero__copy { padding-block: 16px 72px; }
  .hero__copy > *, .close__copy > * { max-width: 36rem; }
}

/* ---------- stuck + refold ---------- */
.stuck { padding-block: var(--section); }
.stuck__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.stuck__copy { max-width: 36rem; }
.stuck__copy .h2 { margin-bottom: 0.7em; }
.stuck__copy p { color: var(--on-washi-2); }
.pull { margin: 2em 0 0; padding: 0; }
.pull p { font-size: clamp(1.4rem, 1vw + 1.1rem, 1.9rem); line-height: 1.3; letter-spacing: -0.015em; font-variation-settings: var(--voiced); font-weight: 450; color: #fff !important; margin-bottom: 0.4em; }
.pull cite { font-style: normal; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.pull cite::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }

.refold { position: sticky; top: calc(var(--nav-h) + 28px); }
.refold__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.005em; font-variation-settings: var(--flared); }
.refold__hint { font-size: 0.9375rem; color: #fff; margin: 0.3em 0 1.2em; }
.refold__list { display: grid; gap: 12px; perspective: 1200px; }
.strip {
  position: relative; display: grid; width: 100%; min-height: 76px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-fold);
}
.strip__face {
  grid-area: 1 / 1; position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 14px 20px 14px 22px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow-paper);
}
.strip__face--front { background: var(--paper); color: var(--sumi); }
.strip__face--front::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--sumi-2); border-bottom: 1.5px solid var(--sumi-2); transform: translateY(-65%) rotate(45deg); }
.strip__face--back { background: #fff; color: var(--sumi); transform: rotateX(180deg); }
.strip__face--back .pair { display: inline-flex; align-items: center; gap: 8px; }
.strip__face--back .pair::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.strip__text { font-size: clamp(1.05rem, 0.4vw + 0.98rem, 1.2rem); font-weight: 500; line-height: 1.3; padding-right: 28px; }
.strip__face--back .strip__text { padding-right: 0; }
.strip .pair { font-size: 0.8125rem; color: var(--washi-ink); }
.strip[aria-pressed="true"] { transform: rotateX(180deg); }
.strip:hover .strip__face--front { background: #fff; }
.strip:focus-visible { outline: none; }
.strip:focus-visible .strip__face { outline: 2px solid #fff; outline-offset: 3px; }
.refold__note { font-size: 0.875rem; color: #fff; margin-top: 1.4em; }

@media (max-width: 859px) {
  .stuck__grid { grid-template-columns: 1fr; }
  .refold { position: static; }
}

/* ---------- books: UNSTUCK + Change Your Life ---------- */
.unstuck, .cyl { padding-block: var(--section); }
.unstuck__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.unstuck__cover, .cyl__cover { position: sticky; top: calc(var(--nav-h) + 40px); }
.unstuck__cover img, .cyl__cover img { width: 100%; box-shadow: 0 2px 3px rgba(26, 25, 24, 0.12), 0 40px 60px -30px rgba(26, 25, 24, 0.55); }
.book-title {
  font-size: clamp(3.25rem, 5.6vw + 0.5rem, 5.75rem);
  line-height: 0.95; letter-spacing: -0.035em; font-weight: 500;
  font-variation-settings: var(--flared);
}
.book-title--md { font-size: clamp(2.75rem, 4.2vw + 0.5rem, 4.75rem); }
.book-sub { font-size: clamp(1rem, 0.4vw + 0.95rem, 1.2rem); font-weight: 600; color: var(--washi-ink); margin: 0.9em 0 1.6em; letter-spacing: 0.005em; max-width: 32rem; }
.unstuck__copy, .cyl__copy { max-width: 38rem; }
.unstuck__copy > p:not(.lede):not(.book-sub):not(.formula), .cyl__copy > p:not(.lede):not(.book-sub) { color: var(--sumi-2); }
.unstuck .lede, .cyl .lede { margin-bottom: 0.9em; }

.formula {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em 0.45em;
  margin: 1.6em 0 1.8em; padding: 1.1em 0; border-block: 1px solid var(--paper-line);
  font-size: clamp(1.35rem, 1.3vw + 1rem, 2rem); line-height: 1.15; letter-spacing: -0.02em;
  font-variation-settings: var(--voiced); font-weight: 500; color: var(--sumi);
}
.formula__op { color: var(--washi-ink); font-weight: 400; }
.formula__result { color: var(--washi-ink); font-weight: 650; }

/* colophon: the book's particulars, set like the last page of a book */
.colophon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 0 0 2.2em; font-size: 0.9375rem; line-height: 1.4; color: var(--sumi-2); }
.colophon li { padding: 10px 0; border-bottom: 1px solid var(--paper-line); }
.colophon li:nth-child(-n+2) { border-top: 1px solid var(--paper-line); }
.colophon li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.buy { margin-bottom: 1.6em; }
.buy__label { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; color: var(--sumi-2); margin-bottom: 0.8em; }
.buy__row { display: flex; flex-wrap: wrap; gap: 10px 10px; align-items: center; }
.buy__row .link-out { margin-left: 8px; color: var(--sumi); }
/* plain text links in the book sections: underlined, no arrow, vermilion on hover */
.link-plain { font-weight: 600; color: var(--sumi); text-decoration: underline; text-decoration-thickness: 1px; transition: color .2s; }
.buy__row .link-plain { margin-left: 8px; }
.link-plain:hover { color: var(--washi); }

.samples { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-top: 1.4em; border-top: 1px solid var(--paper-line); }

.cyl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }

@media (max-width: 899px) {
  .unstuck__grid, .cyl__grid { grid-template-columns: 1fr; }
  .unstuck__cover, .cyl__cover { position: static; max-width: 340px; }
  .cyl__cover { order: -1; }
  .colophon { grid-template-columns: 1fr; }
  .colophon li:nth-child(2) { border-top: 0; }
}

/* ---------- audio tracks ---------- */
.track {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  width: 100%; background: none; border: 0; padding: 10px 4px; cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--paper-line);
  transition: background-color .25s;
}
.track:hover { background: rgba(26, 25, 24, 0.04); }
.track__btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%;
  background: var(--washi); color: #fff; flex: none; transition: transform .4s var(--ease-out), background-color .25s;
}
.track__btn .icon { width: 16px; height: 16px; }
.track__btn--sm { width: 30px; height: 30px; }
.track:hover .track__btn { transform: scale(1.06); }
.track__name { font-weight: 500; line-height: 1.35; }
.track__time { font-size: 0.875rem; color: var(--sumi-2); font-variant-numeric: tabular-nums; }
.track[aria-pressed="true"] .track__btn { background: var(--sumi); }
.track[aria-pressed="true"] .track__name { color: var(--washi-ink); }
.track--inline { width: auto; border: 0; padding: 4px 0; grid-template-columns: auto auto auto; }
.track--inline .track__name { font-weight: 600; }

/* ---------- fold path ---------- */
/* the owner's photograph (see README) is the SECTION's own background — full-bleed, edge to edge, at
   every width. .wrap and .path__intro paint nothing; they only cap how wide the words get, so there is
   no card, no border, no second red to see the seam of. The #path ID beats the .washi class it still
   carries (kept for its ink-on-vermilion `color`), overriding just the background layers. */
.path { padding-block: var(--section); }
#path {
  position: relative; display: flex; align-items: center; min-height: 80vh;
  background-color: var(--washi);
  background-image: url("../assets/img/path-header-1920.webp");
  background-size: cover; background-position: right center; background-repeat: no-repeat;
}
.path__intro { max-width: 44%; }
.path__head { max-width: 36rem; }
.path__head .h2 { margin-bottom: 0.5em; }
.path__head p { color: var(--on-washi-2); font-size: 1.125rem; }
.path__links { display: flex; flex-wrap: wrap; gap: 6px 28px; max-width: 36rem; margin-top: clamp(24px, 3vw, 36px); }
.path__links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 6px;
  color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; transition: color .2s;
}
.path__links a:hover { color: var(--gold); }
.path__links .icon { width: 18px; height: 18px; flex: none; }

/* mobile: no photo at all (the owner asked for a leaner, image-free phone experience, keeping only
   the book covers) — #path falls back to the plain washi tile it would have without its own
   background-image, same as every other .washi section */
@media (max-width: 899px) {
  #path {
    min-height: 0;
    background-image: url("../assets/img/washi-tile.webp");
    background-size: 384px; background-position: initial;
  }
  .path__intro { max-width: 100%; }
}

/* ---------- tools ---------- */
.tools { padding-block: var(--section); }
.tool { display: grid; gap: 0; margin-bottom: var(--block); }
.tool:last-child { margin-bottom: 0; }
.tool__media img { width: 100%; height: auto; display: block; }
/* frameless, still photographs whose washi dissolves into the page */
.plane { background: var(--paper); color: var(--sumi); padding: var(--plane); box-shadow: var(--shadow-paper); }
.plane > p { color: var(--sumi-2); max-width: 36rem; }
.plane .h3 { margin-bottom: 0.45em; }
.band__tag { font-weight: 600; color: var(--washi-ink); margin: -0.2em 0 0.8em; }

.tool--listen .tool__media--free { --fade: 6%; } /* the bubble sits near the edge; keep its outline crisp */

/* folded collections: a label, a title, a line of description; the contents open on demand */
:root { interpolate-size: allow-keywords; }
.fold { border-top: 1px solid var(--paper-line); }
.fold:last-of-type { border-bottom: 1px solid var(--paper-line); }
.fold + .fold { margin-top: 0; }
.fold__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 6px;
  padding: 22px 2px; cursor: pointer; list-style: none;
}
.fold__head::-webkit-details-marker { display: none; }
.fold__tag { grid-column: 1; justify-self: start; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 650; color: var(--washi-ink); background: var(--paper-2); padding: 3px 8px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.fold__title { grid-column: 1; font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; font-variation-settings: var(--flared); color: var(--sumi); }
.fold__desc { grid-column: 1; font-size: 0.9375rem; line-height: 1.45; color: var(--sumi-2); max-width: 34rem; }
.fold__chev {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--paper-line); position: relative;
  transition: background-color .25s, border-color .25s, transform .5s var(--ease-out);
}
.fold__chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 9px; border-right: 1.5px solid var(--sumi); border-bottom: 1.5px solid var(--sumi); transform: translate(-50%, -50%) rotate(45deg); }
.fold__head:hover .fold__chev { border-color: var(--washi-ink); }
.fold[open] .fold__chev { transform: rotate(180deg); background: var(--paper-2); }
.fold__head:focus-visible { outline: 2px solid var(--washi-ink); outline-offset: 2px; }
.fold::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
.fold[open]::details-content { block-size: auto; }
.fold__body { padding: 0 2px 22px; }
.fold__body .tracks__list { border-top: 1px solid var(--paper-line); }
.fold__body .dl-list { margin: 0; max-width: none; border-top: 1px solid var(--paper-line); }
.plane > p + .fold { margin-top: 1.6em; }

.tool--listen { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.tracks__list { columns: 2 18rem; column-gap: 32px; }
.tracks__list li { break-inside: avoid; }
.tracks__list .track { font-size: 0.9375rem; }
.tracks__more { font-size: 0.9375rem; color: var(--sumi-2); margin-top: 1em; }
.tracks__more a { color: var(--washi-ink); font-weight: 600; }

/* the course: its own white section, plain information */
.course-band { padding-block: var(--section); }
.course__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: var(--head); }
.course__intro > div { max-width: 44rem; }
.course__intro p { color: var(--sumi-2); margin: 0.5em 0 0; }
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--paper-line); }
.weeks li { display: grid; align-content: start; gap: 6px; padding: 18px 20px 4px 0; font-size: 0.9375rem; line-height: 1.45; color: var(--sumi-2); }
.weeks li + li { padding-left: 20px; box-shadow: inset 1px 0 0 var(--paper-line); }
.weeks strong { display: flex; align-items: baseline; gap: 10px; color: var(--sumi); font-size: 1.2rem; font-weight: 450; letter-spacing: -0.01em; font-variation-settings: var(--flared); }
.weeks__n { font-size: 0.8125rem; font-weight: 650; color: var(--washi-ink); font-variant-numeric: tabular-nums; font-variation-settings: var(--quiet); }
.tools--more { padding-block: var(--section); }

.tool--write { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.dl-list { margin-bottom: 1.8em; max-width: 34rem; }
.dl-list:last-child { margin-bottom: 0; }
.dl-list li { border-bottom: 1px solid var(--paper-line); }
.dl-list a { display: flex; align-items: center; gap: 12px; padding: 11px 2px; text-decoration: none; font-weight: 500; line-height: 1.35; transition: color .2s; }
.dl-list a .icon { color: var(--washi-ink); width: 20px; height: 20px; }
.dl-list a:hover { color: var(--washi-ink); }
.dl-list--desc a { align-items: flex-start; padding-block: 13px; }
.dl-list--desc a > span:last-child { display: block; }
.dl-list--desc strong { display: block; font-weight: 650; color: var(--sumi); line-height: 1.35; }
.dl-list--desc a:hover strong { color: var(--washi-ink); }
.dl-list__desc { display: block; font-size: 0.8125rem; color: var(--sumi-2); margin-top: 2px; font-weight: 400; }


.tool--coach { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: center; margin-bottom: 0; }
.coach { padding: clamp(8px, 2vw, 24px) 0 0 clamp(8px, 2vw, 32px); }
.coach > p { color: var(--on-washi-2); max-width: 34rem; }
.coach .h3 { margin-bottom: 0.5em; }
/* the two folded bubbles surface softly, then breathe in turn, like a conversation */
.coach__media { position: relative; }
.coach__pulse { position: absolute; inset: 0; width: 100%; height: 100%; }
.coach__pulse--a { transform-origin: 38.3% 42.2%; }
.coach__pulse--b { transform-origin: 72% 53.2%; }
.coach__media[data-reveal] { opacity: 0; transform: translateY(18px) scale(0.97); transition: opacity 1.6s var(--ease-out), transform 1.8s var(--ease-out); }
.coach__media.is-in { opacity: 1; transform: none; }
.coach__media.is-in .coach__pulse--a { animation: bubble 4.2s ease-in-out 1.2s infinite; }
.coach__media.is-in .coach__pulse--b { animation: bubble 4.2s ease-in-out 3.3s infinite; }
@keyframes bubble { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.05); } 60% { transform: scale(1.04); } }
.chat { margin: 1.6em 0 1.8em; max-width: 30rem; }
.chat__bubble {
  display: inline-block; position: relative; margin-bottom: 14px; padding: 12px 18px;
  background: var(--paper); color: var(--sumi); font-weight: 550; box-shadow: var(--shadow-paper);
}
.chat__bubble::after { content: ""; position: absolute; left: 18px; bottom: -9px; border: 9px solid transparent; border-top-color: var(--paper); border-bottom: 0; border-left: 0; }
.chat__starters { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.chat__starters li { font-size: 0.9375rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.chat__starters li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; flex: none; }
.chat__hint { font-size: 0.875rem; color: #fff; margin: 12px 0 0; }
.coach__note { font-size: 0.875rem; margin-top: 1.6em; color: #fff !important; }
.coach__note a { color: #fff; font-weight: 600; }

@media (max-width: 899px) {
  .tool--listen, .tool--write, .tool--coach { grid-template-columns: 1fr; }
  .tool--write .tool__media { order: -1; }
  .weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weeks li:nth-child(3) { padding-left: 0; box-shadow: none; }
  .coach { padding: 16px 0 0; }
}
@media (max-width: 479px) {
  .weeks { grid-template-columns: 1fr; }
  .weeks li + li { padding-left: 0; box-shadow: inset 0 1px 0 var(--paper-line); }
}

/* ---------- library ---------- */
.library { padding-block: var(--section); }
.library__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: var(--head); }
.library__head > div { max-width: 36rem; }
.library__head .h2 { margin-bottom: 0.45em; }
.library__head p { color: var(--sumi-2); margin: 0; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.filter button {
  min-height: 44px; padding: 8px 14px; background: transparent; border: 1px solid var(--paper-line); border-radius: 2px;
  font-size: 0.9375rem; font-weight: 550; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s;
}
.filter__count { font-variant-numeric: tabular-nums; color: var(--sumi-2); margin-left: 4px; font-weight: 500; }
.filter button:hover { border-color: var(--sumi); }
.filter button[aria-pressed="true"] { background: var(--sumi); color: var(--paper); border-color: var(--sumi); }
.filter button[aria-pressed="true"] .filter__count { color: var(--on-ink-2); }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.book { display: flex; flex-direction: column; }
.book[hidden] { display: none; }
/* covers are final art: shown whole, never cropped */
.book img {
  width: 100%; height: auto; background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(26, 25, 24, 0.12), 0 24px 34px -20px rgba(26, 25, 24, 0.5);
  margin-bottom: 18px; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.book:hover img { transform: translateY(-6px); box-shadow: 0 2px 2px rgba(26, 25, 24, 0.12), 0 34px 44px -22px rgba(26, 25, 24, 0.55); }
.book__title { font-size: 1.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: var(--flared); }
.book__sub { font-size: 0.9375rem; line-height: 1.3; font-weight: 500; color: var(--sumi-2); margin: 4px 0 0; }
.book__lang { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--washi-ink); margin: 6px 0 8px; }
.book__desc { font-size: 0.9375rem; line-height: 1.45; color: var(--sumi-2); margin-bottom: 12px; }
.book__formats { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; font-size: 0.875rem; margin-bottom: 0; padding-top: 10px; border-top: 1px solid var(--paper-line); }
.book__formats a { font-weight: 600; text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.book__formats a:hover { color: var(--washi-ink); border-bottom-color: currentColor; }
.book__formats a.k { color: var(--sumi-2); font-weight: 500; }
.book__formats .small { font-weight: 500; color: var(--sumi-2); }
.qr-note { font-size: 0.875rem; color: var(--sumi-2); margin: -1.4em 0 2em; max-width: 30rem; }

/* ---------- author ---------- */
.author { padding-block: var(--section); }
.author__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.author__photo { margin: 0; position: sticky; top: calc(var(--nav-h) + 40px); }
.author__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.author__copy { max-width: 38rem; }
.author .h2 { margin-bottom: 0.4em; }
.author .lede { color: var(--paper); margin-bottom: 1.1em; }
.author__copy > p:not(.lede) { color: var(--on-ink-2); }
.pull--ink { margin-top: 1.6em; padding-top: 1.4em; border-top: 1px solid rgba(247, 244, 238, 0.18); }
.pull--ink p { color: var(--paper) !important; }
.author__approach { color: var(--on-ink-2); font-size: 0.9375rem; margin-top: 1.6em; max-width: 34rem; }
.author__approach a { display: inline-block; margin-top: 4px; color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; }
.author__approach a:hover { color: var(--gold); }
.author__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9375rem; margin-top: 1em; }
.author__links a { font-weight: 550; color: var(--paper); }
.social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -10px; color: var(--paper); transition: color .25s; }
.social .icon { width: 26px; height: 26px; }
.social:hover, .footer__col a.social:hover { color: var(--gold); }
.footer__col .social { justify-self: start; margin-top: 2px; }
.author__links a:hover { color: var(--gold); }

@media (max-width: 899px) {
  .author__grid { grid-template-columns: 1fr; } /* the photo itself is hidden site-wide, see the "no photography" rule near the end of this file */
}

/* ---------- close: the crane flies back and lands ---------- */
.close { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.close__copy { padding-block: var(--section); }
.close__copy .display { margin-bottom: 0.4em; }
.close__copy p { font-size: 1.1875rem; color: #fff; margin-bottom: 1.8em; }
@media (max-width: 899px) {
  .close { min-height: 0; display: block; }
  .close__copy { padding-block: 8px var(--section); }
}

/* ---------- footer ---------- */
.footer { padding-block: var(--block) 40px; font-size: 0.9375rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(247, 244, 238, 0.16); }
.brand--lg .brand__mark { width: 44px; height: 44px; }
.brand--lg .brand__name { font-size: 1.25rem; }
.footer__brand p { color: var(--on-ink-2); margin-top: 1.1em; max-width: 26rem; }
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col .list-title { color: var(--on-ink-2); }
.footer__col a { text-decoration: none; color: var(--paper); }
.footer__col a:hover { color: var(--gold); text-decoration: underline; }
.footer__legal { padding-top: 28px; font-size: 0.8125rem; color: var(--on-ink-2); display: grid; gap: 4px; }
.footer__legal p { margin: 0; max-width: 60rem; }

@media (max-width: 899px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- mini player ---------- */
.player {
  position: fixed; z-index: 50; left: calc(var(--rail) + 16px); right: 16px; bottom: 16px;
  max-width: 760px; margin-inline: auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 16px;
  padding: 10px 12px 10px 10px;
  background: var(--sumi); color: var(--paper); border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 24px 48px -16px rgba(0, 0, 0, 0.55);
  transform: translateY(0); transition: transform .5s var(--ease-out), opacity .3s;
}
.player[hidden] { display: grid; transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; }
.player__toggle { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--washi); color: #fff; display: grid; place-items: center; cursor: pointer; }
.player__toggle .icon { width: 18px; height: 18px; }
.player__title { margin: 0; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta { margin: 0; font-size: 0.8125rem; color: var(--on-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta a { color: var(--gold); }
.player__seek { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.player__time { font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--on-ink-2); }
.player input[type="range"] { width: 100%; accent-color: var(--gold); height: 24px; background: transparent; cursor: pointer; }
.player__close { width: 44px; height: 44px; border: 0; background: none; color: var(--on-ink-2); display: grid; place-items: center; cursor: pointer; }
.player__close:hover { color: #fff; }

@media (max-width: 639px) {
  .player { grid-template-columns: auto minmax(0, 1fr) auto; left: 10px; right: 10px; bottom: 10px; }
  .player__seek { grid-column: 1 / -1; order: 3; }
}

/* ---------- forced colors ---------- */
@media (forced-colors: active) {
  .filter button[aria-pressed="true"] { border: 3px solid Highlight; }
  .brand__mark { forced-color-adjust: none; background: CanvasText; }
  .track[aria-pressed="true"] .track__name { text-decoration: underline; }
  .btn .dot, .rail a::before, .step__n::before { forced-color-adjust: none; background: Highlight; }
}

/* ---------- motion preferences ---------- */
/* ---------- approach page: a reading treatment on paper ---------- */
body.page-simple { --rail: 0px; } /* inner pages have no fold rail */
body.page-read { background: var(--paper); }
.approach { padding-block: clamp(40px, 6vw, 96px) var(--section); }
.approach__intro { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; margin-bottom: var(--head); }
@media (min-width: 900px) { .approach__intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.approach__lead h1 { margin-bottom: 0.4em; max-width: 13ch; }
.approach__lead .lede { color: var(--sumi-2); max-width: 32rem; margin: 0; }
.approach__fig { margin: 0; justify-self: center; width: min(100%, 420px); }
.approach__fig img { width: 100%; }
/* mobile: hidden entirely, see the "no photography" rule near the end of this file */
.approach__body { max-width: 40rem; margin-inline: auto; font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem); line-height: 1.7; }
@media (min-width: 1100px) { .approach__body { margin-inline: 0 auto; margin-left: calc((100% - 40rem) * 0.28); } }
.approach__body > p, .approach__body section > p { color: var(--sumi-2); }
.approach__open { font-size: 1.1875em; line-height: 1.55; color: var(--sumi) !important; }
.approach__body section { margin-top: clamp(40px, 5vw, 64px); }
.approach__h { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 450; font-variation-settings: var(--flared); color: var(--sumi); margin-bottom: 0.7em; }
.approach__body em { font-style: normal; font-variation-settings: var(--voiced); font-weight: 600; color: var(--washi-ink); }
.approach__fields { display: grid; gap: 14px; margin: 0 0 1.2em; }
.approach__fields li { position: relative; padding-left: 22px; color: var(--sumi-2); }
.approach__fields li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--washi); }
.approach__fields strong { color: var(--sumi); font-weight: 650; }
.approach__steps { counter-reset: inv; display: grid; gap: 0; margin: 0 0 1.4em; border-top: 1px solid var(--paper-line); }
.approach__steps li { counter-increment: inv; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--paper-line); color: var(--sumi); font-weight: 500; }
.approach__steps li::before { content: counter(inv, decimal-leading-zero); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; color: var(--washi-ink); font-variant-numeric: tabular-nums; }
.approach__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--washi-ink); text-decoration: underline; text-underline-offset: 0.22em; transition: color .2s; }
.approach__link:hover { color: var(--sumi); }
.approach__refs { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.approach__refs .fold__head { padding-block: 18px; }
.approach__refs .fold__body p { color: var(--sumi-2); }
.approach__cta { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- approach page: the model, in motion ----------
   stages are cumulative: data-stage="n" shows everything up to n; the paper figure is the same sheet throughout */
.model { margin: clamp(48px, 6vw, 88px) 0 0; padding: clamp(24px, 3vw, 40px) 0 0; border-top: 1px solid var(--paper-line); }
.model__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 18px; }
.model__head .approach__h { margin: 0; }
.model__sub { margin: 0; font-size: 0.875rem; color: var(--sumi-2); }
.model__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.model__tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--paper-line); border-radius: 2px; background: none; color: var(--sumi-2); font-size: 0.9375rem; font-weight: 550; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.model__tab:hover { border-color: var(--sumi-2); color: var(--sumi); }
.model__tab[aria-selected="true"] { background: var(--sumi); border-color: var(--sumi); color: var(--paper); }
.model__tab-n { font-size: 0.75rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--washi-ink); }
.model__tab[aria-selected="true"] .model__tab-n { color: var(--gold); }
.model__tab:focus-visible { outline: 2px solid var(--washi-ink); outline-offset: 2px; }

.model__stage { position: relative; aspect-ratio: 2 / 1; color: var(--sumi); }
.model__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m-time { stroke: var(--sumi); stroke-width: 1.6; stroke-dasharray: 5 7; fill: none; }
.m-tick { stroke: var(--sumi); stroke-width: 1.6; fill: none; }
.m-bracket { stroke: var(--sumi-2); stroke-width: 1.3; fill: none; opacity: 0; transition: opacity .8s var(--ease-out); }
.m-path { fill: none; stroke: var(--sumi); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.45, 0, .2, 1) calc(var(--i) * .16s), opacity .2s linear calc(var(--i) * .16s); }
.m-node { fill: var(--washi); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease-out) calc(1.2s + var(--i) * .12s); }
.m-glow { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.m-person { position: absolute; height: auto; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity 1.1s var(--ease-out) calc(var(--i) * .25s), transform 1.2s var(--ease-out) calc(var(--i) * .25s); }
.m-label { position: absolute; font-size: clamp(0.6875rem, 0.4vw + 0.55rem, 0.875rem); line-height: 1.2; white-space: nowrap; color: var(--sumi-2); }
.m-label--time { transform: translateX(-50%); }
.m-label--end { transform: translateX(-100%); }
.m-label--dim { font-weight: 650; color: var(--sumi); opacity: 0; transition: opacity .8s var(--ease-out); }

/* 0 · the present */
.model .m-person--now { opacity: 1; transform: none; }
/* 1 · uncertainty: the inner dimension, and echoes of what we have lived */
.model[data-stage="1"] .m-glow, .model[data-stage="2"] .m-glow, .model[data-stage="3"] .m-glow,
.model[data-stage="1"] .m-bracket--unc, .model[data-stage="2"] .m-bracket--unc, .model[data-stage="3"] .m-bracket--unc,
.model[data-stage="1"] .m-label--unc, .model[data-stage="2"] .m-label--unc, .model[data-stage="3"] .m-label--unc { opacity: 1; }
.model[data-stage="1"] .m-person--past, .model[data-stage="2"] .m-person--past, .model[data-stage="3"] .m-person--past { opacity: .28; transform: none; }
/* 2 · complexity: trajectories cross around the person */
.model[data-stage="2"] .m-path, .model[data-stage="3"] .m-path { stroke-dashoffset: 0; opacity: .9; }
.model[data-stage="2"] .m-node, .model[data-stage="3"] .m-node { transform: scale(1); }
.model[data-stage="2"] .m-bracket--cpx, .model[data-stage="3"] .m-bracket--cpx,
.model[data-stage="2"] .m-label--cpx, .model[data-stage="3"] .m-label--cpx { opacity: 1; }
/* 3 · possible states: the same sheet, other shapes it could take */
.model[data-stage="3"] .m-person--future { opacity: .42; transform: none; }
.model[data-stage="3"] .m-bracket--pos, .model[data-stage="3"] .m-label--pos { opacity: 1; }

.model__panels { position: relative; max-width: 46rem; min-height: 11rem; margin-top: 8px; }
.model__panel > p { color: var(--sumi-2); margin-bottom: 0.8em; }
.model__panel strong { color: var(--sumi); font-weight: 650; }
.model__panel em { font-style: normal; font-variation-settings: var(--voiced); font-weight: 600; color: var(--washi-ink); }
.model__panel:not([hidden]) { animation: model-in .6s var(--ease-out); }
@keyframes model-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.model__list { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.9375rem; color: var(--sumi); }
.model__list li span { color: var(--sumi-2); font-size: 0.875rem; }
.model__list li span::before { content: " · "; }
.model__list--plain li { font-weight: 550; }
.model__list--plain li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--washi); margin-right: 8px; vertical-align: middle; }
.model__replay { margin-top: 12px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--washi-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; }
.model__replay:hover { color: var(--sumi); }
.model__map { margin: 4px 0 0; }
@media (max-width: 699px) {
  .model__stage { aspect-ratio: 3 / 2; margin-inline: -8px; }
  .m-label--dim { display: none; } /* the panel names each dimension; the stage keeps only past, present and future */
  .model__tab { font-size: 0.875rem; padding: 6px 10px; }
}

/* ---------- tools.html: reuses the .approach__* reading scaffold; these are its own bits ---------- */
.tools-hub__body { max-width: 54rem; margin-inline: auto; }
.tools-hub__body section { margin-top: clamp(48px, 6vw, 80px); }
.tools-hub__body section:first-child { margin-top: 0; }
.tools-hub__desc { color: var(--sumi-2); line-height: 1.6; max-width: 40rem; margin: 0 0 1.4em; }
.tools-hub__group { margin-top: clamp(28px, 3.5vw, 40px); padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid var(--paper-line); }
.tools-hub__group:first-of-type { margin-top: 1.6em; padding-top: 0; border-top: 0; }
.tools-hub__tag { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 650; color: var(--washi-ink); margin: 0 0 0.5em; }
.tools-hub__h3 { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.375rem); font-weight: 500; font-variation-settings: var(--flared); margin: 0 0 0.4em; }
.tools-hub__more-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 1em; }
.tools-hub .tracks__list { columns: 2 16rem; }

/* ---------- contact page ---------- */
.contact { padding-block: var(--section); min-height: calc(100svh - var(--nav-h)); }
.contact__grid { display: grid; gap: var(--head); align-items: start; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--block); } }
.contact__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 1.2em; font-size: 0.9375rem; font-weight: 550; text-decoration: none; }
.contact__back:hover { text-decoration: underline; }
.contact h1 { margin-bottom: 0.35em; }
.contact .lede { max-width: 30rem; margin-bottom: 1.6em; }
.form { display: grid; gap: 22px; }
.form__hp { display: none; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; }
.field__input { font: inherit; font-size: 1rem; color: var(--sumi); background: #fff; border: 1px solid rgba(26, 25, 24, 0.28); border-radius: 2px; padding: 12px 14px; min-height: 48px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field__input:hover { border-color: rgba(26, 25, 24, 0.5); }
.field__input:focus { outline: none; border-color: var(--washi-ink); box-shadow: 0 0 0 3px rgba(195, 52, 33, 0.18); }
.field__input[aria-invalid="true"] { border-color: var(--washi-ink); }
.field__select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sumi) 50%), linear-gradient(135deg, var(--sumi) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field__area { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field__error { margin: 0; font-size: 0.875rem; color: var(--washi-ink); font-weight: 550; }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.form__note { margin: 0; font-size: 0.875rem; color: var(--sumi-2); }
.form__status { margin: 0; font-size: 0.9375rem; font-weight: 550; color: var(--washi-ink); }
.form__status:empty { display: none; }
.form [aria-disabled="true"] { opacity: .6; pointer-events: none; }
.form__done { outline: none; }
.form__done .h3 { margin-bottom: 0.4em; }

/* ---------- mobile: no photography, only the book covers (owner request 2026-09-28) ---------- */
/* every photo, folded-paper figure and the two crane video loops disappear below 900px so the phone
   page is lighter and scrolls more fluidly; only the library's book covers remain. #path's own photo
   is handled above (its mobile rule falls back to the plain washi tile instead). The corresponding
   JS guard (js/main.js) also stops the hero/close videos from ever fetching on a phone. */
@media (max-width: 899px) {
  .scene, .tool__media--free, .author__photo, .approach__fig, .m-person { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .hero { position: relative; top: 0; }
    .coach__media[data-reveal] { opacity: 1; transform: none; }
  .coach__media .coach__pulse { display: none; }
  .strip { transform-style: flat; }
  .strip__face--back { transform: none; opacity: 0; }
  .strip[aria-pressed="true"] { transform: none; }
  .strip[aria-pressed="true"] .strip__face--front { opacity: 0; }
  .strip[aria-pressed="true"] .strip__face--back { opacity: 1; }
}
