/*
Theme Name: FRC 5190 Falcon Fury
Theme URI: https://frc5190.org/
Author: FRC 5190 Falcon Fury
Description: Responsive team website theme prepared from the FRC 5190 redesign prototype.
Version: 1.0.6
Requires at least: 5.3
Requires PHP: 7.4
Text Domain: frc5190-falcon-fury
*/

:root {
  color-scheme: light;
  --ink: #2d2426;
  --dark-surface: #351d24;
  --ink-soft: #604047;
  --paper: #f7f4f2;
  --white: #fffdfb;
  --red: #c21f36;
  --red-dark: #8f1728;
  --red-pale: #f4d8dc;
  --muted: #6d6263;
  --line: #ded5d3;
  --header-fade-soft: rgba(255,255,255,.22);
  --header-fade-strong: rgba(255,255,255,.98);
  --shell: min(1280px, calc(100% - 4rem));
  --header-height: 84px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 1000; padding: .7rem 1rem; border-radius: var(--radius); background: var(--red); color: white; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 3px 14px rgba(45,36,38,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand-swoop {
  --swoop-width: clamp(5rem, 9vw, 8rem);
  position: relative;
  display: block;
  flex: 0 0 var(--swoop-width);
  align-self: stretch;
  height: var(--header-height);
}
.brand-swoop::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--header-height);
  height: var(--swoop-width);
  content: "";
  transform: translate(-50%, -50%) rotate(90deg);
  background: url("assets/falcon-wing-texture.webp") 96% center / cover no-repeat;
  -webkit-mask: url("assets/falcon-wing-texture.webp") 96% center / cover no-repeat;
  mask: url("assets/falcon-wing-texture.webp") 96% center / cover no-repeat;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}
.brand-swoop::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent 45%, var(--header-fade-soft) 68%, var(--header-fade-strong) 100%);
}
.brand strong, .brand small { display: block; }
.brand strong { color: var(--ink-soft); font-size: .9rem; font-style: italic; letter-spacing: .16em; }
.brand small { margin-top: .15rem; color: var(--muted); font-size: .62rem; letter-spacing: .11em; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); color: var(--ink-soft); font-size: .9rem; font-style: italic; font-weight: 600; }
.site-nav a { display: inline-flex; min-height: 48px; align-items: center; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--red); }
.nav-cta { min-height: 48px; padding: .7rem 1rem; border-radius: var(--radius); background: var(--red); color: white !important; font-style: normal; font-weight: 800; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--red-dark); }
.menu-toggle { display: none; min-height: 48px; padding: .65rem .8rem; border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 800; }

.hero, .join-hero { position: relative; isolation: isolate; display: grid; min-height: calc(100dvh - var(--header-height)); place-items: center; overflow: hidden; color: white; background-color: #2d2023; background-position: center; background-size: cover; }
.hero { background-image: url("assets/full-team-2026.webp"); }
.join-hero { background-image: url("assets/robot-2026.webp"); background-position: center 48%; }
.hero::before, .join-hero::before { position: absolute; inset: 0; z-index: -2; content: ""; background: url("assets/falcon-wing-texture.webp") center / cover; mix-blend-mode: screen; opacity: .52; }
.hero::after, .join-hero::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(180deg, rgba(40,27,30,.2), rgba(40,27,30,.72)); }
.join-hero::after { background: linear-gradient(180deg, rgba(40,27,30,.35), rgba(40,27,30,.8)); }
.canopy-hero, .canopy-join-hero { background-color: #2a1c20; background-image: none; }
.canopy-hero::before, .canopy-hero::after, .canopy-join-hero::before, .canopy-join-hero::after { display: none; }
.hero-forest, .hero-photo, .hero-texture, .hero-atmosphere { position: absolute; inset: 0; pointer-events: none; }
.hero-forest { z-index: -4; background: url("assets/forest-canopy-hero.webp") center bottom / cover; filter: saturate(.72) sepia(.18) hue-rotate(-12deg) contrast(1.04); }
.hero-photo { z-index: -3; background: url("assets/full-team-2026.webp") center 42% / cover; filter: saturate(.86) sepia(.06) contrast(1.04); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 43%, rgba(0,0,0,.92) 54%, rgba(0,0,0,.48) 68%, rgba(0,0,0,.12) 79%, transparent 87%); mask-image: linear-gradient(to bottom, #000 0%, #000 43%, rgba(0,0,0,.92) 54%, rgba(0,0,0,.48) 68%, rgba(0,0,0,.12) 79%, transparent 87%); }
.join-photo { background-image: url("assets/robot-2026.webp"); background-position: center 48%; }
.join-team-photo { background-image: url("assets/full-team-2026.webp"); background-position: center 48%; }
.hero-texture { z-index: -2; background: url("assets/falcon-wing-texture.webp") center / cover; mix-blend-mode: screen; opacity: .4; }
.hero-atmosphere { z-index: -1; background: linear-gradient(180deg, rgba(35,20,24,.5), rgba(35,20,24,.62) 44%, rgba(35,20,24,.76) 80%, rgba(35,20,24,.86)), linear-gradient(90deg, rgba(194,31,54,.18), transparent 48%, rgba(194,31,54,.12)); }
.hero-inner, .join-hero-inner { width: min(100% - 2rem, 940px); padding: 4rem 0 5rem; text-align: center; }
.hero-mark { width: clamp(8rem, 17vw, 14rem); height: auto; margin: 0 auto 1rem; filter: drop-shadow(0 18px 26px rgba(0,0,0,.3)); }
h1, h2, h3 { margin-top: 0; font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif; font-weight: 900; line-height: .92; letter-spacing: -.07em; }
h1 { margin-bottom: 1.2rem; font-size: clamp(4.2rem, 10vw, 9.5rem); letter-spacing: -.045em; text-shadow: 0 4px 18px rgba(0,0,0,.2); }
.hero-title { max-width: 14ch; margin: 0 auto; font-size: clamp(3.8rem, 8.2vw, 7.4rem); line-height: .9; letter-spacing: -.055em; }
.hero-kicker { margin-bottom: 1rem; color: rgba(255,255,255,.9); font-style: normal; }
.hero-description { max-width: 42rem; margin: 1.35rem auto 0; color: rgba(255,255,255,.95); font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.5; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-brand-line { margin: .8rem 0 0; color: rgba(255,255,255,.84); font-size: .9rem; font-style: italic; }
.hero-tagline { margin: 0; color: rgba(255,255,255,.92); font-size: clamp(.85rem, 1.2vw, 1rem); font-style: normal; font-weight: 700; letter-spacing: .08em; line-height: 1.5; }
.join-hero .hero-tagline { letter-spacing: .14em; text-transform: uppercase; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .45rem; padding: .75rem 1.05rem; border: 1px solid transparent; border-radius: var(--radius); font-size: .82rem; font-weight: 900; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button-primary { background: var(--red); color: white; }
.button-primary:hover, .button-primary:focus-visible { background: var(--red-dark); color: white; }
.button-ghost { border-color: rgba(255,255,255,.72); background: rgba(50,26,32,.28); color: white; backdrop-filter: blur(8px); }
.button-ghost:hover, .button-ghost:focus-visible { border-color: white; background: rgba(50,26,32,.62); }
.button-light { background: white; color: var(--red-dark); }
.button-light:hover, .button-light:focus-visible { background: var(--red-pale); color: var(--red-dark); }
.hero a:focus-visible, .join-hero a:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.hero a:focus-visible, .join-hero a:focus-visible { outline-color: white; }

.section { padding: clamp(5rem, 10vw, 9.5rem) 0; }
.welcome, .faq-section { background: var(--white); }
.section-heading { max-width: 50rem; }
.section-heading > p:last-child { max-width: 40rem; margin: 1.4rem 0 0; color: var(--muted); font-size: 1.05rem; }
.eyebrow, .hero-kicker { margin: 0 0 1rem; color: var(--red); font-size: .7rem; font-style: italic; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.hero-kicker { color: rgba(255,255,255,.8); }
h2 { margin-bottom: 0; color: var(--ink); font-size: clamp(3rem, 6.4vw, 6.4rem); }
.section-heading h2 { max-width: 11ch; }
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(3rem, 6vw, 5rem) 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-strip > div { min-height: 170px; padding: 1.5rem 1.25rem 1.5rem 0; border-right: 1px solid var(--line); }
.fact-strip > div + div { padding-left: 1.25rem; }
.fact-strip > div:last-child { border-right: 0; }
.fact-strip dt { color: var(--red-dark); font-family: "Arial Narrow", Arial, sans-serif; font-size: 1.35rem; font-weight: 900; line-height: 1; }
.fact-strip dd { margin: .7rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }

.robot-section { background: var(--paper); }
.robot-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); align-items: center; gap: clamp(3rem, 9vw, 10rem); }
.robot-media { margin: 0; }
.robot-media img { width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; object-position: center 52%; }
.robot-media figcaption { margin-top: .8rem; color: var(--red-dark); font-size: .72rem; font-style: italic; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.robot-copy h2 { max-width: 9ch; }
.robot-copy > p:not(.eyebrow) { max-width: 32rem; margin: 1.5rem 0 0; color: var(--muted); }
.robot-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2.5rem 0 2rem; max-width: 34rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.robot-notes div { display: grid; gap: .3rem; padding: 1rem 0; }
.robot-notes strong { color: var(--red-dark); font-family: "Arial Narrow", Arial, sans-serif; font-size: 1.35rem; }
.robot-notes span { color: var(--muted); font-size: .72rem; font-style: italic; letter-spacing: .08em; text-transform: uppercase; }
.text-link { color: var(--red-dark); font-size: .85rem; font-weight: 900; text-underline-offset: .25em; }
.text-link:hover, .text-link:focus-visible { text-decoration-thickness: 2px; }

.student-section { background: var(--red); color: white; }
.student-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(3rem, 9vw, 10rem); }
.student-copy h2 { max-width: 8ch; color: white; }
.student-copy > p:not(.eyebrow) { max-width: 30rem; margin: 1.5rem 0 2rem; color: rgba(255,255,255,.8); }
.student-section .eyebrow { color: #ffd9df; }
.lane-list { border-top: 1px solid rgba(255,255,255,.42); }
.lane-list a { display: grid; grid-template-columns: 5.2rem 1fr; gap: 1rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.42); color: white; text-decoration: none; }
.lane-list span { color: #ffd9df; font-size: .7rem; font-style: italic; font-weight: 900; text-transform: uppercase; }
.lane-list strong { font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(1.25rem, 2.1vw, 1.75rem); }
.lane-list b { color: #ffd9df; font-size: 1.15rem; }
.lane-list a:hover strong, .lane-list a:focus-visible strong { color: #ffd9df; }
.leadership-panel { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 7vw, 7rem); margin-top: clamp(4rem, 8vw, 7rem); padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.42); }
.leadership-intro h3 { max-width: 9ch; margin: 0; color: white; font-size: clamp(2rem, 4vw, 4rem); }
.leadership-intro p { max-width: 22rem; margin: 1.25rem 0 0; color: rgba(255,255,255,.76); font-size: .9rem; }
.leadership-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid rgba(255,255,255,.42); }
.leadership-list > div { min-width: 0; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.42); }
.leadership-list .leadership-co-presidents { grid-column: 1 / -1; }
.leadership-list .leadership-engineering { grid-column: 1 / -1; }
.leadership-list span, .leadership-list small { display: block; color: #ffd9df; font-size: .68rem; font-style: italic; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.leadership-list strong { display: block; margin-top: .35rem; color: white; font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.05; }
.leadership-list small { margin-top: .35rem; color: rgba(255,255,255,.62); font-size: .62rem; font-style: normal; }
.engineering-vps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin-top: .65rem; }
.engineering-vps > div { min-width: 0; }
.engineering-vps strong { margin-top: 0; }
.leadership-list .engineering-vps span { display: block; margin-top: .3rem; color: rgba(255,255,255,.76); font-size: .74rem; font-style: normal; font-weight: 700; letter-spacing: 0; text-transform: none; }
.leadership-list .leadership-blurb { margin-top: .8rem; }

.support-section, .process-section, .checklist-section { background: var(--dark-surface); color: white; }
.support-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(300px, 1.15fr); gap: clamp(3rem, 9vw, 10rem); align-items: start; }
.support-copy h2 { max-width: 8ch; color: white; }
.support-copy > p:not(.eyebrow) { max-width: 32rem; margin: 1.5rem 0 0; color: rgba(255,255,255,.68); }
.support-section .eyebrow { color: #ffd9df; }
.support-links { border-top: 1px solid rgba(255,255,255,.3); }
.support-links a { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: center; padding: 1.35rem 0; border-bottom: 1px solid rgba(255,255,255,.3); color: white; text-decoration: none; }
.support-links span { color: #ffd9df; font-size: .7rem; font-style: italic; font-weight: 900; text-transform: uppercase; }
.support-links strong { font-family: "Arial Narrow", Arial, sans-serif; font-size: 1.55rem; }
.support-links b { color: #ffd9df; }
.support-links a:hover strong, .support-links a:focus-visible strong { color: #ffd9df; }
.support-action { margin-top: 1.75rem; }

.final-cta { padding: clamp(3.5rem, 7vw, 6.5rem) 0; background: var(--red-dark); color: white; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.final-cta .eyebrow { color: #ffd9df; }
.final-cta h2 { color: white; font-size: clamp(2.7rem, 5vw, 5.4rem); }
.site-footer { padding: 2rem 0; background: #351d24; color: white; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
.footer-inner strong, .footer-inner span { display: block; }
.footer-inner strong { color: #ffd9df; font-family: "Arial Narrow", Arial, sans-serif; font-size: 1.15rem; }
.footer-inner span, .footer-inner small { color: rgba(255,255,255,.62); font-size: .76rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: white; font-size: .8rem; text-underline-offset: .2em; }
.footer-inner small { grid-column: 1 / -1; }

.join-hero-inner { max-width: 760px; }
.join-hero h1 { margin-bottom: 1.25rem; font-size: clamp(4.6rem, 12vw, 10rem); }
.join-hero .button { margin-top: 2.2rem; }
.hero-contact-link { display: block; width: fit-content; min-height: 48px; margin: .75rem auto 0; padding: .7rem; color: white; font-size: .85rem; font-weight: 800; text-underline-offset: .25em; }
.join-overview { background: var(--white); }
.join-overview-layout, .faq-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(300px, 1.15fr); gap: clamp(3rem, 9vw, 10rem); align-items: start; }
.eligibility-list { border-top: 1px solid var(--line); }
.eligibility-list div { display: grid; gap: .3rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.eligibility-list strong { color: var(--red-dark); font-family: "Arial Narrow", Arial, sans-serif; font-size: 1.2rem; }
.eligibility-list span { color: var(--muted); font-size: .85rem; }
.section-heading-light h2 { color: white; }
.section-heading-light > p:last-child { color: rgba(255,255,255,.68); }
.process-section .eyebrow, .checklist-section .eyebrow { color: #ffd9df; }
.process-layout, .cost-layout, .checklist-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(300px, 1.15fr); gap: clamp(3rem, 9vw, 10rem); align-items: start; }
.process-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.3); }
.process-list li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.process-list li > span { display: grid; place-items: center; width: 2rem; height: 2rem; background: white; color: var(--red-dark); font-size: .78rem; font-weight: 900; }
.process-list strong { display: block; color: white; }
.process-list p { margin: .3rem 0 0; color: rgba(255,255,255,.68); font-size: .86rem; }
.cost-section { background: var(--paper); }
.cost-copy h2 { max-width: 9ch; }
.cost-copy > p:not(.eyebrow) { max-width: 32rem; margin: 1.5rem 0; color: var(--muted); }
.cost-card { padding: clamp(2rem, 4vw, 3.5rem); border: 1px solid var(--line); background: white; box-shadow: 12px 12px 0 #d9a1aa; }
.price { display: block; color: var(--red-dark); font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(4rem, 8vw, 7rem); line-height: .8; letter-spacing: -.07em; }
.cost-card .price { display: grid; gap: .35rem; font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: .98; letter-spacing: -.045em; }
.cost-card .price span:first-child { font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-size: .36em; letter-spacing: .04em; line-height: 1.25; text-transform: uppercase; }
.cost-card .fee-mark { margin-left: .08em; color: var(--muted); font-family: Arial, sans-serif; font-size: .38em; letter-spacing: 0; line-height: 0; vertical-align: super; }
.cost-card .fee-note { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.45; }
.cost-card .fee-note sup { color: var(--red-dark); font-size: .75em; font-weight: 900; vertical-align: super; }
.scholarship-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: .35rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.25; }
.cost-card p { max-width: 32rem; margin: 1.4rem 0 0; color: var(--muted); font-size: .92rem; }
.cost-card small { display: block; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.faq-layout { align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; cursor: pointer; color: var(--ink); font-family: "Arial Narrow", Arial, sans-serif; font-size: 1.15rem; font-weight: 900; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 auto; color: var(--red); font-family: Arial, sans-serif; font-size: 1.4rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p { max-width: 40rem; margin: 0 2rem 1.1rem 0; color: var(--muted); font-size: .9rem; }
.checklist-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.24); }
.checklist-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: #522630; color: white; font-size: .85rem; font-weight: 800; text-decoration: none; }
.checklist-links a:hover, .checklist-links a:focus-visible { background: var(--red-dark); }

.robots-archive-hero::before { background: url("assets/robot-2026.webp") center 35% / cover; }
.robot-archive-recent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: clamp(3rem, 6vw, 5rem); background: var(--line); }
.robot-archive-card { background: var(--white); }
.robot-archive-card img { width: 100%; height: auto; aspect-ratio: 1.4; object-fit: cover; object-position: center; }
.robot-archive-card img[src*="P3020781"] { object-position: 40% 60%; }
.robot-archive-card-body { padding: clamp(1.25rem, 2.5vw, 2.25rem); }
.robot-archive-card-body > span { color: var(--red-dark); font-size: .74rem; font-style: italic; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.robot-archive-card-body h3 { margin: .75rem 0 .65rem; color: var(--ink); font-size: clamp(2rem, 4vw, 3.4rem); }
.robot-archive-card-body p { max-width: 28rem; margin: 0; color: var(--muted); font-size: .92rem; }
.robot-archive-earlier-heading { margin-top: clamp(4rem, 8vw, 6.5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.robot-archive-earlier-heading .eyebrow { margin-bottom: .4rem; }
.robot-archive-earlier-heading h2 { margin: 0 0 .8rem; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .95; }
.robot-archive-earlier-heading p:last-child { max-width: 38rem; margin: 0; color: var(--muted); font-size: 1.05rem; }
.robot-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(2rem, 4vw, 3.5rem); background: var(--line); border: 1px solid var(--line); }
.robot-archive-grid .robot-archive-card { display: flex; flex-direction: column; }
.robot-archive-grid .robot-archive-card-body { display: flex; flex-direction: column; flex-grow: 1; padding: clamp(1.2rem, 2vw, 1.8rem); }
.robot-archive-grid .robot-archive-card-body h3 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); }
.robot-archive-grid .robot-archive-card-body p { flex-grow: 1; max-width: none; font-size: .88rem; line-height: 1.55; }
.robot-archive-grid .robot-archive-card img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; object-position: center; background: #f4efe9; }
.robot-archive-grid .robot-archive-card img[src*="falcon-heavy"] { object-fit: contain; padding: .6rem; }
.robot-archive-grid .robot-archive-card img[src*="clockwork"] { object-fit: contain; padding: .6rem; background: #ffffff; }

.history-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(76dvh, 760px);
  align-items: end;
  overflow: hidden;
  color: white;
  background: #2a1c20 url("assets/full-team-2026.webp") center 42% / cover no-repeat;
}
.history-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(35,20,24,.88), rgba(35,20,24,.48) 64%, rgba(35,20,24,.34)), linear-gradient(0deg, rgba(35,20,24,.74), transparent 72%);
}
.history-hero-inner { width: var(--shell); margin-inline: auto; padding: clamp(6rem, 12vw, 10rem) 0 clamp(3rem, 7vw, 5.5rem); }
.history-hero .eyebrow { color: #ffd9df; }
.history-hero h1 { max-width: 9ch; margin-bottom: 0; color: white; font-size: clamp(4rem, 11vw, 9rem); }
.history-hero .history-title { max-width: 9ch; }
.history-timeline-section { background: var(--white); }
.history-timeline-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.history-timeline-heading .eyebrow { margin-bottom: .5rem; }
.history-timeline-heading h2 { max-width: 10ch; font-size: clamp(2.6rem, 5.5vw, 5rem); }
.history-timeline-heading > span { color: var(--red-dark); font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(1.2rem, 2.4vw, 2rem); font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.history-timeline { position: relative; max-width: 60rem; margin-inline: auto; border-top: 1px solid var(--line); }
.history-entry { display: grid; grid-template-columns: minmax(8rem, .28fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(1.6rem, 4vw, 3.1rem) 0; border-bottom: 1px solid var(--line); }
.history-entry > span { padding-top: .35rem; color: var(--red-dark); font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 900; letter-spacing: .06em; line-height: 1.15; }
.history-entry p { max-width: 46rem; margin: 0; color: var(--muted); font-size: clamp(.95rem, 1.4vw, 1.05rem); line-height: 1.8; }
.history-cta { padding: clamp(3.5rem, 7vw, 6.5rem) 0; background: var(--dark-surface); color: white; }
.history-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.history-cta .eyebrow { color: #ffd9df; }
.history-cta h2 { max-width: 10ch; color: white; font-size: clamp(2.7rem, 5vw, 5.4rem); }
.page-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(300px, 1.15fr); gap: clamp(3rem, 9vw, 10rem); align-items: start; }
.page-facts { display: grid; gap: 1.5rem; }
.page-facts > div { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.page-facts strong { display: block; font-family: "Arial Narrow", Arial, sans-serif; font-size: 1.35rem; color: var(--red-dark); }
.page-facts span { color: var(--muted); font-size: .88rem; }

.team-intro { padding-block: clamp(4rem, 8vw, 7rem); background: var(--white); }
.team-intro h1 { margin: 0; color: var(--ink); font-size: clamp(3.7rem, 8vw, 7.5rem); text-shadow: none; }
.team-intro > .shell > p:last-child { max-width: 42rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.05rem; }
.team-leadership-section { background: var(--paper); }
.team-section-heading { max-width: 50rem; }
.team-section-heading h2 { max-width: none; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.team-section-heading > p:last-child { max-width: 42rem; margin: 1.15rem 0 0; color: var(--muted); font-size: 1rem; }
.team-student-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.team-student-grid article { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.team-student-grid h3, .team-roster-group h3 { margin: 0; color: var(--red-dark); font-size: 1.55rem; letter-spacing: -.03em; }
.team-student-grid p { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; }
.team-roster-section { background: var(--white); }
.team-roster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; margin-top: 2.5rem; }
.team-roster-group { min-width: 0; border-top: 1px solid var(--line); }
.team-roster-group h3 { padding: 1rem 0 .5rem; }
.team-roster-list { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.team-roster-list > div { display: grid; grid-template-columns: minmax(9rem, .8fr) minmax(0, 1.2fr); gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.team-roster-list dt { color: var(--muted); font-size: .78rem; font-weight: 800; }
.team-roster-list dd { margin: 0; color: var(--ink); font-family: "Arial Narrow", Arial, sans-serif; font-size: 1.2rem; font-weight: 900; line-height: 1.2; }
.team-volunteer-note { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.team-volunteer-note p { max-width: 44rem; margin: 0; color: var(--muted); }
.team-thank-you { max-width: 44rem; margin: 0 0 1rem; color: var(--red-dark); font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 800; line-height: 1.4; }
.team-history-section { background: var(--paper); }
.team-history-heading h2 { margin-bottom: .2rem; }
.team-section-heading > .team-history-deck { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: .4rem; color: var(--ink-soft); font-family: "Arial Narrow", Arial, sans-serif; font-size: 1.35rem; font-weight: 900; }
.team-history-deck span { color: var(--red-dark); font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.team-history-timeline { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.team-history-entry { display: grid; grid-template-columns: minmax(9rem, .28fr) minmax(0, 1fr); gap: 1rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.team-history-entry > .eyebrow { margin: .25rem 0 0; }
.team-history-entry > p:last-child { max-width: 58rem; margin: 0; color: var(--muted); }
.team-history-robots { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.team-history-robots .eyebrow { margin-bottom: .35rem; }
.team-history-robots h3 { margin: 0; color: var(--ink); font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; }

.motion-ready [data-reveal] { opacity: 0; transform: translateY(20px); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f4edef;
    --dark-surface: #351d24;
    --ink-soft: #e5cbd0;
    --paper: #2c1b20;
    --white: #43242c;
    --muted: #d9bec4;
    --line: #76525b;
    --header-fade-soft: rgba(42,22,28,.34);
    --header-fade-strong: rgba(42,22,28,.98);
  }
  .site-header { background: rgba(42,22,28,.97); }
  .brand strong { color: var(--ink); }
  .fact-strip dt, .robot-notes strong, .eligibility-list strong { color: #ffd9df; }
  .faq-list summary { color: var(--ink); }
  .history-timeline-heading .eyebrow, .history-timeline-heading > span, .history-entry > span { color: #ffd9df; }
  .team-thank-you, .team-history-entry > .eyebrow, .team-history-deck span { color: #ffd9df; }
  .team-student-grid h3, .team-roster-group h3 { color: #ffd9df; }
  .cost-card { background: #fbf7f5; }
  .cost-card p, .cost-card small { color: #6c5f60; }
  .robot-archive-grid .robot-archive-card img { background: #331d23; }
  .robot-archive-grid .robot-archive-card img[src*="clockwork"] { background: #ffffff; }
}

@media (min-width: 1021px) and (min-height: 521px) {
  html { scroll-padding-top: var(--header-height); }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

@media (min-width: 1021px) {
  .site-nav { background: transparent; }
}

@media (max-width: 1020px) {
  :root { --shell: min(100% - 2.5rem, 760px); }
  :root { --header-height: 72px; }
  .brand-swoop {
    --swoop-width: 5rem;
  }
  .js .menu-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; top: calc(100% + 1px); right: 1rem; left: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 8px 8px 0 var(--red); }
  .js .site-nav[data-open="true"] { display: grid; gap: 0; }
  .js .site-nav a { display: flex; min-height: 48px; align-items: center; padding: .7rem .6rem; }
  .js .site-nav .nav-cta { margin-top: .4rem; text-align: center; }
  .hero, .join-hero { min-height: calc(100dvh - var(--header-height)); }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact-strip > div:nth-child(2) { border-right: 0; }
  .fact-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .robot-layout, .student-layout, .support-layout, .join-overview-layout, .process-layout, .cost-layout, .faq-layout, .checklist-layout, .page-split { grid-template-columns: 1fr; gap: 3rem; }
  .team-roster-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .robot-copy h2, .student-copy h2, .support-copy h2, .cost-copy h2 { max-width: none; }
  .robot-media { max-width: 720px; }
  .student-copy, .support-copy, .cost-copy { max-width: 42rem; }
  .leadership-panel { grid-template-columns: 1fr; gap: 2rem; }
  .robot-archive-recent { grid-template-columns: 1fr; }
  .robot-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-entry { grid-template-columns: minmax(6rem, .3fr) minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --shell: min(100% - 2rem, 520px); }
  .brand strong { font-size: .8rem; }
  .brand small { font-size: .55rem; }
  .hero-photo { background-size: auto 120%; background-position: center 70%; }
  .join-photo { background-size: cover; background-position: center 52%; }
  .join-team-photo { background-size: auto 120%; background-position: center 70%; }
  .hero-inner, .join-hero-inner { padding: 3rem 0 4rem; }
  .hero-mark { width: min(40vw, 180px); margin-bottom: .8rem; }
  .hero-title { max-width: 12ch; font-size: clamp(2.75rem, 12vw, 4.5rem); }
  .hero-description { max-width: 28rem; margin-top: 1rem; font-size: 1rem; }
  .hero-brand-line { margin-top: .6rem; }
  h1, .join-hero h1 { font-size: clamp(3.5rem, 16vw, 5.5rem); }
  .hero-tagline { max-width: 20rem; margin-inline: auto; line-height: 1.6; letter-spacing: .14em; }
  .join-hero .hero-tagline { letter-spacing: .1em; }
  .hero-actions .button { width: 100%; }
  .section { padding: 4.5rem 0; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip > div, .fact-strip > div + div { min-height: 0; padding: 1.1rem 0; border-right: 0; }
  .fact-strip > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .robot-notes { grid-template-columns: 1fr; gap: 0; }
  .robot-notes div + div { border-top: 1px solid var(--line); }
  .engineering-vps { grid-template-columns: 1fr; gap: .8rem; }
  .leadership-list { grid-template-columns: 1fr; }
  .leadership-list .leadership-co-presidents { grid-column: auto; }
  .lane-list a, .support-links a { grid-template-columns: 4.2rem 1fr; }
  .support-links strong { font-size: 1.25rem; }
  .robot-archive-grid { grid-template-columns: 1fr; }
  .team-student-grid { grid-template-columns: 1fr; }
  .team-roster-list > div { grid-template-columns: minmax(7rem, .8fr) minmax(0, 1.2fr); gap: .75rem; }
  .team-volunteer-note { align-items: flex-start; flex-direction: column; }
  .team-history-entry { grid-template-columns: 1fr; gap: .45rem; }
  .team-history-robots { align-items: flex-start; flex-direction: column; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .checklist-links { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner small { grid-column: auto; }
  .history-hero { min-height: 62dvh; background-position: 56% center; }
  .history-entry { grid-template-columns: 1fr; gap: .65rem; }
  .history-entry > span { padding-top: 0; font-size: 1rem; }
  .history-timeline-heading { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .history-cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready [data-reveal], .button { transition: none; }
}

@media (prefers-color-scheme: dark) and (max-width: 1020px) {
  .js .site-nav { background: var(--white); }
}
