/* ============================================================
   NOIRE TECHNOLOGIES — shared styles
   Automation without the noise.
   ============================================================ */

:root {
  --bg:          #030302;
  --bg-2:        #0a0805;
  --panel:       #0d0a06;
  --panel-line:  rgba(217, 164, 65, 0.14);

  --gold:        #d9a441;
  --gold-soft:   #e6b970;
  --gold-bright: #ffd089;
  --ember:       #ff8a1f;
  --corona:      #ff9d33;

  --text:        #ece5d6;
  --text-dim:    #b3a88f;
  --text-faint:  #7d735f;

  --serif: "Cinzel", "Times New Roman", serif;
  --sans:  "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(217, 164, 65, 0.3); color: #fff; }

/* ---------- Reusable bits ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
}

.lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 60ch;
}

.gold { color: var(--gold-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1em 2em;
  border: 1px solid rgba(217, 164, 65, 0.45);
  background: rgba(217, 164, 65, 0.04);
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.45s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.45s var(--ease); }
.btn:hover {
  background: rgba(217, 164, 65, 0.12);
  border-color: var(--gold);
  box-shadow: 0 0 34px rgba(217, 164, 65, 0.18);
}
.btn:hover .arrow { transform: translateX(5px); }

.btn-solid {
  background: linear-gradient(120deg, #f0b65c, #d9a441);
  color: #1a1205;
  border-color: transparent;
  font-weight: 500;
}
.btn-solid:hover {
  box-shadow: 0 0 40px rgba(217, 164, 65, 0.4);
  background: linear-gradient(120deg, #ffd089, #e6b45a);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 44px;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(3, 3, 2, 0.82);
  backdrop-filter: blur(14px);
  padding: 16px 44px;
  border-bottom: 1px solid var(--panel-line);
}

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: 0.34em;
  color: var(--gold-soft);
  padding-left: 0.34em; /* optical balance for tracking */
}
.brand .brand-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.52em;
  color: var(--text-dim);
  margin-top: 7px;
  padding-left: 0.52em;
}

.nav { display: flex; align-items: center; gap: 38px; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-soft); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  padding: 0.95em 1.5em;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span {
  display: block; width: 26px; height: 1.5px;
  background: var(--gold-soft); margin: 6px 0;
  transition: 0.3s;
}

/* ============================================================
   STARFIELD CANVAS (shared background)
   ============================================================ */
.sky {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   HOME HERO — eclipse
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

/* full-bleed animated eclipse (Higgsfield render) */
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.hero-video--b { opacity: 0; }
/* legibility: deepen the disc center + edges behind the text */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 26%, transparent 46%),
    linear-gradient(180deg, rgba(3,3,2,0.55) 0%, transparent 22%, transparent 62%, rgba(3,3,2,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: min(620px, 86vw);
  margin: auto;        /* centers within the flex column */
  padding: 120px 0 1.5rem;
}
.hero-brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  padding-left: 0.22em;
  text-shadow: 0 0 40px rgba(255,160,60,0.35);
  line-height: 1;
}
.hero-brand-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.7rem, 1.6vw, 1.05rem);
  letter-spacing: 0.62em;
  color: var(--text);
  padding-left: 0.62em;
  margin-top: 0.7rem;
}
.hero-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 1.5rem 0 1.6rem;
}
.hero-rule .line {
  height: 1px; width: 120px;
  background: linear-gradient(90deg, transparent, rgba(217,164,65,0.7));
}
.hero-rule .line:last-child {
  background: linear-gradient(90deg, rgba(217,164,65,0.7), transparent);
}
.hero-rule .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px 2px rgba(255,180,80,0.8);
}
.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--text);
  padding-left: 0.36em;
  margin-bottom: 1.3rem;
}
.hero-copy {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 46ch;
  margin: 0 auto 2.2rem;
}

/* feature strip under the eclipse */
.feature-strip {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  margin: -2vh auto 0;
  padding: 0 40px 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding-left: 22px;
  border-left: 1px solid rgba(217,164,65,0.18);
}
.feature .f-icon {
  flex: 0 0 auto; color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(217,164,65,0.3));
}
.feature h3 {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 500; margin-bottom: 0.45rem;
}
.feature p { font-size: 0.86rem; color: var(--text-dim); line-height: 1.55; }

.scroll-cue {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-bottom: 30px;
  font-size: 0.62rem; letter-spacing: 0.4em; color: var(--text-faint);
}
.scroll-cue .stem {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--gold), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .stem::after {
  content: ""; position: absolute; top: -50%; left: 0;
  width: 1px; height: 50%;
  background: var(--gold-bright);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { top: -50%; } 100% { top: 120%; }
}

/* ============================================================
   GENERIC PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  position: relative;
  z-index: 2;
  padding: 220px 0 90px;
  text-align: center;
}
.page-hero .corner-glow {
  position: absolute; top: -10%; left: 50%;
  width: 70vw; height: 70vw; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,140,40,0.10), transparent 60%);
  z-index: -1; pointer-events: none;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 1rem 0 1.2rem;
}
.page-hero h1 .accent { color: var(--gold-soft); }
.page-hero p { margin: 0 auto; max-width: 56ch; color: var(--text-dim); font-size: 1.08rem; }

.breadcrumb {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-faint);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gold); }

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.section { position: relative; z-index: 2; padding: 90px 0; }
.section.tight { padding: 60px 0; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }
.section-head p { margin-top: 1.2rem; }

/* Card grid */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(20,15,8,0.7), rgba(8,6,3,0.6));
  border: 1px solid var(--panel-line);
  padding: 34px 30px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,150,50,0.12), transparent 60%);
  opacity: 0; transition: opacity 0.5s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(217,164,65,0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.card:hover::before { opacity: 1; }
.card .c-icon { color: var(--gold); margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(217,164,65,0.3)); }
.card h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.3rem; letter-spacing: 0.02em; color: var(--text);
  margin-bottom: 0.7rem;
}
.card h3.sm { font-size: 1.05rem; }
.card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }
.card .c-index {
  font-family: var(--serif); font-size: 0.9rem; color: var(--gold);
  letter-spacing: 0.2em; margin-bottom: 18px; display: block;
}

.card-link {
  margin-top: 18px;
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft);
}
.card-link .arrow { transition: transform 0.4s var(--ease); }
.card:hover .card-link .arrow { transform: translateX(5px); }

/* split feature row */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.split.reverse > .split-visual { order: 2; }
.split-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--panel-line);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,140,40,0.16), transparent 62%),
    linear-gradient(160deg, rgba(18,12,5,0.8), rgba(5,4,2,0.8));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.split-visual .ring {
  width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, #000 54%, transparent 70%);
  box-shadow: 0 0 80px 8px rgba(255,140,40,0.45), inset 0 0 60px rgba(0,0,0,0.9);
  position: relative;
}
.split-visual .ring::after {
  content:""; position:absolute; inset:-4px; border-radius:50%;
  border: 1px solid rgba(255,170,70,0.5);
  box-shadow: 0 0 50px rgba(255,150,50,0.5);
}

.list-check { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.list-check li {
  position: relative; padding-left: 28px; color: var(--text-dim); font-size: 0.96rem;
}
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num {
  font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--gold-bright); font-weight: 500; line-height: 1;
}
.stat .label {
  margin-top: 0.7rem; font-size: 0.72rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text-dim);
}

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { padding: 30px 26px 30px 0; border-top: 1px solid var(--panel-line); position: relative; }
.step .num { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; letter-spacing: 0.2em; }
.step h4 { margin: 14px 0 8px; font-size: 1.02rem; color: var(--text); font-weight: 500; letter-spacing: 0.02em; }
.step p { font-size: 0.88rem; color: var(--text-dim); }

/* CTA band */
.cta-band {
  position: relative; z-index: 2;
  text-align: center; padding: 110px 0; overflow: hidden;
}
.cta-band::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(ellipse at 50% 120%, rgba(255,140,40,0.18), transparent 60%);
  z-index:-1;
}
.cta-band h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: 0.03em; margin-bottom: 1.2rem;
}
.cta-band p { color: var(--text-dim); max-width: 50ch; margin: 0 auto 2.4rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,0.02);
  border: 1px solid var(--panel-line); color: var(--text);
  padding: 14px 16px; font-family: var(--sans); font-size: 0.95rem; font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(217,164,65,0.3), 0 0 24px rgba(217,164,65,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; }

.info-block { margin-bottom: 32px; }
.info-block .k { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.info-block .v { color: var(--text); font-size: 1.05rem; }
.info-block .v.dim { color: var(--text-dim); font-size: 0.95rem; }

.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--panel-line);
  background: rgba(3,3,2,0.7);
  padding: 70px 0 36px;
  margin-top: 40px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .brand-name {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.3em;
  color: var(--gold-soft); padding-left: 0.3em;
}
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 18px; max-width: 36ch; }
.footer-col h4 {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text); margin-bottom: 18px; font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { color: var(--text-dim); font-size: 0.88rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--panel-line); padding-top: 26px;
  font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.04em;
}
.footer-bottom .socials { display: flex; gap: 20px; }
.footer-bottom .socials a:hover { color: var(--gold); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue .stem::after { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 30px 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 22px;
    position: absolute; top: 100%; right: 0; left: 0;
    background: rgba(5,4,2,0.97); backdrop-filter: blur(14px);
    padding: 30px 44px; border-bottom: 1px solid var(--panel-line);
  }
  .nav.open .nav-cta { display: inline-flex; margin-top: 6px; }
  .site-header { padding: 18px 24px; }
  .wrap { padding: 0 24px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > .split-visual { order: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

@media (max-width: 640px) {
  .hero-content { width: 90vw; }
  .eclipse-wrap { width: min(78vh, 540px); height: min(78vh, 540px); }
  .hero-brand { letter-spacing: 0.16em; padding-left: 0.16em; }
  .hero-brand-sub { letter-spacing: 0.4em; padding-left: 0.4em; }
  .hero-tagline { letter-spacing: 0.14em; padding-left: 0.14em; font-size: 0.82rem; }
  .hero-copy { font-size: 0.9rem; max-width: 100%; }
  .hero-rule .line { width: 70px; }
}

@media (max-width: 540px) {
  .feature-strip { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
