@font-face {
  font-family: "Libre Baskerville";
  src: url("../assets/fonts/LibreBaskerville-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("../assets/fonts/LibreBaskerville-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("../assets/fonts/LibreBaskerville-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #1b3a6b;
  --navy-deep: #0d2039;
  --navy-soft: #315a87;
  --cream: #e0e0db;
  --paper: #f7f5ef;
  --white: #ffffff;
  --ink: #0f1419;
  --grey: #595959;
  --rule: #a6a79f;
  --brass: #b8860b;
  --brass-light: #d6b966;
  --display: "Libre Baskerville", Baskerville, Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --tagline: "Times New Roman", Times, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --content: 76rem;
  --rail: 15rem;
  --header-h: 6rem;
  --logo-x: 68vw;
  --logo-y: 52vh;
  --logo-scale: 0.78;
  --logo-opacity: 0.2;
  --ring-turn: 0deg;
  --progress: 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 2rem);
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 20rem;
  background:
    linear-gradient(rgba(27, 58, 107, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 58, 107, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 4rem 4rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    repeating-radial-gradient(ellipse at 82% 36%, transparent 0 4.8rem, rgba(27, 58, 107, 0.035) 4.9rem 5rem, transparent 5.1rem 7rem),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.68), transparent 48%);
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

button,
summary {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--navy-deep);
}

::selection {
  background: var(--navy);
  color: var(--white);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 220ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto minmax(10rem, 1fr);
  align-items: center;
  min-height: var(--header-h);
  padding: 0 2.1rem;
  border-bottom: 1px solid rgba(89, 89, 89, 0.3);
  background: rgba(224, 224, 219, 0.91);
  backdrop-filter: blur(18px) saturate(115%);
}

.brand-home {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  justify-self: start;
  color: var(--navy-deep);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-home img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.brand-home span:last-child {
  white-space: nowrap;
}

.page-bearing {
  justify-self: center;
  margin: 0;
  color: var(--grey);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-bearing strong {
  margin-right: 0.45rem;
  color: var(--navy);
}

.global-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-self: end;
}

.global-nav a {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--grey);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.38rem;
  left: 0;
  height: 1px;
  background: var(--brass);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.global-nav a[aria-current="page"] {
  color: var(--navy);
}

.mobile-site-nav {
  display: none;
}

.identity-world {
  position: fixed;
  top: var(--logo-y);
  left: var(--logo-x);
  z-index: 0;
  width: min(46rem, 58vw);
  aspect-ratio: 1;
  opacity: var(--logo-opacity);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(var(--logo-scale));
  transform-origin: center;
  transition: opacity 550ms var(--ease);
  will-change: transform, opacity;
}

.identity-world::before,
.identity-world::after,
.world-orbit::before,
.world-orbit::after {
  position: absolute;
  border: 1px solid rgba(27, 58, 107, 0.38);
  border-radius: 50%;
  content: "";
}

.identity-world::before {
  inset: 7%;
  border-style: dashed;
}

.identity-world::after {
  inset: 15%;
  border-color: rgba(184, 134, 11, 0.45);
}

.world-orbit {
  position: absolute;
  inset: 0;
  transform: rotate(var(--ring-turn));
  transition: transform 120ms linear;
  will-change: transform;
}

.world-orbit::before {
  inset: 1.5%;
  border-width: 2px 0 0 2px;
}

.world-orbit::after {
  inset: 11%;
  border-width: 0 2px 2px 0;
}

.world-tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27, 58, 107, 0.42) 12% 18%, transparent 18% 82%, rgba(27, 58, 107, 0.42) 82% 88%, transparent);
  transform: translate(-50%, -50%);
}

.world-tick:nth-child(2) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.world-tick:nth-child(3) {
  transform: translate(-50%, -50%) rotate(90deg);
}

.world-tick:nth-child(4) {
  transform: translate(-50%, -50%) rotate(135deg);
}

.identity-world img {
  position: absolute;
  inset: 20%;
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 1.2rem 2.6rem rgba(13, 32, 57, 0.12));
}

.world-coordinate {
  position: absolute;
  right: 1%;
  bottom: 22%;
  color: var(--navy);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-transition {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--navy-deep);
  color: var(--white);
  clip-path: circle(0 at var(--veil-x, 50%) var(--veil-y, 50%));
  pointer-events: none;
  transition: clip-path 880ms var(--ease);
}

.route-transition span {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 3.2rem);
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 260ms ease 250ms, transform 420ms var(--ease) 250ms;
}

.route-transition.is-active {
  clip-path: circle(150vmax at var(--veil-x, 50%) var(--veil-y, 50%));
}

.route-transition.is-active span {
  opacity: 1;
  transform: translateY(0);
}

.section-rail {
  position: fixed;
  top: calc(var(--header-h) + 2rem);
  bottom: 2rem;
  left: 2rem;
  z-index: 20;
  display: flex;
  width: var(--rail);
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 0 0.25rem;
}

.section-rail > div:first-child {
  display: flex;
  height: calc(100% - 3.8rem);
  min-height: 0;
  flex-direction: column;
}

.rail-portrait {
  flex: 0 0 auto;
  width: min(100%, 15rem);
  margin: 0 0 0.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(89, 89, 89, 0.35);
  background: rgba(247, 245, 239, 0.78);
  box-shadow: 0 0.75rem 1.8rem rgba(13, 32, 57, 0.09);
}

.rail-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 18%;
}

.rail-label,
.section-kicker,
.eyebrow,
.chapter-label,
.card-kicker,
.micro-label {
  margin: 0;
  color: var(--navy);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rail-label {
  flex: 0 0 auto;
  margin-bottom: 0.45rem;
  color: var(--grey);
}

.rail-links {
  position: relative;
  display: grid;
  gap: 0.25rem;
  max-height: calc(100vh - 14rem);
  overflow-y: auto;
  padding-left: 1.15rem;
  scrollbar-width: thin;
}

.section-rail .rail-links {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
}

.rail-links::before {
  position: absolute;
  top: 0.65rem;
  bottom: 0.65rem;
  left: 0.17rem;
  width: 1px;
  background: rgba(89, 89, 89, 0.34);
  content: "";
}

.rail-links a {
  position: relative;
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.35rem;
  align-items: baseline;
  /* Rail is desktop/mouse only (hidden at 820px and below), so the 44px touch
     minimum does not apply here. Tighter rows keep the 8-item portfolio list unscrolled. */
  min-height: 2.4rem;
  padding: 0.4rem 0;
  color: var(--grey);
  font-size: 0.72rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 220ms ease, transform 300ms var(--ease);
}

.rail-links a::before {
  position: absolute;
  top: 0.95rem;
  left: -1.15rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid var(--grey);
  border-radius: 50%;
  background: var(--cream);
  content: "";
  transform: translate(-50%, -50%);
  transition: background 220ms ease, border-color 220ms ease, transform 300ms var(--ease);
}

.rail-links a span:first-child {
  color: var(--rule);
  font-variant-numeric: tabular-nums;
}

.rail-links a:hover,
.rail-links a.is-active {
  color: var(--navy-deep);
  transform: translateX(0.2rem);
}

.rail-links a.is-active::before {
  border-color: var(--brass);
  background: var(--brass);
  transform: translate(-50%, -50%) scale(1.25);
}

.rail-progress {
  display: grid;
  gap: 0.55rem;
  color: var(--grey);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rail-progress-track {
  height: 2px;
  overflow: hidden;
  background: rgba(89, 89, 89, 0.28);
}

.rail-progress-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brass);
  transform: scaleX(var(--progress));
  transform-origin: left;
}

.mobile-toc {
  display: none;
}

.site-main {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
}

.with-rail .site-main {
  padding-left: calc(var(--rail) + 4.5rem);
}

.content-section {
  position: relative;
  min-height: 75vh;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.5rem, 5vw, 5rem);
}

.content-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  min-height: calc(100vh - var(--header-h));
  align-items: center;
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.eyebrow {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.eyebrow b {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--navy-deep);
  font-family: var(--display);
  font-size: 0.85rem;
}

h1,
h2,
h3,
blockquote {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.65rem;
  color: var(--navy-deep);
  font-size: clamp(3.35rem, 7vw, 7.2rem);
}

h2 {
  max-width: 15ch;
  margin-bottom: 1.5rem;
  color: var(--navy-deep);
  font-size: clamp(2.45rem, 4.8vw, 5rem);
}

h3 {
  color: var(--navy-deep);
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}

.hero-lede {
  max-width: 41rem;
  margin: 0;
  color: #303942;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.38rem);
  line-height: 1.65;
}

.hero-lede em {
  display: block;
  margin-top: 0.65rem;
  color: var(--navy);
}

.tagline {
  margin: 1.5rem 0 0;
  color: var(--navy);
  font-family: var(--tagline);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-style: italic;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 260ms ease, color 260ms ease, transform 300ms var(--ease);
}

.button:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.button.primary {
  background: var(--navy);
  color: var(--white);
}

.button.primary:hover {
  background: var(--navy-deep);
}

.hero-aside {
  justify-self: end;
  width: min(100%, 27rem);
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(89, 89, 89, 0.35);
  background: rgba(247, 245, 239, 0.82);
  box-shadow: 0 2rem 5rem rgba(13, 32, 57, 0.1);
  transform: rotate(1.1deg);
}

.mobile-only-portrait {
  display: none;
}

.hero-aside img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
}

.hero-aside figcaption,
.image-caption {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0.25rem 0.15rem;
  color: var(--grey);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
  margin-top: 2rem;
}

.chapter-nav a,
.back-link {
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.chapter-nav a::after,
.back-link::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.18rem;
  background: var(--brass);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 230ms var(--ease);
}

.chapter-nav a:hover::after,
.back-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.2rem;
}

.paper-section {
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 -1px rgba(89, 89, 89, 0.25), 0 1px rgba(89, 89, 89, 0.25);
}

.world-stage {
  background: rgba(224, 224, 219, 0.12);
  box-shadow: 0 -1px rgba(89, 89, 89, 0.2), 0 1px rgba(89, 89, 89, 0.2);
}

.dark-section {
  background:
    repeating-radial-gradient(ellipse at 12% 45%, transparent 0 5rem, rgba(214, 185, 102, 0.055) 5.1rem 5.18rem, transparent 5.24rem 7rem),
    var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
}

.dark-section h2,
.dark-section h3,
.dark-section blockquote {
  color: var(--white);
}

.dark-section .section-kicker,
.dark-section .chapter-label,
.dark-section .micro-label {
  color: var(--brass-light);
}

.dark-section .split-heading p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

.split-heading p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--grey);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.58fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.story-heading {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
}

.story-copy {
  max-width: 47rem;
}

.story-copy p {
  margin: 0 0 1.5rem;
  color: #263039;
}

.story-copy .lead {
  color: var(--navy-deep);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.6;
}

.pull-quote {
  container-type: inline-size;
  margin: 3rem 0;
  padding: 2.5rem 0 2.5rem clamp(1rem, 3.5vw, 4rem);
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
}

.pull-quote blockquote {
  /* Zero the UA margin so the line box fills the container and cqw math is exact. */
  margin: 0;
  color: var(--navy);
  /* "How can I help?" measures 8.375em wide, so anything under 11.9cqw sets on one line. */
  font-size: min(4.8rem, 11.6cqw);
  white-space: nowrap;
}

.military-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.military-visual {
  position: sticky;
  top: calc(var(--header-h) + 2.3rem);
  margin: 0;
}

.military-visual img {
  width: 100%;
  max-height: 72vh;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.7) contrast(1.06);
}

.dark-section .image-caption {
  color: rgba(255, 255, 255, 0.58);
}

.military-copy > p {
  margin: 0 0 1.35rem;
}

.service-lead {
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  line-height: 1.65;
}

.service-creed {
  margin: 2.6rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--brass);
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1.3;
}

.milestone {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding: 1.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.milestone:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.milestone time,
.year-marker {
  color: var(--brass-light);
  font-family: var(--display);
  font-size: 1rem;
}

.milestone p {
  margin: 0;
}

.closing-section {
  display: grid;
  min-height: 75vh;
  place-items: center;
  text-align: center;
}

.closing-section h2 {
  max-width: 14ch;
  margin-inline: auto;
}

.closing-section p {
  color: var(--grey);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(89, 89, 89, 0.35);
  border-left: 1px solid rgba(89, 89, 89, 0.35);
}

.route-card {
  position: relative;
  display: grid;
  min-height: 22rem;
  align-content: space-between;
  padding: clamp(1.6rem, 4vw, 3rem);
  overflow: hidden;
  border-right: 1px solid rgba(89, 89, 89, 0.35);
  border-bottom: 1px solid rgba(89, 89, 89, 0.35);
  background: rgba(247, 245, 239, 0.72);
  text-decoration: none;
  transition: background 350ms ease, color 350ms ease;
}

.route-card::before {
  position: absolute;
  right: -18%;
  bottom: -42%;
  width: 18rem;
  aspect-ratio: 1;
  border: 1px solid rgba(27, 58, 107, 0.18);
  border-radius: 50%;
  content: "";
  transition: transform 650ms var(--ease), border-color 350ms ease;
}

.route-card:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.route-card:hover::before {
  border-color: rgba(214, 185, 102, 0.5);
  transform: scale(1.25);
}

.route-card:hover h3,
.route-card:hover .card-kicker {
  color: var(--white);
}

.route-card h3 {
  max-width: 13ch;
  margin-bottom: 0.7rem;
  transition: color 350ms ease;
}

.route-card p:not(.card-kicker) {
  max-width: 32rem;
  margin: 0;
  color: inherit;
  opacity: 0.76;
}

.route-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-card-footer b {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
}

.home-route-list,
.case-link-list {
  display: grid;
  gap: 0.8rem;
  max-width: 53rem;
}

.home-route-list {
  margin-right: auto;
}

.case-link-list {
  margin-left: auto;
}

.home-route-list .route-card,
.case-link-list .route-card {
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, auto);
  min-height: 9.25rem;
  align-content: initial;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(89, 89, 89, 0.38);
  background: rgba(247, 245, 239, 0.74);
  box-shadow: 0 0.8rem 2rem rgba(13, 32, 57, 0.045);
  backdrop-filter: blur(8px);
}

.case-link-list .route-card {
  min-height: 7.4rem;
}

.home-route-list .route-card::before,
.case-link-list .route-card::before {
  right: -7rem;
  bottom: -10rem;
}

.home-route-list .route-card h3,
.case-link-list .route-card h3 {
  max-width: 24ch;
  margin-bottom: 0.45rem;
}

.home-route-list .route-card-footer,
.case-link-list .route-card-footer {
  display: grid;
  min-width: 8.5rem;
  justify-items: end;
  gap: 0.3rem;
  padding: 0 0 0 1.5rem;
  border-left: 1px solid rgba(89, 89, 89, 0.28);
  text-align: right;
}

.home-route-list .route-card:hover .route-card-footer,
.case-link-list .route-card:hover .route-card-footer {
  border-left-color: rgba(255, 255, 255, 0.28);
}

/* Cardinal footers: force one full-width column so the letter centers under its
   label and all four bearings land on the same axis regardless of word length. */
.home-route-list .route-card-footer {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

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

.project-card {
  position: relative;
  display: grid;
  min-height: 24rem;
  align-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(89, 89, 89, 0.32);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: border-color 280ms ease, transform 380ms var(--ease), box-shadow 380ms var(--ease);
}

.project-card:hover {
  border-color: var(--brass);
  box-shadow: 0 1.5rem 3rem rgba(13, 32, 57, 0.08);
  transform: translateY(-0.35rem);
}

.project-card h3 {
  max-width: 16ch;
  margin-bottom: 0;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--grey);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-visual {
  position: relative;
  height: 9rem;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid rgba(27, 58, 107, 0.16);
  background:
    linear-gradient(rgba(27, 58, 107, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 58, 107, 0.05) 1px, transparent 1px),
    rgba(224, 224, 219, 0.58);
  background-size: 1.5rem 1.5rem;
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  content: "";
}

.visual-brief::before {
  top: 1.25rem;
  left: 50%;
  width: 7rem;
  height: 6.5rem;
  border: 1px solid var(--navy);
  background: var(--paper);
  box-shadow: -1rem 0.8rem 0 var(--cream), -1rem 0.8rem 0 1px var(--navy-soft);
  transform: translateX(-50%) rotate(-3deg);
}

.visual-travel::before {
  top: 4.25rem;
  right: 12%;
  left: 12%;
  height: 1px;
  border-top: 1px dashed var(--navy);
  transform: rotate(-7deg);
}

.visual-travel::after {
  top: 1.7rem;
  left: 28%;
  width: 5.8rem;
  height: 5.8rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  box-shadow: 7rem 1.2rem 0 -2.75rem var(--navy);
}

.visual-dashboard::before {
  right: 12%;
  bottom: 1rem;
  left: 12%;
  height: 5.5rem;
  background: linear-gradient(90deg, var(--navy) 0 22%, transparent 22% 34%, var(--navy-soft) 34% 60%, transparent 60% 72%, var(--brass) 72% 100%);
  clip-path: polygon(0 62%, 22% 62%, 22% 100%, 34% 100%, 34% 25%, 60% 25%, 60% 100%, 72% 100%, 72% 0, 100% 0, 100% 100%, 0 100%);
}

.visual-matrix::before {
  inset: 1.2rem 16%;
  background: linear-gradient(var(--navy) 0 0) 50%/1px 100% no-repeat, linear-gradient(90deg, var(--navy) 0 0) 50%/100% 1px no-repeat;
}

.matrix-labels {
  position: absolute;
  inset: 1.2rem 16%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
}

.matrix-labels i {
  color: var(--grey);
  font-family: var(--body);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.visual-news::before {
  top: 1.4rem;
  right: 12%;
  bottom: 1.4rem;
  left: 12%;
  background: repeating-linear-gradient(180deg, var(--navy) 0 2px, transparent 2px 1.15rem);
  opacity: 0.55;
}

.visual-five::before {
  top: 50%;
  left: 50%;
  width: 6.5rem;
  height: 6.5rem;
  border: 1px solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 1rem rgba(27, 58, 107, 0.08), 0 0 0 2rem rgba(27, 58, 107, 0.05);
  transform: translate(-50%, -50%);
}

.visual-five::after {
  top: 50%;
  left: 50%;
  color: var(--navy);
  content: "5";
  font-family: var(--display);
  font-size: 3rem;
  transform: translate(-50%, -50%);
}

/* E.07 — three venue slots: two struck through (booked), one open in brass. */
.visual-venue::before {
  top: 2.1rem;
  right: 13%;
  left: 13%;
  height: 4.8rem;
  border: 1px solid var(--navy);
  background:
    linear-gradient(var(--navy) 0 0) 33.33% 0 / 1px 100% no-repeat,
    linear-gradient(var(--navy) 0 0) 66.66% 0 / 1px 100% no-repeat,
    var(--paper);
}

.visual-venue::after {
  top: 2.1rem;
  right: 13%;
  left: 13%;
  height: 4.8rem;
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), var(--navy-soft) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 33.33% 100% no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--navy-soft) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 100% 0 / 33.33% 100% no-repeat,
    linear-gradient(var(--brass) 0 0) 50% calc(100% - 0.7rem) / 1.9rem 2px no-repeat;
}

/* E.08 — a tilted card inside brass scan brackets. */
.visual-capture::before {
  top: 50%;
  left: 50%;
  width: 8.6rem;
  height: 4.9rem;
  border: 1px solid var(--navy);
  background:
    linear-gradient(var(--navy-soft) 0 0) 0.85rem 1.35rem / 3.4rem 2px no-repeat,
    linear-gradient(var(--rule) 0 0) 0.85rem 2.35rem / 5.1rem 1px no-repeat,
    linear-gradient(var(--rule) 0 0) 0.85rem 3.05rem / 4rem 1px no-repeat,
    var(--paper);
  transform: translate(-50%, -50%) rotate(-3deg);
}

.visual-capture::after {
  top: 50%;
  left: 50%;
  width: 10.6rem;
  height: 6.7rem;
  background:
    linear-gradient(var(--brass) 0 0) 0 0 / 1.1rem 2px no-repeat,
    linear-gradient(var(--brass) 0 0) 0 0 / 2px 1.1rem no-repeat,
    linear-gradient(var(--brass) 0 0) 100% 0 / 1.1rem 2px no-repeat,
    linear-gradient(var(--brass) 0 0) 100% 0 / 2px 1.1rem no-repeat,
    linear-gradient(var(--brass) 0 0) 0 100% / 1.1rem 2px no-repeat,
    linear-gradient(var(--brass) 0 0) 0 100% / 2px 1.1rem no-repeat,
    linear-gradient(var(--brass) 0 0) 100% 100% / 1.1rem 2px no-repeat,
    linear-gradient(var(--brass) 0 0) 100% 100% / 2px 1.1rem no-repeat;
  transform: translate(-50%, -50%);
}

.register-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(89, 89, 89, 0.35);
  background: rgba(247, 245, 239, 0.9);
}

.register-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  color: var(--grey);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.register-seal {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.9rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(89, 89, 89, 0.3);
  border-bottom: 1px solid rgba(89, 89, 89, 0.3);
}

.stats div {
  padding: 1.3rem 0.8rem;
  text-align: center;
}

.stats div + div {
  border-left: 1px solid rgba(89, 89, 89, 0.3);
}

.stats dt {
  color: var(--grey);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0.25rem 0 0;
  color: var(--navy-deep);
  font-family: var(--display);
  font-size: 2rem;
}

.register-note {
  margin: 1.3rem 0 0;
  color: var(--grey);
  font-size: 0.72rem;
  line-height: 1.55;
}

.certification-home-panel {
  max-width: 46rem;
  margin-right: auto;
  background: rgba(247, 245, 239, 0.76);
  box-shadow: 0 1rem 2.8rem rgba(13, 32, 57, 0.055);
  backdrop-filter: blur(9px);
}

.certification-home-panel .stats {
  margin-bottom: 1.75rem;
}

.certification-home-links {
  margin-top: 0;
}

.certification-home-panel .contact-route {
  min-height: 6.5rem;
}

.certification-home-panel .button-row {
  margin-top: 1.75rem;
}

.credential-list,
.award-list {
  border-top: 1px solid rgba(89, 89, 89, 0.36);
}

.credential-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(7rem, 0.34fr) minmax(0, 1fr) auto;
  gap: 1.3rem;
  align-items: center;
  min-height: 6.4rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(89, 89, 89, 0.28);
}

.credential-number,
.credential-issuer,
.credential-status,
.award-number,
.award-meta {
  color: var(--grey);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-row h3,
.award-row h3 {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.credential-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(27, 58, 107, 0.4);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 250ms ease, color 250ms ease;
}

.credential-action:hover {
  background: var(--navy);
  color: var(--white);
}

.award-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1.3rem;
  align-items: center;
  min-height: 5.6rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.award-row h3,
.award-row .award-number,
.award-row .award-meta {
  color: var(--white);
}

.award-row .award-number,
.award-row .award-meta {
  opacity: 0.62;
}

.dark-section .credential-action {
  border-color: rgba(214, 185, 102, 0.55);
  color: var(--brass-light);
}

.dark-section .credential-action:hover {
  background: var(--brass);
  color: var(--navy-deep);
}

.contact-hero {
  min-height: calc(100vh - var(--header-h));
  padding-bottom: 3rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1.2fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: center;
}

.contact-copy h1 {
  max-width: 10ch;
}

.contact-copy .intro {
  max-width: 34rem;
  color: var(--navy-deep);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.6;
}

.contact-routes {
  border-top: 1px solid rgba(89, 89, 89, 0.35);
}

.contact-route {
  display: grid;
  grid-template-columns: 2.7rem 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 7.4rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(89, 89, 89, 0.35);
  text-decoration: none;
  transition: padding 350ms var(--ease), color 250ms ease;
}

.contact-route:hover {
  padding-right: 0.8rem;
  padding-left: 0.8rem;
  color: var(--navy);
}

.route-number {
  color: var(--grey);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.route-copy {
  display: grid;
  gap: 0.25rem;
}

.route-copy strong {
  color: var(--navy-deep);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 400;
}

.route-copy small {
  overflow-wrap: anywhere;
  color: var(--grey);
  font-size: 0.68rem;
}

.invitation {
  color: var(--grey);
}

.route-arrow {
  font-family: var(--display);
  font-size: 1.8rem;
}

.site-footer {
  position: relative;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  min-height: 10.5rem;
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  background: var(--navy);
  color: var(--white);
}

.with-rail .site-footer {
  padding-left: calc(var(--rail) + 4.5rem);
}

.site-footer p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a {
  text-decoration-color: var(--brass-light);
}

.site-footer-brand {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.site-footer-brand img {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: contain;
}

.site-footer .footer-name {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
}

.site-footer .footer-tagline {
  margin-top: 0.42rem;
  color: var(--white);
  font-family: var(--tagline);
  font-size: 1.04rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none !important;
}

.footer-details {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
  text-align: right;
}

.site-footer .footer-email {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.site-footer .footer-email a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.center-actions {
  justify-content: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 650ms ease, transform 720ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  :root {
    --rail: 12.75rem;
  }

  .site-header {
    grid-template-columns: minmax(9rem, 1fr) auto;
  }

  .page-bearing {
    display: none;
  }

  .global-nav {
    gap: 0.9rem;
  }

  .global-nav a {
    font-size: 0.66rem;
  }

  .hero-grid,
  .contact-layout {
    gap: 3.5rem;
  }

  .home-route-list,
  .case-link-list,
  .certification-home-panel {
    max-width: 34rem;
  }
}

@media (min-width: 821px) and (max-height: 860px) {
  .rail-portrait {
    width: min(100%, 12.5rem);
  }
}

@media (min-width: 821px) and (max-height: 700px) {
  .rail-portrait {
    width: min(100%, 10.25rem);
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 5rem;
    --logo-x: 75vw;
    --logo-y: 43vh;
  }

  .site-header {
    padding-inline: 1.25rem;
  }

  .brand-home {
    font-size: 1rem;
  }

  .brand-home img {
    width: 3rem;
    height: 3rem;
  }

  .global-nav {
    display: none;
  }

  .mobile-site-nav {
    position: relative;
    display: block;
    justify-self: end;
  }

  .mobile-site-nav summary {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(27, 58, 107, 0.38);
    border-radius: 999px;
    color: var(--navy);
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    list-style: none;
    text-transform: uppercase;
  }

  .mobile-site-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-site-nav summary::after {
    margin-left: 0.55rem;
    content: "+";
    font-family: var(--display);
    font-size: 1rem;
  }

  .mobile-site-nav[open] summary::after {
    content: "−";
  }

  .mobile-site-nav nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    display: grid;
    width: min(20rem, calc(100vw - 2.5rem));
    padding: 0.65rem;
    border: 1px solid rgba(89, 89, 89, 0.32);
    background: var(--paper);
    box-shadow: 0 1.4rem 3rem rgba(13, 32, 57, 0.16);
  }

  .mobile-site-nav nav a {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(89, 89, 89, 0.2);
    color: var(--grey);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-site-nav nav a:last-child {
    border-bottom: 0;
  }

  .mobile-site-nav nav a::after {
    color: var(--brass);
    content: attr(data-bearing);
    font-family: var(--display);
    font-size: 0.75rem;
  }

  .mobile-site-nav nav a[aria-current="page"] {
    color: var(--navy);
  }

  .mobile-toc {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    display: none;
    border-bottom: 1px solid rgba(89, 89, 89, 0.3);
    background: rgba(247, 245, 239, 0.95);
    backdrop-filter: blur(14px);
  }

  .mobile-toc summary {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    color: var(--navy);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    list-style: none;
    text-transform: uppercase;
  }

  .mobile-toc summary::-webkit-details-marker {
    display: none;
  }

  .mobile-toc summary::after {
    content: "+";
    font-family: var(--display);
    font-size: 1.4rem;
  }

  .mobile-toc[open] summary::after {
    content: "−";
  }

  .mobile-toc nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0 1.25rem 1rem;
  }

  .mobile-toc nav a {
    min-height: 2.75rem;
    padding: 0.7rem;
    border: 1px solid rgba(89, 89, 89, 0.25);
    color: var(--grey);
    font-size: 0.68rem;
    text-decoration: none;
  }

  .mobile-toc nav a.is-active {
    border-color: var(--brass);
    color: var(--navy);
  }

  .hero-grid,
  .story-layout,
  .military-layout,
  .split-heading,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    justify-self: start;
    width: min(75vw, 30rem);
  }

  .mobile-only-portrait {
    display: none;
  }

  .story-heading,
  .military-visual {
    position: static;
  }

  .military-visual {
    width: min(75vw, 30rem);
  }

}

@media (max-width: 820px) {
  .section-rail {
    display: none;
  }

  .with-rail .site-main {
    padding-left: 0;
  }

  .mobile-toc,
  .mobile-only-portrait {
    display: block;
  }

  .with-rail .site-footer {
    padding-left: clamp(1.5rem, 5vw, 5rem);
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 4.75rem;
    --logo-x: 72vw;
    --logo-y: 40vh;
  }

  body {
    background-size: 2.5rem 2.5rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand-home span:last-child {
    font-size: 0.9rem;
  }

  .brand-home img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .page-bearing {
    display: none;
  }

  .content-section {
    min-height: auto;
    padding: 5rem 1.25rem;
  }

  .hero-section {
    min-height: calc(100svh - var(--header-h));
    padding-top: 4.5rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.75rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .identity-world {
    width: 94vw;
    opacity: min(var(--logo-opacity), 0.22);
  }

  .hero-aside,
  .military-visual {
    width: 100%;
  }

  .route-grid,
  .work-list {
    grid-template-columns: 1fr;
  }

  .home-route-list .route-card,
  .case-link-list .route-card {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.25rem;
  }

  .home-route-list .route-card-footer,
  .case-link-list .route-card-footer {
    width: 100%;
    min-width: 0;
    grid-template-columns: none;
    grid-auto-flow: column;
    justify-content: space-between;
    justify-items: initial;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(89, 89, 89, 0.28);
    border-left: 0;
    text-align: left;
  }

  .route-card {
    min-height: 18rem;
  }

  .project-card {
    min-height: 21rem;
  }

  .milestone {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .credential-row {
    grid-template-columns: 2.2rem 1fr;
    gap: 0.35rem 0.8rem;
    padding: 1.3rem 0;
  }

  .credential-row .credential-title {
    grid-column: 2;
  }

  .credential-row .credential-action,
  .credential-row .credential-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.45rem;
  }

  .award-row {
    grid-template-columns: 2.2rem 1fr;
    gap: 0.35rem 0.8rem;
  }

  .award-row .award-meta,
  .award-row .credential-action {
    grid-column: 2;
    justify-self: start;
  }

  .contact-route {
    grid-template-columns: 2rem 1fr auto;
  }

  .route-copy small {
    font-size: 0.61rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-details {
    justify-items: start;
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .identity-world {
    transform: translate(-50%, -50%) scale(0.8) !important;
  }

  .world-orbit {
    transform: none !important;
  }

  .route-transition {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Project detail pages (portfolio/{slug}/index.html)
   ============================================================ */

.project-hero .content-inner {
  max-width: 62rem;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  color: var(--grey);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 220ms ease, transform 300ms var(--ease);
}

.project-back:hover {
  color: var(--navy);
  transform: translateX(-0.25rem);
}

.project-hero h1 {
  max-width: 20ch;
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
}

.project-lede {
  max-width: 54ch;
  margin: 0;
  color: #263039;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.65;
}

.project-body {
  max-width: 47rem;
}

.project-body > section {
  margin-bottom: 3.25rem;
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

.project-body > section:last-child {
  margin-bottom: 0;
}

.project-body h2 {
  margin: 0 0 1.1rem;
  color: var(--navy-deep);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}

.project-body h3 {
  margin: 2rem 0 0.65rem;
  color: var(--navy);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.project-body p {
  margin: 0 0 1.35rem;
  color: #263039;
}

.project-body ol,
.project-body ul {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
  color: #263039;
}

.project-body li {
  margin-bottom: 0.7rem;
}

.project-body li::marker {
  color: var(--brass);
  font-weight: 600;
}

.project-body a:not(.button) {
  color: var(--navy);
  text-decoration-color: rgba(184, 134, 11, 0.55);
}

.project-body a:not(.button):hover {
  text-decoration-color: var(--brass);
}

.project-body figure {
  margin: 2rem 0;
}

.project-body figure img,
.project-body figure video {
  width: 100%;
  height: auto;
  border: 1px solid rgba(89, 89, 89, 0.32);
  background: var(--paper);
}

.project-body figcaption,
.project-body figure > p {
  margin: 0.65rem 0 0;
  color: var(--grey);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-gallery {
  display: grid;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
}

.project-gallery figure {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(89, 89, 89, 0.28);
  background: rgba(247, 245, 239, 0.72);
  box-shadow: 0 0.8rem 2rem rgba(13, 32, 57, 0.05);
}

.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(89, 89, 89, 0.18);
}

.project-download {
  display: grid;
  gap: 1rem;
  margin: 2.25rem 0 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(27, 58, 107, 0.28);
  background: rgba(247, 245, 239, 0.8);
}

.project-download p {
  margin: 0;
}

.project-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 2.5rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(89, 89, 89, 0.28);
  color: var(--grey);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(89, 89, 89, 0.28);
}

@media (max-width: 680px) {
  .project-body > section {
    margin-bottom: 2.5rem;
  }
}

.project-video {
  margin: 0 0 2.5rem;
}

.project-video video {
  width: 100%;
  height: auto;
  border: 1px solid rgba(89, 89, 89, 0.32);
  background: var(--navy-deep);
}

.project-video-caption {
  margin: 0.65rem 0 0;
  color: var(--grey);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-steps {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: project-step;
}

.project-step {
  position: relative;
  margin-bottom: 2.25rem;
  padding-left: 3rem;
  counter-increment: project-step;
}

.project-step::before {
  position: absolute;
  top: 0.1rem;
  left: 0;
  display: grid;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--navy);
  content: counter(project-step);
  font-family: var(--display);
  font-size: 0.85rem;
  place-items: center;
}

.project-step h3 {
  margin-top: 0;
}

.project-step-figure {
  margin: 1.25rem 0 0;
}

.project-note {
  margin: 1.25rem 0 0;
  color: var(--grey);
  font-size: 0.9rem;
}

.project-download .button {
  justify-self: start;
}
