/* =========================================================
   NIVO — event space marketing site
   Brand: monochrome, architectural, generous whitespace,
   thin hairline rules, letter-spaced uppercase labels.
   ========================================================= */

:root {
  --bg: #fbf7f4;
  --bg-alt: #f2ede6;
  --ink: #1a1a18;
  --ink-soft: #6b6862;
  --line: rgba(26, 26, 24, 0.14);
  --line-strong: rgba(26, 26, 24, 0.28);
  --max: 1180px;

  --font-display: 'Jost', sans-serif;
  --font-label: 'Poppins', sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  max-width: 16ch;
}

.section-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 var(--space-5);
}

.fact-note {
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.65;
  font-family: var(--font-label);
  letter-spacing: 0.02em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  background: transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: transparent; color: var(--ink); }

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-small { padding: 11px 20px; font-size: 11px; }

.btn-full { width: 100%; padding: 17px 30px; border: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 247, 244, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 84px;
}

.brand { flex-shrink: 0; }
.brand-mark { height: 22px; width: auto; }

.main-nav {
  display: flex;
  gap: var(--space-4);
  margin-right: auto;
  margin-left: var(--space-5);
}

.nav-link {
  font-family: var(--font-label);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.25s ease;
}
.nav-link:hover::after { right: 0; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 84px;
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.hero-logo {
  width: min(560px, 80vw);
  margin: var(--space-3) 0 var(--space-4);
}

.hero-subhead {
  max-width: 46ch;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 var(--space-4);
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: var(--line-strong);
  overflow: hidden;
}
.scroll-cue span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--ink);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ---------- keyword strip ---------- */
.keyword-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.keyword-strip-inner {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}
.keyword-strip .dot { opacity: 0.4; }

/* ---------- sections ---------- */
.section {
  padding: var(--space-7) 0;
}
.section-alt { background: var(--bg-alt); }

/* ---------- feature grid (about) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}
.feature-index {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}
.feature h3 {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.feature p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 32ch;
}

/* ---------- facts row ---------- */
.facts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}
.fact { display: flex; flex-direction: column; gap: 10px; }
.fact-label {
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.fact-value {
  font-size: 19px;
  line-height: 1.5;
}

/* ---------- events grid ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.event-card {
  background: var(--bg-alt);
  padding: var(--space-4) var(--space-3);
}
.event-icon {
  width: 40px;
  height: 40px;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.event-icon svg { width: 100%; height: 100%; }
.event-card h3 {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}
.event-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- gallery ---------- */
.gallery {
  column-count: 3;
  column-gap: var(--space-2);
}
.g-item {
  display: block;
  width: 100%;
  margin: 0 0 var(--space-2);
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
  break-inside: avoid;
}
.g-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.25s ease, transform 0.5s ease;
}
.g-item:hover img { transform: scale(1.02); }
.g-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gallery-msg {
  font-size: 15px;
  color: var(--ink-soft);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 13, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: min(94vw, 1800px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(251, 247, 244, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #fbf7f4;
  font-family: var(--font-label);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-btn:hover { background: rgba(251, 247, 244, 0.14); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-count {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(251, 247, 244, 0.7);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-6);
  align-items: start;
}

.info-list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  border-top: 1px solid var(--line);
}
.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-label {
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.info-value { font-size: 16px; text-align: right; }
.info-value a:hover { text-decoration: underline; }

.map-embed {
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-4);
  filter: grayscale(0.15) contrast(1.02);
}
.map-embed iframe { display: block; }

.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.social-links a {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
}
.social-soon {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: var(--space-4);
  border-radius: 2px;
}

.form-row { margin-bottom: var(--space-3); }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.form-row-split .form-row { margin-bottom: 0; }

label {
  display: block;
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 2px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; min-height: 90px; }

.contact-form .btn-full { margin-top: var(--space-2); }

.form-status {
  margin: var(--space-2) 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  min-height: 1.2em;
}
.form-status.is-error { color: #a4372c; }
.form-status.is-success { color: #3c6e4a; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.footer-mark { height: 16px; width: auto; opacity: 0.85; }
.footer-nav {
  display: flex;
  gap: var(--space-3);
  margin-right: auto;
}
.footer-nav a {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--ink); }
.footer-copy {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
  white-space: nowrap;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .feature-grid, .facts-row { grid-template-columns: 1fr; gap: var(--space-4); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .gallery { column-count: 2; }
}

@media (max-width: 760px) {
  :root { --space-7: 88px; }

  /* backdrop-filter on an ancestor creates a new containing block for
     position:fixed descendants, which breaks the full-screen mobile nav
     below — drop it on mobile in favor of a solid header background. */
  .site-header {
    backdrop-filter: none;
    background: var(--bg);
  }

  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-3);
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav .nav-link { font-size: 16px; }

  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .events-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer-inner { flex-wrap: wrap; }
  .footer-nav { order: 3; width: 100%; }
  .info-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .info-value { text-align: left; }
}

@media (max-width: 480px) {
  .gallery { column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-prev { left: 14px; }
  .lightbox-next { right: 14px; }
  .lightbox-count { bottom: 28px; }
}
