/* ==========================================================================
   Tom Brennan Coaching

   SHAPE RULE  Nothing on this page is rounded. Every surface, button, pill and
               image frame is a hard rectangle. The single exception is his
               logo, which is a circle because his logo is a circle.
   COLOUR RULE One accent, sampled straight off his logo (#DE1E24), used page
               wide. --accent-lift is the same red lightened purely so small
               text clears WCAG AA on dark; it is a tint, not a second accent.
   ========================================================================== */

:root {
  /* dark is the default brand mode */
  --ink:        #0a0a0b;
  --surface:    #121214;
  --surface-2:  #17171a;
  --line:       rgb(255 255 255 / .12);
  --line-soft:  rgb(255 255 255 / .07);
  --text:       #f3f3f4;
  --text-mid:   #b8b8bc;
  --text-dim:   #86868c;
  --accent:     #de1e24;   /* his logo red, exact */
  --accent-lift:#f0454a;   /* same red, lifted for small text on dark */
  --on-solid:   #0a0a0b;
  --solid:      #f3f3f4;
  --shadow:     0 24px 60px rgb(0 0 0 / .5);

  --wrap:    1240px;
  --gut:     clamp(20px, 5vw, 48px);
  --sect:    clamp(76px, 9vw, 132px);
  --ease:    cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --ink:        #f6f6f4;
    --surface:    #ffffff;
    --surface-2:  #ededea;
    --line:       rgb(10 10 12 / .16);
    --line-soft:  rgb(10 10 12 / .09);
    --text:       #0d0d0f;
    --text-mid:   #3d3d42;
    --text-dim:   #63636a;
    --accent:     #de1e24;
    --accent-lift:#c1141a;   /* darkened instead, for contrast on paper */
    --on-solid:   #f6f6f4;
    --solid:      #0d0d0f;
    --shadow:     0 20px 48px rgb(10 10 12 / .14);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Archivo, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; letter-spacing: -.028em; line-height: 1.04; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }

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

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

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

.skip {
  position: absolute; left: -9999px; top: 10px;
  background: var(--solid); color: var(--on-solid);
  padding: 10px 18px; border-radius: 0; z-index: 200; font-weight: 600;
}
.skip:focus { left: 16px; }

/* Fixed, non scrolling texture. Never on a scrolling container. */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: light) { .grain { opacity: .06; mix-blend-mode: multiply; } }

/* ============ SCROLL REVEAL ============ */
/* Gated on .js: with scripting off, nothing is ever hidden. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal[data-delay="1"].in { transition-delay: .09s; }
.js .reveal[data-delay="2"].in { transition-delay: .18s; }
.js .reveal[data-delay="3"].in { transition-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ BUTTONS ============
   Square, uppercase, cut like a fight poster credit rather than a SaaS pill.
   The primary carries a hard red edge that wipes across the button on hover. */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6em;
  white-space: nowrap;
  padding: .95em 1.6em;
  border-radius: 0;
  border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .085em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), color .28s var(--ease),
              background-color .28s, border-color .28s;
}
.btn > * { position: relative; z-index: 1; }
.btn i { font-size: 1.3em; }
.btn--lg { font-size: .87rem; padding: 1.08em 1.9em; }
.btn--xl { font-size: .95rem; padding: 1.2em 2.3em; }

.btn--primary { background: var(--solid); color: var(--on-solid); }
.btn--primary::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--accent); z-index: 0;
  transition: width .32s var(--ease);
}
.btn--primary:hover { color: #fff; }
.btn--primary:hover::before { width: 100%; }

.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-lift); }

.btn:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .btn--primary::before { transition: none; }
}

.link {
  color: var(--accent-lift); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: .35em;
  box-shadow: inset 0 -1px 0 currentColor;
}
.link:hover { color: var(--text); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.stuck { border-bottom-color: var(--line-soft); }

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.nav__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 0 var(--gut);
  height: 72px;
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* The one circle on the page, because his logo is a circle. */
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; flex: 0 0 auto;
  background: #0d0d0d;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__text strong { font-size: .97rem; font-weight: 700; letter-spacing: -.01em; }
.brand__text span { font-size: .74rem; color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--text-mid);
  transition: color .18s;
}
.nav__links a:hover { color: var(--text); }

.nav__cta { font-size: .88rem; padding: .66em 1.25em; }
.nav__toggle { display: none; }

/* ============ HERO ============ */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

/* Sized so "From first class" holds one line inside its column. */
.hero__title {
  font-size: clamp(2.5rem, 4.4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -.042em;
}

.hero__sub {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--text-mid);
  line-height: 1.55;
}

.hero__actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgb(8 9 11 / .34));
  pointer-events: none;
}

/* ============ CREDENTIALS ============ */
.creds { padding-bottom: var(--sect); }
.creds__row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cred {
  padding: 26px 8px 26px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.cred + .cred { padding-left: clamp(16px, 3vw, 36px); border-left: 1px solid var(--line-soft); }
.cred__value { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; }
.cred__label { font-size: .84rem; color: var(--text-dim); line-height: 1.35; }

/* ============ SHARED SECTION BITS ============ */
.sect__title {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  max-width: 18ch;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.eyebrow {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .17em;
  color: var(--accent-lift); font-weight: 600; margin-bottom: 14px;
}

/* ============ STORY ============ */
.story { padding-block: var(--sect); background: var(--surface); border-block: 1px solid var(--line-soft); }
.story__grid {
  display: grid; grid-template-columns: .82fr 1.18fr;
  gap: clamp(32px, 5.5vw, 80px); align-items: start;
}
.story__media {
  margin: 0; border-radius: 0; overflow: hidden;
  border: 1px solid var(--line);
  position: sticky; top: 108px;
}
.story__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.story__copy h2 { font-size: clamp(1.95rem, 4vw, 2.9rem); margin-bottom: 1.5rem; max-width: 16ch; }
.story__copy p { color: var(--text-mid); max-width: 62ch; }
.story__copy p + p { margin-top: 1.15rem; }

.pull {
  margin: 2.2rem 0; padding: 1.4rem 0 1.4rem 1.6rem;
  border-left: 3px solid var(--accent);
}
.pull p {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700;
  letter-spacing: -.025em; color: var(--text); line-height: 1.25;
}
.pull cite { display: block; margin-top: .6rem; font-style: normal; font-size: .85rem; color: var(--text-dim); }

.disciplines {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.disciplines li {
  padding: .5em 1.05em; border: 1px solid var(--line); border-radius: 0;
  font-size: .86rem; font-weight: 500; color: var(--text-mid);
}

/* ============ TRACK RECORD ============ */
.record { padding-block: var(--sect); }
.record__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3.5vw, 52px);
}
.rec { padding-top: 24px; border-top: 1px solid var(--line); }
.rec__when {
  display: block; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-lift); font-weight: 600; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.rec h3 { font-size: clamp(1.18rem, 2.1vw, 1.45rem); font-weight: 700; letter-spacing: -.024em; }
.rec p { margin-top: .6rem; color: var(--text-dim); font-size: .95rem; max-width: 44ch; }

/* ============ JUNIORS FEATURE ============ */
.feature { padding-block: var(--sect); background: var(--surface); border-block: 1px solid var(--line-soft); }
.feature__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.feature__media {
  margin: 0; border-radius: 0; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.feature__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.feature__kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .17em; color: var(--text-dim); font-weight: 600; }
.feature__big {
  font-size: clamp(6rem, 17vw, 12rem); font-weight: 800; line-height: .82;
  letter-spacing: -.06em; color: var(--accent); margin: .1em 0 .12em;
  font-variant-numeric: tabular-nums;
}
.feature__cap { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -.026em; max-width: 20ch; line-height: 1.22; }
.feature__note { margin-top: 1.3rem; color: var(--text-dim); font-size: .95rem; max-width: 46ch; }

/* ============ CLASSES / BENTO ============ */
.classes { padding-block: var(--sect); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tile {
  position: relative; overflow: hidden;
  grid-column: span 2;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .35s var(--ease), border-color .35s;
}
.tile--wide { grid-column: span 4; min-height: 300px; }
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
@media (prefers-reduced-motion: reduce) { .tile:hover { transform: none; } }

.tile__body { position: relative; z-index: 2; padding: clamp(22px, 2.6vw, 32px); }
.tile h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); font-weight: 700; letter-spacing: -.026em; }
.tile p { margin-top: .6rem; color: var(--text-mid); font-size: .95rem; max-width: 46ch; }
.tile--wide p { max-width: 54ch; }
.tile__meta {
  display: block; margin-top: 1rem; font-size: .82rem; color: var(--text-dim);
  padding-top: .85rem; border-top: 1px solid var(--line-soft);
}

.tile--photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transition: transform .6s var(--ease);
}
.tile--photo:hover > img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) { .tile--photo:hover > img { transform: none; } }

.tile--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, #08090b 6%, rgb(8 9 11 / .88) 38%, rgb(8 9 11 / .34) 72%, rgb(8 9 11 / .12));
}
.tile--photo .tile__body { color: #f1f3f6; }
.tile--photo h3 { color: #fff; }
.tile--photo p { color: rgb(241 243 246 / .82); }
.tile--photo .tile__meta { color: rgb(241 243 246 / .62); border-top-color: rgb(255 255 255 / .14); }

.tag {
  display: inline-block; margin-bottom: .75rem;
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .4em .85em; border-radius: 0;
}

.classes__note { margin-top: 28px; color: var(--text-dim); font-size: .92rem; max-width: 56ch; }

/* ============ LOCATIONS ============ */
.locations { padding-block: var(--sect); background: var(--surface); border-block: 1px solid var(--line-soft); }
.loc__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.loc {
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line); border-radius: 0;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: flex-start;
}
.loc h3 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); font-weight: 700; letter-spacing: -.028em; }
.loc__role { margin-top: .7rem; color: var(--text-mid); font-size: .95rem; max-width: 40ch; }
.loc address {
  margin: 1.5rem 0 1.5rem; font-style: normal; color: var(--text);
  font-size: 1.02rem; line-height: 1.6; font-weight: 500;
}
.loc .link { margin-top: auto; font-size: .92rem; }

/* ============ QUOTES ============ */
.quotes { padding-block: var(--sect); }
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.quote { margin: 0; padding-top: 26px; border-top: 2px solid var(--accent); }
.quote p {
  font-size: clamp(1.12rem, 1.9vw, 1.32rem); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.34;
}
.quote cite { display: block; margin-top: 1.1rem; font-style: normal; font-size: .84rem; color: var(--text-dim); }
.quote cite span { display: block; color: var(--text); font-weight: 600; font-size: .92rem; margin-bottom: 2px; }

/* ============ GALLERY ============ */
.gallery { padding-block: var(--sect); background: var(--surface); border-block: 1px solid var(--line-soft); }
.gallery .sect__title { margin-bottom: clamp(28px, 3vw, 40px); }
.strip {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--gut); padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.strip figure {
  margin: 0; flex: 0 0 auto; scroll-snap-align: start;
  width: clamp(200px, 27vw, 290px);
  border-radius: 0; overflow: hidden; border: 1px solid var(--line);
}
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 0; }

/* ============ CTA ============ */
.cta { padding-block: var(--sect); }
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(2.2rem, 5.6vw, 4rem); }
.cta p { margin-top: 1.2rem; color: var(--text-mid); max-width: 48ch; }
.cta .btn { margin-top: 2.1rem; }
.cta__alt { margin-top: 1.4rem; font-size: .92rem; color: var(--text-dim); }

/* ============ FOOTER ============ */
.foot { border-top: 1px solid var(--line); padding-top: clamp(44px, 5vw, 68px); }
.foot__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.foot__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.024em; }
.foot__sub { margin-top: .5rem; color: var(--text-dim); font-size: .92rem; max-width: 34ch; }
.foot__col p { font-size: .9rem; color: var(--text-dim); line-height: 1.55; }
.foot__col p + p { margin-top: 1rem; }
.foot__base {
  margin-top: clamp(40px, 5vw, 64px); padding-block: 22px;
  border-top: 1px solid var(--line-soft);
}
.foot__base p { font-size: .82rem; color: var(--text-dim); }

/* ============ MOBILE CALL BAR ============ */
.callbar { display: none; }

/* ==========================================================================
   THE GYM PAGE
   ========================================================================== */

.nav__links a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.phead { padding: clamp(46px, 6vw, 78px) 0 clamp(30px, 4vw, 48px); }
.phead__title {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  letter-spacing: -.042em; max-width: 16ch;
}
.phead__sub {
  margin-top: 1.25rem; max-width: 52ch;
  color: var(--text-mid); font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.videoblock { padding-bottom: var(--sect); }
.video {
  position: relative; aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__cap { margin-top: 14px; font-size: .85rem; color: var(--text-dim); }

.words { padding-block: var(--sect); background: var(--surface); border-block: 1px solid var(--line-soft); }
.words__grid {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(32px, 5vw, 76px); align-items: start;
}
.words__copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 1.6rem; }
.words__copy p { color: var(--text-mid); max-width: 60ch; }
.words__copy p + p { margin-top: 1.15rem; }
.words__copy .lead {
  color: var(--text); font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700; letter-spacing: -.028em; line-height: 1.24;
  padding-left: 1.4rem; border-left: 3px solid var(--accent);
  margin-bottom: 1.6rem;
}
.words__media {
  margin: 0; overflow: hidden; border: 1px solid var(--line);
  position: sticky; top: 108px;
}
.words__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.facts { padding-block: var(--sect); }
.facts__list { margin: 0; display: grid; gap: 0; }
.fact {
  display: grid; grid-template-columns: minmax(150px, 220px) 1fr;
  gap: clamp(16px, 4vw, 56px); align-items: baseline;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact dt {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 800;
  letter-spacing: -.034em; color: var(--accent-lift);
}
.fact dd { margin: 0; color: var(--text-mid); font-size: 1rem; max-width: 54ch; }
.facts__note { margin-top: 28px; color: var(--text-dim); font-size: .92rem; max-width: 60ch; }

.runs { padding-block: var(--sect); background: var(--surface); border-block: 1px solid var(--line-soft); }
.runs__grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 5vw, 72px); align-items: center;
}
.runs__media { margin: 0; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.runs__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.runs__copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1.3rem; }
.runs__copy p { color: var(--text-mid); max-width: 52ch; }
.runs__copy p + p { margin-top: 1.1rem; }
.runs__copy .btn { margin-top: 2rem; }

.visit { padding-block: var(--sect); }
.visit__inner h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.visit address {
  margin: 1.2rem 0; font-style: normal; font-size: 1.05rem;
  line-height: 1.6; font-weight: 500;
}
.visit__back { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .hero__title { font-size: clamp(2.3rem, 6.4vw, 3.5rem); }
  .story__grid { grid-template-columns: 1fr; }
  .story__media { position: static; max-width: 420px; }
  .story__media img { aspect-ratio: 4 / 3; }
  .feature__grid { grid-template-columns: 1fr; }
  .quotes__grid { grid-template-columns: 1fr; gap: 30px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }

  .words__grid { grid-template-columns: 1fr; }
  .words__media { position: static; max-width: 420px; }
  .words__media img { aspect-ratio: 4 / 3; }
  .runs__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }

  .nav__cta { display: none; }

  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px;
    background: transparent; border: 1px solid var(--line); border-radius: 0;
    cursor: pointer;
  }
  .nav__toggle span {
    display: block; height: 1.5px; width: 100%; background: var(--text);
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

  .creds__row { grid-template-columns: 1fr 1fr; }
  .cred { padding: 20px 10px 20px 0; }
  .cred:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .cred:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .cred:nth-child(2n+1) { padding-left: 0; border-left: 0; }

  .record__grid { grid-template-columns: 1fr; gap: 30px; }
  .loc__grid { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 8px; }

  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile--wide { grid-column: span 2; }

  /* A small floating prompt, not a bar. It is deliberately narrow so it never
     competes with the page. Visibility is driven by main.js: hidden at the top,
     hidden while another call button is on screen, hidden while you are moving,
     and offered once you come to rest. */
  .callbar {
    position: fixed; left: 50%; bottom: 16px; z-index: 95;
    display: inline-flex; align-items: center; gap: .5em;
    padding: .82em 1.3em; border-radius: 0;
    background: var(--solid); color: var(--on-solid);
    border-left: 4px solid var(--accent);
    font-weight: 700; font-size: .73rem;
    text-transform: uppercase; letter-spacing: .085em;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 10px 30px rgb(0 0 0 / .5);
    transform: translate(-50%, 0);
  }
  .callbar i { font-size: 1.25em; }
  .callbar:active { transform: translate(-50%, 1px); }

  /* Without JS it simply stays put, so the number is never lost. */
  .js .callbar {
    opacity: 0; pointer-events: none;
    transform: translate(-50%, calc(100% + 26px));
    transition: transform .36s var(--ease), opacity .26s var(--ease);
  }
  .js .callbar--on {
    opacity: 1; pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .js .callbar--on:active { transform: translate(-50%, 1px); }

  body { padding-bottom: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .callbar { transition: opacity .01s linear; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: span 1; min-height: 0; }
  .tile--photo { min-height: 330px; }
  .foot__grid { grid-template-columns: 1fr; }
  .disciplines { gap: 6px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
