:root {
  color-scheme: light;
  --ink: #11141b;
  --muted: #55606d;
  --line: #dce3e8;
  --paper: #ffffff;
  --soft: #f4f8f7;
  --green: #13833d;
  --green-deep: #075c2b;
  --cyan: #00a4bd;
  --cyan-soft: #d9f6f8;
  --shadow: 0 24px 70px rgba(14, 30, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(17, 20, 27, 0.09);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  fill: var(--green);
}

.brand-mark path:first-child {
  fill: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  color: #1d2530;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 28px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 1.22fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: min(680px, calc(100svh - 126px));
  padding: clamp(40px, 7vw, 86px) clamp(20px, 5vw, 72px) clamp(38px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 164, 189, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
  overflow: hidden;
}

.hero-copy {
  width: 100%;
  max-width: 650px;
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.4rem, 8vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero-copy p {
  max-width: 560px;
  margin: 30px 0 0;
  color: #2c3440;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.62;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.text-action:hover svg,
.text-action:focus-visible svg {
  transform: translateX(4px);
}

.hero-media {
  position: relative;
  margin: 0;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1.7;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 27, 0.1);
  box-shadow: var(--shadow);
  background: #d9eef3;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-section,
.research-section,
.direction-section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.project-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}

.map-panel {
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(19, 131, 61, 0.12);
  background:
    linear-gradient(180deg, rgba(217, 246, 248, 0.5), rgba(244, 248, 247, 0.85)),
    var(--soft);
}

.map-panel svg {
  width: 100%;
  height: 100%;
  min-height: 320px;
  color: var(--green);
}

.map-panel pattern circle {
  fill: currentColor;
}

.continent {
  fill: rgba(19, 131, 61, 0.08);
  stroke: rgba(19, 131, 61, 0.16);
  stroke-width: 1.2;
}

.route {
  fill: none;
  stroke: url("#routeGradient");
  stroke-linecap: round;
  stroke-width: 2.2;
  opacity: 0.72;
}

.nodes circle {
  fill: #ffffff;
  stroke: var(--green);
  stroke-width: 3;
}

.section-copy {
  max-width: 680px;
  min-width: 0;
}

.section-label {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

.section-copy h2,
.center-copy h2,
.direction-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-copy p:not(.section-label),
.direction-copy p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.research-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f6faf9 100%);
}

.center-copy {
  max-width: 850px;
  margin: 0 auto clamp(42px, 6vw, 72px);
  text-align: center;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.focus-item {
  min-height: 270px;
  padding: clamp(22px, 4vw, 44px);
  border-right: 1px solid var(--line);
}

.focus-item:last-child {
  border-right: 0;
}

.focus-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.focus-item h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.focus-item p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.direction-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 36%, rgba(255, 255, 255, 0.62) 58%, rgba(255, 255, 255, 0.1) 100%),
    url("/assets/aviation-data-hero.png") center right / cover no-repeat;
}

.direction-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.direction-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: #54616f;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    min-height: 68px;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.7rem;
  }

  .hero,
  .project-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    aspect-ratio: 1.55;
  }

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

  .focus-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .focus-item:last-child {
    border-bottom: 0;
  }

  .direction-section {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(255, 255, 255, 0.38) 100%),
      url("/assets/aviation-data-hero.png") center / cover no-repeat;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    width: 100vw;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav-links {
    display: grid;
    width: min(100%, 342px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-links a {
    min-width: 0;
    padding: 8px 0;
    text-align: left;
  }

  .nav-links a:nth-child(2) {
    text-align: center;
  }

  .nav-links a:nth-child(3) {
    text-align: right;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    width: 100vw;
    padding-top: 34px;
  }

  .hero-copy,
  .hero-copy p,
  .hero-media {
    width: min(100%, 342px);
    max-width: min(100%, 342px);
  }

  .hero-copy p {
    width: min(100%, 342px);
  }

  .hero h1 {
    font-size: clamp(3.3rem, 17vw, 4.85rem);
  }

  .hero-copy p {
    margin-top: 22px;
  }

  .hero-media {
    aspect-ratio: 1.18;
  }

  .project-section,
  .research-section,
  .direction-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .map-panel,
  .map-panel svg {
    min-height: 250px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

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