/*
 * BYU-I Formula Racing — site components
 * Load after the preserved tokens.css source. Put site overrides here.
 * Sections: fonts → foundations → header/menu → hero → content → forms → responsive.
 */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* 01 / Foundations */
/* Keep source tokens intact; the site uses a dark surface palette. */
:root {
  color-scheme: dark;
  --header-offset: 8.5rem;
  --header-top: 1.5rem;
  --menu-top: calc(var(--header-top) + var(--nav-height) + 1.5rem);
  --surface: #102b46;
  --surface-subtle: #071a2c;
  --text: #edf3fa;
  --text-muted: #b3c4d6;
  --text-on-dark: #b9c9db;
  --border: #36516c;
  --link: #91caff;
  --racing-silver: #c6ced8;
  --silver-edge: #c6ced84d;
}
/* Reserve scrollbar space so menu scroll locking cannot widen the page. */
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
/* Subtle dots on dark surfaces and faint drafting lines on navy panels. */
body { background-color: var(--surface-subtle); background-image: radial-gradient(#b9c9db16 .7px, transparent .9px); background-size: 7px 7px; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .6; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); }
a { color: var(--link); }
h1 { font-size: clamp(3rem, 6vw, 4.5rem); line-height: .98; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.05; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }
::selection { color: white; background: var(--action); }
.eyebrow { display: block; font-size: .875rem; font-weight: 600; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 1.75rem; height: .45rem; margin-right: .75rem; vertical-align: middle; transform: skewX(-25deg); background: linear-gradient(90deg, var(--racing-silver) 0 25%, transparent 25% 37%, var(--racing-silver) 37% 62%, transparent 62% 74%, var(--brand-blue) 74%); }
.section-tag { color: var(--text-muted); margin-bottom: 1rem; }
.lead { font-size: 1.125rem; line-height: 1.65; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.section { padding-block: clamp(5rem, 8vw, 8rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: var(--space-6); }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 40ch; margin-bottom: 0; }
.button { gap: 1rem; }
.button-outline { background: transparent; color: var(--text); border-color: var(--border); }
.button-outline:hover { background: var(--surface); border-color: var(--link); }
.button-light { color: var(--on-action); background: var(--action); }
.button-light:hover { color: var(--on-action); background: var(--action-hover); }
.actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.section-actions { margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 02 / Shared navigation. Source markup lives in assets/js/site.js. */
.site-header { position: fixed; top: var(--header-top); inset-inline: 0; z-index: 20; transition: transform .25s ease, visibility 0s linear; }
/* Keep focused navigation and an open mobile dialog usable at the footer. */
body:not(.menu-open) .site-header.is-footer-visible:not(:focus-within) { transform: translateY(calc(-100% - var(--header-top) - 3rem)); visibility: hidden; pointer-events: none; transition-delay: 0s, .25s; }
.nav-shell { position: relative; min-height: var(--nav-height); padding: .5rem 1.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border: 1px solid #3b526e; border-radius: 1.5rem; background: var(--brand-navy); color: white; box-shadow: 0 16px 40px #00000066, 0 4px 12px #00000040; }
.desktop-nav { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 11rem minmax(0, 1fr); align-items: center; }
.nav-group { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.nav-group-right { grid-column: 3; justify-content: end; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem; color: var(--text-on-dark); text-decoration: none; font-size: 1rem; font-weight: 500; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: white; text-decoration: underline; text-underline-offset: .35em; text-decoration-color: var(--brand-blue); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding-right: .5rem; color: var(--text-on-dark); font-size: 1rem; font-weight: 500; cursor: pointer; list-style: none; }
.nav-dropdown summary::-webkit-details-marker, .mobile-about summary::-webkit-details-marker { display: none; }
.dropdown-chevron { width: 1rem; height: 1rem; }
details[open] > summary .dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown.is-current > summary, .nav-dropdown summary:hover { color: white; }
.about-submenu { list-style: none; padding: .5rem; margin: 0; }
.nav-dropdown .about-dropdown-panel { position: absolute; left: 0; top: 100%; width: 16rem; padding-top: 1.25rem; }
.nav-dropdown .about-submenu { border: 1px solid var(--silver-edge); border-radius: var(--radius-card); background: var(--brand-navy); box-shadow: 0 12px 32px #00000066; }
.desktop-nav .about-submenu a { display: flex; width: 100%; padding: .75rem; border-radius: var(--radius-control); }
.desktop-nav .about-submenu a:hover { background: var(--surface); }
.mobile-about > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .25rem; font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 3.5rem); font-weight: 600; line-height: 1.1; list-style: none; cursor: pointer; }
.mobile-about > summary > a { padding: 0; }
.mobile-about .about-submenu li { border: 0; }
.mobile-about .about-submenu a { min-height: 2.75rem; padding: .75rem .25rem; font-family: var(--font-body); font-size: 1rem; line-height: 1.5; }
.menu-button { display: none; align-items: center; justify-self: start; gap: .9rem; min-height: 2.75rem; min-width: 2.75rem; padding: .5rem; border: 0; color: white; background: none; cursor: pointer; }
.menu-button span { font-size: .875rem; letter-spacing: .1em; font-weight: 600; }
.menu-button svg { width: 24px; height: 24px; }
/* Show the entire supplied image without cropping or clipping its artwork. */
.brand-lockup { position: absolute; top: 100%; left: 50%; transform: translate(-50%, -84%); width: 10rem; aspect-ratio: 3 / 2; color: white; }
.brand-lockup img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fallback-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 1rem; background: var(--brand-navy); font-size: .875rem; }
.fallback-nav a { color: white; min-height: 2.75rem; display: inline-flex; align-items: center; }
.site-menu { inset: var(--menu-top) auto auto max(var(--page-inset), calc((100vw - var(--content-max)) / 2)); margin: 0; width: min(39rem, calc(100vw - 2.5rem)); max-width: none; max-height: calc(100dvh - var(--menu-top) - 1.5rem); padding: 2rem; overflow-y: auto; color: white; border: 1px solid #617a94; border-radius: 1.5rem; background: var(--brand-navy); box-shadow: 0 24px 90px #00112570; }
.site-menu::backdrop { background: #001329b8; backdrop-filter: none; }
.menu-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 2rem; }
.menu-racing-mark { display: flex; gap: .3rem; margin-left: .25rem; transform: skewX(-25deg); }
.menu-racing-mark i { display: block; width: .65rem; height: 1rem; background: var(--racing-silver); }
.menu-racing-mark i:last-child { background: var(--brand-blue); }
.menu-top h2 { color: var(--text-on-dark); font-family: var(--font-body); font-size: .875rem; line-height: 1.6; letter-spacing: .1em; margin: 0; }
.close-menu { display: flex; justify-content: center; align-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #71889f; border-radius: 50%; background: none; color: white; cursor: pointer; }
.close-menu:hover { background: #ffffff18; }
.menu-links { list-style: none; padding: 0; margin: 0; }
.menu-links li { border-top: 1px solid #3b526e; }
.menu-links a { display: flex; gap: 1rem; align-items: center; color: white; text-decoration: none; padding: 1rem .25rem; font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 3.5rem); font-weight: 600; line-height: 1.1; }
.menu-links .arrow { margin-left: auto; color: var(--text-on-dark); font-family: var(--font-body); font-size: 1.75rem; }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--brand-blue); }

/* 03 / Dark opening panels */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--silver-edge); background: var(--brand-navy); color: white; padding-top: 11rem; }
.hero h1, .hero h2, .hero h3 { color: white; }
/* Silver speed marks sit along the panel edge, clear of headings and copy. */
.hero::after { content: ""; position: absolute; bottom: 0; right: 0; width: min(42%, 32rem); height: .65rem; background: repeating-linear-gradient(120deg, var(--racing-silver) 0 2rem, transparent 2rem 3rem); pointer-events: none; }
.home-hero { padding-bottom: 7rem; }
.home-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, #031f3dfa 0%, #031f3de6 35%, #031f3da6 60%, #031f3d33 100%), url("../images/home-team.jpeg"); background-size: cover; background-position: center 65%; pointer-events: none; }
.home-hero .hero-copy { max-width: 52rem; }
.home-hero .lead { max-width: 40ch; }
.hero p { color: var(--text-on-dark); }
.hero .eyebrow { color: var(--text-on-dark); margin-bottom: 1.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--space-6); padding-bottom: 4rem; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-copy .lead { max-width: 39ch; margin-bottom: 2rem; }
.accent { color: var(--brand-blue); }
.page-hero { padding-bottom: 6rem; }
.page-hero .hero-grid { padding-bottom: 0; align-items: end; }
.page-hero .hero-copy h1 { margin-bottom: 0; }
.hero-aside { padding-left: 2rem; border-left: 1px solid #617a94; }
.hero-aside .lead { max-width: 36ch; }
.hero-aside p:last-child { margin-bottom: 0; }
.hero-quote { margin: 0; border-left-color: var(--brand-blue); }
.hero-quote blockquote { margin: 0 0 1.5rem; }
.hero-quote figcaption { display: grid; gap: .25rem; color: var(--text-on-dark); font-size: .875rem; }
.hero-quote .quote-author { color: var(--text); font-weight: 600; }

/* 04 / Content components */
.home-quote { position: relative; margin-block: clamp(3rem, 5vw, 5rem) 0; padding: clamp(1.5rem, 4vw, 3rem); border-left: 4px solid var(--brand-blue); }
.home-quote-mark { display: block; height: 2.5rem; color: var(--brand-blue); font-family: var(--font-display); font-size: 6rem; line-height: 1; }
.home-quote blockquote { margin: 1rem 0 1.5rem; }
.home-quote blockquote p { max-width: 55ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.2; text-wrap: pretty; }
.home-quote figcaption { display: grid; gap: .25rem; color: var(--text-muted); font-size: .875rem; }
.home-quote-author { color: var(--text); font-weight: 600; }
.car-section { padding-block: clamp(5rem, 8vw, 8rem); background: var(--surface); border-block: 1px solid var(--border); }
.car-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.model-panel { padding: 3rem; background: var(--brand-navy); color: white; border-radius: var(--radius-card); position: relative; overflow: hidden; }
.model-panel::after { content: ""; position: absolute; right: 1.5rem; bottom: -2rem; width: 8rem; height: 12rem; transform: skewX(-25deg); background: repeating-linear-gradient(90deg, #c6ced824 0 1.5rem, transparent 1.5rem 2.5rem); pointer-events: none; }
.model-panel .eyebrow { color: var(--text-on-dark); margin-bottom: 2rem; }
.model-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 8vw, 6.5rem); line-height: 1; letter-spacing: .015em; position: relative; z-index: 1; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.support-card { padding: 2rem; border: 1px solid var(--silver-edge); border-top: 3px solid var(--racing-silver); border-radius: var(--radius-card); background: #172b3d; }
.support-card h3 { margin-bottom: 1rem; }
.support-card p { color: var(--text-muted); font-size: .9375rem; }
.support-card ul { padding-left: 1.1rem; font-size: .875rem; }
.support-card li { margin-bottom: .5rem; }
.cta-section { border-block: 1px solid var(--silver-edge); padding-block: 6rem; background: var(--brand-navy); color: white; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-section h2 { color: white; margin-bottom: .75rem; }
.cta-section p { color: var(--text-on-dark); max-width: 48ch; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.note { border-left: 3px solid var(--action); padding: 1rem 1.5rem; background: var(--surface); margin-top: 2rem; font-size: .875rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { padding: 0 0 2rem; }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { margin-bottom: .75rem; }
.steps p { color: var(--text-muted); font-size: .9375rem; }
.sponsor-group + .sponsor-group { margin-top: 4rem; }
.sponsor-group > h3 { margin-bottom: 1.5rem; }
.sponsor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.sponsor-grid-major { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sponsor-slot, .sponsor-entry { min-width: 0; min-height: 12rem; }
.sponsor-grid-major > * { min-height: 16rem; }
.sponsor-slot { display: grid; place-items: center; border: 1px dashed var(--silver-edge); border-top: 2px solid var(--racing-silver); border-radius: var(--radius-card); background: #ffffff02; color: var(--text-muted); font-size: .875rem; }
.sponsor-entry { display: flex; flex-direction: column; justify-content: center; overflow-wrap: anywhere; padding: 1.5rem; background: #172b3d; border: 1px solid var(--silver-edge); border-top: 2px solid var(--racing-silver); border-radius: var(--radius-card); text-align: center; }
.sponsor-entry img { background: #fff; padding: .75rem; border-radius: var(--radius-control); height: 5rem; width: 100%; object-fit: contain; margin-bottom: 1rem; }
/* Give major sponsors matching logo panels with room for stacked marks. */
.sponsor-grid-major .sponsor-entry img { height: 10rem; padding: .5rem; }
/* Compensate for the Ecotron artwork's uneven built-in white space. */
.sponsor-entry img[src$="/ecotron-logo.png"] { object-position: 50% 47%; }
.sponsor-entry h3 { margin: 0; font-family: var(--font-body); font-size: 1rem; }
a.sponsor-entry { color: inherit; text-decoration: none; }
a.sponsor-entry:hover { border-color: var(--link); }
.photo-placeholder { aspect-ratio: 4 / 3; padding: 2rem; display: flex; flex-direction: column; justify-content: end; position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--brand-navy); color: white; }
.photo-placeholder::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 44px, #ffffff08 45px 46px); }
.photo-placeholder > * { position: relative; z-index: 1; }
.photo-placeholder h3 { color: white; font-size: 2.5rem; max-width: 12ch; }
.photo-placeholder p { color: var(--text-on-dark); font-size: .875rem; }
.photo-figure { margin: 0; }
.photo-figure figcaption { font-size: .875rem; color: var(--text-muted); margin-top: 1rem; }
.team-photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius-card); }
.team-event-photo { object-fit: cover; object-position: center 60%; }

/* Photo slots keep their proportions when configured images replace placeholders. */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.photo-stack { display: grid; }
.photo-section + .section { padding-top: 0; }
.photo-section .photo-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; border: 1px solid #476580; background: linear-gradient(135deg, #ffffff05, transparent 65%), var(--brand-navy); }
.photo-section .photo-placeholder .eyebrow { color: var(--text-on-dark); letter-spacing: .08em; }
.photo-section .photo-placeholder .eyebrow::before { display: none; }
.photo-section .photo-placeholder p { margin-top: .75rem; }
.photo-wide .photo-placeholder, .photo-wide .team-photo { aspect-ratio: 21 / 9; }
.car-render .team-photo { object-fit: contain; background: var(--brand-navy); border: 1px solid var(--border); }
.hero, .cta-section { background-image: repeating-linear-gradient(125deg, transparent 0 79px, #ffffff03 80px 81px); }
@media (max-width: 767px) {
  .photo-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .photo-wide .photo-placeholder, .photo-wide .team-photo { aspect-ratio: 4 / 3; }
  .photo-placeholder { padding: 1.5rem; }
}

/* Homepage subteams: manual slides with a readable no-JavaScript fallback. */
.photo-section + .subteams-section { padding-top: clamp(3rem, 5vw, 5rem); }
.subteams-section { border-block: 1px solid var(--silver-edge); background-color: #0d2235; }
.subteam-slide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.subteam-slide + .subteam-slide { margin-top: 3rem; }
.subteams-section[aria-roledescription="carousel"] .subteam-slide { margin-top: 0; }
.subteam-slide .photo-placeholder { border: 1px solid var(--silver-edge); border-top: 3px solid var(--racing-silver); }
.subteam-copy { padding-block: 2rem; }
.subteam-copy h3 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; }
.subteam-copy p { color: var(--text-muted); max-width: 38ch; }
.subteam-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.slide-arrow, .slide-dot { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer; color: var(--text); background: transparent; }
.slide-arrow { border: 1px solid var(--silver-edge); border-radius: 50%; font-size: 1.5rem; }
.slide-arrow:hover { background: var(--surface); border-color: var(--racing-silver); }
.slide-selectors { display: flex; }
.slide-dot { border: 0; border-radius: 50%; }
.slide-dot::before { content: ""; width: .5rem; height: .5rem; border: 1px solid var(--racing-silver); border-radius: 50%; }
.slide-dot[aria-pressed="true"]::before, .slide-dot:hover::before { background: var(--racing-silver); }
@media (max-width: 767px) {
  .subteam-slide { grid-template-columns: 1fr; gap: 1.5rem; }
  .subteam-copy { padding-block: 0; min-height: 12rem; }
}

/* 05 / Contact. The static site prepares email drafts; it has no mail server. */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; }
.contact-details { border-top: 1px solid var(--border); margin-top: 2rem; }
.contact-detail { border-bottom: 1px solid var(--border); padding-block: 1.25rem; }
.contact-detail .eyebrow { color: var(--text-muted); font-size: .875rem; margin-bottom: .5rem; }
.contact-detail .eyebrow::before { display: none; }
.contact-detail p { font-size: .9375rem; }
.contact-detail a { overflow-wrap: anywhere; }
.contact-form { padding: 2.5rem; border: 1px solid var(--silver-edge); border-top: 3px solid var(--racing-silver); border-radius: var(--radius-card); background: var(--surface); }
.contact-form h2 { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; }
.field label span { color: var(--text-muted); font-weight: 400; }
input, select, textarea { display: block; width: 100%; min-height: 2.75rem; border: 1px solid #71889f; border-radius: var(--radius-control); background: var(--surface); color: var(--text); padding: .8rem; }
textarea { resize: vertical; min-height: 10rem; }
input:hover, select:hover, textarea:hover { border-color: var(--link); }
.form-help { color: var(--text-muted); font-size: .875rem; margin-bottom: 1.5rem; }
.form-actions { margin-top: 1.5rem; }
.form-status { font-size: .875rem; margin-top: 1rem; color: var(--text); }
.message-preview { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.message-preview h3 { font-size: 1.5rem; }
.message-preview pre { padding: 1rem; background: var(--surface-subtle); font-family: var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.65; }
.message-preview .actions { margin-top: 1rem; }

/* 06 / Footer */
.site-footer { background: var(--brand-navy); color: var(--text-on-dark); padding-block: 2.5rem; border-top: 2px solid var(--racing-silver); }
.footer-main { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding-bottom: 2rem; text-align: center; }
.footer-logo { display: block; width: min(24rem, 90%); flex-shrink: 0; }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(26rem, 100%); gap: .5rem; }
.footer-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; color: white; font-size: .875rem; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 2rem; padding-bottom: 2rem; text-align: center; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; overflow-wrap: anywhere; }
.social-links { display: flex; align-items: center; gap: .75rem; }
a.social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border-radius: var(--radius-control); color: var(--text-on-dark); text-decoration: none; }
a.social-link svg { width: 1.75rem; height: 1.75rem; }
a.email-link { width: auto; height: auto; min-height: 2.75rem; gap: .75rem; padding: .25rem .5rem; max-width: 100%; }
a.email-link span { min-width: 0; overflow-wrap: anywhere; }
a.social-link:hover { color: white; background: var(--surface); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid #3b526e; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; text-align: center; font-size: .875rem; }
.footer-bottom p { margin-bottom: 0; }

/* 07 / Tablet and phone layouts */
@media (max-width: 1023px) {
  .hero { padding-top: 10rem; }
  .hero-grid { gap: 2rem; }
  .split-section { gap: 3rem; }
  .contact-layout { gap: 2rem; }
  .contact-form { padding: 2rem; }
  .support-card { padding: 1.5rem; }
  .car-grid { gap: 3rem; }
}
@media (max-width: 767px) {
  :root { --header-offset: 7rem; --header-top: 1rem; }
  .nav-shell { grid-template-columns: 2.75rem 1fr 2.75rem; gap: .5rem; padding: .5rem .75rem; border-radius: 1.25rem; }
  .brand-lockup { width: 9.5rem; }
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; padding: .5rem; }
  .menu-button span { display: none; }
  .site-menu { inset: var(--menu-top) auto auto var(--page-inset); width: min(var(--content-max), calc(100% - 2 * var(--page-inset))); padding: 1.5rem; max-height: calc(100dvh - var(--menu-top) - 1rem); }
  .menu-top { padding-bottom: .5rem; }
  .section { padding-block: 4rem; }
  .hero { padding-top: 9rem; }
  .home-hero::before { background-image: linear-gradient(90deg, #031f3df5, #031f3dcc), url("../images/home-team.jpeg"); background-position: 60% center; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; padding-bottom: 2rem; }
  .hero-copy .lead { max-width: 42ch; }
  .hero-copy h1 { font-size: clamp(3rem, 10vw, 4.5rem); }
  .actions { align-items: stretch; }
  .page-hero { padding-bottom: 3rem; }
  .page-hero .hero-grid { gap: 2rem; }
  .hero-aside { padding-left: 1rem; }
  .hero-aside .lead { font-size: 1rem; }
  .car-grid, .split-section, .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-heading { display: block; margin-bottom: 2rem; }
  .section-heading > p { margin-top: 1.25rem; }
  .support-grid, .sponsor-grid-major { grid-template-columns: 1fr; }
  .sponsor-grid-supporting { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .sponsor-grid-supporting > * { min-height: 10rem; }
  .sponsor-entry { padding: 1rem; }
  .support-card { padding: 2rem; }
  .model-panel { padding: 2rem; }
  .cta-inner { flex-direction: column; align-items: stretch; }
  .cta-section { padding-block: 3rem; }
  .contact-form { padding: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field { grid-column: 1; }
  .footer-bottom { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header { transition: none; }
}
