/* Mass & Grass — story: Farah's map.
   A painted map of Gaza stays on screen; the story panels scroll past it and Farah's face walks
   the route from place to place. Panels are ink-bordered captions after SBS's "The Boat". */

/* ---------- 1. hero ---------- */
.hero{padding-block:clamp(28px,5vw,64px) clamp(24px,4vw,56px)}
.hero-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:clamp(28px,6vw,90px);align-items:center}
.hero-portrait{margin:0;justify-self:center;width:min(100%,420px)}
.hero-portrait img{display:block;width:100%;height:auto;border-radius:50%;mix-blend-mode:multiply}
.hero-copy{display:grid;gap:20px;align-content:center;justify-items:start}
.hero-copy h1{font-size:clamp(2.6rem,6vw,4.8rem)}
.hero-copy .lead{font-size:clamp(1.05rem,1.5vw,1.25rem);max-width:44ch}

/* ---------- 2. the journey ---------- */
.gz-journey{position:relative;background:color-mix(in srgb,#3A2E25 calc(var(--dark,0) * 22%),transparent);transition:background .6s;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  max-width:1400px;margin:0 auto;padding-inline:var(--gutter)}
.j-steps{list-style:none;margin:0;padding:10vh 0 30vh;display:grid}
.j-step{min-height:92vh;display:grid;align-items:center}
.j-step:first-child{min-height:80vh}
.map-pane{position:sticky;top:var(--head,68px);height:calc(100vh - var(--head,68px));height:calc(100svh - var(--head,68px));
  padding-block:18px;order:2}
.map{position:relative;height:100%;border-radius:18px;overflow:hidden;background:#F6EFE2;
  box-shadow:inset 0 0 0 1px rgba(60,40,20,.08),0 30px 60px -40px rgba(60,36,16,.45)}
#mapSvg{display:block;width:100%;height:100%}
.map-note{position:absolute;inset-inline-start:16px;bottom:14px;margin:0;padding:7px 14px;border-radius:999px;
  background:rgba(255,253,248,.92);color:#33251B;font-weight:700;font-size:.9rem;
  box-shadow:0 8px 18px -12px rgba(60,36,16,.5)}

/* map layers (the map is a painting; it keeps its own colours in dark mode) */
.m-paper{fill:#F6EFE2}
.m-sea{fill:#B9D0D6;opacity:.75}
.m-land-bleed{fill:#E2C894;opacity:.45;transform:translate(3px,2px)}
.m-land{fill:#EBD9B4}
.m-coast{fill:none;stroke:#8C6A45;stroke-width:1.4;stroke-linejoin:round;opacity:.55;vector-effect:non-scaling-stroke}
.m-grain{fill:#fff;pointer-events:none}
.m-sea-label{fill:#4F6F78;font-family:var(--f-disp);font-size:30px;letter-spacing:.06em;opacity:.55;text-anchor:middle}
.m-strip-label{fill:#8C6A45;font-family:var(--f-disp);font-size:26px;opacity:.45;text-anchor:middle}
.m-town{fill:#8C6A45;opacity:.5;r:calc(2.4px * var(--inv,1))}
.m-town-label{fill:#6B4A36;opacity:.6;font-size:calc(11px * var(--inv,1));font-weight:500}
.m-place{fill:#fff;stroke:#6B4A36;stroke-width:1.6;vector-effect:non-scaling-stroke;r:calc(3.6px * var(--inv,1))}
.m-place-label{transition:opacity .3s;fill:#33251B;font-size:calc(13px * var(--inv,1));font-weight:700;paint-order:stroke;stroke:#F6EFE2;stroke-width:calc(4px * var(--inv,1));stroke-linejoin:round}
.m-city-label{fill:#6B4A36;font-family:var(--f-disp);font-size:calc(20px * var(--inv,1));opacity:.45}
.m-route{fill:none;stroke-width:calc(3px * var(--inv,1));stroke-linecap:round;stroke-dasharray:calc(.5px * var(--inv,1)) calc(8px * var(--inv,1));transition:opacity .5s}
.m-route.old{opacity:.3}
.m-route-farah{stroke:#B0603A}
.m-route-ahmed{stroke:#3F6E78}
.m-route-reveal{fill:none;stroke:#fff;stroke-width:40}
.m-dim{fill:#2B221B;mix-blend-mode:multiply;pointer-events:none}
.m-ruin-blot{fill:#4A3526;opacity:.8}
.m-ruin-x{stroke:#F6EFE2;stroke-width:2;stroke-linecap:round}
.m-token-shadow{filter:blur(2px)}
.m-farah .m-token-shadow{fill:rgba(176,96,58,.45)}
.m-ahmed .m-token-shadow{fill:rgba(63,110,120,.45)}
.m-token-ring{fill:none;stroke:#FFFDF8;stroke-width:3}
.m-token-label{text-anchor:middle;font-size:12px;font-weight:700;fill:#33251B;paint-order:stroke;stroke:#F6EFE2;stroke-width:3.5px;stroke-linejoin:round}

/* the panels: ink-bordered captions on paper */
.panel{position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);max-width:560px;justify-self:center;
  background:#FFFDF8;color:#33251B;border:1.5px solid rgba(51,37,27,.8);border-radius:4px;
  box-shadow:6px 7px 0 -1px rgba(51,37,27,.12),0 24px 40px -30px rgba(60,36,16,.45);rotate:-.5deg}
.j-step:nth-child(even) .panel{rotate:.6deg}
.panel-tag{justify-self:start;margin-top:calc(-1 * clamp(22px,3vw,34px) - 14px);padding:4px 12px;border:1.5px solid rgba(51,37,27,.8);
  background:#FFFDF8;font-weight:700;font-size:.85rem;letter-spacing:.03em;color:#8A4526}
.panel h2{font-size:clamp(1.7rem,3vw,2.4rem)}
.panel p{margin:0;font-size:clamp(1.02rem,1.3vw,1.14rem);line-height:1.95;color:rgba(51,37,27,.86)}
.panel blockquote{margin:2px 0;padding-inline-start:16px;border-inline-start:3px solid #B0603A;
  font-family:var(--f-disp);font-size:clamp(1.25rem,2vw,1.55rem);line-height:1.6;color:#33251B}
.shots{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.shot{margin:0;border:1.5px solid rgba(51,37,27,.8);background:#fff;padding:6px 6px 8px}
.shot img{display:block;width:100%;height:auto}
.shot figcaption{padding-top:6px;font-size:.8rem;color:rgba(51,37,27,.7)}
.shot.empty{display:grid;place-items:center;min-height:130px;border-style:dashed;border-color:rgba(51,37,27,.35);
  background:repeating-linear-gradient(-45deg,transparent 0 10px,rgba(51,37,27,.035) 10px 20px);
  color:rgba(51,37,27,.55);font-size:.85rem;font-weight:700;text-align:center;padding:14px}
.shot.empty span::before{content:"";display:block;width:28px;height:22px;margin:0 auto 8px;border:2px solid currentColor;border-radius:5px;
  background:radial-gradient(circle at 50% 55%,currentColor 0 4px,transparent 5px)}

/* the hardest chapters rock, like the panels of "The Boat" */
@media (prefers-reduced-motion:no-preference){
  .j-step.sway.seen .panel{animation:rock 7s ease-in-out infinite}
  .j-step.sway.seen .shot{animation:rock2 5.5s ease-in-out infinite}
}
@keyframes rock{0%,100%{transform:translateY(0) rotate(-.6deg)}50%{transform:translateY(-5px) rotate(.7deg)}}
@keyframes rock2{0%,100%{transform:rotate(.8deg)}50%{transform:rotate(-.9deg)}}

/* ---------- 3. the name ---------- */
.name{background:var(--paper-2)}
.pair{display:flex;align-items:center;justify-content:center;gap:clamp(10px,3vw,36px);flex-wrap:wrap;margin-bottom:clamp(24px,4vw,44px)}
.blot{position:relative;display:grid;justify-items:center;gap:2px;padding:clamp(28px,4vw,48px) clamp(34px,6vw,76px);isolation:isolate;text-align:center}
.blot::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:46% 54% 52% 48%/54% 44% 56% 46%;opacity:.3;filter:url(#rough)}
.blot.mass::before{background:var(--umber)}
.blot.grass::before{background:var(--sage);border-radius:54% 46% 44% 56%/46% 56% 44% 54%}
.blot b{font-family:var(--f-disp);font-size:clamp(2.2rem,5vw,3.8rem);line-height:1.1}
.blot span{font-weight:700;color:var(--ink)}
.blot small{color:var(--ink-2);font-size:.92rem}
.amp{font-family:var(--f-disp);font-size:clamp(2rem,4vw,3rem);font-style:normal;color:var(--clay)}
.name-text{margin:0 auto;text-align:center;max-width:56ch;color:var(--ink-2);font-size:clamp(1.02rem,1.4vw,1.18rem)}

/* ---------- 4. close ---------- */
.close .wrap{display:grid;justify-items:center;gap:18px;text-align:center}
.close blockquote{margin:0;font-family:var(--f-disp);font-size:clamp(1.7rem,4vw,3rem);line-height:1.4;text-wrap:balance;max-width:24ch}
.sign{font-family:var(--f-disp);font-size:1.5rem;color:var(--clay-deep)}

/* ---------- 5. the two of them ---------- */
.people{padding-top:0}
.people-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,5vw,72px);max-width:920px;margin:0 auto}
.person{display:grid;justify-items:center;align-content:start;text-align:center;gap:8px}
.person img{width:min(100%,320px);height:auto;border-radius:50%;mix-blend-mode:multiply;margin-bottom:8px}
.person h3{font-size:clamp(1.6rem,3vw,2.2rem);margin:0}
.person-role{font-weight:700;font-size:.9rem;color:var(--clay-deep)}
.person p{margin:0;color:var(--ink-2);max-width:36ch}
:root[data-mg-theme="dark"] .hero-portrait img,:root[data-mg-theme="dark"] .person img{mix-blend-mode:normal}

/* ---------- phones: the map sits on top, the panels scroll up beneath it ---------- */
@media (max-width:899px){
  .hero-grid{grid-template-columns:1fr}
  .hero-portrait{width:min(70%,300px)}
  .hero-copy{justify-items:center;text-align:center}
  .gz-journey{display:block;padding-inline:0}
  .map-pane{top:var(--head,68px);height:46vh;height:46svh;z-index:3;padding:0 var(--gutter) 8px;background:var(--paper)}
  .map{border-radius:14px}
  .j-steps{padding:4vh var(--gutter) 40vh;position:relative;z-index:1}
  .j-step,.j-step:first-child{min-height:62vh;align-items:start}
  .panel{max-width:none}
  .people-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .j-step .panel,.j-step .shot{animation:none!important}
}

/* ---------- 6. support the story ---------- */
.support{padding-top:0}
.sup-card{position:relative;isolation:isolate;max-width:720px;margin:0 auto;display:grid;justify-items:center;gap:16px;text-align:center;
  padding:clamp(34px,5vw,60px) clamp(22px,5vw,64px);background:#FFFDF8;color:#33251B;border:1.5px solid rgba(51,37,27,.8);border-radius:4px;
  box-shadow:7px 8px 0 -1px rgba(142,90,102,.22),0 30px 50px -36px rgba(60,36,16,.5);rotate:-.4deg}
.sup-card::before{content:"";position:absolute;z-index:-1;inset:8% 12% auto;height:56%;border-radius:46% 54% 52% 48%/54% 44% 56% 46%;
  background:#8E5A66;opacity:.1;filter:url(#rough)}
.sup-faces{display:flex;margin-top:calc(-1 * clamp(34px,5vw,60px) - 38px)}
.sup-faces img{width:76px;height:76px;border-radius:50%;border:4px solid #FFFDF8;background:#F3E6DA;box-shadow:0 10px 20px -12px rgba(60,36,16,.5)}
.sup-faces img+img{margin-inline-start:-18px}
.sup-card h2{font-size:clamp(1.9rem,4vw,2.8rem)}
.sup-card p{margin:0;max-width:52ch;color:rgba(51,37,27,.82)}
.sup-card .eyebrow{color:#8E5A66}
.sup-ways{list-style:none;margin:4px 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;font-weight:700;font-size:.9rem}
.sup-ways li{display:inline-flex;align-items:center;gap:8px}
.sup-ways li::before{content:"";width:10px;height:10px;border-radius:50%;background:#8E5A66;opacity:.7;filter:url(#rough)}
.sup-acts{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:6px}
.sup-donate{--bg:#8E5A66}
.sup-kofi{--fg:#33251B;box-shadow:inset 0 0 0 1.5px rgba(51,37,27,.35)}
.sup-note{color:rgba(51,37,27,.6);font-size:.84rem}
