:root {
  --ink: #14110e;
  --tide: #0c1418;
  --pearl: #f6f1e8;
  --gold: #EBCB3F;
  --sand: #e7d3bc;
  --blush: #f0c7b4;
  --didot: "Linotype Didot", "Linotype Didot Pro", Didot, "Didot LT STD", "Times New Roman", serif;
  --didot-headline: "Linotype Didot Headline", "Linotype Didot Pro Headline", "Linotype Didot", Didot, "Didot LT STD", serif;
  --serif: var(--didot);
  --sans: "Outfit", "Avenir Next", sans-serif;
  --lx: 68%;
  --ly: 24%;
  --seam: 30vh;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--tide);
  color: var(--pearl);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--pearl);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 40;
}

.skip:focus { top: 1rem; }

.nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  padding: clamp(0.7rem, 1.6vw, 1.1rem) clamp(1rem, 4vw, 4vw);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav.is-solid {
  background: rgba(10, 14, 16, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(235, 203, 63, 0.18);
}

.wordmark {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
  margin-right: auto;
}

.wordmark img {
  height: clamp(46px, 6vw, 74px);
  width: auto;
  max-width: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(235, 203, 63, 0.55);
  background: transparent;
  color: var(--gold);
  place-items: center;
  align-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(40deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-40deg); }

.nav-panel { display: flex; align-items: center; }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.view-toggle {
  display: flex;
  border: 1px solid rgba(235, 203, 63, 0.6);
  border-radius: 999px;
  overflow: hidden;
}

.view-toggle-btn {
  border: 0;
  background: transparent;
  color: var(--pearl);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.view-toggle-btn.is-on {
  background: var(--gold);
  color: #14110e;
}

.bag {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(235, 203, 63, 0.7);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.bag svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.bag-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.62rem;
  line-height: 16px;
}

.bag-count[hidden] { display: none; }

.bag-drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;
  padding: 5.5rem 1.4rem 1.6rem;
  background: #0c1216;
  color: var(--pearl);
  border-left: 1px solid rgba(235, 203, 63, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-sizing: border-box;
}

.bag-drawer[hidden] { display: none; }

.bag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bag-drawer .look-close { position: static; }

.bag-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1 1 auto;
}

.bag-lines li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(246, 241, 232, 0.12);
}

.bag-lines img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.bag-name { margin: 0; }

.bag-meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.bag-lines button {
  background: none;
  border: 0;
  color: var(--pearl);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.62rem;
  cursor: pointer;
}

.bag-total { margin: 0; }

.bag-note {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

.bag-drawer .enter { margin-top: 0; align-self: flex-start; }

.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.55rem);
}

.nav nav a {
  position: relative;
  text-decoration: none;
  font-size: clamp(0.62rem, 0.9vw, 0.74rem);
  letter-spacing: clamp(0.14em, 0.22vw, 0.22em);
  text-transform: uppercase;
  padding: 0.4rem 0;
  transition: color 0.3s ease, opacity 0.35s ease, transform 0.35s ease;
}

.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}

.nav nav a:hover,
.nav nav a:focus-visible,
.nav nav a.is-here { color: var(--gold); }

.nav nav a:hover::after,
.nav nav a:focus-visible::after,
.nav nav a.is-here::after { transform: scaleX(1); }

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow.on-light { color: #EBCB3F; }

h1, h2, h3 {
  font-family: var(--didot);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1.logo {
  margin: 1.35rem auto 0;
  line-height: 0;
  width: min(100%, 34rem);
}

h1.logo img {
  height: auto;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.35));
}

.logo-feather {
  display: block;
  width: min(53.3%, 19.5rem);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.35));
}

.logo-word {
  width: 100%;
  margin-top: 0;
  animation: covet-gold 11s ease-in-out infinite;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.95;
  font-style: italic;
}

.spoken {
  margin: 0.8rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.hero-copy .spoken { color: var(--pearl); }

.lede, .deck { max-width: 34rem; }

.lede {
  margin: 0.4rem auto 0;
  font-size: 1.25rem;
}

.deck { margin: 0.8rem auto 0; }

.hero-copy .deck {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(235, 203, 63, 0.32);
}

.hero-copy .enter { margin-top: 1.15rem; }

.enter {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid rgba(246, 241, 232, 0.7);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.enter:hover,
.enter:focus-visible {
  background: var(--pearl);
  color: var(--ink);
}

.layers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.layer { position: absolute; inset: -12%; }

.hero-film,
.collections-film,
.visit-film,
.ig-film,
.foot-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.plate {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: ken 42s ease-in-out infinite alternate;
}

.shell-a { background-image: url("images/layers/shell-a.jpg"); }
.shell-b {
  background-image: url("images/layers/shell-b.jpg");
  opacity: 0.55;
  mix-blend-mode: soft-light;
  animation-duration: 58s;
  animation-direction: alternate-reverse;
}
.water-gold { background-image: url("images/layers/water-gold.jpg"); }
.water-wake {
  background-image: url("images/layers/water-wake.jpg");
  opacity: 0.38;
  mix-blend-mode: screen;
  animation-duration: 50s;
  animation-direction: alternate-reverse;
}
.shore { background-image: url("images/layers/shore.jpg"); }
.leather {
  background-image: url("images/layers/leather.jpg");
  animation-duration: 64s;
}
.window {
  background-image: url("images/layers/house.jpg?v=2");
  background-position: center top;
  animation-duration: 70s;
  animation-name: ken-soft;
}

#house .plate.window {
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 20px,
    #000 calc(100% - 20px),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 20px,
    #000 calc(100% - 20px),
    transparent 100%
  );
}

.aspen-gold,
.aspen-bells,
.aspen-storm,
.aspen-pines,
.aspen-lights {
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
}

.aspen-gold {
  background-image: url("images/layers/aspen-gold.jpg");
  background-position: center 40%;
  opacity: 0.78;
  -webkit-mask-image: radial-gradient(ellipse at 68% 52%, #000 16%, transparent 64%);
  mask-image: radial-gradient(ellipse at 68% 52%, #000 16%, transparent 64%);
  animation-duration: 72s;
}

.aspen-bells {
  background-image: url("images/layers/aspen-bells.jpg");
  background-position: center 30%;
  opacity: 0.36;
  animation-duration: 64s;
}

.aspen-gondola {
  background-image: url("images/layers/aspen-gondola.jpg");
  background-position: center 38%;
  animation-name: ken-soft;
  animation-duration: 52s;
}

.aspen-meadow {
  background-image: url("images/layers/aspen-meadow.jpg");
  background-position: center 32%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 62%);
  animation-duration: 60s;
}

.aspen-storm {
  background-image: url("images/layers/aspen-storm.jpg");
  background-position: center 72%;
  opacity: 0.55;
  mix-blend-mode: soft-light;
  animation-duration: 68s;
}

.aspen-pines {
  background-image: url("images/layers/aspen-pines.jpg");
  opacity: 0.32;
  animation-name: ken-soft;
  animation-duration: 70s;
}

.aspen-lights {
  background-image: url("images/layers/aspen-lights.jpg");
  background-position: center 42%;
  opacity: 0.48;
  animation-duration: 66s;
}

.portal .layer {
  top: 0;
  bottom: -10%;
}

.veil {
  opacity: 0.42;
  mix-blend-mode: multiply;
  animation-duration: 36s;
}

.dim {
  filter: brightness(0.9) saturate(1.25) contrast(1.08);
  background-position: center 82%;
}

.edge {
  opacity: 0.16;
  mix-blend-mode: screen;
}

.scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 48%, rgba(8, 12, 14, 0.62), transparent 58%),
    linear-gradient(180deg, rgba(8, 10, 12, 0.28), transparent 24%, rgba(8, 10, 12, 0.55));
}

.drift-scrim {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(8, 12, 14, 0.05), rgba(8, 12, 14, 0.38) 74%),
    linear-gradient(180deg, rgba(8, 10, 12, 0.42), rgba(8, 10, 12, 0.08) 28%, rgba(8, 10, 12, 0.55));
}

.hero, .drift, .edit, .portal, .visit, .press {
  position: relative;
  overflow: hidden;
}

.hero {
  z-index: 13;
  min-height: 100vh;
  display: grid;
  align-items: center;
  --hero-fade: 40vh;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 calc(100% - var(--hero-fade)),
    rgba(0, 0, 0, 0.94) calc(100% - 24vh),
    rgba(0, 0, 0, 0.72) calc(100% - 14vh),
    rgba(0, 0, 0, 0.28) calc(100% - 5vh),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 calc(100% - var(--hero-fade)),
    rgba(0, 0, 0, 0.94) calc(100% - 24vh),
    rgba(0, 0, 0, 0.72) calc(100% - 14vh),
    rgba(0, 0, 0, 0.28) calc(100% - 5vh),
    transparent 100%
  );
}

.hero .scrim {
  background:
    radial-gradient(ellipse at 28% 48%, rgba(8, 12, 14, 0.62), transparent 58%),
    linear-gradient(180deg, rgba(8, 10, 12, 0.28), transparent 22%, rgba(8, 10, 12, 0.28) 62%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 8rem 6vw 5rem;
}

.hero-copy {
  width: min(100%, 36rem);
  text-align: center;
}

/* The landing fade, repeated: each picture sits over the next and dissolves at the bottom. */
.runway,
.drift,
.edit,
.portal,
.collections,
.cards,
.press,
.visit,
.instagram-section {
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 calc(100% - var(--seam)),
    rgba(0, 0, 0, 0.94) calc(100% - var(--seam) * 0.62),
    rgba(0, 0, 0, 0.7) calc(100% - var(--seam) * 0.36),
    rgba(0, 0, 0, 0.28) calc(100% - var(--seam) * 0.12),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 calc(100% - var(--seam)),
    rgba(0, 0, 0, 0.94) calc(100% - var(--seam) * 0.62),
    rgba(0, 0, 0, 0.7) calc(100% - var(--seam) * 0.36),
    rgba(0, 0, 0, 0.28) calc(100% - var(--seam) * 0.12),
    transparent 100%
  );
}

.drift,
.edit,
.portal,
.collections,
.cards,
.press,
.visit,
.instagram-section,
.foot {
  margin-top: calc(var(--seam) * -1);
}

.drift {
  z-index: 11;
  min-height: calc(100vh + var(--seam) * 2);
  padding: calc(6.5rem + var(--seam)) 0 calc(3rem + var(--seam));
}

.drift-head {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.drift-head h2 { margin-bottom: 0; }

.stage {
  position: relative;
  z-index: 2;
  height: min(68vh, 640px);
  min-height: 420px;
  margin-top: 0.5rem;
  touch-action: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  outline: none;
}

.stage:active { cursor: grabbing; }

.stage:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(235, 203, 63, 0.7);
}

.jewel {
  position: absolute;
  left: 50%;
  top: 46%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}


.jewel[data-shape="tall"] { width: 168px; height: 280px; }
.jewel[data-shape="wide"] { width: 260px; height: 150px; }
.jewel[data-shape="collar"] { width: 300px; height: 280px; }
.jewel[data-shape="square"] { width: 268px; height: 196px; }
.jewel[data-shape="bar"] { width: 320px; height: 96px; }
.jewel[data-shape="small"] { width: 132px; height: 176px; }

.jewel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  animation: sway 7.5s ease-in-out infinite;
  filter:
    brightness(0.72)
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22));
}

.jewel:nth-child(2n) img { animation-duration: 9s; animation-delay: -2s; }
.jewel:nth-child(3n) img { animation-duration: 6.5s; animation-delay: -4s; }

.jewel.is-front img {
  filter:
    brightness(1.1)
    drop-shadow(0 26px 18px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 22px rgba(235, 203, 63, 0.95))
    drop-shadow(0 0 48px rgba(235, 203, 63, 0.72));
}

.nudge {
  position: absolute;
  top: 46%;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 232, 0.45);
  background: rgba(10, 14, 16, 0.28);
  color: var(--pearl);
  cursor: pointer;
}

.nudge.prev { left: 4vw; }
.nudge.next { right: 4vw; }

.nudge:hover,
.nudge:focus-visible { border-color: var(--gold); color: var(--gold); }

.caption {
  position: relative;
  z-index: 2;
  text-align: center;
  min-height: 7.5rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.caption.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.cap-designer {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.cap-name {
  margin: 0.15rem 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.cap-meta { margin: 0; }

.cap-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.cap-link[hidden] { display: none; }

.hint {
  position: relative;
  z-index: 2;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  opacity: 0.7;
}

.recent {
  position: relative;
  z-index: 2;
  margin: 1.8rem 0 0;
  padding: 0.4rem 6vw 0.6rem;
}

.recent[hidden] { display: none; }

.recent-kicker {
  margin: 0 0 0.85rem;
  text-align: center;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--gold);
}

.recent-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  overflow-x: auto;
  /* overflow-x: auto also clips the vertical axis, so the lift and glow need room inside the row */
  padding: 2.6rem 1.75rem 2.75rem;
  margin-top: -2rem;
  scrollbar-width: none;
  animation: recent-in 0.8s ease both;
}

.recent-row::-webkit-scrollbar { display: none; }

.recent-card {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  padding: 0.3rem;
  border: 1px solid rgba(235, 203, 63, 0.4);
  border-radius: 14px;
  background: rgba(12, 18, 22, 0.45);
  cursor: pointer;
  animation: recent-float 6s ease-in-out infinite;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.recent-card:nth-child(2n) { animation-delay: -1.4s; animation-duration: 7.2s; }
.recent-card:nth-child(3n) { animation-delay: -2.6s; animation-duration: 5.4s; }

.recent-card:hover,
.recent-card:focus-visible {
  animation: none;
  border-color: var(--gold);
  background: rgba(20, 16, 10, 0.7);
  box-shadow: 0 0 22px rgba(235, 203, 63, 0.55), 0 16px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-10px) scale(1.06);
}

.recent-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

.recent-card.is-plate img { border-radius: 8px; }

@keyframes recent-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes recent-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.edit {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  color: var(--pearl);
  padding: var(--seam) 0;
}

/* The Edit borrows Visit's living shell. The veil is heavier on the left, under the words. */
.edit .shell-b {
  opacity: 0.95;
  mix-blend-mode: normal;
}

.edit-scrim {
  background: linear-gradient(90deg, rgba(8, 10, 12, 0.66) 0%, rgba(8, 10, 12, 0.34) 46%, rgba(8, 10, 12, 0.42) 100%);
}

.wash {
  position: absolute;
  inset: 0;
}

.wash.warm {
  background: linear-gradient(180deg, rgba(246, 236, 224, 0.55), rgba(246, 236, 224, 0.94) 34%, rgba(240, 199, 180, 0.92));
}

.edit-stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  grid-template-rows: 1fr auto;
  column-gap: 5vw;
  row-gap: 0.85rem;
  align-items: end;
  padding: 7.5rem 6vw 2.4rem;
  outline: none;
}

.edit-stage:focus-visible {
  outline: 1px solid rgba(235, 203, 63, 0.45);
  outline-offset: -8px;
}

.edit-slides {
  --frame: 0.62;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  position: relative;
  width: min(100%, calc(min(72vh, 740px) * var(--frame)));
  max-height: min(72vh, 740px);
  aspect-ratio: var(--frame);
  height: auto;
  overflow: hidden;
  background: #090c0e;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  transition: width 0.8s ease, aspect-ratio 0.8s ease;
}

.edit-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.edit-slide.is-on { opacity: 1; z-index: 1; }

.edit-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.edit-slide.is-studio {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(235, 203, 63, 0.16), transparent 52%),
    #090c0e;
}

.edit-slide.is-studio img {
  object-fit: contain;
  padding: 12% 10% 14%;
}

.edit-slide.is-studio.is-on img { animation-name: edit-lift; }

.edit-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  padding: 0;
  border: 1px solid rgba(246, 241, 232, 0.35);
  border-radius: 50%;
  background: rgba(8, 10, 12, 0.28);
  color: var(--pearl);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease, background 0.3s ease;
}

.edit-arrow.prev { left: 0.7rem; }
.edit-arrow.next { right: 0.7rem; }
.edit-stage:hover .edit-arrow,
.edit-stage:focus-within .edit-arrow { opacity: 1; }
.edit-arrow:hover { background: rgba(8, 10, 12, 0.55); }

.edit-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.edit-copy {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 28rem;
  padding-bottom: 0.4rem;
}

.edit-copy p:last-child { margin-bottom: 0; }

.edit-foot {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 0.55rem;
}

.edit-caption {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.78);
}

.edit-caption.is-swap { animation: edit-caption 0.7s ease; }

.edit-meter {
  height: 1px;
  background: rgba(246, 241, 232, 0.22);
  overflow: hidden;
}

.edit-meter span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

.edit-stage.is-playing .edit-meter span { animation: edit-dwell 7.6s linear forwards; }

.edit-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.edit-dots button {
  width: 16px;
  height: 1px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.edit-dots button::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(246, 241, 232, 0.4);
  transition: background 0.4s ease, transform 0.4s ease;
}

.edit-dots button[aria-selected="true"]::before {
  background: var(--gold);
  transform: scaleX(1.6);
  transform-origin: left center;
}

.portal {
  z-index: 9;
  min-height: calc(100vh + var(--seam));
  padding-bottom: var(--seam);
  display: grid;
  align-items: end;
}

.portal-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin: 10vh 6vw;
  padding: 1.8rem 1.6rem;
  background: rgba(16, 14, 12, 0.46);
  backdrop-filter: blur(10px);
}

.visit {
  z-index: 5;
  min-height: calc(88vh + var(--seam));
  padding-bottom: var(--seam);
  display: grid;
  align-items: end;
}

.visit-scrim {
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.05), rgba(8, 10, 12, 0.72));
}

.visit-copy {
  position: relative;
  z-index: 2;
  padding: max(8rem, calc(var(--seam) + 1.5rem)) 7vw 4.5rem;
}

.press {
  z-index: 6;
  min-height: calc(100vh + var(--seam) * 2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(7.5rem + var(--seam)) 0 calc(4rem + var(--seam));
}

.press-scrim {
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.62), rgba(8, 10, 12, 0.34) 42%, rgba(8, 10, 12, 0.66));
}

/* Live teal shell behind the magazines: the whole photograph, edge to edge, with the
   still photo underneath. The layer matches the section so none of the picture is spent
   outside it; the section's own seams fade it into the rooms above and the visit below. */
.press .layer { inset: 0; }

.press .shell-a {
  opacity: 0.92;
  animation: none;
}

.press .shell-a .nacre {
  width: 100%;
  height: 100%;
}

.press-head,
.press-stage,
.press-caption {
  position: relative;
  z-index: 2;
}

.press-head {
  text-align: center;
  padding: 0 8vw 0.4rem;
}

.press-stage { position: relative; }

.press-rail {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4.5rem);
  overflow-x: auto;
  padding: 1.2rem 0 1.6rem;
  scrollbar-width: none;
  cursor: grab;
}

.press-rail::-webkit-scrollbar { display: none; }
.press-rail.is-dragging { cursor: grabbing; }

.leaf {
  flex: 0 0 auto;
  height: min(64vh, 620px);
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  opacity: 0.42;
  transform: scale(0.94);
  transition: opacity 1.2s cubic-bezier(0.65, 0, 0.35, 1), transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.leaf.is-on {
  opacity: 1;
  transform: none;
}

.leaf img {
  height: 100%;
  width: auto;
  pointer-events: none;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.press-caption {
  margin: 0.2rem 0 0;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  min-height: 1.4rem;
}

/* The deck: a pack of cards for sale, between the rooms and the press. The window
   sits behind it and dissolves at its edges the way the other rooms do. The pack
   itself is styled in card-pack.css. */
.cards {
  position: relative;
  z-index: 7;
  min-height: calc(100vh + var(--seam) * 2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(5.5rem + var(--seam)) 0 calc(2.5rem + var(--seam));
  background: var(--tide);
}

.cards-window {
  background-image: url("images/layers/cards-window.jpg");
  background-position: center;
  animation-duration: 70s;
  animation-name: ken-soft;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}

.cards-scrim {
  background:
    radial-gradient(ellipse at 50% 38%, rgba(8, 10, 12, 0.34), transparent 52%),
    linear-gradient(180deg, rgba(8, 10, 12, 0.42), rgba(8, 10, 12, 0.1) 34%, rgba(8, 10, 12, 0.14) 64%, rgba(8, 10, 12, 0.5));
}

.cards-stage {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem 6vw;
}

.cards-head h2 { margin-bottom: 0.9rem; }

.cards-lede {
  max-width: 34rem;
  margin: 0 auto;
  text-wrap: balance;
  color: rgba(246, 241, 232, 0.86);
}

.cards .pack {
  --card-w: min(1.9in, 13.5vw, calc(34vh * 2.75 / 4.75));
  margin-top: 2.6rem;
}

.cards-meta {
  margin: 0 0 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.cards .hint { margin: 0; }

.cards-flip { margin-top: 1.4rem; }

.cards-note {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 232, 0.72);
}

@media (max-width: 800px) {
  .cards .pack { --card-w: min(1.5in, 22vw, calc(30vh * 2.75 / 4.75)); }
  .cards-stage { padding: 1.5rem 1.25rem; }
}

.collections {
  position: relative;
  z-index: 8;
  min-height: calc(100vh + var(--seam) * 2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(7.5rem + var(--seam)) 0 calc(4rem + var(--seam));
  background: var(--tide);
}

.collections-scrim {
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.62), rgba(8, 10, 12, 0.34) 38%, rgba(8, 10, 12, 0.28) 58%, rgba(8, 10, 12, 0.66));
}

.section-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  padding: 0.4rem 6vw 0.2rem;
}

@media (min-width: 861px) {
  .section-tabs {
    box-sizing: content-box;
    width: calc(5 * 96px + 4 * 1.1rem);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
  }
}

.section-tab {
  width: 96px;
  padding: 0.35rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--pearl);
  cursor: pointer;
  transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.section-tab img {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  object-fit: contain;
  background: rgba(246, 241, 232, 0.06);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.section-tab.is-empty::before {
  content: "";
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  background: rgba(246, 241, 232, 0.06);
  border: 1px solid rgba(235, 203, 63, 0.28);
}

.section-tab span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.4s ease, letter-spacing 0.4s ease;
}

.section-tab:hover,
.section-tab:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(235, 203, 63, 0.9);
  box-shadow: 0 0 26px rgba(235, 203, 63, 0.45), 0 14px 24px rgba(0, 0, 0, 0.28);
}

.section-tab:hover img,
.section-tab:focus-visible img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(235, 203, 63, 0.85));
}

.section-tab:hover span,
.section-tab:focus-visible span {
  color: var(--gold);
  letter-spacing: 0.16em;
}

.section-tab.is-on {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(235, 203, 63, 0.35);
}

.section-tab.is-on img {
  filter: drop-shadow(0 0 8px rgba(235, 203, 63, 0.55));
}

.section-rail[hidden],
.section-gap[hidden] { display: none !important; }

.press-rail.section-rail {
  position: relative;
  display: block;
  height: 520px;
  overflow: hidden;
}

.section-rail .leaf {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(26vw, 240px);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  transition: none;
}

.section-rail .leaf.is-plate .leaf-frame,
.section-rail .leaf.is-plate .leaf-photo,
.shop.is-plate .shop-stage img {
  border-radius: 12px;
}

.section-rail .leaf.is-plate .micro img,
.shop.is-plate .shop-dots img,
.section-tab.is-plate img {
  border-radius: 8px;
}

.section-rail .leaf.is-plate img.leaf-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.section-rail .leaf.is-plate .leaf-photo,
.section-rail .leaf.is-plate .micro img,
.shop.is-plate .shop-stage img,
.shop.is-plate .shop-dots img,
.section-tab.is-plate img {
  --edge: 5px;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #fff var(--edge), #fff calc(100% - var(--edge)), transparent),
    linear-gradient(to bottom, transparent, #fff var(--edge), #fff calc(100% - var(--edge)), transparent);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #fff var(--edge), #fff calc(100% - var(--edge)), transparent),
    linear-gradient(to bottom, transparent, #fff var(--edge), #fff calc(100% - var(--edge)), transparent);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}

.leaf-frame {
  flex: 0 0 280px;
  height: 280px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}

.section-rail .leaf-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.section-rail .micro {
  position: static;
  flex: 0 0 46px;
  height: 46px;
  margin: 0;
  padding: 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  overflow-x: auto;
}

.card-buy {
  flex: 0 0 32px;
  height: 32px;
  margin: 6px 0 0;
  border: 1px solid rgba(235, 203, 63, 0.7);
  background: transparent;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.62rem;
  cursor: pointer;
}

.micro {
  display: flex;
  gap: 4px;
  align-items: center;
  pointer-events: auto;
}

.micro img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: auto;
  border: 1px solid transparent;
}

.micro img.is-on {
  opacity: 1;
  border-color: var(--gold);
}

.shop-dots {
  display: flex;
  gap: 6px;
  margin: 0;
  max-width: min(100%, 640px);
  overflow-x: auto;
  flex: 0 0 auto;
}

.shop-dots[hidden] { display: none; }

.shop-dots img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: cover;
  opacity: 0.55;
  cursor: pointer;
  border: 1px solid transparent;
}

.shop-dots img.is-on {
  opacity: 1;
  border-color: var(--gold);
}

.section-rail .leaf img.leaf-photo,
.section-rail .leaf > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-rail .micro img {
  width: 34px;
  height: 34px;
}

.section-kind {
  position: relative;
  z-index: 2;
  margin: 0.15rem 0 0;
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  opacity: 0.72;
}

.section-gap {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 4.5rem 12vw;
  text-align: center;
}

.runway {
  position: relative;
  z-index: 12;
  display: grid;
  place-items: center;
  min-height: calc(72vh + 38vh);
  margin: -48vh 0 0;
  padding: 46vh 0 10vh;
  pointer-events: none;
}

.runway video {
  grid-area: 1 / 1;
  display: block;
}

/* The live gold liquid from golden-goo/, poured behind the figure. */
.runway-goo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.runway-figure {
  position: relative;
  z-index: 1;
  width: min(480px, 68vw);
  max-height: 76vh;
  height: auto;
  object-fit: cover;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #fff 22%, #fff 78%, transparent),
    linear-gradient(to bottom, transparent, #fff 14%, #fff 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #fff 22%, #fff 78%, transparent),
    linear-gradient(to bottom, transparent, #fff 14%, #fff 86%, transparent);
  mask-composite: intersect;
}

body.is-store { padding-right: 0; }
body.is-store main,
body.is-store .chapter-rail { display: none; }

/* The footer film is pulled up over the rooms. In the store that covers the last products. */
body.is-store .foot { margin-top: 0; }
body.is-store .storefront { position: relative; z-index: 4; }

.storefront {
  min-height: 100vh;
  padding: 7.2rem 4vw 4.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(235, 203, 63, 0.08), transparent 42%),
    var(--tide);
}

.storefront[hidden] { display: none; }

.store-head { text-align: center; }

.store-head h2 {
  font-family: var(--didot-headline);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.store-sort {
  margin: 1.3rem 0 1.7rem;
}

.store-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.store-collections {
  margin-top: 0.55rem;
}

.store-collections[hidden] { display: none; }

.store-collections button {
  border-color: rgba(235, 203, 63, 0.22);
  color: rgba(246, 241, 232, 0.72);
}

.store-filters button {
  border: 1px solid rgba(235, 203, 63, 0.35);
  background: transparent;
  color: var(--pearl);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.42rem 0.72rem;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.store-filters button.is-on,
.store-filters button:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(235, 203, 63, 0.28);
}

.store-gap {
  margin: 0 0 1.4rem;
  text-align: center;
  color: rgba(246, 241, 232, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
}

.store-gap[hidden] { display: none; }

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 1.35rem 0.9rem;
}

.store-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.store-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(246, 241, 232, 0.03);
  overflow: hidden;
  cursor: pointer;
}

.store-shot img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.store-card.is-plate .store-shot img {
  border-radius: 10px;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #fff 5px, #fff calc(100% - 5px), transparent),
    linear-gradient(to bottom, transparent, #fff 5px, #fff calc(100% - 5px), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #fff 5px, #fff calc(100% - 5px), transparent),
    linear-gradient(to bottom, transparent, #fff 5px, #fff calc(100% - 5px), transparent);
  mask-composite: intersect;
}

.store-name {
  margin: 0.55rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.2;
}

.store-meta,
.store-price {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.store-card .card-buy { align-self: flex-start; }

@media (max-width: 640px) {
  /* Three views have to share one row with the wordmark, menu, and bag. */
  .view-toggle-btn { padding: 0.5rem 0.42rem; font-size: 0.58rem; letter-spacing: 0.06em; }
  .nav-tools { gap: 0.45rem; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .view-toggle-btn { padding: 0.5rem 0.32rem; letter-spacing: 0.04em; }
}

/* Canvas: the whole collection as cutouts on one pale surface, zoomed like a map.
   The surface is pearl, not tide, so dark chains and black leather still read. */
body.is-canvas { padding-right: 0; overflow: hidden; }
body.is-canvas main,
body.is-canvas .chapter-rail,
body.is-canvas .foot { display: none; }

body.is-canvas .nav {
  background: rgba(10, 14, 16, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(235, 203, 63, 0.18);
}

.canvas-view {
  --cv-ink: #14110e;
  --cv-bronze: #775c12;
  --cv-paper: rgba(251, 248, 242, 0.88);
  position: fixed;
  inset: 0;
  z-index: 8;
  background: radial-gradient(ellipse at 50% 40%, #fbf8f2 0%, #f4eee2 60%, #e9dfcd 100%);
  color: var(--cv-ink);
}

.canvas-view[hidden] { display: none; }

.cv-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  --cv-dot: 40px;
  --cv-dot-x: 0px;
  --cv-dot-y: 0px;
  background-image: radial-gradient(
    circle,
    rgba(255, 248, 220, 0.95) 0.15px,
    #EBCB3F 0.35px,
    rgba(235, 203, 63, 0.32) 0.7px,
    transparent 1.15px
  );
  background-size: var(--cv-dot) var(--cv-dot);
  background-position: var(--cv-dot-x) var(--cv-dot-y);
  background-repeat: repeat;
}

.cv-map::before,
.cv-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
}

.cv-map::before {
  background-image: radial-gradient(
    circle,
    rgba(255, 252, 236, 0.9) 0.12px,
    rgba(255, 214, 120, 0.5) 0.45px,
    transparent 1.05px
  );
  background-size: calc(var(--cv-dot) * 2) calc(var(--cv-dot) * 2);
  background-position: var(--cv-dot-x) var(--cv-dot-y);
  animation: cv-spark 3.6s ease-in-out infinite;
}

.cv-map::after {
  background-image:
    radial-gradient(circle, #fff 0.12px, rgba(255, 226, 150, 0.7) 0.35px, transparent 0.8px),
    radial-gradient(circle, rgba(255, 246, 214, 0.85) 0.12px, rgba(235, 203, 63, 0.4) 0.45px, transparent 1px);
  background-size:
    calc(var(--cv-dot) * 4) calc(var(--cv-dot) * 4),
    calc(var(--cv-dot) * 2) calc(var(--cv-dot) * 2);
  background-position:
    calc(var(--cv-dot-x) + var(--cv-dot)) calc(var(--cv-dot-y) + var(--cv-dot) * 0.5),
    calc(var(--cv-dot-x) + var(--cv-dot)) calc(var(--cv-dot-y) + var(--cv-dot));
  animation: cv-spark 2.4s ease-in-out infinite;
  animation-delay: -0.9s;
}

@keyframes cv-spark {
  0%, 100% { opacity: 0.22; }
  42% { opacity: 1; }
  64% { opacity: 0.48; }
}

.cv-map.is-dragging { cursor: grabbing; }
.cv-map:focus { outline: none; }
.cv-map:focus-visible { outline: 2px solid var(--cv-bronze); outline-offset: -6px; }

.cv-world {
  --cv-k: 1;
  --cv-label: 34;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.canvas-view.is-ready .cv-world { opacity: 1; }

.cv-room {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 0.45em;
  padding-bottom: 0.42em;
  font-size: calc(var(--cv-label) * 1px);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.cv-room-name {
  font-family: var(--didot-headline);
  font-style: italic;
  letter-spacing: -0.01em;
}

.cv-room-count {
  padding-bottom: 0.3em;
  font-size: max(0.4em, calc(10px / var(--cv-k)));
  letter-spacing: 0.18em;
  color: var(--cv-bronze);
}

.cv-piece {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-image: var(--cv-atlas);
  background-repeat: no-repeat;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.cv-piece.is-sharp,
.cv-piece.is-plain { background-image: none; }

.cv-piece img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  visibility: hidden;
}

.cv-piece.is-sharp img,
.cv-piece.is-plain img { visibility: visible; }

.cv-piece.is-plain img {
  object-fit: contain;
  border-radius: 8px;
}

.cv-piece:hover,
.cv-piece:focus-visible {
  z-index: 2;
  transform: scale(1.1);
  filter: drop-shadow(0 5px 6px rgba(20, 17, 14, 0.32));
}

.cv-piece:focus { outline: none; }

.cv-piece:focus-visible {
  outline: calc(2px / var(--cv-k)) solid var(--cv-bronze);
  outline-offset: calc(5px / var(--cv-k));
}

.cv-map.is-dragging .cv-piece { cursor: grabbing; }

/* Names and prices appear once you are close, the way street names do. */
.cv-tag {
  display: none;
  position: absolute;
  left: 50%;
  width: 112px;
  padding-top: calc(5px / var(--cv-k));
  transform: translateX(-50%);
  font-size: calc(11px / var(--cv-k));
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}

.cv-world.is-near .cv-tag { display: block; }

.cv-tag-name,
.cv-tag-meta {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cv-tag-name {
  font-family: var(--serif);
  font-size: 1.2em;
}

.cv-tag-meta {
  font-size: 0.86em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cv-bronze);
}

/* The room buttons come before the surface in the page, so the keyboard reaches
   them first. They still have to sit above it. */
.cv-top,
.cv-caption,
.cv-zoom { z-index: 2; }

.cv-top {
  position: absolute;
  top: var(--cv-nav, 5rem);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem clamp(0.75rem, 2.5vw, 2rem) 1.2rem;
  text-align: center;
  /* Pieces slide under this strip when the surface is moved. */
  background: linear-gradient(to bottom, rgba(249, 245, 236, 0.98) 0%, rgba(249, 245, 236, 0.98) 72%, rgba(249, 245, 236, 0) 100%);
  pointer-events: none;
}

.cv-count {
  width: 100%;
  margin: 0;
  font-size: clamp(0.62rem, 1.15vw, 0.72rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  white-space: pre;
  color: var(--cv-bronze);
}

.cv-nav-cols {
  --cv-chip: 1;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: calc(0.38rem * var(--cv-chip));
  width: 100%;
  min-width: 0;
  margin: 0;
  pointer-events: auto;
}

.cv-nav-cols.is-line { flex-wrap: nowrap; }

/* The groups stay in the markup. The buttons share one centered wrap,
   so Gold and Silver sit on the last room row when there is room. */
.cv-rooms,
.cv-metal { display: contents; }

.cv-rooms button,
.cv-metal button {
  flex: 0 0 auto;
  border: 1px solid rgba(20, 17, 14, 0.22);
  background: var(--cv-paper);
  backdrop-filter: blur(8px);
  color: var(--cv-ink);
  font: inherit;
  font-size: calc(0.62rem * var(--cv-chip));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: calc(0.42rem * var(--cv-chip)) calc(0.68rem * var(--cv-chip));
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cv-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(20, 17, 14, 0.62);
  pointer-events: none;
}

.cv-rooms button.is-on,
.cv-rooms button:hover,
.cv-rooms button:focus-visible,
.cv-metal button.is-on,
.cv-metal button:hover,
.cv-metal button:focus-visible {
  border-color: var(--cv-ink);
  background: var(--cv-ink);
  color: var(--pearl);
}

.cv-caption {
  position: absolute;
  left: clamp(1rem, 4vw, 4vw);
  bottom: 1.15rem;
  max-width: calc(100% - 11rem - clamp(1rem, 4vw, 4vw));
  margin: 0;
  padding: 0.55rem 0.8rem;
  background: var(--cv-paper);
  backdrop-filter: blur(8px);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: pre-wrap;
  color: rgba(20, 17, 14, 0.66);
  pointer-events: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.cv-caption.is-piece {
  background: var(--cv-ink);
  color: var(--pearl);
}

.cv-caption-text {
  margin: 0;
}

.cv-piece-metals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
  pointer-events: auto;
}

.cv-piece-metals[hidden] { display: none; }

.cv-piece-metals button {
  pointer-events: auto;
  border: 1px solid rgba(246, 241, 232, 0.45);
  background: transparent;
  color: var(--pearl);
  font: inherit;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  cursor: pointer;
}

.cv-piece-metals button.is-on,
.cv-piece-metals button:hover,
.cv-piece-metals button:focus-visible {
  background: var(--pearl);
  color: var(--cv-ink);
}

.cv-zoom {
  position: absolute;
  right: clamp(1rem, 4vw, 4vw);
  bottom: 1.1rem;
  display: flex;
  border: 1px solid rgba(20, 17, 14, 0.25);
  background: var(--cv-paper);
  backdrop-filter: blur(8px);
}

.cv-zoom button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cv-ink);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.cv-zoom button + button { border-left: 1px solid rgba(20, 17, 14, 0.16); }

.cv-zoom button:hover,
.cv-zoom button:focus-visible {
  background: var(--cv-ink);
  color: var(--pearl);
}

.cv-zoom svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

@media (max-width: 760px) {
  .cv-top {
    gap: 0.45rem;
    padding-top: 0.55rem;
    padding-bottom: 1rem;
  }
  .cv-count { letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
  .cv-world, .cv-piece { transition: none; }
}

/* Instagram — Sensei framework, Covet voice */
.instagram-section {
  position: relative;
  z-index: 4;
  padding: calc(6.5rem + var(--seam)) 7vw calc(5.5rem + var(--seam));
  background: #090d10;
  overflow: hidden;
}

.ig-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* The shoreline behind the feed, at seventy percent over the dark ground. */
.ig-film { opacity: 0.7; }

.ig-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.ig-head {
  text-align: center;
  margin-bottom: 2.4rem;
}

.ig-lede {
  margin: 0.55rem auto 0;
  max-width: 28rem;
  color: rgba(246, 241, 232, 0.72);
}

.ig-lede a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(235, 203, 63, 0.35);
  transition: border-color 0.25s ease;
}

.ig-lede a:hover,
.ig-lede a:focus-visible {
  border-bottom-color: var(--gold);
}

.ig-widget {
  width: 100%;
}

.ig-widget-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ig-widget-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.ig-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.ig-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(235, 203, 63, 0.95), rgba(235, 203, 63, 0.35));
  box-shadow: 0 0 18px rgba(235, 203, 63, 0.28);
}

.instagram-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #090d10;
  background: #14110e;
}

.ig-handle {
  display: block;
  color: var(--pearl);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.ig-handle:hover,
.ig-handle:focus-visible {
  color: var(--gold);
}

.instagram-stats {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.48);
}

.ig-follow {
  margin-top: 0;
  padding: 0.65rem 1.05rem;
  flex-shrink: 0;
  border-color: rgba(235, 203, 63, 0.7);
  color: var(--gold);
  text-shadow: 0 0 12px rgba(235, 203, 63, 0.35);
  box-shadow: 0 0 14px rgba(235, 203, 63, 0.18);
  transition:
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    text-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.ig-follow:hover,
.ig-follow:focus-visible {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  text-shadow: none;
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 0 18px rgba(235, 203, 63, 0.55),
    0 0 36px rgba(235, 203, 63, 0.32),
    0 10px 22px rgba(0, 0, 0, 0.28);
  animation: ig-follow-glow 1.4s ease-in-out infinite;
}

.ig-follow:active,
.ig-follow.is-struck {
  background: var(--gold);
  color: var(--ink);
  border-color: #f5e08a;
  text-shadow: none;
  animation: ig-follow-bounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ig-follow-glow {
  0%, 100% {
    box-shadow:
      0 0 16px rgba(235, 203, 63, 0.45),
      0 0 28px rgba(235, 203, 63, 0.22),
      0 10px 22px rgba(0, 0, 0, 0.28);
  }
  50% {
    box-shadow:
      0 0 26px rgba(255, 230, 120, 0.75),
      0 0 48px rgba(235, 203, 63, 0.45),
      0 12px 24px rgba(0, 0, 0, 0.28);
  }
}

@keyframes ig-follow-bounce {
  0% { transform: scale(1); box-shadow: 0 0 14px rgba(235, 203, 63, 0.3); }
  35% {
    transform: translateY(-6px) scale(1.1);
    box-shadow:
      0 0 28px rgba(255, 236, 150, 0.9),
      0 0 56px rgba(235, 203, 63, 0.55),
      0 14px 26px rgba(0, 0, 0, 0.3);
  }
  60% { transform: translateY(-1px) scale(0.98); }
  100% {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
      0 0 20px rgba(235, 203, 63, 0.55),
      0 0 40px rgba(235, 203, 63, 0.32),
      0 10px 22px rgba(0, 0, 0, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ig-follow:hover,
  .ig-follow:focus-visible,
  .ig-follow:active,
  .ig-follow.is-struck {
    animation: none;
    transform: none;
  }
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.instagram-tile {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: #0d0a07;
  border: 1px solid rgba(235, 203, 63, 0.18);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.instagram-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}

.instagram-tile:hover,
.instagram-tile:focus-visible {
  border-color: rgba(235, 203, 63, 0.72);
  box-shadow: 0 12px 32px rgba(235, 203, 63, 0.12);
}

.instagram-tile:hover img,
.instagram-tile:focus-visible img {
  transform: scale(1.04);
}

.instagram-tile[data-video="true"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(9, 13, 16, 0.52);
  border: 1.5px solid rgba(246, 241, 232, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.instagram-tile[data-video="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-32%, -50%);
  pointer-events: none;
  z-index: 3;
}

.instagram-tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 0.9rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(246, 241, 232, 0.95);
  background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 16, 0.9) 68%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.instagram-tile:hover .instagram-tile-cap,
.instagram-tile:focus-visible .instagram-tile-cap {
  opacity: 1;
  transform: translateY(0);
}

.ig-widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.15rem 0 0;
}

.ig-widget-foot-note {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.42);
}

.ig-widget-foot-link {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.ig-widget-foot-link:hover,
.ig-widget-foot-link:focus-visible {
  color: var(--pearl);
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .instagram-section {
    padding: calc(4.5rem + var(--seam)) 5vw calc(4rem + var(--seam));
  }

  .ig-widget-bar {
    flex-wrap: wrap;
  }

  .instagram-grid {
    display: flex;
    grid-template-columns: none;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .instagram-tile {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
}

@media (hover: none) {
  .instagram-tile-cap {
    opacity: 1;
    transform: none;
    padding-top: 1.4rem;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 16, 0.85) 75%);
  }

  .instagram-tile img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-tile,
  .instagram-tile img,
  .instagram-tile-cap,
  .ig-widget-foot-link {
    transition: none;
  }

  .instagram-tile:hover img,
  .instagram-tile:focus-visible img {
    transform: none;
  }
}

.foot {
  position: relative;
  z-index: 3;
  overflow: hidden;
  min-height: clamp(520px, 88vh, 940px);
  display: grid;
  align-items: end;
  padding: 3.5rem 7vw 2.5rem;
  background: #090d10;
  text-align: center;
}

/* The year on the gondola plays over the still photograph, which stays as the fallback. */
.foot .plate {
  position: absolute;
  inset: 0;
  animation: none;
}

.foot-film { object-position: center 38%; }

.foot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(9, 13, 16, 0.7) 76%, #090d10 100%);
  pointer-events: none;
}

.foot-copy {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .foot {
    min-height: 0;
    padding-top: 76vw;
  }

  .foot .plate {
    inset: 0 0 auto;
    height: 86vw;
    background-position: 22% 40%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  }

  .foot-film { object-position: 22% 40%; }

  .foot::after { display: none; }
}

.foot .brand {
  height: 150px;
  width: auto;
  margin: 0 auto 0.8rem;
  filter:
    drop-shadow(0 0 10px rgba(235, 203, 63, 0.5))
    drop-shadow(0 0 28px rgba(235, 203, 63, 0.32));
}

.foot p {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(235, 203, 63, 0.34);
}

.fine {
  font-size: 0.85rem;
}

.studio-credit {
  display: inline-block;
  margin-top: 1.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--gold);
  opacity: 0.72;
  transition:
    opacity 0.35s ease,
    text-shadow 0.35s ease,
    transform 0.35s ease,
    filter 0.35s ease;
}

.studio-credit:hover,
.studio-credit:focus-visible {
  opacity: 1;
  text-shadow:
    0 0 10px rgba(235, 203, 63, 0.55),
    0 0 24px rgba(235, 203, 63, 0.35);
  animation: studio-shimmer 1.6s ease-in-out infinite;
}

.studio-credit:active,
.studio-credit.is-struck {
  opacity: 1;
  transform: scale(1.04);
  animation: studio-strike 0.55s ease-out;
}

@keyframes studio-shimmer {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(235, 203, 63, 0.35),
      0 0 18px rgba(235, 203, 63, 0.18);
    filter: brightness(1);
  }
  50% {
    text-shadow:
      0 0 14px rgba(235, 203, 63, 0.7),
      0 0 32px rgba(235, 203, 63, 0.42);
    filter: brightness(1.18);
  }
}

@keyframes studio-strike {
  0% {
    text-shadow:
      0 0 6px rgba(235, 203, 63, 0.3);
    filter: brightness(1);
    transform: scale(1);
  }
  35% {
    text-shadow:
      0 0 18px rgba(255, 230, 150, 0.95),
      0 0 40px rgba(235, 203, 63, 0.7);
    filter: brightness(1.35);
    transform: scale(1.06);
  }
  100% {
    text-shadow:
      0 0 10px rgba(235, 203, 63, 0.45),
      0 0 22px rgba(235, 203, 63, 0.28);
    filter: brightness(1.08);
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-credit:hover,
  .studio-credit:focus-visible,
  .studio-credit:active,
  .studio-credit.is-struck {
    animation: none;
  }
}

@keyframes ken {
  from { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
  to { transform: scale(1.16) translate3d(2.5%, 2%, 0); }
}

@keyframes ken-soft {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}

@keyframes edit-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}

@keyframes edit-lift {
  from { transform: translateY(10px) scale(0.98); }
  to { transform: translateY(-8px) scale(1); }
}

@keyframes edit-dwell {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes edit-caption {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes covet-gold {
  0%, 100% {
    filter:
      drop-shadow(0 16px 18px rgba(0, 0, 0, 0.35))
      drop-shadow(0 0 8px rgba(235, 203, 63, 0.22));
  }
  50% {
    filter:
      drop-shadow(0 16px 18px rgba(0, 0, 0, 0.35))
      drop-shadow(0 0 12px rgba(235, 203, 63, 0.62))
      drop-shadow(0 0 34px rgba(235, 203, 63, 0.32));
  }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}

@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: grid; }
  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 0.35rem 1.2rem 1rem;
    background: #0c1216;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(235, 203, 63, 0.28);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }
  .nav.is-open .nav-panel {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  .nav nav a {
    font-size: 0.92rem;
    letter-spacing: 0.2em;
    padding: 0.7rem 0;
    opacity: 0;
    transform: translateY(-6px);
  }
  .nav.is-open nav a {
    opacity: 1;
    transform: none;
  }
  .nav.is-open nav a:nth-child(1) { transition-delay: 0.04s; }
  .nav.is-open nav a:nth-child(2) { transition-delay: 0.08s; }
  .nav.is-open nav a:nth-child(3) { transition-delay: 0.12s; }
  .nav.is-open nav a:nth-child(4) { transition-delay: 0.16s; }
  .nav.is-open nav a:nth-child(5) { transition-delay: 0.2s; }
  .nav.is-open nav a:nth-child(6) { transition-delay: 0.24s; }
  .hero-grid { padding: 6.5rem 1.25rem 3.5rem; }
  .edit-stage {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 6.2rem 1.25rem 1.6rem;
  }
  .edit-slides,
  .edit-foot,
  .edit-copy {
    grid-column: 1;
    grid-row: auto;
  }
  .edit-slides {
    width: min(100%, calc(min(58vh, 640px) * var(--frame, 0.62)));
    max-height: min(58vh, 640px);
    height: auto;
  }
  .edit-copy { max-width: none; padding-top: 0.4rem; }
  .edit-arrow { opacity: 0.85; }
  .jewel[data-shape="tall"] { width: 108px; height: 180px; }
  .jewel[data-shape="wide"] { width: 160px; height: 100px; }
  .jewel[data-shape="collar"] { width: 210px; height: 196px; }
  .jewel[data-shape="square"] { width: 172px; height: 126px; }
  .jewel[data-shape="bar"] { width: 210px; height: 64px; }
  .jewel[data-shape="small"] { width: 90px; height: 120px; }
  .leaf { height: 58vh; }
  .press-rail { gap: 0.9rem; }
}

.glint {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--lx) var(--ly), rgba(235, 203, 63, 0.34), transparent 68%);
  mix-blend-mode: soft-light;
}

.cursor-ring {
  position: fixed;
  z-index: 90;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid rgba(235, 203, 63, 0.95);
  box-shadow: 0 0 18px rgba(235, 203, 63, 0.55), inset 0 0 10px rgba(235, 203, 63, 0.45);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cursor-ring.is-on { opacity: 1; }
.cursor-ring[hidden] { display: none; }

@media (pointer: coarse) {
  .cursor-ring { display: none; }
  .edit-arrow { opacity: 0.85; }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

html[data-hour="morning"] body::after {
  background: rgba(246, 236, 214, 0.2);
  mix-blend-mode: soft-light;
}

html[data-hour="golden"] body::after {
  background: rgba(214, 122, 36, 0.34);
  mix-blend-mode: soft-light;
}

html[data-hour="night"] body::after {
  background: rgba(3, 8, 18, 0.42);
  mix-blend-mode: multiply;
}

.look {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 4.5rem 4vw 2rem;
  border: 0;
  background: #07090b;
  color: var(--pearl);
}

.look:not([open]) { display: none; }

.look[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.look::backdrop { background: transparent; }

.shop {
  width: min(920px, 92vw);
  max-height: 100vh;
  max-height: 100dvh;
  margin: auto;
  padding: 3.2rem 1.6rem 1.4rem;
  border: 1px solid rgba(235, 203, 63, 0.35);
  background: #0c1216;
  color: var(--pearl);
  overflow: hidden;
  box-sizing: border-box;
}

.shop:not([open]) { display: none; }

.shop[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  height: 100dvh;
  max-height: 100dvh;
}

.shop::backdrop { background: rgba(5, 7, 9, 0.72); }

.shop-stage {
  position: relative;
  width: min(100%, 640px);
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.shop-stage img {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.shop-flip {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 1px solid rgba(235, 203, 63, 0.7);
  border-radius: 50%;
  background: rgba(12, 18, 22, 0.72);
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.shop-flip.prev { left: 0.4rem; }
.shop-flip.next { right: 0.4rem; }
.shop-flip[hidden] { display: none; }

/* Piece to piece, only when the dialog was opened from the canvas.
   Kept under the photograph so the jewel stays clear. Photo arrows stay on the image. */
.shop-walk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 640px);
  flex: 0 0 auto;
}

.shop-walk[hidden] { display: none; }

.shop-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(235, 203, 63, 0.75);
  background: transparent;
  color: var(--pearl);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.shop-step span {
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
}

.shop-step:hover,
.shop-step:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #14110e;
}

.shop-step:disabled,
.shop-step:disabled:hover,
.shop-step:disabled:focus-visible {
  opacity: 0.32;
  background: transparent;
  border-color: rgba(235, 203, 63, 0.28);
  color: var(--pearl);
  cursor: default;
}

.shop-foot {
  flex: 0 0 auto;
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding-top: 0.35rem;
  background: #0c1216;
}

.shop-foot .enter { margin-top: 0; }

.shop-variants {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 0.7rem;
  width: min(100%, 640px);
  max-height: min(38vh, 280px);
  margin: 0;
  overflow: auto;
}

.shop-variant-group {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.shop-variants[hidden] { display: none; }

.shop-variant-label {
  margin: 0.35rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.shop-variant-label:first-child { margin-top: 0; }

.shop-variant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  border: 1px solid rgba(235, 203, 63, 0.45);
  background: transparent;
  color: var(--pearl);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
}

.shop-variant.is-on,
.shop-variant:hover,
.shop-variant:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1408;
}

.look-close {
  z-index: 40;
}

.shop-kicker {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold);
}

.shop-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
}

.shop-place {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--pearl);
}

.shop-place[hidden] { display: none; }

.shop-story {
  width: min(100%, 640px);
  max-height: 7.4rem;
  overflow: auto;
  flex: 0 0 auto;
  text-align: center;
}

.shop-story[hidden] { display: none; }

.shop-category,
.shop-form {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.shop-form { margin-top: 0.2rem; }

.shop-copy {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--pearl);
}

.shop-dots {
  display: flex;
  gap: 0.4rem;
  margin: 0;
}

.shop-dots[hidden] { display: none; }

.shop-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 241, 232, 0.35);
}

.shop-dots button.is-on { background: var(--gold); }

.shop-price {
  margin: 0.2rem 0 0;
  letter-spacing: 0.08em;
}

.shop-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--gold);
}

.shop-note[hidden] { display: none; }

.look-close {
  position: absolute;
  top: 1.2rem;
  right: 4vw;
  z-index: 40;
  background: #07090b;
  border: 1px solid rgba(246, 241, 232, 0.45);
  color: var(--pearl);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.look-kicker {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.look-stage {
  position: relative;
  line-height: 0;
  max-height: calc(100dvh - 11rem);
  overflow: hidden;
}

.look-stage img {
  max-width: min(92vw, 980px);
  max-height: calc(100dvh - 11rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  cursor: none;
}

.loupe {
  position: fixed;
  width: 172px;
  height: 172px;
  margin: -86px 0 0 -86px;
  border-radius: 50%;
  border: 1px solid rgba(235, 203, 63, 0.85);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  background-repeat: no-repeat;
  pointer-events: none;
}

.look-hint {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.66rem;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate, .jewel img, .logo-feather, .logo-word, .recent-card, .recent-row,
  .edit-slide img, .cv-map::before, .cv-map::after { animation: none; }
  .cv-map::before, .cv-map::after { opacity: 0.7; }
  .edit-stage.is-playing .edit-meter span { animation: none; transform: scaleX(1); }
  .glint { display: none; }
}

:root { --rail-gutter: 0px; }
@media (min-width: 880px) { :root { --rail-gutter: 52px; } }

body { padding-right: var(--rail-gutter); }

.chapter-rail {
  position: fixed;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.45rem;
  border-radius: 28px;
  background: transparent;
  border: 1px solid rgba(235, 203, 63, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 0 0 0.5px rgba(235, 203, 63, 0.08);
  opacity: 0;
  overflow: visible;
  isolation: isolate;
  transition: opacity 0.5s ease, border-color 0.4s ease;
}

.chapter-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(8, 12, 14, 0.62);
  backdrop-filter: blur(22px) saturate(1.3);
  z-index: -1;
  pointer-events: none;
}

.chapter-rail.is-visible { opacity: 1; }
.chapter-rail:hover { border-color: rgba(235, 203, 63, 0.4); }

@media (min-width: 880px) {
  .chapter-rail { display: flex; }
  .nav { padding-right: calc(clamp(1rem, 4vw, 4vw) + var(--rail-gutter)); }
}

.chapter-rail-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0.65rem;
  bottom: 0.65rem;
  width: 10px;
  z-index: 0;
  pointer-events: none;
}

.chapter-rail-progress-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(235, 203, 63, 0.12), rgba(235, 203, 63, 0.42) 8%, rgba(235, 203, 63, 0.42) 92%, rgba(235, 203, 63, 0.12));
  box-shadow: 0 0 6px rgba(235, 203, 63, 0.18);
}

.chapter-rail-progress-bar {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(235, 203, 63, 0.2), #EBCB3F 18%, var(--gold) 72%, #EBCB3F);
  box-shadow: 0 0 6px rgba(235, 203, 63, 0.7), 0 0 14px rgba(235, 203, 63, 0.45);
  overflow: hidden;
}

.chapter-rail-progress-bar::after {
  content: "";
  position: absolute;
  inset: -40% -6px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 220, 0.55) 42%, transparent 70%);
  animation: rail-energy-flow 2.4s linear infinite;
}

.chapter-rail-progress-ember {
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F3E5AB 0%, #EBCB3F 38%, #EBCB3F 72%, transparent 76%);
  box-shadow: 0 0 8px 2px rgba(235, 203, 63, 0.85), 0 0 18px 4px rgba(235, 203, 63, 0.45);
  opacity: 0;
}

.chapter-rail.is-visible .chapter-rail-progress-ember { opacity: 1; }

.chapter-rail-btn.is-reached .chapter-rail-dot { background: rgba(235, 203, 63, 0.75); }

.chapter-rail-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}

.chapter-rail-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.chapter-rail-ring svg { width: 100%; height: 100%; }

.chapter-rail-ring circle {
  fill: none;
  stroke: rgba(235, 203, 63, 0.32);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 0 69.12;
  transition: stroke-dasharray 0.55s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.35s ease, filter 0.35s ease;
}

.chapter-rail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(235, 203, 63, 0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.chapter-rail-label {
  position: absolute;
  right: calc(100% + 0.7rem);
  top: 50%;
  transform: translateY(-50%) translateX(8px) scale(0.92);
  background: rgba(8, 12, 14, 0.94);
  border: 1px solid rgba(235, 203, 63, 0.28);
  color: var(--pearl);
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chapter-rail-label::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: rgba(8, 12, 14, 0.94);
  border-right: 1px solid rgba(235, 203, 63, 0.28);
  border-bottom: 1px solid rgba(235, 203, 63, 0.28);
}

.chapter-rail-btn:hover .chapter-rail-label,
.chapter-rail-btn:focus-visible .chapter-rail-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

.chapter-rail-btn:hover .chapter-rail-dot,
.chapter-rail-btn:focus-visible .chapter-rail-dot {
  transform: scale(1.4);
  background: rgba(235, 203, 63, 0.7);
}

.chapter-rail-btn:hover .chapter-rail-ring circle,
.chapter-rail-btn:focus-visible .chapter-rail-ring circle,
.chapter-rail-btn.is-active .chapter-rail-ring circle {
  stroke: #EBCB3F;
  filter: drop-shadow(0 0 6px rgba(235, 203, 63, 0.45));
}

.chapter-rail-btn.is-active .chapter-rail-dot {
  background: #EBCB3F;
  box-shadow: 0 0 10px rgba(235, 203, 63, 0.55), 0 0 24px rgba(235, 203, 63, 0.25);
  transform: scale(1.15);
}

@media (prefers-reduced-motion: no-preference) {
  .chapter-rail.is-visible { animation: rail-fade-in 0.7s ease both; }
  .chapter-rail-btn { animation: rail-btn-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .chapter-rail-btn.is-active .chapter-rail-dot { animation: rail-dot-pulse 2.8s ease-in-out infinite; }
  .chapter-rail-progress-bar { transition: height 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
  .chapter-rail-progress-ember {
    transition: top 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    animation: rail-ember-breathe 1.8s ease-in-out infinite;
  }
}

@keyframes rail-fade-in {
  from { opacity: 0; transform: translateY(-50%) translateX(12px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes rail-btn-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rail-dot-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(235, 203, 63, 0.5), 0 0 24px rgba(235, 203, 63, 0.2); }
  50% { box-shadow: 0 0 16px rgba(235, 203, 63, 0.75), 0 0 36px rgba(235, 203, 63, 0.35); }
}

@keyframes rail-energy-flow {
  from { transform: translateY(-30%); }
  to { transform: translateY(70%); }
}

@keyframes rail-ember-breathe {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.28); }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-rail-progress-bar,
  .chapter-rail-progress-ember,
  .chapter-rail-dot,
  .chapter-rail-ring circle,
  .chapter-rail-label,
  .chapter-rail-btn { animation: none; transition: none; }
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--tide);
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: opacity 0.7s ease;
}

.veil.is-gone { opacity: 0; pointer-events: none; }

.visit-address {
  font-style: normal;
  display: grid;
  gap: 0.35rem;
  margin: 1.2rem 0 0;
}

.visit-address a { color: var(--gold); }

.visit-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.3rem;
  max-width: 24rem;
}

.visit-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visit-form input,
.visit-form textarea {
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  color: var(--pearl);
  background: rgba(12, 20, 24, 0.45);
  border: 1px solid rgba(246, 241, 232, 0.35);
  padding: 0.7rem 0.8rem;
}

.visit-form textarea { min-height: 7rem; resize: vertical; }

.visit-list {
  margin-top: 2.4rem;
  max-width: 24rem;
}

.visit-list-line {
  margin: 0.35rem 0 0.85rem;
  color: rgba(246, 241, 232, 0.86);
}

.visit-list-row {
  display: flex;
  gap: 0.65rem;
  align-items: end;
}

.visit-list-row label {
  flex: 1;
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visit-list-row input {
  width: 100%;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  color: var(--pearl);
  background: rgba(12, 20, 24, 0.45);
  border: 1px solid rgba(246, 241, 232, 0.35);
  padding: 0.7rem 0.8rem;
}

.visit-list-row input::placeholder { color: rgba(246, 241, 232, 0.45); }

.visit-list-row .enter { margin-top: 0; }

.visit-list-done {
  margin: 0.85rem 0 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.form-error { color: var(--blush); margin: 0; }

.enter:disabled { opacity: 0.65; }

.mobile-cta { display: none; }

.sheet {
  min-height: 100vh;
  padding: 2.5rem 6vw 6rem;
  max-width: 48rem;
}

.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.sheet-bar img { height: 48px; width: auto; }

.sheet-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.sheet-bar a { text-decoration: none; }

.sheet h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  margin: 0.4rem 0 1.2rem;
}

.sheet p { max-width: 38rem; }

.sheet a { color: var(--gold); }

.foot-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.foot-links a { color: var(--gold); text-decoration: none; }

@media (max-width: 720px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 28;
    justify-content: center;
    align-items: center;
    min-height: 3.25rem;
    background: var(--gold);
    color: var(--ink);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.72rem;
  }

  body { padding-bottom: 3.25rem; }

  body:has(#visit-form:focus-within) .mobile-cta { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .veil { display: none; }
}
