/* Stick n Throttle Aviation — Homepage
   Brand: navy / sky / daylight — familiar content, modern structure */

:root {
  /* Matched to SnT logo: deep indigo-navy + silver/sky accents */
  --navy: #2a2e6e;
  --navy-deep: #16183f;
  --navy-mid: #3a3f7a;
  --sky: #3d6ea8;
  --sky-bright: #5b8fc4;
  --horizon: #d4dce8;
  --cloud: #f4f6f9;
  --white: #ffffff;
  --ink: #1c1f35;
  --muted: #5c6478;
  --line: rgba(42, 46, 110, 0.12);
  --amber: #c9a227;
  --radius: 3px;
  --max: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sky);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--navy);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  max-width: 18ch;
}

.section-lead {
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.05rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--sky);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sky-bright);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(47, 127, 184, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  height: 64px;
}

.site-header.is-scrolled .logo-img {
  height: 44px;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 54px;
  width: auto;
  transition: height 0.35s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.site-header:not(.is-scrolled) .logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: background 0.2s ease, transform 0.3s var(--ease);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header.is-scrolled .nav-list a {
  color: var(--navy-mid);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--white);
}

.site-header.is-scrolled .nav-list a:hover,
.site-header.is-scrolled .nav-list a[aria-current="page"] {
  color: var(--sky);
}

.nav .btn {
  margin-left: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.8rem;
}

.site-header:not(.is-scrolled) .nav .btn-primary {
  background: var(--white);
  color: var(--navy);
}

.site-header:not(.is-scrolled) .nav .btn-primary:hover {
  background: var(--horizon);
  box-shadow: none;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: heroDrift 28s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-scrub {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 21, 37, 0.55) 0%, rgba(6, 21, 37, 0.2) 35%, rgba(6, 21, 37, 0.75) 100%),
    linear-gradient(90deg, rgba(6, 21, 37, 0.45) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 12ch;
  margin-bottom: 1rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.3s forwards;
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  line-height: 1.55;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.6s forwards;
}

.hero-meta {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.75s forwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Welcome ——— */
.welcome {
  background: var(--white);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.welcome-copy .section-title {
  max-width: none;
}

.welcome-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.welcome-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.welcome-photo:hover img {
  transform: scale(1.03);
}

.course-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.course-pills li {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  background: var(--cloud);
  color: var(--navy-mid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ——— Simulator ——— */
.simulator {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  overflow: hidden;
}

.simulator::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(47, 127, 184, 0.25), transparent),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(74, 159, 212, 0.12), transparent);
  pointer-events: none;
}

.simulator .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.simulator .section-label {
  color: var(--sky-bright);
}

.simulator h2 {
  color: var(--white);
  max-width: 16ch;
}

.simulator p {
  max-width: 48ch;
}

.sim-features {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sim-features li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.95rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-features li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sim-features strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.sim-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(74, 159, 212, 0.15);
  border-radius: var(--radius);
  color: var(--sky-bright);
}

.sim-icon svg {
  width: 18px;
  height: 18px;
}

/* ——— Ground schools ——— */
.ground-schools {
  background:
    linear-gradient(180deg, var(--cloud) 0%, var(--white) 40%);
}

.ground-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.ground-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.ground-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.ground-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(11, 31, 51, 0.12);
  color: inherit;
  text-decoration: none;
}

.ground-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.ground-card-body {
  padding: 1.1rem 1rem 1.25rem;
  border-top: 1px solid var(--line);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ground-card-code {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.35rem;
}

.ground-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.ground-card-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: auto;
}

/* ——— Dreams CTA ——— */
.dreams {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.dreams::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(47, 127, 184, 0.35), transparent 65%);
  pointer-events: none;
}

.dreams .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2.5rem;
  align-items: center;
}

.dreams h2 {
  color: var(--white);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 14ch;
}

.dreams p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.dreams-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.dreams-join {
  max-width: 220px;
}

/* ——— Access cue (lists live in drawers) ——— */
.access-cue {
  background: var(--white);
  text-align: center;
}

.access-cue-inner {
  max-width: 40rem;
  margin-inline: auto;
}

.access-cue .section-title,
.access-cue h2 {
  max-width: none;
  margin-inline: auto;
}

.access-cue p {
  color: var(--muted);
  max-width: 42ch;
  margin-inline: auto;
}

.access-cue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.info-list,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li,
.link-list li {
  border-bottom: 1px solid var(--line);
}

.info-list a,
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

.info-list a:hover,
.link-list a:hover {
  color: var(--sky);
}

.info-list a span,
.link-list a span {
  color: var(--sky);
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease);
}

.info-list a:hover span,
.link-list a:hover span {
  transform: translateX(4px);
}

.seams-row {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.seams-row p {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  min-width: 160px;
}

.seams-row img {
  height: 48px;
  width: auto;
}

/* ——— Edge tabs + overlay drawers ——— */
.edge-tab {
  position: fixed;
  z-index: 80;
  top: auto;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px) + 1rem);
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 160px;
  padding: 1.25rem 0.35rem;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 32px rgba(22, 24, 63, 0.28);
  transition:
    background 0.3s ease,
    transform 0.45s var(--ease),
    box-shadow 0.3s ease,
    opacity 0.3s ease;
}

.edge-tab:hover,
.edge-tab:focus-visible {
  background: var(--navy-mid);
  box-shadow: 0 16px 40px rgba(22, 24, 63, 0.35);
  outline: none;
}

.edge-tab--left {
  left: 0;
  border-radius: 0 8px 8px 0;
  transform: none;
}

.edge-tab--left:hover {
  transform: translateX(3px);
}

.edge-tab--right {
  right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--sky);
}

.edge-tab--right:hover,
.edge-tab--right:focus-visible {
  background: var(--sky-bright);
}

.edge-tab--right:hover {
  transform: translateX(-3px);
}

.edge-tab-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.edge-tab--right .edge-tab-label {
  transform: none;
}

body.drawer-open .edge-tab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 12, 32, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
  visibility: hidden;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(10, 12, 32, 0.22);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.drawer--left .drawer-panel {
  left: 0;
  transform: translateX(-105%);
  border-right: 1px solid var(--line);
}

.drawer--right .drawer-panel {
  right: 0;
  transform: translateX(105%);
  border-left: 1px solid var(--line);
}

.drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.drawer-header h2 {
  font-size: 1.35rem;
  margin: 0;
}

.drawer-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cloud);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}

.drawer-close:hover,
.drawer-close:focus-visible {
  background: var(--navy);
  color: var(--white);
  outline: none;
  transform: rotate(90deg);
}

.drawer-body {
  padding: 0.5rem 1.5rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}

body.drawer-open {
  overflow: hidden;
}

/* ——— Partners ——— */
.partners {
  background: var(--cloud);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.partner-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.partner-item img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.partner-item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 31, 51, 0.1);
}

.partner-caption {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.instructor-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}

.instructor-panel h3 {
  font-size: 1.15rem;
  margin: 0;
}

.instructor-panel p {
  font-size: 0.9rem;
  color: var(--muted);
}

.instructor-panel img {
  width: auto;
  max-width: 180px;
}

.schedule-full {
  margin-top: 2.5rem;
  max-width: 420px;
}

.schedule-full img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-brand .ato {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-bright);
  margin-top: 0.75rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.55rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ——— Mobile ——— */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 120;
  }

  .logo {
    position: relative;
    z-index: 120;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 5.5rem 1.75rem 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .nav-list a {
    font-size: 1.15rem;
    padding: 0.85rem 0;
    color: var(--white) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav .btn {
    margin: 1.5rem auto 0;
    width: 100%;
    max-width: 320px;
  }

  .site-header:not(.is-scrolled) .logo-img {
    filter: brightness(0) invert(1);
  }

  .site-header:not(.is-scrolled) {
    background: rgba(6, 21, 37, 0.85);
    backdrop-filter: blur(8px);
  }

  /* backdrop-filter traps fixed children — disable while menu is open */
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent;
    box-shadow: none;
  }

  body.nav-open .logo-img {
    filter: brightness(0) invert(1) !important;
  }

  body.nav-open .site-header.is-scrolled .nav-toggle span,
  body.nav-open .nav-toggle span {
    background: var(--white);
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body.nav-open .edge-tab {
    opacity: 0;
    pointer-events: none;
  }

  .welcome-grid,
  .simulator .wrap,
  .dreams .wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding-bottom: 3.5rem;
  }

  .ground-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }
}

@media (max-width: 560px) {
  .ground-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }

  .wrap {
    width: min(100% - 1.75rem, var(--max));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-media img {
    transform: none;
  }
}
