@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/fonts/archivo/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/fonts/archivo/archivo-latin.woff2') format('woff2');
  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;
}
:root {
  --font-ui: Archivo, Arial, sans-serif;
  --ink: #20201e;
  --paper: #fdfcf8;
  --muted: #64645e;
  --type-caption: clamp(1rem, .75rem + .3vw, 1.25rem);
  --type-label: clamp(1rem, .75rem + .4vw, 1.375rem);
  --type-ui: clamp(1rem, .75rem + .45vw, 1.5rem);
  --type-body: clamp(1.125rem, .875rem + .65vw, 1.75rem);
  --type-project: clamp(1rem, .75rem + .65vw, 1.75rem);
  --canvas-dot: rgb(114 111 103 / .16);
  --canvas-grid: 30px;
  color-scheme: light;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 0; }
body { margin: 0; overflow-y: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
/* Two weights only: Regular for text, Bold for headings and emphasis. */
h2, h3, h4, strong, b { font-weight: 650; }
em, i { font-style: normal; font-weight: 650; }
a { color: inherit; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid #464b3c; outline-offset: 7px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 24px; top: -80px; z-index: 100; background: var(--paper); padding: 15px; border: 1px solid var(--ink); }
.skip-link:focus { top: 20px; }
.site-header { position: fixed; top: 0; left: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 32px 40px; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.wordmark, .header-nav { flex-shrink: 0; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; font-size: var(--type-label); letter-spacing: .06em; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.header-nav { display: flex; gap: clamp(16px, 2.3vw, 44px); align-items: center; font-size: var(--type-ui); }
.text-control { border: 0; padding: 0; background: none; font-size: inherit; cursor: pointer; }
.index-trigger { display: none; }
.js.nav-ready .index-trigger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.menu-icon { position: relative; display: inline-block; width: 1.3em; height: 2px; background: currentColor; transition: transform .2s ease; }
.menu-icon::before { content: ""; position: absolute; left: 0; top: -.32em; width: 100%; height: 2px; background: currentColor; transition: transform .2s ease; }
.menu-icon::after { content: ""; position: absolute; left: 0; top: .32em; width: 70%; height: 2px; background: currentColor; transition: width .2s ease; }
.index-trigger:hover .menu-icon::after { width: 100%; }
.contact-link { display: inline-flex; align-items: center; gap: .45em; padding: .5em 1.05em; border-radius: 999px; color: var(--paper); background: var(--ink); white-space: nowrap; text-decoration: none; line-height: 1.1; transition: background-color .2s ease; }
.contact-arrow { display: inline-block; transition: transform .2s ease; }
.contact-link:hover { background: #3a3a36; }
.contact-link:hover .contact-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .menu-icon, .menu-icon::before, .menu-icon::after, .contact-link, .contact-arrow { transition: none; } }
.canvas {
  position: relative;
  isolation: isolate;
  display: flex;
  width: max-content;
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--canvas-dot) 0 .65px, transparent .9px);
  background-size: var(--canvas-grid) var(--canvas-grid);
  background-position: 0 0;
}
.scene { position: relative; flex: 0 0 100vw; width: 100vw; height: 100svh; min-height: 680px; overflow: hidden; }
.hero-art { position: absolute; top: 90px; bottom: clamp(210px, 170px + 4vw, 270px); left: 0; right: 0; margin: 0; mix-blend-mode: multiply; }
.intro-artwork, .intro-static { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-artwork > svg { display: block; width: 100%; height: 100%; }
.intro-static { object-fit: contain; }
.js .intro-static { display: none; }
.js[data-artwork-state="static"] .intro-static { display: block; }
.js:not(.art-ready) .intro-artwork { visibility: hidden; }
.type-fallback { display: none; font-family: var(--font-ui); font-size: 36vw; letter-spacing: -.08em; line-height: 1; text-align: center; padding: 30px 20px; }
.art-failed .intro-static { display: none; }
.art-failed .intro-artwork { display: none; }
.art-failed .type-fallback { display: block; }
.hero-bottom { position: absolute; bottom: 86px; left: 40px; right: 40px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 34px; }
h1 { margin: 0; font-size: clamp(1.75rem, 1.25rem + 1vw, 3rem); font-weight: 400; line-height: 1.11; letter-spacing: -.035em; max-width: 630px; }
.work-link { display: flex; align-items: baseline; justify-content: flex-end; gap: 22px; text-decoration: none; font-size: clamp(1.5rem, 1rem + 1.2vw, 2.75rem); font-weight: 400; letter-spacing: -.04em; white-space: nowrap; padding-bottom: 2px; }
.work-link > span:first-child { text-decoration: underline; text-decoration-thickness: .7px; text-underline-offset: 10px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.work-link:hover > span:first-child { text-decoration-color: #777; }
.hero-footnote { position: absolute; bottom: 32px; left: 40px; right: 40px; display: flex; align-items: center; gap: 28px; }
.scroll-instruction { margin-left: auto; font-family: var(--font-ui); font-size: var(--type-caption); letter-spacing: .05em; color: var(--muted); }
.scroll-instruction span span { margin-left: 9px; font-size: 1rem; vertical-align: -1px; }
.mobile-hint { display: none; }
.canvas-cross { font-size: 26px; color: #85857e; font-weight: 400; margin-left: 16px; }
.hero-signature { margin: 0; font-size: var(--type-caption); line-height: 1.4; letter-spacing: .02em; color: var(--muted); }
.hero-signature strong { color: var(--ink); font-weight: 650; }
.header-status, .hero-availability { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: var(--type-caption); line-height: 1.4; white-space: nowrap; }
/* Availability sits beside Contact; narrow screens show it in the hero instead. */
.hero-availability { display: none; }
.availability-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3f8a52; box-shadow: 0 0 0 4px rgb(63 138 82 / .16); }
.js[data-entrance-state="revealing"] :is(.hero-bottom h1, .work-link, .site-header, .hero-footnote > *) {
  opacity: 0;
  visibility: hidden;
  animation: landing-appear 300ms cubic-bezier(.22, 1, .36, 1) forwards;
}
.js[data-entrance-state="revealing"] .work-link { animation-delay: 300ms; }
.js[data-entrance-state="revealing"] :is(.site-header, .hero-footnote > *) { animation-delay: 600ms; }
.js[data-entrance-paused] :is(.hero-bottom h1, .work-link, .site-header, .hero-footnote > *) { animation-play-state: paused; }
@keyframes landing-appear {
  from { opacity: 0; visibility: visible; transform: translateY(14px); }
  to { opacity: 1; visibility: visible; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .js[data-entrance-state="revealing"] :is(.hero-bottom h1, .work-link, .site-header, .hero-footnote > *) {
    animation: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
.eyebrow { font: var(--type-label)/1.5 var(--font-ui); letter-spacing: .14em; margin: 0 0 20px; }
.back-link { position: absolute; bottom: 42px; right: 40px; font-size: var(--type-ui); text-decoration: none; padding: 10px 0; }
.back-link span { margin-left: 14px; }
.section-index { position: fixed; inset: 20px; width: calc(100% - 40px); max-width: none; height: calc(100% - 40px); max-height: none; padding: 32px 40px; margin: 0; border: 1px solid #dad9d2; color: var(--ink); background: var(--paper); }
.section-index::backdrop { background: rgb(255 255 255 / .85); backdrop-filter: blur(7px); }
.index-header { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.index-header > button { font-size: var(--type-ui); padding: 8px; }
.index-list { list-style: none; padding: 0; margin: clamp(24px, 5vh, 64px) 5vw 30px; }
.index-list li { display: flex; align-items: baseline; gap: 32px; border-bottom: 1px solid #e9e9e4; padding: 12px 0; font-family: var(--font-ui); font-size: clamp(24px, 4.6vh, 52px); letter-spacing: -.04em; }
.index-list li a { display: flex; gap: 32px; align-items: baseline; width: 100%; text-decoration: none; }
.index-number { font: var(--type-label) var(--font-ui); letter-spacing: .1em; min-width: 26px; }
.index-upcoming { color: #aaa9a1; }
.index-note { font: var(--type-caption) var(--font-ui); margin-left: auto; letter-spacing: .05em; }
.index-footer { font: var(--type-caption) var(--font-ui); letter-spacing: .15em; color: var(--muted); margin: 28px 5vw 0; }
html.menu-open:not([data-layout="horizontal"]) { overflow: hidden; }
html[data-layout="horizontal"].menu-open body { overflow: hidden; }
@media (min-width: 761px) and (max-height: 740px) {
  .scene { min-height: 620px; }
  .site-header { padding-top: 22px; padding-bottom: 22px; }
  .hero-art { top: 82px; bottom: 200px; }
  .hero-bottom { bottom: 74px; }
  .hero-footnote { bottom: 21px; }
  h1 { font-size: 28px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; }
  .work-link { position: static; justify-self: end; }
  h1 { font-size: 26px; max-width: 390px; }
  .hero-art { bottom: 264px; }
}
@media (max-width: 760px), (max-height: 600px) {
  body { overflow-x: hidden; overflow-y: auto; }
  .site-header { padding: 24px 22px; min-height: 85px; }
  .header-nav { gap: 14px; font-size: var(--type-ui); }
  .canvas { display: block; width: 100%; }
  .scene { width: 100%; min-height: 100svh; height: auto; overflow: visible; }
  .hero { display: flex; flex-direction: column; padding: 90px 22px 24px; }
  .hero-art { position: relative; inset: auto; width: 100%; aspect-ratio: 820 / 1000; margin: 0 auto 27px; max-width: 440px; }
  .intro-static { object-fit: contain; }
  .type-fallback { font-size: 36vw; position: absolute; top: 30%; left: 0; right: 0; }
  .hero-bottom { position: static; display: flex; flex-direction: column; align-items: stretch; gap: 24px; width: 100%; max-width: 440px; margin: 0 auto; }
  .hero-bottom h1 { order: 0; max-width: 430px; font-size: clamp(28px, 7.7vw, 38px); line-height: 1.14; letter-spacing: -.035em; }
  .desktop-break { display: none; }
  .work-link { order: 1; position: static; justify-content: flex-start; font-size: clamp(1.75rem, 1.25rem + 1.5vw, 3.5rem); gap: 20px; margin: 0 0 8px; white-space: normal; }
  /* The bottom row dissolves into the stacked hero: name above the headline,
     availability below the link. */
  .header-status { display: none; }
  .hero-footnote { display: contents; }
  .hero-signature, .hero-availability, .scroll-instruction { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
  .hero-signature { order: 1; margin-bottom: 14px; }
  .hero-signature-break { display: none; }
  .hero-signature-role { display: block; }
  .hero-bottom { order: 2; }
  .hero-availability { display: flex; order: 3; margin-top: 18px; }
  .scroll-instruction { order: 4; margin-top: 10px; text-align: right; }
  .scroll-instruction { font-size: var(--type-caption); }
  .desktop-hint { display: none; }
  .mobile-hint { display: inline; }
  .canvas-cross { display: none; }
  .back-link { bottom: 35px; right: 24px; font-size: var(--type-ui); }
  .section-index { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); padding: 22px; overflow-y: auto; }
  .index-header { gap: 8px; }
  .index-header .eyebrow { font-size: var(--type-label); max-width: 160px; }
  .index-list { margin: 40px 0 20px; }
  .index-list li, .index-list li a { gap: 18px; }
  .index-list li { padding: 17px 0; font-size: 32px; }
  .index-footer { margin: 30px 0 0; font-size: var(--type-caption); }
}

/* Selected work is the project board in the same paper notebook. */
.selected-work { display: flex; flex-direction: column; padding: 106px 4.8vw 26px; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(circle, var(--canvas-dot) 0 .65px, transparent .9px); background-size: var(--canvas-grid) var(--canvas-grid); }
.selected-work a:focus-visible { outline-color: var(--ink); }
.work-intro { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 24px; }
.work-intro .eyebrow { margin: 0 0 10px; color: var(--muted); font-size: var(--type-label); }
.work-intro h2 { margin: 0; font-size: clamp(40px, 3.7vw, 76px); font-weight: 650; line-height: 1.05; letter-spacing: -.055em; }
.work-context { flex: 0 1 30ch; margin: 0 0 4px; font-size: var(--type-body); line-height: 1.4; color: var(--muted); }
.work-context span { color: var(--ink); background: linear-gradient(transparent 58%, rgb(221 61 54 / .18) 58%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.work-board { flex: 1; min-height: 0; display: grid; grid-template-columns: .95fr .95fr 1.2fr .95fr .95fr; gap: clamp(18px, 2.5vw, 48px); align-items: end; padding: 26px 0 14px; }
.work-project { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.work-project[href] { text-decoration: none; }
.project-open { margin: auto 0 0; padding-top: 10px; color: var(--ink); font-size: var(--type-caption); font-weight: 400; line-height: 1.4; }
.project-open span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.work-project[href]:is(:hover, :focus-visible) .project-open { text-decoration: underline; text-underline-offset: 4px; }
.work-project[href]:is(:hover, :focus-visible) .project-open span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .project-open span { transition: none; } }
.project-tillio { --phone-scale: .88; }
.project-ranny-brief { --phone-scale: .92; --preview-paper: #f8f7f4; }
.project-kazuki { --phone-scale: 1; }
.project-northline { --phone-scale: .92; --preview-paper: #f3eedf; }
.project-stride { --phone-scale: .88; --preview-paper: #151719; }
.project-art { position: relative; display: flex; justify-content: center; width: 100%; margin: 0; }
/* Feature Kazuki initially; after exploration, brighten only hovered/focused artwork. */
.work-project .project-art { filter: brightness(.78) saturate(.4); }
.work-board:not([data-project-explored]) .project-kazuki .project-art,
.work-project:focus-within .project-art { filter: brightness(1) saturate(1); }
.work-project:focus-visible { outline: 2px solid var(--ink); outline-offset: 10px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .work-project:hover .project-art { filter: brightness(1) saturate(1); }
  .work-project:hover .phone-preview { opacity: 1; }
}
.work-project:focus-visible .phone-preview { opacity: 1; }
/* Touch visitors see the screen immediately; tapping still opens the project. */
@media (hover: none), (pointer: coarse) {
  .work-project .project-art { filter: none; }
  .phone-frame .phone-preview { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .work-project .project-art { transition: filter 400ms ease-in-out; }
  .phone-preview { transition: opacity 400ms ease-in-out; }
}
.phone-frame { position: relative; flex: none; display: block; width: calc(100% * var(--phone-scale)); max-width: calc((100svh - 560px) * 428 / 868 * var(--phone-scale)); height: auto; aspect-ratio: 428 / 868; filter: drop-shadow(0 9px 10px rgb(32 32 30 / .1)); }
.phone-display { position: absolute; inset: 2.18894% 4.43925%; overflow: hidden; border-radius: 12.5641% / 5.90361%; background: #fff; }
.phone-cover, .phone-preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.phone-preview { opacity: 0; }
/* Browser captures need camera clearance; app exports already have status bars.
   Percentage padding follows the display width: 45px at a 390px viewport. */
.phone-preview-web { box-sizing: border-box; padding-top: 11.53846%; background: var(--preview-paper, #fff); }
.phone-hardware { position: relative; display: block; width: 100%; height: auto; pointer-events: none; }
/* The arrow tip sits ~20% of the cue width above the SVG bottom, so this offset
   lands the tip just above the phone instead of on its screen. */
.project-attention-cue { --cue-width: clamp(112px, 8vw, 152px); position: absolute; z-index: 1; left: 50%; bottom: calc(100% - var(--cue-width) * .2 + 8px); width: var(--cue-width); color: #b8322d; pointer-events: none; transform: rotate(-5deg); }
.project-attention-cue > span { display: block; font-size: var(--type-caption); font-weight: 400; line-height: 1.2; text-align: right; white-space: nowrap; }
.project-attention-cue svg { display: block; width: 100%; height: auto; margin-top: 4px; }
.project-attention-cue path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.project-kazuki .phone-frame { anchor-name: --start-here; }
/* Beside the phone: the arrow tip, 16% in from the cue's left edge, lands just
   off the phone's right side. Without anchor positioning the cue stays above. */
@supports (anchor-name: --a) {
  .project-attention-cue { --cue-width: clamp(92px, 7vw, 150px); left: calc(anchor(--start-here right) - var(--cue-width) * .16 + 4px); top: anchor(--start-here 8%); bottom: auto; }
}
.project-caption { display: flex; flex-direction: column; align-items: center; width: 100%; margin: 24px 0 0; text-align: center; }
.project-caption h3 { margin: 0; font-size: var(--type-project); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
.project-summary { max-width: 26ch; margin: 6px auto 0; font-size: var(--type-caption); line-height: 1.4; }
/* The dot is the status: green when it can be tried or was tested, amber while in development. */
.project-state { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0; font: var(--type-caption)/1.5 var(--font-ui); color: var(--muted); }
.project-state::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #3f8a52; }
.project-state-building::before { background: #c0892c; }
.work-footer { flex: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 24px; min-height: 72px; padding-top: 14px; }
@media (min-width: 761px) and (min-height: 601px) and (max-height: 780px) {
  .selected-work { padding-top: 86px; padding-bottom: 20px; }
  .work-board { padding-top: 20px; }
  .work-intro { padding-bottom: 16px; }
  .work-intro h2 { font-size: clamp(36px, 3vw, 52px); }
  .work-context { font-size: var(--type-caption); }
  .phone-frame { max-width: calc((100svh - 450px) * 428 / 868 * var(--phone-scale)); }
  .project-caption { margin-top: 18px; }
  .work-footer { min-height: 64px; padding-top: 12px; }
}
@media (max-width: 760px), (max-height: 600px) {
  .selected-work { padding: 118px 24px 34px; overflow: hidden; }
  .work-intro { display: block; width: 100%; max-width: 440px; margin: 0 auto 36px; }
  .work-context { margin-top: 20px; max-width: 30ch; }
  .work-board { flex: none; display: flex; flex-direction: column; gap: 58px; width: 100%; max-width: 440px; padding: 0; margin: 0 auto; }
  .work-project { width: 100%; }
  .phone-frame { width: calc(70% * var(--phone-scale)); max-width: 248px; }
  /* The narrow gutter beside the phone fits the cue on two lines. */
  @supports (anchor-name: --a) {
    .project-attention-cue { --cue-width: 70px; }
    .project-attention-cue > span { white-space: normal; }
  }
  /* Without anchor positioning the cue sits above the phone and needs room. */
  @supports not (anchor-name: --a) {
    .project-kazuki .project-art { margin-top: 62px; }
  }
  .project-caption { margin-top: 30px; }
  .project-caption h3 { font-size: var(--type-project); }
  .work-footer { width: 100%; max-width: 440px; margin: 48px auto 0; flex-wrap: wrap; align-items: center; gap: 20px; }
  .work-footer .next-section-link { width: 100%; max-width: none; text-align: right; margin-top: 6px; }
}

/* Understand: transparent pencil drawings share the canvas, never a card grid. */
.understand { --process-reserved: 650px; --process-reserved-short: 568px; display: flex; flex-direction: column; padding: clamp(96px, 12vh, 138px) 3.6vw 30px; }
.understand-title { font-weight: 400; margin: 0; font-size: var(--type-label); line-height: 1.5; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.4vw, 72px); margin-top: 24px; }
.process-step { min-width: 0; }
.process-grid { position: relative; }
.process-number { font-variant-numeric: tabular-nums; font: var(--type-label)/1 var(--font-ui); letter-spacing: .18em; }
.process-step h3 { font-family: var(--font-ui); position: relative; margin: 13px 0 18px; height: clamp(72px, 8.9vw, 160px); font-size: clamp(28px, 3.8vw, 72px); font-weight: 650; line-height: 1; letter-spacing: -.055em; }
.process-copy { margin: 0; font-size: var(--type-body); line-height: 1.45; letter-spacing: -.025em; min-height: 2.9em; }
.process-illustration { mix-blend-mode: multiply; position: relative; width: min(100%, max(80px, calc((100svh - var(--process-reserved)) * 1.466667))); aspect-ratio: 440 / 300; margin: 24px auto 0; }
.process-static, .process-drawing, .process-drawing > svg { display: block; width: 100%; height: 100%; }
.process-static, .process-drawing { transform: scale(1.08); transform-origin: center top; }
.process-static { position: absolute; inset: 0; }
.sketch-ready .process-static { display: none; }
.process-illustration [data-process-entry], .process-illustration [data-process-exit] { position: absolute; top: 38.333333%; width: 1px; height: 1px; pointer-events: none; }
.process-illustration [data-process-entry] { left: 0; }
.process-illustration [data-process-exit] { right: 0; }
.process-flow[hidden] { display: none; }
.process-flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.next-section-link { position: relative; z-index: 3; text-decoration: none; display: inline-flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 1vw, 20px); font-size: var(--type-ui); line-height: 1.4; letter-spacing: .015em; padding: 12px 0; }
.next-section-link span { display: inline-block; flex: none; margin-left: 0; font-size: 1.4em; vertical-align: -2px; }
.next-section-link:hover span { transform: translateX(4px); }

.process-headline-ink { display: block; transform-origin: left center; }
.design { display: flex; flex-direction: column; padding: 106px 3.6vw 30px; }
.design-intro > .eyebrow { margin-bottom: 12px; }
.design-intro h2 { margin: 0; font: 400 clamp(46px, 5vw, 90px)/1.08 var(--font-ui); letter-spacing: -.055em; }
.design-intro h2 em { position: relative; display: inline-block; font-weight: 400; }
.design-underline { position: absolute; right: 0; bottom: -.2em; width: 62%; height: .22em; overflow: visible; fill: none; stroke: #57564e; stroke-width: 1; stroke-linecap: round; }
.design-underline path { stroke-dasharray: 280; stroke-dashoffset: calc(280 * (1 - var(--design-intro-progress, 1))); }
.design-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.12fr); grid-template-rows: minmax(0, 1fr); gap: clamp(20px, 2.4vw, 48px); margin-top: clamp(36px, 5.5vh, 70px); }
.design-step { position: relative; min-width: 0; display: flex; flex-direction: column; }
.design-step-label { margin: 0; font: var(--type-label)/1.5 var(--font-ui); letter-spacing: .16em; }
.design-step h3 { margin: 13px 0 12px; min-height: 2em; font: 650 clamp(24px, 2.45vw, 44px)/1 var(--font-ui); letter-spacing: -.055em; transform: translateX(calc((1 - var(--design-progress, 1)) * 12px)); }
.design-copy { margin: 0; min-height: 3em; max-width: 320px; font-size: var(--type-body); line-height: 1.5; letter-spacing: -.02em; }
.design-illustration { position: relative; flex: 1; min-height: 0; width: 100%; margin: 18px auto 0; }
.design-static, .design-drawing, .design-drawing > svg { display: block; width: 100%; height: 100%; }
.design-static { position: absolute; inset: 0; object-fit: contain; }
.design-drawing { position: absolute; inset: 0; }
.design-static, .design-drawing { mix-blend-mode: multiply; }
.design-ready .design-static { display: none; }
.design-step:not(:last-child)::after { content: ""; position: absolute; right: calc(clamp(20px, 2.4vw, 48px) / -2 - 9px); top: 67%; width: 18px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M1 7Q10 5 22 6M16 1L22 6L16 11' fill='none' stroke='%2364625a' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.design-footer { flex: none; display: flex; align-items: flex-end; justify-content: flex-end; gap: 24px; margin-top: auto; padding-top: 18px; min-height: 100px; }
@media (min-width: 761px) and (min-height: 601px) and (max-height: 780px) {
  .site-header { padding-top: 22px; padding-bottom: 22px; }
  .understand { padding-top: 74px; padding-bottom: 20px; }
  .process-grid { margin-top: 16px; }
  .process-step h3 { height: clamp(68px, 6.7vw, 100px); font-size: clamp(28px, 3.4vw, 54px); margin: 12px 0; }
  .process-copy { font-size: var(--type-body); }
  .process-illustration { width: min(100%, max(80px, calc((100svh - var(--process-reserved-short)) * 1.466667))); margin-top: 14px; }
  .design { padding-top: 82px; padding-bottom: 20px; }
  .design-intro h2 { font-size: clamp(40px, 4.6vw, 66px); }
  .design-grid { margin-top: 32px; }
  .design-step h3 { margin: 10px 0; font-size: clamp(23px, 2.25vw, 36px); }
  .design-illustration { margin-top: 12px; }
  .design-footer { min-height: 88px; padding-top: 12px; }
}
@media (max-width: 760px), (max-height: 600px) {
  .understand { padding: 118px 24px 32px; overflow: hidden; }
  .understand-title { max-width: 300px; font-size: var(--type-label); line-height: 1.7; }
  .process-grid { display: flex; flex-direction: column; gap: 76px; width: 100%; max-width: 440px; margin: 45px auto 0; }
  .process-step h3 { height: auto; min-height: 0; font-size: clamp(44px, 12vw, 66px); margin: 16px 0 20px; }
  .process-copy { font-size: var(--type-body); min-height: 0; max-width: 320px; }
  .process-illustration { width: 100%; margin-top: 32px; }
  .process-static, .process-drawing { transform: none; }
  .next-section-link { font-size: var(--type-ui); max-width: 100%; }
  .design { padding: 118px 24px 36px; overflow: hidden; }
  .design-intro, .design-grid, .design-footer { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
  .design-intro h2 { max-width: 430px; font-size: clamp(46px, 12vw, 66px); line-height: 1.08; }
  .design-grid { flex: none; display: flex; flex-direction: column; gap: 62px; margin-top: 64px; }
  .design-step { display: block; }
  .design-step-label { font-size: var(--type-label); }
  .design-step h3 { min-height: 0; font-size: clamp(36px, 10vw, 52px); margin: 15px 0 16px; transform: none; }
  .design-copy { min-height: 0; font-size: var(--type-body); max-width: 340px; }
  .design-illustration { flex: none; width: 100%; aspect-ratio: 360 / 330; margin-top: 24px; }
  .design-step:not(:last-child)::after { top: auto; right: 15px; bottom: -36px; transform: rotate(90deg); }
  .design-footer { margin-top: 42px; min-height: 100px; align-items: center; }
  .design-footer .next-section-link { max-width: 100%; }
}

/* Closing scenes retain the same paper, scale and native scroll orientation. */
.about { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: minmax(0, 1fr) auto; gap: 24px clamp(32px, 5vw, 120px); padding: 106px 3.6vw 26px; }
/* One measure for the whole column; groups separated by one larger step. */
.about-details { grid-area: 1 / 2 / 2 / 3; min-width: 0; max-width: 680px; align-self: safe center; display: flex; flex-direction: column; gap: clamp(22px, 3vh, 40px); }
.about-eyebrow { margin: 0 0 14px; }
.about-title { margin: 0; font: 650 clamp(44px, 4.5vw, 84px)/1.05 var(--font-ui); letter-spacing: -.055em; }
.about-art { grid-area: 1 / 1 / 3 / 2; position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; margin: 0; }
.about-photo { display: block; width: 100%; height: 100%; max-height: calc(100svh - 170px); min-height: 0; object-fit: contain; }
.about-copy { min-width: 0; font-size: var(--type-ui); line-height: 1.55; letter-spacing: -.01em; }
.about-copy p { margin: 0 0 .7em; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .about-lead { margin-bottom: .55em; text-wrap: balance; font-size: clamp(24px, 1rem + 1vw, 38px); line-height: 1.18; letter-spacing: -.035em; }
/* Same summary row as the case studies: label above value, one rule on top. */
/* One list: labels in one column, values at body size in the other. */
.about-facts { margin: 0; border-top: 1px solid #d7d4c9; font-size: var(--type-ui); line-height: 1.45; }
.about-facts > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); align-items: baseline; column-gap: 24px; padding: 7px 0; border-bottom: 1px solid #d7d4c9; }
.about-facts dt { grid-row: span 3; color: var(--muted); font-size: var(--type-caption); }
.about-facts dd { grid-column: 2; margin: 0; }
.about-footer { grid-area: 2 / 2 / 3 / 3; display: flex; justify-content: flex-end; gap: 22px; align-items: center; min-width: 0; }
.contact { display: flex; flex-direction: column; padding: 106px 3.6vw 26px; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(circle, var(--canvas-dot) 0 .65px, transparent .9px); background-size: var(--canvas-grid) var(--canvas-grid); }
.contact a:focus-visible { outline-color: var(--ink); }
.contact-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 130px); align-items: center; }
.contact-heading { min-width: 0; }
.contact-heading .eyebrow { margin-bottom: 32px; color: var(--muted); }
.contact-title { min-width: 0; margin: 0; font: 650 clamp(88px, 10vw, 256px)/.95 var(--font-ui); letter-spacing: -.075em; }
.contact-title > span { position: relative; isolation: isolate; display: inline-block; }
.contact-title > span::before { content: ""; position: absolute; z-index: -1; left: -.015em; right: -.04em; bottom: .04em; height: .22em; background: rgb(221 61 54 / .2); clip-path: polygon(0 14%, 97% 0, 100% 83%, 1% 100%); }
.contact-story { min-width: 0; }
.contact-kicker { margin: 0 0 24px; max-width: 18ch; font: 650 clamp(30px, 2.4vw, 52px)/1.12 var(--font-ui); letter-spacing: -.045em; }
.contact-copy { max-width: 38ch; margin: 0; color: var(--muted); font-size: var(--type-body); line-height: 1.55; }
.contact-destinations { min-width: 0; margin-top: clamp(26px, 3.5vh, 48px); }
.contact-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: clamp(36px, 4vw, 72px); min-height: 56px; padding: 8px 0 10px; border-bottom: 1px solid #bc302a; color: var(--ink); text-decoration: none; font-size: clamp(28px, 2vw, 44px); font-weight: 400; line-height: 1.2; letter-spacing: -.04em; }
.contact-cta:hover { color: #bc302a; }
.contact-email { display: block; width: fit-content; max-width: 100%; margin-top: 18px; color: var(--muted); font-size: var(--type-caption); line-height: 1.5; text-decoration-thickness: 1px; text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--ink); }
.contact-secondary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 30px; margin-top: 28px; }
.contact-secondary > a { color: var(--ink); font-size: var(--type-caption); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-secondary > a span { margin-left: 6px; }
.contact-footer { flex: none; display: flex; justify-content: flex-end; padding-top: 24px; border-top: 1px solid #d7d4c9; }
.contact-footer .next-section-link { color: var(--muted); font-size: var(--type-caption); }
@media (prefers-reduced-motion: no-preference) {
  .contact[data-contact-ready]:not([data-contact-entered]) .contact-reveal { opacity: 0; transform: translateY(18px); }
  .contact[data-contact-entered] .contact-reveal { animation: contact-arrive 650ms cubic-bezier(.22, 1, .36, 1) var(--contact-delay, 0ms) both; }
  .contact-introduction { --contact-delay: 130ms; }
  .contact-destinations { --contact-delay: 260ms; }
}
@keyframes contact-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 761px) and (min-height: 601px) and (max-width: 1100px) {
  .about-footer { justify-content: flex-end; }
  .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .contact-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
@media (min-width: 761px) and (min-height: 601px) and (max-height: 780px) {
  .about, .contact { padding-top: 82px; padding-bottom: 20px; }
  .about { row-gap: 14px; }
  .about-details { gap: 18px; }
  .about-eyebrow { margin-bottom: 8px; }
  .about-title { font-size: clamp(40px, 3.6vw, 56px); }
  .about-copy { font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.45; }
  .about-copy .about-lead { font-size: clamp(20px, 1.8vw, 26px); }
  .about-facts { font-size: clamp(1rem, 1.3vw, 1.125rem); }
  .about-facts > div { padding: 6px 0; }
  .contact-kicker { margin-bottom: 18px; }
  .contact-destinations { margin-top: 24px; }
  .contact-cta { padding: 6px 0 8px; }
  .contact-secondary { margin-top: 20px; }
}
@media (max-width: 760px), (max-height: 600px) {
  .about, .contact { display: flex; flex-direction: column; padding: 118px 24px 34px; gap: 0; overflow: hidden; }
  .about > *, .contact > * { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
  .about-details { gap: 24px; }
  .about-eyebrow { font-size: var(--type-label); }
  .about-title { font-size: clamp(42px, 11vw, 56px); }
  .about-art { flex: none; height: auto; aspect-ratio: 1227 / 1282; margin-bottom: 32px; }
  .about-photo { height: auto; max-height: none; }
  .about-copy { align-self: auto; font-size: var(--type-body); line-height: 1.55; }
  .about-copy p { margin-bottom: 20px; }
  .about-copy .about-lead { font-size: 26px; }
  .about-facts { font-size: var(--type-body); }
  .about-facts > div { grid-template-columns: 1fr; row-gap: 2px; padding: 12px 0; }
  .about-facts dt { grid-row: auto; }
  .about-facts dd { grid-column: 1; }
  .about-footer { display: flex; flex-wrap: wrap; gap: 36px 20px; margin-top: 46px; }
  .about-footer .next-section-link { margin-left: auto; max-width: none; text-align: right; }
  .contact-main { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 40px; }
  .contact-heading .eyebrow { margin-bottom: 24px; }
  .contact-title { font-size: clamp(76px, 22vw, 132px); }
  .contact-kicker { max-width: none; font-size: 32px; margin-bottom: 20px; }
  .contact-destinations { margin-top: 28px; }
  .contact-footer { margin-top: 44px; padding-top: 16px; }
  .contact-footer .next-section-link { max-width: none; text-align: right; }
}

@media (max-width: 400px) {
  .site-header { padding-left: 18px; padding-right: 18px; gap: 12px; }
  .wordmark { min-width: 0; flex-shrink: 1; }
}

.comment-bubble { position: absolute; left: 0; top: 0; width: 32px; height: 32px; margin: 0; z-index: 20; text-align: left; }
.comment-bubble.comment-open { z-index: 40; }
.design-illustration.has-open-comment { z-index: 6; }
.comment-trigger { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 9px; width: 32px; height: 32px; padding: 4px; border: .7px solid rgb(255 255 255 / .12); border-radius: 18px 18px 18px 1px; background: #2d2e2e; color: #fff; box-shadow: 0 2px 7px rgb(0 0 0 / .24); text-align: left; cursor: pointer; font-family: var(--font-ui); transform-origin: 16px 16px; }
.comment-trigger:focus-visible { outline: 2px solid #8da0bc; outline-offset: 3px; }
.comment-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 23px; width: 23px; height: 23px; border-radius: 50%; color: #fff; background: #677c9d; font-size: var(--type-label); line-height: 1; font-weight: 650; }
.comment-content { display: block; min-width: 0; padding-top: 0; }
.comment-content[hidden] { display: none; }
.comment-author { display: block; font-size: var(--type-caption); line-height: 1.3; font-weight: 650; margin-bottom: 3px; }
.comment-copy { display: block; font-size: var(--type-ui); line-height: 1.4; font-weight: 400; letter-spacing: 0; overflow-wrap: anywhere; }
.comment-trigger[aria-expanded="true"] { width: 240px; max-width: calc(100vw - 24px); height: auto; min-height: 56px; padding: 12px; border-radius: 15px 15px 15px 1px; box-shadow: 0 2px 8px rgb(0 0 0 / .22); }
.comment-ready .comment-trigger[aria-expanded="true"] { animation: comment-reveal 140ms ease-out; }
.comment-bubble:not(.comment-ready) { position: relative; left: auto; top: auto; width: min(240px, 100%); height: auto; }
.comment-bubble:not(.comment-ready) .comment-trigger { position: relative; width: 100%; }
.comment-trigger.comment-attention[aria-expanded="false"] { animation: comment-nudge 950ms ease-in-out 1; }
@keyframes comment-nudge {
  0%, 100% { transform: translateY(0) rotate(0); }
  24% { transform: translateY(-3px) rotate(-3deg); }
  45% { transform: translateY(0) rotate(2deg); }
  66% { transform: translateY(-1px) rotate(-1deg); }
}
@keyframes comment-reveal {
  from { opacity: .6; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .comment-trigger { animation: none !important; }
}

/* The document is readable vertically first. The book is a progressive layer. */
body { overflow-x: hidden; overflow-y: auto; background: var(--paper); }
.canvas { display: block; width: 100%; }
.scene { width: 100%; height: auto; min-height: 100svh; overflow: visible; }
.hero { height: 100svh; }
.book-stage { position: relative; }
.scene { background-color: var(--paper); }
.scene[hidden] { display: none !important; }
.index-list li[hidden] { display: none !important; }
.book-layout { background: none; }
.book-layout .book-stage { position: sticky; top: 0; width: 100%; height: var(--book-height); overflow: hidden; isolation: isolate; }
.book-layout .scene { position: absolute; inset: 78px 28px 32px; width: calc(100% - 56px); height: calc(var(--book-height) - 110px); min-height: 0; overflow: hidden; flex: none; background-image: radial-gradient(circle, var(--canvas-dot) 0 .65px, transparent .9px); background-size: var(--canvas-grid) var(--canvas-grid); }
.book-curl { position: absolute; z-index: 5; inset: 78px 28px 32px; width: calc(100% - 56px); height: calc(var(--book-height) - 110px); overflow: visible; pointer-events: none; }
.book-layout .hero-art { top: 20px; bottom: 200px; }
.book-layout .hero-bottom { bottom: 72px; }
.book-layout .hero-footnote { bottom: 20px; }
.book-layout .understand, .book-layout .design, .book-layout .selected-work, .book-layout .about, .book-layout .contact { padding-top: 38px; padding-bottom: 22px; }
.book-layout .process-grid { margin-top: 24px; }
.book-layout .process-step h3 { height: auto; min-height: 2em; font-size: clamp(28px, 3.4vw, 65px); }
.book-layout .process-illustration { width: min(100%, max(80px, calc((var(--book-height) - 550px) * 1.466667))); margin-top: 22px; }
.book-layout .process-static, .book-layout .process-drawing { transform: none; }
.book-layout .design-grid { margin-top: 30px; }
.book-layout .design-footer { min-height: 72px; }
.book-layout .about { row-gap: 18px; }
.book-layout .work-board { padding-top: 22px; }
.book-layout .work-board { grid-template-rows: minmax(0, 1fr); }
.book-layout .work-project { height: 100%; min-height: 0; }
.book-layout .project-art { flex: 1; min-height: 0; container-type: size; align-items: flex-end; }
.book-layout .phone-frame { width: min(100cqw, calc(100cqh * 428 / 868)); max-width: 100%; height: auto; transform: scale(var(--phone-scale)); transform-origin: center bottom; }
.book-layout .project-caption { flex: none; min-height: calc(var(--type-caption) * 8.8); }
/* Native sideways scrolling is the current desktop presentation. The curl
   controller remains available, but is not mounted in this mode. */
html[data-layout="horizontal"] body { overflow-x: auto; overflow-y: hidden; }
.horizontal-layout { width: max-content; }
.horizontal-layout .book-stage { position: relative; display: flex; width: max-content; overflow: visible; }
.horizontal-layout .scene { position: relative; inset: auto; margin: 78px 28px 32px; width: calc(100vw - 56px); }
/* The project board and closing page share the full-bleed paper canvas. */
.book-layout.horizontal-layout .selected-work { --work-top: 116px; --work-bottom: 54px; margin: 0; width: 100vw; height: var(--book-height); padding: var(--work-top) calc(4.8vw + 28px) var(--work-bottom); }
.book-layout.horizontal-layout .contact { --contact-top: 116px; --contact-bottom: 54px; margin: 0; width: 100vw; height: var(--book-height); padding: var(--contact-top) calc(3.6vw + 28px) var(--contact-bottom); }
@media (prefers-reduced-motion: no-preference) {
  .horizontal-layout .hero-bottom, .horizontal-layout .hero-footnote { translate: var(--hero-copy-x, 0px) 0; }
  .horizontal-layout .intro-static, .horizontal-layout .type-fallback { translate: var(--hero-type-x, 0px) 0; }
}
/* All chapters use the same paper and ink; navigation keeps the same voice. */
.site-header { background: transparent; color: var(--ink); }
.site-header :is(a, button):focus-visible { outline-color: currentColor; }
/* A solid header protects navigation from artwork passing beneath it in vertical flow. */
html:not([data-layout="horizontal"]) .site-header { background: var(--paper); color: var(--ink); }
@media (min-width: 761px) and (min-height: 601px) and (max-height: 780px) {
  .book-layout .understand, .book-layout .design, .book-layout .selected-work, .book-layout .about, .book-layout .contact { padding-top: 24px; padding-bottom: 18px; }
  .book-layout .process-grid { margin-top: 16px; }
  .book-layout .process-step h3 { font-size: clamp(28px, 3vw, 50px); margin: 10px 0; }
  .book-layout .process-illustration { width: min(100%, max(70px, calc((var(--book-height) - 500px) * 1.466667))); margin-top: 14px; }
  .book-layout .design-grid { margin-top: 20px; }
  .book-layout .design-footer { min-height: 54px; }
  .book-layout .about { padding-bottom: 34px; }
  .book-layout.horizontal-layout .selected-work { --work-top: 102px; --work-bottom: 50px; }
  .book-layout.horizontal-layout .contact { --contact-top: 102px; --contact-bottom: 50px; }
  .book-layout .hero-art { bottom: 185px; }
  .book-layout .hero-bottom { bottom: 70px; }
}
@media (max-width: 760px), (max-height: 600px) {
  .hero { height: auto; }
}

/* Understand: the same thought, from a tangle to a testable direction. */
.process-notebook { --process-accent: #7b8355; --process-stagger: clamp(26px, calc(14vh - 100px), 100px); }
.process-notebook .process-grid { align-items: start; gap: clamp(24px, 3.5vw, 68px); margin-top: 20px; }
.process-notebook .process-step { --step-drop: 0px; position: relative; padding-top: var(--step-drop); mix-blend-mode: multiply; }
.process-notebook .process-research { --step-drop: var(--process-stagger); }
.process-notebook .process-direction { --step-drop: calc(var(--process-stagger) * 2); }
.process-notebook .process-number { position: relative; display: inline-block; color: #777468; font-size: var(--type-label); }
.process-notebook .process-number::after { content: ""; position: absolute; inset: -7px -8px; border: 1px solid transparent; border-radius: 48% 55% 42% 51%; transform: rotate(-12deg); }
.process-notebook[data-process-selected="identify"] .process-identify .process-number::after,
.process-notebook[data-process-selected="research"] .process-research .process-number::after,
.process-notebook[data-process-selected="direction"] .process-direction .process-number::after { border-color: #858471; }
.process-notebook .process-step h3 { height: auto; min-height: 0; margin: 10px 0 12px; font-size: clamp(2rem, 1rem + 2vw, 4rem); line-height: 1.02; }
.process-step-select { display: block; border: 0; padding: 0; background: none; color: inherit; font: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.process-step-select:disabled { cursor: default; }
.process-step-select:focus-visible { outline-offset: 7px; }
.process-heading-line { position: relative; isolation: isolate; display: inline-block; }
.process-heading-line::before { content: ""; position: absolute; z-index: -1; left: -.1em; right: -.12em; bottom: -.02em; height: .6em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cg fill='rgb(221,61,54)'%3E%3Cpath fill-opacity='.24' d='M6 10C40 6 95 9 150 6S260 4 320 6 372 4 380 6C384 9 378 12 383 15 377 19 384 24 379 29 380 32 376 34 372 34 320 36 270 33 210 35S90 37 40 35 12 36 5 33C9 28 2 24 7 20 3 16 9 13 6 10Z'/%3E%3Cpath fill-opacity='.2' d='M370 7C380 7 390 8 397 9L395 13C388 13 380 13 372 13Z'/%3E%3Cpath fill-opacity='.17' d='M374 17C382 17 389 18 392 19L391 22C385 22 379 22 375 22Z'/%3E%3Cpath fill-opacity='.19' d='M372 26C381 26 391 26 398 28L396 32C388 31 380 31 373 31Z'/%3E%3Cpath fill-opacity='.1' d='M14 12C90 10 180 12 260 9S350 9 380 11L379 16C300 15 200 17 120 16S40 17 12 17Z'/%3E%3Cpath fill-opacity='.08' d='M10 26C80 27 170 25 250 27S350 26 380 25L379 30C300 31 210 29 130 31S50 30 9 30Z'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; transform: scaleX(0) rotate(-.8deg); transform-origin: left center; pointer-events: none; }
.process-step:is(:hover, :focus-within) .process-heading-line::before { transform: scaleX(1) rotate(-.8deg); }
@media (prefers-reduced-motion: no-preference) {
  .process-heading-line::before { transition: transform 180ms ease-out; }
  .process-step:is(:hover, :focus-within) .process-heading-line::before { transition-duration: 420ms; transition-timing-function: cubic-bezier(.2, .7, .2, 1); }
  .process-step:is(:hover, :focus-within) .process-heading-line:last-child::before { transition-delay: 80ms; }
}
.process-notebook .process-copy { max-width: 28ch; min-height: 2.8em; font-size: var(--type-body); line-height: 1.4; }
.process-notebook .process-illustration { width: min(100%, 340px); margin: clamp(28px, 4vh, 64px) auto 0; }
.process-notebook .process-static, .process-notebook .process-drawing { transform: none; }
.process-story-route { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; mix-blend-mode: multiply; }
.process-story-route[hidden] { display: none; }
.process-route-primary { stroke: #999d96; stroke-width: 1.35; stroke-dasharray: 6 6; opacity: .36; }
.process-route-alternative { stroke: #999d96; stroke-width: 1.35; stroke-dasharray: 6 6; }
[data-story-end] { fill: #999d96; opacity: .36; }
.process-story-route[data-route-clarified="true"] .process-route-primary { stroke: #dd3d36; stroke-width: 2.3; stroke-dasharray: 6 5; opacity: 1; }
.process-story-route[data-route-clarified="true"] [data-story-end] { fill: #dd3d36; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .process-story-route[data-route-entered="true"] :is([data-story-reveal], [data-story-branch-reveal]) { animation: route-draw 1700ms linear 350ms both; animation-play-state: paused; }
  .process-story-route[data-flow-active="true"] :is([data-story-reveal], [data-story-branch-reveal]) { animation-play-state: running; }
  .process-story-route[data-route-clarified="true"] .process-route-primary { animation: route-dashes 1.4s linear infinite, route-clarify 300ms ease-in-out both; animation-play-state: paused; }
  .process-story-route[data-route-clarified="true"] [data-story-end] { animation: route-end-clarify 300ms ease-in-out both; animation-play-state: paused; }
  .process-story-route[data-flow-active="true"] :is(.process-route-primary, [data-story-end]) { animation-play-state: running; }
}
@media (min-width: 761px) and (min-height: 601px) and (prefers-reduced-motion: no-preference) {
  .process-identify { --story-order: 0; }
  .process-research { --story-order: 1; }
  .process-direction { --story-order: 2; }
  .process-enhanced[data-story-entered] :is(.evidence-hint, .process-number, .process-step h3, .process-copy, .process-illustration, .process-caption) { opacity: 0; visibility: hidden; }
  .process-enhanced[data-story-entered="true"] .evidence-hint { animation: process-step-enter 300ms ease-out both; animation-play-state: paused; }
  .process-enhanced[data-story-entered="true"] :is(.process-number, .process-step h3, .process-copy) { animation: process-heading-enter 750ms cubic-bezier(.2, .7, .2, 1) calc(100ms + var(--story-order) * 180ms) both; animation-play-state: paused; }
  .process-enhanced[data-story-entered="true"] .process-illustration { animation: process-step-enter 750ms cubic-bezier(.2, .7, .2, 1) calc(100ms + var(--story-order) * 750ms) both; animation-play-state: paused; }
  .process-enhanced[data-story-playing="true"] :is(.evidence-hint, .process-number, .process-step h3, .process-copy, .process-illustration, .process-caption) { animation-play-state: running; }
  .process-enhanced[data-story-entered] .process-caption[hidden] { animation: none; visibility: hidden; }
  .process-enhanced[data-story-entered="true"] .process-caption:not([hidden]) { opacity: 1; visibility: visible; }
}
@keyframes process-heading-enter {
  0% { opacity: 0; visibility: hidden; transform: translateX(44px); }
  1% { visibility: visible; }
  100% { opacity: 1; visibility: visible; transform: translateX(0); }
}
@keyframes process-step-enter {
  0% { opacity: 0; visibility: hidden; transform: translateY(18px); }
  1% { visibility: visible; }
  100% { opacity: 1; visibility: visible; transform: translateY(0); }
}
/* Keep newly measured mobile/desktop branches complete after the entrance. */
.process-story-route[data-route-clarified="true"] :is([data-story-reveal], [data-story-branch-reveal]) { animation: none; stroke-dashoffset: 0; }
@keyframes route-draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes route-dashes { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -22; } }
@keyframes route-clarify { from { stroke: #999d96; stroke-width: 1.35; stroke-dasharray: 6 6; opacity: .36; } to { stroke: #dd3d36; stroke-width: 2.3; stroke-dasharray: 6 5; opacity: 1; } }
@keyframes route-end-clarify { from { fill: #999d96; opacity: .36; } to { fill: #dd3d36; opacity: 1; } }
.process-flow-ready [data-local-thought], .process-flow-ready [data-local-trail] { visibility: hidden; }
.evidence-hint { display: none; align-self: flex-end; font-size: var(--type-caption); line-height: 1.35; color: #767368; }
.process-enhanced .evidence-hint { display: block; }
.process-caption { position: relative; z-index: 4; max-width: 400px; margin: 18px auto 0; }
/* Keep each caption's space while the existing hover/focus controller selects
   which one is readable. Selection must not shift drawings or their path. */
.process-caption[hidden] { display: block; visibility: hidden; pointer-events: none; }
.caption-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 16px; margin-bottom: 9px; }
.evidence-stage-label { color: #868173; font: var(--type-caption)/1.4 var(--font-ui); letter-spacing: .06em; }
.evidence-stage > p { margin: 0; font-size: clamp(1.125rem, .75rem + .9vw, 2rem); line-height: 1.22; letter-spacing: -.035em; }
.evidence-stage mark { padding: 0 .08em; color: inherit; background: rgb(221 61 54 / .2); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.evidence-stage em { font-family: var(--font-ui); font-weight: 650; }
.book-layout .process-caption { max-width: 52ch; }
.book-layout .evidence-stage > p { font-size: clamp(1rem, .75rem + .4vw, 1.5rem); line-height: 1.4; letter-spacing: -.02em; }
.book-layout .process-notebook .process-step h3 { font-size: clamp(2rem, 1.25rem + 1.4vw, 3.25rem); }
.book-layout .process-notebook .process-illustration { margin-top: 20px; }
.process-notebook [data-reaction="thought"] { transform-origin: 310px 30px; }
.process-notebook [data-reaction="lens"] { transform-origin: 257px 135px; }
.process-notebook [data-reaction="compass"] { transform-origin: 309px 196px; }
.process-notebook [data-reaction="steam-left"] { transform-origin: 151px 132px; }
.process-notebook [data-reaction="steam-right"] { transform-origin: 271px 130px; }
.process-notebook [data-story-thought] { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .process-enhanced .evidence-stage:not([hidden]) { animation: evidence-resolve 240ms ease-out; }
  .process-step:is(:hover, :focus-within) [data-reaction="thought"],
  .process-notebook:has(.process-identify:is(:hover, :focus-within)) [data-story-thought] { animation: thought-tangle 1800ms ease-in-out infinite; }
  .process-step:is(:hover, :focus-within) [data-reaction="steam-left"] { animation: steam-left 1600ms ease-in-out; }
  .process-step:is(:hover, :focus-within) [data-reaction="steam-right"] { animation: steam-right 1600ms ease-in-out 100ms; }
  .process-step:is(:hover, :focus-within) [data-reaction-frame="research"] { animation: eye-blink 1250ms step-end; }
  .process-step:is(:hover, :focus-within) [data-reaction-frame="direction"] { animation: direction-smile 1800ms ease-in-out; }
  .process-step:is(:hover, :focus-within) [data-reaction-frame="flag"] { animation: flag-flutter 1800ms step-end; }
  .process-step:is(:hover, :focus-within) [data-reaction="compass"] { animation: compass-find 1400ms cubic-bezier(.2, .7, .3, 1); }
}
@keyframes thought-tangle { 0%, 100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-9deg) scale(1.05, .97); } 65% { transform: rotate(8deg) scale(.97, 1.04); } }
@keyframes steam-left { 0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; } 48% { transform: translate(-12px, -3px) scale(1.16); opacity: .65; } 65% { transform: translate(-15px, -5px) scale(1.2); opacity: 0; } 78% { transform: translate(0, 0) scale(.9); opacity: 0; } }
@keyframes steam-right { 0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; } 48% { transform: translate(12px, -3px) scale(1.16); opacity: .65; } 65% { transform: translate(15px, -5px) scale(1.2); opacity: 0; } 78% { transform: translate(0, 0) scale(.9); opacity: 0; } }
@keyframes eye-blink { 0%, 25%, 42%, 100% { opacity: 0; } 26%, 41% { opacity: 1; } }
@keyframes direction-smile { 0%, 100% { opacity: 0; } 25%, 75% { opacity: 1; } }
@keyframes flag-flutter { 0%, 18%, 42%, 66%, 100% { opacity: 0; } 19%, 41%, 67%, 86% { opacity: 1; } }
@keyframes evidence-resolve { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes compass-find { from { transform: rotate(-85deg); } 75% { transform: rotate(8deg); } to { transform: rotate(0); } }
.book-layout .process-notebook .process-illustration { width: min(100%, max(130px, calc((var(--book-height) - 660px) * 1.466667))); }
@media (min-width: 1800px) {
  /* Reserve space for full-size captions and the viewport-based step stagger. */
  .book-layout .process-notebook .process-illustration { width: min(100%, max(130px, calc((var(--book-height) * .62 - 400px) * 1.466667))); }
}
@media (min-width: 761px) and (min-height: 601px) {
  .process-notebook { padding-top: clamp(96px, 10vh, 120px); }
}
@media (min-width: 761px) and (min-height: 601px) and (max-height: 780px) {
  .book-layout .process-notebook .process-research { --step-drop: 16px; }
  .book-layout .process-notebook .process-direction { --step-drop: 32px; }
  .book-layout .process-notebook .process-step h3 { font-size: 28px; margin: 9px 0; }
  .book-layout .process-notebook .process-illustration { width: min(100%, max(100px, calc((var(--book-height) - 610px) * 1.466667))); }
  .book-layout .process-notebook .evidence-stage > p { font-size: 20px; }
}
/* Compact laptop windows still need room for the full evidence captions. */
@media (min-width: 761px) and (min-height: 601px) and (max-height: 740px) {
  .book-layout .process-notebook .process-illustration { width: min(100%, max(100px, calc((var(--book-height) - 640px) * 1.466667))); }
}
@media (max-width: 760px), (max-height: 600px) {
  .process-notebook .process-grid { order: 2; gap: 58px; margin-top: 42px; }
  .process-notebook .process-step { --step-drop: 0px; }
  .process-notebook .process-step h3 { font-size: clamp(42px, 11vw, 60px); margin: 14px 0; }
  .process-notebook .process-copy { max-width: 290px; min-height: 0; font-size: 16px; }
  .process-notebook .process-illustration { width: min(100%, 400px); margin-top: 26px; }
  .process-caption { max-width: 400px; margin-top: 20px; }
  .evidence-stage > p { font-size: 22px; }
}
