:root {
  --paper: #f4ede3;
  --sand: #ddd0bf;
  --sand-deep: #b89f84;
  --ink: #10151c;
  --ink-soft: #25303c;
  --night: #0c1218;
  --night-2: #161f29;
  --accent: #d57d3d;
  --accent-soft: rgba(213, 125, 61, 0.14);
  --line: rgba(16, 21, 28, 0.14);
  --line-light: rgba(244, 237, 227, 0.2);
  --text-soft: rgba(16, 21, 28, 0.72);
  --text-light: rgba(244, 237, 227, 0.76);
  --shadow: 0 24px 80px rgba(4, 8, 12, 0.12);
  --max: 1200px;
  --gutter: clamp(1.2rem, 2vw, 2rem);
  --radius: 1.5rem;
  --body-font: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --display-font: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --label-font: "IBM Plex Mono", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(213, 125, 61, 0.13), transparent 26%),
    linear-gradient(180deg, #f8f3ea 0%, #f4ede3 60%, #efe6d8 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(244, 237, 227, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(244, 237, 227, 0.82);
  border-color: rgba(16, 21, 28, 0.08);
}

.header-shell,
.footer-shell,
.section,
.subpage-shell,
.hero-grid,
.cta-shell,
.split-shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin: 0 auto;
}

.header-shell,
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 21, 28, 0.18);
  background: linear-gradient(180deg, rgba(213, 125, 61, 0.18), transparent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 1rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  color: var(--text-soft);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.hero,
.subpage-hero {
  position: relative;
  overflow: clip;
}

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(140deg, rgba(8, 12, 16, 0.95), rgba(19, 30, 42, 0.93)),
    linear-gradient(180deg, #10151c, #131a22);
  color: var(--paper);
}

.hero::before,
.subpage-hero::before,
.night-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 80%);
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(213, 125, 61, 0.35), transparent 18%),
    radial-gradient(circle at 82% 36%, rgba(255, 255, 255, 0.09), transparent 24%),
    radial-gradient(circle at 88% 76%, rgba(213, 125, 61, 0.12), transparent 18%);
  transform: scale(1.05);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(5.25rem, 10vw, 8rem) 0 3rem;
}

.hero-copy {
  display: grid;
  align-content: end;
  gap: 1.2rem;
  padding-bottom: 1rem;
}

.hero-aside {
  display: grid;
  gap: 1rem;
  align-self: center;
  justify-self: end;
  max-width: 25rem;
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.25rem);
  border: 1px solid rgba(244, 237, 227, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 0.85rem 1rem 1rem;
  color: rgba(244, 237, 227, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.eyebrow,
.panel-label,
.panel-kicker,
.person-role {
  font-family: var(--label-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.eyebrow {
  color: rgba(244, 237, 227, 0.7);
}

.paper-section .eyebrow,
.sand-section .eyebrow {
  color: rgba(16, 21, 28, 0.52);
}

.hero-title,
.subpage-hero h1,
.section-head h2,
.quote-block h2,
.cta-shell h2,
.line-panel h2,
.line-panel h3 {
  font-family: var(--display-font);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-title {
  max-width: 10ch;
  font-size: clamp(3rem, 6.2vw, 5.9rem);
}

.hero-body,
.subpage-body {
  max-width: 46rem;
  font-size: clamp(1.04rem, 1.45vw, 1.2rem);
  color: var(--text-light);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-top: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--night);
  background: linear-gradient(180deg, #f8d0af, #d88b4f);
}

.button-secondary {
  color: var(--paper);
  border: 1px solid rgba(244, 237, 227, 0.22);
  background: rgba(244, 237, 227, 0.04);
}

.hero-panel {
  position: relative;
  align-self: center;
  max-width: 24rem;
  justify-self: end;
  padding: 1.5rem 1.5rem 1.7rem;
  border: 1px solid rgba(244, 237, 227, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-panel::after {
  content: "UFO Canada";
  position: absolute;
  right: 1.3rem;
  bottom: 1rem;
  color: rgba(244, 237, 227, 0.1);
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  font-family: var(--display-font);
  pointer-events: none;
}

.signal-list {
  list-style: none;
  padding: 1.2rem 0 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.signal-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--paper);
  line-height: 1.55;
}

.signal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}

.hero-note {
  display: grid;
  gap: 0.2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 237, 227, 0.14);
}

.hero-note span,
.detail-rail span,
.title-row small {
  color: rgba(244, 237, 227, 0.62);
  font-size: 0.85rem;
}

.network-section {
  padding-top: clamp(3.8rem, 6vw, 5rem);
}

.marquee-strip {
  overflow: hidden;
  border-top: 1px solid rgba(244, 237, 227, 0.08);
  border-bottom: 1px solid rgba(16, 21, 28, 0.08);
  background: #10151c;
  color: rgba(244, 237, 227, 0.8);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0.9rem 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  animation: drift 28s linear infinite;
}

.marquee-track span::after {
  content: "•";
  margin-left: 2rem;
  color: rgba(213, 125, 61, 0.8);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-30%);
  }
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.paper-section {
  color: var(--ink);
}

.sand-section {
  background: linear-gradient(180deg, rgba(184, 159, 132, 0.16), rgba(184, 159, 132, 0.08));
}

.night-section {
  position: relative;
  overflow: clip;
  color: var(--paper);
  background:
    radial-gradient(circle at top right, rgba(213, 125, 61, 0.14), transparent 18%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}

.section-head {
  display: grid;
  gap: 0.85rem;
  max-width: 52rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.quote-block h2,
.cta-shell h2,
.line-panel h2,
.line-panel h3 {
  font-size: clamp(1.85rem, 3.8vw, 3.5rem);
}

.capability-grid,
.people-grid,
.check-grid {
  display: grid;
  gap: 1.2rem;
}

.capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.line-panel,
.person,
.copy-panel,
.faq-item,
.check-item {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.line-panel,
.person {
  display: grid;
  gap: 1rem;
}

.line-panel h3 {
  max-width: 14ch;
  font-size: clamp(1.55rem, 2.15vw, 2.2rem);
}

.line-panel p,
.person p,
.quote-block p,
.copy-panel p,
.faq-item p,
.cta-shell p,
.check-item {
  color: var(--text-soft);
  font-size: 1rem;
  text-wrap: pretty;
}

.line-panel a {
  font-weight: 700;
  color: var(--ink);
}

.split-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.quote-block,
.detail-rail,
.contact-stack {
  display: grid;
  gap: 1rem;
}

.quote-block p {
  max-width: 40rem;
  color: var(--text-light);
  font-size: 1.03rem;
}

.detail-rail {
  padding-left: 1.2rem;
  border-left: 1px solid rgba(244, 237, 227, 0.16);
}

.detail-rail div {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(244, 237, 227, 0.1);
}

.detail-rail strong {
  font-weight: 700;
  line-height: 1.45;
}

.title-wall {
  display: grid;
  border-top: 1px solid var(--line);
}

.title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.title-row span {
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  line-height: 1.1;
  transition:
    transform 220ms ease,
    color 220ms ease;
}

.title-row:hover span {
  color: var(--accent);
  transform: translateX(6px);
}

.person h3 {
  font-size: 1.6rem;
  font-family: var(--display-font);
  letter-spacing: -0.03em;
}

.people-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 1.02rem;
  padding-right: 2rem;
  position: relative;
}

.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding-top: 0.9rem;
  max-width: 52rem;
}

.cta-section {
  background: linear-gradient(180deg, rgba(16, 21, 28, 0.96), rgba(16, 21, 28, 0.88));
  color: var(--paper);
}

.cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.cta-shell p {
  color: var(--text-light);
}

.contact-stack a {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(244, 237, 227, 0.08);
  background: #10151c;
  color: rgba(244, 237, 227, 0.68);
}

.footer-shell {
  font-size: 0.9rem;
}

.subpage-hero {
  padding: clamp(5rem, 10vw, 8rem) 0 3rem;
  background:
    radial-gradient(circle at 85% 14%, rgba(213, 125, 61, 0.18), transparent 16%),
    linear-gradient(180deg, #f7f0e7 0%, #f1e7d9 100%);
}

.subpage-shell {
  display: grid;
  gap: 1rem;
}

.subpage-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.subpage-body {
  color: var(--text-soft);
}

.check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-item {
  font-weight: 700;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: rise-in 760ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-delay-1 {
  animation-delay: 80ms;
}

.reveal-delay-2 {
  animation-delay: 160ms;
}

.reveal-delay-3 {
  animation-delay: 240ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-shell,
  .cta-shell,
  .capability-grid,
  .people-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 5.5rem;
  }

  .hero-title,
  .subpage-hero h1 {
    max-width: 100%;
  }

  .hero-panel {
    justify-self: stretch;
    max-width: none;
  }

  .hero-aside {
    justify-self: stretch;
    max-width: none;
  }

  .header-shell,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .header-shell,
  .footer-shell {
    gap: 0.9rem;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .title-row {
    align-items: start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .hero-grid {
    padding-bottom: 2.4rem;
  }

  .hero-title {
    font-size: clamp(2.7rem, 13vw, 4.3rem);
    max-width: 9ch;
  }

  .section-head h2,
  .quote-block h2,
  .cta-shell h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .line-panel h3,
  .person h3 {
    max-width: 100%;
    font-size: 1.5rem;
  }
}
