:root {
  --bg: #0a0d14;
  --surface: #131824;
  --surface-2: #1b2232;
  --surface-3: #232c40;
  --paper: #e9edf3;
  --ink: #e9edf3;
  --muted: #9aa3b5;
  --accent: #5a9bfc;
  --accent-ink: #0a0d14;
  --gap: 8px;
  --pad: 16px;
  --r: 8px;
  --max: 1424px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

/* Strict 6-step type scale: 14 / 16 / 18 / 22 / 36 / display */
pre, code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code, kbd, samp {
  font-size: inherit;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0.1em 0.38em;
  border-radius: 4px;
  word-break: break-word;
}

pre {
  font-size: 0.875rem;
  background: #06080d;
  color: var(--ink);
  padding: 18px 20px;
  border-radius: var(--r);
  overflow-x: auto;
  margin: 16px 0;
  line-height: 1.5;
}

pre code {
  background: transparent;
  padding: 0;
  word-break: normal;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8ab8ff;
}

a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

h1, h2, h3 {
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 16px;
  max-width: 60ch;
}

ul, ol, dl {
  margin: 0 0 16px;
}

p:last-child, ul:last-child, ol:last-child, dl:last-child {
  margin-bottom: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--r);
  font-weight: 600;
  z-index: 50;
}

.skip:focus {
  left: 16px;
}

/* Top Bar Made of Filled Tiles */
.nav {
  padding: var(--gap) var(--pad) 0;
  max-width: var(--max);
  margin: 0 auto;
}

.nav__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--gap);
  min-height: 58px;
}

.nav__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  min-height: 58px;
  background: var(--paper);
  color: var(--accent-ink);
  border-radius: var(--r);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.nav__mark:hover {
  color: var(--accent-ink);
  background: #ffffff;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 12px;
  background: var(--surface);
  border-radius: var(--r);
}

.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--accent);
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--surface);
  border-radius: var(--r);
}

.nav__lang a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 9px;
  border-radius: 6px;
  min-width: 36px;
  text-align: center;
}

.nav__lang a[aria-current="true"],
.nav__lang a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  min-height: 58px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__cta:hover {
  background: #7db1ff;
  color: var(--accent-ink);
}

.nav__mobile {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover {
  background: #7db1ff;
  color: var(--accent-ink);
}

.btn--surface {
  background: var(--surface-2);
  color: var(--ink);
}

.btn--surface:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.btn--dark {
  background: var(--bg);
  color: var(--ink);
}

.btn--dark:hover {
  background: var(--surface);
  color: var(--ink);
}

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

/* Home Hero: Two-by-two board */
.hero {
  max-width: var(--max);
  margin: var(--gap) auto 0;
  padding: 0 var(--pad);
}

.hero__board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.tile {
  background: var(--surface);
  border-radius: var(--r);
  padding: 24px;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.tile--paper {
  background: var(--paper);
  color: var(--accent-ink);
}

.tile--paper h1,
.tile--paper h2,
.tile--paper h3,
.tile--paper a {
  color: var(--accent-ink);
}

.tile--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.tile--accent h2,
.tile--accent h3 {
  color: var(--accent-ink);
}

.tile--accent code {
  background: rgba(10, 13, 20, 0.14);
  color: var(--accent-ink);
}

.tile--paper code {
  background: rgba(10, 13, 20, 0.1);
  color: var(--accent-ink);
}

.hero__name {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 370px;
}

.hero__meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: #343d4f;
  max-width: 48ch;
}

.hero__name h1 {
  font-size: 5.25rem;
  font-weight: 600;
  letter-spacing: -0.048em;
  line-height: 0.96;
  margin: 0 0 24px;
  color: var(--accent-ink);
}

.hero__photo-top {
  grid-column: span 6;
  padding: 0;
  height: 370px;
}

.hero__photo-btm {
  grid-column: span 6;
  padding: 0;
  height: 360px;
}

.hero__photo-top img,
.hero__photo-btm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__stmt-dark {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}

.hero__stmt-accent {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}

.stmt-lg {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Signature Motion: Shutter Image */
@keyframes shutter-open {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes shutter-settle {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

.hero__shutter {
  animation: shutter-open 1.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__shutter img {
  animation: shutter-settle 1.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Scroll Entry Choreography (below fold only) */
.js-anim .reveal {
  opacity: 0.01;
  transform: translateY(14px);
  transition: opacity 440ms cubic-bezier(0.22, 1, 0.36, 1), transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__shutter,
  .hero__shutter img {
    animation: none;
  }
  .js-anim .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Adsterra Static Slots */
.ad {
  max-width: calc(var(--max) - 2 * var(--pad));
  margin: 16px auto;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad > span {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.ad-l {
  min-height: 96px;
}

/* Inner Page Hero Tile Grid */
.page-hero {
  max-width: var(--max);
  margin: var(--gap) auto 0;
  padding: 0 var(--pad);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gap);
}

.page-hero__main {
  background: var(--paper);
  color: var(--accent-ink);
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.page-hero__main h1 {
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.page-hero__main .lead {
  color: #252c3b;
  font-size: 1.125rem;
  max-width: 58ch;
}

.page-hero__photo {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  height: 280px;
  position: relative;
}

.page-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main Content Board Sections */
.board-sec {
  max-width: var(--max);
  margin: var(--gap) auto 0;
  padding: 0 var(--pad);
}

.split-board {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gap);
  align-items: stretch;
}

.split-board > * {
  min-width: 0;
}

.split-board__media {
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.split-board__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  flex: 1;
}

.split-board__media figcaption {
  padding: 12px 18px;
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  gap: var(--gap);
  align-items: start;
}

.doc-main {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

.doc-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 28px;
  min-width: 0;
}

.doc-card h2 {
  margin-top: 28px;
}

.doc-card h2:first-child {
  margin-top: 0;
}

.doc-card h3 {
  margin-top: 22px;
}

.doc-card p,
.doc-card li {
  color: #e1e6f0;
  max-width: 60ch;
}

.doc-card ul,
.doc-card ol {
  padding-left: 20px;
}

.doc-card li {
  margin-bottom: 8px;
}

.doc-side {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  position: sticky;
  top: var(--gap);
}

.side__box {
  background: var(--surface);
  border-radius: var(--r);
  padding: 22px;
}

.side__box h2 {
  font-size: 1.375rem;
  margin-bottom: 14px;
}

.side__box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 0.875rem;
}

.side__box dt {
  color: var(--muted);
  font-weight: 500;
}

.side__box dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.side__box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side__box li a {
  display: block;
  padding: 9px 12px;
  background: var(--surface-2);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
}

.side__box li a:hover {
  background: var(--surface-3);
  color: var(--accent);
}

.fine {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Definition Rows as Filled Bands */
.rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
}

.rows > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 14px;
  background: var(--surface-2);
  padding: 14px 18px;
  border-radius: 6px;
}

.rows dt {
  font-weight: 600;
  color: var(--ink);
}

.rows dd {
  margin: 0;
  color: #e1e6f0;
  max-width: 60ch;
}

/* Tables */
.tw {
  margin: 16px 0;
  background: var(--surface-2);
  border-radius: var(--r);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #263046;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
}

tr:last-child td {
  border-bottom: 0;
}

td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td.hash code {
  font-size: 0.875rem;
  word-break: break-all;
}

/* Photo Figures */
.ph {
  margin: 18px 0;
  background: var(--surface-2);
  border-radius: var(--r);
  overflow: hidden;
}

.ph__frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.ph figcaption {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.photo-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin: 18px 0;
}

.photo-duo .ph {
  margin: 0;
}

/* [data-ui] True-Black Flat Devtools Workspace */
[data-ui].ui-shell {
  background: #000000;
  color: #ffffff;
  border-radius: var(--r);
  padding: 24px;
  border: 1px solid #1c2230;
  min-width: 0;
}

[data-ui] .ui-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

[data-ui] .ui-head h2 {
  color: #ffffff;
  font-size: 1.375rem;
  margin: 0;
}

[data-ui] .ui-sub {
  color: #b4b4b4;
  font-size: 1rem;
  margin: 6px 0 0;
  max-width: 60ch;
}

[data-ui] .ui-tag {
  background: #182235;
  color: #82b4ff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

[data-ui] .ui-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 14px;
}

[data-ui] .ui-panel {
  background: #111111;
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}

[data-ui] .ui-field {
  margin-bottom: 14px;
}

[data-ui] .ui-field:last-child {
  margin-bottom: 0;
}

[data-ui] label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #b4b4b4;
  margin-bottom: 6px;
}

[data-ui] select,
[data-ui] input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  background: #202020;
  color: #ffffff;
  border: 1px solid #363636;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

[data-ui] .ui-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  background: #ffffff;
  color: #000000;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-ui] .ui-pill-btn:hover {
  background: #dce6f7;
  color: #000000;
}

[data-ui] .ui-pill-btn--muted {
  background: #242424;
  color: #ffffff;
}

[data-ui] .ui-pill-btn--muted:hover {
  background: #333333;
  color: #ffffff;
}

[data-ui] .ui-note {
  background: #1a2232;
  color: #dce8ff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 12px;
  max-width: 60ch;
}

[data-ui] .ui-note--warn {
  background: #2b2212;
  color: #f6ce7b;
}

[data-ui] .ui-note--ok {
  background: #13281d;
  color: #8ce8b5;
}

[data-ui] .ui-code {
  margin: 0;
  max-height: 380px;
  background: #08090c;
  border: 1px solid #222630;
  font-size: 0.875rem;
}

[data-ui] .ui-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

/* Showcase: Rows as a board (#picker) */
[data-ui].dep-board {
  background: #000000;
  border-radius: var(--r);
  padding: 24px;
  border: 1px solid #1c2230;
  min-width: 0;
}

[data-ui] .dep-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

[data-ui] .dep-tab {
  min-height: 40px;
  padding: 8px 16px;
  background: #181818;
  color: #b4b4b4;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

[data-ui] .dep-tab[aria-selected="true"] {
  background: #ffffff;
  color: #000000;
}

[data-ui] .dep-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[data-ui] .dep-row {
  background: #12151e;
  color: #ffffff;
  border-radius: 8px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-ui] .dep-row:hover {
  background: #1a2030;
}

[data-ui] .dep-row__top {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

[data-ui] .dep-row__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

[data-ui] .dep-row__fact {
  font-size: 0.875rem;
  color: #b4b4b4;
}

[data-ui] .dep-row__status {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 6px;
  background: #22293a;
  color: #e9edf3;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

[data-ui] .dep-row__detail {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 13, 20, 0.22);
  font-size: 1rem;
}

[data-ui] .dep-row.is-open {
  background: var(--accent);
  color: var(--accent-ink);
}

[data-ui] .dep-row.is-open .dep-row__fact {
  color: #162238;
}

[data-ui] .dep-row.is-open .dep-row__status {
  background: var(--accent-ink);
  color: var(--paper);
}

[data-ui] .dep-row.is-open .dep-row__detail {
  display: block;
}

[data-ui] .dep-row.is-open code {
  background: rgba(10, 13, 20, 0.14);
  color: var(--accent-ink);
}

/* SHA-256 Drop Zone inside [data-ui] */
[data-ui] .dropzone {
  background: #161821;
  border: 1px dashed #43506b;
  border-radius: 10px;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 14px;
}

[data-ui] .dropzone.is-drag {
  background: #1c273d;
  border-color: var(--accent);
}

/* How It Works: Stages as One Bar */
.stages-sec {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 var(--pad);
}

.stages-sec h2 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  padding-inline: 4px;
}

[data-ui].stages-bar {
  display: flex;
  gap: 6px;
  min-height: 22svh;
}

[data-ui] .stage-seg {
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 14%;
}

[data-ui] .stage-seg--1 {
  flex: 2.2;
  background: var(--surface);
  color: var(--ink);
}

[data-ui] .stage-seg--2 {
  flex: 5.2;
  background: var(--accent);
  color: var(--accent-ink);
}

[data-ui] .stage-seg--3 {
  flex: 2.8;
  background: var(--surface-2);
  color: var(--ink);
}

[data-ui] .stage-seg--4 {
  flex: 1.8;
  background: var(--paper);
  color: var(--accent-ink);
}

[data-ui] .stage-dur {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

[data-ui] .stage-desc {
  font-size: 1rem;
  margin: 18px 0 0;
  max-width: 28ch;
}

/* Features: Close-ups on a Board */
.mosaic-sec {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 var(--pad);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(108px, auto);
  gap: var(--gap);
}

.m-tile {
  background: var(--surface);
  border-radius: var(--r);
  padding: 22px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.m-tile--6x2 {
  grid-column: span 6;
  grid-row: span 2;
}

.m-tile--6x4 {
  grid-column: span 6;
  grid-row: span 4;
}

.m-tile--3x4 {
  grid-column: span 3;
  grid-row: span 4;
}

.m-tile--3x2 {
  grid-column: span 3;
  grid-row: span 2;
}

.m-tile--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.m-tile--accent h3,
.m-tile--accent p {
  color: var(--accent-ink);
}

.m-tile--paper {
  background: var(--paper);
  color: var(--accent-ink);
}

.m-tile--paper h2,
.m-tile--paper h3,
.m-tile--paper p {
  color: var(--accent-ink);
}

.m-tile--elev {
  background: var(--surface-2);
}

[data-ui].macro-glyph {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  opacity: 0.92;
  transform: translate(6px, -4px);
  user-select: none;
}

.m-tile__cap {
  margin-top: 20px;
}

.m-tile__cap h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.m-tile__cap p {
  font-size: 1rem;
  color: var(--muted);
}

.m-tile--accent .m-tile__cap p {
  color: #132036;
}

.m-tile--paper .m-tile__cap p {
  color: #2c3547;
}

/* List: Day Tabs, Banded Agenda (Ecosystem & Directory) */
.agenda-sec {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 var(--pad);
}

.agenda-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-inline: 4px;
}

.agenda-head h2 span {
  display: block;
  color: var(--muted);
}

.agenda-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: start;
}

.agenda-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agenda-tab {
  background: var(--surface);
  color: var(--ink);
  border: 0;
  border-radius: var(--r);
  padding: 14px 16px;
  min-height: 64px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.agenda-tab strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.agenda-tab small {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 2px;
}

.agenda-tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--accent-ink);
}

.agenda-tab[aria-selected="true"] small {
  color: #364054;
}

.agenda-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.agenda-panel.is-active {
  display: flex;
}

.agenda-band {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--r);
}

.agenda-band:nth-child(even) {
  background: var(--surface-2);
}

.agenda-band__key {
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.agenda-band__body strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.agenda-band__body span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 3px;
}

.agenda-band__meta {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Amazon Quick Box */
.amz-quick {
  background: var(--surface);
  border-radius: var(--r);
  padding: 26px;
  min-width: 0;
}

.sec-gap {
  margin-top: 84px;
}

/* FAQ: Accordion of Filled Tiles */
.faq {
  max-width: var(--max);
  margin: 64px auto 0;
  padding: 0 var(--pad);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap);
  align-items: start;
}

.faq__lead {
  background: var(--surface);
  border-radius: var(--r);
  padding: 26px;
  position: sticky;
  top: 24px;
  min-width: 0;
}

.faq__lead p {
  color: var(--muted);
  font-size: 1rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

.qa {
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qa summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 24px;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa__plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.qa__plus::before,
.qa__plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qa__plus::before {
  top: 6.5px;
  left: 0;
  width: 16px;
  height: 3px;
}

.qa__plus::after {
  top: 0;
  left: 6.5px;
  width: 3px;
  height: 16px;
}

.qa[open] {
  background: var(--accent);
  color: var(--accent-ink);
}

.qa[open] .qa__plus::after {
  transform: rotate(90deg);
}

.qa__body {
  padding: 0 24px 22px;
  font-size: 1rem;
  max-width: 60ch;
}

.qa[open] .qa__body,
.qa[open] a {
  color: var(--accent-ink);
}

.qa[open] code {
  background: rgba(10, 13, 20, 0.14);
  color: var(--accent-ink);
}

/* Footer: The Mark, Built Large (Geometric SVG Block Construction) */
.foot {
  max-width: var(--max);
  margin: 72px auto var(--pad);
  padding: 0 var(--pad);
}

.foot__shell {
  background: var(--surface);
  border-radius: var(--r);
  padding: 32px 24px 24px;
}

.foot__blocks {
  display: block;
  text-decoration: none;
  margin-bottom: 44px;
}

.foot__blocks svg {
  display: block;
  width: 100%;
  height: auto;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.5fr;
  gap: 20px;
  margin-bottom: 32px;
}

.foot__col h2 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.foot__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot__col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-block;
  padding: 3px 0;
}

.foot__col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot__meta p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.foot__legal {
  background: var(--bg);
  border-radius: var(--r);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.foot__legal p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  .nav__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__mobile {
    display: block;
    grid-column: 1 / -1;
  }
  .nav__mobile summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 10px 16px;
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--r);
    font-weight: 600;
    cursor: pointer;
  }
  .nav__mobile summary::-webkit-details-marker {
    display: none;
  }
  .nav__mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
    padding: 10px;
    background: var(--surface);
    border-radius: var(--r);
  }
  .nav__mobile-grid a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 12px;
    background: var(--surface-2);
    color: var(--ink);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
  }
  .hero__name h1 {
    font-size: 3.5rem;
  }
  .hero__stmt-dark {
    grid-column: span 6;
    min-height: 220px;
  }
  .hero__stmt-accent {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .doc-grid,
  .page-hero__grid,
  .split-board,
  [data-ui] .ui-grid,
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-side,
  .faq__lead {
    position: static;
  }
  .m-tile--6x2,
  .m-tile--6x4 {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .m-tile--3x4 {
    grid-column: span 7;
    grid-row: auto;
  }
  .m-tile--3x2 {
    grid-column: span 5;
    grid-row: auto;
  }
  .agenda-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .agenda-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .agenda-tab {
    flex: 1 1 150px;
  }
  .foot__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile (<= 680px) */
@media (max-width: 680px) {
  :root {
    --gap: 6px;
    --pad: 16px;
  }
  h1, .hero__name h1 {
    font-size: 2.25rem;
  }
  h2, .stages-sec h2 {
    font-size: 1.375rem;
  }
  [data-ui].macro-glyph {
    font-size: 2.25rem;
  }
  .stmt-lg,
  [data-ui] .stage-dur,
  [data-ui] .ui-head h2,
  .side__box h2 {
    font-size: 1.125rem;
  }
  .hero__board,
  .photo-duo {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__name,
  .hero__photo-top,
  .hero__photo-btm,
  .hero__stmt-dark,
  .hero__stmt-accent {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .hero__name {
    order: 0;
  }
  .hero__photo-top {
    order: 1;
    height: 190px;
  }
  .hero__stmt-dark {
    order: 2;
  }
  .hero__stmt-accent {
    order: 3;
  }
  .hero__photo-btm {
    order: 4;
    height: 200px;
  }
  .doc-card,
  .page-hero__main,
  [data-ui].ui-shell,
  [data-ui].dep-board,
  .amz-quick {
    padding: 18px;
  }
  [data-ui] .ui-code {
    max-height: 280px;
  }
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    padding: 12px 14px;
    border-bottom: 1px solid #263046;
  }
  tr:last-child {
    border-bottom: 0;
  }
  td,
  td.num {
    padding: 3px 0;
    border-bottom: 0;
    text-align: left;
    white-space: normal;
  }
  .foot__legal {
    grid-template-columns: minmax(0, 1fr);
  }
  .rows > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  [data-ui] .dep-row__top {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  [data-ui] .dep-row__fact {
    display: none;
  }
  [data-ui].stages-bar {
    flex-direction: column;
    min-height: 0;
  }
  [data-ui] .stage-seg {
    min-height: 96px;
  }
  .mosaic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .m-tile--6x2,
  .m-tile--6x4,
  .m-tile--3x4,
  .m-tile--3x2 {
    grid-column: 1 / -1;
  }
  .agenda-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .agenda-band__meta {
    text-align: left;
  }
  .foot__cols,
  .nav__mobile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
