.nav nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; font-size: .875rem; }
.nav nav a { display: flex; align-items: center; min-height: 44px; }
.film-still { display: none; position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: max(100%, 760px); max-width: none; }
html:not(.js) .film-still, .no-3d .film-still { display: block; }
html:not(.js) .film-canvas, .no-3d .film-canvas { display: none; }

.fill { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.title { font-size: clamp(2.5rem, min(5vw, 9vh), 6.5rem); line-height: 1.05; letter-spacing: -.015em; }

/* Lamps */
.lamps { background: #101012; color: #f5f5f7; }
.lamps-stage { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.lamps-stage > .fill { object-position: 50% 24%; }
.pool { position: absolute; left: -100%; top: -100%; width: 300%; height: 300%; }
.lamps-words { position: absolute; left: 0; top: 0; bottom: 0; width: max(38%, 400px); padding: calc(var(--nav) + 20px) var(--edge) 28px; display: flex; flex-direction: column; justify-content: center; background: #101012; }
.lamps-words h2 { font-size: clamp(2.75rem, min(5.4vw, 10vh), 7rem); line-height: 1.03; letter-spacing: -.016em; }
.lamp-names { margin-top: clamp(18px, 4vh, 48px); }
.lamp-names button { display: flex; align-items: center; gap: 14px; min-height: 46px; font-weight: 600; font-size: clamp(1.25rem, min(2.3vw, 4.2vh), 2.5rem); line-height: 1.4; color: #93999d; text-align: left; }
.lamp-names button i { width: .5em; height: .5em; flex: none; border-radius: 50%; }
.lamp-names button[aria-pressed="true"] { color: #f5f5f7; }

/* Focus */
.focus { background: var(--mist); }
.focus-stage { height: 100vh; height: 100svh; min-height: 560px; padding-top: calc(var(--nav) + clamp(18px, 4vh, 52px)); display: flex; flex-direction: column; overflow: hidden; }
.focus-words { padding: 0 var(--edge); text-align: center; }
.focus-words p { margin-top: 12px; font-size: clamp(1.125rem, 1.7vw, 1.875rem); font-weight: 550; line-height: 1.3; }
.deck { position: relative; flex: 1; min-height: 0; margin-top: clamp(16px, 3vh, 38px); perspective: 1400px; }
.pane { position: absolute; width: min(46vw, 74vh); border-radius: 16px; overflow: hidden; box-shadow: 0 28px 60px rgba(0, 0, 0, .22); }
.pane img { width: 100%; }
.pane:nth-child(1) { left: 4vw; top: 12%; }
.pane:nth-child(2) { left: 50%; translate: -50% 0; top: 4%; z-index: 2; }
.pane:nth-child(3) { right: 4vw; top: 20%; }
.pane::after { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 22, .6); opacity: 1; transition: opacity 300ms ease; pointer-events: none; }
.pane.front { z-index: 4; }
.pane.front::after { opacity: 0; }
.reading { background: #fff; }
.reading-bar { position: relative; height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 8px; background: #ececef; font-size: .9375rem; }
.reading-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.reading-bar i:nth-child(2) { background: #febc2e; }
.reading-bar i:nth-child(3) { background: #28c840; }
.reading-bar span { position: absolute; left: 50%; translate: -50% 0; }
.reading-text { position: relative; overflow: hidden; }
.reading-text p { padding: 22px clamp(18px, 2.6vw, 44px); font-size: clamp(1.0625rem, min(1.7vw, 2.9vh), 1.75rem); line-height: 1.65; }
.band { position: absolute; left: 0; right: 0; top: 0; height: 2em; box-shadow: 0 0 0 1400px rgba(30, 30, 34, .2); }

/* The wall */
.art { background: #fff; }
.art-stage { height: 100vh; height: 100svh; min-height: 560px; padding-top: var(--nav); overflow: hidden; display: flex; flex-direction: column; }
.art-head { position: relative; z-index: 2; padding: clamp(14px, 3vh, 34px) var(--edge); display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 28px; background: #fff; }
.art-head h2 { font-size: clamp(1.875rem, min(4vw, 7vh), 5rem); line-height: 1.08; }
.art-head p { font-size: clamp(1rem, 1.3vw, 1.375rem); }
.wall-window { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.wall { height: 100%; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 6px 6px; transform-origin: 0 0; }
.wall li { min-height: 0; overflow: hidden; border-radius: 5px; }
.work { width: 100%; height: 100%; overflow: hidden; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: scale 500ms var(--out); }

/* All that: a picture that takes what room is left, and words that always keep their own */
.more { padding: clamp(56px, 9vh, 110px) 12px 12px; background: #fff; }
.more > .title { padding: 0 calc(var(--edge) - 12px); margin-bottom: clamp(22px, 4vh, 44px); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(clamp(290px, 38vh, 420px), auto); gap: 12px; }
.tile {
  position: relative; min-width: 0; overflow: hidden; padding: 14px; border-radius: 28px; background: var(--mist);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
}
.tile > :not(p) { position: relative; flex: 1 1 0; min-height: 96px; overflow: hidden; border-radius: 18px; }
.tile p { flex: none; padding: 0 clamp(4px, .9vw, 16px) 8px; font-weight: 480; font-size: clamp(1rem, 1.2vw, 1.3125rem); line-height: 1.3; }
.tile p b { display: block; margin-bottom: 5px; font-weight: 660; font-size: clamp(1.375rem, 1.9vw, 2.25rem); line-height: 1.08; letter-spacing: -.01em; }
.tile p b[data-count] { font-size: clamp(2.25rem, 3.4vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }

.t-papers { grid-column: span 2; background: var(--ink); color: #f5f5f7; }
.swarm { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; }
.swarm i { border-radius: 9px; background: #fff center / cover; background-blend-mode: multiply; }
.swarm [data-paper="ai"] { background-color: #2f6f9f; }
.swarm [data-paper="sakura"] { background-color: #f3b9c7; }
.swarm [data-paper="matcha"] { background-color: #a9cc8d; }
.swarm [data-paper="kaki"] { background-color: #f8b83c; }
.swarm [data-paper="sumi"] { background-color: #4a5256; }

/* Rest Page, small: the real page, breathing */
.t-rest > .mini-rest {
  min-height: 150px; padding: 12px 10px; container-type: size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6cqh;
  background: #fff url(assets/tiles/linen-day.webp) 0 0 / 256px;
}
.rings { position: relative; flex: none; width: min(58cqh, 62cqw); aspect-ratio: 1; display: grid; place-items: center; }
.rings i { position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 50%; }
.rings i + i { inset: 14%; border-width: 1px; }
.rings b { font: 400 clamp(1.5rem, 22cqh, 3.5rem)/1 "Washi Menu"; font-variant-numeric: tabular-nums; }
.mini-rest em { font: normal 400 clamp(.875rem, 8.5cqh, 1.25rem)/1.15 "Washi Menu"; text-align: center; }
.breathing .rings i { animation: breathe 3.3s ease-in-out infinite alternate; }
.breathing .rings i + i { animation-delay: -.5s; }
@keyframes breathe { from { scale: .8; } to { scale: 1; } }

.t-art { grid-row: span 2; background: #fff; box-shadow: inset 0 0 0 1px #e3e3e7; }
.hang img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.t-screens { grid-column: span 2; }
.displays { display: flex; gap: 10px; align-items: flex-end; }
.displays i { flex: 1; height: 100%; border: 7px solid var(--ink); border-radius: 12px; background: #fff url(assets/papers/linen.webp) center / cover; background-blend-mode: multiply; }
.displays i:nth-child(2) { flex: 1.5; height: 88%; background-color: #f3b9c7; }
.displays i:nth-child(3) { flex: .6; height: 70%; background: #fff; }
.sky { background: linear-gradient(#fff 72%, #1d1d1f 72%); }
.sun { position: absolute; left: 50%; bottom: 14%; translate: -50% 0; height: 58%; aspect-ratio: 1; border-radius: 50%; background: #f5cb3a; }
.keys { display: flex; align-items: center; justify-content: center; gap: 8px; background: #e3e3e7; }
.keys kbd { width: clamp(44px, 4.4vw, 68px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: #fff; font: 600 1.375rem Geist; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.full i { position: absolute; inset: 0; background: url(assets/tiles/unryu-day.webp) 0 0 / 180px; }
.snooze img { object-position: 50% 99%; }
.capture { outline: 2px dashed var(--ink); outline-offset: -2px; }
.macs { background: #fff; }
.macs img { object-fit: contain; }
.own img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 82%; width: auto; max-width: none; }
.t-once { background: var(--ink); color: #f5f5f7; }
.price-tag { display: flex; align-items: center; justify-content: center; font-weight: 660; font-size: clamp(2.5rem, 6vw, 7rem); line-height: 1; }
@media (min-width: 901px) { .t-once { grid-column: span 2; } }

/* Buy */
.buy-in { position: relative; margin-top: 12px; padding-top: clamp(64px, 11vh, 130px); overflow: hidden; background: #fff; text-align: center; }
.buy-words { padding: 0 var(--edge); }
.buy-in h2 { font-size: clamp(3rem, min(8vw, 14vh), 11rem); line-height: 1.02; letter-spacing: -.018em; }
.buy-price { margin: 14px 0 22px; font-size: clamp(1.1875rem, 1.7vw, 1.875rem); font-weight: 580; }
.lineup { position: relative; left: 50%; translate: -50% 0; width: max(100%, 760px); max-width: none; margin-top: clamp(18px, 3vh, 40px); }

/* Questions */
.questions { padding: clamp(56px, 9vh, 110px) var(--edge) 48px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 20px 5vw; }
.answers details { border-bottom: 1px solid #d2d2d7; }
.answers summary { position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; font-weight: 600; font-size: clamp(1.1875rem, 1.8vw, 1.75rem); line-height: 1.2; }
.answers summary::-webkit-details-marker { display: none; }
.answers summary::after { content: "+"; position: absolute; right: 8px; top: 50%; translate: 0 -50%; font-weight: 400; transition: rotate 220ms var(--out); }
.answers [open] summary::after { rotate: 45deg; }
.answers p { max-width: 60ch; padding-bottom: 22px; font-size: clamp(1.0625rem, 1.2vw, 1.3125rem); }
.foot { padding: 22px var(--edge) calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--mist); color: var(--soft); font-size: .875rem; }
.foot div { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.hung { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: #0d1b16; color: #f5f5f7; }
.hung[open] { display: grid; place-items: center; align-content: center; gap: 16px; }
.hung img { max-width: 90vw; max-height: 68svh; border: clamp(8px, 1.2vw, 20px) solid #f5f5f7; }
.hung p { max-width: 70ch; padding: 0 18px; text-align: center; }
.hung p b, .hung p span { display: block; }
.hung .pill { background: #f5f5f7; color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .work:hover img { scale: 1.08; }
  .papers-choice button:hover { scale: 1.22; }
  .play:hover, .dots:hover { background: #d6d6db; }
  .option:not(.open):hover { scale: 1.03; }
}

@media (max-width: 900px) {
  .nav nav { display: none; }
  .words-text { font-size: clamp(2.125rem, 9.4vw, 4.5rem); }
  .card { width: 86vw; height: min(66svh, 600px); }
  .fan img { left: 50%; height: 64%; }
  .art-card h3 { max-width: 100%; }
  .studio-card .shot { right: -22%; height: 62%; }
  .aside-card .shot { right: -22%; height: 62%; }
  .lamp-card .shot { height: 40%; }
  .split img { top: 40%; }
  .split div + div img { top: 30%; }
  .night-card h3 { max-width: 52%; font-size: 1.375rem; }

  .viewer { min-height: 560px; }
  .options { left: 10px; right: 10px; top: auto; bottom: 10px; translate: none; width: auto; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .option { border-radius: 22px; }
  .option.open { order: 1; flex-basis: 100%; }
  .option-head { min-height: 44px; padding: 0 14px; font-size: .9375rem; gap: 8px; }
  .option-head::before { display: none; }
  .option-body { padding: 0 14px 14px; }
  .option-body p { font-size: .9375rem; margin-bottom: 10px; }

  .lamps-words { top: auto; width: 100%; padding: 20px var(--edge) 22px; }
  .lamps-words h2 br { display: none; }
  .lamps-words h2 { font-size: clamp(2.125rem, 9vw, 4rem); }
  .lamp-names { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; }
  .lamp-names button { font-size: 1.1875rem; gap: 9px; min-height: 44px; }
  .lamps-stage > .fill { height: 62%; }

  .pane { width: min(82vw, 520px); }
  .pane:nth-child(1) { left: -6vw; top: 2%; }
  .pane:nth-child(2) { top: 24%; }
  .pane:nth-child(3) { right: -6vw; top: 52%; }

  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(270px, auto); gap: 8px; }
  .t-art { grid-row: auto; }
  .tile { padding: 10px; gap: 10px; border-radius: 22px; }
  .tile p { padding: 0 4px 6px; font-size: .9375rem; }
  .tile p b { font-size: 1.1875rem; }
  .tile p b[data-count] { font-size: 2.25rem; }
  .t-rest { grid-column: span 2; }
  .t-rest > .mini-rest { min-height: 170px; }
  .t-art { grid-column: span 2; }
  .keys kbd { width: 36px; font-size: 1rem; }
  .price-tag { font-size: 2.25rem; }
  .questions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-height: 500px) and (orientation: landscape) {
  .film-stage, .lamps-stage, .focus-stage, .art-stage { min-height: 0; }
  .viewer { min-height: 330px; }
  .options { left: 10px; right: auto; top: 50%; bottom: auto; translate: 0 -50%; width: 44%; gap: 4px; }
  .option-head { min-height: 38px; }
  .option-body p { display: none; }
  .lamps-words { top: 0; width: 46%; padding: calc(var(--nav) + 6px) 20px 6px; }
  .lamps-words h2 { font-size: 1.75rem; }
  .lamp-names { margin-top: 6px; }
  .lamp-names button { min-height: 36px; font-size: 1rem; }
  .lamps-stage > .fill { height: 100%; }
  .focus-words p { display: none; }
  .focus-words .title { font-size: 1.75rem; }
  .art-head h2 { font-size: 1.5rem; }
  .art-head p { display: none; }
  .wall { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .bento { grid-auto-rows: minmax(270px, auto); }
  .pane { width: 46vw; }
}

@media (prefers-reduced-transparency: reduce) { .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; } .nav.dark { background: #0c161c; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .words-text .word { color: var(--ink); }
}
