@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Instrument+Sans:wght@500;600;700&display=swap");

:root {
  --bg: #060608;
  --bg-elevated: #0c0d11;
  --panel: #111318;
  --panel-border: #232833;
  --text: #f2f3f5;
  --muted: #9aa3b2;
  --gold: #d4a853;
  --gold-soft: rgba(212, 168, 83, 0.14);
  --gold-glow: rgba(212, 168, 83, 0.35);
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --radius: 16px;
  --timeline: #3d4654;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #e8c078;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.container--wide {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header--scrolled {
  border-bottom-color: var(--panel-border);
  background: rgba(6, 6, 8, 0.92);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.site-header--minimal .logo {
  opacity: 0.85;
  font-size: 0.95rem;
}

.hero-scroll-hint {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.hero-scroll-hint:hover {
  color: var(--gold);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--gold);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, #d4a853, #9a7028);
  color: #0a0a0a;
  box-shadow: 0 4px 24px var(--gold-glow);
}

.btn--ghost {
  border-color: var(--panel-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero — cinematic story opening */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.5;
  transform: scale(1.05);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, transparent 0%, rgba(6, 6, 8, 0.85) 100%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.4) 0%, rgba(6, 6, 8, 0.2) 40%, rgba(6, 6, 8, 0.95) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero__story {
  text-align: left;
}

.hero__portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroFadeUp 0.9s ease 0.2s both;
}

.hero__headshot {
  width: min(100%, 380px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid rgba(212, 168, 83, 0.55);
  box-shadow:
    0 0 0 8px rgba(212, 168, 83, 0.08),
    0 0 80px rgba(212, 168, 83, 0.35);
}

.hero__portrait-caption {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  max-width: 22ch;
}

.hero__scroll-cta {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero__scroll-cta:hover {
  color: #e8c078;
}

.hero__opener {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 2rem;
  animation: heroFadeUp 0.9s ease both;
}

.hero__year {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(212, 168, 83, 0.35) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -0.03em;
}

.hero__opener-text {
  max-width: 28ch;
  font-size: 1.05rem;
  color: #b8c0cc;
  font-style: italic;
  line-height: 1.5;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1.5rem;
  color: var(--text);
  animation: heroFadeUp 0.9s ease 0.15s both;
}

.hero__title em {
  font-style: normal;
  color: var(--gold);
}

.hero__narrative {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
  animation: heroFadeUp 0.9s ease 0.3s both;
}

.hero__path {
  margin-bottom: 2.5rem;
  animation: heroFadeUp 0.9s ease 0.45s both;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.hero__path-track {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  min-width: min-content;
}

.hero__path-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 4.5rem;
  flex-shrink: 0;
}

.hero__path-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--timeline);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--timeline);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hero__path-node--active .hero__path-dot {
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow), 0 0 0 1px var(--gold);
}

.hero__path-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.hero__path-node--active .hero__path-label {
  color: var(--gold);
}

.hero__path-year {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: #5c6573;
  letter-spacing: 0.05em;
}

.hero__path-line {
  width: clamp(1.5rem, 4vw, 3rem);
  height: 2px;
  background: linear-gradient(90deg, var(--timeline), rgba(212, 168, 83, 0.4));
  margin-top: 4px;
  flex-shrink: 0;
}

.hero__guide {
  display: none;
}

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

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 83, 0.25);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Bridge */
.bridge {
  padding: 4rem 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--panel-border);
}

.bridge__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.bridge h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.bridge p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.bridge__highlight {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #151820, #0e1014);
  border: 1px solid var(--panel-border);
}

.bridge__highlight strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.bridge__highlight span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Journey */
.journey {
  padding: 5rem 0;
}

.journey__header {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 3.5rem;
}

.journey__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.journey__header p {
  color: var(--muted);
  margin: 0;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--timeline) 30%, var(--timeline) 70%, var(--gold));
  transform: translateX(-50%);
}

.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  position: relative;
}

.chapter::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 3px solid var(--bg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 20px var(--gold-glow);
}

.chapter:nth-child(even) .chapter__visual {
  order: 2;
}

.chapter:nth-child(even) .chapter__body {
  order: 1;
  text-align: right;
}

.chapter:nth-child(even) .chapter__body ul {
  padding-right: 1.15rem;
  padding-left: 0;
  list-style-position: inside;
}

.chapter__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  aspect-ratio: 1;
  background: #0a0b0e;
}

.chapter__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter__brands {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
}

.chapter__brands--duo,
.chapter__brands--stack {
  flex-wrap: wrap;
}

.chapter__logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.chapter__brand-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chapter__brand-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.chapter__brand-badge--leafly {
  background: rgba(76, 175, 80, 0.85);
  color: #fff;
}

.chapter__brand-badge--convoy {
  background: rgba(33, 150, 243, 0.85);
  color: #fff;
}

.chapter__brand-badge--shrapnel {
  background: rgba(180, 40, 40, 0.9);
  color: #fff;
}

.chapter__brand-badge--lok {
  background: rgba(80, 40, 120, 0.9);
  color: #fff;
}

.chapter__character {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.chapter__characters {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.35rem;
  padding: 0 0.5rem;
  z-index: 1;
}

.chapter__character--duo {
  position: static;
  transform: none;
  flex: 1;
  width: auto;
  border-radius: 10px 10px 0 0;
  object-fit: cover;
  aspect-ratio: 16/10;
}

.chapter__year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.chapter h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.chapter__role {
  color: #b8c0cc;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.chapter p {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.chapter ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #c5ccd6;
}

.chapter li {
  margin-bottom: 0.4rem;
}

.chapter li:last-child {
  margin-bottom: 0;
}

/* Today */
.today {
  padding: 5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--panel-border);
}

.today h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  text-align: center;
}

.today__intro {
  text-align: center;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto 2.5rem;
}

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

.pillar {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #141820, #0e1014);
  border: 1px solid var(--panel-border);
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.metric span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Contact */
.contact {
  padding: 4rem 0 5rem;
}

.contact-panel {
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--panel-border);
  background: linear-gradient(145deg, #141820, #0a0b0e);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.contact-panel p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 1.75rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding: 5.5rem 0 3.5rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__portrait {
    order: -1;
  }

  .hero__path-track {
    justify-content: flex-start;
  }

  .bridge__grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 12px;
  }

  .chapter {
    grid-template-columns: 1fr;
    padding-left: 2.5rem;
  }

  .chapter::before {
    left: 12px;
  }

  .chapter:nth-child(even) .chapter__visual,
  .chapter:nth-child(even) .chapter__body {
    order: unset;
    text-align: left;
  }

  .chapter:nth-child(even) .chapter__body ul {
    padding-left: 1.15rem;
    padding-right: 0;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__opener,
  .hero__title,
  .hero__narrative,
  .hero__path,
  .hero__portrait {
    animation: none;
  }
}

@media (max-width: 480px) {
  .metrics {
    grid-template-columns: 1fr;
  }
}
