/* Next Insights — site styles. Built to Brand Guidelines v3. */

@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../fonts/figtree-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #02283B;      /* Midnight Navy — primary */
  --ink: #01141F;       /* Ink — deepest surface */
  --red: #EB3A16;       /* Signal Red — highlight only */
  --steel: #7C8791;     /* Steel Grey — large text only */
  --mist: #9AA9B4;      /* reversed grey, as used for INSIGHTS on navy */
  --bone: #E9E7E5;
  --white: #FFFFFF;
  --text: #0A1A25;      /* near-black body text on light */
  --muted: #4A5964;     /* secondary text on light (AA at small sizes) */
  --on-dark: rgba(255,255,255,0.78);
  --rule-light: #DDE2E6;
  --rule-dark: rgba(255,255,255,0.12);

  --title: "Figtree", "Segoe UI", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Brand type roles ------------------------------------------------------ */
.title {                     /* Figtree ExtraBold, all caps, +45 tracking */
  font-family: var(--title); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.045em; line-height: 1.04; text-wrap: balance;
}
.subhead {                   /* Figtree SemiBold, all caps, +115 tracking */
  font-family: var(--title); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.115em; font-size: 13px; line-height: 1.5;
}

/* Focus ---------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--navy);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 14px; }

/* Header --------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(1, 20, 31, 0.78); border-bottom-color: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand { display: block; flex: none; padding: 6px 0; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a { color: rgba(255,255,255,0.82); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; position: relative; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--white); }
.nav .pill { padding: 0 20px; }
.nav .lbl-short { display: none; }
.nav .pill::after { display: none; }

/* Buttons -------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px;
  border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.pill-red { background: var(--red); color: var(--white); }
.pill-red:hover { background: #D2310F; }
.pill-glass { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.28); color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pill-glass:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); }
.nav .pill { height: 42px; font-size: 14.5px; color: var(--white); }

/* Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(680px, 100svh);
  background: linear-gradient(180deg, var(--ink) 0%, #011B2A 45%, var(--navy) 100%);
  color: var(--white);
  display: flex; flex-direction: column;
}
.hero canvas { position: absolute; inset: 0; z-index: -1; }
.hero-inner { padding-top: clamp(150px, 24svh, 260px); text-align: center; }
.hero h1 { font-size: clamp(36px, 5.9vw, 88px); line-height: 1; }
.hero h1 span { display: block; }
.hero .lede { max-width: 46ch; margin: 28px auto 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--on-dark); }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.page-hero { min-height: max(520px, 64svh); }
.page-hero .hero-inner { padding-top: clamp(150px, 22svh, 220px); }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 60px); }

/* Sections ------------------------------------------------------------- */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.dark { background: var(--navy); color: var(--white); }
.bone { background: var(--bone); }

.split { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.split .subhead { color: var(--navy); padding-top: 0.55em; }

.statement { font-size: clamp(25px, 2.75vw, 38px); line-height: 1.32; color: var(--navy); max-width: 30ch; letter-spacing: -0.005em; }
.prose p { font-size: 19px; line-height: 1.7; max-width: 60ch; color: var(--text); }
.prose p + p { margin-top: 1.1em; }

/* Services ------------------------------------------------------------- */
.section-title { font-size: clamp(30px, 3.3vw, 46px); }
.dark .section-title { color: var(--white); }
.services { margin-top: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule-dark); }
.service {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--rule-dark);
}
.service figure { margin: 0; }
.service svg { width: 100%; max-width: 440px; height: auto; }
.service h3 { font-size: clamp(21px, 2vw, 27px); color: var(--white); }
.service p { margin-top: 16px; font-size: 18px; line-height: 1.65; color: var(--on-dark); max-width: 46ch; }

/* Experience (about) --------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(44px, 5vw, 64px); }
.fact { border-top: 1px solid rgba(255,255,255,0.22); padding-top: 22px; }
.fact h3 { font-size: 17px; color: var(--white); line-height: 1.25; }
.fact p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--on-dark); }

/* Founder (about) ------------------------------------------------------ */
.founder .title { font-size: clamp(26px, 2.6vw, 36px); color: var(--navy); }
.founder .role { margin-top: 8px; font-weight: 500; color: var(--muted); font-size: 17px; }
.creds { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule-light); max-width: 60ch; }
.creds li { padding: 16px 0; border-bottom: 1px solid var(--rule-light); font-size: 17px; color: var(--text); }

/* Closing call to action ----------------------------------------------- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(28px, 3.5vw, 50px); color: var(--navy); max-width: 26ch; margin: 0 auto; }
.closing p { margin: 20px auto 0; max-width: 44ch; color: var(--muted); font-size: 18px; }
.closing .actions { margin-top: 36px; }
.closing .alt { margin-top: 18px; font-size: 15.5px; color: var(--muted); }
.closing .alt a { color: var(--navy); font-weight: 500; }

/* Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 14.5px; color: var(--navy); margin-bottom: 8px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--white);
  border: 1px solid #C3CBD1; border-radius: 12px; padding: 14px 16px; min-height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2302283B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; }
textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(2,40,59,0.16); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 4px 0 26px; font-size: 14.5px; color: var(--muted); }
button.pill { font-family: var(--body); }

.panel { background: var(--navy); color: var(--white); border-radius: 20px; padding: clamp(28px, 3vw, 40px); }
.panel .subhead { color: var(--mist); }
.panel dl { margin: 22px 0 0; }
.panel dt { font-size: 13.5px; color: var(--mist); margin-top: 20px; }
.panel dt:first-child { margin-top: 0; }
.panel dd { margin: 4px 0 0; font-size: 17px; }
.panel dd a { color: var(--white); text-decoration: none; }
.panel dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--mist); padding: 72px 0 40px; font-size: 15px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 46px; width: auto; }
.footer-cols { display: flex; gap: clamp(36px, 6vw, 88px); flex-wrap: wrap; }
.footer-cols .subhead { color: var(--white); font-size: 12px; margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a { color: var(--mist); text-decoration: none; }
.footer-cols a:hover { color: var(--white); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 14px; }


/* Banners (home) ------------------------------------------------------- */
.section-sub { margin-top: 14px; color: var(--mist); font-size: 17px; }
.clubs { padding-bottom: clamp(56px, 7vw, 96px); }
.club-count { margin-top: clamp(28px, 3vw, 40px); display: flex; align-items: baseline; gap: 16px; }
.club-count-num { font-family: var(--title); font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--white);
  filter: blur(9px); -webkit-filter: blur(9px); user-select: none; }
.club-count .subhead { color: var(--mist); }
.marquee { overflow: hidden; margin-top: clamp(36px, 4vw, 56px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee img { width: 72px; height: 72px; margin-right: 44px; opacity: 0.9; flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partners { padding-top: 0; }
.partners .wrap { border-top: 1px solid var(--rule-dark); padding-top: clamp(56px, 7vw, 96px); }
.partner-logos { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: clamp(28px, 4.5vw, 72px); }
.partner-logos img { height: 64px; width: auto; opacity: 0.94; }

/* Careers and research ------------------------------------------------- */
.jump { background: var(--white); border-bottom: 1px solid var(--rule-light); }
.jump .wrap { display: flex; gap: 10px; padding-top: 16px; padding-bottom: 16px; overflow-x: auto; }
.jump a { flex: none; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--navy); padding: 10px 18px;
  border: 1px solid var(--rule-light); border-radius: 999px; transition: background .15s ease, border-color .15s ease; }
.jump a:hover { background: var(--bone); border-color: #C3CBD1; }
.career { overflow: hidden; scroll-margin-top: 72px; padding: clamp(72px, 9vw, 120px) 0; }
.career-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.fig-right .career-fig { order: 2; }
.career-fig { margin: 0; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; justify-self: center; border-radius: 24px;
  overflow: hidden; background: linear-gradient(180deg, var(--ink) 0%, #011B2A 50%, var(--navy) 100%); will-change: transform, opacity; }
.career-fig canvas { display: block; width: 100%; height: 100%; }
.career-form h2 { font-size: clamp(26px, 2.6vw, 36px); color: var(--navy); }
.career-form .intro { margin: 14px 0 30px; color: var(--muted); font-size: 18px; max-width: 48ch; }

/* Home scroll story (story build) ------------------------------------- */
.story { position: relative; height: 420vh; color: var(--white);
  background: linear-gradient(180deg, var(--ink) 0%, #011B2A 45%, var(--navy) 100%); }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--ink) 0%, #011B2A 45%, var(--navy) 100%); }
.story-stage canvas { position: absolute; inset: 0; z-index: 0; }
.story-hero { position: relative; z-index: 1; padding-top: clamp(150px, 24svh, 260px); text-align: center; will-change: transform, opacity; }
.story-hero h1 { font-size: clamp(36px, 5.9vw, 88px); line-height: 1; }
.story-hero h1 span { display: block; }
.story-hero .lede { max-width: 46ch; margin: 28px auto 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--on-dark); }
.story-aim { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center;
  padding: 0 var(--gutter); opacity: 0; pointer-events: none; will-change: transform, opacity; }
.story-aim .subhead { color: var(--mist); margin-bottom: 18px; }
.story-aim .statement { color: var(--white); max-width: 28ch; margin: 0 auto; font-size: clamp(22px, 2.5vw, 34px);
  text-shadow: 0 2px 24px rgba(1,20,31,0.9), 0 0 60px rgba(1,20,31,0.9); }
.story-hint { position: absolute; left: 50%; bottom: 28px; z-index: 1; width: 22px; height: 36px; margin-left: -11px;
  border: 1.5px solid rgba(255,255,255,0.45); border-radius: 12px; opacity: 1; transition: opacity .3s ease; }
.story-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: rgba(255,255,255,0.7); animation: hint 1.8s ease-in-out infinite; }
.story-hint.is-hidden { opacity: 0; }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* Red data points on the graphs (story build) */
.dp-halo { opacity: 0.2; transform-box: fill-box; transform-origin: center; }
.dp { transform-box: fill-box; transform-origin: center; }
.js .service .dp { opacity: 0; }
.js .service.in-view .dp { animation: dp-in .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: 150ms; }
.js .service.in-view .dp-1 { animation-delay: 300ms; }
.js .service.in-view .dp-2 { animation-delay: 450ms; }
.js .service.in-view .dp-3 { animation-delay: 600ms; }
.js .service.in-view .dp-halo { animation: dp-glow 2.8s ease-in-out infinite; }
.js .service.in-view .dp-1 .dp-halo { animation-delay: 350ms; }
.js .service.in-view .dp-2 .dp-halo { animation-delay: 700ms; }
.js .service.in-view .dp-3 .dp-halo { animation-delay: 1050ms; }
@keyframes dp-in { from { opacity: 0; transform: scale(0.2); } 60% { opacity: 1; transform: scale(1.35); } to { opacity: 1; transform: scale(1); } }
@keyframes dp-glow { 0%, 100% { opacity: 0.16; transform: scale(0.8); } 50% { opacity: 0.42; transform: scale(1.3); } }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .split, .service, .contact-grid, .career-grid { grid-template-columns: 1fr; }
  .service figure { order: 2; }
  .career-fig, .fig-right .career-fig { order: 0; max-width: none; aspect-ratio: 16 / 7; }
  .story { height: 400vh; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 68px; }
  .brand img { height: 24px; }
  .nav { gap: 18px; }
  .nav .pill { display: none; }
  .nav a[href="/"] { display: none; }          /* the logo links home */
  .nav .lbl-full { display: none; }
  .nav .lbl-short { display: inline; }
  .partner-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 12px; justify-items: center; }
  .partner-logos li { grid-column: span 2; }
  .partner-logos li:first-child, .partner-logos li:last-child { grid-column: span 3; order: 2; }
  .partner-logos img { height: 44px; max-width: 100%; object-fit: contain; }
  .marquee img { width: 56px; height: 56px; margin-right: 32px; }
  .hero h1 span { display: inline; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .facts { grid-template-columns: 1fr; }
  .prose p { font-size: 17.5px; }
}
@media (max-width: 400px) {
  .brand img { height: 24px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .js .service .dp { opacity: 1; }
  .dp-halo { opacity: 0.25; }
  .story-hint { display: none; }
}
