:root {
  color-scheme: light;
  --km-font: "Noto Sans", system-ui, sans-serif;
  --ink: #17201c;
  --ink-soft: #4f5d56;
  --paper: #f5f7f5;
  --white: #ffffff;
  --green: #153f35;
  --green-2: #226b56;
  --orange: #c35a31;
  --gold: #c99d48;
  --red: #a84237;
  --line: #d9dfdb;
  --muted: #eef1ef;
  --shadow: 0 16px 48px rgba(23, 32, 28, 0.09);
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button,
select,
input {
  font: inherit;
}
a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(217, 223, 219, 0.8);
  background: rgba(245, 247, 245, 0.9);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.site-header nav {
  display: flex;
  gap: 30px;
  margin-right: auto;
  margin-left: 46px;
}
.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--green-2);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  flex: 0 0 auto;
}
.icon-link:hover {
  color: var(--green-2);
  border-color: #b9c4bd;
}
.icon-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.cv-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}
.cv-pill:hover {
  background: #0d3028;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px max(6vw, 24px) 52px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(
      circle at 87% 18%,
      rgba(195, 90, 49, 0.11),
      transparent 21%
    ),
    radial-gradient(circle at 79% 60%, rgba(21, 63, 53, 0.09), transparent 28%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  top: 7%;
  border: 1px solid rgba(21, 63, 53, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 76px rgba(21, 63, 53, 0.025),
    0 0 0 152px rgba(21, 63, 53, 0.018);
  pointer-events: none;
}
.eyebrow,
.kicker {
  color: var(--green-2);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow span {
  width: 25px;
  height: 2px;
  background: var(--orange);
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.avatar-ring {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.04em;
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(21, 63, 53, 0.18);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--green-2);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fae7a;
  box-shadow: 0 0 0 3px rgba(63, 174, 122, 0.18);
}
.hero h1 {
  margin: 0 0 24px;
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 500;
  text-wrap: balance;
}
.hero h1 em {
  color: var(--green-2);
  font-style: italic;
  font-weight: 400;
}
.hero-copy {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  padding: 15px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.button.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 10px 22px rgba(21, 63, 53, 0.15);
}
.button.primary:hover {
  background: #0d3028;
  transform: translateY(-1px);
}
.button.ghost {
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
  gap: 10px;
}
.button.ghost:hover {
  border-color: #b9c4bd;
  background: var(--muted);
}
.resume-link,
.privacy-note {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}
.resume-link:hover {
  color: var(--green-2);
}
.lock {
  color: var(--green-2);
  margin-right: 6px;
  font-size: 8px;
}

.case-section {
  padding: 110px max(4vw, 20px);
  background: #e9eeeb;
}
.section-heading {
  max-width: 1220px;
  margin: 0 auto 38px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: end;
}
.section-heading h2,
.method-intro h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  margin: 10px 0 0;
  text-wrap: balance;
}
.section-heading > p {
  margin: 0 0 7px;
  color: var(--ink-soft);
}
.mock-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 1220px;
  margin: 0 auto 16px;
  padding: 13px 16px;
  background: #dce7e1;
  border: 1px solid #c6d6ce;
  color: #355046;
  font-size: 12px;
}
.mock-banner > span {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  height: 20px;
  border: 1px solid #719081;
  border-radius: 50%;
  font-weight: 800;
}
.mock-banner p {
  margin: 1px 0 0;
}

.dashboard-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 10px;
  background: #f9faf9;
  box-shadow: var(--shadow);
}
.dashboard-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.dashboard-titlebar p {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green-2);
}
.dashboard-titlebar h3 {
  margin: 3px 0 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}
.reset-button {
  border: 0;
  background: transparent;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  padding: 8px;
}
.reset-button:hover {
  background: var(--muted);
}
.reset-button:focus-visible,
.button:focus-visible,
select:focus-visible,
input:focus-visible,
.bubble:focus-visible,
tbody tr:focus-visible,
.period-pill:focus-visible,
.toggle-pill:focus-visible,
.filtere-btn:focus-visible,
.detail-close:focus-visible,
th.sortable:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: -2px;
}
select,
.search-field input,
.table-filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
  font-size: 13px;
  outline: none;
}
select:focus,
.search-field input:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(34, 107, 86, 0.1);
}
label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* Matrix toolbar: period pills + "Filtere" popover ------------------- */
.matrix-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
}
.period-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.period-caption {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-right: 4px;
}
.period-pill {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-soft);
  padding: 8px 13px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.period-pill:hover {
  border-color: #b9c4bd;
}
.period-pill.active {
  background: #1a1a18;
  border-color: #1a1a18;
  color: white;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filtere-wrap {
  position: relative;
}
.filtere-btn {
  border: 1px solid var(--green-2);
  background: white;
  color: var(--green-2);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.filtere-btn:hover {
  background: #eaf3ee;
}
.filtere-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 6;
  width: 220px;
  max-width: calc(100vw - 32px);
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.year-badge {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.kpi-card {
  position: relative;
  padding: 17px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #8aa397;
}
.kpi-card.accent::before {
  background: var(--green-2);
}
.kpi-card.warning::before {
  background: var(--orange);
}
.kpi-card > span {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kpi-card strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 25px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.kpi-card small {
  color: #718078;
  font-size: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(235px, 0.85fr);
  gap: 12px;
  align-items: start;
}
.chart-card,
.insight-card,
.table-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.chart-card {
  position: relative;
  padding: 0 0 14px;
  min-width: 0;
  overflow: hidden;
}
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.card-heading h4,
.insight-card h4 {
  margin: 0;
  font-size: 14px;
}
.card-heading p {
  margin: 2px 0 0;
  color: #748178;
  font-size: 10px;
}

/* Matrix masthead + in-chart toolbar (mirrors the real Power BI visual) */
.matrix-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #1a1a18;
  padding: 10px 16px;
}
.matrix-title {
  color: white;
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.matrix-subtitle {
  color: #d8d6cf;
  font-size: 11px;
  font-weight: 600;
}
.matrix-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px 0;
}
.visual-toggles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.toggle-pill {
  border: 1px solid var(--line);
  background: white;
  color: #7d8982;
  padding: 6px 11px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.toggle-pill.active {
  background: #eaf3de;
  border-color: var(--green-2);
  color: var(--green-2);
}
.gradient-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: #6b675f;
  flex-wrap: wrap;
}
.gl-bar {
  display: inline-block;
  width: 120px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    #ff2626,
    #fde93b 33%,
    #36d666 66%,
    #0053ab
  );
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.gl-bar--student {
  background: linear-gradient(90deg, #caf0f8, #0077b6, #03045e);
}
.gl-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: white;
  border: 1px solid #9c9992;
}
.dashed-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0 16px;
  color: var(--ink-soft);
  font-size: 10px;
}
.dash-swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px dashed #6b675f;
}
.chart-wrap {
  position: relative;
  margin-top: 8px;
  padding: 0 16px;
}
#portfolioChart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.axis-text {
  fill: #728078;
  font-size: 10px;
}
.axis-title {
  fill: #435149;
  font-size: 11px;
  font-weight: 700;
}
.quad-label {
  fill: #7d8982;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.bubble {
  cursor: pointer;
  stroke: #1a1a18;
  stroke-width: 1;
  transition:
    opacity 0.15s,
    stroke-width 0.15s;
}
.bubble:hover,
.bubble:focus {
  stroke-width: 2;
  outline: none;
}
.bubble.dimmed {
  opacity: 0.25;
}
.tooltip {
  position: absolute;
  z-index: 8;
  min-width: 150px;
  pointer-events: none;
  padding: 9px 11px;
  border-radius: 4px;
  background: #14261f;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-size: 10px;
  line-height: 1.45;
}
.tooltip strong {
  display: block;
  font-size: 11px;
}

.insight-card {
  min-height: 260px;
  padding: 20px;
  position: relative;
}
.insight-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--ink-soft);
}
.inspect-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: #e9f1ed;
  color: var(--green-2);
}
.insight-placeholder p {
  max-width: 190px;
  font-size: 11px;
}
.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: none;
  color: #7a867f;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 2px;
}
.detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-right: 26px;
}
.detail-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 3px;
  color: white;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-pill.fase {
  background: #1a1a18;
}
.insight-content h4 {
  margin: 12px 0 2px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.course-code {
  margin: 0 0 3px;
  color: #75827a;
  font-size: 10px;
}
.detail-launch {
  margin: 0 0 14px;
  color: #75827a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.detail-metric-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 12px;
}
.dm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
}
.dm-row span:first-child {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 55%;
}
.dm-row strong {
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dm-arrow {
  font-style: normal;
  font-size: 10px;
}
.dm-sep {
  border-top: 1px solid #edf0ee;
}
.detail-programs {
  margin-top: 14px;
}
.dp-title {
  color: var(--ink-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 8px;
}
.dp-title strong {
  color: var(--ink);
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.dp-grid div {
  text-align: center;
  background: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 4px;
}
.dp-grid strong {
  display: block;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.dp-grid span {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-footer {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--green-2);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.table-card {
  margin-top: 12px;
  padding: 17px 18px 8px;
}
.table-heading {
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.search-field {
  width: 230px;
  max-width: 100%;
}
.search-field input {
  padding: 7px 10px;
}
.table-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.table-filters select {
  padding: 7px 9px;
  font-size: 12px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: #718078;
  text-align: right;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
th.sortable {
  cursor: pointer;
  user-select: none;
}
th.sortable:hover {
  color: var(--green-2);
  background: var(--muted);
}
.sort-indicator {
  display: inline-block;
  width: 9px;
  margin-left: 3px;
  font-size: 9px;
  opacity: 0.3;
}
.sort-indicator::before {
  content: "↕";
}
th.sortable[aria-sort="ascending"],
th.sortable[aria-sort="descending"] {
  color: var(--green-2);
}
th.sortable[aria-sort="ascending"] .sort-indicator,
th.sortable[aria-sort="descending"] .sort-indicator {
  opacity: 1;
}
th.sortable[aria-sort="ascending"] .sort-indicator::before {
  content: "▲";
}
th.sortable[aria-sort="descending"] .sort-indicator::before {
  content: "▼";
}
td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf0ee;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
th.th-left,
td.cell-left {
  text-align: left;
}
tbody tr {
  cursor: pointer;
}
tbody tr:hover {
  background: #f4f7f5;
}
.fase-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}
.fase-Drift {
  background: #1e7a46;
}
.fase-Utvikling {
  background: #c08a2e;
}
.fase-Utfasing {
  background: #b23a3a;
}
.bar-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.bar-track {
  display: inline-block;
  width: 44px;
  height: 6px;
  border-radius: 3px;
  background: #eef1ef;
  overflow: hidden;
  flex-shrink: 0;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.bar-value {
  display: inline-block;
  min-width: 3ch;
  text-align: right;
}
.bar-fill--blue {
  background: #0077b6;
}
.bar-fill--green {
  background: #1e7a46;
}
.status-pill {
  display: inline-block;
  min-width: 67px;
  padding: 3px 7px;
  border-radius: 999px;
  color: white;
  text-align: center;
  font-size: 9px;
  font-weight: 750;
}
.status-Skalér {
  background: var(--green-2);
}
.status-Stabiliser {
  background: var(--gold);
  color: #382b13;
}
.status-Forbedre {
  background: var(--orange);
}
.status-Revurder {
  background: var(--red);
}
.empty-row td {
  padding: 35px;
  color: var(--ink-soft);
  text-align: center !important;
}

.method-section {
  padding: 110px max(6vw, 24px) 24px;
  background: var(--green);
  color: white;
}
.method-intro {
  display: grid;
  grid-template-columns: 0.42fr 1fr 0.72fr;
  gap: 50px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto 64px;
}
.method-intro .kicker {
  color: #97c1af;
  margin-top: 15px;
}
.method-intro h2 {
  margin: 0;
}
.method-intro > p:last-child {
  margin: 10px 0 0;
  color: #bdd0c8;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1220px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.method-grid article {
  padding: 32px 32px 38px 0;
}
.method-grid article + article {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.method-grid span {
  color: #e3a88e;
  font-family: Georgia, serif;
  font-size: 13px;
}
.method-grid h3 {
  margin: 25px 0 9px;
  font-size: 18px;
}
.method-grid p {
  margin: 0;
  color: #bdd0c8;
  font-size: 13px;
}

/* Process / challenges section ---------------------------------------- */
.process-section {
  padding: 100px max(4vw, 20px) 110px;
}
.process-grid {
  max-width: 1220px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.process-col h3 {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.process-col h3 + h3,
.process-col ul + h3 {
  margin-top: 30px;
}
.process-col ol,
.process-col ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.process-col li {
  margin-bottom: 9px;
}
.tool-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-list li {
  margin: 0;
  padding: 7px 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}
.challenge-block {
  max-width: 1220px;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.challenge-block h3 {
  margin: 0 0 18px;
  font-size: 15px;
}
.challenge-block ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.challenge-block strong {
  color: var(--ink);
}

/* Closer section (bio + social) ---------------------------------------- */
.closer-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 100px max(6vw, 24px) 70px;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.closer-photo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-family: Georgia, serif;
  font-size: 34px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}
.closer-copy {
  max-width: 560px;
}
.closer-copy > p:not(.kicker) {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.closer-social {
  display: flex;
  gap: 8px;
  margin: 20px 0 0;
}
.closer-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Site footer ----------------------------------------------------------- */
.site-footer {
  background: #12131a;
  color: #9aa5a0;
  padding: 56px max(6vw, 24px) 26px;
}
.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px 50px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand .brand-mark {
  background: white;
  color: var(--green);
  flex: 0 0 auto;
}
.footer-brand strong {
  display: block;
  color: white;
  margin-bottom: 4px;
}
.footer-brand p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  max-width: 30ch;
}
.footer-heading {
  margin: 0 0 12px;
  color: #6d7873;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  color: #c3cbc7;
  text-decoration: none;
  font-size: 13px;
}
.footer-col a:hover {
  color: white;
}
.footer-copyright {
  max-width: 1220px;
  margin: 22px auto 0;
  font-size: 11px;
}

/* About page ------------------------------------------------------------- */
.placeholder-text {
  color: #9aa39c;
  font-style: italic;
}
.about-hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: 140px max(6vw, 24px) 60px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  align-items: start;
}
.about-photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  /* background: var(--muted);
   border: 1px dashed #c3cec7; */
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
  padding: 12px;
  line-height: 1.4;
}
.about-hero h1 {
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.03em;
  font-weight: 500;
}
.about-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.timeline-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 30px max(6vw, 24px) 70px;
}
.timeline {
  position: relative;
  margin-top: 30px;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 24px;
  padding-bottom: 34px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-2);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.timeline-date {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.timeline-role {
  margin: 0 0 6px;
  font-size: 16px;
}
.timeline-role span {
  color: var(--ink-soft);
  font-weight: 500;
}
.timeline-desc {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.timeline-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.timeline-tools span {
  padding: 4px 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-soft);
}

.education-list {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}
.education-item {
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.education-item strong {
  display: block;
  font-size: 14px;
}
.education-item span {
  color: var(--ink-soft);
  font-size: 12px;
}
.education-sub {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}
.education-sub li {
  margin-bottom: 4px;
}

.about-meta {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

/* How-I-work section (About page) --------------------------------------- */
.howiwork-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px max(6vw, 24px) 60px;
}
.howiwork-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.howiwork-item {
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.howiwork-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.howiwork-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

/* Timeline sub-detail groups (About page) -------------------------------- */
.timeline-project {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14px;
}
.timeline-detail {
  margin-top: 16px;
}
.timeline-detail h4 {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-2);
}
.timeline-detail ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}
.timeline-detail li {
  margin-bottom: 5px;
}

/* Skills section (About page) -------------------------------------------- */
.skills-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px max(6vw, 24px) 70px;
}
.skills-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.skill-card {
  padding: 18px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.skill-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-2);
}
.skill-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.hobby-section {
  background: #e9eeeb;
  padding: 70px max(4vw, 20px) 90px;
}
.hobby-grid {
  max-width: 1220px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hobby-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--muted);
  border: 1px dashed #c3cec7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}
.hobby-tile span.hobby-icon {
  font-size: 22px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .insight-card {
    min-height: 0;
  }
  .insight-placeholder {
    min-height: 180px;
  }
  .table-filters {
    grid-template-columns: repeat(3, 1fr);
  }
  .method-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .method-grid article + article {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-left: 0;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline::before {
    left: 6px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding-left: 26px;
  }
  .timeline-date {
    position: absolute;
    top: -22px;
    left: 26px;
  }
  .about-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hobby-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .howiwork-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 62px;
  }
  .site-header nav {
    display: none;
  }
  .cv-pill span {
    display: none;
  }
  .cv-pill {
    padding: 8px 11px;
    margin-left: 2px;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero {
    min-height: auto;
    padding-top: 78px;
  }
  .hero h1 {
    font-size: clamp(46px, 14vw, 66px);
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 52px;
  }
  .case-section,
  .method-section,
  .process-section,
  .closer-section {
    padding-top: 76px;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .closer-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-top: 70px;
  }
  .dashboard-shell {
    padding: 14px;
    margin-left: -8px;
    margin-right: -8px;
  }
  .table-filters {
    grid-template-columns: 1fr 1fr;
  }
  .matrix-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .filtere-panel {
    left: 0;
    right: auto;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpi-card strong {
    font-size: 21px;
  }
  .chart-card {
    padding: 0 0 12px;
  }
  .chart-wrap {
    overflow-x: auto;
  }
  #portfolioChart {
    min-width: 620px;
  }
  .table-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .search-field {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 26px;
  }
  .about-hero-actions,
  .timeline-tools {
    flex-wrap: wrap;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ── Pelican case (portfolio v2) ──────────────────────────────────────── */
.titlebar-sub {
  margin: 4px 0 0 !important;
  color: var(--ink-soft) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
.view-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.view-tab {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.view-tab:hover {
  border-color: #b9c4bd;
}
.view-tab.active {
  background: #1a1a18;
  border-color: #1a1a18;
  color: white;
}
.view-tab:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 2px;
}

.class-legend,
.heat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
}
.class-legend span,
.heat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.class-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-note {
  font-size: 10px;
  color: #7d8982;
}

.zone-bad {
  fill: rgba(168, 66, 55, 0.045);
}
.zone-good {
  fill: rgba(34, 107, 86, 0.05);
}
.zone-early {
  fill: rgba(195, 90, 49, 0.08);
}
.zone-label {
  fill: var(--orange);
  font-size: 10px;
  font-weight: 750;
}
.grid {
  stroke: #e7ebe8;
  stroke-width: 1;
}
.grid-zero {
  stroke: #8a9490;
  stroke-width: 1.3;
}
.median-line {
  stroke: #9aa6a0;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.median-label {
  fill: #7d8982;
  font-size: 9.5px;
  font-weight: 650;
}
.bubble {
  stroke: white;
  stroke-width: 1.5;
  opacity: 0.95;
}
.bubble.selected {
  stroke: #1a1a18;
  stroke-width: 2.5;
}
.bubble-label {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 650;
  pointer-events: none;
}
.bubble-label.dimmed {
  opacity: 0.3;
}
.end-label {
  font-size: 10.5px;
  font-weight: 700;
}
.bar-early {
  fill: var(--orange);
}
.bar-late {
  fill: #b9c4bd;
}
.dashed-note {
  line-height: 1.5;
  flex-wrap: wrap;
}

.chg-good {
  color: #1e7a46;
  font-weight: 750;
}
.chg-bad {
  color: #b23a3a;
  font-weight: 750;
}
.chg-flat {
  color: #7d8982;
  font-weight: 650;
}

/* insight card content */
.kicker-sm {
  margin: 0 0 6px;
  color: var(--green-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ov-gap {
  margin-top: 18px;
}
.ov-title {
  margin: 0 0 6px !important;
  font-size: 17px !important;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ov-text {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}
.ov-foot {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: #7d8982;
  font-size: 10.5px;
  line-height: 1.45;
}
.muted-sm {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.5;
}
.pick-list,
.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.pick-list button {
  width: 100%;
  color: var(--ink);
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: baseline;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  padding: 7px 9px;
  cursor: pointer;
}
.pick-list button:hover {
  border-color: #b9c4bd;
  background: #f7f9f8;
}
.pick-list button:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 1px;
}
.pick-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  align-self: center;
}
.pl-name {
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
}
.pl-num {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pl-why {
  grid-column: 2 / 4;
  font-size: 10.5px;
  color: var(--ink-soft);
}
.mini-list li {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  padding: 3px 0;
  border-bottom: 1px solid #edf0ee;
}
.mini-list li span:first-child {
  flex: 1;
  min-width: 0;
}

.detail-pill {
  color: white;
}
.detail-verdict {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
}
.dm-row strong em {
  font-style: normal;
  font-size: 10.5px;
  margin-left: 6px;
}
.detail-timeline {
  margin-top: 14px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
}
.timeline-mini {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 8px;
}
.timeline-mini li {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 6px;
  font-size: 11px;
  align-items: baseline;
}
.timeline-mini li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--red);
}
.timeline-mini li.tl-good::before {
  border-color: var(--green-2);
}
.timeline-mini li:first-child::before {
  background: currentColor;
}
.tl-when {
  color: #7d8982;
  font-weight: 650;
}
.tl-what {
  font-weight: 700;
}
.tl-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.tl-bad .tl-val {
  color: #b23a3a;
}
.tl-good .tl-val {
  color: #1e7a46;
}
.timeline-mini li.tl-bad:first-child {
  color: var(--red);
}
.timeline-mini li.tl-good:first-child {
  color: var(--green-2);
}
.timeline-mini li .tl-what {
  color: var(--ink);
}

/* heatmap */
.heat-scroll {
  overflow: auto;
  max-height: 560px;
  margin: 10px 16px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.heat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 10.5px;
}
.heat-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: white;
  padding: 8px 2px;
  font-size: 8.5px;
  white-space: normal;
  vertical-align: bottom;
  text-align: center;
  line-height: 1.25;
  min-width: 50px;
}
.heat-table thead th.th-left {
  text-align: left;
  min-width: 0;
}
.heat-table td {
  padding: 6px 4px;
  border: 0;
  text-align: center;
}
.heat-table td.hc-name {
  text-align: left;
  white-space: normal;
  min-width: 150px;
  max-width: 190px;
  line-height: 1.3;
  padding-left: 6px;
}
.heat-table td.hc-name em {
  color: #7d8982;
  font-size: 9.5px;
}
.heat-table tr {
  cursor: pointer;
}
.heat-table tr:hover td.hc-name {
  color: var(--green-2);
}
.hc {
  border-radius: 3px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hc-flat {
  color: #b4bdb8;
  background: #f5f7f6;
}
.hc-na {
  color: #c3cbc7;
  background: #fafbfa;
}
.good-small {
  background: #d6eadf;
  color: #1e5e46;
}
.good-large {
  background: #226b56;
  color: white;
}
.bad-small {
  background: #f3d9d1;
  color: #8c3229;
}
.bad-large {
  background: #a84237;
  color: white;
}
.row-nj td.hc-name {
  color: #8a9490;
}
.hl-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
tr.pat-market td.hc-name {
  box-shadow: inset 3px 0 0 #5b7f9e;
  background: #eef3f7;
}
tr.pat-quality td.hc-name {
  box-shadow: inset 3px 0 0 var(--orange);
  background: #fbefe8;
}
.pat-badge {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 50%;
  font-size: 9px;
  color: white;
  vertical-align: 1px;
}
.pat-badge.pat-market {
  background: #5b7f9e;
}
.pat-badge.pat-quality {
  background: var(--orange);
}
.pattern {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pattern-head {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 750;
}
.seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 12px;
}

/* dropout facts */
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fact {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
}
.fact strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.fact span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.inline-select {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline-select span {
  margin: 0;
}
.inline-select select {
  width: auto;
  max-width: 100%;
  padding: 6px 9px;
  font-size: 12px;
}

.table-filters--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.table-scroll--tall {
  max-height: 560px;
  overflow: auto;
}
.table-scroll--tall thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.status-pill {
  min-width: 86px;
}
.load-error {
  padding: 40px;
  text-align: center;
  color: var(--red);
}

@media (max-width: 680px) {
  .table-filters--3 {
    grid-template-columns: 1fr;
  }
  #retentionChart,
  #weekChart,
  #marketChart {
    min-width: 620px;
  }
  .fact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .heat-scroll {
    margin: 10px 8px 0;
  }
}

.period-explain {
  margin: -8px 0 12px;
  color: var(--ink-soft);
  font-size: 11px;
}
.area-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--muted);
  border: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-soft);
  vertical-align: 1px;
}
.filtere-btn.has-filter {
  background: var(--green-2);
  color: white;
}

/* ── Statusmerker: prikk + tekst + farget kant, ingen fyll ───────────────── */
.km-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font: 600 12px/1.35 var(--km-font, Inter, system-ui, sans-serif);
  color: #4f5d56;
}
.km-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.km-dot {
  width: 10px;
  height: 10px;
  flex: none;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--km-fill);
  border: 1.5px var(--km-bs) var(--km-ring);
}

.km-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 86px;
  box-sizing: border-box;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: transparent;
  border: 1px var(--km-bs) var(--km-ring);
  color: var(--km-fg);
  font: 600 12px/1.35 var(--km-font, Inter, system-ui, sans-serif);
  text-transform: none;
  letter-spacing: 0;
}
.km-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--km-fill);
  border: 1.5px var(--km-bs) var(--km-ring);
}

.km-bubble {
  fill: var(--km-fill);
  stroke: var(--km-line);
  stroke-width: 1.5;
  stroke-dasharray: var(--km-dash);
}
.km-bubble.selected {
  stroke: #1a1a18;
  stroke-width: 2.5;
  stroke-dasharray: none;
}
.km-bubble-label {
  fill: #17201c;
  font: 500 11px var(--km-font, Inter, system-ui, sans-serif);
}

/* Klassefarger (dårligst → best, så Ikke vurdert) */
.km--handle {
  --km-fill: #a84237;
  --km-ring: #a84237;
  --km-fg: #17201c;
  --km-bs: solid;
  --km-line: #ffffff;
  --km-dash: none;
}
.km--folg {
  --km-fill: #b8652a;
  --km-ring: #b8652a;
  --km-fg: #17201c;
  --km-bs: solid;
  --km-line: #ffffff;
  --km-dash: none;
}
.km--stabil {
  --km-fill: #7d8a84;
  --km-ring: #7d8a84;
  --km-fg: #17201c;
  --km-bs: solid;
  --km-line: #ffffff;
  --km-dash: none;
}
.km--god {
  --km-fill: #3f8a68;
  --km-ring: #3f8a68;
  --km-fg: #17201c;
  --km-bs: solid;
  --km-line: #ffffff;
  --km-dash: none;
}
.km--skaler {
  --km-fill: #226b56;
  --km-ring: #226b56;
  --km-fg: #17201c;
  --km-bs: solid;
  --km-line: #ffffff;
  --km-dash: none;
}
.km--ikke {
  --km-fill: #ffffff;
  --km-ring: #6b7771;
  --km-fg: #4f5d56;
  --km-bs: dashed;
  --km-line: #6b7771;
  --km-dash: 3 2;
}

/* the detail panel pill sits next to the dark portfolio pill */
.detail-tags .km-pill {
  min-width: 0;
}
.pick-list i.km-dot {
  width: 10px;
  height: 10px;
}

body {
  background: #e9eeeb;
}
.case-section {
  padding-block: 48px 64px;
}

/* ══════════════════════════════════════════════════════════════════════════
   2026 refresh – sections borrowed from the Harrison Jansma layout, recoloured
   to the green theme. New class names (hh-, sw-, ww-, tc-) so nothing above
   is touched.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --deep: #0f241e; /* diagram background */
  --live: #3fae7a; /* status dot */
  --glow: #c99d48; /* packets in the diagram */
  --line-strong: #c9d3cd;
  --grad: linear-gradient(120deg, #153f35, #226b56);
}

/* ── Language switch (top right) ─────────────────────────────────────── */
.lang-switch {
  display: inline-flex;
  margin-left: 10px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--green);
  color: white;
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 1px;
}

/* ── Home hero ───────────────────────────────────────────────────────── */
.home-hero {
  background-color: #eef2ef;
  background-image:
    linear-gradient(rgba(21, 63, 53, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 63, 53, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  border-bottom: 1px solid var(--line);
}
.hh-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 76px max(4vw, 20px) 84px;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 64px;
  align-items: center;
}
.hh-avatar {
  width: clamp(110px, 13.5vw, 180px);
  height: clamp(110px, 13.5vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  margin-bottom: 26px;
  border: 4px solid white;
  box-shadow: 0 8px 22px rgba(21, 63, 53, 0.18);
  outline: 2px solid rgba(34, 107, 86, 0.35);
  outline-offset: 3px;
}
.hh-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 999px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  animation: hhPulse 2.4s ease-in-out infinite;
}
.hh-name {
  margin: 0 0 20px;
  font-family: "Noto Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hh-name em {
  color: var(--green-2);
  font-style: italic;
  font-weight: 400;
}
.hh-lead {
  max-width: 40ch;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.6;
  text-wrap: pretty;
}
.hh-stats {
  display: flex;
  max-width: 560px;
  margin-bottom: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.hh-stats > div {
  flex: 1;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}
.hh-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.hh-num {
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
  color: var(--green-2);
  letter-spacing: -0.02em;
}
.hh-lbl {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.4;
}
.hh-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Diagram (dark card, same structure/class names as Harrison's) ───── */
.diagram {
  background: var(--deep);
  border-radius: 20px;
  padding: 22px 22px 26px;
  box-shadow: 0 30px 70px -28px rgba(15, 36, 30, 0.6);
}
.diagram-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.diagram-head-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8fa89d;
  text-transform: uppercase;
}
.diagram-head-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--live);
  text-transform: uppercase;
  white-space: nowrap;
}
.diagram-head-live .hh-dot {
  width: 6px;
  height: 6px;
}
.node {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 12px;
  padding: 12px 15px;
}
.node-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #7f978c;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.node-title {
  color: #e4ebe7;
  font-size: 14px;
  font-weight: 650;
}
.node--final {
  border: 1px solid rgba(201, 157, 72, 0.45);
  background: linear-gradient(
    120deg,
    rgba(34, 107, 86, 0.32),
    rgba(201, 157, 72, 0.12)
  );
}
.node--final .node-eyebrow {
  color: #e3c486;
}
.node--final .node-title {
  color: white;
}
.trunk {
  position: relative;
  height: 26px;
  margin: 0 auto;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.trunk .packet {
  position: absolute;
  left: -2px;
  top: 0;
  animation: flowDown 2.2s linear infinite;
}
.packet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px 2px rgba(201, 157, 72, 0.7);
}
.packet--branch {
  background: var(--live);
  box-shadow: 0 0 8px 2px rgba(63, 174, 122, 0.6);
}
.fan {
  position: relative;
  height: 30px;
}
.fan i {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  display: block;
}
.fan-stem {
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
}
.fan-out .fan-stem--top {
  top: 0;
  height: 14px;
}
.fan-out .fan-bar {
  left: 16.6%;
  right: 16.6%;
  top: 14px;
  height: 2px;
}
.fan-out .fan-leg {
  top: 14px;
  width: 2px;
  height: 16px;
}
.fan-out .fan-leg--l {
  left: 16.6%;
}
.fan-out .fan-leg--c {
  left: 50%;
  transform: translateX(-1px);
}
.fan-out .fan-leg--r {
  left: 83.3%;
}
.fan-out .packet {
  position: absolute;
  top: 14px;
}
.fan-out .packet--l {
  left: 16.6%;
  margin-left: -2px;
  animation: flowDown 2.2s linear 0.35s infinite;
}
.fan-out .packet--c {
  left: 50%;
  margin-left: -3px;
  animation: flowDown 2.2s linear 0.5s infinite;
}
.fan-out .packet--r {
  left: 83.3%;
  margin-left: -2px;
  animation: flowDown 2.2s linear 0.65s infinite;
}
.fan-in .fan-leg {
  top: 0;
  width: 2px;
  height: 16px;
}
.fan-in .fan-leg--l {
  left: 16.6%;
}
.fan-in .fan-leg--c {
  left: 50%;
  transform: translateX(-1px);
}
.fan-in .fan-leg--r {
  left: 83.3%;
}
.fan-in .fan-bar {
  left: 16.6%;
  right: 16.6%;
  top: 16px;
  height: 2px;
}
.fan-in .fan-stem--bottom {
  top: 16px;
  height: 14px;
}
.fan-in .packet {
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: -3px;
  animation: flowDown 2.2s linear 1.1s infinite;
}
.model-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}
.model-node {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 11px;
  padding: 11px 9px;
  text-align: center;
  animation: nodeGlow 6.6s ease-in-out infinite;
}
.model-node:nth-child(2) {
  animation-delay: 2.2s;
}
.model-node:nth-child(3) {
  animation-delay: 4.4s;
}
.model-node b {
  display: block;
  color: #e4ebe7;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}
.model-node span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #7f978c;
  margin-top: 6px;
}
.diagram-caption {
  margin-top: 16px;
  font-size: 12px;
  color: #8fa89d;
  line-height: 1.55;
}

@keyframes flowDown {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(26px);
    opacity: 0;
  }
}
@keyframes hhPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(63, 174, 122, 0.55);
  }
  50% {
    opacity: 0.75;
    box-shadow: 0 0 0 5px rgba(63, 174, 122, 0);
  }
}
@keyframes nodeGlow {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
  }
  50% {
    border-color: rgba(201, 157, 72, 0.55);
    background: rgba(201, 157, 72, 0.1);
  }
}

/* ── Section heads used by the new sections ──────────────────────────── */
.sw-section {
  padding: 96px max(4vw, 20px) 40px;
}
.sw-wrap {
  max-width: 1220px;
  margin: 0 auto;
}
.sw-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 24px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.sw-head h2 {
  margin: 10px 0 0;
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sw-head > p {
  margin: 0 0 6px;
  color: var(--ink-soft);
}

/* ── Featured card (Pelican) ─────────────────────────────────────────── */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 44px;
  align-items: center;
  padding: 36px;
  border: 1px solid #b9cfc4;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(34, 107, 86, 0.07),
    rgba(201, 157, 72, 0.03)
  );
}
.featured h3 {
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.featured p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  text-wrap: pretty;
}
.featured .note {
  padding: 11px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 157, 72, 0.08);
  color: #5a4a2a;
  font-size: 14px;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 24px;
}
.pill {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(34, 107, 86, 0.08);
  border: 1px solid rgba(34, 107, 86, 0.18);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.btn--grad {
  background: var(--grad);
  color: white;
  box-shadow: 0 8px 22px -8px rgba(21, 63, 53, 0.55);
}
.btn--grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(21, 63, 53, 0.7);
}
.btn--ghost {
  background: white;
  color: var(--green);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--green-2);
}
.btn:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 3px;
}

.browser {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 36, 30, 0.12);
  box-shadow: 0 22px 50px -24px rgba(15, 36, 30, 0.55);
  background: white;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f1f4f2;
  border-bottom: 1px solid #e1e7e3;
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9dfdb;
}
.browser-url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: #7d8982;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-body {
  position: relative;
  background: #f9faf9;
}
.browser-body svg {
  display: block;
  width: 100%;
  height: auto;
}
.demo-launch {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  cursor: pointer;
  background: rgba(15, 36, 30, 0.32);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font: inherit;
}
.demo-launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--grad);
  color: white;
  font-weight: 750;
  font-size: 15px;
  box-shadow: 0 10px 30px -8px rgba(15, 36, 30, 0.8);
  transition: transform 0.2s ease;
}
.demo-launch:hover .demo-launch-pill {
  transform: translateY(-2px);
}
.demo-launch-note {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
}
.play-tri {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent white;
}

/* ── Project rows under the featured card ────────────────────────────── */
.rows {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.row-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.05fr) 190px;
  gap: 28px;
  align-items: start;
  padding: 30px 18px 30px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition:
    background 0.22s ease,
    transform 0.22s ease;
}
.row-link:hover {
  background: rgba(34, 107, 86, 0.05);
  transform: translateX(4px);
}
.row-link:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 2px;
}
.row-index {
  font-family: var(--mono);
  font-size: 12px;
  color: #9aa6a0;
  padding-top: 5px;
}
.row-cat {
  display: block;
  margin-bottom: 8px;
  color: var(--green-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.row-title {
  display: block;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.row-link .pill-row {
  margin: 13px 0 0;
  gap: 6px;
}
.row-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.62;
}
.row-metrics {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.row-metrics b {
  display: block;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.2;
}
.row-metrics b + span {
  font-size: 12px;
  color: var(--ink-soft);
}

/* Case section: link to the first version, under the description */
.case-aside .btn {
  margin-top: 18px;
}

/* ── Heatmap (Endringer): white scroll area and scrollbar ────────────── */
.heat-scroll,
.table-scroll--tall {
  background: white;
  scrollbar-color: #b9c4bd #ffffff;
  scrollbar-width: thin;
}
.heat-scroll::-webkit-scrollbar,
.table-scroll--tall::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: #ffffff;
}
.heat-scroll::-webkit-scrollbar-track,
.table-scroll--tall::-webkit-scrollbar-track {
  background: #ffffff;
}
.heat-scroll::-webkit-scrollbar-thumb,
.table-scroll--tall::-webkit-scrollbar-thumb {
  background: #c9d3cd;
  border-radius: 6px;
  border: 2px solid #ffffff;
}
.heat-scroll::-webkit-scrollbar-corner,
.table-scroll--tall::-webkit-scrollbar-corner {
  background: #ffffff;
}
.heat-table thead th.sortable:hover {
  background: var(--muted);
}
.heat-table thead th.sortable {
  cursor: pointer;
}

/* ── What I work on (hairline grid) ──────────────────────────────────── */
.ww-section {
  padding: 96px max(4vw, 20px);
  background: #e9eeeb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ww-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.ww-grid > div {
  background: white;
  padding: 30px 26px;
}
.ww-grid h4 {
  margin: 0 0 9px;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.ww-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.ww-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(34, 107, 86, 0.1);
  color: var(--green-2);
  font-family: Georgia, serif;
  font-size: 15px;
}

/* ── Tools (three cards) ─────────────────────────────────────────────── */
.tc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tc-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 2px 10px rgba(23, 32, 28, 0.04);
}
.tc-card h4 {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.tc-card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.tc-card li::before {
  content: "→ ";
  color: var(--green-2);
}
.tc-card .pill-row {
  margin: auto 0 0;
}
.chip-tool {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 7px;
  background: #f2f5f3;
  border: 1px solid #e3e9e5;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

/* ── About block on the home page ────────────────────────────────────── */
.ab-section {
  padding: 96px max(4vw, 20px);
  background: #e9eeeb;
  border-top: 1px solid var(--line);
}
.ab-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.ab-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: block;
}
.ab-quote {
  margin: 12px 0 20px;
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}
.ab-body p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  max-width: 64ch;
}
.ab-body .closer-actions {
  margin-top: 26px;
}

/* About page photo */
.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: var(--shadow);
}

/* Old case page */
.page-intro {
  padding: 72px max(4vw, 20px) 40px;
  background: #e9eeeb;
}
.page-intro .back-wrap {
  max-width: 1220px;
  margin: 0 auto;
}
.page-intro .section-heading {
  margin-bottom: 0;
}
.page-intro + .case-section {
  padding-top: 32px;
}
.back-link {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hh-wrap {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 52px;
  }
  .featured {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px;
  }
  .sw-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ww-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tc-grid {
    grid-template-columns: 1fr;
  }
  .ab-grid {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 36px;
  }
  .row-link {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 16px;
  }
  .row-desc,
  .row-metrics {
    grid-column: 2;
  }
  .row-metrics {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
}
@media (max-width: 680px) {
  .ww-grid,
  .ab-grid {
    grid-template-columns: 1fr;
  }
  .ab-photo {
    max-width: 240px;
  }
  .hh-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .hh-stats > div,
  .hh-stats > div:first-child {
    flex: 1 1 40%;
    padding: 0;
    border-left: 0;
  }
  .model-node b {
    font-size: 11.5px;
  }
  .lang-switch {
    margin-left: 4px;
  }
  .lang-switch button {
    padding: 5px 8px;
  }
  .sw-section,
  .ww-section,
  .ab-section {
    padding-top: 70px;
    padding-bottom: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hh-dot,
  .packet,
  .model-node {
    animation: none !important;
  }
  .row-link:hover,
  .btn--grad:hover {
    transform: none;
  }
}
