/* Alessandro Palazzi. One Italian typeface (Bodoni), a cold palette (night, frost, pewter)
   and the only warm notes the drink has: vermouth and Amalfi lemon. */
@property --thaw { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

:root {
  --night: #070b10;
  --frost: #e8edf0;
  --pewter: #8d99a3;
  --vermouth: #c98f3c;
  --amalfi: #f2cf2e;
  --text: rgb(232 237 240 / 0.84);
  --rule: rgb(232 237 240 / 0.16);
  --gutter: clamp(1rem, 5vw, 4.5rem);
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--night);
  color: var(--text);
  font: 400 1.125rem/1.62 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body { overflow-x: clip; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--frost); }
:focus-visible { outline: 2px solid var(--amalfi); outline-offset: 4px; }
::selection { background: var(--amalfi); color: var(--night); }
h1, h2, h3 { color: var(--frost); font-weight: 400; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h3 { font-size: clamp(2.25rem, 4vw, 3.6rem); }
ol, ul { list-style: none; }
em, .note { font-style: italic; }
.note { color: var(--pewter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 30; padding: 0.6rem 1rem; background: var(--frost); color: var(--night); }
.skip:focus { top: 1rem; }

/* ---------- Header: difference blend keeps it legible on frost and on night ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: baseline; gap: 2rem;
  padding: 1.25rem var(--gutter);
  color: #e8edf0; mix-blend-mode: difference;
}
.mark { margin-right: auto; font-size: 1.35rem; font-style: italic; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 1.75rem; font-size: 0.95rem; }
.top nav a, .top .enquire { text-decoration: none; }
.top nav a:hover, .top .enquire:hover { text-decoration: underline; }
.enquire { font-style: italic; }
.menu-btn { display: none; font: inherit; font-style: italic; color: inherit; background: none; border: 0; cursor: pointer; }
.menu {
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0;
  background: var(--night); color: var(--frost); padding: 5rem var(--gutter) 2rem;
}
.menu a { display: block; font-size: 2.6rem; line-height: 1.25; text-decoration: none; }
.menu button { position: absolute; top: 1.25rem; right: var(--gutter); font: inherit; font-style: italic; color: inherit; background: none; border: 0; }
@media (max-width: 760px) {
  .top nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- The frozen glass you wipe on arrival ---------- */
.frost {
  position: fixed; inset: 0; z-index: 12; width: 100%; height: 100%;
  display: none; pointer-events: none; background: #dfe6ea;
  --thaw: 0%;
  mask-image: radial-gradient(circle at 50% 52%, transparent calc(var(--thaw) - 22%), #000 var(--thaw));
  transition: --thaw 2.6s cubic-bezier(0.55, 0, 0.35, 1);
}
.frost.painted { background: none; }
.frost.melt { --thaw: 150%; }
.chill {
  position: fixed; inset: auto 0 12vh; z-index: 13; display: none;
  text-align: center; color: var(--night); pointer-events: none; transition: opacity 0.6s;
}
.chill-temp { display: block; font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.chill-note { display: block; margin-top: 0.6rem; font-style: italic; font-size: 1.1rem; }
.chill.gone { opacity: 0; }
.brush {
  position: fixed; left: 0; top: 0; z-index: 13; display: none; pointer-events: none;
  border: 1px solid rgb(7 11 16 / 0.35); border-radius: 50%; transform: translate(-999px, -999px);
}
.js .frost, .js .chill { display: block; }
.js.wiping .brush { display: block; }
@media (prefers-reduced-motion: reduce) {
  .js .frost, .js .chill, .js.wiping .brush { display: none; }
  .cue::after { animation: none; }
  .js .beat, .rail li, .js .timeline li, .js .hero-meta { transition: none; }
}

/* ---------- Stage: the ritual, pinned over the WebGL glass ---------- */
.scene { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100lvh; }
.no-gl .scene { display: none; }
main, .foot { position: relative; z-index: 1; }
.stage { position: relative; }
.js .anchor { position: absolute; top: 14%; }
.stage-pin { position: relative; min-height: 100svh; padding: 7rem var(--gutter) 3rem; }
.js .stage { height: 600vh; }
.js .stage-pin { position: sticky; top: 0; height: 100svh; padding: 0; overflow: hidden; }

.hero-name { font-size: clamp(3.4rem, 13vw, 12rem); line-height: 0.9; }
.js .hero-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js.no-gl .hero-name { position: absolute; inset: 50% var(--gutter) auto; width: auto; height: auto; overflow: visible; clip-path: none; transform: translateY(-50%); text-align: center; white-space: normal; }
.hero-meta { margin-top: 2rem; }
.js .hero-meta {
  position: absolute; inset: auto var(--gutter) 2.25rem; margin: 0;
  display: flex; justify-content: space-between; align-items: end; gap: 2rem;
  transition: opacity 0.6s;
}
.hero-role { font-style: italic; color: var(--pewter); max-width: 22rem; line-height: 1.35; }
.cue { text-decoration: none; color: var(--frost); white-space: nowrap; }
.cue::after {
  content: ''; display: block; width: 1px; height: 2.4rem; margin: 0.6rem auto 0;
  background: linear-gradient(var(--frost), transparent);
  animation: drip 2.2s cubic-bezier(0.6, 0, 0.4, 1) infinite; transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.stage:not([data-beat="0"]) .hero-meta { opacity: 0; pointer-events: none; }

.still { display: none; }
.no-gl .still { display: block; position: absolute; left: 50%; top: 50%; height: 56svh; width: auto; transform: translate(-50%, -50%); opacity: 0.5; }

.beats { margin-top: 4rem; display: grid; gap: 3rem; }
.beat .n { display: block; font-style: italic; color: var(--vermouth); font-size: 1.1rem; margin-bottom: 0.9rem; }
.beat h2 { font-size: clamp(2.3rem, 4.4vw, 4rem); margin-bottom: 1.1rem; }
.beat p { max-width: 30ch; }
.beat .act { display: inline-block; margin-top: 1.4rem; font-style: italic; color: var(--frost); }
.js .beats { position: absolute; left: var(--gutter); bottom: clamp(2rem, 11vh, 7rem); width: min(27rem, 38vw); margin: 0; gap: 0; }
.js .beat { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translateY(1.2rem); pointer-events: none; transition: opacity 0.6s, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .beat.on, .js .beat:focus-within { opacity: 1; transform: none; pointer-events: auto; }

.rail { display: none; }
.js .rail {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 0.9rem; text-align: right; font-style: italic; transition: opacity 0.6s;
}
.rail li { color: rgb(141 153 163 / 0.45); transition: color 0.4s; }
.rail li.on { color: var(--frost); }
.stage[data-beat="0"] .rail, .stage[data-beat="5"] .rail { opacity: 0; }

@media (max-width: 760px) {
  .js .beats { left: var(--gutter); right: var(--gutter); width: auto; bottom: 2rem; }
  .beat h2 { font-size: 2.4rem; }
  .beat p { font-size: 1rem; max-width: none; }
  .js .rail { display: none; }
  .js .hero-meta { flex-direction: column; align-items: start; gap: 1.2rem; }
  .cue::after { margin-left: 0; }
}

/* ---------- Sections after the stage cover the fixed canvas ---------- */
.section { background: var(--night); padding: clamp(6rem, 14vw, 11rem) var(--gutter); border-top: 1px solid var(--rule); }
.lede { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; color: var(--frost); }

/* Story: the route draws itself as the timeline passes */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 3.5rem; }
.story-head { grid-column: 1 / 11; }
.story-head h2 { font-style: italic; letter-spacing: -0.03em; }
.story-head .note { margin-top: 1.4rem; font-size: 1.1rem; }
.story > .lede { grid-column: 1 / 6; max-width: 30ch; }
.story-body { grid-column: 7 / 13; max-width: 36rem; display: grid; gap: 1.2rem; }
.route { grid-column: 1 / 7; align-self: start; position: sticky; top: 12vh; margin-top: 2rem; }
.route svg { display: block; width: 100%; height: auto; max-height: 76vh; overflow: visible; }
.route .line { fill: none; stroke: var(--frost); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.route .ghost { fill: none; stroke: rgb(232 237 240 / 0.22); stroke-width: 1; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.route .stop circle { fill: var(--night); stroke: var(--pewter); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill 0.4s, stroke 0.4s; }
.route .stop text { fill: var(--pewter); font-family: var(--serif); font-size: 32px; font-style: italic; transition: fill 0.4s; }
.route .stop.reached circle { fill: var(--vermouth); stroke: var(--vermouth); }
.route .stop.reached text { fill: var(--frost); }
.timeline { grid-column: 7 / 13; margin-top: 2rem; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.timeline b { font-weight: 400; color: var(--frost); font-size: 1.5rem; line-height: 1.2; font-variant-numeric: lining-nums; }
.timeline span { line-height: 1.5; max-width: 32ch; }
.js .timeline li { opacity: 0.45; transition: opacity 0.5s; }
.js .timeline li.reached { opacity: 1; }
@media (max-width: 900px) {
  .story-head, .story > .lede, .story-body, .route, .timeline { grid-column: 1 / -1; }
  .route { position: static; margin-top: 0; }
  .timeline li { grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.2rem 0; }
}

/* Martinis: the trolley rolls past */
.trolley { background: var(--night); border-top: 1px solid var(--rule); }
.trolley-pin { overflow-x: auto; }
.js .trolley-pin { overflow: hidden; }
.trolley-track { display: flex; gap: clamp(3rem, 7vw, 7rem); padding: clamp(5rem, 10vw, 8rem) var(--gutter); width: max-content; }
.js .trolley-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: 3.5rem; }
.js .trolley-track { padding-block: 0; will-change: transform; }
.trolley-intro { width: min(28rem, 80vw); align-self: center; display: grid; gap: 1.5rem; }
.specimen { width: clamp(17rem, 30vw, 27rem); display: grid; align-content: start; gap: 0.9rem; }
.specimen .glass { height: clamp(8rem, 26svh, 15rem); width: auto; margin-bottom: 0.4rem; overflow: visible; }
.specimen .glass .liquid { transform: rotate(var(--slosh, 0deg)); transform-box: view-box; transform-origin: 100px 50px; }
.specimen .shelf { border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.specimen .origin { font-style: italic; color: var(--pewter); line-height: 1.4; }
.specimen .spec { font-size: 1rem; line-height: 1.55; }
.specimen .spec li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.specimen .credit { font-size: 0.95rem; color: var(--pewter); }
.specimen .credit strong { font-weight: 400; color: var(--vermouth); }
.collabs { width: min(34rem, 84vw); align-self: center; }
.collabs h3 { margin-bottom: 1.5rem; }
.collabs div { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.collabs div:first-child { border-top: 1px solid var(--rule); }
.collabs dt { color: var(--frost); font-size: 1.2rem; line-height: 1.3; }
.collabs dd { font-size: 0.98rem; line-height: 1.5; margin-top: 0.25rem; }
@media (max-width: 760px) {
  .specimen { width: 80vw; }
}
@media (max-height: 760px) {
  .specimen .origin, .specimen .spec, .collabs dd { font-size: 0.92rem; line-height: 1.45; }
  .specimen .spec li { padding: 0.25rem 0; }
}

/* Private events */
.events { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 4rem; }
.events-copy { grid-column: 1 / 7; display: grid; gap: 2rem; align-content: start; }
.events-copy > p { max-width: 36rem; }
.occasions { display: grid; border-top: 1px solid var(--rule); }
.occasions div { display: grid; grid-template-columns: minmax(9rem, 0.8fr) 1.6fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.occasions dt { color: var(--frost); font-size: 1.3rem; line-height: 1.3; }
.occasions dd { font-size: 1rem; line-height: 1.5; }
.enquiry {
  grid-column: 8 / 13; align-self: start; display: grid; gap: 1.4rem;
  padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--rule);
  background: linear-gradient(160deg, rgb(232 237 240 / 0.08), rgb(232 237 240 / 0.02));
}
.enquiry h3 { font-size: 2rem; }
.enquiry label { display: grid; gap: 0.3rem; font-style: italic; font-size: 0.95rem; color: var(--pewter); }
.enquiry .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.enquiry input, .enquiry select, .enquiry textarea {
  font: inherit; font-style: normal; font-size: 1.05rem; color: var(--frost);
  background: transparent; border: 0; border-bottom: 1px solid rgb(232 237 240 / 0.35); border-radius: 0;
  padding: 0.45rem 0; width: 100%;
}
.enquiry select option { background: var(--night); }
.enquiry textarea { resize: vertical; min-height: 5.5rem; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-bottom-color: var(--amalfi); }
.enquiry button {
  justify-self: start; font: inherit; font-size: 1.05rem; cursor: pointer;
  padding: 0.85rem 1.6rem; color: var(--night); background: var(--frost); border: 0; transition: background 0.3s;
}
.enquiry button:hover { background: var(--amalfi); }
.enquiry .note { font-size: 0.9rem; line-height: 1.45; }
@media (max-width: 900px) {
  .events-copy, .enquiry { grid-column: 1 / -1; }
  .occasions div { grid-template-columns: 1fr; gap: 0.3rem; }
}
@media (max-width: 480px) { .enquiry .pair { grid-template-columns: 1fr; } }

/* Recognition */
.press { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 3rem; }
.press h2 { grid-column: 1 / 6; }
.honours { grid-column: 6 / 13; border-top: 1px solid var(--rule); }
.honours li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.honours b { font-weight: 400; color: var(--frost); font-variant-numeric: lining-nums tabular-nums; }
.featured { grid-column: 6 / 13; }
.featured h3 { font-size: 1rem; font-style: italic; color: var(--pewter); letter-spacing: 0; }
.featured ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; margin: 1rem 0 2rem; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.3; color: var(--frost); }
.featured .note { max-width: 40rem; }
@media (max-width: 900px) { .press h2, .honours, .featured { grid-column: 1 / -1; } }

/* Footer */
.foot { background: var(--night); padding: clamp(5rem, 10vw, 8rem) var(--gutter) 2rem; border-top: 1px solid var(--rule); overflow: hidden; }
.toast { font-size: clamp(5rem, 21vw, 19rem); font-style: italic; line-height: 0.85; letter-spacing: -0.04em; color: var(--frost); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.5rem; margin-top: 4rem; font-size: 1rem; }
.foot-grid h3 { font-size: 1rem; font-style: italic; color: var(--pewter); letter-spacing: 0; margin-bottom: 0.6rem; }
.foot-grid address { font-style: normal; }
.share { font: inherit; color: var(--frost); background: none; border: 1px solid var(--rule); padding: 0.55rem 1.1rem; cursor: pointer; }
.share:hover { border-color: var(--frost); }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 5rem; font-size: 0.85rem; color: var(--pewter); }

/* Phones: the 12-column grids collapse to one column (their gaps alone would overflow) */
@media (max-width: 900px) { .story, .events, .press { grid-template-columns: minmax(0, 1fr); } }

/* Poster mode renders the social share image */
.poster .top, .poster main > :not(.stage), .poster .foot, .poster .frost, .poster .chill, .poster .hero-meta, .poster .beats, .poster .rail { display: none !important; }
