@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --bg: #0f0e0d;
  --bg-elevated: #171513;
  --bg-subtle: #1f1c1a;
  --bg-card: #1a1715;
  --fg: #f3efe9;
  --fg-muted: #a89f95;
  --fg-subtle: #6f675f;
  --border: #2c2824;
  --border-strong: #3d3731;
  --accent: #c9a992;
  --accent-soft: #8a6f5c;
  --accent-fg: #14110f;
  --wire: #5b8def;
  --wire-bg: rgba(91, 141, 239, 0.12);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
::selection {
  background: rgba(201, 169, 146, 0.35);
  color: var(--fg);
}

.font-display { font-family: var(--font-display); }
.wire-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wire);
  background: var(--wire-bg);
  border: 1px solid rgba(91, 141, 239, 0.35);
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  line-height: 1.2;
  white-space: nowrap;
}
.wire-frame {
  outline: 1px dashed rgba(91, 141, 239, 0.45);
  outline-offset: 2px;
}
.hide-wires .wire-frame { outline: none; }
.hide-wires .wire-only { display: none !important; }

.max { max-width: 72rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) {
  .max { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.15s, background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-accent:hover { opacity: 0.9; }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
  font-weight: 500;
}
.btn-outline:hover { background: var(--bg-subtle); color: var(--fg); }

/* Age gate */
.gate-wrap {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}
.gate-wash {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #2a221c 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 100%, #1a1816 0%, transparent 50%);
}
.gate-inner {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.25rem;
}
.gate-card {
  border: 1px solid var(--border);
  background: rgba(26, 23, 21, 0.9);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
@media (min-width: 640px) {
  .gate-card { padding: 2rem; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.gate-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}
.gate-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .gate-actions { flex-direction: row; }
  .gate-actions .btn { flex: 1; }
}

/* Home */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(23, 21, 19, 0.95);
  backdrop-filter: blur(8px);
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.topbar label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  cursor: pointer;
}
.topbar .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.btn-sm {
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  color: var(--fg-subtle);
}
.btn-sm:hover { border-color: var(--border-strong); color: var(--fg-muted); }

.site-header { border-bottom: 1px solid var(--border); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .logo { font-size: 1.875rem; }
}
.logo-sub {
  display: none;
  font-size: 0.75rem;
  color: var(--fg-subtle);
  margin-left: 0.5rem;
}
@media (min-width: 640px) {
  .logo-sub { display: inline; }
}
.nav-desk {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .nav-desk { display: flex; }
}
.nav-desk a {
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.nav-desk a:hover { background: var(--bg-subtle); color: var(--fg); }
.menu-btn {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.625rem;
}
@media (min-width: 768px) {
  .menu-btn { display: none; }
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}
.nav-mobile.open { display: flex; }
@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}
.nav-mobile a {
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.nav-mobile a:hover { background: var(--bg-subtle); color: var(--fg); }

.section-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.section-label .note { font-size: 0.75rem; color: var(--fg-subtle); }

.hero {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 3.5rem;
    padding: 5rem 0;
  }
}
.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.25rem; }
}
.hero h1 .accent { color: var(--accent); }
.hero-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--fg-muted);
}
@media (min-width: 640px) {
  .hero-lead { font-size: 1.125rem; }
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; align-items: center; }
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.stats dt { font-size: 0.75rem; color: var(--fg-subtle); }
.stats dd { margin: 0.125rem 0 0; font-size: 0.875rem; font-weight: 500; }

.hero-visual {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg-card);
}
.hero-visual-inner {
  aspect-ratio: 4/5;
  background: radial-gradient(ellipse at 30% 20%, #2a2420 0%, #14110f 55%, #0f0e0d 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote-box {
  border: 1px solid rgba(61, 55, 49, 0.6);
  background: rgba(15, 14, 13, 0.4);
  border-radius: 0.5rem;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.quote-box p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.35;
  margin: 0;
}
@media (min-width: 640px) {
  .quote-box p { font-size: 1.5rem; }
}
.bar { height: 0.5rem; border-radius: 9999px; background: rgba(61, 55, 49, 0.8); margin-bottom: 0.5rem; }
.bar.w75 { width: 75%; }
.bar.w50 { width: 50%; background: rgba(44, 40, 36, 0.8); }

.block {
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.block h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
@media (min-width: 640px) {
  .block h2 { font-size: 2.25rem; }
}
.block .sub {
  margin-top: 0.5rem;
  max-width: 32rem;
  color: var(--fg-muted);
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.15s, background 0.15s;
}
.card:hover { border-color: var(--border-strong); background: var(--bg-subtle); }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
}
.card:hover h3 { color: var(--accent); }
.card p {
  margin: 0.5rem 0 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fg-muted);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.icon-box {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--accent);
  font-size: 1rem;
}
.tag { font-size: 0.75rem; color: var(--fg-subtle); }
.open-link {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.learn-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .learn-list { grid-template-columns: repeat(2, 1fr); }
}
.learn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  padding: 0.875rem 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.learn-item:hover {
  border-color: var(--border);
  background: var(--bg-card);
}
.learn-item span:first-child { font-size: 0.875rem; font-weight: 500; }
.learn-item span:last-child { font-size: 0.75rem; color: var(--fg-subtle); white-space: nowrap; }

.split {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.story {
  display: block;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}
.story:hover { border-color: var(--border-strong); }
.kind {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.story h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0.5rem 0 0;
}
.story p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.media-tile {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.media-tile .play {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  opacity: 0.75;
}

.about-grid {
  display: grid;
  gap: 2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; padding: 2rem; }
}
.about-tiles {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .about-tiles { grid-template-columns: repeat(2, 1fr); }
}
.about-tile {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--bg);
}
.about-tile h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.about-tile p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  color: var(--fg-subtle);
  font-size: 0.8125rem;
}
.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}
.classic-link {
  display: inline-flex;
  margin-top: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.classic-link:hover { background: var(--bg-subtle); color: var(--fg); }

.center-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--fg);
}


/* ========== Classic intro pair (home): #5 + Miya ========== */
.classic-intro {
  border-bottom: 1px solid var(--border);
  background: #000;
}
.classic-intro-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.65rem 0.75rem 0.85rem;
}
@media (min-width: 640px) {
  .classic-intro-inner { padding: 0.85rem 1.5rem 1rem; }
}
.classic-intro-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.classic-intro-hint {
  font-size: 0.7rem;
  color: var(--fg-subtle);
  margin: 0 0 0.55rem;
  line-height: 1.4;
}
/* Always 2 equal columns — phone or desktop (table-like row) */
.classic-intro-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  width: 100%;
  align-items: start;
}
@media (min-width: 640px) {
  .classic-intro-pair { gap: 0.65rem; }
}
.classic-intro-frame {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0a0908;
  width: 100%;
  margin: 0;
  /* Let height follow full portrait — no square crop */
  line-height: 0;
}
.classic-intro-frame img,
.classic-intro-frame video,
.hover-video-container .static-image,
.hover-video-container .hover-video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  /* show entire image; never crop bottom */
  object-fit: contain;
  object-position: center top;
  vertical-align: top;
  background: #0a0908;
}
.hover-video-container {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hover-video-container .hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  object-position: center top;
}
.hover-video-container.is-playing .static-image { visibility: hidden; }
.hover-video-container.is-playing .hover-video { display: block; }
.classic-intro-badge {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  z-index: 2;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f3efe9;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  padding: 0.15rem 0.4rem;
  pointer-events: none;
}
@media (min-width: 640px) {
  .classic-intro-badge { font-size: 0.625rem; left: 0.5rem; bottom: 0.5rem; }
}

/* ========== Age gate classic header strip (iOS-safe horizontal) ========== */
.gate-strip {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 1.15rem;
  box-sizing: border-box;
}
/*
  CSS table layout — reliable on iOS Safari for equal columns + fixed height.
  Prevents stacked full-height images when flex min-width:auto expands cells.
*/
.gate-strip-row {
  display: table;
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  height: 168px;
  background: #000;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
.gate-strip-cell {
  display: table-cell;
  width: 16.6667%;
  height: 168px;
  max-height: 168px;
  vertical-align: top;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000;
}
.gate-strip-cell img,
.gate-strip-cell video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center top;
  -webkit-object-fit: cover;
  background: #000;
}
.gate-strip-caption {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.625rem;
  color: var(--fg-subtle);
  letter-spacing: 0.03em;
  line-height: 1.35;
}
@media (min-width: 480px) {
  .gate-strip-row,
  .gate-strip-cell {
    height: 190px;
    max-height: 190px;
  }
}
@media (min-width: 720px) {
  .gate-strip-row,
  .gate-strip-cell {
    height: 220px;
    max-height: 220px;
  }
}

/* Under-18 exit splash → Cocomelon */
.gate-exit-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  box-sizing: border-box;
}
.gate-exit-splash[hidden] {
  display: none !important;
}
.gate-exit-splash img {
  display: block;
  width: min(72vw, 320px);
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}
.gate-exit-msg {
  margin: 0;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.875rem;
  color: #555;
  text-align: center;
}
/* New-site top bar emphasis */
.btn-sm.btn-forum {
  color: #3ddc84 !important;
  border-color: #3ddc84 !important;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.35);
}
.btn-sm.btn-forum:hover {
  color: #0f0e0d !important;
  background: #3ddc84 !important;
}
.btn-sm.btn-classic {
  color: #e8a0c8 !important;
  border-color: #c98aaf !important;
}
.btn-sm.btn-classic:hover {
  color: #14110f !important;
  background: #e8a0c8 !important;
}
/* 3px left inset so curved phone screens don't clip first letters */
body {
  padding-left: 3px;
}
.topbar-inner,
.max,
.classic-intro-inner,
.wrap {
  padding-left: max(3px, env(safe-area-inset-left, 0px));
}
/* keep section labels permanently off on new site */
body.hide-wires .wire-only,
body.hide-wires .section-label,
.wire-only,
.section-label.wire-only {
  display: none !important;
}