/* TheOmniWing.com — stylesheet
   Palette anchor: the steel blue of Mike Kelsey's video title cards.
   Paper is white. Ink is a blue-black. Orange appears only where something is cut. */

:root {
  --sky: #4E87B1;
  --sky-deep: #2F5F85;
  --sky-ink: #1F3B52;
  --sky-pale: #E3EDF4;
  --sky-mist: #F2F6F9;
  --ink: #1F2D3A;
  --text: #33414D;
  --muted: #66727D;
  --rule: #D5DCE2;
  --paper: #FFFFFF;
  --paper-2: #F3F4F0;
  --paper-back: #E7EBE4;
  --cut: #E8641B;
  --tape: #A9DBB1;
  --tape-edge: #4F9C5E;
  --focus: #E8641B;
  --max: 1120px;
  --measure: 66ch;
  --radius: 6px;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Barlow", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { 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(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sky-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1em; max-width: var(--measure); }
p.lede { font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
small, .small { font-size: 0.9rem; }
.muted { color: var(--muted); }
ul, ol { padding-left: 1.3em; max-width: var(--measure); }
li { margin-bottom: 0.35em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--sky);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.4;
  max-width: var(--measure);
}
blockquote cite { display: block; font-style: normal; color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-tint { background: var(--sky-mist); }
.section-ink { background: var(--sky-ink); color: #DCE7EF; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink a { color: #BBD5E8; }
.section-ink p { color: #DCE7EF; }

/* ---------- navigation ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 66px; flex-wrap: wrap; padding: 10px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.01em;
}
.brand svg { width: 38px; height: 26px; color: var(--sky); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 1rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sky-ink); border-bottom-color: var(--sky); }
.nav-links a.nav-cta { color: var(--sky-deep); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; line-height: 1;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--sky-deep); color: #fff; }
.btn-primary:hover { background: var(--sky-ink); color: #fff; }
.btn-secondary { background: transparent; color: var(--sky-ink); border-color: var(--sky); }
.btn-secondary:hover { background: var(--sky-pale); color: var(--sky-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 2rem 3rem; align-items: center; }
.hero h1 { margin-bottom: 0.5rem; max-width: 12ch; }
.hero .lede { max-width: 42ch; }
.hero-figure { margin: 0; position: relative; }
.hero-wing {
  width: 100%; height: auto; display: block; border-radius: 10px;
  box-shadow: 0 22px 44px -24px rgba(20, 54, 89, 0.6), 0 2px 6px rgba(20, 54, 89, 0.12);
}
.hero-figure figcaption { margin-top: 0.85rem; font-size: 0.95rem; color: var(--muted); text-align: center; }
/* The blueprint draws itself once: grid, plan shadow, edges, faces, callouts, title block. */
@media (prefers-reduced-motion: no-preference) {
  .hero-wing.draw .bp-grid, .hero-wing.draw .bp-ground, .hero-wing.draw .bp-model,
  .hero-wing.draw .bp-callouts, .hero-wing.draw .bp-title { opacity: 0; animation: bpfade 0.8s ease-out forwards; }
  .hero-wing.draw .bp-grid { animation-delay: 0.1s; }
  .hero-wing.draw .bp-ground { animation-delay: 0.5s; }
  .hero-wing.draw .bp-model { animation-delay: 1.6s; animation-duration: 1.1s; }
  .hero-wing.draw .bp-callouts { animation-delay: 2.5s; }
  .hero-wing.draw .bp-title { animation-delay: 2.8s; }
  .hero-wing.draw .bp-edge { stroke-dasharray: 900; stroke-dashoffset: 900; animation: bpdraw 1.7s ease-in-out forwards; animation-delay: 0.7s; }
  @keyframes bpfade { to { opacity: 1; } }
  @keyframes bpdraw { to { stroke-dashoffset: 0; } }
}
@media (max-width: 560px) {
  .hero-wing .bp-callouts, .hero-wing .bp-title { display: none; }
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.hero-facts li strong { color: var(--ink); font-weight: 600; }

/* ---------- the three wings ---------- */
.flightline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; align-items: end; margin-top: 2rem; }
.wingcard { text-decoration: none; color: inherit; display: block; padding-top: 1rem; border-top: 3px solid var(--sky-pale); }
.wingcard:hover { border-top-color: var(--sky); }
.wingcard .sil { height: 120px; display: flex; align-items: flex-end; margin-bottom: 1rem; color: var(--ink); }
.wingcard .sil svg { height: 100%; width: auto; }
.wingcard h3 { margin-bottom: 0.2rem; }
.wingcard .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.wingcard p { font-size: 1rem; margin: 0; }
.wingcard .go { display: inline-block; margin-top: 0.6rem; color: var(--sky-deep); font-weight: 600; }
.wingcard:hover .go { text-decoration: underline; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--sky-pale); color: var(--sky-ink); vertical-align: middle; }
.tag-paid { background: #FBE9DD; color: #8A3A0E; }

/* ---------- media rows ---------- */
.media-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.media-row.reverse > :first-child { order: 2; }
.media-row img { border-radius: var(--radius); width: 100%; }
figure { margin: 0; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- video poster (click to load) ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; background: #0f1a24; border-radius: var(--radius); overflow: hidden;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer; color: #fff; padding: 0;
}
.video-play .pill {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.2rem 0.7rem 0.9rem;
  background: rgba(31,45,58,0.82); border-radius: 999px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  letter-spacing: 0.01em; backdrop-filter: blur(2px);
}
.video-play .pill svg { width: 22px; height: 22px; }
.video-play:hover .pill { background: var(--sky-deep); }
.video-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- guide pages ---------- */
.guide-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.guide-head h1 { max-width: 16ch; }
.guide-head .lede { max-width: 56ch; }
.materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 2rem; margin: 1.75rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--rule); list-style: none; }
.materials li { margin: 0; font-size: 1rem; }
.materials li strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.template-box {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.25rem 2rem; align-items: center;
  margin: 2rem 0 0; padding: 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2);
}
.template-box .box-title { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; color: var(--ink); line-height: 1.05; margin: 0 0 0.4rem; }
.template-box p { font-size: 1rem; }
.template-box .btn { margin: 0.25rem 0 0.75rem; }
.template-thumb { display: block; }
.template-thumb img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; background: #fff; box-shadow: 0 10px 24px -16px rgba(31,45,58,0.5); }
@media (max-width: 760px) { .template-box { grid-template-columns: 1fr; } }
.legend-wrap { margin-top: 1.5rem; }
.legend-wrap summary { cursor: pointer; font-weight: 600; color: var(--sky-deep); }
.legend-wrap img { max-width: min(420px, 100%); margin-top: 0.75rem; }

.progress {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--rule); font-size: 0.95rem;
}
.progress .wrap { display: flex; align-items: center; gap: 1rem; min-height: 44px; }
.progress .bar { flex: 0 0 140px; height: 4px; background: var(--sky-pale); border-radius: 2px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--sky); transition: width 200ms ease; }
.progress .label { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress .label span { color: var(--muted); font-weight: 400; }

.step {
  padding: 2.5rem 0 2.75rem; border-top: 1px solid var(--rule); scroll-margin-top: 60px;
}
.step:first-child { border-top: 0; }
.step-head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1rem; }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--sky);
  min-width: 1.6ch;
}
.step h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; }
.step-diagram { margin: 0 0 1.5rem; }
.step-diagram img { width: 100%; height: auto; }
.step-text { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: start; }
.step-text .copy { grid-column: 1; }
.step-text .copy > :last-child { margin-bottom: 0; }
.step p { font-size: 1.02rem; }
.tip { background: var(--sky-mist); border-left: 3px solid var(--sky); padding: 0.7rem 0.9rem; margin: 1rem 0; font-size: 0.98rem; max-width: var(--measure); }
.tip strong { color: var(--sky-ink); }
.tip.warn { border-left-color: var(--cut); background: #FDF2EA; }
.tip.warn strong { color: #8A3A0E; }
.step-still { grid-column: 2; display: flex; flex-direction: column; gap: 0.6rem; max-width: 360px; }
.step-still img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.step-still .watch { font-size: 0.95rem; }
.watch-btn {
  background: none; border: 0; padding: 0; color: var(--sky-deep); font-weight: 600; cursor: pointer; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px; text-align: left;
}
.watch-btn:hover { color: var(--sky-ink); }
.watch-ext { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.finish { padding: 2.5rem 0 1rem; border-top: 1px solid var(--rule); }
.tune { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 2rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tune li { margin: 0; padding-top: 0.75rem; border-top: 2px solid var(--sky-pale); font-size: 1rem; }
.tune li strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }

/* ---------- story / flight ---------- */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; max-width: 760px; }
.timeline li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.timeline .yr { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--sky); line-height: 1.1; }
.timeline p { margin: 0; }
.quote-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
.quote-wall blockquote { margin: 0; font-size: 1.1rem; }
.diagram-wide { max-width: 560px; margin: 1.5rem 0; }
.compare { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; max-width: 640px; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule); }
.compare th { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); font-weight: 600; }
.compare td:last-child, .compare th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2.5rem 4rem; align-items: start; }
.buybox { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; background: var(--paper); position: sticky; top: 1rem; }
.buybox .price { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--ink); line-height: 1; }
.buybox .price small { font-size: 1rem; font-weight: 500; color: var(--muted); font-family: var(--font-text); margin-left: 0.4rem; }
.buybox ul { list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.buybox li { padding-left: 1.4rem; position: relative; font-size: 0.98rem; }
.buybox li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.35rem; border-left: 2px solid var(--tape-edge); border-bottom: 2px solid var(--tape-edge); transform: rotate(-45deg); }
.buybox .btn { width: 100%; justify-content: center; }
.buybox .fine { font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0; }
.contents { list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: part; max-width: 640px; }
.contents li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.contents li::before { counter-increment: part; content: counter(part); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--sky); line-height: 1; }
.contents strong { display: block; color: var(--ink); }
.contents span { font-size: 0.98rem; }
.preview-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.preview-strip img { border: 1px solid var(--rule); border-radius: 4px; }
.faq dt { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.faq dd { margin: 0.25rem 0 0; max-width: var(--measure); }
.notice { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--paper-2); font-size: 0.98rem; max-width: 720px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; font-size: 0.95rem; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 3rem; }
.site-footer .foot-h { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.05; margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: var(--sky-deep); }
.site-footer .legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.88rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 520px; }
  .flightline { grid-template-columns: 1fr; gap: 1.5rem; }
  .wingcard .sil { height: 90px; }
  .media-row, .media-row.reverse { grid-template-columns: 1fr; }
  .media-row.reverse > :first-child { order: 0; }
  .step-text { grid-template-columns: 1fr; }
  .step-text .copy, .step-still { grid-column: 1; }
  .step-still { flex-direction: row; align-items: center; max-width: none; }
  .step-still img { width: 150px; flex: 0 0 auto; }
  .product { grid-template-columns: 1fr; }
  .buybox { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { min-height: 56px; }
  .brand { font-size: 1.4rem; }
  .nav-links { gap: 2px 14px; font-size: 0.95rem; }
  .progress .bar { flex-basis: 70px; }
  .step-still img { width: 112px; }
  .step-num { font-size: 2.4rem; }
  .preview-strip { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 4.5rem minmax(0, 1fr); }
}

@media print {
  .site-header, .progress, .video, .site-footer, .btn-row { display: none !important; }
  .step { break-inside: avoid; grid-template-columns: 1fr; }
  a { color: inherit; text-decoration: none; }
}
