/* ==========================================================================
   EUROAVIA Forlì–Bologna
   Colours: EUROAVIA Corporate Identity Guideline 2025, §3.2
     signature  Dark Midnight Blue #003366 · Mercury #E6E6E6 · black · white
     palette    #003366 · #0578FF · #7BBEFF · #D1E7FD · #FF914D (+ official tints)
     web kit    #040D21 (Local Group website template, dark)
   Type: Instrument Sans/Serif (euroavia.eu + LG template), Jost for the
   EUROAVIA wordmark next to the logo (CI §5).
   Geometry: slant 58.3° of the signature's speed lines.
   ========================================================================== */

:root {
  /* official */
  --navy: #003366;          /* Dark Midnight Blue */
  --navy-80: #27527d;       /* tint */
  --navy-50: #748fac;       /* tint */
  --azure: #0578ff;
  --azure-light: #7bbeff;
  --sky: #d1e7fd;
  --sky-soft: #e5f1fd;      /* tint */
  --signal: #ff914d;
  --signal-80: #ffa169;     /* tint */
  --signal-50: #ffc29d;     /* tint */
  --mercury: #e6e6e6;
  --white: #ffffff;
  --black: #000000;
  --night: #040d21;         /* LG web template */

  /* semantic */
  --paper: #f5f5f5;         /* euroavia.eu light surface */
  --paper-2: var(--mercury);
  --paper-hi: var(--white);
  --ink: var(--black);
  --ink-2: #333333;         /* black 80% */
  --muted: #5c5c5c;
  --line: rgba(0, 51, 102, .16);
  --line-inv: rgba(209, 231, 253, .16);

  --jost: "Jost", "Instrument Sans", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --slant: -31.7deg;               /* skew matching the logo's speed lines */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
/* film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--signal); color: var(--night); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.mono {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 400;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* visually hidden */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--signal); padding: .6rem 1rem; color: var(--night); }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  --h: 2.75rem;
  display: inline-flex; align-items: center; gap: .65rem;
  height: var(--h); padding: 0 1.15rem;
  font: 600 .9375rem/1 var(--sans);
  text-decoration: none; border: 0; cursor: pointer;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--lg { --h: 3.4rem; padding: 0 1.6rem; font-size: 1.0625rem; }
.btn--signal { background: var(--signal); color: var(--night); box-shadow: 0 0 0 0 rgba(255,145,77,.0); }
.btn--signal:hover { background: var(--signal-80); box-shadow: 0 10px 30px -10px rgba(255,145,77,.7); transform: translateY(-1px); }
.btn--signal:active { transform: translateY(1px); }
.btn--ghost { color: var(--sky); box-shadow: inset 0 0 0 1px var(--line-inv); background: transparent; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--sky); }
.btn--ghost-dark { color: var(--navy); background: transparent; box-shadow: inset 0 0 0 1px var(--navy); }
.btn--ghost-dark:hover { background: var(--navy); color: var(--paper); }
.btn--link { background: none; padding: 0; color: var(--muted); font-weight: 500; height: auto; }
.btn--link:hover { color: var(--navy); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem var(--gutter);
  color: var(--paper);
  transition: background .4s, color .4s, padding .4s, box-shadow .4s;
}
.top.is-scrolled {
  background: rgba(4, 13, 33, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-block: .6rem;
}
.top.is-solid {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  color: var(--navy);
  padding-block: .6rem;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 3.6rem; height: 1.77rem; fill: var(--mercury); transition: fill .4s; }
.top.is-solid .brand__mark { fill: var(--navy); }
.brand__word { font: 600 .95rem/1 var(--jost); letter-spacing: .04em; display: flex; flex-direction: column; gap: .2rem; }
.brand__word em { font: 400 .8rem/1 var(--jost); font-style: normal; letter-spacing: .02em; opacity: .8; }
.nav { display: flex; gap: 1.75rem; }
.nav a { text-decoration: none; font-size: .9375rem; position: relative; padding: .3rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--signal); transform: scaleX(0) skewX(var(--slant)); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1) skewX(var(--slant)); }
.top__cta { --h: 2.5rem; }
.burger { display: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px currentColor; }
.burger span { position: absolute; left: 30%; right: 30%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out); }
.burger span:first-child { top: 42%; } .burger span:last-child { top: 58%; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--night); color: var(--paper);
  display: flex; align-items: flex-end; padding: 6rem var(--gutter) 3rem;
}
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; gap: .2rem; width: 100%; counter-reset: dn; }
.drawer a { font: 400 clamp(2.4rem, 11vw, 4rem)/1.05 var(--serif); text-decoration: none; display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line-inv); padding: .4rem 0; animation: rise .6s var(--ease-out) backwards; }
.drawer a:nth-child(2){animation-delay:.04s}.drawer a:nth-child(3){animation-delay:.08s}.drawer a:nth-child(4){animation-delay:.12s}.drawer a:nth-child(5){animation-delay:.16s}.drawer a:nth-child(6){animation-delay:.2s}
.drawer a::before { counter-increment: dn; content: counter(dn, decimal-leading-zero); font: .7rem var(--mono); color: var(--signal); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 60rem);
  background: var(--night);
  color: var(--paper);
  overflow: hidden; overflow: clip;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
}
.hero::before { /* faint instrument grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line-inv) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: calc(100% / 12) 120px;
  mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%);
  opacity: .5;
}
.hero__stripes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__stripes i {
  position: absolute; right: -10%;
  height: clamp(44px, 8vw, 120px);
  transform: skewX(var(--slant)) translateX(110%);
  animation: stripe-in 1.4s var(--ease-out) forwards;
}
.hero__stripes i:nth-child(1) { top: 14%; width: 62%; background: var(--navy); animation-delay: .15s; }
.hero__stripes i:nth-child(2) { top: calc(14% + clamp(60px, 11vw, 165px)); width: 48%; background: rgba(5, 120, 255, .16); animation-delay: .28s; box-shadow: inset 0 0 0 1px rgba(123,190,255,.22); }
.hero__stripes i:nth-child(3) { top: calc(14% + clamp(120px, 22vw, 330px)); width: 30%; background: var(--signal); animation-delay: .4s; height: clamp(10px, 1.6vw, 22px); }
@keyframes stripe-in { to { transform: skewX(var(--slant)) translateX(0); } }

.hero__inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(6.5rem, 13vh, 9rem) var(--gutter) clamp(1.75rem, 4vh, 3rem);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__kicker { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: var(--sky); opacity: .8; margin: 0 0 1.5rem; }
.hero__kicker span::before { content: "◦ "; color: var(--signal); }

/* One font, one colour, one accent: condensed Instrument Sans, white, orange bar under "team sport" */
.hero__title {
  font: 700 clamp(3.2rem, 15.5vw, 15rem)/.86 var(--sans);
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: -.012em;
  color: var(--white);
  margin: 0 0 clamp(1.5rem, 4vh, 3rem) -.03em;
}
@media (min-width: 900px) { .hero__title { font-size: min(10.5vw, 11rem); } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.1em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise-in 1.1s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise-in { to { transform: translateY(0); } }

.hl { position: relative; display: inline-block; }
.hl::after {
  content: ""; position: absolute; left: .02em; right: .02em; bottom: -.1em; height: .085em;
  background: var(--signal);
  transform: skewX(var(--slant)) scaleX(0); transform-origin: left;
  animation: hl-in .9s 1s var(--ease-out) forwards;
}
@keyframes hl-in { to { transform: skewX(var(--slant)) scaleX(1); } }

.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.hero__lede { max-width: 34rem; margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: rgba(255,255,255,.82); }
.hero__lede strong { color: var(--paper); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- latest ---------- */
.latest { border-top: 1px solid var(--line-inv); }
.latest__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 1.2rem var(--gutter) 1.6rem;
  display: grid; gap: .9rem;
}
.latest__h { color: var(--signal); margin: 0; }
.latest__item {
  position: relative; display: flex; flex-direction: column; gap: .4rem; text-decoration: none;
  padding: .9rem .9rem 1rem; margin: 0 -.9rem; border-radius: 6px;
  border-top: 1px solid var(--line-inv);
  transition: background .25s;
}
.latest__item time { color: rgba(209,231,253,.62); }
.latest__item b { font: 400 1.3rem/1.2 var(--serif); color: var(--white); text-wrap: balance; }
.latest__item:hover { background: rgba(209,231,253,.1); }
.latest__item .go { margin-top: auto; padding-top: .2rem; }
@media (max-width: 639px) { .latest__item:nth-of-type(n+3) { display: none; } }
@media (min-width: 900px) {
  .latest__inner { grid-template-columns: 6rem repeat(3, 1fr); column-gap: 0; align-items: stretch; }
  .latest__h { align-self: start; }
  .latest__item { border-top: 0; margin: 0; padding: .9rem 1.6rem 1rem; border-radius: 0 6px 6px 0; border-left: 1px solid var(--line-inv); }
}

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
section { position: relative; }
.label { color: var(--navy); margin: 0 0 1.6rem; display: flex; align-items: center; gap: .8rem; }
.label::before { content: ""; width: 1.6rem; height: .5rem; background: var(--signal); transform: skewX(var(--slant)); }
main { counter-reset: sec; }
.label__n::before { counter-increment: sec; content: counter(sec, decimal-leading-zero) " — "; }
.sec-head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.sec-head--split { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: end; }
.sec-title { font: 400 clamp(2.9rem, 7.4vw, 7rem)/.9 var(--serif); letter-spacing: -.03em; margin: 0; }
.sec-title em { font-style: normal; color: var(--azure); }
.sec-aside { max-width: 26rem; margin: 0; color: var(--muted); font-size: 1.0625rem; }


/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: .55s; }
.hero .hero__actions.reveal { transition-delay: .7s; }
.hero .latest.reveal { transition-delay: .85s; transform: none; }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 9vw, 8rem); }
.manifesto__text {
  position: relative;
  font: 400 clamp(2rem, 4.6vw, 4.4rem)/1.04 var(--serif);
  letter-spacing: -.02em;
  max-width: 21ch;
  margin: 0 0 clamp(3rem, 8vw, 6rem);
  color: var(--navy);
  text-wrap: balance;
}
.manifesto__text em { font-style: normal; color: var(--azure); }
.manifesto .wrap { position: relative; }
.stamp {
  position: absolute; right: var(--gutter); top: -1rem;
  width: clamp(7.5rem, 17vw, 15rem); aspect-ratio: 1;
  color: var(--navy); display: grid; place-items: center;
}
.stamp__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.stamp__ring text { font: 500 12.5px var(--mono); letter-spacing: .12em; fill: currentColor; }
.stamp__e { width: 38%; height: auto; aspect-ratio: 2; fill: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

.manifesto__grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 1.6rem 1rem 1.8rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .6rem; }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 1rem; }
.fact__num { font: 400 clamp(3rem, 7vw, 6.2rem)/.9 var(--serif); color: var(--navy); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact__lbl { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.manifesto__cols { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); max-width: 62rem; margin-left: auto; color: var(--ink-2); }
.manifesto__cols p { margin: 0; }

/* ==========================================================================
   ROUTES
   ========================================================================== */
.routes { background: var(--navy); color: var(--paper); padding: clamp(5rem, 11vw, 9rem) 0; overflow: hidden; overflow: clip; }
.routes .label { color: var(--signal); }
.routes .sec-title em { color: var(--sky); }
.route-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-inv); }
.route {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr; gap: .6rem 1.4rem;
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line-inv);
}
.route::before { /* hover sweep: a logo stripe */
  content: ""; position: absolute; z-index: -1; inset: 0 -6vw;
  background: #00244a; /* very dark blue, darker than the navy section */
  transform: skewX(var(--slant)) scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.route:hover::before { transform: skewX(var(--slant)) scaleX(1); }
.route__code { font-size: .75rem; color: var(--signal); padding-top: .55rem; }
.route__body h3 { font: 400 clamp(2rem, 4.4vw, 3.8rem)/1 var(--serif); margin: 0 0 .7rem; letter-spacing: -.02em; transition: transform .5s var(--ease-out); }
.route:hover .route__body h3 { transform: translateX(.6rem); }
.route__body p { margin: 0; max-width: 40rem; color: rgba(255,255,255,.72); }

/* ==========================================================================
   LOGBOOK — flight strips
   ========================================================================== */
.logbook { padding: clamp(5rem, 11vw, 9rem) 0 clamp(3rem, 6vw, 5rem); }
.strips {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem var(--gutter) 2rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}
.strips::-webkit-scrollbar { display: none; }
.strips.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strips.is-drag .strip { pointer-events: none; }
@media (min-width: 1500px) { .strips { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.strip {
  flex: 0 0 min(82vw, 21rem);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  min-height: 25rem;
  padding: 1.25rem 1.3rem 1.1rem;
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-left: 6px solid var(--navy);
  position: relative;
  transition: transform .4s var(--ease-out), box-shadow .4s;
  user-select: none;
}
.strip:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 24px 40px -24px rgba(4, 13, 33, .35); }
.strip header { display: flex; justify-content: space-between; color: var(--muted); padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.strip header span:first-child { color: var(--navy); font-weight: 600; }
.strip h3 { font: 400 2.3rem/.98 var(--serif); letter-spacing: -.02em; color: var(--navy); margin: 0 0 .9rem; padding-top: 2.2rem; }
.strip p { margin: 0 0 1.2rem; font-size: .975rem; color: var(--ink-2); }
.strip footer { color: var(--muted); opacity: .7; padding-top: .8rem; border-top: 1px dashed var(--line); }
.strip--accent { border-left-color: var(--signal); }
.strip--accent h3 { color: var(--navy); }
.strip--sky { background: var(--sky); border-color: rgba(0,51,102,.12); border-left-color: var(--navy); }
.strip--next { background: var(--navy); border-color: var(--navy); border-left-color: var(--signal); color: var(--paper); }
.strip--next header { border-color: var(--line-inv); color: rgba(209,231,253,.6); }
.strip--next header span:first-child { color: var(--signal); }
.strip--next h3 { color: var(--paper); }
.strip--next p { color: rgba(255,255,255,.75); }
.strip--next .btn { align-self: flex-start; }
.strips__hint { display: flex; align-items: center; gap: 1.2rem; color: var(--muted); }
.strips__bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.strips__bar i { position: absolute; inset: 0; background: var(--navy); transform-origin: left; transform: scaleX(.1); }

/* ==========================================================================
   NETWORK
   ========================================================================== */
.network { background: var(--sky); padding: clamp(5rem, 11vw, 9rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; overflow: clip; }
.network .sec-aside { color: var(--navy-80); }
.network .sec-title { color: var(--navy); }
.network .sec-title em { color: var(--navy); opacity: .55; }

/* ==========================================================================
   CHECK-IN
   ========================================================================== */
.checkin { background: var(--night); color: var(--paper); padding: clamp(5rem, 11vw, 9rem) 0; overflow: hidden; overflow: clip; }
.checkin::before {
  content: ""; position: absolute; left: -8%; top: 0; width: 45%; height: 100%;
  background: var(--navy); transform: skewX(var(--slant)); transform-origin: top left; opacity: .55;
  pointer-events: none;
}
.checkin .label { color: var(--signal); }
.checkin .sec-title em { color: var(--sky); }
.checkin__wrap { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.checkin__lede { max-width: 30rem; color: rgba(255,255,255,.75); margin: 1.5rem 0 3rem; }

.pass-stage { position: relative; padding-top: 1rem; }

/* membership card */
.pass {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  background: var(--paper-hi);
  color: var(--navy);
  border-radius: 14px;
  box-shadow: 0 40px 60px -30px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.4) inset;
  transform: translateY(10px);
  transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out);
  max-width: 34rem;
}
.pass.is-live { transform: translateY(0); box-shadow: 0 50px 70px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(123,190,255,.25); }
.pass span.mono { display: block; color: var(--muted); font-size: .58rem; margin-bottom: .3rem; }
.pass__main { padding: 1.3rem 1.4rem 1.2rem; }
.pass__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.pass__top span.mono { margin: 0; }
.pass__logo { width: 3.3rem; height: 1.65rem; fill: var(--navy); }
.pass__group { padding: 1.1rem 0 1.2rem; }
.pass__group b { display: block; font: 400 clamp(2.4rem, 7vw, 3.2rem)/.95 var(--serif); letter-spacing: -.02em; }
.pass__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pass__grid b { display: block; font: 600 .95rem/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass__name { grid-column: 1 / -1; }
.pass__name b { font: 400 1.9rem/1 var(--serif); white-space: normal; min-height: 1.9rem; }
.pass__name b.is-empty { opacity: .35; }
.pass__stub {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: end;
  padding: 1.2rem 1.4rem 1.3rem;
  background: var(--sky-soft);
  border-top: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
}
.pass__stub b { font: 600 .95rem/1.2 var(--sans); }
.status { display: inline-block; padding: .2rem .55rem; border-radius: 4px; background: var(--paper-2); }
.status.is-paid { background: var(--navy); color: var(--paper); }
.status.is-cash { background: var(--signal); color: var(--night); }
.barcode { grid-column: 1 / -1; width: 100%; height: 44px; fill: var(--navy); }

/* panel */
.checkin__panel {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  box-shadow: 0 50px 80px -40px rgba(0,0,0,.6);
  min-height: 34rem;
}
.steps { list-style: none; display: flex; gap: .4rem; margin: 0 0 2rem; padding: 0; counter-reset: s; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: .5rem; color: var(--muted); font-size: .625rem; }
.steps li::before { content: ""; height: 4px; background: var(--paper-2); transform: skewX(var(--slant)); transition: background .4s; }
.steps li span { color: inherit; opacity: .6; }
.steps li.is-active, .steps li.is-done { color: var(--navy); }
.steps li.is-active::before { background: var(--signal); }
.steps li.is-done::before { background: var(--navy); }

.step { display: none; }
.step.is-active { display: block; animation: step-in .6s var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }

.field { display: flex; flex-direction: column; gap: .4rem; margin: 0 0 1.1rem; min-width: 0; border: 0; padding: 0; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
.field label, .field legend { font-size: .875rem; font-weight: 600; color: var(--navy); padding: 0; }
.field label i, .field legend i { font-weight: 400; font-style: normal; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 3.1rem; padding: 0 .95rem;
  font: 400 1rem var(--sans); color: var(--ink);
  background: var(--paper-hi);
  border: 1px solid rgba(0,51,102,.2);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23003366' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem;
}
.field input::placeholder { color: #8c8c8c; }
.field input:hover, .field select:hover { border-color: rgba(0,51,102,.4); }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0,51,102,.1); background: #fff; }
.field__err { display: none; font-size: .8125rem; color: #c2410c; }
.field.is-invalid input, .field.is-invalid select { border-color: #e2652b; background: #fff6f0; }
.field.is-invalid .field__err { display: block; }

.chips { flex-direction: row; flex-wrap: wrap; gap: .45rem; }
.chips legend { margin-bottom: .6rem; width: 100%; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem; border-radius: 999px;
  border: 1px solid rgba(0,51,102,.22);
  font-size: .9rem; font-weight: 500; color: var(--navy);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.chips span::before { content: "+"; font-family: var(--mono); font-size: .75rem; transition: transform .3s var(--ease-out); }
.chips label:hover span { border-color: var(--navy); }
.chips input:checked + span { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.chips input:checked + span::before { transform: rotate(45deg); color: var(--signal); }
.chips input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; color: var(--ink-2); cursor: pointer; margin-top: .4rem; }
.consent input { flex: none; width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; accent-color: var(--navy); }
.consent__err { margin-top: .4rem; }
.consent.is-invalid + .consent__err { display: block; }

.step__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.step__actions .btn--signal { margin-left: auto; }

/* fee */
.fee { display: grid; gap: .8rem; padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.fee__lbl { margin: 0; color: var(--muted); }
.fee__amt { margin: 0; font: 400 clamp(3.4rem, 7vw, 4.6rem)/1 var(--serif); color: var(--navy); letter-spacing: -.02em; }
.fee__amt small { font: 400 1rem var(--sans); color: var(--muted); margin-left: .3rem; letter-spacing: 0; }
.fee__inc { margin: 0; font-size: .9375rem; color: var(--ink-2); max-width: 30rem; }

.paytabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; background: var(--paper-2); padding: .3rem; border-radius: 12px; }
.paytabs button {
  height: 2.6rem; border: 0; border-radius: 9px; cursor: pointer;
  font: 600 .9375rem var(--sans); color: var(--muted); background: transparent;
  transition: background .25s, color .25s, box-shadow .25s;
}
.paytabs button:hover { color: var(--navy); }
.paytabs button[aria-selected="true"] { background: var(--paper-hi); color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 10px -6px rgba(0,51,102,.3); }
.demo-flag { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 1.4rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .7rem; }
.demo-flag span { background: var(--navy); color: var(--paper); padding: .2rem .45rem; border-radius: 3px; text-transform: uppercase; letter-spacing: .08em; font-size: .6rem; }

.paypane { display: none; }
.paypane.is-active { display: block; animation: step-in .45s var(--ease-out); }

/* credit card preview */
.cc { position: relative; width: min(100%, 21rem); aspect-ratio: 1.586; margin: 0 0 1.6rem; perspective: 1200px; }
.cc__face {
  position: absolute; inset: 0; border-radius: 14px; padding: 1.15rem 1.25rem;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .8s var(--ease-out);
  color: var(--paper);
  overflow: hidden;
  background:
    linear-gradient(118deg, transparent 0 48%, rgba(209,231,253,.06) 48% 62%, transparent 62%),
    linear-gradient(118deg, transparent 0 66%, rgba(255,145,77,.85) 66% 69%, transparent 69%),
    var(--navy);
  box-shadow: 0 20px 40px -18px rgba(4,13,33,.6);
}
.cc__front { display: flex; flex-direction: column; justify-content: flex-end; }
.cc__back { transform: rotateY(180deg); padding: 0; }
.cc.is-flipped .cc__front { transform: rotateY(-180deg); }
.cc.is-flipped .cc__back { transform: rotateY(0); }
.cc__chip { position: absolute; top: 1.2rem; left: 1.25rem; width: 2.4rem; height: 1.8rem; border-radius: 5px; background: linear-gradient(135deg, #f2d7a6, #c9a565); }
.cc__chip::after { content: ""; position: absolute; inset: 30% 0; border-block: 1px solid rgba(0,0,0,.2); }
.cc__logo { position: absolute; top: 1.15rem; right: 1.25rem; width: 3.6rem; height: 1.8rem; fill: var(--mercury); }
.cc__num { font-size: clamp(.95rem, 4vw, 1.15rem); letter-spacing: .12em; margin-bottom: .8rem; text-transform: none; }
.cc__row { display: flex; justify-content: space-between; opacity: .8; font-size: .65rem; }
.cc__row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.cc__strip { height: 2.6rem; background: var(--black); margin-top: 1.4rem; }
.cc__cvc { margin: 1.2rem 1.25rem 0 auto; width: 70%; height: 2.2rem; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: flex-end; padding-right: .8rem; border-radius: 4px; font-size: .85rem; }

/* satispay mock */
.sat { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; padding: 1.2rem; background: var(--paper-hi); border-radius: 14px; border: 1px solid var(--line); }
.qr { width: 8.5rem; height: 8.5rem; fill: var(--navy); padding: .4rem; background: #fff; border-radius: 6px; }
.sat__t { font: 400 1.7rem/1 var(--serif); color: var(--navy); margin: 0 0 .5rem; }
.sat__p { margin: 0 0 .8rem; font-size: .9rem; color: var(--ink-2); }
.sat__p b { font-size: .65rem; color: var(--navy); }
.sat__wait { margin: 0; display: flex; align-items: center; gap: .5rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .7rem; }
.sat__wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: blink 1s infinite; }

/* cash */
.cash__intro { margin: 0 0 1.4rem; color: var(--ink-2); }
.cash__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cash__list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cash__list span.mono { color: var(--muted); font-size: .625rem; }
.cash__list a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.cash__list a:hover { text-decoration-color: var(--navy); }

/* loading state */
.btn.is-loading .btn__label { opacity: .5; }
.btn.is-loading svg { animation: nudge .8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* done */
.step--3 { text-align: left; padding-top: 1rem; }
.step--3:focus { outline: none; }
.done__stamp {
  display: inline-block; color: var(--azure);
  border: 2px solid currentColor; border-radius: 6px;
  padding: .45rem .7rem; transform: rotate(-6deg);
  font-weight: 600; font-size: .75rem;
  animation: stamp .55s var(--ease-out) both .15s;
}
@keyframes stamp { from { transform: rotate(-6deg) scale(2.2); opacity: 0; } }
.done__title { font: 400 clamp(2.8rem, 6vw, 4.4rem)/.95 var(--serif); letter-spacing: -.02em; color: var(--navy); margin: 1.6rem 0 1rem; }
.done__title em { font-style: normal; color: var(--azure); }
.done__text { margin: 0; color: var(--ink-2); max-width: 30rem; }
.done__again { margin-top: 2rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: clamp(5rem, 11vw, 9rem) 0; }
.faq__wrap { display: grid; gap: 3rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0;
  font: 400 clamp(1.45rem, 2.6vw, 2.1rem)/1.15 var(--serif);
  color: var(--navy);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.6rem; height: 1.6rem;
  background:
    linear-gradient(var(--azure), var(--azure)) center / 100% 2px no-repeat,
    linear-gradient(var(--azure), var(--azure)) center / 2px 100% no-repeat;
  transition: transform .4s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--azure); }
.faq details p { margin: 0 0 1.6rem; max-width: 40rem; color: var(--ink-2); animation: step-in .4s var(--ease-out); }
.faq details p a { color: var(--navy); font-weight: 600; text-decoration-color: var(--signal); text-underline-offset: 3px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { background: var(--navy); color: var(--paper); padding: 0 0 1.5rem; overflow: hidden; overflow: clip; }
.foot__cta { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line-inv); }
.foot .foot__mail-big {
  display: inline; padding: 0 0 .08em;
  font: 400 clamp(1.75rem, 6.4vw, 6.8rem)/1.05 var(--serif); letter-spacing: -.025em;
  color: var(--white); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--signal), var(--signal)) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.foot .foot__mail-big:hover { color: var(--white); background-size: 100% 2px; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; padding-top: 3rem; padding-bottom: 3rem; }
.foot__brand { grid-column: 1 / -1; max-width: 26rem; }
.foot__logo { width: 7rem; height: 3.44rem; fill: var(--mercury); margin-bottom: 1.2rem; }
.foot__brand p { margin: 0; color: rgba(255,255,255,.65); font-size: .9375rem; }
.foot__h { color: var(--signal); margin: 0 0 .9rem; }
.foot a { display: block; text-decoration: none; padding: .15rem 0; overflow-wrap: anywhere; }
.foot a:hover { color: var(--signal); }
.foot address { font-style: normal; color: rgba(255,255,255,.85); }
.foot__legal { display: flex; justify-content: space-between; gap: 1rem; color: rgba(209,231,253,.5); border-top: 1px solid var(--line-inv); padding-top: 1.4rem; }
.foot__legal a { display: inline; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team { padding: 0 0 clamp(5rem, 11vw, 9rem); }
.team__h { color: var(--navy); margin: 0 0 1rem; padding-top: 1.2rem; border-top: 2px solid var(--navy); font-weight: 400; }
.people:has(+ .team__note) { margin-bottom: 1.4rem; }
.team__note { margin: 0 0 clamp(3rem, 6vw, 4.5rem); color: var(--muted); font-size: .9375rem; }
.people { list-style: none; margin: 0 0 clamp(3rem, 6vw, 4.5rem); padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
.people:last-child { margin-bottom: 0; }
.person__btn {
  display: flex; flex-direction: column; gap: .9rem; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; text-align: left; color: inherit; font: inherit; text-decoration: none;
}
button.person__btn { cursor: pointer; }
.person__photo {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--sky); border-radius: 4px;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
button.person__btn:hover .person__photo img { transform: scale(1.04); }
.person__initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 clamp(2.6rem, 6vw, 4.2rem)/1 var(--serif); color: var(--navy); letter-spacing: -.02em;
  background:
    linear-gradient(118deg, transparent 0 62%, rgba(0,51,102,.08) 62% 74%, transparent 74%),
    var(--sky);
}
.person__meta { display: flex; flex-direction: column; gap: .35rem; }
.person__meta .mono { color: var(--muted); font-size: .625rem; }
.person__meta b { font: 400 clamp(1.45rem, 2.2vw, 1.9rem)/1.02 var(--serif); color: var(--navy); letter-spacing: -.01em; }
.person__meta small { font-size: .875rem; color: var(--ink-2); }
.person__more { color: var(--azure); font-size: .625rem; margin-top: auto; }
button.person__btn:hover .person__meta b { color: var(--azure); }
@media (min-width: 640px) { .people { grid-template-columns: repeat(3, 1fr); gap: 2.2rem 1.4rem; } }
@media (min-width: 1100px) { .people { grid-template-columns: repeat(5, 1fr); } }

/* profile pages (/team/<name>/) */
.profile { display: grid; gap: 2.4rem; padding-bottom: clamp(5rem, 10vw, 8rem); }
.profile__photo { position: relative; aspect-ratio: 4 / 5; width: min(22rem, 100%); overflow: hidden; border-radius: 6px; background: var(--navy); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__photo .person__initials { font-size: clamp(4rem, 12vw, 7rem); background: linear-gradient(118deg, transparent 0 62%, rgba(255,255,255,.08) 62% 74%, transparent 74%), var(--navy); color: var(--sky); }
.profile__qa { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.profile__qa:first-child { border-top: 2px solid var(--navy); }
.profile__qa h2 { margin: 0 0 .7rem; color: var(--azure); font-weight: 600; }
.profile__qa p { margin: 0; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); max-width: 44rem; }
.profile__empty { margin: 0; padding-top: 1.4rem; border-top: 2px solid var(--navy); font-size: 1.125rem; color: var(--ink-2); max-width: 36rem; }
.profile__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
@media (min-width: 900px) { .profile { grid-template-columns: 22rem 1fr; gap: 4rem; align-items: start; } .profile__photo { position: sticky; top: 6rem; } }

/* ==========================================================================
   NEWS
   ========================================================================== */
.news { padding: clamp(5rem, 11vw, 9rem) 0; background: var(--paper-hi); border-top: 1px solid var(--line); }
.news .sec-head--split { align-items: end; }
.news .sec-head .btn, .gallery .sec-head .btn { justify-self: start; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4rem 1.6rem; }
.card a { display: flex; flex-direction: column; gap: .7rem; text-decoration: none; height: 100%; }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--sky); }
.card__media img, .card__media .cover-empty { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card a:hover .card__media img { transform: scale(1.04); }
.card time { color: var(--muted); margin-top: .4rem; }
.card h3 { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.05 var(--serif); color: var(--navy); letter-spacing: -.015em; margin: 0; text-wrap: balance; transition: color .25s; }
.card p { margin: 0; color: var(--ink-2); font-size: .975rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.news--more { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* logo tile used when there is no cover image */
.cover-empty {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 8rem;
  background:
    linear-gradient(118deg, transparent 0 58%, rgba(5,120,255,.18) 58% 70%, transparent 70%),
    linear-gradient(118deg, transparent 0 74%, var(--signal) 74% 76.5%, transparent 76.5%),
    var(--navy);
}
.cover-empty svg { width: 28%; max-width: 7rem; height: auto; aspect-ratio: 2; fill: var(--mercury); }

.draft-tag { align-self: flex-start; display: inline-block; padding: .25rem .5rem; border-radius: 3px; background: var(--signal); color: var(--night); font-size: .6rem; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery { background: var(--night); color: var(--paper); padding: clamp(5rem, 11vw, 9rem) 0; }
.gallery .label { color: var(--signal); }
.gallery .sec-title em { color: var(--sky); }
.albums { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.2rem; grid-template-columns: 1fr; }
.album a, a.album { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; }
.album__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--navy); }
.album__media img, .album__media .cover-empty { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.album a:hover .album__media img, a.album:hover .album__media img { transform: scale(1.04); }
.album__meta { display: flex; justify-content: space-between; gap: 1rem; color: rgba(209,231,253,.62); margin-top: .3rem; }
.album h3 { font: 400 clamp(1.45rem, 2vw, 1.8rem)/1.05 var(--serif); margin: 0; letter-spacing: -.01em; transition: color .25s; }
@media (min-width: 640px) { .albums { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .albums { grid-template-columns: repeat(4, 1fr); } }

/* on light pages */
.is-sub .album__meta { color: var(--muted); }
.is-sub .album h3 { color: var(--navy); }

/* ==========================================================================
   INNER PAGES — news, posts, albums
   ========================================================================== */
.page-head { padding-top: clamp(7.5rem, 14vw, 10.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-head .label { flex-wrap: wrap; gap: .4rem .8rem; }
.page-head__back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 2rem; }
.page-head__back:hover { color: var(--navy); }
.page-head__title { font: 400 clamp(2.8rem, 7vw, 6.4rem)/.94 var(--serif); letter-spacing: -.03em; color: var(--navy); margin: 0; max-width: 18ch; text-wrap: balance; }
.page-head__title em { font-style: normal; color: var(--azure); }
.page-head__lede { max-width: 40rem; margin: 1.6rem 0 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-2); }
.page-head__related { margin: 1rem 0 0; color: var(--ink-2); }
.page-head__related a { color: var(--navy); font-weight: 600; text-decoration-color: var(--signal); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.page-head .draft-tag { margin-top: 1.4rem; }
.page-body { padding-bottom: clamp(5rem, 10vw, 8rem); }
.empty { color: var(--muted); padding: 2rem 0 6rem; }

.article__cover { margin: 0; }
.article__cover img { display: block; width: 100%; height: auto; border-radius: 4px; }
/* very tall photos shrink instead of running several screens long */
.article__cover--tall img { width: min(100%, 110svh * var(--ratio)); }
.article__body { display: grid; gap: 3rem; padding-bottom: clamp(4rem, 8vw, 6rem); }
.article__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.article__source { margin: 0; font-size: .9375rem; color: var(--muted); max-width: 22rem; }
.article__source a { color: var(--navy); }
.album--inline { width: 100%; max-width: 22rem; }
@media (min-width: 1000px) {
  .article__body { grid-template-columns: minmax(0, 44rem) 1fr; gap: 3.5rem 5rem; }
  .article__aside { position: sticky; top: 6rem; align-self: start; grid-column: 2; grid-row: 1 / span 2; }
  .article__cover--wide { grid-column: 1 / -1; }
  .article__body:has(.article__cover--wide) .article__aside { grid-row: 2; }
  .article__body:not(:has(.article__cover)) .article__aside { grid-row: 1; }
}

/* long-form text */
.prose { font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose h2, .prose h3 { font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.05 var(--serif); color: var(--navy); letter-spacing: -.015em; margin: 1.8em 0 .6em; }
.prose h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--navy); text-decoration-color: var(--signal); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--navy); }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--signal); }
.prose img { width: 100%; height: auto; border-radius: 4px; margin: 1.6em 0; }
.prose blockquote { margin: 1.6em 0; padding-left: 1.2rem; border-left: 3px solid var(--signal); font: italic 400 1.5rem/1.3 var(--serif); color: var(--navy); }

/* album photos */
.photos { columns: 1; column-gap: 1rem; padding-bottom: clamp(5rem, 10vw, 8rem); }
.photo { break-inside: avoid; margin: 0 0 1rem; }
.photo a { display: block; overflow: hidden; border-radius: 4px; background: var(--sky); cursor: zoom-in; }
.photo img { width: 100%; height: auto; transition: transform .6s var(--ease-out); }
.photo a:hover img { transform: scale(1.03); }
.photo figcaption { font-size: .875rem; color: var(--muted); padding-top: .45rem; }
@media (min-width: 600px) { .photos { columns: 2; } }
@media (min-width: 900px) { .photos { columns: 3; column-gap: 1.2rem; } .photo { margin-bottom: 1.2rem; } }

/* lightbox */
.lb {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(4, 13, 33, .96); color: var(--paper);
}
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; animation: fade-in .3s var(--ease-out); }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; width: 100%; height: 100%; justify-content: center; padding: 4.5rem 1rem 3.5rem; }
.lb__img { max-width: 100%; max-height: calc(100% - 2rem); width: auto; height: auto; object-fit: contain; user-select: none; }
.lb__cap { font-size: .9375rem; color: rgba(255,255,255,.8); text-align: center; max-width: 40rem; min-height: 1.4em; }
.lb__count { position: absolute; top: 1.4rem; left: 1.4rem; margin: 0; color: rgba(209,231,253,.7); }
.lb__btn {
  position: absolute; width: 3rem; height: 3rem; border: 0; border-radius: 50%;
  background: rgba(209,231,253,.1); color: var(--paper); font: 400 1.35rem/1 var(--sans); cursor: pointer;
  transition: background .2s, color .2s;
}
.lb__btn:hover { background: var(--signal); color: var(--night); }
.lb__close { top: 1rem; right: 1rem; font-size: 1.7rem; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); }
.lb__prev { left: 1rem; }
.lb__next { right: 1rem; }
@media (max-width: 640px) { .lb__prev, .lb__next { top: auto; bottom: 1rem; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }

/* ==========================================================================
   COLOUR RHYTHM — every section gets its own colour from the CI palette
   night · sky · white · navy · paper (colour strips) · night · navy · azure · night · paper
   ========================================================================== */

/* brand speed lines, reused as a section accent (same slant as the logo) */
.speed { position: absolute; top: 0; right: 0; width: min(44vw, 36rem); height: 100%; pointer-events: none; overflow: hidden; z-index: 0; }
.speed::before, .speed::after { content: ""; position: absolute; right: -12%; transform: skewX(var(--slant)); }
.speed::before { top: clamp(2.5rem, 7vw, 5.5rem); width: 70%; height: clamp(1.6rem, 3.6vw, 3.2rem); background: var(--azure); opacity: .9; }
.speed::after { top: calc(clamp(2.5rem, 7vw, 5.5rem) + clamp(2.4rem, 5.2vw, 4.6rem)); width: 42%; height: clamp(.45rem, .9vw, .8rem); background: var(--signal); }
section > .wrap, .page-head > .wrap { position: relative; z-index: 1; }

/* About — sky */
.manifesto { background: var(--sky); }
.manifesto__grid, .fact { border-color: rgba(0, 51, 102, .22); }
.fact__lbl { color: var(--navy-80); }
.manifesto__cols { color: var(--navy); }

/* Team — white, with coloured portraits */
.team { background: var(--paper-hi); padding-top: clamp(5rem, 11vw, 9rem); }
.people > .person:nth-child(5n+1) .person__initials { background: linear-gradient(118deg, transparent 0 62%, rgba(255,255,255,.08) 62% 74%, transparent 74%), var(--navy); color: var(--sky); }
.people > .person:nth-child(5n+2) .person__initials { background: linear-gradient(118deg, transparent 0 62%, rgba(255,255,255,.14) 62% 74%, transparent 74%), var(--azure); color: var(--white); }
.people > .person:nth-child(5n+3) .person__initials { background: linear-gradient(118deg, transparent 0 62%, rgba(4,13,33,.08) 62% 74%, transparent 74%), var(--signal); color: var(--night); }
.people > .person:nth-child(5n+4) .person__initials { background: linear-gradient(118deg, transparent 0 62%, rgba(0,51,102,.08) 62% 74%, transparent 74%), var(--sky); color: var(--navy); }
.people > .person:nth-child(5n+5) .person__initials { background: linear-gradient(118deg, transparent 0 62%, rgba(255,145,77,.2) 62% 74%, transparent 74%), var(--night); color: var(--signal); }

/* Story — awards in orange */
.strip--accent { background: var(--signal); border-color: rgba(4,13,33,.12); border-left-color: var(--night); }
.strip--accent header { color: rgba(4,13,33,.6); border-color: rgba(4,13,33,.18); }
.strip--accent header span:first-child { color: var(--night); }
.strip--accent h3 { color: var(--night); }
.strip--accent p { color: rgba(4,13,33,.82); }

/* News (home) — night */
.is-home .news { background: var(--night); color: var(--paper); border-top: 0; }
.is-home .news .label { color: var(--signal); }
.is-home .news .sec-title em { color: var(--sky); }
.is-home .news .card time { color: rgba(209,231,253,.62); }
.is-home .news .card h3 { color: var(--white); }
.is-home .news .card p { color: rgba(255,255,255,.72); }

/* fallback covers: alternate palette colours so cards don't look identical */
.card:nth-child(3n+2) .cover-empty, .album:nth-child(3n+2) .cover-empty {
  background:
    linear-gradient(118deg, transparent 0 58%, rgba(255,255,255,.16) 58% 70%, transparent 70%),
    linear-gradient(118deg, transparent 0 74%, var(--night) 74% 76.5%, transparent 76.5%),
    var(--azure);
}
.card:nth-child(3n+2) .cover-empty svg, .album:nth-child(3n+2) .cover-empty svg { fill: var(--white); }
.card:nth-child(3n+3) .cover-empty, .album:nth-child(3n+3) .cover-empty {
  background:
    linear-gradient(118deg, transparent 0 58%, rgba(4,13,33,.1) 58% 70%, transparent 70%),
    linear-gradient(118deg, transparent 0 74%, var(--navy) 74% 76.5%, transparent 76.5%),
    var(--signal);
}
.card:nth-child(3n+3) .cover-empty svg, .album:nth-child(3n+3) .cover-empty svg { fill: var(--night); }

/* Gallery (home) — navy, so it doesn't merge with News */
.is-home .gallery { background: var(--navy); }

/* Network — azure */
.network { background: var(--azure); color: var(--white); }
.network .label { color: var(--night); }
.network .label::before { background: var(--night); }
.network .sec-title, .network .sec-title em { color: var(--white); }
.network .sec-title em { opacity: 1; color: var(--sky); }
.network .sec-aside { color: var(--white); font-weight: 600; font-size: 1.1875rem; }

/* FAQ — an orange rule so the last light section isn't flat */
.faq { border-top: 6px solid var(--signal); }

/* Inner pages — dark heading band with the speed lines */
.page-head { position: relative; overflow: hidden; background: var(--night); color: var(--paper); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-head::before, .page-head::after { content: ""; position: absolute; right: -6%; transform: skewX(var(--slant)); pointer-events: none; }
.page-head::before { top: 32%; width: min(40vw, 34rem); height: clamp(2.6rem, 6vw, 5.5rem); background: var(--navy); }
.page-head::after { top: calc(32% + clamp(3.4rem, 7.6vw, 7rem)); width: min(22vw, 18rem); height: clamp(.5rem, 1vw, .9rem); background: var(--signal); }
.page-head .label { color: var(--signal); }
.page-head__title { color: var(--white); }
.page-head__title em { color: var(--sky); }
.page-head__lede { color: rgba(255,255,255,.8); }
.page-head__back { color: rgba(209,231,253,.7); }
.page-head__back:hover { color: var(--white); }
.page-head__related { color: rgba(255,255,255,.8); }
.page-head__related a { color: var(--white); }
.is-sub main { min-height: 60vh; }

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 640px) {
  /* keep the main call to action in reach */
  .top { gap: .6rem; }
  .top .top__cta { display: inline-flex; --h: 2.4rem; padding: 0 .95rem; font-size: .875rem; }
  .top__cta svg { display: none; }
  .brand__mark { width: 3rem; height: 1.48rem; }

  .speed { width: 55vw; }
  .speed::before { top: 1.4rem; height: 1.1rem; }
  .speed::after { top: 3.1rem; height: .35rem; }

  /* team: compact rows instead of tall tiles */
  .people { grid-template-columns: 1fr; gap: 0; }
  .person { border-bottom: 1px solid var(--line); }
  .person__btn { flex-direction: row; align-items: center; gap: 1rem; padding: .8rem 0; }
  .person__photo { flex: none; width: 4.25rem; aspect-ratio: 1; border-radius: 50%; }
  .person__initials { font-size: 1.5rem; }
  .person__meta b { font-size: 1.45rem; }
  .person__more { margin: 0 0 0 auto; }

  /* timeline: shorter cards */
  .strip { min-height: 19rem; }
  .strip h3 { font-size: 2rem; padding-top: 1.6rem; }

  /* home news + albums: swipeable rows, like the timeline */
  .is-home .cards, .is-home .albums {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none;
    gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .5rem; scroll-padding-inline: var(--gutter);
  }
  .is-home .cards::-webkit-scrollbar, .is-home .albums::-webkit-scrollbar { display: none; }
  .is-home .card, .is-home .album { scroll-snap-align: start; }
  .sec-head { margin-bottom: 2.2rem; }

  /* lists on inner pages: thumbnail beside the text */
  .is-sub .page-body .card a { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 1rem; row-gap: .3rem; align-items: start; }
  .is-sub .page-body .card__media { grid-row: span 3; aspect-ratio: 1; }
  .is-sub .page-body .card time { margin-top: 0; }
  .is-sub .page-body .card h3 { font-size: 1.35rem; }
  .is-sub .page-body .card p { display: none; }
  .is-sub .page-body .cards { gap: 1.4rem; }

  .page-head::before { top: 18%; width: 46vw; height: 2.2rem; }
  .page-head::after { top: calc(18% + 2.9rem); width: 26vw; height: .4rem; }
  .page-head__title { font-size: clamp(2.5rem, 11vw, 3.4rem); }

  .foot__grid { gap: 2rem 1rem; }
}

/* ==========================================================================
   CLICKABLE THINGS — the whole box lights up, plus a "Read →" cue
   ========================================================================== */
.go { display: inline-flex; align-items: center; gap: .45rem; color: var(--signal); font-weight: 600; }
.go svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease-out); }
a:hover > .go svg, a:hover .go svg { transform: translateX(4px); }

/* news cards and album cards */
.card a, .album > a, a.album { border-radius: 8px; transition: background .25s, box-shadow .25s; }
.card .go, .album .go { margin-top: auto; padding-top: .3rem; }
.card .go { color: var(--azure); }
@media (min-width: 700px) {
  .card a, .album > a, a.album { padding: .9rem; margin: -.9rem; }
}
.card a:hover { background: rgba(0, 51, 102, .06); }
.album > a:hover, a.album:hover { background: rgba(209, 231, 253, .1); }
.is-sub .album > a:hover, .is-sub a.album:hover { background: rgba(0, 51, 102, .06); }
.is-sub .album .go { color: var(--azure); }
.is-home .news .card a:hover { background: rgba(209, 231, 253, .1); }
.is-home .news .card .go { color: var(--signal); }

/* timeline: only strips that open something lift on hover */
.strip { color: inherit; text-decoration: none; }
.strip:not(.strip--link):not(.strip--next):hover { transform: none; box-shadow: none; }
.strip--link { cursor: pointer; }
.strip--link:hover { background: var(--sky-soft); }
.strip--accent.strip--link:hover { background: var(--signal-80); }
.strip--sky.strip--link:hover { background: #e3f0fd; }
.strip .go { margin-top: auto; color: var(--azure); }
.strip--accent .go { color: var(--night); }
.strip--link p { margin-bottom: 1rem; }

/* EUROAVIA motto: orange band right under the hero */
.motto-band { background: var(--signal); color: var(--night); overflow: hidden; }
.motto-band p { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem; margin: 0 auto; padding-block: clamp(1.4rem, 3.2vw, 2.4rem); }
.motto-band .mono { color: rgba(4, 13, 33, .7); }
.motto-band__text { font: 700 clamp(2rem, 6.2vw, 5.6rem)/.92 var(--sans); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.005em; }
@media (max-width: 640px) { .motto-band p { flex-direction: column; align-items: flex-start; } }
.foot__brand .foot__motto { margin-top: 1.2rem; font: 700 1.3rem/1.1 var(--sans); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; color: var(--signal); }

@media (max-width: 640px) {
  /* no hover on phones: show cards as tappable panels */
  .is-home .news .card a { background: rgba(209, 231, 253, .06); padding: .7rem .7rem .9rem; }
  .is-home .albums .album > a { background: rgba(209, 231, 253, .06); padding: .7rem .7rem .9rem; }
}

/* ==========================================================================
   MOVING LANES — local groups and partners
   ========================================================================== */
.lanes { display: grid; gap: .6rem; margin: 1rem 0 0; overflow: hidden; }
.lane { overflow: hidden; }
.lane__track { display: flex; width: max-content; will-change: transform; }
.lane__set { display: flex; align-items: center; gap: clamp(1.4rem, 3.4vw, 3rem); padding-right: clamp(1.4rem, 3.4vw, 3rem); }
@media (prefers-reduced-motion: reduce) {
  .lane { overflow-x: auto; scrollbar-width: none; }
  .lane__set[aria-hidden] { display: none; }
}

/* local groups: city name + country, links to euroavia.eu */
.lg { display: inline-flex; align-items: baseline; gap: .7rem; text-decoration: none; white-space: nowrap; padding: .2rem .4rem; border-radius: 6px; transition: background .25s; }
.lg b { font: 400 clamp(2.6rem, 6.4vw, 5.6rem)/1.05 var(--serif); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.7); transition: color .25s, -webkit-text-stroke-color .25s; }
.lg .mono { color: rgba(255,255,255,.75); }
.lg:hover, .lg:focus-visible { background: rgba(255,255,255,.12); }
.lg:hover b, .lg:focus-visible b { color: var(--white); -webkit-text-stroke-color: var(--white); }
.lg.is-home b { color: var(--night); -webkit-text-stroke-color: transparent; }
.lg.is-home .mono { color: var(--night); }
.lanes__foot { padding-top: 2rem; }
.btn--ghost-light { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--azure); }

/* partners */
.partners { background: var(--paper-hi); padding: clamp(5rem, 11vw, 9rem) 0; }
.lanes--partners { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.partner { display: inline-flex; align-items: center; justify-content: center; height: clamp(4.5rem, 8vw, 6.5rem); min-width: clamp(9rem, 16vw, 13rem); padding: 0 1.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; transition: background .25s, border-color .25s; }
a.partner:hover { background: var(--sky-soft); border-color: var(--navy-50); }
.partner b { font: 600 1.15rem/1.1 var(--sans); color: var(--navy); white-space: nowrap; }
.partner picture, .partner img { display: block; max-height: 60%; width: auto; max-width: 11rem; }
.partner img { height: auto; max-height: clamp(2.6rem, 4.6vw, 3.8rem); object-fit: contain; }
.partners__cta { display: grid; gap: 1.6rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: 14px; background: var(--navy); color: var(--paper); position: relative; overflow: hidden; }
.partners__cta h3 { font: 700 clamp(2rem, 4vw, 3.2rem)/.95 var(--sans); font-stretch: 75%; text-transform: uppercase; margin: 0 0 .8rem; }
.partners__cta p { margin: 0; max-width: 40rem; color: rgba(255,255,255,.8); }
.partners__cta .btn { justify-self: start; position: relative; z-index: 1; }
@media (min-width: 900px) {
  .partners__cta { grid-template-columns: 1fr auto; }
  .partners__cta::after { content: ""; position: absolute; right: -4rem; top: 1.4rem; width: 14rem; height: 1.6rem; background: var(--signal); transform: skewX(var(--slant)); }
}

/* merch */
.merch { background: var(--sky); padding: clamp(5rem, 11vw, 9rem) 0; }
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.4rem; grid-template-columns: 1fr; }
.product { display: flex; flex-direction: column; gap: .6rem; padding: .9rem; border-radius: 10px; background: var(--paper-hi); }
.product__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--navy); }
.product__media img, .product__media .cover-empty { width: 100%; height: 100%; object-fit: cover; }
.product__text { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .3rem; }
.product h3 { font: 400 1.6rem/1.05 var(--serif); color: var(--navy); margin: 0; }
.product__price { color: var(--navy); font-size: .85rem; }
.product p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.product .go { margin-top: auto; padding-top: .4rem; color: var(--azure); text-decoration: none; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .products { grid-template-columns: repeat(4, 1fr); } }

/* footer: social icons and university */
.foot a.social { display: flex; align-items: center; gap: .6rem; }
.social svg { width: 1.15rem; height: 1.15rem; flex: none; }
.foot a.foot__unibo { display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.6rem; padding: .8rem 1rem; border: 1px solid var(--line-inv); border-radius: 10px; color: var(--white); }
.foot a.foot__unibo:hover { border-color: var(--sky); color: var(--white); }
.foot__unibo img { height: 2.6rem; width: auto; }
.foot__unibo span { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.foot__unibo small { color: var(--signal); font-size: .6rem; }

/* profile form (/team/profile/) */
.pform { display: grid; gap: 3rem; padding-bottom: clamp(5rem, 10vw, 8rem); }
.pform__form { background: var(--paper-hi); border-radius: 16px; padding: clamp(1.4rem, 3.5vw, 2.4rem); box-shadow: 0 30px 60px -40px rgba(4,13,33,.4); }
.field textarea {
  width: 100%; padding: .8rem .95rem; resize: vertical; min-height: 6rem;
  font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--paper-hi); border: 1px solid rgba(0,51,102,.2); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0,51,102,.1); }
.field.is-invalid textarea { border-color: #e2652b; background: #fff6f0; }
.pform__note { margin: .4rem 0 0; font-size: .9375rem; color: var(--ink-2); }
.pform__status { margin: 1rem 0 0; min-height: 1.2em; color: var(--azure); text-transform: none; letter-spacing: 0; font-size: .8rem; }
@media (max-width: 999px) { .pform__aside { order: -1; } }
.pform__aside h2 { margin: 0 0 1rem; color: var(--navy); font-weight: 600; }
.pform__aside ol { margin: 0; padding-left: 1.2rem; color: var(--ink-2); display: grid; gap: .8rem; }
.pform__aside li::marker { color: var(--signal); font-weight: 600; }
.pform__locked { margin: 0 0 1.4rem; padding: .9rem 1rem; border-radius: 10px; background: #fff6f0; color: #c2410c; font-weight: 600; }
.pform__preview { width: 7rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; margin-top: .4rem; }
.field input[type="file"] { height: auto; padding: .7rem .95rem; }
.pform__privacy-h { margin-top: 2.4rem !important; }
.pform__privacy { display: grid; gap: .6rem; font-size: .875rem; color: var(--ink-2); }
.pform__privacy p { margin: 0; }
.pform__privacy a { color: var(--navy); }
.pform__done { padding: 1rem 0; }
.pform__done p:last-child { color: var(--ink-2); max-width: 32rem; }
@media (min-width: 1000px) { .pform { grid-template-columns: minmax(0, 46rem) 1fr; gap: 4rem; align-items: start; } .pform__aside { position: sticky; top: 6rem; } }

/* ==========================================================================
   WORKING GROUPS — page, form choices, membership + T-shirt
   ========================================================================== */
.route__more { margin-top: 1rem; display: inline-flex; text-decoration: none; }
.sec-aside a { color: inherit; text-decoration-color: var(--signal); text-underline-offset: 3px; }

.wg { display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(5rem, 10vw, 8rem); }
.wg__how h2 { margin: 0 0 1rem; color: var(--azure); font-weight: 600; }
.wg__how ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; counter-reset: wg; }
.wg__how li { counter-increment: wg; position: relative; padding: 1.2rem 1.2rem 1.2rem 3.4rem; background: var(--paper-hi); border-radius: 10px; color: var(--ink-2); }
.wg__how li::before { content: counter(wg, decimal-leading-zero); position: absolute; left: 1.1rem; top: 1.25rem; font: 600 .8rem var(--mono); color: var(--signal); }
.wg__how b { color: var(--navy); }
.wg__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.wg__item { padding: clamp(1.4rem, 3vw, 2rem); border-radius: 12px; background: var(--paper-hi); border-left: 6px solid var(--navy); }
.wg__item:nth-child(5n+2) { border-left-color: var(--azure); }
.wg__item:nth-child(5n+3) { border-left-color: var(--signal); }
.wg__item:nth-child(5n+4) { border-left-color: var(--azure-light); }
.wg__item:nth-child(5n+5) { border-left-color: var(--night); }
.wg__item h2 { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--sans); font-stretch: 75%; text-transform: uppercase; color: var(--navy); margin: 0 0 .8rem; }
.wg__item .prose { font-size: 1.05rem; max-width: 46rem; }
.wg__leader { margin: 1rem 0 0; color: var(--muted); }
.wg__leader a { color: var(--navy); }
@media (min-width: 900px) {
  .wg__how ol { grid-template-columns: repeat(2, 1fr); }
  .wg__list { grid-template-columns: repeat(2, 1fr); }
}
.wg__how a { color: var(--navy); font-weight: 600; }
.wg__tech h2 { margin: 0 0 1rem; color: var(--azure); font-weight: 600; }
.wg__item--tech { border-left-color: var(--signal); }
.wg__item--tech h3 { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--sans); font-stretch: 75%; text-transform: uppercase; color: var(--navy); margin: 0 0 .8rem; }
.wg__item--tech p { margin: 0; font-size: 1.05rem; max-width: 46rem; color: var(--ink-2); }
/* join request form: same layout as the profile form */
.wg .wg__apply { padding-bottom: 0; scroll-margin-top: 6rem; }
@media (min-width: 1000px) { .wg .wg__apply { grid-template-columns: minmax(0, 46rem) minmax(16rem, 1fr); gap: 3rem; } }
.wg__apply-title { font: 400 clamp(2.2rem, 4.5vw, 3.4rem)/.95 var(--serif); letter-spacing: -.02em; color: var(--navy); margin: 0; }
.wg__apply-title em { font-style: normal; color: var(--azure); }
.wg__apply .pform__note { margin-bottom: 1.6rem; }
.wg__apply .pform__note a { color: var(--navy); font-weight: 600; }
.wg__apply .wgpick.is-invalid .field__err { display: block; }
.wg__apply .pform__aside { order: 0; } /* on phones the form comes first, the notice after */
.wg__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* membership form: working group choices */
.wgpick { display: grid; gap: .5rem; margin-top: .6rem; }
.wgpick legend { margin-bottom: .3rem; }
.wgpick__note { margin: 0 0 .4rem; font-size: .875rem; color: var(--ink-2); }
.wgpick__note a { color: var(--navy); }
.wgpick__opt { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem .9rem; border: 1px solid rgba(0,51,102,.2); border-radius: 10px; background: var(--paper-hi); cursor: pointer; transition: border-color .2s, background .2s; }
.wgpick__opt:hover { border-color: var(--navy); }
/* .field label would reset padding and weight: give the option boxes their own */
.field .wgpick__opt { padding: .85rem 1rem; font-weight: 400; }
/* real checkboxes: undo the text-field look that .field input gives every input */
.field .wgpick__opt input[type="checkbox"] {
  flex: none; width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; padding: 0;
  appearance: auto; -webkit-appearance: checkbox;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  accent-color: var(--navy); cursor: pointer;
}
.wgpick__opt span { display: flex; flex-direction: column; gap: .15rem; }
.wgpick__opt b { color: var(--navy); font-size: .95rem; }
.wgpick__opt small { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.wgpick__opt:has(input:checked) { border-color: var(--navy); background: var(--sky-soft); }

/* membership form: membership or membership + T-shirt */
.bundle { display: grid; gap: .5rem; margin: 0 0 1.4rem; padding: 0; border: 0; }
.bundle__opt { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px solid rgba(0,51,102,.2); border-radius: 10px; background: var(--paper-hi); cursor: pointer; transition: border-color .2s, background .2s; }
.bundle__opt input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--navy); }
.bundle__opt span { display: flex; flex-direction: column; gap: .1rem; flex: 1; }
.bundle__opt b { color: var(--navy); }
.bundle__opt small { color: var(--muted); font-size: .8125rem; }
.bundle__opt em { font-style: normal; color: var(--navy); font-size: .9rem; font-weight: 600; }
.bundle__opt:has(input:checked) { border-color: var(--navy); background: var(--sky-soft); }
.bundle__size { margin: .4rem 0 0; max-width: 16rem; }

/* ==========================================================================
   STATUTE
   ========================================================================== */
.statute { display: grid; gap: 2.5rem; padding-bottom: clamp(5rem, 10vw, 8rem); }
.statute__meta { margin: 0 0 1.4rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .75rem; line-height: 1.5; }
.statute__toc h2 { margin: 0 0 .8rem; color: var(--azure); font-weight: 600; }
.statute__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.statute__toc a { display: flex; gap: .7rem; align-items: baseline; padding: .35rem .5rem; border-radius: 6px; color: var(--navy); text-decoration: none; font-size: .9375rem; }
.statute__toc a:hover { background: var(--sky-soft); }
.statute__toc li .mono { color: var(--signal); min-width: 1.4rem; }
.statute__text section { scroll-margin-top: 6rem; padding-top: 1.6rem; margin-top: 1.6rem; border-top: 1px solid var(--line); }
.statute__text section:first-child { margin-top: 0; border-top: 2px solid var(--navy); }
.statute__text h2 { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.statute__text h2 .mono { color: var(--signal); font-size: .7rem; }
.statute__text ul ul { margin-top: .5em; }
.statute__note { margin-top: 3rem !important; color: var(--muted); font-size: .95rem; }
.foot__legal span a { display: inline; }
@media (min-width: 1000px) {
  .statute { grid-template-columns: 19rem minmax(0, 46rem); gap: 4rem; align-items: start; }
  .statute__toc { position: sticky; top: 6rem; max-height: calc(100vh - 8rem); overflow: auto; }
}

/* ==========================================================================
   CALENDAR — small month view, only event days stand out; agenda beside it
   ========================================================================== */
.calendar { background: var(--paper-hi); padding: clamp(5rem, 11vw, 9rem) 0; }
.cal { display: grid; gap: 2.5rem; align-items: start; }

.cal__month { padding: 1.4rem; border-radius: 14px; background: var(--paper); max-width: 24rem; }
.cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal__title { margin: 0; color: var(--navy); font-weight: 600; }
.cal__btn { width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: transparent; color: var(--navy); font: 400 1rem var(--sans); cursor: pointer; }
.cal__btn:hover:not(:disabled) { background: var(--sky); }
.cal__btn:disabled { opacity: .25; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; text-align: center; }
.cal__wd { font: 600 .625rem/1 var(--mono); text-transform: uppercase; color: var(--muted); padding-bottom: .5rem; }
.cal__day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: .8125rem; color: rgba(0, 51, 102, .38); text-decoration: none; }
.cal__day.is-past { color: rgba(0, 51, 102, .18); }
.cal__day.is-today { color: var(--navy); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--navy); }
.cal__day.has-event { color: var(--navy); font-weight: 600; background: #afd7fe; transition: background .2s; }
.cal__day.has-event.is-international { background: rgba(255, 145, 77, .32); }
.cal__day.has-event:hover { background: var(--azure-light); }
.cal__day.has-event.is-international:hover { background: rgba(255, 145, 77, .5); }
.cal__legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 1rem 0 0; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .75rem; }
.cal__dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #afd7fe; box-shadow: inset 0 0 0 1px rgba(0,51,102,.25); }
.cal__dot--international { background: rgba(255, 145, 77, .42); margin-left: .6rem; }

.cal__h { margin: 0 0 1rem; color: var(--azure); font-weight: 600; }
.cal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cal__item { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1.2rem; padding: 1.1rem; border-radius: 12px; background: var(--paper); scroll-margin-top: 7rem; transition: box-shadow .3s; }
.cal__item.is-flash { animation: cal-flash 1.6s var(--ease-out); }
@keyframes cal-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--signal); } 100% { box-shadow: 0 0 0 0 transparent; } }
.cal__date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: #afd7fe; color: var(--navy); aspect-ratio: 1; }
.cal__item--international .cal__date { background: rgba(255, 145, 77, .32); }
.cal__date b { font: 700 1.9rem/1 var(--sans); font-stretch: 75%; }
.cal__date .mono { font-size: .625rem; opacity: .85; }
.cal__meta { margin: 0 0 .35rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .75rem; }
.cal__body h4 { margin: 0 0 .35rem; font: 400 1.6rem/1.05 var(--serif); color: var(--navy); }
.cal__body p:not(.cal__meta) { margin: 0 0 .5rem; color: var(--ink-2); font-size: .95rem; }
.cal__body .go { color: var(--azure); text-decoration: none; }
.cal__empty { margin: 0; padding: 1.1rem 1.2rem; border-radius: 12px; background: var(--paper); color: var(--ink-2); }
.cal__empty a, .calendar .sec-aside a { color: var(--navy); text-decoration-color: var(--signal); text-underline-offset: 3px; }
@media (max-width: 899px) { .cal__agenda { order: -1; } .cal__month { max-width: none; } }
@media (min-width: 900px) {
  .cal { grid-template-columns: 22rem minmax(0, 1fr); gap: 3.5rem; }
  .cal__month { position: sticky; top: 6rem; }
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes blink { 50% { opacity: .25; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .manifesto__cols { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .pass { grid-template-columns: 1fr 11rem; }
  .pass__stub { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); border-radius: 0 14px 14px 0; align-content: space-between; }
  .barcode { height: 60px; }
}
@media (min-width: 900px) {
  .manifesto__grid { grid-template-columns: repeat(4, 1fr); }
  .fact { border-right: 1px solid var(--line); padding: 1.8rem 1.4rem 2rem; }
  .fact:nth-child(even) { padding-left: 1.4rem; }
  .fact:first-child { padding-left: 0; }
  .fact:last-child { border-right: 0; }
  .route { grid-template-columns: 9rem 1fr; }
  .sec-head--split { grid-template-columns: 1fr auto; }
  .faq__wrap { grid-template-columns: 1fr 1.6fr; gap: 4rem; }
  }
@media (min-width: 1100px) {
  .foot__cta { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line-inv); }
.foot .foot__mail-big {
  display: inline; padding: 0 0 .08em;
  font: 400 clamp(1.75rem, 6.4vw, 6.8rem)/1.05 var(--serif); letter-spacing: -.025em;
  color: var(--white); text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--signal), var(--signal)) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.foot .foot__mail-big:hover { color: var(--white); background-size: 100% 2px; }
.foot__grid { grid-template-columns: 1.6fr 1.2fr 1fr 1fr; }
  .foot__brand { grid-column: auto; }
  .checkin__wrap { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .checkin__intro { position: sticky; top: 6rem; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 899px) {
  .stamp { position: relative; right: auto; top: auto; margin: -1rem 0 2rem auto; }
}
@media (max-width: 640px) {
  .top__cta { display: none; }
  .burger { display: block; }
  .hero__actions .btn--ghost { display: none; }
  .cash__list li { grid-template-columns: 1fr; gap: .2rem; }
  .sat { grid-template-columns: 1fr; justify-items: start; }
  .step__actions { flex-direction: column-reverse; align-items: stretch; }
  .step__actions .btn { justify-content: center; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   PRINT — save the membership card
   ========================================================================== */
@media print {
  body::after, .top, .drawer, main > section:not(.checkin), .foot, .checkin__panel, .checkin__lede, .checkin .label, .checkin .sec-title { display: none !important; }
  body, .checkin { background: #fff !important; }
  .checkin { padding: 2cm 0; }
  .checkin::before { display: none; }
  .pass { transform: none !important; box-shadow: none; border: 1px solid #ccc; margin: 0 auto; }
}
