/* The Nush Project — NUSH style (muted red, Archivo Black) on a white background */
:root {
  --bg: #ffffff;
  --bg-2: #f6f5f3;
  --card: #ffffff;
  --line: #e6e3de;
  --text: #121214;
  --text-dim: #5e5a54;
  --text-faint: #9a958d;
  --accent: #cb5a57;
  --accent-2: #9a3f3c;
  --radius: 16px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-family: var(--display); font-size: clamp(32px, 5vw, 52px); text-transform: uppercase; margin-bottom: 8px; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; }
section:not(.hero) { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
section.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { section:not(.hero) { opacity: 1; transform: none; transition: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}

/* brand square — the dot from the NUSH lockup */
.dot { display: inline-block; width: .32em; height: .32em; background: var(--accent); margin: 0 .12em 0 .08em; vertical-align: baseline; }
.dot.sm { width: 8px; height: 8px; margin: 0; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--display); font-size: 22px; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.logo-the, .logo-proj { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--text-dim); vertical-align: middle; }
.logo-the { margin-right: 6px; }
.logo-proj { margin-left: 2px; }
.links { display: flex; align-items: center; gap: 28px; }
.links a { text-decoration: none; font-size: 15px; color: var(--text-dim); transition: color .2s; }
.links a:hover { color: var(--text); }
.links a.btn { color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 18px; border-radius: 10px; padding: 6px 12px; cursor: pointer; }

/* BUTTONS */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; border: 1px solid var(--accent);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--text-dim); background: transparent; }
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn.big { font-size: clamp(16px, 2.4vw, 22px); padding: 18px 34px; margin-top: 44px; word-break: break-all; }

/* HERO */
.hero { position: relative; min-height: calc(100vh - 66px); display: flex; align-items: center; overflow: hidden; padding: 80px 0; }
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: 10%;
  background: radial-gradient(circle, rgba(203,90,87,.14), transparent 65%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px; width: 100%; }
.hero h1 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(48px, 10vw, 128px); line-height: .92; max-width: 11ch; margin-bottom: 30px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--text-dim); max-width: 600px; margin-bottom: 36px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero orbit — every sport circling the NUSH square: "all sports, one way in" */
.orbit { position: absolute; z-index: 0; width: 500px; aspect-ratio: 1; right: calc((100vw - 1120px) / 2 - 120px); top: 50%; transform: translateY(-50%); pointer-events: none; }
.ring { position: absolute; border-radius: 50%; border: 1.5px dashed var(--line); opacity: .6; }
.r1 { inset: 0; }
.r2 { inset: 22%; border-style: solid; opacity: .7; }
.core { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px; animation: bob 5s ease-in-out infinite; }
.core svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: .9; stroke-linejoin: round; opacity: .8; }
.spin { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.sat { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px;
  transform: rotate(var(--a)) translateY(var(--r, -250px)) rotate(calc(-1 * var(--a))); }
.sat { opacity: .6; }
.sat svg { width: 100%; height: 100%; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 50%;
  fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  animation: spin 60s linear infinite reverse; }
.sat:nth-child(odd) svg { stroke: var(--accent); }
/* inner ring: STEM, turning the other way — sport and STEM orbiting the same girl */
.spin.inner { animation-direction: reverse; animation-duration: 45s; }
.sat.s2 { width: 50px; height: 50px; margin: -25px; --r: -140px; }
.sat.s2 svg { padding: 11px; animation-direction: normal; animation-duration: 45s; }
.sat.s2:nth-child(odd) svg { stroke: var(--text); }
.sat.s2:nth-child(even) svg { stroke: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .spin, .sat svg, .core { animation: none; } }
@media (max-width: 1000px) {
  .orbit { width: 360px; right: -120px; top: auto; bottom: 20px; transform: none; }
  .core { width: 64px; height: 64px; margin: -32px; }
  .sat { width: 48px; height: 48px; margin: -24px; --r: -180px; }
  .sat.s2 { width: 36px; height: 36px; margin: -18px; --r: -100px; }
  .sat.s2 svg { padding: 7px; }
  .sat svg { padding: 10px; }
}

/* MISSION / STORY */
.mission, .story { border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.mission-copy p { font-size: 19px; color: var(--text-dim); }
.mission-copy p:first-child { color: var(--text); font-size: 22px; line-height: 1.5; }

.story-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 72px; align-items: center; }
.story-copy h2 { margin-bottom: 28px; }
.founder { margin: 0; width: 100%; }
.founder img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.founder figcaption { margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.founder figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
.founder.empty { display: none; }

/* PILLARS */
.pillars { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-num { position: absolute; top: 26px; right: 28px; font-family: var(--display); color: var(--text-faint); font-size: 14px; }
.card-icon { width: 46px; height: 46px; color: var(--accent); margin-bottom: 24px; }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 14px; }
/* UK50's logo is white-on-black; invert + multiply turns it into a black mark sitting directly on the white card */
.uk50-head { margin: 0 0 18px; line-height: 0; }
.uk50-logo { height: 64px; width: auto; filter: invert(1) grayscale(1) contrast(1.2); mix-blend-mode: multiply; margin-left: -6px; }
.card p { color: var(--text-dim); font-size: 16px; }
.card ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); }
.card li a { color: var(--text); text-decoration-color: var(--accent); }
.card li { font-size: 14px; color: var(--text); padding: 5px 0 5px 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; background: var(--accent); }

/* LOOP */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 28px 28px 0 0; border-top: 2px solid var(--line); color: var(--text-dim); font-size: 17px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.steps span { display: block; font-family: var(--display); text-transform: uppercase; color: var(--text); font-size: 30px; margin-bottom: 10px; }

/* JOIN */
.join { text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 120%, rgba(203,90,87,.16), transparent 60%); }
.join h2 { max-width: 16ch; margin: 0 auto 8px; }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; text-align: left; }
.join-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--card); }
.join-card h3 { font-size: 18px; margin-bottom: 8px; }
.join-card p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* FOOTER */
.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .logo { font-size: 16px; }
.foot p { margin: 0; color: var(--text-dim); font-size: 14px; }
.faint { color: var(--text-faint) !important; }

/* AI REF — a light band in the game's own palette so it reads as the same product as /play/ */
.airef {
  --court: #1F7A4D; --bot: #2B7FE0; --bot-lt: #4DA3FF; --sun: #FFC53D; --ink: #0E2A20; --paper: #F4F8F6;
  background: var(--paper); color: var(--ink); font-family: "Nunito", var(--sans);
}
.airef-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.airef-eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--court); margin-bottom: 14px; }
.airef h2 { font-family: "Baloo 2", var(--sans); text-transform: none; font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -.01em; color: var(--ink); margin-bottom: 14px; }
.airef-sub { font-size: 21px; font-weight: 700; color: var(--bot); margin-bottom: 22px; }
.airef-copy > p:not(.airef-eyebrow):not(.airef-sub):not(.airef-note) { color: #33493f; font-size: 17px; }
.airef-ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.airef-play {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sun); color: var(--ink); text-decoration: none;
  font-family: "Baloo 2", var(--sans); font-weight: 800; font-size: 22px;
  padding: 12px 30px 10px; border-radius: 999px;
  box-shadow: 0 5px 0 #d99a12; transition: transform .15s, box-shadow .15s;
}
.airef-play:hover { transform: translateY(2px); box-shadow: 0 3px 0 #d99a12; }
.airef-play span { font-size: 15px; }
.airef-teach { color: var(--court); font-weight: 800; text-decoration: none; border-bottom: 2px solid rgba(31,122,77,.3); }
.airef-teach:hover { border-color: var(--court); }
.airef-note { font-size: 14px; color: #5b6f66; margin: 18px 0 0; }

.airef-visual { position: relative; display: block; justify-self: center; width: 300px; text-decoration: none; }
.phone {
  background: #fff; border: 3px solid var(--ink); border-radius: 34px; padding: 22px 18px 24px;
  box-shadow: 0 24px 50px rgba(14,42,32,.16); transform: rotate(2deg); transition: transform .3s;
}
.airef-visual:hover .phone { transform: rotate(0); }
.phone-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; color: var(--court); margin-bottom: 12px; }
.pips { display: flex; gap: 5px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; background: #d6e3dc; }
.pips i.on { background: var(--court); }
.phone-court { background: var(--court); border-radius: 18px; padding: 10px; }
.phone-court img { display: block; width: 100%; height: auto; }
.phone-q { font-family: "Baloo 2", var(--sans); font-weight: 800; font-size: 26px; text-align: center; margin: 14px 0 10px; }
.phone-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-btns span { text-align: center; font-weight: 800; color: #fff; border-radius: 14px; padding: 10px 0; }
.phone-btns .in { background: #19A463; } .phone-btns .out { background: #E0533D; }
.refbot { position: absolute; width: 150px; height: auto; left: -86px; bottom: -40px; filter: drop-shadow(0 10px 14px rgba(14,42,32,.18)); }
.shuttle { position: absolute; width: 54px; height: auto; right: -26px; top: -22px; transform: rotate(-24deg); }

@media (max-width: 900px) {
  .airef-grid { grid-template-columns: 1fr; gap: 72px; }
  .airef-visual { width: 260px; }
  .refbot { width: 120px; left: -64px; }
}
@media (max-width: 420px) { .refbot { left: -40px; width: 100px; } .shuttle { right: -8px; } }

/* RESPONSIVE */
@media (max-width: 900px) {
  .cards, .join-grid, .steps { grid-template-columns: 1fr; }
  .steps li { padding-bottom: 28px; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder { max-width: 340px; }
  section { padding: 80px 0; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 22px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .links.open { display: flex; }
  .nav { padding: 14px 16px; }
  .wrap, .hero-inner { padding: 0 16px; }
  .logo-the { display: none; }
}
