/* ============================================================
   SebSugar — Master Stylesheet
   Aesthetic: Liquid Glass, dark luxury, gold accent
   Type: Playfair Display + Inter
   ============================================================ */

/* ---------- 1. CSS RESET & VARIABLES ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;            /* iOS Safari overflow guard — pairs with body's overflow-x:hidden */
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

:root {
  /* Colors */
  --bg: #0a0a09;
  --bg-elev: #14110f;
  --bg-surface: #1c1917;
  --bg-glass: rgba(28, 25, 23, 0.55);
  --gold: #dab42f;
  --gold-soft: #ca8a04;
  --gold-bright: #f5d067;
  --gold-glow: rgba(218, 180, 47, 0.45);
  --cream: #f0e7d8;
  --cream-soft: rgba(240, 231, 216, 0.78);
  --cream-muted: rgba(240, 231, 216, 0.55);
  --muted: #787d85;
  --border: rgba(218, 180, 47, 0.18);
  --border-soft: rgba(240, 231, 216, 0.08);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 60px rgba(218, 180, 47, 0.18);
  --shadow-glow-strong: 0 0 100px rgba(218, 180, 47, 0.35);

  /* Type */
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1280px;
  --container-narrow: 980px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 700ms;
  --dur-splash: 2400ms;

  /* Z layers */
  --z-base: 1;
  --z-glow: 5;
  --z-nav: 50;
  --z-modal: 80;
  --z-splash: 100;
}

/* ---------- 2. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
}

p { margin: 0; }

em { font-style: italic; color: var(--gold); }

.display {
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

.lead {
  color: var(--gold);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0.75rem 0 1.25rem;
  letter-spacing: 0.04em;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

.eyebrow--badge {
  background: rgba(218, 180, 47, 0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow--badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.prose p {
  color: var(--cream-soft);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 60ch;
}

.prose p + p { margin-top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- 3. LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
}

.section__head .eyebrow { margin-bottom: 1rem; }
.section__head .display { margin-bottom: 1rem; }
.section__sub {
  color: var(--cream-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto;
}

.section__cta {
  text-align: center;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- 4. BUTTONS & CHIPS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: #0a0a09;
  box-shadow: 0 8px 24px rgba(218, 180, 47, 0.25);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(218, 180, 47, 0.4);
  background: var(--gold-bright);
}

.btn--primary:hover::before { transform: translateX(100%); }

.btn--ghost {
  color: var(--cream);
  background: rgba(240, 231, 216, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: rgba(240, 231, 216, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.btn--sm { padding: 0.625rem 1.1rem; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.chip {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--cream-soft);
  background: rgba(240, 231, 216, 0.03);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.chip:hover { color: var(--gold); border-color: var(--border); }
.chip.is-active {
  background: var(--gold);
  color: #0a0a09;
  border-color: var(--gold);
}

/* ---------- 5. SPLASH SCREEN ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: var(--z-splash);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #14110f 0%, #0a0a09 70%);
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__inner {
  position: relative;
  width: clamp(280px, 42vw, 460px);
  height: clamp(280px, 42vw, 460px);
  display: grid;
  place-items: center;
}

/* Pulsing radial halo behind the logo */
.splash__inner::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0;
  animation: splashHalo 2.2s var(--ease-out) 0.2s forwards, haloPulse 3s ease-in-out 2.2s infinite;
}

/* Diagonal shine sweep across the logo */
.splash__shine {
  position: absolute;
  top: 50%; left: 50%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%) rotate(20deg);
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 235, 170, 0.5) 48%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 235, 170, 0.5) 52%,
    transparent 62%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  mix-blend-mode: screen;
  opacity: 0;
  animation: splashShine 2.4s var(--ease-out) 2.5s forwards;
}

/* The logo — full SebSugar mark (SB monogram + SUGAR + utensil flourish + circle frame) */
.splash__logo {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 460px;
  opacity: 0;
  filter:
    drop-shadow(0 0 22px rgba(218, 180, 47, 0.55))
    drop-shadow(0 0 60px rgba(218, 180, 47, 0.35));
  animation:
    splashLogo 1.0s var(--ease-out) 1.9s forwards,
    logoBreathe 4s ease-in-out 2.9s infinite;
}

.splash__skip {
  position: absolute;
  bottom: 2rem; right: 2rem;
  color: var(--cream-muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: color var(--dur-fast);
  opacity: 0;
  animation: splashFade 0.6s var(--ease-out) 0.4s forwards;
}
.splash__skip:hover { color: var(--gold); }

@keyframes splashHalo {
  to { opacity: 1; }
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}
@keyframes splashShine {
  0%   { opacity: 0; background-position: 200% 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; background-position: -100% 0; }
}
@keyframes splashLogo {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes logoBreathe {
  0%, 100% {
    filter: drop-shadow(0 0 18px rgba(218, 180, 47, 0.55)) drop-shadow(0 0 50px rgba(218, 180, 47, 0.35));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(218, 180, 47, 0.85)) drop-shadow(0 0 80px rgba(218, 180, 47, 0.55));
    transform: scale(1.025);
  }
}
@keyframes splashFade {
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ---------- MOLECULAR DESIGN MOTIF (sucrose: glucose ring + fructose ring) ----------
   Used in: splash reveal animation, hex-pattern section backgrounds, recipe book cover.
   Brand language — the molecule of sugar, rendered as fine gold geometry, not science textbook.
*/

/* Reusable hex-pattern tile as a CSS custom property — two stylized rings + bonds */
:root {
  --molecular-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200'%3E%3Cg fill='none' stroke='%23dab42f' stroke-width='1' stroke-linecap='round'%3E%3Cpolygon points='80,60 50,110 80,160 140,160 170,110 140,60'/%3E%3Cpolygon points='220,75 200,120 240,155 280,140 270,95'/%3E%3Cline x1='170' y1='110' x2='200' y2='120'/%3E%3C/g%3E%3Cg fill='%23dab42f'%3E%3Ccircle cx='80' cy='60' r='2.5'/%3E%3Ccircle cx='140' cy='60' r='2.5'/%3E%3Ccircle cx='170' cy='110' r='2.5'/%3E%3Ccircle cx='140' cy='160' r='2.5'/%3E%3Ccircle cx='80' cy='160' r='2.5'/%3E%3Ccircle cx='50' cy='110' r='2.5'/%3E%3Ccircle cx='220' cy='75' r='2.5'/%3E%3Ccircle cx='270' cy='95' r='2.5'/%3E%3Ccircle cx='280' cy='140' r='2.5'/%3E%3Ccircle cx='240' cy='155' r='2.5'/%3E%3Ccircle cx='200' cy='120' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Hex pattern utility — apply to ::before of any section that should carry the brand motif */
.molecular-bg { position: relative; isolation: isolate; }
.molecular-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--molecular-tile);
  background-size: 300px 200px;
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}
.molecular-bg > * { position: relative; z-index: 1; }

/* Single sucrose mark — used as the foil-stamp on the book cover */
:root {
  --molecular-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 280'%3E%3Cg fill='none' stroke='%23dab42f' stroke-width='1.2' stroke-linecap='round'%3E%3Cpolygon points='220,140 190,88 130,88 100,140 130,192 190,192'/%3E%3Cpolygon points='270,140 305,92 360,111 360,169 305,188'/%3E%3Cline x1='220' y1='140' x2='270' y2='140' stroke-width='1.4'/%3E%3Cline x1='190' y1='88' x2='190' y2='50'/%3E%3Cline x1='130' y1='88' x2='130' y2='50'/%3E%3Cline x1='130' y1='192' x2='130' y2='232'/%3E%3Cline x1='305' y1='92' x2='305' y2='50'/%3E%3Cline x1='360' y1='111' x2='400' y2='80'/%3E%3Cline x1='360' y1='169' x2='400' y2='200'/%3E%3C/g%3E%3Cg fill='%23dab42f'%3E%3Ccircle cx='220' cy='140' r='4'/%3E%3Ccircle cx='190' cy='88' r='4'/%3E%3Ccircle cx='130' cy='88' r='4'/%3E%3Ccircle cx='100' cy='140' r='4'/%3E%3Ccircle cx='130' cy='192' r='4'/%3E%3Ccircle cx='190' cy='192' r='4'/%3E%3Ccircle cx='270' cy='140' r='4'/%3E%3Ccircle cx='305' cy='92' r='4'/%3E%3Ccircle cx='360' cy='111' r='4'/%3E%3Ccircle cx='360' cy='169' r='4'/%3E%3Ccircle cx='305' cy='188' r='4'/%3E%3Ccircle cx='190' cy='50' r='2.5'/%3E%3Ccircle cx='130' cy='50' r='2.5'/%3E%3Ccircle cx='130' cy='232' r='2.5'/%3E%3Ccircle cx='305' cy='50' r='2.5'/%3E%3Ccircle cx='400' cy='80' r='2.5'/%3E%3Ccircle cx='400' cy='200' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Splash molecule reveal ---------- */
.splash__molecule {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
  animation: moleculeFadeOut 0.8s var(--ease) 2.2s forwards;
}

.splash__molecule-svg {
  width: clamp(280px, 50vw, 540px);
  height: auto;
  color: var(--gold);
  filter: drop-shadow(0 0 14px rgba(218, 180, 47, 0.5)) drop-shadow(0 0 36px rgba(218, 180, 47, 0.25));
}

/* Atoms — scale-in pop, staggered via --i */
.sucrose__atoms .atom {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: atomIn 0.55s var(--ease-out) calc(var(--i, 0) * 45ms) forwards;
  fill: var(--gold);
}
.sucrose__atoms .atom--o { fill: var(--gold-bright); }
.sucrose__atoms .atom--h { fill: var(--cream-soft); }

/* Bonds — stroke-dasharray draw-in, staggered via --bi, starts after atoms settle */
.sucrose__bonds .bond {
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  animation: bondDraw 0.5s var(--ease-out) calc(var(--bi, 0) * 40ms + 750ms) forwards;
}
.sucrose__bonds .bond--bridge { stroke-width: 1.6; }
.sucrose__bonds .bond--branch { stroke-width: 0.9; }

@keyframes atomIn {
  0%   { opacity: 0; transform: scale(0); }
  55%  { opacity: 1; transform: scale(1.55); }
  100% { opacity: 0.92; transform: scale(1); }
}

@keyframes bondDraw {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  25%  { opacity: 0.75; }
  100% { stroke-dashoffset: 0; opacity: 0.7; }
}

@keyframes moleculeFadeOut {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.25); filter: blur(10px); }
}

@media (prefers-reduced-motion: reduce) {
  .splash__molecule,
  .sucrose__atoms .atom,
  .sucrose__bonds .bond { animation: none; }
  .sucrose__atoms .atom { opacity: 0.9; }
  .sucrose__bonds .bond { stroke-dashoffset: 0; opacity: 0.7; }
  .splash__molecule { opacity: 0; }  /* hidden under reduced-motion — logo carries the splash */
}

/* ---------- 3D RECIPE BOOK MOCKUP (shared component) ----------
   CSS-only 3D book — used on the homepage book section AND the shop featured product.
   Parent wrappers (.book__visual on home, .shop-featured__visual on shop) set the
   perspective; this block defines the book itself.
*/
.book-3d {
  position: relative;
  width: 280px;
  height: 380px;
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(2deg);
  transition: transform 0.7s var(--ease-out);
  animation: bookFloat 7s ease-in-out infinite;
}
.book-3d:hover { transform: rotateY(-8deg) rotateX(0deg) translateY(-4px); animation-play-state: paused; }

@keyframes bookFloat {
  0%, 100% { transform: rotateY(-16deg) rotateX(2deg) translateY(0); }
  50%      { transform: rotateY(-16deg) rotateX(2deg) translateY(-10px); }
}

.book-3d__pages {
  position: absolute;
  inset: 4px -6px 4px 0;
  background:
    linear-gradient(to right, transparent 0%, rgba(240, 231, 216, 0.35) 95%, rgba(240, 231, 216, 0.6) 100%);
  border-radius: 4px 8px 8px 4px;
  transform: translateZ(-8px);
}

.book-3d__cover {
  position: relative;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at top left, rgba(218, 180, 47, 0.06) 0%, transparent 60%),
    linear-gradient(135deg, #14110f 0%, #1c1917 50%, #0c0a08 100%);
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    inset 5px 0 0 var(--gold),
    inset 0 0 0 1px rgba(218, 180, 47, 0.2),
    -22px 30px 60px rgba(0, 0, 0, 0.65),
    0 0 100px rgba(218, 180, 47, 0.15);
  padding: 2.5rem 1.75rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.book-3d__cover::before {
  content: "";
  position: absolute;
  inset: 18px 14px 18px 22px;
  border: 1px solid var(--gold);
  pointer-events: none;
  opacity: 0.85;
}
.book-3d__cover::after {
  content: "";
  position: absolute;
  inset: 23px 19px 23px 27px;
  border: 1px solid rgba(218, 180, 47, 0.28);
  pointer-events: none;
}

/* Sucrose foil-stamp — sits behind cover text, faint gold lattice that catches light */
.book-3d__watermark {
  position: absolute;
  inset: 30% 12% 18% 12%;
  background-image: var(--molecular-mark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.16;
  filter: drop-shadow(0 0 4px rgba(218, 180, 47, 0.4));
  pointer-events: none;
  z-index: 0;
  animation: foilShimmer 6s ease-in-out infinite;
}

@keyframes foilShimmer {
  0%, 100% { opacity: 0.13; filter: drop-shadow(0 0 3px rgba(218, 180, 47, 0.3)); }
  50%      { opacity: 0.22; filter: drop-shadow(0 0 8px rgba(218, 180, 47, 0.55)); }
}

.book-3d__small {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
  z-index: 1;
}

.book-3d__monogram {
  position: relative;
  z-index: 1;
  margin-bottom: 0.875rem;
}
.book-3d__monogram img {
  width: 50px; height: auto;
  filter: drop-shadow(0 0 14px rgba(218, 180, 47, 0.45));
}

.book-3d__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.05;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 0.875rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.book-3d__title em {
  display: block;
  font-style: italic;
  color: var(--gold);
  text-transform: none;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0;
  margin-top: 0.2rem;
}

.book-3d__divider {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 0.25rem auto 0.875rem;
}

.book-3d__author {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--cream-soft);
  margin: auto 0 0;
  line-height: 1.5;
}

.book-3d__sticker {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--gold);
  color: #0a0a09;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.15;
  transform: rotate(14deg);
  box-shadow: 0 6px 24px rgba(218, 180, 47, 0.5);
  z-index: 5;
  border: 2px solid var(--bg-elev);
}

@media (prefers-reduced-motion: reduce) {
  .book-3d { animation: none; }
  .book-3d__watermark { animation: none; }
}

@media (max-width: 600px) {
  .book-3d { transform: rotateY(-10deg) rotateX(2deg); width: 240px; height: 330px; }
  @keyframes bookFloat {
    0%, 100% { transform: rotateY(-10deg) rotateX(2deg) translateY(0); }
    50%      { transform: rotateY(-10deg) rotateX(2deg) translateY(-8px); }
  }
}

/* ---------- 6. CUSTOM CURSOR (desktop only) ---------- */
/* Hide native cursor when our custom one is active */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor * { cursor: none !important; }
}

/* Ambient glow — soft trailing blob behind the cursor */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 180, 47, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: var(--z-glow);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
  mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow.is-active { opacity: 1; }
}

/* Dot + ring — the precise cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  opacity: 0;
  will-change: transform, width, height;
  transition:
    opacity 0.25s var(--ease),
    width 0.28s var(--ease-out),
    height 0.28s var(--ease-out),
    border-width 0.2s,
    border-radius 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}
.cursor.is-active { opacity: 1; }

.cursor--dot {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(218, 180, 47, 0.7), 0 0 24px rgba(218, 180, 47, 0.3);
}

/* Ring is hidden by default — only appears on hover for emphasis */
.cursor--ring {
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border: 1.5px solid var(--gold);
  background: transparent;
  opacity: 0;
}

/* Hover on interactive — dot grows and brightens; ring fades in around it */
.cursor--dot.is-hover {
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  background: var(--gold-bright);
  box-shadow:
    0 0 18px rgba(218, 180, 47, 0.9),
    0 0 40px rgba(218, 180, 47, 0.4);
}
.cursor--ring.is-hover {
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  border-color: var(--gold-bright);
  background: rgba(218, 180, 47, 0.06);
  opacity: 1;
  animation: ringPulse 1.6s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); border-width: 1.5px; }
  50%      { transform: scale(1.08); border-width: 1px; }
}

/* Hover on text input — turn dot into a thin vertical bar (I-beam) */
.cursor--dot.is-text {
  width: 2px;
  height: 22px;
  margin-left: -1px;
  margin-top: -11px;
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(218, 180, 47, 0.5);
}
.cursor--ring.is-text {
  opacity: 0 !important;
}

/* Click feedback — dot snaps small + brightens; ring is irrelevant during click */
.cursor--dot.is-click {
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  margin-top: -2.5px;
  background: #fff8e0;
  box-shadow: 0 0 24px var(--gold-bright), 0 0 48px var(--gold);
}

/* ---------- SUGAR PARTICLE TRAIL ---------- */
/* Tiny gold crystals that fall behind the cursor like sugar dust.
   Spawned in JS on mousemove + on click (burst). */
.sugar-particle {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9998;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(218, 180, 47, 0.85);
  will-change: transform, opacity;
}
.sugar-particle--bright {
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(245, 208, 103, 0.95);
}

/* Hide on touch devices and reduced motion */
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-glow { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .cursor-glow { display: none !important; }
}

/* ---------- 7. NAVBAR ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 1.25rem 0;
  transition: all var(--dur-base) var(--ease);
  background: transparent;
}

.nav.is-scrolled,
.nav--solid {
  padding: 0.85rem 0;
  background: rgba(10, 10, 9, 0.7);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border-soft);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity var(--dur-fast);
}
.nav__logo:hover { opacity: 0.8; }
.nav__logo img { width: 42px; height: auto; }

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream-soft);
  border-radius: 999px;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}

.nav__link:hover { color: var(--gold); }

.nav__link--cta {
  background: var(--gold);
  color: #0a0a09 !important;
  font-weight: 600;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__link--cta:hover { background: var(--gold-bright); }
.nav__link--cta svg { flex-shrink: 0; }

.nav__link--active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 18px;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 14s var(--ease-out) infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, transparent 0%, rgba(10,10,9,0.5) 40%, rgba(10,10,9,0.85) 100%),
    linear-gradient(180deg, rgba(10,10,9,0.4) 0%, transparent 30%, rgba(10,10,9,0.95) 100%);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.hero__blob--1 {
  top: 20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: blobFloat 18s var(--ease) infinite alternate;
}
.hero__blob--2 {
  bottom: 10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  animation: blobFloat 22s var(--ease) infinite alternate-reverse;
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 0 clamp(1rem, 4vw, 2rem);
  max-width: 1100px;
}

.hero__eyebrow {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 12vw, 9rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(12px);
  animation: heroChar 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 60ms + 200ms);
}

.char--space { width: 0.3em; }

.hero__sub {
  color: var(--cream-soft);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-top: 1.75rem;
  letter-spacing: 0.02em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid var(--cream-muted);
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: border-color var(--dur-base);
}
.hero__scroll:hover { border-color: var(--gold); }
.hero__scroll span {
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 999px;
  animation: scrollHint 1.8s var(--ease) infinite;
}

@keyframes heroChar {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroZoom {
  to { transform: scale(1.15); }
}
@keyframes blobFloat {
  to { transform: translate(60px, -40px) scale(1.15); }
}
@keyframes scrollHint {
  0%, 20% { transform: translateY(-8px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ---------- 9. ABOUT ---------- */
.about { background: var(--bg); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about__media {
  position: relative;
  aspect-ratio: 1;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.about__media-frame {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}

.about__media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.about__media:hover img { transform: scale(1.05); }

.about__media-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at center, var(--gold-glow) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.5;
}

.about__copy .display { margin-bottom: 0.5rem; }
.about__copy .display em { font-style: italic; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.stat {
  display: block;             /* let num + plus sit inline naturally */
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
  vertical-align: baseline;
}
.stat__plus {
  font-size: 1.5rem;
  color: var(--gold);
  margin-left: 2px;
  line-height: 1;
  display: inline-block;
  vertical-align: baseline;
}
.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--cream-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.625rem;
}

/* ---------- 10. AWARDS ---------- */
.awards {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 50%, var(--bg) 100%);
  position: relative;
}

.awards::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.awards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  position: relative;
}

.award {
  position: relative;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}

.award::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(218, 180, 47, 0.08) 100%);
  opacity: 0;
  transition: opacity var(--dur-base);
  z-index: -1;
}

.award:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
}
.award:hover::before { opacity: 1; }

.award__icon {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  background: rgba(218, 180, 47, 0.08);
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: transform var(--dur-base) var(--ease-elastic);
}
.award:hover .award__icon { transform: scale(1.1) rotate(-5deg); }
.award__icon img {
  width: 48px; height: 48px;
  object-fit: contain;
  mix-blend-mode: screen;     /* drop the baked-in dark square on the source PNG */
}

.award__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--cream);
}

.award__org {
  color: var(--cream-soft);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.award__year {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- 11. PORTFOLIO ---------- */
.portfolio { background: var(--bg); }

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  cursor: pointer;
  background: var(--bg-elev);
  transition: transform var(--dur-base) var(--ease-out);
}

.card.is-hidden { display: none; }

.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.card:hover img { transform: scale(1.08); }

.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  background: linear-gradient(to top, rgba(10,10,9,0.95) 0%, rgba(10,10,9,0.4) 50%, transparent 100%);
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-base), transform var(--dur-base);
}

.card:hover .card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.card__overlay h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.card__overlay p {
  color: var(--cream-soft);
  font-size: 0.9rem;
}

/* ---------- 12. INSTAGRAM ---------- */
.ig {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}

.ig__profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.75rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}

/* Avatar wrapped in a link, with Instagram-story-style gradient ring */
.ig__avatar-link {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 180deg, var(--gold), var(--gold-bright), var(--gold-soft), var(--gold));
  transition: transform var(--dur-fast) var(--ease-out);
}
.ig__avatar-link:hover { transform: scale(1.04); }

.ig__avatar {
  /* default — used when avatar is a direct child (classic version) */
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.ig__avatar-link .ig__avatar {
  /* override when wrapped in gradient-ring link */
  width: 100%; height: 100%;
  border: 2px solid var(--bg);
  background: var(--bg);
}

/* Pulsing "active" indicator dot */
.ig__live {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.ig__meta { flex: 1; min-width: 0; }

.ig__handle {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  display: inline-block;
  margin: 0;
  transition: color var(--dur-fast);
}
.ig__handle:hover { color: var(--gold); }

.ig__name {
  font-size: 0.875rem;
  color: var(--cream-muted);
  margin: 0.125rem 0 0.625rem;
  letter-spacing: 0.02em;
}

.ig__stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--cream-muted);
  letter-spacing: 0.02em;
}
.ig__stats span { display: inline-flex; align-items: baseline; gap: 0.3rem; }
.ig__stats b {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  font-style: normal;
}
.ig__stats i {
  color: var(--cream);
  font-style: normal;
  font-weight: 600;
  font-size: 1.1rem;
  margin-left: -2px;
  margin-right: 2px;
}

/* Centered head variant — used on cinematic homepage */
.latest__head--centered { text-align: center; justify-content: center; }
.latest__head--centered > div { margin: 0 auto; }

.ig__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.ig__tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.ig__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}

.ig__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(218, 180, 47, 0.0);
  transition: background var(--dur-base);
}

.ig__tile:hover img { transform: scale(1.1); }
.ig__tile:hover::after { background: rgba(218, 180, 47, 0.15); }

/* ---------- 13. TEASER (Courses CTA on home) ---------- */
.teaser {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Atmospheric background — radial blobs + faint grid */
.teaser__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.teaser__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.teaser__blob--1 {
  top: 10%; left: 5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: blobFloat 20s var(--ease) infinite alternate;
}
.teaser__blob--2 {
  bottom: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  animation: blobFloat 26s var(--ease) infinite alternate-reverse;
}
.teaser__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(218, 180, 47, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218, 180, 47, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.teaser__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}

/* ---- Visual side: chef photo + rings + floating badges ---- */
.teaser__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.teaser__rings {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
}

.teaser__ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: ringRotate 30s linear infinite;
}
.teaser__ring--1 {
  width: 100%; height: 100%;
  border-color: var(--gold);
  border-top-color: transparent;
  border-right-color: transparent;
}
.teaser__ring--2 {
  width: 78%; height: 78%;
  animation-direction: reverse;
  animation-duration: 24s;
  border-color: var(--cream-muted);
  border-bottom-color: transparent;
}
.teaser__ring--3 {
  width: 60%; height: 60%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border: none;
  filter: blur(30px);
  animation: pulse 4s ease-in-out infinite;
}

/* Centered chef portrait with gold border + glow */
.teaser__photo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 2;
  border: 1px solid rgba(218, 180, 47, 0.4);
  box-shadow:
    var(--shadow-lg),
    0 0 80px rgba(218, 180, 47, 0.25);
}
.teaser__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.teaser__photo:hover img { transform: scale(1.06); }

/* "12 SEATS" donut badge */
.teaser__badge--seats {
  position: absolute;
  top: 6%;
  right: 4%;
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0a09;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  box-shadow: 0 10px 40px rgba(218, 180, 47, 0.55);
  transform: rotate(-8deg);
  animation: badgeBob 5s ease-in-out infinite;
  border: 3px solid var(--bg-elev);
}
.teaser__badge-num {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}
.teaser__badge-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

/* "Cohort 01 · 2026" pill */
.teaser__badge--cohort {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.teaser__badge--cohort .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes badgeBob {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(-6deg) translateY(-4px); }
}

/* ---- Copy side ---- */
.teaser__copy .display {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin: 0.75rem 0 1.25rem;
}
.teaser__copy .display em {
  font-style: italic;
  color: var(--gold);
}
.teaser__copy .prose p {
  margin-bottom: 0;
  color: var(--cream-soft);
  max-width: 56ch;
}

/* 3-pillar curriculum preview */
.teaser__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin: 2rem 0 2.25rem;
}

.teaser-pillar {
  padding: 1.25rem 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: all var(--dur-fast) var(--ease-out);
}
.teaser-pillar:hover {
  border-color: var(--gold);
  background: rgba(218, 180, 47, 0.05);
  transform: translateY(-3px);
}

.teaser-pillar__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(218, 180, 47, 0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 0.875rem;
  transition: transform var(--dur-base) var(--ease-elastic);
}
.teaser-pillar:hover .teaser-pillar__icon {
  transform: scale(1.1) rotate(-4deg);
}

.teaser-pillar h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--cream);
}

.teaser-pillar p {
  font-size: 0.8rem;
  color: var(--cream-muted);
  line-height: 1.5;
  margin: 0;
}

/* CTAs */
.teaser__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin: 0 0 2.25rem;
}

/* Stat strip with animated counters */
.teaser__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border-soft);
}

.teaser-stat {
  display: flex;
  flex-direction: column;
}

.teaser-stat__num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
}
.teaser-stat__num b { font-weight: 500; font-style: normal; }
.teaser-stat__num i {
  font-style: normal;
  font-size: 1.25rem;
  margin-left: 1px;
}

.teaser-stat__label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-top: 0.5rem;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

/* Mobile stack */
@media (max-width: 1024px) {
  .teaser__inner { grid-template-columns: 1fr; gap: 2rem; }
  .teaser__visual { max-width: 400px; }
  .teaser__copy { text-align: center; }
  .teaser__copy .prose p { margin-left: auto; margin-right: auto; }
  .teaser__pillars { text-align: left; }
  .teaser__cta { justify-content: center; }
  .teaser__stats { text-align: left; }
}
@media (max-width: 600px) {
  .teaser__pillars { grid-template-columns: 1fr; }
  .teaser__stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .teaser__badge--seats { width: 78px; height: 78px; top: 4%; right: 2%; }
  .teaser__badge-num { font-size: 1.5rem; }
  .teaser__badge-sub { font-size: 0.55rem; }
}

/* ---------- 14. FOOTER ---------- */
.footer {
  background: #050504;
  border-top: 1px solid var(--border-soft);
  padding: 3.5rem 0 1.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.footer__brand img { width: 48px; }
.footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  margin: 0;
}
.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--cream-muted);
  margin: 0;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.footer__links a {
  font-size: 0.9rem;
  color: var(--cream-soft);
  transition: color var(--dur-fast);
}
.footer__links a:hover { color: var(--gold); }

.footer__social {
  display: flex;
  gap: 0.5rem;
}
.footer__social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: var(--cream);
  transition: all var(--dur-fast) var(--ease);
}
.footer__social a:hover {
  background: var(--gold);
  color: #0a0a09;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__credit {
  font-family: var(--font-display);
  font-style: italic;
}

/* ---------- 15. SCROLL REVEAL SYSTEM ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal[data-reveal="left"]  { transform: translateX(-40px); }
.reveal[data-reveal="right"] { transform: translateX(40px); }
.reveal[data-reveal="up"]    { transform: translateY(40px); }

.reveal.is-revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .teaser__inner { grid-template-columns: 1fr; }
  .teaser__visual { max-width: 400px; margin: 0 auto; }
  .ig__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 72px 1rem auto 1rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 10, 9, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur-base) var(--ease-out);
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link { padding: 1rem; text-align: center; }
  .nav__link--cta { margin: 0.5rem 0 0; }

  .awards__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .ig__grid { grid-template-columns: repeat(3, 1fr); }
  .ig__profile { flex-direction: column; text-align: center; }
  .ig__profile .btn { width: 100%; justify-content: center; }
  .ig__stats { justify-content: center; }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__brand { justify-content: center; }
  .footer__links { flex-wrap: wrap; gap: 1.25rem; }
  .footer__social { justify-content: center; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .about__stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .about__copy .display { font-size: 2rem; }
}

@media (max-width: 480px) {
  .portfolio__grid { grid-template-columns: 1fr; }
  .ig__grid { grid-template-columns: repeat(2, 1fr); }
  .splash__wordmark { font-size: 1.25rem; letter-spacing: 0.3em; }
  .splash__skip { bottom: 1rem; right: 1rem; }
}

/* ---------- 16.5. PRINT STYLESHEET ---------- */
/* When someone prints (or saves to PDF), give them something gorgeous.
   Hide nav/cursor/decoration. Ink-friendly contrast. Brand footer on every page. */
@media print {
  @page {
    size: A4;
    margin: 2cm 1.8cm;
  }

  /* Reset to ink-friendly canvas */
  html, body {
    background: #ffffff !important;
    color: #1c1917 !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  /* Hide all interactive / decorative chrome */
  .splash,
  .cursor, .cursor-glow, .sugar-particle,
  .nav, .nav__toggle,
  .story-progress,
  .kb-hint,
  .hero__scroll, .title-card__begin,
  .footer__social,
  .nav__link--cta,
  .btn,
  video, iframe,
  [hidden] {
    display: none !important;
  }

  /* Drop all the dark background imagery — print on white */
  .hero__media, .title-card__media,
  .hero__overlay, .title-card__overlay,
  .hero__blob, .title-card__blob, .teaser__blob, .book__inner::before,
  .chapter__bg, .chapter__overlay,
  .chapter__num,
  .teaser__bg, .teaser__rings, .teaser__ring,
  .pf-hero__bg, .pf-hero__blob,
  .course-hero__bg, .course-hero__blob, .course-hero__grid,
  .contact-hero__bg, .contact-hero__blob,
  .nf-hero__bg, .nf-hero__blob, .nf-watermark {
    display: none !important;
    background: none !important;
  }

  /* Sections should breathe and not be page-height-locked */
  section, .chapter, .title-card {
    min-height: auto !important;
    padding: 1cm 0 !important;
    page-break-inside: avoid;
    background: white !important;
  }

  /* Typography — keep heading-body hierarchy, ink-friendly colours */
  h1, h2, h3, h4, h5, h6 {
    color: #1c1917 !important;
    page-break-after: avoid;
    text-shadow: none !important;
  }
  em { color: #8a6612 !important; font-style: italic; }   /* keep gold accent, but darker */
  .eyebrow { color: #8a6612 !important; }
  p, li { color: #2a2522 !important; }
  .display { font-size: 22pt !important; line-height: 1.15 !important; }

  /* Make sure images print cleanly */
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    filter: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    border: 1px solid #e5e0d2;
    border-radius: 4px;
  }

  /* Reveal all hidden-by-animation elements */
  .reveal, .char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  /* Cards and panels should not have dark glass — make them paper-like */
  .card, .preview__card, .ig__profile, .award, .pf-card, .pf-step,
  .next-step, .learn-card, .faq-item, .teaser-pillar, .nf-card,
  .signup__card, .contact-card, .pf-cta__card, .method {
    background: #fbf9f4 !important;
    border: 1px solid #e5e0d2 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    color: #1c1917 !important;
  }

  /* Show full URLs after external links (not anchors) */
  a[href^="http"]:after,
  a[href^="mailto"]:after,
  a[href^="tel"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    font-style: italic;
    color: #6a6a6a;
    word-break: break-all;
  }

  /* Branded footer on every printed page */
  body::after {
    content: "SebSugar · Artistry in Every Bite · sebsugar.com";
    position: fixed;
    bottom: 0.6cm;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 9pt;
    color: #8a6612;
    letter-spacing: 0.05em;
  }

  /* Avoid orphaning bullet lists */
  ul, ol { page-break-inside: avoid; }
  blockquote { page-break-inside: avoid; }
}

/* ---------- 16.6. ASPECT-RATIO-AWARE IMAGE CROPS ---------- */
/* Same image, smarter framing at each viewport. We shift object-position so
   the subject (chef face, cake centerpiece, gold accent) stays in view as
   the aspect ratio changes between desktop landscape and mobile portrait. */

/* Hero (1.png — chef shot from behind with the SB monogram on his apron) */
.hero__image,
.title-card__image {
  object-position: center 38%;   /* keep monogram + upper body visible */
}
@media (min-width: 1024px) {
  .hero__image,
  .title-card__image {
    object-position: center center;
  }
}
@media (max-width: 600px) {
  .hero__image,
  .title-card__image {
    object-position: center 30%;   /* push focal point higher on tall portrait */
  }
}

/* Chapter 01 — chef face/hands */
.chapter[data-chapter="01"] .chapter__bg {
  object-position: center 28%;
}
@media (max-width: 768px) {
  .chapter[data-chapter="01"] .chapter__bg {
    object-position: center 22%;
  }
}

/* Chapter 02 — entremets dessert (centerpiece) */
.chapter[data-chapter="02"] .chapter__bg {
  object-position: center 55%;
}

/* Chapter 03 — competition showpiece (gold honeycomb structure is top-half) */
.chapter[data-chapter="03"] .chapter__bg {
  object-position: center 40%;
}

/* Chapter 04 — bridal cake (cake is in upper half) */
.chapter[data-chapter="04"] .chapter__bg {
  object-position: center 35%;
}
@media (max-width: 768px) {
  .chapter[data-chapter="04"] .chapter__bg {
    object-position: center 30%;
  }
}

/* Portfolio cards — sensible defaults per category */
.card[data-category="showpieces"] img,
.preview__card img[alt*="Competition"] {
  object-position: center 35%;     /* sculpture top */
}
.card[data-category="cakes"] img,
.preview__card img[alt*="Bridal"] {
  object-position: center 30%;     /* cake centerpiece */
}
.preview__card img[alt*="macaron"],
.card img[src*="french-macaroons"] {
  object-position: center 45%;     /* macaron stack */
}

/* About / chef portrait (classic homepage) */
.about__media-frame img {
  object-position: center 25%;     /* keep face in frame */
}
@media (max-width: 1024px) {
  .about__media-frame img {
    object-position: center 20%;
  }
}

/* Teaser visual — viennoiserie (hands holding pastry) */
.teaser__photo img {
  object-position: center 50%;
}
@media (max-width: 600px) {
  .teaser__photo img {
    object-position: center 40%;
  }
}

/* Dark-mode color-scheme hint — tells browsers to use dark form controls,
   scrollbars, and prevents flashing of light defaults */
:root { color-scheme: dark; }

/* ---------- 17. ACCESSIBILITY: REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .char,
  .reveal { opacity: 1; transform: none; filter: none; }

  .splash { display: none; }
  .hero__image { animation: none; transform: scale(1); }
  .hero__blob, .teaser__ring { animation: none; }
  .cursor-glow { display: none; }
}
