/* RW Aerospace public site */
:root {
  --ink: #060a12;
  --ink-2: #0d1422;
  --ink-3: #141d2f;
  --line: #22304a;
  --text: #e9edf4;
  --muted: #9aa7bd;
  --gold: #f2b134;
  --gold-2: #ffd27a;
  --blue: #7ab8ff;
  --red: #ff7a6b;
  --green: #6fd39b;
  --w: 1120px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: 'wdth' 100;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; font-weight: 650; font-variation-settings: 'wdth' 110; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; font-variation-settings: 'wdth' 105; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
p.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
ul, ol { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin: 0.25rem 0; }
.wrap { width: min(var(--w), 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(6, 10, 18, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; }
.brand { display: flex; align-items: baseline; gap: 0.6rem; color: var(--text); font-weight: 700; font-variation-settings: 'wdth' 118; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand small { font-weight: 400; color: var(--muted); font-size: 0.78rem; font-variation-settings: 'wdth' 100; }
.nav { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; }
.nav a { color: var(--text); font-size: 0.97rem; }
.nav a[aria-current='page'] { color: var(--gold); }
.nav a.portal { border: 1px solid var(--line); padding: 0.4rem 0.8rem; border-radius: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 0.4rem 0.6rem; font: inherit; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem; gap: 0.2rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.6rem 0.4rem; }
}

/* Sections */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 5rem 0 3.5rem; }
.hero h1 { max-width: 20ch; margin: 0.6rem 0 1.2rem; }
.hero .kicker { color: var(--gold); font-weight: 500; }
.hero .lede { margin-bottom: 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn { display: inline-block; padding: 0.7rem 1.15rem; border-radius: 6px; border: 1px solid var(--line); color: var(--text); font-weight: 500; cursor: pointer; font: inherit; background: var(--ink-2); line-height: 1.2; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1a1200; }
.btn.primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Schedule strip (hero) */
.schedule { margin-top: 3rem; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.2rem 0.9rem; background: linear-gradient(180deg, var(--ink-2), var(--ink)); overflow: hidden; }
.schedule .label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.schedule .label b { color: var(--gold-2); font-weight: 400; }
.schedule svg { width: 100%; height: auto; }
.bar { fill: var(--ink-3); stroke: var(--line); }
.bar-fill { fill: var(--gold); transform-box: fill-box; transform-origin: left center; animation: grow 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bar-fill:nth-of-type(2) { animation-delay: 0.25s; }
.bar-fill:nth-of-type(3) { animation-delay: 0.5s; }
.bar-fill:nth-of-type(4) { animation-delay: 0.75s; }
.milestone { fill: var(--gold-2); }
.sched-text { fill: var(--text); font-family: var(--font); font-size: 13px; }
.sched-sub { fill: var(--muted); font-family: var(--font); font-size: 11.5px; }
.cp { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .bar-fill { animation: none; } }

/* Fact row */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts div { background: var(--ink-2); padding: 1.1rem 1.2rem; }
.facts strong { display: block; font-size: 1.02rem; margin-bottom: 0.2rem; }
.facts span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Practices */
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.practices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.practice { border-top: 2px solid var(--gold); padding-top: 1rem; }
.practice.core { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.practice h3 a { color: var(--text); }
.practice .tag { color: var(--gold); font-size: 0.85rem; }
.practice p { color: var(--muted); }
.practice ul { margin: 0.5rem 0 0; }
.practice .yg { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; margin-bottom: 0; }
@media (max-width: 820px) { .practices { grid-template-columns: 1fr; } .practice.core { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Steps (a true sequence) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 1rem; border-top: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -0.85rem; left: 0; background: var(--ink); color: var(--gold); font-weight: 700; padding-right: 0.5rem; font-size: 1.1rem; }
.step .dur { color: var(--gold); font-size: 0.9rem; display: block; margin: 0.2rem 0 0.5rem; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Domains */
.domains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.domains div { border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; background: var(--ink-2); }
.domains p { color: var(--muted); margin: 0.4rem 0 0; }
@media (max-width: 640px) { .domains { grid-template-columns: 1fr; } }

/* Readiness check */
.quiz { border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); padding: 1.5rem; }
.quiz ol { list-style: none; padding: 0; margin: 0; }
.quiz li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.quiz li:last-child { border-bottom: 0; }
.quiz .choice { display: flex; gap: 0.4rem; }
.quiz .choice label { border: 1px solid var(--line); border-radius: 6px; padding: 0.35rem 0.8rem; cursor: pointer; color: var(--muted); }
.quiz .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz .choice input:checked + span { color: var(--ink); }
.quiz .choice label:has(input:checked) { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.quiz .choice label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.quiz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.quiz-foot .score { font-size: 1.6rem; font-weight: 700; font-variation-settings: 'wdth' 112; }
.quiz-foot .verdict { color: var(--muted); flex: 1; min-width: 14rem; }
@media (max-width: 560px) { .quiz li { grid-template-columns: 1fr; } }

/* CTA band */
.cta { text-align: left; }
.cta .wrap { border: 1px solid var(--line); border-radius: 12px; padding: 2.4rem; background: var(--ink-2); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta .email { font-size: 1.3rem; font-weight: 600; color: var(--text); }
@media (max-width: 820px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.site-foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-foot nav a { color: var(--muted); }
.site-foot .notice { width: 100%; margin-top: 0.5rem; max-width: 70ch; }

/* Content pages */
.page-head { padding: 4rem 0 2.5rem; }
.page-head h1 { max-width: 22ch; margin: 0.4rem 0 1rem; }
.prose { max-width: 70ch; }
.prose h2 { margin: 2.4rem 0 0.8rem; }
.prose h3 { margin: 1.8rem 0 0.5rem; }
.prose p, .prose li { color: var(--text); }
.prose p.muted, .prose .muted { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.aside { border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem; background: var(--ink-2); position: sticky; top: 86px; }
.aside h3 { margin-bottom: 0.6rem; }
.aside ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td:first-child { font-weight: 600; white-space: nowrap; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1rem 0 2rem; }
.rules div { border-left: 2px solid var(--gold); padding-left: 1rem; }
.rules strong { display: block; }
.rules span { color: var(--muted); }
@media (max-width: 640px) { .rules { grid-template-columns: 1fr; } }
details { border-top: 1px solid var(--line); padding: 0.8rem 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::after { content: '+'; color: var(--gold); }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 0.6rem 0 0; }

/* Forms */
form.card { border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); padding: 1.5rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
label.f { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
label.f span { display: block; margin-bottom: 0.3rem; }
label.f span b { color: var(--gold); font-weight: 500; }
input[type='text'], input[type='email'], input[type='tel'], input[type='url'], input[type='file'], select, textarea {
  width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 0.65rem 0.75rem; font: inherit; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { color: var(--muted); font-size: 0.9rem; }
.alert { border-radius: 8px; padding: 0.9rem 1rem; margin: 1rem 0; border: 1px solid var(--line); }
.alert.ok { border-color: var(--green); color: var(--green); }
.alert.err { border-color: var(--red); color: var(--red); }
.hidden { display: none !important; }

/* Careers */
.jobs { display: grid; gap: 1rem; }
.job { border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.3rem; background: var(--ink-2); display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.job h3 a { color: var(--text); }
.job .meta { color: var(--muted); font-size: 0.93rem; margin-top: 0.3rem; }
.job .meta span + span::before { content: ' / '; color: var(--line); }
@media (max-width: 560px) { .job { grid-template-columns: 1fr; } }
.job-detail { max-width: 70ch; }
.job-detail h2, .job-detail h3, .job-detail h4 { margin: 1.6rem 0 0.5rem; }
.job-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.8rem; margin: 1.4rem 0 2rem; }
.job-facts div { border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.9rem; background: var(--ink-2); font-size: 0.95rem; }
.job-facts span { display: block; color: var(--muted); font-size: 0.8rem; }
.empty { border: 1px dashed var(--line); border-radius: 10px; padding: 2rem; color: var(--muted); }

/* News */
.news-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1.5rem; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.9rem; color: var(--muted); background: none; font: inherit; font-size: 0.9rem; cursor: pointer; }
.chip[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.news-month { margin: 2.2rem 0 0.6rem; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.news-item { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1.2rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.news-item time { color: var(--muted); font-size: 0.92rem; padding-top: 0.15rem; }
.news-item time small { display: block; color: var(--gold); }
.news-item h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.news-item h3 a { color: var(--text); }
.news-item p { color: var(--muted); margin: 0; }
.news-item .src { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.news-item .src a { color: var(--blue); }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 0.3rem; } }
.news-latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.news-latest article { border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; background: var(--ink-2); }
.news-latest time { color: var(--gold); font-size: 0.85rem; }
.news-latest h3 { font-size: 1.05rem; margin: 0.4rem 0; }
.news-latest h3 a { color: var(--text); }
.news-latest p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 820px) { .news-latest { grid-template-columns: 1fr; } }

/* Small screens */
@media (max-width: 640px) {
  .brand small { display: none; }
  .schedule { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .schedule svg { min-width: 680px; }
  section { padding: 3.2rem 0; }
  .hero { padding: 3.2rem 0 2.4rem; }
  .cta .wrap { padding: 1.6rem; }
}
