@font-face {
  font-family: 'Kaushan Script';
  src: url('fonts/kaushan-script-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --sans: 'Zen Kaku Gothic New', system-ui, sans-serif;
  --display: 'Zen Old Mincho', Georgia, serif;
  --sheet: #f6ecdc;
  --sheet-ink: #2c211c;
  --sheet-muted: #665448;
  --sheet-line: #6f4f3a40;
  --sheet-accent: #8b3b30;
  --scene-white: #fff3e0;
}

.experience { font-family: var(--sans); color: var(--scene-white); }
.experience .scene-backdrop { display: block; background-image: url('courtyard-garden.webp'); }
.experience #dojo-canvas { opacity: 0; }
.experience[data-renderer='webgl'] #dojo-canvas { opacity: 1; }
.experience .scene-tone { background: linear-gradient(#15181294, transparent 24%); }
.experience:is([data-stage='exterior'], [data-stage='arrival'], [data-stage='loading']) .scene-tone {
  background: linear-gradient(#2a261e83 0%, #27251b2e 18%, transparent 45%);
}
.experience:is([data-stage='loading'], [data-stage='arrival']) .scene-tone {
  background: radial-gradient(ellipse at center, #271f196e, transparent 68%), linear-gradient(#15181260, transparent 27%);
}
html[data-theme='night'] .experience .scene-tone { background: linear-gradient(#111820b0, transparent 35%); }
html[data-theme='night'] .experience[data-stage='exterior'] .scene-tone { background: linear-gradient(#101923c9, #11192344 23%, transparent 50%); }

.portfolio-header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(18px, 4.1vw, 72px);
  min-height: 64px;
  color: var(--scene-white);
  background: linear-gradient(#201712b8, transparent);
}
.portfolio-signature {
  justify-self: start;
  padding: 5px 1px;
  font: 500 29px/1 var(--display);
  letter-spacing: -.09em;
}
.portfolio-signature span { color: #e8ab85; }
.portfolio-header a { color: inherit; text-decoration: none; }
.scene-tools { display: flex; align-items: center; gap: clamp(12px, 2vw, 29px); }
.scene-tools { grid-column: 3; justify-content: end; gap: clamp(8px, 1.55vw, 24px); }
.portfolio-directory summary, .portfolio-directory nav a, .scene-tools a, .scene-tools button, .skip-motion {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 4px 1px;
  border: 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  font: 700 14px/1.2 var(--sans);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color .18s;
}
.portfolio-header :is(a, button):hover, .portfolio-header [aria-current='page'], .skip-motion:hover {
  text-decoration-color: currentColor;
}
.portfolio-directory { position: relative; justify-self: center; grid-column: 2; }
.portfolio-directory summary { display: flex; gap: 6px; cursor: pointer; list-style: none; }
.portfolio-directory summary::-webkit-details-marker { display: none; }
.portfolio-directory summary::after { content: '⌄'; font-size: 12px; }
.portfolio-directory nav {
  position: absolute;
  top: 100%;
  left: 50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 15px;
  width: min(315px, calc(100vw - 18px));
  padding: 0 9px;
  transform: translateX(-50%);
  background: #271a12f5;
}
.portfolio-directory [aria-current='page'] { color: #f6c19b; }
.scene-tools :is(a, button) { font-weight: 500; }
.skip-motion { position: absolute; bottom: 16px; right: 22px; z-index: 16; color: var(--scene-white); text-shadow: 0 1px 6px #24180e; }

.courtyard-title {
  --arrival-name-size: clamp(46px, 8.4vw, 124px);
  --courtyard-name-size: clamp(43px, 6.6vw, 95px);
  --courtyard-title-top: clamp(86px, 14svh, 137px);
  z-index: 5;
  position: absolute;
  inset: 42% 18px auto;
  transform: translateY(-50%);
  text-align: center;
  pointer-events: none;
}
.courtyard-title h1 {
  margin: 0;
  color: var(--scene-white);
  font: 500 var(--arrival-name-size)/.97 var(--display);
  letter-spacing: -.065em;
  text-wrap: balance;
  text-shadow: 0 2px 28px #22191199, 0 1px 5px #3b261b65;
}
.experience[data-stage='exterior'] .courtyard-title {
  top: var(--courtyard-title-top);
  transform: none;
  animation: title-settle .35s ease-out both;
}
.experience[data-stage='exterior'] .courtyard-title h1 { font-size: var(--courtyard-name-size); }
.courtyard-role {
  margin: clamp(9px, 1.3vw, 17px) 0 0;
  color: var(--scene-white);
  font: 600 clamp(15px, 1.65vw, 23px)/1.3 var(--sans);
  letter-spacing: .035em;
  text-shadow: 0 1px 5px #24180e, 0 2px 12px #24180e;
}
.room-locations { position: absolute; z-index: 9; inset: 0; pointer-events: none; }
.scene-link {
  position: absolute;
  z-index: 10;
  top: var(--scene-y, 66%);
  left: var(--scene-x, 50%);
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 2px 7px;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: #fff0d5;
  pointer-events: auto;
  text-decoration: none;
  text-shadow: 0 1px 3px #281509, 0 2px 8px #170d08, 0 0 17px #1c1008;
  white-space: nowrap;
  font: 400 clamp(19px, 2.2vw, 34px)/1.2 'Kaushan Script', var(--display);
}
.scene-link > span { position: relative; }
.scene-link > span::after {
  content: '';
  position: absolute;
  inset: auto 0 -4px;
  height: 4px;
  background: #f6c18f;
  clip-path: polygon(0 61%, 8% 41%, 37% 30%, 72% 21%, 97% 0, 100% 48%, 84% 58%, 52% 74%, 19% 100%);
  transform: scaleX(.61);
  transform-origin: left;
  opacity: .81;
  transition: transform .19s ease;
}
.scene-link:is(:hover, :focus-visible) > span::after { transform: scaleX(1); }
.scene-link:is(:hover, :focus-visible) { color: #fff8e9; }
.courtyard-enter { font-size: clamp(29px, 3.75vw, 55px); }
@media (max-width: 480px) {
  .courtyard-enter { translate: 0 -30px; }
}
.room-locations .scene-link {
  left: clamp(53px, var(--scene-x), calc(100% - 53px));
  gap: 0;
  padding-block: 1px 4px;
  align-content: center;
}
.room-locations .scene-link > span::after { opacity: 0; }
.room-locations .scene-link:is(:hover, :focus-visible) > span::after { opacity: .9; }
.room-locations .scene-link small {
  color: #ffebcf;
  font: 700 11px/1.1 var(--sans);
  text-shadow: 0 1px 4px #29180f, 0 0 8px #29180f;
  letter-spacing: .035em;
}
@keyframes title-settle { from { opacity: .55; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.pond-caption {
  position: absolute;
  z-index: 8;
  top: clamp(76px, 13svh, 124px);
  left: clamp(20px, 5vw, 80px);
  color: var(--scene-white);
  text-shadow: 0 2px 9px #200f0a, 0 0 24px #392719;
}
.pond-caption h2 { margin: 0; font: 500 clamp(33px, 5.2vw, 68px)/1 var(--display); }
.pond-caption p { margin: 7px 0 0; }
.pond-caption button {
  min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit;
  text-decoration: underline; text-underline-offset: 5px;
}

.experience #interior-panel {
  inset: 69px clamp(16px, 3vw, 52px) 22px auto;
  width: min(59%, 880px);
  max-width: calc(100% - 32px);
  border: 0;
  border-radius: 1px;
  box-shadow: 0 16px 64px #1b110cb0;
  color-scheme: light;
  color: var(--sheet-ink);
  background: linear-gradient(105deg, #fff8eddc, #fbf0decc), url('aged-washi.jpg') center / 880px auto;
  animation: sheet-open .22s ease-out both;
  backdrop-filter: none;
}
@keyframes sheet-open { from { opacity: .45; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.experience #interior-content {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #99786170 transparent;
  padding: clamp(26px, 4vw, 58px);
  color: var(--sheet-ink);
  font-family: var(--sans);
}

.portfolio-section { min-width: 0; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.65; }
.portfolio-section h2 {
  margin: 0 0 .32em;
  color: var(--sheet-ink);
  font: 500 clamp(42px, 5.15vw, 78px)/1.01 var(--display);
  letter-spacing: -.059em;
  text-wrap: balance;
}
.portfolio-section h2:focus { outline: none; }
.portfolio-section h3 { margin: 0 0 6px; color: var(--sheet-ink); font: 500 clamp(23px, 2.25vw, 33px)/1.13 var(--display); letter-spacing: -.035em; }
.portfolio-section .eyebrow {
  margin: 0 0 12px;
  font: 700 13px/1.25 var(--sans);
  color: var(--sheet-accent);
}
.section-lead { margin: 0 0 1.3em; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; max-width: 45ch; color: var(--sheet-muted); }

.profile-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 30%); align-items: start; gap: clamp(9px, 1.55vw, 22px) clamp(14px, 3vw, 38px); }
.profile-intro img { width: 100%; height: auto; max-height: 225px; aspect-ratio: 1; object-fit: cover; object-position: center 42%; padding: 5px; border: 1px solid var(--sheet-line); }
.profile-intro .section-lead { grid-column: 1 / -1; max-width: none; margin-bottom: 0; }
.editorial-block { border-top: 1px solid var(--sheet-line); margin: 25px 0 0; padding-top: 21px; }
.editorial-block p { max-width: 58ch; margin: 0 0 10px; }
.section-lead, .editorial-block > p, .project-card-copy > p:last-child, .project-notes dd {
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
}
.paper-link, .contact-address button, .ink-tools > button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 3px 0;
  border: 0;
  color: var(--sheet-accent);
  background: transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-line: underline;
  font: 700 14px/1.3 var(--sans);
}
.paper-link:hover, .contact-address button:hover, .ink-tools > button:not(:disabled):hover { color: #52271f; }
.paper-link span { text-decoration: none; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 17px; }
.project-card {
  color: var(--sheet-ink);
  display: block;
  min-width: 0;
  text-decoration: none;
  border: 1px solid var(--sheet-line);
  background: #fffaf152;
  transition: background-color .18s, border-color .18s;
}
.project-card:hover { border-color: var(--sheet-accent); background: #fffaf0; }
.project-card img, .project-capture img { display: block; width: 100%; height: auto; background: #dfcfb7; }
.project-card-copy { padding: 12px 13px 14px; }
.project-card-copy .eyebrow { margin-bottom: 7px; font-size: 11px; }
.project-card h3 { font-size: clamp(18px, 2vw, 25px); }
.project-card h3 span { color: var(--sheet-accent); white-space: nowrap; font: 400 13px/1 var(--sans); }
.project-card-copy > p:last-child { font-size: 14px; line-height: 1.4; margin: 7px 0 0; color: var(--sheet-muted); }
.project-back { margin: -9px 0 17px; }
.project-capture { margin: 0 0 22px; }
.project-capture img { border: 1px solid var(--sheet-line); }
.project-capture figcaption { margin-top: 7px; font-size: 13px; color: var(--sheet-muted); }
.project-capture figcaption a { color: var(--sheet-accent); font-weight: 700; text-underline-offset: 4px; }
.project-notes { margin: 0 0 17px; }
.project-notes > div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; border-top: 1px solid var(--sheet-line); padding: 14px 0; }
.project-notes dt { color: var(--sheet-accent); font-weight: 700; font-size: 14px; }
.project-notes dd { margin: 0; }
.project-study { border-block: 1px solid var(--sheet-line); margin-bottom: 20px; padding: 8px 0; }
.project-study summary { cursor: pointer; font-weight: 700; color: var(--sheet-accent); min-height: 34px; }
.project-study > p { color: var(--sheet-muted); font-size: 14px; margin: 6px 0 10px; }
.contact-address { display: flex; flex-wrap: wrap; align-items: center; gap: 0 21px; border-block: 1px solid var(--sheet-line); padding: 12px 0; overflow-wrap: anywhere; }
.contact-address > a { font: 500 clamp(21px, 2.75vw, 38px)/1.17 var(--display); text-underline-offset: 5px; }
.contact-feedback { min-height: 22px; margin: 8px 0; font-size: 14px; color: var(--sheet-muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 0 21px; }
.portfolio-section .contact-location { margin-top: 20px; color: var(--sheet-muted); }

.ink-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0 15px; }
.ink-colors { display: flex; gap: 2px; margin-right: auto; }
.ink-colors button { width: 43px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; }
.ink-colors button::before { content: ''; width: 20px; height: 20px; border-radius: 50% 47% 52% 44%; background: var(--ink-swatch); }
.ink-colors button[aria-pressed='true']::before { outline: 1px solid var(--ink-swatch); outline-offset: 4px; }
.ink-tools button:disabled { opacity: .45; cursor: default; }
.ink-paper { background: #edd9af url('aged-washi.jpg') center / cover; box-shadow: inset 0 0 18px #744f2c36; border: 1px solid var(--sheet-line); }
.ink-paper canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.drawing-instructions { margin: 9px 0 0; font-size: 13px; color: var(--sheet-muted); }
.experience :focus-visible { outline: 2px solid #a56443; outline-offset: 3px; }
.experience .portfolio-header :focus-visible { outline-color: #f6c19b; }

@media (max-width: 850px) {
  .portfolio-header { gap: 5px 15px; padding-inline: 16px; }
  .scene-tools { gap: 10px; }
  .portfolio-header :is(a, button):not(.portfolio-signature) { font-size: 13px; }
}
@media (min-width: 691px) and (max-width: 850px) {
  .project-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .portfolio-header { grid-template-columns: auto auto minmax(0, 1fr); padding-block: 5px 0; }
  .portfolio-directory summary { font-size: 12px; }
  .portfolio-directory nav { position: fixed; inset: 53px 10px auto; width: auto; transform: none; }
  .scene-tools { grid-column: 3; grid-row: 1; }
  .experience #interior-panel { inset: clamp(109px, 20svh, 172px) 8px 8px; max-width: none; width: auto; }
  .experience #interior-content { padding: clamp(15px, 5vw, 29px); }
  .profile-intro { grid-template-columns: minmax(0, 1fr) minmax(62px, 28%); }
  .portfolio-section h2 { font-size: clamp(34px, 10vw, 57px); }
  .profile-intro .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .project-notes > div { grid-template-columns: 1fr; gap: 2px; }
  .courtyard-title {
    --arrival-name-size: clamp(49px, 11.4vw, 78px);
    --courtyard-name-size: clamp(37px, 10.6vw, 69px);
  }
}
@media (max-width: 370px) {
  .project-gallery { grid-template-columns: 1fr; }
  .portfolio-header { padding-inline: 10px; column-gap: 7px; }
  .scene-tools { gap: 6px; }
  .portfolio-header :is(a, button, summary):not(.portfolio-signature) { font-size: 11px; }
}
@media (max-height: 540px) and (min-width: 691px) {
  .experience #interior-panel { inset-block: 64px 10px; }
  .courtyard-title { --courtyard-title-top: 66px; }
}

/* The same texture drifts at two scales as the camera emerges below it. */
.arrival-mist {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 65% 33%, #f2f1f0, #c2ced4 73%);
}
.arrival-mist::before, .arrival-mist::after {
  content: '';
  position: absolute;
  inset: -27%;
  background: url('arrival-clouds.png') center / min(115vw, 1550px) auto repeat;
}
.arrival-mist::before { mix-blend-mode: multiply; opacity: .76; }
.arrival-mist::after { opacity: .7; background-size: min(99vw, 1210px) auto; }
.experience[data-stage='loading'] .arrival-mist { opacity: 1; }
.experience[data-stage='arrival'] .arrival-mist { animation: mist-clear var(--arrival-duration, 5600ms) ease-in-out both; }
.experience[data-stage='arrival'] .arrival-mist::before { animation: mist-drift var(--arrival-duration, 5600ms) linear both; }
.experience[data-stage='arrival'] .arrival-mist::after { animation: mist-drift var(--arrival-duration, 5600ms) linear reverse both; }
html[data-theme='night'] .arrival-mist { background: radial-gradient(ellipse at 66% 27%, #8695a5, #394c64 79%); }
html[data-theme='night'] .arrival-mist::after { mix-blend-mode: soft-light; }
@keyframes mist-clear {
  0%, 16% { opacity: 1; }
  37% { opacity: .58; }
  63% { opacity: .17; }
  84%, 100% { opacity: 0; }
}
@keyframes mist-drift {
  from { transform: translate(-8%, 9%) scale(1.08); }
  to { transform: translate(12%, -14%) scale(1.25); }
}
.ink-word { position: relative; display: inline-block; }
.ink-written .ink-word {
  animation: write-scene-word .52s calc(var(--word-index) * .27s + .14s) cubic-bezier(.3,.2,.33,1) both;
}
.courtyard-role.ink-written .ink-word { animation-delay: calc(.56s + var(--word-index) * .16s); }
@keyframes write-scene-word {
  0%, 8% { opacity: 0; clip-path: polygon(-8% -16%, -8% -16%, -6% 40%, -8% 120%, -8% 120%); }
  31% { opacity: 1; clip-path: polygon(-8% -16%, 20% -16%, 41% 40%, 25% 120%, -8% 120%); }
  71% { opacity: 1; clip-path: polygon(-8% -16%, 75% -16%, 92% 40%, 66% 120%, -8% 120%); }
  100% { opacity: 1; clip-path: polygon(-8% -16%, 116% -16%, 116% 40%, 116% 120%, -8% 120%); }
}
.scene-link:focus-visible .ink-word { animation: none; }
.experience[data-explored] .room-locations .ink-word { animation: none; }

.experience[data-look='available'] #dojo-canvas { cursor: grab; touch-action: none; }
.experience[data-look='available'] #dojo-canvas[data-dragging] { cursor: grabbing; }
.look-guide {
  position: absolute;
  top: 54%;
  left: 50%;
  z-index: 10;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 12px;
  width: min(95%, 460px);
  color: var(--scene-white);
  text-align: center;
  text-shadow: 0 1px 3px #190d07, 0 0 14px #190d07, 0 0 22px #190d07;
  font: 700 clamp(13px, 1.3vw, 17px)/1.5 var(--sans);
  pointer-events: none;
  transition: opacity .65s ease, transform .65s ease;
}
.look-guide.is-dismissed { opacity: 0; transform: translate(-50%, -39%); }
.reset-view {
  position: absolute;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  color: var(--scene-white);
  background: none;
  font: 700 13px/1.3 var(--sans);
  text-shadow: 0 1px 4px #190d07, 0 0 10px #190d07;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.experience #interior-panel[data-scroll] {
  --rod-height: 17px;
  inset: clamp(75px, 9svh, 99px) clamp(23px, 4vw, 62px) clamp(23px, 4svh, 42px) auto;
  width: min(52vw, 790px);
  border: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
  animation: none;
}
.experience:is([data-section='work'], [data-section='contact']) #interior-panel[data-scroll] {
  right: auto;
  left: clamp(23px, 4vw, 62px);
}
.experience #interior-panel[data-scroll] #interior-content {
  position: relative;
  padding-block: clamp(24px, 3.4vw, 46px);
  padding-inline: clamp(29px, 4vw, 62px);
  scrollbar-color: #936942 transparent;
  scrollbar-gutter: stable;
}
.scroll-brush-layer {
  position: absolute;
  inset-inline: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.scroll-brush {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
}
.scroll-brush::before {
  content: '';
  position: absolute;
  right: -3px;
  top: -5px;
  width: 25px;
  height: 10px;
  background: repeating-linear-gradient(177deg, #25150eaa 0 1px, transparent 1px 2px),
    linear-gradient(90deg, #54372400, #4a2b26b0 64%, #271a15e0);
  clip-path: polygon(0 51%, 23% 32%, 17% 21%, 63% 16%, 82% 0, 96% 25%, 100% 50%, 93% 70%, 78% 96%, 54% 78%, 19% 77%, 28% 64%);
}
.scroll-brush-title::before { width: 39px; height: 15px; top: -8px; }
.scroll-brush-title::after {
  content: '';
  position: absolute;
  left: -2px;
  bottom: -1px;
  width: 39px;
  height: 7px;
  background: linear-gradient(90deg, #231813 0 18%, #76513c 30%, #b78957 32% 42%, #775438 43% 78%, transparent);
  clip-path: polygon(0 50%, 30% 0, 100% 21%, 100% 74%, 31% 100%);
  transform: rotate(-55deg);
  transform-origin: 1px center;
}
.scroll-paper { display: none; }
[data-scroll] .scroll-paper {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(2px 9px 13px #2013099c);
}
.scroll-paper::before {
  content: '';
  position: absolute;
  inset: -1px -3px;
  /* The paper edge varies independently of the rectangular reading area. */
  clip-path: polygon(
    .6% .5%, 17% 0, 32% .4%, 49% .1%, 63% .5%, 81% .2%, 99.1% 0,
    99.3% 3%, 98.8% 5.2%, 99.4% 7.5%, 98.9% 10%, 99.3% 13%, 98.7% 16%,
    99.2% 19.8%, 99% 23%, 98.5% 25.2%, 98.9% 27.6%, 98.6% 31%, 99.3% 33%,
    99.1% 37%, 99.6% 40%, 99.3% 43.2%, 98.9% 45.1%, 99.6% 47.8%, 99.3% 51%,
    99.7% 54%, 99.1% 56.2%, 99.6% 59%, 99.2% 65%, 98.6% 69.1%, 99.1% 71%,
    98.7% 74%, 99.2% 77%, 98.9% 79.4%, 99.5% 81%, 99.2% 84%, 99.6% 87%,
    99.2% 90%, 99.5% 94%, 98.8% 96%, 99.1% 99.3%, 77% 100%, 61% 99.7%,
    45% 100%, 27% 99.8%, 13% 100%, .6% 99.5%, .9% 96%, .3% 94%, .7% 90%,
    .2% 87%, .7% 84.7%, .4% 81.2%, 1.2% 77%, .9% 74%, 1.5% 70%, .9% 66%,
    1.2% 63%, .5% 59%, .8% 54%, .3% 51%, .6% 48%, 0 44.5%, .4% 41%, .1% 39%,
    .7% 36%, .3% 33%, .9% 30%, .5% 27%, 1% 22%, .7% 20%, 1.3% 17%, .8% 14%,
    1% 10%, .4% 7%, .8% 4%, .3% 2%
  );
  background:
    radial-gradient(ellipse at 107% 12%, #70402477, transparent 24%),
    radial-gradient(ellipse at 101% 68%, #a36d3c55, transparent 23%),
    radial-gradient(ellipse at -8% 29%, #75432277, transparent 25%),
    radial-gradient(ellipse at -2% 96%, #8b502d69, transparent 29%),
    linear-gradient(91deg, #6d452688, #9a67334d 2.5%, transparent 10% 91%, #9a633744 97%, #6d452694),
    linear-gradient(180deg, #8053319c, transparent 9% 89%, #8a5e338c),
    linear-gradient(101deg, #fff6e48c, #fff9ed91 52%, #f4dfbe78),
    url('aged-washi.jpg') center / 690px auto #e8cda0;
}
.scroll-roller { display: none; }
[data-scroll] .scroll-roller {
  display: block;
  position: absolute;
  z-index: 2;
  height: var(--rod-height);
  inset-inline: -7px;
  pointer-events: none;
  border-block: 1px solid #37251b;
  border-radius: 9px 5px 7px 5px / 6px 5px 5px 8px;
  background:
    repeating-linear-gradient(.65deg, #bb8d552e 0 1px, transparent 2px 4px, #2d1b164d 4px 5px, transparent 6px 8px),
    linear-gradient(90deg, #2c1c1777, transparent 12% 93%, #2d1e1799),
    linear-gradient(#3c2a22 4%, #956b49 35%, #68452e 57%, #38271d 93%);
  box-shadow: 0 3px 8px #2f1b1577;
}
.scroll-roller-top { top: calc(-.58 * var(--rod-height)); }
.scroll-roller-bottom { bottom: calc(-.55 * var(--rod-height)); }
.scroll-roller::before, .scroll-roller::after {
  content: '';
  position: absolute;
  width: 11px;
  inset-block: -3px;
  border-radius: 48%;
  border: 1px solid #4a2e22;
  background: linear-gradient(90deg, #4c3021, #8d6245 43%, #604129);
}
.scroll-roller::before { left: -2px; }
.scroll-roller::after { right: -2px; }
.experience #interior-panel[data-scroll] .portfolio-section h2 {
  color: #30221c;
  font-family: 'Kaushan Script', var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.036em;
}
.experience #interior-panel[data-scroll] .portfolio-section .eyebrow { color: #793a2f; }
.experience #interior-panel[data-scroll] .paper-link { color: #793a2f; }

#sakura-fall {
  position: absolute;
  z-index: 24;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sakura-petal {
  position: absolute;
  top: 0;
  left: var(--petal-left);
  width: var(--petal-size);
  height: calc(var(--petal-size) * .69);
  border-radius: 24% 66% 29% 65%;
  clip-path: polygon(0 70%, 14% 21%, 64% 0, 91% 10%, 86% 32%, 100% 47%, 80% 75%, 45% 100%, 18% 92%);
  background: radial-gradient(ellipse at 24% 77%, var(--petal-edge), transparent 63%),
    linear-gradient(134deg, #fff1e8, var(--petal-pink) 65%, #c47689);
  opacity: 0;
  animation: sakura-drift var(--petal-duration) var(--petal-delay) linear both;
}
@keyframes sakura-drift {
  0% { opacity: 0; transform: translate(0, -4svh) rotate(var(--petal-start)) rotateX(14deg); }
  13% { opacity: .94; }
  39% { transform: translate(calc(var(--petal-drift) * .51), 33svh) rotate(calc(var(--petal-start) + 85deg)) rotateX(65deg); }
  67% { transform: translate(calc(var(--petal-drift) * .74 - 2vw), 64svh) rotate(calc(var(--petal-start) + 170deg)) rotateX(-25deg); }
  87% { opacity: .84; }
  100% { opacity: 0; transform: translate(var(--petal-drift), 104svh) rotate(calc(var(--petal-start) + 270deg)) rotateX(52deg); }
}

@media (max-width: 690px) {
  .experience[data-section] #interior-panel[data-scroll] {
    --rod-height: 12px;
    inset: clamp(151px, 38svh, 340px) 0 max(14px, env(safe-area-inset-bottom));
    margin-inline: auto;
    width: min(93%, 35rem);
  }
  .room-locations .scene-link { font-size: clamp(19px, 5.5vw, 27px); }
  .experience #interior-panel[data-scroll] #interior-content { padding: 22px clamp(17px, 5vw, 29px); }
  [data-scroll] .scroll-roller { inset-inline: -4px; }
}
@media (max-height: 540px) and (min-width: 691px) {
  .experience #interior-panel[data-scroll] { inset-block: 71px 16px; }
}

.pond-link, .pond-ripple { font-size: clamp(17px, 3.2vw, 27px); }
.pond-link, .pond-ripple { left: clamp(58px, var(--scene-x, 30%), calc(100% - 58px)); }
.lamp-link {
  left: var(--scene-x, 84%);
  padding: 0;
  cursor: pointer;
}
.lamp-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #f2cb8c;
  border-radius: 50%;
  background: #301e13e8;
  color: #ffe6af;
  box-shadow: 0 1px 4px #28190ca6;
  text-shadow: none;
  font: 16px/1 system-ui, sans-serif;
  transition: background-color .16s, scale .16s;
}
.lamp-mark::before { content: '☾'; }
.lamp-link[aria-pressed='true'] .lamp-mark::before { content: '☼'; }
.lamp-link > .lamp-mark::after { content: none; }
.lamp-link:is(:hover, :focus-visible) .lamp-mark { background: #54341e; scale: 1.13; }
.pond-return { left: 24px; top: 70px; transform: none; font-size: 18px; }
.read-shortcut {
  position: absolute;
  z-index: 12;
  bottom: max(19px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 13px;
  width: min(92%, 550px);
  transform: translateX(-50%);
  color: var(--scene-white);
  font-size: 14px;
  text-shadow: 0 1px 4px #160e08, 0 1px 10px #160e08;
}
.experience[data-section='hub'] .read-shortcut { bottom: max(55px, calc(env(safe-area-inset-bottom) + 36px)); }
.read-shortcut p { margin: 0; }
.read-shortcut button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #ffdeb4;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-shadow: inherit;
  font-weight: 700;
}
.experience[data-stage='exterior'] .scene-tone { background: linear-gradient(#221b1550, transparent 42% 79%, #22180da6); }
html[data-theme='night'] .experience[data-stage='exterior'] .scene-tone { background: linear-gradient(#101923bc, transparent 44% 78%, #0c131ac9); }

@media (max-width: 420px) {
  .read-shortcut { font-size: 12px; gap: 0 8px; }
  .pond-link { font-size: 17px; }
}
