:root {
  --canvas: oklch(0.925 0.004 75);
  --surface: oklch(0.965 0.004 75);
  --raised: oklch(0.995 0.002 75 / .72);
  --ink: oklch(0.18 0.008 75);
  --muted: oklch(0.46 0.008 75);
  --quiet: oklch(0.67 0.006 75);
  --line: oklch(0.81 0.008 75 / .7);
  --pressed: oklch(0.89 0.006 75 / .78);
  --live: oklch(0.67 0.18 28);
  --signal: oklch(0.64 0.18 42);
  --notation: oklch(0.90 0.035 235);
  --harmony: oklch(0.50 0.18 276);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); font-family: var(--sans); }
body { margin: 0; min-width: 320px; }
button { color: inherit; font: inherit; }
button:focus-visible { outline: 3px solid var(--harmony); outline-offset: 3px; }
[hidden] { display: none !important; }
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-chevron { width: 15px; height: 15px; color: var(--quiet); }

.prototype-bar {
  min-height: 64px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface) 76%, transparent);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  position: sticky;
  top: 0;
  z-index: 20;
}
.prototype-mark { font: 24px/1 var(--serif); margin-right: 12px; }
.prototype-meta { color: var(--muted); font-size: 12px; }
.view-switch { display: flex; background: color-mix(in oklch, var(--pressed) 70%, transparent); border: 1px solid rgb(255 255 255 / .45); border-radius: 13px; padding: 3px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.view-switch button { min-height: 36px; border: 0; background: transparent; border-radius: 10px; padding: 0 14px; font-size: 11px; cursor: pointer; transition: color 160ms ease, background-color 220ms var(--ease), transform 160ms ease; }
.view-switch button:active { transform: scale(.97); }
.view-switch button.is-active { background: rgb(255 255 255 / .68); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6); }

.stage {
  min-height: calc(100vh - 64px);
  padding: 48px clamp(20px, 6vw, 96px);
  display: grid;
  place-items: center;
}
.phone {
  width: 402px;
  height: min(844px, calc(100vh - 112px));
  min-height: 660px;
  border: 8px solid oklch(0.12 0 0);
  border-radius: 48px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 90px rgb(20 20 18 / .14), inset 0 0 0 1px rgb(255 255 255 / .36);
}
.screen { height: calc(100% - 78px); overflow: auto; scrollbar-width: none; padding: 24px 18px 30px; }
.screen::-webkit-scrollbar { display: none; }
.splash-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #080808;
  color: white;
}
.splash-screen > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 48% center;
  filter: contrast(1.06);
  animation: splash-focus 5s var(--ease) both;
}
.splash-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(0 0 0 / .18) 0%, transparent 34%),
    linear-gradient(to top, rgb(0 0 0 / .86) 0%, rgb(0 0 0 / .08) 46%, transparent 68%);
}
.splash-brand {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 104px;
}
.splash-brand span {
  display: block;
  font: 42px/.92 var(--serif);
  letter-spacing: -.035em;
}
.splash-brand p {
  margin: 9px 0 0;
  color: rgb(255 255 255 / .72);
  font-size: 10px;
}
.splash-enter {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
  min-height: 56px;
  padding: 0 17px;
  border: 1px solid rgb(255 255 255 / .28);
  border-radius: 16px;
  color: white;
  background: rgb(255 255 255 / .12);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 180ms ease, transform 160ms ease;
}
.splash-enter:active {
  background: rgb(255 255 255 / .2);
  transform: scale(.985);
}
.app-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.app-header.simple { align-items: center; }
.date { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.app-header h1, .sheet-page h1 { font: 28px/.98 var(--serif); letter-spacing: -.025em; margin: 0; font-weight: 400; }
.avatar, .round-action {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .55); background: var(--raised); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); cursor: pointer; flex: none; transition: transform 160ms ease, background-color 180ms ease;
}
.avatar:active, .round-action:active { transform: scale(.94); }
.avatar { font-size: 12px; font-weight: 650; }

.status-strip { min-height: 38px; border: 1px solid rgb(255 255 255 / .5); border-radius: 13px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--raised); backdrop-filter: blur(18px) saturate(115%); -webkit-backdrop-filter: blur(18px) saturate(115%); font-size: 10px; margin-bottom: 12px; }
.status-strip strong { margin-left: auto; font-weight: 600; }
.status-glyph { width: 15px; height: 15px; color: var(--signal); stroke-width: 1.8; }

.feature { background: var(--raised); border: 1px solid rgb(255 255 255 / .5); border-radius: 18px; overflow: hidden; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.feature-art, .event-hero { height: 168px; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, oklch(0.30 0.025 255), oklch(0.22 0.02 255)); color: white; overflow: hidden; }
.feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(10 8 4 / .42), transparent 48%, rgb(10 8 4 / .12)); pointer-events: none; }
.feature-image { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; transition: transform 700ms var(--ease), filter 700ms var(--ease); }
.feature:hover .feature-image { transform: scale(1.018); filter: saturate(1.04); }
.event-hero::before { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; transform: translate(-80px, 45px); box-shadow: 56px -38px 0 -1px transparent, 56px -38px 0 0 rgb(255 255 255 / .2); }
.feature-letter { font: italic 110px/.8 var(--serif); opacity: .92; transform: translateY(-2px); animation: letter-drift 8s ease-in-out infinite alternate; }
.event-id { position: absolute; z-index: 1; left: 13px; top: 13px; font-size: 9px; letter-spacing: .05em; opacity: .82; text-shadow: 0 1px 8px rgb(0 0 0 / .36); }
.feature-copy { padding: 15px 16px 17px; }
.feature-copy p, .event-copy > p:first-child { margin: 0 0 4px; color: var(--muted); font-size: 11px; }
.feature-copy h2 { font: 22px/1.04 var(--serif); margin: 0 0 6px; letter-spacing: -.025em; font-weight: 400; }
.feature-copy > span { color: var(--muted); font-size: 11px; display: block; }
.primary-action, .secondary-action { border: 0; min-height: 44px; border-radius: 999px; padding: 0 17px; cursor: pointer; font-size: 10px; letter-spacing: .025em; font-weight: 600; transition: transform 150ms ease, opacity 150ms ease; }
.primary-action:active, .secondary-action:active { transform: scale(.985); opacity: .86; }
.primary-action { color: white; background: var(--ink); }
.secondary-action { background: var(--pressed); }
.feature-copy .primary-action { width: 100%; margin-top: 14px; }

.section-block { margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.section-heading h2 { font-size: 11px; letter-spacing: .025em; margin: 0; }
.section-heading span, .section-heading button { color: var(--muted); border: 0; background: none; font-size: 9px; }
.section-heading button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; padding: 0 4px; margin: -14px -4px -14px 0; cursor: pointer; }
.action-row { width: 100%; min-height: 68px; border: 1px solid rgb(255 255 255 / .48); background: var(--raised); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; text-align: left; cursor: pointer; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: transform 180ms var(--ease), background-color 180ms ease; }
.action-row:active, .compact-grid button:active { transform: scale(.985); }
.row-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--pressed); font-size: 19px; }
.action-row strong, .action-row small { display: block; }
.action-row strong { font-size: 11px; }
.action-row small { color: var(--muted); margin-top: 3px; font-size: 9px; }
.compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compact-grid button { border: 1px solid rgb(255 255 255 / .48); background: var(--raised); border-radius: 14px; min-height: 82px; padding: 13px; text-align: left; cursor: pointer; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: transform 180ms var(--ease); }
.compact-grid strong { display: block; font: 25px/1 var(--serif); margin-bottom: 8px; font-weight: 400; }
.compact-grid span { font-size: 9px; color: var(--muted); }

.bottom-nav { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 62px; background: color-mix(in oklch, white 64%, transparent); border: 1px solid rgb(255 255 255 / .62); border-radius: 19px; padding: 5px; display: grid; grid-template-columns: repeat(4, 1fr); z-index: 5; box-shadow: 0 10px 30px rgb(20 20 18 / .08); backdrop-filter: blur(24px) saturate(130%); -webkit-backdrop-filter: blur(24px) saturate(130%); }
.bottom-nav button { border: 0; background: none; border-radius: 15px; font-size: 9px; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.bottom-nav button .icon { width: 18px; height: 18px; }
.bottom-nav button { transition: color 180ms ease, background-color 220ms var(--ease), transform 160ms ease; }
.bottom-nav button:active { transform: scale(.94); }
.bottom-nav button.is-active { background: color-mix(in oklch, var(--pressed) 72%, transparent); color: var(--ink); font-weight: 650; }

.segments { display: flex; gap: 3px; background: color-mix(in oklch, var(--pressed) 72%, transparent); padding: 3px; border: 1px solid rgb(255 255 255 / .45); border-radius: 12px; margin-bottom: 18px; overflow-x: auto; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.segments button { border: 0; background: none; min-height: 44px; padding: 0 16px; border-radius: 9px; font-size: 9px; letter-spacing: .025em; white-space: nowrap; transition: background-color 180ms ease, transform 150ms ease; }
.segments button:active { transform: scale(.96); }
.segments button.is-active { background: rgb(255 255 255 / .66); }
.event-list { border-top: 1px solid var(--line); }
.event-row { width: 100%; min-height: 76px; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-align: left; cursor: pointer; }
.event-date { text-align: center; font-size: 8px; color: var(--muted); letter-spacing: .08em; }
.event-date b { display: block; font: 24px/1 var(--serif); color: var(--ink); letter-spacing: 0; }
.event-row strong, .event-row small { display: block; }
.event-row strong { font: 16px/1.1 var(--serif); font-weight: 400; }
.event-row small { color: var(--muted); font-size: 9px; margin-top: 5px; }

.detail-bar { min-height: 44px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; margin: -5px 0 10px; font-size: 10px; letter-spacing: .02em; font-weight: 600; }
.detail-bar button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.event-hero { margin: 0 -16px; height: 220px; }
.event-copy { padding-top: 18px; }
.event-copy h1 { font: 32px/.98 var(--serif); margin: 0 0 12px; letter-spacing: -.03em; font-weight: 400; }
.event-meta { color: var(--muted); font-size: 10px; line-height: 1.55; }
.inline-actions { display: flex; gap: 8px; margin: 20px 0 28px; }
.program { border-top: 1px solid var(--line); padding-top: 18px; }
.program h2 { font-size: 13px; margin: 0 0 10px; }
.program div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.program span { color: var(--muted); }

.sheet-page { padding-top: 14px; }
.sheet-page > h1 { margin-bottom: 26px; max-width: 10ch; }
.choice { width: 100%; min-height: 78px; border: 0; border-top: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; text-align: left; cursor: pointer; }
.choice:last-of-type { border-bottom: 1px solid var(--line); }
.choice-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--raised); display: grid; place-items: center; font-size: 20px; }
.choice strong, .choice small { display: block; }
.choice strong { font-size: 13px; }
.choice small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.support-note { color: var(--muted); font-size: 9px; line-height: 1.5; padding: 14px; background: var(--raised); border: 1px solid rgb(255 255 255 / .45); border-radius: 12px; margin-top: 18px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.tier { background: color-mix(in oklch, var(--signal), white 86%); color: oklch(0.45 0.15 35); border-radius: 999px; padding: 7px 10px; font-size: 9px; font-weight: 700; }
.pass-card { background: var(--ink); color: white; border-radius: 24px; padding: 18px; min-height: 380px; display: flex; flex-direction: column; }
.pass-top { display: flex; justify-content: space-between; font-size: 10px; opacity: .7; }
.member-name { font: 27px/1 var(--serif); margin: 28px 0 18px; }
.qr { width: 190px; height: 190px; margin: auto; background: white; border-radius: 14px; padding: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qr div { background: var(--ink); }
.qr div:nth-child(2), .qr div:nth-child(4), .qr div:nth-child(8) { border-radius: 50%; transform: scale(.45); }
.offline-state { display: grid; grid-template-columns: 34px 1fr; margin-top: 12px; background: var(--raised); border: 1px solid rgb(255 255 255 / .48); border-radius: 14px; padding: 12px; align-items: center; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.offline-state span { grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; background: color-mix(in oklch, var(--live), white 78%); border-radius: 50%; }
.offline-state strong { font-size: 11px; }
.offline-state small { color: var(--muted); font-size: 9px; }

.benefit-list { border-top: 1px solid var(--line); }
.benefit-list button { width: 100%; min-height: 78px; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer; }
.benefit-list strong, .benefit-list small { display: block; }
.benefit-list strong { font-size: 13px; }
.benefit-list small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.benefit-list button > span:last-child { background: var(--pressed); border-radius: 999px; padding: 8px 11px; font-size: 10px; }

.profile-block { display: flex; align-items: center; gap: 12px; padding: 4px 0 24px; }
.large-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--pressed); display: grid; place-items: center; font: 20px/1 var(--serif); }
.profile-block strong, .profile-block small { display: block; }
.profile-block strong { font-size: 14px; }
.profile-block small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.settings-list { border-top: 1px solid var(--line); }
.settings-list button { width: 100%; min-height: 54px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: flex; justify-content: space-between; align-items: center; font-size: 12px; cursor: pointer; }
.settings-label { display: inline-flex; align-items: center; gap: 12px; }
.settings-label .icon { width: 16px; height: 16px; color: var(--muted); }

.map-view { padding: 60px clamp(20px, 6vw, 96px) 96px; max-width: 1500px; margin: 0 auto; }
.map-header { display: grid; grid-template-columns: 150px minmax(280px, 1fr) minmax(260px, 430px); gap: 28px; align-items: end; margin-bottom: 48px; }
.map-header p { color: var(--muted); font-size: 11px; margin: 0; }
.map-header h1 { font: 46px/1 var(--serif); margin: 0; letter-spacing: -.025em; }
.map-header > span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.sitemap-layout { display: block; }
.sitemap-scroll { overflow-x: auto; padding-bottom: 18px; scrollbar-color: var(--line) transparent; }
.sitemap {
  width: 880px;
  min-height: 850px;
  padding: 28px 34px 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: color-mix(in oklch, var(--raised) 45%, transparent);
  position: relative;
  margin: 0 auto;
}
.site-node {
  width: 150px;
  min-height: 48px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid;
  background: var(--raised);
  font-size: 10px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.site-node small { margin-left: 7px; padding: 3px 5px; border-radius: 4px; background: var(--ink); color: white; font-size: 7px; text-transform: uppercase; }
.node-root { border-color: oklch(0.78 0.14 90); }
.node-primary { border-color: var(--ink); background: var(--pressed); text-transform: uppercase; letter-spacing: .04em; }
.node-gate { border-color: oklch(0.78 0.14 90); }
.node-detail { border-color: oklch(0.67 0.13 175); }
.node-auth { border-color: oklch(0.55 0.13 290); }
.node-function { border-color: oklch(0.65 0.11 230); border-style: dashed; }
.tree-root { display: flex; flex-direction: column; align-items: center; }
.root-line { height: 24px; border-left: 1px solid var(--quiet); }
.entry-path { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tree-arrow { color: var(--quiet); font-size: 12px; transform: rotate(-90deg); }
.shell-node { display: flex; flex-direction: column; align-items: center; margin-top: 30px; position: relative; }
.shell-node::before { content: ""; position: absolute; height: 30px; top: -30px; border-left: 1px solid var(--quiet); }
.shell-node .site-node { width: 760px; min-height: 38px; }
.shell-trunk { height: 28px; border-left: 1px solid var(--quiet); }
.branch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; padding-top: 1px; }
.branch-grid::before { content: ""; position: absolute; left: 110px; right: 110px; top: 0; border-top: 1px solid var(--quiet); }
.tree-branch { display: flex; flex-direction: column; align-items: center; position: relative; }
.branch-stem { height: 28px; border-left: 1px solid var(--quiet); }
.child-stack { margin-top: 22px; display: grid; gap: 20px; }
.child-stack .site-node::before { content: ""; position: absolute; left: 50%; top: -21px; height: 20px; border-left: 1px solid var(--quiet); }
.utility-row { margin-top: 54px; padding-top: 20px; border-top: 1px solid var(--quiet); display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.utility-row > span { color: var(--muted); font-size: 9px; margin-right: auto; }
.utility-row .site-node { min-height: 42px; }
.ia-root { display: flex; flex-direction: column; align-items: center; }
.ia-root .site-node { width: 170px; }
.ia-root-stem { height: 34px; border-left: 1px solid var(--quiet); }
.ia-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; padding-top: 1px; }
.ia-columns::before { content: ""; position: absolute; left: 90px; right: 90px; top: 0; border-top: 1px solid var(--quiet); }
.ia-branch { display: flex; flex-direction: column; align-items: center; }
.ia-branch-stem { height: 28px; border-left: 1px solid var(--quiet); }
.ia-children { display: grid; gap: 18px; margin-top: 22px; }
.ia-children .site-node::before { content: ""; position: absolute; left: 50%; top: -19px; height: 18px; border-left: 1px solid var(--quiet); }
.ia-band { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ink); }
.ia-band header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.ia-band header span { color: var(--muted); font-size: 9px; }
.ia-band header strong { font-size: 11px; }
.ia-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ia-feature-grid .site-node { width: 100%; min-height: 52px; }
.ia-utilities { border-top-color: var(--quiet); }

.identity-view { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; }
.identity-subnav {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  padding: 30px 18px;
  border-right: 1px solid var(--line);
  background: color-mix(in oklch, var(--raised) 48%, var(--canvas));
}
.identity-subnav > span { display: block; color: var(--muted); font-size: 9px; margin: 0 10px 18px; }
.identity-subnav nav { display: grid; gap: 2px; }
.identity-subnav a { min-height: 34px; padding: 0 10px; display: flex; align-items: center; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 11px; }
.identity-subnav a:hover { color: var(--ink); }
.identity-subnav a.is-current { background: var(--pressed); color: var(--ink); font-weight: 650; }
.identity-content { width: min(100%, 1180px); margin: 0 auto; padding: 70px clamp(24px, 6vw, 90px) 96px; }
.identity-content [id] { scroll-margin-top: 90px; }
.identity-intro { display: grid; grid-template-columns: 150px minmax(280px, 1fr) minmax(260px, 400px); gap: 30px; align-items: end; }
.identity-intro > p { margin: 0; color: var(--muted); font-size: 10px; }
.identity-intro h1 { margin: 0; font: 76px/.86 var(--serif); letter-spacing: -.035em; }
.identity-intro > div { display: grid; gap: 10px; }
.identity-intro strong { font: 22px/1.08 var(--serif); font-weight: 400; }
.identity-intro span { color: var(--muted); font-size: 11px; line-height: 1.55; max-width: 48ch; }
.identity-rule { display: none; }
.identity-section { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 44px 0; }
.identity-section > header { display: grid; grid-template-columns: 30px 1fr; align-content: start; }
.identity-section > header span { color: var(--quiet); font: 15px/1 var(--serif); }
.identity-section > header h2 { margin: 0; font-size: 12px; }
.principle-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 52px; }
.principle-list article { min-height: 96px; padding: 14px 0; }
.principle-list b { font-size: 13px; }
.principle-list p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.type-system { grid-template-columns: 180px 1fr 1fr; }
.type-specimen { min-height: 190px; padding-top: 12px; }
.type-specimen > span { color: var(--muted); font-size: 9px; }
.display-specimen p { margin: 38px 0 0; font: 64px/.9 var(--serif); letter-spacing: -.035em; }
.ui-specimen p { margin: 48px 0 4px; font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.ui-specimen small { color: var(--muted); font-size: 10px; }
.color-rack { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); min-height: 190px; }
.color-rack article { padding: 14px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-right: 0; font-size: 10px; }
.color-rack article:last-child { border-right: 1px solid var(--line); }
.color-rack code { font: 9px var(--sans); opacity: .6; }
.swatch-ink { background: var(--ink); color: white; }
.swatch-stage { background: var(--raised); }
.swatch-lobby { background: var(--canvas); }
.swatch-signal { background: var(--signal); color: white; }
.swatch-notation { background: var(--notation); }
.component-board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.component-board > article { min-height: 120px; padding: 16px; background: var(--raised); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.component-label { color: var(--muted); font-size: 9px; }
.identity-status { width: 100%; margin: 0; }
.icon-specimens { display: flex; gap: 20px; }
.icon-specimens .icon { width: 21px; height: 21px; }
.voice-card p { margin: 18px 0 0; font: 23px/1 var(--serif); }
.voice-card small { color: var(--muted); font-size: 10px; line-height: 1.4; max-width: 42ch; }
.token-pair > div, .icon-system > div { min-width: 0; }
.spacing-rack, .shape-rack { display: grid; grid-template-columns: repeat(5, 1fr); }
.spacing-rack article, .shape-rack article { min-height: 150px; padding: 16px 12px 12px; border-right: 1px solid var(--line); display: grid; grid-template-rows: 1fr auto auto; align-items: end; }
.spacing-rack article:last-child, .shape-rack article:last-child { border-right: 0; }
.spacing-rack i { display: block; width: var(--size); height: var(--size); max-width: 48px; max-height: 48px; background: var(--signal); align-self: center; justify-self: center; }
.spacing-rack code, .shape-rack code { font: 9px var(--sans); }
.spacing-rack span, .shape-rack span { color: var(--muted); font-size: 9px; margin-top: 4px; }
.shape-rack { grid-template-columns: repeat(4, 1fr); }
.shape-rack i { width: 64px; height: 64px; align-self: center; justify-self: center; background: var(--pressed); border: 1px solid var(--line); }
.shape-tile { border-radius: 6px; }
.shape-control { border-radius: 12px; }
.shape-card { border-radius: 22px; }
.shape-round { border-radius: 50%; }
.token-note { color: var(--muted); font-size: 10px; margin: 22px 0 0; }
.token-note code { color: var(--ink); font: 10px var(--sans); }
.voice-system .voice-card { min-height: 160px; padding: 18px; background: var(--raised); }
@media (max-width: 900px) {
  .prototype-meta { display: none; }
  .stage { padding: 18px; align-items: flex-start; }
  .phone { height: calc(100vh - 100px); max-height: 844px; }
  .map-header { grid-template-columns: 1fr; gap: 10px; }
  .sitemap-layout { grid-template-columns: 1fr; }
  .identity-intro { grid-template-columns: 1fr; align-items: start; }
  .identity-section, .type-system { grid-template-columns: 1fr; }
  .identity-view { grid-template-columns: 150px minmax(0, 1fr); }
  .identity-content { padding-inline: 26px; }
  .spacing-rack { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .prototype-bar { padding: 9px 10px; }
  .prototype-mark { font-size: 20px; }
  .view-switch button { padding: 0 9px; }
  .stage { padding: 0; }
  .phone { width: 100%; height: calc(100vh - 55px); min-height: 600px; border: 0; border-radius: 0; }
  .screen { height: calc(100% - 76px); padding-top: 18px; }
  .map-view { padding: 28px 12px 60px; }
  .map-header h1 { font-size: 34px; }
  .identity-view { display: block; }
  .identity-subnav { top: 55px; height: auto; padding: 7px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; z-index: 10; }
  .identity-subnav > span { display: none; }
  .identity-subnav nav { display: flex; width: max-content; }
  .identity-subnav a { min-height: 32px; padding: 0 10px; }
  .identity-content { padding: 38px 16px 64px; }
  .identity-intro h1 { font-size: 58px; }
  .principle-list, .component-board { grid-template-columns: 1fr; }
  .color-rack { grid-template-columns: 1fr 1fr; }
  .color-rack article { min-height: 110px; border-right: 1px solid var(--line); }
  .spacing-rack, .shape-rack { grid-template-columns: 1fr 1fr; }
}

.screen.entering { animation: screen-in 280ms var(--ease); }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(7px) scale(.995); }
  to { opacity: 1; transform: none; }
}
@keyframes letter-drift {
  from { transform: translate3d(-3px, -2px, 0) rotate(-1deg); }
  to { transform: translate3d(4px, 1px, 0) rotate(.7deg); }
}
@keyframes splash-focus {
  from { transform: scale(1.035); filter: contrast(1.06) blur(2px); }
  to { transform: scale(1); filter: contrast(1.06) blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
