/* Radiant Wing Solutions */

:root {
  --color-ink: #07111d;
  --color-ink-2: #0c1a2b;
  --color-panel: rgba(9, 20, 34, 0.72);
  --color-line: rgba(160, 200, 230, 0.18);
  --color-text: #e8eef4;
  --color-muted: #a9b8c7;
  --color-orange: hsl(33, 88%, 58%);
  --color-orange-strong: hsl(28, 92%, 52%);
  --color-hud: hsl(200, 100%, 62%);

  --font-body: 'Roboto', system-ui, sans-serif;
  --font-heading: 'Raleway', system-ui, sans-serif;
  --font-mono: 'Noto Sans Mono', ui-monospace, monospace;

  --container: 1200px;
  --gutter: 1rem;
  --section-space: clamp(4rem, 10vw, 8rem);
  --radius: 4px;
}

@media (min-width: 768px) {
  :root { --gutter: 2.5rem; }
}

/* Base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-ink);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; max-width: 16ch; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.375rem; }

p { margin: 0 0 1rem; }

a { color: inherit; }

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

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

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-orange);
  color: var(--color-ink);
  font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-hud);
}
.eyebrow::before { content: '// '; opacity: 0.6; }

.lede {
  max-width: 54ch;
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  color: var(--color-muted);
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button--primary {
  background: var(--color-orange);
  color: var(--color-ink);
}
.button--primary:hover { background: var(--color-orange-strong); }

.button--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-text);
}
.button--ghost:hover { border-color: var(--color-text); background: rgba(255, 255, 255, 0.06); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 29, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand__logo {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  fill: var(--color-orange);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }

.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  white-space: nowrap;
}

.brand__slogan {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }

.site-nav a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--color-muted);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--color-text); }

.site-nav .site-nav__cta {
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-orange);
  border-radius: var(--radius);
  color: var(--color-orange);
}
.site-nav .site-nav__cta:hover { background: var(--color-orange); color: var(--color-ink); }

@media (max-width: 600px) {
  .brand__slogan, .site-nav a:not(.site-nav__cta) { display: none; }
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(85vh, 780px);
  display: flex;
  align-items: center;
  padding-block: 3rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.55) 0%, rgba(7, 17, 29, 0.25) 40%, var(--color-ink) 100%),
    linear-gradient(90deg, rgba(7, 17, 29, 0.85) 0%, rgba(7, 17, 29, 0.2) 75%),
    url('../img/SKY2.jpg') center 60% / cover no-repeat;
}

.hero__frame {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero__content {
  position: relative;
  padding-inline: clamp(1rem, 5vw, 4.5rem);
}

.hud-frame {
  position: absolute;
  inset: 0 var(--gutter);
  width: calc(100% - var(--gutter) * 2);
  height: 100%;
  fill: none;
  stroke: var(--color-hud);
  stroke-width: 3;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
  opacity: 0.85;
}
.hud-frame path { vector-effect: non-scaling-stroke; }
.hud-frame .thin { stroke-width: 1; opacity: 0.6; }


/* Sections */

.section { padding-block: var(--section-space); }
.features { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--color-line);
}

.feature + .feature { border-top: 1px solid var(--color-line); }

@media (min-width: 860px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature + .feature { border-top: 0; border-left: 1px solid var(--color-line); }
}

.feature {
  padding: 2.25rem 2rem;
  background: var(--color-ink);
  transition: background-color 0.3s;
}
.feature:hover { background: var(--color-ink-2); }

.feature__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--color-orange);
  stroke-width: 2;
  stroke-linecap: square;
}
.feature__icon .thin { stroke-width: 1.25; opacity: 0.7; }
.feature__icon .dot { fill: var(--color-orange); stroke: none; }

.feature p { color: var(--color-muted); margin: 0; }

/* Contact */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--color-ink) 0%, rgba(7, 17, 29, 0.35) 35%, rgba(7, 17, 29, 0.35) 65%, var(--color-ink) 100%),
    url('../img/SKY1.jpg') center / cover no-repeat;
}

.contact__panel {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (min-width: 860px) {
  .contact__panel { grid-template-columns: 1.3fr 1fr; }
}

.contact__panel .lede { margin-bottom: 0; }

.contact__corner {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: var(--color-orange);
  stroke-width: 4;
}

.contact__email {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--color-orange);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  min-width: 0;
}
.contact__email:hover { background: var(--color-orange); color: var(--color-ink); }

.contact__email-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange);
}
.contact__email:hover .contact__email-label { color: var(--color-ink); }

.contact__email-address {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-line);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--color-text); }

/* 404 */

.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* Motion: HUD strokes draw themselves in, sections fade up on scroll.
   Only applied when JS is running so content is never hidden without it. */

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .draw :is(path, circle:not(.dot)) {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }
  .js .hero .draw path { animation: draw 1.4s 0.2s ease-in-out forwards; }
  .js .hero .draw .thin { animation-delay: 0.7s; }
  .js .is-visible .draw :is(path, circle:not(.dot)) { animation: draw 1.2s 0.2s ease-in-out forwards; }

  .js .hero__content { opacity: 0; transform: translateY(12px); animation: rise 0.8s 0.4s ease-out forwards; }

  .js .reveal { opacity: 0; transform: translateY(20px); }
  .js .reveal.is-visible { animation: rise 0.7s ease-out forwards; }
  .js .feature.reveal:nth-child(2) { animation-delay: 0.12s; }
  .js .feature.reveal:nth-child(3) { animation-delay: 0.24s; }
}
