/* Afterhours — AI Site template
   Design tokens derived from the reference study (black editorial, high-contrast serif,
   centred composition, generous vertical rhythm). */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #a9a7a3;
  --muted-soft: #8c8a86;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --radius-card: 20px;
  --radius-pill: 999px;
  --container: 1280px;
  --gutter: 24px;
  --font-serif: "Instrument Serif", "Didot", "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translate(-50%, -180%);
  z-index: 200;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  transition: transform 0.25s var(--ease-soft);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  width: min(410px, calc(100% - 32px));
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 22px;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.55);
  border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  letter-spacing: -0.005em;
  line-height: 1;
}

.nav-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease-soft), opacity 0.3s var(--ease-soft);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 58;
  width: min(408px, calc(100% - 32px));
  padding: 0 0 1rem;
  border-radius: 15px;
  background: rgba(24, 24, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft), visibility 0.35s var(--ease-soft);
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body.is-locked .nav-pill {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  padding: 64px 1.25rem 0.35rem;
}
.nav-overlay-inner a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s var(--ease-soft);
}
.nav-overlay-inner a:hover,
.nav-overlay-inner a:focus-visible { color: #fff; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  transition: background-color 0.35s var(--ease-soft), color 0.35s var(--ease-soft);
}
.btn--primary { background: #ffffff; color: #000000; }
.btn--primary:hover { background: #e4e0da; }
.btn--ghost {
  background: var(--surface-strong);
  color: #ffffff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.24); }
.btn--block { width: 100%; height: 46px; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: #0a0a0a; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.62) 100%);
}

.hero-inner {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.hero--top .hero-inner { padding-top: clamp(7rem, 15vh, 11rem); padding-bottom: 3rem; align-self: flex-start; }
.hero--bottom .hero-inner { padding-bottom: clamp(3.5rem, 11vh, 7.5rem); margin-top: auto; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.9vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
}
.hero-sub { margin-top: 1.35rem; color: rgba(255, 255, 255, 0.72); font-size: 1.0625rem; }
.hero-actions {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.55vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-sub { margin-top: 1.2rem; color: var(--muted); font-size: 1rem; }
.section-head .btn { margin-top: 1.9rem; }

.statement { padding: clamp(5rem, 11vw, 9.5rem) 0; text-align: center; }
.statement .section-sub {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.95;
}

.media-band {
  width: 100%;
  height: clamp(320px, 55vw, 720px);
  overflow: hidden;
  background: #0a0a0a;
}
.media-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- grids & cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}

.menu-card { text-align: center; }
.menu-card-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #101010;
}
.menu-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-soft);
}
.menu-card:hover .menu-card-media img { transform: scale(1.035); }
.menu-card-title {
  margin-top: 1.15rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.menu-card-desc { margin-top: 0.4rem; color: var(--muted); font-size: 0.875rem; }

.event-card {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 11 / 10;
  background: #0a0a0a;
  isolation: isolate;
}
.event-card-media { position: absolute; inset: 0; z-index: -2; }
.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-soft);
}
.event-card:hover .event-card-media img { transform: scale(1.04); }
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,0.78) 100%);
}
.event-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.15rem 1.25rem; }
.event-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
}
.event-date svg { width: 13px; height: 13px; flex: none; }
.event-card-title {
  margin-top: 0.3rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- marquee gallery */

.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  gap: clamp(0.75rem, 1.2vw, 1.1rem);
  width: max-content;
  animation: marquee-scroll 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: none;
  width: clamp(210px, 24vw, 350px);
  aspect-ratio: 1 / 1.06;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
}
.marquee-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------- detail (event) */

.detail { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); }
.detail-oneliner { text-align: center; }
.detail-media {
  margin: clamp(2.25rem, 5vw, 3.5rem) 0 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #0a0a0a;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail h2 {
  margin: clamp(2rem, 4vw, 2.9rem) 0 0.9rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.01em;
}
.detail p {
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.85;
  white-space: pre-line;
}
.detail .detail-back {
  margin-top: 2.75rem;
  font-size: 0.8125rem;
  color: var(--muted-soft);
}
.detail .detail-back a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease-soft);
}
.detail .detail-back a:hover { color: #ffffff; }
.detail-oneliner .event-date { margin-top: 1.15rem; }
.detail-oneliner .hero-actions { margin-top: 1.75rem; }

/* ---------------------------------------------------------------- form */

.form { display: grid; gap: 1.05rem; max-width: 430px; margin: 0 auto; }
.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field label { font-size: 0.8125rem; color: #ffffff; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s var(--ease-soft);
}
.field textarea { min-height: 132px; border-radius: 18px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-soft); }
.field input:focus,
.field textarea:focus { border-color: rgba(255, 255, 255, 0.5); }
.field input:user-invalid,
.field textarea:user-invalid { border-color: rgba(214, 96, 74, 0.7); }
.field input[type="date"],
.field input[type="time"] { color-scheme: dark; }

.form-note { font-size: 0.75rem; line-height: 1.7; color: var(--muted-soft); text-align: center; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.form-status { font-size: 0.8125rem; text-align: center; color: var(--muted); min-height: 1.2em; }
.form-status:empty { display: none; }
.form-status.is-error { color: #e0806c; }

/* ---------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  max-width: 58rem;
  margin: 0 auto;
  row-gap: clamp(1.75rem, 3vw, 3rem);
}
.contact-block h3 {
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted-soft);
}
.contact-block p { font-size: 0.9375rem; margin-bottom: 0.3rem; }
.contact-block a { transition: color 0.3s var(--ease-soft); }
.contact-block a:hover { color: var(--muted); }

/* ---------------------------------------------------------------- footer */

.site-footer { padding-top: clamp(3rem, 7vw, 6rem); }
.footer-wordmark-wrap { overflow: hidden; padding: 0 0.4vw; }
.footer-wordmark {
  font-family: var(--font-serif);
  font-size: min(19.1vw, 306px);
  line-height: 0.76;
  letter-spacing: -0.028em;
  text-align: center;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.footer-bar { margin-top: clamp(1.25rem, 2.5vw, 2.25rem); border-top: 1px solid var(--line); }
.footer-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.15rem var(--gutter) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-soft);
}
.footer-bar-inner a { transition: color 0.3s var(--ease-soft); }
.footer-bar-inner a:hover { color: #fff; }

/* ---------------------------------------------------------------- motion */

@keyframes reveal-up {
  from { transform: translateY(20px); }
  to { transform: none; }
}
html.js [data-reveal] { opacity: 1; }
html.js [data-reveal].is-visible { animation: reveal-up 0.9s var(--ease-soft) both; }
html.js [data-reveal][data-reveal-delay="1"] { animation-delay: 0.09s; }
html.js [data-reveal][data-reveal-delay="2"] { animation-delay: 0.18s; }
html.js [data-reveal][data-reveal-delay="3"] { animation-delay: 0.27s; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; max-width: 34rem; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --radius-card: 16px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .hero--top .hero-inner { padding-top: clamp(6rem, 18vh, 8rem); }
  .hero-title { font-size: clamp(2.15rem, 9vw, 2.75rem); }
  .hero-sub { font-size: 0.9375rem; }
  .nav-pill { width: calc(100% - 24px); height: 52px; padding: 0 10px 0 18px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bar-inner { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .event-card { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; animation: none; }
  .marquee-track { animation: none; }
  .menu-card-media img,
  .event-card-media img { transition: none; }
}

/* ---------------------------------------------------------------- home hero (stacked) */

.hero--stack {
  display: block;
  min-height: 0;
  padding: clamp(8rem, 15vh, 12rem) 0 0;
  background: #000000;
}
.hero--stack::after { display: none; }
.hero--stack .hero-intro {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.hero--stack .hero-frame {
  position: relative;
  height: clamp(360px, 58vh, 700px);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background: #000000;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 26%, #000000 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 26%, #000000 100%);
}
.hero--stack .hero-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- gallery carousel */

.gallery { position: relative; }
.gallery-controls { display: none; }

.detail + .detail { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------------------------------------------------------------- form states */

.field-error { border-color: rgba(214, 96, 74, 0.75) !important; }
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
}
.checkbox-field input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  accent-color: #ffffff;
  border-radius: 4px;
}
.checkbox-field a { text-decoration: underline; text-underline-offset: 2px; }
.checkbox-field.field-error { color: #e0806c; }
.form-status.is-success { color: #ffffff; }

@media (max-width: 768px) {
  .marquee {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-item { width: 76vw; scroll-snap-align: center; }
  .marquee-item[data-clone="true"] { display: none; }
  .gallery-controls {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.1rem;
  }
  .gallery-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s var(--ease-soft);
  }
  .gallery-btn:hover { background: rgba(255, 255, 255, 0.18); }
  .gallery-btn svg { width: 16px; height: 16px; }
}
