/* The two faces, served from the site itself (SIL Open Font Licence). */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/marcellus-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/marcellus-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   Banou Gin — single page site
   Palette source: Banou_colours_01.ai (CMYK → sRGB conversions, see README)
   ========================================================================== */

:root {
  --ground: #FDFDF1;   /* Warm Ivory — shared across all four expressions */
  --ink:    #30110E;   /* Rich Mahogany */
  --acc:    #C14826;   /* per-expression accent, swapped on scroll */
  --gold:   #D8A128;
  --deep:   #30110E;
  --tint:   #FBF2E6;
  --rule:   rgba(48, 17, 14, 0.16);

  /* one type system: Marcellus for headings, Cormorant for everything else,
     four sizes, one ink on the paper and one light over the films */
  --fs-1: clamp(34px, 4.6vw, 56px);     /* heading */
  --fs-2: clamp(22px, 2.4vw, 30px);     /* subheading */
  --fs-body: clamp(17px, 1.4vw, 19px);  /* body */
  --fs-small: 15px;                     /* small */
  --light: #f4e9d6;                     /* text over the films */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;   /* Cormorant's 400 is too fine to read well on the paper */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 900ms ease;
}

img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--ink); }
a:hover { color: var(--ink); }

.paper {   /* one sheet of aged parchment: lighter at the heart, darker to the edges, never tiled */
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("../img/parchment.webp") center / cover no-repeat;
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(48, 17, 14, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
}
.layer { position: relative; z-index: 2; }

.mono {   /* small text: labels, notes, buttons */
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: var(--fs-small);
}
.disp {
  font-family: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 28px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--ground); padding: 12px 18px;
}
.skip:focus { left: 8px; top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }   /* for screen readers and search engines only */
.nb { white-space: nowrap; }

/* ---------- age gate: the page's own paper, ink and saffron ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 28px;
  background: var(--ground) url("../img/parchment.webp") center / cover no-repeat;
  background-blend-mode: multiply;
  text-align: center;
  transition: opacity 700ms ease, visibility 0s linear 700ms;
}
.agegate::before {   /* the paper at the strength the page uses */
  content: ""; position: absolute; inset: 0; background: rgba(253, 253, 241, 0.45); pointer-events: none;
}
.agegate-in { position: relative; max-width: 460px; }
.agegate-mark { width: 200px; margin: 0 auto; color: var(--ink); }
.agegate-mark svg { display: block; width: 100%; height: auto; }
.agegate-k { margin: 18px 0 0; color: var(--ink); }
.agegate-q { margin: 34px 0 0; font-size: var(--fs-2); line-height: 1.2; color: var(--ink); }
.agegate-note { margin: 12px 0 0; font-size: var(--fs-body); color: var(--ink); }
.agegate-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.agegate-btns button {
  appearance: none; cursor: pointer; min-height: 52px; padding: 0 26px; border-radius: 2px;
  transition: background 400ms ease, color 400ms ease, border-color 400ms ease;
}
.agegate-yes { border: 1px solid var(--acc); background: var(--acc); color: #FDFDF1; }
.agegate-yes:hover { background: var(--deep); border-color: var(--deep); }
.agegate-no { border: 1px solid var(--rule); background: transparent; color: var(--ink); }
.agegate-no:hover { border-color: var(--ink); }
.agegate-btns button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.agegate-sorry { margin: 22px 0 0; font-size: var(--fs-body); color: var(--ink); }
.age-ok .agegate { opacity: 0; visibility: hidden; }
html:not(.age-ok) body { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-block: 104px 40px;   /* room for the bar */
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  color: var(--ink); margin: 0 0 30px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 900ms ease 200ms, transform 900ms ease 200ms;
}
.is-ready .hero-eyebrow { opacity: 1; transform: none; }

/* The hero arch is a wide crown (600x540). Its width is capped off the
   viewport height as well as the width, so the hero never outgrows the fold. */
.archwrap { position: relative; width: min(880px, 90vw, 74svh); }
.archsvg { display: block; width: 100%; height: auto; overflow: visible; }
/* The arch is never drawn: a single ray of light curves over the bottles and
   dissolves at its ends, over a warm glow behind them. One sun for the whole
   site, from above and a little left, as the botanicals' and bottles'
   shadows say. */
.al-pool { fill: url(#al-pool); }
.al-bloom { fill: none; stroke: #e9b54f; stroke-width: 70; opacity: 0.26; }
.al-ray { fill: none; stroke: #fff3cf; stroke-width: 12; opacity: 0.9; stroke-linejoin: round; }
.archsvg .al { opacity: 0; }
/* it comes up like a lamp, then breathes as a cloud passes, now and then */
.is-ready .archsvg .al { animation: dawn 2600ms cubic-bezier(.22,.61,.36,1) 260ms forwards, breathe 16s ease-in-out 3200ms infinite; }
@keyframes dawn { to { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.82; } }

.arch-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 9% 8% 0;
}
/* BANOU is inked in, left to right, the edge of the ink soft */
.mark {
  position: relative; margin: 0; width: min(420px, 56%); color: var(--ink);
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat;
          mask: linear-gradient(90deg, #000 40%, transparent 60%) 100% 0 / 260% 100% no-repeat;
  transition: -webkit-mask-position 1500ms cubic-bezier(.45, .1, .3, 1) 900ms, mask-position 1500ms cubic-bezier(.45, .1, .3, 1) 900ms;
}
.is-ready .mark { -webkit-mask-position: 0 0; mask-position: 0 0; }
.mark-glint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 238, 196, 0.95) 50%, transparent 58%) 130% 0 / 300% 100% no-repeat;
  -webkit-mask: var(--mark-mask) center / 100% 100% no-repeat; mask: var(--mark-mask) center / 100% 100% no-repeat;
  mix-blend-mode: screen;
}
.mark-glint.is-on { background-position: -30% 0; transition: background-position 1400ms cubic-bezier(.4, 0, .2, 1); }
.mark svg { display: block; width: 100%; height: auto; }

.hero-sub {
  text-wrap: balance;
  position: relative; width: 100%; margin: 14px 0 0; font-size: var(--fs-body);
  color: var(--ink);
  opacity: 0; transition: opacity 1100ms ease 1300ms;
}
.is-ready .hero-sub { opacity: 1; }
/* pointing at a bottle trades the line for her name and toast */
.hero-sub span { display: block; transition: opacity 500ms ease, transform 500ms ease; }
.hero-sub .sub-alt { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(6px); color: var(--ink); white-space: pre-line; }   /* her name, her toast beneath */
.hero.is-pointing .sub-main { opacity: 0; transform: translateY(-6px); }
.hero.is-pointing .sub-alt { opacity: 1; transform: none; }

.hero-bottles {
  margin-bottom: -6%;
  margin-top: auto; width: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(4px, 1.6vw, 22px);
  transform-origin: 50% 100%;
}
.hero-bottles { position: relative; }
.hb { position: relative; display: block; width: 22%; max-width: 160px; opacity: 0; transform: translateY(26px); }
.hb img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 22px 26px rgba(48, 17, 14, 0.2));
  transition: transform 700ms cubic-bezier(.2, .7, .2, 1), filter 500ms ease;
}
.is-ready .hb { animation: rise 1200ms cubic-bezier(.22,.61,.36,1) forwards; }
.is-ready .hb:nth-of-type(1) { animation-delay: 1500ms; }
.is-ready .hb:nth-of-type(2) { animation-delay: 1640ms; }
.is-ready .hb:nth-of-type(3) { animation-delay: 1780ms; }
.is-ready .hb:nth-of-type(4) { animation-delay: 1920ms; }
.hb:hover img, .hb:focus-visible img, .hb.is-lit img { transform: translateY(-10px); }
.hero.is-pointing .hb:not(.is-lit) img { filter: drop-shadow(0 22px 26px rgba(48, 17, 14, 0.12)) saturate(0.3) brightness(1.06); }
.hb:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }
/* the colour of the gin pointed at, glowing on the paper behind it */
.hero-glow {
  position: absolute; left: var(--gx, 50%); top: 55%; width: 70%; aspect-ratio: 1; pointer-events: none;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, var(--hover, #D8A128), transparent);
  opacity: 0; transition: opacity 700ms ease, left 700ms cubic-bezier(.2, .7, .2, 1);
  mix-blend-mode: multiply;
}
.hero.is-pointing .hero-glow { opacity: 0.42; }

/* botanicals drifting over the page in depth: far and middle behind the arch,
   the nearest and most blurred in front of everything */
/* the full width of the screen, past the hero's column */
.drift { position: absolute; top: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%); pointer-events: none; z-index: 0; opacity: 0; transition: opacity 2200ms ease; }
.drift.is-near { z-index: 3; }
.drift.is-on { opacity: 1; }
/* the botanicals dissolve before they reach the navigation bar */
.hero .drift { -webkit-mask-image: linear-gradient(transparent 0, transparent 70px, #000 160px); mask-image: linear-gradient(transparent 0, transparent 70px, #000 160px); }
.hero .archwrap, .hero .hero-eyebrow, .hero .cue { position: relative; z-index: 1; }
@keyframes rise { to { opacity: 1; transform: none; } }

.cue {
  margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink);
  opacity: 0; transition: opacity 800ms ease 2300ms;
}
.is-ready .cue { opacity: 1; }
.cue i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); }


/* ---------- reveals ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1000ms cubic-bezier(.22,.61,.36,1), transform 1000ms cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- manifesto ---------- */
.manifesto p { text-wrap: balance; }
.manifesto { padding-block: clamp(12px, 1.5vh, 20px) clamp(36px, 5vh, 56px); text-align: center; }   /* the arch rises close under it */
.manifesto p {
  margin: 30px auto 0; max-width: 56ch;
  font-size: var(--fs-body); line-height: 1.66;
  color: var(--ink);
}
/* The four gins named in their own colours, arriving one after another; the
   star, then her name. Same faces and sizes as everywhere else. */
.manifesto .mf { font-size: var(--fs-2); line-height: 1.35; }
.mf-l { display: inline-block; opacity: 0; translate: 0 10px; transition: opacity 900ms ease calc(var(--i) * 280ms + 150ms), translate 1100ms cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 280ms + 150ms); }
.mf.is-in .mf-l { opacity: 1; translate: none; }
.mf-l b { font-weight: inherit; color: var(--c); }
.manifesto .rule-orn { margin-top: 26px; transition-delay: 1100ms; }
.manifesto .mf-by { margin-top: 22px; max-width: none; font-size: var(--fs-small); transition-delay: 1300ms; }
.rule-orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 44px auto 0; color: var(--gold); }
.rule-orn i { display: none; width: clamp(44px, 12vw, 130px); height: 1px; background: currentColor; opacity: 0.5; }
.rule-orn svg { display: block; width: 16px; height: 16px; }

.ph { color: var(--acc); background: rgba(193, 72, 38, 0.08); padding: 1px 7px; border-radius: 2px; }

/* ---------- the range ---------- */
/* The range is one screening room. A fixed screen holds all four films;
   the page scrolls past it through spacers that set the pace. It opens as the
   brand's arch, grown until the reader is inside it, the films dissolve into
   each other through darkness, and the last one fades back into the paper. */
.range { position: relative; color: #f4e9d6; }
.films { position: relative; }
/* The screen is released exactly where the films end: the spacers pull up
   under it (the first by a screen's height), rather than the screen hanging
   a screen past them. It never takes the pointer itself - only the words in
   view do. */
.screen { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: 1; pointer-events: none; }
.dim { position: absolute; inset: 0; background: #0a0605; opacity: 0; }
.door {
  position: absolute; inset: 0;
  -webkit-mask: url(/assets/img/door.svg) no-repeat; mask: url(/assets/img/door.svg) no-repeat;   /* a round top, its edge feathered into the paper */
  /* Chrome lets a scaled film's edge through the mask as a hairline where it
     meets the screen's edge; trimming a pixel round the doorway stops it */
  isolation: isolate; clip-path: inset(1px);
}
.door { background: #0a0605; }
/* set inside the closing arch, the film's edges melt into that dark */
.door.is-leaving .reel { -webkit-mask: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(transparent, #000 7%, #000 93%, transparent); }
.door.is-open { -webkit-mask: none; mask: none; }
.door-line { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
/* the doorway is where the light comes from: the world inside spills its
   own colour out onto the paper - saffron as it opens, rose as it closes */
.door-line path { fill: none; stroke-linejoin: round; }
.door-line .dl-bloom { stroke: color-mix(in srgb, var(--acc) 70%, #ffd38a); stroke-width: 90; opacity: 0.42; transition: stroke 900ms ease; }
.threshold { height: 110svh; margin-top: -100svh; }
.chapter { height: 360svh; }
/* the last is measured to where the screen lets go, so it is a screen longer */
.chapter[data-ch="3"] { height: 460svh; }

.reel { position: absolute; inset: 0; opacity: 0; background: #0a0605; transform: scale(var(--z, 1)); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.reel[data-ch="0"] { --lit: #f0915f; }
.reel[data-ch="1"] { --lit: #d8cd7c; }
.reel[data-ch="2"] { --lit: #b7cc7f; }
.reel[data-ch="3"] { --lit: #f0a3a3; }
.reel picture, .film-still, .film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-still { object-fit: cover; transition: opacity 400ms ease; }
.reel.is-live .film-still { opacity: 0; }
.film-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 6, 5, 0.78) 0%, rgba(10, 6, 5, 0.4) 32%, rgba(10, 6, 5, 0) 54%);
}
.film-copy { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.beat {
  position: absolute; left: clamp(20px, 8vw, 132px); top: 50%; width: min(470px, 33vw);
  opacity: 0; transform: translateY(-50%) translateY(18px);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(.2, .7, .2, 1);
}
.beat.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
/* Golaa pours across the left of the frame, so her toast stands on the right */
.beat.is-right { left: auto; right: clamp(28px, 4vw, 64px); width: min(360px, 24vw); text-align: right; }   /* clear of the bottle, which stands just right of centre */
.beat.is-right .ch-spec { justify-content: flex-end; }
.reel[data-ch="3"] .film-shade {
  background: linear-gradient(90deg, rgba(10, 6, 5, 0.78) 0%, rgba(10, 6, 5, 0.4) 32%, rgba(10, 6, 5, 0) 54%),
              linear-gradient(270deg, rgba(10, 6, 5, 0.55) 0%, rgba(10, 6, 5, 0) 30%);
}

/* the title card, alone in the dark between two films */
.cards { position: absolute; inset: 0; pointer-events: none; }
.card {
  position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 14px; opacity: 0;
}
.card[data-ch="1"] { --lit: #d8cd7c; }
.card[data-ch="2"] { --lit: #b7cc7f; }
.card[data-ch="3"] { --lit: #f0a3a3; }
.card-no { color: var(--light); }
.card-name { font-size: var(--fs-1); line-height: 1; color: var(--light); }
.card-word { font-size: var(--fs-body); color: var(--light); }


.ch-no { margin: 0 0 22px; color: var(--light); }
.ch-mark { width: min(380px, 100%); color: var(--lit); margin-bottom: 12px; }
.ch-mark svg { display: block; width: 100%; height: auto; }
.ch-desc { width: min(230px, 60%); color: #f4e9d6; margin-bottom: 28px; }
.ch-desc svg { display: block; width: 100%; height: auto; }
.ch-meaning { margin: 0 0 18px; font-size: var(--fs-body); line-height: 1.45; color: var(--light); }
.ch-meaning span { display: block; }   /* the name, its meaning beneath: no dash */
.ch-mn { color: var(--lit); }
.ch-story { margin: 0; max-width: 44ch; font-size: var(--fs-body); line-height: 1.66; color: var(--light); }
.ch-toast {
  margin: 0;
  font-family: 'Marcellus', serif; font-size: var(--fs-2); line-height: 1.3; color: var(--light);
}
/* the toast is the emotional payoff of each chapter, so it arrives word by word */
.ch-toast { text-wrap: balance; }
.ch-toast .w { display: inline-block; opacity: 0; transform: translateY(0.4em); }
.beat.on .ch-toast .w { animation: word 620ms cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes word { to { opacity: 1; transform: none; } }
.ch-bot { margin: 30px 0 0; font-size: var(--fs-body); color: var(--light); }
.ch-bot-k { display: block; margin-bottom: 6px; color: var(--light); }
.ch-spec { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--light); }

/* ---------- plates ---------- */
.plates { padding-block: clamp(90px, 14vh, 160px); }
.range + .plates { padding-top: clamp(60px, 9vh, 96px); }   /* one rhythm: about the same clear paper between every section */
.plates { padding-bottom: clamp(20px, 3vh, 40px); }   /* trade follows close: its own space above is enough */   /* the films have just faded into the paper above */
/* Each woman on her own small stage - arch, name, figure and botanicals as
   separate layers of the artwork (not altered), so she stands out of the
   page: they part in depth with the pointer, and as the section arrives the
   arch draws, the name is inked in and she rises from the paper. Her name
   and botanical sit below, on the paper, clear of the painting. */
.plate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 30px); }
.plate { margin: 0; --px: 0; --py: 0; }
.plate-stage {
  position: relative; aspect-ratio: 600 / 690;
  transform: perspective(900px) rotateX(calc(var(--py) * -7deg)) rotateY(calc(var(--px) * 9deg));
  transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
}
.plate.is-live .plate-stage { transition: transform 120ms linear; }
.plate-arch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* over each miniature, the same curve of light and a glow behind her, edged
   in her gin's colour */
.plate-arch { opacity: 0; transition: opacity 2200ms cubic-bezier(.22, .61, .36, 1) var(--d), filter 600ms ease; }
.plate.is-in .plate-arch { opacity: 0.92; }
.plate-arch path { fill: none; stroke-linejoin: round; }
.plate-arch .pl-pool { fill: color-mix(in srgb, var(--tint) 50%, #fffbef); opacity: 0.78; }
.plate-arch .pl-bloom { stroke: var(--ink); stroke-width: 60; opacity: 0.16; }
.plate-arch .pl-ray { stroke: #fff6dc; stroke-width: 9; opacity: 0.9; }
.plate:hover .plate-arch { opacity: 1; filter: brightness(1.05); transition-delay: 0ms; }   /* the sun comes out */
.plate-name {
  /* placed as the artist composed the label */
  position: absolute; left: var(--nl); top: var(--nt); width: var(--nw); height: auto;
  translate: calc(var(--px) * -10px) calc(var(--py) * -8px);
  /* Nastaliq is written right to left, so it is inked in that way */
  -webkit-mask: linear-gradient(270deg, #000 40%, transparent 60%) 0 0 / 260% 100% no-repeat;
          mask: linear-gradient(270deg, #000 40%, transparent 60%) 0 0 / 260% 100% no-repeat;
  opacity: 0.92;
}
.plate.is-in .plate-name {
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1600ms ease calc(var(--d) + 700ms), mask-position 1600ms ease calc(var(--d) + 700ms);
}
.plate-fig {
  position: absolute; left: var(--fl); top: var(--ft); width: var(--fw); height: auto;
  translate: calc(var(--px) * 12px) calc(var(--py) * 8px + 22px);
  opacity: 0;
  filter: drop-shadow(0 10px 12px rgba(48, 17, 14, 0.16));
}
.plate.is-in .plate-fig {
  opacity: 1; translate: calc(var(--px) * 12px) calc(var(--py) * 8px);
  transition: opacity 1200ms ease calc(var(--d) + 1100ms), translate 1400ms cubic-bezier(.2, .7, .2, 1) calc(var(--d) + 1100ms);
}
.plate.is-in.is-live .plate-fig { transition: translate 120ms linear; }
.plate-leaves { position: absolute; inset: 0; pointer-events: none; }
.leaf {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background-image: url(/assets/img/botanicals/atlas-0.webp); background-repeat: no-repeat;
  filter: drop-shadow(calc(3px + var(--z) * 3px) calc(5px + var(--z) * 4px) 4px rgba(48, 17, 14, 0.26));
  translate: calc(var(--px) * (18px + var(--z) * 10px)) calc(var(--py) * (14px + var(--z) * 8px) - 30px);
  opacity: 0;
}
.plate.is-in .leaf {
  opacity: 1; translate: calc(var(--px) * (18px + var(--z) * 10px)) calc(var(--py) * (14px + var(--z) * 8px));
  transition: opacity 1400ms ease calc(var(--d) + 1600ms), translate 2200ms cubic-bezier(.2, .7, .2, 1) calc(var(--d) + 1600ms);
  animation: drift-leaf var(--dur) ease-in-out calc(var(--d) + 1600ms) infinite alternate;
}
.plate.is-in.is-live .leaf { transition: translate 160ms linear; }
@keyframes drift-leaf {
  from { transform: rotate(-14deg) translateY(-4px); }
  to   { transform: rotate(16deg) translateY(6px); }
}

.plate { position: relative; }
.plate-go { position: absolute; inset: 0; z-index: 3; border-radius: 4px; }   /* the whole miniature opens her film */
.plate-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.plate figcaption { margin-top: 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.plate-n { color: #30110E; font-size: var(--fs-2); }   /* the page ink: each plate sets its own --ink */
.plate-b { font-size: var(--fs-body); color: #30110E; text-wrap: balance; }

/* ---------- trade ---------- */
.trade { padding-block: clamp(56px, 9vh, 104px) clamp(90px, 14vh, 160px); }
.trade-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.trade h2 { margin: 0 0 22px; max-width: 14ch; font-size: var(--fs-1); font-weight: 400; line-height: 1.1; }
.trade .lede { margin: 0 0 34px; max-width: 44ch; font-size: var(--fs-body); line-height: 1.66; color: var(--ink); }
.trade .lede-first { margin-bottom: 16px; }
/* Discover BANOU: the page's own star and gold line under the heading, and
   the four names in Nasrin Parsian's hand as a quiet close. */
.trade h2 { margin-bottom: 18px; }
.enq-orn { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; color: var(--gold); }
.enq-orn svg { display: block; width: 16px; height: 16px; flex: none; }
.enq-orn i { display: block; width: clamp(70px, 9vw, 130px); height: 1px; background: linear-gradient(90deg, currentColor, transparent); opacity: 0.8; }
.enq-names { display: flex; align-items: flex-end; gap: clamp(18px, 2.4vw, 34px); margin-top: 6px; padding-top: 26px; max-width: 44ch; border-top: 1px solid var(--rule); }
.enq-names img { display: block; width: auto; height: clamp(30px, 3vw, 40px); }
@media (min-width: 901px) { .trade-grid > div:first-child { align-self: center; } }   /* the words stand beside the middle of the form, not above an empty column */
.form-title { margin: 0 0 22px; font-size: var(--fs-2); font-weight: 400; line-height: 1.15; color: var(--ink); }
.field label .opt { opacity: 0.7; text-transform: none; letter-spacing: 0; }

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.facts li span:first-child { color: var(--ink); }
.facts li span:last-child { text-align: right; color: var(--ink); }

.form { background: var(--tint); border: 1px solid var(--rule); padding: clamp(22px, 3vw, 38px); transition: background 900ms ease; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }   /* a label that wraps must not push its field out of line */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 12px 13px;
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: var(--fs-body); color: var(--ink);
  background: #FDFDF1; border: 1px solid var(--rule); border-radius: 2px;
  transition: border-color 260ms ease;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
.submit {
  appearance: none; border: 0; cursor: pointer; width: 100%; min-height: 52px;
  background: var(--acc); color: #FDFDF1; border-radius: 2px;
  transition: background 400ms ease, transform 200ms ease;
}
.submit:hover { background: var(--deep); }
.submit:active { transform: translateY(1px); }
.sent { text-align: center; padding: 44px 10px; }
.sent .disp { font-size: var(--fs-2); color: var(--ink); }
.sent p { margin: 12px 0 0; font-size: var(--fs-body); color: var(--ink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding-block: 52px 40px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.foot-mark { width: 168px; color: var(--ink); }
.foot-mark svg { display: block; width: 100%; height: auto; }
.foot-spec { margin: 16px 0 0; font-size: var(--fs-small); line-height: 1.66; white-space: nowrap; }
.foot address { font-style: normal; max-width: 42ch; font-size: var(--fs-small); line-height: 1.66; color: var(--ink); }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.legal {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--ink);
}
.copy { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); text-align: center; color: var(--ink); opacity: 0.85; }
.copy i { font-style: normal; margin-inline: 8px; color: var(--gold); }
.copy a { text-decoration: none; }
.copy a:hover, .copy a:focus-visible { text-decoration: underline; }

/* ---------- navigation ----------
   One bar, always there: BANOU home, the four gins - each with her name in
   gold Nastaliq above it - and Trade. Where you are is marked by the same
   curve of light that stands over the bottles, in the colour of the gin in
   view; it glides from name to name. Over the films the bar turns to the
   light. No rules or boxes: the bar sits on a wash of paper that fades out. */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px clamp(18px, 3vw, 40px) 14px; color: var(--ink);
  transition: color 600ms ease, padding 500ms ease;
}
.topnav::before {   /* the wash: paper behind the bar, dark over the films */
  content: ""; position: absolute; inset: 0 0 -22px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(250, 243, 222, 0.985), rgba(250, 243, 222, 0.94) 70%, rgba(250, 243, 222, 0));
  opacity: 0; transition: opacity 600ms ease, background 600ms ease;
}
.topnav.is-scrolled::before { opacity: 1; }
.topnav.is-dark { color: var(--light); }
.topnav.is-dark::before { opacity: 0; }   /* over the films the bar is lettering only, so the bottle's cork stays in view */
.topnav.is-dark { text-shadow: 0 1px 2px rgba(10, 6, 5, 0.6), 0 0 18px rgba(10, 6, 5, 0.55); }
.topnav.is-dark .tn-gin img { filter: drop-shadow(0 1px 3px rgba(10, 6, 5, 0.6)); }
.topnav a { color: inherit; text-decoration: none; }

.tn-mark { justify-self: start; width: 104px; opacity: 0; pointer-events: none; transition: opacity 500ms ease; }
.tn-mark svg { display: block; width: 100%; height: auto; }
.topnav.is-scrolled .tn-mark { opacity: 1; pointer-events: auto; }   /* the hero's own BANOU says it until then */

.tn-gins { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 44px); }
.tn-gin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 0; }
.tn-gin img { display: block; height: 26px; width: auto; transition: transform 500ms cubic-bezier(.2, .7, .2, 1); }
.tn-n { font-family: 'Marcellus', 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-body); letter-spacing: 0.02em; line-height: 1.1; }
.tn-gin:hover img, .tn-gin:focus-visible img { transform: translateY(-2px); }
.tn-gin:focus-visible, .tn-trade:focus-visible, .tn-mark:focus-visible, .tn-menu:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* the light that says "you are here" */
.tn-light {
  position: absolute; left: 0; top: -2px; width: 140px; height: 70px; overflow: visible; pointer-events: none;
  transform: translateX(var(--lx, 0px)); opacity: 0;
  transition: transform 700ms cubic-bezier(.3, .7, .2, 1), opacity 500ms ease;
}
.tn-light.is-on { opacity: 1; }
.tn-light .tl-glow { fill: color-mix(in srgb, var(--acc) 22%, color-mix(in srgb, var(--gold) 45%, #fff3cf)); opacity: 0.42; transition: fill 900ms ease; }
.topnav.is-dark .tn-light .tl-glow { fill: color-mix(in srgb, var(--acc) 45%, #ffe2a8); opacity: 0.5; }
.tn-light .tl-ray { fill: none; stroke: color-mix(in srgb, var(--gold) 55%, #fff3cf); stroke-width: 3; opacity: 0.9; transition: stroke 900ms ease; }
.tn-gins li, .tn-trade { position: relative; z-index: 1; }
#enquiries { scroll-margin-top: 70px; }

.tn-trade { justify-self: end; font-family: 'Marcellus', 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-body); padding: 8px 2px; }

.tn-menu {
  display: none; justify-self: end; appearance: none; background: none; border: 0; cursor: pointer; color: inherit;
  font-family: 'Marcellus', 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-body); padding: 8px 2px;
}

/* on a phone: BANOU and Menu; the menu is a sheet of the parchment */
.tn-sheet {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 72px 24px 40px;
  background: var(--ground) url("../img/parchment.webp") center / cover no-repeat; background-blend-mode: multiply;
  color: var(--ink); text-align: center;
}
.tn-sheet::before { content: ""; position: absolute; inset: 0; background: rgba(253, 253, 241, 0.45); pointer-events: none; }
.tn-sheet > * { position: relative; }
.tn-sheet a { color: inherit; text-decoration: none; }
.tn-close {
  position: absolute; top: 16px; right: 18px; appearance: none; background: none; border: 0; cursor: pointer; color: inherit;
  font-family: 'Marcellus', 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-body); padding: 8px 4px;
}
.ts-gins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.ts-gin { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 12px; }
.ts-gin img { display: block; height: 44px; width: auto; }
.ts-n { font-family: 'Marcellus', 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-2); line-height: 1.1; }
.ts-b { font-size: var(--fs-small); }
.ts-trade { margin-top: 8px; font-family: 'Marcellus', 'Cormorant Garamond', Georgia, serif; font-size: var(--fs-2); }
html.sheet-open, html.sheet-open body { overflow: hidden; }

/* ---------- depth behind the words ----------
   A warm, deeper patch of paper behind the text-heavy parts, fading to
   nothing - no box, no edge. Over the films, a soft dark shadow keeps the
   words clear of the bright parts of the frame. */
.manifesto, .trade-grid > div:first-child, .foot-grid { position: relative; isolation: isolate; }
.manifesto::before, .trade-grid > div:first-child::before, .foot-grid::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -6% -8%;
  background: radial-gradient(closest-side, rgba(140, 85, 35, 0.22), rgba(140, 85, 35, 0.09) 55%, rgba(140, 85, 35, 0) 100%);
}
.manifesto::before { inset: 4% 4% -4%; }
.film-copy { text-shadow: 0 1px 2px rgba(10, 6, 5, 0.45), 0 2px 22px rgba(10, 6, 5, 0.75); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .topnav { grid-template-columns: 1fr auto; }
  .tn-centre, .tn-trade { display: none; }
  .tn-menu { display: block; }
  .tn-mark { width: 92px; }   /* as on desktop: the hero's own BANOU says it first */
  .chapter { height: 320svh; }
  .chapter[data-ch="3"] { height: 420svh; }
  .film-shade { background: linear-gradient(0deg, rgba(10, 6, 5, 0.9) 0%, rgba(10, 6, 5, 0.55) 34%, rgba(10, 6, 5, 0) 58%); }
  .beat { left: 20px; right: 20px; top: auto; bottom: calc(max(40px, 7svh) + env(safe-area-inset-bottom, 0px)); width: auto; transform: translateY(18px); }   /* clear of a phone's bottom bar */
  .beat.on { transform: none; }
  .beat.is-right { left: 20px; right: 20px; width: auto; text-align: left; }
  .beat.is-right .ch-spec { justify-content: flex-start; }
  .ch-mark { width: min(260px, 72%); }
  .ch-desc { margin-bottom: 16px; }
  .ch-bot { margin-top: 18px; }
  .plate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaf { scale: 0.6; }            /* the botanicals are sized for the wide cards */
  .trade-grid { grid-template-columns: minmax(0, 1fr); }
  .hb { width: 23%; }
  .hero { min-height: 82svh; }   /* the composition, not empty paper, fills a phone */
  .mf-l { display: block; }   /* one gin to a line on a phone */
  .range + .plates { padding-top: clamp(84px, 12vh, 110px); }
  .foot-links { gap: 0; }
  .foot-links a { padding-block: 11px; }   /* a thumb-sized target */
  .copy i { display: none; }
  .copy span { display: block; }   /* one part to a line, no stray divider */
  .hero .archwrap { width: min(880px, 98vw, 74svh); }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mf-l { opacity: 1; translate: none; }
  .archsvg .al { animation: none !important; opacity: 1; }
  .plate-arch { opacity: 0.92; }
}
/* without motion the range is a stack of stills, each with its words in full */
.films.is-static .screen { position: relative; height: auto; }
.films.is-static .dim, .films.is-static .door-line, .films.is-static .cards,
.films.is-static .threshold, .films.is-static .chapter { display: none; }
.films.is-static .door { position: relative; -webkit-mask: none; mask: none; }
.films.is-static .reel { position: relative; opacity: 1; min-height: 100svh; }
.films.is-static .film-copy { position: relative; padding: 14svh clamp(20px, 8vw, 132px); }
.films.is-static .beat { position: static; opacity: 1; transform: none; width: min(460px, 100%); margin-bottom: 40px; }
.films.is-static .ch-toast .w { opacity: 1; transform: none; }
