/* Layout: shared header and footer, an electric-blue band at the top of every page, then calm sections on a 1040px column. */
:root {
  --blue: #1a3eec;
  --green: #2aec71;
  --navy: #0a0f2e;
  --bg: #ffffff;
  --surface: #f4f6fe;
  --fg: #0a0f2e;
  --muted: #4a5170;
  --line: #e1e5f6;
  --link: #1a3eec;
  --chip-done-bg: #e8ebfb;
  --chip-done-fg: #1a3eec;
  --chip-up-bg: #d9fbe6;
  --chip-up-fg: #0b6b33;
  --font: "Plus Jakarta Sans", "TT Commons Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f2e; --surface: #121a45; --fg: #eef1ff; --muted: #a9b1d6; --line: #222c63; --link: #8ea2ff;
    --chip-done-bg: #1c2668; --chip-done-fg: #c5cfff; --chip-up-bg: #0f3d25; --chip-up-fg: #6ff5a0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f2e; --surface: #121a45; --fg: #eef1ff; --muted: #a9b1d6; --line: #222c63; --link: #8ea2ff;
  --chip-done-bg: #1c2668; --chip-done-fg: #c5cfff; --chip-up-bg: #0f3d25; --chip-up-fg: #6ff5a0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* The page top is always blue: no dark strip when you pull or bounce past the top */
html { scroll-behavior: smooth; background-color: var(--blue); overscroll-behavior-y: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--link); text-decoration: none; font-weight: 600; }
a:hover { color: var(--fg); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }

/* Header + hero share the brand blue */
.hero { background: var(--blue); color: #fff; }
/* Header: sits on the blue page top, then floats as a rounded blue bar once you scroll */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: env(safe-area-inset-top, 0px) 12px 0; pointer-events: none; background: var(--blue); transition: background .3s; }
.nav.scrolled { background: transparent; }
.nav-in { pointer-events: auto; position: relative; max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 0; background: var(--blue); transition: margin .3s, padding .3s, border-radius .3s, box-shadow .3s, background .3s; }
.nav.scrolled .nav-in { margin-top: 10px; padding: 9px 10px 9px 18px; border-radius: 18px; background: var(--blue); box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 14px 34px rgba(10,15,46,0.35); }
.nav ul { align-items: center; }
.nav ul a[aria-current="page"] { position: relative; }
.nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--green); }
.nav ul a.nav-cta, .nav-join { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--green); color: var(--navy); font-weight: 800; font-size: 0.92rem; opacity: 1; white-space: nowrap; transition: translate .2s, box-shadow .2s; }
.nav ul a.nav-cta:hover, .nav-join:hover { color: var(--navy); translate: 0 -1px; box-shadow: 0 6px 16px rgba(10,15,46,0.3); }
.nav-cta-li { margin-left: 6px; }
.nav-join { display: none; margin-left: auto; padding: 8px 14px; font-size: 0.88rem; }
@media (max-width: 1200px) and (min-width: 981px) { .nav ul { gap: 14px; } .nav ul a { font-size: 0.9rem; } }
.nav .logo { color: #fff; display: block; height: 32px; }
.nav .logo svg { height: 100%; width: auto; display: block; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; color: #fff; font-weight: 600; font-size: 0.95rem; opacity: 0.85; }
.nav ul a:hover { opacity: 1; color: var(--green); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.14); cursor: pointer; padding: 0; align-content: center; justify-items: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
html { scroll-padding-top: 72px; }
.hero-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 92px 80px; }
.hero-body > * { min-width: 0; }
.hero .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; background: rgba(255,255,255,0.12); padding: 6px 14px 6px 8px; border-radius: 999px; margin-bottom: 22px; }
.hero .kicker .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--navy); display: grid; place-items: center; font-size: 0.8rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 .hl { color: var(--green); }
.hero .lede { margin-top: 22px; font-size: 1.12rem; max-width: 33em; color: #dfe5ff; }
.acronym { margin-top: 26px; font-size: 0.9rem; color: #b9c4ff; letter-spacing: 0.02em; }
.acronym b { color: var(--green); font-weight: 800; }

/* Route card: the real Job Jam bus route drawn to geographic scale */
.route { margin: 0; background: rgba(10,15,46,0.32); border-radius: 22px; padding: 22px 22px 0; color: #fff; overflow: hidden; }
.route-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.route-top b { font-size: 1rem; }
.route-top span { font-size: 0.8rem; color: #b9c4ff; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.gains { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.gains li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding-block: 14px; border-top: 1px solid rgba(255,255,255,0.14); }
.gains li:first-child { border-top: 0; }
.gains .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--green); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; }
.gains b { display: block; font-size: 1rem; }
.gains span.d { display: block; font-size: 0.88rem; color: #c9d1ff; margin-top: 2px; }
.stub { display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px -22px 0; border-top: 2px dashed rgba(255,255,255,0.22); }
.stub div { padding: 14px 8px 16px; text-align: center; }
.stub div + div { border-left: 1px solid rgba(255,255,255,0.12); }
.stub b { display: block; white-space: nowrap; font-size: 1.4rem; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stub span { white-space: nowrap; font-size: 0.75rem; color: #c9d1ff; font-weight: 600; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 0.98rem; }
.btn-green { background: var(--green); color: var(--navy); }
.btn-green:hover { background: #fff; color: var(--navy); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); }
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; font-size: 0.92rem; color: #dfe5ff; }
.facts b { color: #fff; font-weight: 700; }

section { padding-block: 80px; }
section + section { border-top: 1px solid var(--line); }
.head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 40em; }
.head p { color: var(--muted); font-size: 1.05rem; }

/* New here */
.explain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.explain > div { display: grid; gap: 6px; align-content: start; }
.explain b { font-size: 2rem; font-weight: 800; color: var(--link); line-height: 1.1; font-variant-numeric: tabular-nums; }
.explain h3 { font-size: 1.05rem; }
.explain p { color: var(--muted); font-size: 0.95rem; }
.compare { margin-top: 56px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.compare > * { min-width: 0; }
.compare-head p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare thead th.us { color: var(--link); }
.compare tbody th { font-weight: 700; color: var(--fg); width: 28%; }
.compare td { color: var(--muted); }
.compare td.us { color: var(--fg); font-weight: 600; background: var(--surface); }
.compare tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .compare table { font-size: 0.86rem; } .compare th, .compare td { padding: 9px 6px; } }
.skillset { margin-top: 44px; }
.skillset h3 { font-size: 1.05rem; margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.92rem; }
.day { margin-top: 56px; background: var(--surface); border-radius: 22px; padding: 30px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.day > * { min-width: 0; }
.day-head p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { font-weight: 800; color: var(--link); font-variant-numeric: tabular-nums; }
.timeline span { color: var(--fg); }
.timeline small { display: block; color: var(--muted); font-size: 0.88rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.about-grid .story { display: grid; gap: 16px; color: var(--muted); max-width: 36em; }
.about-grid .story p:first-child { color: var(--fg); font-size: 1.2rem; font-weight: 500; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.value { background: var(--surface); border-radius: 14px; padding: 18px; }
.value h3 { font-size: 1.02rem; }
.value p { color: var(--muted); font-size: 0.93rem; margin-top: 4px; }

/* Projects */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab { font: inherit; font-size: 0.92rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.projects { display: grid; gap: 18px; }
.project { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; }
.project > * { min-width: 0; }
.project .meta { color: var(--muted); font-size: 0.92rem; }
.project .desc { color: var(--muted); grid-column: 1 / -1; max-width: 46em; margin-top: 6px; }
.project .skills { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.project .skills span { font-size: 0.82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--chip-done-bg); color: var(--chip-done-fg); }
.project .stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.stat { font-size: 0.85rem; background: var(--surface); padding: 5px 12px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.stat b { font-weight: 700; }
.project .more { grid-column: 1 / -1; margin-top: 6px; font-size: 0.95rem; }
.chip { align-self: start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.chip.completed { background: var(--chip-done-bg); color: var(--chip-done-fg); }
.chip.active, .chip.upcoming { background: var(--chip-up-bg); color: var(--chip-up-fg); }
.empty { color: var(--muted); padding: 26px; border: 1px dashed var(--line); border-radius: 18px; }

/* Get involved */
.personas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.persona { background: var(--surface); border-radius: 14px; padding: 20px; border-top: 3px solid var(--green); }
.persona h3 { font-size: 1.02rem; }
.persona p { color: var(--muted); font-size: 0.93rem; margin-top: 6px; }
@media (max-width: 820px) { .personas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .personas { grid-template-columns: 1fr; } }
.steps .when { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 3px solid var(--blue); }
.steps li::before { content: counter(s); font-weight: 800; font-size: 0.9rem; color: var(--link); }
.steps h3 { margin-top: 6px; font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: 0.93rem; margin-top: 6px; }
.covered { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.covered > div { background: var(--surface); border-radius: 18px; padding: 24px; }
.covered ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.95rem; display: grid; gap: 4px; }

/* Terms */
.terms { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
details[open] { background: var(--surface); border-color: transparent; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--link); font-weight: 800; }
details[open] summary::after { content: "\2212"; }
details .answer { padding: 0 24px 20px 20px; color: var(--muted); font-size: 0.97rem; max-width: 52em; }
details ol { margin: 0; padding: 0 24px 20px 44px; display: grid; gap: 10px; color: var(--muted); font-size: 0.95rem; max-width: 52em; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-row p { color: var(--muted); }
.cta-row .btn-green { background: var(--blue); color: #fff; }
.cta-row .btn-green:hover { background: var(--fg); color: var(--bg); }
.terms-note { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 6px; }
.contact-card .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-card .cv { font-size: 1.05rem; font-weight: 600; word-break: break-word; user-select: all; }

footer { color: #c9cfee; font-size: 0.88rem; }
.foot-cta { background: var(--blue); color: #fff; padding-block: 72px; border-top: 0; }
.foot-cta h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.foot-cta h2 span { color: var(--green); }
.foot-cta p { margin-top: 16px; max-width: 34em; font-size: 1.1rem; color: #dfe5ff; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.foot-main { position: relative; overflow: hidden; background: var(--navy); padding-block: 56px 28px; }
.foot-main .wrap { position: relative; display: grid; gap: 36px; }
.foot-bird { position: absolute; right: -40px; bottom: -34px; width: min(460px, 70vw); color: #fff; opacity: 0.045; pointer-events: none; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer .logo { color: #fff; height: 30px; display: block; }
footer .logo svg { height: 100%; width: auto; display: block; }
.foot-brand p { margin-top: 14px; max-width: 22em; color: #aab3de; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col b { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.foot-col a { color: #fff; font-weight: 600; width: fit-content; background: linear-gradient(var(--green), var(--green)) no-repeat 0 100% / 0 2px; transition: background-size .25s; padding-bottom: 2px; }
.foot-col a:hover { background-size: 100% 2px; color: #fff; }
footer .eu { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
footer .eu .flag { width: 42px; height: 28px; background: #003399; border-radius: 3px; display: grid; place-items: center; color: #ffcc00; font-size: 0.6rem; letter-spacing: 1px; }
footer .disclaimer { max-width: 60em; margin-top: 12px; color: #8f97c4; font-size: 0.78rem; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px dashed rgba(255,255,255,0.2); color: #aab3de; }
.to-top { color: #fff; font-weight: 600; }
.to-top:hover { color: var(--green); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .foot-cta { padding-block: 52px; } }

/* Burger menu below 980px: the six menu links plus the button do not fit on one line below that */
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .nav-in { gap: 10px; }
  .nav-join { display: inline-block; order: 2; }
  .menu-btn { order: 3; }
  .nav ul { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px; border-radius: 18px; background: var(--blue); box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 18px 34px rgba(10,15,46,0.4); }
  .nav.open ul { display: flex; }
  .nav.open:not(.scrolled) .nav-in { background: var(--blue); }
  .nav ul li + li { border-top: 1px solid rgba(255,255,255,0.12); }
  .nav ul a { padding: 14px 2px; font-size: 1.1rem; font-weight: 700; opacity: 1; }
  .nav ul a[aria-current="page"]::after { left: auto; right: 4px; bottom: 50%; margin: 0 0 -2.5px; }
  .nav ul li.nav-cta-li { border-top: 0; margin: 10px 0 0; }
  .nav ul a.nav-cta { display: block; text-align: center; padding: 14px 16px; font-size: 1rem; }
}
@media (max-width: 820px) {
  .hero-body, .about-grid, .covered { grid-template-columns: 1fr; }
  .steps, .explain { grid-template-columns: 1fr 1fr; }
  .day { grid-template-columns: 1fr; padding: 22px; }
  .hero-body { padding-block: 88px 56px; }
  section { padding-block: 60px; }
}
@media (max-width: 460px) {
  .values, .steps, .explain { grid-template-columns: 1fr; }
  .stub b { font-size: 1.15rem; }
  .timeline li { grid-template-columns: 52px 1fr; }
  .project { grid-template-columns: 1fr; padding: 20px; }
  .chip { justify-self: start; }
}

/* Multi-page additions */
.nav ul a[aria-current="page"] { color: var(--green); opacity: 1; }
.page-hero { background: var(--blue); color: #fff; padding-block: 108px 56px; }
.page-hero .eyebrow { color: var(--green); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.page-hero p { margin-top: 16px; max-width: 36em; color: #dfe5ff; font-size: 1.1rem; }
.band { padding-block: 0; background: var(--blue); color: #fff; border-top: 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 56px; }
.band h2 { color: #fff; }
.band p { margin-top: 8px; color: #dfe5ff; max-width: 32em; }
.band .actions { margin-top: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: #fff; font-weight: 600; }
.foot-links a:hover { color: var(--green); }
.link-btn { font: inherit; font-weight: 700; color: var(--link); background: none; border: 0; cursor: pointer; padding: 6px 0; }
.link-btn:hover { color: var(--fg); }
main > section:first-child { border-top: 0; }
@media (max-width: 820px) { .page-hero { padding-block: 92px 40px; } .band .wrap { padding-block: 44px; } }

/* Who we are */
.teaser { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.teaser .head { margin-bottom: 0; }
.teaser-side { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.faces { display: flex; }
.face { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -12px; object-fit: cover; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; }
.face:first-child { margin-left: 0; }
.face:nth-child(even) { background: var(--green); color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--fg); color: var(--bg); }
.lead-card { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; background: var(--surface); border-radius: 22px; padding: 32px; }
.lead-photo { width: 100%; aspect-ratio: 1; border-radius: 18px; object-fit: cover; object-position: 50% 30%; background: var(--blue); color: var(--green); display: grid; place-items: center; font-size: 4.5rem; font-weight: 800; letter-spacing: -0.02em; }
.lead-body { display: grid; gap: 14px; max-width: 40em; }
.lead-body h3 { font-size: 1.8rem; font-weight: 800; }
.role { color: var(--link); font-weight: 700; font-size: 0.95rem; margin-top: 2px; }
.lead-body > p:not(.role) { color: var(--muted); }
.lead-body blockquote { margin: 6px 0 0; padding-left: 18px; border-left: 4px solid var(--green); font-size: 1.15rem; font-weight: 600; color: var(--fg); }
.lead-tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lead-tags li { font-size: 0.82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--chip-done-bg); color: var(--chip-done-fg); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.member { position: relative; display: grid; align-content: start; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--fg); font-weight: 400; }
.member-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
.member:nth-child(even) .member-photo { background: var(--green); color: var(--navy); }
.member .bio { color: var(--muted); font-size: 0.95rem; }
.member.draft { border-style: dashed; }
.draft-tag { justify-self: start; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff3cd; color: #7a5600; }
.join-card { border-style: dashed; }
.join-card .member-photo { background: transparent; color: var(--link); box-shadow: inset 0 0 0 2px var(--line); font-size: 2rem; }
.join-card:hover { border-color: var(--blue); color: var(--fg); }
@media (max-width: 820px) {
  .lead-card { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .lead-photo { max-width: 220px; }
}

/* Terms page */
.terms-page { padding-block: 56px 88px; }
.terms-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.terms-side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 12px; }
.terms-toc { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.terms-toc a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-weight: 500; font-size: 0.9rem; line-height: 1.35; }
.terms-toc a span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); }
.terms-toc a:hover { color: var(--fg); }
.terms-toc a[aria-current] { color: var(--fg); font-weight: 700; border-left-color: var(--blue); }
.terms-toc a[aria-current] span { color: var(--link); }
.terms-body { max-width: 46em; }
.terms-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; color: var(--muted); font-size: 0.93rem; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.terms-meta p { max-width: 34em; }
.tl { margin-top: 32px; background: var(--surface); border-radius: 22px; padding: 28px; }
.tl h2 { font-size: 1.5rem; }
.tl-note { color: var(--muted); font-size: 0.93rem; margin-top: 6px; }
.tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.tl-card { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 14px; background: var(--bg); color: var(--fg); font-weight: 400; border: 1px solid transparent; transition: border-color .15s; }
.tl-card:hover { color: var(--fg); border-color: var(--blue); }
.tl-card b { font-weight: 700; }
.tl-card span { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.tl-card small { margin-top: 6px; color: var(--link); font-weight: 700; font-size: 0.8rem; }
.terms-jump { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tsec { padding: 48px 0 0; border: 0; scroll-margin-top: 40px; }
.tsec h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.4rem, 3vw, 1.75rem); padding-bottom: 14px; border-bottom: 2px solid var(--fg); }
.tnum { font-size: 0.95rem; font-weight: 800; color: var(--link); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.clauses { list-style: none; margin: 0; padding: 0; }
.clauses > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.clauses > li:target { background: var(--surface); box-shadow: -12px 0 0 var(--surface), 12px 0 0 var(--surface); }
.cnum { color: var(--muted); font-weight: 700; font-size: 0.88rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.cnum:hover { color: var(--link); }
.clauses > li > div { display: grid; gap: 10px; color: var(--fg); font-size: 1rem; line-height: 1.65; }
.clauses b { font-weight: 700; }
.clauses ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.clauses ul li { position: relative; padding-left: 20px; }
.clauses ul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.clauses div a { text-decoration: underline; text-underline-offset: 2px; }
.terms-end { margin-top: 40px; color: var(--muted); }
@media (max-width: 900px) {
  .terms-layout { grid-template-columns: 1fr; gap: 0; }
  .terms-side { display: none; }
  .tsec { scroll-margin-top: 100px; }
  .clauses > li { scroll-margin-top: 150px; }
  .terms-body { max-width: none; }
  .terms-jump { display: block; position: sticky; top: 68px; z-index: 5; margin-top: 28px; padding-block: 8px; background: var(--bg); }
  .terms-jump select { width: 100%; font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
}
@media (max-width: 560px) {
  .terms-page { padding-block: 32px 64px; }
  .tl { padding: 20px; border-radius: 18px; }
  .tl-grid { grid-template-columns: 1fr; }
  .clauses > li { grid-template-columns: 1fr; gap: 2px; }
  .tsec { padding-top: 36px; }
}
@media print {
  .nav, footer, .page-hero p, .terms-side, .terms-jump, #terms-print, .terms-end { display: none !important; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .page-hero { background: none; color: #000; padding: 0 0 12px; }
  .page-hero .eyebrow { color: #000; }
  .terms-page { padding: 0; }
  .terms-layout { display: block; }
  .tl { background: none; border: 1px solid #ccc; break-inside: avoid; }
  .tsec { break-before: auto; }
  .clauses > li { break-inside: avoid; }
}
.faces-row { display: flex; align-items: center; gap: 14px; }
.teaser-caption { color: var(--muted); font-size: 0.92rem; max-width: 16em; line-height: 1.4; }
.teaser-caption b { color: var(--fg); }
.lead-actions { margin-top: 6px; }
.team-grid:has(> .join-card:only-child) { grid-template-columns: minmax(0, 420px); }
.foot-cta { position: relative; overflow: hidden; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='60' viewBox='0 0 480 60'%3E%3Cpath d='M0 30 Q60 4 120 30 T240 30 T360 30 T480 30' fill='none' stroke='%23ffffff' stroke-opacity='.4' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='2 12'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: 0 calc(100% - 18px); }
/* Cutout portrait on the president card: transparent image on a brand disc */
.lead-photo[src$=".webp"] { object-fit: cover; object-position: 50% 0; background: radial-gradient(circle at 50% 46%, var(--green) 0 52%, var(--blue) 52.5%); }
.lead-photo[src$=".webp"] { aspect-ratio: 4 / 5; }
.day-solo { display: block; margin-top: 0; max-width: 760px; }

/* How it works page: jump chips. Get involved page: three ways in. */
.how-jump-wrap { padding-block: 28px 0; border-top: 0; }
.how-jump-wrap + section { border-top: 0; padding-top: 44px; }
.how-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.how-jump a { padding: 9px 16px; border-radius: 999px; background: var(--surface); color: var(--fg); font-weight: 700; font-size: 0.9rem; border: 1px solid var(--line); transition: background .2s, color .2s; }
.how-jump a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.head-link { margin-top: 18px; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.way { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.way h3 { font-size: 1.25rem; font-weight: 800; }
.way p { color: var(--muted); }
.way .btn { justify-self: start; margin-top: 6px; }
.way:first-child { background: var(--blue); color: #fff; border-color: var(--blue); }
.way:first-child p { color: #dfe5ff; }
.way:first-child .btn-blue { background: var(--green); color: var(--navy); }
@media (max-width: 820px) { .ways { grid-template-columns: 1fr; } }

/* Skills grouped by theme */
.sk-sub { color: var(--muted); max-width: 40em; margin: -12px 0 26px; }
.skill-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sg { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.sg h4 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; }
.sg-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; flex: none; }
.sg-ic:empty { display: none; }
.sg-ic svg { width: 18px; height: 18px; }
.sg .chips { gap: 8px; }
.sg .chips li { font-size: 0.86rem; padding: 7px 13px; }
@media (max-width: 640px) { .skill-groups { grid-template-columns: 1fr; } }
.sk-badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 12px; border-radius: 10px; background: var(--green); color: var(--navy); font-size: max(0.72rem, 0.5em); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-3deg); }

/* Reviews page */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review { margin: 0; background: #fff; border: 1px solid #e3e7f5; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.review:nth-child(3n+1) { background: var(--blue); color: #fff; border-color: transparent; }
.review blockquote { margin: 0; font-size: 1.12rem; line-height: 1.5; font-weight: 600; }
.review figcaption { font-size: 0.88rem; opacity: .85; margin-top: auto; }
.review figcaption b { display: block; font-size: 0.95rem; }
.review .draft-tag { font-style: normal; font-size: 0.7rem; background: var(--green); color: #0b1020; border-radius: 99px; padding: 2px 8px; margin-left: 6px; font-weight: 800; }
.review-empty { grid-column: 1 / -1; max-width: 640px; background: #fff; border: 1px solid #e3e7f5; border-radius: 20px; padding: 32px; }
.review-empty h3 { margin: 0 0 8px; }

/* Myths on How it works */
.myths { margin-top: 56px; }
.myths .head h3 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 8px; }
.myth-list { display: grid; gap: 16px; margin-top: 24px; }
.myth { display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch; }
.myth:nth-child(even) { transform: rotate(-0.4deg); }
.myth-m { position: relative; background: var(--surface); border-radius: 20px 0 0 20px; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; }
.myth-lb { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.myth-q { font-size: 1.15rem; font-weight: 700; margin-top: 3px; }
.nope { position: absolute; right: -28px; top: 50%; transform: translateY(-50%) rotate(-10deg); z-index: 2; background: var(--green); color: var(--navy); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 10px; border: 3px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); }
.myth-t { background: var(--blue); color: #fff; border-radius: 0 20px 20px 0; padding: 18px 22px 18px 44px; display: flex; flex-direction: column; justify-content: center; }
.myth-t .myth-lb { color: var(--green); }
.myth-a { font-size: 1.2rem; font-weight: 800; margin-top: 3px; }
@media (max-width: 640px) { .myth { grid-template-columns: 1fr; } .myth-m { border-radius: 20px 20px 0 0; } .myth-t { border-radius: 0 0 20px 20px; padding-left: 22px; } .nope { right: 16px; top: auto; bottom: -16px; transform: rotate(-8deg); } }
@media (max-width: 640px) { .myth-q { padding-right: 84px; } }

/* Projects: one bold band per project, in the Home style */
.pj-filter { background: var(--blue); padding: 0 0 36px; border: 0; }
.pj-filter .tabs { margin: 0; }
.pj-filter .tab { border: 2px solid rgba(255,255,255,0.45); color: #fff; font-weight: 700; padding: 9px 18px; }
.pj-filter .tab:hover { border-color: #fff; }
.pj-filter .tab[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--navy); }
.pj { padding: 104px 0 112px; background: var(--navy); color: #fff; overflow: hidden; border: 0; }
.pj.pj-flip { background: var(--green); color: var(--navy); }
.pj-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.pj-flip .pj-text { order: 2; } .pj-flip .pj-pic { order: 1; }
.pj-status { display: inline-block; background: var(--green); color: var(--navy); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 14px; border-radius: 10px; transform: rotate(-3deg); box-shadow: 3px 3px 0 rgba(0,0,0,0.25); }
.pj.pj-flip .pj-status { background: var(--navy); color: var(--green); }
.pj-meta { margin: 18px 0 6px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.pj h2 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 18px; }
.pj h2 span { color: var(--green); }
.pj.pj-flip h2 span { color: var(--blue); }
.pj-desc { font-size: 1.08rem; max-width: 34em; opacity: 0.88; margin: 0 0 22px; }
.pj-chips { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.pj-chips li { padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; background: #fff; color: var(--navy); }
.pj-chips li:nth-child(3n+1) { background: var(--green); } .pj-chips li:nth-child(3n+2) { background: var(--blue); color: #fff; }
.pj.pj-flip .pj-chips li:nth-child(3n+1) { background: var(--navy); color: #fff; }
.pj-chips li:nth-child(odd) { transform: rotate(-2deg); } .pj-chips li:nth-child(even) { transform: rotate(1.5deg); }
.pj.pj-flip .btn-green { background: var(--navy); color: #fff; }
.pj-pic { position: relative; }
.pj-pol { display: block; color: var(--navy); text-decoration: none; }
.pj-pol figure { margin: 0; background: #fff; padding: 12px 12px 0; transform: rotate(2deg); box-shadow: 0 30px 60px rgba(0,0,0,0.38); position: relative; transition: transform .35s cubic-bezier(.3,1.5,.5,1), box-shadow .35s; }
.pj-flip .pj-pol figure { transform: rotate(-2deg); }
.pj-pol:hover figure, .pj-pol:focus-visible figure { transform: rotate(0.4deg) translateY(-8px) scale(1.02); box-shadow: 0 40px 70px rgba(0,0,0,0.45); }
.pj-pol img, .pj-ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pj-ph { background: var(--blue); display: grid; place-content: center; text-align: center; }
.pj-ph b { font-size: clamp(5rem, 12vw, 8.5rem); line-height: 1; font-weight: 800; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 3px var(--green); }
.pj-ph i { color: #fff; font-size: 1.8rem; font-style: normal; }
.pj-pol figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 4px 16px; }
.pj-pol .hand { font-size: 1.9rem; line-height: 1; }
.pj-pol small { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.pj-pol:hover small { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.pj-pol:focus-visible { outline: 3px solid var(--green); outline-offset: 10px; }
.pj .tape { position: absolute; top: -14px; width: 100px; height: 30px; background: rgba(42,236,113,0.7); z-index: 2; }
.pj.pj-flip .tape { background: rgba(26,62,236,0.6); }
.pj .tape.t1 { left: 30px; transform: rotate(-6deg); } .pj .tape.t2 { right: 30px; transform: rotate(5deg); }
.pj-note { position: absolute; right: 2%; bottom: -66px; margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 1.7rem; line-height: 1; color: inherit; transform: rotate(-3deg); }
.pj-note svg { width: 48px; height: 38px; transform: scaleY(-1); margin-top: -30px; order: -1; }
.pj-flip .pj-note { right: auto; left: 2%; }
.hand { font-family: "Caveat", Georgia, serif; font-weight: 700; }
@media (max-width: 860px) {
  .pj { padding: 72px 0 96px; }
  .pj-grid { grid-template-columns: 1fr; gap: 40px; }
  .pj-flip .pj-text, .pj-text { order: 2; } .pj-flip .pj-pic, .pj-pic { order: 1; }
  .pj-note { font-size: 1.35rem; bottom: -46px; }
  .pj-note svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pj-pol figure { transition: none; } }
.pj-pol small { white-space: nowrap; }
@media (max-width: 860px) {
  .pj-note { position: static; margin: 18px 0 0; justify-content: flex-end; transform: rotate(-2deg); }
}

/* Projects: ticket with the key facts */
.pj { --band: var(--navy); --tk-val: var(--green); --tk-lab: #c9d1ff; --tk-bg: rgba(255,255,255,0.07); --tk-line: rgba(255,255,255,0.2); }
.pj.pj-flip { --band: var(--green); --tk-val: var(--navy); --tk-lab: rgba(10,15,46,0.62); --tk-bg: rgba(255,255,255,0.28); --tk-line: rgba(10,15,46,0.22); }
.pj-ticket { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), auto); margin: 0 0 30px; background: var(--tk-bg); border: 1.5px solid var(--tk-line); border-radius: 16px; }
.pj-ticket .tk-when::before, .pj-ticket .tk-when::after { content: ""; position: absolute; bottom: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--band); border: 1.5px solid var(--tk-line); z-index: 1; }
.pj-ticket .tk-when::before { left: -13.5px; clip-path: inset(0 0 0 50%); } .pj-ticket .tk-when::after { right: -13.5px; clip-path: inset(0 50% 0 0); }
.pj-ticket > div { padding: 13px 22px 14px; border-top: 2px dashed var(--tk-line); }
.pj-ticket > div + div + div { border-left: 2px dashed var(--tk-line); }
.pj-ticket .tk-when { position: relative; grid-column: 1 / -1; border-top: 0; padding: 16px 24px 15px; }
.pj-ticket .tk-when b { font-size: 1.55rem; }
.pj-ticket span { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tk-lab); margin-bottom: 5px; white-space: nowrap; }
.pj-ticket b { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1.15; color: var(--tk-val); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-cc { display: flex !important; gap: 4px; flex-wrap: nowrap; }
.pm-foot .tk-cc, .pj-ticket[style="--n:1"] .tk-cc { flex-wrap: wrap; }
.tk-cc i { font-style: normal; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1; padding: 5px 7px; border-radius: 7px; background: var(--tk-val); color: var(--band); }
@media (max-width: 560px) {
  .pj-ticket { grid-template-columns: 1fr 1fr; }
  .pj-ticket > div:nth-child(odd):not(:first-child) { border-left: 2px dashed var(--tk-line); }
  .pj-ticket > div:nth-child(2n+2) { border-left: 0; }
  .pj-ticket > div:nth-child(even):last-child { grid-column: 1 / -1; }
  .pj-ticket > div { padding: 12px 16px 13px; }
  .pj-ticket b, .pj-ticket .tk-when b { font-size: 1.2rem; }
  .pj-ticket .tk-cc { flex-wrap: wrap; }
}

/* Projects: tab counts and the compact list for older projects */
.pj-filter .tab small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: rgba(255,255,255,0.2); font-size: 0.75rem; font-weight: 800; }
.pj-filter .tab[aria-pressed="true"] small { background: var(--navy); color: var(--green); }
.pj-more { padding: 88px 0 100px; }
.pj-more h2 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 8px; }
.pm-year + .pm-year { margin-top: 26px; }
.pm-year h3 { font-size: 2.2rem; color: var(--blue); margin: 18px 0 14px; transform: rotate(-2deg); display: inline-block; }
.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pm-card { display: flex; flex-direction: column; background: var(--surface, #fff); color: inherit; text-decoration: none; border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .3s cubic-bezier(.3,1.5,.5,1), box-shadow .3s; }
.pm-card:hover, .pm-card:focus-visible { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 22px 44px rgba(10,15,46,0.18); }
.pm-card figure { margin: 0; }
.pm-card img, .pm-card .pj-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: grid; }
.pm-card .pj-ph b { font-size: 4rem; -webkit-text-stroke-width: 2px; }
.pm-card .pj-ph i { font-size: 1.3rem; }
.pm-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pm-status { align-self: flex-start; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; background: var(--navy); color: var(--green); transform: rotate(-2deg); }
.pm-status.pm-upcoming, .pm-status.pm-active { background: var(--green); color: var(--navy); }
.pm-card h4 { font-size: 1.25rem; line-height: 1.15; margin: 12px 0 4px; letter-spacing: -0.01em; }
.pm-card p { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); }
.pm-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pm-foot .tk-cc i { background: var(--blue); color: #fff; }
.pm-foot b { color: var(--blue); font-size: 0.9rem; white-space: nowrap; }
.pm-card:hover .pm-foot b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .pm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pm-grid { grid-template-columns: 1fr; gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .pm-card { transition: none; } }

/* Footer call to action: one ending for every page, with a boarding pass to the next exchange */
.foot-cta-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px 56px; align-items: center; padding-bottom: 28px; }
.foot-ask { margin-top: 18px !important; font-size: 0.98rem !important; }
.foot-ask a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pass-wrap { position: relative; padding: 10px 0 40px; }
.pass { display: grid; grid-template-columns: 1fr 140px; color: var(--navy); text-decoration: none; transform: rotate(-3deg); transition: transform .35s cubic-bezier(.3,1.5,.5,1); filter: drop-shadow(0 26px 40px rgba(10,15,46,0.35)); }
.pass:hover, .pass:focus-visible { transform: rotate(-1deg) translateY(-6px); }
.pass-main, .pass-stub { background: #fff; position: relative; }
.pass-main { border-radius: 18px 0 0 18px; padding: 20px 22px 22px; -webkit-mask: radial-gradient(circle 12px at 100% 0, #0000 98%, #000) top, radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) bottom; -webkit-mask-size: 100% 51%; -webkit-mask-repeat: no-repeat; mask: radial-gradient(circle 12px at 100% 0, #0000 98%, #000) top, radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) bottom; mask-size: 100% 51%; mask-repeat: no-repeat; }
.pass-stub { border-radius: 0 18px 18px 0; padding: 20px 18px 22px; border-left: 3px dashed #c9d1ff; display: flex; flex-direction: column; background: var(--green); -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) top, radial-gradient(circle 12px at 0 100%, #0000 98%, #000) bottom; -webkit-mask-size: 100% 51%; -webkit-mask-repeat: no-repeat; mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) top, radial-gradient(circle 12px at 0 100%, #0000 98%, #000) bottom; mask-size: 100% 51%; mask-repeat: no-repeat; }
.pass-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); padding-bottom: 12px; white-space: nowrap; gap: 10px; border-bottom: 2px dashed #e1e5f6; }
.pass-head i { font-style: normal; background: var(--blue); color: #fff; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.06em; }
.pass dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 14px 0 0; }
.pass dt, .pass-stub small { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #6a7194; }
.pass dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.pass dl div:first-child dd { font-size: 1.6rem; color: var(--blue); }
.pass-stub small { color: rgba(10,15,46,0.65); }
.pass-stub b { font-size: 1.35rem; line-height: 1.05; margin-top: 6px; letter-spacing: -0.01em; }
.pass-stub span { font-size: 0.82rem; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.pass-stub em { margin-top: auto; padding-top: 12px; font-style: normal; font-weight: 800; font-size: 0.82rem; white-space: nowrap; }
.pass:hover .pass-stub em { text-decoration: underline; text-underline-offset: 3px; }
.pass:focus-visible { outline: 3px solid var(--green); outline-offset: 8px; }
.pass-note { position: absolute; right: 4%; bottom: -14px; margin: 0; display: flex; align-items: flex-start; gap: 6px; color: #fff; font-size: 1.7rem; line-height: 1; transform: rotate(-3deg); }
.pass-note svg { width: 48px; height: 38px; transform: scaleY(-1); margin-top: -30px; order: -1; color: var(--green); }
@media (max-width: 900px) { .foot-cta-grid { grid-template-columns: 1fr; } .pass-wrap { max-width: 520px; } }
@media (min-width: 901px) { .foot-cta-grid h2 { white-space: nowrap; font-size: clamp(2.6rem, 5vw, 4rem); } }
@media (max-width: 520px) {
  .pass { grid-template-columns: 1fr; transform: rotate(-2deg); }
  .pass-main { border-radius: 18px 18px 0 0; padding: 16px 18px 18px; -webkit-mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat; }
  .pass-stub { border-radius: 0 0 18px 18px; border-left: 0; border-top: 3px dashed rgba(10,15,46,0.25); padding: 14px 18px 16px; -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
  .pass-stub small, .pass-stub b, .pass-stub span { grid-column: 1; }
  .pass-stub em { grid-column: 2; grid-row: 1 / 4; align-self: center; padding: 0; }
  .pass dl { gap: 10px 14px; } .pass dl div:first-child dd { font-size: 1.35rem; } .pass dd { font-size: 0.98rem; }
  .pass-stub b { font-size: 1.15rem; }
  .pass-note { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .pass { transition: none; } }

/* About page band: green so it doesn't run into the blue footer */
.band { background: var(--green); color: var(--navy); }
.band h2 { color: var(--navy); }
.band p { color: rgba(10,15,46,0.78); }
.band .btn-green { background: var(--navy); color: #fff; }
.band .btn-ghost { color: var(--navy); box-shadow: inset 0 0 0 2px rgba(10,15,46,0.5); }
.band .btn-ghost:hover { color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
/* Keep text dark on the white pass and polaroids when hovered, also in dark mode (a:hover uses --fg) */
.pass:hover, .pass:focus-visible, .pj-pol:hover, .pj-pol:focus-visible { color: var(--navy); }

/* Novae logo (bird + wordmark) inside the blue chip on boarding-pass tickets */
.tk-logo { display: inline-flex; align-items: center; line-height: 0; }
.pass-head i.tk-logo, .route-top i.tk-logo { padding: 5px 9px !important; }
.tk-logo svg { height: 21px; width: auto; display: block; color: #fff; }

/* Departures board in the footer */
.board { background: var(--navy); color: #fff; padding-block: 16px; position: relative; z-index: 3; border-top: 4px solid var(--green); }
.board-in { display: flex; align-items: center; gap: 22px; }
.board-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: var(--navy); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 12px; border-radius: 8px; rotate: -2deg; flex: none; }
.board-tag svg { width: 18px; height: 18px; rotate: 45deg; }
.board-rows { display: flex; gap: 18px; flex-wrap: nowrap; min-width: 0; }
.bcol { display: grid; gap: 4px; }
.bcol small { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #8e9bd8; }
.flaps { display: flex; gap: 2px; }
.flaps i { font-style: normal; width: 1.3em; height: 1.75em; display: grid; place-items: center; background: #161d4a; border-radius: 3px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; font-size: 1rem; color: #f4f6ff; position: relative; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.35); transition: transform .05s; }
.flaps i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(10,15,46,0.9); }
.flaps i.spin { transform: scaleY(0.82); }
.board .c3 .flaps i { color: var(--green); }
.board[data-status="completed"] .c3 .flaps i { color: #ffc94d; }
.board .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
@media (max-width: 1080px) { .board .c2 { display: none; } }
@media (max-width: 820px) { .board .c1 { display: none; } .board-in { gap: 14px; } .flaps i { font-size: 0.85rem; } }
@media (max-width: 420px) { .board-tag { padding: 6px 8px; font-size: 0; gap: 0; } .board-tag svg { width: 20px; height: 20px; } .flaps i { font-size: 0.8rem; width: 1.2em; } .board-rows { gap: 12px; } }

/* Simplified footer: one row of logo, pages and contacts, then the EU line */
.foot-main { padding-block: 40px 26px; }
.foot-main .wrap { gap: 22px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.foot-row .logo { color: #fff; line-height: 0; }
.foot-row .logo svg { height: 34px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: #fff; font-weight: 600; font-size: 0.92rem; background: linear-gradient(var(--green), var(--green)) no-repeat 0 100% / 0 2px; transition: background-size .25s; padding-bottom: 2px; }
.foot-links a:hover { background-size: 100% 2px; color: #fff; }
.foot-base { align-items: center; font-size: 0.85rem; }
footer .disclaimer { margin-top: -6px; font-size: 0.72rem; }
.foot-cta h2 + .foot-actions { margin-top: 22px; }
.board { border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.25); align-self: center; } @media (max-width: 600px) { .foot-sep { display: none; } }
footer a.eu:hover { color: var(--green); }
.eu-note { margin-top: 40px; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; }
.eu-note .eu { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.eu-note .flag { width: 42px; height: 28px; background: #003399; border-radius: 3px; display: grid; place-items: center; color: #ffcc00; font-size: 0.6rem; letter-spacing: 1px; }
.eu-note p { margin: 10px 0 0; color: var(--muted); font-size: 0.88rem; }

/* Phones: full departures board stacked, tidier footer */
@media (max-width: 820px) {
  .board .c1, .board .c2 { display: grid; }
  .board-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .board-tag { font-size: 0.72rem; gap: 8px; padding: 6px 10px; }
  .board-tag svg { width: 16px; height: 16px; }
  .board-rows { display: grid; gap: 6px; width: 100%; }
  .bcol { grid-template-columns: 66px auto; align-items: center; gap: 8px; }
  .flaps i { font-size: 0.8rem; width: 1.45em; height: 1.85em; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; width: 100%; }
  .foot-links a { font-size: 0.95rem; width: fit-content; }
  .foot-base { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 0.82rem; }
}
@media (max-width: 420px) { .board-tag { font-size: 0.72rem; padding: 6px 10px; gap: 8px; } .board-tag svg { width: 16px; height: 16px; } .flaps i { font-size: 0.78rem; width: 1.35em; } .board-rows { gap: 6px; } }

/* The one main button of the site (SITE.cta): Home hero and the end of every page */
.btn-cta { display: inline-flex; align-items: center; gap: 10px; padding: 17px 28px; font-size: 1.08rem; font-weight: 800; box-shadow: 0 14px 30px rgba(10,15,46,0.3); transition: background .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.btn-cta i { font-style: normal; transition: transform .25s; }
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta:hover i { transform: translateX(5px); }
.foot-actions { align-items: center; gap: 14px 20px; }
.foot-alt { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.45); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.foot-alt:hover { color: #fff; text-decoration-color: var(--green); }

/* Official "Co-funded by the European Union" emblem in the footer */
footer .eu img { display: block; height: 40px; width: auto; }

/* Newsletter sign-up in the footer (shown when SITE.newsletter.enabled): a green band like the Home stops,
   one white pill for the email, and the Turnstile check only appears if Cloudflare needs the visitor to click */
.foot-news { color-scheme: light; position: relative; overflow: hidden; background: var(--green); color: var(--navy); padding-block: 56px 52px; scroll-margin-top: 80px; }
.foot-news::after { content: ""; position: absolute; width: 420px; height: 420px; right: -170px; top: -210px; border-radius: 50%; border: 56px solid rgba(255,255,255,0.22); pointer-events: none; }
.news-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px 64px; align-items: center; }
.foot-news .news-copy .sticker { display: inline-block; padding: 7px 14px; border-radius: 10px; background: var(--navy); color: var(--green); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; rotate: -3deg; }
.foot-news h3 { margin: 14px 0 10px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; }
.foot-news p { margin: 0; max-width: 30em; color: rgba(10,15,46,0.78); font-weight: 500; }
.news-form { position: relative; display: grid; gap: 14px; }
.news-note { position: absolute; right: 18px; top: -38px; margin: 0; font-size: 1.5rem; line-height: 1; color: var(--navy); rotate: -4deg; }
.news-pill { display: flex; align-items: center; gap: 8px; padding: 7px; background: #fff; border-radius: 999px; box-shadow: 0 16px 34px rgba(10,15,46,0.22); rotate: -1deg; transition: rotate .4s cubic-bezier(.3,1.6,.5,1); }
.news-pill:focus-within { rotate: 0deg; box-shadow: 0 0 0 3px var(--navy), 0 16px 34px rgba(10,15,46,0.22); }
.news-pill input { flex: 1; min-width: 0; padding: 12px 8px 12px 18px; border: 0; background: none; color: var(--navy); font: inherit; font-size: 1.05rem; font-weight: 600; outline: none; }
.news-pill input::placeholder { color: #8a90ad; }
.news-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: background .2s; }
.news-btn i { font-style: normal; transition: translate .2s; }
.news-btn:hover { background: var(--blue); } .news-btn:hover i { translate: 4px 0; }
.news-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.news-btn[disabled] { opacity: 0.6; cursor: wait; }
.news-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.news-consent { display: flex; gap: 10px; align-items: flex-start; padding-left: 8px; font-size: 0.86rem; line-height: 1.45; color: rgba(10,15,46,0.8); cursor: pointer; }
.news-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); }
.news-consent a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.news-form .cf-turnstile:empty { display: none; }
.news-msg { min-height: 1.4em; margin: 0; padding-left: 8px; font-weight: 800; font-size: 0.95rem; color: var(--navy); }
.news-msg.err { color: #9b1020; }
.pj-news { display: inline-block; margin-left: 18px; font-weight: 800; color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } .news-note { top: -34px; } }
@media (max-width: 520px) { .news-pill { flex-wrap: wrap; border-radius: 22px; } .news-pill input { width: 100%; flex-basis: 100%; padding: 12px 14px; } .news-btn { width: 100%; justify-content: center; } .news-note { display: none; } .foot-news::after { display: none; } .pj-news { display: block; margin: 14px 0 0; } }
.news-form .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Compact footer: call to action, newsletter, departures board, links */
.foot-cta { padding-block: 52px 8px; }
.foot-cta-grid { padding-bottom: 20px; gap: 32px 56px; }
.pass-wrap { padding: 4px 0 30px; }
.foot-news { padding-block: 38px 34px; }
.foot-news h3 { margin: 10px 0 6px; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.news-form { gap: 10px; }
.foot-news + .foot-board .board { border-top: 0; }
.foot-main { padding-block: 30px 22px; }
@media (max-width: 760px) { .foot-cta { padding-block: 40px 4px; } .foot-news { padding-block: 32px 28px; } }
@media (max-width: 600px) {
  .foot-links { grid-template-columns: repeat(3, auto) !important; gap: 10px 18px !important; justify-content: start; }
  .foot-links a { font-size: 0.9rem; }
  .board { padding-block: 12px; } .board-in { gap: 8px; }
  .pass-wrap { padding-bottom: 22px; }
}

/* Decluttered bottom of the page: no wavy line under the button, a plain newsletter band, a quieter board and footer */
.foot-cta { background-image: none; }
.foot-news::after { display: none; }
.foot-news .news-grid { align-items: center; }
.foot-news h3 { margin: 0 0 6px; }
.news-form .news-consent { margin-top: 12px; font-size: 0.88rem; }
.foot-news + .foot-board .board, .board { border: 0; }
.board { padding-block: 14px 4px; }
.foot-main { padding-block: 22px 22px; }
.foot-main .wrap { gap: 18px; }
.foot-base { padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }

/* Link to the game (game.html), used on How it works. Fixed colours so it reads the same in dark mode. */
.game-promo-band { padding-block: 8px 40px; }
.game-promo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 24px; padding: 22px 26px; border-radius: 18px; background: #1a3eec; color: #fff; background-image: radial-gradient(rgba(255,255,255,0.13) 1.5px, transparent 1.6px); background-size: 22px 22px; box-shadow: 0 14px 30px rgba(10,15,46,0.2); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.game-promo:hover { color: #fff; transform: translateY(-3px) rotate(-0.4deg); }
.gp-day { padding: 8px 14px; border-radius: 10px; background: #fff; color: #1a3eec; font-size: 1.5rem; line-height: 1; transform: rotate(-4deg); }
.gp-text b { display: block; font-size: 1.25rem; font-weight: 800; }
.gp-text span { display: block; margin-top: 4px; color: #dfe5ff; font-weight: 500; font-size: 0.98rem; }
.gp-go { padding: 12px 22px; border-radius: 999px; background: #2aec71; color: #0a0f2e; font-weight: 800; white-space: nowrap; }
@media (max-width: 640px) { .game-promo { grid-template-columns: 1fr; justify-items: start; } }
