:root {
  color-scheme: dark;
  --bg: #05070b;
  --surface: #080b12;
  --panel: #0c1018;
  --panel-2: #0f1420;
  --line: #20263a;
  --line-soft: rgba(126, 105, 190, 0.24);
  --text: #f1f3f8;
  --muted: #9aa3b5;
  --dim: #657086;
  --purple: #a78bfa;
  --cyan: #13e6d0;
  --green: #00d38f;
  --red: #ff4778;
  --amber: #f5b21b;
  --blue: #22d3ee;
  --max: 1220px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(57, 78, 140, 0.12) 1px, transparent 1px) 0 0 / 160px 100%,
    radial-gradient(circle at 14% 0%, rgba(128, 86, 255, 0.18), transparent 32rem),
    linear-gradient(180deg, #060811 0%, #05070b 52%, #030408 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

a { color: inherit; }

#signal-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.34;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(108, 92, 180, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 180, 0.11) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 72%, transparent);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.012;
  background-image: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 7px);
}

.site-header,
.hero,
.section,
.site-footer,
.project-page main {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  margin-inline: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 10px 20px;
  border-bottom: 1px solid #141a2a;
  background: rgba(5, 7, 11, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links a,
.button,
.case-link,
.writing-card {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 900;
}

.brand::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 0;
  content: "✦";
  color: var(--purple);
  background: transparent;
  box-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}

.nav-links a {
  padding: 7px 2px 5px;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--purple);
  background: transparent;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-left: 22px;
  border-left: 1px solid #151b2c;
  white-space: nowrap;
}

.header-actions span,
.button,
.case-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: #d7dcef;
  font-size: 0.74rem;
  font-weight: 900;
}

.header-actions span:first-child,
.button.primary {
  border-color: rgba(167, 139, 250, 0.75);
  background: transparent;
  color: #eee8ff;
}

.market-strip {
  position: sticky;
  top: 64px;
  z-index: 19;
  display: flex;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid #182033;
  border-top: 1px solid #101624;
  background: rgba(8, 12, 19, 0.96);
}

.market-strip span {
  flex: 0 0 auto;
  min-width: 190px;
  padding: 8px 16px;
  border-right: 1px solid #141b2b;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.market-strip strong {
  margin-left: 10px;
  color: var(--cyan);
  letter-spacing: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.76fr);
  gap: 18px;
  padding: 24px 0 24px;
}

.hero-copy-block,
.signal-deck,
.case-study,
.system-grid article,
.writing-card,
.detail-panel {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy-block {
  display: grid;
  align-content: end;
  min-height: 340px;
  padding: 24px 0;
  background: transparent;
}

.kicker,
.deck-topline,
.case-index,
.marquee span,
.writing-card span,
.ritual-card span {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.4vw, 3.1rem);
  font-weight: 950;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.4vw, 2.25rem);
  font-weight: 920;
}

h3 {
  margin-bottom: 9px;
  font-size: 1rem;
  font-weight: 900;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 24px;
  color: #bfc7d6;
  font-size: 0.94rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button:hover,
.button:focus-visible,
.case-link:hover,
.case-link:focus-visible,
.writing-card:hover,
.writing-card:focus-visible {
  outline: 0;
  border-bottom-color: var(--purple);
  color: #fff;
}

.signal-deck {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: 340px;
  padding: 14px 0;
  overflow: hidden;
}

.deck-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.deck-topline strong {
  color: var(--green);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.stats div {
  min-height: 86px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.stats dt {
  color: var(--cyan);
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1;
}

.stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.scope {
  position: relative;
  display: grid;
  min-height: 230px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle, rgba(19, 230, 208, 0.24), transparent 2px) 0 0 / 25px 25px,
    linear-gradient(180deg, #071018, #070a10);
}

.scope::before,
.scope::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(19, 230, 208, 0.28);
  border-radius: 999px;
}

.scope::before { width: 76%; aspect-ratio: 1; }
.scope::after { width: 44%; aspect-ratio: 1; }

.scope span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.9);
  animation: orbit 7s linear infinite;
}

.scope span:nth-child(2) { background: var(--amber); animation-duration: 9s; animation-delay: -2s; }
.scope span:nth-child(3) { background: var(--red); animation-duration: 11s; animation-delay: -4s; }
.scope span:nth-child(4) { background: var(--green); animation-duration: 8s; animation-delay: -6s; }

.metric-strip {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.6fr 0.9fr 1.2fr;
  gap: 8px;
  min-height: 36px;
}

.metric-strip span {
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(19, 230, 208, 0.22), rgba(19, 230, 208, 0.02));
  transform-origin: left center;
  animation: breathe 2.8s ease-in-out infinite;
}

.metric-strip span:nth-child(2) { animation-delay: 0.16s; background: linear-gradient(90deg, rgba(245, 178, 27, 0.22), rgba(245, 178, 27, 0.02)); }
.metric-strip span:nth-child(3) { animation-delay: 0.32s; }
.metric-strip span:nth-child(4) { animation-delay: 0.48s; background: linear-gradient(90deg, rgba(255, 71, 120, 0.22), rgba(255, 71, 120, 0.02)); }
.metric-strip span:nth-child(5) { animation-delay: 0.64s; background: linear-gradient(90deg, rgba(167, 139, 250, 0.22), rgba(167, 139, 250, 0.02)); }

@keyframes orbit {
  from { transform: rotate(0deg) translateX(92px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(92px) rotate(-360deg); }
}

@keyframes breathe {
  0%, 100% { transform: scaleX(0.72); opacity: 0.55; }
  50% { transform: scaleX(1); opacity: 1; }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid #151d2d;
  background: #070b12;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: crawl 30s linear infinite;
}

.marquee span {
  padding: 10px 18px;
  color: var(--dim);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

@keyframes crawl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 54px 0;
}

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

.section-heading .kicker {
  margin-top: 8px;
}

.case-study {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 0;
  padding: 22px 0;
}

.feature-case { border-color: var(--line); }

.case-index {
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.case-body p,
.system-grid p,
.writing-card small,
.detail-panel p {
  max-width: 780px;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(154, 163, 181, 0.36);
  border-radius: 0;
  background: transparent;
  color: #b8c0d0;
  font-size: 0.72rem;
  font-weight: 700;
}

.case-link {
  color: #d9d1ff;
}

.case-link.muted {
  color: var(--dim);
}

.about-panel {
  margin-bottom: 14px;
}

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

.system-grid article {
  min-height: 190px;
  padding: 18px 0;
}

.system-grid article:nth-child(2) { border-color: rgba(245, 178, 27, 0.3); }
.system-grid article:nth-child(3) { border-color: rgba(255, 71, 120, 0.3); }
.system-grid article:nth-child(4) { border-color: rgba(19, 230, 208, 0.28); }

.writing-card {
  display: grid;
  gap: 8px;
  max-width: 720px;
  padding: 18px 0;
}

.writing-card span {
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.writing-card strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.82rem;
}

.project-hero {
  max-width: none;
  margin: 22px 0 14px;
  padding: 28px 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.project-hero h1 { margin-bottom: 16px; }

.project-hero p {
  max-width: 820px;
  color: #c1c8d6;
  font-size: 0.95rem;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.74fr);
  gap: 32px;
  padding: 14px 0 54px;
}

.detail-panel {
  padding: 18px 0;
}

.detail-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.15rem, 2vw, 1.85rem);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.compact-detail-list {
  gap: 8px;
  margin-top: 14px;
}

.fabric-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 0 30px;
  border-top: 1px solid var(--line);
}

.fabric-facts div {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(154, 163, 181, 0.28);
}

.fabric-facts strong {
  color: var(--cyan);
  font-size: clamp(1.35rem, 2.6vw, 2.3rem);
  line-height: 1;
}

.fabric-facts span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.project-section-heading {
  margin-top: 2px;
  padding: 34px 0 18px;
}

.fabric-showcase,
.fabric-workflow {
  border-top: 1px solid var(--line);
}

.fabric-screens {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 34px;
  padding: 8px 0 48px;
}

.fabric-shot {
  display: grid;
  gap: 14px;
  margin: 0;
}

.fabric-shot figcaption {
  display: grid;
  gap: 5px;
  max-width: 680px;
}

.fabric-shot figcaption strong {
  color: var(--text);
  font-size: 0.92rem;
}

.fabric-shot figcaption span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.shot-canvas {
  min-height: 390px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f6f8fb;
  color: #111827;
}

.avatar-canvas {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px 28px 34px;
}

.avatar-canvas h3,
.avatar-section h4 {
  margin: 0;
  color: #0f172a;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.avatar-canvas h3 { font-size: 1rem; }

.avatar-section {
  display: grid;
  gap: 10px;
}

.avatar-section h4 {
  font-size: 1.15rem;
  font-weight: 800;
}

.compact-avatar-section { max-width: 180px; }

.avatar-row,
.avatar-size-row,
.avatar-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.avatar-dot,
.avatar-square,
.avatar-size-row span,
.avatar-color-row span {
  display: inline-grid;
  width: var(--size, 34px);
  height: var(--size, 34px);
  place-items: center;
  border-radius: 50%;
  background: var(--color, #e5e7eb);
  color: #4b5563;
  font-size: clamp(0.32rem, calc(var(--size, 34px) / 7), 0.9rem);
  font-weight: 700;
}

.avatar-square { border-radius: 2px; }

.avatar-size-row {
  gap: 15px;
  min-height: 126px;
}

.avatar-color-row {
  gap: 12px;
  max-width: 760px;
}

.active-ring {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
}

.active-fill {
  border: 2px solid #0f766e;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.24);
}

.muted-dot {
  color: #9ca3af;
  opacity: 0.72;
}

.modal-canvas {
  display: grid;
  min-height: 390px;
  place-items: center;
  padding: 34px;
  background: linear-gradient(135deg, #8b8d90, #b7b7b5);
}

.modal-preview {
  width: min(100%, 660px);
  overflow: hidden;
  border-radius: 8px;
  background: #f8f8f8;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.32);
  color: #111827;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.modal-topline {
  display: grid;
  min-height: 172px;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 28px;
  text-align: center;
}

.modal-topline h3 {
  margin: 0;
  color: #00796b;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.modal-topline p,
.modal-bodyline p {
  margin: 0;
  color: #374151;
  font-size: 0.78rem;
}

.modal-bodyline {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 26px 22px 18px;
  background: #fff;
}

.modal-bodyline h4 {
  margin: 0;
  font-size: 1rem;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #5b6472;
  font-size: 1.45rem;
}

.modal-actions {
  display: grid;
  grid-template-columns: 106px 1fr 106px;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}

.secondary-action,
.primary-action {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.secondary-action {
  border: 1px solid #d1d5db;
  background: #fff;
}

.primary-action {
  background: #00796b;
  color: #fff;
}

.pager-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.pager-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8c8c8;
}

.pager-dots i:first-child {
  width: 18px;
  border-radius: 999px;
  background: #333;
}

.fabric-depth-layout {
  border-top: 1px solid var(--line);
}

.audit-panel {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.fabric-workflow {
  max-width: 860px;
  padding: 30px 0 64px;
}

.fabric-workflow h2 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
}

.fabric-workflow p:last-child {
  color: var(--muted);
}

.handforge-panel {
  display: grid;
  align-items: stretch;
}

.handforge-board {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 330px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.handforge-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(154, 163, 181, 0.22);
}

.handforge-topbar span,
.handforge-column span {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.handforge-topbar strong {
  color: var(--muted);
  font-size: 0.76rem;
}

.handforge-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 16px;
}

.handforge-column {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 210px;
  padding-top: 14px;
  border-top: 1px solid rgba(154, 163, 181, 0.22);
}

.handforge-column strong {
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.6rem);
  line-height: 1.05;
}

.handforge-column em,
.handforge-column p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.45;
}

.handforge-column i {
  display: block;
  width: var(--width);
  height: 8px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.76), rgba(55, 211, 153, 0.52));
}

.result-column {
  min-height: 250px;
  border-color: rgba(19, 230, 208, 0.34);
}

.probability-line {
  position: relative;
  height: 86px;
  margin-top: 18px;
  border-left: 1px solid rgba(154, 163, 181, 0.28);
  border-bottom: 1px solid rgba(154, 163, 181, 0.28);
  background:
    linear-gradient(90deg, rgba(154, 163, 181, 0.12) 1px, transparent 1px) 0 0 / 24px 100%,
    linear-gradient(0deg, rgba(154, 163, 181, 0.12) 1px, transparent 1px) 0 0 / 100% 22px;
}

.probability-line::before {
  position: absolute;
  right: 8px;
  bottom: 20px;
  left: 10px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  content: "";
  transform: skewY(-12deg);
  transform-origin: left center;
}

.probability-line b {
  position: absolute;
  left: var(--left);
  bottom: 38px;
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(55, 211, 153, 0.75);
}

.visual-panel { min-height: 270px; }
.large-scope { min-height: 100%; }

.glyph-system-intro { padding-bottom: 14px; }

.mind-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  min-height: 240px;
}

.mind-map span {
  display: grid;
  place-items: center;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: #e8f8ff;
  font-weight: 900;
}

.ritual-grid,
.aspect-grid {
  display: grid;
  gap: 12px;
}

.ritual-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 10px 0 14px;
}

.aspect-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 0 0;
}

.ritual-card { min-height: 230px; }

.ritual-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.aspect-card:nth-child(1) { border-color: rgba(245, 178, 27, 0.3); }
.aspect-card:nth-child(2) { border-color: rgba(19, 230, 208, 0.3); }
.aspect-card:nth-child(3) { border-color: rgba(167, 139, 250, 0.3); }

.state-list strong { color: var(--text); }

.glyph-field {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 250px;
}

.glyph-field span {
  display: grid;
  place-items: center;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .header-actions {
    display: none;
  }

  .market-strip { top: 64px; }

  .hero,
  .section-heading,
  .contact-section,
  .fabric-screens,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .audit-panel {
    border-left: 0;
    padding-left: 0;
  }

  .system-grid,
  .ritual-grid,
  .aspect-grid,
  .fabric-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy-block,
  .signal-deck { min-height: auto; }

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

  .handforge-column,
  .result-column {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .hero,
  .section,
  .site-footer,
  .project-page main {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    width: 100%;
    padding-inline: 12px;
  }

  .nav-links {
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding-inline: 7px;
    font-size: 0.72rem;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .market-strip {
    position: relative;
    top: auto;
  }

  .hero { padding: 18px 0 24px; }

  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.35rem; }

  .stats,
  .case-study,
  .system-grid,
  .ritual-grid,
  .aspect-grid,
  .fabric-facts {
    grid-template-columns: 1fr;
  }

  .scope { min-height: 210px; }

  .case-link,
  .button { width: fit-content; }

  .project-section-heading {
    padding-top: 24px;
  }

  .fabric-screens {
    gap: 28px;
    padding-bottom: 34px;
  }

  .shot-canvas {
    min-height: auto;
  }

  .avatar-canvas,
  .modal-canvas {
    padding: 20px;
  }

  .avatar-size-row {
    align-items: flex-end;
    min-height: 116px;
  }

  .modal-preview {
    border-radius: 0;
  }

  .modal-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pager-dots {
    order: -1;
  }

  .handforge-topbar {
    display: grid;
  }
}