/*!==============================
 * NextGen Bartenders & Barista Academy (NGBBA)
 * Design layer: gold-on-ink academy — brass, crest linework, parallax + 3D
 *==============================*/

/* ---------- Tokens ---------- */
:root {
  --ink:      #050403;
  --ink-2:    #120D0A;
  --ink-3:    #1B140E;

  --wine:     #3B1210;

  --brass:    #E8830A;
  --brass-2:  #FFB446;
  --brass-dk: #A85A0A;

  --ruby:     #E5452C;
  --amber:    #E8830A;

  --cream:    #F7F1E4;
  --muted:    #B7AB98;
  --muted-2:  #7D7364;

  --line:     rgba(232,131,10,.30);
  --line-soft:rgba(247,241,228,.10);

  --font-display: "Cormorant Garamond", "Instrument Sans", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --shadow: 0 30px 70px -30px rgba(0,0,0,.85);
  --radius: 3px;
  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Preloader ---------- */
body.is-loading { overflow: hidden; }
.preloader { display: none; }
.js .preloader {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.3rem;
  position: fixed; inset: 0; z-index: 4000;
  background: var(--ink);
  background-image: radial-gradient(120% 90% at 50% 22%, rgba(218,112,20,.16), transparent 60%);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.preloader--done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__stage { position: relative; width: 96px; height: 116px; }
.preloader__glass { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 12px 16px rgba(0,0,0,.5)); }

/* glass outline draws itself on, one stroke at a time */
.glass-line {
  stroke: var(--brass-2);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: draw-line .55s cubic-bezier(.65,0,.35,1) forwards;
}
.l-rim   { animation-delay: 0s; }
.l-left  { animation-delay: .18s; }
.l-right { animation-delay: .18s; }
.l-stem  { animation-delay: .5s; }
.l-base  { animation-delay: .68s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* liquid rises from the point of the glass with a soft spring overshoot */
.glass-liquid {
  transform: scaleY(0);
  transform-origin: 50px 70px;
  animation: liquid-fill .6s cubic-bezier(.3,1.6,.4,1) .85s forwards;
}
@keyframes liquid-fill { to { transform: scaleY(1); } }

/* garnish pops in once the glass is full */
.glass-garnish {
  transform: scale(0);
  transform-origin: 50px 37px;
  animation: garnish-pop .4s cubic-bezier(.3,1.9,.4,1) 1.35s forwards;
}
@keyframes garnish-pop { 60% { transform: scale(1.3); } to { transform: scale(1); } }

.preloader__shadow {
  position: absolute; left: 50%; bottom: -6px; width: 46px; height: 9px; margin-left: -23px;
  border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(3px);
  transform: scale(.7); opacity: .3;
  animation: shadow-settle .7s cubic-bezier(.3,1.4,.4,1) .1s forwards;
}
@keyframes shadow-settle { to { transform: scale(1); opacity: .5; } }

.preloader__word {
  font-family: "Lobster", var(--font-sans); font-weight: 400; font-size: 1.5rem;
  letter-spacing: .01em; color: var(--brass-2);
  opacity: 0; transform: translateY(6px);
  animation: word-in .5s var(--ease) 1.5s forwards;
}
@keyframes word-in { to { opacity: 1; transform: none; } }
.preloader__bar { width: 132px; height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brass-dk), var(--brass-2)); animation: bar-fill 1.9s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes bar-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .glass-line, .glass-liquid, .glass-garnish, .preloader__shadow, .preloader__word, .preloader__bar span { animation: none !important; }
  .glass-line { stroke-dashoffset: 0; }
  .glass-liquid { transform: scaleY(1); }
  .glass-garnish { transform: scale(1); }
  .preloader__shadow { transform: scale(1); opacity: .5; }
  .preloader__word { opacity: 1; transform: none; }
  .preloader__bar span { width: 100%; }
}

/* ---------- Funky display fonts (imported for reuse anywhere on the site) ---------- */
.font-lobster { font-family: "Lobster", cursive; font-weight: 400; }
.font-modak { font-family: "Modak", cursive; font-weight: 400; }
.font-momo { font-family: "Momo Trust Display", var(--font-sans); font-weight: 400; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image: radial-gradient(140% 100% at 50% -10%, rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 75%);
  background-attachment: fixed;
}

/* cursor-reactive spotlight — replaces the old static gradient wash */
.cursor-glow {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease);
  background:
    radial-gradient(560px circle at var(--mx, 50%) var(--my, 24%), rgba(232,131,10,.16), transparent 62%),
    radial-gradient(900px circle at var(--mx, 50%) var(--my, 24%), rgba(229,69,44,.06), transparent 70%);
}
.cursor-glow.is-active { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
}
main, header, footer, section { position: relative; z-index: 2; }

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

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

a { color: var(--brass-2); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--brass); }

h1 {
  font-family: 'Lobster';
  color: var(--cream);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: .002em;
  margin: 0 0 .5em;
}

h2,h3,h4,h5,h6 {
  font-family: var(--font-sans);
  color: var(--cream);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: .002em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1.2rem; }

:focus-visible {
  outline: 2px solid var(--brass-2);
  outline-offset: 3px;
  border-radius: 2px;
}

.container-tn { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Utility type ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--brass);
  display: inline-block;
  opacity: .7;
}
.eyebrow.centered { justify-content: center; }

.display-serif { font-family: var(--font-display); }
.text-brass { color: var(--brass); }
.text-cream { color: var(--cream); }
.italic-note { font-family: var(--font-display); font-style: italic; color: var(--muted); }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  letter-spacing: .005em;
}
.section-title .amp { color: var(--brass); font-style: italic; }
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 300;
}

/* Deco divider */
.deco-rule {
  display: flex; align-items: center; gap: 14px;
  color: var(--brass);
}
.deco-rule::before, .deco-rule::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.deco-rule .diamond { width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }

/* ---------- Buttons ---------- */
.btn-tn {
  --btn-bg: var(--brass);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-tn:hover { background: var(--brass-2); border-color: var(--brass-2); color: var(--ink); transform: translateY(-2px); }
.btn-tn.ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: var(--line);
}
.btn-tn.ghost:hover { background: rgba(200,162,76,.10); border-color: var(--brass); color: var(--brass-2); }
.btn-tn.small { padding: .7rem 1.3rem; font-size: .72rem; }
.btn-tn.block { width: 100%; justify-content: center; }
.btn-arrow { transition: transform .35s var(--ease); }
.btn-tn:hover .btn-arrow { transform: translateX(4px); }

.link-under {
  color: var(--brass-2);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex; gap: .55rem; align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  background: none; border-left: none; border-right: none; border-top: none;
  cursor: pointer;
}
.link-under:hover { color: var(--brass); border-color: var(--brass); }

/* ---------- Navbar ---------- */
.tn-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.tn-nav.scrolled {
  background: rgba(6,5,5,.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.tn-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--cream); line-height: 1; }
.brand:hover { color: var(--cream); }
.brand img { height: 44px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.brand .brand-word { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: .03em; }
.brand .brand-word small {
  display: block;
  font-family: var(--font-sans);
  font-size: .5rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-top: 2px;
}

.tn-menu { display: flex; align-items: center; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.tn-menu a {
  color: var(--cream);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.tn-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--brass); transition: width .35s var(--ease);
}
.tn-menu a:hover, .tn-menu a.active { color: var(--brass-2); }
.tn-menu a:hover::after, .tn-menu a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1.2rem; }

.tn-burger {
  display: none;
  width: 46px; height: 40px;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.tn-burger span { width: 20px; height: 1.5px; background: var(--brass); transition: .3s var(--ease); display: block; }
.tn-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.tn-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tn-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.tn-mobile {
  position: fixed; inset: 0 0 0 auto;
  width: min(88vw, 380px);
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  z-index: 1100;
  padding: 6rem 2rem 2rem;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.tn-mobile.open { transform: translateX(0); }
.tn-mobile ul { list-style: none; margin: 0 0 auto; padding: 0; }
.tn-mobile li { border-bottom: 1px solid var(--line-soft); }
.tn-mobile a {
  display: block; padding: 1.05rem 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.7rem;
}
.tn-mobile a:hover { color: var(--brass); padding-left: 8px; }
.tn-mobile .btn-tn { margin-top: 1.6rem; }
.tn-mobile__close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  background: none; border: 1px solid var(--line); color: var(--brass);
  width: 42px; height: 42px; border-radius: var(--radius); cursor: pointer;
  font-size: 1.2rem; line-height: 1;
}
.tn-backdrop {
  position: fixed; inset: 0; background: rgba(6,5,6,.6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: .4s var(--ease); z-index: 1090;
}
.tn-backdrop.show { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative;
  padding: clamp(7rem, 14vw, 9rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg .glow-a {
  position: absolute; top: -20%; left: -10%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(218,112,20,.20), transparent 68%);
  filter: blur(10px);
}
.hero__bg .glow-b {
  position: absolute; bottom: -30%; right: -10%; width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(169,74,50,.16), transparent 68%);
}
.hero__bg .wreath-line {
  position: absolute; opacity: .5; color: var(--line);
}
.hero__bg .wreath-line.w1 { top: 8%; right: 4%; width: 280px; }
.hero__bg .wreath-line.w2 { bottom: 4%; left: 2%; width: 200px; opacity: .3; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero__inner { position: relative; z-index: 2; }
.hero__tag {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brass-2); font-weight: 500;
  background: rgba(12,10,11,.35);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  margin-bottom: 1.6rem;
}
.hero__tag .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 10px 1px var(--ruby); }
.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: .002em;
  margin-bottom: 1.4rem;
  max-width: 13ch;
}
.hero h1 em { font-style: italic; color: var(--brass); }
.hero__sub { max-width: 46ch; color: var(--cream); font-size: 1.12rem; opacity: .88; margin-bottom: 2.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__meta {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}
.hero__meta div span {
  display: block; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); margin-bottom: .3rem;
}
.hero__meta div strong { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--cream); }

/* Medallion — the one big orchestrated 3D moment */
.medallion-stage {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px;
}
.medallion {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: medallion-spin 22s linear infinite;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.7));
}
.medallion__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line);
  background:
    radial-gradient(closest-side, rgba(218,112,20,.08), transparent 72%),
    conic-gradient(from 0deg, rgba(218,112,20,.03), rgba(240,161,92,.22), rgba(218,112,20,.03) 30%, transparent 60%);
}
.medallion__crest {
  position: absolute; inset: 8%;
  display: flex; align-items: center; justify-content: center;
}
.medallion__crest img { width: 100%; height: 100%; object-fit: contain; }
.medallion__sheen {
  position: absolute; inset: -2px; border-radius: 50%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 45%, transparent 60%);
  mix-blend-mode: overlay;
  animation: medallion-sheen 22s linear infinite;
}
@keyframes medallion-spin {
  0%   { transform: rotateY(0deg) rotateX(4deg); }
  50%  { transform: rotateY(180deg) rotateX(4deg); }
  100% { transform: rotateY(360deg) rotateX(4deg); }
}
@keyframes medallion-sheen {
  0%, 100% { opacity: .35; }
  50% { opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .medallion { animation: none; transform: rotateY(-18deg) rotateX(4deg); }
  .medallion__sheen { animation: none; }
}
@media (max-width: 991px) {
  .hero__grid { grid-template-columns: 1fr; }
  .medallion-stage { order: -1; margin-bottom: 1rem; }
  .medallion { width: 200px; }
}

/* ---------- Panels / backgrounds ---------- */
.bg-ink2 { background: var(--ink-2); }
.bg-wine { background: linear-gradient(160deg, var(--wine), #180b10 80%); }
.edge-top { border-top: 1px solid var(--line); }

/* ---------- Programs at a Glance ---------- */
.glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.glance-card {
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.glance-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.glance-card__icon { width: 40px; height: 40px; color: var(--brass); margin-bottom: 1.1rem; }
.glance-card h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.glance-card__meta { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dk); margin-bottom: .8rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.glance-card__meta span { color: var(--brass-2); }
.glance-card p { font-size: .92rem; color: var(--muted); margin: 0 0 1.1rem; }
.glance-card a.link-under { font-size: .7rem; }

/* ---------- Syllabus (course accordion) ---------- */
.syllabus { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; }
.syl-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-3);
  overflow: hidden;
  transition: border-color .4s var(--ease);
}
.syl-item.open, .syl-item:hover { border-color: var(--line); }
.syl-head {
  width: 100%;
  display: flex; align-items: center; gap: 1.3rem;
  background: none; border: 0; cursor: pointer;
  padding: 1.5rem 1.6rem;
  text-align: left;
  color: var(--cream);
  font-family: var(--font-sans);
}
.syl-head__icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--brass);
  display: flex; align-items: center; justify-content: center;
}
.syl-head__icon svg { width: 26px; height: 26px; }
.syl-head__text { flex: 1 1 auto; }
.syl-head__text h3 {font-family: var(--font-sans);font-size: 1.55rem;margin: 0 0 .3rem;}
.syl-head__meta { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-dk); display: flex; gap: 1rem; flex-wrap: wrap; }
.syl-head__meta span { color: var(--brass-2); }
.syl-head__plus {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--brass);
  transition: transform .45s var(--ease), background .3s var(--ease);
  font-size: 1.1rem;
}
.syl-item.open .syl-head__plus { transform: rotate(135deg); background: var(--brass); color: var(--ink); }
.syl-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.syl-item.open .syl-body { max-height: 900px; }
.syl-body__inner { padding: 0 1.6rem 1.8rem 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.syl-desc { color: var(--muted); font-size: .95rem; }
.syl-cert {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-2);
}
.syl-modules { list-style: none; margin: 0; padding: 0; counter-reset: mod; }
.syl-modules li {
  counter-increment: mod;
  display: flex; gap: .9rem; align-items: baseline;
  padding: .65rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: .92rem; color: var(--cream);
}
.syl-modules li:last-child { border-bottom: 0; }
.syl-modules li::before {
  content: counter(mod, decimal-leading-zero);
  font-family: var(--font-sans); font-size: .68rem; color: var(--brass); letter-spacing: .1em; flex: none; padding-top: .15rem;
}
@media (max-width: 767px) { .syl-body__inner { grid-template-columns: 1fr; } .syl-head { gap: .9rem; padding: 1.2rem 1.1rem; } .syl-head__icon { width: 42px; height: 42px; } .syl-head__icon svg { width: 20px; height: 20px; } }

/* ---------- Signature grid (skills) ---------- */
.sig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.sig-card {
  background: var(--ink-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column;
}
.sig-card:hover { border-color: var(--line); box-shadow: var(--shadow); }
.sig-card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 140% at 20% -10%, rgba(218,112,20,.20), transparent 60%),
    var(--ink-2);
}
.sig-card__media svg { width: 30%; height: 30%; color: var(--brass); transition: transform .7s var(--ease); }
.sig-card:hover .sig-card__media svg { transform: scale(1.12) rotate(-4deg); }
.sig-card__media::after { content: ""; position: absolute; inset: 0; border-bottom: 1px solid var(--line-soft); }
.sig-card__body { padding: 1.4rem 1.5rem 1.6rem; flex: 1 1 auto; }
.sig-card__body h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.sig-card__spirits {
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: .8rem; font-weight: 500;
}
.sig-card__desc { font-size: .93rem; color: var(--muted); margin: 0; }

/* tilt (JS-driven 3D hover) */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* ---------- About / academy ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-art { position: relative; aspect-ratio: 4/4.6; }
.about-art__panel {
  position: absolute; inset: 0; border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(218,112,20,.22), transparent 55%),
    radial-gradient(90% 90% at 100% 100%, rgba(169,74,50,.14), transparent 60%),
    var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-art__panel svg { width: 46%; height: 46%; color: var(--brass); opacity: .9; }
.about-art__badge {
  position: absolute; left: -22px; top: 10%;
  background: var(--brass); color: var(--ink);
  font-family: var(--font-display); font-size: 1rem; line-height: 1.1;
  padding: .9rem 1rem; border-radius: var(--radius); text-align: center;
  box-shadow: var(--shadow); max-width: 140px;
}
.about-art__badge strong { display: block; font-size: 1.7rem; }
.about-art__inset {
  position: absolute; right: -18px; bottom: -22px; width: 42%; aspect-ratio: 1;
  border: 5px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.about-art__inset svg { width: 44%; height: 44%; color: var(--brass-2); }
.stat-row { display: flex; gap: 2.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat b { font-family: var(--font-display); font-size: 2.6rem; color: var(--brass); display: block; line-height: 1; }
.stat span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Instructors ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3.5rem; }
.team-card { text-align: left; }
.team-card__badge {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft);
  aspect-ratio: 1/1;
  background:
    radial-gradient(120% 120% at 30% 10%, rgba(218,112,20,.28), transparent 60%),
    var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .5s var(--ease);
}
.team-card:hover .team-card__badge { border-color: var(--line); }
.team-card__badge .initials {
  font-family: var(--font-display); font-size: 3.4rem; color: var(--brass);
  border: 1px solid var(--line); border-radius: 50%;
  width: 62%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  transition: transform .6s var(--ease);
}
.team-card:hover .team-card__badge .initials { transform: scale(1.05) rotate(-3deg); }
.team-card h3 { font-size: 1.5rem; margin: 1.1rem 0 .1rem; }
.team-card .role { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.team-card p { font-size: .9rem; color: var(--muted); margin-top: .7rem; }
.team-note { margin-top: 2.4rem; font-size: .84rem; color: var(--muted-2); font-style: italic; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testimonial {
  background: var(--ink-3); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.8rem 1.7rem; display: flex; flex-direction: column; gap: 1rem;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.testimonial:hover { border-color: var(--line); transform: translateY(-4px); }
.testimonial__mark { font-family: var(--font-display); font-style: italic; font-size: 2.4rem; color: var(--brass); line-height: 1; }
.testimonial p.quote { color: var(--cream); font-size: 1rem; margin: 0; }
.testimonial__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line-soft); }
.testimonial__who .avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--brass);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: .95rem; flex: none;
}
.testimonial__who .name { font-size: .86rem; color: var(--cream); }
.testimonial__who .course { font-size: .72rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 1.4rem 0;
  text-align: left;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.25rem;
}
.faq-q__plus { flex: none; color: var(--brass); font-size: 1.2rem; transition: transform .4s var(--ease); }
.faq-item.open .faq-q__plus { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { color: var(--muted); font-size: .95rem; padding-bottom: 1.4rem; margin: 0; max-width: 68ch; }

/* ---------- Facilities (was gallery) ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facility-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--ink-3);
  aspect-ratio: 4/5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  padding: 1.4rem;
  transition: transform .55s var(--ease), border-color .5s var(--ease);
}
.facility-card:hover { transform: translateY(-5px); border-color: var(--line); }
.facility-card svg { width: 34%; height: 34%; color: var(--brass); }
.facility-card span { font-size: .78rem; letter-spacing: .06em; color: var(--muted); text-align: center; }
.facility-card.wide { grid-column: span 2; aspect-ratio: 8.5/5; flex-direction: row; justify-content: center; gap: 1.4rem; }
.facility-card.wide svg { width: 18%; height: 46%; }

/* ---------- Registration form ---------- */
.booking-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.booking-aside h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.booking-aside .contact-line { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.booking-aside .contact-line .k { color: var(--brass); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; min-width: 96px; padding-top: 4px; }
.booking-aside .contact-line .v { color: var(--cream); }

.tn-form { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.8rem); }
.tn-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: .5rem; }
.field label .req { color: var(--ruby); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: .96rem;
  font-weight: 300;
  padding: .85rem 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23c8a24c' stroke-width='1.6'><path d='M3 5l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200,162,76,.12); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--ruby); box-shadow: 0 0 0 3px rgba(156,42,60,.15); }
.field .error { color: #e77e8e; font-size: .78rem; letter-spacing: .04em; margin-top: .4rem; min-height: 1em; display: none; }
.field.invalid .error { display: block; }
.form-note { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }
.form-success {
  display: none;
  background: rgba(200,162,76,.10); border: 1px solid var(--brass);
  color: var(--brass-2); padding: 1rem 1.2rem; border-radius: var(--radius);
  margin-bottom: 1.4rem; font-size: .95rem;
}
.form-success.show { display: block; }

/* ---------- Hours / location ---------- */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
.hours-list li .day {font-family: 'Lobster';font-size: 1.3rem;color: var(--cream);}
.hours-list li .hrs { color: var(--muted); letter-spacing: .06em; }
.hours-list li.closed .hrs { color: var(--ruby); }
.hours-list li .badge-now { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: var(--brass); padding: .12rem .5rem; border-radius: 100px; margin-left: .7rem; }
.location-card { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); }
.location-card h3 { font-size: 1.8rem; }
.location-card address { font-style: normal; color: var(--muted); margin-bottom: 1.4rem; line-height: 1.9; }
.location-card .map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 1.4rem; aspect-ratio: 16/7; background:
  repeating-linear-gradient(45deg, #14100f, #14100f 12px, #171210 12px, #171210 24px);
  position: relative; display: flex; align-items: center; justify-content: center; }
.location-card .map-embed .pin { color: var(--brass); font-family: var(--font-display); font-style: italic; font-size: 1.2rem; text-align: center; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.newsletter form { display: flex; gap: .8rem; max-width: 520px; margin: 2rem auto 0; }
.newsletter input {
  flex: 1 1 auto; background: var(--ink-2); border: 1px solid var(--line); color: var(--cream);
  padding: 1rem 1.2rem; border-radius: var(--radius); font-family: var(--font-sans); font-size: .95rem;
}
.newsletter input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200,162,76,.12); }
.newsletter .form-success { max-width: 520px; margin: 1.4rem auto 0; text-align: center; }
@media (max-width: 520px){ .newsletter form { flex-direction: column; } }

/* ---------- Footer ---------- */
.tn-footer { background: #080607; border-top: 1px solid var(--line); padding: clamp(3.5rem,7vw,5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.tn-footer .brand img { height: 52px; }
.tn-footer p { color: var(--muted); font-size: .93rem; max-width: 34ch; }
.footer-col h4 { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .7rem; }
.footer-col a { color: var(--muted); font-size: .93rem; }
.footer-col a:hover { color: var(--brass-2); }
.footer-social { display: flex; gap: .8rem; margin-top: 1.4rem; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--brass);
  font-size: .7rem; letter-spacing: .05em; font-weight: 500;
}
.footer-social a:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted-2); font-size: .82rem; }
.footer-bottom a { color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sig-card, .glance-card, .facility-card { transition: none; }
}

.count { font-variant-numeric: tabular-nums; }

/* ---------- Text reveal (scroll-triggered, word by word) ---------- */
.text-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.4em);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 32ms);
}
.text-reveal.in .word { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .text-reveal .word { opacity: 1; transform: none; transition: none; }
}

/* ---------- 404 page ---------- */
.error-page {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: clamp(7rem,14vw,9rem) 24px clamp(3rem,7vw,5rem);
  text-align: center;
}
.error-page__inner { max-width: 560px; margin-inline: auto; }
.error-scene { width: min(320px, 70vw); margin: 0 auto 1.4rem; aspect-ratio: 3/2; overflow: visible; }
.error-figure { stroke: var(--brass-2); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.error-arm-up { transform-origin: 122px 118px; animation: arm-oops 4s ease-in-out infinite; }
.error-bottle { transform-origin: 150px 108px; animation: bottle-oops 4s cubic-bezier(.5,0,.4,1) infinite; }
.error-bottle path { fill: var(--ink-3); stroke: var(--brass-2); stroke-width: 2; }
.error-bottle .liquid { fill: url(#errLiquid); stroke: none; }
.error-puddle { transform-origin: 190px 176px; animation: puddle-fade 4s ease-out infinite; fill: var(--brass-dk); opacity: 0; }
.error-shard { animation: shard-burst 4s ease-out infinite; transform-box: fill-box; transform-origin: center; fill: var(--brass-2); }
.error-shard.s2 { animation-name: shard-burst-2; }
.error-shard.s3 { animation-name: shard-burst-3; }
.error-shard.s4 { animation-name: shard-burst-4; }
.error-shard.s5 { animation-name: shard-burst-5; }

@keyframes bottle-oops {
  0%   { transform: translate(0,0) rotate(0deg); }
  8%   { transform: translate(-3px,-4px) rotate(-12deg); }
  38%  { transform: translate(26px,-64px) rotate(430deg); }
  68%  { transform: translate(44px,58px) rotate(760deg); }
  76%  { transform: translate(48px,70px) rotate(800deg) scale(1); opacity: 1; }
  79%  { transform: translate(48px,72px) rotate(800deg) scale(1.25,.55); opacity: 1; }
  81%, 100% { transform: translate(48px,72px) rotate(800deg) scale(1); opacity: 0; }
}
@keyframes arm-oops {
  0%, 74% { transform: rotate(0deg); }
  80%     { transform: rotate(22deg); }
  92%, 100% { transform: rotate(0deg); }
}
@keyframes puddle-fade {
  0%, 78% { opacity: 0; transform: scaleX(.3); }
  85%     { opacity: .55; transform: scaleX(1); }
  97%     { opacity: .55; transform: scaleX(1); }
  100%    { opacity: 0; transform: scaleX(.3); }
}
@keyframes shard-burst {
  0%, 78% { opacity: 0; transform: translate(0,0) rotate(0deg) scale(0); }
  81%     { opacity: 1; }
  96%     { opacity: 0; transform: translate(-24px,-20px) rotate(-160deg) scale(1); }
  100%    { opacity: 0; }
}
@keyframes shard-burst-2 {
  0%, 78% { opacity: 0; transform: translate(0,0) rotate(0deg) scale(0); }
  81%     { opacity: 1; }
  96%     { opacity: 0; transform: translate(20px,-24px) rotate(140deg) scale(1); }
  100%    { opacity: 0; }
}
@keyframes shard-burst-3 {
  0%, 78% { opacity: 0; transform: translate(0,0) rotate(0deg) scale(0); }
  81%     { opacity: 1; }
  96%     { opacity: 0; transform: translate(-30px,6px) rotate(-90deg) scale(1); }
  100%    { opacity: 0; }
}
@keyframes shard-burst-4 {
  0%, 78% { opacity: 0; transform: translate(0,0) rotate(0deg) scale(0); }
  81%     { opacity: 1; }
  96%     { opacity: 0; transform: translate(30px,2px) rotate(120deg) scale(1); }
  100%    { opacity: 0; }
}
@keyframes shard-burst-5 {
  0%, 78% { opacity: 0; transform: translate(0,0) rotate(0deg) scale(0); }
  81%     { opacity: 1; }
  96%     { opacity: 0; transform: translate(2px,-30px) rotate(60deg) scale(1); }
  100%    { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .error-arm-up, .error-bottle, .error-puddle, .error-shard { animation: none; }
  .error-bottle { opacity: 0; }
  .error-puddle { opacity: .55; transform: none; }
}
.error-404 { font-family: "Modak", cursive; font-weight: 400; color: var(--brass); font-size: clamp(4rem,14vw,7rem); line-height: 1; margin: .2rem 0 .4rem; }
.error-tagline { font-family: "Lobster"; font-size: 1.5rem; color: var(--cream); margin-bottom: .6rem; }
.error-copy { color: var(--muted); max-width: 42ch; margin: 0 auto 2rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .tn-menu, .nav-actions .btn-tn { display: none; }
  .tn-burger { display: inline-flex; }
  .glance-grid { grid-template-columns: 1fr 1fr; }
  .sig-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 460px; margin-inline: auto; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-card.wide { grid-column: span 2; }
  .hours-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .glance-grid, .sig-grid, .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .facility-card.wide { grid-column: span 2; flex-direction: column; }
  .tn-form .row-2 { grid-template-columns: 1fr; }
  .hero__meta { gap: 1.4rem; }
  .stat-row { gap: 1.6rem; }
  .syl-body__inner { padding-inline: 1.1rem; }
}