/* ============================================================
   SPECLEO — Brand foundations
   Page + component styles. Every value resolves to a token
   from tokens.css; no raw hex below the token layer except
   inside decorative gradients.
   ============================================================ */

/* ---------- RESET ---------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  background: var(--oe-canvas);
  color: var(--oe-text);
  font-family: var(--oe-font-body);
  font-size: var(--oe-text-base);
  line-height: var(--oe-leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--oe-focus);
  outline-offset: 2px;
  border-radius: var(--oe-radius-xs);
}

::selection {
  background: var(--oe-accent);
  color: var(--oe-on-accent);
}

/* ---------- ATMOSPHERE ---------- */
/* Blueprint grid + grain, both fixed and inert so they never
   cost anything during scroll. */

.oe-grid-bg,
.oe-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.oe-grid-bg {
  background-image: linear-gradient(
      to right,
      var(--oe-hairline) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--oe-hairline) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: radial-gradient(
    ellipse 90% 70% at 50% 0%,
    #000 10%,
    transparent 78%
  );
}

.oe-grain {
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Warm bloom behind the hero, echoing the eye's orange crescent */
.oe-bloom {
  position: absolute;
  z-index: 0;
  width: 62rem;
  height: 62rem;
  top: -26rem;
  right: -20rem;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(224, 165, 38, 0.16) 0%,
    rgba(224, 165, 38, 0.05) 38%,
    transparent 68%
  );
}

/* ---------- LAYOUT ---------- */

.oe-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--oe-container);
  margin-inline: auto;
  padding-inline: var(--oe-gutter);
}

.container--wide {
  max-width: var(--oe-container-wide);
}

/* Spec rail: section number sits in the left margin on wide
   viewports, collapses inline on small ones. */
.section {
  position: relative;
  padding-block: var(--oe-space-9);
  border-top: 1px solid var(--oe-border);
}

.section:first-of-type {
  border-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: var(--oe-rail) minmax(0, 1fr);
  gap: var(--oe-space-4);
  margin-bottom: var(--oe-space-7);
}

.section-num {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  font-weight: var(--oe-weight-medium);
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-accent);
  padding-top: 0.65rem;
  position: relative;
}

.section-num::after {
  content: "";
  position: absolute;
  left: 0;
  top: 2.1rem;
  width: 2.25rem;
  height: 1px;
  background: var(--oe-border-accent);
}

.section-title {
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-2xl);
  font-weight: var(--oe-weight-black);
  font-stretch: 118%;
  line-height: var(--oe-leading-tight);
  letter-spacing: var(--oe-tracking-tight);
  text-transform: uppercase;
}

.section-lede {
  max-width: 54ch;
  margin-top: var(--oe-space-3);
  color: var(--oe-text-muted);
  font-size: var(--oe-text-md);
  line-height: var(--oe-leading-relaxed);
}

.subhead {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
  margin-bottom: var(--oe-space-4);
  display: flex;
  align-items: center;
  gap: var(--oe-space-3);
}

.subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--oe-border);
}

.stack > * + * {
  margin-top: var(--oe-space-6);
}

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.86);
  background: color-mix(in srgb, var(--oe-canvas) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--oe-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--oe-space-5);
  min-height: 4.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--oe-space-3);
  flex-shrink: 0;
}

.header-logo img {
  /* 2.25rem tall renders ~131px wide, clearing the 124px minimum
     documented in section 01. */
  height: 2.25rem;
  width: auto;
}

.header-tag {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  letter-spacing: var(--oe-tracking-wide);
  text-transform: uppercase;
  color: var(--oe-text-subtle);
  padding-left: var(--oe-space-3);
  border-left: 1px solid var(--oe-border-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--oe-space-1);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  position: relative;
  padding: 0.45rem 0.7rem;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oe-text-subtle);
  white-space: nowrap;
  border-radius: var(--oe-radius-xs);
  transition: color var(--oe-duration-fast) var(--oe-ease-standard),
    background-color var(--oe-duration-fast) var(--oe-ease-standard);
}

.nav a:hover {
  color: var(--oe-text);
  background: var(--oe-accent-quiet);
}

.nav a[aria-current="true"] {
  color: var(--oe-accent);
}

.nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: -0.1rem;
  height: 2px;
  background: var(--oe-accent);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--oe-border);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: var(--oe-space-8);
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--oe-space-3);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  letter-spacing: var(--oe-tracking-wide);
  text-transform: uppercase;
  color: var(--oe-accent);
  margin-bottom: var(--oe-space-5);
}

.hero__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-family: var(--oe-font-display);
  /* Not --oe-text-4xl: the longest word has to fit the narrower hero
     column at every width. */
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: var(--oe-weight-black);
  font-stretch: 122%;
  line-height: var(--oe-leading-flat);
  letter-spacing: var(--oe-tracking-tight);
  text-transform: uppercase;
}

.hero h1 em {
  font-style: normal;
  color: var(--oe-accent);
}

.hero__lede {
  max-width: 46ch;
  margin-top: var(--oe-space-5);
  font-size: var(--oe-text-lg);
  line-height: var(--oe-leading-relaxed);
  color: var(--oe-text-muted);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--oe-space-6);
  margin-top: var(--oe-space-7);
  padding-top: var(--oe-space-5);
  border-top: 1px solid var(--oe-border);
}

.hero__meta div {
  min-width: 7rem;
}

.hero__meta dt {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
}

.hero__meta dd {
  margin: 0.35rem 0 0;
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-md);
  font-weight: var(--oe-weight-bold);
  font-stretch: 112%;
}

/* The mark, oversized and bleeding past the grid */
.hero__mark {
  position: relative;
  justify-self: end;
  width: min(100%, 27rem);
}

.hero__mark img {
  width: 100%;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.6));
  animation: mark-in var(--oe-duration-reveal) var(--oe-ease-out) both;
}

.hero__mark figcaption {
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  letter-spacing: var(--oe-tracking-wide);
  text-transform: uppercase;
  color: var(--oe-text-subtle);
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(1.5rem);
  }
}

/* ---------- PANEL (card primitive) ---------- */

.panel {
  position: relative;
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  padding: var(--oe-space-5);
  box-shadow: var(--oe-shadow-sm);
}

.panel--flush {
  padding: 0;
  overflow: hidden;
}

.panel--sunken {
  background: var(--oe-surface-sunken);
  box-shadow: none;
}

.panel--accent {
  border-color: var(--oe-border-accent);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--oe-space-4);
  padding-bottom: var(--oe-space-4);
  margin-bottom: var(--oe-space-4);
  border-bottom: 1px solid var(--oe-border);
}

.panel__title {
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-md);
  font-weight: var(--oe-weight-bold);
  font-stretch: 112%;
  letter-spacing: var(--oe-tracking-snug);
  text-transform: uppercase;
}

.panel__note {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  letter-spacing: 0.04em;
}

/* ---------- COLOUR: core swatches ---------- */

.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--oe-space-4);
}

.swatch {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--oe-duration-base) var(--oe-ease-out),
    border-color var(--oe-duration-fast) var(--oe-ease-standard),
    box-shadow var(--oe-duration-base) var(--oe-ease-out);
}

.swatch:hover {
  transform: translateY(-3px);
  border-color: var(--oe-border-strong);
  box-shadow: var(--oe-shadow-md);
}

.swatch:active {
  transform: translateY(-1px);
}

.swatch__chip {
  height: 7.5rem;
  position: relative;
  border-bottom: 1px solid var(--oe-border);
}

/* Checkerboard so pure white and pure black chips stay legible */
.swatch__chip--edge {
  box-shadow: inset 0 0 0 1px var(--oe-hairline);
}

.swatch__chip span {
  position: absolute;
  inset: auto var(--oe-space-3) var(--oe-space-3) auto;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--oe-duration-fast) var(--oe-ease-standard),
    transform var(--oe-duration-fast) var(--oe-ease-standard);
}

.swatch:hover .swatch__chip span,
.swatch:focus-visible .swatch__chip span {
  opacity: 1;
  transform: none;
}

.swatch__body {
  padding: var(--oe-space-4);
  display: grid;
  gap: 0.2rem;
}

.swatch__name {
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-base);
  font-weight: var(--oe-weight-bold);
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-snug);
}

.swatch__hex {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-sm);
  color: var(--oe-accent);
}

.swatch__role {
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
  line-height: var(--oe-leading-snug);
  margin-top: 0.35rem;
}

.swatch__var {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  margin-top: 0.5rem;
  word-break: break-all;
}

/* ---------- COLOUR: ramps ---------- */

.ramp {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  overflow: hidden;
}

.ramp + .ramp {
  margin-top: var(--oe-space-4);
}

.ramp--12 {
  grid-template-columns: repeat(12, 1fr);
}

.ramp__step {
  position: relative;
  aspect-ratio: 1 / 1.5;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.55rem;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  letter-spacing: 0.02em;
  transition: flex var(--oe-duration-base) var(--oe-ease-out);
}

.ramp__step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--oe-duration-fast) var(--oe-ease-standard);
}

.ramp__step:hover::before {
  background: rgba(255, 255, 255, 0.12);
}

.ramp__step[data-core="true"]::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.3rem;
  height: 0.3rem;
  border-radius: var(--oe-radius-pill);
  background: currentColor;
}

@media (max-width: 640px) {
  .ramp,
  .ramp--12 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- CONTRAST TABLE ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-md);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--oe-text-sm);
  min-width: 34rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.7rem var(--oe-space-4);
  border-bottom: 1px solid var(--oe-border);
  white-space: nowrap;
}

table.data thead th {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
  background: var(--oe-surface-sunken);
  font-weight: var(--oe-weight-medium);
}

table.data tbody tr:last-child td {
  border-bottom: 0;
}

table.data tbody tr {
  transition: background var(--oe-duration-fast) var(--oe-ease-standard);
}

table.data tbody tr:hover {
  background: var(--oe-accent-quiet);
}

table.data .num {
  font-family: var(--oe-font-mono);
  font-variant-numeric: tabular-nums;
}

.pair {
  display: inline-flex;
  align-items: center;
  gap: var(--oe-space-2);
}

.pair__chip {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--oe-radius-xs);
  box-shadow: inset 0 0 0 1px var(--oe-hairline);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--oe-font-mono);
  font-size: 0.6rem;
  font-weight: var(--oe-weight-semibold);
}

/* ---------- BADGE / VERDICT ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--oe-radius-xs);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  font-weight: var(--oe-weight-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--aaa {
  color: var(--oe-pass);
  background: var(--oe-pass-quiet);
  box-shadow: inset 0 0 0 1px rgba(143, 184, 107, 0.3);
}

.badge--aa {
  color: var(--oe-gold-300);
  background: var(--oe-attention-quiet);
  box-shadow: inset 0 0 0 1px var(--oe-border-accent);
}

.badge--fail {
  color: var(--oe-critical);
  background: var(--oe-critical-quiet);
  box-shadow: inset 0 0 0 1px rgba(224, 106, 85, 0.32);
}

/* ---------- STATUS PILL (product vocabulary) ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem 0.28rem 0.5rem;
  border-radius: var(--oe-radius-pill);
  font-size: var(--oe-text-xs);
  font-weight: var(--oe-weight-semibold);
  letter-spacing: 0.02em;
}

.status__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: var(--oe-radius-pill);
  background: currentColor;
  flex-shrink: 0;
}

.status--pass {
  color: var(--oe-pass);
  background: var(--oe-pass-quiet);
}

.status--attention {
  color: var(--oe-gold-300);
  background: var(--oe-attention-quiet);
}

.status--critical {
  color: var(--oe-critical);
  background: var(--oe-critical-quiet);
}

.status--draft {
  color: var(--oe-draft);
  background: var(--oe-draft-quiet);
}

/* ---------- BUTTONS ---------- */

.btn {
  --btn-pad-y: 0.6rem;
  --btn-pad-x: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--oe-radius-xs);
  background: transparent;
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-sm);
  font-weight: var(--oe-weight-bold);
  font-stretch: 108%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--oe-duration-fast) var(--oe-ease-standard),
    border-color var(--oe-duration-fast) var(--oe-ease-standard),
    color var(--oe-duration-fast) var(--oe-ease-standard),
    transform var(--oe-duration-instant) var(--oe-ease-standard),
    box-shadow var(--oe-duration-base) var(--oe-ease-out);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn--sm {
  --btn-pad-y: 0.4rem;
  --btn-pad-x: 0.8rem;
  font-size: var(--oe-text-xs);
}

.btn--lg {
  --btn-pad-y: 0.85rem;
  --btn-pad-x: 1.6rem;
  font-size: var(--oe-text-base);
}

/* Primary: orange fill, INK label. Never white on orange. */
.btn--primary {
  background: var(--oe-accent);
  color: var(--oe-on-accent);
}

.btn--primary:hover:not(:disabled) {
  background: var(--oe-accent-hover);
  box-shadow: var(--oe-shadow-accent);
}

.btn--primary:active:not(:disabled) {
  background: var(--oe-accent-press);
}

.btn--secondary {
  border-color: var(--oe-border-strong);
  color: var(--oe-text);
  background: var(--oe-surface-raised);
}

.btn--secondary:hover:not(:disabled) {
  border-color: var(--oe-accent);
  color: var(--oe-accent);
}

.btn--ghost {
  color: var(--oe-text-muted);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--oe-accent-quiet);
  color: var(--oe-accent);
}

.btn--critical {
  background: var(--oe-critical-core);
  color: var(--oe-neutral-0);
}

.btn--critical:hover:not(:disabled) {
  background: var(--oe-critical);
  color: var(--oe-neutral-950);
}

.btn__spinner {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: var(--oe-radius-pill);
  animation: spin 620ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--oe-space-3);
}

/* ---------- FORM FIELD ---------- */

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-muted);
}

.field__label .req {
  color: var(--oe-accent);
}

.input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--oe-surface-sunken);
  border: 1px solid var(--oe-border-strong);
  border-radius: var(--oe-radius-xs);
  font-size: var(--oe-text-base);
  transition: border-color var(--oe-duration-fast) var(--oe-ease-standard),
    background-color var(--oe-duration-fast) var(--oe-ease-standard);
}

.input::placeholder {
  color: var(--oe-text-subtle);
}

.input:hover:not(:disabled) {
  border-color: var(--oe-neutral-500);
}

.input:focus {
  outline: none;
  border-color: var(--oe-accent);
  box-shadow: 0 0 0 3px var(--oe-accent-quiet-strong);
}

.input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.field__hint {
  font-size: var(--oe-text-xs);
  color: var(--oe-text-subtle);
}

.field--error .input {
  border-color: var(--oe-critical);
}

.field--error .input:focus {
  box-shadow: 0 0 0 3px var(--oe-critical-quiet);
}

.field__error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--oe-text-xs);
  color: var(--oe-critical);
}

.field__error svg {
  flex-shrink: 0;
}

/* ---------- SKELETON / EMPTY ---------- */

.skeleton {
  border-radius: var(--oe-radius-xs);
  background: linear-gradient(
    90deg,
    var(--oe-neutral-700) 0%,
    var(--oe-neutral-500) 45%,
    var(--oe-neutral-700) 90%
  );
  background-size: 220% 100%;
  animation: sweep 1500ms var(--oe-ease-in-out) infinite;
}

@keyframes sweep {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -80% 0;
  }
}

.skeleton-stack {
  display: grid;
  gap: 0.6rem;
}

.empty {
  display: grid;
  place-items: center;
  gap: var(--oe-space-3);
  padding: var(--oe-space-7) var(--oe-space-4);
  text-align: center;
  border: 1px dashed var(--oe-border-strong);
  border-radius: var(--oe-radius-md);
  background: var(--oe-surface-sunken);
}

.empty__icon {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.5;
}

.empty__title {
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-base);
  font-weight: var(--oe-weight-bold);
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-snug);
}

.empty__body {
  max-width: 32ch;
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
}

/* ---------- TYPOGRAPHY SPECIMEN ---------- */

.specimen {
  display: grid;
  gap: var(--oe-space-5);
}

.spec-row {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: var(--oe-space-4);
  align-items: baseline;
  padding-bottom: var(--oe-space-5);
  border-bottom: 1px solid var(--oe-border);
}

.spec-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-row__meta {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  line-height: var(--oe-leading-snug);
  letter-spacing: 0.03em;
}

.spec-row__meta strong {
  display: block;
  color: var(--oe-accent);
  font-weight: var(--oe-weight-medium);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
}

.spec-row__sample {
  min-width: 0;
  overflow-wrap: anywhere;
}

.d1,
.d2,
.d3,
.d4 {
  font-family: var(--oe-font-display);
  font-weight: var(--oe-weight-black);
  text-transform: uppercase;
  line-height: var(--oe-leading-flat);
  letter-spacing: var(--oe-tracking-tight);
}

.d1 {
  font-size: var(--oe-text-4xl);
  font-stretch: 122%;
}

.d2 {
  font-size: var(--oe-text-3xl);
  font-stretch: 118%;
}

.d3 {
  font-size: var(--oe-text-2xl);
  font-stretch: 114%;
}

.d4 {
  font-size: var(--oe-text-xl);
  font-stretch: 110%;
  line-height: var(--oe-leading-tight);
}

.body-lg {
  font-size: var(--oe-text-lg);
  line-height: var(--oe-leading-relaxed);
  color: var(--oe-text-muted);
}

.body-base {
  font-size: var(--oe-text-base);
  line-height: var(--oe-leading-normal);
}

.body-sm {
  font-size: var(--oe-text-sm);
  line-height: var(--oe-leading-normal);
  color: var(--oe-text-muted);
}

.mono-label {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
}

.tagline-lock {
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-sm);
  font-weight: var(--oe-weight-bold);
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-mark);
}

.font-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--oe-space-4);
}

.font-card__glyph {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: var(--oe-space-4);
  color: var(--oe-accent);
}

.font-card__name {
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-md);
  font-weight: var(--oe-weight-bold);
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-snug);
}

.font-card__role {
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
  margin-top: 0.35rem;
  line-height: var(--oe-leading-snug);
}

.font-card__weights {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  margin-top: var(--oe-space-3);
  padding-top: var(--oe-space-3);
  border-top: 1px solid var(--oe-border);
  letter-spacing: 0.03em;
}

/* ---------- LOGO SECTION ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--oe-space-4);
}

.logo-tile {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 13rem;
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  overflow: hidden;
}

.logo-tile__stage {
  display: grid;
  place-items: center;
  padding: var(--oe-space-6) var(--oe-space-5);
}

.logo-tile__stage--dark {
  background: var(--oe-neutral-950);
}

.logo-tile__stage--charcoal {
  background: var(--oe-neutral-700);
}

.logo-tile__stage--light {
  background: var(--oe-neutral-0);
}

.logo-tile__stage--gold {
  background: var(--oe-gold-500);
}

.logo-tile__stage img {
  width: 100%;
  max-width: 13rem;
}

.logo-tile__stage img.is-symbol {
  max-width: 5.5rem;
}

.logo-tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--oe-space-3);
  padding: 0.7rem var(--oe-space-4);
  background: var(--oe-surface);
  border-top: 1px solid var(--oe-border);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  letter-spacing: 0.03em;
  color: var(--oe-text-muted);
}

.logo-tile__foot a {
  color: var(--oe-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Clearspace diagram */
.clearspace {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem);
  background: var(--oe-surface-sunken);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-md);
}

.clearspace__frame {
  position: relative;
  width: min(100%, 30rem);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  outline: 1px dashed var(--oe-border-accent);
}

.clearspace__frame img {
  width: 100%;
}

.clearspace__x {
  position: absolute;
  display: grid;
  place-items: center;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-accent);
  background: var(--oe-accent-quiet);
  outline: 1px dashed var(--oe-border-accent);
}

.clearspace__x--top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: clamp(1.75rem, 5vw, 3.25rem);
}

.clearspace__x--left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2.4rem;
  width: clamp(1.75rem, 5vw, 3.25rem);
}

/* Do / Don't */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--oe-space-4);
}

.rule {
  display: grid;
  gap: var(--oe-space-3);
  padding: var(--oe-space-4);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  background: var(--oe-surface);
}

.rule__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
}

.rule--do {
  border-left: 2px solid var(--oe-pass);
}

.rule--do .rule__tag {
  color: var(--oe-pass);
}

.rule--dont {
  border-left: 2px solid var(--oe-critical);
}

.rule--dont .rule__tag {
  color: var(--oe-critical);
}

.rule__body {
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
  line-height: var(--oe-leading-snug);
}

/* ---------- SCALE VISUALS ---------- */

.scale-list {
  display: grid;
  gap: 0.55rem;
}

.scale-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr 5rem;
  align-items: center;
  gap: var(--oe-space-4);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
}

.scale-item__bar {
  height: 0.85rem;
  background: linear-gradient(
    90deg,
    var(--oe-accent) 0%,
    var(--oe-gold-700) 100%
  );
  border-radius: var(--oe-radius-xs);
}

.scale-item__val {
  text-align: right;
  color: var(--oe-text-muted);
}

.radius-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--oe-space-4);
}

.radius-chip {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
}

.radius-chip__box {
  width: 4rem;
  height: 4rem;
  background: var(--oe-surface-raised);
  border: 1px solid var(--oe-border-strong);
  border-top-color: var(--oe-accent);
  border-left-color: var(--oe-accent);
}

.elev-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--oe-space-5);
}

.elev-chip {
  display: grid;
  place-items: center;
  height: 6rem;
  background: var(--oe-surface);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
}

.motion-row {
  display: grid;
  gap: var(--oe-space-4);
}

.motion-track {
  display: grid;
  grid-template-columns: 8rem 1fr;
  align-items: center;
  gap: var(--oe-space-4);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
}

.motion-track__rail {
  position: relative;
  height: 2px;
  background: var(--oe-border);
  border-radius: var(--oe-radius-pill);
}

.motion-track__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  border-radius: var(--oe-radius-pill);
  background: var(--oe-accent);
}

.motion-row.is-playing .motion-track__dot {
  animation: slide var(--motion-dur, 240ms) var(--motion-ease, ease) forwards;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100% * var(--motion-span, 12)));
  }
}

/* ---------- APPLICATION PREVIEW ---------- */

.app-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--oe-space-4);
}

.report-card {
  display: grid;
  gap: var(--oe-space-4);
}

.report-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--oe-space-4);
}

.report-card__ref {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  letter-spacing: 0.05em;
}

.report-card__title {
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-lg);
  font-weight: var(--oe-weight-black);
  font-stretch: 114%;
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-snug);
  line-height: var(--oe-leading-tight);
  margin-top: 0.3rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: var(--oe-space-4);
  padding-top: var(--oe-space-4);
  border-top: 1px solid var(--oe-border);
}

.metric__label {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--oe-tracking-wide);
  color: var(--oe-text-subtle);
}

.metric__value {
  font-family: var(--oe-font-display);
  font-size: var(--oe-text-xl);
  font-weight: var(--oe-weight-black);
  font-stretch: 114%;
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
  line-height: 1;
}

.metric__value.is-accent {
  color: var(--oe-accent);
}

.meter {
  height: 0.4rem;
  background: var(--oe-surface-sunken);
  border-radius: var(--oe-radius-pill);
  overflow: hidden;
  margin-top: 0.55rem;
}

.meter__fill {
  height: 100%;
  border-radius: var(--oe-radius-pill);
  background: var(--oe-accent);
  transform-origin: left;
  animation: meter-in var(--oe-duration-slow) var(--oe-ease-out) both;
}

.meter__fill--pass {
  background: var(--oe-pass);
}

.meter__fill--critical {
  background: var(--oe-critical);
}

@keyframes meter-in {
  from {
    transform: scaleX(0);
  }
}

/* ---------- CODE BLOCK ---------- */

.code {
  position: relative;
  margin: 0;
  padding: var(--oe-space-5);
  background: var(--oe-surface-sunken);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-md);
  overflow-x: auto;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  line-height: var(--oe-leading-relaxed);
  color: var(--oe-neutral-200);
  tab-size: 2;
}

.code .c-com {
  color: var(--oe-text-subtle);
}

.code .c-var {
  color: var(--oe-gold-300);
}

.code .c-val {
  color: var(--oe-pass);
}

.code .c-sel {
  color: var(--oe-neutral-0);
}

/* ---------- COPY TOAST ---------- */

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: var(--oe-space-6);
  transform: translate(-50%, 150%);
  display: flex;
  align-items: center;
  gap: var(--oe-space-3);
  padding: 0.7rem 1.1rem;
  background: var(--oe-accent);
  color: var(--oe-on-accent);
  border-radius: var(--oe-radius-xs);
  box-shadow: var(--oe-shadow-lg);
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  letter-spacing: 0.03em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(100% + var(--oe-space-7)));
  transition: transform var(--oe-duration-base) var(--oe-ease-out),
    opacity var(--oe-duration-fast) var(--oe-ease-standard);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- FOOTER ---------- */

.site-footer {
  border-top: 1px solid var(--oe-border);
  padding-block: var(--oe-space-8) var(--oe-space-7);
  background: var(--oe-surface-sunken);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--oe-space-7);
  align-items: start;
}

.site-footer img.mark {
  height: 2.1rem;
  width: auto;
  margin-bottom: var(--oe-space-4);
}

.site-footer__note {
  max-width: 46ch;
  font-size: var(--oe-text-sm);
  color: var(--oe-text-muted);
  line-height: var(--oe-leading-relaxed);
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer-links a,
.footer-links span {
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-xs);
  color: var(--oe-text-subtle);
  letter-spacing: 0.03em;
}

.footer-links a:hover {
  color: var(--oe-accent);
}

.site-footer__base {
  margin-top: var(--oe-space-7);
  padding-top: var(--oe-space-4);
  border-top: 1px solid var(--oe-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--oe-space-4);
  justify-content: space-between;
  font-family: var(--oe-font-mono);
  font-size: var(--oe-text-2xs);
  color: var(--oe-text-subtle);
  letter-spacing: 0.04em;
}

/* ---------- REVEAL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity var(--oe-duration-reveal) var(--oe-ease-out),
    transform var(--oe-duration-reveal) var(--oe-ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__mark img,
  .meter__fill,
  .skeleton,
  .btn__spinner {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--oe-space-6);
  }

  .hero__mark {
    order: -1;
    justify-self: start;
    width: min(58%, 17rem);
    margin-right: 0;
  }

  .hero__mark figcaption {
    position: static;
    margin-top: var(--oe-space-3);
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--oe-space-2);
  }

  .section-num {
    padding-top: 0;
  }

  .section-num::after {
    display: none;
  }

  .spec-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .scale-item {
    grid-template-columns: 3.5rem 1fr 4rem;
  }

  .header-tag {
    display: none;
  }

  .site-header__inner {
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
  }
}

@media print {
  .oe-grid-bg,
  .oe-grain,
  .oe-bloom,
  .site-header,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
