:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --ink: #f2f2ee;
  --muted: #a3a3a0;
  --accent: #dafa9c;
  --accent-ink: #0f0f0f;
  --paper: #ffffff;
  --paper-ink: #0f0f0f;
  --paper-muted: #55554f;
  --margin: 32px;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.4rem + 1vw, 2.125rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

*, *::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-size: var(--step-body); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; overflow-x: clip; }
/* Japanese has no spaces, so keep-all would never break a line; Pretendard JP adds kana and kanji */
:root:lang(ja) { font-family: "Pretendard JP Variable", "Pretendard JP", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; }
:lang(ja) body { word-break: normal; word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict; } /* anywhere: a long katakana word may still break */
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
main { position: relative; z-index: 1; background: var(--bg); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 0;
  padding: 0 20px; min-height: 44px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.button:hover { background: #e8ffbd; }
.button:active { transform: scale(.97); }

/* hero: inset portrait loop, name crossing its lower-right corner */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.hero-media { position: absolute; inset: 20px auto 20px 20px; width: 47vw; background: #000; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.nav { position: absolute; top: var(--margin); right: var(--margin); display: flex; gap: 28px; align-items: center; font-size: 1rem; }
.nav > a:not(.button) { text-decoration: none; padding: 10px 0; }
.nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: 6px; }

/* language: one switch showing the page's code; its menu names every language in that language */
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; margin-top: -4px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); transition: transform .2s var(--ease); }
.lang[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.lang ul {
  position: absolute; z-index: 5; top: 100%; right: -16px; min-width: 168px; padding: 6px 0;
  background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); /* taste-skill-ignore: the open menu floats */
}
.lang ul a { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; color: var(--muted); text-decoration: none; }
.lang ul a:hover { background: #262626; color: var(--ink); }
.lang ul a[aria-current] { color: var(--ink); }
.lang ul a[aria-current]::after { content: ""; width: 5px; height: 10px; margin: -3px 2px 0 0; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.hero-lead {
  position: absolute; top: 40%; left: calc(47vw + 20px); right: 0; margin-inline: auto;
  width: min(26ch, 40vw); font-size: var(--step-lead); line-height: 1.5; font-weight: 300;
}
.wordmark {
  position: absolute; right: var(--margin); bottom: 40px; z-index: 2;
  font-size: clamp(120px, 12vw, 200px); font-weight: 200; line-height: .8; letter-spacing: -0.05em;
  transform-origin: right bottom;
}

/* work: sticky rail with filters; each field is a room, each project hung in it as a plate */
.work { display: grid; grid-template-columns: minmax(190px, 13%) 1fr; gap: 24px; padding: 160px var(--margin) 200px; }
.rail { position: sticky; top: var(--margin); align-self: start; display: flex; flex-direction: column; align-items: flex-start; height: calc(100svh - 2 * var(--margin)); }
.rail .lang { margin-top: auto; color: var(--muted); font-size: 1rem; }
.rail .lang:hover, .rail .lang[open] { color: var(--ink); }
.rail .lang ul { top: auto; bottom: 100%; right: auto; left: -16px; color: var(--ink); }
.rail h2 { font-size: var(--step-head); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px; }
.filters { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.filters button { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--muted); font-size: 1rem; text-align: left; transition: color .2s; }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.rooms { min-width: 0; display: flex; flex-direction: column; gap: 220px; }
.room { display: flex; flex-direction: column; gap: 128px; }
.room[hidden] { display: none; }
.room-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 20px; row-gap: 8px; }
.room-head h3 { font-size: clamp(64px, 7.4vw, 132px); font-weight: 200; letter-spacing: -0.05em; line-height: .9; transform-origin: left bottom; }
.room-count { font-size: 1rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.plate { display: grid; gap: 40px; }
.plate > * { transition: opacity .4s var(--ease); }
.rooms:has(.frame:hover) .plate:not(:hover) > * { opacity: .28; }
.plate.split { grid-template-columns: 7fr 5fr; align-items: start; }
.plate.split:nth-of-type(even) { grid-template-columns: 5fr 7fr; }
.plate.split:nth-of-type(even) .key { order: 2; }
.plate-side { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.plate-name { font-size: clamp(2.25rem, 1.2rem + 2.6vw, 4rem); font-weight: 300; letter-spacing: -0.045em; line-height: 1.1; }
:lang(ja) .plate-name { font-size: clamp(1.875rem, 1rem + 2vw, 3rem); letter-spacing: -0.02em; } /* kana and kanji fill the em box, so they read larger at the same size */
.plate-desc { margin-top: 16px; }
.plate-meta { margin-top: 4px; color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.frame { display: block; flex: none; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.frame img, .frame video { width: 100%; height: auto; transition: transform .6s var(--ease); }
.frame:hover img, .frame:hover video { transform: scale(1.03); }
.key { max-height: min(70svh, 600px); } /* tall full-page shots show their top */
.key video { height: min(70svh, 600px); object-fit: cover; }
.plate.wide .key { max-height: none; width: min(100%, calc(80svh * var(--r))); } /* art is never cropped, only kept within the screen */
.rest { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.rest .frame { height: 104px; }
.rest .frame img { width: auto; height: 100%; }

/* phone screens: one line, equal height, every other one hung lower */
.plate.row { grid-template-columns: 1fr; gap: 48px; }
.plate.row .plate-text { justify-self: end; width: min(100%, 440px); }
.plate.row .rest { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
.plate.row .rest .frame { height: auto; flex: var(--r) 1 0; min-width: 0; }
.plate.row .rest .frame img { width: 100%; height: auto; }
.plate.row .rest .frame:nth-child(even) { margin-top: 64px; }

/* art: the lead piece across the whole width, the rest as a small grid beside its title */
.plate.wide { grid-template-columns: 1fr; }
.plate.wide .plate-side { flex-direction: row; align-items: flex-end; }
.plate.wide .plate-text { flex: 0 0 32%; }
.plate.wide .rest { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.plate.wide .rest .frame { height: auto; }
.plate.wide .rest .frame img { width: 100%; height: auto; }
.plate-name a { text-decoration: none; }
.plate-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.plate-more { display: inline-block; margin-top: 20px; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.plate-more::after { content: " →"; }

/* project page: a top bar in place of the hero, the name set like a room's, every image at reading size */
.top { position: relative; height: 112px; }
.top-mark { position: absolute; top: calc(var(--margin) + 6px); left: var(--margin); font-size: 1.75rem; font-weight: 300; letter-spacing: -0.05em; line-height: 1; text-decoration: none; }
.project { padding: 72px var(--margin) 0; }
.project-head { display: grid; gap: 28px; margin-bottom: 96px; }
.crumb { display: flex; gap: 10px; font-size: 1rem; color: var(--muted); }
.crumb a { color: var(--ink); text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 6px; }
.project-name { max-width: 15ch; font-size: clamp(56px, 7.4vw, 132px); font-weight: 200; letter-spacing: -0.05em; line-height: .95; }
:lang(ja) .project-name { font-size: clamp(44px, 5.6vw, 100px); letter-spacing: -0.03em; line-height: 1.1; }
.project-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.project-desc { max-width: 32ch; font-size: var(--step-lead); font-weight: 300; line-height: 1.5; }
.project-meta { margin-top: 6px; color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 56px 24px; align-items: start; }
.shot { grid-column: span 6; margin: 0; }
.shot.lead { grid-column: 1 / -1; }
.shot.page { grid-column: span 4; }
.shot.phone { grid-column: span 3; }
.shot .frame img { width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.shot .frame[href$=".mp4"] { position: relative; } /* a film: the still opens the film in the lightbox */
.shot .frame[href$=".mp4"]::after { content: ""; position: absolute; left: 20px; bottom: 20px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); }
.more { padding: 160px var(--margin); }
.more h2 { margin-bottom: 32px; font-size: var(--step-head); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 40px 24px; }
.more-list a { display: grid; gap: 4px; text-decoration: none; }
.more-list img { width: 100%; height: 200px; margin-bottom: 12px; object-fit: cover; object-position: top; background: var(--surface); transition: opacity .2s; }
.more-list a:hover img { opacity: .8; }
.more-list a:hover .more-name { text-decoration: underline; text-underline-offset: 4px; }
.more-name { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.3; }
.more-desc { font-size: 1rem; color: var(--muted); }
.more-all { display: inline-block; margin-top: 56px; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.more-all::after { content: " →"; }

/* gallery: the generative works on one wall, then a page for each; the drawing layers lie over the still (app.js) */
.hall { padding: 72px var(--margin) 160px; }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 20px; list-style: none; }
.piece { display: grid; gap: 6px; text-decoration: none; }
.piece .art { margin-bottom: 16px; }
.piece-name { font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.1; }
.piece:hover .piece-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #000; }
.art img, .art > div, .art svg, .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.piece-page { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: 56px; align-items: end; }
.piece-page .art { width: min(100%, calc(100svh - 216px)); } /* the top bar and the page's top padding stay in view */
.piece-label { display: grid; gap: 24px; }
.piece-page + .more .more-list img { height: auto; aspect-ratio: 1; }
.hall-room { gap: 56px; }
.hall-room .wall { gap: 32px 16px; }
.hall-room .piece-name { font-size: 1.25rem; letter-spacing: -0.02em; }
.hall-room .piece .art { margin-bottom: 10px; }
.hall-room .plate-more { justify-self: start; align-self: flex-start; }

/* contact: full-bleed still with the form card in its calm upper-right */
.contact { position: relative; min-height: 100svh; }
.contact-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.card {
  position: relative; margin-left: auto; margin-right: 60px; top: 60px; width: 400px;
  background: var(--paper); color: var(--paper-ink); padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.card h2 { font-size: var(--step-head); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.card p { font-size: 1rem; }
.card label, .field { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: var(--step-small); color: var(--paper-muted); }

/* fields: filled tone, a bar underneath that turns ink on focus and red when invalid */
.card input, .card textarea, .select-button {
  -webkit-appearance: none; appearance: none; width: 100%; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: #f1f1ed; color: var(--paper-ink); padding: 12px 14px 10px; font-size: 1rem; line-height: 1.5;
  transition: border-color .15s, background-color .15s;
}
.card input:hover, .card textarea:hover, .select-button:hover { background: #ebebe6; }
.card input:focus, .card textarea:focus, .select-button:focus, .select-button[aria-expanded="true"] { outline: none; border-bottom-color: var(--paper-ink); background: #ebebe6; }
.card ::placeholder { color: #8a8a83; }
.card [aria-invalid="true"] { border-bottom-color: #b3261e; }
.card textarea { resize: none; min-height: 128px; max-height: 320px; overflow-y: hidden; padding-bottom: 28px; }
.card textarea.scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b9b9b2 transparent; }
.count { position: absolute; right: 12px; bottom: 8px; font-size: .8125rem; color: #6f6f68; font-variant-numeric: tabular-nums; pointer-events: none; }
.count.near { color: #b3261e; }

/* custom select: button + listbox */
.select { position: relative; }
.select-button { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.select-button::after {
  content: ""; flex: none; width: 8px; height: 8px; margin: -4px 4px 0 12px;
  border-right: 2px solid var(--paper-ink); border-bottom: 2px solid var(--paper-ink); transform: rotate(45deg); transition: transform .2s var(--ease);
}
.select-button[aria-expanded="true"]::after { transform: translateY(4px) rotate(-135deg); }
.select-list {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px 0; list-style: none;
  background: var(--paper); box-shadow: 0 12px 32px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08); /* taste-skill-ignore: the open listbox floats */
  font-size: 1rem; color: var(--paper-ink); outline: none;
}
.select-list[hidden] { display: none; }
.select-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; cursor: pointer; }
.select-list li.active { background: #f1f1ed; }
.select-list li[aria-selected="true"] { font-weight: 600; }
.select-list li[aria-selected="true"]::after { content: ""; width: 5px; height: 10px; margin: -3px 4px 0 0; border-right: 2px solid var(--paper-ink); border-bottom: 2px solid var(--paper-ink); transform: rotate(45deg); }
.card .button { width: 100%; min-height: 52px; font-size: 1.0625rem; margin-top: 4px; }
.card .button[disabled] { opacity: .6; cursor: progress; }
.status:empty { display: none; }
.status { font-size: .9375rem; color: var(--paper-ink); }
.status.error { color: #b3261e; }
.card .trap { position: absolute; left: -9999px; }

/* footer: inverted, name across the full width */
.footer {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0; overflow: clip;
  background: var(--paper); color: var(--paper-ink); padding: 40px var(--margin) 24px;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 1rem; }
.footer-cols li { color: var(--paper-muted); }
.footer-cols li:first-child { color: var(--paper-ink); margin-bottom: 6px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer-cols a[aria-current] { color: var(--paper-ink); }
.footer-mark {
  margin-top: clamp(120px, 18vw, 260px); width: max-content; font-size: 19vw; font-weight: 200; letter-spacing: -0.055em; line-height: .8;
  white-space: nowrap; transform-origin: left bottom;
}
.legal { margin-top: 20px; font-size: var(--step-small); color: var(--paper-muted); }

/* lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 8, .97); color: var(--ink); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lb-media { min-height: 0; display: grid; place-items: center; padding: 24px var(--margin) 0; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--margin) 24px; font-size: 1rem; }
.lb-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lb-actions button { background: var(--surface); border: 0; min-width: 48px; min-height: 48px; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.lb-actions button:hover { background: #2a2a2a; }
.lb-actions button:active { transform: scale(.95); }
.lb-ask { margin-right: 12px; text-underline-offset: 5px; text-decoration-color: var(--accent); }

/* motion: entrance per part, scroll-linked name; all content stays visible without script */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .plate.reveal .key { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease) calc(var(--d, 0ms) + 150ms); }
.js .plate.reveal.in .key { clip-path: inset(0); }
@supports (animation-timeline: view()) {
  .wordmark { animation: name-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  .footer-mark, .room-head h3 { animation: name-in linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @keyframes name-out { to { scale: .93; } }
  @keyframes name-in { from { scale: .94; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .3s; }
  .wordmark, .footer-mark, .room-head h3 { animation: none; }
  .frame img, .frame video, .button { transition: none; }
  .js .plate.reveal .key { clip-path: none; transition: none; }
}

/* tablet and phone: each plate stacks, picture first */
@media (max-width: 1024px) {
  .plate.split, .plate.split:nth-of-type(even), .plate.wide { grid-template-columns: 1fr; gap: 24px; }
  .plate.split:nth-of-type(even) .key { order: 0; }
  .plate-side, .plate.wide .plate-side { flex-direction: column; align-items: stretch; gap: 20px; }
  .shot.page { grid-column: span 6; }
  .shot.phone { grid-column: span 4; }
  .wall, .hall-room .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece-page { grid-template-columns: 1fr; gap: 32px; }
}

/* phone */
@media (max-width: 760px) {
  :root { --margin: 20px; }
  .hero { height: auto; min-height: 0; padding-bottom: 40px; display: flex; flex-direction: column; }
  .hero-media { order: 0; }
  .wordmark { order: 1; }
  .hero-lead { order: 2; }
  .hero-media { position: relative; inset: auto; margin: 12px; width: auto; height: 58svh; }
  .nav { top: 24px; right: 24px; gap: 16px; }
  .nav-extra { display: none; }
  .nav > a:not(.button), .nav summary { color: #fff; }
  .wordmark { position: relative; right: auto; bottom: auto; width: max-content; margin: -3vw 0 0 var(--margin); font-size: 18vw; line-height: .85; transform-origin: left bottom; }
  .hero-lead { position: static; width: auto; margin: 24px var(--margin) 0; font-size: 1.125rem; }
  .work { grid-template-columns: 1fr; padding: 96px var(--margin) 120px; gap: 16px; }
  .rail { position: static; display: flex; flex-direction: column; gap: 8px; height: auto; }
  .rail .lang { display: none; } /* the rail scrolls away on phones; the nav and footer carry the switch */
  .rail h2 { margin-bottom: 0; }
  .filters { flex-direction: row; flex-wrap: wrap; column-gap: 16px; }
  .rooms { gap: 120px; margin-top: 40px; }
  .room { gap: 72px; }
  .room-head { gap: 12px; }
  .room-head h3 { font-size: clamp(44px, 13vw, 64px); }
  .key { max-height: 62svh; }
  .key video { height: 62svh; }
  .plate.row { gap: 24px; }
  .plate.row .plate-text { justify-self: stretch; width: auto; }
  /* rest of each project: a thumb-swiped strip running off the right edge */
  .rest, .plate.row .rest, .plate.wide .rest { display: flex; flex-wrap: nowrap; align-items: flex-start; overflow-x: auto; margin-right: calc(-1 * var(--margin)); scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
  .rest::-webkit-scrollbar { display: none; }
  .rest .frame, .plate.wide .rest .frame { height: 96px; scroll-snap-align: start; }
  .plate.row .rest .frame { flex: none; height: 300px; }
  .plate.row .rest .frame:nth-child(even) { margin-top: 0; }
  .plate.wide .rest .frame img, .plate.row .rest .frame img { width: auto; height: 100%; }
  .contact { min-height: 0; padding-bottom: 40px; background: var(--bg); }
  .contact-photo { position: relative; height: 70svh; }
  .card { top: auto; width: auto; margin: -80px 16px 0; padding: 24px; }
  .card .button { min-height: 56px; }
  .footer { padding-top: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .lb-bar { flex-direction: column; align-items: stretch; }
  .lb-actions { justify-content: flex-end; }
  .top { height: 88px; }
  .top-mark { top: 32px; font-size: 1.375rem; }
  .top .nav > a[data-cat="all"] { display: none; } /* the mark already leads home; the bar has no room for both */
  .project { padding-top: 32px; }
  .project-head { gap: 20px; margin-bottom: 56px; }
  .project-name { font-size: clamp(44px, 13vw, 64px); }
  :lang(ja) .project-name { font-size: clamp(34px, 10vw, 52px); }
  .shots { gap: 40px 12px; }
  .shot, .shot.page { grid-column: 1 / -1; }
  .shot.phone { grid-column: span 6; }
  .more { padding: 96px var(--margin); }
  .hall { padding: 32px var(--margin) 96px; }
  .wall { gap: 40px 12px; }
  .hall-room { gap: 40px; }
  .hall-room .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
}
