:root {
  --paper: #faf8f3;
  --paper-strong: #fffdf8;
  --paper-dim: #eee8dc;
  --ink: #151817;
  --ink-soft: #4c514f;
  --line: #c9c1b4;
  --line-strong: #6e716b;
  --gold: #b1842f;
  --gold-soft: #ead7aa;
  --blueprint: #223047;
  --danger: #a0352b;
  --green: #406d55;
  --shadow: 0 18px 60px rgba(32, 28, 20, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

button,
input,
textarea,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(14px);
}

.site-brand {
  width: auto;
  min-width: 260px;
  padding-bottom: 0;
  border-bottom: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-links a,
.hero-actions a,
.contact-links a {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  padding: 0 12px;
}

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

.site-hero,
.site-section,
.work-intro,
.contact-section {
  background:
    linear-gradient(90deg, rgba(34, 48, 71, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34, 48, 71, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

.site-hero {
  min-height: min(720px, calc(100vh - 83px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
  padding: 46px 70px 38px;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1,
.section-kicker h2,
.work-intro h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 860px;
  font-size: 72px;
}

.hero-copy p:not(.eyebrow),
.work-intro p,
.contact-copy p {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-actions a:first-child,
.contact-links a:first-child {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.proof-panel {
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.84);
  padding: 24px;
  box-shadow: var(--shadow);
}

.proof-panel > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.proof-panel strong {
  display: block;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 84px;
  line-height: 0.9;
  font-weight: 500;
}

.proof-panel p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.proof-panel dl {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.proof-panel div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.proof-panel dt,
.proof-panel dd {
  margin: 0;
}

.proof-panel dt {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-panel dd {
  font-family: var(--serif);
  font-size: 20px;
}

.site-section,
.contact-section {
  padding: 64px clamp(22px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

.section-kicker h2,
.work-intro h2,
.contact-copy h2 {
  max-width: 900px;
  font-size: 54px;
}

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

.service-card,
.audit-card,
.cv-entry,
.cv-sidebar {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
}

.service-card {
  min-height: 214px;
  padding: 18px;
}

.service-card span,
.audit-card span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.service-card span {
  color: var(--gold);
}

.service-card h3,
.audit-card h3,
.cv-entry h3,
.cv-sidebar h3 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
}

.service-card h3 {
  font-size: 26px;
}

.service-card p,
.audit-card p,
.cv-entry p,
.cv-list,
.skill-list {
  color: var(--ink-soft);
  line-height: 1.55;
}

.work-shell {
  border-bottom: 1px solid var(--line);
}

.work-intro {
  padding: 54px clamp(22px, 5vw, 70px) 28px;
}

.work-shell .app-shell {
  min-height: 92vh;
  border-top: 1px solid var(--line);
}

.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.cv-timeline {
  display: grid;
  gap: 12px;
}

.cv-group-heading {
  margin-top: 18px;
  padding: 18px 0 6px;
  border-top: 1px solid var(--line);
}

.cv-group-heading span {
  display: block;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cv-group-heading p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.cv-entry {
  padding: 18px;
}

.cv-entry h3 {
  font-size: 25px;
}

.cv-entry p {
  margin-bottom: 0;
}

.cv-sidebar {
  padding: 18px;
}

.cv-sidebar h3 {
  font-size: 24px;
}

.cv-sidebar h3:not(:first-child) {
  margin-top: 28px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-list span,
.audit-card span {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 6px 8px;
  background: var(--paper-strong);
  color: var(--ink-soft);
}

.audit-card {
  padding: 18px;
}

.audit-card h3 {
  font-size: 24px;
}

.audit-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 36px;
  align-items: start;
}

.simple-contact-form {
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.86);
  padding: 22px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 390px;
  background:
    linear-gradient(90deg, rgba(34, 48, 71, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34, 48, 71, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

.side-panel,
.detail-panel {
  height: 100vh;
  min-height: 100vh;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(12px);
  border-color: var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
  align-self: start;
  max-height: 100vh;
}

.side-panel {
  border-right: 1px solid var(--line);
  padding: 28px;
  overflow-y: auto;
}

.detail-panel {
  border-left: 1px solid var(--line);
  overflow-y: auto;
}

.brand {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.brand small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.mobile-switch {
  display: none;
}

.intro-block {
  padding: 30px 0 24px;
}

.eyebrow,
.section-title,
.card-meta,
.detail-topline,
.detail-tags,
.count-strip,
.stage-actions,
.list-heading span {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.intro-block h1 {
  margin: 0;
  max-width: 9em;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.98;
  font-weight: 500;
}

.intro-block p:last-child {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 15px;
}

.search-box {
  display: block;
}

.search-box span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.count-strip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.count-strip strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0;
}

.filter-section {
  margin-top: 26px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.section-title button,
.stage-actions button,
.stage-actions a,
.map-toolbar button,
.detail-topline button,
.detail-actions button,
.detail-actions a,
.mobile-switch button {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
}

.section-title button {
  padding: 5px 8px;
  font-size: 10px;
  text-transform: uppercase;
}

.filter-grid,
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip,
.tag-chip {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
}

.filter-chip {
  width: 100%;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tag-chip {
  padding: 7px 9px;
  font-size: 12px;
}

.filter-chip.is-active,
.tag-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter-chip:hover,
.tag-chip:hover,
.section-title button:hover,
.stage-actions button:hover,
.stage-actions a:hover,
.map-toolbar button:hover,
.map-create:hover,
.timeline-wheel button:hover,
.detail-actions button:hover,
.detail-actions a:hover {
  border-color: var(--ink);
}

.filter-chip small {
  color: inherit;
  opacity: 0.7;
}

.atlas-stage {
  min-width: 0;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(360px, 56vh) minmax(0, 1fr);
  overflow: hidden;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 34px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 243, 0.76);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
  user-select: none;
}

.stage-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  font-weight: 500;
}

.stage-actions {
  display: flex;
  gap: 10px;
  font-size: 11px;
}

.stage-actions button,
.stage-actions a {
  padding: 10px 13px;
  text-transform: uppercase;
}

.stage-actions button:disabled {
  cursor: default;
  opacity: 0.42;
}

.map-history button:disabled,
.map-toolbar button:disabled,
.timeline-wheel button:disabled {
  cursor: default;
  opacity: 0.42;
}

.map-panel {
  position: relative;
  min-height: 420px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  user-select: none;
}

.map-viewport {
  width: 100%;
  height: 100%;
  min-height: 420px;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(34, 48, 71, 0.14) 1px, transparent 1.4px),
    linear-gradient(135deg, rgba(177, 132, 47, 0.12), transparent 42%);
  background-size: 34px 34px, 100% 100%;
}

.map-viewport.is-dragging {
  cursor: grabbing;
}

.map-world {
  width: 1200px;
  height: 840px;
  position: relative;
  transform-origin: 0 0;
}

.map-world.is-animating {
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.map-svg,
.map-nodes {
  position: absolute;
  inset: 0;
}

.map-svg path {
  fill: none;
  stroke: rgba(21, 24, 23, 0.24);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke 180ms ease, opacity 180ms ease, stroke-width 180ms ease;
}

.map-svg path.is-muted {
  opacity: 0.1;
}

.map-svg path.is-active {
  opacity: 1;
  stroke: var(--gold);
  stroke-width: 2.2;
}

.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 0;
  cursor: grab;
  transition:
    left 520ms cubic-bezier(0.16, 1, 0.3, 1),
    top 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(32, 28, 20, 0.08);
  -webkit-user-select: none;
  user-select: none;
}

.map-viewport.is-dragging .map-node {
  transition: none;
}

.map-viewport.is-dragging .map-world {
  transition: none;
}

.map-node:active {
  cursor: grabbing;
}

.map-node:focus-visible,
.project-card:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.map-node:hover,
.map-node.is-selected {
  border-color: var(--ink);
  transform: translate(-50%, -50%) scale(1.04);
}

.map-node.is-muted {
  opacity: 0.28;
}

.category-node {
  width: 154px;
  min-height: 62px;
  padding: 12px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
}

.category-node.is-selected,
.category-node.is-active {
  background: var(--ink);
  color: var(--paper);
}

.project-node {
  width: 88px;
  height: 88px;
  padding: 4px;
  overflow: hidden;
}

.project-node.is-selected {
  width: 126px;
  height: 126px;
  z-index: 8;
  border-color: var(--ink);
  box-shadow: 0 18px 48px rgba(32, 28, 20, 0.24), inset 0 0 0 2px var(--paper-strong);
}

.project-node img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.25);
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.project-node span {
  position: absolute;
  inset-inline: 4px;
  bottom: 4px;
  padding: 4px;
  background: rgba(21, 24, 23, 0.86);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.1;
  text-transform: uppercase;
}

.project-node.is-selected span {
  inset-inline: 6px;
  bottom: 6px;
  padding: 7px;
  font-size: 9px;
  line-height: 1.15;
}

.map-toolbar {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.map-history {
  position: absolute;
  right: 22px;
  top: 22px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.map-create {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 2;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.map-hint {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.84);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.map-toolbar button,
.map-history button {
  width: 42px;
  height: 42px;
  font-size: 22px;
  line-height: 1;
  font-family: var(--mono);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
}

.map-history button {
  font-size: 18px;
}

.tag-node {
  width: 118px;
  min-height: 42px;
  padding: 9px 10px;
  display: grid;
  place-items: center;
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 253, 248, 0.9);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
}

.tag-node::before {
  content: "#";
  margin-right: 2px;
}

.tag-node.is-selected,
.tag-node.is-active {
  background: var(--gold);
  color: var(--ink);
}

.draft-node {
  width: 142px;
  min-height: 94px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 7px;
  background: var(--blueprint);
  border-color: var(--blueprint);
  color: var(--paper);
  text-align: left;
}

.draft-node strong,
.draft-node small {
  display: block;
  pointer-events: none;
}

.draft-node strong {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.02;
  font-weight: 500;
}

.draft-node small {
  color: rgba(250, 248, 243, 0.76);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.draft-node.is-selected {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 18px 48px rgba(34, 48, 71, 0.28), inset 0 0 0 2px var(--paper-strong);
}

.draft-node.is-connecting::before,
.draft-node.is-connecting::after,
.draft-node.is-connecting span::before,
.draft-node.is-connecting span::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--paper);
  background: var(--gold);
}

.draft-node.is-connecting::before {
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
}

.draft-node.is-connecting::after {
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
}

.draft-node.is-connecting span::before {
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
}

.draft-node.is-connecting span::after {
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-wheel {
  position: absolute;
  left: 22px;
  top: 50%;
  z-index: 2;
  width: 76px;
  padding: 6px 0 28px;
  transform: translateY(-50%);
  background: transparent;
  user-select: none;
  filter: drop-shadow(0 10px 18px rgba(32, 28, 20, 0.08));
}

.timeline-wheel::before {
  display: none;
}

.timeline-wheel::after {
  display: none;
}

.timeline-wheel button {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 20px;
  margin-left: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  box-shadow: none;
}

.timeline-wheel > button:first-of-type {
  margin-bottom: 6px;
}

.timeline-wheel > button:last-of-type {
  margin-top: 6px;
}

.timeline-track {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 14px;
  width: 54px;
  max-height: 160px;
  overflow: hidden;
  padding: 6px 0;
  background:
    linear-gradient(180deg, rgba(250, 248, 243, 0.94), transparent 24%, transparent 76%, rgba(250, 248, 243, 0.94));
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.18, 1);
  scrollbar-width: none;
}

.timeline-wheel.is-rolling-down .timeline-track {
  transform: translateY(-42px);
}

.timeline-wheel.is-rolling-up .timeline-track {
  transform: translateY(42px);
}

.timeline-track::-webkit-scrollbar {
  display: none;
}

.year-bar {
  width: auto;
  min-width: 0;
  min-height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
}

.timeline-wheel .year-bar {
  width: auto;
  min-width: 0;
  margin-left: 0;
}

.year-bar span {
  display: grid;
  place-items: center;
  min-height: 24px;
  width: 42px;
  min-width: 42px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.74;
  transform-origin: center;
  transition: width 220ms ease, min-height 220ms ease, opacity 180ms ease, transform 220ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.year-bar.is-current {
  color: var(--ink);
}

.year-bar.is-current span {
  min-height: 34px;
  width: 50px;
  min-width: 50px;
  padding: 6px;
  border-color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  opacity: 1;
  transform: scale(1.08);
}

.year-bar.is-active.is-current span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.year-bar.is-near span {
  opacity: 0.64;
}

.year-bar.is-far span {
  opacity: 0.42;
}

.year-bar.is-ghost span {
  color: transparent;
  opacity: 0.22;
}

.year-bar.is-active:not(.is-current) span {
  min-height: 28px;
  width: 46px;
  min-width: 46px;
  padding: 5px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
  opacity: 1;
  transform: scale(1);
}

.year-bar.is-active.is-near:not(.is-current) span {
  opacity: 1;
}

.year-bar.is-active.is-far:not(.is-current) span {
  opacity: 1;
}

.year-bar:disabled {
  cursor: default;
}

.timeline-summary {
  display: none;
}

.project-list-section {
  padding: 28px 34px 40px;
  min-height: 0;
  overflow-y: auto;
}

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

.list-heading span {
  color: var(--ink-soft);
  font-size: 10px;
}

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

.project-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0;
  min-height: 156px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.82);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.project-card.is-selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.card-image {
  grid-row: 1 / span 2;
  min-height: 156px;
  background: var(--paper-dim);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.card-copy {
  padding: 16px 16px 10px;
  min-width: 0;
}

.card-meta {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 9px;
}

.card-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.04;
  font-weight: 500;
}

.card-excerpt {
  display: -webkit-box;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 6px;
  padding: 0 16px 14px;
}

.card-cats em,
.chip-group span,
.detail-tags span {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-style: normal;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  padding: 5px 6px;
}

.detail-empty {
  padding: 34px;
}

.detail-empty h2,
.detail-copy h2 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.02;
  font-weight: 500;
}

.detail-empty h2 {
  font-size: 44px;
}

.detail-empty p:last-child {
  color: var(--ink-soft);
  line-height: 1.6;
}

.detail-content {
  min-height: 100vh;
}

.detail-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
}

.detail-topline button {
  padding: 8px 10px;
  text-transform: uppercase;
}

.detail-image-shell {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--paper-dim), var(--paper-strong)),
    var(--paper-dim);
  overflow: hidden;
}

.detail-image-shell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  -webkit-user-drag: none;
  user-drag: none;
}

.detail-image-shell.is-brand img,
.detail-image-shell.is-empty img {
  opacity: 0;
}

.detail-image-shell figcaption {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: var(--serif);
  font-size: 42px;
  color: rgba(21, 24, 23, 0.42);
}

.detail-image-shell.is-brand figcaption,
.detail-image-shell.is-empty figcaption {
  display: grid;
}

.detail-copy {
  padding: 28px;
}

.detail-copy h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.detail-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.68;
  font-size: 15px;
}

.chip-group,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip-group span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0;
  margin: 0 28px 28px;
  border: 1px solid var(--line-strong);
}

.detail-actions button,
.detail-actions a {
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.detail-actions button:last-child {
  border-right: 0;
}

.detail-actions a {
  background: var(--ink);
  color: var(--paper);
}

.connection-mode {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 24px 0 18px;
}

.connection-mode button,
.project-form button[type="submit"] {
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.connection-mode button.is-active {
  background: var(--gold);
  color: var(--ink);
}

.connection-mode small {
  color: var(--ink-soft);
  line-height: 1.45;
}

.connection-editor {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.connection-group strong,
.project-form span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.removable-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.removable-pills button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 7px 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.removable-pills button::after {
  content: "x";
  color: var(--danger);
}

.removable-pills .empty-reference {
  color: var(--ink-soft);
  font-size: 13px;
}

.project-form {
  display: grid;
  gap: 14px;
}

.project-form input,
.project-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.project-form textarea {
  resize: vertical;
  min-height: 126px;
}

.project-form input:focus,
.project-form textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.form-status {
  margin: 0;
  color: var(--green);
  line-height: 1.5;
}

.form-status.is-error {
  color: var(--danger);
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--paper-strong);
  color: var(--ink-soft);
}

.error-state {
  border-color: var(--danger);
}

@media (max-width: 1280px) {
  .site-hero {
    padding-left: 48px;
    padding-right: 48px;
  }

  .hero-copy h1 {
    font-size: 64px;
  }

  .section-kicker h2,
  .work-intro h2,
  .contact-copy h2 {
    font-size: 48px;
  }

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

  .app-shell {
    grid-template-columns: 310px minmax(0, 1fr);
  }

  .detail-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(430px, 100vw);
    transform: translateX(100%);
    transition: transform 220ms ease;
    box-shadow: var(--shadow);
  }

  .detail-panel.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: relative;
    display: grid;
    padding: 16px;
  }

  .site-brand {
    min-width: 0;
  }

  .nav-links {
    justify-content: start;
  }

  .site-hero,
  .section-kicker,
  .cv-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-hero {
    min-height: auto;
    padding: 42px 22px 34px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .section-kicker h2,
  .work-intro h2,
  .contact-copy h2 {
    font-size: 40px;
  }

  .proof-panel {
    box-shadow: none;
  }

  .site-section,
  .contact-section {
    padding: 42px 22px;
  }

  .service-grid,
  .audit-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    display: block;
  }

  .side-panel {
    position: relative;
    height: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px;
  }

  .brand {
    padding-bottom: 20px;
  }

  .mobile-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 18px 0 0;
    border: 1px solid var(--line-strong);
  }

  .mobile-switch button {
    min-height: 42px;
    border: 0;
    border-right: 1px solid var(--line-strong);
    text-transform: uppercase;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  .mobile-switch button:last-child {
    border-right: 0;
  }

  .mobile-switch button.is-active {
    background: var(--ink);
    color: var(--paper);
  }

  .intro-block h1 {
    max-width: 11em;
  }

  .tag-section {
    max-height: 180px;
    overflow: auto;
    padding-right: 4px;
  }

  .stage-header {
    position: relative;
    padding: 22px;
    align-items: start;
  }

  .stage-actions {
    flex-direction: column;
  }

  .atlas-stage {
    height: auto;
    min-height: auto;
    display: block;
    overflow: visible;
  }

  .map-panel {
    display: none;
    min-height: 68vh;
  }

  .project-list-section {
    padding: 22px;
    overflow: visible;
  }

  .app-shell[data-view="atlas"] .map-panel {
    display: block;
  }

  .app-shell[data-view="atlas"] .project-list-section {
    display: none;
  }

  .map-viewport {
    min-height: 68vh;
  }

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

  .project-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .card-copy strong {
    font-size: 22px;
  }

  .detail-panel {
    width: 100vw;
  }

  .map-create {
    left: 16px;
    top: 16px;
    max-width: calc(100% - 116px);
  }

  .map-history {
    right: 16px;
    top: 16px;
  }

  .timeline-wheel {
    left: 16px;
    top: auto;
    bottom: 74px;
    width: 94px;
    transform: none;
  }
}

@media (max-width: 520px) {
  .side-panel,
  .stage-header,
  .project-list-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro-block h1 {
    font-size: 40px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .section-kicker h2,
  .work-intro h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  .stage-header h2 {
    font-size: 30px;
  }

  .project-card {
    min-height: 142px;
  }

  .card-image {
    min-height: 142px;
  }

  .card-excerpt {
    -webkit-line-clamp: 1;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .detail-actions button,
  .detail-actions a {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .detail-actions button:last-child {
    border-bottom: 0;
  }
}

.case-page {
  background:
    linear-gradient(90deg, rgba(34, 48, 71, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34, 48, 71, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

.case-root {
  min-height: calc(100vh - 73px);
}

.case-loading {
  padding: clamp(36px, 7vw, 84px);
}

.case-loading h1,
.case-hero h1,
.case-related h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1;
}

.case-loading h1 {
  max-width: 900px;
  font-size: clamp(42px, 7vw, 88px);
}

.case-shell {
  display: grid;
}

.case-hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42vw);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.case-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  padding: clamp(28px, 5vw, 70px);
}

.case-hero h1 {
  max-width: 980px;
  font-size: clamp(48px, 7vw, 104px);
}

.case-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.case-hero-image {
  min-height: 520px;
  margin: 0;
  border-left: 1px solid var(--line);
  background: var(--paper-dim);
}

.case-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
}

.case-hero-image.is-brand img {
  padding: 70px;
  object-fit: contain;
  opacity: 0.45;
}

.case-actions,
.case-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-actions a,
.case-chip-row a,
.case-rail a,
.case-related-grid a {
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
}

.case-actions a,
.case-chip-row a,
.case-rail a {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.case-actions a:first-child {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.case-meta-grid > div {
  padding: 22px clamp(22px, 4vw, 54px);
}

.case-meta-grid > div + div {
  border-left: 1px solid var(--line);
}

.case-meta-grid span,
.case-rail .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.case-body-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.case-rail {
  position: sticky;
  top: 73px;
  align-self: start;
  min-height: calc(100vh - 73px);
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.case-rail p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.55;
}

.case-body {
  max-width: 980px;
  padding: clamp(30px, 6vw, 74px);
}

.case-body p,
.case-body li {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.78;
}

.case-body p:first-child {
  margin-top: 0;
}

.case-body h2,
.case-body h3 {
  margin: 44px 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
}

.case-body h2 {
  font-size: clamp(34px, 5vw, 62px);
}

.case-body h3 {
  font-size: 30px;
}

.case-body ul {
  padding-left: 20px;
}

.case-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-body figure {
  margin: 34px 0;
}

.case-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.case-body .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.case-body .wp-block-gallery figure {
  margin: 0;
}

.case-related {
  padding: clamp(30px, 5vw, 70px);
}

.case-related h2 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 80px);
}

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

.case-related-grid a {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.case-related-grid span,
.case-related-grid small {
  color: var(--ink-soft);
}

.case-related-grid span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.case-related-grid strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
}

.case-related-grid small {
  line-height: 1.55;
}

@media (max-width: 920px) {
  .case-hero,
  .case-meta-grid,
  .case-body-shell,
  .case-related-grid {
    grid-template-columns: 1fr;
  }

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

  .case-hero-image {
    min-height: 340px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .case-hero-image img {
    min-height: 340px;
  }

  .case-meta-grid > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .case-rail {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-body .wp-block-gallery {
    grid-template-columns: 1fr;
  }
}
