/* Ka Aerospace — site styles */

@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #080a0e;
  --bg-raise: #0d1017;
  --ink: #e8e4dc;
  --ink-2: #b9b5ac;
  --ink-3: #9a9da5;
  --muted: #7a7d85;
  --gold: #c8a96e;
  --rule: rgba(255, 255, 255, 0.08);
  --gold-rule: rgba(200, 169, 110, 0.4);
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 73px;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 600px) {
  :root { --header-h: 118px; }
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); }
a:hover { color: var(--ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip {
  position: absolute;
  z-index: 10;
  left: var(--gutter);
  top: -100px;
  padding: 10px 14px;
  background: var(--bg-raise);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 40px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }

.site-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--gold); }

main { flex: 1 0 auto; display: flex; flex-direction: column; }

/* Type */

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 8.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display em, .door-line em, .contact-line em { font-style: italic; color: var(--gold); }

.eyebrow, .label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  margin: 0;
  max-width: 520px;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
}
.lede--wide { max-width: 600px; margin-top: 4px; }

/* Heroes */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1180px;
}

.hero--home {
  flex: 1 0 auto;
  justify-content: flex-end;
  min-height: clamp(560px, calc(100vh - var(--header-h)), 820px);
  min-height: clamp(560px, calc(100svh - var(--header-h)), 820px);
  padding-top: clamp(96px, 10vw, 150px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero--home .hero-content { gap: 32px; }

.hero--tagline {
  flex: 1 0 auto;
  justify-content: center;
  padding-top: clamp(72px, 11vw, 168px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.hero--solutions {
  padding-top: clamp(72px, 11vw, 168px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.rule { width: 48px; height: 1px; background: var(--gold); }

.flow {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 97%);
}

/* Home: the three doors */

.doors { padding: 0 var(--gutter) clamp(64px, 7vw, 96px); }
.door-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.door {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 304px;
  padding: 32px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.door:hover { background: var(--bg-raise); color: var(--ink); }
.door-label {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.door-num { color: var(--gold); }
.door-line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  line-height: 1.05;
}
.door-arrow { display: block; color: var(--muted); transition: transform 0.25s ease, color 0.25s ease; }
.door:hover .door-arrow { transform: translateX(6px); color: var(--gold); }

@media (max-width: 600px) {
  .door { min-height: 0; gap: 28px; padding: 28px 24px; }
}

/* Solutions */

.services {
  padding: clamp(64px, 7vw, 96px) var(--gutter) clamp(48px, 5vw, 72px);
  border-top: 1px solid var(--rule);
}
.services .label, .sectors .label { margin-bottom: 20px; }
.service-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.service {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.service-num {
  flex: 0 0 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.service h3 {
  flex: 1 1 260px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.2vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
}
.service p {
  flex: 2 1 380px;
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-3);
}

.sectors { padding: 0 var(--gutter) clamp(64px, 7vw, 96px); }
.sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  line-height: 1.3;
  color: var(--ink);
}

/* Contact */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 48px;
  padding: clamp(64px, 7vw, 96px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.contact-line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.1;
  color: var(--ink);
}
.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-email:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
