/* Base layout shared by every page: top bar, footer, sections, figures, decision record, closing box, cursor. Every colour, radius and duration comes from a token. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; } /* links to a section land just under the top bar */
body {
  margin: 0;
  background: var(--surface-000);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--duration-standard) var(--ease-standard), color var(--duration-standard) var(--ease-standard);
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }
.no-anim, .no-anim * { transition: none !important; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-sm); text-decoration: none; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-8); }

.mono-label {
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}

/* ---------- Registration ticks (figure-plate grammar) ---------- */
.tick { position: absolute; width: 14px; height: 14px; border-color: var(--line-strong); border-style: solid; border-width: 0; pointer-events: none; }
.tick-tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.tick-tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.tick-bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.tick-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* ============================== NAV ============================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.nav-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: var(--space-6);
  height: 72px; padding: 0 var(--space-6);
  border-bottom: 1px solid transparent;
  transition: background-color var(--duration-standard) var(--ease-standard), border-color var(--duration-standard) var(--ease-standard);
}
.nav.is-solid .nav-inner { background: var(--surface-000); border-bottom-color: var(--line); }
.nav-logo { display: block; flex: none; }
.nav-logo img { width: 112px; height: auto; }
.logo-paper { display: none !important; }
[data-theme="paper"] .logo-carbon { display: none !important; }
[data-theme="paper"] .logo-paper { display: block !important; }
/* The top bar always uses the gradient wordmark, in both themes */
.nav-logo .logo-paper, [data-theme="paper"] .nav-logo .logo-paper { display: none !important; }
[data-theme="paper"] .nav-logo .logo-carbon { display: block !important; }

.nav-links { display: flex; gap: var(--space-1); margin-left: var(--space-5); }
.nav-links a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 20px; color: var(--ink-muted); text-decoration: none;
  transition: color var(--duration-hover) var(--ease-standard), background-color var(--duration-hover) var(--ease-standard);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-200); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2);
  height: 40px; padding: 0 var(--space-3);
  background: transparent; color: var(--ink-muted);
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background-color var(--duration-hover) var(--ease-standard), color var(--duration-hover) var(--ease-standard);
}
.theme-toggle:hover { background: var(--surface-200); color: var(--ink); }
/* Log in: to the Hakken app. Same frame as the theme toggle, so the two read as utilities beside the primary call to action */
.nav-login {
  display: inline-flex; align-items: center; height: 40px; padding: 0 var(--space-4);
  color: var(--ink); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  transition: background-color var(--duration-hover) var(--ease-standard), border-color var(--duration-hover) var(--ease-standard);
}
.nav-login:hover { background: var(--surface-200); border-color: var(--line-strong); }
.mobile-nav .mobile-login { color: var(--accent-text); }

.nav-menu {
  display: none; place-items: center; width: 40px; height: 40px;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.mobile-nav {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; padding: var(--space-2) var(--space-5) var(--space-5);
  background: var(--surface-000); border-bottom: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; font-size: 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* Sticky decision bar */
.decision-bar {
  position: absolute; z-index: 1; left: 0; right: 0; top: 72px;
  background: var(--surface-100); border-bottom: 1px solid var(--line);
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform var(--duration-layer) var(--ease-layer), opacity var(--duration-layer) var(--ease-layer), visibility 0s linear var(--duration-layer);
}
.decision-bar.is-on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.decision-bar-inner {
  display: flex; align-items: center; gap: var(--space-4);
  max-width: 1280px; height: 48px; margin: 0 auto; padding: 0 var(--space-8);
}
.decision-bar-q { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 20px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.decision-bar .mono-label { white-space: nowrap; }
.decision-bar-role:empty { display: none; }
.decision-bar-role {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); color: var(--ink-muted); white-space: nowrap;
}
.decision-bar-change { flex: none; text-decoration: none; }

/* ============================== HERO ============================== */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: 136px 0 120px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-dots-fallback { display: none; }
html:not(.js) .hero-dots-fallback { display: block; }

.hero > .tick-tl, .hero > .tick-tr { top: 96px; }
.hero > .tick-bl, .hero > .tick-br { bottom: 32px; }
.hero > .tick-tl, .hero > .tick-bl { left: 32px; }
.hero > .tick-tr, .hero > .tick-br { right: 32px; }

.hero-inner { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-8); }
.hero-eyebrow { margin: 0 0 28px; }

/* Hero connector: hollow node → signal path → filled node */
.hero-connector { display: flex; align-items: center; height: 12px; margin: 0 0 36px; }
.hc-node {
  flex: none; width: 10px; height: 10px; border-radius: var(--radius-full);
  transform: scale(0); transition: transform var(--duration-node) var(--ease-node);
}
.hc-node-start { border: 2px solid var(--accent); }
.hc-node-end { background: var(--accent); box-shadow: var(--shadow-node); }
.hc-line {
  width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--signal-00), var(--signal-11));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 400ms var(--ease-layer);
}
.hero.c-start .hc-node-start, .hero.c-end .hc-node-end { transform: scale(1); }
.hero.c-line .hc-line { transform: scaleX(1); }

.hero-title {
  margin: 0 0 28px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px); line-height: 1.06; letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-lead { max-width: 600px; margin: 0 0 40px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-ctas .hk-btn { text-decoration: none; }

.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 48px;
  display: flex; justify-content: space-between; gap: var(--space-5);
  max-width: 1280px; margin: 0 auto; padding: 0 var(--space-8);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}

/* Layer Reveal: elements rise 12px into place like the bars of the E */
.js .rv {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--duration-layer) var(--ease-layer), transform var(--duration-layer) var(--ease-layer);
  transition-delay: calc(var(--d, 0) * 60ms);
}
.js .hero.s-eyebrow .hero-eyebrow,
.js .hero.s-text .rv { opacity: 1; transform: none; }
.js .hero.s-text .hero-eyebrow { transition-delay: 0ms; }

/* ============================== SECTIONS ============================== */
.section { position: relative; padding: var(--space-9) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-title {
  margin: var(--space-4) 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: 0;
}
.section-lead { max-width: 600px; margin: 0; font-size: 17px; line-height: 27px; color: var(--ink-muted); }

/* ============================== FRONT DOOR ============================== */
.fd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }

.fd-card.hk-card {
  position: relative; min-height: 320px; padding: 28px;
  justify-content: space-between; gap: var(--space-5);
  transition: border-color var(--duration-hover) var(--ease-standard), background-color var(--duration-standard) var(--ease-standard), box-shadow var(--duration-node) var(--ease-standard);
}
.fd-card.hk-card:hover { background: var(--surface-200); }
.fd-card.is-selected:hover { background: var(--surface-100); }
.fd-card > span { display: block; }
.fd-card-top { display: flex !important; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.fd-card-q {
  font-family: var(--font-display); font-size: 26px; line-height: 32px; letter-spacing: 0.005em; color: var(--ink);
  max-width: 15ch;
}
.fd-card-sponsor { margin-top: var(--space-3) !important; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.fd-card-foot { display: flex !important; flex-direction: column; gap: 6px; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.fd-card-out { font-size: 14px; line-height: 22px; color: var(--ink); }
.fd-card-state { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }

/* Pictogram: ink by default; the lime decision accent appears only on the selected card */
.ico { flex: none; width: 44px; height: 44px; color: var(--ink-muted); transition: color var(--duration-standard) var(--ease-standard); }
.ico svg { width: 100%; height: 100%; }
.ico .lime { stroke: currentColor; transition: stroke var(--duration-node) var(--ease-standard); }
.ico .lime-fill { fill: currentColor; transition: fill var(--duration-node) var(--ease-standard); }
.is-selected .ico { color: var(--ink); }
.is-selected .ico .lime { stroke: var(--decision-lime); }
.is-selected .ico .lime-fill { fill: var(--decision-lime); }

/* Mini connector inside each card: activates on selection (Network Activation) */
.mini-conn { display: inline-flex; align-items: center; }
.mini-conn i { display: block; }
.mini-conn .n1, .mini-conn .n2 { width: 8px; height: 8px; border-radius: var(--radius-full); border: 1.5px solid var(--line-control); transition: border-color var(--duration-node) var(--ease-standard), background-color var(--duration-node) var(--ease-standard), box-shadow var(--duration-node) var(--ease-standard), transform var(--duration-node) var(--ease-node); }
.mini-conn .ln { position: relative; width: 40px; height: 2px; background: var(--line-strong); overflow: hidden; }
.mini-conn .ln::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-layer) 80ms; }
.is-selected .mini-conn .n1 { border-color: var(--accent); }
.is-selected .mini-conn .ln::after { transform: scaleX(1); }
.is-selected .mini-conn .n2 { border-color: var(--accent); background: var(--accent); box-shadow: var(--shadow-node); transition-delay: 360ms; transform: scale(1.15); }
.is-selected .fd-state-text { color: var(--accent-text); }

.fd-more, .fd-role { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-5); }
.fd-more { padding-top: var(--space-5); border-top: 1px solid var(--line); margin-top: var(--space-6); }
.fd-more .mono-label, .fd-role .mono-label { min-width: 132px; }
.fd-more-list, .fd-role-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 36px; padding: 6px 14px;
  font: 500 14px/20px var(--font-sans); color: var(--ink); text-align: left;
  background: var(--surface-100); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color var(--duration-hover) var(--ease-standard), background-color var(--duration-hover) var(--ease-standard);
}
.chip:hover { border-color: var(--line-control); background: var(--surface-200); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.chip-role { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.chip .chip-dot { width: 6px; height: 6px; border-radius: var(--radius-full); border: 1.5px solid var(--line-control); }
.chip[aria-pressed="true"] .chip-dot { border-color: var(--accent); background: var(--accent); }

/* ============================== SHARED: PLATES, FIGURES, HEADS ============================== */
.plate, .figure { position: relative; margin: 0; padding: var(--space-5); background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plate > .tick, .figure > .tick { width: 10px; height: 10px; }
.plate > .tick-tl, .plate > .tick-tr, .figure > .tick-tl, .figure > .tick-tr { top: 8px; }
.plate > .tick-bl, .plate > .tick-br, .figure > .tick-bl, .figure > .tick-br { bottom: 8px; }
.plate > .tick-tl, .plate > .tick-bl, .figure > .tick-tl, .figure > .tick-bl { left: 8px; }
.plate > .tick-tr, .plate > .tick-br, .figure > .tick-tr, .figure > .tick-br { right: 8px; }
.plate-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-md); }
.plate-media video { width: 100%; height: 100%; object-fit: cover; }
.plate-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3);
  margin-top: var(--space-4);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
/* Figure media takes the web cut's own ground, so the plate never shows a seam while it loads */
.figure-media { position: relative; overflow: hidden; background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-md); }
[data-theme="paper"] .figure-media { background: var(--surface-000); }
.figure-media img { display: block; width: 100%; height: 100%; }
.r-2-1 { aspect-ratio: 2 / 1; }

.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-5); max-width: none; }
.section-head-row > div { max-width: 760px; }
.section-head-row .hk-btn { text-decoration: none; }

/* Layer Reveal on section entry: rise 12px into place, once */
.js .reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--duration-layer) var(--ease-layer), transform var(--duration-layer) var(--ease-layer);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Scenario Morph: content swaps fade down and rise back into place */
.morph > * { transition: opacity var(--duration-layer) var(--ease-layer), transform var(--duration-layer) var(--ease-layer); }
.morph.is-out > * { opacity: 0; transform: translateY(8px); transition-duration: 160ms; transition-timing-function: var(--ease-standard); }

/* ============================== 05 CLARITY · COMPARISON · CONFIDENCE ============================== */
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.pillar { padding-top: var(--space-5); border-top: 1px solid var(--line-strong); }
.pillar-ico { display: block; width: 40px; height: 40px; color: var(--ink); }
.pillar-name { margin: var(--space-5) 0 var(--space-2); font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 34px; }
.pillar p { margin: 0; max-width: 320px; font-size: 16px; line-height: 26px; color: var(--ink-muted); }

.compare { margin-top: var(--space-8); padding: 28px; background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.compare-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-6); }
.compare-head .mono-label { margin: 0; }
.compare-title { margin: var(--space-2) 0 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 32px; }
.compare-labels { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.compare-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-6); align-items: start; }
.compare-tabs { display: flex; flex-direction: column; gap: var(--space-2); }
.cmp-tab {
  display: grid; gap: 6px; padding: 16px 18px; text-align: left;
  font: inherit; color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  transition: border-color var(--duration-hover) var(--ease-standard), background-color var(--duration-hover) var(--ease-standard);
}
.cmp-tab:hover { border-color: var(--line-control); background: var(--surface-200); }
.cmp-tab.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.cmp-tab .mono-label { font-size: 10px; }
.cmp-tab-name { font-family: var(--font-display); font-size: 20px; line-height: 26px; }
.cmp-tab-score { display: flex; align-items: center; gap: 10px; }
.cmp-tab-bar { flex: 1; height: 3px; overflow: hidden; background: var(--line-strong); border-radius: 2px; }
.cmp-tab-bar i { display: block; height: 100%; background: var(--ink-muted); }
.cmp-tab.is-selected .cmp-tab-bar i { background: var(--accent); }
.cmp-tab-num { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 500; }
.compare-panel { border-radius: var(--radius-md); }
.cmp-rows { display: grid; gap: 14px; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 200px) 40px minmax(0, 1fr) 32px; align-items: center; gap: 12px; }
.cmp-name { font-size: 14px; line-height: 20px; }
.cmp-weight { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent-text); }
.cmp-track { position: relative; height: 8px; background: var(--surface-200); border-radius: 4px; }
.cmp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); border-radius: 4px; transition: width var(--duration-layer) var(--ease-layer); }
.cmp-tick { position: absolute; z-index: 1; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink-muted); border-radius: 1px; }
.cmp-tick.is-self { display: none; }
.cmp-val { font-family: var(--font-mono); font-size: 14px; font-weight: 500; text-align: right; }
.cmp-legend { margin: 4px 0 0; font-size: 10px; }
.cmp-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.cmp-score { display: flex; flex-direction: column; gap: 4px; }
.cmp-score-num { font-family: var(--font-display); font-size: 52px; line-height: 56px; }
.cmp-notes { display: grid; gap: var(--space-3); }
.cmp-notes p { display: grid; gap: 4px; margin: 0; }

/* ============================== 06 THE CATEGORY ============================== */
.cat-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: center; }
.not-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.not-list li {
  padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.cat-note { max-width: 520px; margin: var(--space-5) 0 0; color: var(--ink-muted); }

/* ============================== 07 USE CASES ============================== */
.uc-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: center; margin-bottom: var(--space-7); }
.uc-feature-eyebrow { margin: 0 0 var(--space-3); color: var(--accent-text); }
.uc-feature-title { margin: 0 0 var(--space-4); font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 38px; }
.uc-feature-text { margin: 0 0 var(--space-4); font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.uc-feature-text b { font-weight: 500; color: var(--ink); }
.uc-feature-module { margin: 0 0 var(--space-5); padding: var(--space-4); font-size: 14px; line-height: 22px; background: var(--surface-100); border-left: 2px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.uc-feature-module .mono-label { display: block; margin-bottom: 4px; }
#ucSecondary { text-decoration: none; }

.uc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.uc-card {
  display: flex; flex-direction: column; gap: var(--space-3); min-height: 300px; padding: 20px;
  color: var(--ink); text-decoration: none; background: var(--surface-100);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color var(--duration-hover) var(--ease-standard), background-color var(--duration-hover) var(--ease-standard);
}
.uc-card:hover { border-color: var(--line-control); background: var(--surface-200); }
.uc-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.uc-top { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.uc-tag {
  padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs);
  font-family: var(--font-mono); font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
}
.uc-tag-mine { border-color: var(--accent); color: var(--accent-text); }
.uc-q { font-family: var(--font-display); font-size: 20px; line-height: 26px; }
.uc-sponsor { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.uc-out { display: grid; gap: 4px; margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.uc-link { font-size: 13px; line-height: 20px; color: var(--accent-text); }

/* ============================== 08 SELECTED WORK ============================== */
.work-note { margin: 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.case { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.case.is-mine { border-color: var(--accent); }
.case-mine { align-self: flex-start; margin-bottom: var(--space-4); }
.case-tag { margin: 0 0 var(--space-3); }
.case-title { margin: 0 0 var(--space-3); font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 28px; }
.case-body { flex: 1; margin: 0 0 var(--space-5); color: var(--ink-muted); }
.case-metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.case-metric-v { font-family: var(--font-display); font-size: 32px; line-height: 36px; }
.case-metric-l { margin-right: auto; font-size: 14px; color: var(--ink-muted); }
.case-link { margin-top: var(--space-4); font-size: 14px; color: var(--accent-text); text-decoration: none; }
.case-link:hover { text-decoration: underline; }
.case.has-link { border-color: var(--line-control); }

/* ============================== 09 TRUST & GOVERNANCE ============================== */
.trust-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-8); align-items: start; }
.principles { margin: var(--space-6) 0 var(--space-5); padding: 0; list-style: none; }
.principles li { display: grid; gap: 4px; padding: var(--space-4) 0; border-top: 1px solid var(--line); color: var(--ink-muted); }
.principle-name { font-weight: 500; color: var(--ink); }
.trust-link { margin-left: calc(-1 * var(--space-4)); text-decoration: none; }

.record { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-4); padding: 28px 28px 28px 20px; background: var(--surface-100); border: 1px solid var(--line-strong); border-radius: var(--radius-xl); }
.record-rail { position: relative; }
.record-rail::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 4px; width: 2px; margin-left: -1px; background: var(--line-strong); }
/* Decision Highlight: the single lime node on this view resolves once the record is on screen */
.record-node {
  position: absolute; left: 50%; top: 2px; width: 16px; height: 16px; margin-left: -8px;
  background: var(--decision-lime); border-radius: var(--radius-full); box-shadow: 0 0 0 5px var(--accent-soft);
  transform: scale(0); transition: transform var(--duration-node) var(--ease-node) 320ms;
}
[data-theme="paper"] .record-node { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 6px var(--accent-soft); }
.record.is-in .record-node, html:not(.js) .record-node { transform: scale(1); }
.record-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.record-head .mono-label { margin: 0; }
.record-title { margin: var(--space-3) 0 var(--space-5); font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 34px; }
.record-fields { display: grid; margin: 0; }
.record-fields div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: var(--space-4); padding: 10px 0; border-top: 1px solid var(--line); }
.record-fields dt { font-family: var(--font-mono); font-size: 11px; line-height: 20px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.record-fields dd { margin: 0; font-size: 14px; line-height: 20px; }
.record-foot { margin-top: var(--space-4); }

/* ============================== 10 INSIGHTS ============================== */
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.note {
  display: flex; flex-direction: column; gap: var(--space-3); min-height: 260px; padding: 28px;
  color: var(--ink); text-decoration: none; background: var(--surface-000);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color var(--duration-hover) var(--ease-standard), background-color var(--duration-hover) var(--ease-standard);
}
.note:hover { border-color: var(--line-control); background: var(--surface-100); }
/* Each note's cover illustration sits at the top of its card */
.note-media { display: block; margin: -12px -12px var(--space-2); aspect-ratio: 16 / 9; overflow: hidden; background: #0c0e11; border: 1px solid var(--line); border-radius: var(--radius-md); }
.note-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-layer); }
.note:hover .note-media img { transform: scale(1.03); }
.note .mono-label { margin: 0; }
.note-title { font-family: var(--font-display); font-size: 24px; line-height: 30px; }
.note-body { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.note-link { margin-top: auto; font-size: 14px; color: var(--accent-text); }

/* ============================== 11 CLOSE ============================== */
.close-inner { position: relative; overflow: hidden; padding: var(--space-8); background: var(--surface-100); border: 1px solid var(--line-strong); border-radius: var(--radius-xl); }
.close-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.6px, transparent 1.6px); background-size: var(--dot-grid) var(--dot-grid);
  -webkit-mask-image: linear-gradient(to left, black, transparent 75%); mask-image: linear-gradient(to left, black, transparent 75%);
}
.close-inner > * { position: relative; }
.close-title { max-width: 900px; margin: var(--space-4) 0 var(--space-7); font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
/* The three steps read as one connector: hollow, hollow, then the filled outcome node */
.close-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: 0 0 var(--space-7); padding: 0; list-style: none; }
.close-steps li { position: relative; display: grid; align-content: start; gap: var(--space-2); padding-top: var(--space-5); border-top: 2px solid var(--accent); color: var(--ink-muted); }
.close-steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border: 2px solid var(--accent); border-radius: var(--radius-full); background: var(--surface-100); }
.close-steps li:last-child::before { background: var(--accent); box-shadow: var(--shadow-node); }
.close-idx { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; color: var(--accent-text); }
.close-step-name { font-family: var(--font-display); font-size: 22px; line-height: 28px; color: var(--ink); }
.close-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.close-cta .hk-btn { text-decoration: none; }
.close-note { margin: 0; color: var(--accent-text); }

/* ============================== HOW IT WORKS — STAGE SCROLL ============================== */
/* Text steps scroll in normal flow (readable, accessible); the plate stays pinned and its build
   animation is driven by scroll position. Below 1024px each step carries its own looping plate. */
.ss { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-7); align-items: start; }
.ss-steps { list-style: none; margin: 0; padding: 0; }
.ss-step {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 58vh; padding: 6vh 0 6vh var(--space-6);
  border-left: 1px solid var(--line);
}
.ss-step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 14vh; }
.ss-step:last-child { min-height: 54vh; padding-bottom: 26vh; } /* room for the last stage to reach the photo on short screens */
.ss-step::before {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(var(--fill, 0)); transform-origin: top;
}
.ss-step::after {
  content: ""; position: absolute; left: -6px; top: var(--node-y, 50%); width: 10px; height: 10px; margin-top: -5px;
  border-radius: var(--radius-full); border: 2px solid var(--line-control); background: var(--surface-000);
  transition: border-color var(--duration-node) var(--ease-standard), background-color var(--duration-node) var(--ease-standard), box-shadow var(--duration-node) var(--ease-standard);
}
.ss-step:first-child::after { --node-y: calc(14vh + 13px); }
.ss-step.is-active::after, .ss-step.is-past::after { border-color: var(--accent); }
.ss-step.is-active::after { background: var(--accent); box-shadow: var(--shadow-node); }

.ss-idx { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); transition: color var(--duration-standard) var(--ease-standard); }
.ss-name {
  margin: var(--space-2) 0 var(--space-3);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: 0; text-transform: uppercase;
  color: var(--ink-muted); transition: color var(--duration-standard) var(--ease-standard);
}
.ss-text { margin: 0; max-width: 460px; font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.ss-yours { margin: var(--space-5) 0 0; max-width: 460px; padding: var(--space-4); background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-md); }
.ss-yours[hidden] { display: none; }
.ss-yours .mono-label { display: block; margin-bottom: 6px; color: var(--accent-text); }
.ss-yours p { margin: 0; color: var(--ink); }
.ss-step.is-active .ss-idx { color: var(--accent-text); }
.ss-step.is-active .ss-name { color: var(--ink); }
.ss-step.is-active .ss-text { color: var(--ink); }

.ss-stage { position: sticky; top: max(104px, calc(50vh - 200px)); } /* the card, now without its caption, sits in the middle of the screen */
.ss-frame { position: relative; padding: var(--space-5); background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ss-frame > .tick { width: 10px; height: 10px; }
.ss-frame > .tick-tl, .ss-frame > .tick-tr { top: 8px; }
.ss-frame > .tick-bl, .ss-frame > .tick-br { bottom: 8px; }
.ss-frame > .tick-tl, .ss-frame > .tick-bl { left: 8px; }
.ss-frame > .tick-tr, .ss-frame > .tick-br { right: 8px; }
.ss-head, .ss-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.ss-head { margin-bottom: var(--space-4); }
.ss-caption { margin-top: var(--space-4); }
.ss-progress { display: flex; gap: 6px; }
.ss-progress i { position: relative; display: block; width: 32px; height: 2px; background: var(--line-strong); overflow: hidden; }
.ss-progress i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.ss-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-md); }
/* One layer per stage: three product captures and the scenario comparison. The active one rises into place. */
.ss-layer {
  position: absolute; inset: 0; display: block; pointer-events: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--duration-layer) var(--ease-layer), transform var(--duration-layer) var(--ease-layer), visibility 0s linear var(--duration-layer);
  visibility: hidden;
}
.ss-layer.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; pointer-events: auto; }
.ss-layer video { width: 100%; height: 100%; object-fit: cover; }
.ss-layer-compare { overflow: auto; }

.ss-mobile-media { display: none; margin: var(--space-5) 0 0; }
.ss-mobile-media .plate-media { background: var(--surface-000); }
.ss-mobile-media video { width: 100%; height: 100%; object-fit: cover; }
.ss-mobile-media .plate-caption { margin-top: var(--space-3); }
.ss-mobile-compare:empty { display: none !important; }

@media (max-width: 1024px) {
  .ss { grid-template-columns: minmax(0, 1fr); }
  .ss-stage { display: none; }
  .ss-step, .ss-step:first-child, .ss-step:last-child { min-height: 0; padding: var(--space-6) 0 var(--space-6) var(--space-5); justify-content: flex-start; }
  .ss-step::after { top: calc(var(--space-6) + 8px); }
  .ss-step:first-child::after { --node-y: auto; }
  .ss-name, .ss-text { color: var(--ink); }
  .ss-idx { color: var(--accent-text); }
  .ss-mobile-media { display: block; }
}

/* ============================== FOOTER + PROTOTYPE BAR ============================== */
.foot { padding: var(--space-8) 0 96px; border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 10fr); gap: var(--space-7); }
@media (max-width: 1280px) { .foot-top { grid-template-columns: minmax(0, 1fr); } }
.foot-brand img { width: 112px; height: auto; }
.foot-brand .mono-label { max-width: 220px; margin: var(--space-3) 0 0; }
.foot-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5); }
.foot-cols div { display: flex; flex-direction: column; gap: var(--space-2); }
.foot-cols .mono-label { margin: 0 0 4px; }
.foot-cols a, .foot-legal a { font-size: 14px; line-height: 20px; color: var(--ink-muted); text-decoration: none; transition: color var(--duration-hover) var(--ease-standard); }
.foot-cols a:hover, .foot-legal a:hover { color: var(--ink); }
.foot-address { margin-top: var(--space-2); font-size: 13px; line-height: 20px; font-style: normal; color: var(--ink-muted); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.foot-legal { display: flex; gap: var(--space-5); margin-left: auto; }


/* ============================== RESPONSIVE ============================== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-menu { display: grid; }
}
@media (max-width: 1180px) {
  .uc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .compare-body, .cat-grid, .uc-feature, .trust-grid, .foot-top { grid-template-columns: minmax(0, 1fr); }
  .cat-grid, .uc-feature, .trust-grid { gap: var(--space-7); }
  .work-grid, .notes-grid { grid-template-columns: minmax(0, 1fr); }
  .compare-tabs { flex-direction: row; overflow-x: auto; }
  .cmp-tab { flex: 1 0 200px; }
  .fd-grid { grid-template-columns: minmax(0, 1fr); }
  .fd-card.hk-card { min-height: 0; }
  .fd-card-q { max-width: none; }
}
@media (max-width: 720px) {
  .container, .hero-inner, .hero-meta, .decision-bar-inner { padding-left: var(--space-5); padding-right: var(--space-5); }
  .nav-inner { padding: 0 var(--space-5); gap: var(--space-3); }
  .nav-cta, .nav-login { display: none; }
  .theme-label { display: none; }
  .hero { padding: 120px 0 112px; }
  .hero > .tick { display: none; }
  .hero-meta span:first-child { display: none; }
  .hero-lead { font-size: 16px; line-height: 26px; }
  .hero-ctas .hk-btn { width: 100%; }
  .section { padding: var(--space-8) 0; }
  .fd-more .mono-label, .fd-role .mono-label { min-width: 0; width: 100%; }
  .decision-bar-role, .decision-bar .mono-label { display: none; }
  .plate, .figure { padding: var(--space-3); }
  .figure-media.r-square-sm { aspect-ratio: 1 / 1; }
  .pillar-grid, .uc-grid, .close-steps { grid-template-columns: minmax(0, 1fr); }
  .uc-card { min-height: 0; }
  .compare, .close-inner { padding: var(--space-5); }
  .cmp-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .cmp-track { grid-column: 1; }
  .cmp-foot { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .record-fields div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-legal { margin-left: 0; }
  .close-cta .hk-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; animation: none !important; }
}

/* ============================== CURSOR: the A from the Hakken logo ==============================
   Default: the A in the logo gradient, its tip is the click point. Anything clickable: the A in solid cyan with a
   node under it. Text fields keep the I-beam; disabled controls keep "not allowed"; the 3D journey keeps its own grab.
   Plain glyph, no outline or glow. */
html { cursor: url("../img/cursor/hakken-a.svg") 16 3, auto; }
a[href], button:not(:disabled), [role="button"], summary, select:not(:disabled), label,
input[type="checkbox"]:not(:disabled), input[type="radio"]:not(:disabled), input[type="submit"]:not(:disabled), input[type="button"]:not(:disabled),
.hk-btn:not(:disabled), .hk-select:not(:disabled), .hk-switch:not(.is-disabled), .hk-card.is-interactive, .hk-scenario.is-interactive {
  cursor: url("../img/cursor/hakken-a-link.svg") 16 3, pointer !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):not(:disabled), textarea:not(:disabled), [contenteditable="true"] {
  cursor: text !important;
}
@media (forced-colors: active) {
  html { cursor: auto; }
  a[href], button:not(:disabled), [role="button"], summary, label, .hk-btn:not(:disabled) { cursor: pointer !important; }
}

/* ============================== TOP BAR (tools/nav.py) ============================== */
/* Buttons that are links never show a link underline */
a.hk-btn { text-decoration: none; }
/* The nav button turns filled when the page's own call to action is out of view: fade between the two */
.nav-cta { transition: background-color .25s var(--ease-standard), color .25s var(--ease-standard), border-color .25s var(--ease-standard); }
/* Log in: a quiet text link for existing clients */
.nav-login { height: auto; padding: 8px 4px; border: 0; border-radius: 0; background: none; color: var(--ink-muted); font-weight: 500; }
.nav-login:hover { background: none; color: var(--ink); }
/* Use Cases: the link opens the hub; hovering or tabbing to it shows the five use cases and who they serve */
.nav-dd { position: relative; display: flex; }
.nav-links .nav-dd-link { display: inline-flex; align-items: center; gap: 4px; }
.nav-dd-chev { transition: transform .2s var(--ease-standard); }
.nav-dd:hover .nav-dd-chev, .nav-dd:focus-within .nav-dd-chev { transform: rotate(180deg); }
.nav-dd-panel { position: absolute; top: 100%; left: -16px; z-index: 5; padding-top: 14px;
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .18s var(--ease-standard), transform .18s var(--ease-standard), visibility 0s linear .18s; }
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-dd-box { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-5); width: 680px; padding: 20px;
  background: var(--surface-000); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 48px rgba(0, 0, 0, .18); }
.nav-dd-k { margin: 0 0 8px; color: var(--ink-faint, var(--ink-muted)); }
.nav-dd-main, .nav-dd-side { display: flex; flex-direction: column; }
.nav-links .nav-dd-panel a { padding: 0; border-radius: var(--radius-sm); box-shadow: none; }
.nav-links .nav-dd-panel .nav-dd-uc { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding: 9px 10px; margin: 0 -10px; }
.nav-links .nav-dd-panel .nav-dd-uc:hover { background: var(--surface-200); }
.nav-dd-idx { grid-row: span 2; padding-top: 3px; color: var(--accent-text); }
.nav-dd-name { font-size: 14px; line-height: 20px; color: var(--ink); }
.nav-dd-q { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.nav-links .nav-dd-panel .nav-dd-role { padding: 7px 10px; margin: 0 -10px; font-size: 14px; line-height: 20px; color: var(--ink); }
.nav-links .nav-dd-panel .nav-dd-role:hover { background: var(--surface-200); }
.nav-links .nav-dd-panel .nav-dd-all { margin-top: auto; padding-top: var(--space-4); font-size: 14px; color: var(--accent-text); }
.nav-links .nav-dd-panel .nav-dd-all:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .nav-dd-panel, .nav-dd-chev { transition: none; } }
/* Menu button: three lines, a cross while the menu is open */
.nav-menu .ico-close, .nav-menu[aria-expanded="true"] .ico-open { display: none; }
.nav-menu[aria-expanded="true"] .ico-close { display: block; }
/* Phone and tablet menu: the five use cases under Use Cases, the current page marked, the button last */
.mobile-sub { display: flex; flex-direction: column; padding: 2px 0 10px 14px; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-sub a { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 14px; color: var(--ink-muted); border-bottom: 0; }
.mobile-sub .mono-label { color: var(--accent-text); }
.mobile-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); padding-left: 12px; }
.mobile-nav .mobile-cta { margin-top: var(--space-4); justify-content: center; border-bottom: 1px solid transparent; }

/* ============================== WHAT CHANGES · 3D MASSING VIEWER (massing.js) ============================== */
.cmp-viewer { position: relative; aspect-ratio: 16 / 9; margin: 0 0 var(--space-5); overflow: hidden; cursor: grab;
  background: var(--surface-200); background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 18px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-md); }
.cmp-viewer.is-dragging { cursor: grabbing; }
.cmp-viewer-still, .cmp-viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp-viewer-still { object-fit: cover; transition: opacity .4s var(--ease-standard); }
.cmp-viewer.is-3d .cmp-viewer-still { opacity: 0; }
.cmp-viewer-canvas { display: block; touch-action: pan-y; }
.cmp-viewer-tag, .cmp-viewer-hint { position: absolute; z-index: 1; margin: 0; padding: 3px 8px; font-size: 10px; pointer-events: none;
  background: color-mix(in srgb, var(--surface-000) 82%, transparent); border-radius: var(--radius-xs); }
.cmp-viewer-tag { top: 12px; left: 12px; color: var(--ink); }
.cmp-viewer-hint { right: 12px; bottom: 12px; color: var(--ink-muted); }
.cmp-viewer:not(.is-3d) .cmp-viewer-hint { display: none; }
/* each scenario card shows its massing */
.cmp-tab { grid-template-columns: minmax(0, 1fr) 96px; column-gap: var(--space-4); }
.cmp-tab > :not(.cmp-tab-thumb) { grid-column: 1; }
.cmp-tab-thumb { grid-column: 2; grid-row: 1 / span 3; align-self: center; overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cmp-tab-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmp-tab.is-selected .cmp-tab-thumb { border-color: var(--accent); }
/* the recommended scenario carries the one lime decision marker */
.cmp-rec { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: var(--ink-muted); }
.cmp-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--decision-lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--decision-lime) 25%, transparent); }
.cmp-legend { display: flex; align-items: center; gap: 8px; }
.cmp-legend-tick { display: inline-block; width: 2px; height: 12px; background: var(--ink-muted); border-radius: 1px; }
@media (max-width: 1024px) { .cmp-tab { grid-template-columns: minmax(0, 1fr); } .cmp-tab-thumb { display: none; } }
@media (max-width: 720px) { .cmp-viewer-tag { font-size: 9px; } }
/* the score, opportunity and trade-off sit under the scenario cards */
.compare-side { display: grid; gap: var(--space-5); align-content: start; }
.compare-side .cmp-foot { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin: 0; padding: var(--space-5) 0 0; }
@media (max-width: 1024px) {
  .compare-side { display: contents; }
  .compare-tabs { order: 1; } .compare-panel { order: 2; }
  .compare-side .cmp-foot { order: 3; padding-top: var(--space-5); }
}
/* Compact: the whole comparison (scenarios, viewer, bars and score) fits on one screen */
.compare { padding: 22px 24px; }
.compare-head { margin-bottom: var(--space-4); }
.compare-title { font-size: 24px; line-height: 30px; }
.compare-body { gap: var(--space-5); }
.cmp-tab { padding: 12px 16px; gap: 4px; }
.cmp-tab-thumb { aspect-ratio: 2 / 1; }
.cmp-viewer { aspect-ratio: auto; height: min(calc((100vw - 2 * var(--gutter, 64px)) * .62 / 2.1), 38vh); min-height: 220px; width: 100%; margin-bottom: var(--space-4); }
.cmp-rows { gap: 8px; }
.cmp-legend { margin-top: 2px; }
.compare-side { gap: var(--space-4); }
.compare-side .cmp-foot { gap: var(--space-3); padding-top: var(--space-4); }
.cmp-score-num { font-size: 44px; line-height: 48px; }
.cmp-notes { gap: var(--space-2); }
.cmp-notes p { font-size: 14px; line-height: 21px; }
@media (max-width: 1024px) { .cmp-viewer { height: auto; aspect-ratio: 2.1 / 1; min-height: 0; } }

/* The logo is the way home: a gentle fade on hover and a clear focus ring, in the top bar and the footer */
.nav-logo, .foot-logo { display: inline-block; border-radius: var(--radius-sm); transition: opacity .2s var(--ease-standard); }
.nav-logo:hover, .foot-logo:hover { opacity: .72; }
.nav-logo:focus-visible, .foot-logo:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 4px; }
.foot-logo img { display: block; }


/* TEST · primary buttons (Book a demonstration) in the blue of the N in the Hakken wordmark (gradient stop #1c74f2),
   the same on Paper and Carbon. Remove this block to return to the accent teal. */
:root { --cta: #1c74f2; --cta-hover: #1663dc; --on-cta: #ffffff; }
.hk-btn-primary, [data-theme] .hk-btn-primary { background: var(--cta); color: var(--on-cta); border-color: var(--cta); }
.hk-btn-primary:hover, [data-theme] .hk-btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--on-cta); }
.hk-btn-primary:active { background: var(--cta); filter: brightness(0.92); }
