/* =========================================================
   ALVIN NG — Personal Brand Site
   Design system: modeled on tonyrobbins.com — pure black/white
   alternating panels, white-pill CTAs, monochrome accents,
   color comes only from photography, never from UI chrome.
   ========================================================= */

:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-faint: #6b6b6b;

  --red: #d81f2a;
  --red-dark: #6e0f18;
  --red-bright: #ef3b40;
  --steel: #35363c;

  --gradient-red: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);

  --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.5);

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-impact: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --radius: 16px;
  --radius-sm: 10px;
}

/* Light-panel variant — redefines the same tokens so every
   component (cards, tags, buttons, stats...) re-themes for free */
.theme-light {
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --surface: #f4f4f4;
  --surface-2: #ececec;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #0a0a0a;
  --text-muted: #56565a;
  --text-faint: #8a8a8a;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

section {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  flex-shrink: 0;
}

.text-muted { color: var(--text-muted); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

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

.btn-outline:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: #0a0a0a;
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  background: rgba(5, 5, 6, 0.4);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(5, 5, 6, 0.85);
  border-bottom-color: var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand span {
  color: var(--text-faint);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta .btn {
  padding: 11px 22px;
  font-size: 13.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.mobile-menu .btn {
  margin-top: 12px;
  width: 100%;
}

/* ---------- Home hero (split layout: text left, framed photo right) ---------- */
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-1%, -1%); }
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
  padding: 128px 0 64px;
}

.home-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.home-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 0.35em;
}

.home-hero p.lead {
  font-family: var(--font-sans);
  font-size: 17.5px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 500px;
  letter-spacing: normal;
}

.home-hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: heroPhotoIn 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroPhotoIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.home-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.home-hero-photo .kb-img {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center 15%;
  filter: contrast(1.1) saturate(1.08) brightness(1.02);
  animation: kenburns 26s ease-in-out infinite alternate;
}


.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.page-hero .kb-bg {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center 25%;
  filter: grayscale(0.1) contrast(1.05) brightness(0.5);
  animation: kenburns 28s ease-in-out infinite alternate;
}

.page-hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.3) 0%, rgba(5, 5, 6, 0.8) 65%, rgba(5, 5, 6, 0.99) 100%);
}

.page-hero .content {
  position: relative;
  z-index: 2;
  padding: 140px 0 60px;
  width: 100%;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 780px;
  margin: 0 0 20px;
}

.page-hero p.lead {
  font-family: var(--font-sans);
  max-width: 600px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 700;
}

.bg-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Animated stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  background: var(--surface);
  padding: 44px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item .num {
  font-family: var(--font-impact);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-item .label {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 200px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.card .tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card .tag.steel {
  color: var(--text-faint);
}

.card .tag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  margin-right: 8px;
  vertical-align: middle;
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  font-family: var(--font-sans);
  margin-bottom: 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Logo cards (ventures with a downloadable brand mark) ---------- */
.logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.logo-card[data-href] {
  cursor: pointer;
}

.logo-card[data-href]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.logo-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.logo-card .logo-box {
  height: 34px;
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.logo-card .logo-box img {
  max-height: 100%;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.logo-card .logo-box.on-white {
  display: flex;
  width: fit-content;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  height: auto;
}

.logo-card .logo-box.on-white img {
  max-height: 22px;
}

/* fixed-dark chip for white/light-colored logos, so they stay
   visible even when the card sits inside a .theme-light section */
.logo-card .logo-box.on-dark {
  display: flex;
  width: fit-content;
  background: #0a0a0a;
  padding: 8px 14px;
  border-radius: 8px;
  height: auto;
}

.logo-card .logo-box.on-dark img {
  max-height: 22px;
}

/* fixed-size square badge for icon-only marks (no wordmark), so they
   carry the same visual weight as the wider wordmark logos next to
   them in a row instead of shrinking down to a tiny sliver */
.logo-card .logo-box.icon-chip {
  width: 68px;
  height: 68px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  justify-content: center;
}

.logo-card .logo-box.icon-chip.on-white {
  background: #fff;
  padding: 6px;
}

.logo-card .logo-box.icon-chip img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
}

/* shared bottom-pinned action row: keeps CTAs/social icons aligned
   on one line at the same baseline across cards in a row, regardless
   of how much description text sits above it */
.logo-card .card-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.logo-card .social-mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-card .social-mini a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-faint);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.logo-card .social-mini a svg {
  width: 15px;
  height: 15px;
}

.logo-card .social-mini a:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.logo-card .visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.logo-card[data-href]:hover .visit {
  opacity: 1;
  transform: translateX(0);
  color: var(--text);
}

/* small "as featured/backed by" badges pinned to a card's top-right
   corner — each chip carries its own background so light-on-dark and
   dark-on-light marks both stay legible regardless of card theme */
.logo-card .corner-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.logo-card .corner-badge .badge-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  line-height: 0;
}

.logo-card .corner-badge .badge-chip.on-white {
  background: #fff;
  border-color: rgba(10, 10, 10, 0.08);
}

.logo-card .corner-badge .badge-chip img {
  height: 13px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
}

.logo-card .corner-badge .badge-chip .badge-text {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 4px;
  color: #0a0a0a;
}

/* ---------- Timeline (About page) ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 44px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border-strong);
}

.timeline-item {
  position: relative;
  padding-bottom: 64px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text);
}

.timeline-item .period {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline-item h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.timeline-item .body-text {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 15.5px;
}

.timeline-item .tl-media {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.timeline-item .tl-media img {
  width: 170px;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: grayscale(0.15) contrast(1.02);
  border: 1px solid var(--border);
  transition: filter 0.3s ease;
}

.timeline-item .tl-media img:hover {
  filter: grayscale(0) contrast(1.05);
}

/* ---------- Quote carousel ---------- */
.quote-carousel {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-carousel .mark {
  font-family: var(--font-impact);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-faint);
  line-height: 1;
  margin-bottom: 10px;
}

.quote-slide {
  display: none;
}

.quote-slide.active {
  display: block;
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-slide p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.45;
}

.quote-slide .who {
  margin-top: 20px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.quote-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.quote-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quote-dot.active {
  background: var(--text);
  transform: scale(1.3);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.02);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.05);
}

.gallery-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}

.gallery-item:hover .cap {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 3, 4, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox .cap {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

.filter-tab {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.filter-tab.active,
.filter-tab:hover {
  color: var(--bg);
  border-color: var(--text);
  background: var(--text);
}

/* ---------- Event cards ---------- */
/* ---------- Event history (Events page "Recently" record) ---------- */
.event-history {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.eh-group {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
}

.eh-year {
  font-family: var(--font-impact);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-faint);
  line-height: 1;
  padding-top: 18px;
}

.eh-list {
  display: flex;
  flex-direction: column;
}

.eh-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.eh-list .eh-row:last-child {
  border-bottom: none;
}

.eh-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.eh-main h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.eh-loc {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-muted);
}

.eh-tag {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.eh-when {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-faint);
  white-space: nowrap;
  margin-left: auto;
}

@media (max-width: 640px) {
  .eh-group { grid-template-columns: 1fr; gap: 8px; }
  .eh-year { padding-top: 0; }
  .eh-when { margin-left: 0; }
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 26px;
  padding: 32px;
  align-items: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.event-card:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.event-date {
  flex-shrink: 0;
  width: 90px;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 26px;
}

.event-date .day {
  font-family: var(--font-impact);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.event-date .mon {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.event-body {
  flex: 1;
}

.event-body .kind {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.event-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.event-body p {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 14.5px;
  margin-bottom: 0;
}

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

.event-luma-embed {
  max-width: 100%;
  overflow: hidden;
}

.event-luma-embed iframe {
  max-width: 100%;
  border: none;
  border-radius: var(--radius-sm);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 110px 0;
  background: #000;
  overflow: hidden;
  text-align: center;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  font-family: var(--font-sans);
  font-size: 16.5px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}

.footer-brand .brand {
  display: block;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 340px;
  font-size: 14.5px;
  font-family: var(--font-sans);
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-faint);
}

.footer-disclaimer {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 900px;
  margin: 0 0 24px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-row a:hover {
  border-color: var(--text);
  color: var(--text);
}

.social-row a svg {
  width: 15px;
  height: 15px;
}

/* ---------- Contact page ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--text-muted);
}

#waitlist-form input {
  font-size: 14.5px;
}

#waitlist-form input:focus {
  outline: none;
  border-color: var(--text-muted);
}

.contact-info .card {
  margin-bottom: 20px;
}

.contact-info .row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Touch devices: reveal hover-only affordances on tap-only screens ---------- */
@media (hover: none) {
  .logo-card .visit {
    opacity: 1;
    transform: none;
    color: var(--text-faint);
  }

  .gallery-item .cap {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-photo {
    aspect-ratio: 4 / 3;
  }

  .dual-photo img {
    height: 360px !important;
  }

  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item.wide { grid-column: span 2; }

  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .footer-top { flex-direction: column; }
  .timeline { padding-left: 30px; }
  .timeline-item::before { left: -30px; }
  .timeline-item .tl-media img { width: 130px; height: 165px; }
  .event-card { flex-direction: column; align-items: flex-start; }
  .event-date { border-right: none; padding-right: 0; }
  .dual-photo { flex-wrap: wrap; }
  .dual-photo img { width: 100% !important; min-width: 220px; height: 340px !important; margin-top: 0 !important; }

  /* iOS Safari auto-zooms into any input/textarea/select with a
     computed font-size under 16px on focus — force 16px on touch-sized
     screens so tapping a field doesn't trigger an unwanted zoom-in. */
  .field input,
  .field textarea,
  .field select,
  #waitlist-form input {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  #waitlist-card { padding: 24px !important; }
  #waitlist-form { min-width: 0 !important; max-width: none !important; }
  #waitlist-form input { min-width: 0 !important; }
}

@media (max-width: 420px) {
  .container { padding: 0 20px; }
}
