/* ============================================
   HOOLA home — layout measured from the XD screenshots.
   1u = 1vw (capped). Desktop sizes come straight from the design;
   small-screen rules at the bottom restack everything.
   ============================================ */

.h-xl { font-family: var(--font-display); font-weight: 400; font-size: max(44px, calc(var(--u) * 6.65)); line-height: .875; margin: 0; }
.h-xl .accent { color: var(--blue); }

/* Eyebrows */
.eb {
  display: flex; align-items: center; width: max-content; max-width: 100%;
  gap: calc(var(--u) * .85);
  font-size: max(11.5px, calc(var(--u) * .85));
  letter-spacing: .1em; text-transform: uppercase; font-weight: 300;
  margin-bottom: calc(var(--u) * 1.1);
}
.eb::before, .eb::after { content: ''; height: 1px; background: currentColor; opacity: .45; flex: none; }
.eb-both::before, .eb-both::after { width: calc(var(--u) * 6.1); }
.eb-after::before { display: none; }
.eb-after::after { width: calc(var(--u) * 5.6); }

/* ---------- Hero ---------- */
/* Full viewport height. svh rather than vh so a phone's collapsing
   browser chrome is accounted for — with vh the hero overshoots the
   visible area and the CTA hides behind the toolbar. */
.hero { position: relative; height: 100svh; min-height: 520px; background: #2a0a24; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
video.hero-bg { pointer-events: none; }
/* The gap below the copy shrinks on a short window so the whole block,
   eyebrow included, clears the fixed header. */
.hero-copy { position: absolute; left: calc(var(--u) * 3.9); bottom: min(calc(var(--u) * 6.37), 9svh); }
/* The headline also answers to viewport height. On a normal screen the
   width-based size wins and nothing changes; on a short window this stops
   a 128px headline swallowing the hero. */
.hero h1.h-xl { font-size: min(max(44px, calc(var(--u) * 6.65)), 13svh); }
.eb-hero {
  display: flex; align-items: center; gap: calc(var(--u) * .47);
  font-size: max(12px, calc(var(--u) * 1.03)); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: calc(var(--u) * .5); color: #fff;
}
.eb-hero::before { content: ''; width: calc(var(--u) * 6.2); height: 1px; background: rgba(255,255,255,.55); }
/* Reads as a column rather than one long line across the screen.
   Roughly 50-60 characters, which is a comfortable measure. */
.hero-sub { font-size: max(13px, calc(var(--u) * .95)); letter-spacing: .06em; line-height: 1.6; margin-top: calc(var(--u) * .55); color: #fff; max-width: max(calc(var(--u) * 31), 330px); }
.btn-hero {
  display: flex; align-items: center; gap: calc(var(--u) * .65);
  width: max(calc(var(--u) * 10.9), 160px); height: max(calc(var(--u) * 2.83), 40px);
  padding: 0 calc(var(--u) * 1.05);
  margin-top: calc(var(--u) * 1.9);
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.2);
  border-radius: calc(var(--u) * .2);
  font-size: max(10.5px, calc(var(--u) * .72)); letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: #fff;
  transition: background .2s ease;
}
.btn-hero:hover { background: rgba(255,255,255,.3); }
.btn-hero .rule { flex: 1; height: 1px; background: rgba(255,255,255,.75); }
.btn-hero .tri { width: 0; height: 0; border-left: max(5px, calc(var(--u) * .38)) solid #fff; border-top: max(3px, calc(var(--u) * .22)) solid transparent; border-bottom: max(3px, calc(var(--u) * .22)) solid transparent; }
.scroll { position: absolute; right: calc(var(--u) * 7.4); bottom: calc(var(--u) * 3); font-size: max(11px, calc(var(--u) * .93)); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.scroll::before { content: ''; position: absolute; left: 50%; bottom: 200%; width: 1px; height: calc(var(--u) * 5.6); background: rgba(255,255,255,.12); }

/* ---------- What we do ---------- */
.wwd {
  background: #a4a4a3;
  padding: 0 0 calc(var(--u) * 2.6);
  color: #fff;
}
.wwd .eb { color: #000; }
.wwd h2 { color: #000; line-height: .887; }

.wwd-copy {
  max-width: calc(var(--u) * 33); margin-top: calc(var(--u) * 1.6);
  font-size: max(14px, calc(var(--u) * .95)); line-height: 1.6; color: #000;
}
.wwd-hero { position: relative; }
.wwd-bg {
  display: block;
  width: 100%;
  height: auto;
}
.wwd-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.55) 32%, rgba(255,255,255,0.12) 58%, rgba(255,255,255,0) 72%);
}
.wwd-head {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 calc(var(--u) * 4.1) 0 calc(var(--u) * 4.15);
}

@media (max-width: 900px) {
  .wwd-overlay { display: none; }
  .wwd-head { position: static; padding: 60px 20px 30px; background: #a4a4a3; }
  .wwd-hero { display: flex; flex-direction: column-reverse; }
  .wwd-copy { max-width: none; font-size: 14px; margin-top: 16px; }
}
.services { margin-top: calc(var(--u) * 8.6); border-top: 1px solid rgba(255,255,255,.4); }
.srow {
  display: grid; grid-template-columns: calc(var(--u) * 43.9) 1fr;
  padding: calc(var(--u) * 2) 0 calc(var(--u) * 2.4);
  border-bottom: 1px solid rgba(255,255,255,.4);
}
.srow:last-child { border-bottom: 0; }
.sitem { display: grid; grid-template-columns: calc(var(--u) * 3.5) 1fr; grid-template-areas: ". t" "n b"; align-content: start; }
.sitem h3 {
  grid-area: t; margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: max(28px, calc(var(--u) * 2.75)); line-height: 1; letter-spacing: .06em; color: #fff;
  transition: color .2s ease;
}
.sitem:hover h3 { color: var(--blue); }
.sitem .n { grid-area: n; font-family: var(--font-display); font-size: max(28px, calc(var(--u) * 2.75)); line-height: 1; letter-spacing: .06em; color: #fff; }
.sitem .b { grid-area: b; }
.sitem .b p { font-size: max(13px, calc(var(--u) * .79)); line-height: 1.52; letter-spacing: .08em; color: rgba(255,255,255,.9); max-width: max(calc(var(--u) * 30), 300px); }
.tags { display: flex; flex-wrap: wrap; gap: calc(var(--u) * .55); margin-top: calc(var(--u) * .8); }
.tag {
  display: flex; align-items: center; height: max(26px, calc(var(--u) * 1.67)); padding: 0 calc(var(--u) * .6);
  border: 1px solid rgba(255,255,255,.5);
  font-size: max(10.5px, calc(var(--u) * .72)); letter-spacing: .1em; text-transform: uppercase; font-weight: 400; color: rgba(255,255,255,.92);
}

/* ---------- Our story ---------- */
.story { background: #000; color: #fff; padding: calc(var(--u) * 3.5) calc(var(--u) * 3.92) calc(var(--u) * 9); }
.story .eb { color: rgba(255,255,255,.7); margin-bottom: calc(var(--u) * 1.2); }
.story-grid { display: grid; grid-template-columns: calc(var(--u) * 44.8) 1fr; column-gap: calc(var(--u) * 10.7); align-items: start; }
.story .rule { margin-top: calc(var(--u) * 2.05); height: 1px; background: rgba(255,255,255,.2); }
.story-copy p { font-size: max(13.5px, calc(var(--u) * .92)); line-height: 1.86; letter-spacing: .03em; color: #999; margin: 0 0 calc(var(--u) * 1.71); max-width: max(calc(var(--u) * 30.5), 320px); }
.stats { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 3.35); margin-top: calc(var(--u) * 9.7); }
.stat .num { font-family: var(--font-display); font-size: max(36px, calc(var(--u) * 3)); line-height: 1; color: #fff; }
.stat .lbl { font-size: max(11px, calc(var(--u) * .93)); letter-spacing: .1em; text-transform: uppercase; color: #777; margin-top: calc(var(--u) * .9); }

/* ---------- Who we work with ---------- */
.clients { background: #fff; padding: calc(var(--u) * 3.8) 0 calc(var(--u) * 4); }
.clients .inner { padding: 0 calc(var(--u) * 3.7); }
.clients .eb { color: #aaa; }
.clients .eb-both::before, .clients .eb-both::after { width: calc(var(--u) * 6.3); }
.good-head { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(var(--u) * 4); }
.good-copy { max-width: calc(var(--u) * 36); margin: 0 calc(var(--u) * .3) calc(var(--u) * .6) 0; font-size: max(14px, calc(var(--u) * .95)); line-height: 1.6; color: #000; }
.h-good { font-size: max(56px, calc(var(--u) * 7.9)); line-height: .86; }
.lbl-row {
  display: flex; align-items: center; gap: calc(var(--u) * .75);
  margin-top: calc(var(--u) * 1); font-family: var(--font-display); font-size: max(18px, calc(var(--u) * 1.5)); line-height: 1.2; color: #bdbdbd; letter-spacing: .02em;
}
.lbl-row::after { content: ''; flex: 1; height: 1px; background: #d9d9d9; }
.good-head + .lbl-row { margin-top: calc(var(--u) * 3.4); }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 calc(var(--u) * 1.5); }
.logo-cell { height: max(calc(var(--u) * 9.3), 84px); display: flex; align-items: center; justify-content: center; }
.logo-cell img { width: calc(var(--w) * 1%); max-width: 100%; height: auto; }

/* ---------- Made by people ---------- */
.mbp {
  position: relative; height: max(calc(var(--u) * 48.8), 440px);
  background: #000 url('../img/hoola-agency-team-culture.jpg') no-repeat center 70% / cover;
  display: flex; align-items: flex-end;
  padding: 0 calc(var(--u) * 3.95) calc(var(--u) * 8.4);
  color: #fff;
}
.mbp .eb { color: rgba(255,255,255,.7); margin-bottom: calc(var(--u) * 2); }
.mbp .eb-both::before, .mbp .eb-both::after { width: calc(var(--u) * 5.4); }
.mbp p.copy { font-size: max(13px, calc(var(--u) * .79)); line-height: 1.47; max-width: max(calc(var(--u) * 40), 320px); margin-top: calc(var(--u) * 1.2); color: #fff; }

/* ---------- Approach ---------- */
.approach { padding: calc(var(--u) * 2.35) calc(var(--u) * 3.84) calc(var(--u) * 2.4); }
.approach-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.approach h2 { font-family: var(--font-display); font-weight: 400; font-size: max(44px, calc(var(--u) * 4.05)); line-height: .93; margin: 0; }
.approach-head p { font-size: max(13px, calc(var(--u) * .76)); line-height: 1.53; letter-spacing: .02em; color: #8a8a8a; text-align: center; max-width: max(calc(var(--u) * 32.5), 300px); margin-top: calc(var(--u) * -.6); }
.approach-rule { margin-top: calc(var(--u) * 1.55); height: 1px; background: #ddd; }
.approach-grid { margin-top: calc(var(--u) * 2.4); display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--u) * 2.56); }
.acard { border: 1px solid #e2e2e2; border-radius: calc(var(--u) * .55); padding: calc(var(--u) * 1.55) calc(var(--u) * 1.3) calc(var(--u) * 1.6); min-height: calc(var(--u) * 14.83); }
.acard .n { font-family: var(--font-display); font-size: max(40px, calc(var(--u) * 3.33)); line-height: 1; color: var(--blue); }
.acard h3 { font-family: var(--font-display); font-weight: 400; font-size: max(26px, calc(var(--u) * 2.05)); line-height: 1; margin: calc(var(--u) * .35) 0 calc(var(--u) * .65); color: #000; }
.acard p { font-size: max(12.5px, calc(var(--u) * .75)); line-height: 1.73; letter-spacing: .03em; color: #7a7a7a; }

/* ---------- Promise + team ---------- */
.numbers { background: #000; color: #fff; display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 2); padding: calc(var(--u) * 4.2) calc(var(--u) * 1.67) calc(var(--u) * 3.6); border-bottom: 1px solid rgba(255,255,255,.18); }
.nstat h3 { font-family: var(--font-body, 'Poppins', sans-serif); font-weight: 400; font-size: max(12px, calc(var(--u) * .8)); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0; }
.nstat .fig { font-family: var(--font-display); font-weight: 400; font-size: max(72px, calc(var(--u) * 9)); line-height: .95; color: #157ff6; margin: calc(var(--u) * .9) 0 0; white-space: nowrap; }
.pt { margin: 0 calc(var(--u) * 3.9); }
.promise {
  position: relative; isolation: isolate;
  background: #111 url('../img/hoola-agency-brand-promise.jpg') 72% center / cover no-repeat;
  min-height: calc(var(--u) * 33);
  padding: calc(var(--u) * 3.2) calc(var(--u) * 1.67) calc(var(--u) * 3);
  display: flex; flex-direction: column; justify-content: space-between; gap: calc(var(--u) * 4);
}
.promise::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%); }
.promise-copy { max-width: calc(var(--u) * 50); }
.lab { font-size: max(11px, calc(var(--u) * .82)); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.promise h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: max(24px, calc(var(--u) * 1.83)); line-height: 1.36; margin: calc(var(--u) * .5) 0 0; color: #fff; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 1.2); }
.pstat { border: 1.5px solid #fff; border-radius: calc(var(--u) * 1.1); padding: calc(var(--u) * 1.5) calc(var(--u) * 1.8) calc(var(--u) * 1.6); background: rgba(0,0,0,.18); }
.pstat .w { font-family: var(--font-display); font-size: max(36px, calc(var(--u) * 3)); line-height: 1; color: #fff; }
.pstat .s { font-size: max(11px, calc(var(--u) * .8)); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-top: calc(var(--u) * .5); }

.team { background: #000; color: #fff; padding: calc(var(--u) * 1.75) calc(var(--u) * 1.67) calc(var(--u) * 3.5); }
.team .eb { color: rgba(255,255,255,.8); margin-bottom: calc(var(--u) * .6); }
.team .eb-after::after { width: calc(var(--u) * 5.2); }
.team p.copy { font-size: max(13px, calc(var(--u) * .79)); line-height: 1.1; color: #bbb; max-width: max(calc(var(--u) * 32.9), 320px); margin-top: calc(var(--u) * .65); }
.tgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(var(--u) * 1.16); margin: calc(var(--u) * 8) calc(var(--u) * .31) 0; }
.tcard { background: #fff; color: #000; border-radius: calc(var(--u) * .3); padding: calc(var(--u) * .66) calc(var(--u) * .6); min-height: calc(var(--u) * 27.4); }
.tphoto { position: relative; }
.tli { position: absolute; right: calc(var(--u) * .7); bottom: calc(var(--u) * .7); width: max(22px, calc(var(--u) * 1.5)); height: max(22px, calc(var(--u) * 1.5)); color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); transition: transform .2s ease, opacity .2s ease; }
.tli svg { display: block; width: 100%; height: 100%; }
.tli:hover, .tli:focus-visible { transform: scale(1.12); opacity: .85; }
.tcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--u) * .4); filter: grayscale(1); }
.tcard .role { font-family: var(--font-display); font-size: max(26px, calc(var(--u) * 1.85)); line-height: 1; margin-top: calc(var(--u) * .9); padding-left: calc(var(--u) * .3); text-transform: uppercase; }
.tcard .role b { font-weight: 700; }
.tcard .nm { font-family: var(--font-display); font-weight: 700; font-size: max(22px, calc(var(--u) * 1.66)); line-height: 1; margin-top: calc(var(--u) * 3.3); text-transform: uppercase; }
.tcard .tbio { font-size: max(12px, calc(var(--u) * .74)); line-height: 1.55; color: #444; margin: calc(var(--u) * 1.1) 0 0; padding-right: calc(var(--u) * .3); min-height: calc(var(--u) * 11); }
.tcard .tt { font-size: max(10.5px, calc(var(--u) * .78)); letter-spacing: .1em; text-transform: uppercase; color: #777; margin-top: calc(var(--u) * .5); }
.team-strip { margin: 0 calc(var(--u) * 3.9); }
.team-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; filter: grayscale(1); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: calc(var(--u) * 9) 20px calc(var(--u) * 9.9); }
.contact .eb { margin: 0 auto; color: #aaa; }
.contact .eb-both::before, .contact .eb-both::after { width: calc(var(--u) * 5.1); }
.contact h2 { font-family: var(--font-display); font-weight: 400; font-size: max(64px, calc(var(--u) * 13.1)); line-height: .85; margin: calc(var(--u) * 1.3) 0 0; }
.contact .lead { font-size: max(13px, calc(var(--u) * .75)); line-height: 1.6; color: #999; margin-top: calc(var(--u) * .5); }
.contact .btns { display: flex; justify-content: center; gap: calc(var(--u) * 1.5); margin-top: calc(var(--u) * 5.7); }
.contact .btn { width: max(calc(var(--u) * 10.9), 156px); height: max(calc(var(--u) * 2.8), 42px); padding: 0; font-size: max(11px, calc(var(--u) * .75)); }
.contact .details { margin-top: calc(var(--u) * 3.6); font-size: max(13px, calc(var(--u) * .8)); color: #8a8a8a; display: flex; justify-content: center; align-items: center; gap: calc(var(--u) * 1.6); flex-wrap: wrap; }
.contact .details i { width: 5px; height: 5px; border-radius: 50%; background: #999; display: block; }

/* ============ Tablet / mobile ============ */
@media (max-width: 900px) {
  .h-xl { font-size: clamp(46px, 15vw, 84px); }
  .eb { font-size: 11.5px; gap: 12px; margin-bottom: 14px; }
  .eb-both::before, .eb-both::after { width: 36px !important; }
  .eb-after::after { width: 44px !important; }

  .hero { height: 100svh; }
  .hero-bg { object-position: 66% 50%; }
  .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 60%); }
  .hero-copy { left: 20px; right: 20px; bottom: 40px; z-index: 2; }
  .eb-hero { font-size: 10px; letter-spacing: .04em; gap: 8px; white-space: nowrap; }
  .eb-hero::before { width: 20px; flex: none; }
  .hero-sub { font-size: 14px; margin-top: 8px; }
  .btn-hero { width: 176px; height: 44px; margin-top: 22px; padding: 0 16px; font-size: 11px; }
  .scroll { display: none; }

  .wwd { padding: 96px 20px 40px; background: #c3c3c3; }
  .wwd h2.h-xl { font-size: 9.4vw; }
  .services { margin-top: 26vw; }
  .srow { grid-template-columns: 1fr; padding: 28px 0 8px; row-gap: 32px; }
  .srow .sitem:empty { display: none; }
  .sitem { grid-template-columns: 52px 1fr; }
  .sitem h3, .sitem .n { font-size: 34px; }
  .sitem .b p { font-size: 14px; max-width: none; }
  .tag { font-size: 10.5px; height: 28px; padding: 0 10px; }

  .story { padding: 60px 20px 72px; }
  .story-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .story-copy p { font-size: 15px; max-width: none; margin-bottom: 22px; }
  .stats { margin-top: 44px; gap: 28px; }
  .stat .num { font-size: 42px; }

  .clients { padding: 60px 0 40px; }
  .clients .inner { padding: 0 20px; }
  .h-good { font-size: clamp(64px, 21vw, 120px); }
  .good-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .good-copy { max-width: none; margin: 0; font-size: 14px; }
  .good-head + .lbl-row { margin-top: 36px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); margin: 0 12px; }
  .logo-cell { height: 96px; }
  .logo-cell img { max-width: 86%; }

  .mbp { height: 480px; padding: 0 20px 44px; background-position: 62% 60%; }
  .mbp .h-xl { font-size: 12.5vw; }
  .mbp p.copy { font-size: 14px; }

  .approach { padding: 56px 20px 40px; }
  .approach-head { flex-direction: column; gap: 22px; }
  .approach h2 { font-size: 60px; }
  .approach-head p { text-align: left; margin-top: 0; max-width: none; font-size: 14px; }
  .approach-grid { grid-template-columns: 1fr; gap: 16px; }
  .acard { min-height: 0; padding: 26px 22px; border-radius: 12px; }
  .acard .n { font-size: 46px; }
  .acard h3 { font-size: 30px; }
  .acard p { font-size: 14px; }

  .pt { margin: 0 12px; }
  .promise { min-height: 0; padding: 40px 20px 32px; gap: 36px; background-position: 78% center; }
  .promise::before { background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.35)); }
  .promise-copy { max-width: none; }
  .promise h3 { font-size: 26px; line-height: 1.25; }
  .pstats { grid-template-columns: 1fr; gap: 12px; }
  .pstat { border-radius: 16px; padding: 18px 20px; }
  .pstat .w { font-size: 44px; }
  .team { padding: 34px 20px 30px; }
  .team .h-xl { font-size: clamp(52px, 17vw, 88px); }
  .team p.copy { font-size: 14px; line-height: 1.4; max-width: none; }
  .tgrid { grid-template-columns: 1fr 1fr; gap: 12px; margin: 34px 0 0; }
  .tcard { min-height: 0; padding: 10px; border-radius: 8px; }
  .tcard img { border-radius: 8px; }
  .tcard .role { font-size: 24px; margin-top: 14px; padding-left: 4px; }
  .tcard .nm { font-size: 22px; margin-top: 22px; padding-left: 4px; }
  .tcard .tt { font-size: 10px; padding: 0 4px 0; }
  .tcard .tbio { font-size: 13px; line-height: 1.5; margin: 12px 4px 10px; min-height: 0; }
  .tcard .tbio[data-placeholder] { display: none; }
  .team-strip { margin: 0 12px; }
  .team-strip img { aspect-ratio: 16 / 9; }

  .contact { padding: 84px 20px 72px; }
  .contact h2 { font-size: clamp(64px, 21vw, 140px); }
  .contact .lead { font-size: 14px; }
  .contact .btns { flex-direction: column; align-items: center; margin-top: 36px; gap: 12px; }
  .contact .btn { width: 220px; height: 46px; }
  .contact .details { margin-top: 28px; font-size: 13px; }
}


@media (max-width: 340px) { .eb-hero { white-space: normal; font-size: 9.5px; } }

/* ---------- Short desktop windows ----------
   An unusually letterboxed window (a 1920-wide browser only ~620px tall)
   cannot hold the full hero stack under a 137px-tall header, and the
   eyebrow ends up behind the wordmark. Tightened here only, so normal
   and tall screens keep the sizes from the artboard. */
@media (min-width: 901px) and (max-height: 700px) {
  .hero h1.h-xl { font-size: min(max(40px, calc(var(--u) * 6.65)), 11svh); }
  .hero-copy { bottom: 6svh; }
  .hero-sub { line-height: 1.5; }
}

/* ============ Mobile fixes ============
   .numbers and .tgrid had no single-column rule, so three 72px figures
   and two team cards were forcing the page ~230px wider than the screen.
   That sideways overflow is also what made the menu button look broken:
   the browser shrinks the whole layout to fit, so the hamburger ends up
   too small to notice or tap. */
@media (max-width: 900px) {
  /* The counting figures stack. nowrap plus a 72px floor cannot fit
     three across a phone. */
  .numbers {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 20px 40px;
  }
  .nstat .fig { font-size: clamp(52px, 16vw, 72px); margin-top: 10px; }
  .nstat h3 { font-size: 12px; }

  /* Staff profiles one per row rather than two. */
  .tgrid { grid-template-columns: 1fr; gap: 16px; }
  .tcard .tbio { min-height: 0; }

  /* A tap target the size a thumb expects, and above the panel it opens
     so it can also close it. */
  .nav-toggle {
    font-size: 30px;
    line-height: 1;
    padding: 6px 2px;
    min-width: 44px;
    min-height: 44px;
    position: relative;
    z-index: 120;
  }
}

/* The closed off-canvas menu sits off to the right. Translated out of
   view it still counts toward the document width — which is where the
   remaining sideways scroll came from — and its links stay in the tab
   order, so a keyboard user tabs into a menu they cannot see. Hiding it
   properly fixes both; the delay keeps the slide-out animation intact. */
@media (max-width: 900px) {
  .nav-links {
    visibility: hidden;
    transition: transform .35s ease, visibility 0s linear .35s;
  }
  .nav-links.open {
    visibility: visible;
    transition: transform .35s ease, visibility 0s linear 0s;
  }
}
