:root {
  --bg: #f8f8fa;
  --surface: #ffffff;
  --surface-2: #efeff4;
  --ink: #121219;
  --muted: #6e6e7b;
  --line: #dcdce4;
  --primary: #3c26e0;
  --primary-soft: #e8e4ff;
  --dark: #14131c;
  --dark-2: #1d1c28;
  --white: #ffffff;
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dark-theme {
  --bg: #101017;
  --surface: #181820;
  --surface-2: #22222d;
  --ink: #f4f3f8;
  --muted: #aaa8b7;
  --line: #33323d;
  --primary-soft: #28204e;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -0.04em; }

.portfolio-nav {
  position: fixed; z-index: 130; top: 14px; left: 50%;
  display: flex; align-items: center; gap: 4px; width: max-content;
  max-width: calc(100% - 24px); padding: 8px 12px; overflow-x: auto;
  border: 1px solid rgba(36, 36, 48, .06); border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 26px rgba(30, 27, 56, .13);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .24s ease;
  scrollbar-width: none;
}
.portfolio-nav::-webkit-scrollbar { display: none; }
.portfolio-nav.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -140%); }
.portfolio-nav a {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  color: #626272; font-size: 13px; font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.portfolio-nav a:hover, .portfolio-nav a:focus-visible {
  color: var(--primary); background: #eeebff; outline: none;
}

.section-nav {
  position: fixed; z-index: 110; left: 50%; bottom: 24px;
  display: flex; align-items: center; gap: 14px; width: max-content;
  max-width: calc(100% - 32px); padding: 15px 24px; overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .58); border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  box-shadow: 0 16px 44px rgba(27, 25, 44, .14), inset 0 1px 0 rgba(255, 255, 255, .62);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  transform: translateX(-50%); scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px;
  color: rgba(39, 38, 49, .46); font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: color .24s ease;
}
.section-nav .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(93, 84, 150, .25);
  box-shadow: 0 0 0 0 rgba(61, 38, 223, 0);
  transition: background .24s ease, box-shadow .24s ease, transform .24s ease;
}
.section-nav a.is-active { color: var(--ink); }
.section-nav a.is-active .dot {
  background: #7565ed; box-shadow: 0 0 0 5px rgba(117, 101, 237, .13);
  transform: scale(1.08);
}
.section-nav .separator { flex: 0 0 32px; height: 1px; background: rgba(50, 48, 68, .25); }
#overview, #workflow, #system, #foundations, #components, #takeaways { scroll-margin-top: 48px; }
body.dark-theme .section-nav {
  border-color: rgba(255, 255, 255, .16); background: rgba(27, 26, 37, .5);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
}
body.dark-theme .section-nav a { color: rgba(232, 230, 240, .5); }
body.dark-theme .section-nav a.is-active { color: #fff; }
body.dark-theme .section-nav .separator { background: rgba(255, 255, 255, .18); }

.site-header {
  position: fixed; z-index: 120; top: 18px; right: var(--gutter);
}
.theme-toggle {
  display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 15px;
  color: var(--ink); border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 999px; background: color-mix(in srgb, var(--bg) 78%, transparent);
  box-shadow: 0 8px 24px rgba(30, 27, 56, .1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); cursor: pointer;
}
.theme-icon { font-size: 20px; color: var(--primary); }
.theme-label { font-size: 13px; }

.hero {
  min-height: 100svh;
  padding: 108px var(--gutter) 28px;
  display: grid; grid-template-columns: 1fr;
  align-content: start; gap: clamp(38px, 5vw, 72px);
}
.hero-visual {
  position: relative; width: min(100%, var(--max)); aspect-ratio: 3 / 1;
  min-height: 0; margin: 0 auto; overflow: hidden; border-radius: 4px;
  background: white; box-shadow: 0 24px 70px rgba(23, 18, 62, .08);
}
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy {
  width: min(100%, var(--max)); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  align-items: end; gap: clamp(32px, 6vw, 90px); margin: 0 auto; padding: 0 0 5vh;
}
.eyebrow {
  margin-bottom: 24px; color: var(--primary); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.hero h1 { margin: 0; font-size: clamp(48px, 6.2vw, 94px); line-height: .98; font-weight: 600; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-bottom p { max-width: 430px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.round-link {
  flex: 0 0 auto; display: grid; place-items: center; width: 58px; height: 58px;
  border: 1px solid var(--line); border-radius: 50%; font-size: 22px; transition: .25s;
}
.round-link:hover { color: white; background: var(--primary); border-color: var(--primary); transform: translateY(4px); }

.section { padding: clamp(96px, 12vw, 180px) var(--gutter); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-heading { display: grid; grid-template-columns: 1fr 2.2fr; gap: 32px; margin-bottom: clamp(60px, 8vw, 112px); }
.section-heading .eyebrow { margin: 12px 0 0; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 5.6vw, 78px); line-height: 1.03; font-weight: 500; }
.section-tint { background: var(--surface-2); }

.overview-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(48px, 10vw, 150px); }
.overview-statement p { margin: 0; font-size: clamp(25px, 3vw, 42px); line-height: 1.25; letter-spacing: -.025em; }
.project-meta { margin: 0; }
.project-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.project-meta dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.project-meta dd { margin: 0; line-height: 1.5; }

.phase-map { overflow: hidden; }
.phase-intro {
  max-width: 790px !important; margin-top: -48px; margin-bottom: 70px;
  color: var(--muted); font-size: 18px; line-height: 1.7;
}
.phase-matrix {
  display: grid; grid-template-columns: 138px repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.matrix-corner { min-height: 64px; }
.phase-heading {
  position: relative; min-height: 64px; display: flex; align-items: center;
  justify-content: center; gap: 12px; padding: 12px 22px; color: white;
  background: linear-gradient(135deg, #bbb5ff, #d8d5ff); border-radius: 4px;
}
.phase-heading:not(.development)::after {
  content: ""; position: absolute; z-index: 2; top: 50%; right: -22px;
  width: 0; height: 0; border-top: 9px solid transparent;
  border-bottom: 9px solid transparent; border-left: 10px solid #c5c0ff;
  transform: translateY(-50%);
}
.phase-heading span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 10px; }
.phase-heading strong { font: 600 clamp(15px, 1.5vw, 20px) "Manrope"; letter-spacing: -.02em; }
.matrix-label, .matrix-cell {
  min-height: 76px; display: flex; align-items: center; padding: 18px;
  border-radius: 3px; background: color-mix(in srgb, var(--surface) 78%, var(--surface-2));
}
.matrix-label { justify-content: center; font-weight: 700; text-align: center; }
.matrix-cell { font-size: 15px; line-height: 1.42; }
.pain-label, .pain-cell { min-height: 210px; }
.pain-cell { align-items: flex-start; }
.pain-cell ul { margin: 0; padding: 0; list-style: none; }
.pain-cell li { position: relative; padding: 0 0 18px 18px; }
.pain-cell li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #b1abbc; }
.goal-label, .goal-cell { min-height: 170px; background: #e9f4ff; }
.goal-label { color: #173653; }
.goal-cell { color: #243748; font-size: 16px; }
.mobile-phase-cards { display: none; }
.mobile-phase { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.mobile-phase header { display: flex; align-items: center; gap: 14px; padding: 22px; color: white; background: linear-gradient(135deg, #aaa2fb, #cbc7ff); }
.mobile-phase header span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; font-size: 10px; }
.mobile-phase h3 { margin: 0; font-size: 22px; font-weight: 600; }
.mobile-phase dl { margin: 0; }
.mobile-phase dl div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mobile-phase dl div:last-child { border-bottom: 0; }
.mobile-phase dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mobile-phase dd { margin: 0; line-height: 1.5; }
.mobile-phase dl .mobile-pain { background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
.mobile-phase dl .mobile-goal { background: #e9f4ff; }
.mobile-phase .mobile-goal dt, .mobile-phase .mobile-goal dd { color: #243748; }

.research { padding-top: 20px; }
.research-intro {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 9vw, 130px);
  margin-bottom: 80px;
}
.research-intro p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.research-intro .research-lead { color: var(--ink); font-size: clamp(25px, 3vw, 40px); line-height: 1.28; letter-spacing: -.025em; }
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.research-card { min-height: 400px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.research-card > span { color: var(--primary); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.research-card h3 { margin: 70px 0 22px; font-size: 27px; line-height: 1.2; font-weight: 500; }
.research-card p { color: var(--muted); line-height: 1.6; }
.research-card ul { margin: 28px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); }
.research-card li { padding: 6px 0; font-size: 13px; }

.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li {
  display: grid; grid-template-columns: 100px 1fr; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .25s;
}
.process-list li:hover { padding-left: 14px; }
.process-list li > span { color: var(--primary); }
.process-list li div { display: grid; grid-template-columns: minmax(180px, .7fr) 1fr; align-items: center; gap: 40px; }
.process-list h3 { margin: 0; font-size: clamp(24px, 3vw, 38px); font-weight: 500; }
.process-list p { margin: 0; color: var(--muted); font-size: 17px; }

.governance-intro {
  max-width: 850px !important; margin-top: -48px; margin-bottom: 70px;
  color: var(--muted); font-size: 18px; line-height: 1.7;
}
.governance-flow { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 38px; }
.process-start, .process-node, .process-decision {
  min-width: 170px; display: grid; gap: 8px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
}
.process-start { color: white; background: var(--primary); border-color: var(--primary); }
.process-start span, .process-node span, .process-decision span {
  color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.process-start span { color: #c9c2ff; }
.process-start strong, .process-node strong, .process-decision strong { font: 600 16px/1.3 "Manrope"; }
.process-connector, .lane-flow > i, .universal-row > i { color: var(--primary); font-size: 22px; font-style: normal; }
.process-decision { position: relative; min-width: 230px; border-color: #bdb6f5; }
.process-decision::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent); border-radius: 3px;
}
.branch-grid { display: grid; gap: 18px; }
.branch-lane { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.branch-lane > header { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.branch-lane > header > span { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; color: white; background: var(--primary); border-radius: 50%; font-size: 12px; font-weight: 700; }
.branch-lane header h3 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.branch-lane header p { margin: 0; color: var(--muted); font-size: 13px; }
.lane-flow { min-width: 810px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 34px 26px; }
.process-circle { width: 94px; height: 94px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: var(--primary); border-radius: 50%; text-align: center; font: 500 14px/1.25 "Manrope"; }
.process-node { min-width: 175px; max-width: 210px; }
.process-node small { color: var(--muted); font-size: 11px; }
.process-done { display: grid; place-items: center; min-width: 74px; height: 42px; padding: 0 16px; color: var(--primary); border: 1px solid #bdb6f5; border-radius: 24px; font-weight: 600; }
.universal-check { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; padding: 30px 26px; }
.process-decision.compact { min-width: 0; }
.universal-branches { min-width: 0; display: grid; gap: 16px; }
.universal-row { min-width: 600px; display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface-2); border-radius: 5px; }
.universal-row > b { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: var(--primary); background: var(--surface); border: 1px solid #c8c2f4; border-radius: 50%; font-size: 11px; }
.universal-row .process-node { min-width: 190px; background: var(--surface); }
.shared-row { overflow-x: auto; }
.shared-row .process-node { min-width: 150px; }
.review-node { border-style: dashed; }

.section-dark { color: white; background: var(--dark); }
.section-dark .eyebrow { color: #9284ff; }
.architecture-intro {
  max-width: 760px !important; margin-top: -48px; margin-bottom: 64px;
  color: #aaa8b4; font-size: 18px; line-height: 1.7;
}
.architecture-scroll { overflow-x: auto; padding-bottom: 16px; scrollbar-color: #55515f transparent; }
.architecture-map {
  min-width: 1120px; min-height: 660px; padding: 42px 34px 54px;
  color: #191820; background: white; border-radius: 5px;
}
.architecture-root {
  position: relative; width: max-content; margin: 0 auto 86px;
  font: 700 25px "Manrope"; letter-spacing: -.035em;
}
.architecture-root::after {
  content: ""; position: absolute; left: 50%; top: calc(100% + 16px);
  width: 1px; height: 42px; background: #77737e;
}
.architecture-branches {
  position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
  padding-top: 36px;
}
.architecture-branches::before {
  content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14);
  top: 0; height: 1px; background: #77737e;
}
.architecture-branches article { position: relative; padding: 0 13px; }
.architecture-branches article::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 13px);
  width: 1px; height: 24px; background: #77737e;
}
.architecture-branches h3 {
  min-height: 42px; margin: 0 0 24px; font-size: 19px; font-weight: 500;
  letter-spacing: -.025em; text-align: center;
}
.architecture-branches h3::after {
  content: ""; display: block; width: 1px; height: 18px; margin: 13px auto 0; background: #aaa6af;
}
.architecture-branches ul { margin: 0; padding: 0; list-style: none; text-align: center; }
.architecture-branches li { padding: 7px 0; font-size: 14px; }
.architecture-branches .branch-note { margin: 0; color: #85818c; font-size: 12px; line-height: 1.5; text-align: center; }

.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle-card {
  min-height: 330px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 30px; border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--line));
  background: linear-gradient(180deg, #e8e5ff 0%, var(--surface) 72%);
}
.principle-card > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.principle-index { color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.principle-card h3 { order: -1; margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 650; }
.principle-card p { max-width: 320px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
body.dark-theme .principle-card { background: linear-gradient(180deg, #2d2853 0%, var(--surface) 72%); }

.foundation-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.color-panel, .type-panel { padding: 28px; background: var(--surface); min-height: 600px; }
.panel-header { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.swatches { height: 490px; display: flex; align-items: flex-end; gap: 8px; padding-top: 30px; }
.swatch { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; color: white; transition: flex .3s ease; }
.swatch:hover { flex: 1.7; }
.swatch span { writing-mode: vertical-rl; font-size: 11px; opacity: .8; }
.swatch strong { font-size: 13px; font-weight: 500; }
.swatch-primary { height: 100%; background: #3c26e0; }
.swatch-blue { height: 82%; background: #155bd4; }
.swatch-cyan { height: 65%; background: #33a8b4; }
.swatch-orange { height: 48%; background: #e88232; }
.swatch-ink { height: 30%; background: #11111a; }
.type-panel { display: flex; flex-direction: column; }
.type-sample { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; }
.type-label { align-self: flex-start; padding-top: 26px; color: var(--muted); font-size: 12px; }
.type-sample p { margin: 0; font-family: "Manrope"; font-size: clamp(150px, 18vw, 250px); line-height: .8; letter-spacing: -.12em; }
.type-rows { display: grid; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); }
.type-rows span:first-child { font: 600 26px "Manrope"; }
.type-rows span:last-child { color: var(--muted); }
.type-scale { margin-top: 18px; padding: 28px; background: var(--surface); }
.type-scale-row { display: grid; grid-template-columns: 130px 1fr 80px; gap: 30px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.type-scale-row > span, .type-scale-row > em { color: var(--muted); font-size: 12px; font-style: normal; }
.type-scale-row > em { text-align: right; }
.type-scale-row strong { font-family: "Manrope"; font-weight: 500; letter-spacing: -.035em; }
.display-row strong { font-size: clamp(34px, 5vw, 64px); }.h1-row strong { font-size: clamp(30px, 4vw, 40px); }
.h2-row strong { font-size: 32px; }.h3-row strong { font-size: 24px; }.body-row strong { font-size: 16px; }.small-row strong { font: 14px "DM Sans"; }.caption-row strong { font: 12px "DM Sans"; }
.foundation-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.elevation-panel, .icon-panel { min-height: 570px; padding: 28px; background: var(--surface); }
.elevation-panel > p { max-width: 560px; margin: 28px 0 70px; color: var(--muted); line-height: 1.65; }
.elevation-samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; }
.elevation-card { aspect-ratio: .78; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; background: var(--surface); border-radius: 4px; }
.elevation-card strong { color: var(--primary); font-size: 24px; }
.elevation-card span { color: var(--muted); font-size: 11px; }
.elevation-card.s1 { box-shadow: 0 2px 8px rgba(22,18,47,.08); }.elevation-card.s2 { box-shadow: 0 8px 20px rgba(22,18,47,.12); }
.elevation-card.s3 { box-shadow: 0 16px 36px rgba(22,18,47,.16); }.elevation-card.s4 { box-shadow: 0 28px 60px rgba(22,18,47,.22); }
.icon-grid-demo {
  position: relative; width: min(270px, 72%); aspect-ratio: 1; display: grid;
  grid-template-columns: repeat(4, 1fr); margin: 34px auto 38px;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--line));
  background: linear-gradient(45deg, transparent 49.7%, color-mix(in srgb, var(--primary) 22%, transparent) 50%, transparent 50.3%);
}
.icon-grid-demo i { border-right: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.icon-grid-demo::before, .icon-grid-demo::after { content: ""; position: absolute; background: color-mix(in srgb, var(--primary) 25%, transparent); }
.icon-grid-demo::before { width: 1px; inset: 0 auto 0 50%; }.icon-grid-demo::after { height: 1px; inset: 50% 0 auto; }
.icon-shape { position: absolute; inset: 27%; border: 10px solid var(--primary); border-radius: 50% 50% 50% 12%; transform: rotate(-45deg); }
.icon-rules { margin: 0; padding-left: 24px; color: var(--muted); }
.icon-rules li { padding: 5px 0 5px 8px; }

.side-nav-showcase { margin-bottom: 22px; border: 1px solid var(--line); background: var(--surface); }
.side-nav-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 28px 30px; border-bottom: 1px solid var(--line); }
.side-nav-heading span:first-child { color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.side-nav-heading h3 { margin: 8px 0 0; font-size: 26px; }
.mode-pill { padding: 7px 11px; border-radius: 99px; color: #d5d3db; background: #272629; font-size: 11px; }
.side-nav-stage { min-height: 720px; display: flex; justify-content: center; align-items: stretch; gap: clamp(48px, 10vw, 150px); padding: 42px; background: #f4f4f5; overflow-x: auto; }
.side-nav-rail, .side-nav-expanded { color: #c9c7cc; background: #191919; box-shadow: 0 10px 30px rgba(0, 0, 0, .14); }
.side-nav-rail { flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; min-height: 640px; padding: 18px 0; }
.side-brand-mark { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 7px; color: #fff; background: linear-gradient(135deg, #7153ff, #4b2be4); font-size: 12px; font-weight: 800; }
.rail-switcher { width: 44px; height: 44px; margin: 22px 0 10px; border: 0; border-radius: 4px; color: #aaa7ae; background: #252525; }
.rail-label { margin: 7px 0; color: #827f85; font-size: 9px; }
.project-avatar { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 4px; color: white; font-size: 9px; font-weight: 700; }
.side-nav-rail .project-avatar { margin: 6px 0; }
.project-avatar.violet { background: #4925df; }.project-avatar.blue { background: #0849ae; }
.project-avatar.neutral { background: #292929; }.project-avatar.pink { background: #e73562; }
.project-avatar.orange { background: #d96800; }.project-avatar.teal { background: #00a19a; }
.rail-divider { flex: 1; min-height: 28px; }
.side-nav-rail > a { display: grid; place-items: center; width: 40px; min-height: 40px; color: #b3b0b6; font-size: 16px; }
.side-nav-expanded { flex: 0 0 330px; min-height: 640px; }
.expanded-brand { height: 66px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px; padding: 0 24px; border-bottom: 1px solid #252525; color: #e8e6e9; }
.expanded-brand strong { font-size: 13px; font-weight: 500; }
.expanded-brand > span:last-child { color: #88858c; font-size: 20px; }
.expanded-scroll { padding: 24px 18px 30px; }
.favourites-toggle { width: 100%; height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border: 0; border-radius: 3px; color: #c9c7cc; background: #252525; text-align: left; }
.nav-group { display: grid; gap: 3px; margin-top: 18px; }
.nav-group-label { padding: 0 12px 7px; color: #858188; font-size: 10px; font-weight: 700; }
.nav-group a, .expanded-destinations a { min-height: 34px; display: flex; align-items: center; gap: 12px; padding: 4px 12px; color: #c9c7cc; font-size: 11px; }
.nav-group a b, .expanded-destinations a b { margin-left: auto; color: #858188; font-size: 16px; font-weight: 400; }
.nav-subgroup { display: flex; align-items: center; gap: 12px; padding: 8px 12px 5px; color: #8c8990; font-size: 11px; }
.nav-subgroup strong { font-weight: 600; }
.expanded-destinations { display: grid; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #262527; }
.expanded-destinations a { min-height: 42px; font-size: 12px; }
.expanded-destinations a > span { width: 20px; color: #aaa7ae; font-size: 15px; }
.nav-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.app-window { aspect-ratio: 1.25; display: grid; grid-template-columns: 36% 1fr; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(23, 18, 62, .1); }
.light-window { background: #f8f8fb; }
.dark-window { color: white; background: #191821; border-color: #33313c; }
.demo-sidebar { display: flex; flex-direction: column; padding: 24px 16px; background: #fff; border-right: 1px solid #e3e2e8; }
.dark-window .demo-sidebar { background: #23222c; border-color: #35333e; }
.demo-logo, .demo-user { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: white; background: var(--primary); font-weight: 700; }
.demo-sidebar nav { display: grid; gap: 5px; margin-top: 40px; }
.demo-sidebar nav a { padding: 10px; border-radius: 5px; font-size: 12px; }
.demo-sidebar nav a.active { color: var(--primary); background: var(--primary-soft); }
.demo-user { margin-top: auto; border-radius: 50%; background: #ef8f3e; font-size: 10px; }
.demo-content { padding: 24px; }
.demo-topbar { display: flex; justify-content: space-between; margin-bottom: 60px; font-size: 12px; color: var(--muted); }
.demo-title { width: 40%; height: 18px; margin-bottom: 20px; background: currentColor; opacity: .9; border-radius: 3px; }
.demo-line { width: 65%; height: 7px; margin: 10px 0; background: currentColor; opacity: .13; border-radius: 4px; }
.demo-line.wide { width: 88%; }
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.demo-cards i { height: 80px; border: 1px solid var(--line); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.navigation-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.spec-card { padding: 32px; border: 1px solid var(--line); background: var(--surface); }
.spec-card > span { color: var(--primary); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.spec-card h3 { margin: 45px 0 14px; font-size: 32px; font-weight: 500; }
.spec-card > p { min-height: 80px; color: var(--muted); line-height: 1.6; }
.spec-card dl { margin: 30px 0 0; border-top: 1px solid var(--line); }
.spec-card dl div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-card dt { color: var(--muted); }.spec-card dd { margin: 0; }
.pagination-spec { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; margin-top: 18px; padding: clamp(30px, 5vw, 68px); color: white; background: var(--dark); }
.pagination-copy h3 { margin-bottom: 18px; font-size: clamp(28px, 4vw, 48px); font-weight: 500; }
.pagination-copy > p:last-child { color: #aaa8b4; line-height: 1.6; }
.pagination-examples { display: grid; align-content: center; gap: 28px; }
.pagination-examples > div { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 16px; }
.pagination-examples > div > span { color: #8f8c9b; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.pagination-examples nav { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination-examples button { width: 32px; height: 32px; color: #cbc8d2; background: transparent; border: 1px solid #494752; border-radius: 4px; }
.pagination-examples button.current { color: white; background: var(--primary); border-color: var(--primary); }
.pagination-examples nav.compact button { width: 27px; height: 27px; }
.disabled-pagination { opacity: .35; }

.component-playground { display: grid; grid-template-columns: 230px 1fr; min-height: 500px; border: 1px solid #3b3945; background: var(--dark-2); }
.playground-nav { display: flex; flex-direction: column; padding: 20px; border-right: 1px solid #3b3945; }
.playground-tab { padding: 16px; color: #8e8b9b; background: transparent; border: 0; border-radius: 5px; text-align: left; cursor: pointer; }
.playground-tab.active { color: white; background: var(--primary); }
.playground-body { display: grid; place-items: center; padding: clamp(28px, 6vw, 80px); }
.demo-pane { display: none; width: min(100%, 720px); }
.demo-pane.active { display: block; animation: paneIn .35s ease both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }
.demo-caption { margin-bottom: 40px; color: #8e8b9b; font-size: 11px; letter-spacing: .14em; }
.button-examples { display: flex; flex-wrap: wrap; gap: 12px; }
.ui-button { min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; color: white; cursor: pointer; transition: .2s; }
.ui-button:hover:not(:disabled) { transform: translateY(-2px); }
.ui-button.primary { background: var(--primary); }
.ui-button.secondary { border-color: #6755ed; background: transparent; }
.ui-button.ghost { color: #bdb9ca; background: transparent; }
.ui-button:disabled { opacity: .35; cursor: not-allowed; }
.state-note { display: flex; gap: 12px; align-items: center; margin-top: 70px; color: #9e9ba8; font-size: 13px; }
.state-note span { width: 8px; height: 8px; border-radius: 50%; background: #33c8d1; }
.toast-list { display: grid; gap: 12px; }
.toast { display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; padding: 18px 20px; border-left: 3px solid; color: #f5f4f7; background: #292832; }
.toast span { grid-column: 1; color: #aaa8b4; font-size: 13px; }
.toast.success { border-color: #35bf86; }.toast.info { border-color: #4b8df7; }.toast.warning { border-color: #e99c42; }
.accordion { border-top: 1px solid #3b3945; }
.accordion button { width: 100%; display: flex; justify-content: space-between; padding: 20px 0; color: white; background: transparent; border: 0; border-bottom: 1px solid #3b3945; cursor: pointer; }
.accordion-content { display: none; padding: 18px 0 26px; color: #aaa8b4; line-height: 1.6; border-bottom: 1px solid #3b3945; }
.accordion-content.open { display: block; }
.component-library { display: grid; gap: 22px; margin-top: 22px; }
.library-card { padding: clamp(26px, 5vw, 62px); border: 1px solid #3b3945; background: var(--dark-2); }
.library-card-heading { display: grid; grid-template-columns: 70px 1fr; gap: 24px; margin-bottom: 60px; }
.library-card-heading > span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #575364; border-radius: 50%; color: #9284ff; }
.library-card-heading h3 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); font-weight: 500; }
.library-card-heading p { margin: 0; color: #9996a5; }
.state-grid { display: grid; grid-template-columns: 100px repeat(4, 1fr); align-items: center; gap: 18px; }
.state-grid small { color: #888593; text-align: center; text-transform: uppercase; letter-spacing: .1em; }
.state-grid > strong { color: #b7b4c0; font-weight: 500; }
.mini-btn { min-height: 38px; padding: 0 16px; color: white; border: 1px solid transparent; border-radius: 4px; }
.mini-btn.solid { background: var(--primary); }.mini-btn.outline { color: #a89eff; border-color: #6956f0; background: transparent; }
.mini-btn.text { color: #a89eff; background: transparent; }.mini-btn.hover { filter: brightness(1.25); transform: translateY(-1px); }
.mini-btn.focus { outline: 3px solid rgba(126,107,255,.32); outline-offset: 2px; }.mini-btn:disabled { opacity: .3; }
.search-specimens { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 32px; align-items: start; }
.search-specimens label, .date-inputs label { display: grid; gap: 10px; color: #8d8999; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.fake-input { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #aaa8b4; background: #24232d; border: 1px solid #46434f; border-radius: 4px; font-size: 14px; text-transform: none; letter-spacing: normal; }
.fake-input.hover { border-color: #777381; }.fake-input.focus { color: white; border-color: #7562ff; box-shadow: 0 0 0 3px rgba(117,98,255,.16); }
.fake-input.complete { color: white; }.fake-input b { color: #8d8999; font-size: 18px; font-weight: 400; }
.dropdown-spec ul { margin: -5px 0 0; padding: 8px 0; list-style: none; color: #d5d2db; background: #292832; border: 1px solid #46434f; box-shadow: 0 18px 40px rgba(0,0,0,.25); text-transform: none; letter-spacing: normal; }
.dropdown-spec li { padding: 10px 16px; }.dropdown-spec li:first-child { background: #34323e; }
.date-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; }
.date-inputs { display: grid; align-content: start; gap: 28px; }
.calendar { padding: 24px; color: #dddbe2; background: #24232d; border: 1px solid #46434f; border-radius: 5px; }
.calendar header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.calendar header button { color: #aaa7b3; background: transparent; border: 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.calendar-grid span, .calendar-grid i { min-height: 38px; display: grid; place-items: center; font-size: 12px; font-style: normal; }
.calendar-grid.weekdays { margin-bottom: 5px; color: #777482; }
.calendar-grid.days span { position: relative; z-index: 0; }
.calendar-grid.days span.selected {
  color: white;
  background: radial-gradient(circle 15px at center, var(--primary) 0 14.5px, transparent 15px);
}
.calendar-grid.days span.range {
  color: #786fa6;
  background: linear-gradient(rgba(76,54,229,.2), rgba(76,54,229,.2)) center / 100% 30px no-repeat;
}
.calendar-grid.days span.range-start {
  background:
    radial-gradient(circle 15px at center, var(--primary) 0 14.5px, transparent 15px),
    linear-gradient(to right, transparent 0 50%, rgba(76,54,229,.2) 50% 100%) center / 100% 30px no-repeat;
}
.calendar-grid.days span.range-end {
  background:
    radial-gradient(circle 15px at center, var(--primary) 0 14.5px, transparent 15px),
    linear-gradient(to left, transparent 0 50%, rgba(76,54,229,.2) 50% 100%) center / 100% 30px no-repeat;
}
.transfer-demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.transfer-list { border: 1px solid #45434e; background: #24232d; }
.transfer-list header { display: flex; justify-content: space-between; padding: 18px; border-bottom: 1px solid #45434e; }
.transfer-list header small { color: #898694; }
.transfer-list p { margin: 0; padding: 15px 18px; color: #aaa7b3; border-bottom: 1px solid #34323d; }
.transfer-list p:last-child { border: 0; }.transfer-list p:first-of-type { color: white; background: #302e3a; }
.transfer-actions { display: grid; gap: 8px; }.transfer-actions button { width: 34px; height: 34px; color: white; background: var(--primary); border: 0; border-radius: 4px; }
.pattern-layout, .feedback-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tab-specimen { background: #24232d; border: 1px solid #45434e; }
.tab-specimen nav { display: flex; border-bottom: 1px solid #45434e; }
.tab-specimen nav button { flex: 1; padding: 17px 10px; color: #898694; background: transparent; border: 0; border-bottom: 2px solid transparent; }
.tab-specimen nav button.active { color: white; border-color: var(--primary); }
.tab-specimen > div { min-height: 180px; padding: 30px; }.tab-specimen p { margin-top: 14px; color: #898694; line-height: 1.6; }
.timeline-specimen { padding: 10px 20px; }
.timeline-specimen > div { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 18px; min-height: 90px; }
.timeline-specimen > div:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: -2px; width: 1px; background: #4c4956; }
.timeline-specimen > div > span { z-index: 1; width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px #292832; }
.timeline-specimen article { display: flex; justify-content: space-between; gap: 20px; }.timeline-specimen small { color: #807d89; }
.notification-stack { display: grid; gap: 10px; }
.notice { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 16px; background: #24232d; border-left: 3px solid; }
.notice b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; }
.notice span { display: grid; gap: 5px; }.notice small { color: #8d8999; }
.notice.info { color: #68a2ff; }.notice.success { color: #45c58d; }.notice.warning { color: #e7a150; }.notice.error { color: #ef6e75; }
.notice strong { color: white; }
.dialog-specimen { align-self: center; max-width: 380px; padding: 34px; color: #17161d; background: white; border-radius: 6px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.dialog-symbol { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 28px; color: #e38d38; border: 1px solid #e38d38; border-radius: 50%; }
.dialog-specimen h4 { margin: 0 0 12px; font: 600 23px "Manrope"; letter-spacing: -.03em; }.dialog-specimen p { color: #77727f; line-height: 1.6; }
.dialog-specimen > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 28px; }.dialog-specimen .mini-btn.text { color: #5141c5; }

.component-section { background: #f4f4f6; }
.component-section .component-library { color: #16151c; }
.component-section .library-card { border-color: #d9d8df; background: white; }
.component-section .library-card-heading > span { color: var(--primary); border-color: #c9c4f7; }
.component-section .library-card-heading p { color: #75727e; }
.component-section .state-grid small, .component-section .state-grid > strong { color: #77737f; }
.component-section .fake-input { color: #77737f; background: white; border-color: #cbc9d0; }
.component-section .fake-input.hover { border-color: #7968ef; }
.component-section .fake-input.focus { color: #191820; border-color: #624df0; background: #fff; }
.component-section .fake-input.complete { color: #191820; }
.component-section .dropdown-spec ul { color: #38363f; background: white; border-color: #d8d6dd; box-shadow: 0 12px 28px rgba(24,18,55,.12); }
.component-section .dropdown-spec li:first-child { font-weight: 600; background: #f0edff; }
.component-section .calendar { color: #393740; background: white; border-color: #d8d6dd; }
.component-section .transfer-list { border-color: #cbc9d0; background: white; }
.component-section .transfer-list header { border-color: #d8d6dd; }
.component-section .transfer-list p { color: #6d6974; border-color: #e8e7eb; }
.component-section .transfer-list p:first-of-type { color: #191820; background: #f1f0f4; }
.component-section .tab-specimen { background: white; border-color: #d8d6dd; }
.component-section .tab-specimen nav { border-color: #d8d6dd; }
.component-section .tab-specimen > div p, .component-section .timeline-specimen small { color: #77737f; }
.component-section .timeline-specimen > div:not(:last-child)::after { background: #cfccd7; }
.component-section .timeline-specimen > div > span { box-shadow: 0 0 0 5px white; }
.component-section .notice { background: #f7f7f9; }
.component-section .notice strong { color: #222129; }
.transfer-states { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; color: #77737f; font-size: 12px; }
.transfer-states span { display: flex; align-items: center; gap: 7px; }
.state-dot { width: 9px; height: 9px; border: 1px solid #aaa6b1; border-radius: 2px; }
.state-dot.hover-dot { background: #eeeef1; }.state-dot.active-dot { background: var(--primary); border-color: var(--primary); }

.popover-board { min-height: 700px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px 30px; align-items: center; padding: 100px 40px; background: #f6f6f8; }
.popover-sample { position: relative; min-height: 70px; display: grid; place-items: center; }
.popover-sample button { padding: 8px 18px; color: white; background: var(--primary); border: 0; border-radius: 3px; font-size: 12px; }
.popover-sample aside { position: absolute; width: 150px; padding: 15px; background: white; border: 1px solid #dedce3; box-shadow: 0 8px 24px rgba(25,18,62,.12); font-size: 12px; }
.popover-sample aside small { display: block; margin-top: 6px; color: #89858f; }
.popover-sample aside::after { content: ""; position: absolute; width: 9px; height: 9px; background: white; border: solid #dedce3; transform: rotate(45deg); }
.popover-sample.top-left aside, .popover-sample.top-center aside, .popover-sample.top-right aside { bottom: calc(100% + 14px); }
.popover-sample.top-left aside { right: 50%; }.popover-sample.top-center aside { left: 50%; transform: translateX(-50%); }.popover-sample.top-right aside { left: 50%; }
.popover-sample.top-left aside::after, .popover-sample.top-center aside::after, .popover-sample.top-right aside::after { bottom: -6px; border-width: 0 1px 1px 0; }
.popover-sample.top-left aside::after { right: 20px; }.popover-sample.top-center aside::after { left: calc(50% - 5px); }.popover-sample.top-right aside::after { left: 20px; }
.popover-sample.bottom-left aside, .popover-sample.bottom-center aside, .popover-sample.bottom-right aside { top: calc(100% + 14px); }
.popover-sample.bottom-left aside { right: 50%; }.popover-sample.bottom-center aside { left: 50%; transform: translateX(-50%); }.popover-sample.bottom-right aside { left: 50%; }
.popover-sample.bottom-left aside::after, .popover-sample.bottom-center aside::after, .popover-sample.bottom-right aside::after { top: -6px; border-width: 1px 0 0 1px; }
.popover-sample.bottom-left aside::after { right: 20px; }.popover-sample.bottom-center aside::after { left: calc(50% - 5px); }.popover-sample.bottom-right aside::after { left: 20px; }
.popover-sample.left aside { right: calc(50% + 46px); }.popover-sample.right aside { left: calc(50% + 46px); }
.popover-sample.left aside::after { right: -6px; top: 22px; border-width: 1px 1px 0 0; }.popover-sample.right aside::after { left: -6px; top: 22px; border-width: 0 0 1px 1px; }

.tab-state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.tab-state-grid > div { display: grid; gap: 16px; }
.tab-state-grid small { color: #77737f; text-transform: uppercase; letter-spacing: .1em; }
.source-tabs { display: flex; max-width: 380px; background: #f7f7f9; border-bottom: 1px solid #dedce3; }
.source-tabs button { position: relative; flex: 1; height: 46px; color: #67636e; background: transparent; border: 0; }
.source-tabs button.active { color: var(--primary); }
.source-tabs button.active::after { content: ""; position: absolute; height: 2px; left: 16px; right: 16px; bottom: -1px; background: var(--primary); }
.source-tabs.hover-state button:nth-child(3) { background: #ecebef; }
.source-tabs.disabled-state { opacity: .35; }
.source-tabs.icon-state button { font-size: 12px; }

.collapse-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.collapse-group { display: grid; align-content: start; gap: 10px; }
.collapse-group > small { margin-bottom: 12px; color: #77737f; text-transform: uppercase; letter-spacing: .1em; }
.collapse-row { min-height: 56px; display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: start; padding: 18px; border-bottom: 1px solid #d8d6dd; }
.collapse-row > span { display: grid; gap: 10px; }.collapse-row > span small { color: #77737f; line-height: 1.5; }
.collapse-row em { color: #918d97; font-size: 11px; font-style: normal; }
.collapse-row.hover { background: #f7f7f9; }.collapse-row.expanded { min-height: 110px; }.collapse-row.disabled { opacity: .35; }
.collapse-group.filled .collapse-row.expanded { background: #f0eff3; }

.message-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.message-comparison > div { display: grid; gap: 12px; align-content: start; }
.message-comparison > div > small { margin-bottom: 10px; color: #77737f; text-transform: uppercase; letter-spacing: .1em; }
.source-toast, .source-notification { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 10px; align-items: center; min-height: 42px; padding: 9px 12px; border: 1px solid #dedce3; border-left: 4px solid; background: white; box-shadow: 0 4px 12px rgba(25,18,62,.08); font-size: 12px; }
.source-toast > b, .source-notification > b { display: grid; place-items: center; width: 18px; height: 18px; color: white; border-radius: 50%; font-size: 10px; }
.source-toast a { color: var(--primary); }.source-toast button, .source-notification button { color: #77737f; background: transparent; border: 0; }
.source-toast.info, .source-notification.info { border-left-color: #4c39e3; }.source-toast.info > b, .source-notification.info > b { background: #4c39e3; }
.source-toast.success, .source-notification.success { border-left-color: #2aaa75; }.source-toast.success > b, .source-notification.success > b { background: #2aaa75; }
.source-toast.warning, .source-notification.warning { border-left-color: #e78b32; }.source-toast.warning > b, .source-notification.warning > b { background: #e78b32; }
.source-toast.error, .source-notification.error { border-left-color: #df4a54; }.source-toast.error > b, .source-notification.error > b { background: #df4a54; }
.source-notification { grid-template-columns: 24px 1fr auto; min-height: 62px; align-items: start; padding-top: 13px; }
.source-notification span { display: grid; gap: 5px; }.source-notification span small { color: #85818c; }

.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 34px; background: #f6f6f8; }
.source-dialog { padding: 30px; background: white; box-shadow: 0 8px 30px rgba(25,18,62,.08); }
.source-dialog > span { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 20px; color: var(--primary); background: #ebe8ff; border: 1px solid #c9c2ff; border-radius: 50%; }
.source-dialog h4 { margin: 0 0 14px; font: 600 20px "Manrope"; text-align: center; }
.source-dialog p { color: #77737f; font-size: 13px; line-height: 1.55; }
.source-dialog footer { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 18px 0 0; color: inherit; background: transparent; }
.source-dialog footer button { min-height: 32px; padding: 0 13px; color: var(--primary); background: transparent; border: 1px solid transparent; }
.source-dialog footer .primary-action { color: white; background: var(--primary); }

.timeline-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.vertical-timeline > small, .horizontal-timeline > small { display: block; margin-bottom: 28px; color: #77737f; text-transform: uppercase; letter-spacing: .1em; }
.vertical-timeline ol { position: relative; margin: 0; padding: 0; list-style: none; }
.vertical-timeline ol::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: #cbc8d2; }
.vertical-timeline li { position: relative; min-height: 70px; display: grid; gap: 5px; padding-left: 36px; }
.vertical-timeline li::before { content: ""; position: absolute; z-index: 1; left: 2px; top: 5px; width: 11px; height: 11px; background: white; border: 2px solid var(--primary); border-radius: 50%; }
.vertical-timeline li span { color: #77737f; font-size: 12px; }
.vertical-timeline.alternating { grid-column: 2; }
.vertical-timeline.alternating ol::before { left: 50%; }
.vertical-timeline.alternating li { width: 50%; padding: 0 30px 0 0; text-align: right; }
.vertical-timeline.alternating li:nth-child(even) { margin-left: 50%; padding: 0 0 0 30px; text-align: left; }
.vertical-timeline.alternating li::before { left: auto; right: -7px; }.vertical-timeline.alternating li:nth-child(even)::before { left: -7px; right: auto; }
.horizontal-timeline { grid-column: 1 / -1; }
.horizontal-timeline ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; padding: 26px 0 0; list-style: none; }
.horizontal-timeline ol::before { content: ""; position: absolute; left: 4%; right: 4%; top: 6px; height: 1px; background: #cbc8d2; }
.horizontal-timeline li { position: relative; }
.horizontal-timeline li::before { content: ""; position: absolute; left: calc(50% - 6px); top: -26px; width: 11px; height: 11px; background: white; border: 2px solid var(--primary); border-radius: 50%; }
.horizontal-timeline article { min-height: 100px; display: grid; align-content: center; gap: 8px; padding: 18px; background: #f5f4f7; text-align: center; }
.horizontal-timeline article span { color: #77737f; font-size: 12px; }

.outcome { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; }
.outcome > * { margin: 0; max-width: none; }
.outcome h2 { margin: 0; font-size: clamp(52px, 7vw, 100px); line-height: .98; font-weight: 500; }
.outcome-stats { border-top: 1px solid var(--line); }
.outcome-stats div { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.outcome-stats strong { color: var(--primary); font: 500 clamp(36px, 5vw, 64px) "Manrope"; letter-spacing: -.06em; }
.outcome-stats span { color: var(--muted); }

.takeaways { padding-top: 40px; }
.takeaway-list { display: grid; gap: 28px; }
.takeaway-card {
  min-height: 210px; display: grid; grid-template-columns: 70px 1fr; gap: 34px;
  align-items: start; padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--primary); border-radius: 12px; background: var(--surface);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 10%, transparent);
}
.takeaway-card > span { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.takeaway-card h3 { margin: 0 0 20px; font-size: clamp(23px, 3vw, 34px); line-height: 1.2; }
.takeaway-card p { max-width: 920px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

footer { display: flex; justify-content: space-between; align-items: flex-end; padding: 70px var(--gutter) 110px; color: #aaa8b4; background: #0c0b11; font-size: 13px; }
footer div { display: grid; gap: 8px; }
footer a { color: white; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-copy { grid-template-columns: 1fr; min-height: auto; padding: 0 0 3vh; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .section-heading .eyebrow { margin-top: 0; }
  .phase-intro { margin-top: -28px; }
  .phase-matrix { display: none; }
  .mobile-phase-cards { display: grid; gap: 18px; }
  .governance-intro { margin-top: -28px; }
  .universal-check { grid-template-columns: 1fr; }
  .architecture-intro { margin-top: -28px; }
  .research-intro { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card { min-height: auto; }
  .research-card h3 { margin-top: 45px; }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .system-column:last-child { grid-column: 1 / -1; min-height: 270px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 300px; }
  .foundation-layout, .outcome { grid-template-columns: 1fr; }
  .foundation-detail-grid { grid-template-columns: 1fr; }
  .nav-showcase { grid-template-columns: 1fr; }
  .pagination-spec { grid-template-columns: 1fr; }
  .date-layout { grid-template-columns: 1fr; }
  .pattern-layout, .feedback-layout { grid-template-columns: 1fr; }
  .popover-board { grid-template-columns: 1fr 1fr; }
  .tab-state-grid, .collapse-matrix, .message-comparison, .dialog-grid { grid-template-columns: 1fr; }
  .timeline-gallery { grid-template-columns: 1fr; }
  .vertical-timeline.alternating, .horizontal-timeline { grid-column: auto; }
}

@media (max-width: 680px) {
  .portfolio-nav { justify-content: flex-start; width: calc(100% - 24px); padding: 6px 8px; }
  .portfolio-nav a { padding: 7px 11px; font-size: 12px; }
  .section-nav { justify-content: flex-start; width: calc(100% - 24px); bottom: 12px; gap: 6px; padding: 10px; }
  .section-nav a { gap: 5px; font-size: 11px; }
  .section-nav .dot { width: 8px; height: 8px; }
  .section-nav .separator { flex-basis: 12px; }
  .site-header { top: 68px; right: 12px; }
  .theme-toggle { min-height: 38px; padding: 0 13px; }
  .hero { padding-top: 132px; }
  .hero-visual { min-height: 0; aspect-ratio: 1.6 / 1; }
  .hero-visual img { object-fit: cover; object-position: 18% center; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-bottom { align-items: center; }
  .round-link { width: 48px; height: 48px; }
  .overview-grid { grid-template-columns: 1fr; }
  .project-meta div { grid-template-columns: 90px 1fr; }
  .governance-flow { flex-direction: column; align-items: stretch; }
  .process-connector { align-self: center; transform: rotate(90deg); }
  .lane-flow { min-width: 0; flex-direction: column; align-items: stretch; }
  .lane-flow > i { align-self: center; transform: rotate(90deg); }
  .process-circle { align-self: center; }
  .process-node { width: 100%; max-width: none; }
  .process-done { align-self: center; }
  .universal-check { padding: 20px 14px; }
  .universal-row, .shared-row { min-width: 0; flex-direction: column; align-items: stretch; }
  .universal-row > b { align-self: center; }
  .universal-row > i { align-self: center; transform: rotate(90deg); }
  .universal-row .process-node, .shared-row .process-node { min-width: 0; max-width: none; }
  .branch-lane > header { padding: 18px; }
  .process-list li { grid-template-columns: 48px 1fr; }
  .process-list li div { grid-template-columns: 1fr; gap: 8px; }
  .system-grid { grid-template-columns: 1fr; }
  .system-column, .system-column:last-child { grid-column: auto; min-height: auto; }
  .system-index { margin-bottom: 38px; }
  .color-panel, .type-panel { min-height: 500px; padding: 18px; }
  .swatches { height: 390px; }
  .swatch { padding: 8px; }
  .type-scale { padding: 18px; overflow: hidden; }
  .type-scale-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .type-scale-row > span { grid-column: 1; }
  .type-scale-row > strong { grid-column: 1 / -1; grid-row: 2; }
  .type-scale-row > em { grid-column: 2; grid-row: 1; }
  .elevation-panel, .icon-panel { min-height: auto; padding: 18px; }
  .elevation-samples { grid-template-columns: 1fr 1fr; }
  .side-nav-heading { align-items: flex-start; padding: 22px 18px; }
  .side-nav-stage { justify-content: flex-start; gap: 28px; min-height: 650px; padding: 24px; }
  .side-nav-expanded { flex-basis: 300px; }
  .navigation-rules { grid-template-columns: 1fr; }
  .pagination-spec { padding: 26px 18px; }
  .pagination-examples > div { grid-template-columns: 1fr; }
  .app-window { grid-template-columns: 42% 1fr; }
  .demo-sidebar { padding: 16px 10px; }
  .demo-content { padding: 16px; }
  .demo-topbar { margin-bottom: 34px; }
  .component-playground { grid-template-columns: 1fr; }
  .playground-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #3b3945; }
  .playground-tab { white-space: nowrap; }
  .playground-body { min-height: 420px; }
  .toast { grid-template-columns: 1fr; }
  .library-card { padding: 24px 18px; overflow: hidden; }
  .library-card-heading { grid-template-columns: 46px 1fr; gap: 12px; margin-bottom: 40px; }
  .state-grid { grid-template-columns: 70px repeat(4, minmax(90px, 1fr)); overflow-x: auto; padding-bottom: 14px; }
  .button-states { overflow: hidden; }
  .search-specimens { grid-template-columns: 1fr; }
  .transfer-demo { grid-template-columns: 1fr; }
  .transfer-actions { grid-template-columns: 1fr 1fr; justify-self: center; transform: rotate(90deg); }
  .date-layout, .pattern-layout, .feedback-layout { gap: 26px; }
  .calendar { padding: 14px 8px; }
  .calendar-grid span, .calendar-grid i { min-height: 32px; }
  .popover-board { grid-template-columns: 1fr; gap: 110px; padding: 100px 18px; }
  .popover-sample.left aside, .popover-sample.right aside { width: 125px; }
  .popover-sample.left aside { right: calc(50% + 36px); }.popover-sample.right aside { left: calc(50% + 36px); }
  .source-tabs { max-width: none; }
  .dialog-grid { padding: 14px; }
  .source-dialog { padding: 24px 18px; }
  .vertical-timeline.alternating ol::before { left: 7px; }
  .vertical-timeline.alternating li, .vertical-timeline.alternating li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 0 36px; text-align: left; }
  .vertical-timeline.alternating li::before, .vertical-timeline.alternating li:nth-child(even)::before { left: 2px; right: auto; }
  .horizontal-timeline { overflow-x: auto; padding-bottom: 12px; }
  .horizontal-timeline ol { min-width: 650px; }
  .outcome-stats div { grid-template-columns: 90px 1fr; }
  .takeaway-card { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; }
  .takeaway-card p { font-size: 15px; }
  footer { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
