:root {
  /* 60% — sand ground */
  --sand-100: #efe4cf;
  --sand-200: #e4d5b9;
  --text-muted-sand: #594d3c; /* 6.53:1 on #efe4cf */
  /* 30% — navy */
  --navy-900: #0f1b33;
  /* 10% — terracotta accent */
  --accent: #b5532f;         /* decorative marks & #ffffff button fill (4.95:1) */
  --accent-on-sand: #9c4524; /* 5.07:1 on #efe4cf */
  --accent-on-navy: #e0845f; /* 6.23:1 on #0f1b33 */
  --accent-text: var(--accent-on-sand);
  --white: #ffffff;

  --background: var(--sand-100);
  --foreground: var(--navy-900);
  --foreground-muted: var(--text-muted-sand);
  --surface-dark: var(--navy-900);
  --foreground-on-dark: var(--sand-100);
  --foreground-on-dark-muted: var(--sand-200);
  --hairline: var(--sand-200);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --type-impact: clamp(3rem, 6.2vw, 6.5rem);
  --type-display: clamp(2.5rem, 6vw, 5.5rem);
  --type-project-title: clamp(2.15rem, 4.6vw, 4.1rem);
  --type-lead: clamp(1.125rem, 1.4vw, 1.375rem);
  --type-body: 1rem;
  --type-label: 0.75rem;
  --leading-display: 0.95;
  --leading-body: 1.5;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  --cursor-color: var(--foreground);
}

[data-surface="navy"] {
  --accent-text: var(--accent-on-navy);
}

[data-surface="sand"] {
  --accent-text: var(--accent-on-sand);
}

/* Browser surfaces */
::selection {
  background: var(--navy-900);
  color: var(--sand-100);
}
[data-surface="navy"] ::selection {
  background: var(--sand-100);
  color: var(--navy-900);
}

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

html {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  margin: 0;
  overflow-x: hidden;
  min-height: 100svh;
}

/* Accessibility focus rings & skip target */
*:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

/* Screen reader only */
.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;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.svg-sprite-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.tabular-num {
  font-variant-numeric: tabular-nums;
}

.hairline-rule {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
  width: 100%;
}

/* Loader (Sticker Fan) */
.loader-veil {
  position: fixed;
  inset: 0;
  background: var(--background);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}

.loader-fan-container {
  position: relative;
  width: clamp(320px, 62vw, 880px);
  height: 320px;
  margin: 0 auto;
  pointer-events: auto;
  user-select: none;
}

.loader-sticker {
  position: absolute;
  left: 50%;
  top: 48%;
  margin-left: -80px;
  margin-top: -80px;
  width: 160px;
  height: 160px;
  transform-origin: center center;
  will-change: transform, opacity;
  opacity: 0;
  transform: scale(0.2) rotate(40deg) translateY(40px);
}

.sticker-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.sticker-shadow-group {
  filter: drop-shadow(0 6px 10px rgba(15, 27, 51, 0.18));
}

.sticker-halftone {
  mix-blend-mode: multiply;
}

.loader-wordmark-wrap {
  position: absolute;
  bottom: clamp(1.5rem, 3.5svh, 2.75rem);
  right: clamp(1.5rem, 3.5vw, 3rem);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 10;
}

.loader-wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.03em;
  display: block;
}

.wordmark-base {
  color: var(--sand-200);
}

.wordmark-fill {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--navy-900);
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}

.loader-status-bottom {
  position: absolute;
  bottom: clamp(1.5rem, 3.5svh, 2.75rem);
  left: clamp(1.25rem, 3.5vw, 3rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  z-index: 10;
}

.loader-counter-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--navy-900);
  background: var(--sand-200);
  box-shadow: 0 4px 12px rgba(15, 27, 51, 0.08);
}

.loader-counter-val {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 0.88;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.loader-counter-unit {
  font-family: var(--font-sans);
  font-size: var(--type-label);
  font-weight: 700;
  color: var(--accent-on-sand);
  letter-spacing: 0.04em;
}

.loader-caption-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.loader-caption-tag {
  font-size: var(--type-label);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-on-sand);
}

.loader-caption {
  font-size: var(--type-body);
  font-weight: 500;
  color: var(--navy-900);
  min-width: 220px;
}

/* Skip Link & Floating Nav Pill */
.skip-to-content {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--navy-900);
  color: var(--sand-100);
  font-size: var(--type-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}

.skip-to-content:hover,
.skip-to-content:focus {
  transform: translateY(0);
  color: var(--sand-100);
  outline: 2px solid var(--accent-on-navy);
}

.nav-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 9999px;
  width: calc(100% - 2 * var(--gutter));
  max-width: 1360px;
  padding: 0.2rem 1.25rem;
  border: 1px solid rgba(15, 27, 51, 0.14);
  background: rgba(239, 228, 207, 0.92);
  box-shadow: 0 4px 16px rgba(15, 27, 51, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: max-width 0.35s cubic-bezier(0.2, 0, 0, 1),
              padding 0.35s ease,
              border-color 0.2s ease,
              box-shadow 0.25s ease,
              background-color 0.25s ease;
}

.nav-header.is-pill {
  max-width: 560px;
  padding: 0.2rem 1.1rem;
  border-color: rgba(15, 27, 51, 0.24);
  box-shadow: 0 8px 28px rgba(15, 27, 51, 0.16);
  background: rgba(239, 228, 207, 0.97);
}

.wordmark-initials {
  display: none;
}

.nav-header.is-pill .wordmark-full {
  display: none;
}

.nav-header.is-pill .wordmark-initials {
  display: inline;
}

.nav-wordmark,
.nav-link,
.nav-resume {
  font-size: var(--type-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--foreground);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  transition: color 0.2s ease;
}

.nav-wordmark {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover,
.nav-resume:hover {
  color: var(--accent-on-sand);
}

.nav-menu-btn {
  display: none;
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foreground);
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
}

/* Mobile Sheet Drawer */
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--surface-dark);
  color: var(--foreground-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
  transform: translateY(-100%);
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1);
}

.mobile-sheet.is-open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-wordmark {
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foreground-on-dark);
}

.sheet-close-btn {
  font-size: var(--type-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foreground-on-dark);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
}

.sheet-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sheet-nav-item {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 3.5rem);
  line-height: 1.08;
  color: var(--foreground-on-dark);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.sheet-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: var(--type-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foreground-on-dark-muted);
  border-top: 1px solid rgba(239, 228, 207, 0.15);
  padding-top: 1rem;
}

/* Sticky Stack Container */
.stack-container {
  position: relative;
  background: var(--surface-dark);
}

.work-stack {
  position: relative;
}

.stack-layer {
  min-height: 100svh;
  position: relative;
  scroll-margin-top: 5.5rem;
}

.stack-layer.is-pinned {
  position: sticky;
  top: 0;
}

.stack-inner {
  min-height: 100svh;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(5.5rem, 9.5svh, 6.5rem) var(--gutter) var(--gutter);
  position: relative;
}

.stack-inner article,
.project-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.stack-shade {
  position: absolute;
  inset: 0;
  background: var(--navy-900);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

/* Contour Backdrop */
.contour-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Hero Section */
.layer-hero {
  background: var(--sand-100);
}

.layer-hero .stack-inner {
  padding: 0;
}

.hero-section {
  background: var(--background);
  color: var(--foreground);
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  padding: clamp(5.5rem, 9svh, 6.75rem) var(--gutter) clamp(1.5rem, 3svh, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-editorial-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1360px;
  margin: auto;
  gap: clamp(1.25rem, 2.5svh, 2rem);
}

.hero-eyebrow-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 0.25rem;
}

.hero-label {
  font-size: var(--type-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--foreground);
}

.hero-headline-wrap {
  padding: clamp(0.5rem, 1.5vw, 1.25rem) 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--type-impact);
  line-height: 0.94;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 100%;
  cursor: default;
}

.word-split-wrap {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.3em;
  row-gap: 0.05em;
}

.word-unit {
  display: inline-block;
  will-change: transform, opacity, color;
}

.word-unit.is-italic {
  font-style: italic;
}

.hero-subline {
  font-size: var(--type-lead);
  line-height: 1.45;
  color: var(--foreground);
  max-width: 48ch;
  margin: 0;
}

.hero-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: clamp(2rem, 5svh, 3.5rem);
  padding-top: 1rem;
  gap: 1.5rem;
}

.hero-action-left {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.btn-selected-work {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  border: 1px solid var(--foreground);
  font-size: var(--type-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-arrow {
  display: inline-block;
  color: var(--accent-text);
  font-weight: 700;
  transition: transform 250ms ease;
}

.btn-selected-work:hover {
  background: var(--navy-900);
  color: var(--sand-100);
  border-color: var(--navy-900);
}

.btn-selected-work:hover .btn-arrow {
  transform: translate(0.25rem, 0.25rem);
  color: var(--accent-on-navy);
}

.hero-stat-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  margin: 0 auto;
}

.hero-figure {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-align: center;
}

.hero-stat-plus {
  color: var(--accent-on-sand);
  font-weight: 400;
  margin-left: 2px;
}

.hero-stat-label {
  font-size: var(--type-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--foreground-muted);
  text-align: center;
}

.hero-action-right {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-icon-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: fit-content;
  flex: 0 0 auto;
}

.hero-icon-chip {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--navy-900);
  background: var(--sand-100);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-icon-chip:hover,
.hero-icon-chip:focus-visible {
  background: var(--navy-900);
  color: var(--sand-100);
}

.chip-hover-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hero-icon-chip:hover .chip-hover-label,
.hero-icon-chip:focus-visible .chip-hover-label {
  opacity: 1;
}

/* Project Cards */
.project-card[data-surface="navy"] {
  background: var(--surface-dark);
  color: var(--foreground-on-dark);
}

.project-card[data-surface="sand"] {
  background: var(--sand-100);
  color: var(--foreground);
}

.project-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: var(--type-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.nda-note {
  font-size: var(--type-label);
  letter-spacing: 0.04em;
  color: var(--foreground-on-dark-muted);
  opacity: 0.85;
  margin: 0 0 0.75rem 0;
  position: relative;
  z-index: 2;
}

.project-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.project-lead-col,
.project-detail-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

/* Unified Project Title Outline-to-Fill Animation */
.project-animated-title {
  font-family: var(--font-display);
  font-size: var(--type-project-title);
  line-height: 0.95;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(1.35rem, 2.8svh, 2.15rem) 0;
  cursor: default;
}

.project-animated-title .title-line {
  display: block;
  white-space: nowrap;
  color: transparent;
  will-change: color;
  transition: color 0.12s ease, -webkit-text-stroke-color 0.2s ease;
}

[data-surface="navy"] .project-animated-title .title-line {
  -webkit-text-stroke: 1.5px var(--foreground-on-dark);
}

[data-surface="sand"] .project-animated-title .title-line {
  -webkit-text-stroke: 1.5px var(--foreground);
}

[data-surface="navy"] .project-animated-title.is-filled .title-line {
  color: var(--foreground-on-dark);
}

[data-surface="sand"] .project-animated-title.is-filled .title-line {
  color: var(--foreground);
}

[data-surface="navy"] .project-animated-title:hover .title-line {
  color: var(--accent-on-navy);
  -webkit-text-stroke-color: var(--accent-on-navy);
}

[data-surface="sand"] .project-animated-title:hover .title-line {
  color: var(--accent-on-sand);
  -webkit-text-stroke-color: var(--accent-on-sand);
}

.lead-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.project-summary {
  font-size: var(--type-lead);
  line-height: 1.5;
  margin: 0;
}

.project-lead-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid currentColor;
  padding-top: 1rem;
}

[data-surface="navy"] .project-lead-details {
  border-top-color: rgba(239, 228, 207, 0.18);
}

[data-surface="sand"] .project-lead-details {
  border-top-color: var(--sand-200);
}

.lead-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lead-detail-label {
  font-size: var(--type-label);
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
}

.lead-detail-text {
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
  opacity: 0.92;
}

/* Card 01 Route Visual */
.route-visual-wrap {
  width: 100%;
  margin-top: 0.5rem;
}

.route-visual {
  position: relative;
  width: 100%;
  padding: 0.5rem 0;
}

.route-track {
  position: relative;
  width: 100%;
  height: 48px;
}

.route-track-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 32px;
  height: 2px;
  background: rgba(239, 228, 207, 0.22);
  border-radius: 1px;
}

.route-track-progress {
  position: absolute;
  left: 0;
  top: 32px;
  height: 2px;
  background: var(--sand-100);
  border-radius: 1px;
  width: 0%;
  will-change: width;
  transition: width 0.05s linear;
}

.route-stop-dot {
  position: absolute;
  top: 33px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(239, 228, 207, 0.3);
  transform: translate(-50%, -50%);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
}

.route-stop-dot--start { left: 0%; }
.route-stop-dot--mid { left: 50%; }
.route-stop-dot--end { left: 100%; }

.route-stop-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 83, 47, 0.35);
}

.delivery-truck-wrap {
  position: absolute;
  top: 0;
  left: 0%;
  width: 58px;
  height: 36px;
  z-index: 3;
  pointer-events: none;
  will-change: left, transform;
  transform: translateX(0%);
  transition: transform 0.05s linear;
}

.truck-svg {
  display: block;
  width: 58px;
  height: 36px;
}

.route-stops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2.25rem);
  padding-top: 1rem;
}

.route-stop-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid rgba(239, 228, 207, 0.16);
  padding-top: 0.75rem;
  opacity: 0.55;
  transition: opacity 0.3s ease, border-top-color 0.3s ease;
}

.route-stop-item.is-active {
  opacity: 1;
  border-top-color: var(--accent-on-navy);
}

.route-stop-tag {
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-navy);
  display: block;
}

.route-stop-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sand-100);
  line-height: 1.3;
}

.route-stop-sub {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--foreground-on-dark-muted);
  display: block;
}

/* Card 02 Architecture Grid */
.problem-arch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.arch-block {
  background: rgba(15, 27, 51, 0.04);
  border: 1px solid var(--sand-200);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
}

.arch-label {
  color: var(--accent-text);
  font-size: var(--type-label);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.45rem;
}

.arch-label--navy {
  color: var(--foreground);
}

.arch-text {
  color: var(--foreground);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Card 03 & 04 Ledger Rows */
.ledger-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2svh, 1.75rem);
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0 0.95rem 0;
}

[data-surface="navy"] .ledger-row {
  border-bottom: 1px solid rgba(239, 228, 207, 0.16);
}

[data-surface="sand"] .ledger-row {
  border-bottom: 1px solid rgba(15, 27, 51, 0.16);
}

.ledger-label {
  font-size: var(--type-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  flex-shrink: 0;
}

[data-surface="navy"] .ledger-label {
  color: var(--foreground-on-dark-muted);
}

[data-surface="sand"] .ledger-label {
  color: var(--text-muted-sand);
}

.ledger-val {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  text-align: right;
}

[data-surface="navy"] .ledger-val {
  color: var(--foreground-on-dark);
}

[data-surface="sand"] .ledger-val {
  color: var(--foreground);
}

.ledger-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.82;
  margin-top: 0.25rem;
  margin-left: 0;
}

/* Project Meta Row */
.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: var(--type-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  position: relative;
  z-index: 3;
}

[data-surface="navy"] .project-meta-row {
  background: rgba(239, 228, 207, 0.08);
  border: 1px solid rgba(239, 228, 207, 0.18);
  color: var(--foreground-on-dark);
}

[data-surface="sand"] .project-meta-row {
  background: rgba(15, 27, 51, 0.05);
  border: 1px solid var(--sand-200);
  color: var(--foreground);
}

.project-meta-left {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 600;
}

.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(181, 83, 47, 0.25);
}

.meta-company {
  font-weight: 700;
}

.meta-divider {
  opacity: 0.78;
}

.meta-role,
.meta-years {
  opacity: 0.92;
}

.project-ask-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

[data-surface="navy"] .project-ask-link {
  color: var(--sand-100);
  border: 1px solid rgba(239, 228, 207, 0.35);
  background: rgba(15, 27, 51, 0.55);
}

[data-surface="navy"] .project-ask-link:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-1px);
}

[data-surface="sand"] .project-ask-link {
  color: var(--navy-900);
  border: 1px solid var(--navy-900);
  background: transparent;
}

[data-surface="sand"] .project-ask-link:hover {
  background: var(--navy-900);
  color: var(--sand-100);
  border-color: var(--navy-900);
  transform: translateY(-1px);
}

.project-ask-link .ask-arrow {
  color: var(--accent-text);
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-ask-link:hover .ask-arrow {
  transform: translateX(3px);
  color: currentColor;
}

/* About Section */
.about-section {
  background: var(--surface-dark);
  color: var(--foreground-on-dark);
  position: relative;
  padding: clamp(5.5rem, 9svh, 7.5rem) var(--gutter);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dissolve-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30svh;
  pointer-events: none;
  z-index: 3;
}

.about-grid {
  display: grid;
  grid-template-columns: clamp(270px, 26vw, 350px) 1fr;
  gap: clamp(2.5rem, 5vw, 4.75rem);
  align-items: start;
  position: relative;
  z-index: 2;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

.about-masthead {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-title {
  font-family: var(--font-display);
  font-size: var(--type-display);
  line-height: var(--leading-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

.accent-dot {
  color: var(--accent-on-navy);
}

.about-spec-box {
  background: rgba(239, 228, 207, 0.04);
  border: 1px solid rgba(239, 228, 207, 0.16);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  margin-top: 0.25rem;
}

.about-spec-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(239, 228, 207, 0.12);
}

.about-spec-row:first-child {
  padding-top: 0;
}

.about-spec-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.about-spec-lbl {
  font-size: var(--type-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-on-navy);
}

.about-spec-val {
  font-size: var(--type-body);
  line-height: 1.5;
  color: var(--foreground-on-dark);
}

.about-body-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.about-paragraph {
  font-size: clamp(1.125rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-wrap: pretty;
  margin: 0;
  max-width: 58ch;
}

.about-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  border-top: 1px solid rgba(239, 228, 207, 0.16);
  border-bottom: 1px solid rgba(239, 228, 207, 0.16);
  padding: 1.5rem 0;
}

.about-proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.about-proof-lbl {
  font-size: var(--type-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-on-navy);
}

.about-proof-val {
  font-size: var(--type-body);
  line-height: 1.55;
  font-weight: 500;
  color: var(--foreground-on-dark);
  margin: 0;
}

.stack-plain-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
}

.stack-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stack-group-title {
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-navy);
}

.stack-group-items {
  font-size: var(--type-body);
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--foreground-on-dark);
}

/* Contact Section */
.contact-section {
  background: var(--sand-100);
  color: var(--foreground);
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(5.5rem, 9svh, 7.5rem) var(--gutter) clamp(1.75rem, 3vw, 2.5rem);
  isolation: isolate;
  overflow: hidden;
}

.contact-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  margin: auto 0;
  padding: clamp(1rem, 3svh, 2.5rem) 0;
}

.contact-primary-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.contact-headline-wrap {
  display: inline-block;
}

.contact-mailto {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7.5vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--foreground);
  display: inline-block;
  min-height: 44px;
}

.contact-letters-wrap {
  display: inline-flex;
}

.contact-letter {
  display: inline-block;
  will-change: color;
  transition: color 0.1s ease;
}

.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.contact-email-sub {
  font-size: clamp(1.125rem, 1.4vw, 1.3rem);
  font-weight: 500;
  color: var(--foreground);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-color: rgba(15, 27, 51, 0.35);
  text-underline-offset: 5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-email-sub:hover {
  color: var(--accent-on-sand);
  text-decoration-color: var(--accent-on-sand);
}

.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 27, 51, 0.28);
  background: transparent;
  color: var(--foreground);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-copy-email:hover,
.btn-copy-email.is-copied {
  background: var(--navy-900);
  color: var(--sand-100);
  border-color: var(--navy-900);
}

.contact-secondary-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-brief-box {
  background: rgba(15, 27, 51, 0.04);
  border: 1px solid rgba(15, 27, 51, 0.16);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.contact-brief-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 27, 51, 0.1);
}

.contact-brief-row:first-child {
  padding-top: 0;
}

.contact-brief-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.contact-brief-lbl {
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-sand);
}

.contact-brief-val {
  font-size: var(--type-body);
  line-height: 1.55;
  color: var(--foreground);
}

.contact-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}

.contact-link-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-link-label {
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foreground-muted);
}

.contact-link-anchor {
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  font-weight: 600;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contact-link-anchor:hover {
  color: var(--accent-on-sand);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(15, 27, 51, 0.16);
  padding: 2rem 0 0 0;
  margin-top: clamp(2rem, 4.5svh, 3.5rem);
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.footer-content-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(15, 27, 51, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--foreground);
}

.footer-brand-sub {
  font-size: var(--type-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground-muted);
  font-weight: 500;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(15, 27, 51, 0.05);
  border: 1px solid rgba(15, 27, 51, 0.14);
  font-size: var(--type-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--foreground);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: var(--type-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foreground-muted);
}

.foot-item {
  opacity: 1;
  transform: none;
  will-change: transform, opacity;
}

.back-to-top-btn {
  color: var(--foreground);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.back-to-top-btn:hover {
  color: var(--accent-on-sand);
}

/* Custom Cursor (Desktop Fine Pointer Only) */
.cursor-dot,
.cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor body,
  html.has-custom-cursor button,
  html.has-custom-cursor a {
    cursor: none;
  }

  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cursor-color);
    pointer-events: none;
    z-index: 1000;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
    transition: opacity 0.2s ease;
  }

  .cursor-ring {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--cursor-color);
    pointer-events: none;
    z-index: 999;
    transform: translate3d(-100px, -100px, 0);
    align-items: center;
    justify-content: center;
    will-change: transform, width, height, border-color, background-color;
    transition: width 0.25s cubic-bezier(0.2, 0, 0, 1),
                height 0.25s cubic-bezier(0.2, 0, 0, 1),
                background-color 0.2s ease;
  }

  .cursor-label {
    font-size: var(--type-label);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cursor-color);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .cursor-ring.is-hover {
    width: 56px;
    height: 56px;
  }

  .cursor-ring.is-view {
    width: 64px;
    height: 64px;
    background: rgba(15, 27, 51, 0.08);
  }

  .cursor-ring.is-view .cursor-label {
    opacity: 1;
    transform: scale(1);
  }

  .cursor-dot.is-hidden {
    opacity: 0;
  }
}

/* ============================================================================
   Responsive Breakpoints (Strict Descending Order)
   ============================================================================ */

@media (max-width: 1023px), (max-height: 820px) {
  .stack-layer.is-pinned {
    position: relative;
    top: auto;
  }
}

@media (max-width: 1023px) {
  .about-grid,
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 899px) {
  .project-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-animated-title .title-line {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .nav-links,
  .nav-resume {
    display: none;
  }

  .nav-menu-btn {
    display: inline-flex;
  }

  .nav-header,
  .nav-header.is-pill {
    max-width: none;
    width: calc(100% - 2 * var(--gutter));
    padding: 0.2rem 1rem;
  }

  .about-proof-grid,
  .stack-plain-list {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

@media (max-width: 639px) {
  :root {
    --gutter: 1.25rem;
  }

  .dissolve-canvas {
    z-index: 0;
  }

  .loader-fan-container {
    width: 92vw;
  }

  .loader-sticker {
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
  }

  .hero-content {
    padding-top: 5.5rem;
  }

  .hero-action-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .hero-action-left,
  .hero-stat-block,
  .hero-action-right {
    width: 100%;
    justify-content: center;
  }

  .project-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .ledger-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .ledger-val {
    text-align: left;
  }

  .footer-top-row,
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .route-stops-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .contact-links-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .word-unit,
  .foot-item {
    opacity: 1;
    transform: none;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .loader-veil {
    display: none;
  }

  [data-surface="navy"] .project-animated-title .title-line {
    color: var(--foreground-on-dark);
  }

  [data-surface="sand"] .project-animated-title .title-line {
    color: var(--foreground);
  }
}
