/* ============================================================
   IEEE Sup'Com Student Branch — visual system v2
   Dark / space / tech.  No framework, no build step.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* space */
  --void:        #04070f;
  --deep:        #070c1a;
  --surface:     #0b1224;
  --surface-2:   #101a33;
  --line:        rgba(120, 160, 235, 0.14);
  --line-strong: rgba(120, 160, 235, 0.30);

  /* brand */
  --blue:        #1d4ed8;
  --blue-lit:    #3b82f6;
  --cyan:        #38bdf8;
  --violet:      #6366f1;
  --glow:        rgba(59, 130, 246, 0.55);

  /* state — the palette had none, and a form that cannot go wrong cannot
     tell you that it has. Measured against the contact card's own ground
     (rgb(8,14,28), once rgba(11,18,36,.62) settles on --void):
     --bad 6.97:1, --good 11.06:1, both clear of the 4.5 that 12.5px needs. */
  --bad:         #f87171;
  --good:        #4ade80;

  /* type */
  --ink:         #e9eefb;
  --ink-soft:    #a8b8d8;
  --ink-mute:    #6b7da0;

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --shell: min(1240px, 92vw);
  --r:     18px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* several elements bleed past the viewport on purpose (the marquee, the
     coverflow's outer cards). clip, not hidden: hidden on html turns it into
     a scroll container and breaks scroll-behaviour and sticky positioning. */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--blue-lit); color: #fff; }

/* ---------- starfield + atmosphere ---------- */
#sky {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  /* a canvas is a replaced element: with width/height auto it is laid out at
     its intrinsic size — the width/height attributes — and inset:0 is ignored.
     Without these two it never covers the viewport, and size() in v2.js ends
     up measuring the value it wrote on the previous resize. */
  display: block; width: 100%; height: 100%;
}
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 12% 8%,  rgba(29, 78, 216, 0.20), transparent 60%),
    radial-gradient(50vw 50vw at 88% 22%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(70vw 50vw at 50% 105%, rgba(56, 189, 248, 0.12), transparent 65%);
  filter: blur(10px);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.28;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: overlay;
}
main, header, footer { position: relative; z-index: 2; }

/* ---------- scroll progress ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 90; box-shadow: 0 0 14px var(--glow);
}

/* ---------- cursor ---------- */
#halo {
  position: fixed; top: 0; left: 0; width: 320px; height: 320px;
  margin: -160px 0 0 -160px; border-radius: 50%; z-index: 3;
  pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(circle, rgba(59,130,246,0.13), transparent 62%);
}
body.has-cursor #halo { opacity: 1; }

/* ---------- nav ---------- */
/* Floating island rather than a full-width band: the rounded shell is the
   bar itself, so the starfield stays visible around it. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  padding: 18px 0;
  transition: padding 0.4s var(--ease);
  pointer-events: none;
}
.nav .shell {
  position: relative;
  display: flex; align-items: center; gap: 28px;
  /* Fully round ends. 999px clamps to half the bar's own height, so the
     shape holds whether the bar is at rest or shrunk by .stuck, and on a
     phone where the row is shorter again. The left padding is wider than
     the right because the brand is a solid block that has to clear the
     curve, while the last menu item carries 15px of its own. */
  padding: 10px 18px 10px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: padding 0.4s var(--ease), background 0.45s, border-color 0.45s,
              box-shadow 0.45s, backdrop-filter 0.45s;
  pointer-events: auto;
}
.nav.stuck { padding: 12px 0; }
.nav.stuck .shell {
  padding: 8px 16px 8px 24px;
  background: rgba(8, 13, 28, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  border-color: var(--line);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 34px; width: auto; transition: height 0.4s var(--ease); }
.nav.stuck .brand img { height: 28px; }
.menu { display: flex; gap: 4px; align-items: center; }
.menu a {
  position: relative; padding: 9px 15px; border-radius: 99px;
  font-size: 0.875rem; color: var(--ink-soft); font-weight: 500;
  transition: color 0.25s;
}
.menu a::before {
  content: ""; position: absolute; inset: 0; border-radius: 99px;
  background: rgba(59,130,246,0.13); border: 1px solid var(--line);
  opacity: 0; transform: scale(0.85); transition: 0.35s var(--ease);
}
.menu a:hover { color: var(--ink); }
.menu a:hover::before, .menu a.active::before { opacity: 1; transform: scale(1); }
.menu a.active { color: #fff; }
.menu a span { position: relative; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); }
.burger i { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; transition: 0.3s var(--ease); }
.burger.open i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.shell { width: var(--shell); margin-inline: auto; }

/* ---------- section furniture ---------- */
.sec { padding: 118px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.sec h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 16px; }
.lede { color: var(--ink-soft); max-width: 62ch; font-size: 1.05rem; }
.grad { background: linear-gradient(105deg, var(--cyan), var(--blue-lit) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- reveal ---------- */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 130px 0 90px; position: relative; }
.orbit-deco {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(1000px, 130vw); aspect-ratio: 1; pointer-events: none; opacity: 0.5;
}
.orbit-deco span {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid var(--line);
}
.orbit-deco span:nth-child(1) { width: 42%; height: 42%; animation: spin 46s linear infinite; }
.orbit-deco span:nth-child(2) { width: 68%; height: 68%; animation: spin 74s linear infinite reverse; border-style: dashed; }
.orbit-deco span:nth-child(3) { width: 96%; height: 96%; animation: spin 110s linear infinite; }
.orbit-deco span::after {
  content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px 3px var(--cyan);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px;
  border: 1px solid var(--line); border-radius: 99px; background: rgba(11,18,36,0.6);
  font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 26px; backdrop-filter: blur(8px);
}
.hero-tag b { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; padding: 4px 9px; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 500; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); letter-spacing: -0.035em; margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(105%); animation: up 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes up { to { transform: none; } }
.hero p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 34px; font-size: 1.08rem; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 27px; border-radius: 99px; font-weight: 500; font-size: 0.94rem;
  border: 1px solid var(--line-strong); overflow: hidden; will-change: transform;
  transition: border-color 0.3s, transform 0.2s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,0.5), transparent 70%);
  transition: opacity 0.35s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { border-color: var(--blue-lit); }
.btn.solid { background: linear-gradient(100deg, var(--blue), var(--blue-lit)); border-color: transparent; box-shadow: 0 10px 40px -12px var(--glow); }
.btn.solid:hover { box-shadow: 0 16px 50px -10px var(--glow); }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; translate: -50%; display: grid; gap: 9px; justify-items: center; color: var(--ink-mute); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.24em; }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--cyan), transparent); animation: cue 2.1s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: 0.25; transform: scaleY(0.45); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.strip { border-block: 1px solid var(--line); padding: 17px 0; overflow: hidden; background: rgba(7,12,26,0.55); }
.strip-track { display: flex; gap: 46px; width: max-content; animation: slide 34s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track span { display: inline-flex; align-items: center; gap: 46px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.strip-track span::after { content: "◆"; color: var(--blue-lit); font-size: 0.55rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-head { text-align: center; max-width: 62ch; margin: 0 auto; }

/* ---- the photo wall -----------------------------------------------
   A concave wall: the viewer stands inside the cylinder, so the middle
   of the arc is the far point and the cards swing towards us as they
   travel out to the edges -- which is why they grow there instead of
   shrinking. Each card is turned by its own --a and pushed back along
   its own axis by --radius, landing on the cylinder facing inwards, so
   the ring only has to spin about its axis. Per frame the script writes
   --lit (the vignette), --fore (dead centre) and --op. */
.wall {
  --card: 250px;            /* the width of a card; --tall gives its height */
  --tall: 1.24;
  --radius: 560px;          /* recomputed by the script from the card count */
  position: relative;
  /* The box holds the card at the far point and the two either side of it.
     Everything further out is nearer the viewer and so taller, and rises out
     of the box on purpose: that is what fills the space beside the heading
     above and the sentence below. Those cards sit near the edges of the
     screen, far from the text, which is centred and much narrower than the
     wall -- so the margins below are the gap the reader actually sees. */
  height: calc(var(--card) * 1.55);
  margin: 44px 0 54px;
  perspective: 1180px;   /* short focal length: the arc has to bend hard */
  cursor: grab;
}
.wall.dragging { cursor: grabbing; }

.wall-ring {
  position: absolute; left: 50%; top: 50%;
  width: var(--card); height: calc(var(--card) * var(--tall));
  margin: calc(var(--card) * var(--tall) / -2) 0 0 calc(var(--card) / -2);
  transform-style: preserve-3d;
  will-change: transform;
  /* brought forward by the radius so the far point of the arc sits on the
     z origin: the middle card is then at its true size, and everything the
     rotation carries outwards leans towards the viewer and grows. */
  transform: translateZ(var(--radius));
}

.wall-card {
  position: absolute; inset: 0; margin: 0;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transform: rotateY(var(--a, 0deg)) translateZ(calc(var(--radius) * -1));
  backface-visibility: hidden;
  box-shadow: 0 34px 66px -34px rgba(0,0,0,0.98);
  opacity: var(--op, 1);
}
/* A card turned right round sits at z = 2 x radius, which is within a few
   pixels of the perspective distance, so its projection blows up to tens of
   thousands of pixels. Transparent is not enough: an opacity-0 box still
   counts towards the scrollable overflow, and because body has overflow-x
   hidden the spec turns its overflow-y into auto -- so body grew a scroll
   bar that came and went as the ring turned. Taking those cards out of the
   layout altogether is what actually removes them. */
.wall-card.is-off { display: none; }

.wall-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
  filter:
    brightness(calc(0.46 + 0.54 * var(--lit, 1)))
    saturate(calc(0.62 + 0.38 * var(--lit, 1)))
    contrast(1.05);
}
/* the card facing us picks up the blue of the page; the ones turning
   away sink back into it */
.wall-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(200deg, rgba(120,170,255,0.14), transparent 46%),
    linear-gradient(180deg, transparent 52%, rgba(4,7,15,0.5));
  opacity: calc(1 - 0.78 * var(--lit, 1));
}
.wall-card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(140,185,255,0.45), inset 0 0 42px -12px var(--glow);
  opacity: var(--fore, 0);
}

/* ---- the line under it --------------------------------------------- */
.about-lead {
  max-width: 74ch; margin: 0 auto; text-align: center;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.68; color: var(--ink-soft);
}

/* ============================================================
   STATS
   ============================================================ */
/* part of the About block, not a section of its own */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; }
.stat {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 30px 24px 26px; border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(18,29,56,0.82), rgba(10,16,32,0.6));
  transition: border-color 0.45s, transform 0.45s var(--ease), box-shadow 0.45s;
}
.stat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(150deg, rgba(120,170,255,0.09), transparent 52%);
  transition: opacity 0.45s; opacity: 0.8;
}
.stat::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(200px circle at var(--mx,50%) var(--my,0%), rgba(59,130,246,0.22), transparent 70%);
  opacity: 0; transition: opacity 0.45s;
}
.stat:hover {
  border-color: var(--line-strong); transform: translateY(-6px);
  box-shadow: 0 28px 54px -28px rgba(0,0,0,0.95), 0 0 46px -24px var(--glow);
}
.stat:hover::before, .stat:hover::after { opacity: 1; }

.stat .n {
  font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1;
  background: linear-gradient(160deg, #ffffff, #a9c6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l {
  margin-top: 10px; font-size: 0.8rem; color: var(--ink-mute);
  transition: color 0.4s;
}
.stat:hover .l { color: var(--ink-soft); }

/* ============================================================
   UNITS — grid of six
   ============================================================ */
.units-head { text-align: center; max-width: 60ch; margin-inline: auto; }

.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }

.unit {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 30px 28px 26px; border-radius: 20px;
  background: linear-gradient(168deg, rgba(18,29,56,0.86), rgba(10,16,32,0.66));
  border: 1px solid var(--line);
  transition: border-color 0.45s, transform 0.5s var(--ease), box-shadow 0.5s;
}
/* a light sweep across the top corner gives the flat rectangle some form */
.unit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(150deg, rgba(120,170,255,0.10), transparent 46%);
  opacity: 0.85; transition: opacity 0.5s;
}
.unit::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,0.20), transparent 70%);
  opacity: 0; transition: opacity 0.45s;
}
.unit:hover {
  border-color: var(--line-strong); transform: translateY(-7px);
  box-shadow: 0 34px 64px -30px rgba(0,0,0,0.95), 0 0 54px -26px var(--glow);
}
.unit:hover::before { opacity: 1; }
.unit:hover::after { opacity: 1; }

/* sequence number, sunk into the corner as texture rather than content */
.unit-index {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--display); font-size: 3.4rem; font-weight: 600; line-height: 1;
  letter-spacing: -0.04em; color: rgba(150, 185, 245, 0.07);
  transition: color 0.5s var(--ease);
  user-select: none; pointer-events: none;
}
.unit:hover .unit-index { color: rgba(150, 185, 245, 0.14); }

/* The logo is the card's subject, so it gets the room the activity pills
   used to take. Capped on both axes: the square marks (GRSS, WIE) are bound
   by height and the wordmarks by width, which keeps them comparable. */
.unit-logo { height: 96px; display: flex; align-items: center; }
.unit-logo img {
  max-height: 100%; max-width: 240px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(120,170,255,0.25));
  opacity: 0.94; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), filter 0.5s;
}
.unit:hover .unit-logo img {
  opacity: 1; transform: scale(1.03);
  filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(120,170,255,0.5));
}

/* hairline between the mark and the words: separates the two registers */
.unit-rule {
  height: 1px; margin: 24px 0 20px;
  background: linear-gradient(90deg, var(--line-strong), transparent 65%);
  transition: background 0.5s;
}
.unit:hover .unit-rule { background: linear-gradient(90deg, var(--cyan), transparent 72%); }

.unit-code {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 9px;
}
.unit h3 { font-size: 1.08rem; line-height: 1.32; margin-bottom: 11px; }
.unit p {
  color: var(--ink-soft); font-size: 0.87rem; line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* a real affordance instead of a small label lost at the bottom */
.unit-go {
  margin-top: auto; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
  transition: color 0.35s;
}
.unit:hover .unit-go { color: var(--ink); }
.unit-arrow {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: 0.95rem;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  transition: background 0.4s var(--ease), border-color 0.4s, color 0.4s, transform 0.45s var(--ease);
}
.unit:hover .unit-arrow {
  background: var(--blue); border-color: var(--blue); color: #fff;
  transform: translateX(4px);
  box-shadow: 0 8px 22px -8px var(--glow);
}

/* ============================================================
   AWARDS — 3D coverflow
   Cards are 3:2 landscape: the ceremony photos are wide group
   shots, and a portrait crop would cut half the people out.
   ============================================================ */
.awards-head { text-align: center; max-width: 60ch; margin-inline: auto; }
.cf {
  margin-top: 54px; --cw: min(560px, 78vw); --cbody: 190px;
  /* No clip here on purpose: .cf sits inside .shell (1240px), so clipping
     at this level would cut the outer cards at the container edge instead
     of the viewport. The clip lives on html, which is the right boundary. */
}
.cf-stage {
  /* height derives from the card so nothing can overflow onto the controls */
  position: relative; height: calc(var(--cw) * 0.667 + var(--cbody));
  perspective: 1600px; perspective-origin: 50% 45%;
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
}
.cf-stage.dragging { cursor: grabbing; }

.cf-card {
  position: absolute; top: 0; left: 50%; width: var(--cw);
  margin-left: calc(var(--cw) / -2);
  border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.95);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition: transform 0.62s var(--ease), opacity 0.62s var(--ease), box-shadow 0.5s;
  backface-visibility: hidden;
}
.cf-card.is-active {
  border-color: var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,1), 0 0 60px -22px var(--glow);
}
.cf-card:not(.is-active) { cursor: pointer; }

.cf-media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--surface-2); }
.cf-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,7,15,0) 42%, rgba(4,7,15,0.55) 78%, rgba(4,7,15,0.9));
}
/* distinction sans photo : carte typographique plutot qu'un trou */
.cf-blank {
  width: 100%; height: 100%; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(120% 90% at 30% 15%, color-mix(in srgb, var(--sc) 26%, transparent), transparent 62%),
    linear-gradient(150deg, var(--surface-2), var(--deep));
}
.cf-blank span {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--sc); text-align: center;
  border: 1px solid currentColor; border-radius: 99px; padding: 9px 18px;
}

.cf-body {
  /* fixed, not min: any growth would desynchronise the card heights */
  padding: 20px 24px 24px; height: var(--cbody); overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
}
.cf-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.cf-tier {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sc); border: 1px solid currentColor; border-radius: 99px; padding: 4px 11px;
}
.cf-yr { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-mute); letter-spacing: 0.1em; }
/* clamped so every card is exactly the same height, whatever the title */
.cf-body h3 {
  font-size: 1.22rem; line-height: 1.25; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cf-body p {
  color: var(--ink-soft); font-size: 0.9rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* side cards keep their shape but stop competing for attention */
.cf-card:not(.is-active) .cf-body { opacity: 0.45; transition: opacity 0.5s; }

.cf-ui {
  position: relative; z-index: 120;          /* cards sit at z-index <= 100 */
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-top: 30px;
}
.cf-arrow {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); color: var(--ink-soft);
  display: grid; place-items: center; font-size: 1rem;
  background: rgba(11,18,36,0.6); backdrop-filter: blur(8px);
  transition: 0.3s var(--ease);
}
.cf-arrow:hover { border-color: var(--blue-lit); background: rgba(59,130,246,0.16); color: #fff; transform: translateY(-2px); }
.cf-arrow:active { transform: translateY(0); }

.cf-dots { display: flex; align-items: center; gap: 9px; }
.cf-dot {
  width: 8px; height: 8px; border-radius: 99px; padding: 0;
  background: rgba(150,180,235,0.28); transition: 0.4s var(--ease);
}
.cf-dot:hover { background: rgba(150,180,235,0.6); }
.cf-dot.on { width: 26px; background: var(--cyan); box-shadow: 0 0 12px var(--glow); }

/* ============================================================
   EVENTS — year-tabbed grid

   This was a horizontal rail: 31 cards on an 11,020px track, 3.48 of
   them visible at 1440 and exactly one on a phone. Reaching 2023 meant
   fourteen clicks on a 46px arrow placed below the thing it scrolled,
   and a section headed "unabridged" showed eleven per cent of itself.

   A grid behind year tabs puts every event one click away, and the
   counts on the tabs do the work the heading was only claiming.
   ============================================================ */
.ev-head { text-align: center; max-width: 60ch; margin-inline: auto; }
.ev-head p { color: var(--ink-soft); margin-top: 14px; }

.ev-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 34px;
}
.ev-tab {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s, border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.ev-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.ev-tab.is-on {
  color: #fff; border-color: transparent;
  background: linear-gradient(100deg, var(--blue), var(--violet));
  box-shadow: 0 10px 26px -12px var(--glow);
}
/* the count is the point of the tab, so it keeps its contrast when the
   tab is lit rather than fading into the gradient */
.ev-tab-n { font-size: 0.64rem; color: var(--ink-mute); }
.ev-tab:hover .ev-tab-n { color: var(--ink-soft); }
.ev-tab.is-on .ev-tab-n { color: rgba(255, 255, 255, 0.72); }
.ev-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.ev-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  /* room for the hover lift and its shadow */
  margin-top: 38px; padding: 10px 2px 4px;
}
.ev.is-off { display: none; }
.ev-empty { text-align: center; color: var(--ink-mute); margin-top: 38px; }

/* The whole card is the link. The record it points at is the only thing
   there is to do with an event, and a 12px line of type was a poor
   target for it. */
/* The photograph IS the card, and the words sit on it - the same
   grammar as the board cards further down the page, which were putting
   a portrait edge to edge while these put a 16:10 photograph above an
   82px strip carrying one line of type and nothing else. Same house,
   two grammars, and this was the weaker one. */
.ev {
  position: relative; display: block; aspect-ratio: 4/3;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color 0.45s, transform 0.5s var(--ease), box-shadow 0.5s;
}
/* the glow sits above the photograph, not behind it: below the image it
   would only ever show through the strip of body at the bottom */
.ev::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,0.16), transparent 70%);
  opacity: 0; transition: opacity 0.45s;
}
/* Fifteen of the 31 never got a record, so those cards are articles
   rather than links. The lift and the glow are an invitation to click,
   so they belong to the ones that are links. */
a.ev:hover {
  border-color: var(--line-strong); transform: translateY(-7px);
  box-shadow: 0 30px 58px -28px rgba(0,0,0,0.95), 0 0 50px -24px var(--glow);
}
a.ev:hover::after { opacity: 1; }
a.ev:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
article.ev:hover { border-color: var(--line-strong); }

.ev-img { position: absolute; inset: 0; overflow: hidden; }
/* full colour, like the portraits and the partner marks */
.ev-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
a.ev:hover .ev-img img { transform: scale(1.05); }
/* The scrim the type is read off, measured against the real pixels of
   all 31 photographs - each one resampled the way object-fit: cover
   places it in the 396x297 card, the scrim composited over it row by
   row, the result read as a background luminance.

   The first attempt was a plain three-stop ramp and it failed: worst
   case 3.49:1 for the date, under the 4.5 a 10px label needs, because
   a two-line title pushes the date up to y=216 where that ramp had
   only reached 0.68 alpha. Four stops instead, holding back until 56%
   and then climbing hard:

     date   3.49:1 -> 5.52:1      title  8.53:1 -> 11.77:1

   and it is LIGHTER than the old ramp everywhere above f=0.65 - mean
   alpha across the card 0.384 -> 0.366. The photograph is less
   obscured and the type reads better, which is the opposite of the
   trade I have made badly before: buying contrast with the picture,
   when the picture is most of what these cards are for. */
.ev-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 34%,
    rgba(4,7,15,0.30) 56%,
    rgba(4,7,15,0.80) 72%,
    rgba(4,7,15,0.95));
}

/* the date now reads as the board cards' role line does: cyan mono
   above the name, no chip, because the scrim below it is doing the
   work the chip used to do */
.ev-date {
  display: block;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em;
  color: var(--cyan);
}

.ev-body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 4; }
.ev-body h4 {
  font-size: 0.98rem; font-weight: 500; line-height: 1.35; margin-top: 5px;
  /* two lines at most: the card has a fixed ratio, so a third line would
     climb out of the scrim and be read off the photograph */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* All that is left of the old "VTOOLS RECORD" footer. It said the same
   thing in two words of boasting and cost the fifteen record-less cards
   a 100px panel of nothing. */
.ev-ext {
  font-style: normal; font-size: 0.82em; margin-left: 0.4em;
  /* ink-soft, not ink-mute: it is read off a photograph now, not off a
     flat panel, and mute disappeared into the scrim */
  color: var(--ink-soft); transition: color 0.35s;
}
a.ev:hover .ev-ext { color: var(--cyan); }

/* Cards animate from the tab handler, never from the reveal observer:
   that one unobserves an element once it fires, so a card hidden at
   load would have been stuck at opacity 0 the moment it was shown. */
@keyframes evIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.ev-grid.is-swapping > .ev:not(.is-off) {
  animation: evIn 0.5s var(--ease) both;
  /* capped: ALL shows 31 cards, and an uncapped stagger left the last
     one arriving a second after the first */
  animation-delay: calc(min(var(--i, 0), 14) * 32ms);
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-head { text-align: center; max-width: 60ch; margin-inline: auto; }
/* flex so an incomplete last row centres instead of hugging the left */
.partners-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin: 48px auto 0;
}
.partner { flex: 0 0 calc((100% - 5 * 16px) / 6); min-width: 180px; }
/* Five of the seven partner logos are dark artwork meant for light
   backgrounds. Each therefore sits on its own pale tile — the same rule the
   chapter cards follow in the units deck — rather than being recoloured. */
.partner {
  aspect-ratio: 16/9; border-radius: 14px; padding: 18px 22px;
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: rgba(226, 235, 252, 0.90);
  border: 1px solid rgba(226, 235, 252, 0.22);
  box-shadow: 0 10px 34px -18px rgba(0,0,0,0.9);
  transition: 0.45s var(--ease);
}
.partner::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(59,130,246,0.20), transparent 70%);
  transition: opacity 0.4s;
}
.partner:hover {
  background: #fff; transform: translateY(-5px);
  box-shadow: 0 18px 44px -18px rgba(0,0,0,0.95), 0 0 34px -10px var(--glow);
}
.partner:hover::after { opacity: 1; }
.partner img {
  max-height: 100%; max-width: 100%; width: auto; object-fit: contain;
  transition: transform 0.45s var(--ease);
}
.partner:hover img { transform: scale(1.04); }
.partner .slot { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: #64748b; text-align: center; }

/* ============================================================
   TEAM
   ============================================================ */
.team-head { text-align: center; max-width: 60ch; margin-inline: auto; }
/* flex, not grid: an incomplete last row centres itself, which a grid
   would leave hugging the left edge */
.team-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px; margin: 50px auto 0; max-width: 1090px;
}
.member { flex: 0 0 calc((100% - 3 * 18px) / 4); }
.member {
  position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.member:hover { border-color: var(--line-strong); transform: translateY(-7px); }
.member img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.member:hover img { transform: scale(1.05); }
.member::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(4,7,15,0.55) 55%, rgba(4,7,15,0.95)); pointer-events: none; }
.member-info { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.member-info h4 { font-size: 0.98rem; font-weight: 500; }
.member-info span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.member-social { display: flex; gap: 8px; margin-top: 11px; }
.member-social a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(160,190,240,0.34);
  display: grid; place-items: center; background: rgba(7,12,26,0.6);
  backdrop-filter: blur(6px); color: var(--ink-soft);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.member-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.member-social svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
   WHERE TO FIND US — map as a tilted card
   ============================================================ */
.where-head { text-align: center; max-width: 60ch; margin-inline: auto; }
/* the eyebrow rule draws a leading dash; centred it needs one on each side */
.eyebrow.is-centred { justify-content: center; }
.eyebrow.is-centred::after {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(270deg, transparent, var(--cyan));
}

.map-stage { perspective: 1700px; perspective-origin: 50% 40%; margin-top: 54px; }
.map-tilt {
  position: relative; overflow: hidden;
  height: clamp(360px, 52vh, 540px);
  border-radius: 22px; border: 1px solid var(--line-strong);
  box-shadow: 0 70px 110px -55px rgba(0,0,0,1), 0 0 80px -34px var(--glow),
              inset 0 1px 0 rgba(255,255,255,0.06);
  transform: rotateX(9deg) rotateY(-7deg) scale(0.97);
  transform-origin: 50% 50%;
  transition: transform 0.95s var(--ease), box-shadow 0.6s;
  will-change: transform;
}
.map-tilt:hover { transform: rotateX(5deg) rotateY(-4deg) scale(0.985); }
/* straightens once activated: a tilted map is awkward to drag */
.map-tilt.live, .map-tilt.live:hover { transform: none; }

.map-tilt iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.map-tilt.live iframe { pointer-events: auto; }

.map-unlock {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: rgba(4,7,15,0.14); transition: opacity 0.45s, background 0.4s;
}
.map-unlock span {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); padding: 12px 22px; border-radius: 99px;
  background: rgba(8,13,28,0.86); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); box-shadow: 0 16px 38px -18px rgba(0,0,0,0.95);
  transition: border-color 0.3s, background 0.3s;
}
.map-unlock:hover { background: rgba(4,7,15,0.04); }
.map-unlock:hover span { border-color: var(--blue-lit); background: rgba(11,18,36,0.94); }
.map-tilt.live .map-unlock { opacity: 0; pointer-events: none; }

.map-meta {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin-top: 34px; font-size: 0.86rem; color: var(--ink-soft); text-align: center;
}
.map-meta-sep { width: 1px; height: 14px; background: var(--line-strong); }
.mc-coords { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.13em; color: var(--ink-mute); }
.mc-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--cyan); transition: gap 0.3s var(--ease);
}
.mc-link svg { width: 13px; height: 13px; }
.mc-link:hover { gap: 12px; }

/* ============================================================
   GET IN TOUCH
   ============================================================ */
.touch-head { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
/* form first now, so it takes the wider column */
.touch-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 46px; align-items: start; }

.cp-info { display: flex; flex-direction: column; padding-top: 6px; }
.cp-row {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 17px 14px; margin-inline: -14px; border-radius: 14px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.cp-row + .cp-row { border-top: 1px solid var(--line); }
a.cp-row:hover { background: rgba(59,130,246,0.10); transform: translateX(3px); }
.cp-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: var(--cyan);
  border: 1px solid var(--line); background: rgba(4,7,15,0.5);
  transition: border-color 0.3s, background 0.3s;
}
a.cp-row:hover .cp-ic { border-color: var(--blue-lit); background: rgba(59,130,246,0.16); }
.cp-ic svg { width: 19px; height: 19px; }
.cp-row b {
  display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 400; margin-bottom: 4px;
}
.cp-row em { font-style: normal; font-size: 0.94rem; line-height: 1.55; }
.cp-hint { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--cyan); }

.cp-form {
  display: flex; flex-direction: column;
  padding: 30px; border-radius: 20px;
  background: rgba(11, 18, 36, 0.62);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 64px -34px rgba(0,0,0,0.95), inset 0 1px 0 rgba(255,255,255,0.04);
}
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: 0.94rem;
  background: rgba(4,7,15,0.62); border: 1px solid var(--line); color: var(--ink);
  transition: border-color 0.3s, background 0.3s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-lit); background: rgba(4,7,15,0.9); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }

/* Chrome paints an autofilled field itself, in near-white, and ignores
   background entirely — so the email box turned white the moment the browser
   recognised the address, while the fields either side stayed dark. The only
   thing that covers that paint is an inset shadow large enough to fill the
   box, and because a shadow does not composite the way the field's own 62%
   black does, these two have to be the blended result rather than the
   declared colour: rgba(4,7,15,0.62) over the panel over the page lands on
   #060a14, and the focused 0.9 on #040810. Measured, not guessed.
   -webkit-text-fill-color goes with it, or the text stays black on dark. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #060a14 inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  border-color: var(--line);
}
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #040810 inset;
  border-color: var(--blue-lit);
}
/* the standard selector, kept in its own rule: an engine that does not know
   it would throw away the whole list if these shared one */
.field input:autofill,
.field textarea:autofill {
  box-shadow: 0 0 0 100px #060a14 inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.field input:autofill:focus,
.field textarea:autofill:focus { box-shadow: 0 0 0 100px #040810 inset; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-form .btn { align-self: flex-start; margin-top: 4px; }
.note { font-size: 0.78rem; color: var(--ink-mute); margin-top: 14px; }
.note a { color: var(--cyan); }

/* The spam trap, the inline field errors, the busy spinner and the disabled
   button all went with contact.php. A mailto form is handed straight to the
   visitor's mail client: there is no request to validate, no round trip to
   look busy during, and no endpoint for a bot to find. The browser's own
   required-field check is all that is left, and it is enough. */

/* A field the browser itself rejects. :user-invalid, not :invalid, so an
   empty box is not painted red before anybody has typed in it. */
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--bad);
  background: rgba(248, 113, 113, 0.07);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--line); padding: 60px 0 34px; margin-top: 40px; }
.foot-top { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 44px; }
.foot-brand img { height: 40px; margin-bottom: 18px; }
.foot-brand p { color: var(--ink-mute); font-size: 0.9rem; max-width: 34ch; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 15px; font-weight: 400; }
.foot-col a { display: block; font-size: 0.9rem; color: var(--ink-soft); padding: 5px 0; transition: color 0.25s, transform 0.25s; }
.foot-col a:hover { color: var(--cyan); transform: translateX(4px); }
.foot-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-mute); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: 0.3s var(--ease); }
.socials a:hover { border-color: var(--blue-lit); background: rgba(59,130,246,0.14); transform: translateY(-3px); }
.socials svg { width: 15px; height: 15px; fill: currentColor; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  /* The cylinder flattens as the screen narrows, for two reasons that stack.
     The script sets the radius from --card, so a smaller card means a
     shallower arc; and a narrow viewport only shows the few degrees either
     side of the front, which is the flattest part of any circle. Perspective
     stayed at 1180px through all of it, so the foreshortening that sells the
     curve got weaker exactly where there was least curve to see.

     Shortening it per breakpoint puts the depth back. The desktop value is
     untouched: this rule starts below the width the desktop layout uses. */
  .wall { --card: 210px; perspective: 820px; }
  .member { flex-basis: calc((100% - 2 * 18px) / 3); }
}
@media (max-width: 900px) {
  .sec { padding: 88px 0; }
  .cf { --cw: min(520px, 84vw); --cbody: 172px; }
  .cf-stage { perspective: 1100px; }
  /* Perspective alone was not enough here, because the card width and the
     curve are the same number twice. The script sets the radius from
     --card, so how much of the cylinder fits across the screen is fixed by
     how wide a card is: at 168px the radius is 393px and a 375px screen
     covers 56 degrees of arc, which is the flat part of any circle. At
     130px the radius falls to 304px and the same screen covers 76 degrees,
     where the cards are visibly turning away.

     So the photographs are smaller on a phone than they would otherwise
     be. That is the trade, and it is the right way round: a 168px card in
     a flat row reads as a strip of thumbnails, and the section is supposed
     to be a cylinder. The other way out would be putting fewer cards on
     the ring below this width, which buys the same angle at full size but
     means the card count stops being just cards.length. */
  .wall { --card: 130px; perspective: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  /* the two columns must stack: side by side under 900px squeezes both
     the form fields and the contact lines to unusable widths */
  .touch-grid { grid-template-columns: 1fr; gap: 32px; }

  .units-grid { grid-template-columns: repeat(2, 1fr); }
  .menu {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px; align-items: stretch;
    background: rgba(8,13,28,0.94); backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 24px 50px -24px rgba(0,0,0,0.95);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.32s var(--ease), transform 0.38s var(--ease), visibility 0.32s;
  }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav .shell {
    background: rgba(8, 13, 28, 0.72);
    backdrop-filter: blur(18px) saturate(150%);
    border-color: var(--line);
  }
  .brand img { height: 30px; }
  .nav.stuck .brand img { height: 26px; }
  .menu a { padding: 14px 16px; font-size: 1rem; }
  .burger { display: block; }
}
@media (max-width: 1000px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ev-grid { grid-template-columns: 1fr; gap: 20px; }
  /* one card per row, and a phone-width card is wide for its height:
     4/3 would make it a letterbox, so it squares up */
  .ev { aspect-ratio: 1/1; }
  .ev-tabs { gap: 8px; }
  .ev-tab { padding: 8px 14px; font-size: 0.66rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .units-grid { grid-template-columns: 1fr; }
  .member { flex-basis: calc((100% - 18px) / 2); }
  .two { grid-template-columns: 1fr; }
  .cf { --cw: 86vw; --cbody: 160px; }
  .cf-body { padding: 16px 18px 20px; }
  .cf-body h3 { font-size: 1.05rem; }
  .cf-body p { font-size: 0.85rem; }
  .cf-ui { gap: 14px; }
  #halo { display: none; }
}

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}
