/* =========================================================================
   Sobo Aviation Research — v2 stylesheet
   Brand yellow #F2B705 · night navy · Montserrat / Inter
   ========================================================================= */

:root {
  --yellow:      #F2B705;
  --yellow-deep: #d79f03;
  --yellow-wash: rgba(242, 183, 5, 0.12);
  --yellow-line: rgba(242, 183, 5, 0.30);

  --night:   #0f1622;   /* dark section base */
  --night-2: #16202f;   /* raised dark surface */
  --night-3: #1d2a3b;   /* borders on dark */

  --ink:      #161c24;   /* text on light */
  --charcoal: #555a63;   /* secondary text on light (matches logo subtitle) */
  --muted:    #8b9099;

  --paper:   #f7f6f2;    /* light section base */
  --surface: #ffffff;
  --line:    #e6e4dc;

  --light-1: #eef0f3;    /* text on dark (primary) */
  --light-2: #a7afba;    /* text on dark (secondary) */

  --brand: "Montserrat", "Avenir Next", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --body:  "Inter", "Helvetica Neue", system-ui, -apple-system, Segoe UI, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--brand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--yellow); }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--yellow); }

h1, h2, h3, h4 { font-family: var(--brand); font-weight: 700; letter-spacing: -0.01em; margin: 0; }

.display {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.08; }
.h3 { font-size: 1.3rem; line-height: 1.25; }

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  max-width: 56ch;
}

p { margin: 0 0 1.1rem; }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--dark { background: var(--night); color: var(--light-1); }
.section--dark p { color: var(--light-2); }
.section--dark .h2, .section--dark h3 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--brand); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer; border: 1px solid transparent;
}
.btn--primary { background: var(--yellow); color: #1a1204; }
.btn--primary:hover { background: var(--yellow-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--light-1); border-color: var(--night-3); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(15, 22, 34, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--night-3);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--brand); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; color: var(--light-2);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--yellow); }
.nav__links a.nav-cta { color: #1a1204; background: var(--yellow); padding: 0.5rem 1rem; border-radius: 3px; }
.nav__links a.nav-cta:hover { background: var(--yellow-deep); color: #1a1204; }

@media (max-width: 720px) {
  .nav__logo img { height: 38px; }
  .nav__links { gap: 1rem; }
  .nav__links .hide-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: var(--light-1); overflow: hidden; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__art svg { width: 100%; height: 100%; display: block; }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(5rem, 12vw, 9rem); }
.hero__content { max-width: 42rem; }
.hero .display { color: #fff; }
.hero .display .hl { color: var(--yellow); }
.hero__sub { color: var(--light-2); margin: 1.6rem 0 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* fade at bottom for section blend */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(15,22,34,0)); z-index: 1; pointer-events: none;
}

/* flight-path animation in hero art */
.h-path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s ease-out 0.2s forwards; }
.h-fore { opacity: 0; animation: fade 1s ease 1.9s forwards; }
.h-dot  { opacity: 0; animation: fade 0.8s ease 1.8s forwards; }
.h-dot-ring { opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: fade 0.8s ease 1.8s forwards, ping 2.8s ease-out 2.4s infinite; }
.h-route { opacity: 0; animation: fade 1.4s ease forwards; }
.h-route.r1 { animation-delay: 0.6s; } .h-route.r2 { animation-delay: 0.9s; } .h-route.r3 { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes ping { 0%,100% { transform: scale(1); opacity: .5; } 55% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .h-path, .h-fore, .h-dot, .h-dot-ring, .h-route { animation: none; opacity: 1; stroke-dashoffset: 0; }
}

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--night-3); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 2rem 1.5rem; border-right: 1px solid var(--night-3); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--brand); font-weight: 800; font-size: 1.9rem; color: var(--yellow); line-height: 1; margin-bottom: 0.5rem; }
.stat span { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--light-2); text-transform: uppercase; font-family: var(--brand); font-weight: 500; }
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--night-3); }
}

/* ---------- Two-column (firm) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.media {
  position: relative; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line); background: var(--night);
  aspect-ratio: 4 / 3.2;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
/* real photo sits on top of the placeholder; if it fails to load it's removed and the placeholder shows */
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
/* placeholder look when no photo yet */
.media--ph { display: grid; place-items: center; background:
  radial-gradient(120% 100% at 50% 0%, #1a2536, #0f1622); }
.media--ph .ph-inner { text-align: center; color: var(--light-2); padding: 1.5rem; }
.media--ph .ph-mark { width: 46px; height: 46px; margin: 0 auto 1rem; }
.media--ph .ph-label { font-family: var(--brand); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.media--ph .ph-hint { font-size: 0.82rem; margin-top: 0.5rem; color: var(--muted); }

.profile-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.tag {
  font-family: var(--brand); font-weight: 500; font-size: 0.76rem;
  letter-spacing: 0.03em; padding: 0.4rem 0.85rem; border-radius: 20px;
  border: 1px solid var(--line); color: var(--charcoal); background: var(--surface);
}
.tag b { color: var(--ink); font-weight: 700; }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--night-3); margin-top: 3rem; border: 1px solid var(--night-3); border-radius: 4px; overflow: hidden; }
.cap { background: var(--night); padding: 2.2rem 2rem; }
.cap__icon { width: 40px; height: 40px; margin-bottom: 1.2rem; color: var(--yellow); }
.cap__icon svg { width: 100%; height: 100%; }
.cap h3 { color: #fff; margin-bottom: 0.6rem; }
.cap p { color: var(--light-2); font-size: 0.96rem; margin: 0; }
@media (max-width: 720px) { .caps { grid-template-columns: 1fr; } }

/* ---------- Research / poster gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }

.poster {
  display: block; position: relative; border-radius: 5px; overflow: hidden;
  border: 1px solid var(--line); background: var(--night);
  aspect-ratio: 3 / 4; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.poster:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(15,22,34,0.5); border-color: var(--yellow-line); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem;
  background: linear-gradient(to top, rgba(15,22,34,0.92), transparent);
  color: #fff; font-family: var(--brand); font-weight: 600; font-size: 0.9rem;
}

.note {
  margin-top: 2.2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--yellow);
  background: var(--yellow-wash); border-radius: 0 4px 4px 0;
  font-size: 0.92rem; color: var(--charcoal); max-width: 60ch;
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
@media (max-width: 720px) { .contact__grid { grid-template-columns: 1fr; } }
.mailto {
  font-family: var(--brand); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  color: #fff; text-decoration: none;
  border-bottom: 2px solid var(--night-3); padding-bottom: 0.35rem;
  transition: border-color 0.2s ease, color 0.2s ease; display: inline-block;
}
.mailto:hover { border-color: var(--yellow); color: var(--yellow); }
.contact__facts { font-family: var(--brand); font-size: 0.9rem; line-height: 2.1; color: var(--light-2); }
.contact__facts b { color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #0b1119; color: var(--light-2); padding-block: 2.8rem; border-top: 1px solid var(--night-3); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.4rem; }
.footer__inner img { height: 34px; opacity: 0.95; }
.footer__meta { font-size: 0.78rem; text-align: right; line-height: 1.7; }
.footer__meta .disc { color: var(--muted); max-width: 44ch; display: block; margin-top: 0.3rem; }
@media (max-width: 640px) { .footer__inner { flex-direction: column; align-items: flex-start; } .footer__meta { text-align: left; } }

/* ---------- Page header (research page) ---------- */
.page-head { background: var(--night); color: var(--light-1); padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-head .lead { color: var(--light-2); }
