/* =========================================================================
   Sidus Strategic Solutions — visual system
   Concept: "Constellation" — night-sky ground, starlight-gold accent.
   Committed single (dark) world by design, matching the brand collateral.
   ========================================================================= */

/* ---- Self-hosted variable fonts (offline, no CDN) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --ink:        #0E1015;   /* page ground — near-black, faint cool bias */
  --ink-2:      #12151C;   /* alternating band */
  --surface:    #171B24;   /* cards, panels */
  --surface-2:  #1F2432;   /* raised / hover */
  --hair:       rgba(199, 203, 209, 0.10);  /* cool hairline */
  --hair-2:     rgba(199, 203, 209, 0.16);
  --hair-gold:  rgba(214, 172, 84, 0.28);   /* gold hairline */

  --text:       #EDEFF3;   /* primary */
  --platinum:   #C4C9D2;   /* body copy */
  --muted:      #8B93A1;   /* labels, meta */

  --gold:       #D6AC54;   /* accent — starlight (brightened) */
  --gold-bright:#F0D188;   /* highlight / hover */
  --gold-deep:  #9E7A2E;
  --gold-soft:  rgba(214, 172, 84, 0.12);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset / base ---- */
*, *::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;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--platinum);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(214, 172, 84, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--text);
  font-weight: 460;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(1.95rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(214, 172, 84, 0.6);
}

.lead { color: var(--platinum); font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; }
.measure { max-width: 62ch; }

/* ---- Layout ---- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--ink-2); }
.section__head { max-width: 64ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section__head h2 { margin-top: 0.9rem; }
.section__head .lead { margin-top: 1.1rem; }

/* Divider with a star node */
.starrule {
  display: flex; align-items: center; gap: 1rem;
  color: var(--hair-gold);
}
.starrule::before, .starrule::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--hair-2), transparent);
}
.starrule i {
  width: 7px; height: 7px; background: var(--gold);
  transform: rotate(45deg); flex: none;
  box-shadow: 0 0 12px rgba(214, 172, 84, 0.55);
}

/* ---- Navigation ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(12, 14, 19, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--hair);
  padding-block: 0.65rem;
}
.nav.is-stuck .nav__logo img { height: 34px; }
.nav__logo img { height: 40px; width: auto; transition: height 0.4s var(--ease); }
.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.2rem); }
.nav__links a.link {
  font-size: 0.9rem; color: var(--platinum); position: relative;
  transition: color 0.25s var(--ease);
}
.nav__links a.link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav__links a.link:hover { color: var(--text); }
.nav__links a.link:hover::after { width: 100%; }
.nav__toggle { display: none; }

@media (max-width: 720px) {
  .nav__links .link { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.01em; padding: 0.8rem 1.4rem; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 15px; height: 15px; }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #201a08; box-shadow: 0 8px 30px -12px rgba(214, 172, 84, 0.7);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -12px rgba(214, 172, 84, 0.85); }
.btn--ghost { border-color: var(--hair-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 7rem 4rem; overflow: hidden;
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { /* vignette to seat the type */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 72% 18%, rgba(214, 172, 84, 0.10), transparent 55%),
    radial-gradient(100% 100% at 30% 60%, rgba(14, 16, 21, 0.35), var(--ink) 78%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__inner { max-width: 44rem; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero h1 {
  font-size: clamp(2.25rem, 4.7vw, 3.8rem);
  font-weight: 430; line-height: 1.06; letter-spacing: -0.022em;
  max-width: 20ch;
}
.hero h1 em { color: var(--gold); font-weight: 460; }
.hero__sub {
  margin-top: 1.8rem; max-width: 52ch;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.65; color: var(--platinum);
}
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  z-index: 2; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero__scroll span { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); }

/* ---- About / two-column ---- */
.about__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about__body p + p { margin-top: 1.1rem; }
.about__lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.3; color: var(--text); font-weight: 440; }
.about__lead em { color: var(--gold); }

/* ---- Vision / Mission ---- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.vm__card {
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative; overflow: hidden;
}
.vm__card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: linear-gradient(var(--gold), transparent);
}
.vm__card .eyebrow { margin-bottom: 1rem; }
.vm__card p { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.35; color: var(--text); font-weight: 420; }

/* ---- Values ---- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value {
  padding: 1.75rem 0 0; border-top: 1px solid var(--hair-2);
  position: relative;
}
.value::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 42px; height: 2px;
  background: var(--gold);
}
.value h3 { margin-bottom: 0.6rem; }
.value p { font-size: 0.95rem; color: var(--muted); }

/* ---- Services / The S ---- */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc__card {
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: clamp(1.6rem, 2.6vw, 2rem);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.svc__card::after { /* top gold sweep on hover */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.svc__card:hover { transform: translateY(-4px); border-color: var(--hair-gold); background: var(--surface-2); }
.svc__card:hover::after { opacity: 1; }
.svc__num {
  font-family: var(--serif); font-size: 0.95rem; color: var(--gold);
  font-variant-numeric: tabular-nums; letter-spacing: 0.05em;
  display: inline-block; margin-bottom: 1.1rem;
}
.svc__card h3 { margin-bottom: 0.7rem; }
.svc__card p { font-size: 0.95rem; color: var(--muted); }

/* ---- Approach — connected star-path ---- */
.approach { position: relative; }
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.path::before { /* the connecting line */
  content: ""; position: absolute; top: 9px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, var(--hair-gold), var(--gold), var(--hair-gold));
  opacity: 0.6;
}
.step { position: relative; padding-top: 2.6rem; }
.step__node {
  position: absolute; top: 3px; left: 0; width: 14px; height: 14px;
  background: var(--gold); transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(214, 172, 84, 0.12), 0 0 16px rgba(214, 172, 84, 0.5);
}
.step__num { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold);
  text-transform: uppercase; font-weight: 600; margin-bottom: 0.5rem; display: block; }
.step h3 { margin-bottom: 0.55rem; }
.step p { font-size: 0.93rem; color: var(--muted); }

/* ---- Pull quote ---- */
.quote { text-align: center; }
.quote blockquote {
  margin: 0 auto; max-width: 24ch; font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.18; color: var(--text);
  font-weight: 400; letter-spacing: -0.015em;
}
.quote blockquote em { color: var(--gold); }
.quote .attrib { margin-top: 1.8rem; color: var(--muted); font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase; }

/* ---- Founder ---- */
.founder__grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--hair-2);
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(214, 172, 84, 0.14), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  display: flex; align-items: center; justify-content: center;
}
.portrait__mono { font-family: var(--serif); font-size: clamp(3rem, 8vw, 5rem); color: var(--gold);
  opacity: 0.85; }
.portrait__tag { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem 1.2rem;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  background: linear-gradient(transparent, rgba(0,0,0,0.5)); }
.founder__body .eyebrow { margin-bottom: 1rem; }
.founder__body h2 { margin-bottom: 0.4rem; }
.founder__role { color: var(--gold); font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 1.4rem; }
.founder__body p + p { margin-top: 1rem; }

/* ---- Contact ---- */
.contact { text-align: center; }
.contact__inner {
  max-width: 720px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--hair-gold);
  border-radius: 20px; padding: clamp(2.5rem, 6vw, 4.5rem);
  position: relative; overflow: hidden;
}
.contact__inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(214, 172, 84, 0.12), transparent 70%);
}
.contact h2 { margin-bottom: 1rem; }
.contact .lead { max-width: 46ch; margin: 0 auto 2rem; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact__meta { margin-top: 2.2rem; color: var(--muted); font-size: 0.9rem;
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.contact__meta a { color: var(--platinum); border-bottom: 1px solid var(--hair-gold); }
.contact__meta a:hover { color: var(--gold-bright); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--hair); padding-block: 3.5rem 2.5rem; }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap; }
.footer__logo img { height: 42px; margin-bottom: 1rem; }
.footer__tag { color: var(--muted); font-size: 0.92rem; max-width: 30ch; }
.footer__keys { display: flex; gap: 0.75rem; flex-wrap: wrap; color: var(--platinum);
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__keys span { color: var(--gold); }
.footer__col h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 0.9rem; }
.footer__col a { display: block; color: var(--platinum); font-size: 0.92rem; margin-bottom: 0.4rem; }
.footer__col a:hover { color: var(--gold-bright); }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: 0.82rem; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { display: none; }
}

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .about__grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .founder__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
  .path { grid-template-columns: 1fr 1fr; }
  .path::before { display: none; }
}
@media (max-width: 620px) {
  .vm { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; }
  .footer__grid { flex-direction: column; }
}
