:root {
  color-scheme: dark;
  --bg: #080a18;
  --bg-deep: #050712;
  --surface: #121528;
  --surface-2: #1b2033;
  --surface-3: #232942;
  --line: rgba(151, 155, 174, 0.18);
  --line-strong: rgba(151, 155, 174, 0.34);
  --text: #f7f8fc;
  --muted: #979bae;
  --brand: #ffc857;
  --brand-soft: rgba(255, 200, 87, 0.14);
  --live: #20d4c5;
  --live-soft: rgba(32, 212, 197, 0.14);
  --gold: #ffc857;
  --gold-soft: rgba(255, 200, 87, 0.13);
  --violet: #8b43ff;
  --violet-soft: rgba(139, 67, 255, 0.14);
  --magenta: #d946ef;
  --success: #42d392;
  --danger: #ff5c68;
  --coral: #ff7d69;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --page-pad: clamp(24px, 4vw, 72px);
  --font-ui: "Avenir Next", "SF Pro Display", "PingFang SC", "Noto Sans CJK SC",
    "Noto Sans Arabic", Arial, sans-serif;
  --font-arabic: "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(5, 7, 18, 0.12), rgba(5, 7, 18, 0.7));
  content: "";
  pointer-events: none;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--brand);
  color: #04110f;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.34;
  pointer-events: none;
}

.ambient--one {
  top: -260px;
  right: -160px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.18), transparent 67%);
}

.ambient--two {
  top: 920px;
  left: -300px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(139, 67, 255, 0.18), transparent 68%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 24, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.topbar__brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 200, 87, 0.7);
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topbar__brand strong,
.topbar__brand small {
  display: block;
}

.topbar__brand strong {
  font-size: 15px;
  letter-spacing: 0.18em;
}

.topbar__brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.topbar__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #c4c7d3;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 200, 87, 0.72);
}

.meta-divider {
  width: 1px;
  height: 14px;
  margin-inline: 4px;
  background: var(--line-strong);
}

.print-button {
  display: inline-flex;
  min-height: 42px;
  margin-left: auto;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 200, 87, 0.44);
  border-radius: 10px;
  background: rgba(255, 200, 87, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.print-button:hover {
  border-color: var(--brand);
  background: rgba(255, 200, 87, 0.16);
}

.review-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: min(1760px, 100%);
  margin: 0 auto;
}

.review-rail {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  padding: 42px 24px 30px;
  border-right: 1px solid var(--line);
  background: rgba(5, 7, 18, 0.56);
}

.rail-intro {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.rail-intro p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.rail-nav {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.rail-nav__item {
  position: relative;
  display: flex;
  min-height: 42px;
  padding: 0 10px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease, background 160ms ease;
}

.rail-nav__item span {
  color: #555b74;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.rail-nav__item:hover,
.rail-nav__item.is-active {
  background: rgba(255, 200, 87, 0.08);
  color: var(--text);
}

.rail-nav__item.is-active::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -24px;
  width: 2px;
  background: var(--brand);
  content: "";
  box-shadow: 0 0 10px rgba(255, 200, 87, 0.62);
}

.rail-nav__item.is-active span {
  color: var(--brand);
}

.rail-note {
  position: absolute;
  right: 24px;
  bottom: 30px;
  left: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.rail-note__label,
.rail-note strong {
  display: block;
}

.rail-note__label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.rail-note strong {
  margin-top: 6px;
  color: var(--gold);
  font-size: 13px;
}

#review-main {
  min-width: 0;
}

.section {
  position: relative;
  min-height: 560px;
  padding: clamp(80px, 8vw, 132px) var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  margin-bottom: 56px;
}

.section-heading__number {
  padding-top: 5px;
  color: #464d67;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 10px 0 12px;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-heading p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(440px, 0.95fr) minmax(440px, 1.05fr);
  align-items: center;
  gap: clamp(30px, 5vw, 86px);
  padding-top: clamp(54px, 6vw, 94px);
  padding-bottom: clamp(54px, 6vw, 94px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.hero__line {
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}

.hero h1 {
  margin: 24px 0 22px;
  font-size: clamp(64px, 6.3vw, 104px);
  font-weight: 640;
  letter-spacing: -0.07em;
  line-height: 0.92;
  white-space: nowrap;
}

.hero__lead {
  margin-bottom: 34px;
  color: #c5c8d4;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.58;
}

.hero__lead strong {
  color: var(--brand);
  font-weight: 650;
}

.hero__statement {
  display: grid;
  max-width: 650px;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement-index {
  padding-top: 4px;
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.hero__statement p {
  margin: 0;
  color: #c9ccd8;
  font-size: 14px;
  line-height: 1.9;
}

.hero__facts {
  display: grid;
  max-width: 680px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.hero__facts div {
  min-width: 0;
}

.hero__facts span,
.hero__facts strong {
  display: block;
}

.hero__facts span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.hero__facts strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__visual {
  position: relative;
  min-height: 690px;
}

.visual-shot {
  position: absolute;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #050712;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  transition: transform 200ms ease, border-color 200ms ease, filter 200ms ease;
}

.visual-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-shot:hover {
  z-index: 8;
  border-color: rgba(255, 200, 87, 0.74);
  filter: brightness(1.04);
  transform: translateY(-6px);
}

.visual-shot--main {
  z-index: 4;
  top: 18px;
  left: 50%;
  width: min(48%, 300px);
  aspect-ratio: 390 / 844;
  transform: translateX(-50%);
  border-color: rgba(255, 200, 87, 0.46);
}

.visual-shot--main:hover {
  transform: translate(-50%, -6px);
}

.visual-shot--home,
.visual-shot--ludo {
  top: 108px;
  width: min(36%, 220px);
  aspect-ratio: 390 / 844;
  opacity: 0.7;
}

.visual-shot--home {
  left: 0;
  transform: rotate(-3deg);
}

.visual-shot--ludo {
  right: 0;
  transform: rotate(3deg);
}

.visual-shot--home:hover,
.visual-shot--ludo:hover {
  opacity: 1;
  transform: translateY(-6px) rotate(0);
}

.hero__visual::after {
  position: absolute;
  right: 10%;
  bottom: 42px;
  left: 10%;
  z-index: -1;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 200, 87, 0.16);
  content: "";
  filter: blur(50px);
}

.hero__approval {
  position: absolute;
  right: 0;
  bottom: 8px;
  z-index: 10;
  display: flex;
  min-width: 248px;
  padding: 14px 16px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(66, 211, 146, 0.35);
  border-radius: 12px;
  background: rgba(8, 10, 24, 0.9);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.approval-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(66, 211, 146, 0.14);
  color: var(--success);
  font-weight: 800;
}

.hero__approval small,
.hero__approval strong {
  display: block;
}

.hero__approval small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.hero__approval strong {
  margin-top: 4px;
  font-size: 13px;
}

.direction-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(520px, 1.12fr);
  gap: 56px;
}

.direction-manifesto {
  padding: 4px 0 4px 30px;
  border-left: 1px solid var(--brand);
}

.manifesto-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.direction-manifesto blockquote {
  margin: 24px 0 22px;
  font-size: clamp(26px, 3vw, 43px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.45;
}

.direction-manifesto blockquote span {
  color: var(--brand);
}

.direction-manifesto p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.direction-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  position: relative;
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 21, 40, 0.46);
}

.principle::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--principle-color);
  content: "";
  opacity: 0.74;
}

.principle--live {
  --principle-color: var(--live);
}

.principle--gold {
  --principle-color: var(--gold);
}

.principle--violet {
  --principle-color: var(--violet);
}

.principle--coral {
  --principle-color: var(--coral);
}

.principle > span {
  color: var(--principle-color);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.principle h3 {
  margin: 42px 0 12px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.keyword-strip {
  display: flex;
  margin-top: 64px;
  padding: 18px 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #69708b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

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

.system-block {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(18, 21, 40, 0.6);
}

.system-block--colors,
.system-block--avatar {
  grid-column: span 7;
}

.system-block--type,
.system-block--layout {
  grid-column: span 5;
}

.block-heading > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.block-heading h3 {
  margin: 8px 0 24px;
  font-size: 24px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.swatch {
  position: relative;
  display: flex;
  min-height: 84px;
  overflow: hidden;
  padding: 12px;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 10px;
  background: var(--swatch);
  color: #080a18;
}

.swatch::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.28));
  content: "";
}

.swatch--wide {
  grid-row: span 2;
  min-height: 176px;
  color: var(--text);
}

.swatch span,
.swatch code {
  position: relative;
  z-index: 1;
}

.swatch span {
  font-size: 12px;
  font-weight: 750;
}

.swatch code {
  margin-top: 4px;
  font-size: 9px;
  opacity: 0.72;
}

.block-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.type-specimen {
  display: grid;
  min-height: 140px;
  padding: 24px;
  place-content: center;
  border: 1px solid rgba(255, 200, 87, 0.24);
  border-radius: 12px;
  background: rgba(255, 200, 87, 0.06);
  text-align: right;
  font-family: var(--font-arabic);
}

.type-specimen strong,
.type-specimen span {
  display: block;
}

.type-specimen strong {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
}

.type-specimen span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
}

.type-mix {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin-top: 18px;
  align-items: baseline;
}

.type-mix span {
  color: var(--muted);
  font-size: 10px;
}

.type-mix strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.avatar-rule {
  display: grid;
  grid-template-columns: minmax(170px, 0.74fr) minmax(240px, 1.26fr);
  gap: 26px;
  align-items: stretch;
}

.avatar-rule > img {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
}

.avatar-rule__copy {
  align-self: center;
}

.rule-status {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.avatar-rule__copy strong {
  display: block;
  margin-bottom: 18px;
  font-size: 22px;
}

.avatar-rule__copy li,
.boundary-column li,
.room-card__body li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.avatar-rule__copy li::before,
.boundary-column li::before,
.room-card__body li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric-grid > div {
  min-height: 96px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  color: var(--brand);
  font-size: 19px;
}

.metric-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: center;
}

.flow-node {
  position: relative;
  display: grid;
  min-height: 180px;
  padding: 24px;
  align-content: end;
  border-top: 1px solid var(--node-color);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(18, 21, 40, 0.72));
}

.flow-node > span {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--node-color);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.flow-node strong,
.flow-node small {
  display: block;
}

.flow-node strong {
  font-size: 20px;
}

.flow-node small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.flow-node--entry {
  --node-color: var(--brand);
}

.flow-node--identity {
  --node-color: var(--violet);
}

.flow-node--play {
  --node-color: var(--gold);
}

.flow-node--relation {
  --node-color: var(--magenta);
}

.flow-node--profile {
  --node-color: #7aa7ff;
}

.flow-link {
  height: 1px;
  background: var(--line-strong);
}

.experience-loop {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 38px;
  margin-top: 48px;
  padding: 20px 0;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-loop__label {
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.experience-loop__steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #d3d5de;
  font-size: 12px;
}

.experience-loop__steps i {
  color: #4c536d;
  font-style: normal;
}

.gallery-legend {
  display: flex;
  padding-top: 24px;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
}

.gallery-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot--brand {
  background: var(--brand);
}

.legend-dot--live {
  background: var(--live);
}

.color-migration-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  margin-bottom: 28px;
  padding: 20px 22px;
  border-left: 2px solid var(--brand);
  background: rgba(255, 200, 87, 0.06);
}

.color-migration-note > span {
  padding-top: 3px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.color-migration-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.color-migration-note strong {
  color: var(--brand);
}

.screen-grid {
  display: grid;
  gap: 14px;
}

.screen-grid--five {
  grid-template-columns: repeat(5, minmax(170px, 1fr));
}

.screen-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(18, 21, 40, 0.62);
}

.screen-card__header {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  min-height: 54px;
  align-items: center;
  gap: 8px;
}

.screen-card__header > span {
  color: var(--brand);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.screen-card__header strong,
.screen-card__header small {
  display: block;
}

.screen-card__header strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-card__header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.screen-card__header em {
  color: var(--gold);
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.screen-image,
.room-card__image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #050712;
}

.screen-image {
  aspect-ratio: 390 / 844;
}

.screen-image img,
.room-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.screen-image > span,
.room-card__image > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(5, 7, 18, 0.78);
  color: #fff;
  font-size: 8px;
  font-weight: 650;
  opacity: 0;
  transition: opacity 180ms ease;
}

.screen-image:hover img,
.room-card__image:hover img {
  filter: brightness(1.08);
  transform: scale(1.018);
}

.screen-image:hover > span,
.room-card__image:hover > span {
  opacity: 1;
}

.screen-card > p {
  min-height: 92px;
  margin: 16px 4px 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.avatar-flow-review {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 28px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(255, 200, 87, 0.3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 72% 45%, rgba(255, 200, 87, 0.08), transparent 42%),
    rgba(18, 21, 40, 0.66);
}

.avatar-flow-review__copy {
  align-self: center;
}

.avatar-flow-review__copy h3 {
  margin: 14px 0 16px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
}

.avatar-flow-review__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.avatar-flow-review__copy ul {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.avatar-flow-review__copy li {
  position: relative;
  padding-left: 16px;
  color: #c8cad4;
  font-size: 12px;
  line-height: 1.65;
}

.avatar-flow-review__copy li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.avatar-flow-review__screens {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.avatar-flow-screen {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(5, 7, 18, 0.72);
}

.avatar-flow-screen__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 40px;
  align-items: center;
  font-size: 10px;
}

.avatar-flow-screen__header span,
.avatar-flow-screen__header em {
  color: var(--brand);
  font-style: normal;
}

.avatar-flow-screen__header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-flow-screen .screen-image {
  border: 1px solid rgba(255, 200, 87, 0.16);
}

.avatar-flow-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 200, 87, 0.38);
  border-radius: 50%;
  color: var(--brand);
  font-size: 22px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.room-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(18, 21, 40, 0.62);
}

.room-card--featured {
  border-color: rgba(255, 200, 87, 0.52);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.24);
}

.room-card__topline {
  display: flex;
  min-height: 48px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.room-card__topline em {
  color: var(--brand);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0;
}

.room-card__variants {
  margin: 0 12px;
}

.room-card__variant-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 200, 87, 0.16);
  border-radius: 10px;
  background: rgba(5, 7, 18, 0.72);
}

.room-card__variant-tab {
  min-height: 34px;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.room-card__variant-tab:hover,
.room-card__variant-tab:focus-visible {
  color: var(--brand);
}

.room-card__variant-tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.room-card__variant-tab.is-active {
  background: linear-gradient(135deg, #ffd677, var(--brand));
  color: #17100a;
  box-shadow: 0 8px 20px rgba(255, 184, 69, 0.18);
}

.room-card__variant-panel[hidden] {
  display: none;
}

.room-card__variants .room-card__image {
  width: 100%;
  margin: 0;
}

.room-card__image {
  width: calc(100% - 24px);
  margin: 0 12px;
  aspect-ratio: 390 / 844;
}

.room-card__body {
  padding: 24px;
}

.room-card__body h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.room-card__body > p {
  min-height: 72px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.decision-item {
  position: relative;
  display: grid;
  min-height: 190px;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 21, 40, 0.42);
}

.decision-index {
  color: var(--brand);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.decision-item h3 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.decision-item strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.decision-item p {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.decision-status {
  height: max-content;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--gold);
  font-size: 9px;
  white-space: nowrap;
}

.decision-status--confirmed {
  color: var(--success);
}

.recommendation-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(400px, 1.2fr);
  gap: 48px;
  margin-top: 36px;
  padding: 32px;
  align-items: end;
  border: 1px solid rgba(255, 200, 87, 0.34);
  border-radius: var(--radius-md);
  background: rgba(255, 200, 87, 0.06);
}

.recommendation-panel__label {
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.recommendation-panel h3 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
}

.recommendation-panel p {
  margin: 0;
  color: #bdc0cd;
  font-size: 13px;
  line-height: 1.9;
}

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

.boundary-column {
  min-height: 350px;
  padding: 30px;
  border-top: 2px solid var(--boundary-color);
  background: rgba(18, 21, 40, 0.56);
}

.boundary-column--in {
  --boundary-color: var(--brand);
}

.boundary-column--out {
  --boundary-color: var(--violet);
}

.boundary-column--alert {
  --boundary-color: var(--gold);
}

.boundary-column--confirmed {
  --boundary-color: var(--brand);
}

.boundary-label {
  color: var(--boundary-color);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.boundary-column h3 {
  margin: 48px 0 22px;
  font-size: 26px;
}

.boundary-column li {
  margin-bottom: 5px;
  font-size: 13px;
}

.boundary-column li::before {
  background: var(--boundary-color);
}

.boundary-column > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.boundary-column > strong {
  display: block;
  margin-top: 22px;
  color: var(--gold);
  font-size: 13px;
  line-height: 1.7;
}

.review-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 96px;
  padding: 24px 0;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.review-footer strong {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0;
}

.review-footer > :last-child {
  text-align: right;
}

.lightbox {
  width: min(96vw, 1100px);
  max-width: 1100px;
  height: min(94vh, 980px);
  max-height: 94vh;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #080a18;
  color: var(--text);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.72);
}

.lightbox::backdrop {
  background: rgba(2, 3, 10, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lightbox__bar {
  display: flex;
  min-height: 60px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.lightbox__bar strong {
  font-size: 13px;
}

.lightbox__bar button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
}

.lightbox__canvas {
  display: grid;
  height: calc(100% - 60px);
  padding: 20px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 200, 87, 0.08), transparent 40%),
    #050712;
}

.lightbox__canvas img {
  width: auto;
  height: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.52);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

@media (max-width: 1280px) {
  .review-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .review-rail {
    padding-right: 18px;
    padding-left: 18px;
  }

  .rail-nav__item.is-active::before {
    left: -18px;
  }

  .hero {
    grid-template-columns: minmax(390px, 0.92fr) minmax(390px, 1.08fr);
  }

  .screen-grid--five {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
  }

  .screen-card__header {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .screen-card__header em {
    grid-column: 2;
  }
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar__meta {
    display: none;
  }

  .review-layout {
    display: block;
  }

  .review-rail {
    position: sticky;
    top: 72px;
    z-index: 40;
    display: flex;
    width: 100%;
    height: auto;
    overflow-x: auto;
    padding: 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 24, 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .rail-intro,
  .rail-note {
    display: none;
  }

  .rail-nav {
    display: flex;
    width: max-content;
    margin: 0;
    gap: 0;
  }

  .rail-nav__item {
    min-height: 48px;
    flex: 0 0 auto;
    border-radius: 0;
  }

  .rail-nav__item.is-active::before {
    top: auto;
    right: 10px;
    bottom: 0;
    left: 10px;
    width: auto;
    height: 2px;
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 0.92fr) minmax(350px, 1.08fr);
  }

  .hero__visual {
    min-height: 610px;
  }

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

  .screen-grid--five {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(210px, 1fr));
    padding-bottom: 12px;
  }

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

  .avatar-flow-review__copy {
    max-width: 720px;
  }

  .avatar-flow-review__screens {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  :root {
    --page-pad: 22px;
  }

  .topbar {
    min-height: 64px;
    padding: 8px 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .topbar__brand small {
    display: none;
  }

  .print-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 11px;
  }

  .review-rail {
    top: 64px;
  }

  .section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-heading {
    grid-template-columns: 36px minmax(0, 1fr);
    margin-bottom: 42px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading p {
    font-size: 13px;
  }

  .gallery-legend {
    grid-column: 2;
    padding-top: 0;
  }

  .hero {
    display: block;
    padding-top: 74px;
  }

  .hero h1 {
    font-size: clamp(64px, 18vw, 96px);
  }

  .hero__visual {
    max-width: 560px;
    min-height: 640px;
    margin: 44px auto 0;
  }

  .system-block--colors,
  .system-block--avatar,
  .system-block--type,
  .system-block--layout {
    grid-column: 1 / -1;
  }

  .architecture-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-node {
    min-height: 130px;
  }

  .flow-link {
    width: 1px;
    height: 28px;
    margin-left: 32px;
  }

  .experience-loop {
    grid-template-columns: 1fr;
  }

  .experience-loop__steps {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    white-space: nowrap;
  }

  .room-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .room-card {
    display: grid;
    grid-template-columns: minmax(230px, 0.82fr) minmax(250px, 1.18fr);
  }

  .room-card__topline {
    grid-column: 1 / -1;
  }

  .room-card__image {
    margin-bottom: 12px;
  }

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

  .recommendation-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .review-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }

  .review-footer > :last-child {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .topbar__brand strong {
    font-size: 13px;
  }

  .print-button span {
    display: none;
  }

  .review-rail {
    padding: 0 8px;
  }

  .rail-nav__item {
    padding: 0 9px;
    gap: 6px;
    font-size: 11px;
  }

  .rail-nav__item span {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-heading__number,
  .gallery-legend {
    grid-column: 1;
  }

  .hero__kicker {
    flex-wrap: wrap;
  }

  .hero__lead br {
    display: none;
  }

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

  .hero__facts div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .hero__facts strong {
    white-space: normal;
  }

  .hero__visual {
    min-height: 520px;
  }

  .visual-shot--main {
    width: 52%;
  }

  .visual-shot--home,
  .visual-shot--ludo {
    top: 82px;
    width: 38%;
  }

  .hero__approval {
    right: 4px;
    bottom: 0;
    min-width: 210px;
  }

  .direction-grid {
    gap: 36px;
  }

  .direction-manifesto {
    padding-left: 20px;
  }

  .direction-manifesto blockquote {
    font-size: 28px;
  }

  .direction-principles {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: 178px;
  }

  .keyword-strip {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .system-block {
    padding: 20px;
  }

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

  .swatch--wide {
    grid-row: auto;
    min-height: 108px;
  }

  .avatar-rule {
    grid-template-columns: 1fr;
  }

  .color-migration-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .avatar-rule > img {
    height: 260px;
  }

  .screen-grid--five {
    grid-template-columns: repeat(5, 230px);
  }

  .avatar-flow-review {
    padding: 18px;
  }

  .avatar-flow-review__screens {
    grid-template-columns: minmax(0, 1fr);
    max-width: 290px;
  }

  .avatar-flow-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .room-card {
    display: block;
  }

  .room-card__image {
    width: calc(100% - 24px);
  }

  .decision-item {
    grid-template-columns: 34px 1fr;
    min-height: auto;
    padding: 24px 20px;
  }

  .decision-status {
    grid-column: 2;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .lightbox {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .lightbox__canvas {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: var(--bg) !important;
  }

  .topbar,
  .review-rail,
  .ambient,
  .lightbox,
  .screen-image > span,
  .room-card__image > span {
    display: none !important;
  }

  .review-layout {
    display: block;
  }

  .section {
    min-height: 0;
    padding: 18mm 10mm;
    break-before: page;
  }

  .section:first-child {
    break-before: auto;
  }

  .hero {
    display: grid;
    min-height: 170mm;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .screen-grid--five {
    overflow: visible;
    grid-template-columns: repeat(5, 1fr);
  }

  .room-card,
  .screen-card,
  .avatar-flow-review,
  .avatar-flow-screen,
  .system-block,
  .decision-item,
  .boundary-column {
    break-inside: avoid;
  }
}
