:root {
  --ink: #f7f4ec;
  --muted: #a8aaa8;
  --muted-strong: #d7d2c6;
  --obsidian: #050606;
  --graphite: #101414;
  --panel: rgba(18, 20, 19, 0.76);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(231, 190, 112, 0.38);
  --copper: #d8913e;
  --copper-light: #f0bf72;
  --signal: #76e3d6;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 12%, rgba(216, 145, 62, 0.16), transparent 30rem),
    radial-gradient(circle at 15% 0%, rgba(118, 227, 214, 0.12), transparent 25rem),
    var(--obsidian);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  overflow: clip;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 6, 6, 0.68);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(216, 145, 62, 0.22);
  background: rgba(5, 6, 6, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.brand img {
  display: block;
  width: clamp(146px, 15vw, 204px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 28px);
  color: rgba(247, 244, 236, 0.72);
  font-size: 13px;
}

.nav-links a {
  position: relative;
  padding-block: 12px;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  content: "";
  background: var(--copper-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1;
}

.header-action {
  padding: 0 16px;
  background: rgba(247, 244, 236, 0.95);
  color: #10110f;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 6, 6, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a:not(.primary-action) {
  padding: 12px 14px;
  border-radius: 6px;
  color: rgba(247, 244, 236, 0.82);
  font-size: 15px;
  font-weight: 600;
}

.mobile-nav a:not(.primary-action):hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.mobile-nav .primary-action {
  margin-top: 6px;
  justify-content: center;
}

.section-band {
  position: relative;
}

.hero {
  min-height: min(860px, 88svh);
  display: grid;
  align-items: center;
  padding: 92px max(24px, calc((100vw - 1180px) / 2)) 18px;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: 68% center;
  filter: saturate(0.98) contrast(1.08) brightness(0.74);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.95) 0%, rgba(5, 6, 6, 0.78) 38%, rgba(5, 6, 6, 0.18) 75%),
    linear-gradient(0deg, var(--obsidian) 0%, rgba(5, 6, 6, 0.1) 38%, rgba(5, 6, 6, 0.68) 100%);
}

.orbital-system {
  position: absolute;
  right: clamp(24px, 9vw, 150px);
  top: clamp(150px, 25vh, 255px);
  z-index: -1;
  width: clamp(210px, 28vw, 420px);
  aspect-ratio: 1;
  opacity: 0.82;
}

.orbit {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(240, 191, 114, 0.2);
  border-radius: 50%;
  animation: rotate 22s linear infinite;
}

.orbit-two {
  inset: 27%;
  border-color: rgba(118, 227, 214, 0.18);
  animation-duration: 15s;
  animation-direction: reverse;
}

.orbit-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper-light);
  box-shadow: 0 0 28px rgba(240, 191, 114, 0.85);
}

.node-one {
  top: 15%;
  left: 48%;
}

.node-two {
  right: 19%;
  bottom: 24%;
  background: var(--signal);
  box-shadow: 0 0 24px rgba(118, 227, 214, 0.7);
}

.node-three {
  left: 18%;
  bottom: 39%;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  width: min(720px, 100%);
  padding-top: 80px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--copper-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 760;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 740;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.16;
}

.hero-copy {
  max-width: 620px;
  color: rgba(247, 244, 236, 0.78);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.primary-action {
  min-width: 172px;
  padding: 0 20px;
  background: var(--copper-light);
  color: #10110f;
  box-shadow: 0 16px 42px rgba(216, 145, 62, 0.24);
}

.secondary-action {
  min-width: 178px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: rgba(247, 244, 236, 0.82);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 86px);
}

.intro {
  padding: 96px 0 70px;
  background: var(--obsidian);
}

.intro-copy {
  display: grid;
  gap: 22px;
  color: var(--muted-strong);
  font-size: 19px;
  line-height: 1.65;
}

.intro-copy p {
  margin-bottom: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-block: 1px solid var(--line);
}

.metric-tile {
  min-height: 178px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
}

.metric-tile:last-child {
  border-right: 0;
}

.metric-tile strong {
  display: block;
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(44px, 6vw, 74px);
  line-height: 0.88;
}

.metric-tile span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.model,
.stack,
.hub,
.counterparties,
.ip,
.roadmap,
.documents,
.contact {
  padding: clamp(78px, 10vw, 132px) 0;
}

.hub {
  background:
    linear-gradient(90deg, rgba(118, 227, 214, 0.12), transparent 42%),
    #0b0d0d;
}

.model {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--obsidian);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.78fr);
  gap: clamp(28px, 6vw, 86px);
  margin-bottom: 54px;
  align-items: end;
}

.section-heading.compact {
  display: block;
  max-width: 790px;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 6px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.6;
}

.flow-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.flow-board article,
.stack-card,
.counterparty-card,
.ip-list article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

.flow-board article {
  min-height: 242px;
  padding: 24px;
}

.flow-index {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--copper-light);
  font-size: 12px;
  font-weight: 800;
}

.flow-board p,
.stack-card p,
.counterparty-card p,
.ip-list p,
.packaging p,
.timeline-panel p,
.contact p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--copper-light);
  font-size: 26px;
}

.stack {
  background:
    radial-gradient(circle at 12% 28%, rgba(118, 227, 214, 0.1), transparent 32rem),
    #090b0b;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stack-card {
  min-height: 300px;
  padding: 24px;
  overflow: hidden;
}

.stack-card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: auto;
  padding: 28px 32px;
}

.stack-card-wide .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.stack-card-wide h3 {
  margin-bottom: 6px;
}

.stack-card::after,
.counterparty-card::after {
  position: absolute;
  inset: auto 18px 18px auto;
  width: 48px;
  height: 1px;
  content: "";
  background: var(--line-strong);
}

.card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 56px;
  place-items: center;
  border: 1px solid rgba(240, 191, 114, 0.34);
  border-radius: 8px;
  color: var(--signal);
  font-size: 28px;
}

.card-icon-brand {
  padding: 6px;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.96);
}

.card-icon-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.packaging {
  display: grid;
  grid-template-columns: 0.35fr 1fr 0.7fr;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(240, 191, 114, 0.26);
  border-radius: var(--radius);
  background: rgba(216, 145, 62, 0.08);
}

.packaging span {
  color: var(--copper-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.packaging strong {
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1;
}

.counterparties {
  background: var(--obsidian);
}

.counterparty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.counterparty-card {
  min-height: 260px;
  padding: 24px;
}

.counterparty-card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: auto;
  padding: 24px 28px;
}

.counterparty-card-wide span {
  margin-bottom: 0;
  flex-shrink: 0;
}

.counterparty-card-wide h3 {
  margin-bottom: 6px;
}

.counterparty-card span {
  display: inline-flex;
  margin-bottom: 52px;
  color: var(--signal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ip {
  background:
    linear-gradient(90deg, rgba(216, 145, 62, 0.14), transparent 42%),
    #0d0e0d;
}

.ip-panel {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(240, 191, 114, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005)),
    linear-gradient(135deg, rgba(216, 145, 62, 0.2), rgba(118, 227, 214, 0.05));
  box-shadow: var(--shadow);
}

.ip-panel p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.6;
}

.ip-list {
  display: grid;
  gap: 14px;
}

.ip-list article {
  padding: 24px;
}

.roadmap {
  background: #070908;
}

.timeline {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  min-height: 360px;
}

.timeline-tabs {
  display: grid;
  gap: 12px;
  align-content: start;
}

.timeline-tabs button {
  min-height: 70px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 244, 236, 0.74);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.timeline-tabs button:hover,
.timeline-tabs button.is-active {
  border-color: rgba(240, 191, 114, 0.42);
  background: rgba(216, 145, 62, 0.12);
  color: var(--ink);
}

.timeline-panel {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--shadow);
}

.timeline-panel span {
  color: var(--signal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-panel h3 {
  max-width: 840px;
  margin: 36px 0 22px;
  font-size: clamp(30px, 4.8vw, 64px);
  line-height: 1;
}

.documents {
  background: #0b0d0c;
}

.document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.document-list li {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-strong);
}

.document-list li::before {
  width: 7px;
  height: 7px;
  margin-right: 12px;
  border-radius: 50%;
  content: "";
  background: var(--copper-light);
  box-shadow: 0 0 20px rgba(240, 191, 114, 0.58);
}

.contact {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding-inline: 20px;
  background:
    linear-gradient(rgba(5, 6, 6, 0.72), rgba(5, 6, 6, 0.92)),
    url("assets/asterion-hero.jpg") center / cover;
}

.contact-inner {
  width: min(980px, 100%);
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 6, 6, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.contact-logo {
  display: block;
  width: min(300px, 78vw);
  height: auto;
  margin-bottom: 34px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.contact-inner h2 {
  max-width: 850px;
}

.contact-inner p {
  max-width: 680px;
  margin-top: 22px;
  margin-bottom: 28px;
  color: var(--muted-strong);
  font-size: 18px;
}

.portal-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 6, 6, 0.8), rgba(5, 6, 6, 0.96)),
    url("assets/asterion-hero.jpg") center / cover fixed;
}

.portal-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 76px;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 6, 6, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.portal-brand img {
  width: clamp(150px, 15vw, 204px);
}

.portal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.portal-nav[hidden] {
  display: none;
}

.portal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 244, 236, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: 620px;
  padding: clamp(62px, 8vw, 104px) 0;
}

.portal-hero[hidden] {
  display: none;
}

.portal-copy h1 {
  max-width: 850px;
  font-size: clamp(34px, 4.6vw, 60px);
}

.portal-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted-strong);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.access-panel,
.portal-card,
.portal-status,
.portal-overview article,
.support-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(12, 14, 13, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.access-panel {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
}

.access-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.access-panel-head span {
  color: var(--signal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-panel-head strong {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.access-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.access-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font: inherit;
}

.access-panel input:focus {
  border-color: rgba(240, 191, 114, 0.65);
  box-shadow: 0 0 0 3px rgba(240, 191, 114, 0.12);
}

.portal-entry-link {
  width: 100%;
}

.access-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.access-error {
  min-height: 40px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(240, 191, 114, 0.32);
  border-radius: 8px;
  background: rgba(216, 145, 62, 0.1);
  color: var(--copper-light);
  font-size: 13px;
  font-weight: 800;
}

.access-error[hidden] {
  display: none;
}

.portal-dashboard {
  display: grid;
  gap: 18px;
  padding-top: clamp(32px, 5vw, 58px);
}

.portal-dashboard[hidden] {
  display: none;
}

.client-screen-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding: 12px 0 8px;
}

.client-screen-head h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(38px, 5.2vw, 72px);
}

.client-screen-head p:not(.eyebrow) {
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.portal-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 18px 20px;
}

.portal-status strong {
  font-size: 18px;
}

.portal-status small {
  grid-column: 2;
  color: var(--muted);
}

.ghost-action {
  grid-row: 1 / span 2;
  grid-column: 3;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.ghost-action:hover {
  border-color: rgba(240, 191, 114, 0.42);
  color: var(--ink);
}

.status-dot {
  grid-row: span 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 28px rgba(118, 227, 214, 0.8);
}

.portal-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-overview article {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
}

.portal-overview span {
  color: var(--signal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-overview strong {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.portal-overview small {
  color: var(--muted);
  line-height: 1.4;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  min-width: 0;
}

.portal-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-card {
  min-width: 0;
  min-height: 330px;
  padding: clamp(22px, 3vw, 30px);
}

.api-card,
.training-card {
  min-height: 390px;
}

.portal-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.portal-card-head .eyebrow {
  margin-bottom: 8px;
}

.portal-card h2,
.support-strip h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1;
}

.service-launcher {
  min-height: auto;
}

.service-loader {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 56px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.loader-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--copper-light);
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.service-content {
  display: grid;
  gap: 18px;
}

.service-loader[hidden],
.service-content[hidden] {
  display: none;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-button {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.service-grid .service-button:last-child {
  grid-column: 1 / -1;
}

.service-button:hover,
.service-button.is-active {
  border-color: rgba(240, 191, 114, 0.45);
  background: rgba(216, 145, 62, 0.13);
}

.service-button:hover {
  transform: translateY(-1px);
}

.service-button strong {
  font-size: 17px;
  line-height: 1.15;
}

.service-button span {
  color: var(--muted);
  font-size: 13px;
}

.simulation-console {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(118, 227, 214, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  transition: opacity 180ms ease;
}

.simulation-console.is-loading {
  animation: consolePulse 900ms ease-in-out infinite;
}

.simulation-console.is-loading strong {
  color: var(--muted-strong);
}

@keyframes consolePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.simulation-console span {
  color: var(--signal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.simulation-console strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.simulation-console p {
  margin-bottom: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.endpoint-list,
.model-list,
.training-queue,
.record-list,
.document-vault,
.portal-checklist {
  display: grid;
  gap: 12px;
}

.endpoint-list div,
.model-list div,
.training-queue div,
.record-list div,
.document-vault button {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.endpoint-list span,
.model-list span,
.training-queue span,
.record-list span,
.document-vault span {
  color: var(--muted);
  font-size: 13px;
}

.document-vault button {
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.document-vault button:hover {
  border-color: rgba(240, 191, 114, 0.42);
  background: rgba(216, 145, 62, 0.11);
}

.inline-action {
  width: fit-content;
  margin-top: 18px;
}

.code-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(118, 227, 214, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  overflow: auto;
  max-width: 100%;
}

.code-block code {
  color: rgba(247, 244, 236, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
}

progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper-light), var(--signal));
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper-light), var(--signal));
}

.portal-checklist {
  padding: 0;
  margin: 0;
  list-style: none;
}

.portal-checklist li {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--muted-strong);
}

.portal-checklist li::before {
  width: 7px;
  height: 7px;
  margin-right: 12px;
  border-radius: 50%;
  content: "";
  background: var(--copper-light);
}

.client-portfolio {
  min-height: auto;
}

.client-portfolio-note {
  margin-top: -16px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.client-roster {
  display: grid;
  gap: 10px;
}

.client-row {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1fr 1.1fr 0.9fr 0.7fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.client-row-head {
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-row span,
.client-row strong {
  overflow-wrap: anywhere;
}

.client-tokens {
  color: var(--copper-light);
}

.usage-cell {
  display: grid;
  gap: 6px;
}

.usage-cell small {
  color: var(--muted);
  font-size: 12px;
}

.client-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.client-status .status-dot {
  width: 8px;
  height: 8px;
  box-shadow: none;
  background: var(--signal);
}

.client-status.is-review .status-dot {
  background: var(--copper-light);
}

.client-status.is-onboarding .status-dot {
  background: var(--muted);
}

.support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px);
}

.support-strip .eyebrow {
  margin-bottom: 10px;
}

.activity-stream {
  min-height: auto;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid rgba(118, 227, 214, 0.3);
  border-radius: 999px;
  color: var(--signal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-badge .status-dot {
  width: 7px;
  height: 7px;
  animation: livePulse 1600ms ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(118, 227, 214, 0.6);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 10px rgba(118, 227, 214, 0.6);
  }
}

.activity-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 380ms ease,
    transform 380ms ease,
    max-height 380ms ease;
}

.activity-list li.is-entering {
  opacity: 0;
  transform: translateY(-8px);
}

.activity-list li.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

.activity-list strong {
  color: var(--signal);
}

.activity-list span {
  color: var(--muted-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    width: min(100% - 24px, 760px);
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: min(820px, 90svh);
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 6, 6, 0.94) 0%, rgba(5, 6, 6, 0.72) 54%, rgba(5, 6, 6, 0.32) 100%),
      linear-gradient(0deg, var(--obsidian) 0%, rgba(5, 6, 6, 0.18) 40%, rgba(5, 6, 6, 0.72) 100%);
  }

  .two-column,
  .section-heading,
  .timeline,
  .client-screen-head,
  .portal-hero,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .metrics,
  .stack-grid,
  .counterparty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-tile:nth-child(2) {
    border-right: 0;
  }

  .metric-tile:nth-child(1),
  .metric-tile:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .flow-board {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    min-height: 36px;
    transform: rotate(90deg);
  }

  .packaging {
    grid-template-columns: 1fr;
  }

  .timeline-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline-tabs button {
    min-height: 58px;
    text-align: center;
  }

  .portal-topbar,
  .support-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    margin-top: 0;
  }

  .header-action {
    display: none;
  }

  .brand {
    padding: 4px 9px;
  }

  .brand img {
    width: min(156px, 43vw);
  }

  .hero {
    min-height: auto;
    padding: 108px 20px 34px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  h2 {
    font-size: clamp(32px, 11vw, 48px);
  }

  .hero-copy,
  .intro-copy,
  .section-heading p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions,
  .primary-action,
  .secondary-action,
  .support-strip .secondary-action {
    width: 100%;
  }

  .metrics,
  .stack-grid,
  .counterparty-grid,
  .document-list,
  .service-grid,
  .timeline-tabs {
    grid-template-columns: 1fr;
  }

  .metric-tile {
    min-height: 140px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-tile:last-child {
    border-bottom: 0;
  }

  .stack-card,
  .counterparty-card {
    min-height: 230px;
  }

  .stack-card-wide,
  .counterparty-card-wide {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .card-icon,
  .counterparty-card span {
    margin-bottom: 34px;
  }

  .ip-panel {
    min-height: 360px;
  }

  .timeline-panel h3 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .portal-shell {
    width: min(100% - 24px, 520px);
    padding-top: 12px;
  }

  .portal-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-nav a {
    justify-content: center;
  }

  .portal-hero {
    min-height: auto;
    padding: 54px 0;
  }

  .portal-copy h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .client-screen-head h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .portal-status {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .portal-status small {
    grid-column: auto;
  }

  .status-dot {
    grid-row: auto;
  }

  .ghost-action {
    grid-row: auto;
    grid-column: auto;
    width: 100%;
  }

  .portal-overview {
    grid-template-columns: 1fr;
  }

  .activity-list li {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px 16px;
  }

  .client-row-head {
    display: none;
  }

  .client-row {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }

  .portal-status strong,
  .portal-status small,
  .endpoint-list strong,
  .model-list strong,
  .training-queue strong,
  .portal-checklist li {
    overflow-wrap: anywhere;
  }
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 6, 0.72);
  backdrop-filter: blur(6px);
}

.confirm-overlay[hidden] {
  display: none;
}

.confirm-card {
  width: min(400px, 100%);
  padding: clamp(24px, 4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--graphite);
  box-shadow: var(--shadow);
}

.confirm-card h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 26px);
  line-height: 1.15;
}

.confirm-card p:not(.eyebrow) {
  color: var(--muted-strong);
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.confirm-actions .primary-action,
.confirm-actions .secondary-action {
  min-height: 40px;
  padding: 0 18px;
}
