@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Serif+4:wght@300;400;600&family=Space+Mono:wght@400;700&display=swap");

:root {
  --black: #0b0b0b;
  --white: #f5f5f5;
  --gray: #9b9b9b;
  --soft: #e3e3e3;
  --accent: #1f1f1f;
  --line: rgba(245, 245, 245, 0.2);
  --shadow: rgba(0, 0, 0, 0.4);
  --display: "Playfair Display", "Times New Roman", serif;
  --mono: "Space Mono", "Courier New", monospace;
  --body: "Source Serif 4", "Georgia", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 10%, #2a2a2a, #0b0b0b 60%);
  color: var(--white);
  font-family: var(--body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 1;
}

.hero {
  position: relative;
  padding: 40px 6vw 80px;
  min-height: 85vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 40px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
}

.logo-mark {
  font-size: 22px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  margin-left: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  position: relative;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 16px;
}

.lang-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lang-icon:hover,
.lang-icon:focus-visible {
  border-color: rgba(245, 245, 245, 0.6);
  box-shadow: 0 0 10px rgba(245, 245, 245, 0.2);
  transform: translateY(-2px) scale(1.05);
  animation: plane-wiggle 0.6s ease-in-out infinite;
}

@keyframes plane-wiggle {
  0%,
  100% {
    transform: translateY(-2px) translateX(0) scale(1.05);
  }
  25% {
    transform: translateY(-2px) translateX(-4px) scale(1.05);
  }
  50% {
    transform: translateY(-2px) translateX(4px) scale(1.05);
  }
  75% {
    transform: translateY(-2px) translateX(-2px) scale(1.05);
  }
}

.lang-menu {
  position: relative;
}

.lang-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px 0;
  position: absolute;
  right: 0;
  min-width: 120px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  display: none;
  z-index: 5;
}

.lang-list.open {
  display: block;
}

.lang-list li {
  padding: 8px 12px;
  cursor: pointer;
}

.lang-list li:hover {
  background: rgba(245, 245, 245, 0.1);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero-content {
  max-width: 560px;
  z-index: 2;
}

.eyebrow {
  font-family: var(--mono);
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
}

h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 88px);
  margin: 12px 0 16px;
}

.subtitle {
  color: var(--soft);
  font-size: 18px;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

button {
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  padding: 14px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 12px 24px var(--shadow);
}

.ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

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

.hero-graphic {
  position: absolute;
  right: 6vw;
  top: 120px;
  width: min(42vw, 420px);
  height: 320px;
  border: 1px solid var(--line);
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  z-index: 0;
  overflow: hidden;
}

.runway {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gray);
}

.map {
  position: relative;
  width: 100%;
  height: 200px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.9), rgba(7, 7, 7, 0.9));
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(245, 245, 245, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(0deg, rgba(245, 245, 245, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
}

.star {
  position: absolute;
  color: rgba(245, 245, 245, 0.6);
  text-shadow: 0 0 6px rgba(245, 245, 245, 0.3);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.star-one {
  left: 20%;
  top: 28%;
  font-size: 28px;
  transform: rotate(-8deg);
}

.star-two {
  left: 52%;
  top: 18%;
  font-size: 22px;
  transform: rotate(12deg);
}

.star-three {
  left: 68%;
  top: 62%;
  font-size: 26px;
  transform: rotate(-6deg);
}

.star-four {
  left: 32%;
  top: 54%;
  font-size: 20px;
  transform: rotate(14deg);
}

.star-five {
  left: 76%;
  top: 30%;
  font-size: 18px;
  transform: rotate(-12deg);
}

.star-six {
  left: 12%;
  top: 66%;
  font-size: 24px;
  transform: rotate(6deg);
}

.star-seven {
  left: 44%;
  top: 10%;
  font-size: 16px;
  transform: rotate(-4deg);
}

.star-eight {
  left: 6%;
  top: 22%;
  font-size: 18px;
  transform: rotate(10deg);
}

.star-nine {
  left: 58%;
  top: 44%;
  font-size: 20px;
  transform: rotate(-8deg);
}

.star-ten {
  left: 86%;
  top: 58%;
  font-size: 18px;
  transform: rotate(6deg);
}

.star-eleven {
  left: 36%;
  top: 72%;
  font-size: 22px;
  transform: rotate(-14deg);
}
.flight-line {
  position: absolute;
  left: 10%;
  top: 50%;
  width: 80%;
  height: 1px;
  border-top: 1px dashed rgba(245, 245, 245, 0.5);
}

.plane {
  position: absolute;
  left: 8%;
  top: 50%;
  font-size: 26px;
  transform: translateY(-50%);
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  animation: fly-across 9s linear infinite, bob 2s ease-in-out infinite;
}

.audio-track {
  padding: 8px 0 0;
  margin-top: -8px;
}

.track-line {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.track-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  opacity: 0.8;
  animation: sweep 4s linear infinite;
}

.track-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(245, 245, 245, 0.2);
}

.track-progress {
  position: absolute;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--white);
}

.track-plane {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  animation: plane-bob 1.6s ease-in-out infinite;
}

.track-plane:hover,
.track-plane:focus-visible {
  filter: drop-shadow(0 0 6px rgba(245, 245, 245, 0.4));
  transform: translate(-50%, -50%) scale(1.08);
}

.track-time {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gray);
  display: flex;
  gap: 6px;
  align-items: center;
}

@keyframes plane-bob {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-4px);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(60%);
  }
}

@keyframes fly-across {
  0% {
    left: 8%;
  }
  100% {
    left: 88%;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(-5%);
  }
  50% {
    transform: translateY(-110%);
  }
}

.section {
  padding: 80px 6vw;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
}

.posts .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.post-card {
  border: 1px solid var(--line);
  padding: 24px;
  background: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(6px);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--white);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gray);
}

.text-link {
  background: transparent;
  color: var(--white);
  padding: 0;
  text-align: left;
}

.about {
  background: linear-gradient(135deg, #1b1b1b, #0b0b0b 70%);
}

.about-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.7);
}

.tags span {
  display: inline-block;
  margin-right: 12px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.altimeter {
  border: 1px solid var(--line);
  padding: 16px;
  display: grid;
  gap: 8px;
  font-family: var(--mono);
}

.altimeter strong {
  font-size: 18px;
}

.logbook {
  padding-bottom: 120px;
}

.route-dots {
  position: absolute;
  right: 28px;
  top: 78px;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  border: 1px dotted rgba(245, 245, 245, 0.25);
  opacity: 0.6;
}

.route-dots::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  border: 1px dotted rgba(245, 245, 245, 0.18);
}

.clouds {
  position: absolute;
  left: 20px;
  top: 140px;
  width: 160px;
  height: 80px;
  opacity: 0.8;
}

.clouds::before,
.clouds::after {
  content: "";
  position: absolute;
  background: rgba(245, 245, 245, 0.12);
  border: 1px solid rgba(245, 245, 245, 0.16);
  border-radius: 40px;
  height: 36px;
}

.clouds::before {
  width: 120px;
  top: 12px;
  left: 0;
}

.clouds::after {
  width: 90px;
  top: 32px;
  left: 40px;
}


.topics {
  background: linear-gradient(160deg, #121212, #0b0b0b 70%);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.topic-card {
  border: 1px solid var(--line);
  padding: 22px;
  background: rgba(10, 10, 10, 0.6);
  display: grid;
  gap: 12px;
}

.topic-card span {
  font-size: 20px;
}

.topic-card h3 {
  margin: 0;
  font-family: var(--display);
}

.logbook-grid {
  display: grid;
  gap: 24px;
}

.logbook-item {
  border-left: 2px solid var(--white);
  padding-left: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.code {
  font-family: var(--mono);
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--gray);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 6vw 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  margin-left: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
}

@media (max-width: 900px) {
  .hero {
    padding-bottom: 40px;
  }

  .hero-graphic {
    position: static;
    width: 100%;
    height: auto;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 16px;
  }

  .lang-switch {
    margin-left: 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
