@font-face {
  font-family: "Herk BL Display";
  src: url("../assets/Herk-BLDisplay.ttf") format("truetype");
  font-display: swap;
}

:root {
  --gold: #f4b223;
  --gold-dark: #d9950a;
  --ink: #111010;
  --ink-2: #1a1817;
  --ink-3: #242120;
  --cream: #fff7e6;
  --muted: #b9b2a6;
  --radius: 18px;
  --font-display: "Herk BL Display", "Old English Text MT", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
em { color: var(--gold); font-style: italic; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.75rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; letter-spacing: .01em;
  transition: transform .2s, background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(244,178,35,.6); }
.btn--primary:hover { background: #ffc440; }
.btn--ghost { border: 2px solid rgba(255,247,230,.5); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s, backdrop-filter .3s, box-shadow .3s;
}
.header.is-scrolled {
  background: rgba(17,16,16,.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }

.logo {
  display: flex; align-items: center; gap: .6rem;
  color: var(--gold); text-decoration: none; flex-shrink: 0;
}
.logo img { width: auto; height: 46px; }
.logo span { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; white-space: nowrap; }

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  color: var(--cream); text-decoration: none; font-weight: 500; font-size: .95rem;
  position: relative; padding-block: .25rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.lang { display: flex; gap: .5rem; }
.lang__btn {
  width: 34px; height: 24px; padding: 0; border: 2px solid transparent; border-radius: 5px;
  overflow: hidden; cursor: pointer; background: none; opacity: .55;
  transition: opacity .2s, border-color .2s, transform .2s;
}
.lang__btn svg { width: 100%; height: 100%; display: block; }
.lang__btn:hover { opacity: 1; transform: translateY(-1px); }
.lang__btn.is-active { opacity: 1; border-color: var(--gold); }
.lang__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--cream); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
  background: var(--ink);
}

/* Background slideshow */
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero.is-paused .hero__slide,
.hero.is-paused .slider__dot span { animation-play-state: paused; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17,16,16,.94) 0%, rgba(17,16,16,.82) 38%, rgba(17,16,16,.35) 72%, rgba(17,16,16,.25) 100%),
    linear-gradient(180deg, rgba(17,16,16,.55) 0%, transparent 25%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px; height: 180px; pointer-events: none;
  background: linear-gradient(transparent, var(--ink));
}
.hero__grid { position: relative; z-index: 1; }
.hero__content { max-width: 640px; }

.hero__content > * { animation: rise .9s cubic-bezier(.2,.8,.2,1) backwards; }
.hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__content > :nth-child(4) { animation-delay: .24s; }
.hero__content > :nth-child(5) { animation-delay: .32s; }
.hero__content > :nth-child(n+6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.hero__kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.5rem;
  padding: .45rem 1rem .45rem .8rem; border-radius: 999px;
  border: 1px solid rgba(244,178,35,.35); background: rgba(244,178,35,.08);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.hero__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(244,178,35,.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(244,178,35,0); } 100% { box-shadow: 0 0 0 0 rgba(244,178,35,0); } }

.hero__title {
  margin: 0 0 1.5rem; color: var(--cream);
  font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
}
.hero__title em {
  display: block; font-family: var(--font-display); font-style: normal; font-weight: 400;
  font-size: 1.12em; letter-spacing: 0; line-height: 1.05; color: var(--gold);
}
.hero__lead { max-width: 46ch; margin: 0 0 2rem; font-size: 1.15rem; color: #cfc7ba; }

.hero__meta {
  list-style: none; margin: 0 0 2.25rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
  font-weight: 600; font-size: .95rem;
}
.hero__meta li {
  display: flex; align-items: center; gap: .5rem; padding: .55rem .95rem;
  border-radius: 12px; background: rgba(17,16,16,.45); border: 1px solid rgba(255,247,230,.14); backdrop-filter: blur(6px);
}
.hero__meta svg, .card svg {
  width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.countdown { display: flex; gap: .6rem; margin-top: 2.25rem; }
.countdown div {
  min-width: 68px; padding: .6rem .5rem; border-radius: 12px; text-align: center;
  background: rgba(255,247,230,.05); border: 1px solid rgba(255,247,230,.1);
}
.countdown strong { display: block; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.countdown[hidden] { display: none; }
.countdown__done {
  margin: 2.25rem 0 0; max-width: 44ch; padding-left: 1rem;
  border-left: 3px solid var(--gold); font-size: .95rem; color: var(--muted);
}

/* Hero highlights strip + slider controls */
.hero__strip {
  position: relative; z-index: 1; margin-top: clamp(2.5rem, 6vh, 4rem); padding-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,247,230,.12);
}
.highlights {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.25rem;
}
.highlights li {
  display: flex; align-items: center; gap: 1.25rem; white-space: nowrap;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.highlights li + li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

.slider { position: absolute; right: 0; bottom: calc(100% + 1rem); display: flex; align-items: center; gap: .5rem; }
.slider__dot {
  position: relative; width: 36px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center;
}
.slider__dot::before {
  content: ""; position: absolute; width: 36px; height: 3px; border-radius: 2px;
  background: rgba(255,247,230,.25);
}
.slider__dot span {
  position: relative; display: block; width: 0; height: 3px; border-radius: 2px; background: var(--gold);
}
.slider__dot.is-active span { animation: progress 6s linear forwards; }
@keyframes progress { to { width: 100%; } }
.slider__toggle {
  display: grid; place-items: center; width: 34px; height: 34px; margin-left: .35rem; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255,247,230,.3); background: rgba(17,16,16,.4);
  color: var(--cream); cursor: pointer; transition: border-color .2s, color .2s;
}
.slider__toggle:hover { border-color: var(--gold); color: var(--gold); }
.slider__toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.slider__toggle .icon-play { display: none; fill: currentColor; stroke-width: 1.5; }
.hero.is-paused .slider__toggle .icon-play { display: block; }
.hero.is-paused .slider__toggle .icon-pause { display: none; }
.slider button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Sections */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__title {
  margin: 0 0 1.25rem; font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1; font-weight: 800; letter-spacing: -.02em;
}
.eyebrow {
  margin: 0 0 .75rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase; color: var(--gold);
}
.lead { font-size: 1.2rem; color: var(--cream); }
p { color: #ddd5c8; }

/* About */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; padding-bottom: 3rem; }
.about__media img { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.about__media-small {
  position: absolute; width: 50%; right: 0; bottom: 0;
  border: 6px solid var(--ink);
}
@media (min-width: 1320px) { .about__media-small { right: -1.5rem; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.stats div { border-left: 3px solid var(--gold); padding-left: 1rem; }
.stats strong { display: block; font-size: 2.25rem; line-height: 1.1; color: var(--gold); font-weight: 800; }
.stats span { font-size: .9rem; color: var(--muted); }

/* Features */
.features { background: var(--ink-2); }
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.card {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--radius);
  background: var(--ink-3); border: 1px solid rgba(255,255,255,.05);
  transition: transform .3s, border-color .3s, background-color .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(244,178,35,.18), transparent 70%);
  transition: transform .4s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(244,178,35,.4); }
.card:hover::before { transform: scale(1.4); }
.card--wide { grid-column: span 2; }
.card svg {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 1.25rem;
  background: rgba(244,178,35,.12); border-radius: 12px; stroke-width: 1.6;
}
.card h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.card p { margin: 0; font-size: .98rem; }

/* Program */
.program__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.program__grid > div:first-child { position: sticky; top: calc(var(--header-h) + 2rem); }
.program__img { margin-top: 2rem; border-radius: var(--radius); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--gold), rgba(244,178,35,.1));
}
.timeline li { position: relative; padding: 0 0 2.5rem 3.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ink); border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(244,178,35,.12);
}
.timeline time {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  background: rgba(244,178,35,.14); color: var(--gold);
  font-weight: 700; font-size: .85rem; letter-spacing: .05em;
}
.timeline h3 { margin: .6rem 0 .3rem; font-size: 1.35rem; }
.timeline p { margin: 0; }

/* Competition */
.competition { position: relative; padding: clamp(6rem, 14vw, 11rem) 0; overflow: hidden; text-align: center; }
.competition__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-attachment: fixed;
}
.competition::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(17,16,16,.72) 30%, rgba(17,16,16,.72) 70%, var(--ink) 100%);
}
.competition__content { position: relative; z-index: 1; max-width: 760px; }
.competition__logo {
  display: inline-block; margin-bottom: 1.75rem;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,.6));
  transition: transform .3s;
}
.competition__logo:hover { transform: translateY(-4px); }
.competition__logo img { width: clamp(240px, 36vw, 400px); height: auto; }
.competition__content p { font-size: 1.15rem; margin: 0 auto 2.25rem; color: var(--cream); }

/* BYOB */
.byob {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(135deg, #c99425, #b8841c 50%, #a0701a);
  color: var(--ink);
}
.byob .eyebrow { color: rgba(17,16,16,.7); }
.byob .section__title { color: var(--ink); }
.byob .lead { color: #2b2418; }
.byob__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.byob__img {
  border-radius: var(--radius); transform: rotate(-1.5deg);
  border: 6px solid var(--ink); box-shadow: 0 30px 60px -20px rgba(60,35,0,.6);
}

/* Gallery */
.gallery { background: var(--ink); }
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px;
  grid-auto-flow: dense; gap: .75rem;
}
.gallery__grid a { position: relative; overflow: hidden; border-radius: 12px; display: block; }
.gallery__grid a.wide { grid-column: span 2; }
.gallery__grid a.tall { grid-row: span 2; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; filter: saturate(.9); }
.gallery__grid a:hover img { transform: scale(1.06); filter: saturate(1.1); }
.gallery__grid a::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(17,16,16,.5));
  opacity: 0; transition: opacity .3s;
}
.gallery__grid a:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10,9,9,.95); color: var(--cream);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lightbox button {
  position: absolute; background: rgba(255,247,230,.08); border: 0; color: var(--cream);
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background-color .2s;
}
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }

/* Info */
.info { background: var(--ink-2); }
.info__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; }
.info__list {
  margin: 0; padding: 2.25rem; border-radius: var(--radius);
  background: var(--ink-3); display: flex; flex-direction: column; gap: 1.25rem;
}
.info__list div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.info__list dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; padding-top: .15rem; }
.info__list dd { margin: 0; font-weight: 600; }
.info__list .btn { align-self: flex-start; margin-top: .5rem; }
.info__map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--ink-3); }
.info__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg); }

/* Footer */
.footer { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,.06); text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.footer .logo { flex-direction: column; text-align: center; }
.footer .logo img { height: 80px; }
.footer__org {
  display: flex; align-items: center; gap: 1rem; margin: .75rem 0;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.footer__brewhub {
  display: block; padding: .25rem .5rem; border-radius: 12px; background: #fff;
  transition: transform .2s;
}
.footer__brewhub:hover { transform: translateY(-2px); }
.footer__brewhub img { height: 68px; width: auto; }
.footer__social { display: flex; gap: .75rem; margin-bottom: .5rem; }
.footer__social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,247,230,.2); color: var(--cream); transition: color .2s, border-color .2s;
}
.footer__social a:hover { color: var(--gold); border-color: var(--gold); }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__social svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer p { margin: 0; font-size: .9rem; color: var(--muted); }
.footer__copy { opacity: .6; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1240px) {
  .header__inner { gap: 1.5rem; }
  .nav { gap: 1.25rem; }
  .logo span { font-size: 1.3rem; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .burger { display: block; }
  .header__inner { gap: 1rem; }
  .lang { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; gap: 0; padding: 1rem 1.25rem 1.5rem;
    background: rgba(17,16,16,.97); backdrop-filter: blur(12px);
    transform: translateY(calc(-100% - var(--header-h))); visibility: hidden;
    transition: transform .35s ease, visibility 0s .35s; z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
  .nav a { padding: .9rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a::after { display: none; }
}

@media (max-width: 860px) {
  .about__grid, .program__grid, .byob__grid, .info__grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 2rem; }
  .hero__shade { background: linear-gradient(180deg, rgba(17,16,16,.7) 0%, rgba(17,16,16,.82) 45%, rgba(17,16,16,.92) 100%); }
  .highlights li { gap: 1rem; }
  .program__grid > div:first-child { position: static; }
  .competition__bg { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .header .logo span { display: none; }
  .hero__kicker { font-size: .68rem; letter-spacing: .1em; }
  .hero__lead { font-size: 1.05rem; }
  .hero__meta { font-size: .88rem; }
  .hero__cta .btn { flex: 1; padding-inline: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .stats strong { font-size: 1.75rem; }
  .countdown div { min-width: 64px; }
  .info__list { padding: 1.5rem; }
  .info__list div { grid-template-columns: 1fr; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
