/* ============================================================================
   KSA — Manga layer
   The devices that make the page read as a comic page rather than a poster:
   katakana sound effects, speech balloons, brush-stroke banners, screentone
   washes, panel gutters and focus lines.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Panel gutter — the page is a sequence of bordered comic panels
   -------------------------------------------------------------------------- */
.manga-page {
  --gutter-line: rgba(11, 11, 13, .16);
}

.panel-frame {
  border: var(--panel-border);
  background: var(--paper-warm);
  position: relative;
}

/* Slanted panel edge — the manga "cut" rather than a plain rectangle */
.cut-tr,
.cut-bl {
  position: absolute;
  width: 46px;
  height: 46px;
  pointer-events: none;
}
.cut-tr {
  top: -2px; right: -2px;
  background: var(--ink);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.cut-bl {
  bottom: -2px; left: -2px;
  background: var(--vermilion);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}

/* --------------------------------------------------------------------------
   Katakana sound effects (SFX) — the manga signature
   -------------------------------------------------------------------------- */
.sfx-kanji {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 700;
  writing-mode: vertical-rl;
  letter-spacing: .08em;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  padding: .5rem .28rem;
  box-shadow: 4px 4px 0 var(--vermilion);
  line-height: 1;
  text-shadow: 2px 2px 0 var(--vermilion-light);
}

/* Horizontal impact lettering for the big display moments */
.impact {
  font-family: var(--font-heavy);
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .86;
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow:
     4px  4px 0 var(--ink),
    -1px -1px 0 var(--ink),
     1px -1px 0 var(--ink),
    -1px  1px 0 var(--ink),
     1px  1px 0 var(--ink),
     8px  8px 0 var(--vermilion);
}

.impact--outline {
  color: transparent;
  -webkit-text-stroke: 3px #fff;
  text-shadow:
     4px  4px 0 var(--ink),
    -1px -1px 0 var(--ink),
     1px -1px 0 var(--ink),
    -1px  1px 0 var(--ink),
     1px  1px 0 var(--ink),
     8px  8px 0 var(--vermilion);
}

/* Brush-stroke banner behind a heading */
.brush-banner {
  position: relative;
  display: inline-block;
  padding: .45rem 1.4rem .55rem;
  background: var(--vermilion);
  color: #fff;
  font-family: var(--font-heavy);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  clip-path: polygon(
    2% 12%, 8% 2%, 96% 6%, 100% 40%, 97% 92%, 6% 100%, 0% 62%
  );
  box-shadow: 5px 5px 0 var(--ink);
}

/* --------------------------------------------------------------------------
   Speech balloon
   -------------------------------------------------------------------------- */
.balloon {
  position: relative;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 1.05rem 1.3rem;
  font-size: .97rem;
  line-height: 1.6;
  box-shadow: 5px 5px 0 rgba(11,11,13,.18);
}
.balloon::after {
  content: '';
  position: absolute;
  left: 26px;
  bottom: -22px;
  width: 0; height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 22px solid var(--ink);
}
.balloon::before {
  content: '';
  position: absolute;
  left: 29px;
  bottom: -14px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 17px solid #fff;
}
.balloon--right::after { left: auto; right: 26px; }
.balloon--right::before { left: auto; right: 29px; }

/* --------------------------------------------------------------------------
   Screentone backdrop for section headers
   -------------------------------------------------------------------------- */
.tone-panel {
  position: relative;
  overflow: hidden;
}
.tone-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(11,11,13,.16) 1.4px, transparent 1.5px);
  background-size: 9px 9px;
  pointer-events: none;
}
.tone-panel--fine::before {
  background-image: radial-gradient(circle at center, rgba(11,11,13,.11) 1px, transparent 1.1px);
  background-size: 6px 6px;
}
.tone-panel--ink::before {
  background-image: radial-gradient(circle at center, rgba(255,255,255,.10) 1.3px, transparent 1.4px);
  background-size: 8px 8px;
}

/* Focus lines — radiating manga "attention" lines */
.focus-lines {
  position: absolute;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(11,11,13,.09) 0deg .6deg,
    transparent .6deg 3.4deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 16%, #000 52%);
          mask-image: radial-gradient(circle at 50% 50%, transparent 16%, #000 52%);
}

/* --------------------------------------------------------------------------
   Manga list — ticked with a brush cross
   -------------------------------------------------------------------------- */
.manga-list { list-style: none; margin: 0; padding: 0; }
.manga-list li {
  position: relative;
  padding: .55rem 0 .55rem 2.1rem;
  border-bottom: 2px solid var(--tone-2);
  font-size: .95rem;
  line-height: 1.6;
}
.manga-list li:last-child { border-bottom: 0; }
.manga-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: .48rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  background: var(--vermilion);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}

/* --------------------------------------------------------------------------
   Numbered "chapter" strip
   -------------------------------------------------------------------------- */
.chapter-num {
  font-family: var(--font-num);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: .8;
  color: var(--vermilion);
  display: block;
}

/* --------------------------------------------------------------------------
   Vertical kanji rail — decorative side spine
   -------------------------------------------------------------------------- */
.kanji-rail {
  writing-mode: vertical-rl;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  letter-spacing: .3em;
  color: var(--ink);
  background: var(--paper-warm);
  border: 3px solid var(--ink);
  border-left: none;
  padding: 1rem .5rem;
  position: absolute;
  top: 0; right: 0;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Speed-line divider
   -------------------------------------------------------------------------- */
.speed-divider {
  height: 42px;
  background:
    repeating-linear-gradient(90deg,
      var(--ink) 0 2px,
      transparent 2px 9px);
  -webkit-mask-image: linear-gradient(90deg, #000 0 12%, transparent 62%);
          mask-image: linear-gradient(90deg, #000 0 12%, transparent 62%);
  opacity: .5;
}

/* --------------------------------------------------------------------------
   Comic caption box
   -------------------------------------------------------------------------- */
.caption-box {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--ink);
  padding: .35rem .7rem;
  font-family: var(--font-heavy);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Ink-blot divider
   -------------------------------------------------------------------------- */
.ink-blot {
  height: 10px;
  background: var(--ink);
  clip-path: polygon(0 50%, 6% 22%, 14% 58%, 23% 10%, 32% 62%, 41% 18%,
                     51% 66%, 60% 14%, 70% 58%, 79% 20%, 88% 60%, 95% 26%,
                     100% 48%, 100% 100%, 0 100%);
}

/* --------------------------------------------------------------------------
   Hero manga furniture
   -------------------------------------------------------------------------- */
.hero__aside {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1.2rem;
  min-height: 240px;
}
.hero__aside .sfx-kanji {
  font-size: clamp(3.4rem, 7vw, 6rem);
  padding: .7rem .5rem;
  order: 2;
}
.hero__side {
  order: 1;
  border-left: 2px solid var(--vermilion);
  padding-left: .9rem;
  writing-mode: vertical-rl;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(.78rem, 1vw, .95rem);
  letter-spacing: .32em;
  color: rgba(255,255,255,.72);
  min-height: 190px;
}
.hero__aside .sfx-kanji {
  writing-mode: vertical-rl;
}

@media (max-width: 1024px) {
  .hero__aside { display: none; }
}

/* Section headers get a brush banner + optional kanji */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .8rem 1.4rem;
  margin-bottom: 1.6rem;
}
.section-head h2 { margin: 0; }
.section-head .sfx-kanji {
  font-size: 2.1rem;
  padding: .3rem .22rem;
  writing-mode: horizontal-tb;
  letter-spacing: 0;
}

/* Facts strip cells get a subtle screentone */
.facts__item { position: relative; }
.facts__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(11,11,13,.09) 1.1px, transparent 1.2px);
  background-size: 8px 8px;
  pointer-events: none;
}
.facts__value, .facts__label { position: relative; }

/* Cards carry a cut corner */
.card, .dojo-card, .instructor {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

/* News items read as comic panels */
.news-item {
  background: var(--paper-warm);
  border: var(--panel-border);
  padding: 1.4rem 1.5rem;
  position: relative;
  /* never let a long Polish word widen the column */
  min-width: 0;
  overflow-wrap: anywhere;
}
.news-item::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 20px; height: 20px;
  background: var(--vermilion);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

/* Instructor card label plate */
.instructor__rank {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: .25rem .55rem;
  margin-bottom: .8rem;
}

/* Schedule rows carry a numbered plate */
.sched__row { position: relative; }
.sched__row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--vermilion);
}

/* Gallery frames get a screentone corner */
.gallery figure { position: relative; }
.gallery figure::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 26px; height: 26px;
  background: var(--vermilion);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}

/* Dojo card head carries a seal plate */
.dojo-card__head .badge {
  background: var(--vermilion);
  color: #fff;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  font-size: .95rem;
  flex: none;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}

/* The goals / methods panels read as chapter lists */
.chapters li::before {
  content: counter(ch, decimal-leading-zero);
  font-family: var(--font-num);
  color: var(--vermilion);
}

/* --------------------------------------------------------------------------
   Hero SFX stack — a hand-set Japanese sound-effect plate
   -------------------------------------------------------------------------- */
.sfx-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.sfx-big {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: .82;
  color: #fff;
  background: var(--vermilion);
  border: 4px solid var(--ink);
  padding: .08em .16em .12em;
  box-shadow: 5px 5px 0 rgba(11,11,13,.85);
  text-shadow: 3px 3px 0 rgba(11,11,13,.55);
}
.sfx-word {
  font-family: var(--font-heavy);
  font-size: clamp(.7rem, 1.1vw, .9rem);
  letter-spacing: .32em;
  color: #fff;
  background: var(--ink);
  border: 3px solid var(--vermilion);
  padding: .35rem .8rem .4rem .95rem;
  transform: rotate(1.6deg);
  white-space: nowrap;
}

/* Impact lettering legibility over photography */
.hero__title .impact {
  display: inline-block;
}
.hero__title .impact--outline {
  -webkit-text-stroke: 3.5px #fff;
  paint-order: stroke fill;
}

/* A soft plate behind the headline keeps it readable on any photo */
.hero__title {
  position: relative;
}
.hero__title::before {
  content: '';
  position: absolute;
  inset: -14% -12% -18% -14%;
  background: radial-gradient(ellipse at 28% 45%, rgba(11,11,13,.82) 0%, rgba(11,11,13,.5) 46%, transparent 74%);
  z-index: -1;
  pointer-events: none;
}

/* The speech balloon needs a hand-drawn edge, not a plain rounded card */
.balloon {
  border-radius: 26px 26px 26px 8px;
  position: relative;
}
.balloon::after,
.balloon::before {
  border-top-color: var(--ink);
}
.balloon::before { border-top-color: #fff; }

/* The kicker was too widely tracked over a photo */
.hero__kicker {
  letter-spacing: .16em;
  text-shadow: 0 2px 6px rgba(0,0,0,.8);
}

/* Page-head headings get the impact treatment too */
.page-head h1 .impact {
  -webkit-text-stroke: 3px var(--ink);
}

/* Nav reads as a comic strip: a hard rule under the bar */
.site-header {
  position: sticky;
  background: var(--paper);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background:
    repeating-linear-gradient(90deg,
      var(--vermilion) 0 18px,
      transparent 18px 30px);
  opacity: .5;
}

/* ============================================================================
   Hero composition — final pass
   ========================================================================== */

/* The whole right-hand cluster sits in its own reserved column so it never
   collides with the headline or the people in the photograph. */
.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.6rem;
  padding-top: .4rem;
}

/* A clear gap between the SFX plate and the vertical rail */
.hero__side {
  border-left: none;
  border-right: 3px solid var(--vermilion);
  padding: .2rem .9rem .2rem 0;
  font-size: clamp(.9rem, 1.35vw, 1.12rem);
  letter-spacing: .28em;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
  min-height: 0;
  line-height: 1.9;
}

/* The SFX plate gets a dedicated dark plate so it separates from the photo */
.sfx-stack {
  background: rgba(11, 11, 13, .55);
  border: 3px solid var(--ink);
  padding: 1rem .9rem;
  box-shadow: 8px 8px 0 rgba(215, 38, 61, .38);
  transform: rotate(-1.4deg);
}

/* --------------------------------------------------------------------------
   A real manga speech balloon: angular tail, hand-drawn feel
   -------------------------------------------------------------------------- */
.balloon {
  border-radius: 30px 30px 30px 6px;
  border-width: 3.5px;
  background: #fff;
  padding: 1.15rem 1.4rem 1.2rem;
  font-size: 1rem;
  line-height: 1.62;
}
.balloon p { margin: 0; max-width: none; }

/* The tail: a filled triangle in the ink colour with a white inner triangle */
.balloon::after {
  content: '';
  position: absolute;
  left: 34px;
  bottom: -26px;
  width: 0; height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 26px solid var(--ink);
}
.balloon::before {
  content: '';
  position: absolute;
  left: 37px;
  bottom: -17px;
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid #fff;
}
/* Hide the inner triangle where it would overlap the tail's outline */
.balloon::before { border-bottom: 0; }

/* The balloon's "speaker" plate */
.balloon .speaker {
  display: inline-block;
  font-family: var(--font-heavy);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: .2rem .55rem;
  margin-bottom: .55rem;
}

/* --------------------------------------------------------------------------
   Headline: keep the outline layer readable over any photo
   -------------------------------------------------------------------------- */
.hero__title .impact--outline {
  -webkit-text-stroke: 4px #fff;
  text-shadow:
     5px  5px 0 var(--ink),
    -1.5px -1.5px 0 var(--ink),
     1.5px -1.5px 0 var(--ink),
    -1.5px  1.5px 0 var(--ink),
     1.5px  1.5px 0 var(--ink),
     13px 15px 0 var(--vermilion);
}

/* A stronger local gradient under the headline block */
.hero__title::before {
  inset: -22% -18% -30% -20%;
  background:
    radial-gradient(ellipse at 30% 48%, rgba(11,11,13,.9) 0%, rgba(11,11,13,.66) 42%, transparent 72%),
    linear-gradient(96deg, rgba(11,11,13,.78) 0%, rgba(11,11,13,.35) 60%, transparent 100%);
}

/* More breathing room between the two headline lines */
.hero__title { line-height: 1.04; }
.hero__title .impact { display: inline-block; }
.hero__title .impact--outline { margin-top: .1em; }

/* Buttons: unify the two treatments */
.hero__actions { gap: 1rem; }
.hero__actions .btn--ghost {
  --btn-bg: rgba(11,11,13,.35);
  --btn-fg: #fff;
  border-color: #fff;
  box-shadow: 4px 4px 0 var(--vermilion);
}
.hero__actions .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); }

/* Kicker legibility */
.hero__kicker {
  font-size: .8rem;
  letter-spacing: .13em;
  color: var(--vermilion-light);
  text-shadow: 0 2px 10px rgba(0,0,0,.95);
  margin-bottom: 1.1rem;
}

/* ============================================================================
   Balloon — SVG tail, no pseudo-element tricks
   ========================================================================== */
.balloon-wrap {
  position: relative;
  padding-bottom: 26px;
}
.balloon {
  position: relative;
  border-radius: 28px 28px 28px 6px;
  border-width: 3.5px;
  background: #fff;
  padding: 1.15rem 1.4rem 1.2rem;
  font-size: 1rem;
  line-height: 1.62;
  box-shadow: 6px 6px 0 rgba(11, 11, 13, .22);
}
.balloon p { margin: 0; max-width: none; }

/* The tail is a separate SVG so it always renders and never overlaps text */
.balloon-tail {
  position: absolute;
  left: 30px;
  bottom: 0;
  width: 40px;
  height: 34px;
  overflow: visible;
}
.balloon-wrap .balloon { border-bottom-left-radius: 8px; }

.balloon .speaker {
  display: inline-block;
  font-family: var(--font-heavy);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: .22rem .6rem;
  margin-bottom: .6rem;
}

/* ============================================================================
   Hero aside — the rail sits at the very edge, clear of everything
   ========================================================================== */
.hero__aside {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2.2rem;
  padding-top: .4rem;
}

/* Vertical rail: a hard-edged strip on the right margin of the hero */
.hero__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  writing-mode: vertical-rl;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: clamp(.9rem, 1.3vw, 1.1rem);
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .95);
  padding: .9rem .55rem;
  background: rgba(11, 11, 13, .5);
  border: 3px solid var(--ink);
  border-right: 6px solid var(--vermilion);
  line-height: 1;
}

/* The plate never overlaps the photo subjects: it gets its own dark bed.
 * It is not rotated — the tilt made the shadow bleed into the vertical
 * rail beside it. */
.sfx-stack {
  background: rgba(11, 11, 13, .62);
  border: 3px solid var(--ink);
  padding: .9rem .85rem;
  box-shadow: 6px 6px 0 rgba(215, 38, 61, .42);
  flex: none;
}

/* The hero grid gives the aside its own column */
.hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
}

/* ============================================================================
   Detail fixes
   ========================================================================== */

/* Section heads: align the kanji chip with the baseline of the heading */
.section-head {
  align-items: center;
}
.section-head h2 { line-height: .98; }
.section-head .sfx-kanji {
  align-self: center;
  writing-mode: horizontal-tb;
  font-size: 1.9rem;
  line-height: 1;
  padding: .3rem .3rem .34rem;
  letter-spacing: 0;
  box-shadow: 3px 3px 0 var(--vermilion);
}

/* Tighten the gap between a section head and its content */
.section-head { margin-bottom: 1.2rem; }

/* Schedule: raise the contrast of the secondary column */
.sched__where {
  font-size: .94rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.sched__row .sched__when span {
  color: var(--ink-muted);
  font-weight: 600;
}
.sched__row .sched__rank {
  color: var(--vermilion-dark);
}

/* The schedule grid gives the columns more room */
.sched__row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .8fr);
  gap: .35rem 1.4rem;
}

/* Facts: the long label needs to breathe */
.facts__label {
  font-size: .62rem;
  letter-spacing: .11em;
  line-height: 1.45;
  padding-inline: .2rem;
}

/* CTA buttons align to the section rhythm */
.cta__inner > .btn { flex: none; }

/* ============================================================================
   Mobile fixes — the impact lettering must never overflow
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__title::before { inset: -10% -6% -16% -6%; }
}

@media (max-width: 700px) {
  /* Scale the stroke and shadow with the type so the letter never bleeds out */
  .impact,
  .hero__title .impact--outline {
    -webkit-text-stroke-width: 2.5px;
    text-shadow:
       3px  3px 0 var(--ink),
      -1px -1px 0 var(--ink),
       1px -1px 0 var(--ink),
      -1px  1px 0 var(--ink),
       1px  1px 0 var(--ink),
       6px  6px 0 var(--vermilion);
  }

  .hero__title {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
    line-height: 1.06;
    max-width: 100%;
  }

  /* Long Polish words must be allowed to break rather than overflow */
  .hero__title .impact,
  .hero__title .impact--outline {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero__inner { padding-block: 2.6rem 3rem; }
  .hero__bg::after {
    background:
      radial-gradient(circle at center, rgba(0,0,0,.12) 1.2px, transparent 1.3px) 0 0 / 8px 8px,
      linear-gradient(180deg, rgba(11,11,13,.92) 0%, rgba(11,11,13,.86) 55%, rgba(11,11,13,.7) 100%);
  }

  .balloon { font-size: .95rem; padding: 1rem 1.1rem 1.05rem; }
  .balloon-wrap { padding-bottom: 22px; }
  .balloon-tail { width: 32px; height: 28px; left: 22px; }

  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Very narrow: tighten further */
@media (max-width: 420px) {
  .hero__title { font-size: clamp(1.8rem, 11.5vw, 2.6rem); }
  .brand__name { font-size: .95rem; }
  .brand__sub { font-size: .5rem; letter-spacing: .14em; }
  .brand__mark { width: 40px; height: 40px; font-size: .92rem; }
  .impact { -webkit-text-stroke-width: 2px; }
}

/* The page must never scroll sideways */
html, body { max-width: 100%; overflow-x: hidden; }
.shell { max-width: 100%; }
img, svg, table { max-width: 100%; }

/* ============================================================================
   Headline overflow — the stroke + shadow render outside the layout box.
   Reserve that space so the letters never bleed past the container.
   ========================================================================== */
/* The painted shadow sits outside the layout box, so the box is grown to
   contain it and the *column* is capped instead. The title's own box may
   be wider than the text — that is what stops the letters being clipped. */
.hero__title {
  padding-right: .9em;
  padding-bottom: .12em;
}
.hero__title .impact {
  position: relative;
}
.hero__title .impact::after {
  /* the painted shadow extends ~10px past the glyphs at desktop sizes */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero__title { padding-right: .55em; }
}
@media (max-width: 420px) {
  .hero__title { padding-right: .4em; }
}

/* The page-head headings use the same treatment */
.page-head h1 {
  padding-right: .6em;
}

/* Long words in any display heading must break, not overflow */
.hero__title, .page-head h1, h1, h2, h3 {
  overflow-wrap: break-word;
}

/* ============================================================================
   Tables — the schedule is wide by nature; it scrolls inside its frame
   rather than pushing the page sideways.
   ========================================================================== */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.table-wrap table.data {
  min-width: 44rem;
}
@media (max-width: 700px) {
  .table-wrap table.data { min-width: 34rem; }
  .table-wrap { border-width: 2px; }
}

/* The scroll affordance: a hint that the table can be swiped */
.table-wrap {
  background:
    linear-gradient(90deg, var(--paper-warm) 30%, rgba(251,249,244,0)) left / 2.5rem 100% no-repeat,
    linear-gradient(270deg, var(--paper-warm) 30%, rgba(251,249,244,0)) right / 2.5rem 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(11,11,13,.16), transparent) left / .8rem 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(11,11,13,.16), transparent) right / .8rem 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
