/* ==========================================================================
   THE RETURN — Home for Genna
   Shared design system: public invitation site + private deal room.
   Palette lives entirely in custom properties so it can be swapped wholesale.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Surfaces */
  --bg:            #0b0b10;
  --bg-deep:       #07070b;
  --panel:         #14141d;
  --panel-2:       #1b1b26;
  --hairline:      rgba(255, 255, 255, 0.10);
  --hairline-soft: rgba(255, 255, 255, 0.06);

  /* --- The Ethiopian flag ------------------------------------------------
     Black and white carry the page. Every colour between them is the flag.
     `--flag-*` are the true flag values, used for solid fills, bars and the
     flag line. `--green` / `--gold` / `--red` are the same hues lifted for
     legibility as text and UI on a near-black ground — #078930 as body text
     on #0b0b10 fails contrast badly, so it never appears as text. */
  --flag-green:  #078930;
  --flag-yellow: #fcdd09;
  --flag-red:    #da121a;
  --flag-blue:   #0f47af;   /* the disc — used sparingly, emblem accents only */

  --green:      #17a94b;
  --gold:       #fcdd09;
  --red:        #ef3b32;

  --green-dim:  rgba(7, 137, 48, 0.22);
  --green-glow: rgba(7, 137, 48, 0.34);
  --gold-dim:   rgba(252, 221, 9, 0.14);
  --red-dim:    rgba(218, 18, 26, 0.16);

  /* Ink */
  --ink:      #f4f4f7;
  --ink-mute: #a3a3b2;
  --ink-dim:  #6f6f80;

  /* Type */
  --display: 'Anton', 'Haettenschweiler', 'Arial Narrow Bold', Impact, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Geometry */
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 10px;
  --r-xl: 16px;

  /* Rhythm */
  --shell: 1200px;
  --gut:   24px;
  --sec:   clamp(64px, 9vw, 128px);
}

/* --- Reset -------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #04120a; padding: 12px 20px;
  font-weight: 700; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

.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;
}

/* --- Typography --------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}

h1 { font-size: clamp(40px, 7.2vw, 92px); }
h2 { font-size: clamp(32px, 5vw, 62px); }
h3 { font-size: clamp(20px, 2.4vw, 30px); }

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

/* The flag, swept across the emphasised phrase in a headline:
   green → yellow → red, in flag order. */
.grad {
  background: linear-gradient(96deg,
    var(--green) 2%, #5cc23a 26%, var(--gold) 55%, #f79a12 78%, var(--red) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}

.lede    { color: var(--ink-mute); font-size: clamp(15px, 1.4vw, 18px); }
.muted   { color: var(--ink-mute); }
.dim     { color: var(--ink-dim); }
.small   { font-size: 13px; }
.tiny    { font-size: 12px; }

/* "(proposed)" / "target" qualifiers — never let these get lost. */
.qualifier {
  font-family: var(--body);
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim);
}

/* --- Layout ------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gut);
}

section { position: relative; }
.band { padding: var(--sec) 0; }
.band--tight { padding: calc(var(--sec) * 0.62) 0; }

.rule { height: 1px; background: var(--hairline-soft); border: 0; margin: 0; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}

.link-more {
  font-size: 13px; color: var(--ink-mute);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px; transition: color .18s, border-color .18s;
}
.link-more:hover { color: var(--green); border-color: var(--green); }

/* Radial green wash used behind the hero and the deal-room band. */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 68% 58% at 50% 34%, var(--green-glow), transparent 70%);
  pointer-events: none;
}
.glow--low::before {
  background: radial-gradient(ellipse 76% 100% at 50% 100%, var(--green-glow), transparent 72%);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .16s ease, background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn--green { background: var(--green); color: #04120a; }
.btn--green:hover { background: #1cc257; }

.btn--gold { background: var(--gold); color: #16130a; }
.btn--gold:hover { background: #ffe83f; }

.btn--ghost { background: transparent; border-color: var(--hairline); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* --- Navigation --------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 68px;
}

.wordmark {
  font-family: var(--display);
  font-size: 20px; letter-spacing: 0.03em; text-transform: uppercase;
}
.wordmark span { color: var(--green); }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 14px; color: var(--ink-mute);
  transition: color .18s;
}
.nav__links a:hover { color: var(--ink); }

/* Green / gold / red flag hairline under the nav. */
.flagline {
  height: 2px;
  background: linear-gradient(
    to right,
    var(--flag-green)  0 33.34%,
    var(--flag-yellow) 33.34% 66.67%,
    var(--flag-red)    66.67% 100%
  );
  opacity: .85;
}

.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* Below the breakpoint the links collapse into a panel that Alpine toggles by
   class. Visibility stays a CSS concern so the desktop nav never depends on a
   JS-evaluated window width. */
@media (max-width: 860px) {
  .nav__links {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--hairline);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px var(--gut); border-top: 1px solid var(--hairline-soft); }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
}

/* --- Photography placeholders -------------------------------------------
   Every image on the site is a labelled placeholder until cleared originals
   are dropped in. Set a real image with:  style="--img: url('/img/x.jpg')"
   ------------------------------------------------------------------------ */

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    var(--img, none) center / cover no-repeat,
    linear-gradient(148deg, #23233a 0%, #141420 44%, #0f1a14 100%);
  isolation: isolate;
}

/* Faint diagonal weave so empty placeholders read as intentional, not broken. */
.photo::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.028) 0 2px, transparent 2px 7px);
  pointer-events: none;
}

/* Bottom scrim so overlaid labels stay legible over any photo. */
.photo::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top,
    rgba(6,6,10,.92) 0%, rgba(6,6,10,.42) 34%, transparent 68%);
  pointer-events: none;
}
.photo--flat::after { background: none; }

.photo__note {
  position: absolute; inset: auto 10px 10px 10px; z-index: 3;
  font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.42);
  line-height: 1.35;
}
.photo:has(.photo__label) .photo__note,
.artist .photo__note { display: none; }

.photo__label {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 18px 18px 16px;
  font-family: var(--display);
  font-size: clamp(15px, 1.7vw, 21px);
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.05;
}
.photo__label small {
  display: block; margin-top: 5px;
  font-family: var(--body); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; color: var(--ink-mute);
}

.ratio-34  { aspect-ratio: 3 / 4; }
.ratio-43  { aspect-ratio: 4 / 3; }
.ratio-11  { aspect-ratio: 1 / 1; }
.ratio-169 { aspect-ratio: 16 / 9; }

/* --- Hero collage -------------------------------------------------------
   Seven vertical strips, tallest at centre, staggered up/down.
   ------------------------------------------------------------------------ */

.collage {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  margin-top: 56px;
}

.collage .photo {
  flex: 0 1 auto;
  width: clamp(52px, 8.4vw, 108px);
  border-radius: var(--r);
}

.collage .photo:nth-child(1),
.collage .photo:nth-child(7) { height: clamp(120px, 17vw, 196px); opacity: .5; }
.collage .photo:nth-child(2),
.collage .photo:nth-child(6) { height: clamp(168px, 23vw, 262px); opacity: .78; }
.collage .photo:nth-child(3),
.collage .photo:nth-child(5) { height: clamp(196px, 27vw, 302px); opacity: .92; }
.collage .photo:nth-child(4) { height: clamp(230px, 32vw, 356px); }

.collage .photo:nth-child(odd)  { transform: translateY(14px); }
.collage .photo:nth-child(even) { transform: translateY(-14px); }
.collage .photo:nth-child(4)    { transform: translateY(0); }

@media (max-width: 640px) {
  .collage { gap: 6px; }
  .collage .photo:nth-child(1),
  .collage .photo:nth-child(7) { display: none; }
}

/* --- Partner strip ------------------------------------------------------ */

.partners {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding: 34px 0;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.partner {
  display: flex; flex-direction: column; gap: 4px;
  color: var(--ink-dim);
  transition: color .2s;
}
.partner:hover { color: var(--ink-mute); }
.partner b {
  font-family: var(--display); font-size: clamp(15px, 1.7vw, 21px);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 400;
}
.partner span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); opacity: .72; }

/* --- Schedule ----------------------------------------------------------- */

.schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.events { display: flex; flex-direction: column; gap: 10px; }

.event {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: var(--panel);
  border-radius: var(--r);
  border-left: 3px solid var(--hairline);
  transition: background .18s, transform .18s;
}
.event:hover { background: var(--panel-2); transform: translateX(2px); }

/* Rotating green / gold / red left border. */
.events .event:nth-child(3n+1) { border-left-color: var(--green); }
.events .event:nth-child(3n+2) { border-left-color: var(--gold); }
.events .event:nth-child(3n+3) { border-left-color: var(--red); }

.event__date { text-align: center; line-height: 1; }
.event__date b {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: 26px;
}
.event__date span {
  display: block; margin-top: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-dim);
}

.event__body strong { display: block; font-size: 15px; font-weight: 600; }
.event__body span   { display: block; font-size: 13px; color: var(--ink-mute); margin-top: 2px; }

.footnote {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-size: 13px;
  color: var(--ink-mute);
}

@media (max-width: 860px) {
  .schedule { grid-template-columns: 1fr; }
}

/* --- Card grids --------------------------------------------------------- */

.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card-link { display: block; transition: transform .2s ease; }
.card-link:hover { transform: translateY(-3px); }

/* --- Statement ---------------------------------------------------------- */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.statement h2 { font-size: clamp(30px, 4.4vw, 58px); }
.statement__stack { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 860px) {
  .statement { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Deal-room band ----------------------------------------------------- */

.dealband {
  background: linear-gradient(180deg, var(--bg-deep), #0a1410 60%, var(--bg-deep));
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.tile {
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}
.tile__icon {
  width: 34px; height: 34px; margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--green-dim);
  color: var(--green);
}
.tile h3 { font-size: 17px; margin-bottom: 8px; }
.tile p  { font-size: 13.5px; color: var(--ink-mute); margin: 0; }

/* --- Footer ------------------------------------------------------------- */

.footer { background: var(--bg-deep); padding: 64px 0 0; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__blurb { max-width: 34ch; font-size: 13.5px; color: var(--ink-mute); margin-top: 16px; }

.footer__col h4 {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim); margin: 0 0 14px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a { font-size: 13.5px; color: var(--ink-mute); transition: color .18s; }
.footer__col a:hover { color: var(--green); }

.footer__bottom {
  margin-top: 56px; padding: 22px 0;
  border-top: 1px solid var(--hairline-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-dim);
}

@media (max-width: 860px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* --- Status pills (shared: never colour alone — always icon + label) ----- */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.pill__mark { font-size: 11px; line-height: 1; }

.pill--complete { color: var(--green); border-color: rgba(23,169,75,.38); background: rgba(23,169,75,.10); }
.pill--active   { color: var(--gold);  border-color: rgba(252,221,9,.38); background: rgba(252,221,9,.10); }
.pill--planned  { color: var(--ink-dim); }
.pill--target   { color: var(--gold); border-color: rgba(252,221,9,.32); }
.pill--agreed   { color: var(--green); border-color: rgba(23,169,75,.38); }
.pill--proposed { color: var(--red); border-color: rgba(239,59,50,.38); background: rgba(239,59,50,.09); }

/* --- Utilities ---------------------------------------------------------- */

.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.wrap    { flex-wrap: wrap; }
.gap-8   { gap: 8px; }  .gap-12 { gap: 12px; }
.gap-16  { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8    { margin-top: 8px; }  .mt-16 { margin-top: 16px; }
.mt-24   { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.center  { text-align: center; }
.grow    { flex: 1 1 auto; min-width: 0; }
.maxw-60 { max-width: 60ch; } .maxw-46 { max-width: 46ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

[hidden] { display: none !important; }

/* htmx: fade newly-swapped fragments in. */
.htmx-swapping { opacity: 0; transition: opacity .12s ease-out; }
.htmx-added    { opacity: 0; }
.htmx-settling .htmx-added { opacity: 1; transition: opacity .2s ease-in; }

/* Alpine: avoid flash of un-initialised markup. */
[x-cloak] { display: none !important; }

/* --- Artist portraits ----------------------------------------------------
   The people the invitation is addressed to. Deliberately not styled as a
   concert bill — no billing order, no "presented by" — because nobody here
   has agreed to perform.
   ------------------------------------------------------------------------ */

.artists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
}

.artist { position: relative; }
.artist .photo { aspect-ratio: 3 / 4; }

.artist__name {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 16px 14px 14px;
}
.artist__name b {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(14px, 1.5vw, 18px);
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.05;
}
.artist__name span {
  display: block; margin-top: 4px;
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* Flag hairline along the top of each portrait. */
.artist .photo::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 4;
  background: linear-gradient(to right,
    var(--flag-green) 0 33.34%, var(--flag-yellow) 33.34% 66.67%, var(--flag-red) 66.67% 100%);
  background-image: linear-gradient(to right,
    var(--flag-green) 0 33.34%, var(--flag-yellow) 33.34% 66.67%, var(--flag-red) 66.67% 100%);
  opacity: .9;
}

/* --- Commitment rows -----------------------------------------------------
   What the hosts undertake to provide. Index numbers cycle the flag.
   ------------------------------------------------------------------------ */

.commits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.commit {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  transition: background .18s, border-color .18s;
}
.commit:hover { background: var(--panel-2); border-color: rgba(255,255,255,.16); }

/* Five items over two columns leaves an orphan — let the last one run full
   width so the block closes squarely instead of trailing off. */
.commit:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 780px) {
  .commits { grid-template-columns: 1fr; }
}

.commit__n {
  font-family: var(--display); font-weight: 400;
  font-size: 30px; line-height: 1;
  color: var(--ink-dim);
}
.commits .commit:nth-child(3n+1) .commit__n { color: var(--green); }
.commits .commit:nth-child(3n+2) .commit__n { color: var(--gold); }
.commits .commit:nth-child(3n+3) .commit__n { color: var(--red); }

.commit h3 { font-size: 19px; margin-bottom: 7px; }
.commit p  { font-size: 14px; color: var(--ink-mute); margin: 0; max-width: 62ch; }

/* --- Ethiopia-now mosaic -------------------------------------------------
   Asymmetric grid: one tall anchor image, the rest stacked around it.
   ------------------------------------------------------------------------ */

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 168px;
  gap: 12px;
}
.mosaic .photo { height: 100%; }
.mosaic .m-tall  { grid-row: span 2; }
.mosaic .m-wide  { grid-column: span 2; }
.mosaic .m-big   { grid-column: span 2; grid-row: span 2; }

@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaic .m-big { grid-column: span 2; }
}
@media (max-width: 520px) {
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .m-wide, .mosaic .m-big { grid-column: span 1; }
  .mosaic .m-tall, .mosaic .m-big { grid-row: span 1; }
}

/* --- Reach tiles (buses, signage, broadcast) ----------------------------- */

.reach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .reach { grid-template-columns: 1fr; } }

.reach__item { display: flex; flex-direction: column; gap: 14px; }
.reach__item .photo { aspect-ratio: 4 / 3; }
.reach__item h3 { font-size: 18px; }
.reach__item p  { font-size: 13.5px; color: var(--ink-mute); margin: 6px 0 0; }

/* --- Flag rule ----------------------------------------------------------- */

.flagrule {
  height: 3px; border: 0; margin: 0;
  background: linear-gradient(to right,
    var(--flag-green) 0 33.34%, var(--flag-yellow) 33.34% 66.67%, var(--flag-red) 66.67% 100%);
}

/* --- The ten days -------------------------------------------------------
   Timeline runs down the left. Each day is two columns inside that: its
   photograph, then the text. Collapses to a stack on narrow screens.
   ------------------------------------------------------------------------ */

.days {
  list-style: none;
  margin: 0;
  padding: 0 0 0 104px;
  position: relative;
}

/* The spine, fading out at both ends. */
.days::before {
  content: '';
  position: absolute;
  left: 79px; top: 16px; bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0, var(--hairline) 50px,
    var(--hairline) calc(100% - 50px), transparent 100%);
}

.day { position: relative; padding-bottom: 26px; }
.day:last-child { padding-bottom: 0; }

/* Day number and date, left of the spine. */
.day__marker {
  position: absolute;
  left: -104px; top: 0;
  width: 60px;
  text-align: right;
}
.day__marker b {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: 32px; line-height: 1;
  color: var(--ink-dim);
}
.day__marker span {
  display: block; margin-top: 5px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-dim);
}

/* Node on the spine. Flag cycles down the list. */
.day::before {
  content: '';
  position: absolute;
  left: -30px; top: 11px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink-dim);
}
.days .day:nth-child(3n+1)::before { background: var(--flag-green); }
.days .day:nth-child(3n+2)::before { background: var(--flag-yellow); }
.days .day:nth-child(3n+3)::before { background: var(--flag-red); }

.days .day:nth-child(3n+1) .day__marker b { color: var(--green); }
.days .day:nth-child(3n+2) .day__marker b { color: var(--gold); }
.days .day:nth-child(3n+3) .day__marker b { color: var(--red); }

/* Genna — the one fixed date. */
.day--anchor::before {
  width: 15px; height: 15px;
  left: -32px; top: 9px;
  box-shadow: 0 0 0 4px rgba(252, 221, 9, 0.20);
}

/* The two columns: photograph, then text. */
.day__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  transition: background .18s, border-color .18s;
}
.day:hover .day__grid { background: var(--panel-2); border-color: rgba(255,255,255,.16); }

.day__grid > .photo {
  aspect-ratio: 3 / 2;
  border-radius: var(--r);
}

.day__place {
  display: block; margin-bottom: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
}
.day__body h3 { font-size: 21px; margin-bottom: 11px; }

.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.moments li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-mute);
}
.moments li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--ink-dim);
}
.moments li b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .day__grid { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
  .day__body h3 { font-size: 19px; }
}

@media (max-width: 700px) {
  .days { padding-left: 54px; }
  .days::before { left: 29px; }
  .day::before { left: -30px; }
  .day--anchor::before { left: -32px; }
  .day__marker {
    position: static;
    width: auto; text-align: left;
    display: flex; align-items: baseline; gap: 9px;
    margin-bottom: 9px;
  }
  .day__marker b { font-size: 23px; }
  .day__marker span { margin-top: 0; }
  .day__grid { grid-template-columns: 1fr; gap: 14px; }
}
