/* RIP Active Directory — modern editorial website
   Static CSS, no external dependencies. */

:root {
  --bg: #f5f5f7;
  --bg-soft: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: rgba(29, 29, 31, 0.12);
  --panel: rgba(255, 255, 255, 0.76);
  --panel-solid: #ffffff;
  --panel-dark: #111217;
  --blue: #0071e3;
  --blue-2: #2997ff;
  --purple: #7b61ff;
  --cyan: #5ac8fa;
  --green: #32d74b;
  --orange: #ff9f0a;
  --red: #ff453a;
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 48px 120px rgba(0, 0, 0, 0.18);
  --radius-sm: 16px;
  --radius-md: 28px;
  --radius-lg: 42px;
  --radius-xl: 56px;
  --max: 1180px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 12% 4%, rgba(90, 200, 250, 0.32), transparent 34rem),
    radial-gradient(circle at 88% 2%, rgba(123, 97, 255, 0.26), transparent 36rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 38%, #ffffff 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  color: #fff;
  background: rgba(0, 113, 227, 0.9);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px);
  background-size: 34px 34px, 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--purple));
  box-shadow: 0 0 18px rgba(0, 113, 227, 0.52);
}

.section-shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 999;
  width: min(var(--max), calc(100% - 32px));
  height: var(--header-h);
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(145deg, #111217, #2b2e3b 54%, #0071e3);
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
}

.brand-text {
  font-size: 0.96rem;
  color: rgba(29, 29, 31, 0.92);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  color: rgba(29, 29, 31, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(29, 29, 31, 0.06);
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  color: white;
  background: rgba(0, 113, 227, 0.95);
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
}

.site-nav .nav-cta:hover {
  color: white;
  background: #0066cc;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }

.nav-toggle em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.nav-open .nav-toggle span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  padding: clamp(62px, 9vw, 122px) 0 clamp(58px, 7vw, 90px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 740px;
  color: var(--text);
  font-size: clamp(4.6rem, 11.4vw, 10.6rem);
  line-height: 0.82;
  letter-spacing: -0.085em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero h1 span:first-child {
  background: linear-gradient(110deg, #1d1d1f 8%, #0071e3 54%, #7b61ff 88%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 30px 0 0;
  max-width: 680px;
  color: rgba(29, 29, 31, 0.74);
  font-size: clamp(1.22rem, 2vw, 1.72rem);
  line-height: 1.34;
  letter-spacing: -0.035em;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(180deg, #1685ff, #0071e3);
  box-shadow: 0 18px 42px rgba(0, 113, 227, 0.26);
}

.button-primary:hover {
  box-shadow: 0 24px 52px rgba(0, 113, 227, 0.32);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(29, 29, 31, 0.09);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.metric-strip {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 660px;
  gap: 10px;
}

.metric-strip div {
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.metric-strip strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.metric-strip span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Hero visual */

.hero-visual {
  position: relative;
  min-height: 620px;
  perspective: 1300px;
}

.orbital {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.86;
  pointer-events: none;
}

.orbital-one {
  top: 24px;
  right: 28px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.28), transparent 65%);
  animation: floatOne 8s ease-in-out infinite;
}

.orbital-two {
  bottom: 40px;
  left: 4px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.24), transparent 65%);
  animation: floatTwo 9s ease-in-out infinite;
}

.device-shell {
  position: absolute;
  inset: 52px 8px 68px;
  border-radius: 42px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.52)),
    radial-gradient(circle at 20% 0%, rgba(90, 200, 250, 0.42), transparent 32%),
    radial-gradient(circle at 92% 16%, rgba(123, 97, 255, 0.34), transparent 36%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-xl);
  transform: rotateX(7deg) rotateY(-10deg) rotateZ(1deg);
  transform-style: preserve-3d;
}

.device-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), transparent 42%, rgba(0, 113, 227, 0.13));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  mask-composite: exclude;
}

.device-topbar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 12px;
}

.device-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.18);
}

.device-topbar span:nth-child(1) { background: rgba(255, 69, 58, 0.66); }
.device-topbar span:nth-child(2) { background: rgba(255, 159, 10, 0.66); }
.device-topbar span:nth-child(3) { background: rgba(50, 215, 75, 0.66); }

.screen {
  min-height: calc(100% - 32px);
  border-radius: 30px;
  overflow: hidden;
  padding: 22px;
  color: #f5f5f7;
  background:
    linear-gradient(145deg, rgba(17, 18, 23, 0.96), rgba(33, 38, 52, 0.96)),
    radial-gradient(circle at 24% 16%, rgba(0, 113, 227, 0.4), transparent 34%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.screen-header p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.screen-header span {
  padding: 7px 10px;
  color: rgba(245, 245, 247, 0.74);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.identity-map {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 250px;
  margin-top: 22px;
}

.map-node {
  position: relative;
  min-height: 185px;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.map-node::after {
  content: "";
  position: absolute;
  width: 104px;
  height: 104px;
  right: -28px;
  bottom: -38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.map-node small {
  display: inline-flex;
  padding: 6px 9px;
  color: rgba(245, 245, 247, 0.74);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.map-node strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.18rem, 2vw, 1.6rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.map-node span {
  display: block;
  margin-top: 12px;
  color: rgba(245, 245, 247, 0.64);
  font-size: 0.88rem;
  line-height: 1.45;
}

.node-ad {
  background:
    linear-gradient(145deg, rgba(255, 159, 10, 0.14), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.06);
}

.node-cloud {
  background:
    linear-gradient(145deg, rgba(0, 113, 227, 0.20), rgba(123, 97, 255, 0.12)),
    rgba(255, 255, 255, 0.06);
}

.connector-line {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 159, 10, 0.8), rgba(90, 200, 250, 0.9), rgba(0, 113, 227, 0.9));
  box-shadow: 0 0 24px rgba(90, 200, 250, 0.32);
}

.connector-line i {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: white;
  transform: translateY(-50%);
  animation: moveDot 2.4s linear infinite;
}

.connector-line i:nth-child(1) { left: 0; animation-delay: 0s; }
.connector-line i:nth-child(2) { left: 0; animation-delay: 0.8s; }
.connector-line i:nth-child(3) { left: 0; animation-delay: 1.6s; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.service-grid span {
  display: grid;
  place-items: center;
  min-height: 58px;
  color: rgba(245, 245, 247, 0.78);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-card {
  position: absolute;
  width: min(250px, 44vw);
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-md);
}

.floating-card strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-card p {
  margin: 8px 0 0;
  color: rgba(29, 29, 31, 0.72);
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-top {
  top: 0;
  left: 0;
  animation: floatOne 7.2s ease-in-out infinite;
}

.card-bottom {
  right: 8px;
  bottom: 18px;
  animation: floatTwo 8.2s ease-in-out infinite;
}

.pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(50, 215, 75, 0.45);
  animation: pulse 2s infinite;
}

/* Shared sections */

.intro-band {
  padding: 20px 0 86px;
}

.intro-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  border-radius: var(--radius-xl);
  color: white;
  background:
    radial-gradient(circle at 16% 0%, rgba(90, 200, 250, 0.42), transparent 28%),
    radial-gradient(circle at 96% 22%, rgba(123, 97, 255, 0.42), transparent 34%),
    linear-gradient(145deg, #111217, #202638 65%, #0b1220);
  box-shadow: var(--shadow-xl);
}

.intro-card::after {
  content: "";
  position: absolute;
  inset: -140px -80px auto auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.intro-kicker {
  display: inline-flex;
  padding: 8px 12px;
  color: rgba(245, 245, 247, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.intro-card h2 {
  position: relative;
  margin: 22px 0 0;
  max-width: 950px;
  font-size: clamp(2.1rem, 5.2vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.intro-card p {
  position: relative;
  margin: 24px 0 0;
  max-width: 780px;
  color: rgba(245, 245, 247, 0.72);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.52;
  letter-spacing: -0.03em;
}

.manifest,
.visual-section,
.chapter-overview,
.roadmap {
  padding: clamp(68px, 8vw, 112px) 0;
}

.section-intro {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-intro.wide {
  max-width: 900px;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.section-intro p:not(.eyebrow) {
  margin: 22px 0 0;
  color: rgba(29, 29, 31, 0.68);
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
  line-height: 1.54;
  letter-spacing: -0.025em;
}

.manifest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.statement-card,
.chapter-card,
.roadmap-list article,
.arch-column,
.timeline-panel,
.sidebar-card,
.chapter-article {
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow-sm);
}

.statement-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.statement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.88);
}

.statement-card::before {
  content: "";
  position: absolute;
  inset: auto -48px -80px auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.16), transparent 70%);
}

.statement-number {
  color: rgba(29, 29, 31, 0.28);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.statement-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-top: 58px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, #111217, #0071e3);
  box-shadow: 0 18px 38px rgba(0, 113, 227, 0.22);
}

.statement-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.statement-card h3 {
  margin: 22px 0 0;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.statement-card p {
  margin: 16px 0 0;
  color: rgba(29, 29, 31, 0.66);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

/* Visual architecture */

.architecture-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 38px;
}

.arch-column {
  position: relative;
  min-height: 440px;
  padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.arch-column::before {
  content: "";
  position: absolute;
  inset: auto -100px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
}

.arch-column.onprem::before {
  background: radial-gradient(circle, rgba(255, 159, 10, 0.22), transparent 70%);
}

.arch-column.cloud::before {
  background: radial-gradient(circle, rgba(0, 113, 227, 0.25), transparent 70%);
}

.arch-badge {
  display: inline-flex;
  padding: 8px 12px;
  color: rgba(29, 29, 31, 0.64);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.06);
}

.arch-column h3 {
  margin: 28px 0 0;
  max-width: 360px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.arch-column p {
  margin: 22px 0 0;
  max-width: 430px;
  color: rgba(29, 29, 31, 0.68);
  font-size: 1.05rem;
  line-height: 1.54;
  letter-spacing: -0.02em;
}

.arch-column ul {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.arch-column li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(29, 29, 31, 0.76);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.arch-column li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.09);
}

.onprem li::before {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 159, 10, 0.10);
}

.sync-bridge {
  align-self: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  color: rgba(29, 29, 31, 0.70);
}

.sync-bridge span {
  width: 100%;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: rgba(29, 29, 31, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(29, 29, 31, 0.08);
  box-shadow: var(--shadow-sm);
}

.sync-bridge i {
  width: 2px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 159, 10, 0.9), rgba(0, 113, 227, 0.9));
  border-radius: 999px;
}

.timeline-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 46px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 159, 10, 0.7), rgba(0, 113, 227, 0.7), rgba(123, 97, 255, 0.7));
}

.timeline-track article {
  position: relative;
  min-height: 190px;
  padding: 20px;
  border-radius: 30px;
  background: rgba(245, 245, 247, 0.78);
}

.timeline-track span {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 850;
  border-radius: 999px;
  background: linear-gradient(145deg, #111217, #0071e3);
  box-shadow: 0 14px 32px rgba(0, 113, 227, 0.22);
}

.timeline-track strong {
  display: block;
  margin-top: 18px;
  font-size: 1.05rem;
  letter-spacing: -0.035em;
}

.timeline-track p {
  margin: 10px 0 0;
  color: rgba(29, 29, 31, 0.62);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Chapters */

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.chapter-card {
  position: relative;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.chapter-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.16), transparent 70%);
  transition: transform 220ms ease;
}

.chapter-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.chapter-card:hover::after {
  transform: scale(1.15);
}

.chapter-card span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: auto;
  max-width: 320px;
  font-size: clamp(1.3rem, 2vw, 1.88rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.chapter-card em {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: rgba(29, 29, 31, 0.58);
  font-style: normal;
  line-height: 1.35;
}

.chapter-card.active {
  color: white;
  background:
    radial-gradient(circle at 12% 0%, rgba(90, 200, 250, 0.34), transparent 28%),
    linear-gradient(145deg, #111217, #1d2740 64%, #003e7d);
  box-shadow: var(--shadow-md);
}

.chapter-card.active span,
.chapter-card.active em {
  color: rgba(245, 245, 247, 0.74);
}

.chapter-card.active::after {
  background: radial-gradient(circle, rgba(90, 200, 250, 0.28), transparent 70%);
}

.chapter-card.muted {
  opacity: 0.92;
}

/* Book layout */

.book-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: clamp(72px, 9vw, 120px) 0;
}

.book-sidebar {
  position: sticky;
  top: 104px;
}

.sidebar-card {
  padding: 20px;
  border-radius: 30px;
}

.sidebar-title {
  margin: 0;
  color: rgba(29, 29, 31, 0.50);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-sidebar ol {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.book-sidebar a {
  display: block;
  padding: 11px 12px;
  color: rgba(29, 29, 31, 0.62);
  font-size: 0.92rem;
  font-weight: 650;
  border-radius: 14px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.book-sidebar a:hover,
.book-sidebar a.active {
  color: var(--text);
  background: rgba(0, 113, 227, 0.08);
  transform: translateX(2px);
}

.chapter-article {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 80% 0%, rgba(0, 113, 227, 0.12), transparent 32%);
  box-shadow: var(--shadow-md);
}

.chapter-header {
  position: relative;
  padding: clamp(36px, 6vw, 72px) clamp(26px, 6vw, 78px) clamp(28px, 5vw, 56px);
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
}

.chapter-header::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.18), transparent 70%);
}

.chapter-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chapter-meta span {
  display: inline-flex;
  padding: 8px 10px;
  color: rgba(29, 29, 31, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.055);
}

.chapter-header h2 {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  max-width: 820px;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.chapter-subtitle {
  position: relative;
  z-index: 1;
  margin: 26px 0 0;
  max-width: 830px;
  color: rgba(29, 29, 31, 0.66);
  font-size: clamp(1.1rem, 1.9vw, 1.42rem);
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.article-section {
  padding: clamp(30px, 5vw, 58px) clamp(26px, 6vw, 78px);
  border-top: 1px solid rgba(29, 29, 31, 0.065);
}

.article-section:first-of-type {
  border-top: 0;
}

.lead-paragraph {
  margin-top: 0 !important;
  color: var(--text) !important;
  font-size: clamp(1.5rem, 2.6vw, 2.42rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.055em !important;
}

.article-section h3 {
  margin: 0 0 22px;
  max-width: 780px;
  font-size: clamp(1.78rem, 3.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.article-section p {
  margin: 18px 0 0;
  max-width: 820px;
  color: rgba(29, 29, 31, 0.74);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.72;
  letter-spacing: -0.018em;
}

.article-section strong {
  color: var(--text);
  font-weight: 790;
}

blockquote {
  position: relative;
  margin: clamp(28px, 4vw, 46px) 0;
  max-width: 880px;
  padding: clamp(28px, 5vw, 48px);
  color: white;
  font-size: clamp(1.48rem, 3vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.065em;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 0%, rgba(90, 200, 250, 0.28), transparent 28%),
    linear-gradient(145deg, #111217, #202638 66%, #0b1220);
  box-shadow: var(--shadow-md);
}

blockquote::before {
  content: "“";
  position: absolute;
  top: 12px;
  right: 30px;
  color: rgba(255, 255, 255, 0.13);
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 1;
}

.note {
  position: relative;
  margin: clamp(26px, 4vw, 44px) 0;
  max-width: 860px;
  padding: 24px 26px 24px 28px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(245, 245, 247, 0.86);
}

.note::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--blue);
}

.note span {
  display: inline-flex;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note p {
  margin: 10px 0 0;
  color: rgba(29, 29, 31, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.6;
}

.field-note::before { background: var(--blue); }
.reality-check::before { background: var(--orange); }
.legacy-marker::before { background: var(--purple); }

.reality-check span { color: #b86200; }
.legacy-marker span { color: var(--purple); }

/* Roadmap and footer */

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.roadmap-list article {
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.roadmap-list span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: white;
  font-weight: 850;
  border-radius: 18px;
  background: linear-gradient(145deg, #111217, #0071e3);
  box-shadow: 0 18px 38px rgba(0, 113, 227, 0.18);
}

.roadmap-list h3 {
  margin: 56px 0 0;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.roadmap-list p {
  margin: 14px 0 0;
  color: rgba(29, 29, 31, 0.66);
  line-height: 1.56;
  letter-spacing: -0.02em;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 0;
  border-top: 1px solid rgba(29, 29, 31, 0.1);
}

.site-footer strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-footer p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  min-width: max-content;
  color: var(--blue);
  font-weight: 750;
}

/* Animation helpers */

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

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

.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 180ms; }

@keyframes moveDot {
  0% {
    opacity: 0;
    transform: translate(-4px, -50%) scale(0.8);
  }
  15% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(72px, -50%) scale(1.05);
  }
}

@keyframes floatOne {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

@keyframes floatTwo {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 16px, 0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(50, 215, 75, 0.42); }
  70% { box-shadow: 0 0 0 11px rgba(50, 215, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(50, 215, 75, 0); }
}

/* Responsive */

@media (max-width: 1060px) {
  .section-shell,
  .site-footer {
    width: min(100% - 34px, var(--max));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .device-shell {
    inset: 42px 28px 58px;
    transform: rotateX(5deg) rotateY(-5deg);
  }

  .manifest-grid,
  .chapter-grid,
  .roadmap-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-stage {
    grid-template-columns: 1fr;
  }

  .sync-bridge {
    grid-template-columns: 1fr 42px 1fr 42px 1fr;
    align-items: center;
  }

  .sync-bridge i {
    width: 42px;
    height: 2px;
  }

  .timeline-track {
    grid-template-columns: 1fr;
  }

  .timeline-track::before {
    left: 47px;
    right: auto;
    top: 36px;
    bottom: 36px;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, rgba(255, 159, 10, 0.7), rgba(0, 113, 227, 0.7), rgba(123, 97, 255, 0.7));
  }

  .timeline-track article {
    min-height: auto;
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 16px;
    align-items: start;
  }

  .timeline-track strong,
  .timeline-track p {
    grid-column: 2;
  }

  .timeline-track strong {
    margin-top: 4px;
  }

  .book-layout {
    grid-template-columns: 1fr;
  }

  .book-sidebar {
    position: relative;
    top: auto;
  }

  .book-sidebar ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .book-sidebar ol::-webkit-scrollbar {
    display: none;
  }

  .book-sidebar a {
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
  }

  html {
    scroll-padding-top: 84px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 84px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-nav a {
    justify-content: center;
    height: 48px;
    font-size: 1rem;
  }

  .hero {
    padding: 56px 0 44px;
  }

  .hero h1 {
    font-size: clamp(4.1rem, 22vw, 7.2rem);
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    min-height: 690px;
  }

  .device-shell {
    inset: 94px 0 100px;
    transform: none;
    border-radius: 34px;
  }

  .identity-map {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .connector-line {
    width: 4px;
    height: 54px;
    justify-self: center;
    background: linear-gradient(to bottom, rgba(255, 159, 10, 0.8), rgba(90, 200, 250, 0.9), rgba(0, 113, 227, 0.9));
  }

  .connector-line i {
    left: 50%;
    top: 0;
    animation: moveDotMobile 2.4s linear infinite;
  }

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

  .floating-card {
    width: calc(50% - 8px);
  }

  .card-top {
    top: 10px;
    left: 0;
  }

  .card-bottom {
    right: 0;
    bottom: 12px;
  }

  .intro-card,
  .chapter-article {
    border-radius: 34px;
  }

  .manifest-grid,
  .chapter-grid,
  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .statement-card,
  .chapter-card,
  .roadmap-list article {
    min-height: 250px;
  }

  .statement-icon {
    margin-top: 38px;
  }

  .sync-bridge {
    grid-template-columns: 1fr;
  }

  .sync-bridge i {
    width: 2px;
    height: 36px;
  }

  .article-section,
  .chapter-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  blockquote {
    border-radius: 28px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .section-shell,
  .site-footer {
    width: calc(100% - 24px);
  }

  .brand-text {
    display: none;
  }

  .hero h1 {
    letter-spacing: -0.095em;
  }

  .hero-lead {
    font-size: 1.18rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    min-height: 82px;
  }

  .hero-visual {
    min-height: 720px;
  }

  .screen {
    padding: 16px;
    border-radius: 24px;
  }

  .device-shell {
    padding: 10px;
  }

  .floating-card {
    width: 100%;
  }

  .card-top {
    top: 0;
  }

  .card-bottom {
    bottom: 0;
  }

  .section-intro h2,
  .intro-card h2 {
    letter-spacing: -0.08em;
  }

  .arch-column {
    min-height: auto;
  }

  .timeline-track article {
    grid-template-columns: 62px 1fr;
  }

  .timeline-track::before {
    left: 37px;
  }

  .chapter-meta {
    gap: 6px;
  }

  .chapter-meta span {
    font-size: 0.64rem;
  }
}

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

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

@keyframes moveDotMobile {
  0% {
    opacity: 0;
    transform: translate(-50%, -4px) scale(0.8);
  }
  15% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, 54px) scale(1.05);
  }
}

/* v3 refinements: cleaner structure, stronger RIP mark and stacked hybrid visual. */
:root {
  --header-h: 76px;
}

.site-header {
  height: var(--header-h);
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.brand-mark .stone {
  fill: #111217;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.4;
}

.brand-mark .stone-base,
.brand-mark .forest-line {
  fill: none;
  stroke: #2997ff;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .forest-node {
  fill: #5ac8fa;
  stroke: #ffffff;
  stroke-width: 1.2;
}

.brand-mark text {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-family: var(--font);
}

.site-nav a {
  height: 44px;
}

.hero {
  min-height: auto;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  padding: clamp(62px, 8vw, 110px) 0 clamp(50px, 7vw, 82px);
}

.hero h1 {
  font-size: clamp(4.2rem, 9.6vw, 8.9rem);
  letter-spacing: -0.08em;
}

.hero-lead {
  max-width: 720px;
}

.hero-stack {
  min-height: 590px;
  perspective: 1200px;
}

.hero-stack .orbital-one {
  top: 34px;
  right: 34px;
  width: 220px;
  height: 220px;
  opacity: 0.52;
}

.hero-stack .orbital-two {
  bottom: 58px;
  left: 18px;
  width: 180px;
  height: 180px;
  opacity: 0.44;
}

.stack-panel {
  position: absolute;
  inset: 36px 0 46px;
  border-radius: 42px;
  padding: clamp(20px, 3vw, 30px);
  color: #f5f5f7;
  background:
    radial-gradient(circle at 18% 6%, rgba(90, 200, 250, 0.25), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(123, 97, 255, 0.20), transparent 32%),
    linear-gradient(145deg, #111217, #202638 62%, #0b1220);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-xl);
  transform: rotateX(5deg) rotateY(-7deg) rotateZ(0.6deg);
  overflow: hidden;
}

.stack-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.46), transparent 35%, rgba(41, 151, 255, 0.16));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  mask-composite: exclude;
}

.stack-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.stack-title-row span {
  display: block;
  color: rgba(245, 245, 247, 0.64);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stack-title-row strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
}

.rip-chip {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.rip-chip svg {
  width: 58px;
  height: 58px;
  overflow: visible;
}

.rip-chip path:first-child {
  fill: rgba(245, 245, 247, 0.12);
  stroke: rgba(245, 245, 247, 0.70);
  stroke-width: 1.5;
}

.rip-chip path:not(:first-child) {
  fill: none;
  stroke: #5ac8fa;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rip-chip circle {
  fill: #5ac8fa;
  stroke: #ffffff;
  stroke-width: 1.1;
}

.rip-chip text {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-family: var(--font);
}

.identity-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.stack-layer,
.service-layer,
.foundation-layer {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.entra-layer {
  padding: 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(90, 200, 250, 0.20), transparent 32%),
    linear-gradient(145deg, rgba(0, 113, 227, 0.23), rgba(123, 97, 255, 0.14)),
    rgba(255, 255, 255, 0.06);
}

.stack-layer small,
.foundation-layer small {
  display: inline-flex;
  color: rgba(245, 245, 247, 0.60);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stack-layer strong,
.foundation-layer strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.layer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.layer-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: rgba(245, 245, 247, 0.78);
  font-size: 0.78rem;
  font-weight: 750;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.stack-connectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  height: 26px;
  padding: 0 42px;
}

.stack-connectors i {
  display: block;
  width: 2px;
  height: 100%;
  margin-inline: auto;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(41, 151, 255, 0.9), rgba(255, 159, 10, 0.85));
  box-shadow: 0 0 20px rgba(90, 200, 250, 0.34);
}

.service-layer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.service-layer span {
  display: grid;
  place-items: center;
  min-height: 62px;
  color: rgba(245, 245, 247, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.foundation-layer {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 159, 10, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 159, 10, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
}

.foundation-layer p {
  margin: 12px 0 0;
  color: rgba(245, 245, 247, 0.66);
  font-size: 0.92rem;
  line-height: 1.45;
}

.forest-icon {
  position: relative;
  width: 82px;
  height: 76px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.forest-icon i,
.forest-icon b {
  position: absolute;
  display: block;
}

.forest-icon i {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #5ac8fa;
  border: 2px solid rgba(255, 255, 255, 0.86);
  z-index: 2;
}

.forest-icon i:nth-child(1) { left: 14px; bottom: 17px; }
.forest-icon i:nth-child(2) { left: 34px; top: 14px; }
.forest-icon i:nth-child(3) { right: 14px; bottom: 17px; }

.forest-icon b {
  left: 23px;
  top: 39px;
  width: 37px;
  height: 2px;
  border-radius: 999px;
  background: rgba(90, 200, 250, 0.90);
  transform-origin: left center;
}

.forest-icon b:nth-child(4) { transform: rotate(-40deg); }
.forest-icon b:nth-child(5) { transform: rotate(40deg); left: 39px; top: 39px; width: 26px; }
.forest-icon b:nth-child(6) { transform: none; left: 23px; top: 51px; width: 37px; }

.chapter-overview {
  padding-top: clamp(54px, 7vw, 86px);
}

.chapter-overview .section-intro {
  margin-bottom: 26px;
}

.chapter-header h2 {
  font-size: clamp(3rem, 6.2vw, 6.5rem);
}

blockquote {
  font-size: clamp(1.28rem, 2.35vw, 2.35rem);
}

.site-footer a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    min-height: 580px;
  }

  .stack-panel {
    inset: 20px 26px 40px;
    transform: rotateX(4deg) rotateY(-3deg);
  }
}

@media (max-width: 820px) {
  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .hero-stack {
    min-height: 620px;
  }

  .stack-panel {
    inset: 26px 0 34px;
    transform: none;
    border-radius: 34px;
  }

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

  .foundation-layer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(3.8rem, 19vw, 6.4rem);
  }

  .hero-stack {
    min-height: 690px;
  }

  .stack-title-row {
    align-items: flex-start;
  }

  .rip-chip {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .rip-chip svg {
    width: 50px;
    height: 50px;
  }

  .service-layer {
    grid-template-columns: 1fr 1fr;
  }

  .service-layer span {
    min-height: 54px;
  }
}

/* Layout safety: the stack visual grows with its content instead of clipping. */
.hero-stack {
  display: grid;
  align-items: center;
}

.stack-panel {
  position: relative;
  inset: auto;
  margin: 36px 0 46px;
}

@media (max-width: 1060px) {
  .stack-panel {
    inset: auto;
    margin: 20px 26px 40px;
  }
}

@media (max-width: 820px) {
  .stack-panel {
    inset: auto;
    margin: 26px 0 34px;
  }
}
