/* Marlow Bespoke: the stepped letter menu */
:root {
  --page: #191919;            /* behind the photo, like a dark showroom */
  --on-photo: #ffffff;        /* words over the photo */
  --panel: #ffffff;           /* the menu panel */
  --ink: #000000;             /* words on the panel */
  --grey: #8a8a8a;            /* small labels on the panel */
  --line: rgba(0, 0, 0, 0.1); /* thin rules and the panel's edge */
  --veil: #000000;            /* the veil that falls on the page */
  --sans: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  --mono: "Geist Mono Variable", "Geist Mono", ui-monospace, monospace;
  --pad: clamp(14px, min(3vw, 4.2vh), 32px);
  --item: clamp(26px, min(10.5vw, 8.6vh), 92px); /* a menu link: measured on the width AND the height */
  --dot: 0.4rem;              /* the little square */
  --expo: cubic-bezier(.19, 1, .22, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--page);
  color: var(--on-photo);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.mono {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(9px, min(1.6vw, 2.3vh), 12px);
  letter-spacing: 0.09em;
  line-height: 1;
}
.ch { display: inline; }

/* ------------------------------------------------------------------ the page under the menu */
.page { position: fixed; inset: 0; overflow: hidden; background: var(--page); }
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo__move { position: absolute; inset: -2%; display: block; }
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 52%;
  opacity: 0.8;
  display: block;
}
.page__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.7) 100%);
}
.page__veil { position: absolute; inset: 0; background: var(--veil); opacity: 0; pointer-events: none; }

.hero {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) * 1.6);
  max-width: 15em;
  font-size: clamp(24px, min(6.4vw, 7.6vh), 62px);
}
.hero__kicker { margin-bottom: 1.1em; font-size: clamp(9px, min(1.6vw, 2.3vh), 12px); }
.hero__title { font-size: 1em; font-weight: 500; line-height: 0.95; letter-spacing: -0.01em; font-stretch: 100%; }
.hero__note { margin-top: 1.2em; opacity: 0.7; font-size: clamp(9px, min(1.6vw, 2.3vh), 12px); }
.caption { position: absolute; right: var(--pad); bottom: calc(var(--pad) * 1.6); opacity: 0.7; text-align: right; max-width: 14em; line-height: 1.3; }
@media (max-width: 560px) { .caption { display: none; } }

/* ------------------------------------------------------------------ the header, always on top */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: var(--pad);
  color: var(--fg, var(--on-photo));
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.logo { display: flex; flex-direction: column; gap: 0.5em; }
.logo__word {
  font-weight: 760; font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(15px, min(2.4vw, 3.4vh), 22px);
  letter-spacing: 0.04em; line-height: 0.9;
}
.logo__sub { opacity: 0.6; }

.toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0 8px 8px; margin: -8px 0 0;
  transition: transform 0.3s var(--expo);
}
.toggle:active { transform: scale(0.96); }
.toggle__lines { position: relative; width: 15px; height: 5.6px; display: block; }
.toggle__line {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 0.5s var(--expo);
}
.toggle__line:first-child { top: 0; }
.toggle__line:last-child { bottom: 0; }
@media (hover: hover) {
  html:not(.is-open) .toggle:hover .toggle__line:first-child { transform: translateY(1px); }
  html:not(.is-open) .toggle:hover .toggle__line:last-child { transform: translateY(-1px); }
}
.is-open .toggle__line:first-child { transform: translateY(2.3px) rotate(45deg); }
.is-open .toggle__line:last-child { transform: translateY(-2.3px) rotate(-45deg); }
.toggle__words { position: relative; display: block; min-width: 5ch; text-align: left; }
.toggle__w { display: block; }
.toggle__w--b { position: absolute; left: 0; top: 0; }

/* ------------------------------------------------------------------ the menu */
.menu { position: fixed; inset: 0; z-index: 5; visibility: hidden; pointer-events: none; }
.menu.is-live { pointer-events: auto; }
.menu__edge {
  position: absolute; inset: 0;
  background: var(--panel); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--pad) * 2 + clamp(26px, 4.6vh, 40px)) var(--pad) var(--pad);
  /* the edge of the panel: a hairline and a soft shadow that falls on the page while it slides */
  box-shadow: 0 -1px 0 var(--line), 0 -18px 40px -12px rgba(0, 0, 0, 0.35), 0 1px 0 var(--line), 0 18px 40px -12px rgba(0, 0, 0, 0.35);
}
.menu__body { display: grid; grid-template-columns: 1fr auto; gap: var(--pad); align-items: start; min-height: 0; }
@media (min-width: 900px) { .menu__body { grid-template-columns: 1fr 38%; } }

.menu__list { position: relative; padding-left: calc(var(--dot) + clamp(8px, 1.2vw, 16px)); }
.dot { position: absolute; left: 0; top: 0; width: var(--dot); height: var(--dot); display: block; pointer-events: none; }
.dot__in { display: block; width: 100%; height: 100%; background: var(--ink); }

.items { font-size: var(--item); }
.item {
  display: block; overflow: hidden;
  font-weight: 500; line-height: 0.95; letter-spacing: -0.01em;
  padding-bottom: 0.04em;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.item__rise { display: inline-block; }
.items.is-dim .item:not(.is-lit) { opacity: 0.15; }

.still { display: flex; flex-direction: column; gap: 10px; width: clamp(78px, min(15vw, 24vh), 216px); }
.still__frame { position: relative; display: block; aspect-ratio: 0.8; overflow: hidden; background: #e6e6e6; }
.still__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0;
}
.still__img.is-on { opacity: 1; }
.still__veil { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.still__sheen { /* a thin light on the top edge of the print */
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.still__cap { color: var(--grey); line-height: 1.3; min-height: 2.6em; }

.menu__foot { display: grid; grid-template-columns: 1fr auto; gap: var(--pad); align-items: end; }
@media (min-width: 900px) { .menu__foot { grid-template-columns: 1fr 38%; } }
.mark {
  display: flex; overflow: hidden;
  font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(22px, min(6vw, 7vh), 64px); line-height: 1; letter-spacing: 0.02em;
}
.mark__l { position: relative; display: block; overflow: hidden; height: 0.9em; }
.mark__col { position: relative; display: block; line-height: 0.9em; height: 0.9em; }
.mark__copy { display: block; height: 0.9em; }
.mark__copy--b { position: absolute; left: 0; top: 107%; }

.info { display: flex; gap: clamp(14px, 3vw, 48px); }
.info__block { display: flex; flex-direction: column; gap: 0.45em; }
.info__label { color: var(--grey); margin-bottom: 0.4em; }
.info dd { line-height: 1.15; }
@media (max-width: 560px) {
  .info { flex-direction: column; gap: 8px; }
  .info__block:first-child dd:last-child { display: none; }
}
@media (max-height: 470px) {
  .info__block:first-child { display: none; }
}
