:root {
  --midnight: #061A12;
  --deep: #010806;
  --ink: #0A1F17;
  --white: #f7f8ff;
  --muted: #b9c0d8;
  --purple: #00693E;
  --purple-bright: #00A862;
  --green-glow: rgba(0, 168, 98, 0.68);
  --green-soft: rgba(0, 105, 62, 0.22);
  --line: rgba(0, 105, 62, 0.28);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--deep);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 10%, var(--green-soft), transparent 24rem),
    linear-gradient(180deg, var(--deep), var(--midnight) 52%, #061A12);
  color: var(--white);
}

a {
  color: inherit;
}

.intro {
  position: relative;
  min-height: auto;
  display: block;
  overflow: hidden;
  padding: 0 2rem 2.5rem;
}

.intro-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.mesh-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.intro-title {
  margin: 0;
  display: grid;
  gap: 0;
  text-transform: uppercase;
  font-size: clamp(4.2rem, 13.2vw, 11.2rem);
  line-height: 0.84;
  font-weight: 950;
}

.sweep-title,
.sweep-link {
  position: relative;
  opacity: 0;
  animation: revealText 0.01s linear forwards;
}

.sweep-link {
  width: fit-content;
}

.sweep-title {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
}

.sweep-title::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 1;
  background: var(--white);
  transform: translateX(-105%);
  pointer-events: none;
  animation: sweepLeft 0.72s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.sweep-title.sweep-right::before {
  animation-name: sweepRight;
}

.sweep-title:nth-child(1) {
  animation-delay: 0.28s;
}

.sweep-title:nth-child(1)::before {
  animation-delay: 0.18s;
}

.sweep-title:nth-child(2) {
  animation-delay: 1s;
  text-align: right;
}

.sweep-title:nth-child(2)::before {
  animation-delay: 0.9s;
}

.sweep-title.sweep-right::before {
  transform: translateX(105%);
}

.intro-nav {
  width: 100%;
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  align-items: flex-start;
  text-transform: uppercase;
  font-size: clamp(2.15rem, 5.8vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
}

.sweep-link {
  padding: 0.08rem 0;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sweep-link:nth-child(1) {
  animation-delay: 1.72s;
}

.sweep-link:nth-child(2) {
  animation-delay: 1.9s;
  align-self: center;
  text-align: right;
}

.sweep-link:nth-child(3) {
  animation-delay: 2.08s;
}

.sweep-link:nth-child(4) {
  animation-delay: 2.26s;
  align-self: center;
  text-align: right;
}

.sweep-link:nth-child(5) {
  animation-delay: 2.44s;
}

.takeoff-panel {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.takeoff-countdown {
  display: grid;
  gap: 0.35rem;
}

.countdown-value {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: baseline;
  font-size: clamp(2.4rem, 7vw, 6.2rem);
  line-height: 0.88;
  font-weight: 950;
  text-transform: uppercase;
}

.countdown-unit {
  color: var(--muted);
  font-size: clamp(0.82rem, 1.6vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.counter-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.counter-item {
  min-width: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.counter-number {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  line-height: 0.9;
  font-weight: 950;
}

.counter-label {
  margin: 0;
  color: var(--purple-bright);
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  line-height: 1.25;
  font-weight: 900;
}

.site-nav a::after,
.brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 0.18rem;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.brand:hover::after,
.brand:focus-visible::after {
  transform: scaleX(1);
}

.sweep-link {
  transition:
    color 160ms ease,
    text-shadow 160ms ease,
    transform 160ms ease;
}

.sweep-link:hover,
.sweep-link:focus-visible {
  color: var(--purple-bright);
  text-shadow:
    0 0 0.5rem rgba(0, 168, 98, 0.85),
    0 0 1.4rem var(--green-glow);
  transform: translateX(0.25rem);
}

.sweep-link:nth-child(2):hover,
.sweep-link:nth-child(2):focus-visible,
.sweep-link:nth-child(4):hover,
.sweep-link:nth-child(4):focus-visible {
  transform: translateX(-0.25rem);
}

.gallery-strip,
.page {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.gallery-strip {
  padding: 1.5rem 0 7rem;
  display: grid;
  gap: 5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.feature-row-reverse {
  grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
}

.feature-row-reverse .image-panel {
  order: 2;
}

.image-panel {
  min-height: 22rem;
  border: 1px solid var(--line);
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
}

.image-team {
  background-color: var(--white);
  background-image: url("../images/eth-logo-pos.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.image-pipeline {
  background-image:
    url("../images/aeroforge_example_green.png"),
    linear-gradient(135deg, rgba(0, 105, 62, 0.32), rgba(1, 8, 6, 0.88)),
    linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, 0.45) 8% 10%, transparent 10% 28%, rgba(255, 255, 255, 0.35) 28% 30%, transparent 30%),
    linear-gradient(0deg, transparent 18%, rgba(255, 255, 255, 0.22) 18% 20%, transparent 20% 48%, rgba(255, 255, 255, 0.22) 48% 50%, transparent 50%);
}

.image-workshop {
  background-image:
    url("../images/team_pics/team.jpeg"),
    linear-gradient(135deg, rgba(1, 8, 6, 0.22), rgba(0, 105, 62, 0.2)),
    repeating-linear-gradient(135deg, #0A1F17 0 1rem, #134832 1rem 1.35rem);
}

.feature-copy h2,
.page-hero h1,
.content-band h2 {
  margin: 0;
  text-transform: uppercase;
  font-weight: 950;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.feature-copy h2 {
  font-size: clamp(2rem, 4vw, 4.5rem);
}

.feature-copy p,
.page-hero p,
.rich-text p,
.stat-band p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--purple-bright);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
}

.site-header {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.brand,
.site-nav a {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.brand {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.page {
  padding: 4rem 0 7rem;
}

.page-hero {
  max-width: 54rem;
  padding: 4rem 0 5rem;
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

.content-band {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.rich-text {
  max-width: 62rem;
}

.rich-text a {
  color: var(--white);
  text-decoration-color: var(--purple);
  text-decoration-thickness: 0.18rem;
  text-underline-offset: 0.25rem;
}

.term-grid {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.info-term {
  position: relative;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-decoration-thickness: 0.18rem;
  text-underline-offset: 0.26rem;
  cursor: help;
}

.term-grid .info-term {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.tooltip {
  position: fixed;
  z-index: 5;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.9rem;
  border: 1px solid rgba(0, 168, 98, 0.55);
  background: #f7f8ff;
  color: #061A12;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.28);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tooltip a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #00693E;
  font-weight: 900;
}

.name-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.team-list {
  display: grid;
  gap: 1rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.team-member {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-member:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 8.25rem;
  text-align: right;
}

.team-member:nth-child(even) img,
.team-member:nth-child(even) .team-photo-placeholder {
  order: 2;
}

.team-member img,
.team-photo-placeholder {
  width: 8.25rem;
  height: auto;
  border: 1px solid var(--line);
}

.team-photo-placeholder {
  display: grid;
  aspect-ratio: 3 / 4;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--purple-bright);
}

.about-support {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.stat-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
  display: grid;
  grid-template-columns: auto minmax(0, 32rem);
  gap: 2rem;
  align-items: center;
}

.stat-number {
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.contact-link {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  color: var(--white);
  text-decoration: none;
  font-size: clamp(1.2rem, 2.6vw, 2.2rem);
  font-weight: 900;
  overflow-wrap: normal;
  word-break: normal;
}

.contact-link span {
  color: var(--purple-bright);
  text-transform: uppercase;
  font-size: 0.8rem;
}

@keyframes revealText {
  to {
    opacity: 1;
  }
}

@keyframes sweepLeft {
  0% {
    transform: translateX(-105%);
  }

  45% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(105%);
  }
}

@keyframes sweepRight {
  0% {
    transform: translateX(105%);
  }

  45% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-105%);
  }
}

@media (max-width: 760px) {
  .intro {
    align-items: flex-start;
    min-height: auto;
    padding: 0 1rem 2rem;
  }

  .intro-title {
    font-size: clamp(3.5rem, 21vw, 7.2rem);
    line-height: 0.82;
  }

  .sweep-title {
    padding-inline: 0;
  }

  .sweep-title:nth-child(2) {
    text-align: left;
  }

  .intro-nav {
    margin-top: 1.25rem;
    gap: 0.18rem;
    font-size: clamp(2.1rem, 12vw, 4rem);
    line-height: 0.96;
  }

  .sweep-link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .sweep-link:nth-child(2),
  .sweep-link:nth-child(4) {
    align-self: flex-start;
    text-align: left;
  }

  .sweep-link:nth-child(2):hover,
  .sweep-link:nth-child(2):focus-visible,
  .sweep-link:nth-child(4):hover,
  .sweep-link:nth-child(4):focus-visible {
    transform: translateX(0.25rem);
  }

  .takeoff-panel {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
  }

  .counter-grid {
    gap: 0.75rem;
  }

  .gallery-strip,
  .page {
    width: min(100% - 1.5rem, var(--max-width));
  }

  .gallery-strip {
    padding: 1rem 0 4rem;
    gap: 3rem;
  }

  .feature-row,
  .feature-row-reverse,
  .two-column,
  .contact-grid,
  .stat-band {
    grid-template-columns: 1fr;
  }

  .feature-row-reverse .image-panel {
    order: 0;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 1.5rem, var(--max-width));
    padding: 1rem 0;
  }

  .site-nav {
    width: 100%;
    gap: 0.7rem;
    font-size: 0.82rem;
  }

  .page {
    padding: 2rem 0 4rem;
  }

  .page-hero {
    padding: 2.5rem 0 3rem;
  }

  .page-hero h1 {
    font-size: clamp(2.6rem, 16vw, 5rem);
  }

  .feature-copy h2 {
    font-size: clamp(2rem, 11vw, 3.6rem);
  }

  .feature-copy p,
  .page-hero p,
  .rich-text p,
  .stat-band p {
    font-size: 1rem;
  }

  .image-panel {
    min-height: 16rem;
  }

  .content-band {
    padding: 2.25rem 0;
  }

  .term-grid {
    gap: 0.6rem;
  }

  .term-grid .info-term {
    width: 100%;
  }

  .team-member,
  .team-member:nth-child(even) {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    text-align: left;
  }

  .team-member:nth-child(even) img,
  .team-member:nth-child(even) .team-photo-placeholder {
    order: 0;
  }

  .team-member img,
  .team-photo-placeholder {
    width: 6.75rem;
  }

  .about-support {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .stat-band {
    gap: 1rem;
  }

  .contact-link {
    font-size: clamp(1.05rem, 6vw, 1.65rem);
  }
}

@media (max-width: 420px) {
  .intro-title {
    font-size: clamp(3rem, 19vw, 4.8rem);
    line-height: 0.86;
  }

  .intro-nav {
    font-size: clamp(1.65rem, 9.6vw, 2.6rem);
  }

  .counter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .counter-item {
    padding: 0.85rem 0 0;
  }

  .counter-number {
    font-size: clamp(1.75rem, 10vw, 2.4rem);
  }

  .counter-label {
    font-size: clamp(0.62rem, 3vw, 0.74rem);
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .sweep-title,
  .sweep-link {
    opacity: 1;
  }
}
