:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #333333;
  --sub: #6b6b6b;
  --line: #e6e6e6;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --header-h: 64px;
  --sans: "Inter", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-lang="en"] .ja { display: none !important; }
html:not([data-lang="en"]) .en { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.9 var(--sans);
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
svg { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.6;
}
.pre { white-space: pre-line; }
.hero-lead, .card-sub, .work-subtitle, .contact-lead, .card-title, .work-title, .more-text { word-break: auto-phrase; }
.arrow { width: 13px; height: 13px; flex: none; transition: transform .4s var(--ease); }
a:hover .arrow { transform: translate(2px, -2px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-right: auto; white-space: nowrap; }
.nav { display: flex; gap: 30px; }
.nav a, .lang button { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); transition: color .3s; }
.nav a:hover, .lang button:hover { color: var(--ink); }
.header-icons, .footer-icons { display: flex; gap: 16px; }
.header-icon svg, .footer-icon svg { width: 17px; height: 17px; }
.header-icon, .footer-icon { color: var(--sub); transition: color .3s; }
.header-icon:hover, .footer-icon:hover { color: var(--ink); }
.lang { display: flex; align-items: center; gap: 6px; color: #c8c8c8; font-size: 11px; }
.lang button[aria-pressed="true"] { color: var(--ink); }

/* hero: background video */
.hero {
  position: relative;
  margin-top: var(--header-h);
  height: min(calc(100vh - var(--header-h)), 56.25vw);
  height: min(calc(100svh - var(--header-h)), 56.25vw);
  min-height: 460px;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, 0) 70%);
}
.hero-text { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: clamp(36px, 6vw, 72px); }
.hero-name { margin: 0; font-weight: 300; font-size: clamp(40px, 5.6vw, 84px); letter-spacing: -.03em; line-height: 1; text-transform: uppercase; }
.hero-role { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 14px 0 0; font-size: clamp(14px, 1.3vw, 16px); letter-spacing: .12em; }
.hero-catch { margin: 22px 0 0; font-weight: 300; font-size: clamp(17px, 1.75vw, 24px); letter-spacing: .06em; line-height: 1.6; word-break: auto-phrase; }
.hero-catch .en { letter-spacing: 0; }
.hero-catch-sub { display: block; margin-top: 10px; line-height: 1.6; font-size: clamp(11px, 0.95vw, 13px); letter-spacing: .08em; opacity: .85; }
.hero-now {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(36px, 6vw, 72px);
  display: flex; align-items: center; gap: 10px;
  color: #fff; opacity: .9; transition: opacity .3s;
}
.hero-now { text-transform: none; letter-spacing: .04em; font-size: 12.5px; font-weight: 400; }
.hero-now-year { font-size: 11px; letter-spacing: .08em; }
.video-block figcaption > span:first-child, .reel figcaption > span:first-child { text-transform: none; letter-spacing: .04em; font-size: 12px; font-weight: 400; }
/* scroll cue: a thin line at the bottom of the top video */

.hero-now:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.hero-now-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 2s ease-in-out infinite; }
.hero-now-year { opacity: .7; }
@keyframes pulse { 50% { opacity: .25; } }

/* sections */
.section { padding-top: clamp(96px, 12vw, 160px); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-title { margin: 0; font-weight: 300; font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.03em; line-height: 1.1; }
.count { color: var(--sub); }

/* theme filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: calc(clamp(44px, 6vw, 80px) * -0.45) 0 clamp(40px, 5vw, 64px); }
.filter {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; letter-spacing: .04em; color: var(--sub);
  transition: color .3s, border-color .3s, background .3s;
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-count { font-size: 11px; opacity: .6; font-variant-numeric: tabular-nums; }
.work-grid.is-filtered .card--feature { grid-column: auto; }
.work-grid.is-filtered .card:nth-child(odd):not(.card--feature) { margin-top: 0; }
.work-grid.is-filtered .card.is-offset { margin-top: clamp(0px, 9vw, 128px); }
.card[hidden] { display: none; }

/* works grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 4vw, 64px);
  row-gap: clamp(64px, 8vw, 120px);
  align-items: start;
}
.card { display: block; }
.card--feature { grid-column: 1 / -1; }
.card:nth-child(odd):not(.card--feature) { margin-top: clamp(0px, 9vw, 128px); }
.card-media { position: relative; overflow: hidden; background: #fff; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.card-media img { transition: opacity .5s ease, transform 1.4s var(--ease); }
.card-media img.is-hidden { opacity: 0; }
.card-media video { opacity: 0; transition: opacity .5s ease; background: #fff; }
.card-media video.is-on { opacity: 1; }
.card:hover .card-media img { transform: scale(1.015); }
.card-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  padding: 4px 10px 4px 8px; letter-spacing: .12em;
  transition: opacity .4s;
}
.card-badge svg { width: 11px; height: 11px; }
.card-media.is-playing .card-badge { opacity: 0; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--sub); }
.card-title { margin: 8px 0 4px; font-weight: 400; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.01em; line-height: 1.4; }
.card--feature .card-title { font-size: clamp(24px, 2.8vw, 34px); }
.card-sub { margin: 0; max-width: 34em; color: var(--sub); font-size: 13.5px; line-height: 1.8; }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.card--more {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.card--more.card { margin-top: 0; }
.updates { padding-top: clamp(56px, 7vw, 96px); }
.work-reels { margin-top: clamp(64px, 8vw, 112px); }
.card--more .label { color: var(--sub); margin: 0; }
.more-text { margin: 12px 0 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; line-height: 1.7; max-width: 20em; }

/* contact list (icons) */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; transition: padding .5s var(--ease); }
.contact-item > svg:first-child { width: 22px; height: 22px; flex: none; }
.contact-label { width: 92px; color: var(--sub); flex: none; }
.contact-item .handle { font-size: clamp(18px, 2.2vw, 26px); font-weight: 300; line-height: 1.3; letter-spacing: 0; word-break: break-all; margin-right: auto; }
.contact-item:hover { padding-left: 10px; }
.contact-list--compact { margin-top: 26px; }
.contact-list--compact .contact-item { padding: 12px 0; gap: 12px; }
.contact-list--compact .contact-item > svg:first-child { width: 18px; height: 18px; }
.contact-list--compact .contact-label { width: 76px; }
.contact-list--compact .handle { font-size: clamp(15px, 1.4vw, 17px); }

/* news */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 120px 110px 1fr auto; align-items: center; gap: 24px; padding: 18px 0; }
.news-thumb { display: block; width: 120px; aspect-ratio: 4 / 3; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-date { color: var(--sub); font-variant-numeric: tabular-nums; }
.news-title { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; }
.news-arrow { color: var(--sub); transition: transform .4s var(--ease); }
.news-item:hover .news-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.news-item:hover .news-arrow { transform: translateX(4px); color: var(--ink); }
.news-heading { margin: 12px 0 0; max-width: 28em; font-weight: 300; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.01em; line-height: 1.45; word-break: auto-phrase; }
.news-credit { color: var(--sub); margin-top: 4px; }
.news-back { margin-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.news-work { border-bottom: 1px solid var(--line); }
.work-cover--loop video { width: 100%; height: auto; max-height: 88vh; object-fit: contain; display: block; background: #fff; }

/* about */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-portrait { margin: 0; }
.about-name { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; letter-spacing: .08em; }
.about-name .label { margin-left: 16px; color: var(--sub); }
.about-role { color: var(--sub); margin: 6px 0 28px; }
.about-body p:not(.label) { margin: 0 0 1.2em; color: var(--ink-2); max-width: 38em; }
.cv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(72px, 9vw, 128px); }
.cv h4 { margin: 0 0 14px; color: var(--sub); }
.cv ul { list-style: none; margin: 0; padding: 0; }
.cv li {
  display: grid; grid-template-columns: 60px 1fr; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.75; color: var(--ink-2);
}
.cv li:last-child { border-bottom: 1px solid var(--line); }
.cv-link { display: inline; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.cv-link .arrow { display: inline-block; width: 11px; height: 11px; margin-left: 4px; vertical-align: -1px; }
.cv-link:hover { border-color: var(--ink); }
.cv .y { color: var(--sub); font-variant-numeric: tabular-nums; }

/* contact */
.contact { padding-bottom: clamp(96px, 12vw, 160px); }
.contact-lead { color: var(--ink-2); margin: 0 0 28px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; padding-bottom: 26px; color: var(--sub); }

/* work page */
.work-head { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); }
.back { color: var(--sub); transition: color .3s; }
.back:hover { color: var(--ink); }
.work-kicker { color: var(--sub); margin: 24px 0 0; }
.work-title { margin: 8px 0 0; font-weight: 300; font-size: clamp(34px, 5vw, 68px); letter-spacing: -.03em; line-height: 1.1; }
.work-subtitle { margin: 10px 0 0; color: var(--ink-2); font-size: clamp(15px, 1.5vw, 18px); }
.work-cover, .work-lead { margin: clamp(28px, 3.5vw, 48px) auto 0; max-width: 1440px; padding: 0 var(--gutter); }
.work-cover img { width: 100%; max-height: 88vh; object-fit: contain; }
.work-lead .video-block { margin: 0; }
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); max-width: 1100px; margin: 0 auto; }
.reels--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.reels--1 { grid-template-columns: minmax(0, 1fr); max-width: 400px; }
.reel { margin: 0; }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.reel figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--sub); }
.reel figcaption a { display: inline-flex; align-items: center; gap: 6px; }
.reel figcaption a:hover { color: var(--ink); }
.work-body { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(56px, 8vw, 112px); }
.work-meta dl { margin: 0; }
.work-meta div { padding: 14px 0; border-top: 1px solid var(--line); }
.work-meta div:last-child { border-bottom: 1px solid var(--line); }
.work-meta dt { color: var(--sub); margin-bottom: 4px; }
.work-meta dd { margin: 0; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.links { list-style: none; margin: 0; padding: 0; }
.links a { display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.links a:hover { border-color: var(--ink); }
.papers li + li { margin-top: 6px; }
.papers a { display: inline; line-height: 1.7; }
.papers .arrow { display: inline-block; width: 11px; height: 11px; margin-left: 4px; vertical-align: -1px; }
.work-text p { margin: 0 0 1.5em; max-width: 36em; font-size: 15px; line-height: 2.05; color: var(--ink-2); }
.work-text p.en { line-height: 1.85; }
.work-text p:first-child { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.9; color: var(--ink); }

.work-videos { margin-top: clamp(72px, 10vw, 136px); }
.video-block { margin: 0 0 clamp(48px, 6vw, 80px); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; }
.video img, .video .video-loop { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.video img { transition: opacity .6s; }
.video:hover img { opacity: .88; }
.play {
  position: absolute; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px);
  width: clamp(56px, 6vw, 76px); height: clamp(56px, 6vw, 76px); border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  transition: transform .5s var(--ease);
}
.play svg { width: 34%; height: 34%; margin-left: 6%; }
.play--wide { width: auto; height: auto; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 18px; font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.play--wide svg { width: 16px; height: 16px; margin: 0; }
.video:hover .play { transform: scale(1.05); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--sub); }
.video-block figcaption a { display: inline-flex; align-items: center; gap: 6px; }
.video-block figcaption a:hover { color: var(--ink); }

.exhibits { margin-top: clamp(72px, 9vw, 120px); }
.ex-count { color: var(--sub); }
.ex-group { margin-top: 28px; }
.ex-group-title { margin: 0 0 6px; color: var(--sub); font-weight: 400; text-transform: none; letter-spacing: .08em; font-size: 12px; }
.exhibit { border-bottom: 1px solid var(--line); }
.ex-group .exhibit:first-of-type { border-top: 1px solid var(--line); }
.exhibit summary {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 0; cursor: pointer; list-style: none;
}
.exhibit summary::-webkit-details-marker { display: none; }
.ex-no { width: 28px; color: var(--sub); font-size: 12px; font-variant-numeric: tabular-nums; flex: none; }
.ex-title { font-size: clamp(16px, 1.6vw, 20px); font-weight: 400; margin-right: auto; }
.ex-thumb { width: 96px; height: 54px; object-fit: cover; flex: none; transition: opacity .3s; }
.exhibit[open] .ex-thumb { opacity: 0; }
.ex-toggle { position: relative; width: 14px; height: 14px; flex: none; }
.ex-toggle::before, .ex-toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transition: transform .4s var(--ease); }
.ex-toggle::after { transform: rotate(90deg); }
.exhibit[open] .ex-toggle::after { transform: rotate(0deg); }
.exhibit summary:hover .ex-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ex-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); padding: 6px 0 28px 46px; }
.ex-body:not(:has(.ex-image)) { grid-template-columns: 1fr; }
.ex-image video { width: 100%; height: auto; background: #000; aspect-ratio: auto; }
.ex-image video.ex-loop { aspect-ratio: 16 / 9; background: #fff; }
.ex-text p { margin: 0 0 1em; font-size: 14px; line-height: 1.95; color: var(--ink-2); max-width: 40em; }
.ex-text .ex-credit { font-size: 12px; color: var(--sub); line-height: 1.7; }
.ex-text .ex-note { color: var(--sub); font-size: 10.5px; }
.ex-link { display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.doc { margin-top: clamp(56px, 8vw, 104px); }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 18px; }
.doc-head h2 { margin: 0; color: var(--sub); }
.doc-pdf { display: inline-flex; align-items: center; gap: 6px; }
.doc-pdf:hover { text-decoration: underline; text-underline-offset: 4px; }
.doc-image { margin: 0; border: 1px solid var(--line); }
.video--file { cursor: default; }
.video--file video { width: 100%; height: 100%; object-fit: contain; }
/* column: link to a long-form page such as a making-of record */
.column { margin-top: clamp(40px, 6vw, 80px); }
.column-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(20px, 2.4vw, 28px) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.column-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #f4f4f4; }
.column-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.column-card:hover .column-thumb img { transform: scale(1.03); }
.column-text { display: grid; gap: 10px; }
.column-text > .label { color: var(--sub); }
.column-title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 300; line-height: 1.45; letter-spacing: .02em; }
.column-desc { color: var(--ink-2); font-size: 14px; line-height: 1.85; max-width: 34em; }
.column-more { margin-top: 6px; }
.column-card:hover .column-more { text-decoration: underline; text-underline-offset: 4px; }
.gallery { columns: 2; column-gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(24px, 4vw, 56px); }
.gallery--single { columns: 1; }
.gallery--3 { columns: 3; }
.g-item { display: block; width: 100%; margin: 0 0 clamp(12px, 1.6vw, 20px); break-inside: avoid; cursor: zoom-in; }
.g-item img { width: 100%; height: auto; transition: opacity .4s; }
.g-item:hover img { opacity: .85; }

.pager {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: clamp(96px, 12vw, 160px);
  padding-top: 28px; padding-bottom: clamp(80px, 10vw, 128px);
}
.pager::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--ink); }
.pager a { display: flex; flex-direction: column; gap: 10px; }
.pager .label { color: var(--sub); }
.pager-next { text-align: right; align-items: flex-end; }
.pager-title { font-size: clamp(18px, 2.2vw, 28px); font-weight: 300; letter-spacing: -.01em; line-height: 1.3; }
.pager a:hover .pager-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(255, 255, 255, .98);
  color: var(--ink);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; }
.lb-close { position: absolute; top: 20px; right: var(--gutter); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 24px; padding: 16px; opacity: .6; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

.notfound { min-height: 80vh; padding-top: calc(var(--header-h) + 64px); padding-bottom: 96px; }
/* 404: an apple drifting about, as if lost */
.lost { position: relative; height: clamp(160px, 22vw, 240px); margin-bottom: 24px; overflow: hidden; }
.lost-path { position: absolute; left: 0; bottom: 18px; width: 44px; display: flex; flex-direction: column; align-items: center;
  animation: lost-wander 14s ease-in-out infinite alternate; }
.lost-apple { display: block; width: 40px; animation: lost-bob 2.6s ease-in-out infinite; }
.lost-apple svg { width: 40px; height: 44px; animation: lost-tilt 5.2s ease-in-out infinite; }
.lost-shadow { width: 30px; height: 5px; margin-top: 18px; border-radius: 50%; background: rgba(0, 0, 0, .1); animation: lost-shadow 2.6s ease-in-out infinite; }
@keyframes lost-wander {
  0% { left: 0; } 18% { left: 22%; } 32% { left: 14%; } 55% { left: 52%; } 70% { left: 44%; } 100% { left: calc(100% - 44px); }
}
@keyframes lost-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-46px); } }
@keyframes lost-tilt { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(9deg); } }
@keyframes lost-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.5); opacity: .4; } }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .header-icons { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 56px; }
  .header-inner { gap: 18px; }
  .nav { gap: 16px; }
  .brand { font-size: 12px; letter-spacing: .12em; }
  .hero { height: auto; min-height: 0; background: #fff; color: var(--ink); }
  .hero::after { content: none; }
  .hero-media { position: relative; aspect-ratio: 16 / 9; background: #111; }
  .hero-text { position: static; padding: 28px 0 8px; }
  .hero-now { right: 12px; bottom: 10px; }

  .reels { grid-template-columns: repeat(3, 72vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .reel { scroll-snap-align: start; }
  .work-grid { grid-template-columns: 1fr; row-gap: 64px; }
  .card:nth-child(odd):not(.card--feature) { margin-top: 0; }
  .about-grid, .cv, .work-body { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .column-card { grid-template-columns: minmax(0, 1fr); }
  .contact-label { width: 72px; }
  .play--wide { padding: 9px 16px 9px 13px; font-size: 12px; }
  .ex-body { grid-template-columns: 1fr; padding-left: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .work-grid.is-filtered .card.is-offset { margin-top: 0; }
  .news-item { grid-template-columns: 88px 1fr; grid-template-rows: auto auto; gap: 4px 14px; }
  .news-thumb { width: 88px; grid-row: 1 / 3; }
  .news-arrow { display: none; }
  /* keep Works close to the hero so it is clear there is more below */
  .hero-text { padding-bottom: 0; }
  .hero + #works { padding-top: 40px; }
}
@media (max-width: 420px) {
  .nav a[href$="#about"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
