/* ============================================================
   AXIA — Subpage Stylesheet
   Shared styles for /doctrine, /pillars, /insights, /brand,
   /contact, /llm-info, /404. Depends on tokens.css.
   ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

html { overflow-x: clip; }
body {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* Skip-link */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transform: translateY(-200%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--obsidian); outline-offset: 2px; box-shadow: 0 0 0 4px var(--gold); color: var(--obsidian); border: 0; }

/* Global focus ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(214,162,74,0.30);
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.container {
  max-width: var(--container-text);
  margin: 0 auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.container--narrow { max-width: var(--container-narrow); }

/* ============== NAV ============== */
header.subnav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5,5,5,0.72);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  padding-top: max(14px, env(safe-area-inset-top));
}
[data-theme="light"] header.subnav { background: rgba(250,248,242,0.78); }
header.subnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* Inherits --container-text from .container — chrome aligns to body. */
}
.subnav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  letter-spacing: var(--tracking-wide);
  font-weight: 500;
  font-size: 16px;
  border: 0;
  color: var(--text);
}
.subnav__brand:hover { color: var(--gold); }
.subnav__brand svg { width: 22px; height: 22px; color: currentColor; }
.subnav__brand .subnav__wordmark { width: auto; height: 26px; color: currentColor; }
@media (max-width: 720px) {
  .subnav__brand .subnav__wordmark { height: 24px; }
}
.subnav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.subnav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  border: 0;
  padding: 12px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.subnav__link:hover,
.subnav__link[aria-current="page"] { color: var(--gold); }

.subnav .theme-toggle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text-muted);
  transition: color .25s var(--ease-out);
}
.subnav .theme-toggle:hover { color: var(--gold); }
.subnav .theme-toggle svg { width: 14px; height: 14px; color: currentColor; }
.subnav__home {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  border: 0;
  padding: 12px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.subnav__home:hover { color: var(--gold); }

.subnav__toggle {
  width: 44px; height: 44px;
  display: none;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--ui-border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s var(--ease-out);
}
.subnav__toggle:hover { border-color: var(--gold); }
.subnav__toggle span { width: 18px; height: 1.2px; background: var(--text); display: block; position: relative; transition: transform .2s, opacity .2s; }
.subnav__toggle span::before,
.subnav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.2px; background: var(--text);
  transition: transform .2s, top .2s;
}
.subnav__toggle span::before { top: -6px; }
.subnav__toggle span::after  { top: 6px; }
.subnav__toggle[aria-expanded="true"] span { background: transparent; }
.subnav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.subnav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .subnav__home { display: none; }
}

@media (max-width: 880px) {
  .subnav__links { display: none; }
  .subnav__toggle { display: inline-flex; }
  .subnav .theme-toggle { display: none; }
}

/* ============== MOBILE DRAWER (subpages) ============== */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  background: rgba(5,5,5,0.94);
  backdrop-filter: saturate(140%) blur(28px);
  -webkit-backdrop-filter: saturate(140%) blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: max(96px, calc(env(safe-area-inset-top) + 80px)) max(var(--gutter), env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s;
}
.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear 0s;
}
[data-theme="light"] .nav-drawer { background: rgba(5,5,5,0.94); }
.nav-drawer__links { display: flex; flex-direction: column; gap: 8px; }
.nav-drawer__link {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 38px);
  letter-spacing: -0.018em;
  color: #EDEBE5;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid rgba(237,235,229,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-radius: 0;
  border-left: 0; border-right: 0; border-top: 0;
}
.nav-drawer__link:hover,
.nav-drawer__link:focus-visible,
.nav-drawer__link[aria-current="page"] { color: var(--gold); border-bottom-color: rgba(214,162,74,0.36); }
.nav-drawer__link::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 0.6em;
  color: var(--gold);
  opacity: 0.6;
}
.nav-drawer__cta { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.nav-drawer__cta .btn {
  width: 100%;
  justify-content: center;
  border-color: rgba(237,235,229,0.20);
  color: #EDEBE5;
}
.nav-drawer__cta .btn:hover { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }
.nav-drawer__cta .btn--primary { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }
.nav-drawer__meta {
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(237,235,229,0.55);
}
.nav-drawer__meta .dot { color: var(--gold); margin-right: 8px; }

@media (min-width: 881px) {
  .nav-drawer { display: none; }
}

html[data-nav-open] body { overflow: hidden; }

/* ============== MAIN ============== */
main {
  flex: 1;
  padding: 96px 0 120px;
}
@media (max-width: 640px) {
  main { padding: 56px 0 80px; }
}

/* ============== TYPOGRAPHY ============== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-left: 28px;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}

.display,
h1.display {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  margin: 0 0 28px;
  font-weight: 400;
  color: var(--text);
}
.display em,
h1.display em,
.f-em {
  font-style: italic;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: var(--tracking-display);
  font-weight: 500;
  margin: 72px 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
}
h2:first-of-type { margin-top: 48px; }

h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 24px);
  letter-spacing: -0.012em;
  font-weight: 500;
  margin: 40px 0 14px;
  color: var(--text);
}

h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0;
  font-weight: 500;
  margin: 24px 0 10px;
  color: var(--text);
}

p {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 68ch;
}
p strong { color: var(--text); font-weight: 500; }

.lead {
  font-size: clamp(19px, 1.7vw, 21px);
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 56px;
  line-height: 1.55;
}

ul, ol {
  padding-left: 22px;
  margin: 0 0 24px;
  color: var(--text-muted);
  max-width: 66ch;
}
li { margin-bottom: 10px; }
li strong { color: var(--text); font-weight: 500; }

code {
  font-family: var(--font-mono);
  font-size: .92em;
  color: var(--gold-pale);
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid var(--hairline);
}

blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(214,162,74,0.05), transparent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 1.5vw, 20px);
  color: var(--text);
  line-height: 1.55;
  max-width: 68ch;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote.bq--plain { font-style: normal; }

/* ============== CALLOUT BOX ============== */
.callout {
  margin: 48px 0;
  padding: 28px 32px;
  border: 1px solid var(--border-strong);
  background: rgba(214,162,74,0.03);
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ============== FACT GRID ============== */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin: 32px 0 48px;
}
.fact { background: var(--bg); padding: 24px; }
.fact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ============== PRINCIPLE BLOCK (doctrine) ============== */
.principle {
  margin: 80px 0;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.principle:first-of-type { border-top: 0; padding-top: 0; }

.principle__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.principle__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 28px;
  color: var(--text);
  border: 0;
  padding-bottom: 0;
}
.principle__title em { font-style: italic; color: var(--gold-pale); }
.principle__body p { max-width: 64ch; font-size: 19px; line-height: 1.65; }
.principle__rejects {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 1px solid var(--gold-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  line-height: 1.7;
  max-width: 70ch;
}
.principle__rejects strong {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 500;
}

/* ============== RELEASES (media room) ============== */
.release {
  margin: 56px 0 80px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.release:first-of-type { border-top: 0; padding-top: 0; }
.release__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono-md);
  text-transform: uppercase;
  color: var(--text-faint);
}
.release__date { color: var(--gold); }
.release__tag {
  padding: 4px 10px;
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.release__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: var(--tracking-display);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 18px;
  color: var(--text);
  max-width: 28ch;
}
.release__title em { font-style: italic; color: var(--gold-pale); }
.release__lead {
  margin: 0 0 28px;
  max-width: 64ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
}
.release__body h4 {
  margin: 32px 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.release__body p {
  margin: 0 0 12px;
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
}
.release__boilerplate {
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}
.release__boilerplate strong { color: var(--text); font-weight: 500; }
.release__contact {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--tracking-mono-sm);
  color: var(--text-faint);
}

/* Solo-release variant for the dedicated release page. The release
   becomes the page's primary article (h1 weight, no top border, more
   breathing room). */
.release--solo {
  margin: 32px 0 80px;
  padding-top: 0;
  border-top: 0;
}
.release__title--solo {
  font-size: clamp(32px, 4vw, 52px);
  max-width: 24ch;
  margin-bottom: 24px;
}
.release__body h2 {
  margin: 40px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ============== MEDIA-ROOM TILE GRID ============== */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0 72px;
}
@media (max-width: 720px) {
  .media-grid { grid-template-columns: 1fr; }
}
.media-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  text-decoration: none;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.media-tile:hover {
  background: var(--surface-2);
  border-color: var(--ui-border);
}
.media-tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.media-tile--feature {
  grid-column: 1 / -1;
  padding: 36px 32px 32px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-color: var(--ui-border);
}
.media-tile__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono-md);
  text-transform: uppercase;
  color: var(--text-faint);
}
.media-tile__date { color: var(--gold); }
.media-tile__chip {
  padding: 3px 9px;
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.media-tile__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  max-width: 32ch;
}
.media-tile__title em { font-style: italic; color: var(--gold-pale); }
.media-tile--feature .media-tile__title {
  font-size: clamp(24px, 2.6vw, 34px);
  max-width: 28ch;
}
.media-tile__sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 56ch;
}
.media-tile__cta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono-md);
  text-transform: uppercase;
  color: var(--gold);
}

/* Release archive list (compact, beneath the tile grid). */
.release-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 64px;
  border-top: 1px solid var(--hairline);
}
.release-list__item {
  border-bottom: 1px solid var(--hairline);
}
.release-list__link {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 0;
  transition: color var(--dur-1) var(--ease-out);
}
.release-list__link:hover { color: var(--gold); border-bottom: 0; }
.release-list__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono-md);
  text-transform: uppercase;
  color: var(--text-faint);
}
.release-list__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;
}
.release-list__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono-md);
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 3px 9px;
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .release-list__link {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
  .release-list__tag { justify-self: start; }
}

/* Breadcrumb / back link used on release + distribute pages. */
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono-md);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 36px;
}
.crumbs a {
  color: var(--text-muted);
  border-bottom: 0;
}
.crumbs a:hover { color: var(--gold); border-bottom: 0; }
.crumbs--end { margin-top: 64px; margin-bottom: 0; }

/* Numbered step list for the distribute page workflow. */
.step-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 32px;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 56px;
  border-top: 1px solid var(--hairline);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}
.step-list li:last-of-type { border-bottom: 1px solid var(--hairline); }
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono-md);
  color: var(--gold);
}
.step-list strong { color: var(--text); font-weight: 500; }

/* CTA block — used at the bottom of the distribute page. */
.cta-block {
  margin: 56px 0 32px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--ui-border);
}
.cta-block h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
}
.cta-block p {
  margin: 0 0 14px;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}
.cta-block p:last-child { margin-top: 18px; margin-bottom: 0; }
/* ============== PILLAR BLOCK ============== */
.pillar-block {
  margin: 80px 0;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}
.pillar-block:first-of-type { border-top: 0; padding-top: 0; }
.pillar-block__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.pillar-block__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--text);
  border: 0;
  padding: 0;
}
.pillar-block__sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.pillar-block__body p { max-width: 64ch; font-size: 19px; }

/* ============== MARKETS MATRIX (pillars page) ============== */
/* Visually-hidden text for screen-reader-only content. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.matrix {
  display: grid;
  grid-template-columns: 160px repeat(4, 1fr);
  margin: 48px 0 72px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
}
.matrix__row { display: contents; }
.matrix__cell {
  padding: 18px 16px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.matrix__cell:nth-child(5n) { border-right: 0; }
.matrix__cell:nth-last-child(-n+5) { border-bottom: 0; }
.matrix__cell--head {
  background: var(--surface);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: 11px;
}
.matrix__cell--row {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.005em;
  text-transform: none;
  justify-content: flex-start;
  padding-left: 20px;
}
.matrix__cell--on {
  color: var(--gold);
  font-size: 20px;
}
.matrix__cell--off {
  color: var(--text-faint);
}

/* Stacked alternate to the matrix table, used below ~520px. */
.matrix-stack { display: none; }
.matrix-stack__row {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.matrix-stack__row:last-child { border-bottom: 0; }
.matrix-stack__title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--text);
}
.matrix-stack__on {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  line-height: 1.7;
}
.matrix-stack__on .gold-dot { color: var(--gold); margin-right: 6px; }

@media (max-width: 720px) {
  .matrix {
    grid-template-columns: 110px repeat(4, 1fr);
    font-size: 11px;
  }
  .matrix__cell { padding: 12px 6px; }
  .matrix__cell--row { padding-left: 12px; font-size: 13px; }
  .matrix__cell--head { font-size: 9px; }
}
/* Below ~520px, the 5-column matrix is unreadable. Hide it and show
   the stacked alternate. */
@media (max-width: 520px) {
  .matrix { display: none; }
  .matrix-stack { display: block; }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  text-decoration: none;
}
.btn:hover { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }
.btn--primary { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-pale); border-color: var(--gold-pale); }
.btn--sm { padding: 12px 18px; font-size: 12px; min-height: 44px; }
.btn svg { width: 14px; height: 10px; }

/* ============== BRAND PAGE — SWATCHES / SPECIMEN ============== */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin: 28px 0 56px;
}
.swatch {
  background: var(--bg);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.swatch__color {
  height: 120px;
  width: 100%;
  border-bottom: 1px solid var(--hairline);
}
.swatch__meta { padding: 14px 18px; }
.swatch__name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 4px;
}
.swatch__hex {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.specimen {
  margin: 28px 0 56px;
  border: 1px solid var(--hairline);
}
.specimen__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  padding: 28px 28px;
  border-bottom: 1px solid var(--hairline);
  gap: 32px;
}
.specimen__row:last-child { border-bottom: 0; }
.specimen__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
}
.specimen__sample { color: var(--text); }
.specimen__sample--display {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.025em;
}
.specimen__sample--body {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.5;
}
.specimen__sample--mono {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .specimen__row { grid-template-columns: 1fr; padding: 22px 18px; gap: 14px; }
}

.mark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin: 28px 0 40px;
}
.mark-tile {
  background: var(--bg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.mark-tile__preview {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.mark-tile__preview svg {
  max-width: 70%;
  max-height: 80%;
  color: var(--text);
}
.mark-tile__name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0;
  color: var(--text);
  text-align: center;
}
.mark-tile__downloads {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.mark-tile__downloads .btn { font-size: 11px; padding: 8px 14px; letter-spacing: 0.12em; }

/* ============== INQUIRY FORM (contact) ============== */
.inquiry {
  margin: 40px 0 0;
  border-top: 1px solid var(--hairline);
  padding-top: 56px;
}
.inquiry__intro {
  margin-bottom: 48px;
  padding: 24px 28px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(214,162,74,0.04), transparent);
}
.inquiry__intro p { margin: 0; color: var(--text-muted); max-width: 64ch; }

.field {
  display: block;
  margin-bottom: 28px;
}
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.field__label .req { color: var(--gold); margin-left: 4px; }
.field__hint {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--ui-border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px; /* >=16px keeps iOS Safari from auto-zooming on focus */
  line-height: 1.45;
  border-radius: 0;
  outline: none;
  min-height: 48px;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: var(--bg);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
@media (max-width: 720px) {
  .field-grid { grid-template-columns: 1fr; gap: 28px 24px; }
}

.inquiry__submit { margin-top: 12px; }
.inquiry__notice {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* ============== INSIGHTS — ESSAY ============== */
.essay__meta {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.essay__meta .dot { color: var(--gold); }
.essay__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: var(--tracking-display);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--text);
}
.essay__lede {
  font-size: clamp(20px, 1.7vw, 22px);
  color: var(--text-muted);
  max-width: 64ch;
  line-height: 1.55;
  margin: 0 0 48px;
}
.essay h2 { margin-top: 64px; }
.essay h2:first-of-type { margin-top: 48px; }
.essay p { font-size: 19px; line-height: 1.72; max-width: 66ch; }
.essay p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  float: left;
  line-height: 0.95;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--gold);
  font-weight: 500;
}
.essay__rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  margin: 72px auto;
  width: 80%;
  opacity: 0.4;
}

/* ============== FOOTER ============== */
footer.subfoot {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 30px;
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
footer.subfoot .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  /* Inherits --container-text from .container — chrome aligns to body. */
}
.gold-dot { color: var(--gold); }
.ai-link {
  border: 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  transition: opacity .2s, color .2s;
}
.ai-link:hover { opacity: 1; color: var(--gold); }

/* ============== REVEAL ============== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
