/* ==========================================================================
   Gabsumi — ink on paper
   ========================================================================== */

:root {
  --paper: #ECE6DA;
  --paper-2: #E2DACB;
  --ink: #12110F;
  --ink-2: #1C1A17;
  --muted-p: #6E675D;
  --muted-i: #9A9286;
  --line-p: rgba(18, 17, 15, 0.16);
  --line-i: rgba(236, 230, 218, 0.16);
  --shu: #C8371F;
  --stencil: #6F62C4;

  --f-display: 'Instrument Serif', 'Times New Roman', serif;
  --f-jp: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --f-body: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: max(clamp(16px, 3.2vw, 48px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --nav-h: 76px;
  --bar-h: 64px;
  --stick: calc(var(--nav-h) + var(--bar-h)); /* where things pin, under the sticky bars */
  --paper-0: rgba(236, 230, 218, 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--shu); color: var(--paper); }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 400; }
.display { font-family: var(--f-display); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; }
.display em, em { font-style: italic; }
[lang="ja"] { font-family: var(--f-jp); }

.eyebrow {
  display: flex; align-items: baseline; gap: 0.9rem;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 2.6rem;
}
.eyebrow [lang="ja"] { color: var(--shu); letter-spacing: 0.3em; font-weight: 600; }

.skip {
  position: fixed; left: var(--gutter); top: -100px; z-index: 120;
  background: var(--shu); color: var(--paper); padding: 0.7rem 1rem; border-radius: 99px;
}
.skip:focus { top: 1rem; }

/* ---------- reveal primitives ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.07em 0.1em 0; margin: 0 -0.07em -0.1em 0; }
.wi { display: inline-block; transform: translateY(112%); transition: transform 1.15s var(--ease-out) calc(var(--d) * 45ms); }
.is-in .wi { transform: none; }
[data-soak] .w { overflow: visible; }
[data-soak] .wi { transform: none; transition: opacity 0.25s linear; opacity: 0.14; }

/* ---------- global layers ---------- */
/* Sized to the largest viewport, so the address bar moving never resizes them. */
.stage { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 50; pointer-events: none; }
.veil { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 100; pointer-events: none; visibility: hidden; }
.is-veiled .veil { pointer-events: auto; }
.veil-label {
  position: fixed; inset: 0; z-index: 105; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  color: var(--paper);
}
.veil-label [data-jp] {
  font-size: clamp(4rem, 13vw, 10.5rem); font-weight: 600; line-height: 1;
  opacity: 0; filter: blur(14px); transform: scale(1.08); letter-spacing: 0.25em; margin-right: -0.25em;
  transition: opacity 0.7s var(--ease-out), filter 0.9s var(--ease-out), transform 1.2s var(--ease-out), letter-spacing 1.2s var(--ease-out);
}
.veil-label [data-en] { color: var(--muted-i); letter-spacing: 0.3em; opacity: 0; transition: opacity 0.6s 0.15s; }
.veil-label.is-on [data-jp] { opacity: 1; filter: none; transform: none; letter-spacing: 0.08em; margin-right: -0.08em; }
.veil-label.is-on [data-en] { opacity: 1; }

.grain {
  position: fixed; inset: -60%; z-index: 80; pointer-events: none; opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .48 0 0 0 0 .45 0 0 0 2.2 -.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* iOS 26 Safari ignores theme-color and tints its bars from a fixed element at each edge of
   the screen, updating as that element changes. It needs at least about 12px to notice.
   The strip matches the bar it touches, so it reads as part of the bar. Ink by default,
   since the page opens under the preloader; chrome.js turns each one paper. */
.bar-tint { display: none; }
@supports (-webkit-touch-callout: none) {
  .js .bar-tint {
    display: block; position: fixed; left: 0; right: 0; height: 12px; z-index: 111;
    background: var(--ink); pointer-events: none;
  }
  .bar-tint--top { top: 0; }
  .bar-tint--bottom { bottom: 0; }
  .tint-top-paper .bar-tint--top, .tint-bottom-paper .bar-tint--bottom { background: var(--paper); }
  /* Ink falling into the hero fades in below the strip, rather than being cut off by it. */
  .js .hero::before {
    content: ''; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 56px; pointer-events: none;
    background: linear-gradient(var(--paper) 12px, rgba(236, 230, 218, 0.55) 30px, var(--paper-0));
  }
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
}
.preloader.is-gl { background: transparent; }
.preloader__enso {
  position: absolute; width: min(58vmin, 460px); height: auto; overflow: visible;
  fill: none; stroke: var(--paper); stroke-width: 6.5; stroke-linecap: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: url(#ink-rough); opacity: 0.92;
}
.preloader__kanji {
  font-size: min(20vmin, 170px); font-weight: 800; line-height: 1;
  animation: kanji 2s var(--ease-out) both;
}
@keyframes kanji { from { opacity: 0; filter: blur(18px); transform: scale(1.15); } }
.preloader__meta {
  position: absolute; left: 0; right: 0; bottom: 7vh;
  display: flex; justify-content: center; align-items: baseline; gap: 1.6rem; color: var(--muted-i);
}
.preloader__name { font-family: var(--f-display); font-size: 1.5rem; color: var(--paper); }
.preloader > * { transition: opacity 0.6s ease, transform 0.9s var(--ease-out); }
.preloader.is-done > * { opacity: 0; transform: scale(0.96); }
.preloader.is-done .preloader__kanji { transform: scale(1.12); filter: blur(10px); transition: opacity 0.6s, transform 0.9s var(--ease-out), filter 0.8s; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; gap: 2.4rem;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + 54px);
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__name { font-family: var(--f-display); font-size: 1.75rem; letter-spacing: -0.01em; line-height: 1; }
.nav__links { display: flex; gap: 2.2rem; margin-left: auto; font-size: 0.95rem; }
.nav__links a { position: relative; display: inline-flex; align-items: baseline; gap: 0.45rem; }
.nav__links .mono { font-size: 0.62rem; opacity: 0.6; }
.nav__links a::after, .link-line::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__cta { border: 1px solid currentColor; border-radius: 99px; padding: 0.6rem 1.15rem; font-size: 0.9rem; transition: background-color 0.3s, color 0.3s; }
@media (hover: hover) { .nav__cta:hover { background: #fff; color: #000; } }
.nav__menu { display: none; font-size: 0.95rem; border: 1px solid currentColor; border-radius: 99px; padding: 0.5rem 1rem; margin-left: auto; }

.seal {
  position: fixed; z-index: 61; top: calc(var(--nav-h) / 2 - 20px); left: var(--gutter);
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--shu); color: var(--paper); border-radius: 5px;
  font-weight: 800; font-size: 1.35rem; line-height: 1;
  box-shadow: inset 0 0 0 3px var(--shu), inset 0 0 0 4.5px rgba(236, 230, 218, 0.9);
  transform: rotate(-4deg); transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) { .seal:hover { transform: rotate(4deg) scale(1.06); } }
.is-detail .nav, .is-detail .seal { visibility: hidden; }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 3rem;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
}
.menu__links a {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.5rem 0;
  font-family: var(--f-display); font-size: clamp(3.4rem, 15vw, 7rem); line-height: 1;
  border-bottom: 1px solid var(--line-i);
}
.menu__links span { width: 3.4em; font-size: 0.24em; color: var(--shu); letter-spacing: 0.2em; }
.menu__foot { color: var(--muted-i); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; display: none; transition: opacity 0.3s; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary, .has-cursor canvas, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input:not([type=radio]), .has-cursor textarea { cursor: text; }
.cursor__blob {
  position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), background-color 0.3s, scale 0.3s var(--ease-out);
}
.cursor.is-down .cursor__blob { scale: 0.7; }
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  color: var(--paper); font-size: 0.66rem; letter-spacing: 0.12em; white-space: nowrap; opacity: 0; transition: opacity 0.3s;
}
.cursor[data-state="link"] .cursor__blob { width: 46px; height: 46px; }
.cursor[data-state="label"] { mix-blend-mode: normal; }
.cursor[data-state="label"] .cursor__blob { width: 92px; height: 92px; background: var(--shu); }
.cursor[data-state="label"] .cursor__label { opacity: 1; }
.cursor[data-state="hint"] .cursor__blob { width: 16px; height: 16px; }
.cursor[data-state="hint"] .cursor__label { opacity: 1; color: #fff; transform: translate(16px, 10px); }
.cursor[data-state="text"], .cursor.is-gone { opacity: 0; }

/* ==========================================================================
   Hero — ink in water
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--paper); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hero__ui { position: absolute; inset: 0; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.hero__ui a { pointer-events: auto; }
.hero__lede { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 9vh); display: grid; gap: 1rem; max-width: 34rem; }
.hero__lede-text { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.05; }
.hero__vertical {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 6vh);
  writing-mode: vertical-rl; letter-spacing: 0.6em; font-size: 1.05rem; font-weight: 600;
}
.hero__hint { position: absolute; right: calc(var(--gutter) + 3rem); top: calc(var(--nav-h) + 9vh); display: grid; gap: 0.35rem; text-align: right; opacity: 0.85; }
.js .hero__hint.is-used { opacity: 0; transition: opacity 0.6s ease; }
.hero__hint b { font-weight: 500; }
.on-touch { display: none; }
@media (hover: none) { .on-mouse { display: none; } .on-touch { display: revert; } }
.hero__title {
  position: absolute; left: calc(var(--gutter) - 0.04em); right: var(--gutter); bottom: 3.3rem;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(5.5rem, 25.5vw, 34rem);
  line-height: 0.78; letter-spacing: -0.035em; white-space: nowrap;
}
.hero__title .ch { display: inline-block; opacity: 0; transform: translateY(35%) scaleY(1.2); filter: blur(16px); transform-origin: 50% 100%;
  transition: opacity 1.2s var(--ease-out) calc(0.15s + var(--d) * 70ms), transform 1.6s var(--ease-out) calc(0.15s + var(--d) * 70ms), filter 1.4s var(--ease-out) calc(0.15s + var(--d) * 70ms); }
.is-ready .hero__title .ch { opacity: 1; transform: none; filter: none; }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.hero__status { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero__status i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.hero__scroll { display: inline-flex; align-items: center; gap: 0.7rem; }
.hero__scroll span { width: 1px; height: 26px; background: currentColor; transform-origin: top; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.js .hero__lede, .js .hero__vertical, .js .hero__hint, .js .hero__foot { opacity: 0; transition: opacity 1.4s ease 1.1s; }
.is-ready .hero__lede, .is-ready .hero__vertical, .is-ready .hero__hint, .is-ready .hero__foot { opacity: 1; }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { position: relative; padding: 24vh 0 52vh; }
.intro__soak { font-size: clamp(2.2rem, 5.6vw, 6rem); line-height: 1.02; max-width: 15.5em; }
.intro__soak em { color: var(--shu); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 6vw; margin-top: 12vh; align-items: end; }
.intro__body { font-size: 1.12rem; max-width: 34em; color: #3a3631; }
.intro__body i { font-family: var(--f-display); font-size: 1.15em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-p); }
.stats li { padding: 1.2rem 1rem 0 0; display: grid; gap: 0.4rem; }
.stats b { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 4.4rem); line-height: 1; }
.stats span { font-size: 0.85rem; color: var(--muted-p); }

/* ==========================================================================
   Work
   ========================================================================== */
.work { position: relative; background: var(--ink); color: var(--paper); }
.ink-edge { position: absolute; left: 0; right: 0; height: 70vh; pointer-events: none; }
.ink-edge--rise { top: -55vh; }
.ink-edge--drip { bottom: -56vh; z-index: 1; }

.work__head { padding-top: 16vh; padding-bottom: max(12vh, 100px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem 4vw; }
.work__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.work__title { font-size: clamp(3.2rem, 8.6vw, 9rem); max-width: 9.5em; }
.work__note { max-width: 19rem; color: var(--muted-i); font-size: 0.98rem; }
.stencil-word { color: var(--stencil); font-family: var(--f-display); font-style: italic; font-size: 1.2em; }

.work__bar {
  position: sticky; top: var(--nav-h); z-index: 4; min-height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem var(--gutter);
  background: var(--ink); border-top: 1px solid var(--line-i); border-bottom: 1px solid var(--line-i);
}
.filters, .views { display: flex; gap: 0.4rem; flex-wrap: nowrap; }
.filters { overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 90%, transparent); padding-right: 1.5rem; }
.filters::-webkit-scrollbar { display: none; }
.chip, .views button {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--line-i); border-radius: 99px; padding: 0.5rem 0.95rem; font-size: 0.86rem;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
@media (hover: hover) { .chip:hover, .views button:hover { border-color: rgba(236, 230, 218, 0.5); } }
.chip[aria-pressed="true"], .views button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip__count { font-size: 0.6rem; opacity: 0.6; }
.views { padding: 3px; border: 1px solid var(--line-i); border-radius: 99px; gap: 0; flex: none; }
.views button { border-color: transparent; padding: 0.42rem 0.9rem; }
.views button [lang="ja"] { font-size: 0.78rem; margin-right: 0.15rem; color: var(--shu); }
.views button[aria-pressed="true"] [lang="ja"] { color: var(--shu); }

/* Flow */
.flow { position: relative; }
.flow__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  padding-top: calc(var(--nav-h) + var(--bar-h) + 1vh);
}
.flow__track {
  display: flex; align-items: center; gap: 5vw; height: calc(100% - 3.5rem);
  padding: 0 calc(var(--gutter) + 2vw); width: max-content; will-change: transform;
}
.card { flex: none; display: flex; flex-direction: column; gap: 1rem; }
.card__media { position: relative; height: min(56vh, 70vw); aspect-ratio: 4 / 5; background: rgba(236, 230, 218, 0.03); }
.card:nth-child(3n + 2) { align-self: flex-end; margin-bottom: 3vh; }
.card:nth-child(3n + 2) .card__media { height: min(44vh, 60vw); }
.card:nth-child(3n) { align-self: flex-start; margin-top: 2vh; }
.card:nth-child(3n) .card__media { height: min(50vh, 64vw); }
.card__media img, .pond__media img, .studio__portrait img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.8s; }
.is-gl > img { opacity: 0; }
.is-gl.gl-settled > img { opacity: 1; transition: none; }
.card__cap { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.15rem; align-items: baseline; }
.card__no { color: var(--muted-i); grid-row: span 2; }
.card__title { font-family: var(--f-display); font-size: 1.85rem; line-height: 1; transition: transform 0.6s var(--ease-out); }
.card__jp { font-size: 0.9rem; margin-left: 0.6rem; color: var(--shu); }
.card__meta { color: var(--muted-i); font-size: 0.64rem; }
@media (hover: hover) { .card:hover .card__title { font-style: italic; transform: translateX(0.3rem); } }
.card--end {
  width: min(30vw, 420px); align-self: center !important; margin: 0 !important; gap: 1.5rem;
  justify-content: center; padding: 3rem 0 3rem 3vw; border-left: 1px solid var(--line-i);
}
.card__end-jp { font-size: 4rem; color: var(--shu); line-height: 1; }
.card__end-title { font-family: var(--f-display); font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: 0.95; }
@media (hover: hover) { .card--end:hover .card__end-title em { color: var(--shu); } }
.flow__ui {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.4rem;
  display: flex; align-items: center; gap: 1.4rem; color: var(--muted-i);
}
.flow__progress { flex: 1; height: 1px; background: var(--line-i); }
.flow__arrows { display: none; }
.flow__progress span { display: block; height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* Index */
.view--index { padding: 6vh 0 16vh; }
.index__head, .index__row {
  display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 7rem 10rem 9rem 3.6rem; gap: 1.4rem; align-items: baseline;
}
.index__head { padding-bottom: 0.9rem; color: var(--muted-i); border-bottom: 1px solid var(--line-i); font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
.index__row { position: relative; padding: 1.3rem 0 1.1rem; border-bottom: 1px solid var(--line-i); transition: opacity 0.5s, color 0.5s; }
.index__row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--paper);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out);
}
.index__no { color: var(--muted-i); }
.index__title { font-family: var(--f-display); font-size: clamp(2.2rem, 5.6vw, 5.6rem); line-height: 0.92; transition: transform 0.7s var(--ease-out); }
.index__jp { color: var(--shu); font-size: 1.1rem; }
.index__style, .index__place { font-size: 0.92rem; color: var(--muted-i); }
.index__year { text-align: right; color: var(--muted-i); }
.index.is-hovering .index__row:not(.is-active) { opacity: 0.25; }
.index__row.is-active::after, .index__row:focus-visible::after { transform: scaleX(1); }
.index__row.is-active .index__title { transform: translateX(1.4rem); font-style: italic; }
.index__stage { display: contents; }
.index__now { display: none; }
.index__preview {
  position: fixed; left: 0; top: 0; z-index: 3; width: clamp(220px, 21vw, 360px); aspect-ratio: 4 / 5;
  pointer-events: none; background: center / cover no-repeat; opacity: 0; transition: opacity 0.35s;
}
html:not(.has-gl) .index__preview.is-on { opacity: 1; }

/* Pond */
.pond { position: relative; height: 100vh; height: 100svh; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline-offset: -6px; }
.pond__items { position: absolute; inset: 0; }
.pond__item { position: absolute; left: 0; top: 0; will-change: transform; -webkit-user-drag: none; }
.pond__media { aspect-ratio: 4 / 5; width: 100%; }
.pond__cap { display: block; margin-top: 0.7rem; color: var(--muted-i); font-size: 0.64rem; transition: opacity 0.5s; }
.pond__cap [lang="ja"] { color: var(--shu); margin-left: 0.3rem; }
.pond__item.is-dim { pointer-events: none; }
.pond__item.is-dim .pond__cap { opacity: 0.15; }
html:not(.has-gl) .pond__item.is-dim .pond__media { opacity: 0.1; }
.pond__hint {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  padding: 0.65rem 1.1rem; border: 1px solid var(--line-i); border-radius: 99px;
  background: rgba(18, 17, 15, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  white-space: nowrap; color: var(--muted-i); pointer-events: none;
}
.pond__hint [lang="ja"] { color: var(--shu); margin-right: 0.4rem; }

/* Marquee */
.marquee { padding: 14vh 0 34vh; overflow: hidden; }
.marquee__row { white-space: nowrap; font-family: var(--f-display); font-size: clamp(3.6rem, 10.5vw, 11rem); line-height: 1.02; }
.marquee__inner { display: inline-flex; align-items: center; will-change: transform; }
.marquee__inner > * { margin-right: 0.32em; }
.marquee__inner i { font-style: normal; font-family: var(--f-jp); font-size: 0.36em; color: var(--shu); }
.marquee__row--outline { font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(236, 230, 218, 0.45); }
.marquee__row--outline i { -webkit-text-stroke: 0; color: var(--muted-i); }

/* ==========================================================================
   Studio
   ========================================================================== */
.studio { position: relative; padding: 40vh 0 18vh; }
.studio__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 7vw; align-items: start; }
.studio__figure { position: sticky; top: calc(var(--nav-h) + 4vh); }
.studio__portrait { aspect-ratio: 4 / 5; position: relative; }
.studio__figure figcaption { margin-top: 0.9rem; color: var(--muted-p); }
.studio__text { padding-top: 4vh; }
.studio__text h2 { font-size: clamp(3rem, 7.2vw, 7.4rem); margin-bottom: 3rem; }
.studio__text p { font-size: 1.1rem; max-width: 34em; color: #3a3631; margin-bottom: 1.2rem; }
.facts { margin-top: 3rem; border-top: 1px solid var(--line-p); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-p); align-items: baseline; }
.facts dt { color: var(--muted-p); }

.process { margin-top: 22vh; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-p); }
.step {
  position: relative; overflow: hidden; isolation: isolate; padding: 2.2rem 1.4rem 2.8rem;
  border-right: 1px solid var(--line-p); transition: color 0.6s var(--ease-out);
}
.step:last-child { border-right: 0; }
.step::before {
  content: ''; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 50%);
  width: 290%; aspect-ratio: 1; border-radius: 50%; background: var(--ink);
  transform: translate(-50%, -50%) scale(0); transition: transform 1s var(--ease-out); filter: url(#ink-rough);
}
@media (hover: hover) { .step:hover { color: var(--paper); } }
@media (hover: hover) { .step:hover::before { transform: translate(-50%, -50%) scale(1); } }
.step__k { display: block; font-size: clamp(3.4rem, 5vw, 5rem); font-weight: 600; line-height: 1; margin-bottom: 2.6rem; transition: color 0.6s; }
@media (hover: hover) { .step:hover .step__k { color: var(--shu); } }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1; margin-bottom: 0.8rem; }
.step p { font-size: 0.95rem; color: var(--muted-p); transition: color 0.6s; }
@media (hover: hover) { .step:hover p { color: var(--muted-i); } }

/* ==========================================================================
   Info / FAQ
   ========================================================================== */
.info { position: relative; padding: 16vh 0 46vh; }
.info__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 6vw; }
.info h2 { font-size: clamp(3rem, 7vw, 7rem); }
.faq details { border-top: 1px solid var(--line-p); }
.faq details:last-child { border-bottom: 1px solid var(--line-p); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; font-family: var(--f-display); font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.1;
  transition: padding 0.5s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq summary:hover { padding-left: 0.8rem; } }
.faq summary span { position: relative; flex: none; width: 18px; height: 18px; }
.faq summary span::before, .faq summary span::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.faq summary span::after { transform: rotate(90deg); }
.faq details[open] summary span::after { transform: rotate(0); }
.faq details[open] summary span::before { background: var(--shu); }
.faq details p { padding: 0 0 1.8rem; max-width: 44em; color: var(--muted-p); font-size: 1.05rem; animation: fadein 0.6s var(--ease-out); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } }

/* ==========================================================================
   Booking
   ========================================================================== */
.book { position: relative; background: var(--ink); color: var(--paper); padding: 16vh 0 16vh; }
.book__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 7vw; align-items: start; }
.book__title { font-size: clamp(3.4rem, 8.4vw, 9rem); margin-bottom: 2.4rem; }
.book__title em { color: var(--shu); }
.book__intro > p { color: var(--muted-i); font-size: 1.08rem; max-width: 30em; }
.contact { margin-top: 3rem; border-top: 1px solid var(--line-i); }
.contact li { display: grid; grid-template-columns: 7.5rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--line-i); align-items: baseline; }
.contact .mono { color: var(--muted-i); }
.contact a { position: relative; justify-self: start; }
.contact a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { .contact a:hover::after { transform: scaleX(1); transform-origin: left; } }

.form { display: grid; gap: 1.7rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-i); border-radius: 0;
  color: var(--paper); font: 400 1.15rem/1.4 var(--f-body); padding: 1.5rem 0 0.6rem; outline: none; resize: vertical;
  transition: border-color 0.4s;
}
.field textarea { min-height: 7.5rem; }
.field label {
  position: absolute; left: 0; top: 1.5rem; color: var(--muted-i); pointer-events: none; font-size: 1.05rem;
  transform-origin: left top; transition: transform 0.45s var(--ease-out), color 0.3s;
}
.field input:focus, .field textarea:focus { border-color: var(--paper); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-1.45rem) scale(0.72); color: var(--paper); }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--shu); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice legend { color: var(--muted-i); margin-bottom: 0.8rem; padding: 0; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.choice span { display: inline-block; border: 1px solid var(--line-i); border-radius: 99px; padding: 0.5rem 1rem; font-size: 0.9rem; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
@media (hover: hover) { .choice label:hover span { border-color: rgba(236, 230, 218, 0.5); } }
.choice input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--shu); outline-offset: 2px; }

.btn-ink {
  position: relative; isolation: isolate; overflow: hidden; justify-self: start;
  display: inline-flex; align-items: center; gap: 1.2rem; padding: 1.15rem 1.9rem; border-radius: 99px;
  background: var(--shu); color: var(--paper); font-size: 1.02rem; font-weight: 500; transition: color 0.5s;
}
.btn-ink::before {
  content: ''; position: absolute; z-index: -1; left: -10%; top: 50%; width: 140%; aspect-ratio: 1; border-radius: 50%;
  background: var(--paper); transform: translate(-60%, -50%) scale(0); transition: transform 0.9s var(--ease-out); filter: url(#ink-rough);
}
@media (hover: hover) { .btn-ink:hover { color: var(--ink); } }
@media (hover: hover) { .btn-ink:hover::before { transform: translate(-10%, -50%) scale(1.2); } }
.btn-ink i { font-style: normal; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { .btn-ink:hover i { transform: translateX(0.35rem); } }
.btn-ink:disabled { opacity: 0.6; }
.form__done, .form__error { display: none; line-height: 1.6; }
.form__done { color: var(--paper); }
.form__error { color: var(--shu); }
.form.is-sent .form__done, .form.is-error .form__error { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: var(--paper); padding: 4vh 0 1.6rem; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line-i); }
.footer__top .mono { color: var(--muted-i); display: block; margin-bottom: 0.7rem; }
.footer__top p { line-height: 1.6; }
@media (hover: hover) { .footer__top a:hover { color: var(--shu); } }
.footer__top-link { justify-self: end; }
.footer__mark {
  font-family: var(--f-display); font-size: 25.5vw; line-height: 0.8; letter-spacing: -0.04em;
  text-align: center; white-space: nowrap; margin: 9vh 0 3vh; position: relative;
}
.footer__mark span { position: absolute; top: 0.06em; right: 2.2vw; font-size: 0.13em; letter-spacing: 0; color: var(--shu); font-weight: 800; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted-i); }

/* ==========================================================================
   Detail
   ========================================================================== */
.detail { position: fixed; inset: 0; height: 100dvh; z-index: 70; background: var(--ink); color: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.detail:focus { outline: none; }
.is-detail, .is-menu { overflow: hidden; }
.detail__bar {
  position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem var(--gutter); background: linear-gradient(var(--ink) 55%, rgba(18, 17, 15, 0));
}
.detail__bar .mono { color: var(--muted-i); }
.detail__close { display: inline-flex; gap: 0.7rem; align-items: center; border: 1px solid var(--line-i); border-radius: 99px; padding: 0.55rem 1.1rem; font-size: 0.92rem; transition: background-color 0.3s, color 0.3s; }
@media (hover: hover) { .detail__close:hover { background: var(--paper); color: var(--ink); } }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 5vw; padding: 1vh var(--gutter) 10vh; align-items: start; }
.detail__media { position: sticky; top: 5rem; }
.compare {
  --pos: 58%; position: relative; overflow: hidden; aspect-ratio: 4 / 5; width: min(100%, calc((100vh - 7rem) * 0.8));
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: ew-resize; background: var(--paper);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__stencil { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__stencil img { filter: url(#stencil); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; outline: none; }
.compare__handle i { position: absolute; top: 0; bottom: 0; left: -0.5px; width: 1px; background: var(--ink); }
.compare__handle i::after {
  content: '↔'; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%;
  transform: translate(-50%, -50%); display: grid; place-items: center; font-size: 1rem;
  background: var(--shu); color: var(--paper); box-shadow: 0 0 0 6px rgba(200, 55, 31, 0.18);
}
.compare__handle:focus-visible i::after { outline: 2px solid var(--paper); outline-offset: 3px; }
.compare__handle span { position: absolute; bottom: 1rem; color: var(--ink); white-space: nowrap; background: rgba(236, 230, 218, 0.85); padding: 0.3rem 0.55rem; border-radius: 99px; }
.compare__handle span:first-child { right: 1rem; color: #3b2f8c; }
.compare__handle span:last-child { left: 1rem; }
.detail__no { color: var(--muted-i); }
.detail__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(4.2rem, 10vw, 10rem); line-height: 0.85; letter-spacing: -0.03em; margin: 2.4rem 0 0.6rem; }
.detail__jp { font-size: clamp(2rem, 3.8vw, 3.4rem); color: var(--shu); font-weight: 600; letter-spacing: 0.1em; }
.detail__desc { font-size: 1.2rem; line-height: 1.55; max-width: 30em; margin: 3rem 0; color: #CFC8BB; }
.detail__meta { border-top: 1px solid var(--line-i); margin-bottom: 3rem; }
.detail__meta div { display: grid; grid-template-columns: 8rem 1fr; padding: 0.95rem 0; border-bottom: 1px solid var(--line-i); align-items: baseline; }
.detail__meta dt { color: var(--muted-i); }
.btn-ink--paper::before { background: var(--paper); }
.detail__nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-i); }
.detail__nav a { display: grid; gap: 0.6rem; padding: 3.2rem var(--gutter); transition: background-color 0.5s; }
.detail__nav a + a { text-align: right; border-left: 1px solid var(--line-i); }
.detail__nav .mono { color: var(--muted-i); }
.detail__nav b { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { .detail__nav a:hover b { font-style: italic; color: var(--shu); } }
.detail.is-in .detail__info > *, .detail.is-in .compare { animation: rise 1.3s var(--ease-out) both; }
.detail.is-in .compare { animation-delay: 0.5s; }
.detail.is-in .detail__info > :nth-child(1) { animation-delay: 0.6s; }
.detail.is-in .detail__info > :nth-child(2) { animation-delay: 0.66s; }
.detail.is-in .detail__info > :nth-child(3) { animation-delay: 0.74s; }
.detail.is-in .detail__info > :nth-child(4) { animation-delay: 0.82s; }
.detail.is-in .detail__info > :nth-child(5) { animation-delay: 0.9s; }
.detail.is-in .detail__info > :nth-child(6) { animation-delay: 0.98s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 1.4rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step:nth-child(3) { border-right: 0; }
  .step:nth-child(n + 4) { border-top: 1px solid var(--line-p); }
  .index__head, .index__row { grid-template-columns: 3rem minmax(0, 1fr) 5rem 8.5rem 3.4rem; }
  .index__place, .index__head span:nth-child(5) { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(n + 3) { margin-top: 1.4rem; }
}

/* ---------- Without hover, or with no room for it: Index follows scrolling ---------- */
/* Keep in step with scrollIndex() in gallery.js. */
@media (max-width: 760px), (max-height: 500px), (hover: none) {
  .index__head { display: none; }
  .view--index { padding: 0; }
  .index__stage {
    position: sticky; top: var(--stick); z-index: 3;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem;
    padding: 1rem var(--gutter); background: var(--ink); border-bottom: 1px solid var(--line-i); cursor: pointer;
  }
  .index__preview { position: relative; width: auto; height: min(34svh, 380px); aspect-ratio: 4 / 5; }
  .index__now { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem; min-width: 0; color: var(--muted-i); }
  .index__now-jp { order: -1; margin-bottom: 0.3rem; font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.1; font-weight: 600; letter-spacing: 0.02em; color: var(--shu); }
  .index { padding-bottom: 46svh; } /* far enough for the last row to reach the picture */
  .index__row { grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 0.8rem; padding: 0.85rem 0; }
  .index__style, .index__place, .index__year { display: none; }
  .index__title { font-size: clamp(2.1rem, 10.5vw, 3.8rem); }
  .index.is-hovering .index__row:not(.is-active) { opacity: 0.32; }
  .index__row.is-active .index__title { transform: translateX(0.5rem); }
}

/* ---------- Phones, either way up. Keep in step with isMobile() in util.js ---------- */
@media (max-width: 760px), (max-height: 500px) {
  /* The top 12px is shared with .bar-tint, so what pins to the top starts below it. */
  :root { --nav-h: calc(60px + var(--safe-t)); --bar-h: 60px; --stick: var(--bar-h); --dock: 72px; --nav-bg: var(--paper); }
  body { font-size: 16px; }
  .on-ink, .is-menu { --nav-bg: var(--ink); background: var(--ink); }
  .grain { inset: 0; animation: none; opacity: 0.05; }

  /* nav: solid colours instead of a blend; hides on the way down */
  .nav {
    gap: 1rem; color: var(--ink); mix-blend-mode: normal;
    padding: calc(var(--safe-t) + 8px) var(--gutter) 0 calc(var(--gutter) + 48px);
    transition: translate 0.5s var(--ease-out), color 0.35s;
  }
  .nav::before {
    content: ''; position: absolute; z-index: -1; inset: 0 0 -18px; pointer-events: none;
    background: linear-gradient(var(--nav-bg) 62%, transparent); transition: opacity 0.35s;
  }
  .at-hero .nav::before, .is-menu .nav::before { opacity: 0; }
  .nav__name { font-size: 1.55rem; transition: opacity 0.35s; }
  .at-hero:not(.is-menu) .nav__name { opacity: 0; pointer-events: none; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu {
    display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.15rem;
    background: var(--ink); color: var(--paper); border-color: var(--ink);
    transition: background-color 0.35s, color 0.35s, border-color 0.35s;
  }
  .on-ink .nav, .is-menu .nav { color: var(--paper); }
  .on-ink .nav__menu, .is-menu .nav__menu { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .seal { width: 36px; height: 36px; top: calc(var(--safe-t) + 16px); font-size: 1.2rem; transition: translate 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
  .nav-hidden .nav, .nav-hidden .seal { translate: 0 -170%; }

  .menu {
    z-index: 57; justify-content: flex-end; gap: 1.4rem; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--nav-h) + 1rem) var(--gutter) calc(1.4rem + var(--safe-b));
  }
  .menu__links a { padding: 0.55rem 0; font-size: clamp(3.2rem, 17vw, 5.6rem); }
  .menu__foot a { display: inline-block; padding: 0.6rem 0; }

  /* hero: a poster. The water above, the words below on paper it sinks into. */
  .hero { min-height: 480px; }
  .hero__ui {
    inset: auto 0 0 0; display: flex; flex-direction: column; color: var(--ink); mix-blend-mode: normal;
    padding: 18svh var(--gutter) calc(0.2rem + var(--safe-b));
    background: linear-gradient(to top,
      var(--paper) calc(100% - 18svh),
      rgba(236, 230, 218, 0.86) calc(100% - 13.5svh),
      rgba(236, 230, 218, 0.5) calc(100% - 8svh),
      rgba(236, 230, 218, 0.16) calc(100% - 3svh),
      var(--paper-0));
  }
  .hero__title {
    position: static; order: 1; margin: 0 0 0.85rem -0.03em;
    font-size: calc((100vw - 2 * var(--gutter)) / 3); line-height: 0.84;
  }
  .hero__lede { position: static; order: 2; max-width: none; gap: 0.5rem; }
  .hero__lede-text { font-size: clamp(1.3rem, 5.6vw, 1.75rem); line-height: 1.08; text-wrap: balance; }
  .hero__lede-text br { display: none; }
  .hero__vertical { display: none; }
  .hero__hint {
    position: static; order: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; margin-bottom: 0.7rem; text-align: left;
  }
  .hero__foot {
    position: static; order: 3; margin-top: 0.8rem; padding-top: 0.1rem; border-top: 1px solid var(--line-p);
    color: #3a3631;
  }
  .hero__foot span:nth-child(2) { display: none; }
  .hero__status { min-height: 44px; }
  .hero__status i { background: var(--shu); }
  .hero__scroll { min-height: 44px; }

  .ink-edge { height: 50vh; }
  .ink-edge--rise { top: -39vh; }
  .ink-edge--drip { bottom: -40vh; }

  /* the gallery bar: one row of filters; the views float within thumb's reach */
  .work__bar { z-index: 56; top: 0; height: var(--bar-h); min-height: 0; flex-direction: row; gap: 0; padding: 6px 0 0; }
  .filters { flex: 1; min-width: 0; align-items: center; height: 100%; padding: 0 2.4rem 0 var(--gutter); }
  .chip { min-height: 38px; padding: 0 0.95rem; }
  .chip:active { background: rgba(236, 230, 218, 0.12); }
  .views {
    position: fixed; z-index: 2; left: 50%; bottom: calc(14px + var(--safe-b)); translate: -50% 0; padding: 4px;
    background: rgba(28, 26, 23, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  }
  .in-gallery:not(.is-menu):not(.is-detail) .views { opacity: 1; visibility: visible; }
  .views button { min-height: 42px; padding: 0 1rem; }

  /* Flow: a deck you swipe through, sized so a whole card fits on screen */
  .flow__sticky { position: static; height: auto; overflow: visible; padding: 1.1rem 0 calc(var(--dock) + 1.4rem); }
  .flow__track {
    --card-w: min(80vw, calc((100svh - var(--bar-h) - 12.5rem) * 0.8));
    flex-direction: row; align-items: flex-start; width: auto; height: auto; gap: 14px;
    padding: 0 calc((100vw - var(--card-w)) / 2);
    transform: none !important; will-change: auto;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .flow__track::-webkit-scrollbar { display: none; }
  .card, .card:nth-child(n) { flex: 0 0 var(--card-w); width: var(--card-w); align-self: flex-start; margin: 0; gap: 0.8rem; scroll-snap-align: center; }
  .card__media, .card:nth-child(n) .card__media { height: auto; width: 100%; }
  .card__cap { transition: opacity 0.4s; }
  .card:not(.is-current) .card__cap { opacity: 0.4; }
  .card__title { font-size: 1.7rem; }
  .card__meta { font-size: 0.68rem; }
  .card--end, .card--end:nth-child(n) {
    align-self: flex-start !important; aspect-ratio: 4 / 5; justify-content: flex-end; gap: 1rem; padding: 1.4rem;
    border: 1px solid var(--line-i);
  }
  .card__end-title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .card__end-cta { color: var(--shu); }
  .flow__ui { position: static; margin: 0.9rem var(--gutter) 0; gap: 1rem; }
  .flow__cue { display: none; }
  .flow__arrows { display: inline-flex; gap: 0.35rem; }
  .flow__arrows button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-i); border-radius: 50%; color: var(--paper); }
  .flow__arrows button:active { background: rgba(236, 230, 218, 0.14); }

  /* Pond: pins while the page scrolls past; the scrolling drifts it (see updatePond) */
  .view--pond { height: 280vh; }
  .pond { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); }
  .pond__cap { font-size: 0.68rem; }
  .pond__hint { top: 0.9rem; bottom: auto; transition: opacity 0.5s; }
  .pond.is-touched .pond__hint { opacity: 0; }

  .marquee { padding: 8vh 0 24vh; }
  .marquee__inner { will-change: auto; }

  .btn-ink:active { scale: 0.98; }
  .field input, .field textarea { scroll-margin-top: 5rem; }
}

/* ---------- Narrow screens: one column ---------- */
@media (max-width: 760px) {
  .intro { padding: 13vh 0 38vh; } /* room for the ink to rise without swallowing unread text */
  .intro__soak { font-size: clamp(2.1rem, 9.6vw, 3.6rem); }
  .intro__grid, .studio__grid, .info__grid, .book__grid { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
  .intro__grid { margin-top: 6vh; }
  .eyebrow { margin-bottom: 1.8rem; }

  .work__head { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding-top: 7vh; padding-bottom: 5vh; }
  .work__title { font-size: clamp(3.1rem, 14vw, 5rem); }
  .work__note { max-width: 24rem; }

  .studio { padding: 22vh 0 12vh; }
  .studio__figure { position: relative; top: 0; }
  .studio__text { padding-top: 0; }
  .studio__text h2 { margin-bottom: 1.8rem; font-size: clamp(3rem, 14vw, 5rem); }
  .facts { margin-top: 2rem; }
  .facts div { grid-template-columns: 6.5rem minmax(0, 1fr); padding: 0.85rem 0; }
  .process { margin-top: 11vh; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step:nth-child(n) { border-right: 0; border-top: 1px solid var(--line-p); padding: 1.3rem 0 1.4rem; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); column-gap: 1rem; }
  .step__k { grid-row: span 2; margin: 0; font-size: 2.8rem; }
  .step::before { display: none; }

  .info { padding: 11vh 0 38vh; }
  .info h2 { font-size: clamp(3rem, 14vw, 5rem); }
  .info__grid { gap: 1.6rem; }
  .faq summary { padding: 1.15rem 0; font-size: 1.5rem; min-height: 44px; }

  .book { padding: 7vh 0 9vh; }
  .book__title { margin-bottom: 1.6rem; font-size: clamp(3.3rem, 15vw, 5.4rem); }
  .contact { margin-top: 2rem; }
  .contact li { grid-template-columns: 6.5rem minmax(0, 1fr); padding: 0.75rem 0; }
  .contact a { padding: 0.2rem 0; }
  .form { gap: 1.4rem; }
  .field label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .choice span { display: inline-flex; align-items: center; min-height: 42px; }
  .btn-ink { display: flex; justify-self: stretch; justify-content: space-between; }

  .footer { padding-bottom: calc(1.6rem + var(--safe-b)); }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__top a { display: inline-block; padding: 0.15rem 0; overflow-wrap: anywhere; }
  .footer__top-link { justify-self: start; }
  .footer__mark { margin: 6vh 0 2.4vh; }
  .footer__bottom { flex-wrap: wrap; font-size: 0.66rem; }

  .detail__bar { padding: calc(0.8rem + var(--safe-t)) var(--gutter) 1.2rem; }
  .detail__close { min-height: 42px; }
  .detail__grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; padding-bottom: 6vh; }
  .detail__media { position: relative; top: 0; }
  .compare { width: 100%; }
  .detail__title { margin: 0.7rem 0 0.4rem; font-size: clamp(3.8rem, 18vw, 6rem); }
  .detail__jp { font-size: 1.9rem; }
  .detail__desc { margin: 1.6rem 0; font-size: 1.1rem; }
  .detail__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; margin-bottom: 1.8rem; }
  .detail__meta div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; padding: 0.75rem 0; }
  .detail__meta div:first-child { grid-column: 1 / -1; }
  .detail__nav a { padding: 1.7rem var(--gutter) calc(1.7rem + var(--safe-b)); }
  .detail__nav b { font-size: clamp(1.9rem, 8.6vw, 3.4rem); }
}

/* ---------- Phones on their side: short, so things go side by side ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .menu { justify-content: center; gap: 0.6rem; padding-top: var(--nav-h); }
  .menu__links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; }
  .menu__links a { padding: 0.3rem 0; font-size: min(10vw, 15svh); }

  .hero { min-height: 0; }
  .hero__ui {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.6rem; align-items: end;
    padding-top: 26svh;
    background: linear-gradient(to top,
      var(--paper) calc(100% - 26svh),
      rgba(236, 230, 218, 0.84) calc(100% - 19svh),
      rgba(236, 230, 218, 0.46) calc(100% - 11svh),
      rgba(236, 230, 218, 0.14) calc(100% - 4svh),
      var(--paper-0));
  }
  .hero__title { grid-column: 1; margin: 0; font-size: min(32svh, 22vw); }
  .hero__lede { grid-column: 2; justify-items: end; gap: 0.3rem; margin-bottom: 0.4rem; text-align: right; }
  .hero__lede-text { font-size: 1.15rem; }
  .hero__hint { display: none; }
  .hero__foot { grid-column: 1 / -1; margin-top: 0.4rem; }

  .views { position: static; translate: none; flex: none; padding: 3px; margin-right: var(--gutter); background: none; box-shadow: none; opacity: 1; visibility: visible; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .views button { min-height: 34px; padding: 0 0.7rem; }

  .flow__sticky { padding: 0.7rem 0 0.7rem; }
  .flow__track { --card-w: auto; padding: 0 var(--gutter); gap: 1.4rem; }
  .card, .card:nth-child(n) { flex: none; width: auto; flex-direction: row; align-items: flex-end; gap: 0.9rem; }
  .card__media, .card:nth-child(n) .card__media { width: auto; height: calc(100svh - var(--bar-h) - 5rem); }
  .card__cap { width: 8.5rem; grid-template-columns: minmax(0, 1fr); }
  .card__no { grid-row: auto; }
  .card--end, .card--end:nth-child(n) { flex-direction: column; align-items: flex-start; height: calc(100svh - var(--bar-h) - 5rem); aspect-ratio: auto; width: 17rem; }
  .flow__ui { margin-top: 0.5rem; }

  .view--index { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .index__stage { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .index__preview { height: calc(100svh - var(--bar-h) - 2rem); }
  .index__now { display: none; }
  .index { padding-bottom: 60svh; }
  .index__title { font-size: clamp(2rem, 7svh + 1rem, 3rem); }

  .detail__grid { grid-template-columns: auto minmax(0, 1fr); gap: 4vw; }
  .detail__media { position: sticky; top: 4.4rem; }
  .compare { width: calc((100svh - 5.4rem) * 0.8); }
  .detail__title { margin-top: 0.5rem; font-size: clamp(3.4rem, 18svh, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .grain { animation: none; }
  .js [data-reveal] { transform: none; }
  .wi { transform: none; transition: none; }
  .hero__title .ch { transform: none; filter: none; }
}
