:root {
  --midnight: #080a0f;
  --night: #0d1018;
  --graphite: #141922;
  --graphite-2: #1b2130;
  --line: rgba(199, 205, 218, 0.16);
  --line-strong: rgba(229, 231, 238, 0.28);
  --text: #f3f1ec;
  --muted: #a7aab3;
  --quiet: #737986;
  --silver: #d9dde7;
  --lavender: #aeb2d8;
  --indigo: #58628f;
  --gold: #c7a96f;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(217, 221, 231, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(217, 221, 231, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(199, 169, 111, 0.08), transparent 30rem),
    linear-gradient(180deg, var(--midnight), var(--night) 42%, #0a0c12 100%);
  background-size:
    88px 88px,
    88px 88px,
    auto,
    auto;
  color: var(--text);
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 15, 0.72);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 14px clamp(18px, 5vw, 64px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand,
.nav-links,
.hero-actions,
.contact-actions,
.filters,
.project-meta,
.project-footer {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--text);
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  height: 36px;
  place-items: center;
  width: 36px;
}

.north-mark {
  background: var(--gold);
  clip-path: polygon(50% 0, 58% 38%, 100% 50%, 58% 62%, 50% 100%, 42% 62%, 0 50%, 42% 38%);
  display: block;
  height: 20px;
  opacity: 0.92;
  width: 20px;
}

.nav-links {
  gap: clamp(14px, 3vw, 28px);
}

.nav-links a,
.contact-actions a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.contact-actions a:hover {
  color: var(--text);
}

.hero {
  column-gap: clamp(28px, 4vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: min(920px, calc(100vh));
  overflow: hidden;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 64px);
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.96) 0%, rgba(8, 10, 15, 0.8) 34%, rgba(8, 10, 15, 0.38) 68%, rgba(8, 10, 15, 0.12) 100%),
    radial-gradient(circle at 74% 50%, rgba(199, 169, 111, 0.08), transparent 34%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero::after {
  background: linear-gradient(90deg, transparent, rgba(217, 221, 231, 0.16), transparent);
  bottom: 0;
  content: "";
  height: 1px;
  left: clamp(18px, 5vw, 64px);
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  z-index: 3;
}

.decision-map {
  inset: 0;
  margin: 0;
  max-width: none;
  opacity: 0.9;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.decision-map::before {
  display: none;
}

.mesh-svg {
  display: block;
  height: min(108%, 860px);
  min-width: 100%;
  overflow: visible;
  position: absolute;
  right: 50%;
  top: 46%;
  transform: translate(50%, -50%);
  width: auto;
}

.mesh-facets polygon {
  fill: rgba(174, 178, 216, 0.025);
  opacity: 0.72;
  pointer-events: none;
  transition:
    fill 220ms ease,
    opacity 220ms ease;
}

.mesh-facets .facet-warm {
  fill: rgba(199, 169, 111, 0.032);
}

.mesh-facets .facet-support-cool {
  fill: rgba(174, 178, 216, 0.022);
  opacity: 0.56;
}

.mesh-facets .facet-support-warm {
  fill: rgba(199, 169, 111, 0.027);
  opacity: 0.56;
}

.mesh-edges line,
.mesh-edges path {
  fill: none;
  opacity: 0.48;
  stroke: rgba(217, 221, 231, 0.2);
  stroke-width: 1;
  transition:
    opacity 220ms ease,
    stroke 220ms ease,
    stroke-width 220ms ease;
  vector-effect: non-scaling-stroke;
}

.mesh-edges .edge-strong {
  opacity: 0.68;
  stroke: rgba(217, 221, 231, 0.3);
  stroke-width: 1.25;
}

.mesh-edges .edge-soft {
  opacity: 0.28;
  stroke: rgba(217, 221, 231, 0.14);
  stroke-width: 0.8;
}

.mesh-edges .mesh-recommendation-edge {
  stroke: rgba(217, 221, 231, 0.26);
}

.mesh-node circle {
  fill: rgba(8, 10, 15, 0.74);
  filter: drop-shadow(0 0 8px rgba(217, 221, 231, 0.12));
  stroke: rgba(217, 221, 231, 0.9);
  stroke-width: 1.4;
  transition:
    filter 220ms ease,
    stroke 220ms ease,
    stroke-width 220ms ease,
    transform 220ms ease;
  transform-box: fill-box;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
}

.mesh-node text {
  dominant-baseline: central;
  fill: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  text-anchor: middle;
  text-transform: uppercase;
  transition:
    fill 220ms ease,
    opacity 220ms ease;
}

.mesh-node .node-meta {
  fill: var(--quiet);
  font-size: 7px;
}

.node-core circle {
  fill: rgba(199, 169, 111, 0.06);
  stroke: rgba(217, 221, 231, 0.78);
}

.node-hub circle {
  fill: rgba(217, 221, 231, 0.025);
  stroke: rgba(217, 221, 231, 0.62);
}

.node-major circle {
  fill: rgba(217, 221, 231, 0.018);
  stroke: rgba(217, 221, 231, 0.58);
}

.node-minor circle {
  stroke-dasharray: 2.2 3.2;
}

.node-action circle {
  fill: rgba(199, 169, 111, 0.026);
}

.node-outcome circle {
  stroke: rgba(217, 221, 231, 0.64);
}

.node-core text:first-of-type {
  fill: var(--gold);
  font-size: 9px;
}

.node-recommendation path {
  fill: var(--silver);
  opacity: 0.8;
  transition:
    fill 220ms ease,
    filter 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.node-recommendation text {
  fill: var(--gold);
}

.mesh-node {
  cursor: pointer;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.decision-map.is-focused .mesh-node,
.decision-map.is-focused .mesh-facets polygon,
.decision-map.is-focused .mesh-edges line,
.decision-map.is-focused .mesh-edges path {
  opacity: 0.16;
}

.decision-map.is-focused .mesh-facets polygon.is-active-facet {
  fill: rgba(199, 169, 111, 0.055);
  opacity: 0.9;
}

.decision-map.is-focused .mesh-facets polygon.is-active-facet[class*="facet-support-"] {
  fill: rgba(199, 169, 111, 0.042);
  opacity: 0.72;
}

.decision-map.is-focused .mesh-node.is-second {
  opacity: 0.42;
}

.decision-map.is-focused .mesh-node.is-neighbor {
  opacity: 0.72;
}

.decision-map.is-focused .mesh-node.is-active {
  opacity: 1;
}

.decision-map.is-focused .mesh-node.is-active circle,
.decision-map.is-focused .mesh-node.is-neighbor circle,
.decision-map.is-focused .mesh-node.is-second circle {
  stroke: var(--gold);
}

.decision-map.is-focused .mesh-node.is-second circle {
  stroke-opacity: 0.58;
}

.decision-map.is-focused .mesh-node.is-active circle {
  fill: rgba(199, 169, 111, 0.22);
  filter:
    drop-shadow(0 0 7px rgba(226, 196, 132, 0.56))
    drop-shadow(0 0 22px rgba(199, 169, 111, 0.34));
  stroke-width: 2;
  transform: scale(2.1);
}

.decision-map.is-focused .node-core.is-active circle {
  transform: scale(1.9);
}

.decision-map.is-focused .node-recommendation.is-active path,
.decision-map.is-focused .node-recommendation.is-neighbor path {
  fill: var(--gold);
  opacity: 1;
}

.decision-map.is-focused .node-recommendation.is-active path {
  filter:
    drop-shadow(0 0 7px rgba(226, 196, 132, 0.58))
    drop-shadow(0 0 22px rgba(199, 169, 111, 0.34));
  transform: scale(1.6);
}

.decision-map.is-focused .mesh-node.is-active text {
  fill: #f3ead6;
  filter:
    drop-shadow(0 0 2px rgba(8, 10, 15, 0.9))
    drop-shadow(0 0 10px rgba(226, 196, 132, 0.56));
  font-size: 10.5px;
  font-weight: 800;
  opacity: 1;
}

.decision-map.is-focused .mesh-node.is-active .node-meta {
  fill: rgba(217, 221, 231, 0.9);
  font-size: 8px;
  opacity: 0.95;
}

.decision-map.is-focused .mesh-edges line.is-active-edge,
.decision-map.is-focused .mesh-edges path.is-active-edge {
  opacity: 1;
  stroke: rgba(199, 169, 111, 0.9);
  stroke-width: 1.6;
}

.decision-map.is-focused .mesh-edges line.is-related-edge,
.decision-map.is-focused .mesh-edges path.is-related-edge {
  opacity: 0.56;
  stroke: rgba(199, 169, 111, 0.38);
  stroke-width: 1.1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.hero-content {
  align-self: center;
  color: var(--text);
  grid-column: 1 / span 1;
  grid-row: 1;
  max-width: min(920px, 76vw);
  padding: clamp(30px, 4vw, 44px) 0;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 4.35rem;
  line-height: 1.02;
  max-width: 920px;
}

.hero-content h1 span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .hero-content h1 {
    font-size: 3.85rem;
  }
}

.eyebrow,
.section-kicker,
.tag {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 5.8vw, 5.9rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 22px;
  max-width: 760px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 0;
}

h3 {
  font-size: 1.18rem;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 10px;
}

.intro {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 620px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.filter:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--silver);
  color: var(--midnight);
}

.secondary {
  background: rgba(217, 221, 231, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}

.toolbar-section,
.credibility-band,
.working-band,
.profile-band,
.contact-band,
.principles {
  padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 64px);
}

.profile-band,
.working-band,
.contact-band {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
}

.profile-band,
.credibility-band {
  background: rgba(20, 25, 34, 0.72);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.profile-band p,
.working-band p {
  color: var(--muted);
  margin-bottom: 0;
}

.profile-band > p {
  font-size: 1.04rem;
  line-height: 1.72;
  max-width: 780px;
}

.credibility-band {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.credibility-band article {
  border-left: 1px solid var(--line);
  padding: 0 clamp(16px, 2vw, 26px);
}

.credibility-band article:first-child {
  border-left: 0;
  padding-left: 0;
}

.credibility-band strong {
  color: var(--text);
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 10px;
}

.credibility-band span,
.working-list p {
  color: var(--muted);
}

.working-band {
  background: rgba(13, 16, 24, 0.74);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.working-list {
  display: grid;
  gap: 0;
}

.working-list article {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.working-list article:first-child {
  padding-top: 14px;
}

.working-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 5px;
}

.working-list p {
  line-height: 1.62;
}

.section-kicker {
  color: var(--gold);
  margin-bottom: 10px;
}

.principles {
  align-items: stretch;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 0;
  padding-top: 0;
}

.principles article {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 24px clamp(16px, 3vw, 30px) 24px 0;
}

.principles span,
.impact {
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.principles p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.62;
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-note {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 620px;
}

.filters {
  background: rgba(217, 221, 231, 0.05);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
}

.filter {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 34px;
  padding: 6px 10px;
}

.filter.is-active {
  background: rgba(217, 221, 231, 0.12);
  color: var(--text);
  box-shadow: none;
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.project-card {
  background:
    linear-gradient(180deg, rgba(217, 221, 231, 0.04), rgba(217, 221, 231, 0.015)),
    var(--graphite);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: clamp(20px, 2.2vw, 28px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.project-card:hover,
.project-card:focus-within {
  background:
    linear-gradient(180deg, rgba(217, 221, 231, 0.06), rgba(217, 221, 231, 0.02)),
    var(--graphite);
  border-color: rgba(199, 169, 111, 0.36);
  transform: translateY(-2px);
}

.project-card.is-featured {
  min-height: 360px;
}

.project-summary {
  color: var(--muted);
  flex: 1;
  font-size: 1rem;
  line-height: 1.58;
  margin-bottom: 26px;
}

.project-meta,
.project-footer {
  justify-content: space-between;
}

.project-meta {
  gap: 12px;
  margin-bottom: 18px;
}

.tag {
  background: rgba(199, 169, 111, 0.08);
  border-radius: 999px;
  color: var(--gold);
  padding: 5px 9px;
}

.project-link {
  border-bottom: 2px solid var(--gold);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--gold);
  outline: 0;
}

.project-evidence {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 22px;
}

.project-evidence div {
  border-left: 1px solid var(--line);
  padding: 15px 14px;
}

.project-evidence div:first-child {
  border-left: 0;
  padding-left: 0;
}

.project-evidence dt {
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.project-evidence dd {
  color: var(--silver);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.mini-cases {
  margin-top: 26px;
}

.mini-case-heading {
  align-items: baseline;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mini-case-heading > p,
.mini-case-summary {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.mini-case-heading > p:last-child {
  font-size: 0.9rem;
}

.mini-case-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-case-row {
  background:
    linear-gradient(180deg, rgba(217, 221, 231, 0.035), rgba(217, 221, 231, 0.012)),
    var(--graphite);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 20px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.mini-case-row:hover,
.mini-case-row:focus-within {
  background:
    linear-gradient(180deg, rgba(217, 221, 231, 0.055), rgba(217, 221, 231, 0.018)),
    var(--graphite);
  border-color: rgba(199, 169, 111, 0.36);
  transform: translateY(-2px);
}

.mini-case-intro .tag {
  display: inline-flex;
  margin-bottom: 12px;
}

.mini-case-intro h3 {
  font-size: 1.18rem;
  margin: 0 0 7px;
}

.mini-case-summary {
  min-height: 4.8em;
}

.mini-case-evidence {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 18px 0 0;
  padding-top: 15px;
}

.mini-case-evidence dt {
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.mini-case-evidence dd {
  color: var(--silver);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.mini-case-row > .project-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  white-space: nowrap;
}

.add-work {
  background: rgba(13, 16, 24, 0.74);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.sample-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sample-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 7px;
}

.sample-form label:nth-child(3),
.sample-form label:nth-child(4),
.sample-form label:nth-child(5),
.sample-form button {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  background: rgba(8, 10, 15, 0.64);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  padding: 22px;
}

.contact-band {
  align-items: center;
  background: #07090d;
  color: var(--text);
}

.contact-band .section-kicker,
.contact-actions a {
  color: var(--silver);
}

.contact-actions {
  flex-wrap: wrap;
  gap: 14px;
  justify-content: end;
}

code {
  background: rgba(217, 221, 231, 0.08);
  border-radius: 5px;
  padding: 2px 5px;
}

.case-page {
  background:
    radial-gradient(circle at 82% 12%, rgba(199, 169, 111, 0.07), transparent 28rem),
    linear-gradient(180deg, rgba(20, 25, 34, 0.36), transparent 34rem);
}

.case-hero,
.case-overview,
.case-layout,
.case-next {
  padding-left: clamp(18px, 5vw, 64px);
  padding-right: clamp(18px, 5vw, 64px);
}

.case-hero {
  min-height: min(560px, calc(100vh - 68px));
  padding-bottom: clamp(44px, 7vw, 86px);
  padding-top: clamp(48px, 8vw, 110px);
  position: relative;
}

.case-hero.has-artifact {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  min-height: min(720px, calc(100vh - 68px));
}

.case-hero.is-text-first {
  padding-bottom: clamp(36px, 5vw, 64px);
}

.case-hero::before {
  background:
    linear-gradient(90deg, rgba(217, 221, 231, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(217, 221, 231, 0.028) 1px, transparent 1px);
  background-size: 88px 88px;
  content: "";
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
}

.case-hero > *,
.case-hero-copy > * {
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.case-breadcrumb {
  align-items: center;
  color: var(--quiet);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 9px;
  margin-bottom: 34px;
}

.case-breadcrumb a {
  color: var(--silver);
  text-decoration: none;
}

.case-breadcrumb a:hover {
  color: var(--gold);
}

.case-hero h1 {
  font-size: clamp(3rem, 5.4vw, 5.6rem);
  line-height: 0.98;
  max-width: 900px;
}

.case-summary {
  color: var(--silver);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.45;
  max-width: 760px;
}

.case-hero-artifact {
  background: rgba(217, 221, 231, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  min-height: 320px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.case-hero-artifact img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.case-hero-artifact figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 12px 14px;
}

.case-meta {
  background: rgba(217, 221, 231, 0.025);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(34px, 5vw, 58px);
  max-width: 980px;
  overflow: hidden;
}

.case-meta div {
  border-left: 1px solid var(--line);
  padding: 22px 24px;
}

.case-meta div:first-child {
  border-left: 0;
}

.case-meta span,
.case-overview-grid span,
.case-toc span,
.case-compare span,
.case-finding-grid span,
.case-timeline span,
.case-outcomes span,
.case-os-nodes span {
  color: var(--gold);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.case-meta strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.case-overview {
  background: rgba(20, 25, 34, 0.72);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: clamp(36px, 5vw, 58px);
  padding-top: clamp(36px, 5vw, 58px);
}

.case-overview-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.case-overview-copy {
  margin-top: 18px;
  max-width: 860px;
}

.case-overview-grid article {
  border-left: 1px solid var(--line);
  padding: 0 18px;
}

.case-overview-grid article:first-child {
  border-left: 0;
  padding-left: 0;
}

.case-overview-grid p,
.case-overview-copy p,
.case-section-body p,
.case-compare p,
.case-finding-grid p,
.case-timeline p,
.case-outcomes p,
.case-next p {
  color: var(--muted);
  line-height: 1.68;
  margin-bottom: 0;
}

.case-layout {
  align-items: start;
  display: grid;
  gap: clamp(38px, 5vw, 86px);
  grid-template-columns: minmax(170px, 230px) minmax(0, 1040px);
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 1450px;
  padding-bottom: clamp(52px, 8vw, 110px);
  padding-top: clamp(52px, 8vw, 110px);
}

.case-toc {
  position: sticky;
  top: 94px;
}

.case-toc nav {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-left: 16px;
}

.case-toc a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.case-toc a:hover,
.case-toc a:focus-visible {
  color: var(--text);
  outline: 0;
}

.case-article {
  display: grid;
  gap: clamp(46px, 7vw, 86px);
}

.case-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  padding-top: clamp(28px, 4vw, 44px);
}

.case-section-header h2 {
  font-size: clamp(1.55rem, 2.35vw, 2.25rem);
  max-width: 280px;
}

.case-section-body {
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.case-compare,
.case-options,
.case-decision-groups,
.case-principles,
.case-finding-grid,
.case-timeline,
.case-outcomes {
  max-width: 100%;
}

.case-compare,
.case-finding-grid,
.case-options,
.case-timeline,
.case-outcomes {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-finding-grid,
.case-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-compare article,
.case-options article {
  background: rgba(217, 221, 231, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px 21px;
}

.case-finding-grid article,
.case-timeline article,
.case-outcomes article {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.case-options {
  grid-template-columns: 1fr;
}

.case-decision-groups {
  display: grid;
  gap: 30px;
}

.case-decision-groups > section {
  display: grid;
  gap: 12px;
}

.case-decision-title {
  border-top: 1px solid var(--line);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 0;
  padding-top: 14px;
  text-transform: uppercase;
}

.case-options h3 {
  line-height: 1.35;
  margin: 0 0 17px;
}

.case-options dl {
  align-items: baseline;
  display: grid;
  column-gap: 18px;
  grid-template-columns: 108px minmax(0, 1fr);
  margin: 0;
  row-gap: 11px;
}

.case-options dt {
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.case-options dd {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.case-principles {
  display: grid;
}

.case-principles article {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  padding: 16px 0;
}

.case-principles h3 {
  color: var(--text);
  font-size: 1rem;
  margin: 0;
}

.case-principles p {
  margin: 0;
}

.case-os-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-os-nodes span {
  background: rgba(199, 169, 111, 0.08);
  border: 1px solid rgba(199, 169, 111, 0.22);
  border-radius: 999px;
  margin-bottom: 0;
  padding: 8px 10px;
}

@media (min-width: 1440px) {
  .case-meta {
    max-width: 920px;
  }

  .case-section-body {
    max-width: 820px;
  }

  .case-compare,
  .case-options,
  .case-decision-groups,
  .case-principles,
  .case-finding-grid,
  .case-timeline,
  .case-outcomes {
    width: min(100%, 860px);
  }
}

.case-next {
  align-items: center;
  background: rgba(20, 25, 34, 0.72);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: clamp(36px, 5vw, 58px);
  padding-top: clamp(36px, 5vw, 58px);
}

.case-next h2 {
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .site-header,
  .section-heading,
  .profile-band,
  .working-band,
  .contact-band {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .credibility-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credibility-band article:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .site-header {
    gap: 12px;
  }

  .nav-links {
    justify-content: space-between;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 720px;
  }

  .decision-map {
    opacity: 0.54;
  }

  .mesh-svg {
    height: auto;
    min-width: 0;
    right: 48%;
    top: 50%;
    width: 1500px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 10, 15, 0.96) 0%, rgba(8, 10, 15, 0.82) 48%, rgba(8, 10, 15, 0.52) 100%),
      radial-gradient(circle at 78% 48%, rgba(199, 169, 111, 0.08), transparent 42%);
  }

  .hero-content {
    align-self: center;
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
    padding: 34px 0 44px;
  }

  .hero-content h1 {
    font-size: 3.35rem;
    max-width: 720px;
  }

  .decision-map {
    width: 100%;
  }

  .sample-form {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .mini-case-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .mini-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .principles article {
    min-height: 0;
    padding-bottom: 26px;
    padding-top: 26px;
  }

  .contact-actions {
    justify-content: start;
  }

  .case-meta,
  .case-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-meta div,
  .case-overview-grid article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 20px;
  }

  .case-meta div:nth-child(-n + 2),
  .case-overview-grid article:nth-child(-n + 2) {
    border-top: 0;
  }

  .case-layout {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
  }

  .case-toc {
    position: static;
  }

  .case-toc nav {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    padding-top: 14px;
  }

  .case-toc span {
    flex-basis: 100%;
  }

  .case-section {
    grid-template-columns: 1fr;
  }

  .case-finding-grid,
  .case-timeline {
    grid-template-columns: 1fr;
  }

  .case-principles article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3rem;
  }

  .hero-content h1 {
    font-size: 2.05rem;
  }

  .decision-map {
    opacity: 0.46;
  }

  .credibility-band {
    grid-template-columns: 1fr;
  }

  .credibility-band article,
  .credibility-band article:nth-child(odd) {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
  }

  .credibility-band article:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .mesh-svg {
    right: 43%;
    width: 1400px;
  }

  .mesh-node text {
    font-size: 11px;
  }

  .project-evidence {
    grid-template-columns: 1fr;
  }

  .project-evidence div,
  .project-evidence div:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 13px 0;
  }

  .project-evidence div:first-child {
    border-top: 0;
  }

  .mini-case-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter {
    width: 100%;
  }

  .case-hero {
    min-height: auto;
  }

  .case-meta,
  .case-overview-grid,
  .case-compare,
  .case-outcomes,
  .case-next {
    grid-template-columns: 1fr;
  }

  .case-meta div:nth-child(-n + 2),
  .case-overview-grid article:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
  }

  .case-meta div:first-child,
  .case-overview-grid article:first-child {
    border-top: 0;
  }

  .case-options dl {
    column-gap: 0;
    row-gap: 0;
    grid-template-columns: 1fr;
  }

  .case-options dt {
    margin-bottom: 4px;
  }

  .case-options dd {
    margin-bottom: 15px;
  }

  .case-options dd:last-child {
    margin-bottom: 0;
  }
}
