/* Lumin — hub styles */

:root {
  --bg: #0c0e14;
  --bg-elevated: #141820;
  --bg-card: #1a1f2b;
  --text: #e8eaef;
  --text-muted: #9aa3b5;
  --accent: #e8b84a;
  --accent-soft: rgba(232, 184, 74, 0.15);
  --accent-glow: rgba(232, 184, 74, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --feel: #6ec9a0;
  --ask: #7ba4e8;
  --evidence: #c49ae8;
  --recovery: #e89a8a;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

/* NOTE: do NOT enable `scroll-behavior: smooth` here — it animates anchor jumps
   (e.g. clicking the "Work" nav link), which then fights with the WORK tunnel's
   GSAP ScrollTrigger scrub and leaves the timeline / masks in a broken state.
   Anchor jumps now snap instantly; ScrollTrigger stays in sync. */
html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(123, 164, 232, 0.08), transparent);
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--accent);
}

/* Typography */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

/* Instagram strip */

/* .ig-strip / .recovery-teaser styles below are currently UNUSED — these
   sections are removed from index.html for now. Kept here so you can drop
   the markup back in without restoring CSS. */

.ig-strip {
  padding: 5rem 0 4rem;
  border-top: 1px solid var(--border);
}

.ig-strip__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ig-strip__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ig-strip__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0;
}

.ig-strip__title a {
  color: var(--text);
}

.ig-strip__title a:hover {
  color: var(--accent);
}

.ig-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin-inline: auto;
}

.ig-strip__grid .instagram-media {
  min-width: 0 !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
}

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

/* Layout */

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-main a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

/* Portrait X-ray scan — used in .hero-scan */

.home-portrait {
  --scan: 0;
  width: 100%;
  margin-inline: auto;
}

.home-portrait__textline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.65rem 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-portrait__textline span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.home-portrait__textline p {
  margin: 0;
  flex-shrink: 0;
}

.portrait-scan__frame {
  position: relative;
  aspect-ratio: 400 / 560;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ns-resize;
  touch-action: none;
  background: #0a1620;
  box-shadow:
    0 0 0 1px rgba(94, 224, 255, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

.portrait-scan__layers {
  position: absolute;
  inset: 0;
}

.portrait-scan__layer {
  position: absolute;
  inset: 0;
}

.portrait-scan__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-scan__layer--anatomy {
  z-index: 1;
}

.portrait-scan__surface {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* clip-path driven by js/portrait-scan.js */
}

.portrait-scan__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  z-index: 4;
  height: 2px;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.2s;
}

.portrait-scan__line span {
  display: block;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 20%,
    #6ef0ff 50%,
    var(--accent) 80%,
    transparent
  );
  box-shadow:
    0 0 12px rgba(110, 240, 255, 0.8),
    0 0 28px rgba(232, 184, 74, 0.35);
}

.portrait-scan__line::before,
.portrait-scan__line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #6ef0ff;
  box-shadow: 0 0 8px #6ef0ff;
}

.portrait-scan__line::before { left: 0; }
.portrait-scan__line::after { right: 0; }

.portrait-scan__hint {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(110, 240, 255, 0.85);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .portrait-scan__line {
    top: 58% !important;
  }

  .portrait-scan__frame {
    cursor: default;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

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

.btn-primary {
  background: var(--accent-soft);
  border-color: rgba(232, 184, 74, 0.4);
  color: var(--accent);
}

.btn-primary:hover {
  background: rgba(232, 184, 74, 0.25);
  color: var(--accent);
}

/* Pathways */

.pathways {
  padding: 0 0 4rem;
}

.pathways-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.pathways-intro h2 {
  font-size: 1.35rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

/* Minimal editorial index (replaces the old 4-card pathway grid).
   Below pathway-card styles are kept as DEAD CODE in case you want to
   restore the card layout — none of these class names are in the HTML now. */

.pathways {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.pathways__container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 2.5rem);
}

.pathways__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pathways__row {
  border-top: 1px solid var(--border);
}

.pathways__row:last-child {
  border-bottom: 1px solid var(--border);
}

.pathways__row a {
  display: grid;
  grid-template-columns: 3rem 1fr auto 1.75rem;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.6rem 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: padding 0.35s ease, color 0.35s ease;
}

.pathways__row a:hover {
  padding-left: 1.25rem;
  color: var(--accent);
}

.pathways__num {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.pathways__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.pathways__desc {
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
}

.pathways__arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.35s ease, color 0.35s ease;
  text-align: right;
}

.pathways__row a:hover .pathways__arrow {
  transform: translateX(10px);
  color: var(--accent);
}

@media (max-width: 720px) {
  .pathways__row a {
    grid-template-columns: 2.25rem 1fr 1.5rem;
    grid-template-rows: auto auto;
    gap: 0.35rem 1rem;
    padding: 1.25rem 0.25rem;
  }
  .pathways__desc {
    grid-column: 2 / span 2;
    grid-row: 2;
    white-space: normal;
  }
  .pathways__arrow {
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* ----- dead code: old card grid, no longer in HTML ---------------------- */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 980px) {
  .pathway-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-inline: auto;
  }
}

.pathway-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  overflow: hidden;
}

.pathway-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.9;
}

.pathway-card--feel::before { background: var(--feel); }
.pathway-card--ask::before { background: var(--ask); }
.pathway-card--evidence::before { background: var(--evidence); }
.pathway-card--recovery::before { background: var(--recovery); }

.pathway-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.pathway-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.pathway-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.pathway-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.pathway-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pathway-card--feel .pathway-meta { color: var(--feel); }
.pathway-card--ask .pathway-meta { color: var(--ask); }
.pathway-card--evidence .pathway-meta { color: var(--evidence); }
.pathway-card--recovery .pathway-meta { color: var(--recovery); }

.pathway-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pathway-link::after {
  content: "→";
  transition: transform 0.2s;
}

.pathway-card:hover .pathway-link::after {
  transform: translateX(4px);
}

/* Latest */

.latest {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.75rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.content-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.content-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.content-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.content-card--short .content-card-thumb {
  aspect-ratio: 9 / 16;
  max-height: 220px;
}

.content-card-thumb-placeholder {
  font-size: 2.5rem;
  opacity: 0.35;
}

.content-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.content-card-badge--tiktok { color: #69c9d0; }
.content-card-badge--youtube { color: #ff6b6b; }
.content-card-badge--read { color: var(--evidence); }

.content-card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.content-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.content-card-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.content-card-body .card-link {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.content-card--coming {
  opacity: 0.65;
  pointer-events: none;
}

.content-card--coming .content-card-body::after {
  content: "Coming soon";
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Recovery teaser */

.recovery-teaser {
  padding: 3rem 0 4rem;
}

.recovery-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, rgba(232, 154, 138, 0.12), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--recovery);
}

.recovery-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.recovery-banner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 50ch;
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

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

.footer-copy {
  width: 100%;
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Mobile nav */

@media (max-width: 640px) {
  .pathway-grid,
  .latest-grid {
    grid-template-columns: 1fr;
  }

  .pathway-grid {
    max-width: 420px;
    margin-inline: auto;
  }

  .latest-grid {
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .nav-main.is-open {
    display: flex;
  }

  .site-header .container {
    position: relative;
  }

  .hero {
    padding-top: 3rem;
  }

  .recovery-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
