/* ═══════════════════════════════════════════════════════════════
   GEMINI — Coffee & Teahouse
   A house of two signs: coffee by day, tea by night.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* night */
  --ink-night: #170b14;
  --ink-night-2: #22111d;
  --paper-night: #e9e2d2;
  --paper-night-dim: rgba(233, 226, 210, 0.62);
  /* day */
  --ink-day: #2a2016;
  --ink-day-dim: rgba(42, 32, 22, 0.64);
  --paper-day: #f2ead9;
  --paper-day-2: #ece1cb;
  /* metal */
  --gold: #c9a45c;
  --gold-bright: #e8cd92;
  --gold-deep: #96762f;
  --hairline-night: rgba(201, 164, 92, 0.28);
  --hairline-day: rgba(42, 32, 22, 0.18);

  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Jost', 'Century Gothic', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--ink-night);
  color: var(--paper-night);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--ink-night); }

svg use { fill: currentColor; }

/* ─────────────────────────── grain ─────────────────────────── */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-5%, -2%); }
  80% { transform: translate(4%, 4%); }
}

/* ─────────────────────────── preloader ─────────────────────────── */

.veil {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4rem;
  background: var(--ink-night);
  transition: opacity 0.9s var(--ease-in-out), visibility 0.9s;
}
.veil.is-done { opacity: 0; visibility: hidden; }
.veil-mark {
  width: clamp(72px, 10vw, 110px);
  height: auto;
  opacity: 0;
  animation: veil-in 1s var(--ease-out) forwards;
}
@keyframes veil-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.veil-word {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: var(--paper-night-dim);
  opacity: 0;
  animation: veil-in 1s var(--ease-out) 0.5s forwards;
}

/* ─────────────────────────── celestial dial ─────────────────────────── */

.dial {
  position: fixed;
  left: clamp(0.9rem, 2vw, 1.6rem);
  bottom: clamp(0.9rem, 2vw, 1.6rem);
  width: 44px;
  height: 44px;
  z-index: 90;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.8s ease 0.2s, color 0.6s ease;
}
body.is-ready .dial { opacity: 0.9; }
body[data-theme="day"] .dial { color: var(--ink-day); }
#dialWheel { transform-origin: 22px 22px; will-change: transform; }

/* ─────────────────────────── nav ─────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--pad-x);
  color: var(--paper-night);
  transition: color 0.6s ease, background 0.6s ease, box-shadow 0.6s ease, padding 0.5s ease;
  translate: 0 -110%;
  animation: nav-drop 1s var(--ease-out) 1.4s forwards;
}
@keyframes nav-drop { to { translate: 0 0; } }

.nav.is-scrolled {
  padding-block: 0.7rem;
  background: color-mix(in srgb, var(--ink-night) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline-night);
}
body[data-theme="day"] .nav { color: var(--ink-day); }
body[data-theme="day"] .nav.is-scrolled {
  background: color-mix(in srgb, var(--paper-day) 80%, transparent);
  box-shadow: 0 1px 0 var(--hairline-day);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.nav-mark { width: 34px; height: auto; display: block; transition: opacity 0.6s ease; }
.nav-mark--day { display: none; }
body[data-theme="day"] .nav-mark--night { display: none; }
body[data-theme="day"] .nav-mark--day { display: block; }
.nav-word {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
}
.nav-links a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.3s ease;
  padding-block: 0.3rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--hairline-night);
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
}
body[data-theme="day"] .nav-cta { border-color: var(--hairline-day); }
.nav-cta-line {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
  border-radius: inherit;
}
.nav-cta:hover { color: var(--ink-night); border-color: var(--gold); }
.nav-cta:hover .nav-cta-line { transform: translateY(0); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: var(--pad-x);
  background: color-mix(in srgb, var(--ink-night) 92%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.6rem; }
.mobile-menu a {
  color: var(--paper-night);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.mobile-menu-foot {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-night-dim);
}

/* ─────────────────────────── hero ─────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* dawn on the left, dusk on the right — a day→night sweep */
  background:
    /* warm sunrise glow, rising up the left edge */
    radial-gradient(72% 96% at 0% 82%, rgba(201, 164, 92, 0.40) 0%, rgba(201, 164, 92, 0.13) 38%, transparent 66%),
    /* soft daylight wash carrying the warmth up the left column */
    radial-gradient(46% 60% at 4% 24%, rgba(232, 205, 146, 0.16) 0%, transparent 64%),
    /* cool evening glow, high on the right */
    radial-gradient(64% 72% at 94% 10%, rgba(168, 122, 178, 0.20) 0%, transparent 58%),
    /* base horizontal day→night gradient */
    linear-gradient(100deg, #3a2917 0%, #2b1e28 34%, #221325 62%, #170b14 82%, #100810 100%);
}
/* flanking vessels: a steaming coffee mug (morning) and a teapot (evening) */
.hero-vessel {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: clamp(120px, 15vw, 236px);
  color: var(--gold);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  animation: vessel-in 1.5s var(--ease-out) forwards;
}
.hero-vessel--coffee { left: clamp(0.5rem, 6vw, 7rem); animation-delay: 1.1s; }
.hero-vessel--tea { right: clamp(0.5rem, 6vw, 7rem); animation-delay: 1.3s; }
@keyframes vessel-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 0.92; transform: translateY(0); }
}
.hero-vessel .vessel-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.hero-vessel .vessel-liquid { opacity: 0.45; }
.hero-vessel .steam {
  fill: none;
  stroke: var(--paper-night-dim);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 34 130;
  stroke-dashoffset: 150;
  opacity: 0;
}
.hero-vessel .steam-1 { animation: hero-steam 4.8s linear 1.8s infinite; }
.hero-vessel .steam-2 { animation: hero-steam 4.8s linear 3.1s infinite; }
.hero-vessel .steam-3 { animation: hero-steam 4.8s linear 4.2s infinite; }
@keyframes hero-steam {
  0% { stroke-dashoffset: 150; opacity: 0; }
  16% { opacity: 0.6; }
  70% { opacity: 0.18; }
  100% { stroke-dashoffset: -30; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-vessel { animation: none; opacity: 0.9; }
  .hero-vessel .steam { animation: none; opacity: 0.28; stroke-dashoffset: 0; }
}
/* on narrow screens the wordmark owns the center — retire the flanking vessels */
@media (max-width: 820px) {
  .hero-vessel { display: none; }
}
.hero-halo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(64vw, 560px);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.12) 0%, transparent 64%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 0 var(--pad-x);
  z-index: 2;
}
.hero-mark {
  width: clamp(120px, 16vw, 190px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(201, 164, 92, 0.25));
  opacity: 0;
  animation: hero-rise 1.4s var(--ease-out) 0.9s forwards;
}
.hero-word {
  display: flex;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 12.5vw, 9.5rem);
  line-height: 1.05;
  letter-spacing: 0.28em;
  margin-left: 0.28em; /* optically recenter tracked text */
  margin-top: 1.6rem;
}
.hero-word span {
  opacity: 0;
  animation: hero-rise 1.2s var(--ease-out) forwards;
}
.hero-word span:nth-child(1) { animation-delay: 1.05s; }
.hero-word span:nth-child(2) { animation-delay: 1.13s; }
.hero-word span:nth-child(3) { animation-delay: 1.21s; }
.hero-word span:nth-child(4) { animation-delay: 1.29s; }
.hero-word span:nth-child(5) { animation-delay: 1.37s; }
.hero-word span:nth-child(6) { animation-delay: 1.45s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(1.2em); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(420px, 62vw);
  margin-top: 1.9rem;
  opacity: 0;
  animation: hero-rise 1.2s var(--ease-out) 1.7s forwards;
}
.hero-rule-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--hairline-night)); }
.hero-rule-line:last-child { background: linear-gradient(270deg, transparent, var(--hairline-night)); }
.hero-rule-spark { width: 12px; color: var(--gold); flex: none; }

.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  text-transform: uppercase;
  color: var(--paper-night-dim);
  opacity: 0;
  animation: hero-rise 1.2s var(--ease-out) 1.85s forwards;
}
.hero-tag {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--gold-bright);
  opacity: 0;
  animation: hero-rise 1.2s var(--ease-out) 2s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  translate: -50%;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  color: var(--paper-night-dim);
  text-decoration: none;
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-rise 1.2s var(--ease-out) 2.4s forwards;
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: var(--hairline-night);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: scroll-drip 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-drip {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* ─────────────────────────── shared reveals ─────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  filter: blur(5px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ─────────────────────────── manifesto ─────────────────────────── */

.manifesto {
  position: relative;
  padding: clamp(7rem, 16vh, 12rem) var(--pad-x);
  max-width: 74rem;
  margin-inline: auto;
  text-align: center;
}
.manifesto-eyebrow,
.chapter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}
.chapter-eyebrow svg { width: 17px; }
.manifesto-line {
  margin-top: 2.2rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.7rem);
  line-height: 1.28;
  text-wrap: balance;
}
.manifesto-line .w {
  display: inline-block;
  opacity: 0.14;
  transition: opacity 0.5s ease;
}
.manifesto-line .w.is-lit { opacity: 1; }
.manifesto-body {
  margin: 2.6rem auto 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--paper-night-dim);
}

/* ─────────────────────────── twins ─────────────────────────── */

.twins { padding: 0 var(--pad-x) clamp(6rem, 12vh, 10rem); }
.twins-frame {
  position: relative;
  display: flex;
  max-width: 76rem;
  margin-inline: auto;
  min-height: clamp(430px, 62vh, 560px);
  border: 1px solid var(--hairline-night);
  overflow: hidden;
}
.twins-seam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline-night);
  z-index: 3;
  pointer-events: none;
}
.twin {
  position: relative;
  flex: 1;
  display: grid;
  align-content: center;
  padding: clamp(2.4rem, 5vw, 4.5rem);
  text-decoration: none;
  transition: flex 0.85s var(--ease-in-out);
  overflow: hidden;
}
@media (hover: hover) {
  .twins-frame:has(.twin--day:hover) .twin--day,
  .twins-frame:has(.twin--night:hover) .twin--night { flex: 1.55; }
}
.twin--day { background: var(--paper-day); color: var(--ink-day); }
.twin--night { background: var(--ink-night-2); color: var(--paper-night); }
.twin-veil {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.twin--day .twin-veil { background: radial-gradient(90% 90% at 30% 20%, rgba(232, 205, 146, 0.55), transparent 70%); }
.twin--night .twin-veil { background: radial-gradient(90% 90% at 70% 20%, rgba(201, 164, 92, 0.16), transparent 70%); }
.twin:hover .twin-veil { opacity: 1; }
.twin-body { position: relative; max-width: 24rem; }
.twin--night .twin-body { margin-left: auto; text-align: right; }
.twin-glyph {
  width: 46px;
  margin-bottom: 1.6rem;
  color: var(--gold-deep);
  transition: transform 1.2s var(--ease-out);
}
.twin--night .twin-glyph { color: var(--gold); }
.twin:hover .twin-glyph { transform: rotate(20deg); }
.twin--night:hover .twin-glyph { transform: rotate(-14deg); }
.twin-eyebrow {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.6;
}
.twin-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-top: 0.7rem;
  line-height: 1;
}
.twin-copy {
  margin-top: 1.3rem;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.75;
}
.twin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.9rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: inherit;
}
.twin--night .twin-link { flex-direction: row-reverse; }
.twin-link i {
  width: 34px;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease-out);
}
.twin:hover .twin-link i { width: 54px; }

/* ─────────────────────────── chapters (shared) ─────────────────────────── */

.chapter-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.06;
  margin-top: 1.6rem;
}
.chapter-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}
.chapter-lede {
  margin-top: 1.8rem;
  max-width: 33rem;
  font-size: 1rem;
  line-height: 1.9;
}

/* ─────────────────────────── by day ─────────────────────────── */

.day {
  position: relative;
  background:
    radial-gradient(100% 55% at 85% 0%, rgba(232, 205, 146, 0.4), transparent 60%),
    linear-gradient(180deg, var(--paper-day) 0%, var(--paper-day-2) 100%);
  color: var(--ink-day);
  padding: clamp(6rem, 14vh, 11rem) var(--pad-x) clamp(6rem, 12vh, 9rem);
}
.day::before {
  /* soft top edge from the dark twins section */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline-day);
}
.day-head { max-width: 76rem; margin-inline: auto; }
.day .chapter-lede { color: var(--ink-day-dim); }
.day .chapter-eyebrow { color: var(--gold-deep); }

.day-film {
  max-width: 76rem;
  margin: clamp(3.5rem, 8vh, 6rem) auto 0;
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}
.day-film-arch {
  width: min(560px, 86vw);
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 14px 14px;
  overflow: hidden;
  border: 1px solid var(--hairline-day);
  padding: 10px;
  background: color-mix(in srgb, var(--paper-day) 55%, #fff 12%);
  box-shadow: 0 40px 80px -40px rgba(42, 32, 22, 0.45);
}
.day-film-arch video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  transform: scale(1.06);
  will-change: transform;
}
.day-film figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-day-dim);
}

/* ─────────────────────────── menus ─────────────────────────── */

.menu {
  max-width: 46rem;
  margin: clamp(4.5rem, 10vh, 8rem) auto 0;
}
.menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--hairline-day);
}
.menu--night .menu-head { border-color: var(--hairline-night); }
.menu-head h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.menu-head p {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
}
.menu-list { list-style: none; }
.menu-item {
  padding: 1.7rem 0.4rem;
  border-bottom: 1px solid var(--hairline-day);
  transition: background 0.4s ease, padding 0.4s ease, opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
}
.menu--night .menu-item { border-color: var(--hairline-night); }
@media (hover: hover) {
  .menu-item:hover { background: rgba(150, 118, 47, 0.06); padding-inline: 1rem; }
  .menu--night .menu-item:hover { background: rgba(201, 164, 92, 0.06); }
}
.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.menu-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  white-space: nowrap;
}
.menu-dots {
  flex: 1;
  border-bottom: 1px dotted currentColor;
  opacity: 0.3;
  transform: translateY(-0.3em);
}
.menu-price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-deep);
}
.menu--night .menu-price { color: var(--gold); }
.menu-desc {
  margin-top: 0.45rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.66;
}
.menu-state {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.66;
  padding: 1.7rem 0.4rem;
}

/* ─────────────────────── buy from us (beans + goods) ─────────────────────── */

.shop {
  position: relative;
  background:
    radial-gradient(90% 55% at 12% 0%, rgba(232, 205, 146, 0.35), transparent 60%),
    linear-gradient(180deg, var(--paper-day-2) 0%, var(--paper-day) 100%);
  color: var(--ink-day);
  padding: clamp(5rem, 12vh, 9rem) var(--pad-x) clamp(6rem, 13vh, 10rem);
}
.shop-head { max-width: 76rem; margin: 0 auto clamp(3rem, 6vh, 4.5rem); }
.shop-head .chapter-eyebrow { color: var(--gold-deep); }
.shop-head .chapter-lede { color: var(--ink-day-dim); }

/* a labelled block within the shop — the beans, then the goods */
.shop-block-head {
  max-width: 76rem;
  margin: 0 auto 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline-day);
}
.shop-block-head h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1;
}
.shop-block-head p {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-day-dim);
}
.merch { margin-top: clamp(3.5rem, 8vh, 6rem); }

.beans-grid {
  max-width: 76rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.beans-state {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-day-dim);
  padding: 2rem 0;
}

.bean-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: color-mix(in srgb, var(--paper-day) 40%, #fff 20%);
  border: 1px solid var(--hairline-day);
  border-radius: 4px 4px 18px 18px;
  box-shadow: 0 30px 60px -44px rgba(42, 32, 22, 0.5);
  opacity: 0;
  transform: translateY(1.4rem);
  animation: bean-in 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes bean-in { to { opacity: 1; transform: none; } }

.bean-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.bean-roaster {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.bean-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.12;
  margin-top: 0.35rem;
}
.bean-badge {
  flex: none;
  margin-top: 0.2rem;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.34em 0.7em;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.bean-badge--seasonal { color: var(--gold-deep); }
.bean-badge--sold-out { color: #9a5b4b; opacity: 0.8; }
.bean-badge--decaf { color: #6b6f86; }

.bean-origin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-day-dim);
}
.bean-origin b { font-weight: 500; color: var(--ink-day); }

.bean-notes {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink-day);
}
.bean-notes::before { content: "“"; color: var(--gold-deep); }
.bean-notes::after { content: "”"; color: var(--gold-deep); }

.bean-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.bean-spec {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-day-dim);
  padding: 0.35em 0.6em;
  background: rgba(150, 118, 47, 0.08);
  border-radius: 3px;
}
.bean-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline-day);
}
.bean-price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink-day); }
.bean-price span { font-size: 0.8rem; color: var(--ink-day-dim); }
.bean-weight { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-day-dim); }

@media (prefers-reduced-motion: reduce) {
  .bean-card { opacity: 1; transform: none; animation: none; }
}

/* the goods — same paper stock as a bean card, lighter build */

.merch-grid {
  max-width: 76rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.merch-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: color-mix(in srgb, var(--paper-day) 40%, #fff 20%);
  border: 1px solid var(--hairline-day);
  border-radius: 4px 4px 18px 18px;
  box-shadow: 0 30px 60px -44px rgba(42, 32, 22, 0.5);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.merch-glyph { width: 26px; color: var(--gold-deep); }
.merch-card h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.15;
}
.merch-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-day-dim);
}
.merch-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline-day);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
@media (hover: hover) {
  .merch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 70px -46px rgba(42, 32, 22, 0.62);
  }
}

.shop-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(2.2rem, 5vh, 3.2rem);
  padding: 0.95rem 2rem;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  color: var(--gold-deep);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.shop-cta svg { width: 18px; flex: none; }
.shop-cta:hover { background: var(--gold-deep); color: var(--paper-day); }

/* ─────────────────────────── the turning ─────────────────────────── */

.turning { height: 320vh; position: relative; }
.turning-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.turning-sky { position: absolute; inset: 0; background: var(--paper-day-2); }
.turning-orb-shadow { display: none; }
.turning-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(90px, 14vw, 150px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  overflow: hidden; /* keeps the eclipse shadow invisible until it crosses the disc */
  box-shadow: 0 0 90px 18px rgba(201, 164, 92, 0.35);
  will-change: transform;
}
.turning-orb-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, var(--gold-bright), var(--gold) 58%, var(--gold-deep));
}
.turning-orb-shadow {
  /* slides across to carve the sun into a crescent */
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background: var(--turning-shadow, #0b0d16);
  transform: translateX(120%);
  will-change: transform;
}
.turning-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 25%, currentColor 75%, transparent);
  color: rgba(120, 100, 70, 0.5);
}
.turning-word {
  position: absolute;
  left: 50%;
  translate: -50%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.turning-word--day { top: 16%; color: var(--ink-day); }
.turning-word--night { bottom: 9%; color: var(--paper-night); }
.turning-word.is-on { opacity: 0.85; }

/* ─────────────────────────── by night ─────────────────────────── */

.night {
  position: relative;
  background:
    radial-gradient(90% 50% at 15% 0%, rgba(28, 32, 54, 0.9), transparent 60%),
    linear-gradient(180deg, var(--ink-night) 0%, var(--ink-night-2) 100%);
  color: var(--paper-night);
  padding: clamp(6rem, 14vh, 11rem) var(--pad-x) clamp(6rem, 12vh, 9rem);
}
.night-head { max-width: 76rem; margin-inline: auto; }
.night .chapter-title em { color: var(--gold); }
.night .chapter-lede { color: var(--paper-night-dim); }

.night-stage {
  display: grid;
  place-items: center;
  margin-top: clamp(3rem, 7vh, 5rem);
}
.teapot {
  width: min(420px, 78vw);
  color: var(--gold);
  overflow: visible;
}
.teapot .pot-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.9;
}
.teapot .pot-tea { opacity: 0.45; }
.teapot .pot-bloom circle { fill: var(--gold-bright); }
.teapot .pot-bloom path {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.85;
}
.night-stage.is-in .pot-bloom {
  animation: bloom-pulse 6s var(--ease-in-out) infinite;
  transform-origin: 180px 204px;
}
@keyframes bloom-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.teapot .steam {
  stroke: var(--paper-night-dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 30 90;
  stroke-dashoffset: 120;
  opacity: 0;
}
.night-stage.is-in .steam { animation: steam-rise 4.2s linear infinite; }
.night-stage.is-in .steam-2 { animation-delay: 1.3s; }
.night-stage.is-in .steam-3 { animation-delay: 2.5s; }
@keyframes steam-rise {
  0% { stroke-dashoffset: 120; opacity: 0; }
  18% { opacity: 0.7; }
  70% { opacity: 0.25; }
  100% { stroke-dashoffset: -60; opacity: 0; }
}
.pot-spark { opacity: 0.25; }
.night-stage.is-in .s-a { animation: spark-tw 3.4s ease-in-out infinite; }
.night-stage.is-in .s-b { animation: spark-tw 4.6s ease-in-out 1s infinite; }
.night-stage.is-in .s-c { animation: spark-tw 3.9s ease-in-out 2s infinite; }
@keyframes spark-tw {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.9; }
}

/* ─────────────────────────── the keepers (owners) ─────────────────────────── */

.owners {
  position: relative;
  background:
    radial-gradient(80% 50% at 85% 100%, rgba(28, 32, 54, 0.85), transparent 60%),
    linear-gradient(180deg, var(--ink-night-2) 0%, var(--ink-night) 100%);
  color: var(--paper-night);
  padding: clamp(6rem, 14vh, 11rem) var(--pad-x) clamp(5rem, 11vh, 9rem);
}
.owners-head {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.owners-head .chapter-eyebrow { justify-content: center; }
.owners-head .chapter-lede { margin-inline: auto; color: var(--paper-night-dim); max-width: 40rem; }
.owners-amp {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.owners-gallery {
  max-width: 54rem;
  margin: clamp(3.5rem, 8vh, 6rem) auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.owner-fig { margin: 0; display: grid; gap: 1rem; }
/* the candid is lifted against the formal portrait for editorial rhythm */
.owner-fig--lead { transform: translateY(-2.4rem); }

.owner-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline-night);
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201, 164, 92, 0.14), transparent 60%),
    var(--ink-night);
  aspect-ratio: 4 / 5;
}
.owner-fig--lead .owner-frame { aspect-ratio: 4 / 5.6; }
.owner-frame::after {
  /* soft inner vignette + top sheen to seat the photo in the theme */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 60px 6px rgba(7, 8, 15, 0.55);
  border-radius: inherit;
}
.owner-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  filter: saturate(0.96);
}
@media (hover: hover) {
  .owner-fig:hover .owner-frame img { transform: scale(1.04); filter: saturate(1.05); }
}
.owner-frame.no-img img { display: none; }
.owner-fig--formal .owner-frame img { object-position: center 20%; }

/* elegant fallback while a portrait is missing */
.owner-mono {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  gap: 0.6rem;
  justify-items: center;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--gold);
  opacity: 0.5;
}
.owner-mono svg { width: 34px; color: var(--gold); }

.owner-fig figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-night-dim);
  padding-left: 0.2rem;
}
.owner-fig figcaption span { color: var(--gold-bright); }

.owners-sign {
  margin: clamp(3rem, 6vh, 4.5rem) auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--gold-bright);
}

@media (max-width: 860px) {
  /* drop the lift so the pair sits level once the columns tighten */
  .owners-gallery { gap: 1rem; }
  .owner-fig--lead { transform: none; }
  .owner-fig--lead .owner-frame { aspect-ratio: 4 / 5; }
}
@media (max-width: 540px) {
  .owners-gallery { grid-template-columns: 1fr; }
}

/* ─────────────────────────── ticker ─────────────────────────── */

.ticker {
  overflow: hidden;
  padding: 1.6rem 0;
  border-top: 1px solid var(--hairline-night);
  border-bottom: 1px solid var(--hairline-night);
  background: var(--ink-night);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  will-change: transform;
  animation: ticker-run 36s linear infinite;
}
.ticker-track span {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-night-dim);
  white-space: nowrap;
}
.ticker-track svg { width: 20px; color: var(--gold); flex: none; }
@keyframes ticker-run {
  to { transform: translateX(-50%); }
}

/* ─────────────────────────── visit ─────────────────────────── */

.visit {
  background: var(--ink-night-2);
  color: var(--paper-night);
  padding: clamp(6rem, 14vh, 11rem) var(--pad-x);
}
.visit-grid {
  max-width: 76rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.visit .chapter-title em { color: var(--gold); }
.visit .chapter-lede { color: var(--paper-night-dim); }
.visit-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.6rem;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}
.visit-cta svg { width: 13px; transition: transform 0.6s var(--ease-out); }
.visit-cta:hover {
  background: var(--gold);
  color: var(--ink-night);
  box-shadow: 0 0 40px rgba(201, 164, 92, 0.35);
}
.visit-cta:hover svg { transform: rotate(90deg); }

.visit-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline-night);
  border: 1px solid var(--hairline-night);
}
.visit-card {
  background: var(--ink-night-2);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.visit-card--wide { grid-column: 1 / -1; }
.visit-card-glyph { width: 26px; color: var(--gold); margin-bottom: 1.2rem; }
.visit-card h3 {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.visit-card-big {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-top: 0.7rem;
}
.visit-card p:not(.visit-card-big) {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--paper-night-dim);
}
.visit-card-links a {
  color: var(--paper-night);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-night);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.visit-card-links a:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ─────────────────────────── footer ─────────────────────────── */

.foot {
  background: #100810;
  color: var(--paper-night);
  padding: clamp(4rem, 9vh, 7rem) var(--pad-x) 2.4rem;
  text-align: center;
  overflow: hidden;
}
.foot-rule {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 40rem;
  margin: 0 auto 3rem;
}
.foot-rule span { flex: 1; height: 1px; background: var(--hairline-night); }
.foot-rule svg { width: 12px; color: var(--gold); flex: none; }
.foot-word {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(4rem, 16vw, 13rem);
  line-height: 0.95;
  letter-spacing: 0.22em;
  margin-left: 0.22em;
  background: linear-gradient(180deg, rgba(233, 226, 210, 0.32), rgba(233, 226, 210, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.foot-meta {
  margin-top: 3rem;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
}
.foot-meta > p:first-child {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-night-dim);
}
.foot-links { display: flex; gap: 2.2rem; }
.foot-links a {
  color: var(--paper-night);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.foot-links a:hover { opacity: 1; color: var(--gold-bright); }
.foot-fine {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(233, 226, 210, 0.35);
}

/* ─────────────────────────── responsive ─────────────────────────── */

/* six primary links in wide-tracked caps need room — hand over to the
   burger well before the layout breakpoint below */
@media (max-width: 1120px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: flex; }
}
/* the last stretch before that: tighten the tracking rather than wrap */
@media (min-width: 1121px) and (max-width: 1340px) {
  .nav { gap: 1.4rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.68rem; letter-spacing: 0.16em; }
}

@media (max-width: 860px) {
  .twins-frame { flex-direction: column; min-height: 0; }
  .twins-seam { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; }
  .twin { padding: 3rem 1.8rem; }
  .twin--night .twin-body { margin-left: 0; text-align: left; }
  .twin--night .twin-link { flex-direction: row; }

  .visit-grid { grid-template-columns: 1fr; }
  .turning { height: 240vh; }
}

/* ─────────────────────────── motion preferences ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .manifesto-line .w { opacity: 1; }
  .veil { display: none; }
}
