/* ==========================================================================
   Jonah Dworkin — Portfolio
   生成り paper · 墨 ink · 朱 vermilion
   ========================================================================== */

:root {
  /* Palette — ink and paper. The work supplies the colour; the site stays out of its way.
     墨   sumi      #161614            ink: text by day, the ground by night
     胡粉 gofun     #F1EFEA            shell white: the ground by day, text by night
     鈍色 nibi      #6B6964 / #8E8C86  dull grey: secondary text (both pass 4.5:1)
     薄墨 usuzumi   ink at 12%         thin ink: rules and hairlines
     茜   akane     #B7282E / #D2464A  madder red: only whatever you are touching (and what is passing)
     Red is never decoration. Nothing else gets a hue. */
  --bg: #F1EFEA;
  --ink: #161614;
  --muted: #6B6964;
  --line: rgba(22, 22, 20, 0.12);
  --accent: #B7282E;
  --on-accent: #F1EFEA;

  --serif: "Instrument Serif", "Shippori Mincho", "Times New Roman", serif;
  --jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(20px, 3vw, 48px);
  /* left edge of the right-hand column in a .rail row (inside a full-width block) */
  --rail-x: calc(2 * var(--pad) + (100% - 3 * var(--pad)) / 4);
  --menubar-h: 76px;
  --line-strong: color-mix(in srgb, var(--ink) 26%, transparent);
  --panel: color-mix(in srgb, var(--bg) 90%, var(--ink));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.jp { font-family: var(--jp); font-style: normal; text-transform: none; letter-spacing: 0.1em; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2.1vw, 2.15rem); line-height: 1.14; letter-spacing: -0.005em; }
.display-lg { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 5vw, 5.4rem); line-height: .95; letter-spacing: -0.02em; }
.display em, .display-lg em { font-style: italic; }

.label { color: var(--muted); }
.label .jp { color: var(--ink); font-size: 12px; margin-right: 12px; }

/* small label on the left, content on the right */
.rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: var(--pad);
  align-items: baseline;
}
.word { display: inline; }
[data-scramble] { display: inline-block; white-space: nowrap; }

/* page-to-page fade */
.curtain {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  pointer-events: none;
  animation: curtain-out .7s var(--ease) .05s both;
}
@keyframes curtain-out { to { opacity: 0; visibility: hidden; } }

/* ==========================================================================
   Bar — the only navigation (all pages)
   ========================================================================== */

.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--pad);
  pointer-events: none;
}
body:not([data-page="home"]) .bar::before {
  content: "";
  position: absolute; inset: 0 0 -24px 0;
  background: linear-gradient(to bottom, var(--bg) 40%, transparent);
  pointer-events: none;
}
.bar > * { position: relative; pointer-events: auto; }
.bar__brand { justify-self: start; }
.bar__links { display: flex; gap: clamp(20px, 4vw, 56px); }
.bar__contact { justify-self: end; }
.bar a { transition: color .3s; }
.bar__links a:hover, .bar__contact:hover { color: var(--accent); }
[data-page="work"] .bar__links a[href="work.html"],
[data-page="about"] .bar__links a[href="about.html"] { color: var(--muted); }

/* ==========================================================================
   Home — a sound wave written in characters, then the work
   ========================================================================== */

.wave { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.home { position: relative; z-index: 1; }

.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; }
.hero__line { position: absolute; left: var(--pad); bottom: var(--pad); font-weight: 400; }
.hero__hint {
  position: absolute; left: 50%; bottom: var(--pad);
  transform: translateX(-50%);
  display: flex; gap: 28px;
  color: var(--muted);
  white-space: nowrap;
}

.reel { position: relative; padding: 18vh var(--pad) calc(var(--pad) + 40px); }

.reel__row { display: block; padding: 22px 0 64px; }
.reel__meta { display: flex; justify-content: flex-end; padding-bottom: 14px; }
.reel__go { color: var(--muted); transition: color .3s, transform .5s var(--ease); }
.reel__row:hover .reel__go { color: var(--accent); transform: translateX(4px); }

.reel__strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
}
.thumb, .decode { position: relative; display: block; }
.thumb { aspect-ratio: 720 / 1565; }
.thumb img, .thumb video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: 7% / 3.2%;
  filter: grayscale(1) contrast(1.04);
  transition: filter .7s var(--ease);
}
.thumb video { opacity: 0; transition: opacity .4s, filter .7s var(--ease); }
.thumb.is-playing video { opacity: 1; }
.reel__row:hover .thumb img, .reel__row:hover .thumb video { filter: none; }
.reel__row:hover .thumb { box-shadow: none; }
.reel:hover .reel__row:not(:hover) { opacity: .45; }
.reel__row { transition: opacity .6s var(--ease); }

/* character decode overlay (home thumbs and case-study screens) */
.decode > img { display: block; }
.decode__code { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }


.controls {
  position: fixed;
  right: var(--pad); bottom: var(--pad);
  z-index: 40;
  display: flex; align-items: center; gap: 18px;
}
.controls button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s;
}
.controls .jp { margin-right: 6px; }
.controls b { font-weight: 400; }
.controls button[aria-pressed="true"] { color: var(--ink); }
.controls button:hover { color: var(--accent); }
.controls__sep { width: 1px; height: 10px; background: var(--line); }

/* ==========================================================================
   Work / about pages
   ========================================================================== */

.intro { padding: 26vh var(--pad) 4vh; }
.intro__text { max-width: 26em; }

.next {
  min-height: 90vh;
  padding: 26vh var(--pad) var(--pad);
  grid-template-rows: auto 1fr auto;
}
.next__link { justify-self: start; transition: color .3s; }
.next__arrow { display: inline-block; transition: transform .6s var(--ease); }
.next__link:hover { color: var(--accent); font-style: italic; }
.next__link:hover .next__arrow { transform: translateX(12px); }

/* ==========================================================================
   Projects
   ========================================================================== */

.project { padding: 26vh 0 0; }
.project__head, .anno-wrap { padding-left: var(--pad); padding-right: var(--pad); }
.project__title { display: flex; align-items: flex-start; gap: 16px; }
.project__jp { writing-mode: vertical-rl; font-size: 13px; letter-spacing: .35em; color: var(--muted); line-height: 1; padding-top: .3em; }
.project__text { display: grid; gap: 8px; max-width: 34em; margin-top: 28px; color: var(--muted); }
.project__text p:first-child { color: var(--ink); font-size: 15px; }

/* shared screen look: no bezel, hairline edge */
.shot img, .screens img, .screens video, .anno__phone img {
  width: 100%;
  aspect-ratio: 720 / 1565;
  object-fit: cover;
  object-position: top center;
  border-radius: 8% / 3.7%;
  box-shadow: 0 0 0 1px var(--line);
  background: rgba(127, 127, 127, .08);
}
figcaption { margin-top: 12px; color: var(--muted); }

.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  margin: 12vh var(--pad) 0 var(--rail-x);
  padding-bottom: 6vh;
}

/* ---- horizontal gallery: native swipe by default, pinned on desktop ---- */
.hscroll {
  position: relative;
  margin-top: 12vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll__track {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  width: max-content;
  padding: 0 var(--pad);
}
.shot { flex: none; scroll-snap-align: start; scroll-margin-left: var(--pad); }
.shot img { width: auto; height: min(58vh, 560px); }
.hscroll__progress { display: none; }

.hscroll.is-pinned { height: 100vh; height: 100svh; overflow: hidden; scroll-snap-type: none; }
.hscroll.is-pinned .hscroll__track { height: 100%; padding: 0 12vw 0 var(--rail-x); will-change: transform; }
.hscroll.is-pinned .shot img { height: min(62vh, 640px); }
.hscroll.is-pinned .hscroll__progress {
  display: block;
  position: absolute; left: var(--rail-x); right: var(--pad); bottom: calc(var(--pad) + 8px);
}
.hscroll__progress i { display: block; position: relative; height: 1px; background: var(--line); }
.hscroll__progress b { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* ---- annotated detail ---- */
.anno-wrap { margin-top: 20vh; align-items: start; }
.anno {
  --pw: clamp(200px, 17vw, 270px);
  --gap: clamp(1.4rem, 3vw, 3rem);
  position: relative;
  height: calc(var(--pw) * 2.1736);
}
.anno__phone { position: absolute; left: 50%; top: 0; width: var(--pw); transform: translateX(-50%); }
.anno__dot {
  position: absolute;
  left: calc(var(--x) * 100%); top: var(--y);
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform .6s var(--ease) .5s;
}
.anno.is-in .anno__dot { transform: scale(1); }
.anno__note { position: absolute; top: var(--y); width: min(20vw, 240px); }
.anno__note--l { right: calc(50% + var(--pw) / 2 + var(--gap)); text-align: right; }
.anno__note--r { left: calc(50% + var(--pw) / 2 + var(--gap)); }
.anno__note::after {
  content: ""; position: absolute; top: 0; height: 1px; background: var(--ink); opacity: .3;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}
.anno__note--l::after { left: 100%; width: calc(var(--gap) + var(--pw) * var(--x)); transform-origin: right; }
.anno__note--r::after { right: 100%; width: calc(var(--gap) + var(--pw) * (1 - var(--x))); transform-origin: left; }
.anno.is-in .anno__note::after { transform: scaleX(1); }
.anno__note h4 {
  position: absolute; bottom: 100%; left: 0; right: 0;
  padding-bottom: 8px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.15rem, 1.4vw, 1.45rem); line-height: 1;
  white-space: nowrap;
}
.anno__note h4 b { color: var(--muted); font-weight: 400; margin-right: .6em; vertical-align: .25em; }
.anno__note p { padding-top: 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.anno__note h4, .anno__note p { opacity: 0; transition: opacity 1s var(--ease) .3s; }
.anno.is-in .anno__note h4, .anno.is-in .anno__note p { opacity: 1; }

/* ==========================================================================
   About + contact
   ========================================================================== */

.about { padding: 26vh var(--pad) 18vh; }
.about__text { max-width: 28em; }

.contact {
  min-height: 90vh;
  padding: 16vh var(--pad) var(--pad);
  grid-template-rows: auto 1fr auto;
}
.contact__jp { font-size: 12px; letter-spacing: .45em; color: var(--muted); margin-bottom: 20px; }
.contact__mail {
  display: inline-block;
  font-size: clamp(1.8rem, 4vw, 4.2rem);
  background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.contact__mail:hover { background-size: 100% 1px; color: var(--accent); }
.contact__mail .digit { font-family: var(--jp); font-size: .9em; }
.contact__foot {
  grid-column: 1 / -1;
  align-self: end;
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--muted);
}
.contact__foot .jp { font-size: 11px; }

/* ==========================================================================
   Project pages — the home page's voice: ink, mono, characters
   ========================================================================== */

.proj { position: relative; z-index: 1; }

.proj-hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; }
.proj-hero__title {
  position: absolute; left: var(--pad); bottom: var(--pad);
  display: grid; gap: 2px;
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.12;
}
.proj-hero__title span:first-child { color: var(--muted); }
.proj-hero__hint {
  position: absolute; left: 50%; bottom: var(--pad);
  transform: translateX(-50%);
  display: flex; gap: 28px;
  color: var(--muted);
  white-space: nowrap;
}
.proj-hero__hint .jp { color: var(--ink); margin-right: 8px; font-size: 11px; }

.proj-land { padding: 18vh var(--pad) 8vh; }
.proj-land__strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  max-width: 1180px;
  margin: 22px auto 0;
}

/* screens sit in grey and take on their colour in the middle of the view, or when touched */
.proj .thumb img,
.proj .decode img,
.proj .film__media video { filter: grayscale(1) contrast(1.04); transition: filter .9s var(--ease); }
.proj .is-color img,
.proj .is-color video,
.proj .thumb:hover img,
.proj .decode:hover img,
.proj .film__media:hover video { filter: none; }

.proj-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--pad);
  margin: 0 var(--pad);
  padding: 12vh 0 6vh;
  border-top: 1px solid var(--line);
}
.proj-spec { display: grid; align-content: start; }
.proj-spec div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
.proj-spec dt { color: var(--muted); }
.proj-spec dd { margin: 0; }
.proj-info__lede { font-family: var(--mono); font-size: clamp(16px, 1.55vw, 21px); line-height: 1.55; max-width: 42ch; }

.proj-chapter { padding: 16vh 0 2vh; }
.proj-chapter__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: var(--pad);
  padding: 0 var(--pad);
}
.proj-chapter__num { color: var(--muted); grid-row: span 2; }
.proj-chapter__head h2 { font-weight: 400; }
.proj-chapter__text { grid-column: 2; margin-top: 12px; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--muted); max-width: 54ch; }

.proj .hscroll { margin-top: 8vh; }
.proj-grid.screens { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 10vh var(--pad) 0; padding-bottom: 0; }
.proj-chapter > .anno { margin: 14vh var(--pad) 0; }
.proj .anno__note h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
.proj .anno__note h4 b { vertical-align: 0; }
.proj .anno__note p { font-family: var(--mono); font-size: 12px; }

.proj-films {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 28px);
  margin: 10vh var(--pad) 0;
}
.film__media { display: block; aspect-ratio: 720 / 1565; }
.film__media video { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 8% / 3.7%; box-shadow: 0 0 0 1px var(--line); background: rgba(127, 127, 127, .08); }
.film figcaption b { color: var(--muted); font-weight: 400; margin-right: .6em; }
.film figcaption span { display: block; margin-top: 8px; text-transform: none; letter-spacing: 0; line-height: 1.55; }

.proj-next {
  display: block;
  margin: 12vh var(--pad) 0;
  padding: 3.5vh 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color .4s;
}
.proj-next__label { color: var(--muted); }
.proj-next__title { display: block; margin-top: 0; font-size: clamp(2rem, 5.5vw, 5.5rem); line-height: 1; letter-spacing: -0.02em; }
.proj-next:hover { color: var(--accent); }
.proj-foot { display: flex; justify-content: space-between; padding: 16px var(--pad) var(--pad); color: var(--muted); }
.proj-foot a { color: var(--ink); transition: color .3s; }
.proj-foot a:hover { color: var(--accent); }

/* Cue — the landing is a composed stage, Today in the middle */
.proj-land--stage { padding-top: 16vh; }
.proj-land--stage .proj-land__strip { display: flex; justify-content: center; align-items: center; }
.proj-land--stage .thumb { flex: none; width: 12%; }
.proj-land--stage .thumb:nth-child(2), .proj-land--stage .thumb:nth-child(4) { width: 15.5%; }
.proj-land--stage .thumb:nth-child(3) { width: 20%; }

/* Cue — a crate of entries you flip through, one day at a time */
.crate { position: relative; height: 100vh; height: 100svh; margin-top: 6vh; }
.crate__stage {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--pad);
  align-items: center;
  padding: calc(var(--pad) + 56px) var(--pad) var(--pad);
}
.crate__caption { display: grid; gap: 14px; align-content: center; max-width: 34ch; }
.crate__day { color: var(--muted); }
.crate__title { font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }
.crate__text { font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--muted); }
.crate__count { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: var(--muted); }
.crate__count > b { color: var(--ink); font-weight: 400; margin-right: -8px; }
.crate__bar { position: relative; display: block; width: 140px; height: 1px; background: var(--line); }
.crate__bar b { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.crate__cards {
  position: relative;
  justify-self: center;
  height: min(70vh, 660px);
  aspect-ratio: 720 / 1565;
  perspective: 1400px;
}
.crate__card {
  position: absolute; inset: 0;
  margin: 0;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.crate__card .decode, .crate__card img { width: 100%; height: 100%; }
.crate__card img {
  object-fit: cover; object-position: top center;
  border-radius: 8% / 3.7%;
  box-shadow: 0 0 0 1px var(--line), 0 34px 60px -32px rgba(0, 0, 0, .6);
  filter: grayscale(1) contrast(1.04);
  transition: filter .8s var(--ease);
}
.crate__card.is-front img { filter: none; }

/* Apple Music — only the recordings, in full colour */
.proj-land--films .proj-land__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1120px; }
.proj-land--films .thumb img, .proj-land--films .thumb video { filter: none !important; }
.proj-land--films .thumb video { background: transparent; box-shadow: none; }
.proj-land--films + .proj-next { margin-top: 10vh; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Cue — a ring of phones you turn by scrolling */
.ring { position: relative; height: 100vh; height: 100svh; overflow: hidden; --ph: min(64vh, 640px); --pw: calc(var(--ph) * 0.47); }
.ring__stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1900px; perspective-origin: 50% 42%; }
.ring__spin { position: relative; width: var(--pw); height: var(--ph); transform-style: preserve-3d; will-change: transform; }
.ring__item { position: absolute; inset: 0; margin: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ring__phone {
  width: 100%; height: 100%;
  padding: calc(var(--pw) * 0.03);
  /* --landed: 0 while the characters are still landing on this phone, 1 once its screen has taken over */
  background: rgba(13, 13, 12, var(--landed, 1));
  border-radius: calc(var(--pw) * 0.145);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) calc(var(--landed, 1) * 100%), transparent), 0 50px 100px -50px rgba(0, 0, 0, calc(.7 * var(--landed, 1)));
}
.ring .ring__screen { display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: calc(var(--pw) * 0.118); overflow: hidden; }
.ring .ring__screen img, .ring .ring__screen video { border-radius: 0; filter: grayscale(.5) brightness(.92) !important; transition: filter .6s var(--ease), opacity .4s; }
.ring .ring__screen video { background: transparent; box-shadow: none; }
.ring .ring__item.is-front .ring__screen img, .ring .ring__item.is-front .ring__screen video { filter: none !important; }
.ring + .proj-info { margin-top: 0; }
.ring + .proj-next { margin-top: 4vh; }
/* a single closing line instead of the spec table */
.proj-info--short { display: block; padding: 6vh 0 0; border-top: 0; text-align: center; }
.proj-info--short .proj-info__lede { margin: 0 auto; max-width: 36ch; }

/* ==========================================================================
   About — mono no aware
   ========================================================================== */

.about-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; -webkit-user-select: none; user-select: none; } /* clicks here are gusts, not selections */
.blossom { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.about-hero__jp {
  position: absolute;
  right: calc(var(--pad) + 3vw); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: .32em;
}
.about-hero__gloss { position: absolute; left: var(--pad); bottom: var(--pad); display: grid; gap: 4px; }
.about-hero__gloss span:last-child { color: var(--muted); }

[data-page="about"] .about { display: block; padding: calc(12vh - var(--pad)) var(--pad) 0; } /* one 12vh rhythm from the gloss (which sits var(--pad) above the hero edge): about, contact, foot */
[data-page="about"] .about .label { margin-bottom: 20px; }
[data-page="about"] .about__text { font-family: var(--mono); font-size: clamp(16px, 1.55vw, 21px); line-height: 1.6; max-width: 46ch; }
[data-page="about"] .contact { display: block; min-height: 0; padding: 12vh var(--pad) var(--pad); }
[data-page="about"] .contact .label { margin-bottom: 20px; }
[data-page="about"] .contact__mail { display: inline-block; font-family: var(--mono); font-size: clamp(1.3rem, 3.4vw, 3.2rem); letter-spacing: -0.01em; text-transform: none; }
[data-page="about"] .contact__foot { margin-top: 12vh; }

/* ==========================================================================
   Small screens
   ========================================================================== */

@media (max-width: 799px) {
  .about-hero__jp { top: calc(var(--pad) + 64px); left: var(--pad); right: auto; transform: none; font-size: 22px; } /* the tall tree's crown takes the top right */
  .proj-land--films .proj-land__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ring { --ph: 50vh; }
  .proj-land--stage .thumb { width: 15%; }
  .proj-land--stage .thumb:nth-child(2), .proj-land--stage .thumb:nth-child(4) { width: 19%; }
  .proj-land--stage .thumb:nth-child(3) { width: 26%; }
  .crate__stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 24px; }
  .crate__cards { order: -1; height: 52vh; }
  .crate__caption { max-width: none; gap: 8px; }
  .proj-hero__hint { display: none; }
  .proj-land__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proj-info, .proj-chapter__head { grid-template-columns: 1fr; row-gap: 14px; }
  .proj-chapter__num { grid-row: auto; }
  .proj-chapter__text { grid-column: 1; }
  .proj-films { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-template-columns: 1fr; row-gap: 20px; }

  .bar { grid-template-columns: auto 1fr auto; gap: 14px; }
  .bar__links { justify-content: center; gap: 14px; }
  .hero__line { bottom: calc(var(--pad) + 30px); right: var(--pad); }
  .hero__hint { display: none; }
  .reel__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .controls { gap: 12px; }


  .intro { padding-top: 18vh; }
  .project { padding-top: 18vh; }
  .hscroll { margin-top: 8vh; }

  .anno-wrap { margin-top: 14vh; }
  .anno { --pw: min(60vw, 280px); height: auto; display: flex; flex-direction: column; gap: 22px; }
  .anno__phone { position: relative; left: auto; transform: none; align-self: center; margin-bottom: 16px; }
  .anno__note { position: relative; top: auto; left: auto !important; right: auto !important; width: 100%; text-align: left; padding-top: 16px; border-top: 1px solid var(--line); }
  .anno__note::after { display: none; }
  .anno__note h4 { position: static; padding-bottom: 0; white-space: normal; }

  .screens {
    display: flex;
    gap: 12px;
    margin: 12vh 0 0;
    padding: 0 var(--pad) 6vh;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens figure { flex: none; width: 58vw; scroll-snap-align: start; scroll-margin-left: var(--pad); }

  .about { padding: 20vh var(--pad) 14vh; }
  .contact { min-height: 70vh; }
  .contact__foot .jp { display: none; }
}
