/* The Route Table — palette 5, midnight navy.
   Orange is only for actions and the "Share"/accent words. */
:root {
  --charcoal: #0b1724;   /* page base */
  --navy: #10233a;       /* alternating sections */
  --off-white: #eef2f6;
  --sky: #9fb3c6;        /* muted blue-grey labels */
  --muted: #8597aa;
  --orange: #ed6c3c;
  --sky-bright: #5ac8fa; /* brand sky, hover only */
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Page scale: everything is sized in px, so shrink the whole page to 80% at 100% browser zoom */
html { zoom: .8; }
body { margin: 0; font-family: var(--font-body); color: var(--off-white); background: var(--charcoal); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
/* Secondary links (anything that isn't a main CTA, an event card or the logo) turn sky blue on hover */
a:not(.cta):not(.event):not(.logo) { transition: color .2s, text-decoration-color .2s; }
a:not(.cta):not(.event):not(.logo):hover,
a:not(.cta):not(.event):not(.logo):focus-visible { color: var(--sky-bright); text-decoration-color: var(--sky-bright); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.bg-charcoal { background: var(--charcoal); }
.bg-navy { background: var(--navy); }
.bg-fade { background: linear-gradient(180deg, var(--charcoal), var(--navy)); }
.bg-close { background: linear-gradient(180deg, var(--navy), var(--charcoal)); border-top: 1px solid rgba(238,242,246,.12); }
.accent { color: var(--orange); }
.muted { color: var(--muted); }
.lead { margin: 0; font-size: 19px; color: var(--muted); }
.label { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 15px; color: var(--sky); }
.eyebrow { font-family: var(--font-heading); font-weight: 600; letter-spacing: .12em; font-size: 15px; color: var(--sky); }

h1, h2, h3 { margin: 0; font-family: var(--font-heading); }
.h-display { font-weight: 700; text-transform: uppercase; letter-spacing: .038em; font-size: clamp(36px, 4.5vw, 65px); line-height: .92; }
.h-statement { font-weight: 600; font-size: clamp(31px, 3.96vw, 52px); line-height: 1.12; }

/* Call to action: bold white text on an orange rule with an arrow. Used for every action. */
.cta { display: inline-flex; align-items: center; gap: .35em; font-family: var(--font-heading); font-weight: 700; color: var(--off-white); text-decoration: none; white-space: nowrap; background: none; border: 0; padding: 0 0 6px; cursor: pointer; line-height: 1.2; box-shadow: inset 0 -3px 0 var(--orange); }
.cta::after { content: "→"; }
.cta:hover { opacity: 1; color: #fff; }
.cta[disabled] { opacity: .5; cursor: wait; }

/* Nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.logo { text-decoration: none; font-family: var(--font-heading); font-weight: 400; font-size: 26px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; min-height: 44px; display: flex; align-items: center; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.nav-links a:not(.cta) { text-decoration: none; padding: 10px 0; }
.nav-toggle { display: none; }

/* Mobile: links collapse behind a hamburger */
@media (max-width: 720px) {
  /* Fill the first screen. vh is scaled by the 80% zoom, so divide it back out; 99px is the nav. */
  .hero { display: flex; flex-direction: column; justify-content: center; min-height: calc(125svh - 99px); }
  .hero > .wrap { width: 100%; }
  .nav { position: relative; flex-wrap: nowrap; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
  .nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--off-white); transition: transform .25s, opacity .2s; }
  .nav.open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 24px 28px; background: var(--navy); box-shadow: 0 12px 24px rgba(0,0,0,.35); font-size: 20px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.cta) { padding: 12px 0; width: 100%; }
  .nav-links .cta { margin-top: 12px; font-size: 20px !important; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .nav-toggle-bar { transition: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy), var(--charcoal)); }
.hero-streak { position: absolute; left: -10%; right: -10%; top: 58%; height: 180px; transform: rotate(-27deg); background: linear-gradient(90deg, rgba(249,249,249,0), rgba(249,249,249,.55) 45%, rgba(249,249,249,.9) 52%, rgba(249,249,249,.55) 59%, rgba(249,249,249,0)); filter: blur(28px); opacity: .55; pointer-events: none; }
.hero-inner { position: relative; padding-top: 40px; padding-bottom: 44px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.prompt { font-family: var(--font-mono); font-weight: 500; font-size: clamp(16px, 1.6vw, 22px); color: var(--muted); display: flex; align-items: center; }
.prompt-text { display: inline-block; overflow: hidden; white-space: nowrap; width: 18ch; animation: rt-type 1.3s steps(18) .3s 1 both; }
.prompt-cursor { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; background: var(--orange); animation: rt-blink 1s infinite; }
.hero-title { font-weight: 700; text-transform: uppercase; letter-spacing: .038em; font-size: clamp(49px, 8.64vw, 126px); line-height: .88; display: inline-grid; grid-template-columns: auto auto; column-gap: .3em; align-items: baseline; text-align: left; }
.hero-note { font-family: var(--font-mono); font-weight: 500; font-size: 15px; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--muted); max-width: 210px; align-self: center; }
.hero-tagline { margin: 0; max-width: 960px; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .038em; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.25; }
.hero-sub { margin: 6px 0 0; font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--off-white); }
.hero-ask { position: relative; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.hero-ask .cta { font-size: clamp(24px, 2.8vw, 40px); white-space: normal; }
.hero-secondary { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--muted); }
.hero-secondary a { color: var(--off-white); text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Hero animation: C, L, S fade in blue, then each word lands */
@keyframes rt-type { from { width: 0; } to { width: 18ch; } }
@keyframes rt-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes rt-l0 { 0%, 38% { opacity: 0; color: var(--sky); } 45%, 60% { opacity: 1; color: var(--sky); } 68%, 100% { opacity: 1; color: var(--off-white); } }
@keyframes rt-r0 { 0%, 60% { opacity: 0; } 68%, 100% { opacity: 1; } }
@keyframes rt-l1 { 0%, 43% { opacity: 0; color: var(--sky); } 50%, 74% { opacity: 1; color: var(--sky); } 82%, 100% { opacity: 1; color: var(--off-white); } }
@keyframes rt-r1 { 0%, 74% { opacity: 0; } 82%, 100% { opacity: 1; } }
@keyframes rt-l2 { 0%, 48% { opacity: 0; color: var(--sky); } 55%, 88% { opacity: 1; color: var(--sky); } 96%, 100% { opacity: 1; color: var(--orange); } }
@keyframes rt-r2 { 0%, 88% { opacity: 0; } 96%, 100% { opacity: 1; } }
.l0 { animation: rt-l0 5s ease-out both; } .r0 { animation: rt-r0 5s ease-out both; }
.l1 { animation: rt-l1 5s ease-out both; } .r1 { animation: rt-r1 5s ease-out both; }
.l2 { animation: rt-l2 5s ease-out both; } .r2 { animation: rt-r2 5s ease-out both; }

/* Two-column sections */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px 72px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.photo { min-height: 420px; background-size: cover; background-position: center; }
/* No photo set yet: hide the block rather than show an empty panel */
.photo:not([style*="background-image"]) { display: none; }

/* Events */
.events-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
/* auto-fill keeps empty columns, so one or two events stay card-sized instead of stretching across the page */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 28px 20px; }
.event { text-decoration: none; display: flex; flex-direction: column; padding-top: 18px; box-shadow: inset 0 2px 0 var(--off-white); }
.event:hover { opacity: 1; }
/* Fixed 16:9 frame: the image always fills the card and scales with it, never the screen */
.event-cover { aspect-ratio: 16 / 9; width: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; }
.event-cover { position: relative; }
.event-chip { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; background: rgba(11,23,36,.82); color: var(--off-white); font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .04em; line-height: 1; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.event-chip--inline { position: static; min-height: 34px; align-self: flex-start; margin-bottom: 12px; background: rgba(238,242,246,.08); }
.event-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.event-chip--coffee::before { background: #b9a4f5; }
.event-chip--meetup::before { background: #8fd97a; }
.event-chip--demo::before { background: #f19cc3; }
.event-chip--casual::before { background: var(--sky-bright); }
.event-body { flex: 1; padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.event-title { font-family: var(--font-heading); font-weight: 700; font-size: 27px; line-height: 1.1; }
.event-body .cta { font-size: 18px; margin-top: auto; align-self: flex-start; }

/* "Follow the calendar" card: same frame as an event cover, but an outlined panel instead of a photo */
.event-follow-panel { aspect-ratio: 16 / 9; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; border: 1px dashed rgba(159,179,198,.45); transition: border-color .2s; }
.event-follow:hover .event-follow-panel { border-color: var(--sky-bright); }
.event-follow-mark { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; width: 34px; height: 34px; background: var(--orange); color: var(--charcoal); font-family: var(--font-heading); font-weight: 700; font-size: 28px; line-height: 1; transition: background .2s; }
.event-body .event-follow-mark { margin-bottom: 12px; }
.event-follow:hover .event-follow-mark { background: var(--sky-bright); }
.event-follow-copy { color: var(--muted); font-size: 16px; max-width: 34ch; }
.event-body .event-follow-copy { margin-bottom: 14px; }
.event-empty { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; box-shadow: inset 0 2px 0 var(--off-white); }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-top: 56px; }
.counter { display: flex; flex-direction: column; gap: 10px; }
.counter-num { font-family: var(--font-heading); font-weight: 700; font-size: clamp(64px, 7vw, 104px); line-height: 1; color: var(--orange); display: flex; font-variant-numeric: tabular-nums; }
.digit { display: inline-block; height: 1em; overflow: hidden; }
.digit-roll { display: flex; flex-direction: column; animation: rt-roll 1.8s cubic-bezier(.2,.8,.2,1) .3s both; }
.digit-roll span { height: 1em; }
@keyframes rt-roll { from { transform: translateY(0); } to { transform: translateY(calc(var(--d) * -1em)); } }
.counter-label { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 15px; }

/* Sponsor points */
.points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 32px; }
.points li { display: flex; flex-direction: column; gap: 6px; }
.points strong { font-family: var(--font-heading); font-size: 24px; color: var(--orange); }

/* Membership */
.benefit-groups { display: flex; flex-direction: column; gap: 44px; }
.benefit-group { display: flex; flex-direction: column; gap: 18px; }
.benefits { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 26px 40px; }
.benefit-close { display: flex; flex-direction: column; gap: 8px; padding-top: 28px; box-shadow: inset 0 1px 0 rgba(159,179,198,.3); }
.benefit-close-line { margin: 0; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; }
.benefits li { display: flex; flex-direction: column; gap: 10px; }
.benefit-num { font-family: var(--font-mono); font-weight: 500; font-size: 15px; color: var(--sky); }
.benefit-title { font-family: var(--font-heading); font-weight: 700; font-size: 23px; line-height: 1.15; }

/* Waitlist form */
.form { align-self: start; padding-top: 24px; box-shadow: inset 0 2px 0 var(--off-white); display: flex; flex-direction: column; gap: 10px; }
.form h3 { margin-bottom: 6px; font-weight: 700; font-size: 25px; line-height: 1.1; }
.form label { margin-top: 10px; font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form input, .form select { width: 100%; height: 54px; padding: 0; border-radius: 0; border: 0; background: transparent; color: var(--off-white); box-shadow: inset 0 -2px 0 var(--muted); font-family: var(--font-body); font-size: 17px; }
.form select option { color: #1a1a1a; }
.form input::placeholder { color: var(--muted); }
.form .cta { font-size: 22px; margin-top: 24px; align-self: flex-start; }
.form-status { min-height: 1.5em; margin: 8px 0 0; font-size: 16px; }
.form-status.error { color: var(--orange); }
.form-done h3 { color: var(--off-white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Close + footer */
.close { padding-top: 104px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.close h2 { font-weight: 700; text-transform: uppercase; letter-spacing: .038em; font-size: clamp(40px, 6.3vw, 94px); line-height: .9; }
.close .cta { font-size: clamp(24px, 2.8vw, 40px); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 96px; padding-top: 32px; padding-bottom: 8px; border-top: 1px solid rgba(238,242,246,.18); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.sitemap, .socials { display: flex; flex-direction: column; gap: 10px; }
.sitemap ul { display: flex; flex-direction: column; }
.sitemap a { display: inline-block; padding: 6px 0; font-family: var(--font-heading); font-weight: 600; font-size: 16px; }
.socials ul { display: flex; gap: 8px; margin-left: -10px; }
.socials a { display: inline-flex; padding: 10px; color: var(--sky); }
.socials a:hover { color: var(--sky-bright); }
.footer { margin-top: 0; margin-bottom: 0; padding-top: 32px; padding-bottom: 40px; font-size: 15px; color: var(--muted); }

/* Legal pages (terms) */
.legal { max-width: 820px; }
.legal h1 { font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin-bottom: 28px; }
.legal h2 { font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0 0 12px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--off-white); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 1.4em; }
.legal li { margin-bottom: 8px; }
.legal li ol { margin-top: 8px; }
.legal hr { border: 0; height: 1px; background: rgba(238,242,246,.18); margin: 32px 0; }

@media (max-width: 720px) {
  .hero-secondary { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .hero-secondary .sep { display: none; }
  .prompt { font-size: 19px; }
  .hero-title { font-size: clamp(62px, 13vw, 90px); }
  .hero-tagline { font-size: 21px; }
  .hero-sub { font-size: 22px; }
  .hero-ask .cta { font-size: 28px; }
  .hero-secondary { font-size: 19px; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .hero-title { grid-template-columns: auto; }
  .hero-note { display: none; }
  .photo { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prompt-text, .prompt-cursor, .l0, .r0, .l1, .r1, .l2, .r2 { animation: none !important; }
  .digit-roll { animation: none; transform: translateY(calc(var(--d) * -1em)); }
}

/* ---------- "Should we come to your city?" pop-up ----------
   Without JS it is an ordinary section near the bottom of the page.
   With JS (html.js) it is hidden until a #your-city link opens it as a dialog. */
.eoi-teaser { margin: 64px 0 0; text-align: center; }
.eoi-teaser .cta { font-size: clamp(24px, 2.4vw, 32px); white-space: normal; }

.eoi { padding: 80px 24px; background: var(--charcoal); }
.eoi-panel { position: relative; max-width: 560px; margin: 0 auto; padding: 44px 40px 36px; background: #10233a; color: var(--off-white); }
.eoi-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--orange); }
.eoi-close { position: absolute; top: 6px; right: 6px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; padding: 0; background: none; border: 0; color: var(--off-white); cursor: pointer; }
.eoi-close:hover { color: var(--sky-bright); }
.eoi-mono { margin: 0 0 14px; font-family: var(--font-mono); font-weight: 500; font-size: 15px; color: var(--sky); }
.eoi-title { margin: 0 0 14px; padding-right: 40px; font-weight: 700; font-size: clamp(28px, 4vw, 36px); line-height: 1.1; }
.eoi-title:focus { outline: none; }
.eoi-body { margin: 0 0 8px; font-size: 17px; color: var(--muted); }
.eoi-form { padding-top: 0; box-shadow: none; gap: 6px; }
.field-help { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 15px; color: var(--orange); }
.field-error:empty { display: none; }
.eoi-help { margin: 22px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.eoi-help legend { margin-bottom: 4px; padding: 0; font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eoi-optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.form label.eoi-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 0; font-family: var(--font-body); font-weight: 400; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--off-white); cursor: pointer; }
.form .eoi-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; box-shadow: none; accent-color: var(--orange); }
.eoi-form .cta { margin-top: 28px; }
.eoi-fineprint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.eoi-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.eoi-share code { font-family: var(--font-mono); font-size: 15px; color: var(--sky); }
.eoi-share .cta { font-size: 20px; }
.cta.is-copied::after { content: none; }

html.js .eoi { display: none; }
html.js .eoi.is-open { display: flex; position: fixed; inset: 0; z-index: 100; padding: 24px; overflow-y: auto; background: rgba(5,12,20,.82); animation: eoi-fade .2s ease-out; }
html.js .eoi.is-open .eoi-panel { width: 100%; margin: auto; animation: eoi-rise .25s ease-out; }
html.eoi-lock, html.eoi-lock body { overflow: hidden; }
@keyframes eoi-fade { from { opacity: 0; } }
@keyframes eoi-rise { from { transform: translateY(12px); } }
@media (max-width: 639px) {
  .eoi-panel { padding: 56px 24px 32px; }
  html.js .eoi.is-open { padding: 0; }
  html.js .eoi.is-open .eoi-panel { max-width: none; min-height: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .eoi.is-open, html.js .eoi.is-open .eoi-panel { animation: none; }
}
