/* ============================================================
   STROS - shared design system
   Palette extends the STROS logo: deep indigo navy + white,
   soft platinum hairlines, a single whisper of electric indigo.
   Restraint is deliberate - premium, quiet, exclusive.
   ============================================================ */

:root {
  --navy-950: #0b0a1c;
  --navy-900: #100e26;
  --navy-850: #15132f;
  --navy-800: #1a1838;
  --navy-700: #221f48;
  --navy-600: #2c2959;

  --paper: #ffffff;
  --mist: #f4f4f8;
  --stone: #e9e9f1;

  --ink: #14131f;
  --text: #2b2a3a;
  --muted: #6f6e85;

  --light: #ecebf4;
  --light-muted: #a8a7c0;
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-dark: rgba(20, 19, 31, 0.10);

  --accent: #6d72e6;
  --accent-soft: #c9cbef;

  --shell: min(1200px, 90vw);
  --shell-narrow: min(820px, 90vw);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

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

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.on-light { color: var(--accent); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--muted); }

/* ---------- shell + sections ---------- */
.shell { width: var(--shell); margin: 0 auto; }
.shell--narrow { width: var(--shell-narrow); margin: 0 auto; }

section { position: relative; }

.section { padding: clamp(5rem, 11vw, 9rem) 0; }

.section--dark { background: var(--navy-900); color: var(--light); }
.section--darker { background: var(--navy-950); color: var(--light); }
.section--light { background: var(--paper); color: var(--text); }
.section--mist { background: var(--mist); color: var(--text); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter, 5vw);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 10, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
  padding-top: 1rem; padding-bottom: 1rem;
}
.nav__brand img { height: 26px; width: auto; opacity: 0.96; }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); }
.nav__link {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--light); opacity: 0.78; transition: opacity 0.3s var(--ease); position: relative;
}
.nav__link:hover, .nav__link.active { opacity: 1; }
.nav__link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent);
}
.nav__cta {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
  padding: 0.55rem 1.1rem; border: 1px solid var(--hairline);
  border-radius: 100px; color: var(--light); opacity: 0.9;
  transition: all 0.3s var(--ease);
}
.nav__cta:hover { background: var(--light); color: var(--navy-900); border-color: var(--light); opacity: 1; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 1.5px; background: var(--light); transition: 0.3s var(--ease); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--navy-950);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__veil {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(120% 90% at 75% 15%, rgba(109,114,230,0.18), transparent 55%),
    linear-gradient(180deg, rgba(11,10,28,0.35) 0%, rgba(11,10,28,0.7) 70%, var(--navy-950) 100%);
}
.hero__inner { position: relative; z-index: 3; width: var(--shell); margin: 0 auto; padding-top: 6rem; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  color: #fff; max-width: 16ch; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--accent-soft); }
.hero__sub {
  margin-top: 1.8rem; max-width: 52ch;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--light-muted);
}
.hero__routes { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 0.95rem 1.7rem; border-radius: 100px; cursor: pointer;
  transition: all 0.35s var(--ease); border: 1px solid transparent; white-space: nowrap;
}
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--solid { background: var(--light); color: var(--navy-900); }
.btn--solid:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--light); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--light); background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-800); transform: translateY(-2px); }

/* ---------- generic layout helpers ---------- */
.stack > * + * { margin-top: 1.4rem; }
.measure { max-width: 60ch; }
.center { text-align: center; }
.center .lede, .center .measure { margin-left: auto; margin-right: auto; }

.section-head { max-width: 60ch; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head .eyebrow { display: block; margin-bottom: 1.2rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- routes (home) ---------- */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.route-card {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: clamp(2.2rem, 4vw, 3.4rem);
  min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--hairline); background: var(--navy-850);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.route-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background: radial-gradient(90% 70% at 80% 0%, rgba(109,114,230,0.28), transparent 60%);
  transition: opacity 0.5s var(--ease);
}
.route-card:hover { transform: translateY(-6px); border-color: rgba(109,114,230,0.5); }
.route-card:hover::before { opacity: 0.9; }
.route-card > * { position: relative; z-index: 1; }
.route-card .eyebrow { margin-bottom: 1rem; }
.route-card h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: #fff; margin-bottom: 0.8rem; }
.route-card p { color: var(--light-muted); max-width: 38ch; margin-bottom: 1.8rem; }
.route-card__go { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--accent-soft); }
.route-card__go .btn__arrow { transition: transform 0.35s var(--ease); }
.route-card:hover .route-card__go .btn__arrow { transform: translateX(5px); }

/* ---------- statement ---------- */
.statement h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.18; max-width: 22ch;
}
.statement .pull { color: var(--accent); font-style: italic; }

/* ---------- ecosystem grid ---------- */
.eco-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.eco-cell {
  background: var(--navy-850); padding: clamp(1.8rem, 3vw, 2.6rem); min-height: 220px;
  display: flex; flex-direction: column; transition: background 0.4s var(--ease);
}
.eco-cell:hover { background: var(--navy-800); }
.eco-cell__role { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.eco-cell__name { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 0.7rem; }
.eco-cell__desc { font-size: 0.95rem; color: var(--light-muted); }
.eco-cell--lead { background: linear-gradient(150deg, var(--navy-700), var(--navy-850)); }
.eco-cell--lead .eco-cell__name { color: #fff; }

/* ---------- profile (Ross) ---------- */
.profile { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.profile__media { position: relative; }
.profile__photo {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px;
  background: var(--navy-700); filter: grayscale(0.15) contrast(1.02);
}
.profile__photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); color: var(--light-muted);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 2rem;
}
.profile__badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  background: rgba(11,10,28,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); border-radius: 12px; padding: 1rem 1.2rem;
}
.profile__badge strong { display: block; color: #fff; font-size: 1rem; font-weight: 600; }
.profile__badge span { font-size: 0.8rem; color: var(--light-muted); }
.profile__body h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: #fff; margin-bottom: 1.5rem; }
.profile__body p { color: var(--light-muted); margin-bottom: 1.2rem; }
.profile__creds { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.profile__creds span {
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--light);
  padding: 0.4rem 0.9rem; border: 1px solid var(--hairline); border-radius: 100px;
}

/* ---------- page hero (interior) ---------- */
.page-hero { position: relative; padding: clamp(9rem, 16vw, 13rem) 0 clamp(4rem, 7vw, 6rem); background: var(--navy-950); overflow: hidden; }
.page-hero__glow { position: absolute; inset: 0; background: radial-gradient(80% 60% at 70% 0%, rgba(109,114,230,0.18), transparent 60%); z-index: 0; }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero .eyebrow { display: block; margin-bottom: 1.4rem; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); color: #fff; max-width: 18ch; }
.page-hero__sub { margin-top: 1.6rem; max-width: 56ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--light-muted); }

/* ---------- engagements (consulting) ---------- */
.engagement { display: grid; grid-template-columns: 0.35fr 0.65fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2.5rem, 5vw, 3.8rem) 0; border-top: 1px solid var(--hairline-dark); }
.engagement:last-child { border-bottom: 1px solid var(--hairline-dark); }
.engagement__label .role { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.engagement__label h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); margin-top: 0.6rem; }
.engagement__body p { color: var(--text); font-size: 1.05rem; }
.engagement__body p + p { margin-top: 1.1rem; }
.engagement__body .tag { display: inline-block; margin-top: 1.2rem; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- value pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.pillar { }
.pillar__num { font-family: var(--serif); font-size: 1.1rem; color: var(--accent); margin-bottom: 1rem; opacity: 0.8; }
.pillar h3 { font-size: 1.3rem; color: var(--light); margin-bottom: 0.8rem; }
.pillar p { font-size: 0.97rem; color: var(--light-muted); }
.pillar--light h3 { color: var(--ink); }
.pillar--light p { color: var(--muted); }

/* ---------- partnership feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.feature--rev .feature__media { order: 2; }
.feature__media {
  border-radius: 18px; min-height: 360px; border: 1px solid var(--hairline);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.feature__media::after { content:""; position:absolute; inset:0; background: radial-gradient(70% 60% at 50% 30%, rgba(109,114,230,0.22), transparent 65%); }
.feature__media img { position: relative; width: 60%; max-width: 280px; opacity: 0.95; }
.feature__body h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ink); margin-bottom: 1.3rem; }
.feature__body.on-dark h2 { color: #fff; }
.feature__body p { color: var(--text); margin-bottom: 1.1rem; }
.feature__body.on-dark p { color: var(--light-muted); }
.feature__list { list-style: none; margin-top: 1.6rem; }
.feature__list li { padding: 0.8rem 0; border-top: 1px solid var(--hairline-dark); display: flex; gap: 0.9rem; align-items: baseline; }
.feature__list.on-dark li { border-top-color: var(--hairline); color: var(--light); }
.feature__list .k { font-family: var(--serif); color: var(--accent); font-size: 0.95rem; min-width: 1.6rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 1.4rem; color: var(--accent); opacity: 0.7;
}
.step h3 { font-size: 1.15rem; color: var(--light); margin-bottom: 0.6rem; }
.step p { font-size: 0.92rem; color: var(--light-muted); }

/* ---------- CTA / contact ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); color: #fff; max-width: 20ch; margin: 0 auto 1.4rem; }
.cta p { color: var(--light-muted); max-width: 48ch; margin: 0 auto 2.4rem; }
.cta__email {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--serif); font-size: clamp(1.2rem, 2.5vw, 1.8rem); color: #fff;
  border-bottom: 1px solid var(--hairline); padding-bottom: 0.5rem; transition: border-color 0.3s var(--ease);
}
.cta__email:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); color: var(--light-muted); padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem; border-top: 1px solid var(--hairline); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer__brand img { height: 30px; margin-bottom: 1.2rem; opacity: 0.95; }
.footer__brand p { max-width: 34ch; font-size: 0.92rem; }
.footer__nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer__col h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--light); margin-bottom: 1rem; font-family: var(--sans); font-weight: 600; }
.footer__col a, .footer__col span { display: block; font-size: 0.92rem; margin-bottom: 0.6rem; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--light); }
.footer__base { margin-top: clamp(3rem, 5vw, 4rem); padding-top: 1.8rem; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.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; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .routes, .eco-grid, .pillars, .steps, .feature, .feature--rev .feature__media, .profile { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .engagement { grid-template-columns: 1fr; gap: 1rem; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .nav__links { gap: 1.2rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .eco-grid { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; }
  .nav__links { display: none; position: fixed; inset: 0; background: var(--navy-950); flex-direction: column; justify-content: center; gap: 2rem; font-size: 1.4rem; }
  .nav__links.open { display: flex; }
  .nav__links .nav__cta { font-size: 1rem; }
  .nav__toggle { display: flex; z-index: 110; }
  .nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
