/* SELIUS — shared stylesheet for static brand sites
   Dark glass / platinum / industrial. Used by every page in /sites. */

:root {
  --black: #000000;
  --coal: #06060809;
  --panel: rgba(10, 10, 14, 0.55);
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #c5c5d0;
  --text-dim: #8a8a97;
  --text-faint: #6b6b78;
  --white: #ffffff;
  --gold: #c9a227;
  --radius: 0px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Texture layers ─────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

.halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* ── Glass surfaces ─────────────────────────────── */
.glass {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 40%, rgba(255, 255, 255, 0.004) 100%),
    var(--panel);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
}

.platinum {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.03) 24%, rgba(255,255,255,0.01) 48%, rgba(255,255,255,0.07) 100%),
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.12), transparent 38%),
    rgba(4, 4, 7, 0.72);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 30px 90px rgba(0, 0, 0, 0.6);
}

.gloss-top::after {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  pointer-events: none;
}

.cut {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

/* ── Type ───────────────────────────────────────── */
.kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
  font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }

p { margin: 0; }
.lede { font-size: 1.05rem; color: var(--text); max-width: 62ch; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 0.85rem; }
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.chrome {
  background: linear-gradient(180deg, #fff 0%, #c5c5d0 45%, #6b6b78 62%, #e9e9ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.rule {
  height: 1px;
  width: 40px;
  background: rgba(255, 255, 255, 0.4);
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}

/* ── Header ─────────────────────────────────────── */
header.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brandmark img { height: 26px; width: auto; }
.brandmark .tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}
nav.links {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
nav.links a { color: var(--text-dim); text-decoration: none; transition: color .2s; }
nav.links a:hover { color: #fff; }
@media (max-width: 760px) { nav.links { display: none; } }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
  color: #fff;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: border-color .25s, background .25s, transform .25s;
}
.btn:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.07); }
.btn-solid { background: #fff; color: #000; border-color: #fff; }
.btn-solid:hover { background: #dcdce4; }
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  border-style: dashed;
}

/* ── Link placeholder component ─────────────────── */
.slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.015);
}
.slot .slot-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.slot .slot-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  word-break: break-all;
}
.slot code {
  font-family: var(--mono);
  font-size: 11px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  padding: 3px 8px;
}

/* ── Sections & grid ────────────────────────────── */
section { position: relative; padding: 92px 0; }
section.tight { padding: 64px 0; }
.divider { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 1px; background: var(--line); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}

.cell { background: #050507; padding: 28px; }

.stack > * + * { margin-top: 18px; }
.stack-sm > * + * { margin-top: 10px; }
.stack-lg > * + * { margin-top: 32px; }

/* ── Lists ──────────────────────────────────────── */
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text);
}
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 2px;
  background: rgba(255,255,255,0.75);
}

ol.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; }
ol.numbered > li {
  counter-increment: n;
  position: relative;
  padding-left: 46px;
  margin-bottom: 22px;
}
ol.numbered > li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  border: 1px solid var(--line);
  padding: 4px 7px;
}

/* ── Status pills ───────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pill.public { border-color: rgba(255,255,255,0.35); color: #fff; }
.pill.private { border-style: dashed; }
.dot { width: 6px; height: 6px; background: currentColor; border-radius: 999px; }

/* ── Notice / disclaimer blocks ─────────────────── */
.notice {
  border: 1px solid var(--line);
  border-left: 2px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.02);
  padding: 18px 20px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.notice strong { color: #fff; font-weight: 600; }

.banner {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

/* ── Footer ─────────────────────────────────────── */
footer.foot {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: #000;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; font-size: 0.88rem; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Scroll reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1),
              transform .9s cubic-bezier(.16,1,.3,1),
              filter .9s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* Parallax word behind sections */
.ghost-word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(5rem, 20vw, 16rem);
  letter-spacing: -0.09em;
  -webkit-text-stroke: 1px rgba(255,255,255,0.10);
  color: transparent;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
section > .wrap { position: relative; z-index: 1; }

/* Progress rail */
#rail {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #fff, #9c9caa, #fff);
  z-index: 100;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .ghost-word { display: none; }
}
