.home .site-header {
  position: fixed;
  inset: 0 0 auto;
  color: #fffdfa;
  background: linear-gradient(#1917118c, #19171126);
  border-color: #ffffff32;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.home .site-header .site-nav a { color: #fffdfa; }
.home .site-header .site-nav a:hover { text-decoration: underline; text-underline-offset: .4em; }
.home .site-header :focus-visible { outline-color: #ffe6b8; }
.home .site-header.is-solid { color: var(--ink); background: var(--paper); border-color: var(--line); }
.home .site-header.is-solid .site-nav a { color: var(--muted); }
.home .site-header.is-solid :focus-visible { outline-color: #9d581f; }
.home #content { scroll-margin-top: 90px; }

.atelier-hero {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
  color: #fffdf7;
  background: #29241b;
  isolation: isolate;
}
.atelier-slides, .atelier-slide, .atelier-hero::after {
  position: absolute;
  inset: 0;
}
.atelier-slides { z-index: -2; overflow: hidden; }
.atelier-slide { opacity: 0; }
.atelier-slide.is-previous { opacity: 1; z-index: 1; }
.atelier-slide.is-current { opacity: 1; z-index: 2; }
.atelier-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 54%; }
.atelier-slide.slide-interior img { object-position: 54% 57%; }
.atelier-slide.slide-window img { object-position: 61% 57%; }
.atelier-slide.slide-tiger img { object-position: 61% 56%; }
.atelier-slide.slide-detail img { object-position: 57% 68%; }
.atelier-hero::after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(90deg, #17140bd1 0%, #17140ba3 25%, #17140b32 60%, #17140b0c 100%),
    linear-gradient(0deg, #19150f8c 0%, transparent 32%, transparent 75%, #18161147 100%);
  pointer-events: none;
}
.atelier-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px 0 clamp(105px, 17svh, 170px);
}
.atelier-hero-copy { max-width: min(690px, 72%); }
.atelier-kicker { margin-bottom: .9rem; color: #f6e2be; font-size: .96rem; letter-spacing: .03em; }
.atelier-hero h1 { font-size: clamp(1.85rem, 3.25vw, 2.65rem); line-height: 1.22; font-weight: 500; letter-spacing: -.071em; word-break: keep-all; }
.atelier-hero-detail { margin: .94rem 0 1.7rem; color: #f3eee5; font-size: clamp(.96rem, 1.5vw, 1.12rem); line-height: 1.65; word-break: keep-all; }
.atelier-hero .button { min-height: 47px; padding-inline: 1.15rem; }
.atelier-button-light { background: #f9f5ea; color: #282c22; border-color: #f9f5ea; }
.atelier-button-light:hover { background: #ecdfcb; color: #282c22; border-color: #ecdfcb; }
.atelier-button-outline { border-color: #f0e9d9a8; background: #201b1533; color: #fffdfa; }
.atelier-button-outline:hover { background: #fffdf5; color: #282c22; border-color: #fffdf5; }
.atelier-call { display: none; }
.atelier-hero :focus-visible { outline-color: #fff0cf; }
.atelier-controls:not([hidden]) {
  display: flex;
  position: absolute;
  right: 0;
  bottom: max(34px, env(safe-area-inset-bottom));
  gap: 6px;
  align-items: center;
}
.atelier-controls button {
  position: relative;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.atelier-step { width: 27px; height: 44px; }
.atelier-step::before {
  content: "";
  position: absolute;
  inset: calc(50% - 1px) 0 auto;
  height: 2px;
  background: #fffefa7a;
}
.atelier-step[aria-pressed="true"]::before, .atelier-step:hover::before { background: #fffefa; }
.atelier-playback { width: 44px; height: 44px; }
.atelier-playback span {
  display: inline-block;
  width: 9px;
  height: 12px;
  vertical-align: middle;
  border-inline: 2px solid currentColor;
}
.atelier-playback[data-paused] span {
  width: 0;
  height: 0;
  border: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.atelier-intro {
  display: grid;
  grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr);
  align-items: center;
  gap: clamp(32px, 8vw, 120px);
}
.atelier-intro h2, .atelier-visit h2 { font-weight: 550; }
.atelier-intro-copy { max-width: 470px; }
.atelier-intro-copy p, .atelier-visit-copy p { color: var(--muted); line-height: 1.8; word-break: keep-all; }
.atelier-intro-copy p { margin-top: .8rem; }
.atelier-intro-copy h2 + p { margin-top: 1.2rem; }
.atelier-intro-copy .button { margin-top: 1.35rem; }
.atelier-intro-photo img { aspect-ratio: 1.58; object-fit: cover; object-position: 50% 53%; }
.atelier-works { background: #f2f0e8; border-block: 1px solid var(--line); }
.atelier-work-grid {
  display: grid;
  grid-template-columns: minmax(0,1.17fr) minmax(0,.83fr);
  grid-template-areas: "main puffer" "main fish";
  grid-template-rows: repeat(2, clamp(210px, 24vw, 335px));
  gap: clamp(8px, 1.2vw, 17px);
}
.atelier-work-main { grid-area: main; --focus: 29% 56%; }
.atelier-work-puffer { grid-area: puffer; --focus: 50% 56%; }
.atelier-work-fish { grid-area: fish; --focus: 50% 50%; }
.atelier-work {
  position: relative;
  height: 100%;
  min-width: 0;
  border-radius: 8px;
  background: #4d3c2b;
}
.atelier-work a { display: block; overflow: hidden; width: 100%; height: 100%; border-radius: inherit; }
.atelier-work img { height: 100%; object-fit: cover; object-position: var(--focus); transition: transform .45s ease; }
.atelier-work a:hover img { transform: scale(1.026); }
.atelier-work figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem .9rem .85rem;
  border-radius: inherit;
  background: linear-gradient(transparent, #1b140cbd);
  color: #fffdf8;
  font-size: .96rem;
  pointer-events: none;
}
.atelier-visit-inner {
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
  background: #eeece2;
}
.atelier-visit-inner img { height: 100%; min-height: 300px; object-fit: cover; object-position: 50% 58%; }
.atelier-visit-copy { align-self: center; padding: clamp(28px, 5vw, 66px); }
.atelier-visit-copy p { margin-top: .75rem; }
.atelier-visit-copy .actions { margin-top: 1.25rem; }

@media (max-width: 690px) {
  .home .site-header { background: linear-gradient(#17150f70, #17150f3b); }
  .atelier-hero::after {
    background: linear-gradient(0deg, #19150ff5 0%, #19150fd4 14%, #19150f6e 39%, transparent 72%, #17150f2b 100%);
  }
  .atelier-hero-inner { padding-top: 119px; padding-bottom: max(clamp(132px, 22svh, 200px), calc(env(safe-area-inset-bottom) + 68px)); }
  .atelier-hero-copy { max-width: none; }
  .atelier-kicker { margin-bottom: .62rem; }
  .atelier-hero h1 { font-size: clamp(1.45rem, 6.2vw, 1.9rem); letter-spacing: -.066em; }
  .atelier-hero-detail { margin: .7rem 0 1.12rem; }
  .atelier-hero .button { min-height: 44px; padding-inline: .9rem; }
  .atelier-call {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    margin-top: .45rem;
    color: #fffdf7;
    font-weight: 550;
    white-space: nowrap;
  }
  .atelier-call span { color: #f6e2be; font-size: .875rem; font-weight: 400; }
  .atelier-slide img { object-position: 66% center; }
  .atelier-slide.slide-interior img { object-position: 55% center; }
  .atelier-slide.slide-window img { object-position: 64% center; }
  .atelier-slide.slide-tiger img { object-position: 56% center; }
  .atelier-slide.slide-detail img { object-position: 40% center; }
  .atelier-controls:not([hidden]) { left: 0; right: auto; bottom: max(21px, env(safe-area-inset-bottom)); }
  .atelier-step { width: 23px; }
  .atelier-intro, .atelier-visit-inner { grid-template-columns: 1fr; }
  .atelier-intro { gap: 24px; }
  .atelier-work-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    grid-template-areas: "main main" "puffer fish";
    grid-template-rows: auto auto;
  }
  .atelier-work { aspect-ratio: 1; }
  .atelier-work-main { aspect-ratio: 1.45; }
  .atelier-work figcaption { padding-inline: .65rem; }
  .atelier-visit-inner img { min-height: 0; aspect-ratio: 1.6; }
  .atelier-visit-copy { padding: 22px 18px 27px; }
}

@media (max-width: 690px) and (max-height: 480px) {
  .atelier-hero-inner { padding-block: 100px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .atelier-work img, .home .site-header { transition: none; }
}
