/* Base ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 8%, rgba(219, 44, 39, 0.08), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #ff766f;
  outline-offset: 4px;
}

::selection {
  background: var(--red);
  color: white;
}

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

.section {
  position: relative;
  padding-block: var(--section);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero-eyebrow,
.team-role,
.contact-card > span {
  margin: 0;
  color: #ff6c65;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(42px, 6vw, 78px);
}

.section-kicker {
  margin: 0 0 18px;
  color: #ff756e;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading > p:not(.section-kicker) {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.section-heading h2,
.partner-copy h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #ad211d;
  color: white;
}

.button-primary:hover {
  background: #c72822;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(10, 10, 11, 0.24);
  color: white;
  backdrop-filter: blur(12px);
}

.button-ghost:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.button-light {
  background: white;
  color: #68100d;
}

.button-light:hover {
  background: #f4eeeb;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-block: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 800;
}

.text-link span {
  color: #ff6c65;
}

/* Logo masks ------------------------------------------------------------- */
.brand-mark,
.hero-mark {
  -webkit-mask: url("../img/logo-mark.svg") center / contain no-repeat;
  mask: url("../img/logo-mark.svg") center / contain no-repeat;
}

.brand-wordmark,
.hero-wordmark,
.footer-wordmark {
  -webkit-mask: url("../img/logo-wordmark.svg?v=20260924b") center / contain no-repeat;
  mask: url("../img/logo-wordmark.svg?v=20260924b") center / contain no-repeat;
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 10, 0.96);
  backdrop-filter: blur(18px);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-color: var(--line);
  background: rgba(9, 9, 10, 0.98);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  min-width: 148px;
  align-items: center;
  color: var(--ink);
}

.brand-mark {
  width: 23px;
  height: 27px;
  flex: none;
  background: var(--red-bright);
}

.brand-wordmark {
  width: 136px;
  height: 26px;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 38px);
}

.site-nav a {
  position: relative;
  padding-block: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--red-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: white;
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  min-width: 172px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-contact {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-contact:hover {
  border-color: white;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(9, 9, 10, 0.4);
  color: white;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-button span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-open .menu-button span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-button span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  min-height: min(820px, calc(100svh - var(--header-h)));
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero-panel {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: clamp(56px, 7vw, 104px) clamp(32px, 5vw, 72px);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  background: var(--bg);
}

.hero-content {
  display: flex;
  width: 100%;
  max-width: 580px;
  flex-direction: column;
  align-items: flex-start;
}

.hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
  border-left: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 9, 10, 0.2), transparent 24%);
  content: "";
  pointer-events: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 84% center;
  filter: saturate(0.92) contrast(1.04);
}

.hero-eyebrow {
  margin-bottom: 20px;
  color: #ff756e;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero-wordmark {
  width: clamp(210px, 24vw, 330px);
  aspect-ratio: 1416 / 264;
  margin-bottom: 28px;
  background: white;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 5.4vw, 5.6rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: pretty;
}

.hero-copy {
  max-width: 540px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* About ------------------------------------------------------------------ */
.about {
  padding-top: var(--section);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  align-items: start;
  gap: clamp(42px, 8vw, 120px);
}

.about-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.about-copy p:not(.lead) {
  color: var(--ink-soft);
}

.about-figure {
  margin: 0;
}

.about-image-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.about-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Projects --------------------------------------------------------------- */
.projects {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  min-height: 385px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.project-baja {
  background:
    linear-gradient(180deg, rgba(219, 44, 39, 0.14), transparent 42%),
    var(--panel);
}

.project-formula {
  background:
    linear-gradient(180deg, rgba(216, 198, 172, 0.12), transparent 42%),
    var(--panel);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.project-topline h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-topline .status {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: right;
}

.project-body {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(36px, 5vw, 54px);
}

.project-body .project-name {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.project-body > p:not(.project-name) {
  max-width: 540px;
  margin: 0 0 34px;
  color: var(--ink-soft);
}

.project-list {
  width: 100%;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.project-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.project-list span {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Teams ------------------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease);
}

.team-card::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 34px;
  height: 34px;
  background: var(--bg);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  content: "";
}

.team-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-raised);
  transform: translateY(-4px);
}

.team-role {
  margin-top: 0;
}

.team-card h3 {
  margin: 12px 0 18px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.team-card > p:not(.team-role) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.team-lead {
  margin-top: auto;
  padding-top: 22px;
  color: var(--ink);
  font-weight: 750;
}

.team-lead span {
  margin-right: 9px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.team-card-wide {
  grid-column: span 2;
}

.leadership {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: clamp(36px, 8vw, 100px);
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(219, 44, 39, 0.13), transparent 60%);
}

.leadership h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3.7vw, 3.1rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.leadership dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.leadership dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.leadership dl > div:nth-child(odd) {
  padding-right: 24px;
}

.leadership dl > div:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.leadership dl > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-right: 0;
}

.leadership dt {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.leadership dd {
  margin: 0;
  font-weight: 800;
}

/* Gallery ---------------------------------------------------------------- */
.gallery {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-more {
  display: inline-flex;
  margin-top: 28px;
}

/* Gallery page ------------------------------------------------------------ */
.subpage-hero {
  padding-block: clamp(80px, 11vw, 150px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(219, 44, 39, 0.14), transparent 55%), var(--bg);
}

.subpage-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.subpage-hero p:not(.hero-eyebrow) {
  max-width: 680px;
  margin: 28px 0;
  color: var(--ink-soft);
}

.gallery-page {
  padding-bottom: clamp(70px, 8vw, 110px);
}

.gallery-page-secondary {
  padding-top: clamp(70px, 8vw, 110px);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gallery-tile {
  min-width: 0;
  margin: 0;
}

.gallery-tile-feature,
.gallery-tile-wide {
  grid-column: 1 / -1;
}

.gallery-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--panel);
}

.gallery-tile-feature img {
  aspect-ratio: 16 / 9;
  object-position: 50% 60%;
}

.gallery-tile-wide img {
  aspect-ratio: 2.2 / 1;
  object-position: 50% 60%;
}

.gallery-tile figcaption {
  padding-top: 12px;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
}

.gallery-feature {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.gallery-wide {
  grid-column: 1 / -1;
  aspect-ratio: 2.2 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 300ms ease;
}

.gallery-feature img {
  object-position: 50% center;
}

.gallery-wide img {
  object-position: center 46%;
}

.gallery-item:hover img {
  filter: saturate(1.08);
  transform: scale(1.025);
}

/* Record ----------------------------------------------------------------- */
.record-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  align-items: start;
  gap: clamp(50px, 9vw, 140px);
}

.record-layout .section-heading {
  position: sticky;
  top: calc(var(--header-h) + 38px);
  margin: 0;
}

.record-layout .section-heading > p:last-child {
  max-width: 430px;
  margin-top: 28px;
}

.record-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.record-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(26px, 4vw, 42px) 0;
  border-bottom: 1px solid var(--line);
}

.record-list time {
  color: #ff6c65;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.record-entry {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.record-list strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.4;
}

.record-entry p {
  margin: 0;
  color: var(--ink-muted);
}

/* Partner ---------------------------------------------------------------- */
.partner {
  padding-top: 20px;
}

.partner-card {
  padding: clamp(38px, 7vw, 86px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 38%),
    #b3221d;
  color: white;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.partner-copy {
  max-width: 850px;
}

.partner-copy h2 {
  font-size: clamp(2.35rem, 5.5vw, 5rem);
}

.partner-copy > p {
  max-width: 640px;
  margin: 26px 0 34px;
  color: rgba(255, 255, 255, 0.85);
}

/* Contact & join --------------------------------------------------------- */
.contact {
  padding-top: calc(var(--section) - 20px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  border-block: 1px solid var(--line-strong);
}

.contact-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 42px);
  transition: background-color 180ms ease;
}

.contact-card + .contact-card {
  border-left: 1px solid var(--line);
}

a.contact-card:hover {
  background: var(--panel);
}

.contact-card > span {
  position: absolute;
  top: 28px;
  left: clamp(24px, 4vw, 42px);
}

.contact-card strong {
  max-width: 100%;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.contact-card small {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.contact-card i {
  position: absolute;
  top: 26px;
  right: 28px;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: normal;
}

.join-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-top: 72px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.join-card h3 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.join-card p {
  max-width: 770px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  padding-top: 76px;
  border-top: 1px solid var(--line);
  background: #050506;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: clamp(40px, 8vw, 110px);
  padding-bottom: 72px;
}

.footer-wordmark {
  width: min(320px, 80%);
  aspect-ratio: 1416 / 264;
  background: var(--ink);
}

.footer-brand p {
  margin: 22px 0 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.footer-main h2 {
  margin: 0 0 18px;
  color: #ff6c65;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-main > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-main a {
  max-width: 100%;
  padding-block: 5px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.footer-main a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.footer-bottom a:hover {
  color: white;
}

/* Progressive reveal: content stays visible when JavaScript is absent. */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1060px) {
  .site-nav {
    gap: 20px;
  }

  .header-contact {
    display: none;
  }

  .header-actions {
    min-width: auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-card-wide {
    grid-column: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-card:first-child {
    grid-column: auto;
    border-bottom: 0;
  }

  .contact-card:nth-child(2) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .about-grid,
  .project-grid,
  .record-layout,
  .leadership,
  .join-card {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    padding: 12px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 9, 10, 0.96);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-ready .menu-button {
    display: block;
  }

  .nav-ready .site-nav {
    position: fixed;
    top: var(--header-h);
    display: grid;
    height: calc(100dvh - var(--header-h));
    max-height: none;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0;
    padding: 20px var(--gutter) 26px;
    visibility: hidden;
    opacity: 0;
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-ready .site-header.menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-ready .site-nav a {
    padding: 14px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: clamp(54px, 9vw, 80px) var(--gutter);
  }

  .hero-content {
    max-width: 680px;
  }

  .hero-media {
    min-height: clamp(340px, 58vw, 520px);
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-image {
    object-position: 64% 55%;
  }

  .about-grid {
    gap: 46px;
  }

  .project-card {
    min-height: 385px;
  }

  .project-body {
    min-height: 260px;
  }

  .leadership {
    align-items: start;
  }

  .record-layout .section-heading {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-feature {
    grid-column: 1 / -1;
  }

  .join-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-main {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.66;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 19px;
    height: 23px;
  }

  .brand-wordmark {
    width: 112px;
    height: 21px;
  }

  .hero {
    min-height: 0;
  }

  .hero-panel {
    padding: 46px 20px 50px;
  }

  .hero-wordmark {
    width: 176px;
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 0.96rem;
  }

  .hero-media {
    min-height: 270px;
  }

  .hero-actions,
  .hero-actions .button,
  .join-actions,
  .join-actions .button {
    width: 100%;
  }

  .section-heading h2,
  .partner-copy h2 {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .project-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .project-topline {
    align-items: flex-start;
  }

  .project-body {
    min-height: 0;
    padding-top: 46px;
  }

  .project-list {
    margin-top: 38px;
  }

  .project-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .team-grid,
  .leadership dl,
  .gallery-grid,
  .contact-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 320px;
  }

  .leadership dl > div:nth-child(odd),
  .leadership dl > div:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-page-grid,
  .gallery-preview {
    grid-template-columns: 1fr;
  }

  .gallery-tile-feature,
  .gallery-tile-wide {
    grid-column: auto;
  }

  .gallery-tile-feature img,
  .gallery-tile-wide img {
    aspect-ratio: 3 / 2;
  }

  .gallery-feature,
  .gallery-wide {
    grid-column: auto;
    aspect-ratio: 3 / 2;
  }

  .record-list li {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
  }

  .partner-card {
    padding: 34px 24px;
  }

  .contact-card:first-child {
    grid-column: auto;
  }

  .contact-card,
  .contact-card:first-child,
  .contact-card:nth-child(2),
  .contact-card:nth-child(3) {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .contact-card strong {
    font-size: 1.35rem;
  }

  .join-card {
    padding: 28px 22px;
  }

  .footer-main {
    gap: 36px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .join-actions,
  .skip-link {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: 500px;
  }

  .section {
    break-inside: avoid;
  }
}
