/* StarXSa.com — one stylesheet, no build step. Brand gold lives in ONE place: --gold. */
:root {
  /* Palette built around the logo: gold sampled from logo.png (median of its gold pixels). */
  --bg: #0b0c10;              /* deep neutral */
  --bg-raised: #121319;
  --bg-card: #14161c;
  --line: rgba(236, 234, 228, 0.09);
  --line-strong: rgba(236, 234, 228, 0.17);
  --text: #eceae4;            /* light text */
  --muted: #9c9ea6;
  --gold: #ceaa53;            /* logo gold, accent only */
  --gold-soft: rgba(206, 170, 83, 0.12);
  --serif: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;   /* headlines: echoes the wordmark */
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --radius: 14px;
}

@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; font-weight: 600; }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Starlight (decorative) ---------- */
.starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.starfield::before, .starfield::after {
  content: ""; position: absolute; inset: -50%;
  background-repeat: repeat;
}
.starfield::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.2px 1.2px at 260px 180px, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 330px 40px, rgba(255,255,255,.30), transparent 60%),
    radial-gradient(1px 1px at 80px 250px, rgba(255,255,255,.40), transparent 60%);
  background-size: 380px 300px;
  animation: drift 180s linear infinite;
  opacity: .7;
}
.starfield::after {
  background-image:
    radial-gradient(1.4px 1.4px at 60px 120px, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 300px 260px, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 460px 60px, rgba(255,255,255,.5), transparent 60%);
  background-size: 560px 420px;
  animation: drift 260s linear infinite reverse, twinkle 7s ease-in-out infinite;
  opacity: .5;
}
.glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; left: 50%; top: -35vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(236,234,228,.035), transparent 70%);
}
@keyframes drift { to { transform: translate3d(-380px, -300px, 0); } }
@keyframes twinkle { 0%, 100% { opacity: .5; } 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 12, 16, .84);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; padding: .75rem 0; min-height: 44px; }
.brand img { height: 26px; width: auto; }
@media (min-width: 1280px) { .brand img { height: 28px; } }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); color: var(--text);
  min-width: 44px; min-height: 44px; border-radius: 10px; cursor: pointer; padding: 0 .75rem;
  font: inherit; font-size: .9rem; align-items: center; gap: .5rem;
}
.nav-toggle .bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
}
.nav-toggle .bars::before { top: 0; } .nav-toggle .bars span { top: 5px; } .nav-toggle .bars::after { bottom: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  color: var(--text); text-decoration: none; font-size: .95rem; border-radius: 999px;
}
.site-nav a:hover { background: rgba(255,255,255,.05); }
.site-nav a[aria-current="page"] { color: var(--gold); }

@media (max-width: 720px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #0b0c10; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); border-bottom: 1px solid var(--line);
    display: none;
  }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; padding: .5rem clamp(1.25rem, 4vw, 2.5rem) 1rem; }
  .js .site-nav a { width: 100%; padding: 0 .25rem; min-height: 52px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .js .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a { padding: 0 .6rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  background: var(--gold); color: #0b0c10; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid var(--gold); transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -12px rgba(206,170,83,.55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); box-shadow: none; }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(4.5rem, 12vw, 9.5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero-logo { height: clamp(34px, 4.4vw, 52px); width: auto; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero h1 { max-width: 15ch; }
.hero .value { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); color: var(--muted); max-width: 36ch; margin-bottom: 2.25rem; }
.hero .value em { color: var(--text); font-style: normal; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: linear-gradient(180deg, var(--bg-raised), transparent); }
.step-num { font-family: var(--serif); color: var(--gold); font-size: .95rem; display: block; margin-bottom: 1.25rem; letter-spacing: .05em; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Ledger entries ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: 9.5rem 1fr auto; gap: .5rem 2rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.entry-date { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.entry-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 .3rem; line-height: 1.3; }
.entry-summary { color: var(--muted); margin: 0; font-size: 1rem; max-width: 62ch; }
.entry-verify { white-space: nowrap; font-size: .92rem; display: inline-flex; align-items: center; min-height: 44px; }
.entry-verify[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.badge {
  display: inline-block; vertical-align: middle; margin-left: .5rem;
  font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(206,170,83,.35);
  border-radius: 999px; padding: .1rem .55rem; position: relative; top: -2px;
}
@media (max-width: 720px) {
  .entry { grid-template-columns: 1fr; gap: .35rem; padding: 1.4rem 0; }
  .entry-verify { min-height: 40px; }
}
.state { padding: 3rem 0; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.state h3 { color: var(--text); }
.skeleton { display: block; height: 1rem; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; }
.skeleton.title { height: 1.4rem; width: 55%; margin-bottom: .6rem; }
.skeleton.line { width: 85%; }
.skeleton.date { width: 6rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.sample-note { font-size: .92rem; color: var(--muted); border: 1px dashed rgba(206,170,83,.4); border-radius: 10px; padding: .85rem 1rem; margin: 0 0 2rem; }
.sample-note strong { color: var(--gold); font-weight: 600; }

.search { position: relative; max-width: 420px; width: 100%; }
.search input {
  width: 100%; min-height: 50px; padding: 0 1rem 0 2.75rem; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: 1rem;
}
.search input::placeholder { color: #8a90a0; }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.count { color: var(--muted); font-size: .92rem; margin: 0 0 .75rem; min-height: 1.5em; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-raised); }
.portrait img { width: 100%; height: auto; }   /* natural ratio: never cropped or stretched */
.portrait figcaption { padding: .75rem 1rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.say { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 440px; } }

.roles { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.role { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; background: var(--bg-card); }
.role .role-who { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 .9rem; }
.role h3 { margin-bottom: .5rem; }
.role p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }

/* ---------- Companies ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column; min-height: 240px; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  background: linear-gradient(160deg, var(--bg-card), var(--bg) 120%);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(206,170,83,.45); transform: translateY(-2px); }
.card-mark { width: 28px; height: 28px; margin-bottom: 1.5rem; }
.card h3 { margin-bottom: .4rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { color: var(--muted); font-size: 1rem; margin: 0 0 1.5rem; }
.card .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; color: var(--muted); }
.card .meta .go { color: var(--gold); }
.card.empty { border-style: dashed; background: transparent; align-items: flex-start; }
.card.empty:hover { transform: none; border-color: var(--line-strong); }
.card.empty h3 { color: var(--muted); }
.status { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--gold); }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta p { color: var(--muted); max-width: 46ch; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; margin-top: 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-logo { height: 22px; width: auto; margin: .25rem 0; }
.footer-meta { color: var(--muted); font-size: .9rem; margin: .9rem 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; font-size: .9rem; }
.footer-links a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.footer-links a:hover { color: var(--text); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .symbol { width: 48px; height: 48px; margin-bottom: 2rem; }
.more { display: inline-flex; align-items: center; min-height: 44px; }
span.card-mark { display: block; border: 1px dashed var(--line-strong); border-radius: 50%; }

/* ---------- Visual layer: constellation, icons, orbits, dividers ---------- */
.icon { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; margin-right: .4rem; vertical-align: -3px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.step-top .step-num { margin: 0; color: var(--gold); }
.step .icon, .role .icon {
  width: 44px; height: 44px; padding: 9px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid rgba(206,170,83,.22);
}
.role .icon { margin-bottom: 1.25rem; display: block; }

/* Hero constellation — loosely traces the double sparkle; draws itself in once */
.hero { position: relative; overflow: hidden; }
.hero-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 2rem; }
.hero-copy { position: relative; z-index: 1; }
.constellation { grid-column: 2; grid-row: 1; width: 100%; max-width: 420px; height: auto; justify-self: end; overflow: visible; }
.c-lines line { stroke: var(--gold); stroke-width: 1; stroke-opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: c-draw 1.6s cubic-bezier(.6,0,.2,1) var(--d, 0s) backwards; vector-effect: non-scaling-stroke; }
.c-stars .star { fill: #f4ecd2; animation: c-pop .6s ease-out .1s backwards; }
.c-stars .star.tw { fill: var(--gold); animation: c-pop .6s ease-out .1s backwards, c-tw 5s ease-in-out 2.5s infinite; }
.c-stars .halo { fill: var(--gold); opacity: .08; }
.c-stars .dust { fill: #fff; opacity: .35; }
@keyframes c-draw { from { stroke-dashoffset: 1; } }
@keyframes c-pop { from { opacity: 0; } }
@keyframes c-tw { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .constellation { grid-column: 1; position: absolute; right: -10%; bottom: -5.5rem; top: auto; width: min(62vw, 300px); opacity: .26; z-index: 0; }
}

/* Orbit rings behind the portrait, echoing her halo */
.portrait-wrap { position: relative; isolation: isolate; }
.portrait-wrap .portrait { position: relative; z-index: 1; }
.orbit { position: absolute; z-index: 0; border: 1px solid rgba(236,234,228,.10); border-radius: 50%; pointer-events: none; }
.orbit.o1 { left: -7%; right: -7%; top: 18%; height: 44%; }
.orbit.o2 { left: 12%; right: 12%; top: -5%; height: 30%; border-color: rgba(206,170,83,.22); }
.section, .page-head + .section { overflow-x: clip; }

/* Sparkle dividers between sections */
.section + .section { position: relative; }
.section + .section::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 26px; height: 26px; transform: translateX(-50%);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ceaa53' d='M12 4c.6 4.2 2 6.4 6 8-4 1.6-5.4 3.8-6 8-.6-4.2-2-6.4-6-8 4-1.6 5.4-3.8 6-8z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
