/* ==========================================================================
   SWIFTLY — STEM Racing team site
   --------------------------------------------------------------------------
   Contents
     1.  Tokens            — colours, type, spacing (change the brand here)
     2.  Reset & base
     3.  Layout helpers
     4.  Buttons, chips, icons
     5.  Header & nav
     6.  Hero
     7.  Diagrams          — the car drawing and the track diagram
     8.  Stats
     9.  Section headings
     10. About grid & roster
     11. Hover cards       — regulation envelope + where points are won
     14. Timeline          — the road ahead, stages open on click
     15. Call to action
     15b. Contact cards
     16. Sources
     17. Footer
     18. Motion / reveal
   ========================================================================== */


/* 1. TOKENS ================================================================ */

:root {
  /* Brand — change these three and the whole site follows */
  --accent:        #22E0C8;   /* Swiftly teal */
  --accent-2:      #FFB020;   /* amber accent */
  --accent-ink:    #04231F;   /* text on top of --accent */

  /* Surfaces */
  --ink:           #07080B;
  --ink-2:         #0B0D12;
  --surface:       #11141B;
  --line:          rgba(255, 255, 255, .09);
  --line-2:        rgba(255, 255, 255, .16);

  /* Text */
  --text:          #EEF1F6;
  --muted:         #97A1B2;
  --muted-2:       #6E7787;

  /* Diagram fill for the car and track drawings */
  --car-fill:      rgba(34, 224, 200, .10);

  /* Shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  /* Rhythm */
  --wrap:  1180px;
  --gutter: clamp(20px, 5vw, 44px);
  --section-y: clamp(72px, 10vw, 136px);

  /* Type */
  --display: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}


/* 2. RESET & BASE ========================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A faint warm/cool vignette so the black is not flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(34, 224, 200, .10), transparent 62%),
    radial-gradient(900px  560px at 4%  32%, rgba(255, 176, 32, .05), transparent 60%);
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 8.5vw, 6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); letter-spacing: .005em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: top .2s;
}
.skip:focus { top: 12px; }


/* 3. LAYOUT HELPERS ======================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding-block: var(--section-y); position: relative; z-index: 1; }
.section--slim { padding-block: clamp(46px, 6vw, 72px); }

.section--alt {
  background: linear-gradient(180deg, var(--ink-2), #090B10);
  border-block: 1px solid var(--line);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #C8CEDA;
  line-height: 1.6;
}

.note { color: var(--muted); font-size: .92rem; margin-top: 1.2rem; max-width: 62ch; }


/* 4. BUTTONS, CHIPS, ICONS ================================================= */

.icon { width: 1.15em; height: 1.15em; flex: none; }

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.5em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 .95rem/1 var(--body);
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .18s; }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(34, 224, 200, .75);
}
.btn--primary:hover { box-shadow: 0 16px 38px -12px rgba(34, 224, 200, .9); }

.btn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--line-2); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: .38em .85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 224, 200, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(34, 224, 200, 0); }
  100% { box-shadow: 0 0 0 0  rgba(34, 224, 200, 0); }
}


/* 5. HEADER & NAV ========================================================== */

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.nav.is-stuck {
  background: rgba(7, 8, 11, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 34px; height: 34px; }
.brand__text {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand__dot { color: var(--accent); }

.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav__links a {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  padding-block: 4px;
  transition: color .18s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after,
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  margin-left: auto;
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
}
.nav__toggle .icon { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 26px;
    background: rgba(7, 8, 11, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .nav__links.is-open { transform: translateY(0); visibility: visible; }
  .nav__links a {
    padding: 14px 2px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
}


/* 6. HERO ================================================================== */

.hero {
  position: relative;
  padding-block: clamp(40px, 8vw, 92px) clamp(64px, 10vw, 128px);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.streak {
  position: absolute;
  height: 1px;
  left: -30%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(34, 224, 200, .55), transparent);
  animation: streak 5.5s linear infinite;
  opacity: 0;
}
.s1 { top: 18%; animation-delay: 0s;   }
.s2 { top: 34%; animation-delay: 1.1s; width: 42%; }
.s3 { top: 52%; animation-delay: 2.3s; background: linear-gradient(90deg, transparent, rgba(255, 176, 32, .4), transparent); }
.s4 { top: 68%; animation-delay: 3.1s; width: 36%; }
.s5 { top: 84%; animation-delay: 4.2s; }
@keyframes streak {
  0%   { transform: translateX(0);    opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(260%); opacity: 0; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__title { margin-bottom: 1.1rem; }
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(95deg, var(--accent), #7FF3E4 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__copy .lede { max-width: 52ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-block: 1.8rem 1.6rem;
}

.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; }

.scrollcue {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin: clamp(30px, 5vw, 56px) auto 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
}
.scrollcue:hover { color: var(--accent); border-color: var(--accent); }
@keyframes bob { 50% { transform: translateY(7px); } }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}


/* 7. DIAGRAMS ============================================================== */

.carsvg {
  width: 100%;
  height: auto;
  color: var(--accent);
  overflow: visible;
}
/* Hero team photo */
.hero__photo {
  margin: 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95);
}
.hero__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
/* A touch of brand colour over the photo so it sits in the palette */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(7, 8, 11, .55)),
    linear-gradient(115deg, rgba(34, 224, 200, .12), transparent 55%);
}

/* Annotation leader lines and labels on the car diagram */
.carsvg .anno line { stroke: var(--muted-2); stroke-width: 1.2; }
.carsvg .anno text {
  fill: var(--muted);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-anchor: middle;
}

.cardiagram,
.trackdiagram {
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: clamp(20px, 3.5vw, 38px) clamp(16px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), transparent);
}
.cardiagram figcaption {
  margin-top: 1.2rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted-2);
}

.trackdiagram svg { width: 100%; height: auto; color: var(--accent); }
.trackdiagram .dim line { stroke: var(--muted-2); stroke-width: 1.2; }
.trackdiagram .dim path { fill: var(--muted-2); }
.tk-label {
  fill: var(--muted);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  text-anchor: middle;
}
.tk-dim {
  fill: var(--accent);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .04em;
  text-anchor: middle;
}


/* 8. STATS ================================================================= */

.stats {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
  padding-block: clamp(30px, 4vw, 46px);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 3vw, 34px);
}
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat__value em {
  font-style: normal;
  color: var(--accent);
  font-size: .55em;
  margin-left: .06em;
}
.stat__value em.word { margin-left: .18em; }
.stat__label {
  display: block;
  margin-top: .5rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .stat:nth-child(odd) { border-left: 0; }
}


/* 9. SECTION HEADINGS ====================================================== */

.shead { max-width: 60ch; margin-bottom: clamp(34px, 5vw, 56px); }
.shead__kicker {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.shead__title { margin-bottom: .55rem; }
.shead__sub { color: var(--muted); font-size: 1.02rem; max-width: 58ch; }

.subhead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  margin: clamp(46px, 6vw, 72px) 0 1.4rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.subhead--tight { margin-top: clamp(34px, 4vw, 48px); }
.subhead--row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1.2rem;
}
.subhead--row h3 { font-size: inherit; letter-spacing: inherit; margin: 0; }

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.inline-link:hover { text-decoration-thickness: 2px; }


/* 10. ABOUT GRID & ROSTER ================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }

.roster {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.roster__title {
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}
.roster__list { list-style: none; margin: 0; padding: 0; }
.roster__list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--line);
}
.roster__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.roster__n {
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted-2);
  flex: none;
}
.roster__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
}


/* 11. HOVER CARDS ========================================================== */
/* Each card holds a front (title only) and a back (title + details) in the
   same grid cell, so the card is always as tall as its longer face. Hovering
   or focusing slides the details in. On touch screens, which cannot hover,
   the details are simply shown. Pure CSS — nothing here needs JS. */

.cardgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
}
.cardgrid > li { display: flex; }
.cardgrid--spec   { grid-template-columns: repeat(5, 1fr); }
.cardgrid--points { grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.2vw, 22px); }
@media (max-width: 980px) { .cardgrid--spec { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .cardgrid--points { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cardgrid--spec { grid-template-columns: repeat(2, 1fr); } }

.peek {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), rgba(17, 20, 27, .5));
  overflow: hidden;
  transition: transform .25s, border-color .25s, background .25s;
}
.peek__inner { display: grid; height: 100%; }
.peek__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 26px);
  transition: opacity .35s cubic-bezier(.2, .8, .2, 1), transform .35s cubic-bezier(.2, .8, .2, 1);
}
/* Stagger the fades so the outgoing face clears before the incoming one lands */
.peek__front { transition-duration: .3s; transition-delay: .1s; }
.peek__back  { opacity: 0; transform: translateY(14px); transition-duration: .18s; transition-delay: 0s; }
.peek:hover .peek__front,
.peek:focus-visible .peek__front { transition-duration: .18s; transition-delay: 0s; }
.peek:hover .peek__back,
.peek:focus-visible .peek__back { transition-duration: .3s; transition-delay: .1s; }

.peek:hover,
.peek:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(34, 224, 200, .4);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(34, 224, 200, .12), transparent 70%),
    var(--surface);
}
.peek:hover .peek__front,
.peek:focus-visible .peek__front { opacity: 0; transform: translateY(-14px); }
.peek:hover .peek__back,
.peek:focus-visible .peek__back { opacity: 1; transform: none; }

/* Regulation envelope tiles */
.peek--spec .peek__face { min-height: 132px; }
.peek--spec .peek__front { justify-content: flex-end; }
.peek--spec .peek__front::before {
  content: "";
  width: 22px;
  height: 2px;
  margin-bottom: auto;
  background: var(--accent);
}
.peek--spec .peek__front .peek__label {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.1;
  color: var(--text);
}
.peek--spec .peek__back { gap: .7rem; justify-content: space-between; }
.peek__label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.peek__value {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.15;
  color: var(--text);
}

/* "Where points are won" cards */
.peek--point .peek__face { min-height: clamp(190px, 20vw, 216px); }
.peek__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
}
.peek__cue {
  margin-top: auto;
  padding-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.peek__text { color: #C8CEDA; font-size: 1rem; line-height: 1.6; }

.card__num {
  display: block;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

.hint {
  display: inline-flex;
  margin: 0;
  font-family: var(--body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hint-inline { display: none; color: var(--accent); }
.js .hint-inline { display: inline; }

/* Touch screens: no hover, so show the details and drop the hint */
@media (hover: none) {
  .peek__front { display: none; }
  .peek__back { opacity: 1; transform: none; }
  .peek:hover, .peek:focus-visible { transform: none; }
  .hint { display: none; }
}


/* 14. TIMELINE ============================================================= */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(18px, 3vw, 28px);
  position: relative;
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: .6rem; bottom: .6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(34, 224, 200, .12));
}

.tl { position: relative; display: grid; grid-template-columns: 11rem 1fr; gap: 1.4rem; }
.tl::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(18px, 3vw, 28px) - 5px);
  top: .55rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent);
}
.tl--next::before { background: var(--accent-2); border-color: var(--accent-2); }
.tl::before { transition: background .25s, box-shadow .25s; }
.tl.is-open::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(34, 224, 200, .15); }
.tl--next.is-open::before { background: var(--accent-2); box-shadow: 0 0 0 5px rgba(255, 176, 32, .15); }

.tl__date {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: .1rem;
}
.tl--next .tl__date { color: var(--accent-2); }
.tl__when {
  display: block;
  margin-top: .25rem;
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--muted);
}
.tl__body h3 { margin-bottom: .35rem; }
.tl__body p { color: var(--muted); margin: 0; }

.tl__toggle {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.tl__toggle:hover { color: var(--accent); }
.tl--next .tl__toggle:hover { color: var(--accent-2); }
.tl__icon { width: .9em; height: .9em; color: var(--accent); transition: transform .3s; }
.tl--next .tl__icon { color: var(--accent-2); }
.tl.is-open .tl__icon { transform: rotate(180deg); }

/* Panels open with a grid-rows transition, so no heights are hard-coded */
.tl__panel { display: grid; grid-template-rows: 1fr; }
.tl__panel > div { overflow: hidden; }
.js .tl__panel { grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1); }
.js .tl__panel > div { visibility: hidden; transition: visibility 0s .45s; }
.js .tl.is-open .tl__panel { grid-template-rows: 1fr; }
.js .tl.is-open .tl__panel > div { visibility: visible; transition-delay: 0s; }

@media (max-width: 640px) { .tl { grid-template-columns: 1fr; gap: .4rem; } }


/* 15. CALL TO ACTION ======================================================= */

.cta {
  margin-top: clamp(38px, 5vw, 56px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(34, 224, 200, .32);
  border-radius: var(--r-lg);
  background:
    radial-gradient(700px 200px at 12% 0%, rgba(34, 224, 200, .14), transparent 70%),
    var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta h3 { margin-bottom: .3rem; }
.cta p { color: var(--muted); margin: 0; max-width: 46ch; }


/* 15b. CONTACT ============================================================= */

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.2vw, 22px);
}
@media (max-width: 720px) { .contact { grid-template-columns: 1fr; } }

.contact__card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon key  go"
    "icon val  go";
  align-items: center;
  column-gap: 1.1rem;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), rgba(17, 20, 27, .5));
  transition: transform .22s, border-color .22s, background .22s;
}
.contact__card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 224, 200, .45);
  background: linear-gradient(180deg, rgba(34, 224, 200, .07), var(--surface) 60%);
}

.contact__icon {
  grid-area: icon;
  width: 30px; height: 30px;
  color: var(--accent);
}
.contact__k {
  grid-area: key;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact__v {
  grid-area: val;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.contact__go {
  grid-area: go;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color .22s, border-color .22s, transform .22s;
}
.contact__card:hover .contact__go {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(3px);
}


/* 16. SOURCES ============================================================== */

.sources__title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: .6rem;
}
.sources {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.sources a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55em 1.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: .9rem;
  color: var(--muted);
  transition: color .18s, border-color .18s, background .18s;
}
.sources a:hover {
  color: var(--accent);
  border-color: rgba(34, 224, 200, .45);
  background: rgba(34, 224, 200, .06);
}


/* 17. FOOTER =============================================================== */

.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: clamp(36px, 5vw, 56px) 26px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  align-items: center;
  justify-content: space-between;
}
.footer__tag {
  margin: .5rem 0 0;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__nav a { font-size: .92rem; color: var(--muted); }
.footer__nav a:hover { color: var(--accent); }

.footer__social { list-style: none; display: flex; gap: .6rem; margin: 0; padding: 0; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color .18s, border-color .18s, background .18s;
}
.footer__social a:hover { color: var(--accent-ink); background: var(--accent); border-color: transparent; }

.footer__legal {
  margin-top: clamp(26px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer__legal p { font-size: .82rem; color: var(--muted-2); margin: 0; }



/* 18. MOTION / REVEAL ====================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .streak, .pulse, .scrollcue { animation: none; }
  .peek, .peek__face, .tl__panel { transition: none !important; }
  * { scroll-behavior: auto !important; }
}

@media print {
  .nav, .progress, .scrollcue, .hero__bg, .hint, .hint-inline { display: none !important; }
  .peek__front { display: none; }
  .peek__back { opacity: 1 !important; transform: none !important; }
  .tl__panel { grid-template-rows: 1fr !important; }
  .tl__panel > div { visibility: visible !important; }
  body { background: #fff; color: #000; }
}
