:root {
  --ground: #0e0d0b;
  --ground-2: #1b1916;
  --ink: #f3efe7;
  --ink-2: #b9b2a6;
  --accent: #e9d8b4;
  --gut: clamp(16px, 2.2vw, 32px);
  --strip-h: 116px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ground); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ground); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* bar */
.bar { position: absolute; top: 0; right: 0; z-index: 10; padding: var(--gut); }
.bar nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
.link { font-weight: 500; font-size: 16px; padding: 6px 0; position: relative; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--ground-2); font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.lang a { padding: 5px 9px; border-radius: 999px; text-decoration: none; color: var(--ink-2); transition: background-color .2s, color .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--ground); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #17140f; text-decoration: none; font-weight: 700;
  padding: 10px 20px; border-radius: 999px; font-size: 16px;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: #fff3d8; }
.btn:active { transform: scale(.96); }
.btn-lg { padding: 16px 28px; font-size: 18px; }

/* layout */
.layout {
  display: grid;
  grid-template-columns: minmax(320px, 34%) 1fr;
  grid-template-rows: 1fr var(--strip-h);
  grid-template-areas: "side stage" "strip strip";
  height: calc(100svh - 44px);
  min-height: 620px;
}
.side { grid-area: side; padding: var(--gut); display: flex; flex-direction: column; min-height: 0; }
.name {
  margin: 0; font-weight: 500; text-transform: lowercase;
  font-size: clamp(64px, 9.4vw, 150px); line-height: .84; letter-spacing: -.055em;
}
.lede { margin: 28px 0 0; max-width: 30ch; font-size: 18px; }
.caption { margin-top: auto; padding-top: 24px; }
.cap-title { margin: 0; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.02em; font-weight: 500; }
.cap-meta { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  padding: 8px 16px; border-radius: 999px; background: var(--ground-2); font-size: 15px; font-weight: 500;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.chip:hover { background: #2a2722; }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

/* stage */
.stage { grid-area: stage; position: relative; min-height: 0; padding: calc(var(--gut) + 48px) var(--gut) 12px 0; display: flex; }
.stage-btn { flex: 1; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
#stage-img {
  max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain;
  transition: opacity .45s var(--ease), transform .7s var(--ease);
}
#stage-img.swap { opacity: 0; transform: scale(.985); }
.stage-nav { position: absolute; right: var(--gut); bottom: 18px; display: flex; gap: 8px; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ground-2); font-size: 20px;
  display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease);
}
.arrow:hover { background: var(--ink); color: var(--ground); }
.arrow:active { transform: scale(.92); }

/* filmstrip */
.strip-wrap { grid-area: strip; background: var(--ground-2); min-width: 0; }
.strip {
  list-style: none; margin: 0; padding: 12px var(--gut); height: 100%;
  display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #444 transparent;
}
.strip li { flex: none; height: 100%; scroll-snap-align: start; }
.strip li[hidden] { display: none; }
.thumb { height: 100%; display: block; position: relative; opacity: .5; transition: opacity .25s, transform .25s var(--ease); }
.thumb img { height: 100%; width: auto; aspect-ratio: auto; }
.thumb:hover { opacity: .85; }
.thumb:active { transform: scale(.97); }
.thumb[aria-current="true"] { opacity: 1; }
.thumb[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; background: var(--accent); }

.foot { height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--gut); font-size: 13px; color: var(--ink-2); }
.foot p { margin: 0; }

/* dialogs */
dialog { color: var(--ink); border: 0; padding: 0; }
dialog::backdrop { background: rgba(8, 7, 6, .72); }
.panel {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(560px, 100%); max-width: 100%;
  background: var(--ground-2);
}
.panel[open] { animation: slide .45s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.panel-in { padding: calc(var(--gut) + 8px); padding-top: 72px; position: relative; min-height: 100%; }
.panel h2 { margin: 0 0 20px; font-size: clamp(40px, 5vw, 64px); line-height: .95; letter-spacing: -.04em; font-weight: 500; }
.big { font-size: 22px; line-height: 1.35; margin: 0 0 20px; max-width: 28ch; }
.panel p { max-width: 46ch; }
.small { font-size: 14px; color: var(--ink-2); }
.close { position: absolute; top: var(--gut); right: var(--gut); font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--ground); transition: background-color .2s; }
.close:hover { background: var(--ink); color: var(--ground); }
.price { margin: 28px 0 12px; display: grid; gap: 4px; }
.price div { background: var(--ground); padding: 14px 16px; }
.price dt { font-weight: 700; }
.price dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.contact { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 4px; }
.contact li { background: var(--ground); padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contact span { color: var(--ink-2); }

.lightbox { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; background: #070706; }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); object-fit: contain; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(.92); }

/* entrance */
.rise { animation: rise .8s var(--ease) both; }
.side .rise:nth-child(2) { animation-delay: .08s; }
.side .rise:nth-child(3) { animation-delay: .16s; }
.side .rise:nth-child(4) { animation-delay: .24s; }
.stage-btn { animation: rise 1s var(--ease) .1s both; }
.strip li { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + .3s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* phone */
@media (max-width: 820px) {
  :root { --strip-h: 92px; }
  .layout {
    height: auto; min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: none;
  }
  .layout > *, .side > * { grid-column: 1; }
  .side { display: contents; }
  .name { grid-row: 1; padding: 72px var(--gut) 0; font-size: clamp(60px, 21vw, 110px); }
  .lede { grid-row: 2; margin: 16px var(--gut) 20px; font-size: 17px; }
  .stage { grid-row: 3; padding: 0; height: 68svh; }
  .stage-btn img#stage-img { width: 100%; height: 100%; object-fit: cover; }
  .stage-nav { bottom: 12px; right: 12px; }
  .arrow { background: rgba(14, 13, 11, .8); }
  .caption { grid-row: 4; padding: 18px var(--gut) 0; margin: 0; }
  .filters { grid-row: 5; padding: 0 var(--gut); }
  .strip-wrap { grid-row: 6; height: var(--strip-h); margin-top: 20px; }
  .bar { padding: 16px; }
  .bar nav { gap: 14px; }
  .lang a { padding: 5px 7px; }
  .link { font-size: 15px; }
  .btn { padding: 8px 16px; font-size: 15px; }
  .foot { height: auto; padding: 18px var(--gut) 24px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .panel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
