/* Hermord shared brand foundation (D-44, D-45). Every brand surface (guide, deck, website) imports this after dist/css/brand.css.
   Premium rules: one type family, generous space, soft depth, large radii, hairlines over borders, colour only for meaning. */
@font-face { font-family: "Archivo"; src: url(fonts/Archivo-Variable.ttf) format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url(fonts/AtkinsonHyperlegibleMono-Variable.ttf) format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --h-ease: cubic-bezier(.16, 1, .3, 1);
  --h-hair: color-mix(in oklab, var(--brand-color-text-primary) 12%, transparent);
  --h-hair-inv: color-mix(in oklab, var(--brand-color-text-inverse) 14%, transparent);
  --h-card: var(--color-stone-0);
  --h-shadow-soft: 0 1px 2px rgb(9 14 19 / .04), 0 12px 32px rgb(9 14 19 / .06);
  --h-shadow-lift: 0 2px 4px rgb(9 14 19 / .05), 0 24px 60px rgb(9 14 19 / .10);
}
.h-root, .h-root * { box-sizing: border-box; }
.h-root { font-family: var(--font-family-sans); color: var(--brand-color-text-primary); background: var(--brand-color-bg-page);
  font-size: 17px; line-height: 1.55; letter-spacing: -0.003em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.h-root h1, .h-root h2, .h-root h3, .h-root h4, .h-root p, .h-root figure { margin: 0; }

/* Two voices. Mission = semibold expanded. Vision = light expanded. Reading = normal width. */
.h-mission-xl { font-stretch: 125%; font-weight: 600; font-size: clamp(48px, 7.4vw, 120px); line-height: .94; letter-spacing: -0.04em; }
.h-mission    { font-stretch: 125%; font-weight: 600; font-size: clamp(34px, 4.2vw, 64px);  line-height: 1.0;  letter-spacing: -0.035em; }
.h-vision-xl  { font-stretch: 125%; font-weight: 300; font-size: clamp(44px, 6.6vw, 104px); line-height: 1.0;  letter-spacing: -0.035em; }
.h-vision     { font-stretch: 125%; font-weight: 300; font-size: clamp(30px, 3.6vw, 56px);  line-height: 1.06; letter-spacing: -0.03em; }
.h-title      { font-stretch: 100%; font-weight: 650; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.h-subtitle   { font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; }
.h-lead       { font-weight: 400; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; letter-spacing: -0.01em; color: var(--brand-color-text-secondary); }
.h-body       { font-size: 17px; line-height: 1.55; }
.h-small      { font-size: 14px; line-height: 1.45; color: var(--brand-color-text-secondary); }
.h-eyebrow    { font-weight: 600; font-size: 13px; letter-spacing: .02em; color: var(--brand-color-text-secondary); }
.h-eyebrow.accent { color: var(--brand-color-accent-text); }
.h-figure     { font-stretch: 125%; font-weight: 500; font-size: clamp(48px, 6vw, 96px); line-height: 1; letter-spacing: -0.04em; font-feature-settings: "tnum" 1; }
.h-mono       { font-family: var(--font-family-mono); font-size: 13px; letter-spacing: .01em; }
.h-muted { color: var(--brand-color-text-secondary); }
.h-accent { color: var(--brand-color-accent-text); }

/* Lockup: Shear + wordmark, both currentColor. Clear space = one Shear width. */
.h-lockup { display: inline-flex; align-items: center; gap: .55em; color: inherit; }
.h-lockup .shear { height: 1.6em; width: auto; }
.h-lockup .word { height: .78em; width: auto; }

/* Controls: pills, monochrome first. Accent only for the single primary action of a page. */
.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; transition: transform .2s var(--h-ease), background .2s var(--h-ease); }
.h-btn.ink { background: var(--brand-color-text-primary); color: var(--brand-color-text-inverse); }
.h-btn.accent { background: var(--brand-color-accent-fill); color: var(--brand-color-accent-on-fill); }
.h-btn.quiet { background: color-mix(in oklab, var(--brand-color-text-primary) 7%, transparent); color: var(--brand-color-text-primary); }
.h-inverse .h-btn.quiet { background: color-mix(in oklab, var(--brand-color-text-inverse) 12%, transparent); color: var(--brand-color-text-inverse); }
.h-btn:hover { transform: translateY(-1px); }

/* Surfaces */
.h-card { background: var(--h-card); border-radius: 22px; box-shadow: var(--h-shadow-soft); padding: 32px; }
.h-panel { background: var(--brand-color-bg-panel); border-radius: 22px; padding: 32px; }
.h-hairline { border: 0; border-top: 1px solid var(--h-hair); margin: 0; }
.h-inverse { background: var(--brand-color-bg-inverse); color: var(--brand-color-text-inverse); }
.h-inverse .h-lead, .h-inverse .h-small, .h-inverse .h-eyebrow, .h-inverse .h-muted { color: var(--brand-color-text-inverse-secondary); }
.h-inverse .h-accent, .h-inverse .h-eyebrow.accent { color: var(--brand-color-accent-on-inverse); }
.h-glass { background: color-mix(in oklab, var(--brand-color-bg-inverse) 55%, transparent); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  border: .5px solid var(--h-hair-inv); border-radius: 22px; color: var(--brand-color-text-inverse); }

/* Blueprint line-work for vision moments */
.h-blueprint { color: var(--brand-color-text-inverse); opacity: .8; }
.h-blueprint path, .h-blueprint rect, .h-blueprint circle { vector-effect: non-scaling-stroke; }

/* Media treatment: one grade for every photo or render (from the v11 deck rule) */
.h-graded { filter: saturate(.62) brightness(.9) contrast(1.08); }

@media (prefers-reduced-motion: reduce) { .h-root * { transition: none !important; animation: none !important; } }

/* Lance (D-71): the motion and wayfinding mark. Direction, flow and leading edges. Never the primary mark, never replaces the Shear,
   points forward (right) except where it means "back" or "replay". One accent use per view. */
:root { --h-lance: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20420%20185%22%3E%3Cpath%20d%3D%22M168%200H280L419%2084H318L277%2053H242Z%22/%3E%3Cpath%20d%3D%22M168%20184H280L419%2098H318L277%20129H242Z%22/%3E%3Cpath%20d%3D%22M0%2091L224%2072L264%2075L289%2091L264%20107L224%20110Z%22/%3E%3C/svg%3E"); }
.h-lance { display: inline-block; width: 2.27em; height: 1em; background: currentColor; -webkit-mask: var(--h-lance) center / contain no-repeat; mask: var(--h-lance) center / contain no-repeat; vertical-align: -0.12em; }
.h-go::after { content: ""; display: inline-block; width: 1.6em; height: .7em; margin-left: .1em; background: currentColor; -webkit-mask: var(--h-lance) center / contain no-repeat; mask: var(--h-lance) center / contain no-repeat; transition: transform .25s var(--h-ease); }
.h-go:hover::after { transform: translateX(3px); }
.h-lance-rule { display: flex; align-items: center; gap: 14px; color: var(--brand-color-text-tertiary); }
.h-lance-rule::before { content: ""; flex: 1; height: 1px; background: var(--h-hair); }
.h-lance-rule::after { content: ""; width: 34px; height: 15px; background: currentColor; -webkit-mask: var(--h-lance) center / contain no-repeat; mask: var(--h-lance) center / contain no-repeat; }
