/* Team Uganda page. Shared tokens and components come from base.css. Prefix: nt- */

/* ------------------------------------------------------------------ hero: wordmark across the width */
.nt-hero {
  --stripe-1: #f4f4f0;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) auto;
  color: var(--on-media); background: #0d0e0c;
}
.nt-hero__media { position: absolute; inset: 0; z-index: -3; }
.nt-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.nt-hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgb(10 11 9 / 0.62) 0%, rgb(10 11 9 / 0) 26%, rgb(10 11 9 / 0.12) 48%, rgb(10 11 9 / 0.9) 100%),
    linear-gradient(90deg, rgb(10 11 9 / 0.3) 0%, rgb(10 11 9 / 0) 55%);
}
.nt-hero__content {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; gap: clamp(18px, 2.4vw, 32px);
  padding-top: calc(var(--header-h) + 28px); padding-bottom: clamp(20px, 3vw, 36px);
}
.nt-hero .crumbs ol { color: rgb(244 244 240 / 0.92); text-shadow: 0 1px 6px rgb(0 0 0 / 0.6); }
.nt-hero .crumbs a:hover { color: #fff; }
.nt-hero__intro {
  grid-row: 3; justify-self: end; display: grid; gap: 22px; justify-items: start; max-width: 38ch;
  padding: clamp(18px, 2vw, 28px); border-radius: var(--radius);
  background: rgb(13 14 12 / 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.nt-hero__lead { font-size: var(--step-1); line-height: 1.45; color: #f4f4f0; }
.nt-hero__title {
  grid-row: 4; margin: 0;
  display: flex; gap: 0.1em; white-space: nowrap;
  /* The two words are about 5.2 times the font size wide; size the mark to the content width. */
  font-size: calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 5.4); font-weight: 900; font-stretch: 62%;
  line-height: 0.84; letter-spacing: -0.02em; text-transform: uppercase; word-spacing: 0.14em; }
.nt-hero__word { display: block; overflow: hidden; padding-top: 0.04em; }
.nt-hero__word > span { display: block; }
.nt-hero__flag { height: clamp(10px, 1.3vw, 16px); background: linear-gradient(180deg, #f4f4f0 0 33.4%, var(--flag-yellow) 0 66.7%, var(--flag-red) 0); }

/* The photo opens along a diagonal band, like the sash on the jerseys. CSS only, and only when motion is allowed. */
@keyframes nt-sash {
  from { clip-path: polygon(0 66%, 100% 32%, 100% 56%, 0 90%); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes nt-rise { from { transform: translateY(104%); } }
@keyframes nt-fade { from { opacity: 0; transform: translateY(18px); } }
html.motion .nt-hero__media { animation: nt-sash 1.8s var(--ease-in-out) 0.1s both; }
html.motion .nt-hero__word > span { animation: nt-rise 1.4s var(--ease-out) both; animation-delay: calc(0.95s + var(--i, 0) * 0.14s); }
html.motion .nt-hero__intro { animation: nt-fade 1.1s var(--ease-out) 1.25s both; }
html.motion .nt-hero__flag { animation: nt-fade 1s var(--ease-out) 1.1s both; }

@media (max-width: 767px) {
  .nt-hero__intro { justify-self: stretch; max-width: none; }
  .nt-hero__title { flex-direction: column; gap: 0; font-size: calc((100vw - 2 * var(--gutter)) / 3.15); }
}

/* Landscape phones: tighten the stack so the card, the button and the wordmark all fit in the first screen. */
@media (max-height: 520px) and (orientation: landscape) {
  .nt-hero__content { padding-top: calc(var(--header-h) + 8px); padding-bottom: 8px; gap: 10px; }
  .nt-hero__intro { justify-self: end; gap: 12px; padding: 14px 18px; max-width: 34ch; }
  .nt-hero__lead { font-size: 1rem; line-height: 1.35; }
  .nt-hero .btn { height: 46px; }
  .nt-hero__title { flex-direction: row; gap: 0.1em; font-size: min(calc((100vw - 2 * var(--gutter)) / 5.4), 24vh); }
}

/* The smallest landscape phones (568x320): a smaller wordmark and a one-line intro so the hero fits one screen. */
@media (max-height: 360px) and (orientation: landscape) {
  .nt-hero__intro { padding: 10px 14px; gap: 10px; }
  .nt-hero__lead { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .nt-hero__title { font-size: min(calc((100vw - 2 * var(--gutter)) / 5.4), 17vh); }
}

/* ------------------------------------------------------------------ pathway */
.nt-path__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.nt-path__head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; }
.nt-path__head .h2 { max-width: 11ch; }
.nt-path .nt-path__steps {
  --p: 1;
  position: relative; list-style: none; margin: 0;
  padding: 0 0 0 clamp(28px, 4vw, 60px);
}
.nt-path .nt-path__steps::before, .nt-path .nt-path__steps::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.nt-path .nt-path__steps::before { background: var(--line-strong); }
.nt-path .nt-path__steps::after { background: var(--accent-text); transform: scaleY(var(--p)); transform-origin: center top; }
.nt-step { min-height: 52vh; display: grid; align-content: center; gap: 18px; padding-block: 6vh; }
.nt-step__title { font-size: clamp(3rem, 1.2rem + 6.2vw, 8rem); font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: 0.86; text-wrap: balance; word-spacing: 0.14em; }
.nt-step__body { max-width: 38ch; font-size: var(--step-1); color: var(--ink-2); }
html.motion .nt-step { opacity: 0.22; }
@media (max-width: 899px) {
  .nt-path__grid { grid-template-columns: 1fr; gap: 24px; }
  .nt-path__head { position: static; }
  .nt-step { min-height: 0; padding-block: 28px; }
  html.motion .nt-step { opacity: 1; }
}

/* ------------------------------------------------------------------ criteria strips */
.nt-strips { display: flex; gap: clamp(8px, 1vw, 14px); min-height: 440px; }
.nt-strip {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--radius); background: var(--bg-2);
  transition: flex-grow 0.75s var(--ease-out), background 0.4s, color 0.4s;
}
.nt-strip.is-open { flex-grow: 3; background: var(--accent); color: var(--accent-ink); }
.nt-strip__head { flex: 1; display: flex; margin: 0; }
.nt-strip__btn {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px;
  width: 100%; padding: clamp(18px, 2vw, 30px); text-align: left;
}
.nt-strip__btn:focus-visible { outline-offset: -4px; }
.nt-strip__icon { width: 40px; height: 40px; color: var(--accent-text); }
.nt-strip.is-open .nt-strip__icon { color: var(--accent-ink); }
.nt-strip__title { font-size: clamp(1.15rem, 0.65rem + 0.95vw, 1.75rem); font-weight: 860; font-stretch: 68%; text-transform: uppercase; line-height: 0.95; word-spacing: 0.14em; }
.nt-strip__body { margin: 0; max-width: 30ch; padding: 0 clamp(18px, 2vw, 30px) clamp(18px, 2vw, 30px); font-size: var(--step-0); }
/* Only collapse the bodies once the script is in; without it every strip stays open as a stacked list. */
.nt-strips.is-enhanced .nt-strip__body { max-height: 0; padding-bottom: 0; opacity: 0; transition: max-height 0.7s var(--ease-out), opacity 0.35s, padding 0.5s; }
.nt-strips.is-enhanced .nt-strip.is-open .nt-strip__body { max-height: 12em; padding-bottom: clamp(18px, 2vw, 30px); opacity: 1; transition-delay: 0s, 0.2s, 0s; }
.nt-strips:not(.is-enhanced) { flex-direction: column; min-height: 0; }
@media (max-width: 1099px) {
  .nt-strips { flex-direction: column; min-height: 0; }
  .nt-strip { flex: none; }
  .nt-strip__btn { flex-direction: row; align-items: center; justify-content: flex-start; padding: 20px; }
  .nt-strip__title { font-size: 1.6rem; }
}


/* ------------------------------------------------------------------ committee */
.nt-committee__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.nt-committee__media { aspect-ratio: 4 / 3; }
.nt-committee__text { display: grid; gap: 26px; align-content: start; }
.nt-committee__groups { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 28px; }
.nt-committee__groups li { display: grid; gap: 14px; font-size: var(--step-3); font-weight: 840; font-stretch: 70%; text-transform: uppercase; line-height: 0.98; word-spacing: 0.14em; }
@media (max-width: 899px) { .nt-committee__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ squad */
.nt-squad__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.nt-squad__head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 14px; align-content: start; }
.nt-squad__count { margin-top: 6px; font-size: clamp(8rem, 3rem + 14vw, 17rem); font-weight: 900; font-stretch: 62%; line-height: 0.76; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.nt-squad__split { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nt-squad__empty { margin-top: 18px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-2); border-left: 4px solid var(--accent); display: grid; gap: 8px; max-width: 40ch; }
.nt-squad__empty-title { font-size: var(--step-2); font-weight: 780; font-stretch: 80%; line-height: 1.12; }
.nt-squad .nt-roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.nt-slot { aspect-ratio: 3 / 4; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); }
.nt-player { display: grid; gap: 10px; align-content: start; }
.nt-player__media { aspect-ratio: 3 / 4; }
.nt-player--text { aspect-ratio: 3 / 4; align-content: end; padding: 14px; border-radius: var(--radius); background: var(--bg-2); }
.nt-player__name { font-size: var(--step-2); font-weight: 840; font-stretch: 70%; text-transform: uppercase; line-height: 0.95; word-spacing: 0.14em; }
.nt-player__role { color: var(--ink-2); font-size: var(--step--1); }
.nt-player__region { color: var(--muted); }
@media (max-width: 899px) {
  .nt-squad__grid { grid-template-columns: 1fr; }
  .nt-squad__head { position: static; }
  .nt-squad__count { font-size: clamp(7rem, 30vw, 11rem); }
  .nt-squad .nt-roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 559px) { .nt-squad .nt-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ then and next */
.nt-then {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 92dvh; display: grid; align-content: end;
  background: #0d0e0c; color: var(--on-media);
}
.nt-then__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.nt-then__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.nt-then__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 11 9 / 0.8) 0%, rgb(10 11 9 / 0.74) 45%, rgb(10 11 9 / 0.94) 100%); }
.nt-then__content { display: grid; gap: clamp(32px, 5vw, 72px); padding-block: var(--section) clamp(44px, 6vw, 88px); }
.nt-then__title { max-width: 16ch; }
.nt-then__moments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 6vw, 96px); }
.nt-moment { display: grid; gap: 12px; align-content: start; }
.nt-moment__year { font-size: clamp(5.5rem, 1rem + 12vw, 15rem); font-weight: 900; font-stretch: 62%; line-height: 0.8; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
/* An outlined year marks what has not happened yet. */
.nt-moment--next .nt-moment__year { color: transparent; -webkit-text-stroke: 2.5px var(--on-media); }
.nt-moment__title { font-size: var(--step-3); font-weight: 840; font-stretch: 70%; text-transform: uppercase; line-height: 0.95; margin-top: 12px; word-spacing: 0.14em; }
.nt-moment__body { max-width: 40ch; color: rgb(244 244 240 / 0.88); }
@media (max-width: 767px) { .nt-then__moments { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ closing band */
.nt-next .cta-band { isolation: isolate; }
.nt-next .cta-band .h2 { max-width: 13ch; }
.nt-next .cta-band::after {
  content: ""; position: absolute; z-index: -1;
  right: -12%; top: 50%; width: min(720px, 80vw); aspect-ratio: 1; border-radius: 50%;
  transform: translateY(-50%);
  background: repeating-radial-gradient(circle at center, transparent 0 26px, rgb(18 19 17 / 0.16) 26px 28px);
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 71%);
  mask: radial-gradient(circle, #000 60%, transparent 71%);
}
@media (max-width: 767px) { .nt-next .cta-band::after { right: -55%; top: 90%; } }
