@font-face {
  font-family: "Cormorant SC";
  src: url("/assets/cormorant-sc-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("/assets/noto-sans-jp.woff2") format("woff2");
  font-weight: 300 400;
  font-display: swap;
}

:root {
  --display: "Cormorant SC", Georgia, serif;
  --body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --step: 40px;
  --chapter-bar: clamp(70px, 7.292vw, 140px);
  --menu-rail: clamp(42px, 5.573vw, 107px);
  --rule: #181817;
  color: #111;
  background: #fff;
  font-family: var(--body);
  font-weight: 300;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #254d63; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero h1, .side-menu, .gallery-page h1,
.back-link, .gallery-tile span, .viewer-number {
  font-family: var(--display);
  font-weight: 300;
}

.stack { isolation: isolate; }
.stack-panel { position: sticky; top: calc(0px - var(--content-overflow, 0px)); z-index: var(--index, 0); }
.stack-target { height: 0; }
.stack-target[id^="work-"], .work-tab, .work {
  --offset: calc(var(--chapter-bar) + 1px + var(--step-index) * var(--step));
  scroll-margin-top: var(--offset);
}

.hero {
  height: 100svh;
  overflow: clip;
  background: #bdd1d9;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.043);
}
.hero h1 {
  position: absolute;
  bottom: -3.1vw;
  left: 0;
  white-space: nowrap;
  font-size: 11.787vw;
  line-height: 1.21;
}

@supports (animation-timeline: scroll()) {
  .hero h1 {
    animation: hero-name-out linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 22svh;
  }
}
@keyframes hero-name-out { to { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .section-text-enter {
    animation: section-text-in .85s cubic-bezier(.22, 1, .36, 1);
  }
}
@keyframes section-text-in {
  from { opacity: 0; translate: 0 15px; }
  to { opacity: 1; translate: 0 0; }
}

.information {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: max(100svh, 56.25vw);
  overflow: clip;
  padding: clamp(64px, 8.5vw, 160px) 0 clamp(40px, 5vw, 80px);
  background: rgb(255 255 255 / .5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.information-frame {
  position: relative;
  width: 100%;
  border-block: 1px solid var(--rule);
}
.information-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  position: relative;
  width: min(80%, 1440px);
  border-block: 1px solid var(--rule);
}
.information-preview h2 {
  justify-self: center;
  writing-mode: vertical-rl;
  padding: clamp(16px, 2.4vw, 42px) clamp(8px, 1.6vw, 30px);
}
.information-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.information-card {
  min-width: 0;
  border-inline-start: 1px solid var(--rule);
}
.information-card:last-child { border-inline-end: 1px solid var(--rule); }
.information-card-media {
  display: grid;
  justify-items: center;
  gap: clamp(5px, .75vw, 14px);
  padding: clamp(10px, 1.3vw, 24px) clamp(7px, 1.65vw, 30px);
}
.information-card-number {
  justify-self: start;
  font: 300 clamp(.8rem, 1.15vw, 1.25rem)/1 var(--display);
  font-variant-numeric: lining-nums;
}
.information-card-media img {
  width: min(100%, 255px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
.information-card-copy {
  border-top: 1px solid var(--rule);
  padding: clamp(8px, 1.2vw, 20px) clamp(7px, 1.65vw, 30px) clamp(14px, 2vw, 36px);
  overflow-wrap: anywhere;
}
/* The section clips the horizontal rules at its outer edges. */
.information-preview,
.information-cards,
.information-card:first-child .information-card-copy {
  border-image: linear-gradient(var(--rule) 0 0) 1 / 1 0 / 0 100vw;
}
.information-card-copy time { font: 300 clamp(.72rem, 1.1vw, 1.125rem)/1.3 var(--display); }
.information-card-copy h3 { margin-top: .35em; font-size: clamp(.78rem, 1.35vw, 1.375rem); font-weight: 400; }
.site-star {
  transform-origin: center;
  animation: star-turn 11.2s cubic-bezier(.45, 0, .3, 1) infinite;
}
@keyframes star-turn {
  0% { rotate: 0turn; }
  10.7143%, 100% { rotate: 1turn; }
}
.information-star {
  position: absolute;
  top: 0;
  left: 63.3%;
  width: clamp(25px, 2.72vw, 53px);
  height: auto;
  translate: -50% -50%;
  pointer-events: none;
}
.information-list {
  display: grid;
  gap: clamp(16px, 1.6vw, 30px);
  width: min(53vw, 1020px);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 58px) clamp(20px, 5vw, 85px);
  border-inline: 1px solid var(--rule);
  list-style: none;
}
.information-list li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 4.06vw, 78px);
  font-size: clamp(.875rem, .9375vw, 1.125rem);
  line-height: 1.5;
  letter-spacing: .045em;
}
.information-list time { font-family: var(--display); font-size: 1.1em; line-height: 1.7; letter-spacing: 0; }
.information-more {
  display: flex;
  justify-content: center;
  padding: clamp(18px, 2.1vw, 36px) 0 0;
}
.information-page .information-list { width: min(100%, 980px); }

.gallery-bar {
  z-index: 7;
  position: sticky;
  top: 0;
  background: linear-gradient(rgb(255 255 255 / .6), rgb(255 255 255 / .6)), url("/assets/city-day.jpg") center 38% / cover;
  border-top: 1px solid var(--rule);
}
.gallery-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.chapter-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--chapter-bar);
  padding: 0 max(var(--menu-rail), 8vw) 0 10.88vw;
  border-bottom: 1px solid var(--rule);
}
.chapter-heading h2, .information h2, .contact h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 3.23vw, 3.875rem);
  line-height: 1.1;
}
.information-preview h2 { font-size: clamp(1.75rem, 2.35vw, 3rem); }
.chapter-star {
  position: absolute;
  z-index: 1;
  left: 47.25%;
  top: var(--chapter-bar);
  width: clamp(25px, 2.72vw, 53px);
  height: auto;
  translate: -50% -50%;
  pointer-events: none;
}
.gallery-more {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3.75vw, 72px);
  font: 300 clamp(1rem, 1.67vw, 2rem)/1 var(--display);
  text-decoration: none;
}
.gallery-view-arrow { width: clamp(45px, 8.75vw, 168px); height: auto; }

.work {
  --art-height: min(41.667vw, calc(100svh - var(--offset) - var(--step) - 28px));
  position: sticky;
  top: calc(var(--offset) - var(--content-overflow, 0px));
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--offset));
  padding-block: var(--step) clamp(14px, 2vw, 40px);
  overflow: clip;
  isolation: isolate;
  background: #fff;
}
.work::before, .work-tab::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3%;
  background-image: var(--artwork);
  background-size: cover;
  background-position: var(--paper-position, center);
  opacity: .4;
  filter: blur(clamp(9px, 1.3vw, 25px));
}
.work-01 { --paper-position: center 38%; }
.work-02 { --paper-position: center 42%; }
.work-03 { --paper-position: center 48%; --art-position: 34% center; }
.work-04 { --paper-position: center 25%; --art-scale: 1.125; }
.work-05 { --paper-position: 45% center; --art-scale: 1.125; }
/* Keep the number at its stack offset while tall artwork panels scroll underneath. */
.work-tab {
  position: sticky;
  z-index: 7;
  top: var(--offset);
  display: flex;
  align-items: center;
  height: var(--step);
  margin-bottom: calc(-1 * var(--step));
  padding: 0 10.3vw;
  overflow: clip;
  isolation: isolate;
  background: #fff;
}
.work-tab::before {
  inset-block: 0 auto;
  height: max(var(--step), calc(100svh - var(--offset)));
}
.work-number {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.667vw, 2rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  align-items: start;
  gap: 3.125vw;
  width: 80%;
  margin-inline: auto;
  padding-inline-start: .3vw;
}
.work figure {
  justify-self: start;
  width: min(100%, var(--art-height));
  aspect-ratio: 1;
  overflow: hidden;
}
.work-01 figure { margin-top: clamp(0px, 1.56vw, 30px); }
.work-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--art-position, center);
  transform: scale(var(--art-scale, 1));
}
.work-01 .work-art {
  width: 105.625%;
  height: auto;
  max-width: none;
  margin: -17.875% 0 0 -5.56%;
  object-fit: initial;
}
.work-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(13px, 1.05vw, 20px);
  min-width: 0;
}
.work-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4.167vw, 5rem);
  font-weight: 300;
  line-height: 1.21;
  overflow-wrap: anywhere;
}
.work-description {
  width: min(100%, 31vw, 560px);
  margin-inline: auto;
  font-size: clamp(.875rem, 1.0417vw, 1.25rem);
  line-height: 1.8;
}
.gallery-hold { height: clamp(150px, 27svh, 320px); background: #dce8ed; }

.about {
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: max(100svh, 54.9vw);
  background: #edf0f0;
}
.about .chapter-star { left: 31.575%; }
.about-hold { height: clamp(280px, 62svh, 660px); background: #edf0f0; }
.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 90px);
  padding: clamp(36px, 4.2vw, 82px) max(10.88vw, calc(var(--menu-rail) + 12px)) clamp(36px, 4.2vw, 82px) 10.88vw;
  font-family: var(--body);
  font-size: clamp(.9375rem, 1.03vw, 1.125rem);
  line-height: 1.75;
}
.about-profile, .about-services { display: grid; gap: clamp(12px, 1.25vw, 22px); }
.about-content h3 { font-size: clamp(1.15rem, 1.45vw, 1.625rem); font-weight: 400; line-height: 1.5; }
.career-timeline {
  --timeline-line: #a1b2b6;
  --timeline-dot: #527d83;
  display: grid;
  gap: clamp(22px, 2.25vw, 40px);
  margin: .25rem 0 .4rem .28rem;
  padding: 0 0 .3rem clamp(22px, 2.2vw, 40px);
  border-inline-start: 1px solid var(--timeline-line);
  list-style: none;
}
.career-timeline li { position: relative; }
.career-timeline li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: calc(-1 * clamp(22px, 2.2vw, 40px) - 4px);
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--timeline-dot);
}
.career-timeline time {
  display: block;
  margin-bottom: .55rem;
  font-size: clamp(1.55rem, 2.6vw, 2.875rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.career-timeline p + p { margin-top: .3rem; }
.about-contact { justify-self: start; text-underline-offset: .3em; }
.about-details { margin: 0; border-top: 1px solid var(--rule); }
.about-details > div {
  display: grid;
  grid-template-columns: minmax(6.25em, 1fr) minmax(0, 3fr);
  gap: .65rem;
  padding: .85em 0;
  border-bottom: 1px solid var(--rule);
}
.about-details dt { font-weight: 400; }
.about-details dd, .about-details ul { margin: 0; }
.about-details ul { display: grid; gap: .45em; padding: 0; list-style: none; }
.about-strip { position: relative; border-block: 1px solid var(--rule); }
.strip-star {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 12.3%;
  width: clamp(25px, 2.72vw, 53px);
  height: auto;
  translate: -50% -50%;
  pointer-events: none;
}
.about-run {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(12px, 1.56vw, 30px);
  padding: clamp(12px, 1vw, 20px) clamp(15px, 2.08vw, 40px);
  white-space: nowrap;
  font: 300 clamp(2.2rem, 4.167vw, 5rem)/1.18 var(--display);
}
.about-ticker { overflow: hidden; }
.about-track { display: flex; width: max-content; }
.about-strip:not([data-motion]) .about-run[aria-hidden="true"] { display: none; }
.about-strip[data-motion] .about-track { animation: about-marquee 55s linear infinite; }
.about-strip[data-paused] .about-track, .about-ticker:hover .about-track { animation-play-state: paused; }
.about-pause {
  position: absolute;
  right: calc(var(--menu-rail) + 10px);
  bottom: 7px;
  z-index: 1;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  background: #edf0f0;
  font-size: .75rem;
}
@keyframes about-marquee { to { transform: translateX(-50%); } }
.about-photo {
  width: clamp(36px, 3.97vw, 76px);
  aspect-ratio: 76 / 117;
  height: auto;
  object-fit: cover;
}
.about-role-star { width: clamp(26px, 2.91vw, 56px); height: auto; }

.contact {
  z-index: 9;
  position: relative;
  padding: clamp(48px, 4.32vw, 83px) max(var(--menu-rail), 9.11vw) clamp(48px, 4.32vw, 83px) 10.47vw;
  background: #454545;
}
.contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: 38.795% minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  min-height: clamp(480px, 39.84vw, 765px);
  margin-inline: auto;
  background: #edf0f0;
}
.contact-intro {
  align-self: center;
  padding: clamp(18px, 5.42vw, 104px);
}
.contact-intro p {
  margin-top: 16px;
  font-size: clamp(.875rem, .9375vw, 1.125rem);
  line-height: 2;
}
.contact-fields {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: repeat(3, auto) minmax(145px, auto);
  gap: clamp(14px, 1.4vw, 24px);
  padding: clamp(18px, 2.6vw, 48px);
  border-left: 1px solid var(--rule);
}
.contact-fields label { display: grid; gap: .4rem; font-size: .9375rem; }
.contact-fields small { margin-inline-start: .35em; color: #43575c; font-size: .75rem; }
.contact-message { grid-template-rows: auto minmax(0, 1fr); }
.contact-fields input, .contact-fields textarea {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .7rem .85rem;
  border: 1px solid #77878a;
  border-radius: 0;
  color: #222;
  background: #fbfcfc;
  font-size: 1rem;
}
.contact-fields textarea { min-height: 125px; resize: vertical; }
.contact-fields :is(input,textarea):focus-visible { outline-offset: 2px; background: #fff; }
.contact-actions {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  display: grid;
  margin: 0 clamp(18px, 5.42vw, 104px) clamp(35px, 2.92vw, 56px);
}
.contact-actions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: clamp(54px, 5.1vw, 98px);
  border: 0;
  padding: .85rem clamp(.875rem, 1.6vw, 1.75rem);
  background: #ed7002;
  color: #211306;
}
.contact-submit-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .6rem;
  text-align: start;
}
.contact-submit-en { font: 300 clamp(1.4rem, 1.75vw, 2rem)/1 var(--display); }
.contact-submit-ja { font: 400 clamp(.75rem, .95vw, .95rem)/1.4 var(--body); white-space: nowrap; }
.contact-arrow { flex: none; width: min(30%, 66px); height: auto; }
.contact-privacy {
  justify-self: start;
  margin-top: .65em;
  font: 400 .875rem/1.5 var(--body);
  text-underline-offset: .2em;
}
.form-status { font-size: .875rem; line-height: 1.55; }
.form-status:not(:empty) { margin-top: .55rem; }
.contact-star {
  position: absolute;
  left: 38.795%;
  bottom: clamp(52px, 6.9vw, 132px);
  width: clamp(28px, 2.8vw, 53px);
  height: auto;
  translate: -50% 50%;
  pointer-events: none;
}

.site-footer {
  background: #454545;
  color: #fff;
}
.footer-shop, .footer-row { border-block-start: 1px solid #b9b9b9; }
.footer-row { display: grid; grid-template-columns: 51.85% minmax(0, 1fr); }
.footer-row + .footer-row { border-block-end: 1px solid #b9b9b9; }
.footer-row > :nth-child(2) { border-inline-start: 1px solid #b9b9b9; }
.footer-shop, .footer-row:nth-of-type(3) { background: #7d7d7d; }
.footer-link {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.08vw, 40px);
  min-height: clamp(85px, 8.8vw, 169px);
  padding: 12px clamp(20px, 5.9vw, 113px);
  text-decoration: none;
}
.footer-label { font: 300 clamp(1.5rem, 3.23vw, 3.875rem)/1.05 var(--display); }
.footer-caption { font-size: clamp(.875rem, 1.2vw, 1.4375rem); line-height: 1.55; }
.footer-arrow { width: clamp(32px, 4.64vw, 89px); height: auto; margin-inline-start: auto; flex: none; }
.site-footer a:focus-visible { outline-color: #fff; outline-offset: -4px; }
.footer-credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: clamp(16px, 1.6vw, 28px) max(6vw, calc(var(--menu-rail) + 10px)) clamp(16px, 1.6vw, 28px) 5.9vw;
  font-size: .875rem;
}
.footer-credits nav { display: flex; flex-wrap: wrap; gap: .5em 1.5em; }
.footer-credits a { text-underline-offset: .2em; }

.privacy-page {
  max-width: 1100px;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(42px, 7vw, 110px) max(var(--menu-rail), 7vw) 60px 7vw;
  line-height: 1.85;
}
.privacy-heading { margin: 1.6rem 0 1.25rem; }
.privacy-page h1 { margin-top: .2rem; font-size: clamp(1.5rem, 3vw, 2.75rem); font-weight: 400; }
.privacy-intro { margin-bottom: 1.75rem; }
.privacy-page section { padding-block: 1.1rem; border-top: 1px solid var(--rule); }
.privacy-page h2 { margin-bottom: .6rem; font-size: 1.125rem; font-weight: 400; }
.privacy-page ul { margin: .65rem 0 0; padding-inline-start: 1.5em; }
.privacy-page p + p { margin-top: .6rem; }
.privacy-page a { overflow-wrap: anywhere; text-underline-offset: .2em; }

.side-menu {
  --drawer-width: min(clamp(225px, 17.82vw, 342px), 90vw);
  position: fixed;
  z-index: 20;
  inset: 0 0 auto auto;
  width: var(--menu-rail);
  height: 100svh;
  background: rgba(255, 255, 255, .32);
  transition: width .23s ease, background-color .23s ease;
}
.side-menu[data-open] { width: var(--drawer-width); background: rgba(255, 255, 255, .91); }
.menu-toggle {
  position: absolute;
  z-index: 1;
  display: grid;
  place-content: center;
  right: 0;
  top: clamp(17px, 2.865vw, 55px);
  width: var(--menu-rail);
  min-height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  writing-mode: vertical-rl;
  font-size: clamp(1rem, 1.2vw, 1.4375rem);
}
.menu-rule {
  position: absolute;
  top: 4.54%;
  right: calc(var(--menu-rail) * .766);
  width: auto;
  height: 73.61%;
  pointer-events: none;
}
.menu-star {
  position: absolute;
  top: 13.24%;
  right: calc(var(--menu-rail) * .766);
  width: clamp(28px, 2.72vw, 53px);
  height: auto;
  translate: 50%;
  pointer-events: none;
}
.menu-links {
  position: absolute;
  top: min(18.89%, 204px);
  right: var(--menu-rail);
  width: calc(var(--drawer-width) - var(--menu-rail));
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: clamp(4px, 2.4svh, 29px);
  max-height: 77%;
  padding: 0 8px 6px 18px;
  overflow-y: auto;
  font-size: clamp(1.1rem, 1.2vw, 1.4375rem);
  visibility: hidden;
  opacity: 0;
}
.side-menu[data-open] .menu-links { visibility: visible; opacity: 1; }
.menu-links a { display: block; text-align: right; padding: 3px 5px; text-decoration: none; }
.menu-links a:hover, .menu-links a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }

.gallery-page { padding: clamp(42px, 6vw, 112px) max(var(--menu-rail), 6vw) 80px 6vw; }
.gallery-page h1 { font-size: clamp(3.3rem, 8vw, 9rem); line-height: 1.15; margin-bottom: .45em; }
.back-link { font-size: 1.25rem; text-underline-offset: .2em; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5vw; }
.gallery-tile { padding: 0; text-align: left; border: 0; background: transparent; }
.gallery-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-tile span { display: block; border-bottom: 1px solid; padding: .25rem 0; font-size: 1.4rem; }
.gallery-tile:hover span { text-decoration: underline; }
.viewer {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100dvh;
  margin: 0;
  border: 0;
  padding: clamp(12px, 2vw, 34px);
  background: #f4f6f6;
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; }
.viewer::backdrop { background: #f4f6f6; }
body:has(.viewer[open]) { overflow: hidden; }
.viewer-bar { text-align: right; }
.viewer-art { width: 100%; height: 100%; object-fit: contain; }
.viewer-controls { display: flex; align-items: center; justify-content: center; gap: 18px; }
.viewer button { padding: .5em .8em; min-height: 44px; border: 1px solid #68747a; background: #fff; }
.viewer button:disabled { opacity: .46; cursor: default; }
.viewer-number { font-size: 1.5rem; }

@media (width > 900px) and (aspect-ratio > 5 / 4) {
  .work {
    --work-space: clamp(24px, 3.7svh, 48px);
    --art-height: min(41.667vw, calc(100svh - var(--offset) - var(--step) - 2 * var(--work-space)));
    padding-bottom: var(--work-space);
  }
  .work-layout {
    align-items: center;
    margin-block: auto;
    padding-top: var(--work-space);
  }
  .work-01 figure { margin-top: 0; }
}

@media (max-width: 900px), (max-aspect-ratio: 5 / 4) {
  .hero h1 { bottom: 0; padding-left: .45vw; }
  .information-preview { width: auto; align-self: stretch; margin-inline: 7vw calc(var(--menu-rail) + 10px); }
  .information-list {
    width: min(88%, 620px);
    padding: 22px clamp(12px, 2vw, 22px);
  }
  .chapter-heading { padding-left: 7vw; padding-right: calc(var(--menu-rail) + 10px); }
  .work-tab { padding-left: 7vw; }
  .work-layout {
    grid-template-columns: minmax(0, 1fr);
    width: auto;
    max-width: 570px;
    margin: 0 var(--menu-rail) 0 7vw;
    padding: 0 10px 0 0;
    gap: 13px;
    min-height: 0;
  }
  .work-copy { display: contents; }
  .work-title { grid-row: 1; font-size: clamp(1.5rem, 5.2vw, 2.75rem); }
  .work figure { grid-row: 2; width: min(100%, 42svh); justify-self: center; }
  .work-01 figure { margin-top: 0; }
  .work-description { grid-row: 3; width: min(100%, 34em); }
  .about-content { grid-template-columns: minmax(0, 1fr); padding-inline: 7vw calc(var(--menu-rail) + 10px); }
  .contact { padding-inline: 7vw calc(var(--menu-rail) + 10px); }
  .contact-intro { padding-inline: clamp(18px, 3.5vw, 36px); }
  .contact-actions { margin-inline: clamp(18px, 3.5vw, 36px); }
  .footer-link { padding-inline: clamp(12px, 3.5vw, 45px); }
  .footer-row > :last-child, .footer-shop .footer-link { padding-inline-end: calc(var(--menu-rail) + 8px); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}

@media (max-width: 640px) {
  .information-preview { grid-template-columns: minmax(0, 1fr); }
  .information-preview h2 { writing-mode: horizontal-tb; padding: 15px 6px; }
  .information-cards { border-top: 1px solid var(--rule); }
  .information-list { width: auto; margin-inline: 7vw calc(var(--menu-rail) + 10px); }
  .information-page .information-list { margin-inline: 0; }
  .information-list li { gap: 12px; }
  .about-details > div { grid-template-columns: 1fr; gap: .25rem; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .contact-intro { padding-block: 28px; }
  .contact-fields { grid-column: 1; grid-row: 2; border-left: 0; border-block: 1px solid var(--rule); }
  .contact-actions { grid-row: 3; margin-block: 18px; }
  .contact-star { left: 75%; top: auto; bottom: auto; align-self: start; grid-row: 2; }
  .footer-link { flex-wrap: wrap; position: relative; padding-inline-end: 42px; }
  .footer-caption { width: 100%; }
  .footer-arrow { position: absolute; right: 7px; }
  .footer-row > :last-child .footer-arrow, .footer-shop .footer-arrow { right: var(--menu-rail); }
  .footer-row > :last-child .footer-label { font-size: clamp(1.125rem, 5vw, 1.5rem); }
}

@media (max-height: 565px) {
  .stack-panel:not(.hero, .information), .gallery-bar, .work-tab { position: relative; top: auto; }
  .work { height: auto; min-height: 100svh; }
  .gallery-hold { height: 80px; }
  .about-hold { display: none; }
  .stack-target[id^="work-"] { scroll-margin-top: 0; }
}

@media (hover: hover) {
  :is(.gallery-more, .contact-actions button:not(:disabled), a.footer-link):hover {
    background-image:
      radial-gradient(circle, color-mix(in srgb, currentColor 17%, transparent) .65px, transparent 1.1px),
      radial-gradient(circle, color-mix(in srgb, currentColor 10%, transparent) .5px, transparent .95px);
    background-position: 0 0, 4px 5px;
    background-size: 8px 10px;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.gallery-view-arrow, .contact-arrow, .footer-arrow) {
    transition: translate .24s ease-out;
  }

  :is(.gallery-more, .contact-actions button:not(:disabled), a.footer-link):hover
    :is(.gallery-view-arrow, .contact-arrow, .footer-arrow) {
    translate: 7px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .side-menu { transition: none; }
  .site-star { animation: none; }
  .about-strip[data-motion] .about-track { animation: none; }
  .about-run[aria-hidden="true"] { display: none; }
  .about-strip .about-pause { display: none; }
  .about-ticker { overflow-x: auto; }
}
