:root {
  --ink: #070f1c;
  --navy: #0a1628;
  --navy-2: #12233a;
  --navy-3: #1a3352;
  --gold: #c5a059;
  --gold-soft: #d4b87a;
  --gold-dim: rgba(197, 160, 89, 0.16);
  --fog: #d7e0ec;
  --mist: #9aadc4;
  --paper: #f3f6fb;
  --line: rgba(197, 160, 89, 0.28);
  --header-h: 4.5rem;
  --container-max: 1240px;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fog);
  background: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
.btn:focus-visible,
.mark:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  padding: 0.75rem var(--gutter);
  background: rgba(7, 15, 28, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
  display: flex;
  justify-content: center;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--container-max);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 2.75rem;
}

.mark__badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.mark__name {
  font-size: 0.95rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.5rem);
  font-size: 0.88rem;
  color: var(--mist);
}

.nav a {
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--gold-soft);
}

.nav__cta {
  color: var(--ink) !important;
  background: var(--gold);
  padding: 0.55rem 0.95rem;
  font-weight: 600;
}

.nav__cta:hover {
  background: var(--gold-soft);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--gutter);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(26, 51, 82, 0.55), transparent 60%),
    linear-gradient(160deg, #0a1628 0%, #070f1c 45%, #0d1c31 100%);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--gold);
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(197, 160, 89, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 75% 40%, #000 20%, transparent 75%);
}

.hero__schematic {
  position: absolute;
  right: -4%;
  top: 8%;
  width: min(58vw, 640px);
  opacity: 0.35;
  animation: drift 18s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-12px, 10px, 0); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: #f7f4ea;
}

.hero__line {
  margin: 1.15rem 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: var(--gold-soft);
  max-width: 32ch;
}

.hero__support {
  margin: 1rem 0 0;
  color: var(--mist);
  max-width: 44ch;
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--gold-soft);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--fog);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.pillars {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 2rem 0 0;
  padding: 0;
  color: var(--mist);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pillars li {
  position: relative;
  padding-left: 0.9rem;
}

.pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gold);
}

/* Portrait scaling dynamically based on screen width */
.hero__portrait {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: clamp(17rem, 26vw, 28rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: min(32rem, calc(100svh - var(--header-h) - 7rem));
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  filter: saturate(0.95) contrast(1.03);
}

.hero__meta {
  margin: 0.75rem 0 0;
  color: var(--mist);
  font-size: 0.85rem;
}

/* ==========================================================================
   Content Sections (Unified Rhythms & Fluid Gutters)
   ========================================================================== */

.section {
  padding-block: clamp(3.25rem, 6.5vh, 5.25rem);
  padding-inline: var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
  scroll-margin-top: var(--header-h);
}

.section--band {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(18, 35, 58, 0.55), rgba(7, 15, 28, 0.2));
  border-block: 1px solid rgba(197, 160, 89, 0.12);
  padding-inline: 0;
}

.section__intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section h2,
.contact h2,
.about h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  color: #f7f4ea;
  letter-spacing: -0.01em;
}

.section__intro p,
.about__copy > p,
.contact__card > p {
  margin: 0;
  color: var(--mist);
  font-size: 1.05rem;
}

.signals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 56rem;
}

.signals li {
  padding: 1.15rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, var(--gold-dim), transparent 75%);
  color: var(--fog);
  font-size: 1.05rem;
}

.signals span {
  display: block;
  margin-top: 0.35rem;
  color: var(--mist);
  font-size: 0.9rem;
}

.stages {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: stage;
  position: relative;
}

.stages li {
  counter-increment: stage;
  position: relative;
  padding: 1.1rem 1rem;
  background: var(--navy-2);
  border: 1px solid rgba(197, 160, 89, 0.14);
  min-height: 7.5rem;
}

.stages li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  right: -0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
  z-index: 1;
}

.stages li::before {
  content: "0" counter(stage);
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
}

.stages strong {
  display: block;
  font-size: 1.05rem;
  color: #f7f4ea;
  margin-bottom: 0.35rem;
}

.stages span {
  color: var(--mist);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

.panel {
  padding: 1.6rem;
  background: rgba(18, 35, 58, 0.55);
  border: 1px solid rgba(197, 160, 89, 0.14);
}

.panel--muted {
  background: rgba(7, 15, 28, 0.4);
}

.panel h3 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--fog);
}

.panel li + li {
  margin-top: 0.55rem;
}

.panel__note {
  margin: 1.25rem 0 0;
  color: var(--mist);
  font-size: 0.92rem;
}

/* About band: aligns precisely inside container */
.about {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.about__copy {
  max-width: 52rem;
}

.about__copy > p + p {
  margin-top: 1rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin: 2rem 0 0;
}

.facts div {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(197, 160, 89, 0.18);
}

.facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.facts dd {
  margin: 0;
  color: var(--fog);
}

/* Contact: purposeful tighter padding so card anchors the page */
.contact {
  text-align: center;
  scroll-margin-top: var(--header-h);
  padding-block: clamp(2.5rem, 5vh, 4rem);
}

.contact__card {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.14), transparent 55%),
    var(--navy-2);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.contact__fine {
  margin-top: 1.5rem !important;
  font-size: 0.88rem !important;
}

.site-footer {
  border-top: 1px solid rgba(197, 160, 89, 0.12);
  padding: 1.5rem var(--gutter) 2rem;
  color: var(--mist);
  font-size: 0.88rem;
  display: flex;
  justify-content: center;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--container-max);
}

.mark--footer {
  color: var(--fog);
}

.mark--footer .mark__badge {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */

/* Visible by default; JS opts into animation */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1060px) {
  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stages li:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2.75rem;
    align-items: flex-start;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Brand copy first — never push H1 below the fold */
  .hero__content {
    order: 1;
    max-width: none;
  }

  /* Fluid portrait at tablet / small screen */
  .hero__portrait {
    order: 2;
    justify-self: start;
    width: clamp(10rem, 34vw, 15rem);
    max-width: none;
  }

  .hero__portrait img {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .hero__meta {
    font-size: 0.78rem;
  }

  .hero__schematic,
  .hero__grid {
    display: none;
  }

  .hero__brand {
    font-size: clamp(2.35rem, 9vw, 3.4rem);
  }

  .hero__support {
    font-size: 0.98rem;
  }

  .hero__actions {
    margin-top: 1.25rem;
  }

  .pillars {
    margin-top: 1.25rem;
  }

  .stages {
    grid-template-columns: 1fr 1fr;
  }

  .stages li:not(:last-child)::after {
    display: none;
  }

  .stages li:last-child {
    grid-column: 1 / -1;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero__portrait {
    width: clamp(7.5rem, 32vw, 9.5rem);
  }

  .stages {
    grid-template-columns: 1fr;
  }

  .stages li:last-child {
    grid-column: auto;
  }

  .nav a:not(.nav__cta) {
    display: none;
  }

  .mark__name {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__schematic {
    animation: none;
  }
}
