/* ==========================================================================
   Hype Nagpur — design system
   --------------------------------------------------------------------------
   Dark nightlife theme. Loaded AFTER the legacy template css so it can
   override it, but every rule is namespaced `hn-` (or scoped under
   `.hn-theme-dark` / `.hn-tabs`) so pages that still use the old markup are
   left completely alone.

   Type roles
     display : Anton       — gig-poster condensed, uppercase, used big
     body    : system stack — zero download
     data    : Space Mono  — dates, times, prices, labels (ticket print)

   Signature
     The perforated ticket stub on `.hn-event` — dashed rail, punched
     notches, mono date stamp. Reused wherever an event is listed.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* colour ------------------------------------------------------------ */
  --hn-ink: #07080c;
  --hn-surface: #10131a;
  --hn-surface-2: #171b24;
  --hn-surface-3: #1e232e;
  --hn-line: rgba(255, 255, 255, 0.09);
  --hn-line-strong: rgba(255, 255, 255, 0.16);
  --hn-text: #eef1f4;
  --hn-muted: #949ca8;
  --hn-muted-dim: #6b7280;

  /* accent falls back to the brand teal; the blade overrides all five from the
     admin's primary_color, deriving ink/text variants that stay legible for
     any picked colour (see partials/styles.blade.php) */
  --hn-accent: #22b0af;
  --hn-accent-ink: #04120f; /* text on an accent fill */
  --hn-accent-text: #22b0af; /* accent used as text/icon colour */
  --hn-accent-soft: rgba(34, 176, 175, 0.14);
  --hn-accent-line: rgba(34, 176, 175, 0.4);

  /* interactive controls need a border you can actually see; --hn-line is for
     hairline dividers and is deliberately far too faint for a button edge.
     0.38 clears the 3:1 minimum for ui component boundaries. */
  --hn-line-control: rgba(255, 255, 255, 0.38);

  /* type -------------------------------------------------------------- */
  --hn-font-display: 'Anton', 'Arial Narrow', sans-serif;
  --hn-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --hn-font-data: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo,
    monospace;

  --hn-fs-display: clamp(2.5rem, 9.5vw, 5rem);
  --hn-fs-h2: clamp(1.75rem, 5.5vw, 2.75rem);
  --hn-fs-h3: clamp(1.25rem, 3.2vw, 1.5rem);
  --hn-fs-body: 1rem;
  --hn-fs-sm: 0.875rem;
  --hn-fs-data: 0.75rem;

  /* space (4px base) --------------------------------------------------- */
  --hn-s1: 0.25rem;
  --hn-s2: 0.5rem;
  --hn-s3: 0.75rem;
  --hn-s4: 1rem;
  --hn-s5: 1.5rem;
  --hn-s6: 2rem;
  --hn-s7: 3rem;
  --hn-s8: 4rem;
  --hn-s9: 6rem;

  --hn-section-y: clamp(3.5rem, 9vw, 6.5rem);
  --hn-gutter: clamp(1rem, 4vw, 2rem);

  /* shape & depth ------------------------------------------------------ */
  --hn-r-sm: 8px;
  --hn-r-md: 12px;
  --hn-r-lg: 16px;
  --hn-r-pill: 999px;
  --hn-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --hn-glow: 0 6px 20px rgba(34, 176, 175, 0.28);

  --hn-header-h: 60px;
  --hn-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 1024px) {
  :root {
    --hn-header-h: 76px;
  }
}

/* --------------------------------------------------------------------------
   2. Page base — only applies to pages that opt in via the body class
   -------------------------------------------------------------------------- */
body.hn-theme-dark {
  background: var(--hn-ink);
  color: var(--hn-text);
  font-family: var(--hn-font-body);
  font-size: var(--hn-fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.hn-theme-dark.hn-no-scroll {
  overflow: hidden;
}

/* headings only take the colour globally — the condensed uppercase display
   treatment is opt-in per component, since long editorial headings and table
   captions read badly in all caps */
body.hn-theme-dark h1,
body.hn-theme-dark h2,
body.hn-theme-dark h3,
body.hn-theme-dark h4,
body.hn-theme-dark h5,
body.hn-theme-dark h6 {
  color: var(--hn-text);
}

.hn-display,
.hn-hero__title,
.hn-head__title,
.hn-event__title,
.hn-cat__label,
.hn-feature h3,
.hn-quote__who h3,
.hn-footer h2 {
  font-family: var(--hn-font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

body.hn-theme-dark p {
  color: var(--hn-muted);
}

body.hn-theme-dark a {
  color: inherit;
  text-decoration: none;
}

body.hn-theme-dark hr {
  border-color: var(--hn-line);
}

/* keyboard focus — one consistent ring everywhere */
.hn-theme-dark :focus-visible,
.hn-header :focus-visible,
.hn-drawer :focus-visible,
.hn-footer :focus-visible {
  outline:  2px solid var(--hn-accent-text);
  outline-offset: 2px;
  border-radius: var(--hn-r-sm);
}

.hn-skip {
  position: absolute;
  left: var(--hn-s4);
  top: -100px;
  z-index: 1200;
  padding: var(--hn-s3) var(--hn-s4);
  border-radius: var(--hn-r-sm);
  background: var(--hn-accent);
  color: var(--hn-accent-ink);
  font: 700 var(--hn-fs-sm) / 1 var(--hn-font-body);
  transition: top 0.2s var(--hn-ease);
}

.hn-skip:focus {
  top: var(--hn-s4);
}

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.hn-container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--hn-gutter);
}

.hn-section {
  padding-block: var(--hn-section-y);
}

.hn-section--tint {
  background: linear-gradient(180deg, var(--hn-surface) 0%, var(--hn-ink) 100%);
}

.hn-section--line {
  border-top: 1px solid var(--hn-line);
}

/* section heading: mono eyebrow carrying real data + display title */
.hn-head {
  display: grid;
  gap: var(--hn-s3);
  margin-bottom: var(--hn-s6);
}

.hn-head__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--hn-s3);
  color: var(--hn-accent-text);
  font: 700 var(--hn-fs-data) / 1 var(--hn-font-data);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hn-head__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hn-accent-line);
}

.hn-head__title {
  margin: 0;
  font-size: var(--hn-fs-h2);
}

.hn-head__sub {
  max-width: 62ch;
  margin: 0;
}

.hn-head--center {
  justify-items: center;
  text-align: center;
}

.hn-head--center .hn-head__eyebrow::after {
  display: none;
}

/* --------------------------------------------------------------------------
   4. Buttons, chips, badges
   -------------------------------------------------------------------------- */
.hn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hn-s2);
  min-height: 48px;
  padding: 0 var(--hn-s5);
  border: 1px solid transparent;
  border-radius: var(--hn-r-pill);
  background: var(--hn-accent);
  color: var(--hn-accent-ink);
  font: 700 var(--hn-fs-sm) / 1 var(--hn-font-body);
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s var(--hn-ease), box-shadow 0.18s var(--hn-ease),
    background-color 0.18s var(--hn-ease), border-color 0.18s var(--hn-ease);
}

.hn-btn:hover,
.hn-btn:focus-visible {
  color: var(--hn-accent-ink);
  transform: translateY(-2px);
  box-shadow: var(--hn-glow);
}

.hn-btn:active {
  transform: translateY(0);
}

.hn-btn--ghost {
  background: transparent;
  border-color: var(--hn-line-strong);
  color: var(--hn-text);
}

.hn-btn--ghost:hover,
.hn-btn--ghost:focus-visible {
  border-color: var(--hn-accent-text);
  box-shadow: none;
  color: var(--hn-accent-text);
}

.hn-btn--sm {
  min-height: 38px;
  padding: 0 var(--hn-s4);
  font-size: var(--hn-fs-data);
}

.hn-btn--block {
  width: 100%;
}

/* horizontally scrolling filter chips */
.hn-chips {
  display: flex;
  gap: var(--hn-s2);
  margin-bottom: var(--hn-s5);
  padding-bottom: var(--hn-s2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.hn-chips::-webkit-scrollbar {
  display: none;
}

.hn-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 var(--hn-s4);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-r-pill);
  background: var(--hn-surface-2);
  color: var(--hn-muted);
  font: 700 var(--hn-fs-data) / 38px var(--hn-font-data);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: color 0.16s var(--hn-ease), border-color 0.16s var(--hn-ease),
    background-color 0.16s var(--hn-ease);
}

.hn-chip:hover {
  color: var(--hn-text);
  border-color: var(--hn-line-strong);
}

/* bootstrap's tab js drives these, so match its active class */
.hn-tabs .hn-chip.active,
.hn-chip[aria-selected='true'] {
  background: var(--hn-accent);
  border-color: var(--hn-accent-text);
  color: var(--hn-accent-ink);
}

/* neutralise bootstrap .nav-tabs chrome inside our chip row */
.hn-tabs.nav-tabs,
.hn-tabs .nav-link {
  border: 0;
}

.hn-tabs.nav-tabs {
  flex-wrap: nowrap;
}

.hn-tabs .nav-link {
  border-radius: var(--hn-r-pill);
}

.hn-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--hn-s1);
  padding: 4px var(--hn-s2);
  border-radius: var(--hn-r-sm);
  background: var(--hn-accent-soft);
  color: var(--hn-accent-text);
  font: 700 0.6875rem / 1.4 var(--hn-font-data);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hn-empty {
  padding: var(--hn-s7) var(--hn-s4);
  border: 1px dashed var(--hn-line-strong);
  border-radius: var(--hn-r-lg);
  color: var(--hn-muted);
  font-family: var(--hn-font-data);
  text-align: center;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.hn-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(7, 8, 12, 0.78);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color 0.25s var(--hn-ease),
    border-color 0.25s var(--hn-ease);
}

.hn-header.is-scrolled {
  background: rgba(7, 8, 12, 0.95);
  border-bottom-color: var(--hn-line);
}

.hn-header__bar {
  display: flex;
  align-items: center;
  gap: var(--hn-s3);
  min-height: var(--hn-header-h);
}

.hn-header__logo {
  display: inline-flex;
  align-items: center;
  margin-inline-end: auto;
}

.hn-header__logo img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 160px;
  object-fit: contain;
}

/* icon button — 44px min target */
.hn-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hn-line-control);
  border-radius: var(--hn-r-md);
  background: var(--hn-surface-2);
  color: var(--hn-text);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.16s var(--hn-ease), color 0.16s var(--hn-ease),
    background-color 0.16s var(--hn-ease);
}

.hn-iconbtn:hover,
.hn-iconbtn:focus-visible {
  border-color: var(--hn-accent-text);
  color: var(--hn-accent-text);
}

/* hamburger */
.hn-burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--hn-ease), opacity 0.2s var(--hn-ease);
}

/* desktop nav */
.hn-nav {
  display: none;
}

.hn-nav__list {
  display: flex;
  align-items: center;
  gap: var(--hn-s2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hn-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--hn-s2) var(--hn-s3);
  border-radius: var(--hn-r-sm);
  color: var(--hn-muted);
  font: 600 var(--hn-fs-sm) / 1 var(--hn-font-body);
  transition: color 0.16s var(--hn-ease), background-color 0.16s var(--hn-ease);
}

.hn-nav__link:hover,
.hn-nav__item:focus-within > .hn-nav__link {
  background: var(--hn-surface-2);
  color: var(--hn-text);
}

.hn-nav__item {
  position: relative;
}

.hn-nav__sub {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 210px;
  margin: 0;
  padding: var(--hn-s2);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-r-md);
  background: var(--hn-surface);
  box-shadow: var(--hn-shadow);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--hn-ease), transform 0.18s var(--hn-ease),
    visibility 0.18s;
}

.hn-nav__item:hover > .hn-nav__sub,
.hn-nav__item:focus-within > .hn-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hn-nav__sub a {
  display: block;
  padding: var(--hn-s2) var(--hn-s3);
  border-radius: var(--hn-r-sm);
  color: var(--hn-muted);
  font-size: var(--hn-fs-sm);
}

.hn-nav__sub a:hover {
  background: var(--hn-surface-2);
  color: var(--hn-text);
}

.hn-header__actions {
  display: flex;
  align-items: center;
  gap: var(--hn-s2);
}

.hn-header__desktop-only {
  display: none;
}

/* language select — native control, restyled */
.hn-select {
  min-height: 40px;
  padding: 0 var(--hn-s6) 0 var(--hn-s3);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-r-md);
  background-color: var(--hn-surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23949ca8' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--hn-s3) center;
  color: var(--hn-text);
  font: 600 var(--hn-fs-data) / 38px var(--hn-font-data);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.hn-select option {
  background: var(--hn-surface);
  color: var(--hn-text);
}

@media (min-width: 1024px) {
  .hn-nav,
  .hn-header__desktop-only {
    display: block;
  }

  .hn-header__actions .hn-header__desktop-only {
    display: inline-flex;
  }

  .hn-header__mobile-only {
    display: none;
  }

  .hn-header__logo img {
    height: 42px;
    max-width: 200px;
  }
}

/* --------------------------------------------------------------------------
   6. Drawer
   -------------------------------------------------------------------------- */
.hn-scrim {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--hn-ease), visibility 0.28s;
}

.hn-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

.hn-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: min(85vw, 360px);
  background: var(--hn-surface);
  border-right: 1px solid var(--hn-line);
  transform: translateX(-100%);
  transition: transform 0.3s var(--hn-ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hn-drawer.is-open {
  transform: none;
}

[dir='rtl'] .hn-drawer {
  left: auto;
  right: 0;
  border-right: 0;
  border-left: 1px solid var(--hn-line);
  transform: translateX(100%);
}

[dir='rtl'] .hn-drawer.is-open {
  transform: none;
}

.hn-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hn-s3);
  padding: var(--hn-s3) var(--hn-s4);
  border-bottom: 1px solid var(--hn-line);
}

.hn-drawer__top img {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.hn-drawer__nav {
  margin: 0;
  padding: var(--hn-s3) var(--hn-s2);
  list-style: none;
}

.hn-drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: var(--hn-s2) var(--hn-s3);
  border-radius: var(--hn-r-md);
  color: var(--hn-text);
  font: 600 1rem / 1.3 var(--hn-font-body);
}

.hn-drawer__nav a:hover,
.hn-drawer__nav a:focus-visible {
  background: var(--hn-surface-2);
  color: var(--hn-accent-text);
}

.hn-drawer__nav ul {
  margin: 0 0 var(--hn-s2) var(--hn-s4);
  padding: 0;
  border-left: 2px dashed var(--hn-line);
  list-style: none;
}

.hn-drawer__nav ul a {
  min-height: 42px;
  color: var(--hn-muted);
  font-size: var(--hn-fs-sm);
}

.hn-drawer__foot {
  margin-top: auto;
  display: grid;
  gap: var(--hn-s3);
  padding: var(--hn-s4);
  border-top: 1px solid var(--hn-line);
}

.hn-drawer__label {
  color: var(--hn-muted-dim);
  font: 700 0.6875rem / 1 var(--hn-font-data);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hn-drawer__foot .hn-select {
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hn-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 540px;
  padding-block: var(--hn-s8) var(--hn-s7);
  background-color: var(--hn-surface);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

@supports (min-height: 70svh) {
  .hn-hero {
    min-height: max(540px, 70svh);
  }
}

.hn-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(7, 8, 12, 0.72) 0%,
      rgba(7, 8, 12, 0.55) 42%,
      var(--hn-ink) 100%
    );
}

.hn-hero__inner {
  display: grid;
  gap: var(--hn-s4);
  max-width: 760px;
}

.hn-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--hn-s2);
  color: var(--hn-accent-text);
  font: 700 var(--hn-fs-data) / 1 var(--hn-font-data);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hn-hero__title {
  margin: 0;
  font-size: var(--hn-fs-display);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.hn-hero__text {
  max-width: 56ch;
  margin: 0;
  color: #c7ced7;
  font-size: 1.0625rem;
}

/* search — the one place the ticket motif repeats outside the cards */
.hn-search {
  display: grid;
  gap: var(--hn-s2);
  margin-top: var(--hn-s2);
  padding: var(--hn-s3);
  border: 1px solid var(--hn-line-strong);
  border-radius: var(--hn-r-lg);
  background: rgba(16, 19, 26, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--hn-shadow);
}

.hn-search__field {
  display: flex;
  align-items: center;
  gap: var(--hn-s3);
  min-height: 48px;
  padding-inline: var(--hn-s3);
  border-radius: var(--hn-r-md);
  background: var(--hn-surface-2);
}

.hn-search__field i {
  flex: 0 0 auto;
  color: var(--hn-accent-text);
  font-size: 0.875rem;
}

/* 16px keeps ios from zooming the viewport on focus */
.hn-search__field select,
.hn-search__field input {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--hn-text);
  font-family: var(--hn-font-body);
  font-size: 16px;
}

.hn-search__field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.hn-search__field select option {
  background: var(--hn-surface);
}

.hn-search__field input::placeholder {
  color: var(--hn-muted-dim);
}

.hn-search__field input:focus,
.hn-search__field select:focus {
  outline: 0;
}

.hn-search__field:focus-within {
  box-shadow: inset 0 0 0 1px var(--hn-accent-text);
}

@media (min-width: 768px) {
  .hn-search {
    grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.6fr) auto;
    align-items: center;
  }

  /* perforated divider between the two fields */
  .hn-search__field--split {
    position: relative;
  }

  .hn-search__field--split::after {
    content: '';
    position: absolute;
    right: calc(var(--hn-s2) * -1);
    top: 20%;
    bottom: 20%;
    border-right: 2px dashed var(--hn-line-strong);
  }
}

/* --------------------------------------------------------------------------
   8. Event card — the signature
   -------------------------------------------------------------------------- */
.hn-grid {
  display: grid;
  gap: var(--hn-s4);
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .hn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hn-grid {
    gap: var(--hn-s5);
    grid-template-columns: repeat(3, 1fr);
  }
}

.hn-event {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-r-lg);
  background: var(--hn-surface);
  overflow: hidden;
  transition: transform 0.22s var(--hn-ease), border-color 0.22s var(--hn-ease);
}

.hn-event:hover {
  transform: translateY(-4px);
  border-color: var(--hn-accent-line);
}

.hn-event__media {
  position: relative;
  display: block;
  aspect-ratio: 32 / 23;
  background: var(--hn-surface-2);
  overflow: hidden;
}

.hn-event__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--hn-ease);
}

.hn-event:hover .hn-event__media img {
  transform: scale(1.04);
}

.hn-event__price {
  position: absolute;
  right: var(--hn-s2);
  bottom: var(--hn-s2);
  padding: 5px var(--hn-s2);
  border-radius: var(--hn-r-sm);
  background: rgba(7, 8, 12, 0.86);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--hn-text);
  font: 700 var(--hn-fs-data) / 1.4 var(--hn-font-data);
}

.hn-event__price s {
  margin-inline-start: 4px;
  color: var(--hn-muted-dim);
  font-weight: 400;
}

/* stub + body, split by the perforation */
.hn-event__body {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  flex: 1;
}

/* the punched notches at each end of the dashed rail */
.hn-event__body::before,
.hn-event__body::after {
  content: '';
  position: absolute;
  left: 58px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hn-ink);
  transform: translate(-50%, -50%);
}

.hn-event__body::before {
  top: 0;
}

.hn-event__body::after {
  top: 100%;
}

[dir='rtl'] .hn-event__body::before,
[dir='rtl'] .hn-event__body::after {
  left: auto;
  right: 58px;
  transform: translate(50%, -50%);
}

.hn-event__stub {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: var(--hn-s3) 0;
  border-right: 2px dashed var(--hn-line-strong);
  text-align: center;
}

[dir='rtl'] .hn-event__stub {
  border-right: 0;
  border-left: 2px dashed var(--hn-line-strong);
}

.hn-event__day {
  color: var(--hn-accent-text);
  font: 400 1.5rem / 0.9 var(--hn-font-display);
}

.hn-event__mon,
.hn-event__time {
  color: var(--hn-muted);
  font: 400 0.625rem / 1.2 var(--hn-font-data);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hn-event__time {
  color: var(--hn-muted-dim);
}

.hn-event__main {
  display: flex;
  flex-direction: column;
  gap: var(--hn-s2);
  padding: var(--hn-s3) var(--hn-s4);
}

.hn-event__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  font-size: 1.0625rem;
  line-height: 1.15;
}

.hn-event__title a:hover {
  color: var(--hn-accent-text);
}

.hn-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hn-s1) var(--hn-s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hn-event__meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hn-muted);
  font: 400 var(--hn-fs-data) / 1.4 var(--hn-font-data);
}

.hn-event__meta i {
  color: var(--hn-muted-dim);
  font-size: 0.75rem;
}

/* two lines of description, then ellipsis */
.hn-event__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  color: var(--hn-muted);
  font-size: var(--hn-fs-sm);
  line-height: 1.5;
}

.hn-event__by {
  color: var(--hn-muted-dim);
  font-size: var(--hn-fs-data);
  font-family: var(--hn-font-data);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hn-event__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--hn-s2);
  flex: 0 0 auto;
}

.hn-event__wish {
  width: 38px;
  height: 38px;
  font-size: 0.8125rem;
}

.hn-event__wish.is-saved {
  border-color: var(--hn-accent-text);
  background: var(--hn-accent-soft);
  color: var(--hn-accent-text);
}

.hn-event__by:hover {
  color: var(--hn-accent-text);
}

.hn-event__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hn-s3);
  margin-top: auto;
  padding-top: var(--hn-s3);
  border-top: 1px solid var(--hn-line);
}

.hn-more {
  display: flex;
  justify-content: center;
  margin-top: var(--hn-s6);
}

/* --------------------------------------------------------------------------
   9. Category rail
   -------------------------------------------------------------------------- */
.hn-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--hn-s3);
  margin-inline: calc(var(--hn-gutter) * -1);
  padding-inline: var(--hn-gutter);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hn-rail::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .hn-rail {
    grid-auto-columns: 44%;
  }
}

@media (min-width: 1024px) {
  .hn-rail {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

.hn-cat {
  position: relative;
  display: grid;
  align-items: end;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-r-lg);
  background: var(--hn-surface-2);
  overflow: hidden;
  scroll-snap-align: start;
}

.hn-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--hn-ease);
}

.hn-cat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 8, 12, 0) 35%,
    rgba(7, 8, 12, 0.9) 100%
  );
}

.hn-cat:hover img {
  transform: scale(1.06);
}

.hn-cat__label {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: var(--hn-s4);
  font-size: 1.125rem;
}

.hn-cat:hover .hn-cat__label {
  color: var(--hn-accent-text);
}

/* --------------------------------------------------------------------------
   10. About / features / testimonials / partners
   -------------------------------------------------------------------------- */
.hn-split {
  display: grid;
  gap: var(--hn-s6);
  align-items: center;
}

@media (min-width: 1024px) {
  .hn-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--hn-s8);
  }
}

.hn-split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--hn-r-lg);
  border: 1px solid var(--hn-line);
}

.hn-prose > * + * {
  margin-top: var(--hn-s3);
}

.hn-prose ul,
.hn-prose ol {
  padding-inline-start: var(--hn-s5);
  color: var(--hn-muted);
}

.hn-cards {
  display: grid;
  gap: var(--hn-s4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .hn-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hn-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hn-feature {
  display: grid;
  gap: var(--hn-s3);
  padding: var(--hn-s5);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-r-lg);
  background: var(--hn-surface);
  transition: border-color 0.2s var(--hn-ease);
}

.hn-feature:hover {
  border-color: var(--hn-accent-line);
}

.hn-feature > i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--hn-r-md);
  background: var(--hn-accent-soft);
  color: var(--hn-accent-text);
  font-size: 1.125rem;
}

.hn-feature h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.hn-feature p {
  margin: 0;
  font-size: var(--hn-fs-sm);
}

/* quotes sit inside a half-width column, so they never go past two up */
.hn-cards--quotes {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .hn-cards--quotes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hn-quote {
  display: grid;
  gap: var(--hn-s4);
  padding: var(--hn-s5);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-r-lg);
  background: var(--hn-surface);
}

.hn-quote p {
  margin: 0;
  font-size: var(--hn-fs-sm);
}

.hn-quote__who {
  display: flex;
  align-items: center;
  gap: var(--hn-s3);
}

.hn-quote__who img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.hn-quote__who h3 {
  margin: 0;
  font-size: 0.9375rem;
}

.hn-quote__who span {
  color: var(--hn-muted-dim);
  font: 400 var(--hn-fs-data) / 1.4 var(--hn-font-data);
}

.hn-stars {
  color: var(--hn-accent-text);
  font-size: 0.6875rem;
  letter-spacing: 1px;
}

.hn-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--hn-s5) var(--hn-s7);
}

.hn-logos img {
  max-width: 120px;
  height: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s var(--hn-ease), filter 0.2s var(--hn-ease);
}

.hn-logos a:hover img {
  opacity: 1;
  filter: none;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.hn-footer {
  border-top: 1px solid var(--hn-line);
  background: var(--hn-ink);
  color: var(--hn-muted);
  font-family: var(--hn-font-body);
}

.hn-footer__grid {
  display: grid;
  gap: var(--hn-s6);
  padding-block: var(--hn-s7);
}

@media (min-width: 768px) {
  .hn-footer__grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: var(--hn-s7);
  }
}

.hn-footer h2 {
  margin: 0 0 var(--hn-s4);
  color: var(--hn-text);
  font-family: var(--hn-font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hn-footer__logo img {
  height: 40px;
  width: auto;
  max-width: 180px;
  margin-bottom: var(--hn-s4);
  object-fit: contain;
}

.hn-footer p {
  margin: 0 0 var(--hn-s4);
  color: var(--hn-muted);
  font-size: var(--hn-fs-sm);
}

.hn-footer__links {
  display: grid;
  gap: var(--hn-s1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hn-footer__links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--hn-muted);
  font-size: var(--hn-fs-sm);
}

.hn-footer__links a:hover {
  color: var(--hn-accent-text);
}

.hn-contact {
  display: grid;
  gap: var(--hn-s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hn-contact li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--hn-s2);
  align-items: start;
  font-size: var(--hn-fs-sm);
}

.hn-contact i {
  margin-top: 4px;
  color: var(--hn-accent-text);
  font-size: 0.8125rem;
}

.hn-contact a {
  color: var(--hn-muted);
  overflow-wrap: anywhere;
}

.hn-contact a:hover {
  color: var(--hn-accent-text);
}

.hn-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hn-s2);
}

.hn-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-r-md);
  color: var(--hn-muted);
  font-size: 0.9375rem;
  transition: color 0.16s var(--hn-ease), border-color 0.16s var(--hn-ease),
    background-color 0.16s var(--hn-ease);
}

.hn-social a:hover {
  background: var(--hn-accent-soft);
  border-color: var(--hn-accent-text);
  color: var(--hn-accent-text);
}

.hn-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hn-s3);
  padding-block: var(--hn-s4);
  border-top: 1px solid var(--hn-line);
}

.hn-footer__bar p {
  margin: 0;
  color: var(--hn-muted-dim);
  font: 400 var(--hn-fs-data) / 1.6 var(--hn-font-data);
}

/* scroll-to-top: kept on the legacy classes so script.js still binds */
.hn-footer .scroll-top {
  position: fixed;
  right: var(--hn-s4);
  bottom: var(--hn-s4);
  z-index: 800;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hn-accent-line);
  border-radius: 50%;
  background: var(--hn-surface);
  color: var(--hn-accent-text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s var(--hn-ease), transform 0.24s var(--hn-ease),
    visibility 0.24s;
}

.hn-footer .scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hn-footer .scroll-top:hover {
  background: var(--hn-accent);
  color: var(--hn-accent-ink);
}

/* --------------------------------------------------------------------------
   12. Motion
   -------------------------------------------------------------------------- */
.hn-reveal > * {
  animation: hn-rise 0.6s var(--hn-ease) both;
}

.hn-reveal > *:nth-child(2) {
  animation-delay: 0.08s;
}
.hn-reveal > *:nth-child(3) {
  animation-delay: 0.16s;
}
.hn-reveal > *:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes hn-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hn-reveal > *,
  .hn-event,
  .hn-event__media img,
  .hn-cat img,
  .hn-btn,
  .hn-drawer,
  .hn-scrim,
  .hn-footer .scroll-top {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
