:root {
  --bg: #e6e1d2;
  --ink: #17140f;
  --muted: #7d7562;
  --line: #cfc6af;
  --panel: #dbd4c0;
  --cream: #eeeae0;
  --accent: #8c6a3f;
  --max: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --ink: #eee7d8;
  --muted: #8c8474;
  --line: #262019;
  --panel: #17130d;
  --cream: #17130d;
  --accent: #c9a165;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.002em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  animation: page-fade-in 700ms ease;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mark {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link,
.nav-cta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 250ms var(--ease);
}

.nav-link:hover,
.nav-cta:hover,
.mark:hover {
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.back-to-top {
  position: fixed;
  z-index: 45;
  right: max(1.25rem, calc((100vw - var(--max)) / 2));
  bottom: 1.5rem;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 300ms ease, transform 400ms var(--ease), border-color 250ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--ink);
}

.theme-toggle {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: color 250ms var(--ease), border-color 250ms var(--ease);
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.theme-toggle .sun {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .moon {
  fill: currentColor;
  stroke: none;
}

.theme-toggle .moon,
:root[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon {
  display: block;
}

/* Mobile menu — one hamburger/× control (fixed, always on top of the
   overlay it opens) + a full-screen black takeover that unclips downward
   from behind the nav, like a blind dropping, rather than fading in. */
.menu-toggle {
  position: fixed;
  z-index: 201;
  top: 1.2rem;
  right: 4.4rem;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 1px;
  background: var(--ink);
  transition: transform 300ms var(--ease), opacity 200ms ease, background-color 250ms ease;
}

.menu-toggle.is-active span {
  background: #f3eee3;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #000;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path 480ms var(--ease);
  --ink: #f3eee3;
  --muted: rgba(243, 238, 227, 0.65);
  --line: rgba(243, 238, 227, 0.25);
  --accent: #c9a165;
  color: var(--ink);
}

.mobile-menu.is-open {
  clip-path: inset(0 0 0% 0);
  pointer-events: auto;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  padding: 1.5rem;
}

.mobile-menu-mark {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mobile-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem;
}

.mobile-menu-links a {
  font-size: clamp(1.8rem, 9vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mobile-menu-links a[aria-current="page"] {
  color: var(--accent);
}

.mobile-menu-foot {
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 861px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hero — the portrait takes half the frame, copy the other */
.hero {
  height: clamp(30rem, 88vh, 880px);
}

.hero-grid {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 5vw, 5rem);
}

.hero-frame {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero-statement {
  max-width: 17ch;
  font-size: clamp(2.75rem, 6.6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
}

.hero-statement .accent {
  color: var(--accent);
  font-weight: 600;
}

.complexity-word {
  font-style: italic;
  font-weight: 400;
  opacity: 0.82;
}

.hero-line {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 300ms ease, color 300ms ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.text-link {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
  transition: color 250ms ease, border-color 250ms ease;
}

.text-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible {
  animation: rise 900ms var(--ease) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section rhythm */

/* Two sides */
.identity-split {
  padding: 7rem 0 8rem;
}

.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 2.5rem;
}

.identity-panel {
  position: relative;
  min-height: 24rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 2.75rem;
  background: var(--panel);
  transition: background-color 350ms ease;
}

.identity-personal {
  --muted: rgba(243, 238, 227, 0.72);
  background-image: linear-gradient(180deg, rgba(10, 8, 5, 0.18) 0%, rgba(10, 8, 5, 0.78) 100%),
    url("Pictures/web/IMG_7649.jpg");
  background-size: cover;
  background-position: center 38%;
  color: #f3eee3;
}

.identity-planning:hover {
  background: color-mix(in srgb, var(--panel) 82%, var(--ink) 6%);
}

.identity-personal:hover {
  background-image: linear-gradient(180deg, rgba(10, 8, 5, 0.08) 0%, rgba(10, 8, 5, 0.68) 100%),
    url("Pictures/web/IMG_7649.jpg");
}

.identity-index,
.identity-detail {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.identity-detail {
  grid-row: 4;
}

.identity-panel strong {
  font-size: clamp(3rem, 6.4vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.identity-arrow {
  position: absolute;
  right: 2.25rem;
  bottom: 1.9rem;
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 400ms var(--ease);
}

.identity-personal .identity-arrow {
  color: var(--muted);
}

.identity-panel:hover .identity-arrow {
  transform: translate(0.2rem, 0.2rem);
}

/* Mini decision-simulator preview — a quiet, looping echo of the Planning
   page's interactive graph, shown behind the "Planning" wordmark. Lives in
   its own grid row below the word so it never affects where the word
   itself sits — that stays locked to the same row as "Personal" next door. */
.identity-graph {
  grid-row: 3;
  align-self: start;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 16rem;
}

.identity-graph svg {
  display: block;
  width: 100%;
  height: 4.25rem;
  overflow: visible;
}

.identity-graph-base {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}

.identity-graph-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.identity-graph-toggles {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.identity-graph-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--line);
  transition: background-color 500ms ease, box-shadow 500ms ease;
}

.identity-graph-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* About note */
.about-note {
  padding: 6rem 0 2.5rem;
}

.about-note-text {
  max-width: 46rem;
  margin-inline: auto;
  font-size: 1.1rem;
  text-align: center;
  color: var(--muted);
}

.about-note-text strong {
  color: var(--ink);
  font-weight: 600;
}

.about-note-tag {
  display: block;
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.about-note-text a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  transition: opacity 250ms ease;
}

.about-note-text a:hover {
  opacity: 0.7;
}

/* Section headers (shared) */
.section-head {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.section-head--lead h2 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
}

.section-copy {
  margin-top: 1.1rem;
  color: var(--muted);
}

/* How I plan — five domains, alternating editorial rhythm */
.how-i-plan {
  padding: 8rem 0 7rem;
}

.domain-list {
  position: relative;
  max-width: 62rem;
  margin-inline: auto;
}

/* The thread connecting all five emblems — passes behind each one, which
   "breaks" it visually into five linked segments rather than one long line. */
.domain-list::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 1px;
  background: var(--line);
}

.domain-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3.5rem;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.domain-list .domain-row:first-child {
  border-top: 1px solid var(--line);
}

.domain-item {
  padding: 3rem 0;
}

.domain-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}

.domain-item--right .domain-head {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.domain-index {
  flex: none;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.domain-item h3 {
  font-size: 1.4rem;
}

.domain-item p {
  color: var(--muted);
  max-width: 40rem;
}

.domain-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--bg);
  border-radius: 50%;
  transition: background-color 300ms var(--ease);
}

.domain-emblem svg {
  width: 2rem;
  height: 2rem;
}

.domain-emblem circle:first-child {
  stroke: var(--line);
  stroke-width: 1.2;
}

.domain-emblem .emblem-mark {
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Decision simulator — toggle real client decisions, watch the plan move */
.scenario {
  padding: 7rem 0;
}

.scenario-panel {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  max-width: 62rem;
  margin-inline: auto;
}

.scenario-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scenario-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.25rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.scenario-toggle:first-child {
  border-top: 1px solid var(--line);
}

.scenario-toggle-switch {
  position: relative;
  flex: none;
  width: 2.35rem;
  height: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}

.scenario-toggle-switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--muted);
  transform: translateY(-50%);
  transition: transform 300ms var(--ease), background-color 300ms var(--ease);
}

.scenario-toggle[aria-checked="true"] .scenario-toggle-switch {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.scenario-toggle[aria-checked="true"] .scenario-toggle-switch::after {
  background: var(--accent);
  transform: translate(1rem, -50%);
}

.scenario-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.scenario-toggle-label strong {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.scenario-toggle-label span {
  font-size: 0.78rem;
  color: var(--muted);
}

.scenario-toggle[aria-checked="true"] .scenario-toggle-label strong {
  color: var(--accent);
}

.scenario-chart {
  position: relative;
}

.scenario-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.scenario-fill-start {
  stop-color: var(--accent);
  stop-opacity: 0.25;
}

.scenario-fill-end {
  stop-color: var(--accent);
  stop-opacity: 0;
}

.scenario-area {
  fill: url(#scenario-fill);
  transition: opacity 400ms ease;
}

.scenario-baseline {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  opacity: 0;
  transition: opacity 500ms ease;
}

.scenario-chart.is-diverged .scenario-baseline {
  opacity: 0.55;
}

.scenario-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scenario-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scenario-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 62rem;
  margin: 3.5rem auto 0;
  background: var(--line);
}

.scenario-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  text-align: center;
}

.scenario-stat-value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--accent);
  transition: color 400ms ease;
}

.scenario-stat-value.is-negative {
  color: var(--muted);
}

.scenario-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.scenario-quote {
  max-width: 34rem;
  margin: 3rem auto 0;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
}

.scenario-quote span {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.scenario-disclaimer {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--muted);
}

/* Planning toolkit — tools with a one-line note and a proficiency thread */
.software {
  padding: 7rem 0;
}

.software-list {
  max-width: 60rem;
  margin-inline: auto;
}

.tool-item {
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--line);
}

.software-list .tool-item:first-child {
  border-top: 1px solid var(--line);
}

.tool-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.tool-head h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tool-head h3 a {
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease;
}

.tool-head h3 a:hover {
  border-bottom-color: var(--ink);
}

.tool-percent {
  flex: none;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.tool-desc {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 38rem;
}

.tool-bar {
  position: relative;
  margin-top: 1.1rem;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.tool-bar span {
  position: absolute;
  inset: 0;
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.tool-item.is-visible .tool-bar span {
  animation: tool-fill 1.1s var(--ease) forwards;
}

@keyframes tool-fill {
  to {
    transform: scaleX(1);
  }
}

.software-projects {
  margin-top: 4rem;
  max-width: 60rem;
  margin-inline: auto;
}

.projects-note {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42rem;
}

/* Experience — a quiet vertical timeline, not a resume table */
.experience {
  padding: 7rem 0;
}

.timeline {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: 2.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--muted);
}

.timeline-dot.is-current {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 0.35rem;
}

.timeline-meta h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.timeline-meta > span {
  flex: none;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-item p a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  transition: opacity 250ms ease;
}

.timeline-item p a:hover {
  opacity: 0.7;
}

.experience-credentials {
  max-width: 56rem;
  margin-top: 3.5rem;
  margin-inline: auto;
}

.credential-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.credential-badge {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-links {
  justify-self: center;
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  transition: color 250ms ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-note {
  justify-self: center;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-copy {
  justify-self: end;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* Gallery */
.gallery-page {
  min-height: 100vh;
}

.gallery-hero {
  position: relative;
  padding: 9rem 0 4.5rem;
  overflow: hidden;
  --ink: #f3eee3;
  --muted: rgba(243, 238, 227, 0.72);
  --line: rgba(243, 238, 227, 0.4);
  --accent: #e3b76b;
  color: var(--ink);
}

.gallery-hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: linear-gradient(180deg, rgba(10, 8, 5, 0.45) 0%, rgba(10, 8, 5, 0.8) 100%),
    url("Pictures/web/downtown-kc.jpg");
  background-size: cover;
  background-position: center 40%;
  filter: blur(10px);
}

.gallery-hero .container {
  position: relative;
  z-index: 1;
}

.gallery-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.gallery-hero-copy {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.gallery-rule {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-section {
  padding: 4.5rem 0 8rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5rem 1.25rem;
  align-items: start;
}

.gallery-card {
  grid-column: 2 / span 7;
  margin: 0;
}

.gallery-card:nth-child(4n + 2) {
  grid-column: 9 / span 4;
  margin-top: 9rem;
}

.gallery-card:nth-child(4n + 3) {
  grid-column: 1 / span 5;
}

.gallery-card:nth-child(4n + 4) {
  grid-column: 6 / span 7;
  margin-top: 5rem;
}

.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.gallery-image-button img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  transition: opacity 350ms ease;
}

.gallery-image-button:hover img {
  opacity: 0.88;
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.lightbox {
  width: min(94vw, 1400px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  margin: auto;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--bg) 35%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  color: var(--bg);
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 980px) {
  .identity-panel {
    min-height: 20rem;
  }
}

@media (max-width: 860px) {
  .section-head,
  .about-note-text {
    text-align: left;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }

  .hero {
    height: auto;
  }

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

  .hero-copy {
    padding: 3rem 1.5rem 2.5rem;
    order: 2;
    align-items: center;
    text-align: center;
  }

  .hero-statement {
    max-width: none;
  }

  .hero-frame {
    order: 1;
    height: 22rem;
  }

  .nav-actions {
    gap: 1rem;
  }

  .nav-link,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-links,
  .footer-note {
    display: none;
  }

  .gallery-hero {
    padding-top: 6.5rem;
  }

  .hero-actions {
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    margin-top: 2.25rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 1.1rem 2rem;
  }

  .hero-actions .text-link {
    align-self: center;
  }

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

  .identity-panel {
    min-height: 18rem;
  }

  .card,
  .gallery-card {
    grid-column: 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .gallery-card:nth-child(n) {
    grid-column: 1;
    margin-top: 0;
  }

  .domain-item--right .domain-head {
    flex-direction: row;
    justify-content: flex-start;
  }

  .scenario-panel {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .scenario-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container,
  .nav-inner {
    width: min(var(--max), calc(100% - 2rem));
  }

  .hero-statement {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }

  .gallery-hero h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .identity-panel {
    padding: 1.75rem;
  }

  .timeline-meta,
  .tool-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .domain-index {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    animation: none;
  }

  .back-to-top {
    transition: none;
  }

  .mobile-menu,
  .menu-toggle span {
    transition: none;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .tool-item.is-visible .tool-bar span {
    animation: none;
    transform: scaleX(1);
  }

  .btn:hover {
    transition: none;
  }
}
