:root {
  --ink: #171813;
  --paper: #efeee8;
  --night: #080a09;
  --white: rgba(244, 244, 238, 0.92);
  --white-soft: rgba(244, 244, 238, 0.55);
  --white-faint: rgba(244, 244, 238, 0.18);
  --hairline: rgba(244, 244, 238, 0.2);
  --black-hairline: rgba(23, 24, 19, 0.16);
  --sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC", "Yu Mincho", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--night);
  color: var(--ink);
}

body {
  overflow: hidden;
  font-family: var(--sans);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.site-root,
.home-view,
.room-view {
  position: fixed;
  inset: 0;
}

.no-script {
  position: fixed;
  left: 24px;
  bottom: 22px;
  z-index: 100;
  margin: 0;
  color: var(--white);
  font: 12px/1.5 var(--sans);
}

/* ---------- home / ambient field ---------- */

.home-view {
  overflow: hidden;
  background: var(--night);
  color: var(--white);
}

.ambient-field,
.ambient-video,
.ambient-still,
.ambient-empty,
.ambient-veil,
.ambient-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ambient-field {
  overflow: hidden;
  background: #090b0a;
}

.ambient-video,
.ambient-still {
  object-fit: cover;
  object-position: center;
  transform: scale(1.012);
  filter: grayscale(0.72) saturate(0.55) contrast(0.82) brightness(0.48);
  animation: ambient-breathe 22s ease-in-out infinite alternate;
}

.ambient-still {
  filter: grayscale(0.88) saturate(0.35) contrast(0.78) brightness(0.42) blur(0.4px);
}

.ambient-empty {
  background:
    radial-gradient(circle at 58% 42%, rgba(168, 174, 169, 0.13), transparent 34%),
    linear-gradient(180deg, #111412 0%, #090b0a 56%, #050606 100%);
}

.ambient-empty-cloud {
  background:
    radial-gradient(ellipse at 52% 34%, rgba(181, 184, 177, 0.15), transparent 32%),
    linear-gradient(180deg, #141615 0%, #090b0a 62%, #060706 100%);
}

.ambient-empty-lake {
  background:
    linear-gradient(180deg, #101311 0 48%, #0a0d0b 49% 53%, #060807 100%);
}

.ambient-empty-sky {
  background:
    radial-gradient(circle at 50% 18%, rgba(184, 187, 179, 0.12), transparent 40%),
    linear-gradient(180deg, #131614 0%, #080a09 74%);
}

.ambient-veil {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 3, 3, 0.38) 0%, rgba(2, 3, 3, 0.08) 27%, rgba(2, 3, 3, 0.04) 58%, rgba(2, 3, 3, 0.3) 100%),
    radial-gradient(circle at 53% 44%, transparent 24%, rgba(0, 0, 0, 0.26) 100%);
}

.ambient-grain {
  inset: -18%;
  width: 136%;
  height: 136%;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(rgba(255, 255, 255, 0.44) 0.5px, transparent 0.7px);
  background-size: 4px 4px;
  animation: grain 10s steps(6, end) infinite;
}

@keyframes ambient-breathe {
  from { transform: scale(1.012) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-0.25%, 0.18%, 0); }
}

@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(1.5%, -1%, 0); }
  50% { transform: translate3d(-1%, 1.3%, 0); }
  75% { transform: translate3d(0.8%, 1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.home-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(280px, 2fr) minmax(120px, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 0 32px;
  color: rgba(247, 247, 240, 0.86);
  font-size: 10px;
  letter-spacing: 0.075em;
}

.calendar-toggle {
  display: flex;
  align-items: baseline;
  justify-self: start;
  gap: 13px;
  text-align: left;
}

.calendar-toggle > span:first-child {
  color: rgba(247, 247, 240, 0.46);
  text-transform: lowercase;
}

.calendar-day-name {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.035em;
}

.ambient-caption {
  justify-self: center;
  max-width: min(60vw, 680px);
  margin: 0;
  overflow: hidden;
  color: rgba(247, 247, 240, 0.58);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language {
  display: flex;
  justify-self: end;
  gap: 8px;
}

.language button {
  color: rgba(247, 247, 240, 0.36);
  font-size: 9px;
  letter-spacing: 0.08em;
  transition: color 240ms ease;
}

.language button:hover,
.language button.is-active {
  color: rgba(247, 247, 240, 0.92);
}

.index-toggle,
.home-today {
  position: fixed;
  bottom: 27px;
  z-index: 50;
  color: rgba(247, 247, 240, 0.78);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.index-toggle { left: 32px; }

.index-toggle::after {
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 0 3px 10px;
  background: currentColor;
  content: "";
  opacity: 0.5;
  transition: width 450ms var(--ease);
}

.index-toggle:hover::after { width: 38px; }

.home-today {
  right: 32px;
  color: rgba(247, 247, 240, 0.5);
}

/* ---------- index ---------- */

.index-layer,
.calendar-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.index-backdrop,
.calendar-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
  background: rgba(2, 3, 3, 0.28);
  backdrop-filter: blur(2px);
}

.index-panel {
  position: absolute;
  left: 32px;
  bottom: 74px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 54px;
  width: min(620px, calc(100vw - 64px));
  padding: 28px 30px 30px;
  border: 1px solid rgba(247, 247, 240, 0.14);
  background: rgba(6, 8, 7, 0.67);
  backdrop-filter: blur(16px);
  animation: panel-in 420ms var(--ease) both;
}

.index-heading {
  margin: 0 0 17px;
  color: rgba(247, 247, 240, 0.35);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.index-link {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 5px 0;
  color: rgba(247, 247, 240, 0.72);
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  transition: color 220ms ease, transform 380ms var(--ease);
}

.index-link:hover {
  color: #fff;
  transform: translateX(5px);
}

.index-link span {
  color: rgba(247, 247, 240, 0.32);
  font-size: 0.7em;
}

/* ---------- calendar · seven-day chronology ---------- */

.calendar-backdrop {
  background:rgba(2,3,3,.44);
  backdrop-filter:blur(4px);
}

.calendar-panel {
  position:absolute;
  top:18px;
  left:18px;
  display:flex;
  flex-direction:column;
  width:min(805px,calc(100vw - 36px));
  max-height:calc(100svh - 36px);
  padding:38px 39px 34px;
  overflow-y:auto;
  scrollbar-width:none;
  border:1px solid rgba(247,247,240,.15);
  background:rgba(7,9,8,.79);
  backdrop-filter:blur(20px);
  animation:panel-in 420ms var(--ease) both;
}
.calendar-panel::-webkit-scrollbar {display:none;}

/* The introduction now opens the calendar, above the month controls. */
.calendar-intro {
  margin:0 0 27px;
  padding:0 0 27px;
  border-top:0;
  border-bottom:1px solid rgba(247,247,240,.15);
}
.calendar-intro p {
  max-width:620px;
  margin:0;
  color:rgba(247,247,240,.68);
  font-family:var(--serif);
  font-size:clamp(12px,1vw,14px);
  font-weight:300;
  line-height:1.95;
  letter-spacing:.028em;
}
.calendar-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:26px;
  padding-bottom:23px;
}
.calendar-kicker {
  margin:0 0 9px;
  color:rgba(247,247,240,.36);
  font-size:9px;
  letter-spacing:.15em;
  text-transform:lowercase;
}
.calendar-current {
  margin:0;
  color:rgba(247,247,240,.77);
  font-family:var(--serif);
  font-size:clamp(14px,1.45vw,18px);
  letter-spacing:.035em;
  font-weight:400;
}
.calendar-controls {
  display:grid;
  grid-template-columns:24px auto 24px;
  align-items:center;
  gap:14px;
  min-width:160px;
  color:rgba(247,247,240,.54);
  font-size:10px;
  letter-spacing:.06em;
  text-align:center;
}
.calendar-controls button {
  color:rgba(247,247,240,.50);
  transition:color 200ms ease;
}
.calendar-controls button:hover:not(:disabled){color:rgba(247,247,240,.96);}
.calendar-controls button:disabled{opacity:.21;cursor:default;}

/* No category columns, no "unknown" track.
   Cells are always arranged Monday → Sunday in ordinary month rows. */
.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:0;
  margin-top:0;
  border-top:1px solid rgba(247,247,240,.17);
  border-left:1px solid rgba(247,247,240,.065);
}
.calendar-weekday {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  min-height:39px;
  padding:0 10px;
  border-right:1px solid rgba(247,247,240,.065);
  border-bottom:1px solid rgba(247,247,240,.11);
  color:rgba(247,247,240,.38);
  font-size:10px;
  letter-spacing:.075em;
}
.calendar-day,.calendar-empty {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  min-width:0;
  height:clamp(60px,7vw,83px);
  margin:0;
  padding:10px 10px 9px;
  border-right:1px solid rgba(247,247,240,.065);
  border-bottom:1px solid rgba(247,247,240,.075);
  color:rgba(247,247,240,.69);
  background:transparent;
  text-align:left;
  transform:none;
  transition:background 210ms ease,color 210ms ease;
}
.calendar-day:not(.is-unassigned):hover{
  color:rgba(247,247,240,.97);
  background:rgba(247,247,240,.065);
}
.calendar-day.is-unassigned{
  cursor:default;
  color:rgba(247,247,240,.22);
  background:transparent;
}
.calendar-day.is-today::before{
  position:absolute;
  top:14px;
  right:13px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:rgba(247,247,240,.75);
  content:"";
}
.calendar-day.is-selected{
  background:rgba(247,247,240,.078);
  color:rgba(247,247,240,.96);
}
.calendar-day.is-selected::after{
  position:absolute;
  inset:0;
  border:1px solid rgba(247,247,240,.32);
  pointer-events:none;
  content:"";
}
.calendar-number {
  font-size:11px;
  line-height:1.2;
  letter-spacing:.025em;
  font-variant-numeric:tabular-nums;
}
.calendar-day-type {
  color:rgba(247,247,240,.36);
  font-family:var(--serif);
  font-size:11px;
  font-weight:300;
  letter-spacing:.025em;
}
.calendar-day:hover .calendar-day-type,
.calendar-day.is-selected .calendar-day-type{color:rgba(247,247,240,.65);}
.calendar-today {
  align-self:flex-start;
  margin-top:22px;
  padding-bottom:4px;
  border-bottom:1px solid rgba(247,247,240,.24);
  color:rgba(247,247,240,.53);
  font-size:9px;
  letter-spacing:.08em;
}

/* Small corner control, separate from the vertical day-title. */
.home-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.home-day-calligraphy {
  position:fixed;
  z-index:49;
  top:clamp(112px,16vh,210px);
  right:clamp(35px,5vw,95px);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:17px;
  pointer-events:none;
  color:rgba(247,247,240,.78);
  font-family:var(--serif);
  font-weight:300;
  text-shadow:0 1px 12px rgba(3,5,5,.14);
  writing-mode:vertical-rl;
  text-orientation:upright;
}
.home-day-calligraphy-title {
  font-size:clamp(30px,3.3vw,48px);
  line-height:1.34;
  letter-spacing:.14em;
}
.home-day-calligraphy-date {
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:9px;
  line-height:1.1;
  letter-spacing:.1em;
  color:rgba(247,247,240,.45);
  text-orientation:mixed;
}
.home-day-calligraphy.is-latin{
  text-orientation:mixed;
  letter-spacing:.08em;
}
.home-day-calligraphy.is-latin .home-day-calligraphy-title{
  font-size:clamp(24px,2.6vw,37px);
  letter-spacing:.045em;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- work / collection rooms ---------- */

.room-view {
  z-index: 100;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  animation: room-in 520ms var(--ease) both;
}

.room-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 54px;
  padding: 0 28px;
  border-bottom: 1px solid var(--black-hairline);
  background: rgba(239, 238, 232, 0.9);
  backdrop-filter: blur(14px);
}

.room-head > p {
  max-width: 54vw;
  margin: 0;
  overflow: hidden;
  color: rgba(23, 24, 19, 0.55);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-head .language button {
  color: rgba(23, 24, 19, 0.3);
}

.room-head .language button:hover,
.room-head .language button.is-active {
  color: rgba(23, 24, 19, 0.9);
}

.room-back {
  justify-self: start;
  color: rgba(23, 24, 19, 0.5);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.room-scroll {
  position: absolute;
  inset: 54px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.room-scroll::-webkit-scrollbar { display: none; }

.room-lead {
  display: grid;
  align-content: end;
  min-height: 72svh;
  padding: 14vh 11vw 12vh;
}

.room-group {
  margin: 0 0 18px;
  color: rgba(23, 24, 19, 0.38);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.room-lead h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.room-intro {
  width: min(580px, 78vw);
  margin: 50px 0 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 19px);
  letter-spacing: 0.03em;
  line-height: 1.95;
}

.room-visit {
  display: inline-block;
  width: max-content;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(23, 24, 19, 0.24);
  color: rgba(23, 24, 19, 0.56);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: color 220ms ease, border-color 220ms ease;
}

.room-visit:hover {
  color: var(--ink);
  border-color: rgba(23, 24, 19, 0.62);
}

.room-visit span {
  display: inline-block;
  margin-left: 5px;
}


.room-notes {
  width: min(920px, calc(100vw - 48px));
  margin: 2vh auto 8vh;
  border-top: 1px solid var(--black-hairline);
}

.room-note {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(54px, 8vh, 92px) 0;
  border-bottom: 1px solid var(--black-hairline);
}

.room-note-title {
  margin: 0;
  color: rgba(23, 24, 19, 0.38);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.room-note-copy {
  max-width: 680px;
}

.room-note-body {
  margin: 0 0 1.45em;
  font-family: var(--serif);
  font-size: clamp(16px, 1.22vw, 18px);
  letter-spacing: 0.03em;
  line-height: 2.05;
}

.room-note-body:last-child {
  margin-bottom: 0;
}

.room-note-body a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 24, 19, 0.28);
  transition: border-color 180ms ease, color 180ms ease;
}

.room-note-body a:hover,
.room-note-body a:focus-visible {
  color: rgba(23, 24, 19, 0.96);
  border-bottom-color: rgba(23, 24, 19, 0.64);
}

.room-note-quote {
  margin: 0;
  padding: 0;
}

.room-note-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.35vw, 20px);
  letter-spacing: 0.025em;
  line-height: 2.05;
}

.room-note-quote cite {
  display: block;
  margin-top: 28px;
  color: rgba(23, 24, 19, 0.42);
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.room-visit-wrap {
  width: min(920px, calc(100vw - 48px));
  margin: 0 auto 15vh;
  padding-top: 2px;
}

.room-image {
  margin: 0;
  padding: 6vh 8vw 16vh;
}

.room-image img {
  display: block;
  width: 100%;
  height: 74vh;
  min-height: 430px;
  object-fit: cover;
  background: #d7d6d0;
  filter: grayscale(0.54) saturate(0.72) contrast(0.94);
}

.room-image.is-contain img {
  object-fit: contain;
  padding: clamp(26px, 5vw, 78px);
  background: #e7e6df;
  filter: grayscale(0.7) saturate(0.55) contrast(0.88);
}

.room-image figcaption {
  margin-top: 9px;
  color: rgba(23, 24, 19, 0.42);
  font-size: 8px;
  letter-spacing: 0.065em;
}

.room-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42svh;
  border-top: 1px solid var(--black-hairline);
}

.room-footer button {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.025em;
}

.room-footer button span {
  display: inline-block;
  margin-left: 7px;
  transition: transform 380ms var(--ease);
}

.room-footer button:hover span {
  transform: translateX(6px);
}

@keyframes room-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .home-head {
    grid-template-columns: 1fr auto;
    min-height: 52px;
    padding: 0 17px;
  }

  .ambient-caption { display: none; }

  .calendar-toggle { gap: 9px; }

  .calendar-toggle > span:first-child { font-size: 9px; }

  .calendar-day-name { font-size: 11px; }

  .index-toggle {
    left: 18px;
    bottom: 20px;
  }

  .home-today {
    right: 18px;
    bottom: 20px;
  }

  .index-panel {
    left: 12px;
    right: 12px;
    bottom: 56px;
    grid-template-columns: 1fr;
    gap: 27px;
    width: auto;
    padding: 24px 22px 26px;
  }

  .index-link {
    padding: 4px 0;
    font-size: 18px;
  }

  .home-day-calligraphy {
    top:clamp(102px,14vh,160px);
    right:21px;
    gap:12px;
  }
  .home-day-calligraphy-title {font-size:clamp(27px,7vw,36px);}
  .home-day-calligraphy.is-latin .home-day-calligraphy-title {font-size:25px;}

  .calendar-panel {
    top:8px;
    left:8px;
    width:calc(100vw - 16px);
    max-height:calc(100svh - 16px);
    padding:24px 14px 26px;
  }
  .calendar-intro{
    margin-bottom:20px;
    padding-bottom:19px;
  }
  .calendar-intro p{
    font-size:11px;
    line-height:1.85;
  }
  .calendar-head{
    grid-template-columns:1fr;
    gap:17px;
    padding-bottom:17px;
  }
  .calendar-current{font-size:15px;}
  .calendar-controls{
    justify-self:stretch;
    grid-template-columns:28px 1fr 28px;
    min-width:0;
    gap:8px;
    width:100%;
  }
  .calendar-weekday{
    min-height:32px;
    padding:0 5px;
    font-size:9px;
  }
  .calendar-day,.calendar-empty{
    height:clamp(50px,13.2vw,67px);
    padding:8px 5px 7px;
  }
  .calendar-number{font-size:10px;}
  .calendar-day-type{font-size:9px;}
  .calendar-day.is-today::before{
    top:11px;right:7px;width:3px;height:3px;
  }
  .calendar-today{margin-top:17px;}

  .room-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    height: 50px;
    padding: 0 16px;
  }

  .room-head > p {
    max-width: none;
    font-size: 10px;
    text-align: center;
  }

  .room-scroll { inset: 50px 0 0; }

  .room-lead {
    min-height: 67svh;
    padding: 12vh 22px 10vh;
  }

  .room-lead h1 {
    font-size: clamp(31px, 10vw, 48px);
  }

  .room-intro {
    width: 100%;
    margin-top: 36px;
    font-size: 16px;
    line-height: 1.9;
  }

  .room-image {
    padding: 5vh 12px 13vh;
  }

  .room-image img {
    height: 64svh;
    min-height: 330px;
  }

  .room-notes {
    width: calc(100vw - 36px);
    margin-top: 0;
  }

  .room-note {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 48px 0;
  }

  .room-note-body {
    font-size: 16px;
    line-height: 1.95;
  }

  .room-note-quote p {
    font-size: 17px;
    line-height: 1.95;
  }

  .room-visit-wrap {
    width: calc(100vw - 36px);
    margin-bottom: 12vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ===== Collection gallery ===== */

/* Keep artwork / collection images in their original colour. */
.room-image img,
.room-image.is-contain img {
  filter: none;
}

.fragrance-room .room-scroll {
  background: var(--paper);
}

.fragrance-lead {
  min-height: 64svh;
  padding-bottom: 9vh;
}

.fragrance-gallery {
  width: 100%;
  margin: 0 0 12vh;
  border-top: 1px solid var(--black-hairline);
  border-bottom: 1px solid var(--black-hairline);
  background: #e9e8e2;
}

/*
  The theme switcher belongs to the gallery itself. It now scrolls away with the
  photographs instead of sticking to the viewport while the images move beneath it.
*/
.fragrance-theme-nav {
  position: relative;
  top: auto;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--black-hairline);
  background: #e9e8e2;
}

.fragrance-theme {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 14px;
  border-right: 1px solid var(--black-hairline);
  color: rgba(23, 24, 19, 0.46);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.035em;
  text-align: left;
  transition: background 220ms ease, color 220ms ease;
}

.fragrance-theme:last-child {
  border-right: 0;
}

.fragrance-theme:hover,
.fragrance-theme.is-active {
  background: rgba(255, 255, 255, 0.26);
  color: rgba(23, 24, 19, 0.92);
}

.fragrance-theme-index,
.fragrance-theme-count {
  color: rgba(23, 24, 19, 0.28);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.fragrance-stage {
  display: grid;
  grid-template-columns: minmax(42px, 6vw) minmax(0, 1fr) minmax(42px, 6vw);
  align-items: center;
  min-height: min(78svh, 860px);
  padding: 4vh 0 2.5vh;
}

.fragrance-frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  min-width: 0;
  height: min(70svh, 760px);
  margin: 0;
  animation: fragrance-image-in 260ms var(--ease) both;
}

.fragrance-frame img {
  display: block;
  max-width: min(82vw, 1180px);
  max-height: calc(100% - 34px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: none;
}

.fragrance-frame figcaption {
  display: flex;
  justify-content: space-between;
  width: min(82vw, 1180px);
  margin-top: 12px;
  color: rgba(23, 24, 19, 0.38);
  font-size: 8px;
  letter-spacing: 0.075em;
  text-transform: lowercase;
}

.fragrance-arrow {
  align-self: stretch;
  color: rgba(23, 24, 19, 0.28);
  font-family: var(--serif);
  font-size: 18px;
  transition: color 200ms ease, background 200ms ease;
}

.fragrance-arrow:hover {
  color: rgba(23, 24, 19, 0.86);
  background: rgba(255, 255, 255, 0.16);
}

.fragrance-filmstrip {
  display: flex;
  gap: 8px;
  width: min(86vw, 1240px);
  margin: 0 auto;
  padding: 0 0 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.fragrance-filmstrip::-webkit-scrollbar {
  display: none;
}

.fragrance-thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 50px;
  padding: 3px;
  border: 1px solid transparent;
  opacity: 0.42;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.fragrance-thumb:hover {
  opacity: 0.76;
}

.fragrance-thumb.is-active {
  border-color: rgba(23, 24, 19, 0.38);
  opacity: 1;
}

.fragrance-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

@keyframes fragrance-image-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .fragrance-lead {
    min-height: 58svh;
  }

  .fragrance-theme-nav {
    position: relative;
    top: auto;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .fragrance-theme-nav::-webkit-scrollbar {
    display: none;
  }

  .fragrance-theme {
    flex: 0 0 auto;
    grid-template-columns: auto auto auto;
    min-width: 132px;
    min-height: 45px;
    padding: 0 11px;
  }

  .fragrance-stage {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    min-height: 66svh;
    padding-top: 22px;
  }

  .fragrance-frame {
    height: 58svh;
  }

  .fragrance-frame img,
  .fragrance-frame figcaption {
    max-width: 100%;
    width: 100%;
  }

  .fragrance-frame img {
    max-height: calc(100% - 36px);
  }

  .fragrance-filmstrip {
    width: calc(100vw - 36px);
    padding-bottom: 16px;
  }

  .fragrance-thumb {
    width: 58px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fragrance-frame {
    animation: none;
  }
}


/* ===== Ambient colour system ===== */

/*
  Ambient colour system — filter-only edition
  -------------------------------------------
  The uploaded WebM files stay untouched. The homepage always plays the original
  source video and applies a light, day-specific CSS grade in the browser.
  No duplicated video layer, no baked LUT, no generated cyanotype asset.
*/

.home-view {
  --ambient-saturation: 0.82;
  --ambient-contrast: 1.03;
  --ambient-brightness: 0.79;
  --ambient-hue: -4deg;
  --ambient-veil-top: rgba(4, 11, 20, 0.18);
  --ambient-veil-bottom: rgba(2, 7, 14, 0.34);
  --ambient-edge: rgba(2, 8, 17, 0.22);
  --ambient-grain-opacity: 0.052;
}

/*
  SEA / OCEAN
  Deepest preset. Preserve real colour, but cool the mids and deepen the water.
*/
.home-view.ambient-day-sea {
  --ambient-saturation: 0.90;
  --ambient-contrast: 1.10;
  --ambient-brightness: 0.71;
  --ambient-hue: -7deg;
  --ambient-veil-top: rgba(3, 13, 29, 0.18);
  --ambient-veil-bottom: rgba(1, 8, 22, 0.40);
  --ambient-edge: rgba(1, 8, 24, 0.27);
  --ambient-grain-opacity: 0.055;
}

/*
  LAKE
  Softer and quieter. Keep some green / cyan in vegetation and water.
*/
.home-view.ambient-day-lake {
  --ambient-saturation: 0.84;
  --ambient-contrast: 1.00;
  --ambient-brightness: 0.79;
  --ambient-hue: -5deg;
  --ambient-veil-top: rgba(5, 18, 24, 0.12);
  --ambient-veil-bottom: rgba(3, 12, 18, 0.30);
  --ambient-edge: rgba(3, 12, 18, 0.18);
  --ambient-grain-opacity: 0.047;
}

/*
  CLOUD
  Palest treatment. Keep cloud highlights almost neutral and avoid dirty greys.
*/
.home-view.ambient-day-cloud {
  --ambient-saturation: 0.72;
  --ambient-contrast: 0.98;
  --ambient-brightness: 0.87;
  --ambient-hue: -2deg;
  --ambient-veil-top: rgba(12, 20, 29, 0.08);
  --ambient-veil-bottom: rgba(6, 12, 20, 0.23);
  --ambient-edge: rgba(7, 14, 22, 0.14);
  --ambient-grain-opacity: 0.040;
}

/*
  SKY
  Most faithful to the original source. Blues stay vivid, while sunset warmth is
  still allowed to survive instead of being forced into monochrome cyan.
*/
.home-view.ambient-day-sky {
  --ambient-saturation: 1.00;
  --ambient-contrast: 1.04;
  --ambient-brightness: 0.83;
  --ambient-hue: -3deg;
  --ambient-veil-top: rgba(5, 14, 29, 0.09);
  --ambient-veil-bottom: rgba(3, 9, 20, 0.25);
  --ambient-edge: rgba(3, 10, 23, 0.16);
  --ambient-grain-opacity: 0.043;
}

.home-view .ambient-field {
  isolation: isolate;
  background: #07101b;
}

/* Original source video / still: browser-only colour grade, no grayscale. */
.home-view .ambient-video,
.home-view .ambient-still {
  z-index: 0;
  filter:
    saturate(var(--ambient-saturation))
    contrast(var(--ambient-contrast))
    brightness(var(--ambient-brightness))
    hue-rotate(var(--ambient-hue));
}

.home-view .ambient-still {
  filter:
    saturate(var(--ambient-saturation))
    contrast(var(--ambient-contrast))
    brightness(var(--ambient-brightness))
    hue-rotate(var(--ambient-hue))
    blur(0.35px);
}

/* Keep the fallback colour fields quiet, but do not simulate a fake photograph. */
.home-view .ambient-empty {
  z-index: 0;
  background:
    radial-gradient(circle at 54% 34%, rgba(122, 169, 195, 0.08), transparent 38%),
    linear-gradient(180deg, #102131 0%, #07121d 64%, #040a10 100%);
}

.home-view.ambient-day-cloud .ambient-empty {
  background:
    radial-gradient(ellipse at 51% 30%, rgba(186, 204, 213, 0.12), transparent 40%),
    linear-gradient(180deg, #17222d 0%, #0b141d 70%, #070d13 100%);
}

.home-view.ambient-day-lake .ambient-empty {
  background:
    linear-gradient(180deg, #10232a 0 47%, #09171c 50% 57%, #050d11 100%);
}

.home-view.ambient-day-sky .ambient-empty {
  background:
    radial-gradient(circle at 50% 15%, rgba(137, 183, 211, 0.11), transparent 44%),
    linear-gradient(180deg, #13263a 0%, #071322 82%);
}

/*
  A very faint blue-black veil keeps the page calm and the white interface legible.
  This is deliberately weaker than the previous cyanotype bath: the source video's
  own colour is now the main image.
*/
.home-view .ambient-veil {
  z-index: 1;
  mix-blend-mode: multiply;
  background:
    linear-gradient(
      180deg,
      var(--ambient-veil-top) 0%,
      rgba(0, 0, 0, 0.02) 30%,
      rgba(0, 0, 0, 0.01) 58%,
      var(--ambient-veil-bottom) 100%
    ),
    radial-gradient(circle at 52% 43%, transparent 28%, var(--ambient-edge) 100%);
}

.home-view .ambient-grain {
  z-index: 2;
  opacity: var(--ambient-grain-opacity);
  mix-blend-mode: soft-light;
  background-image: radial-gradient(rgba(170, 194, 207, 0.36) 0.5px, transparent 0.72px);
}

.home-view .home-head,
.home-view .index-toggle,
.home-view .home-today {
  text-shadow: 0 1px 12px rgba(0, 8, 18, 0.32);
}

@media (max-width: 760px) {
  .home-view { --ambient-brightness-mobile: 0.84; }
  .home-view.ambient-day-sea { --ambient-brightness-mobile: 0.76; }
  .home-view.ambient-day-lake { --ambient-brightness-mobile: 0.82; }
  .home-view.ambient-day-cloud { --ambient-brightness-mobile: 0.90; }
  .home-view.ambient-day-sky { --ambient-brightness-mobile: 0.87; }

  .home-view .ambient-video,
  .home-view .ambient-still {
    filter:
      saturate(var(--ambient-saturation))
      contrast(var(--ambient-contrast))
      brightness(var(--ambient-brightness-mobile))
      hue-rotate(var(--ambient-hue));
  }
}


/* ===== Typography and room refinements ===== */

/*
  Simplified Chinese typography
  -----------------------------
  Keep the Latin old-style serif voice, but give Simplified Chinese a closer,
  lighter Song / Mincho companion instead of falling back unpredictably.
*/

html:lang(zh-Hans) {
  --serif: "Iowan Old Style", "Baskerville", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}

html:lang(ja) {
  --serif: "Iowan Old Style", "Baskerville", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

html:lang(zh-Hans) .room-intro,
html:lang(zh-Hans) .room-note-body,
html:lang(zh-Hans) .room-note-quote p,
html:lang(zh-Hans) .calendar-intro p,
html:lang(zh-Hans) .index-link,
html:lang(zh-Hans) .calendar-day-name,
html:lang(zh-Hans) .calendar-type,
html:lang(zh-Hans) .ambient-caption,
html:lang(zh-Hans) .fragrance-theme {
  font-weight: 300;
}

html:lang(zh-Hans) .room-lead h1,
html:lang(zh-Hans) .calendar-current {
  font-weight: 400;
}

/*
  Room image stages
  -----------------
  Every work / collection image sits inside the same quiet grey viewing field.
  The original aspect ratio is always preserved; portrait images use the same
  stage area as landscape images rather than expanding to the full viewport.
*/

.room-image {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  width: min(90vw, 1280px);
  height: min(82svh, 880px);
  min-height: 560px;
  margin: 0 auto 16vh;
  padding: clamp(28px, 4.8vw, 76px) clamp(24px, 5.4vw, 84px) clamp(20px, 3vw, 38px);
  overflow: hidden;
  background: #deddd7;
}

.room-image img,
.room-image.is-contain img {
  position: relative;
  z-index: 3;
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: calc(100% - 34px);
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: none;
}

.room-image figcaption {
  position: relative;
  z-index: 4;
  justify-self: stretch;
  width: 100%;
  margin-top: 12px;
}

/*
  Collection after-image field
  ----------------------------
  One generated monochrome light sheet drifts behind every collection image.
  The motion is deliberately large enough to read at the exposed grey margins,
  while moderate blur and a faint dither layer soften visible gradient banding.
*/
.room-view[data-group="collection"] .room-image {
  isolation: isolate;
  background: #858581;
}

.room-view[data-group="collection"] .room-image::before {
  position: absolute;
  z-index: 0;
  inset: -22%;
  content: "";
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse at 18% 34%, rgba(246, 246, 238, 0.66) 0 7%, rgba(206, 206, 199, 0.30) 17%, transparent 34%),
    radial-gradient(ellipse at 78% 44%, rgba(232, 232, 224, 0.54) 0 8%, rgba(186, 186, 180, 0.22) 18%, transparent 35%),
    radial-gradient(ellipse at 45% 82%, rgba(250, 250, 244, 0.38) 0 6%, rgba(188, 188, 182, 0.18) 18%, transparent 34%),
    radial-gradient(ellipse at 55% 18%, rgba(20, 20, 19, 0.76) 0 10%, rgba(45, 45, 43, 0.34) 26%, transparent 48%),
    linear-gradient(118deg, rgba(16, 16, 15, 0.96), rgba(102, 102, 97, 0.72) 43%, rgba(26, 26, 25, 0.92) 72%, rgba(9, 9, 9, 0.98));
  filter: grayscale(1) blur(18px);
  transform-origin: 50% 50%;
  transform: scale(1.18) translate3d(-7%, -2%, 0);
  animation: collection-afterimage-flow 26s linear infinite, collection-afterimage-breathe 17s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* Subtle dither breaks up flat 8-bit gradient bands without reading as grain. */
.room-view[data-group="collection"] .room-image::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.055;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.46) 0.55px, transparent 0.72px),
    radial-gradient(rgba(0, 0, 0, 0.34) 0.5px, transparent 0.70px);
  background-position: 0 0, 3px 4px;
  background-size: 7px 7px, 9px 9px;
  mix-blend-mode: soft-light;
}

@keyframes collection-afterimage-flow {
  0%     { transform: scale(1.18) translate3d(-7.0%, -2.0%, 0); }
  6.25%  { transform: scale(1.18) translate3d(-6.5%, -3.7%, 0); }
  12.5%  { transform: scale(1.18) translate3d(-5.3%, -5.1%, 0); }
  18.75% { transform: scale(1.18) translate3d(-3.2%, -6.0%, 0); }
  25%    { transform: scale(1.18) translate3d(-0.5%, -6.4%, 0); }
  31.25% { transform: scale(1.18) translate3d(2.2%, -6.0%, 0); }
  37.5%  { transform: scale(1.18) translate3d(4.8%, -4.8%, 0); }
  43.75% { transform: scale(1.18) translate3d(6.5%, -2.8%, 0); }
  50%    { transform: scale(1.18) translate3d(7.2%, -0.2%, 0); }
  56.25% { transform: scale(1.18) translate3d(6.5%, 2.5%, 0); }
  62.5%  { transform: scale(1.18) translate3d(5.0%, 4.6%, 0); }
  68.75% { transform: scale(1.18) translate3d(2.6%, 5.8%, 0); }
  75%    { transform: scale(1.18) translate3d(0%, 6.4%, 0); }
  81.25% { transform: scale(1.18) translate3d(-2.8%, 5.8%, 0); }
  87.5%  { transform: scale(1.18) translate3d(-5.2%, 4.3%, 0); }
  93.75% { transform: scale(1.18) translate3d(-6.7%, 1.8%, 0); }
  100%   { transform: scale(1.18) translate3d(-7.0%, -2.0%, 0); }
}

@keyframes collection-afterimage-breathe {
  from { opacity: 0.48; }
  to { opacity: 0.64; }
}

@media (max-width: 760px) {
  .room-image {
    width: calc(100vw - 24px);
    height: min(70svh, 620px);
    min-height: 420px;
    margin-bottom: 13vh;
    padding: 22px 18px 18px;
  }

  .room-image img,
  .room-image.is-contain img {
    max-height: calc(100% - 32px);
  }

  .room-view[data-group="collection"] .room-image::before {
    inset: -26%;
    opacity: 0.60;
    filter: grayscale(1) blur(14px);
    animation: collection-afterimage-flow 23s linear infinite, collection-afterimage-breathe 15s ease-in-out infinite alternate;
  }

  .room-view[data-group="collection"] .room-image::after {
    opacity: 0.065;
  }
}

/*
  Seawater collection — procedural water caustics
  ------------------------------------------------
  These two grey stages replace the generic drifting light sheet with a small
  low-resolution Canvas 2D light field. CSS enlarges and softens it so the result
  reads as projected water-caustic light rather than a literal water surface.
*/
.room-view[data-room="seawater"] .room-image {
  background: #686865;
}

.room-view[data-room="seawater"] .room-image::before {
  display: none;
}

.room-view[data-room="seawater"] .room-image::after {
  z-index: 1;
  opacity: 0.045;
}

.seawater-caustics {
  position: absolute;
  z-index: 0;
  inset: -5%;
  width: 110%;
  height: 110%;
  pointer-events: none;
  opacity: 0.58;
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(1.12) brightness(0.82) blur(4px);
  transform: scale(1.03);
}

@media (max-width: 760px) {
  .seawater-caustics {
    inset: -7%;
    width: 114%;
    height: 114%;
    opacity: 0.62;
    filter: grayscale(1) contrast(1.10) brightness(0.84) blur(3px);
  }
}

/*
  Collection image-proportional stage
  -----------------------------------
  The grey field is derived from the displayed artwork rather than the viewport:
  stage height = image height × 1.50;
  stage width  = image width × 1.70 (150% base + an extra 10% on each side).
  JS supplies the exact pixel values after each image has loaded.
*/
.room-view[data-group="collection"] .room-image {
  width: var(--stage-width, min(72vw, 1120px));
  height: var(--stage-height, min(64svh, 680px));
  min-height: 0;
  margin: clamp(9vh, 11vh, 120px) auto clamp(18vh, 22vh, 220px);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(23, 24, 19, 0.075);
}

.room-view[data-group="collection"] .room-image img,
.room-view[data-group="collection"] .room-image.is-contain img {
  width: var(--image-width, auto);
  height: var(--image-height, auto);
  /* Before JS resolves the artwork dimensions, keep the original image
     inside its provisional stage rather than painting at full pixel size. */
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;
}

.room-view[data-group="collection"] .room-image figcaption {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 14px;
  width: var(--image-width, 88%);
  margin: 0;
  transform: translateX(-50%);
  color: rgba(23, 24, 19, 0.40);
  font-size: 8px;
  letter-spacing: 0.055em;
}

@media (max-width: 760px) {
  .room-view[data-group="collection"] .room-image {
    width: var(--stage-width, calc(100vw - 30px));
    height: var(--stage-height, min(58svh, 540px));
    min-height: 0;
    margin: 7vh auto 16vh;
    padding: 0;
    box-shadow: 0 0 0 1px rgba(23, 24, 19, 0.07);
  }

  .room-view[data-group="collection"] .room-image img,
  .room-view[data-group="collection"] .room-image.is-contain img {
    width: var(--image-width, auto);
    height: var(--image-height, auto);
    /* Keep unloaded / lazy-loaded images contained on small screens too. */
    max-width: 100%;
    max-height: 100%;
  }

  .room-view[data-group="collection"] .room-image figcaption {
    width: var(--image-width, 92%);
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .room-view[data-group="collection"] .room-image::before {
    animation: none;
    transform: scale(1.18) translate3d(-4%, 2%, 0);
    opacity: 0.52;
    filter: grayscale(1) blur(18px);
  }
}

/* ===== Site-wide light room theme ===== */
/*
  Restore the editorial paper surface for work / collection rooms. The ambient
  homepage remains dark because its own full-screen video field paints above this.
*/
:root {
  --ink: #181914;
  --paper: #f4f3ee;
  --black-hairline: rgba(23, 24, 19, 0.12);
}

html,
body {
  background: #f4f3ee;
}

.room-view {
  background: #f4f3ee;
  color: rgba(23, 24, 19, 0.88);
}

.room-scroll,
.fragrance-room .room-scroll {
  background: #f4f3ee;
}

.room-head {
  border-bottom-color: rgba(23, 24, 19, 0.12);
  background: rgba(244, 243, 238, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.room-head > p {
  color: rgba(23, 24, 19, 0.53);
}

.room-head .language button {
  color: rgba(23, 24, 19, 0.30);
}

.room-head .language button:hover,
.room-head .language button.is-active {
  color: rgba(23, 24, 19, 0.88);
}

.room-back {
  color: rgba(23, 24, 19, 0.46);
}

.room-group,
.room-note-title {
  color: rgba(23, 24, 19, 0.38);
}

.room-intro,
.room-note-body,
.room-note-quote p,
.room-footer button {
  color: rgba(23, 24, 19, 0.82);
}

.room-note-quote cite,
.room-image figcaption {
  color: rgba(23, 24, 19, 0.42);
}

.room-visit {
  border-bottom-color: rgba(23, 24, 19, 0.22);
  color: rgba(23, 24, 19, 0.58);
}

.room-visit:hover {
  color: rgba(23, 24, 19, 0.92);
  border-bottom-color: rgba(23, 24, 19, 0.52);
}

.room-notes,
.room-note,
.room-footer {
  border-color: rgba(23, 24, 19, 0.11);
}

.room-view[data-group="collection"] .room-image {
  background: #d8d7d1;
  box-shadow:
    0 0 0 1px rgba(23, 24, 19, 0.065),
    0 24px 64px rgba(55, 54, 49, 0.075);
}

.room-view[data-group="collection"] .room-image figcaption {
  color: rgba(23, 24, 19, 0.40);
}

.room-view[data-group="collection"] .room-image::before {
  opacity: 0.50;
  filter: grayscale(1) blur(18px);
}

/* Fragrance gallery returns to the pale editorial surface too. */
.fragrance-gallery,
.fragrance-theme-nav {
  border-color: rgba(23, 24, 19, 0.11);
  background: #f1f0eb;
}

.fragrance-theme {
  border-right-color: rgba(23, 24, 19, 0.10);
  color: rgba(23, 24, 19, 0.46);
}

.fragrance-theme:hover,
.fragrance-theme.is-active {
  background: rgba(23, 24, 19, 0.045);
  color: rgba(23, 24, 19, 0.88);
}

.fragrance-theme-index,
.fragrance-theme-count,
.fragrance-frame figcaption,
.fragrance-arrow {
  color: rgba(23, 24, 19, 0.34);
}

.fragrance-arrow:hover {
  color: rgba(23, 24, 19, 0.84);
  background: rgba(23, 24, 19, 0.04);
}

.fragrance-thumb.is-active {
  border-color: rgba(23, 24, 19, 0.36);
}

@media (max-width: 760px) {
  .room-view[data-group="collection"] .room-image {
    box-shadow:
      0 0 0 1px rgba(23, 24, 19, 0.06),
      0 18px 42px rgba(55, 54, 49, 0.065);
  }

  .room-view[data-group="collection"] .room-image::before {
    opacity: 0.54;
    filter: grayscale(1) blur(14px);
  }
}

/* ===== Seawater long-space — WebGL caustics + event-driven shadows ===== */
.room-view[data-room="seawater"] {
  background: #f4f3ee;
}

.room-view[data-room="seawater"] .room-scroll {
  position: absolute;
  inset: 54px 0 0;
  z-index: 3;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  background: transparent;
}

.seawater-world-light,
.seawater-world-shadow {
  position: absolute;
  top: 54px;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 54px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.seawater-world-light {
  z-index: 1;
  background: transparent;
  image-rendering: auto;
}

.seawater-world-shadow {
  z-index: 2;
  background: transparent;
}

.room-view[data-room="seawater"] .room-image,
.room-view[data-room="seawater"] .room-image.is-contain {
  overflow: visible;
  isolation: auto;
  background: transparent !important;
  box-shadow: none !important;
}

.room-view[data-room="seawater"] .room-image::before,
.room-view[data-room="seawater"] .room-image::after,
.room-view[data-room="seawater"] .seawater-caustics {
  display: none !important;
}

.room-view[data-room="seawater"] .room-image img,
.room-view[data-room="seawater"] .room-image.is-contain img {
  z-index: 4;
  background: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 22px rgba(40, 40, 36, 0.085);
}

.room-view[data-room="seawater"] .room-image figcaption {
  z-index: 5;
  color: rgba(23, 24, 19, 0.42);
  text-shadow: none;
}

.room-view[data-room="seawater"] .room-lead,
.room-view[data-room="seawater"] .room-notes,
.room-view[data-room="seawater"] .room-footer {
  position: relative;
  z-index: 4;
}

@media (max-width: 760px) {
  .seawater-world-light,
  .seawater-world-shadow {
    transition-duration: 300ms;
  }
}



/* ===== Seawater refracted-ripple renderer ===== */
.room-view[data-room="seawater"] {
  background: #f4f3ee;
}

.room-view[data-room="seawater"] .room-scroll {
  position: absolute;
  inset: 54px 0 0;
  z-index: 3;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  background: transparent;
}

.room-view[data-room="seawater"] .seawater-world-light {
  position: absolute;
  top: 54px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: calc(100% - 54px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
  background: transparent;
  image-rendering: auto;
}

.room-view[data-room="seawater"] .seawater-world-shadow {
  display: none !important;
}

.room-view[data-room="seawater"] .room-image,
.room-view[data-room="seawater"] .room-image.is-contain {
  overflow: visible;
  isolation: auto;
  background: transparent !important;
  box-shadow: none !important;
}

.room-view[data-room="seawater"] .room-image::before,
.room-view[data-room="seawater"] .room-image::after,
.room-view[data-room="seawater"] .seawater-caustics {
  display: none !important;
}

.room-view[data-room="seawater"] .room-image img,
.room-view[data-room="seawater"] .room-image.is-contain img {
  z-index: 4;
  background: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

.room-view[data-room="seawater"] .room-image figcaption {
  z-index: 5;
  color: rgba(23, 24, 19, 0.42);
  text-shadow: none;
}

.room-view[data-room="seawater"] .room-lead,
.room-view[data-room="seawater"] .room-notes,
.room-view[data-room="seawater"] .room-footer {
  position: relative;
  z-index: 4;
}

@media (max-width: 760px) {
  .room-view[data-room="seawater"] .seawater-world-light {
    transition-duration: 300ms;
  }
}


/* ===== Seawater Water Caustics correction ===== */
.room-view[data-room="seawater"] .seawater-world-light {
  background: transparent !important;
  filter: none !important;
  mix-blend-mode: multiply;
}

.room-view[data-room="seawater"] .seawater-world-shadow {
  display: none !important;
}

.room-view[data-room="seawater"] .room-image,
.room-view[data-room="seawater"] .room-image.is-contain {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* ===== Seawater Canvas2D projected caustic volumes ===== */
.room-view[data-room="seawater"] {
  background: #f4f3ee;
}

.room-view[data-room="seawater"] .seawater-world-light,
.room-view[data-room="seawater"] .seawater-world-shadow,
.room-view[data-room="seawater"] .seawater-caustics {
  display: none !important;
}

.room-view[data-room="seawater"] .seawater-caustic-projection {
  position: absolute;
  top: 54px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: calc(100% - 54px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
  background: transparent !important;
  image-rendering: auto;
}

.room-view[data-room="seawater"] .room-scroll {
  position: absolute;
  inset: 54px 0 0;
  z-index: 3;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  background: transparent;
}

.room-view[data-room="seawater"] .room-image,
.room-view[data-room="seawater"] .room-image.is-contain {
  overflow: visible;
  isolation: auto;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.room-view[data-room="seawater"] .room-image::before,
.room-view[data-room="seawater"] .room-image::after {
  display: none !important;
}

.room-view[data-room="seawater"] .room-image img,
.room-view[data-room="seawater"] .room-image.is-contain img {
  position: relative;
  z-index: 4;
  background: transparent;
  border-radius: 0 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

.room-view[data-room="seawater"] .room-image figcaption {
  position: absolute;
  z-index: 5;
}

.room-view[data-room="seawater"] .room-lead,
.room-view[data-room="seawater"] .room-notes,
.room-view[data-room="seawater"] .room-footer {
  position: relative;
  z-index: 4;
}

@media (max-width: 760px) {
  .room-view[data-room="seawater"] .seawater-caustic-projection {
    transition-duration: 180ms;
  }
}


/* ===== Seawater neutral soft projected caustics ===== */
.room-view[data-room="seawater"] .seawater-caustic-projection {
  background: transparent !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  image-rendering: auto;
}


/* ===== Seawater scroll-linked background exposure ===== */
.room-view[data-room="seawater"] {
  background-color: var(--seawater-scroll-background, #f4f3ee);
  transition: background-color 120ms linear;
}

.room-view[data-room="seawater"] .room-scroll {
  background: transparent !important;
}


/* ===== Writings / Ruinwright Manifesto ===== */
.index-panel {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  width: min(850px, calc(100vw - 64px));
}

.writing-room {
  background: #f4f3ee;
  color: #24251f;
}

.writing-room .room-scroll {
  background: #f4f3ee;
}

.writing-room .room-head {
  border-bottom-color: rgba(26, 27, 23, 0.12);
  background: rgba(244, 243, 238, 0.92);
  color: rgba(26, 27, 23, 0.64);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.writing-room .room-head .language button {
  color: rgba(26, 27, 23, 0.34);
}

.writing-room .room-head .language button:hover,
.writing-room .room-head .language button.is-active {
  color: rgba(26, 27, 23, 0.9);
}

.writing-room .room-lead {
  min-height: auto;
  align-content: start;
  padding: clamp(92px, 12vh, 142px) 4vw 48px;
}

.writing-room .room-group {
  color: rgba(26, 27, 23, 0.38);
}

.writing-room .room-lead h1 {
  margin-bottom: 44px;
  color: rgba(26, 27, 23, 0.92);
  font-size: clamp(38px, 4.8vw, 68px);
}

.room-intro-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 58px);
  width: 100%;
}

.writing-room .room-intro {
  width: auto;
  max-width: none;
  margin: 0;
  color: rgba(26, 27, 23, 0.82);
  /* Match the serif text used throughout the other collection/work rooms. */
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.025em;
}

.writing-intro-name {
  margin-right: 0.3em;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  font-weight: 500;
  white-space: normal;
}

.writing-tenets {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
  gap: clamp(12px, 1.25vw, 24px);
  width: 100%;
  padding: 28px 18px 72px;
}

.writing-tenet-card {
  display: block;
  min-width: 0;
  color: rgba(26, 27, 23, 0.48);
  text-align: center;
  text-decoration: none;
}

.writing-tenet-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: clamp(10px, 1vw, 18px);
  overflow: hidden;
  border: 1px solid rgba(26, 27, 23, 0.13);
  background: #f1efe8;
  box-shadow:
    inset 5px 5px 0 rgba(255, 255, 255, 0.72),
    inset -5px -5px 0 rgba(32, 31, 26, 0.06);
  transition: transform 180ms var(--ease), background 180ms ease;
}

.writing-tenet-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
}

.writing-tenet-number {
  display: block;
  margin-top: 9px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.writing-tenet-card:hover .writing-tenet-tile,
.writing-tenet-card:focus-visible .writing-tenet-tile {
  transform: translateY(-2px);
  background: #f7f5ef;
}

.writing-room .room-visit-wrap,
.writing-room .room-footer {
  position: relative;
  z-index: 2;
}

.writing-room .room-visit {
  color: rgba(26, 27, 23, 0.72);
  border-color: rgba(26, 27, 23, 0.18);
}

@media (max-width: 1100px) and (min-width: 761px) {
  .writing-tenets {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
    padding: 24px 26px 64px;
  }

  .room-intro-stack {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .index-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(420px, calc(100vw - 36px));
    max-height: calc(100svh - 110px);
    overflow-y: auto;
  }

  .writing-room .room-lead {
    padding: 84px 20px 28px;
  }

  .writing-room .room-lead h1 {
    margin-bottom: 28px;
  }

  .room-intro-stack {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .writing-room .room-intro {
    font-size: 16px;
    line-height: 1.95;
  }

  .writing-tenets {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: 1fr;
    grid-auto-columns: minmax(122px, 42vw);
    gap: 14px;
    overflow-x: auto;
    padding: 18px 18px 48px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .writing-tenet-card {
    scroll-snap-align: start;
  }
}


/* ===== Ruin Archive lightweight Leaflet preview ===== */
.room-view[data-room="ruin-atlas"] {
  background: #f4f3ee;
}

.room-view[data-room="ruin-atlas"] .room-lead {
  min-height: 54svh;
  padding-bottom: 7vh;
}

.ruin-mini-section {
  position: relative;
  z-index: 2;
  width: min(94vw, 1540px);
  margin: 0 auto clamp(84px, 12vh, 150px);
  padding: 0 clamp(14px, 2.2vw, 34px);
}

.ruin-mini-shell {
  --ruin-mini-bg: rgb(255,255,251);
  --ruin-mini-paper: rgb(255,255,251);
  --ruin-mini-text: rgb(28,28,26);
  --ruin-mini-muted: rgb(103,103,97);
  --ruin-mini-line: rgb(205,205,197);
  --ruin-mini-line-strong: rgb(102,102,96);
  --ruin-mini-marker: rgb(17,17,17);
  position: relative;
  width: 100%;
  height: clamp(500px, 70svh, 780px);
  background: transparent;
  border: 0;
  box-shadow: none;
  isolation: isolate;
}

.ruin-mini-map {
  position: absolute;
  inset: 13px;
  z-index: 1;
  overflow: hidden;
  background: var(--ruin-mini-paper);
  border: 0;
  outline: 0;
  cursor: crosshair;
  transition: background-color 260ms ease;
}

.ruin-mini-shell .leaflet-container {
  background: var(--ruin-mini-paper);
  color: var(--ruin-mini-text);
  font-family: var(--sans);
  cursor: crosshair;
}

.ruin-mini-shell .leaflet-pane,
.ruin-mini-shell .leaflet-control-container {
  transition: color 260ms ease;
}

.ruin-mini-shell .leaflet-image-layer {
  backface-visibility: hidden;
}

.ruin-mini-fracture-host {
  position: absolute;
  inset: 0;
  z-index: 900;
  overflow: visible;
  pointer-events: none;
}

.ruin-mini-fracture-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.ruin-mini-fracture-border,
.ruin-mini-fracture-crack,
.ruin-mini-fracture-branch {
  fill: none;
  stroke: var(--ruin-mini-line-strong);
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 260ms ease;
}

.ruin-mini-fracture-border { stroke-width: 0.98; }
.ruin-mini-fracture-crack { stroke-width: 0.96; }
.ruin-mini-fracture-branch { stroke-width: 0.88; }

.ruin-mini-shell.is-navigating .ruin-mini-fracture-svg {
  opacity: 0.82;
}

.ruin-mini-tone-control.leaflet-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 13px 13px 0 0 !important;
  padding: 6px 7px;
  border: 1px solid var(--ruin-mini-line-strong) !important;
  border-radius: 0 !important;
  background: color-mix(in srgb, var(--ruin-mini-paper) 76%, transparent) !important;
  box-shadow: none !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.ruin-mini-tone-button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ruin-mini-text);
  opacity: 0.46;
  transition: opacity 150ms ease, transform 150ms ease;
}

.ruin-mini-tone-button:hover,
.ruin-mini-tone-button.is-active {
  opacity: 1;
}

.ruin-mini-tone-button.is-active {
  transform: translateY(-1px);
}

.ruin-mini-eclipse {
  display: block;
  width: 11px;
  height: 11px;
  overflow: hidden;
  border: 1px solid var(--ruin-mini-line-strong);
  border-radius: 50%;
  background: var(--ruin-mini-paper);
}

.ruin-mini-eclipse-0 { background: var(--ruin-mini-paper); }
.ruin-mini-eclipse-1 { background: linear-gradient(90deg, var(--ruin-mini-text) 22%, var(--ruin-mini-paper) 22%); }
.ruin-mini-eclipse-2 { background: linear-gradient(90deg, var(--ruin-mini-text) 48%, var(--ruin-mini-paper) 48%); }
.ruin-mini-eclipse-3 { background: linear-gradient(90deg, var(--ruin-mini-text) 70%, var(--ruin-mini-paper) 70%); }
.ruin-mini-eclipse-4 { background: var(--ruin-mini-text); }

.ruin-mini-marker-icon {
  display: grid !important;
  place-items: center;
  border: 0 !important;
  background: transparent !important;
}

.ruin-mini-marker-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ruin-mini-marker);
  box-shadow: 0 0 0 0.45px color-mix(in srgb, var(--ruin-mini-paper) 60%, transparent);
  transition: width 120ms ease, height 120ms ease, background-color 260ms ease;
}

.ruin-mini-marker-icon.is-garden .ruin-mini-marker-dot {
  width: 7px;
  height: 7px;
}

.ruin-mini-marker-icon:hover .ruin-mini-marker-dot {
  width: 10px;
  height: 10px;
}

.ruin-mini-shell .leaflet-tooltip.ruin-mini-tooltip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid var(--ruin-mini-line-strong);
  border-radius: 0;
  background: color-mix(in srgb, var(--ruin-mini-paper) 88%, transparent);
  color: var(--ruin-mini-text);
  box-shadow: none;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.ruin-mini-shell .leaflet-tooltip.ruin-mini-tooltip::before {
  display: none;
}

.ruin-mini-tooltip-date {
  color: var(--ruin-mini-muted);
  font-size: 9px;
}

.ruin-mini-updated {
  margin: 14px 13px 0;
  color: rgba(23, 24, 19, 0.42);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-align: right;
}

.ruin-mini-load-error {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--ruin-mini-muted);
  font-size: 10px;
  letter-spacing: .08em;
}

@media (max-width: 760px) {
  .room-view[data-room="ruin-atlas"] .room-lead {
    min-height: 48svh;
  }

  .ruin-mini-section {
    width: 100%;
    margin-bottom: 88px;
    padding: 0 10px;
  }

  .ruin-mini-shell {
    height: min(64svh, 620px);
  }

  .ruin-mini-map {
    inset: 8px;
  }

  .ruin-mini-tone-control.leaflet-bar {
    margin: 9px 9px 0 0 !important;
    padding: 5px;
  }

  .ruin-mini-tone-button {
    width: 25px;
    height: 25px;
  }

  .ruin-mini-updated {
    margin: 10px 8px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ruin-mini-tone-button,
  .ruin-mini-marker-dot,
  .ruin-mini-fracture-svg {
    transition: none !important;
  }
}


/* Ruin Archive paired section headings */
.room-view[data-room="ruin-atlas"] .room-note-title {
  color: rgba(23, 24, 19, 0.72);
  font-family: var(--serif);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.room-view[data-room="ruin-atlas"] .room-note-title strong {
  color: rgba(23, 24, 19, 0.94);
  font-weight: 650;
}

@media (max-width: 760px) {
  .room-view[data-room="ruin-atlas"] .room-note-title {
    font-size: 15px;
    line-height: 1.5;
  }
}


/* ===== Seawater time / space coordinate tank ===== */
.room-view[data-room="seawater"] .seawater-space-time {
  position: relative;
  z-index: 4;
  width: min(94vw, 1280px);
  margin: clamp(30px,5vh,70px) auto clamp(150px,20vh,230px);
  padding: 0 clamp(14px,2.2vw,32px);
  color: rgba(23,24,19,.76);
}

.seawater-space-time-head {
  display: grid;
  grid-template-columns: minmax(84px,.28fr) 1fr;
  gap: 4px clamp(16px,2.5vw,38px);
  align-items: baseline;
  margin: 0 0 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(23,24,19,.15);
}

.seawater-space-time-kicker {
  grid-row: 1 / span 2;
  margin: 0;
  color: rgba(23,24,19,.34);
  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.seawater-space-time-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(15px,1.35vw,20px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .035em;
}

.seawater-space-time-subtitle {
  margin: 2px 0 0;
  color: rgba(23,24,19,.42);
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .045em;
}

.seawater-space-time-stage {
  position: relative;
  width: 100%;
  overflow: visible;
}

.seawater-space-time-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.seawater-time-plane,
.seawater-plane-grid,
.seawater-long-grid,
.seawater-tank-edge,
.seawater-axis,
.seawater-record-guide,
.seawater-record-time-guide,
.seawater-time-tick-line {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.seawater-time-plane {
  stroke: rgba(23,24,19,.13);
  stroke-width: .8px;
}

.seawater-plane-grid {
  stroke: rgba(23,24,19,.055);
  stroke-width: .62px;
}

.seawater-long-grid {
  stroke: rgba(23,24,19,.045);
  stroke-width: .55px;
}

.seawater-tank-edge {
  stroke: rgba(23,24,19,.44);
  stroke-width: 1.02px;
}

.seawater-axis {
  stroke: rgba(23,24,19,.52);
  stroke-width: .86px;
}

.seawater-axis-arrow-head {
  fill: rgba(23,24,19,.52);
}

.seawater-axis-label,
.seawater-coordinate-tick,
.seawater-time-tick {
  fill: rgba(23,24,19,.42);
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 8px;
  letter-spacing: .025em;
}

.seawater-axis-label {
  fill: rgba(23,24,19,.58);
  font-size: 8.5px;
  letter-spacing: .055em;
}

.seawater-record-guide {
  stroke: rgba(23,24,19,.18);
  stroke-width: .7px;
  stroke-dasharray: 2.5 3.5;
}

.seawater-record-time-guide {
  stroke: rgba(23,24,19,.10);
  stroke-width: .62px;
  stroke-dasharray: 1.8 4.2;
}

.seawater-record-halo {
  fill: rgba(244,243,238,.58);
  stroke: rgba(23,24,19,.18);
  stroke-width: .65px;
  vector-effect: non-scaling-stroke;
  opacity: .72;
  transition: r .18s ease, opacity .18s ease, stroke .18s ease;
}

.seawater-record-point {
  fill: rgba(23,24,19,.76);
  stroke: rgba(244,243,238,.84);
  stroke-width: .9px;
  vector-effect: non-scaling-stroke;
}

.seawater-record {
  cursor: crosshair;
  outline: none;
}

.seawater-record-label {
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box;
  transition: opacity .16s ease;
}

.seawater-record-label rect {
  fill: rgba(244,243,238,.92);
  stroke: rgba(23,24,19,.15);
  stroke-width: .7px;
  vector-effect: non-scaling-stroke;
}

.seawater-record-name {
  fill: rgba(23,24,19,.86);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .035em;
}

.seawater-record-meta {
  fill: rgba(23,24,19,.50);
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 7.7px;
  letter-spacing: .025em;
}

.seawater-record:hover .seawater-record-label,
.seawater-record:focus .seawater-record-label {
  opacity: 1;
}

.seawater-record:hover .seawater-record-halo,
.seawater-record:focus .seawater-record-halo {
  r: 12px;
  opacity: 1;
  stroke: rgba(23,24,19,.46);
}

.seawater-space-time-note {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(23,24,19,.38);
  font-size: 8.5px;
  line-height: 1.65;
  letter-spacing: .04em;
}

@media (max-width:760px) {
  .room-view[data-room="seawater"] .seawater-space-time {
    width: 100%;
    margin: 12px auto 120px;
    padding: 0 10px;
  }

  .seawater-space-time-head {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-bottom: 12px;
  }

  .seawater-space-time-kicker {
    grid-row: auto;
  }

  .seawater-space-time-stage {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .seawater-space-time-svg {
    width: 920px;
    max-width: none;
  }

  .seawater-space-time-note {
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .seawater-record-halo,
  .seawater-record-label {
    transition: none;
  }
}


/* ===== Seawater time-space tank · map planes and memory note ===== */
.seawater-world-outline {
  fill: none;
  stroke: rgba(23,24,19,.105);
  stroke-width: .72px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seawater-space-time-essay {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(23,24,19,.68);
  font-family: var(--serif);
  font-size: clamp(11px,.92vw,14px);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .025em;
}

@media (max-width:760px) {
  .seawater-world-outline {
    stroke-width: .68px;
  }

  .seawater-space-time-essay {
    margin-top: 22px;
    padding-right: 14px;
    font-size: 11px;
    line-height: 1.85;
  }
}

/* ===== Seawater narrative: painting / memory / tote / chart / aftermath ===== */
.room-view[data-room="seawater"] .room-lead {
  min-height:clamp(290px,54svh,620px);
  padding-bottom:clamp(42px,6vh,85px);
}
.room-view[data-room="seawater"] .room-lead h1 {
  font-size:clamp(28px,4.4vw,60px);
  line-height:1.14;
  max-width:min(1100px,84vw);
  overflow-wrap:anywhere;
}
.room-view[data-room="seawater"] .seawater-memory-painting {
  margin-top:1vh;
  margin-bottom:clamp(55px,11vh,125px);
}
.room-view[data-room="seawater"] .seawater-memory-painting::before,
.room-view[data-room="seawater"] .seawater-memory-painting::after {
  display:none !important;
}
.room-view[data-room="seawater"] .seawater-memory-chapter,
.room-view[data-room="seawater"] .seawater-vessel-chapter {
  position:relative;
  z-index:4;
  width:min(920px,calc(100vw - 48px));
  margin:0 auto clamp(95px,15vh,180px);
}
.room-view[data-room="seawater"] .seawater-memory-chapter > .room-intro,
.room-view[data-room="seawater"] .seawater-memory-chapter > .room-intro-stack {
  display:block;
  margin:0 0 38px;
  max-width:760px;
  width:100%;
}
.room-view[data-room="seawater"] .seawater-memory-chapter .room-intro {
  width:100%;
  max-width:760px;
  margin:0;
  line-height:1.95;
}
.room-view[data-room="seawater"] .seawater-memory-chapter .room-note {
  border-top:1px solid rgba(23,24,19,.11);
  border-bottom:0;
  padding:clamp(45px,7vh,75px) 0 0;
}
.room-view[data-room="seawater"] .seawater-light-artwork {
  margin-top:clamp(75px,12vh,150px);
  margin-bottom:clamp(65px,11vh,140px);
}
.room-view[data-room="seawater"] .seawater-vessel-chapter {
  margin-bottom:clamp(80px,12vh,155px);
}
.room-view[data-room="seawater"] .seawater-vessel-text {
  max-width:760px;
  margin:0;
  font-family:var(--serif);
  font-size:clamp(16px,1.26vw,19px);
  line-height:2.05;
  letter-spacing:.025em;
  color:rgba(23,24,19,.82);
}
.room-view[data-room="seawater"] .seawater-space-time {
  margin-top:clamp(35px,7vh,85px);
  margin-bottom:clamp(110px,16vh,210px);
}
.room-view[data-room="seawater"] .room-notes {
  margin-top:clamp(20px,4vh,60px);
}
@media (max-width:760px) {
  .room-view[data-room="seawater"] .room-lead {
    min-height:43svh;
    padding:11vh 8vw 5vh;
  }
  .room-view[data-room="seawater"] .room-lead h1 {
    font-size:clamp(26px,8vw,40px);
    max-width:90vw;
  }
  .room-view[data-room="seawater"] .seawater-memory-chapter,
  .room-view[data-room="seawater"] .seawater-vessel-chapter {
    width:calc(100vw - 42px);
    margin-bottom:11vh;
  }
  .room-view[data-room="seawater"] .seawater-memory-chapter .room-note {
    padding-top:42px;
  }
  .room-view[data-room="seawater"] .seawater-memory-painting {
    margin-bottom:9vh;
  }
  .room-view[data-room="seawater"] .seawater-light-artwork {
    margin-top:8vh;
    margin-bottom:9vh;
  }
  .room-view[data-room="seawater"] .seawater-vessel-text {
    font-size:15px;
    line-height:1.97;
  }
}

/* Revised seawater memory: retain the author's two paragraph breaks. */
.room-view[data-room="seawater"] .seawater-memory-chapter .room-intro + .room-intro {
  margin-top:1.45em;
}
.room-view[data-room="seawater"] .seawater-memory-chapter > .room-intro-stack {
  margin-bottom:0;
}

/* Maintain the author's two-part vessel essay, without changing image spacing. */
.room-view[data-room="seawater"] .seawater-vessel-text + .seawater-vessel-text {
  margin-top:1.45em;
}


/* v47 · Fictional Topography is retained as a sealed index trace.
   A thin stroke across its name, rather than a navigable work link. */
.index-panel .index-link-unavailable{
  display:block;
  position:relative;
  width:max-content;
  max-width:100%;
  padding:5px 0;
  color:rgba(247,247,240,.37);
  font-family:var(--serif);
  font-size:clamp(17px,1.5vw,21px);
  letter-spacing:.02em;
  line-height:1.35;
  text-align:left;
  cursor:default;
  outline-offset:3px;
}
.index-panel .index-link-unavailable:hover,
.index-panel .index-link-unavailable:focus-visible{
  color:rgba(247,247,240,.38);
  transform:none;
}
.index-panel .index-unavailable-title{
  display:inline;
  color:inherit;
  font-size:inherit;
  font-family:inherit;
  text-decoration:line-through;
  text-decoration-color:rgba(247,247,240,.46);
  text-decoration-thickness:1px;
  text-decoration-skip-ink:none;
}
.index-panel .index-unavailable-note{
  display:block;
  position:absolute;
  z-index:3;
  left:calc(100% + 17px);
  top:50%;
  width:max-content;
  max-width:160px;
  color:rgba(247,247,240,.76);
  font:400 11px/1.4 var(--serif),serif;
  letter-spacing:.03em;
  opacity:0;
  transform:translate(0,-45%);
  pointer-events:none;
  visibility:hidden;
  transition:opacity .23s ease,transform .23s ease,visibility 0s linear .23s;
}
.index-panel .index-link-unavailable:hover .index-unavailable-note,
.index-panel .index-link-unavailable:focus-visible .index-unavailable-note{
  opacity:1;
  transform:translate(0,-50%);
  visibility:visible;
  transition:opacity .23s ease,transform .23s ease,visibility 0s;
}
@media(max-width:700px){
  .index-panel .index-link-unavailable{font-size:18px;padding:4px 0;}
  .index-panel .index-unavailable-note{left:calc(100% + 10px);font-size:10px;}
}


/* Portfolio index dates · three content columns; About stays unpublished. */
.index-panel {
  width: min(850px, calc(100vw - 64px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 30px;
}
.index-panel .index-link .index-year {
  display: inline-block;
  margin-left: .36em;
  color: inherit;
  font-family: inherit;
  font-size: .84em;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  white-space: nowrap;
}
@media (max-width: 990px) and (min-width: 761px) {
  .index-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(670px, calc(100vw - 64px));
  }
}
@media (max-width: 760px) {
  .index-panel {
    grid-template-columns: minmax(0, 1fr);
    width: min(420px, calc(100vw - 36px));
    max-height: calc(100svh - 110px);
    overflow-y: auto;
    column-gap: 0;
    row-gap: 28px;
  }
  .index-panel .index-link .index-year {
    margin-left: .36em;
  }
}

/* ===== Room by the Lake · folded walls and the dark floor =====
   Reference: the photographed room has three faint wall planes and a dark
   floor, rather than an animated body of water. This is constructed entirely
   from restrained gradients; the artwork image is not recoloured or framed. */
.room-view[data-room="room-by-the-lake"] {
  isolation: isolate;
  background: #29292a;
  color: rgba(234,233,230,.93);
}
.room-view[data-room="room-by-the-lake"] .lake-current {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 73% at 48% 50%,rgba(115,111,105,.13),transparent 85%),
    linear-gradient(180deg,#303034 0%,#454542 49%,#3b3b39 74%,#18191a 100%);
}
/* Left and right wall folds; their edges are deliberately close to vertical
   and slightly non-parallel, as in an actual corner under low gallery light. */
.room-view[data-room="room-by-the-lake"] .lake-wall-left,
.room-view[data-room="room-by-the-lake"] .lake-wall-right,
.room-view[data-room="room-by-the-lake"] .lake-floor {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.room-view[data-room="room-by-the-lake"] .lake-wall-left {
  -webkit-clip-path: polygon(0 0,22.8% 0,23.5% 78.3%,0 87%);
  clip-path: polygon(0 0,22.8% 0,23.5% 78.3%,0 87%);
  background:
    linear-gradient(90deg,rgba(16,17,19,.18),transparent 60%,rgba(3,4,5,.14)),
    linear-gradient(170deg,#343436,#3b3b39 61%,#242426);
}
.room-view[data-room="room-by-the-lake"] .lake-wall-right {
  -webkit-clip-path: polygon(72.7% 0,100% 0,100% 86%,72% 78.4%);
  clip-path: polygon(72.7% 0,100% 0,100% 86%,72% 78.4%);
  background:
    linear-gradient(90deg,rgba(0,0,0,.12),transparent 35%,rgba(0,0,0,.24)),
    linear-gradient(184deg,#383738,#42413e 64%,#292929);
}
/* Narrow seams in the vertical fold; no hard graphic outlines. */
.room-view[data-room="room-by-the-lake"] .lake-current::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(91deg,transparent 22.1%,rgba(9,10,11,.14) 22.9%,rgba(157,151,143,.03) 23.35%,transparent 24.1%),
    linear-gradient(89deg,transparent 71.4%,rgba(13,14,15,.18) 72.15%,rgba(172,165,153,.025) 72.6%,transparent 73.5%);
}
.room-view[data-room="room-by-the-lake"] .lake-floor {
  z-index: 2;
  -webkit-clip-path: polygon(0 86%,23.5% 78.3%,72% 78.4%,100% 86%,100% 100%,0 100%);
  clip-path: polygon(0 86%,23.5% 78.3%,72% 78.4%,100% 86%,100% 100%,0 100%);
  background:
    repeating-linear-gradient(176deg,transparent 0 29px,rgba(136,128,119,.018) 30px 32px,transparent 34px 76px),
    linear-gradient(180deg,#171718 0%,#0b0c0d 42%,#050607 100%);
}
/* One almost imperceptible light change. The wall itself never distorts. */
.room-view[data-room="room-by-the-lake"] .lake-current::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 80% 72% at 50% 51%,transparent 38%,rgba(2,3,4,.28) 100%),
    linear-gradient(180deg,rgba(8,8,10,.32),transparent 35%,rgba(2,3,4,.11) 67%,rgba(0,0,0,.34));
  opacity: .92;
  animation: lake-wall-light 28s ease-in-out infinite alternate;
}
@keyframes lake-wall-light {
  0% {opacity: .96;}
  50% {opacity: .87;}
  100% {opacity: .93;}
}

/* Keep the opening within one screen so the painting sits low in its room
   rather than requiring a full scroll to reach the image. */
.room-view[data-room="room-by-the-lake"] .room-scroll {
  position: absolute;
  z-index: 1;
  background: transparent;
}
.room-view[data-room="room-by-the-lake"] .lake-opening {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 54px);
  padding-bottom: clamp(23px,4.3svh,48px);
}
.room-view[data-room="room-by-the-lake"] .lake-opening > .room-lead {
  display: block;
  flex: none;
  min-height: 0;
  padding: clamp(46px,8svh,94px) max(7vw,26px) clamp(15px,3svh,30px);
}
.room-view[data-room="room-by-the-lake"] .room-head {
  z-index: 20;
  border: 0;
  background: rgba(28,28,29,.36);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.room-view[data-room="room-by-the-lake"] .room-head > p {
  color: rgba(231,230,227,.68);
}
.room-view[data-room="room-by-the-lake"] .room-back {
  color: rgba(231,230,227,.70);
}
.room-view[data-room="room-by-the-lake"] .room-head .language button {
  color: rgba(231,230,227,.45);
}
.room-view[data-room="room-by-the-lake"] .room-head .language button:hover,
.room-view[data-room="room-by-the-lake"] .room-head .language button.is-active {
  color: rgba(247,246,243,.95);
}
.room-view[data-room="room-by-the-lake"] .room-group {
  color: rgba(226,223,220,.43);
}
.room-view[data-room="room-by-the-lake"] .room-lead h1 {
  max-width: 100%;
  color: rgba(246,243,239,.94);
  font-size: clamp(34px,4.4vw,64px);
  line-height: 1.13;
}
.room-view[data-room="room-by-the-lake"] .room-intro {
  margin-top: clamp(17px,2.9vh,34px);
  color: rgba(226,223,220,.64);
  font-size: clamp(14px,1.15vw,16px);
}

/* Eliminate the general collection's image mats and sizing variables. */
.room-view[data-room="room-by-the-lake"] .room-image,
.room-view[data-room="room-by-the-lake"] .room-image.is-contain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: min(92vw,1400px);
  height: auto;
  min-height: 0;
  margin: clamp(66px,10vh,150px) auto clamp(85px,17vh,180px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: auto;
}
.room-view[data-room="room-by-the-lake"] .lake-opening > .room-image {
  flex: 1 1 auto;
  margin: auto auto 0;
  padding: 0;
  justify-content: flex-end;
}
.room-view[data-room="room-by-the-lake"] .room-image::before,
.room-view[data-room="room-by-the-lake"] .room-image::after {
  display: none !important;
  content: none !important;
}
.room-view[data-room="room-by-the-lake"] .room-image img,
.room-view[data-room="room-by-the-lake"] .room-image.is-contain img {
  position: relative;
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: min(84vw,1160px);
  max-height: min(78svh,900px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  object-fit: contain;
}
.room-view[data-room="room-by-the-lake"] .lake-opening > .room-image img {
  max-width: min(74vw,1060px);
  max-height: min(48svh,580px);
  /* A subtle contact shadow, not a grey image frame or gallery mat. */
  filter: drop-shadow(0 9px 8px rgba(0,0,0,.33));
}
.room-view[data-room="room-by-the-lake"] .room-image figcaption {
  position: static;
  align-self: center;
  width: min(84vw,1160px);
  margin: 15px 0 0;
  transform: none;
  color: rgba(230,227,223,.53);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: .035em;
  text-align: left;
}
.room-view[data-room="room-by-the-lake"] .lake-opening .room-image figcaption {
  width: min(74vw,1060px);
}
.room-view[data-room="room-by-the-lake"] .room-scroll > .room-image {
  margin-top: clamp(75px,13vh,160px);
}
.room-view[data-room="room-by-the-lake"] .room-scroll > .room-image img {
  max-width: min(80vw,1080px);
  max-height: min(74svh,800px);
}
.room-view[data-room="room-by-the-lake"] .room-footer {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
}
.room-view[data-room="room-by-the-lake"] .room-footer button {
  color: rgba(228,226,223,.75);
}
.room-view[data-room="room-by-the-lake"] .room-footer button:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .room-view[data-room="room-by-the-lake"] .room-head {height: 50px;}
  .room-view[data-room="room-by-the-lake"] .lake-opening {
    min-height: calc(100svh - 50px);
    padding-bottom: clamp(23px,4svh,40px);
  }
  .room-view[data-room="room-by-the-lake"] .lake-opening > .room-lead {
    padding: clamp(40px,7svh,76px) 22px 14px;
  }
  .room-view[data-room="room-by-the-lake"] .room-lead h1 {
    font-size: clamp(31px,9vw,45px);
  }
  .room-view[data-room="room-by-the-lake"] .room-intro {
    width: min(100%,470px);
    margin-top: 19px;
    font-size: 14px;
  }
  .room-view[data-room="room-by-the-lake"] .room-image,
  .room-view[data-room="room-by-the-lake"] .room-image.is-contain {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 55px auto 12vh;
    padding: 0 12px;
  }
  .room-view[data-room="room-by-the-lake"] .lake-opening > .room-image {
    flex: 1 1 auto;
    margin: auto auto 0;
    padding: 0 12px;
  }
  .room-view[data-room="room-by-the-lake"] .room-image img,
  .room-view[data-room="room-by-the-lake"] .room-image.is-contain img {
    max-width: 100%;
    max-height: 73svh;
  }
  .room-view[data-room="room-by-the-lake"] .lake-opening > .room-image img {
    max-width: 100%;
    max-height: min(43svh,450px);
  }
  .room-view[data-room="room-by-the-lake"] .room-image figcaption,
  .room-view[data-room="room-by-the-lake"] .lake-opening .room-image figcaption {
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    font-size: 9px;
  }
  .room-view[data-room="room-by-the-lake"] .room-scroll > .room-image {
    margin-top: 8vh;
  }
  .room-view[data-room="room-by-the-lake"] .room-scroll > .room-image img {
    max-width: 100%;
    max-height: 68svh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .room-view[data-room="room-by-the-lake"] .lake-current::after {
    animation: none !important;
    opacity: .91;
  }
}

/* Keep visible page content unselectable, including Safari long-press menus. */
html, body, body * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Preserve caret/selection for editable controls, where present. */
input, textarea, [contenteditable="true"], [contenteditable=""] {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}
