/* ==========================================================================
   VTAM v2 — "hangar at dusk", Elite-recipe structure
   Photo-led editorial build over the existing VTAM system:
   navy/ink grounds, logo sky-cyan as THE accent, zero border-radius,
   hairline structure, the data plate kept as the brand signature.
   Type: Encode Sans Semi Expanded (display + labels) / Be Vietnam Pro (body)
         / Lora italic (the owner's-story counterpoint voice).
   ========================================================================== */

:root {
  --ink: #06111b;
  --navy: #0b1c2c;
  --steel: #16293c;
  --line-dark: #26405a;
  --mute: #a7bccc;
  --paper: #edf1f4;
  --paper-dim: #cad6df;
  --cyan: #57b0de;
  --cyan-dim: #3d82ae;
  --ink-text: #10202f;
  --line-light: rgba(16, 32, 47, 0.16);
  --white: #f7fafc;

  --font-display: 'Encode Sans Semi Expanded', 'Noto Sans SC', sans-serif;
  --font-body: 'Be Vietnam Pro', 'Noto Sans SC', sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --hh: 84px;
}

/* --- Base ------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0313rem;
  font-weight: 500;
  line-height: 1.62;
  color: var(--ink-text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(1400px, 100% - 2 * var(--gutter)); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

::selection { background: var(--cyan); color: var(--ink); }

/* --- Type roles -------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
}

.display--hero { font-size: clamp(2.7rem, 7.6vw, 5.9rem); }
.display--xl   { font-size: clamp(2.1rem, 5vw, 3.7rem); }
.display--lg   { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.display--md   { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

.serif-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.42;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--cyan-dim);
  margin-bottom: 1.25rem;
}

.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--cyan); }

.on-dark .eyebrow { color: var(--cyan); }

.muted { color: rgba(16, 32, 47, 0.68); }
.on-dark .muted { color: var(--paper-dim); }

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  padding: 0.95rem 1.9rem 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn--solid { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
.btn--solid:hover { background: var(--paper); border-color: var(--paper); }

.btn--ghost { background: transparent; color: var(--ink-text); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.on-dark .btn--ghost { color: var(--paper); }
.on-dark .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* --- Nav ---------------------------------------------------------------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-nav .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--hh);
}

.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--paper);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-link:hover { color: var(--cyan); }
.nav-link[aria-current="page"] { border-color: var(--cyan); }

.nav-call {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--cyan);
  padding: 0.55rem 1.1rem 0.5rem;
  transition: background-color 0.3s var(--ease);
}

.nav-call:hover { background: var(--paper); }

.site-nav.scrolled,
.site-nav.solid {
  background: var(--ink);
  box-shadow: 0 1px 0 var(--line-dark);
}

.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--paper);
  margin: 6px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(6, 17, 27, 0.985);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-link { font-size: 1.45rem; }
  .nav-links .nav-call { font-size: 1.15rem; }
  body.nav-open { overflow: hidden; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-toggle.active { position: relative; z-index: 60; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 17, 27, 0.94) 0%, rgba(6, 17, 27, 0.35) 48%, rgba(6, 17, 27, 0.45) 100%);
}

.hero-content { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vh, 4.5rem); }

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.hero .serif-lead {
  max-width: 44ch;
  margin: 1.4rem 0 2.1rem;
  color: rgba(237, 241, 244, 0.92);
}

/* --- Data plate (kept from v1 — the brand signature) --------------------- */

.data-plate {
  display: grid;
  grid-template-columns: 1fr 1.32fr 1.14fr 0.96fr;
  background: var(--steel);
  border-top: 2px solid var(--cyan);
  box-shadow: inset 0 1px 0 rgba(237, 241, 244, 0.08);
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

.data-plate div {
  position: relative;
  padding: 1.05rem 1.25rem 1rem 2.1rem;
  border-right: 1px solid var(--line-dark);
}

.data-plate div:last-child { border-right: 0; }

/* rivet */
.data-plate div::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid rgba(237, 241, 244, 0.35);
  box-shadow: inset 0 1.5px 1px rgba(237, 241, 244, 0.25);
}

.data-plate b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
  margin-bottom: 0.15rem;
}

.data-plate span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.18rem);
  color: var(--paper);
  line-height: 1.25;
}

@media (max-width: 720px) {
  .data-plate { grid-template-columns: 1fr 1fr; }
  .data-plate div:nth-child(2) { border-right: 0; }
}

@media (max-width: 430px) {
  .data-plate { grid-template-columns: 1fr; }
  .data-plate div { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .data-plate div:last-child { border-bottom: 0; }
}

/* --- Sections ------------------------------------------------------------ */

.section { padding-block: var(--section-y); }

.section--dark { background: var(--ink); color: var(--paper); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--steel { background: var(--steel); color: var(--paper); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* --- Intro band ---------------------------------------------------------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.stat { padding: 1.5rem 1.25rem 0 0; border-right: 1px solid var(--line-light); }
.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 0.3rem;
}

.stat span { font-size: 0.93rem; font-weight: 500; color: rgba(16, 32, 47, 0.68); }

@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-light); padding-block: 1.1rem; }
  .stat:last-child { border-bottom: 0; }
}

/* --- Lifecycle service rows ----------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line-dark);
  text-decoration: none;
  color: inherit;
}

.service-row:last-of-type { border-bottom: 1px solid var(--line-dark); }

.service-row figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--steel); }

.service-row img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service-row:hover img { transform: scale(1.04); }

.stage-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.5rem;
}

.stage-code small {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mute);
  letter-spacing: 0.08em;
  margin-left: 0.6rem;
}

.service-row h3 { margin-bottom: 0.6rem; }

.service-row .go {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  transition: letter-spacing 0.3s var(--ease);
}

.service-row:hover .go { letter-spacing: 0.14em; }

@media (max-width: 720px) {
  .service-row { grid-template-columns: 1fr; }
}

/* --- Ramp strip (photo band) ---------------------------------------------- */

.ramp-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.ramp-strip figure { margin: 0; overflow: hidden; }

.ramp-strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

.ramp-caption { margin-top: 1.5rem; font-size: 0.93rem; color: var(--mute); }

@media (max-width: 720px) {
  .ramp-strip { grid-template-columns: 1fr; }
  .ramp-strip img { aspect-ratio: 16 / 10; }
}

/* --- Story / pull-quote ---------------------------------------------------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.story-grid figure { margin: 0; }
.story-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

blockquote.pull {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.38;
}

@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; }
}

/* --- CTA band ----------------------------------------------------------- */

.cta-band { text-align: center; border-top: 2px solid var(--cyan); }

.cta-band .display--xl { margin-bottom: 1rem; }

.cta-band p { max-width: 52ch; margin: 0 auto 2rem; color: var(--paper-dim); }

.cta-band .btn-row { justify-content: center; }

/* --- Page header (interior pages) ------------------------------------------ */

.page-header {
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--hh) + clamp(3rem, 9vh, 6rem)) 0 clamp(3rem, 6vw, 5rem);
}

.page-header .serif-lead { max-width: 46ch; color: rgba(237, 241, 244, 0.88); margin-top: 1.25rem; }

/* --- Anchor nav + service detail ------------------------------------------- */

.anchor-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  overflow-x: auto;
}

.anchor-nav ul { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); list-style: none; margin: 0; padding: 0; }

.anchor-nav a {
  display: block;
  padding: 0.9rem 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(16, 32, 47, 0.6);
  border-bottom: 2px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.anchor-nav a:hover { color: var(--cyan-dim); border-color: var(--cyan-dim); }

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line-light);
  scroll-margin-top: 70px;
}

.service-detail:last-of-type { border-bottom: 0; }

.service-detail figure { margin: 0; }
.service-detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-detail:nth-child(even) figure { order: 2; }

.service-detail h2 { margin-bottom: 1rem; }

.service-detail ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }

.service-detail ul li { position: relative; padding: 0.4rem 0 0.4rem 1.6rem; }

.service-detail ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 0.75rem; height: 2px;
  background: var(--cyan-dim);
}

@media (max-width: 760px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) figure { order: 0; }
}

/* --- Credentials table ------------------------------------------------------ */

.cred-table { border-top: 1px solid var(--line-light); margin-top: 1rem; }

.cred-table div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-light);
}

.cred-table b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan-dim);
}

/* --- About prose ------------------------------------------------------------ */

.prose { max-width: 68ch; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin: 2.75rem 0 0.9rem;
}

.prose h2:first-child { margin-top: 0; }

.about-figure { margin: clamp(2rem, 5vw, 3.5rem) 0; }
.about-figure img { width: 100%; object-fit: cover; }
.about-figure figcaption { font-size: 0.88rem; color: rgba(16, 32, 47, 0.6); padding-top: 0.6rem; }

/* --- Contact ----------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.contact-info > div { padding: 1.4rem 0; border-bottom: 1px solid var(--line-light); }
.contact-info > div:first-child { padding-top: 0; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--cyan-dim); }

.next-steps { list-style: none; margin: 0.5rem 0 0; padding: 0; counter-reset: step; }

.next-steps li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2.4rem;
  counter-increment: step;
}

.next-steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0; top: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cyan-dim);
}

/* --- Form ----------------------------------------------------------- */

.quote-form { display: grid; gap: 1.1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink-text);
  background: var(--white);
  border: 1px solid var(--line-light);
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease);
}

.field textarea { resize: vertical; min-height: 140px; }

.field input:focus,
.field textarea:focus { outline: none; border-color: var(--cyan-dim); }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-status { display: none; padding: 1rem 1.25rem; font-size: 1rem; border: 1px solid; }
.form-status.ok { display: block; border-color: #2c6e49; color: #2c6e49; background: rgba(44, 110, 73, 0.06); }
.form-status.err { display: block; border-color: #8e1e2d; color: #8e1e2d; background: rgba(142, 30, 45, 0.05); }

/* --- Footer ----------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--mute);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.site-footer .footer-grid img { height: 40px; width: auto; }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

.footer-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--paper);
}

.footer-links a:hover { color: var(--cyan); }

.footer-contact { text-align: right; }
.footer-contact a { color: var(--paper); text-decoration: none; }
.footer-contact a:hover { color: var(--cyan); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
}

/* --- Reveal on scroll ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-row img, .service-row .go { transition: none; }
}
