/* ===================================================================
   Our Story — Startup Club New Zealand
   Same dark + club-blue theme as the home page · Montserrat
=================================================================== */

:root {
  --brand: #4658ff;
  --brand-bright: #6c7aff;
  --brand-deep: #2c39c4;
  --brand-glow: rgba(70, 88, 255, .55);

  --bg: #05071a;
  --bg-2: #080b22;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .1);
  --border-hi: rgba(255, 255, 255, .18);

  --white: #ffffff;
  --text: rgba(233, 236, 255, .74);
  --text-faint: rgba(233, 236, 255, .5);

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .85);
  --maxw: 1120px;
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Montserrat", system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; background: #02030d; }
h1, h2, h3 { font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--white); line-height: 1.07; letter-spacing: .005em; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
main, .st-footer { position: relative; z-index: 2; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; padding: .95em 1.8em; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -10px var(--brand-glow); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-bright); box-shadow: 0 18px 44px -12px var(--brand-glow); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: #fff; border-color: var(--border-hi); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); border-color: rgba(255, 255, 255, .35); }

/* ---- header ---- */
.st-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; padding: 0 clamp(1rem, 4vw, 2.5rem); background: rgba(8, 11, 34, .6); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease; }
.st-nav.scrolled { border-bottom-color: var(--border); background: rgba(8, 11, 34, .82); }
.st-brand { display: flex; align-items: center; }
.st-brand .wordmark { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); }
.st-links { display: flex; gap: 1.7rem; margin-left: auto; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.st-links a { position: relative; color: rgba(255, 255, 255, .78); transition: color .2s; }
.st-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand-bright); box-shadow: 0 0 8px var(--brand-glow); transition: width .25s ease; }
.st-links a:hover, .st-links a.active { color: #fff; }
.st-links a:hover::after, .st-links a.active::after { width: 100%; }
.st-nav .btn { padding: .6em 1.3em; }
.st-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.st-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.st-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.st-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.st-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero ---- */
.st-hero { position: relative; text-align: center; padding: calc(var(--nav-h) + clamp(4rem, 9vw, 7rem)) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.st-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 0%, rgba(70, 88, 255, .16), transparent 70%); pointer-events: none; }
.st-hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.st-eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-bright); background: rgba(70, 88, 255, .12); border: 1px solid rgba(70, 88, 255, .25); padding: .5em 1.1em; border-radius: 999px; margin-bottom: 1.6rem; }
.st-hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 900; margin-bottom: 1.4rem; }
.st-hero h1 .accent { color: var(--brand-bright); text-shadow: 0 0 36px var(--brand-glow); }
.st-hero p { font-size: 1.12rem; color: var(--text); max-width: 52ch; margin: 0 auto; }

/* ---- sections ---- */
.st-section { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem); }
.st-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.st-kicker { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-bright); margin-bottom: 1rem; }
.st-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.st-head p { color: var(--text); font-size: 1.05rem; margin-top: 1rem; }

/* ---- the why (ecosystem narrative + NZ map) ---- */
.why-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 980px; margin: 0 auto; }
.why-map { position: relative; }
.why-map::before { content: ""; position: absolute; inset: -10% -6%; background: radial-gradient(circle at 55% 42%, rgba(70, 88, 255, .22), transparent 62%); pointer-events: none; }
.nz-map { position: relative; width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.nz-island { fill: rgba(70, 88, 255, .07); stroke: var(--brand-bright); stroke-width: 1.4; stroke-linejoin: round; }
.nz-net line { stroke: rgba(108, 122, 255, .45); stroke-width: 1; stroke-dasharray: 3 5; }
.nz-halo { fill: rgba(70, 88, 255, .22); animation: nzpulse 3s ease-in-out infinite; }
.nz-net circle.nz-halo:nth-of-type(2) { animation-delay: .6s; }
.nz-node { fill: #fff; stroke: var(--brand-bright); stroke-width: 1.6; }
@keyframes nzpulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.why-copy { text-align: left; }
.why-copy .big { font-family: "Montserrat"; font-weight: 700; font-size: clamp(1.4rem, 2.7vw, 2rem); line-height: 1.35; color: #fff; text-transform: none; margin-bottom: 1.4rem; }
.why-copy .big b { color: var(--brand-bright); }
.why-copy .body { color: var(--text); font-size: 1.05rem; text-transform: none; }

/* ---- quote bands ---- */
.st-quote { position: relative; max-width: 880px; margin: 0 auto; padding: clamp(2.4rem, 6vw, 4.2rem) clamp(1.2rem, 4vw, 2.5rem); text-align: center; }
.st-quote .qm { font-family: Georgia, serif; font-size: 3.4rem; line-height: 0; color: var(--brand-bright); display: block; margin-bottom: 1.4rem; opacity: .7; }
.st-quote blockquote { font-family: "Montserrat"; font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.3; color: #fff; letter-spacing: -.01em; }
.st-quote blockquote em { color: var(--brand-bright); font-style: normal; text-shadow: 0 0 30px var(--brand-glow); }
.st-quote cite { display: block; margin-top: 1.5rem; font-style: normal; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }

/* ---- timeline ---- */
.st-timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 4px; }
.st-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--brand), rgba(70, 88, 255, .1)); }
.tl-row { position: relative; padding-left: 2.6rem; padding-bottom: 2.4rem; }
.tl-row:last-child { padding-bottom: 0; }
.tl-row::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(70, 88, 255, .15), 0 0 14px var(--brand-glow); }
.tl-year { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-bright); }
.tl-row h3 { font-size: 1.2rem; margin: .35rem 0 .4rem; letter-spacing: .01em; }
.tl-row p { color: var(--text); font-size: .98rem; text-transform: none; }

/* ---- principles ---- */
.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; max-width: 920px; margin: 0 auto; }
.principle { position: relative; overflow: hidden; background: linear-gradient(165deg, rgba(70, 88, 255, .07), transparent 58%), var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.3rem 2rem 2.1rem; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s, box-shadow .25s ease; }
.principle::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-bright), transparent); opacity: .85; }
.principle:hover { transform: translateY(-5px); border-color: var(--border-hi); box-shadow: 0 0 48px -12px var(--brand-glow); }
.p-num { display: block; font-family: "Montserrat"; font-weight: 900; font-size: 2.2rem; line-height: 1; letter-spacing: -.02em; color: var(--brand-bright); text-shadow: 0 0 26px var(--brand-glow); margin-bottom: .9rem; }
.principle h3 { font-size: 1.3rem; }
.principle p { color: var(--text); font-size: .98rem; margin-top: .6rem; text-transform: none; line-height: 1.6; }

/* ---- stats ---- */
.st-stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(8, 11, 34, .4); }
.st-stats-grid { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.st-stat strong { display: block; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; letter-spacing: -.02em; }
.st-stat span { font-size: .72rem; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* ---- cta ---- */
.st-cta { text-align: center; }
.cta-card { max-width: 780px; margin: 0 auto; position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.4rem, 4vw, 3rem); background: linear-gradient(150deg, rgba(70, 88, 255, .18), rgba(255, 255, 255, .03)); border: 1px solid var(--border-hi); box-shadow: var(--shadow); }
.cta-card::before { content: ""; position: absolute; left: 50%; top: -150px; transform: translateX(-50%); width: 420px; height: 420px; background: radial-gradient(circle, var(--brand-glow), transparent 70%); pointer-events: none; }
.cta-card h2 { position: relative; font-size: clamp(2rem, 5vw, 3rem); }
.cta-card p { position: relative; color: rgba(233, 236, 255, .85); margin: 1rem auto 2rem; max-width: 46ch; }

/* ---- footer ---- */
.st-footer { border-top: 1px solid var(--border); padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) 2rem; text-align: center; background: rgba(5, 7, 26, .7); }
.st-footer .wordmark { height: 28px; width: auto; margin: 0 auto 1.2rem; display: block; filter: brightness(0) invert(1); }
.st-footer .links { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.st-footer .links a { color: var(--text); transition: color .2s; }
.st-footer .links a:hover { color: #fff; }
.st-foot-bottom { max-width: var(--maxw); margin: 2.2rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }

/* ---- reveal ---- */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal-armed .reveal { opacity: 0; transform: translateY(26px); }
.reveal-armed .reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .st-links, .st-nav .btn { display: none; }
  .st-toggle { display: flex; margin-left: auto; }
  .st-nav.open .st-links { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; position: absolute; top: 100%; left: 0; right: 0; background: rgba(8, 11, 34, .96); padding: 1.4rem clamp(1rem,4vw,2.5rem) 1.8rem; border-bottom: 1px solid var(--border); }
  .st-stats-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem 1rem; }
}
@media (max-width: 780px) {
  .why-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .why-copy { text-align: center; }
  .nz-map { max-width: 240px; }
}
@media (max-width: 600px) {
  .principle-grid { grid-template-columns: 1fr; }
  .st-stats-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
