:root {
  --ink: #f3f0e8;
  --muted: #b8b8ad;
  --dim: #797d77;
  --black: #090c0d;
  --charcoal: #111717;
  --panel: #17201f;
  --line: rgba(222, 216, 198, 0.18);
  --green: #6f7d66;
  --green-dark: #334038;
  --steel: #8d9694;
  --accent: #118cf0;
  --accent-light: #52b9ff;
  --red: #9f4a3e;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, var(--black), #0e1111 44%, #141817);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(9, 12, 13, 0.88), rgba(9, 12, 13, 0));
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: clamp(9px, 1.8vw, 13px);
  min-width: 0;
}

.brand-emblem {
  display: grid;
  flex: 0 0 auto;
  width: clamp(38px, 4.8vw, 54px);
  height: clamp(38px, 4.8vw, 54px);
  place-items: center;
}

.brand-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-lockup {
  display: block;
  width: clamp(162px, 17vw, 235px);
  min-width: 0;
}

.site-nav a,
.eyebrow,
.section-number,
.panel-code,
.flight-log span,
.mission-ribbon span,
.maintenance-list span,
.engineering-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
}

.site-nav a {
  color: rgba(243, 240, 232, 0.78);
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  position: relative;
  z-index: 61;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 240, 232, 0.2);
  background: rgba(9, 12, 13, 0.78);
  cursor: pointer;
  list-style: none;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.mobile-menu[open] summary {
  border-color: rgba(82, 185, 255, 0.58);
  background: rgba(17, 140, 240, 0.18);
}

.mobile-menu[open] summary span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu[open] summary span:nth-child(2) {
  opacity: 0;
}

.mobile-menu[open] summary span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu[open]::before {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 7, 8, 0.68);
  backdrop-filter: blur(10px);
  content: "";
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: grid;
  align-content: start;
  width: min(360px, calc(100vw - 26px));
  min-height: 100dvh;
  padding: 96px 18px 24px;
  border-left: 1px solid rgba(82, 185, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(17, 140, 240, 0.14), transparent 38%),
    rgba(9, 12, 13, 0.98);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.48);
}

.mobile-menu-panel a {
  padding: 18px 2px;
  border-bottom: 1px solid rgba(243, 240, 232, 0.12);
  color: rgba(243, 240, 232, 0.86);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-menu-panel a:last-child {
  border-bottom: 0;
  color: var(--accent-light);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 13, 0.92) 0%, rgba(9, 12, 13, 0.62) 38%, rgba(9, 12, 13, 0.16) 72%),
    linear-gradient(180deg, rgba(9, 12, 13, 0.24) 0%, rgba(9, 12, 13, 0.4) 58%, #090c0d 100%),
    url("assets/aerovalor-advisors-hangar.png") center right / cover no-repeat;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 112px clamp(18px, 4vw, 48px) 44px;
  border: 1px solid rgba(243, 240, 232, 0.16);
  border-left-color: rgba(17, 140, 240, 0.46);
}

.hero::after {
  right: clamp(18px, 4vw, 48px);
  bottom: 44px;
  width: min(42vw, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 140, 240, 0.86), transparent);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(240px, 340px);
  gap: 40px;
  align-items: end;
  width: min(var(--max), calc(100% - 36px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 145px 0 64px;
}

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

.mission-ribbon {
  position: absolute;
  top: 116px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(17, 23, 23, 0.62);
}

.mission-ribbon strong {
  color: var(--accent-light);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 1.05;
}

.tagline {
  margin-bottom: 22px;
  color: var(--accent-light);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 620px;
  color: rgba(243, 240, 232, 0.82);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(243, 240, 232, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button.primary {
  border-color: rgba(82, 185, 255, 0.8);
  background: var(--accent);
  color: #ffffff;
}

.button.secondary {
  background: rgba(17, 23, 23, 0.58);
  color: var(--ink);
}

.flight-log {
  align-self: end;
  border-top: 1px solid rgba(243, 240, 232, 0.28);
  background: rgba(9, 12, 13, 0.48);
}

.flight-log div {
  padding: 18px 0;
  border-bottom: 1px solid rgba(243, 240, 232, 0.14);
}

.flight-log strong {
  display: block;
  margin-top: 5px;
  color: rgba(243, 240, 232, 0.86);
  font-size: 0.92rem;
  font-weight: 600;
}

.intro-band {
  display: grid;
  grid-template-columns: 180px minmax(0, 840px);
  gap: clamp(24px, 6vw, 72px);
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.intro-band p {
  margin-bottom: 0;
  color: rgba(243, 240, 232, 0.88);
  font-size: clamp(1.15rem, 2.1vw, 1.72rem);
  line-height: 1.35;
}

.section,
.values,
.contact {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: clamp(24px, 6vw, 72px);
  margin-bottom: 42px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.05;
}

.mission-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49%, rgba(222, 216, 198, 0.1) 50%, transparent 51%) 0 0 / 34px 34px,
    rgba(17, 23, 23, 0.72);
}

.capability-panel {
  min-height: 260px;
  padding: clamp(22px, 4vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-panel:nth-child(even) {
  border-right: 0;
}

.primary-panel {
  min-height: 340px;
  background: linear-gradient(135deg, rgba(17, 140, 240, 0.18), rgba(17, 23, 23, 0));
}

.panel-code {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent-light);
}

h3 {
  max-width: 480px;
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.12;
}

.capability-panel p,
.maintenance-copy p,
.engineering-copy p,
.contact p {
  max-width: 650px;
  color: rgba(243, 240, 232, 0.72);
}

.maintenance {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 7vw, 92px);
  border-top: 1px solid var(--line);
}

.maintenance-list {
  border-top: 2px solid rgba(17, 140, 240, 0.76);
}

.maintenance-list div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.maintenance-list strong {
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 650;
}

.engineering {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
}

.schematic-frame {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(243, 240, 232, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(243, 240, 232, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 72% 28%, rgba(17, 140, 240, 0.2), transparent 28%),
    rgba(17, 23, 23, 0.58);
}

.schematic-rule {
  position: absolute;
  top: 50%;
  left: 13%;
  width: 74%;
  height: 1px;
  background: rgba(243, 240, 232, 0.38);
  transform: rotate(-18deg);
}

.schematic-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  background: #101615;
}

.node-a {
  top: 68%;
  left: 18%;
}

.node-b {
  top: 45%;
  left: 51%;
  border-color: var(--green);
}

.node-c {
  top: 25%;
  left: 78%;
  border-color: var(--red);
}

.engineering-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.engineering-meta span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: rgba(243, 240, 232, 0.78);
  background: rgba(17, 23, 23, 0.7);
}

.values {
  border-top: 1px solid var(--line);
}

.code-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(243, 240, 232, 0.32);
}

.code-list div {
  min-height: 170px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.code-list div:last-child {
  border-right: 0;
}

.code-list span {
  display: block;
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
}

.contact-button {
  min-width: 238px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 355px);
}

.footer-emblem {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
}

.footer-lockup {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-emblem img,
.footer-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 18px clamp(28px, 5vw, 58px);
  justify-content: end;
  align-items: center;
}

.footer-contact div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.footer-contact span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contact a {
  color: rgba(243, 240, 232, 0.78);
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  font-weight: 750;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    flex: 0 0 auto;
  }

  .brand-mark {
    max-width: min(72vw, 320px);
  }

  .brand-lockup {
    width: clamp(152px, 48vw, 224px);
  }

  .hero-grid,
  .mission-board,
  .maintenance,
  .engineering,
  .contact,
  .intro-band,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 24px;
    padding-top: 132px;
  }

  .mission-ribbon {
    position: static;
    width: fit-content;
  }

  .flight-log {
    max-width: 440px;
  }

  h1 {
    max-width: 520px;
    font-size: clamp(2.05rem, 10vw, 3.45rem);
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    justify-content: flex-start;
    width: 100%;
  }

  .capability-panel,
  .capability-panel:nth-child(even) {
    border-right: 0;
  }

  .code-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .code-list div:nth-child(even) {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .hero::before {
    inset: 96px 18px 28px;
  }

  .hero-image {
    background:
      linear-gradient(90deg, rgba(9, 12, 13, 0.95), rgba(9, 12, 13, 0.48)),
      linear-gradient(180deg, rgba(9, 12, 13, 0.2), #090c0d),
      url("assets/aerovalor-advisors-hangar.png") 58% center / cover no-repeat;
  }

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

  h1 {
    font-size: clamp(1.95rem, 11vw, 2.85rem);
  }

  .mobile-menu-panel {
    width: min(330px, calc(100vw - 20px));
  }

  .footer-brand {
    width: min(100%, 305px);
  }

  .maintenance-list div {
    grid-template-columns: 44px 1fr;
  }

  .schematic-frame {
    min-height: 280px;
  }

  .code-list {
    grid-template-columns: 1fr;
  }

  .code-list div {
    min-height: 112px;
    border-right: 0;
  }
}
