/**
 * Hire me v2 — see docs/hire-me-v2-build-spec.md. Tokens from site/shared/tokens.css; overrides on .hm-page.
 */
body.hm-page {
  --ds-mute: #6b6b6b;
  --ds-link: #0761d1;
  --hm-edge: #d9d9d9;
  --hm-control: #8a8a8a;
  --hm-open: #0f7a3d;
  --hm-maybe: #8a5200;
  --hm-off: #6b6b6b;
  --hm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-sb-theme="dark"] body.hm-page {
  color-scheme: dark;
  --ds-canvas: #0a0a0a;
  --ds-canvas-elevated: #121212;
  --ds-ink: #ededed;
  --ds-body: #b4b4b4;
  --ds-hairline: #2a2a2a;
  --ds-hairline-soft: #1a1a1a;
  --ds-primary: #ededed;
  --ds-on-primary: #0a0a0a;
  --ds-mute: #a0a0a0;
  --ds-link: #52a8ff;
  --hm-edge: #333;
  --hm-control: #777;
  --hm-open: #4fd68a;
  --hm-maybe: #f0b65a;
  --hm-off: #a0a0a0;
}
[data-focus="Cloud Security"] { --hue: #5fe0b4; }
[data-focus="Digital Forensics"] { --hue: #7cc4ff; }
[data-focus="Governance & Risk"] { --hue: #e6d44a; }
[data-focus="Program leadership"] { --hue: #cef54a; }
[data-focus="Application Security"] { --hue: #c4a1ff; }
[data-focus="Offensive Security"] { --hue: #ff9a78; }
[data-focus="Security Engineering"] { --hue: #ffc766; }
[data-focus="AI Solutions"] { --hue: #ff9fd0; }

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
html:has(dialog[open]) { overflow: hidden; }
body.hm-page { margin: 0; background: var(--ds-canvas); color: var(--ds-ink); font: 400 16px/24px var(--ds-font-sans); -webkit-font-smoothing: antialiased; }
:is(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
:is(ul, ol) { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ds-link); outline-offset: 2px; }
.hm-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hm-wrap { max-width: var(--max, 1200px); margin: 0 auto; padding: 0 24px; } /* same box as the header */

.hm-sample { padding: 10px 0; border-bottom: 1px solid var(--ds-hairline); font-size: 14px; line-height: 20px; color: var(--ds-body); }
.hm-sample--board { margin: 0; border: 0; padding: 0 0 12px; }
.hm-chip__note { font-size: 13px; font-weight: 500; color: var(--ds-body); }

/* —— Buttons —— */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--ds-radius-pill); background: var(--ds-primary); color: var(--ds-on-primary); font-weight: 500; line-height: 20px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s; }
.hm-btn:hover { background: color-mix(in srgb, var(--ds-primary) 86%, var(--ds-canvas)); }
.hm-btn--quiet { background: var(--ds-canvas-elevated); color: var(--ds-ink); border-color: var(--hm-edge); }
.hm-btn--quiet:hover { background: var(--ds-canvas-elevated); border-color: var(--ds-ink); }
.hm-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--hm-edge); border-radius: 50%; background: var(--ds-canvas-elevated); color: var(--ds-ink); cursor: pointer; text-decoration: none; }
.hm-icon:hover { border-color: var(--ds-ink); }
.hm-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-icon[aria-pressed="true"] { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-canvas); }
.hm-icon[aria-pressed="true"] svg { fill: currentColor; }

/* —— Status: dot + words, never color alone —— */
.hm-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--hm-off); }
.hm-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; }
.hm-status--open { color: var(--hm-open); }
.hm-status--open::before { background: currentColor; }
.hm-status--employed_open { color: var(--hm-maybe); }
.hm-status--employed_open::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

.hm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-chip { padding: 3px 8px; border: 1px solid var(--ds-hairline); border-radius: var(--ds-radius-sm); font: 500 13px/18px var(--ds-font-mono); color: var(--ds-body); max-width: 100%; overflow-wrap: anywhere; }

/* —— Plate: photo, or initials drawn in discs —— */
.hm-plate { position: relative; overflow: hidden; background: var(--hue, #d8d8d8); color: #171717; }
.hm-plate img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hm-plate--photo { background-image: radial-gradient(circle, rgba(0, 0, 0, 0.1) 42%, transparent 45%); background-size: 11px 11px; background-position: 50% 0; }
.hm-plate--photo img { object-position: 50% 0; } /* never crop the head */
.hm-plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-plate__text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 700; letter-spacing: -0.04em; }
.hm-plate.is-small .hm-plate__text { font-size: 36px; }
.hm-plate.is-live .hm-plate__text { opacity: 0; }

/* —— Board head —— */
.hm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; padding: 56px 0 32px; }
.hm-head h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 700; letter-spacing: -0.055em; line-height: 0.95; }
.hm-head p { max-width: 46ch; color: var(--ds-body); }
.hm-head p b { color: var(--ds-ink); font-weight: 600; }

/* —— Finder —— */
.hm-find { position: sticky; top: var(--nv-head); z-index: 20; padding: 12px 0; background: var(--ds-canvas); border-bottom: 1px solid var(--ds-hairline); }
.hm-find__row { display: flex; gap: 8px; }
.hm-search { position: relative; flex: 1; min-width: 0; }
.hm-search svg { position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; fill: none; stroke: var(--ds-body); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.hm-search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--hm-control); border-radius: var(--ds-radius-sm); background: var(--ds-canvas-elevated); font-size: 16px; }
.hm-search input::placeholder { color: var(--ds-mute); }
.hm-select { position: relative; }
.hm-select select { appearance: none; height: 48px; max-width: 210px; padding: 0 38px 0 14px; border: 1px solid var(--hm-control); border-radius: var(--ds-radius-sm); background: var(--ds-canvas-elevated); font-size: 16px; cursor: pointer; text-overflow: ellipsis; }
.hm-select::after { content: ""; position: absolute; right: 16px; top: 18px; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none; }
.hm-view { display: flex; flex: none; border: 1px solid var(--hm-control); border-radius: var(--ds-radius-sm); overflow: hidden; }
.hm-view button { width: 46px; height: 46px; padding: 0; border: 0; background: var(--ds-canvas-elevated); cursor: pointer; display: grid; place-items: center; }
.hm-view button[aria-pressed="true"] { background: var(--ds-ink); color: var(--ds-canvas); }
.hm-view svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hm-view button:focus-visible { outline-offset: -3px; }
.hm-filterbtn { display: none; }

.hm-focus { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hm-focus button { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 36px; padding: 0 10px; border: 1px solid var(--hm-edge); border-radius: var(--ds-radius-pill); background: var(--ds-canvas-elevated); font-size: 14px; font-weight: 500; cursor: pointer; }
.hm-focus button:hover { border-color: var(--ds-ink); }
.hm-focus i { width: 12px; height: 12px; border-radius: 50%; background: var(--hue, var(--ds-ink)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.hm-focus span { color: var(--ds-mute); font-weight: 400; }
.hm-focus button[aria-pressed="true"] { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-canvas); }
.hm-focus button[aria-pressed="true"] span { color: inherit; }
.hm-focus button:focus-visible { outline-offset: -3px; }

.hm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 20px 0 16px; font-size: 14px; line-height: 20px; color: var(--ds-body); }
.hm-bar b { color: var(--ds-ink); font-weight: 600; }
.hm-link { min-height: 24px; padding: 0; border: 0; background: none; color: var(--ds-link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* —— Cards —— */
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; padding-bottom: 96px; }
.hm-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ds-hairline); border-radius: var(--ds-radius-lg); background: var(--ds-canvas-elevated); overflow: hidden; transition: border-color 0.2s, transform 0.35s var(--hm-ease); }
.hm-card:hover { border-color: var(--ds-ink); transform: translateY(-3px); }
.hm-card:has(.hm-card__name :is(a, .hm-name):focus-visible) { outline: 2px solid var(--ds-link); outline-offset: 2px; }
.hm-card .hm-plate { aspect-ratio: 4 / 3; }
.hm-card__tag { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: var(--ds-radius-sm); background: #fff; color: #171717; font-size: 13px; line-height: 20px; }
.hm-tag { font-size: 13px; font-weight: 400; color: var(--ds-body); }
.hm-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 14px; }
.hm-card__name { overflow-wrap: anywhere; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 26px; }
.hm-name { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.hm-card__name :is(a, .hm-name) { text-decoration: none; outline: 0; }
.hm-card__name :is(a, .hm-name)::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hm-card__focus { font-size: 16px; line-height: 24px; color: var(--ds-ink); }
.hm-card__meta { font-size: 14px; line-height: 20px; color: var(--ds-body); }
.hm-card .hm-chips { margin: 12px 0; min-height: 26px; }
.hm-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ds-hairline); min-height: 45px; }
.hm-card__look { position: relative; z-index: 2; margin-left: auto; white-space: nowrap; min-height: 32px; padding: 0 4px; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ds-link); cursor: pointer; }
.hm-card__look:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-card__look::before { content: ""; position: absolute; inset: -6px -8px; }
.hm-card__save { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-color: transparent; }

/* —— List —— */
.hm-list { width: 100%; margin-bottom: 96px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.hm-list th { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--ds-ink); text-align: left; font-weight: 500; color: var(--ds-body); }
.hm-list td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--ds-hairline); vertical-align: middle; }
.hm-list td:first-child :is(a, .hm-name) { display: flex; min-height: 48px; align-items: center; gap: 14px; text-decoration: none; font-size: 16px; font-weight: 600; }
.hm-list td:first-child :is(a, .hm-name):hover { color: var(--ds-link); }
.hm-list .hm-plate { flex: none; width: 48px; height: 48px; border-radius: var(--ds-radius-sm); }
.hm-list .hm-plate__text { font-size: 16px; }
.hm-list .hm-plate.is-live .hm-plate__text { opacity: 1; }
.hm-list .hm-plate canvas { display: none; }
.hm-list td:last-child { text-align: right; padding-right: 0; white-space: nowrap; }

.hm-empty { padding: 64px 0 120px; max-width: 52ch; }
.hm-empty--short { padding: 0 0 32px; }
.hm-empty h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; line-height: 40px; }
.hm-empty p { margin-top: 8px; color: var(--ds-body); }
.hm-empty div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.hm-skel { border: 1px solid var(--ds-hairline); border-radius: var(--ds-radius-lg); overflow: hidden; }
.hm-skel::before { content: ""; display: block; aspect-ratio: 4 / 3; background: var(--ds-hairline-soft); }
.hm-skel::after { content: ""; display: block; height: 172px; }

/* —— Quick look —— */
.hm-look { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ds-canvas-elevated); color: var(--ds-ink); overflow: auto; overscroll-behavior: contain; box-shadow: -1px 0 0 var(--ds-hairline), -24px 0 64px rgba(0, 0, 0, 0.16); }
.hm-look::backdrop { background: rgba(10, 10, 10, 0.4); }
.hm-look[open] { display: flex; flex-direction: column; animation: hm-in 0.32s var(--hm-ease); }
@keyframes hm-in { from { transform: translateX(48px); opacity: 0; } }
.hm-look__bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--ds-canvas-elevated); border-bottom: 1px solid var(--ds-hairline); }
.hm-look__bar p { margin-right: auto; font-size: 14px; color: var(--ds-body); }
.hm-look__body { flex: 1 0 auto; padding: 24px 28px 40px; }
.hm-look__id { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; }
.hm-look__id .hm-plate { aspect-ratio: 4 / 5; border-radius: var(--ds-radius-md); }
.hm-look h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.04em; line-height: 36px; overflow-wrap: anywhere; }
.hm-look__lead { margin-top: 24px; font-size: 18px; line-height: 28px; }
.hm-facts { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0; margin-top: 24px; font-size: 14px; line-height: 20px; border-top: 1px solid var(--ds-hairline); }
.hm-facts > div { display: contents; }
.hm-facts :is(dt, dd) { padding: 12px 0; border-bottom: 1px solid var(--ds-hairline); }
.hm-facts dt { color: var(--ds-body); }
.hm-facts dd { overflow-wrap: anywhere; }
.hm-facts--about { max-width: 640px; }
.hm-facts a { display: inline-block; padding: 2px 0; margin: -2px 0; color: var(--ds-link); text-decoration: underline; text-underline-offset: 3px; }
.hm-look h2:focus { outline: 0; } /* focused by script so a screen reader starts here */
.hm-look__note { margin-top: 20px; }
.hm-look__go { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 14px 28px calc(14px + env(safe-area-inset-bottom)); background: var(--ds-canvas-elevated); border-top: 1px solid var(--ds-hairline); }
.hm-look__go .hm-btn { flex: 1; padding: 0 12px; }

/* —— Profile —— */
.hm-crumb { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0; font-size: 14px; }
.hm-crumb a { color: var(--ds-body); text-decoration: none; min-height: 24px; }
.hm-crumb a:hover { color: var(--ds-ink); text-decoration: underline; text-underline-offset: 3px; }
.hm-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px 64px; align-items: stretch; padding-bottom: 40px; border-bottom: 1px solid var(--ds-hairline); }
.hm-hero h1 { font-size: clamp(48px, 8.6vw, 124px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.88; overflow-wrap: anywhere; }
.hm-hero__text { display: flex; flex-direction: column; gap: 24px; justify-content: space-between; }
.hm-hero__line { overflow-wrap: anywhere; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; text-wrap: pretty; }
.hm-hero__creds { color: var(--ds-body); }
.hm-hero__deg { color: var(--ds-ink); font-weight: 600; }
.hm-hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 16px; color: var(--ds-body); }
.hm-hero__focus { display: inline-flex; align-items: center; gap: 10px; color: var(--ds-ink); font-weight: 500; }
.hm-hero__focus i { width: 14px; height: 14px; border-radius: 50%; background: var(--hue); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.hm-hero .hm-plate { align-self: start; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--ds-radius-lg); }
.hm-go { display: flex; flex-wrap: wrap; gap: 8px; }

.hm-cols { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 64px; padding: 48px 0 120px; align-items: start; }
.hm-cols--short { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
.hm-rail { position: sticky; top: calc(var(--nv-head) + 16px); }
.hm-toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--ds-hairline); font-size: 14px; line-height: 20px; color: var(--ds-body); text-decoration: none; }
.hm-toc a:hover { color: var(--ds-ink); }
.hm-toc a[aria-current] { border-color: var(--ds-ink); color: var(--ds-ink); font-weight: 500; }
.hm-rail .hm-go { margin-top: 24px; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.2s; }
.hm-rail.is-past .hm-go { opacity: 1; visibility: visible; }

.hm-sec + .hm-sec { margin-top: 72px; }
.hm-sec > h2 { margin-bottom: 20px; font-size: 32px; font-weight: 600; letter-spacing: -0.04em; line-height: 40px; }
.hm-note { font-size: 14px; line-height: 20px; color: var(--ds-body); }
.hm-sec > .hm-note { margin: -12px 0 20px; max-width: 62ch; }
.hm-prose { max-width: 62ch; font-size: 18px; line-height: 30px; }
.hm-prose p + p { margin-top: 14px; }

.hm-entry { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 4px 32px; padding: 24px 0; border-top: 1px solid var(--ds-hairline); scroll-margin-top: 96px; }
.hm-entry:target { background: linear-gradient(90deg, color-mix(in srgb, var(--hue) 30%, transparent), transparent 70%); box-shadow: inset 3px 0 0 var(--ds-ink); padding-left: 16px; }
.hm-entry__when { font-size: 14px; line-height: 26px; color: var(--ds-body); }
.hm-entry h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 26px; }
.hm-entry__org { color: var(--ds-body); }
.hm-entry ul:not(.hm-chips) { display: grid; gap: 8px; margin-top: 12px; max-width: 64ch; }
.hm-entry ul:not(.hm-chips) li { position: relative; padding-left: 18px; }
.hm-entry ul:not(.hm-chips) li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-ink); }
.hm-entry p + .hm-chips { margin-top: 12px; }
.hm-entry__text { margin-top: 6px; max-width: 64ch; }
.hm-entry a:not(.hm-chip) { color: var(--ds-link); text-underline-offset: 3px; }

/* The resume's own skill columns, and projects without dates */
.hm-skills, .hm-built { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; }
.hm-skills h3 { margin-bottom: 8px; font-size: 16px; font-weight: 600; line-height: 24px; }
.hm-skills p { color: var(--ds-body); }
.hm-skills p + p { margin-top: 10px; }
.hm-built { gap: 0 32px; }
.hm-entry--wide { grid-template-columns: minmax(0, 1fr); }

/* Skills with evidence: one disc per thing that backs the skill */
.hm-ev { width: 100%; border-collapse: collapse; }
.hm-ev :is(th, td) { padding: 14px 24px 14px 0; border-top: 1px solid var(--ds-hairline); text-align: left; vertical-align: baseline; font-weight: 400; }
.hm-ev thead th { padding: 0 24px 10px 0; border: 0; font-size: 14px; color: var(--ds-body); }
.hm-ev tbody th { width: 30%; font-weight: 600; }
.hm-ev__dots { width: 84px; white-space: nowrap; font-size: 0; }
.hm-ev__dots i { display: inline-block; width: 12px; height: 12px; margin-right: 4px; border-radius: 50%; background: var(--ds-ink); }
.hm-ev a { display: inline-block; margin: 0 16px 0 0; color: var(--ds-ink); text-decoration: underline; text-decoration-color: var(--hm-control); text-underline-offset: 4px; }
.hm-ev a:hover { color: var(--ds-link); text-decoration-color: currentColor; }

.hm-cert { display: grid; grid-template-columns: minmax(0, 1fr) 150px 170px; gap: 4px 24px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--ds-hairline); scroll-margin-top: 96px; }
.hm-cert:target { box-shadow: inset 3px 0 0 var(--ds-ink); padding-left: 16px; }
.hm-cert h3 { font-size: 16px; font-weight: 600; line-height: 24px; }
.hm-cert p { font-size: 14px; line-height: 20px; color: var(--ds-body); }
.hm-cert a, .hm-end a, #more a { display: inline-block; min-height: 24px; line-height: 24px; color: var(--ds-link); text-underline-offset: 3px; }
.hm-cert__proof { display: flex; align-items: center; gap: 8px; }
.hm-cert__proof.is-verified { color: var(--hm-open); font-weight: 500; }
.hm-cert__proof svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hm-contact { padding: clamp(24px, 4vw, 48px); border-radius: var(--ds-radius-lg); background: var(--hue); color: #171717; }
.hm-contact h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.hm-contact p { margin: 12px 0 24px; max-width: 48ch; }
.hm-contact .hm-btn { background: #171717; color: #fff; }
.hm-contact .hm-btn--quiet { background: transparent; color: #171717; border-color: #171717; }
.hm-contact :focus-visible { outline-color: #171717; }
.hm-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 32px; font-size: 14px; color: var(--ds-body); }
.hm-mobilebar { display: none; }

@media (max-width: 1020px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px 32px; }
  .hm-cols { grid-template-columns: minmax(0, 1fr); }
  .hm-rail { position: static; margin-bottom: 40px; }
  .hm-toc { display: flex; gap: 4px 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ds-hairline); }
  .hm-toc a { flex: none; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; }
  .hm-rail .hm-go { display: none; }
  .hm-find__row { flex-wrap: wrap; }
  .hm-focus { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hm-search { flex: 1 1 100%; }
  .hm-select { flex: 1; }
  .hm-select select { width: 100%; max-width: none; }
  .hm-list :is(th, td):nth-child(4) { display: none; }
}

@media (max-width: 900px) {
  .hm-view { display: none; } /* the table needs 900px; below that the board is always cards */
}

@media (max-width: 700px) {
  .hm-wrap { padding: 0 16px; }
  .hm-head { grid-template-columns: minmax(0, 1fr); padding: 32px 0 20px; }
  .hm-search { flex: 1 1 0; }
  .hm-select, .hm-view { display: none; }
  .hm-find__row { flex-wrap: wrap; }
  .hm-find.is-open .hm-select { display: block; flex: 1 1 100%; }
  .hm-filterbtn { display: inline-flex; border-radius: var(--ds-radius-sm); min-height: 48px; border-color: var(--hm-control); }
  .hm-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hm-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .hm-card .hm-plate { aspect-ratio: auto; height: 100%; min-height: 148px; }
  .hm-card__body { padding: 14px 14px 10px; }
  .hm-card__name { padding-right: 40px; font-size: 18px; line-height: 24px; }
  .hm-card .hm-chips { margin: 8px 0; }
  .hm-card__tag { left: 6px; top: 6px; }
  .hm-card__save { right: 4px; top: 4px; background: transparent; }
  .hm-card__save[aria-pressed="true"] { background: transparent; color: var(--ds-ink); }
  .hm-card__foot { padding-top: 6px; }
  .hm-look { inset: 0; width: 100vw; }
  .hm-look__body { padding: 20px 16px 32px; }
  .hm-look__go { padding-inline: 16px; }
  .hm-look__id { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .hm-look h2 { font-size: 26px; line-height: 30px; }
  .hm-facts { grid-template-columns: 104px minmax(0, 1fr); }
  .hm-hero { grid-template-columns: minmax(0, 1fr); }
  .hm-hero .hm-plate { order: -1; aspect-ratio: 4 / 3; }
  .hm-hero .hm-plate--photo { aspect-ratio: 77 / 80; }
  .hm-entry, .hm-cert { grid-template-columns: minmax(0, 1fr); }
  .hm-entry__when:empty, .hm-cert__when:empty { display: none; }
  .hm-ev thead { display: none; }
  .hm-ev :is(tr, th, td) { display: block; width: auto !important; padding: 0; border: 0; }
  .hm-ev tr { position: relative; padding: 14px 0; border-top: 1px solid var(--ds-hairline); }
  .hm-ev__dots { position: absolute; right: 0; top: 19px; }
  .hm-cols { padding-bottom: 140px; }
  .hm-sec + .hm-sec { margin-top: 56px; }
  .hm-mobilebar { position: fixed; inset: auto 0 0; z-index: 25; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ds-canvas-elevated); border-top: 1px solid var(--ds-hairline); transform: translateY(110%); visibility: hidden; transition: transform 0.25s var(--hm-ease), visibility 0.25s; }
  .hm-mobilebar.is-past { transform: none; visibility: visible; }
  .hm-mobilebar .hm-btn { flex: 1; padding: 0 10px; }
  .hm-hero .hm-go .hm-btn { flex: 1; }
}

@media (max-width: 360px) {
  .hm-mobilebar a ~ [data-copy] { display: none; } /* three buttons do not fit with a long first name; Copy link is also in the header */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .hm-card, .hm-btn { transition: none; }
  .hm-card:hover { transform: none; }
  .hm-look[open] { animation: none; }
  .hm-mobilebar, .hm-rail .hm-go { transition: none; }
}

@media print {
  .hm-sample, .hm-crumb, .hm-rail, .hm-go, .hm-mobilebar, .hm-contact, .hm-end { display: none; }
}
