@font-face { font-family: "Adelia"; src: url("../assets/fonts/adelia.woff2") format("woff2"); font-display: swap; }
/* Tipsy Bee — landing intro
   Layout: one full-screen stage. Painted branch grows from the top-right corner;
   the logo blooms lower-left where the branch ends, then hands over to the two reserve buttons. */
:root {
  --night: #140d09;      /* deepest honeycomb */
  --comb: #1f150e;       /* honeycomb brown */
  --honey: #f7ab06;      /* Tipsy Bee yellow (logo, highlights) */
  --amber: #e98a2a;      /* glowing hex edge */
  --petal: #e6d9bd;      /* eggshell: all light text (no pure white anywhere) */
  --petal-dim: #b8a88a;
  --hive-navy: #113751;  /* The Hive blue */
  --hive-cream: #e6d9bd; /* The Hive cream, eggshell */
  --lustria: "Lustria", Georgia, serif;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --script: "Adelia", "Segoe Script", "Brush Script MT", cursive;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--petal); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  cursor: default;
}
.stage.intro { cursor: pointer; }

/* ---------- background ---------- */
.bg {
  position: absolute; inset: -3%;
  background: var(--comb) url("../assets/bg-desktop.jpg") center / cover no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s ease, transform 9s cubic-bezier(.2,.6,.2,1);
}
.ready .bg { opacity: 1; transform: scale(1); }
@media (orientation: portrait) {
  .bg { background-image: url("../assets/bg-mobile.jpg"); }
}
/* warm light that drifts slowly over the comb */
.glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at var(--gx, 70%) var(--gy, 30%), rgba(233,138,42,.16), transparent 70%),
    radial-gradient(35% 40% at 15% 80%, rgba(247,171,6,.08), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 3s ease 1s;
  pointer-events: none;
}
.ready .glow { opacity: 1; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 60% 40%, transparent 55%, rgba(10,6,4,.7) 100%);
}

/* ---------- branch ---------- */
.branch {
  position: absolute;
  top: 0; right: 0;
  width: min(62vw, 112vh);
  aspect-ratio: 2260 / 1792;
  transform-origin: 100% 0;
  will-change: transform;
}
.branch canvas, .branch img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the bloom video (landscape screens) */
.bloom {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 0; /* keep the branch corner in view on any window shape */
  display: none;
}
.use-video .bloom { display: block; }
.use-video .branch { display: none; }
/* narrower windows and phones: the video sits across the top and fades into the honeycomb,
   leaving the lower part clear for the logo */
.fit-width .bloom {
  bottom: auto; height: auto; aspect-ratio: auto;
  object-fit: contain; object-position: 100% 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 97%);
}
.phone-video .focal { bottom: max(5vh, env(safe-area-inset-bottom, 0px)); }
.phone-video .logo { width: 52%; }

/* still branch: fades in softly (phones) */
.branch img.fade-in { animation: branch-in 2.6s ease .4s both; }
.branch img.fade-in.done { animation: none; opacity: 1; }
@keyframes branch-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* CSS fallback when WebGL is unavailable (e.g. opened as a file) */
.branch img.grow {
  -webkit-mask-image: linear-gradient(225deg, #000 45%, transparent 55%);
          mask-image: linear-gradient(225deg, #000 45%, transparent 55%);
  -webkit-mask-size: 300% 300%; mask-size: 300% 300%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  animation: grow-mask 5.4s cubic-bezier(.45,.05,.35,1) .4s forwards;
}
@keyframes grow-mask { to { -webkit-mask-position: 0 100%; mask-position: 0 100%; } }

.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petals img { position: absolute; top: 0; left: 0; width: 34px; opacity: 0; will-change: transform, opacity; }

/* the bee: body + wings that beat fast around the wing joint */
.bee {
  position: absolute; top: 0; left: 0;
  width: clamp(30px, 3.1vw, 48px);
  aspect-ratio: 220 / 216;
  opacity: 0; transition: opacity 1s ease;
  pointer-events: none; z-index: 2;
  will-change: transform;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.45));
}
.bee.on { opacity: 1; }
.bee img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bee-wings { transform-origin: 53% 44%; animation: wingbeat .045s linear infinite alternate; opacity: .85; }
@keyframes wingbeat { from { transform: scaleY(1) skewX(0deg); } to { transform: scaleY(.3) skewX(-8deg); } }

/* ---------- focal: logo -> buttons ---------- */
.focal {
  position: absolute;
  left: max(6vw, env(safe-area-inset-left, 0px));
  bottom: max(7vh, env(safe-area-inset-bottom, 0px));
  width: min(34vw, 50vh);
  z-index: 3;
}
.swap { display: grid; width: 100%; position: relative; }
.swap::before {
  content: ""; position: absolute; inset: -22% -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(14,9,6,.78), rgba(14,9,6,.45) 55%, transparent);
}
.swap > * { grid-area: 1 / 1; }
.brand-block { display: flex; flex-direction: column; align-items: center; gap: 2.4vh; }

.logo {
  width: 78%;
  justify-self: center;
  opacity: 0;
  filter: blur(10px) drop-shadow(0 0 0 rgba(247,171,6,0));
  transform: scale(.94);
  transition: opacity 1.4s ease, filter 1.6s ease, transform 2.2s cubic-bezier(.2,.7,.2,1);
}
.show-logo .logo {
  opacity: 1;
  filter: blur(0) drop-shadow(0 0 28px rgba(247,171,6,.28));
  transform: none;
}
.hide-logo .logo {
  opacity: 0;
  filter: blur(6px) drop-shadow(0 0 0 rgba(247,171,6,0));
  transform: scale(1.03);
  transition: opacity 1.2s ease, filter 1.2s ease, transform 1.4s ease;
}

.tagline {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 2.15;
  letter-spacing: .03em;
  word-spacing: .22em;
  color: var(--petal);
  text-shadow: 0 0 14px rgba(14,9,6,.95), 0 1px 3px rgba(14,9,6,.9);
  text-align: center;
  text-wrap: balance;
}
.tagline .line { display: block; white-space: nowrap; }
.tagline .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.35em);
  filter: blur(4px);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1s ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}
.show-tagline .tagline .w { opacity: 1; transform: none; filter: none; }
.hide-logo .tagline .w {
  opacity: 0; transform: none; filter: blur(6px);
  transition: opacity 1.2s ease, filter 1.2s ease;
  transition-delay: 0s;
}

.reserve {
  align-self: center;
  display: flex; flex-direction: column; gap: 14px;
  width: 100%;
  visibility: hidden;
}
.show-buttons .reserve { visibility: visible; }

.btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 15px 22px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(20,13,9,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--petal);
  border: 1px solid rgba(230,217,189,.55);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1), background-color .3s, color .3s, border-color .3s;
}
.show-buttons .btn { opacity: 1; transform: none; }
.show-buttons .btn + .btn { transition-delay: .18s, .18s, 0s, 0s, 0s; }
.btn-kicker {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  opacity: .8;
}
.btn-venue {
  font-family: var(--sans);
  font-size: 1.2rem; font-weight: 600; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase;
}
.venue-bee { color: var(--honey); }
.venue-hive { color: #e27926; }
.btn:hover { border-color: var(--honey); transform: translateY(-2px); }
.btn:focus-visible, .replay:focus-visible, .mark:focus-visible { outline: 2px solid var(--honey); outline-offset: 4px; }

/* ---------- small chrome ---------- */
/* bee + menu lines (styles in nav.css): appear with the buttons */
.intro-topbar { opacity: 0; pointer-events: none; transition: opacity 1.2s ease .3s; z-index: 30; }
.show-buttons .intro-topbar { opacity: 1; pointer-events: auto; }

.replay {
  position: absolute;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 8px 4px;
  font: 500 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--petal-dim);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 1s ease 1.2s, color .2s;
  z-index: 4;
}
.replay svg { width: 16px; height: 16px; }
.replay:hover { color: var(--honey); }
.show-buttons .replay { opacity: .8; pointer-events: auto; }

.skip-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  margin: 0; font: 500 .66rem var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--petal-dim); opacity: 0; transition: opacity 1s ease; pointer-events: none;
}
.intro.ready .skip-hint { opacity: .45; transition-delay: 1.5s; }
.show-buttons .skip-hint { opacity: 0 !important; transition-delay: 0s; }

/* ---------- portrait / phones ---------- */
@media (orientation: portrait) {
  .branch { width: 128vw; right: -10vw; top: -2vh; }
  .focal {
    left: 50%; transform: translateX(-50%);
    width: min(84vw, 500px);
    bottom: max(9vh, env(safe-area-inset-bottom, 0px));
  }
  .logo { width: 72%; }
  .tagline { font-size: clamp(1.2rem, 5.2vw, 1.55rem); line-height: 2.2; margin-top: 6px; }
  .replay { right: 50%; transform: translateX(50%); bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .focal { width: min(40vw, 62vh); }
  .btn { padding: 10px 18px; }
  .brand-block { gap: 1.4vh; }
  .btn-venue { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
}

/* tagline in the body font (no script) */
.tagline { font-family: var(--sans, "Inter", system-ui, sans-serif); font-weight: 300; font-size: clamp(1.05rem, 1.55vw, 1.4rem); line-height: 1.9; letter-spacing: .06em; word-spacing: .08em; }
@media (orientation: portrait) { .tagline { font-size: clamp(.98rem, 4.3vw, 1.2rem); line-height: 1.9; } }

/* tagline matches the "Reserve your table" label: small caps-spaced sans */
.tagline { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 2.1; word-spacing: 0; color: var(--petal); }
@media (orientation: portrait) { .tagline { font-size: .72rem; line-height: 2.1; } }
