:root {
  /* Dark palette defaults */
  --text-primary: #f5f5f5;
  --text-muted: rgba(245, 245, 245, 0.76);
  --text-soft: rgba(245, 245, 245, 0.58);
  --sheet-surface: rgba(255, 255, 255, 0.055);
  --sheet-surface-soft: rgba(255, 255, 255, 0.035);
  --sheet-surface-faint: rgba(255, 255, 255, 0.018);
  --sheet-border: rgba(255, 255, 255, 0.13);
  --sheet-highlight: rgba(255, 255, 255, 0.075);
  --sheet-inner-highlight: rgba(255, 255, 255, 0.055);
  --sheet-glow: rgba(255, 220, 178, 0.065);
  --sheet-shadow: rgba(0, 0, 0, 0.45);
  --sheet-shadow-soft: rgba(0, 0, 0, 0.26);
  --sheet-blur: blur(3px);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-inner-highlight: rgba(255, 255, 255, 0.055);
  --card-shadow: rgba(0, 0, 0, 0.34);
  --bg: #050608;
  --bg-alt: #0c0f14;
  --fg: var(--text-primary);
  --muted: var(--text-muted);
  --accent: #ff4b4b;
  --accent-soft: rgba(255, 75, 75, 0.14);
  --border: #262938;
  --card-bg: rgba(17, 20, 27, 0.8);
  --text-float-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  --radius-lg: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --edge-shadow-strong: rgba(0, 0, 0, 0.45);
  --edge-shadow-mid: rgba(0, 0, 0, 0.24);
  --edge-shadow-soft: rgba(0, 0, 0, 0.1);
  --container-max: 1240px;
  --container-padding: clamp(1.35rem, 2vw, 2.15rem);
  --desktop-content-nudge: 0px;
  --selected-card-basis: 326px;
  --selected-card-max: 390px;
  --section-space: clamp(3.6rem, 5.8vw, 5.25rem);
  --section-space-feature: clamp(4.35rem, 6.8vw, 6rem);
  --grid-gap-standard: clamp(1.35rem, 2.2vw, 1.65rem);
  --grid-gap-wide: clamp(1.75rem, 3vw, 2.35rem);
  --focus-ring: rgba(145, 197, 255, 0.92);
  --focus-ring-shadow: rgba(145, 197, 255, 0.35);
  --hero-side-fixed-width: clamp(20px, 2.8vw, 34px);
  --hero-side-fixed-offset: -3px;
  --hero-side-shadow-strong: rgba(0, 0, 0, 0.56);
  --hero-side-shadow-mid: rgba(0, 0, 0, 0.42);
  --hero-side-shadow-soft: rgba(0, 0, 0, 0.24);
  --hero-side-shadow-fade: rgba(0, 0, 0, 0.1);
  --icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M9 7h8v8'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  background: #050608;
  scrollbar-gutter: stable;
}

body {
  --weather-overlay-alpha: 0;
  --weather-side-opacity: 0;
  --weather-hue: 210;
  --weather-tint-alpha: 0;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background-color: #050608;
  background: radial-gradient(circle at top left, #15192a 0, #050608 55%);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease, opacity 0.2s ease;
}

main {
  position: relative;
}

main::before,
main::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(56px, 6.6vw, 98px);
  pointer-events: none;
  z-index: 6;
  opacity: 1;
  transition: background 0.3s ease;
}

main::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--edge-shadow-strong) 0%,
    var(--edge-shadow-strong) 6%,
    var(--edge-shadow-mid) 20%,
    var(--edge-shadow-soft) 36%,
    rgba(0, 0, 0, 0.02) 52%,
    transparent 100%
  );
}

main::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--edge-shadow-strong) 0%,
    var(--edge-shadow-strong) 6%,
    var(--edge-shadow-mid) 20%,
    var(--edge-shadow-soft) 36%,
    rgba(0, 0, 0, 0.02) 52%,
    transparent 100%
  );
}

body.ux-world-open {
  overflow: hidden;
}

body.terrain-entering {
  overflow: hidden;
}

/* Light mode overrides */
body.light-mode {
  --text-primary: #111111;
  --text-muted: #555666;
  --text-soft: rgba(17, 17, 17, 0.58);
  --sheet-surface: rgba(255, 255, 255, 0.72);
  --sheet-surface-soft: rgba(255, 255, 255, 0.58);
  --sheet-surface-faint: rgba(255, 255, 255, 0.32);
  --sheet-border: rgba(0, 0, 0, 0.09);
  --sheet-highlight: rgba(255, 255, 255, 0.72);
  --sheet-inner-highlight: rgba(255, 255, 255, 0.52);
  --sheet-glow: rgba(0, 0, 0, 0.04);
  --sheet-shadow: rgba(0, 0, 0, 0.12);
  --sheet-shadow-soft: rgba(0, 0, 0, 0.08);
  --card-border: rgba(0, 0, 0, 0.09);
  --card-inner-highlight: rgba(255, 255, 255, 0.42);
  --card-shadow: rgba(0, 0, 0, 0.12);
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --fg: #111111;
  --muted: #555666;
  --accent: #ff4b4b;
  --accent-soft: rgba(255, 75, 75, 0.08);
  --border: #d2d4e0;
  --card-bg: rgba(255, 255, 255, 0.8);
  --shadow-soft: 0 16px 30px rgba(0, 0, 0, 0.12);
  --edge-shadow-strong: rgba(0, 0, 0, 0.24);
  --edge-shadow-mid: rgba(0, 0, 0, 0.13);
  --edge-shadow-soft: rgba(0, 0, 0, 0.06);
  --focus-ring: rgba(42, 121, 219, 0.86);
  --focus-ring-shadow: rgba(42, 121, 219, 0.28);
  --hero-side-shadow-strong: rgba(0, 0, 0, 0.36);
  --hero-side-shadow-mid: rgba(0, 0, 0, 0.26);
  --hero-side-shadow-soft: rgba(0, 0, 0, 0.14);
  --hero-side-shadow-fade: rgba(0, 0, 0, 0.06);
  --text-float-shadow: 0 1px 1px rgba(255, 255, 255, 0.22);

  background-color: #f5f5f7;
  background: radial-gradient(circle at top left, #ffffff 0, #f5f5f7 55%);
  color: var(--fg);
}

@media (max-width: 900px) {
  :root {
    --section-space: 2.6rem;
    --section-space-feature: 3.15rem;
    --grid-gap-standard: 1.1rem;
    --grid-gap-wide: 1.35rem;
    --text-float-shadow: none;
    --container-padding: 1.5rem;
    --desktop-content-nudge: 0px;
    --selected-card-basis: 100%;
    --selected-card-max: 100%;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  main::before,
  main::after {
    display: none;
  }
}

html.light-mode {
  background: #f5f5f7;
}

body,
body * {
  text-shadow: var(--text-float-shadow);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 901px) {
  html {
    font-size: 16px;
  }

  .container {
    --desktop-content-nudge: clamp(0.75rem, 1vw, 1.1rem);
    padding-left: calc(var(--container-padding) + var(--desktop-content-nudge));
    padding-right: calc(var(--container-padding) - var(--desktop-content-nudge));
  }

  .hero-text p {
    max-width: 39rem;
    word-spacing: 0.02em;
  }

	  .hero-text .hero-title {
	    font-size: 1.22rem;
	    max-width: 68ch;
	    line-height: 1.46;
	  }

	  .hero-text .hero-subtitle {
	    font-size: 1.04rem;
	    max-width: 76ch;
	    line-height: 1.62;
	  }

	  .section p {
	    max-width: 56rem;
	    font-size: 1.035rem;
	    line-height: 1.62;
	    word-spacing: 0.025em;
	  }

	  .section-lede {
	    max-width: 58rem;
	    font-size: 1.05rem;
	    line-height: 1.62;
	    word-spacing: 0.025em;
	  }

  .card {
    min-height: 236px;
  }

	  .card-summary {
	    font-size: 1.04rem;
	    line-height: 1.58;
	    word-spacing: 0.02em;
	  }

	  .practice-orientation {
	    max-width: 72ch;
	    font-size: 1.04rem;
	    line-height: 1.58;
	    word-spacing: 0.02em;
	  }

	  .practice-explain {
	    max-width: 72ch;
	    font-size: 1.03rem;
	    line-height: 1.62;
	    word-spacing: 0.02em;
	  }

  .physical-gallery-item--range {
    min-height: 225px;
  }

  .physical-product-board {
    grid-auto-rows: minmax(190px, 1fr);
  }

  .physical-product-board .physical-gallery-item {
    min-height: 190px;
  }

  .terrain-hub-card {
    min-height: 320px;
  }
}

/* Header / Nav */

.site-header {
  position: relative;
  position: sticky;
  top: 0;
  height: 56px;
  backdrop-filter: var(--sheet-blur);
  -webkit-backdrop-filter: var(--sheet-blur);
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 72%),
    rgba(7, 8, 12, 0.88);
  border-bottom: 1px solid var(--sheet-border);
  z-index: 20;
  box-shadow:
    0 10px 22px -16px var(--sheet-shadow),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 16px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 0%,
    rgba(0, 0, 0, 0.08) 45%,
    transparent 100%
  );
}

body.light-mode .site-header {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 72%),
    rgba(245, 245, 247, 0.88);
  border-bottom: 1px solid var(--sheet-border);
  box-shadow:
    0 8px 16px -14px var(--sheet-shadow),
    inset 0 -1px 0 rgba(255, 250, 235, 0.32);
}

body.light-mode .site-header::after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.09) 0%,
    rgba(0, 0, 0, 0.04) 45%,
    transparent 100%
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 0.4rem;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #ff8888, #ff4b4b 40%, #3b1824);
  font-size: 0.8rem;
  font-weight: 700;
}

.logo-text {
  font-weight: 500;
  letter-spacing: 0.03em;
  font-size: 0.88rem;
  line-height: 1;
}

/* Header controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-controls button {
  font-size: 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--sheet-surface-soft);
  min-inline-size: 3.3rem;
  padding: 0.1rem 0.35rem;
  color: var(--fg);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease;
}

.weather-toggle {
  text-align: center;
}

body.light-mode .header-controls button {
  background: var(--sheet-surface-soft);
  border-color: var(--sheet-border);
  color: var(--fg);
}

.header-controls button.is-active {
  border-color: rgba(145, 197, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(145, 197, 255, 0.45) inset;
}

/* Hand row (palms inside header) */

.hand-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.35rem;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.4rem;
  pointer-events: none;
  display: none;
}

.hand-switch {
  font-size: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  opacity: 0.45;
  transition: opacity 0.25s ease, transform 0.25s ease;
  user-select: none;
  pointer-events: auto;
}

.hand-switch:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.hand-svg {
  width: 18px;
  height: 18px;
  fill: currentColor; /* white in dark, black in light */
}

/* flip right hand */
.right-hand .hand-svg {
  transform: scaleX(-1);
}

.hand-switch.active {
  opacity: 1;
  transform: scale(1.08);
}

/* ensure palms dark in light mode */
body.light-mode .hand-switch {
  color: #000;
}

/* Main nav */

.nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.84rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: all 0.18s ease-out;
}

.nav .nav-home-link {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s,
    color 0.18s ease-out, background 0.18s ease-out;
}

.nav .nav-home-link.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav a:hover {
  color: var(--fg);
  background: var(--sheet-surface-soft);
}

body.light-mode .nav a:hover {
  background: var(--sheet-surface-soft);
}

.nav a:focus-visible,
.header-controls button:focus-visible,
.btn:focus-visible,
.terrain-window-launch:focus-visible,
.side-tabs button:focus-visible,
.site-switcher a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--focus-ring-shadow);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  position: relative;
  width: 30px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--sheet-border);
  background: var(--sheet-surface-soft);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--fg);
  transition: transform 0.16s ease-out, opacity 0.16s ease-out;
}

.nav-toggle span + span {
  margin-top: 4px;
}

/* Hero */

.hero {
  padding: 3.2rem 0 3rem;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.hero--index {
  margin: 0 0 1.5rem;
  padding: clamp(0.5rem, 1.5vh, 1rem) 0 clamp(0.5rem, 1.5vh, 1rem);
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 22%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.035), transparent 46%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.92), rgba(5, 6, 10, 0.96));
  position: relative;
  z-index: 1;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 var(--sheet-inner-highlight),
    inset 0 22px 26px -24px var(--sheet-shadow),
    inset 0 -22px 26px -24px var(--sheet-shadow-soft),
    0 18px 44px -34px var(--sheet-shadow);
}

body.hero-fixed-mode #hero.hero--index {
  height: calc(var(--layer-page-min-height) - var(--layer-stack-peek));
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  transform: translate3d(0, var(--hero-layer-y, 0px), 0);
  will-change: transform;
  z-index: 7;
}

body.hero-fixed-mode #hero.hero--index::before,
body.hero-fixed-mode #hero.hero--index::after {
  width: var(--hero-side-fixed-width);
  top: 0;
  bottom: 0;
  opacity: 1;
  z-index: 10;
  -webkit-mask-image: none;
  mask-image: none;
}

body.hero-fixed-mode #hero.hero--index::before {
  left: var(--hero-side-fixed-offset);
}

body.hero-fixed-mode #hero.hero--index::after {
  right: var(--hero-side-fixed-offset);
}

body.hero-fixed-mode #hero.hero--index::before {
  background: linear-gradient(
    to right,
    var(--hero-side-shadow-strong) 0%,
    var(--hero-side-shadow-mid) 22%,
    var(--hero-side-shadow-soft) 46%,
    var(--hero-side-shadow-fade) 68%,
    transparent 100%
  );
}

body.hero-fixed-mode #hero.hero--index::after {
  background: linear-gradient(
    to left,
    var(--hero-side-shadow-strong) 0%,
    var(--hero-side-shadow-mid) 22%,
    var(--hero-side-shadow-soft) 46%,
    var(--hero-side-shadow-fade) 68%,
    transparent 100%
  );
}

body.hero-fixed-mode #hero.hero--index > .container {
  box-sizing: border-box;
  height: 100%;
  padding-top: clamp(2.6rem, 4.8vw, 4.2rem);
  padding-bottom: clamp(1.8rem, 3.2vw, 2.8rem);
}

body.hero-fixed-mode .hero--index .hero-inner {
  grid-template-columns: 1.3fr 0.9fr;
  height: 100%;
}

.hero--index::before,
.hero--index::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 0;
  width: clamp(86px, 10.5vw, 148px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.86;
}

.hero--index::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.26) 0%,
    rgba(0, 0, 0, 0.17) 30%,
    rgba(0, 0, 0, 0.08) 56%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.75) 26%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0.85) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.75) 26%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.hero--index::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.26) 0%,
    rgba(0, 0, 0, 0.17) 30%,
    rgba(0, 0, 0, 0.08) 56%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.75) 26%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0.85) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.75) 26%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

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

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.hero--index .hero-inner {
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.25rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero--index .hero-inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.2vw + 1rem, 3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero--index .hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 1rem;
}

.hero-text p {
  color: var(--muted);
  max-width: 32rem;
}

.hero-text .hero-title {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0;
  opacity: 0.92;
  max-width: 60ch;
  color: var(--fg);
}

.hero-text .hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.75rem 0 2.2rem;
  opacity: 0.78;
  max-width: 65ch;
  color: var(--fg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero-actions--atlas {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 0.75rem;
  row-gap: 0;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-actions--atlas {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-layer-note {
  margin: 1rem 0 0;
  max-width: 38rem;
  line-height: 1.55;
  opacity: 0.92;
}

.about-layer-rack {
  display: grid;
  gap: 0.8rem;
  max-width: 48rem;
  margin: 2rem 0 0;
}

.about-path-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--sheet-inner-highlight), transparent 70%),
    var(--card-bg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease-out, border-color 0.16s ease-out,
    background 0.16s ease-out, box-shadow 0.16s ease-out;
}

.about-path-link:hover {
  transform: translateY(-2px);
  border-color: var(--sheet-border);
  box-shadow: 0 12px 28px var(--sheet-shadow-soft);
}

.about-path {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-path-label {
  font-size: 0.92rem;
  color: var(--fg);
  text-align: right;
}

body.light-mode .about-path-link {
  background:
    linear-gradient(135deg, var(--sheet-inner-highlight), transparent 70%),
    var(--card-bg);
}

body.light-mode .about-path-link:hover {
  border-color: var(--sheet-border);
  box-shadow: 0 10px 22px var(--sheet-shadow-soft);
}

.hero-card {
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 34%),
    radial-gradient(circle at top, var(--sheet-surface), transparent 58%),
    var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
}

body.light-mode .hero-card {
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 34%),
    radial-gradient(circle at top, var(--sheet-surface), transparent 58%),
    var(--card-bg);
  border-color: var(--card-border);
}

body.light-mode .hero--index {
  box-shadow:
    inset 0 1px 0 var(--sheet-inner-highlight),
    inset 0 22px 26px -24px var(--sheet-shadow),
    inset 0 -22px 26px -24px var(--sheet-shadow-soft),
    0 18px 44px -34px var(--sheet-shadow);
}

body.light-mode .hero--index::before,
body.light-mode .hero--index::after {
  opacity: 0.74;
}

body.light-mode .hero--index::before {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.14) 0%,
    rgba(0, 0, 0, 0.09) 30%,
    rgba(0, 0, 0, 0.04) 56%,
    transparent 100%
  );
}

body.light-mode .hero--index::after {
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.14) 0%,
    rgba(0, 0, 0, 0.09) 30%,
    rgba(0, 0, 0, 0.04) 56%,
    transparent 100%
  );
}

body.light-mode.hero-fixed-mode #hero.hero--index::before,
body.light-mode.hero-fixed-mode #hero.hero--index::after {
  opacity: 0.98;
}

body.light-mode.hero-fixed-mode #hero.hero--index::before {
  background: linear-gradient(
    to right,
    var(--hero-side-shadow-strong) 0%,
    var(--hero-side-shadow-mid) 22%,
    var(--hero-side-shadow-soft) 46%,
    var(--hero-side-shadow-fade) 68%,
    transparent 100%
  );
}

body.light-mode.hero-fixed-mode #hero.hero--index::after {
  background: linear-gradient(
    to left,
    var(--hero-side-shadow-strong) 0%,
    var(--hero-side-shadow-mid) 22%,
    var(--hero-side-shadow-soft) 46%,
    var(--hero-side-shadow-fade) 68%,
    transparent 100%
  );
}

body.light-mode .hero--index {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 22%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.46), transparent 46%),
    linear-gradient(180deg, rgba(247, 247, 249, 0.9), rgba(238, 239, 243, 0.94));
}

.quick-snapshot {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 36%),
    var(--card-bg);
  box-shadow:
    0 12px 30px var(--card-shadow),
    inset 0 1px 0 var(--card-inner-highlight);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--index .quick-snapshot {
  position: relative;
  z-index: 10;
  margin-top: 3rem;
  margin-bottom: -3.5rem;
}

body.hero-fixed-mode .hero--index .quick-snapshot {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero--index .quick-snapshot {
    transform: none;
    margin-bottom: 0;
  }
}

.quick-snapshot h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  width: 100%;
  max-width: 20rem;
  text-align: left;
}

.quick-snapshot .eyebrow {
  width: 100%;
  max-width: 20rem;
  margin-bottom: 0.35rem;
}

.quick-snapshot ul {
  margin: 0;
  padding-left: 1.1rem;
  opacity: 0.85;
  line-height: 1.6;
  width: 100%;
  max-width: 20rem;
  text-align: left;
}

.snapshot-label {
  margin: 0.9rem 0 0.35rem;
  width: 100%;
  max-width: 20rem;
  text-align: left;
  font-size: 0.9rem;
  color: var(--fg);
}

.snapshot-text {
  margin: 0 0 0.45rem;
  width: 100%;
  max-width: 20rem;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.snapshot-lines {
  margin-top: 0;
}

.quick-snapshot--systems {
  align-items: stretch;
}

.quick-snapshot--systems h2,
.quick-snapshot--systems .eyebrow,
.quick-snapshot--systems .snapshot-text,
.systems-snapshot-list {
  max-width: 23rem;
}

.quick-snapshot--systems h2 {
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  margin-bottom: 0.45rem;
}

.snapshot-intro {
  margin-bottom: 0.85rem;
}

.systems-snapshot-list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  width: 100%;
}

.systems-snapshot-list div {
  padding-top: 0.62rem;
  border-top: 1px solid var(--card-border);
}

.systems-snapshot-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.systems-snapshot-list dt {
  margin: 0 0 0.16rem;
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 720;
  letter-spacing: 0.01em;
}

.systems-snapshot-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

body.light-mode .quick-snapshot {
  border-color: var(--card-border);
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 36%),
    var(--card-bg);
  box-shadow:
    0 12px 30px var(--card-shadow),
    inset 0 1px 0 var(--card-inner-highlight);
}

/* Split landing */

.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;
}

.hero--split {
  min-height: calc(100svh - 56px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #050608;
  box-shadow:
    inset 0 1px 0 var(--sheet-inner-highlight),
    0 18px 44px -34px var(--sheet-shadow);
}

.hero--split::before,
.hero--split::after {
  display: none;
}

.portfolio-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: calc(100svh - 56px);
  width: 100%;
  scroll-margin-top: 56px;
}

.portfolio-split-panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: calc(100svh - 56px);
  overflow: hidden;
  color: #f7f7f7;
  text-decoration: none;
  isolation: isolate;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(18, 20, 27, 0.96), rgba(5, 6, 10, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.08);
  transition:
    background 260ms ease,
    box-shadow 260ms ease,
    filter 260ms ease;
}

.portfolio-split-panel:last-child {
  border-right: 0;
}

.portfolio-split-panel::before {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 1.8vw, 1.2rem);
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%),
    rgba(255, 255, 255, 0.012);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio-split-panel:nth-child(2) {
  background:
    radial-gradient(circle at 48% 14%, rgba(255, 255, 255, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(22, 20, 18, 0.97), rgba(6, 6, 8, 0.98));
}

.portfolio-split-panel:nth-child(3) {
  background:
    radial-gradient(circle at 52% 12%, rgba(255, 255, 255, 0.075), transparent 34%),
    linear-gradient(180deg, rgba(18, 18, 22, 0.97), rgba(6, 6, 9, 0.98));
}

body.light-mode .hero--split {
  background:
    linear-gradient(180deg, rgba(247, 247, 249, 0.98), rgba(245, 245, 247, 0.98));
  box-shadow:
    inset 0 1px 0 var(--sheet-inner-highlight),
    0 18px 44px -34px var(--sheet-shadow);
}

body.light-mode .portfolio-split-panel {
  color: var(--fg);
  border-right-color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(180deg, rgba(247, 247, 249, 0.98), rgba(241, 242, 245, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.light-mode .portfolio-split-panel:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(180deg, rgba(247, 247, 249, 0.98), rgba(241, 242, 245, 0.98));
}

body.light-mode .portfolio-split-panel:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(180deg, rgba(247, 247, 249, 0.98), rgba(241, 242, 245, 0.98));
}

body.light-mode .portfolio-split-panel::before {
  display: none;
}

.portfolio-split-panel img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 360ms ease, filter 360ms ease, opacity 360ms ease;
}

.portfolio-split-panel:first-child img {
  object-position: center top;
}

.portfolio-split-panel--feature img {
  object-position: center center;
}

.portfolio-split-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.36));
  transition: background 260ms ease, opacity 260ms ease;
}

body.light-mode .portfolio-split-scrim {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 34%);
}

.portfolio-split-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 0.72rem;
  width: 100%;
  min-height: 100%;
  padding: clamp(1.35rem, 3vw, 2.75rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.36);
}

body.light-mode .portfolio-split-copy {
  text-shadow: none;
}

.portfolio-split-copy .portfolio-path-index {
  color: rgba(255, 255, 255, 0.72);
}

body.light-mode .portfolio-split-copy .portfolio-path-index {
  color: var(--muted);
}

.portfolio-split-kicker {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.light-mode .portfolio-split-kicker {
  color: #3f4250;
}

.portfolio-split-title {
  max-width: 9.8em;
  color: #ffffff;
  font-size: clamp(2.05rem, 4.35vw, 4.55rem);
  font-weight: 850;
  line-height: 0.96;
}

body.light-mode .portfolio-split-title {
  color: var(--fg);
}

.portfolio-split-text {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.45;
}

body.light-mode .portfolio-split-text {
  color: var(--muted);
}

.portfolio-split-panel .portfolio-path-link {
  color: #ffffff;
}

body.light-mode .portfolio-split-panel .portfolio-path-link {
  color: var(--fg);
}

.portfolio-split-panel:hover,
.portfolio-split-panel:focus-visible {
  z-index: 2;
  filter: brightness(1.04);
}

body.light-mode .portfolio-split-panel:hover,
body.light-mode .portfolio-split-panel:focus-visible {
  filter: brightness(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.portfolio-split-panel:hover img,
.portfolio-split-panel:focus-visible img {
  transform: scale(1.065);
  filter: saturate(1.04) contrast(1.03);
}

.portfolio-split-panel:hover .portfolio-split-scrim,
.portfolio-split-panel:focus-visible .portfolio-split-scrim {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

body.light-mode .portfolio-split-panel:hover .portfolio-split-scrim,
body.light-mode .portfolio-split-panel:focus-visible .portfolio-split-scrim {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 34%);
}

.portfolio-split-panel:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -5px;
}

.hero-actions .btn::after,
.case-study-home-header .btn::after,
.contact-actions .btn::after,
.card-actions a.btn::after,
.selected-work-intro .virtual-system-links a::after,
.virtual-system-links a::after,
.portfolio-split-panel .portfolio-path-link::after,
.selected-work-path-card .portfolio-path-link::after {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
  margin-left: 0.42em;
  background-color: currentColor;
  -webkit-mask: var(--icon-arrow-up-right) center / contain no-repeat;
  mask: var(--icon-arrow-up-right) center / contain no-repeat;
  opacity: 0.82;
}

.identity-intro {
  padding: var(--section-space-feature) 0;
}

.identity-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.72fr);
  gap: clamp(1.4rem, 3vw, 2.2rem);
  align-items: center;
}

.identity-intro .hero-text h2 {
  margin: 0 0 0.8rem;
  color: var(--fg);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.04;
}

.identity-intro .quick-snapshot {
  margin: 0;
}

/* Portfolio path landing layer */

.portfolio-paths {
  position: relative;
  z-index: 8;
  margin: -0.2rem 0 0;
  padding: clamp(1.35rem, 2.4vw, 2rem) 0 var(--section-space-feature);
  scroll-margin-top: 76px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.88), rgba(5, 6, 10, 0.96));
  border-top: 1px solid var(--sheet-border);
  box-shadow:
    0 -18px 42px -30px var(--sheet-shadow),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

body.hero-fixed-mode .portfolio-paths {
  margin-top: calc(var(--hero-fixed-height, 100vh) - var(--layer-stack-peek));
}

body.hero-fixed-mode .portfolio-paths + .layer-stack {
  margin-top: 0;
}

body.light-mode .portfolio-paths {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 32%),
    linear-gradient(180deg, rgba(247, 247, 249, 0.92), rgba(238, 239, 243, 0.94));
}

.portfolio-paths-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(300px, 0.72fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: end;
  margin-bottom: clamp(1rem, 2vw, 1.4rem);
}

.portfolio-paths-intro h2,
.portfolio-paths-intro p {
  margin: 0;
}

.portfolio-paths-intro h2 {
  color: var(--fg);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.08;
}

.portfolio-paths-intro p:not(.eyebrow) {
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.55;
}

.portfolio-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.7vw, 1.2rem);
  align-items: stretch;
}

.portfolio-path-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(220px, 0.9fr) auto;
  min-height: 440px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 38%),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    0 18px 42px var(--card-shadow),
    0 0 30px var(--sheet-glow),
    inset 0 1px 0 var(--card-inner-highlight);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.portfolio-path-card:hover,
.portfolio-path-card:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--sheet-border);
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 38%),
    rgba(255, 255, 255, 0.028);
  box-shadow:
    0 24px 52px var(--card-shadow),
    0 0 34px var(--sheet-glow),
    inset 0 1px 0 var(--card-inner-highlight);
}

.portfolio-path-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.portfolio-path-card figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.portfolio-path-card figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.portfolio-path-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.portfolio-path-card:hover img,
.portfolio-path-card:focus-visible img {
  transform: scale(1.025);
}

.portfolio-path-card--feature img {
  object-fit: cover;
  background: #11131a;
}

.portfolio-path-card > div {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.portfolio-path-index {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.portfolio-path-card h3 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.portfolio-path-card p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
}

.portfolio-path-link {
  margin-top: 0.35rem;
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-path-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.portfolio-path-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.036);
  font-size: 0.78rem;
}

body.light-mode .portfolio-path-card,
body.light-mode .portfolio-path-tags span {
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 38%),
    rgba(255, 255, 255, 0.6);
}

/* Sections */

.section {
  padding: var(--section-space) 0;
  position: relative;
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 18%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft));
  border-top: 1px solid var(--sheet-border);
  box-shadow:
    0 -14px 32px -26px var(--sheet-shadow),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

#about {
  margin-top: 0;
  padding-top: calc(var(--section-space-feature) + 0.8rem);
  position: relative;
  z-index: 0;
}

body.hero-fixed-mode #about {
  margin-top: 0;
  padding-top: 0;
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 18%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft)),
    var(--bg);
  box-shadow:
    0 -12px 22px -18px var(--sheet-shadow),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

body.hero-fixed-mode {
  --layer-page-top: 56px;
  --layer-page-min-height: calc(100vh - var(--layer-page-top));
  --layer-stack-peek: clamp(38px, 7vh, 72px);
}

body.hero-fixed-mode main > .section:not(#hero) {
  position: relative;
  z-index: 2;
}

body.hero-fixed-mode main > .section:not(#hero):not(.section-alt) {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 18%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft)),
    var(--bg);
}

.layer-stack {
  position: relative;
}

.layer-stack-stage {
  position: relative;
}

body.hero-fixed-mode .layer-stack {
  height: var(--layer-stack-height, calc(4 * var(--layer-page-min-height)));
  margin-top: calc(var(--hero-fixed-height, 0px) - var(--layer-stack-peek));
  position: relative;
  z-index: 2;
}

body.hero-fixed-mode .layer-stack-stage {
  height: var(--layer-page-min-height);
  overflow: visible;
  position: sticky;
  top: var(--layer-page-top);
}

body.hero-fixed-mode .layer-stack-stage > #about,
body.hero-fixed-mode .layer-stack-stage > .hero-underlayer {
  height: var(--layer-page-min-height);
  left: 0;
  margin: 0;
  min-height: var(--layer-page-min-height);
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: translate3d(0, var(--layer-page-y, 0px), 0);
  will-change: transform;
}

body.hero-fixed-mode .layer-stack-stage > .hero-underlayer {
  overflow: hidden;
}

body.hero-fixed-mode #about > .container {
  position: relative;
  display: block;
  height: 100%;
  padding-right: 0;
}

body.hero-fixed-mode .hero-underlayer > .container {
  height: 100%;
}

.layer-page-scroll {
  position: relative;
}

body.hero-fixed-mode #about .layer-page-scroll {
  height: 100%;
  min-height: 0;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.hero-fixed-mode .hero-underlayer .layer-page-scroll {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.hero-fixed-mode #about .layer-page-scroll::-webkit-scrollbar,
body.hero-fixed-mode .hero-underlayer .layer-page-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.hero-fixed-mode #about .layer-page-scroll {
  padding:
    clamp(6.4rem, 10vw, 8.4rem)
    min(420px, 44%)
    clamp(3.4rem, 5vw, 4.4rem)
    0;
}

body.hero-fixed-mode .hero-underlayer .layer-page-scroll {
  padding:
    calc(var(--section-space-feature) + 0.35rem)
    0
    calc(var(--section-space-feature) + 0.35rem);
}

body.hero-fixed-mode #about .quick-snapshot.quick-snapshot--about {
  position: absolute;
  --hero-quick-snapshot-base-top: calc(-1 * clamp(320px, 30vw, 420px));
  --hero-quick-snapshot-extra-offset: 0px;
  top: calc(
    var(--hero-quick-snapshot-base-top) + var(--hero-quick-snapshot-extra-offset)
  );
  right: 0;
  float: none;
  width: min(360px, 40%);
  max-width: 360px;
  margin: 0;
  will-change: transform;
  z-index: 4;
}

body.light-mode.hero-fixed-mode #about {
  box-shadow: 0 -10px 18px -16px var(--sheet-shadow);
}

/* Stacked page navigation */

body.stack-page-mode {
  --stack-header-height: 56px;
  --stack-page-peek: clamp(34px, 6vh, 68px);
  --stack-page-ease: cubic-bezier(0.22, 1, 0.36, 1);
  height: 100svh;
  overflow: hidden;
}

body.stack-page-mode .site-header {
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

body.stack-page-mode main {
  height: calc(100svh - var(--stack-header-height));
  overflow: hidden;
}

body.stack-page-mode .layer-stack,
body.stack-page-mode .layer-stack-stage {
  height: auto;
  margin: 0;
  overflow: visible;
  position: relative;
}

body.stack-page-mode .stack-sheet {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 24%),
    radial-gradient(circle at top right, var(--sheet-glow), transparent 38%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft)),
    var(--bg);
  border: 1px solid var(--sheet-border);
  border-radius: 28px 28px 0 0;
  box-shadow:
    0 -18px 48px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
  height: calc(100svh - var(--stack-header-height));
  left: 0;
  opacity: var(--stack-page-opacity, 0);
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: calc(var(--stack-header-height) + var(--stack-page-y, 100svh));
  transform: scale(var(--stack-page-scale, 0.985));
  transform-origin: top center;
  transition:
    top 760ms var(--stack-page-ease),
    transform 760ms var(--stack-page-ease),
    opacity 760ms var(--stack-page-ease),
    box-shadow 760ms var(--stack-page-ease);
  will-change: top, transform, opacity;
  z-index: var(--stack-page-z, 1);
}

body.light-mode.stack-page-mode .stack-sheet {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 24%),
    radial-gradient(circle at top right, var(--sheet-glow), transparent 38%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft)),
    var(--bg);
  border-color: var(--sheet-border);
  box-shadow:
    0 -18px 46px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

body.stack-page-mode.stack-is-dragging .stack-sheet,
body.stack-page-mode.stack-reduced-motion .stack-sheet {
  transition: none;
}

body.stack-page-mode .stack-sheet.is-active {
  pointer-events: auto;
  z-index: 700;
}

body.stack-page-mode .stack-sheet:not(.is-active) {
  display: none;
}

body.stack-page-mode .stack-sheet.is-reveal-page {
  z-index: 600;
}

body.stack-page-mode.stack-is-dragging .stack-sheet.is-reveal-page,
body.stack-page-mode.stack-is-animating .stack-sheet.is-reveal-page {
  display: block;
}

body.stack-page-mode .stack-sheet-scroll {
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

body.stack-page-mode .stack-sheet:not(.is-active) > .stack-sheet-scroll {
  opacity: 0;
  transition: opacity 360ms var(--stack-page-ease);
}

body.stack-page-mode.stack-is-dragging .stack-sheet.is-reveal-page > .stack-sheet-scroll,
body.stack-page-mode.stack-is-animating .stack-sheet.is-reveal-page > .stack-sheet-scroll {
  opacity: 1;
}

body.stack-page-mode .stack-sheet:focus {
  outline: none;
}

body.stack-page-mode .stack-sheet .section,
body.stack-page-mode .stack-sheet .hero,
body.stack-page-mode .stack-sheet .hero-underlayer {
  position: relative;
}

body.stack-page-mode .stack-sheet .stack-page {
  height: auto;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  position: relative;
  transform: none;
  z-index: auto;
}

body.stack-page-mode .stack-sheet #hero.hero--index {
  box-sizing: border-box;
  display: block;
  height: auto;
  margin-bottom: 0;
  min-height: calc(100svh - var(--stack-header-height) - var(--stack-page-peek));
  padding-top: clamp(5rem, 11vh, 7rem);
  padding-bottom: clamp(2.6rem, 4.8vw, 4.2rem);
  z-index: 2;
}

body.stack-page-mode .stack-sheet #selected-work {
  z-index: 1;
}

body.stack-page-mode .stack-sheet #hero.hero--index > .container {
  position: relative;
  width: 100%;
  z-index: 20;
}

body.stack-page-mode .stack-sheet #hero.hero--index .hero-inner,
body.stack-page-mode .stack-sheet #hero.hero--index .hero-text,
body.stack-page-mode .stack-sheet #hero.hero--index .quick-snapshot {
  position: relative;
  transform: translateZ(0);
  z-index: 21;
}

body.stack-page-mode .stack-sheet #hero.hero--index .quick-snapshot {
  margin-bottom: 0;
}

body.stack-page-mode .stack-sheet .layer-page-scroll {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.stack-page-mode .site-footer {
  display: none;
}

body.stack-page-mode .stack-page {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 24%),
    radial-gradient(circle at top right, var(--sheet-glow), transparent 38%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft)),
    var(--bg);
  border: 1px solid var(--sheet-border);
  border-radius: 28px 28px 0 0;
  box-shadow:
    0 -18px 48px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
  height: calc(100svh - var(--stack-header-height));
  left: 0;
  opacity: var(--stack-page-opacity, 0);
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: var(--stack-header-height);
  transform:
    translate3d(0, var(--stack-page-y, 100svh), 0)
    scale(var(--stack-page-scale, 0.985));
  transform-origin: top center;
  transition:
    transform 720ms var(--stack-page-ease),
    opacity 720ms var(--stack-page-ease),
    box-shadow 720ms var(--stack-page-ease);
  will-change: transform, opacity;
  z-index: var(--stack-page-z, 1);
}

body.stack-page-mode #hero.stack-page,
body.stack-page-mode #about.stack-page,
body.stack-page-mode #designer-depth.stack-page,
body.stack-page-mode #benjamin-systems.stack-page,
body.stack-page-mode #benjamin-direction.stack-page,
body.stack-page-mode #selected-work.stack-page,
body.stack-page-mode #creative-ux-lab.stack-page,
body.stack-page-mode #practice.stack-page,
body.stack-page-mode #business-architect.stack-page,
body.stack-page-mode #contact.stack-page {
  margin: 0;
  padding: 0;
  position: fixed;
  z-index: var(--stack-page-z, 1);
}

body.light-mode.stack-page-mode .stack-page {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 24%),
    radial-gradient(circle at top right, var(--sheet-glow), transparent 38%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft)),
    var(--bg);
  border-color: var(--sheet-border);
  box-shadow:
    0 -18px 46px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

body.stack-page-mode.stack-is-dragging .stack-page {
  transition: none;
}

body.stack-page-mode.stack-reduced-motion .stack-page {
  transition: none;
}

body.stack-page-mode .stack-page.is-active {
  pointer-events: auto;
}

body.stack-page-mode .stack-page:not(.is-active) > .container {
  opacity: 0;
  transition: opacity 360ms var(--stack-page-ease);
}

body.stack-page-mode.stack-is-dragging .stack-page.is-reveal-page > .container,
body.stack-page-mode.stack-is-animating .stack-page.is-reveal-page > .container {
  opacity: 1;
}

body.stack-page-mode .stack-page.is-reveal-page {
  box-shadow:
    0 -10px 30px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

body.stack-page-mode .stack-page > .container {
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: clamp(2.7rem, 6vh, 4.6rem);
  padding-bottom: clamp(2.4rem, 5vh, 4rem);
  scrollbar-width: thin;
}

body.stack-page-mode #hero.stack-page > .container {
  align-items: center;
  display: flex;
  overflow: hidden;
}

body.stack-page-mode #hero.stack-page .hero-inner {
  grid-template-columns: 1.3fr 0.9fr;
  width: 100%;
}

body.stack-page-mode #hero.stack-page .quick-snapshot {
  margin-bottom: 0;
}

body.stack-page-mode .stack-page .layer-page-scroll {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.stack-page-mode #about.stack-page .layer-page-scroll,
body.stack-page-mode .hero-underlayer.stack-page .layer-page-scroll {
  padding: 0;
}

body.stack-page-mode .hero-underlayer.stack-page {
  padding: 0;
}

body.stack-page-mode #selected-work.stack-page,
body.stack-page-mode #creative-ux-lab.stack-page,
body.stack-page-mode #practice.stack-page,
body.stack-page-mode #business-architect.stack-page,
body.stack-page-mode #contact.stack-page {
  padding: 0;
}

body.stack-page-mode .stack-page:focus {
  outline: none;
}

.section-alt {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 18%),
    radial-gradient(circle at top, var(--sheet-glow), transparent 42%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft)),
    var(--bg);
}

body.light-mode .section-alt {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 18%),
    radial-gradient(circle at top, var(--sheet-glow), transparent 42%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft)),
    var(--bg);
}

.section h2 {
  color: var(--fg);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.section p {
  color: var(--muted);
  max-width: 46rem;
}

.section-lede {
  color: var(--muted);
  max-width: 46rem;
  margin: 0 0 1.4rem;
  font-size: 1rem;
  line-height: 1.55;
}

.lab-overlap-note {
  margin: 0;
  max-width: 56rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

#practice {
  padding: var(--section-space-feature) 0;
}

#selected-work {
  padding: var(--section-space-feature) 0;
}

.selected-work-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.selected-work-intro h2,
.selected-work-intro p {
  margin: 0;
}

.selected-work-intro .section-lede {
  margin-top: 0.5rem;
}

.selected-work-intro .virtual-system-links {
  justify-content: flex-end;
  min-width: min(100%, 21rem);
  margin-top: 0;
}

.archive-spine {
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.archive-spine-header {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.78fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: end;
}

.archive-spine-header h2,
.archive-spine-header p {
  margin: 0;
}

.archive-spine-header h2 {
  max-width: 13em;
}

.archive-spine-header > p {
  max-width: 64ch;
  line-height: 1.58;
}

.archive-spine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1rem);
  margin-top: 1.35rem;
}

.archive-spine-card {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--sheet-border);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 36%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    0 18px 42px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.archive-spine-card:hover,
.archive-spine-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 22px 52px var(--sheet-shadow),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.archive-spine-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.archive-spine-card h3,
.archive-spine-card p {
  margin: 0;
}

.archive-spine-card h3 {
  margin-top: 0.35rem;
  color: var(--fg);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.archive-spine-card p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.archive-spine-card--depth {
  background:
    radial-gradient(circle at top right, var(--sheet-glow), transparent 34%),
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 36%),
    rgba(255, 255, 255, 0.025);
}

.selected-work-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.15rem);
  margin: clamp(1.2rem, 2.5vw, 1.8rem) 0 clamp(1.4rem, 3vw, 2.2rem);
}

.selected-work-path-card {
  min-height: clamp(18rem, 26vw, 22rem);
  justify-content: space-between;
}

.selected-work-path-card h3 {
  max-width: 11em;
}

.path-evidence-list {
  display: grid;
  gap: 0.44rem;
  margin: 1rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
  list-style: none;
}

.path-evidence-list li {
  position: relative;
  padding-left: 1rem;
}

.path-evidence-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.32rem;
  height: 1px;
  background: currentColor;
  opacity: 0.72;
}

.selected-work-path-card .portfolio-path-link {
  margin-top: 1.05rem;
}

.case-study-home-header {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.82fr) auto;
  gap: clamp(0.9rem, 2vw, 1.3rem);
  align-items: end;
  margin: 0 0 clamp(0.8rem, 1.7vw, 1.15rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--sheet-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 38%),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    0 14px 34px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.case-study-home-header h3,
.case-study-home-header p {
  margin: 0;
}

.case-study-home-header h3 {
  max-width: 14em;
  color: var(--fg);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.case-study-home-header > p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-underlayer {
  position: relative;
  padding: calc(var(--section-space-feature) + 0.35rem) 0;
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 18%),
    radial-gradient(circle at top right, var(--sheet-glow), transparent 34%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft)),
    var(--bg);
  box-shadow:
    inset 0 1px 0 var(--sheet-inner-highlight),
    0 -16px 26px -22px var(--sheet-shadow);
}

.hero-underlayer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 18%),
    radial-gradient(circle at top right, var(--sheet-glow), transparent 34%);
  opacity: 0.92;
}

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

.hero-underlayer--alpha {
  z-index: 1;
}

.hero-underlayer--beta {
  z-index: 0;
}

.hero-underlayer--gamma {
  z-index: 0;
}

body.light-mode .hero-underlayer {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 18%),
    radial-gradient(circle at top right, var(--sheet-glow), transparent 34%),
    linear-gradient(150deg, var(--sheet-surface), var(--sheet-surface-soft)),
    var(--bg);
  box-shadow:
    inset 0 1px 0 var(--sheet-inner-highlight),
    0 -14px 20px -18px var(--sheet-shadow);
}

body.light-mode .hero-underlayer::before {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 18%),
    radial-gradient(circle at top right, var(--sheet-glow), transparent 34%);
}

.about-depth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--grid-gap-standard);
  margin-top: 1.5rem;
}

.about-depth-card {
  min-height: 0;
  position: relative;
  padding-bottom: clamp(3.4rem, 5vw, 4.1rem);
  scroll-margin-top: 7rem;
}

.about-depth-card h3 {
  margin: 0 0 0.85rem;
}

.about-depth-card p {
  max-width: none;
}

.about-depth-card p + p {
  margin-top: 0.8rem;
}

.micro-thought {
  position: absolute;
  right: clamp(0.9rem, 1.6vw, 1.15rem);
  bottom: clamp(0.9rem, 1.6vw, 1.15rem);
  z-index: 6;
}

.micro-thought > summary {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  list-style: none;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--card-inner-highlight), transparent 64%),
    var(--sheet-surface-soft);
  color: var(--fg);
  box-shadow:
    0 10px 22px var(--card-shadow),
    inset 0 1px 0 var(--card-inner-highlight);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.micro-thought > summary::-webkit-details-marker {
  display: none;
}

.micro-thought > summary::before {
  content: "+";
  transform: translateY(-0.04em);
}

.micro-thought[open] > summary::before {
  content: "x";
  font-size: 0.78rem;
  transform: none;
}

.micro-thought > summary:hover,
.micro-thought > summary:focus-visible,
.micro-thought[open] > summary {
  border-color: var(--sheet-border);
  background: var(--sheet-surface);
  box-shadow:
    0 14px 26px var(--card-shadow),
    0 0 18px var(--sheet-glow),
    inset 0 1px 0 var(--sheet-inner-highlight);
  transform: translateY(-1px);
}

.micro-thought > summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.micro-thought__body {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  width: min(20rem, calc(100vw - 2rem));
  max-height: min(46vh, 22rem);
  overflow: auto;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--sheet-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 52%),
    var(--sheet-surface);
  box-shadow:
    0 18px 36px var(--sheet-shadow),
    0 0 24px var(--sheet-glow),
    inset 0 1px 0 var(--sheet-inner-highlight);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  backdrop-filter: var(--sheet-blur);
  -webkit-backdrop-filter: var(--sheet-blur);
}

.micro-thought__body p,
.micro-thought__body ul {
  margin: 0;
  max-width: none;
}

.micro-thought__body p + p,
.micro-thought__body ul + p,
.micro-thought__body p + ul {
  margin-top: 0.65rem;
}

body.light-mode .micro-thought > summary {
  border-color: var(--card-border);
  background:
    linear-gradient(180deg, var(--card-inner-highlight), transparent 64%),
    rgba(255, 255, 255, 0.78);
}

body.light-mode .micro-thought > summary:hover,
body.light-mode .micro-thought > summary:focus-visible,
body.light-mode .micro-thought[open] > summary {
  border-color: var(--sheet-border);
  background: rgba(255, 255, 255, 0.96);
}

body.light-mode .micro-thought__body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), transparent 56%),
    rgba(255, 255, 255, 0.92);
}

.about-depth-path {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-underlayer .case-details {
  margin-bottom: 0;
}

body.hero-fixed-mode #about {
  z-index: 4;
}

body.hero-fixed-mode #designer-depth {
  z-index: 3;
  margin-top: 0;
}

body.hero-fixed-mode #benjamin-systems {
  z-index: 2;
}

body.hero-fixed-mode #benjamin-direction {
  z-index: 1;
}

body.hero-fixed-mode #selected-work,
body.hero-fixed-mode #creative-ux-lab,
body.hero-fixed-mode #practice,
body.hero-fixed-mode #business-architect,
body.hero-fixed-mode #contact {
  z-index: 6;
}

#creative-ux-lab {
  padding: var(--section-space-feature) 0;
}

#business-architect {
  padding: var(--section-space-feature) 0;
}

.business-architect-spotlight {
  position: relative;
  overflow: hidden;
}

.business-architect-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(216, 140, 98, 0.08), transparent 28%),
    linear-gradient(180deg, var(--sheet-highlight), transparent 24%);
}

.business-architect-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
}

.business-architect-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.business-architect-grid {
  position: relative;
  z-index: 1;
}

.business-architect-grid .card {
  max-width: none;
}

.business-architect-lead-card {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(255, 95, 95, 0.08), transparent 26%),
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 36%),
    var(--card-bg);
}

.business-architect-lead-card .card-summary,
.business-architect-lead-card .business-architect-points li {
  color: var(--muted);
}

.business-architect-points {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
}

.business-architect-points li + li {
  margin-top: 0.45rem;
}

.business-architect-depth-card {
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 36%),
    var(--card-bg);
}

/* Cards / grids */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--grid-gap-standard);
  margin-top: var(--grid-gap-standard);
}

/* center single card if only one */
.grid:has(> .card:only-child) {
  justify-items: center;
}

.grid:has(> .card:only-child) > .card {
  max-width: 420px;
  width: 100%;
}

/* Selected Work: 3 cards on top row, 2 centered below */
#selected-work .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--grid-gap-wide);
}

/* Flexible card sizing ONLY inside Selected Work */
#selected-work .grid .card {
  flex: 1 1 var(--selected-card-basis);
  max-width: var(--selected-card-max);
}

#selected-work .grid .selected-work-hero-card {
  flex: 1 1 clamp(540px, 58vw, 760px);
  max-width: 780px;
  min-height: 318px;
  padding: clamp(1.65rem, 2.4vw, 2rem);
}

#selected-work .grid .selected-work-hero-card .card-header h3 {
  max-width: 18em;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.08;
}

#selected-work .grid .selected-work-hero-card .card-summary {
  max-width: 66ch;
  font-size: clamp(1.04rem, 1.25vw, 1.14rem);
}

#selected-work .grid .card:nth-child(n + 2):nth-child(-n + 3) {
  flex-basis: clamp(340px, 30vw, 388px);
  max-width: 404px;
  min-height: 272px;
}

#selected-work .grid .card:nth-child(n + 4) {
  flex-basis: clamp(286px, 24vw, 322px);
  max-width: 350px;
}

#selected-work .grid .card:nth-child(n + 2):nth-child(-n + 3) .card-header h3 {
  font-size: clamp(1.18rem, 1.55vw, 1.38rem);
  line-height: 1.12;
}

#selected-work .grid .card:nth-child(n + 4) .card-summary {
  font-size: 0.98rem;
}

.work-cta-strip {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  margin-top: clamp(1.6rem, 3vw, 2.25rem);
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--sheet-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 36%),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    0 14px 34px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.work-cta-strip h3,
.work-cta-strip p {
  margin: 0;
}

.work-cta-strip h3 {
  color: var(--fg);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.08;
}

.work-cta-strip p:not(.eyebrow) {
  margin-top: 0.48rem;
  max-width: 62ch;
  color: var(--muted);
}

.physical-virtual-showcase {
  margin: 1.6rem 0 2.1rem;
  padding: clamp(1.1rem, 2.2vw, 1.55rem);
  border: 1px solid var(--sheet-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 28%),
    linear-gradient(135deg, var(--sheet-surface), var(--sheet-surface-faint));
  box-shadow:
    0 18px 42px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.physical-page-spread-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: start;
}

.physical-page-spread-rail {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.physical-page-spread-rail .physical-virtual-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  padding: clamp(1.1rem, 2vw, 1.35rem);
  border: 1px solid var(--sheet-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 34%),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    0 14px 34px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.physical-page-spread-rail .physical-virtual-intro .eyebrow,
.physical-page-spread-rail .physical-virtual-intro h2,
.physical-page-spread-rail .physical-virtual-intro p {
  margin: 0;
}

.physical-page-spread-rail .physical-virtual-intro h2 {
  max-width: 12ch;
}

.physical-page-spread-rail .physical-virtual-intro p:not(.eyebrow) {
  max-width: 32ch;
}

.physical-page-spread-notes {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.physical-page-spread-notes li {
  position: relative;
  padding: 0.9rem 0.95rem 0.9rem 2.7rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 38%),
    var(--card-bg);
  color: var(--muted);
  line-height: 1.48;
}

.physical-page-spread-notes li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
}

body:not(.archive-side-page):not(.physical-products-page) .physical-product-hero {
  grid-template-columns: 1fr;
}

body:not(.archive-side-page):not(.physical-products-page) .physical-product-media-stack,
body:not(.archive-side-page):not(.physical-products-page) .physical-product-board,
body:not(.archive-side-page):not(.physical-products-page) .physical-product-case-body figure,
body:not(.archive-side-page):not(.physical-products-page) .brand-systems-media {
  display: none;
}

body:not(.archive-side-page):not(.physical-products-page) .physical-product-case-body {
  grid-template-columns: 1fr;
}

body:not(.archive-side-page):not(.physical-products-page) .physical-product-brief {
  max-width: 62rem;
}

body:not(.archive-side-page):not(.physical-products-page) .digital-continuation-panel {
  grid-template-columns: 1fr;
}

body:not(.archive-side-page):not(.physical-products-page) .digital-continuation-panel img {
  display: none;
}

body:not(.archive-side-page):not(.physical-products-page) .brand-systems-showcase {
  grid-template-columns: 1fr;
}

.physical-virtual-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.8fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
  align-items: end;
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
}

.physical-virtual-intro .eyebrow,
.physical-virtual-intro h3,
.physical-virtual-intro p {
  margin: 0;
}

.physical-virtual-intro h3 {
  color: var(--fg);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.08;
  max-width: 16em;
}

.physical-virtual-intro p:not(.eyebrow) {
  line-height: 1.55;
  max-width: none;
}

.physical-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: clamp(0.85rem, 1.8vw, 1.2rem);
  align-items: stretch;
}

.physical-product-media-stack {
  display: grid;
  min-width: 0;
  gap: 0.7rem;
}

.physical-product-media-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(230px, 0.72fr);
  gap: 0.7rem;
  min-width: 0;
}

.physical-product-hero > *,
.physical-product-media-stack > *,
.physical-product-media-row > * {
  min-width: 0;
}

.physical-media-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 95, 95, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(24, 25, 32, 0.96), rgba(6, 7, 10, 0.98));
}

.physical-video-tile {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.physical-media-shell video,
.physical-video-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.physical-media-shell video {
  background: #030407;
  z-index: 1;
}

.physical-video-poster {
  z-index: 0;
  transition: opacity 0.18s ease;
}

.physical-media-shell.is-video-loaded .physical-video-poster {
  opacity: 0;
  pointer-events: none;
}

.physical-media-shell:not(.is-video-loaded) video {
  opacity: 0;
}

.physical-video-load {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  width: 100%;
  border: 0;
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(28, 31, 38, 0.62), rgba(4, 5, 8, 0.9));
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.physical-video-load::after {
  content: "3:18 video loads on click";
  display: block;
  margin-top: -0.3rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
}

.physical-video-play {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(0, 0, 0, 0.24);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.physical-video-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0.95rem 0 0 1.22rem;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.82rem solid rgba(255, 255, 255, 0.92);
}

.physical-video-load:hover {
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(135deg, rgba(34, 37, 46, 0.7), rgba(4, 5, 8, 0.94));
}

.physical-product-brief,
.digital-continuation-panel,
.physical-product-case {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.62);
}

.physical-product-brief {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.physical-product-brief .panel-label,
.physical-product-brief h4,
.physical-product-brief p,
.physical-product-brief dl,
.digital-continuation-panel .panel-label,
.digital-continuation-panel h4,
.digital-continuation-panel p {
  margin: 0;
}

.physical-product-brief .panel-label,
.digital-continuation-panel .panel-label,
.physical-product-case .panel-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.physical-product-brief h4,
.digital-continuation-panel h4 {
  margin-top: 0.45rem;
  color: var(--fg);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.2;
}

.physical-product-brief p,
.digital-continuation-panel p {
  margin-top: 0.7rem;
  max-width: none;
  line-height: 1.55;
}

.physical-product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.physical-product-facts div {
  min-width: 0;
  padding: 0.72rem 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.physical-product-facts dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.physical-product-facts dd {
  margin: 0.25rem 0 0;
  color: var(--fg);
  font-size: 0.82rem;
  line-height: 1.28;
}

.physical-gallery-item:focus-visible,
.physical-product-case > summary:focus-visible,
.physical-lightbox-close:focus-visible,
.physical-lightbox-backdrop:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.physical-gallery-item {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.66);
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}

.physical-gallery-item--range {
  aspect-ratio: 1500 / 384;
  min-height: 210px;
}

.physical-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.physical-gallery-item--range img {
  object-fit: contain;
  background: #f4f2ed;
}

.physical-gallery-item:hover img {
  transform: scale(1.03);
}

.physical-gallery-item span {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 2rem 0.8rem 0.75rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  color: rgba(245, 245, 245, 0.9);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
}

.physical-gallery-item strong {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--text-primary);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.physical-product-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  grid-auto-rows: minmax(175px, 1fr);
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.physical-product-board .physical-gallery-item {
  aspect-ratio: auto;
  min-height: 175px;
}

.physical-gallery-item--tall {
  grid-row: span 2;
}

.physical-gallery-item--wide {
  grid-column: span 2;
}

.physical-product-cases {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.physical-product-case {
  overflow: hidden;
}

.physical-product-case > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
  padding: clamp(0.85rem, 1.8vw, 1.05rem) clamp(1rem, 2vw, 1.25rem);
  color: var(--fg);
  cursor: pointer;
  list-style: none;
}

.physical-product-case > summary::-webkit-details-marker {
  display: none;
}

.physical-product-case > summary > span:first-child {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.physical-product-case > summary strong {
  color: var(--fg);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.2;
}

.physical-product-case > summary > span:last-child {
  flex: 0 0 auto;
  min-width: 4rem;
  padding: 0.44rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.physical-product-case[open] > summary > span:last-child {
  color: var(--fg);
  font-size: 0;
}

.physical-product-case[open] > summary > span:last-child::before {
  content: "Close";
  font-size: 0.76rem;
}

.physical-product-case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.55fr);
  gap: clamp(0.85rem, 1.8vw, 1.1rem);
  padding: 0 clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.2rem);
}

.physical-product-case-body p,
.physical-product-case-body ul,
.physical-product-case-body figure {
  margin: 0;
}

.physical-product-case-body p {
  line-height: 1.55;
}

.physical-product-case-body ul {
  margin-top: 0.85rem;
  padding-left: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
}

.physical-product-case-body li + li {
  margin-top: 0.34rem;
}

.physical-product-case-body figure {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.physical-product-case-body figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.physical-product-case-body figcaption {
  padding: 0.65rem 0.75rem 0.72rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.digital-continuation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.32fr);
  gap: clamp(0.85rem, 1.8vw, 1.1rem);
  align-items: center;
  margin-top: 0.9rem;
  padding: clamp(1rem, 2vw, 1.2rem);
}

.digital-continuation-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.virtual-system-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.virtual-system-links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.virtual-system-links a:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.physical-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.25rem);
}

.physical-lightbox.is-open {
  display: grid;
}

.physical-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
}

.physical-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1080px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(9, 11, 16, 0.96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.physical-lightbox-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #030407;
}

.physical-lightbox-copy {
  padding: 1rem 1.15rem 1.1rem;
  background: rgba(10, 12, 18, 0.96);
}

.physical-lightbox-copy h4,
.physical-lightbox-copy p {
  margin: 0;
}

.physical-lightbox-copy h4 {
  margin-top: 0.32rem;
  color: var(--fg);
  font-size: 1rem;
}

.physical-lightbox-copy p:not(.panel-label) {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.45;
}

.physical-lightbox-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  min-height: 2.25rem;
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

body.physical-lightbox-open {
  overflow: hidden;
}

body.light-mode .physical-virtual-showcase {
  border-color: rgba(0, 0, 0, 0.09);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 252, 0.78)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

body.light-mode .physical-product-brief,
body.light-mode .digital-continuation-panel,
body.light-mode .physical-product-case,
body.light-mode .physical-gallery-item,
body.light-mode .physical-media-shell,
body.light-mode .physical-product-case-body figure,
body.light-mode .digital-continuation-panel img {
  border-color: rgba(0, 0, 0, 0.09);
}

body.light-mode .physical-product-brief,
body.light-mode .digital-continuation-panel,
body.light-mode .physical-product-case {
  background: rgba(255, 255, 255, 0.72);
}

body.light-mode .physical-product-facts div,
body.light-mode .physical-product-case-body figure,
body.light-mode .digital-continuation-panel img,
body.light-mode .virtual-system-links a {
  background: rgba(255, 255, 255, 0.76);
}

body.light-mode .physical-product-case > summary > span:last-child,
body.light-mode .virtual-system-links a {
  color: var(--fg);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Branding and physical-products route */

.brand-systems-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: stretch;
  margin: 1.4rem 0 2.1rem;
  padding: clamp(1.1rem, 2.2vw, 1.55rem);
  scroll-margin-top: 76px;
  border: 1px solid var(--sheet-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 28%),
    linear-gradient(135deg, var(--sheet-surface), var(--sheet-surface-faint));
  box-shadow:
    0 18px 42px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.brand-systems-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-systems-copy h3,
.brand-systems-copy p {
  margin: 0;
}

.brand-systems-copy h3 {
  color: var(--fg);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.08;
  max-width: 12em;
}

.brand-systems-copy p:not(.eyebrow) {
  margin-top: 0.75rem;
  max-width: 58ch;
  line-height: 1.55;
}

.brand-systems-media {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: minmax(170px, 1fr);
  gap: 0.7rem;
}

.brand-systems-media figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.brand-systems-media-main {
  grid-row: span 2;
}

.brand-systems-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.brand-systems-media figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.7rem 0.75rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  color: rgba(245, 245, 245, 0.88);
  font-size: 0.78rem;
  line-height: 1.35;
}

body.light-mode .brand-systems-showcase {
  border-color: rgba(0, 0, 0, 0.09);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 252, 0.72)),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.logo-link {
  color: inherit;
  text-decoration: none;
}

.archive-side-page main::before,
.archive-side-page main::after {
  display: none;
}

.archive-side-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.8rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 26%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 44%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.96), rgba(5, 6, 10, 0.98));
  border-bottom: 1px solid var(--sheet-border);
  box-shadow:
    inset 0 1px 0 var(--sheet-inner-highlight),
    0 18px 44px -34px var(--sheet-shadow);
}

body.light-mode .archive-side-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 32%),
    linear-gradient(180deg, rgba(247, 247, 249, 0.96), rgba(238, 239, 243, 0.96));
}

.archive-side-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(420px, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: end;
}

.archive-side-hero--text .archive-side-hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.46fr);
  align-items: center;
}

.archive-hero-map {
  border: 1px solid var(--sheet-border);
  border-radius: 8px;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 36%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    0 18px 42px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.archive-hero-map ol {
  display: grid;
  gap: 0.68rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.archive-hero-map li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.68rem 0;
  border-top: 1px solid var(--card-border);
  color: var(--fg);
  font-size: 0.95rem;
}

.archive-hero-map li:first-child {
  border-top: 0;
}

.archive-hero-map li span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-side-hero-copy h1,
.archive-side-hero-copy p {
  margin: 0;
}

.archive-side-hero-copy h1 {
  color: var(--fg);
  font-size: clamp(2.15rem, 4.6vw, 4.55rem);
  line-height: 0.98;
  max-width: 10.5em;
}

.archive-side-hero-copy .section-lede {
  margin-top: 1rem;
  max-width: 62ch;
}

.archive-side-hero-media,
.archive-project-card,
.archive-side-bridge-grid {
  border: 1px solid var(--sheet-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 36%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    0 18px 42px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.archive-side-hero-media {
  margin: 0;
  overflow: hidden;
}

.archive-side-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center top;
  background: #11131a;
}

.archive-side-hero-media--wide img {
  aspect-ratio: 16 / 7;
  object-position: center center;
}

.archive-side-hero-media figcaption {
  padding: 0.75rem 0.85rem 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.archive-side-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(320px, 0.85fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: end;
}

.archive-side-overview-grid h2,
.archive-side-overview-grid p {
  margin: 0;
}

.archive-side-overview-grid h2 {
  max-width: 12em;
}

.archive-side-overview-grid > p {
  max-width: 66ch;
  line-height: 1.58;
}

.archive-project-index h2 {
  max-width: 12em;
}

.archive-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.2rem);
  margin-top: 1.4rem;
}

.case-study-map {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.45rem);
  margin-top: 1.4rem;
}

.case-study-group {
  padding: clamp(1rem, 2.1vw, 1.4rem);
  border: 1px solid var(--sheet-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 28%),
    linear-gradient(135deg, var(--sheet-surface), var(--sheet-surface-faint));
  box-shadow:
    0 18px 42px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.case-study-group-header {
  display: grid;
  gap: 0.45rem;
  max-width: 72ch;
}

.case-study-group-header h3,
.case-study-group-header p {
  margin: 0;
}

.case-study-group-header h3 {
  color: var(--fg);
  font-size: clamp(1.22rem, 2vw, 1.6rem);
  line-height: 1.08;
}

.case-study-group-header p:not(.panel-label) {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.54;
}

.case-study-group .archive-project-grid {
  margin-top: 1rem;
}

.archive-project-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

.archive-project-card--feature {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

.archive-project-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  background: #11131a;
}

.archive-project-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.archive-project-card h3,
.archive-project-card p {
  margin: 0;
}

.archive-project-card h3 {
  margin-top: 0.35rem;
  color: var(--fg);
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.14;
}

.archive-project-card p:not(.panel-label) {
  margin-top: 0.65rem;
  max-width: 58ch;
  line-height: 1.5;
}

.archive-side-bridge-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.45fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: center;
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
}

.archive-side-bridge-grid h2,
.archive-side-bridge-grid p {
  margin: 0;
}

.archive-side-bridge-grid h2 {
  max-width: 15em;
}

.archive-side-bridge-grid p:not(.eyebrow) {
  margin-top: 0.7rem;
  max-width: 62ch;
  line-height: 1.58;
}

.physical-products-page main::before,
.physical-products-page main::after {
  display: none;
}

.physical-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.8rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 26%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 44%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.96), rgba(5, 6, 10, 0.98));
  border-bottom: 1px solid var(--sheet-border);
  box-shadow:
    inset 0 1px 0 var(--sheet-inner-highlight),
    0 18px 44px -34px var(--sheet-shadow);
}

body.light-mode .physical-page-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 32%),
    linear-gradient(180deg, rgba(247, 247, 249, 0.96), rgba(238, 239, 243, 0.96));
}

.physical-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: end;
}

.physical-page-hero-copy h1,
.physical-page-hero-copy p {
  margin: 0;
}

.physical-page-hero-copy h1 {
  color: var(--fg);
  font-size: clamp(2.15rem, 4.6vw, 4.55rem);
  line-height: 0.98;
  max-width: 10em;
}

.physical-page-hero-copy .section-lede {
  margin-top: 1rem;
  max-width: 62ch;
}

.physical-page-hero-media,
.physical-module-card,
.physical-page-launch-grid {
  border: 1px solid var(--sheet-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--sheet-inner-highlight), transparent 36%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    0 18px 42px var(--sheet-shadow-soft),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.physical-page-hero-media {
  margin: 0;
  overflow: hidden;
}

.physical-page-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #11131a;
}

.physical-page-hero-media figcaption {
  padding: 0.75rem 0.85rem 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.physical-page-spread {
  padding-top: var(--section-space-feature);
}

.physical-page-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  grid-auto-flow: dense;
  gap: 0.85rem;
}

.physical-page-editorial-grid .physical-gallery-item {
  aspect-ratio: auto;
  min-height: 175px;
}

.physical-page-editorial-grid > .physical-page-editorial-wide:first-child {
  grid-column: span 2;
}

.physical-page-editorial-grid > .physical-gallery-item:nth-child(2) {
  grid-column: span 1;
}

.physical-page-editorial-grid > .physical-gallery-item:nth-child(4) {
  grid-column: span 1;
}

.physical-page-editorial-grid > .physical-page-editorial-wide:last-child {
  grid-column: span 2;
}

.physical-page-editorial-wide {
  grid-column: span 1;
}

.physical-page-editorial-tall {
  grid-row: span 2;
}

.physical-field-story {
  margin-top: clamp(3.5rem, 8vw, 7rem);
}

.physical-field-story-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.62fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: 1.25rem;
}

.physical-field-story-head h2,
.physical-field-story-head p {
  margin: 0;
}

.physical-field-story-head h2 {
  max-width: 15em;
}

.physical-field-story-head > p {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.72;
}

.physical-field-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
}

.physical-field-gallery .physical-field-card {
  min-height: clamp(280px, 43vw, 620px);
  aspect-ratio: auto;
}

.physical-field-card--portrait {
  grid-column: span 5;
}

.physical-field-card--wide {
  grid-column: span 7;
}

.physical-page-modules h2,
.physical-page-launch h2 {
  max-width: 12em;
}

.physical-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.9vw, 1.25rem);
  margin-top: 1.4rem;
}

.physical-module-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

.physical-module-card--feature {
  grid-column: span 2;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
}

.physical-module-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  background: #11131a;
}

.physical-module-card > div {
  padding: clamp(1rem, 2vw, 1.25rem);
}

.physical-module-card h3,
.physical-module-card p,
.physical-module-card dl,
.physical-module-card dd {
  margin: 0;
}

.physical-module-card h3 {
  margin-top: 0.35rem;
  color: var(--fg);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.18;
}

.physical-module-card dl {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.physical-module-card dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.physical-module-card dd {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.physical-page-launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: center;
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
}

.physical-page-launch-grid h2,
.physical-page-launch-grid p {
  margin: 0;
}

.physical-page-launch-grid p {
  margin-top: 0.7rem;
  max-width: 62ch;
  line-height: 1.58;
}

.physical-page-proof-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.physical-page-proof-list li {
  padding: 0.68rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
}

/* Creative UX lab cards */
#creative-ux-lab .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--grid-gap-wide);
}

#creative-ux-lab .grid .card {
  flex: 1 1 var(--selected-card-basis);
  max-width: var(--selected-card-max);
}

.terrain-hub-grid {
  display: flex;
  justify-content: center;
}

#creative-ux-lab .grid .terrain-hub-card {
  flex: 1 1 980px;
  max-width: 1080px;
  width: min(100%, 1080px);
}

.card--outer.terrain-hub-card {
  --terrain-preview-sand: rgba(201, 176, 114, 0.96);
  --terrain-preview-clay: rgba(176, 128, 90, 0.92);
  --terrain-preview-cream: rgba(236, 226, 202, 0.9);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(1.3rem, 3vw, 2.5rem);
  align-items: center;
  min-height: 340px;
  padding: clamp(1.35rem, 2.8vw, 2rem);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.card--outer.terrain-hub-card:hover {
  transform: none;
}

.terrain-hub-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.card-header.terrain-hub-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.terrain-hub-card .terrain-hub-heading h3 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.terrain-hub-heading .pill-group {
  justify-content: flex-start;
}

.terrain-hub-card .card-summary {
  max-width: 49ch;
  color: var(--fg);
  line-height: 1.58;
}

.terrain-hub-note {
  display: grid;
  gap: 0.22rem;
  margin: 0.1rem 0 0;
  padding-left: 0.85rem;
  border-left: 2px solid var(--terrain-preview-sand);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.48;
}

.terrain-hub-note strong {
  color: var(--fg);
  font-size: 0.76rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.terrain-hub-actions {
  margin-top: auto;
  padding-top: 0.35rem;
}

.terrain-window-launch {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  align-self: stretch;
  min-width: 0;
  border-radius: 16px;
}

.terrain-window-frame {
  position: relative;
  border: 1px solid rgba(208, 190, 138, 0.34);
  border-radius: 16px;
  min-height: 288px;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(201, 176, 114, 0.17), transparent 46%),
    radial-gradient(circle at 84% 86%, rgba(176, 128, 90, 0.17), transparent 48%),
    linear-gradient(155deg, #313a27 0%, #1a2116 48%, #11140d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(236, 226, 202, 0.055),
    inset 0 22px 38px rgba(0, 0, 0, 0.22),
    0 18px 42px rgba(0, 0, 0, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.terrain-window-launch:hover .terrain-window-frame {
  transform: translateY(-3px);
  border-color: rgba(208, 190, 138, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(236, 226, 202, 0.08),
    inset 0 24px 40px rgba(0, 0, 0, 0.24),
    0 22px 46px rgba(0, 0, 0, 0.3);
}

.terrain-window-launch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.terrain-preview {
  position: absolute;
  inset: -8%;
  will-change: transform;
  transform-origin: center center;
}

.terrain-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(236, 226, 202, 0.2) 0 2px, transparent 3px),
    linear-gradient(130deg, rgba(201, 176, 114, 0.1), transparent 34%),
    linear-gradient(305deg, rgba(176, 128, 90, 0.09), transparent 40%);
  opacity: 0.8;
  pointer-events: none;
}

.terrain-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    radial-gradient(ellipse at 52% 56%, transparent 48%, rgba(3, 6, 14, 0.32) 100%);
  pointer-events: none;
}

.terrain-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--terrain-preview-cream);
  box-shadow: 0 0 12px rgba(201, 176, 114, 0.28);
}

.terrain-dot.dot-1 {
  left: 49%;
  top: 42%;
}

.terrain-dot.dot-2 {
  left: 20%;
  top: 67%;
}

.terrain-dot.dot-3 {
  left: 33%;
  top: 67%;
}

.terrain-dot.dot-4 {
  left: 46%;
  top: 67%;
}

.terrain-dot.dot-5 {
  left: 60%;
  top: 67%;
}

.terrain-dot.dot-6 {
  left: 74%;
  top: 67%;
}

.terrain-dot.dot-7 {
  left: 36%;
  top: 30%;
  opacity: 0.82;
}

.terrain-dot.dot-8 {
  left: 64%;
  top: 32%;
  opacity: 0.82;
}

.terrain-dot.dot-9 {
  left: 28%;
  top: 82%;
  opacity: 0.54;
}

.terrain-dot.dot-10 {
  left: 70%;
  top: 81%;
  opacity: 0.54;
}

.terrain-link {
  position: absolute;
  height: 1.2px;
  background: linear-gradient(90deg, rgba(201, 176, 114, 0.58), rgba(176, 128, 90, 0.7));
  transform-origin: left center;
  opacity: 0.82;
}

.terrain-contour {
  position: absolute;
  border: 1px solid rgba(208, 190, 138, 0.12);
  border-radius: 48% 52% 44% 56%;
  pointer-events: none;
}

.terrain-contour.contour-1 {
  left: 17%;
  top: 14%;
  width: 50%;
  height: 50%;
  transform: rotate(-11deg);
}

.terrain-contour.contour-2 {
  right: 8%;
  bottom: 4%;
  width: 46%;
  height: 43%;
  border-color: rgba(176, 128, 90, 0.13);
  transform: rotate(18deg);
}

.terrain-contour.contour-3 {
  left: 28%;
  bottom: 8%;
  width: 58%;
  height: 66%;
  opacity: 0.7;
  transform: rotate(7deg);
}

.terrain-window-kicker {
  position: absolute;
  z-index: 2;
  left: 1rem;
  top: 0.95rem;
  color: rgba(236, 226, 202, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.terrain-link.link-1 {
  left: 24%;
  top: 67%;
  width: 50%;
  transform: rotate(0deg);
}

.terrain-link.link-2 {
  left: 49%;
  top: 43%;
  width: 24%;
  transform: rotate(146deg);
}

.terrain-link.link-3 {
  left: 49%;
  top: 43%;
  width: 24%;
  transform: rotate(88deg);
}

.terrain-link.link-4 {
  left: 49%;
  top: 43%;
  width: 23%;
  transform: rotate(34deg);
}

.terrain-link.link-5 {
  left: 49%;
  top: 43%;
  width: 18%;
  transform: rotate(226deg);
}

.terrain-link.link-6 {
  left: 49%;
  top: 43%;
  width: 18%;
  transform: rotate(328deg);
}

.terrain-link.link-7 {
  left: 63%;
  top: 67%;
  width: 17%;
  transform: rotate(56deg);
}

.terrain-window-label {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ece2cc;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(208, 190, 138, 0.24);
  background: rgba(17, 20, 13, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Mobile: stack cards nicely */
@media (max-width: 900px) {
  .hero--index::before,
  .hero--index::after {
    top: 20px;
    bottom: 0;
    width: clamp(58px, 7.8vw, 90px);
  }

  main::before,
  main::after {
    width: clamp(34px, 5.2vw, 52px);
    opacity: 0.68;
  }

  #selected-work .grid {
    justify-content: stretch;
  }

  #selected-work .grid .card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #selected-work .grid .selected-work-hero-card,
  #selected-work .grid .card:nth-child(-n + 3),
  #selected-work .grid .card:nth-child(n + 4) {
    flex-basis: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .work-cta-strip {
    align-items: start;
    flex-direction: column;
  }

  .portfolio-paths {
    margin-top: 0;
    padding-top: 1.2rem;
  }

  body.hero-fixed-mode .portfolio-paths {
    margin-top: 0;
  }

  .hero--split,
  .portfolio-split {
    min-height: calc(100svh - 56px);
  }

  .portfolio-split {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .portfolio-split-panel {
    min-height: calc((100svh - 56px) / 3);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .portfolio-split-panel:last-child {
    border-bottom: 0;
  }

  .portfolio-split-copy {
    gap: 0.28rem;
    padding: 1.05rem 1.5rem;
  }

  .portfolio-split-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.15em;
  }

  .portfolio-split-title {
    max-width: 11em;
    font-size: clamp(1.45rem, 7.4vw, 2.05rem);
    line-height: 0.95;
  }

  .portfolio-split-text {
    display: none;
  }

  .portfolio-split-panel .portfolio-path-link {
    margin-top: 0.12rem;
    font-size: 0.68rem;
  }

  .identity-intro-grid,
  .selected-work-intro,
  .selected-work-paths,
  .case-study-home-header,
  .archive-spine-header,
  .archive-spine-grid,
  .portfolio-paths-intro,
  .portfolio-path-grid,
  .brand-systems-showcase,
  .brand-systems-media,
  .archive-side-hero-grid,
  .archive-side-overview-grid,
  .archive-project-grid,
  .archive-project-card,
  .archive-project-card--feature,
  .archive-side-bridge-grid,
  .physical-page-hero-grid,
  .physical-page-launch-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-path-card {
    grid-template-rows: minmax(180px, auto) auto;
    min-height: 0;
  }

  .portfolio-path-card img {
    min-height: 180px;
  }

  .brand-systems-copy h3 {
    max-width: none;
  }

  .brand-systems-media-main {
    grid-row: span 1;
  }

  .archive-side-hero {
    padding-top: 4.6rem;
  }

  .archive-side-hero-copy h1 {
    max-width: none;
  }

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

  .archive-side-hero-media--wide img {
    aspect-ratio: 4 / 3;
  }

  .archive-project-card--feature {
    grid-column: span 1;
  }

  .archive-project-card img {
    min-height: 220px;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .physical-page-hero {
    padding-top: 4.6rem;
  }

  .physical-page-hero-copy h1 {
    max-width: none;
  }

  .physical-page-editorial-grid,
  .physical-page-spread-layout,
  .physical-field-story-head,
  .physical-field-gallery,
  .physical-module-grid {
    grid-template-columns: 1fr;
  }

  .physical-page-spread-rail .physical-virtual-intro {
    grid-template-columns: 1fr;
    padding: 0.95rem;
  }

  .physical-page-spread-notes li {
    padding-left: 2.45rem;
  }

  .physical-page-editorial-grid {
    grid-auto-rows: minmax(180px, auto);
  }

  .physical-page-editorial-grid > .physical-gallery-item {
    grid-column: span 1;
    grid-row: span 1;
  }

  .physical-page-editorial-wide,
  .physical-page-editorial-tall,
  .physical-field-card--portrait,
  .physical-field-card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .physical-field-gallery .physical-field-card {
    min-height: clamp(300px, 108vw, 520px);
  }

  .physical-module-card,
  .physical-module-card--feature {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .selected-work-intro {
    align-items: start;
  }

	  .selected-work-intro .virtual-system-links {
	    justify-content: flex-start;
	  }

	  .selected-work-paths {
	    margin-top: 1rem;
	  }

	  .selected-work-path-card {
	    min-height: 13rem;
	  }

	  .case-study-home-header {
	    align-items: start;
	  }

	  .archive-spine-card {
	    min-height: 11rem;
  }

  .physical-module-card img {
    min-height: 220px;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .physical-virtual-showcase {
    margin: 1.15rem 0 1.55rem;
    padding: 0.85rem;
  }

  .physical-virtual-intro,
  .physical-product-hero,
  .physical-product-media-row,
  .physical-product-case-body,
  .digital-continuation-panel {
    grid-template-columns: 1fr;
  }

  .physical-virtual-intro {
    align-items: start;
  }

  .physical-virtual-intro h3 {
    max-width: none;
  }

  .physical-media-shell {
    aspect-ratio: 4 / 3;
  }

  .physical-gallery-item--range {
    min-height: 160px;
  }

  .physical-product-facts {
    grid-template-columns: 1fr;
  }

  .physical-product-board {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(160px, auto);
  }

  .physical-gallery-item--tall,
  .physical-gallery-item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .physical-product-board .physical-gallery-item--wide {
    grid-column: span 2;
  }

  .physical-gallery-item span {
    padding: 1.8rem 0.65rem 0.65rem;
    font-size: 0.72rem;
  }

  .physical-product-case > summary {
    align-items: flex-start;
  }

  .physical-lightbox {
    padding: 0.75rem;
  }

  .physical-lightbox-panel {
    max-height: calc(100vh - 1.5rem);
  }

  .virtual-system-links a {
    flex: 1 1 100%;
    text-align: center;
  }

  .card-footer .card-actions .btn {
    white-space: normal;
    line-height: 1.2;
  }

  #creative-ux-lab .grid {
    justify-content: stretch;
  }

  #creative-ux-lab .grid .card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .card--outer.terrain-hub-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.35rem;
  }

  .terrain-window-frame {
    min-height: 240px;
  }

  .terrain-hub-actions .btn-primary {
    flex: 1 1 100%;
  }

  .business-architect-intro {
    align-items: start;
    flex-direction: column;
  }

  .business-architect-lead-card {
    grid-column: auto;
  }
}

.card {
  background:
    linear-gradient(180deg, var(--card-inner-highlight), transparent 38%),
    var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--card-border);
  box-shadow:
    0 12px 30px var(--card-shadow),
    0 0 28px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 var(--card-inner-highlight);
  min-height: 220px;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out, background 0.16s ease-out;
}

.card--outer {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  transition: transform 920ms ease, box-shadow 920ms ease,
    border-color 920ms ease;
}

.card--outer .card-header {
  margin-bottom: 0;
}

.card--outer[data-href] {
  cursor: pointer;
}

.card--outer:hover {
  transform: scale(1.01);
  border-color: var(--sheet-border);
  box-shadow:
    0 22px 44px var(--sheet-shadow),
    0 0 36px var(--sheet-glow),
    inset 0 1px 0 var(--sheet-inner-highlight);
  z-index: 2;
}

body.light-mode .card--outer:hover {
  border-color: var(--sheet-border);
  box-shadow:
    0 22px 44px var(--sheet-shadow),
    0 0 32px var(--sheet-glow),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

.card-summary {
  margin: 0;
  opacity: 0.92;
  line-height: 1.45;
}

.role-anchor {
  display: inline;
  opacity: 0.9;
}

.practice-orientation {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg);
  max-width: 62ch;
}

.practice-explain {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}

.practice-explain + .practice-explain {
  margin-top: 0.6rem;
}

.system-practice-card {
  cursor: pointer;
  padding-bottom: clamp(4.4rem, 6vw, 5rem);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.system-practice-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.system-practice-card .card-actions,
.system-practice-card .nested-card,
.system-practice-card .micro-thought {
  position: relative;
  z-index: 3;
}

.system-practice-card .micro-thought {
  position: absolute;
  z-index: 4;
}

.system-practice-card .card-footer .card-actions {
  padding-right: 2.7rem;
}

.system-practice-card:hover,
.system-practice-card:focus-within {
  transform: translateY(-3px) scale(1.012);
  border-color: var(--sheet-border);
  box-shadow:
    0 24px 48px var(--sheet-shadow),
    0 0 34px var(--sheet-glow),
    inset 0 1px 0 var(--sheet-inner-highlight);
  filter: saturate(1.03);
}

.system-practice-card__link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 5px;
  box-shadow: 0 0 0 6px var(--focus-ring-shadow);
}

body.light-mode .system-practice-card:hover,
body.light-mode .system-practice-card:focus-within {
  border-color: var(--sheet-border);
  box-shadow:
    0 24px 46px var(--sheet-shadow),
    0 0 30px var(--sheet-glow),
    inset 0 1px 0 var(--sheet-inner-highlight);
}

@media (prefers-reduced-motion: reduce) {
  .system-practice-card,
  .system-practice-card:hover,
  .system-practice-card:focus-within {
    transform: none;
    transition:
      box-shadow 120ms ease,
      border-color 120ms ease,
      background 120ms ease;
  }
}

.service-links {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.85;
}

.service-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.05rem;
  transition: border-color 0.16s ease-out, color 0.16s ease-out;
}

.service-links a:hover {
  color: var(--fg);
  border-bottom-color: var(--sheet-border);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.card-actions .btn {
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.card-footer--compact {
  padding-top: 1.2rem;
}

body.light-mode .card-footer {
  border-top: 1px solid var(--card-border);
}

body.light-mode .service-links a {
  border-bottom-color: var(--card-border);
}

body.light-mode .service-links a:hover {
  border-bottom-color: var(--sheet-border);
}

.card-footer .card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

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

.card-footer .card-actions .btn {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid var(--card-border);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow:
    0 14px 28px var(--card-shadow),
    inset 0 1px 0 var(--card-inner-highlight),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: var(--sheet-blur);
  -webkit-backdrop-filter: var(--sheet-blur);
}

body.light-mode .card-footer .card-actions .btn {
  border-color: var(--card-border);
  background: linear-gradient(
    135deg,
    rgba(255, 250, 235, 0.46),
    rgba(255, 255, 255, 0.2)
  );
  box-shadow:
    0 10px 22px var(--card-shadow),
    inset 0 1px 0 var(--card-inner-highlight),
    inset 0 -10px 18px rgba(0, 0, 0, 0.04);
}

.card-footer .card-actions .btn:hover {
  transform: none;
  background: var(--sheet-surface-soft);
}

body.light-mode .card-footer .card-actions .btn:hover {
  background: var(--sheet-surface-soft);
}

.card-nested {
  display: grid;
  gap: 0.85rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.nested-card {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.018)
  );
  overflow: hidden;
  box-shadow:
    0 14px 28px var(--card-shadow),
    inset 0 1px 0 var(--card-inner-highlight),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: var(--sheet-blur);
  -webkit-backdrop-filter: var(--sheet-blur);
  transition: transform 0.16s ease-out, border-color 0.16s ease-out,
    background 0.16s ease-out;
}

.nested-card:hover {
  background: var(--sheet-surface-soft);
}

.nested-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nested-card > summary::-webkit-details-marker {
  display: none;
}

.plus {
  opacity: 0.8;
  transition: transform 160ms ease;
}

.nested-card[open] .plus {
  transform: rotate(45deg);
}

.nested-body {
  padding: 0.75rem 0.9rem 1rem;
  border-top: 1px solid var(--card-border);
  opacity: 0.95;
  font-size: 0.98em;
  line-height: 1.5;
}

.nested-body p,
.nested-body ul {
  margin: 0;
}

.nested-body ul {
  padding-left: 1.1rem;
}

.nested-card[open] {
  background: var(--sheet-surface-soft);
  border-color: var(--sheet-border);
}

body.light-mode .nested-card {
  background: linear-gradient(
    135deg,
    rgba(255, 250, 235, 0.46),
    rgba(255, 255, 255, 0.2)
  );
  border-color: var(--card-border);
  box-shadow:
    0 10px 22px var(--card-shadow),
    inset 0 1px 0 var(--card-inner-highlight),
    inset 0 -10px 18px rgba(0, 0, 0, 0.04);
}

body.light-mode .nested-card:hover {
  background: var(--sheet-surface-soft);
}

body.light-mode .nested-body {
  border-top: 1px solid var(--card-border);
}

body.light-mode .nested-card[open] {
  background: var(--sheet-surface-soft);
  border-color: var(--sheet-border);
}

@media (max-width: 860px) {
  .card-footer .card-actions {
    grid-template-columns: 1fr;
  }
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button.card-link {
  width: 100%;
  text-align: left;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.card:not(.card--outer):hover {
  border-color: var(--sheet-border);
  box-shadow: var(--shadow-soft);
}

body.light-mode .card:not(.card--outer):hover {
  border-color: var(--sheet-border);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card-header h3 {
  text-wrap: balance;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.pill {
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--muted);
  background: var(--sheet-surface-faint);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: center;
}

.pill-strong {
  border-color: var(--sheet-border);
  background: var(--sheet-surface-soft);
  font-weight: 700;
}

body.light-mode .pill {
  border-color: var(--card-border);
}

body.light-mode .pill-strong {
  border-color: var(--sheet-border);
  background: var(--sheet-surface-soft);
}

/* Prompt cards */

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.prompt-card {
  position: relative;
  padding-bottom: 3.4rem;
}

.prompt-card .btn.small {
  position: absolute;
  bottom: 1.2rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
  border: 1px solid var(--card-border);
  text-decoration: none;
  cursor: pointer;
  background: var(--sheet-surface-soft);
  color: inherit;
  transition: transform 0.16s ease-out, border-color 0.16s ease-out,
    background 0.16s ease-out;
}

body.light-mode .btn {
  border-color: var(--card-border);
  background: var(--sheet-surface-soft);
}

.btn.primary,
.btn.btn-primary {
  border-color: var(--sheet-border);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.085),
    rgba(255, 255, 255, 0.024)
  );
}

.btn.primary:hover,
.btn.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--sheet-surface);
}

body.light-mode .btn.primary,
body.light-mode .btn.btn-primary {
  border-color: var(--sheet-border);
  background: linear-gradient(
    135deg,
    rgba(255, 250, 235, 0.42),
    rgba(255, 255, 255, 0.24)
  );
}

body.light-mode .btn.primary:hover,
body.light-mode .btn.btn-primary:hover {
  background: var(--sheet-surface);
}

.btn.outline,
.btn.btn-outline {
  background: transparent;
  border-color: var(--sheet-border);
}

body.light-mode .btn.outline,
body.light-mode .btn.btn-outline {
  border-color: var(--sheet-border);
}

.btn.outline:hover,
.btn.btn-outline:hover {
  background: var(--sheet-surface-soft);
}

body.light-mode .btn.outline:hover,
body.light-mode .btn.btn-outline:hover {
  background: var(--sheet-surface-soft);
}

.btn.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.ux-world-open:focus,
.ux-world-open:focus-visible {
  outline: none;
  box-shadow: none;
}

.terrain-window-clone {
  position: fixed;
  margin: 0;
  z-index: 1800;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  will-change: transform, border-radius;
  transform: translateZ(0);
  transform-origin: top left;
  backface-visibility: hidden;
}

.terrain-window-clone .terrain-preview {
  transition: transform 360ms cubic-bezier(0.2, 0.78, 0.24, 1);
}

.terrain-origin-hidden {
  visibility: hidden !important;
}

/* Contact */

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 0.8rem;
  color: var(--muted);
}

.contact-list a {
  color: var(--fg);
  text-decoration: underline;
}

.contact-list li {
  margin-bottom: 0.8rem;
}

body.light-mode .contact-list a {
  color: var(--fg);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--sheet-border);
  padding: 1.6rem 0 2rem;
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 40%),
    rgba(7, 8, 12, 0.72);
  position: relative;
  z-index: 2;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.24) 0%,
    rgba(0, 0, 0, 0.11) 50%,
    transparent 100%
  );
}

/* UX world overlay */
.ux-world-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.58);
  backdrop-filter: var(--sheet-blur);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

body.light-mode .ux-world-overlay {
  background: rgba(245, 245, 247, 0.58);
}

.ux-world-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ux-world-frame {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.ux-world-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.ux-world-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0.25;
  transition: opacity 0.2s ease;
}

.ux-world-close:hover {
  opacity: 0.8;
}

body.light-mode .ux-world-close {
  background: var(--sheet-surface-soft);
  color: var(--fg);
  border-color: var(--card-border);
}

body.light-mode .site-footer {
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 40%),
    rgba(245, 245, 247, 0.72);
  border-top-color: var(--sheet-border);
}

body.light-mode .site-footer::before {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.11) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    transparent 100%
  );
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-note {
  max-width: 32rem;
}

/* Misc */

.prompt-source {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Side tabs (folder-style, mobile) */

.side-tabs {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 60vh;
  padding-block: 2vh;
  gap: 0.35rem;
}

.side-tabs button {
  border: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 0 999px 999px 0;
  background: var(--sheet-surface-soft);
  color: var(--fg);
  cursor: pointer;
  opacity: 0.6;
  transform: translateX(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

/* Right-handed: tabs on right */
html.right-handed .side-tabs,
body.right-handed .side-tabs {
  right: 0;
  left: auto;
}

html.right-handed .side-tabs button,
body.right-handed .side-tabs button {
  border-radius: 999px 0 0 999px;
  transform: translateX(6px);
}

/* Left-handed: tabs on left */
html.left-handed .side-tabs,
body.left-handed .side-tabs {
  left: 0;
  right: auto;
}

/* Active / hover */
.side-tabs button.active,
.side-tabs button:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
  transform: translateX(0);
}

/* Focus vignette */
.focus-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 800;
  opacity: 0;
  transition: opacity 0.25s ease;
  background:
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 45%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 40%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 40%);
}

body.focus-mode .focus-vignette {
  opacity: 1;
}

/* Idle focus overlay */
.idle-focus-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 790;
  opacity: 0;
  transition: opacity 5s ease;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0.3) 100%
    );
}

body.idle-focus .idle-focus-overlay {
  opacity: 1;
}

/* Weather ambience (subtle and peripheral) */
.weather-ambient-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 1.2s ease, background 1.2s ease;
  background:
    radial-gradient(
      circle at 50% 12%,
      hsla(var(--weather-hue), 45%, 74%, var(--weather-tint-alpha)) 0%,
      transparent 58%
    ),
    linear-gradient(
      to bottom,
      rgba(4, 8, 14, calc(var(--weather-overlay-alpha) * 0.82)),
      rgba(4, 8, 14, var(--weather-overlay-alpha))
    );
}

body.weather-enabled .weather-ambient-overlay {
  opacity: 1;
}

.weather-side {
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(44px, 6.5vw, 92px);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  overflow: hidden;
  transition: opacity 1.15s ease, filter 0.8s ease;
}

.weather-side-left {
  left: 0;
}

.weather-side-right {
  right: 0;
  transform: scaleX(-1);
}

body.weather-enabled .weather-side {
  opacity: var(--weather-side-opacity);
}

.weather-side::before,
.weather-side::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 16%,
    rgba(0, 0, 0, 0.8) 84%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 16%,
    rgba(0, 0, 0, 0.8) 84%,
    transparent 100%
  );
}

.weather-side::before {
  background:
    linear-gradient(
      to right,
      hsla(var(--weather-hue), 54%, 68%, calc(var(--weather-tint-alpha) + 0.03)) 0%,
      transparent 72%
    );
  filter: blur(0.25px);
}

body.weather-snow .weather-side::after {
  background-image:
    radial-gradient(circle, rgba(235, 246, 255, 0.72) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(214, 234, 255, 0.52) 0 0.9px, transparent 1.5px);
  background-size: 26px 34px, 18px 26px;
  background-position: 0 0, 10px -12px;
  opacity: 0.34;
  animation: weather-fall 34s linear infinite;
}

body.weather-rain .weather-side::after {
  background-image: repeating-linear-gradient(
    166deg,
    rgba(171, 208, 255, 0.42) 0 1px,
    transparent 1px 10px
  );
  background-size: 100% 42px;
  opacity: 0.31;
  animation: weather-rain 3.4s linear infinite;
}

body.weather-wind .weather-side::after {
  background-image: repeating-linear-gradient(
    12deg,
    rgba(194, 220, 255, 0.33) 0 2px,
    transparent 2px 14px
  );
  background-size: 100% 100%;
  opacity: 0.3;
  animation: weather-wind 11.5s ease-in-out infinite;
}

body.weather-autumn .weather-side::after {
  background-image:
    radial-gradient(ellipse at center, rgba(255, 171, 94, 0.5) 0 1.4px, transparent 2.5px),
    radial-gradient(ellipse at center, rgba(233, 126, 75, 0.45) 0 1.2px, transparent 2.3px);
  background-size: 30px 42px, 22px 30px;
  background-position: 0 -4px, 12px -15px;
  opacity: 0.32;
  animation: weather-fall 36s linear infinite;
}

body.weather-spring .weather-side::after {
  background-image:
    radial-gradient(circle, rgba(175, 246, 176, 0.45) 0 1.1px, transparent 2.2px),
    linear-gradient(178deg, rgba(138, 226, 146, 0.28) 0 35%, transparent 70%);
  background-size: 24px 34px, 100% 100%;
  background-position: 0 -10px, 0 0;
  opacity: 0.31;
  animation: weather-spring 18s ease-in-out infinite;
}

body.weather-cloudy .weather-side::after,
body.weather-clear .weather-side::after {
  background-image: linear-gradient(
    to right,
    rgba(207, 224, 255, 0.24),
    transparent 72%
  );
  opacity: 0.24;
  animation: weather-breathe 15s ease-in-out infinite;
}

@keyframes weather-fall {
  from {
    transform: translateY(-8%);
  }
  to {
    transform: translateY(18%);
  }
}

@keyframes weather-rain {
  from {
    transform: translateY(-9%);
  }
  to {
    transform: translateY(22%);
  }
}

@keyframes weather-wind {
  0%,
  100% {
    transform: translateX(-3%);
  }
  50% {
    transform: translateX(6%);
  }
}

@keyframes weather-spring {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-1.7%) scaleY(1.02);
  }
}

@keyframes weather-breathe {
  0%,
  100% {
    opacity: 0.24;
  }
  50% {
    opacity: 0.36;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weather-ambient-overlay,
  .weather-side {
    transition-duration: 0.2s;
  }

  .weather-side::after {
    animation: none !important;
  }
}

/* Focus-mode header hide only on MOBILE */
@media (max-width: 800px) {
  body.focus-mode .site-header {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.focus-mode.ui-visible .site-header {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Fullscreen hint */
.fullscreen-hint {
  position: fixed;
  top: 4.25rem;
  right: 1rem;
  background: rgba(5, 6, 10, 0.72);
  color: var(--fg);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1500;
}

body.show-f-hint .fullscreen-hint {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .fullscreen-hint {
    display: none;
  }
}

/* Site switcher */
.site-switcher {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--sheet-highlight), transparent 55%),
    rgba(5, 6, 10, 0.6);
  color: var(--fg);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 1200;
  backdrop-filter: var(--sheet-blur);
}

.site-switcher a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.site-switcher a:hover {
  opacity: 1;
}

/* Highlight current site */
body[data-site="benjamin"] .site-switcher a[data-site="benjamin"],
body[data-site="snoape"] .site-switcher a[data-site="snoape"],
body[data-site="jansberg"] .site-switcher a[data-site="jansberg"] {
  opacity: 1;
  font-weight: 600;
}

/* Touch trail */
.touch-trail-dot {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1100;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  opacity: 0.7;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.touch-trail-dot.fade {
  opacity: 0;
  transform: translate(-50%, -50%) scale(2);
}

/* Simple fade for site-switcher transitions */
body.page-fade-out {
  opacity: 0;
}

/* Responsive */

@media (max-width: 900px) {
  .site-header {
    height: 54px;
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 0.55rem;
    padding: 0 0.75rem;
  }

  .logo {
    min-width: 0;
  }

  .logo-text {
    max-width: 11.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-controls {
    display: none;
  }

  .hand-row {
    position: absolute;
    top: 50%;
    right: 3.35rem;
    bottom: auto;
    left: auto;
    display: flex;
    width: auto;
    max-width: none;
    height: auto;
    gap: 0.18rem;
    padding: 0;
    transform: translateY(-50%);
    z-index: 2;
  }

  .hand-switch {
    display: inline-grid;
    width: 1.72rem;
    height: 1.72rem;
    padding: 0;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    opacity: 0.42;
  }

  .hand-switch:hover,
  .hand-switch.active {
    transform: none;
  }

  .hand-switch.active {
    border-color: var(--sheet-border);
    background: var(--sheet-surface-soft);
    box-shadow: inset 0 1px 0 var(--sheet-inner-highlight);
    opacity: 1;
  }

  .hand-svg {
    width: 0.88rem;
    height: 0.88rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    right: 0.75rem;
    top: calc(100% + 0.45rem);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.6rem;
    min-width: min(15rem, calc(100vw - 1.5rem));
    background: #05060b;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
    display: none;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    width: 100%;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .hero--index .hero-card {
    order: 0;
  }

  .side-tabs {
    display: none;
  }

  .site-switcher {
    position: static;
    width: max-content;
    max-width: calc(100% - 2rem);
    margin: 1rem auto;
    justify-content: center;
    flex-wrap: wrap;
    z-index: auto;
  }
}

@media (min-width: 801px) {
  /* Hide side tabs on desktop */
  .side-tabs {
    display: none;
  }
}

/* ---------------------------------------------------------
   Case study layout (shared across case pages)
----------------------------------------------------------*/

.case-block {
  margin-bottom: 2.5rem;
  max-width: 75ch;
}

.case-block h3,
.case-block h4 {
  margin-top: 0;
  font-weight: 600;
}

.glow-title {
  animation: glow-pulse 7s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    text-shadow: var(--text-float-shadow);
  }
  50% {
    text-shadow: var(--text-float-shadow), 0 0 6px rgba(160, 200, 255, 0.13);
  }
}

body.light-mode .glow-title {
  animation: glow-pulse-light 7s ease-in-out infinite;
}

@keyframes glow-pulse-light {
  0%,
  100% {
    text-shadow: var(--text-float-shadow);
  }
  50% {
    text-shadow: var(--text-float-shadow), 0 0 5px rgba(255, 75, 75, 0.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-title {
    animation: none;
  }
}

.case-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 820px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Accordion cards used for pillars (ECR / others) */

.case-details {
  --case-details-pad-y: 1rem;
  --case-details-pad-x: 1.25rem;
  margin: 3rem 0;
  padding: var(--case-details-pad-y) var(--case-details-pad-x);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out, background 0.16s ease-out;
}

.case-details:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-soft);
}

body.light-mode .case-details:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

/* Summary layout: arrow inline, text stacked */
.case-details summary {
  display: flex;
  align-items: flex-start;  /* align text block with arrow */
  gap: 0.75rem;             /* space between arrow and text */
  width: 100%;
  cursor: pointer;
  margin: calc(-1 * var(--case-details-pad-y))
    calc(-1 * var(--case-details-pad-x)) 0;
  padding: var(--case-details-pad-y) var(--case-details-pad-x);
  list-style: none;
}

/* Hide default marker */
.case-details > summary::-webkit-details-marker {
  display: none;
}

/* Custom arrow */
.case-details > summary::before {
  content: "▸";
  margin-top: 0.2rem;
  margin-right: 0.35rem;
  font-size: 0.85rem;
  transition: transform 0.35s ease;
  opacity: 0.9;
}

.case-details[open] > summary::before {
  transform: rotate(90deg);
}

.case-details[open] > :not(summary) {
  animation: case-details-open 0.45s ease;
}

@keyframes case-details-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Title + eyebrow stacked with a bit of breathing room */
.summary-text {
  display: flex;
  flex-direction: column;
  gap: 10px; /* vertical gap between title and eyebrow */
}

.summary-title {
  font-weight: 600;
}

.summary-eyebrow {
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.case-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Nested accordions: keep lighter within sections */
.case-details .case-details {
  --case-details-pad-y: 0.85rem;
  --case-details-pad-x: 1rem;
  margin: 1.2rem 0;
  padding: var(--case-details-pad-y) var(--case-details-pad-x);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.02);
}

body.light-mode .case-details .case-details {
  background: rgba(0, 0, 0, 0.03);
}

.case-details .case-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

/* Body inside accordion */
.case-details .case-block {
  margin-top: 1.25rem;
}

.case-figure {
  margin: 1rem 0 2rem;
  text-align: center;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-wrapper th {
  font-weight: 600;
}

.table-wrapper tr:last-child td {
  border-bottom: none;
}

/* Force "row-block" sections to display as full-width rows */
.row-block {
  margin-top: 3.5rem;
}

.row-block .grid {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .row-block .grid {
    grid-template-columns: 1fr;
  }
}

/* Row layout */
.row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* Row 1: two horizontal cards */
.row:first-of-type .card {
  flex: 1;
}

/* Full-width rows */
.card.full {
  width: 100%;
}

@media (max-width: 600px) {
  .card {
    padding: 1.4rem 1.2rem;
    min-height: 0;
  }

  .physical-product-board {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .physical-product-board .physical-gallery-item,
  .physical-product-board .physical-gallery-item--wide,
  .physical-product-board .physical-gallery-item--tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .physical-product-case > summary > span:last-child {
    min-width: 3.7rem;
  }
}

/* Mobile fallback */
@media (max-width: 900px) {
  .row {
    flex-direction: column;
  }
}

@media (pointer: coarse) and (min-width: 801px) {
  .hand-row {
    display: flex;
  }
}
@media (min-width: 901px) {
  #selected-work .grid {
    position: relative;
    display: block;
    width: 100vw;
    max-width: none;
    height: clamp(520px, 60vw, 820px);
    overflow: hidden;
    isolation: isolate;
    padding: 0.35rem 0 0;
    margin-left: auto;
    margin-right: calc(50% - 50vw - 18vw);
  }

  #selected-work .grid .card {
    position: absolute;
    inset: 0 0 0 auto;
    width: 100%;
    height: 100%;
    margin: 0;
    transform-origin: right center;
    transition:
      transform 645ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 780ms ease,
      box-shadow 780ms ease,
      opacity 780ms ease;
  }

  #selected-work .grid .card[data-stack-index="0"] { z-index: 10; }
  #selected-work .grid .card[data-stack-index="1"] { z-index: 20; }
  #selected-work .grid .card[data-stack-index="2"] { z-index: 30; }
  #selected-work .grid .card[data-stack-index="3"] { z-index: 40; }
  #selected-work .grid .card[data-stack-index="4"] { z-index: 50; }
  #selected-work .grid .card[data-stack-index="5"] { z-index: 60; }

  #selected-work .grid .card[data-stack-index="0"] { transform: translateX(0%); }
  #selected-work .grid .card[data-stack-index="1"] { transform: translateX(-14%); }
  #selected-work .grid .card[data-stack-index="2"] { transform: translateX(-28%); }
  #selected-work .grid .card[data-stack-index="3"] { transform: translateX(-42%); }
  #selected-work .grid .card[data-stack-index="4"] { transform: translateX(-56%); }
  #selected-work .grid .card[data-stack-index="5"] { transform: translateX(-70%); }

  #selected-work .grid .card.is-open,
  #selected-work .grid .card:hover,
  #selected-work .grid .card:focus-within {
    filter: none;
    opacity: 1;
    box-shadow:
      0 24px 52px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 var(--sheet-inner-highlight);
  }

  #selected-work .grid .card.is-open {
    z-index: 120;
  }

  #selected-work .grid .card img {
    aspect-ratio: 16 / 9;
  }

  #selected-work .grid .card > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1rem, 1.35vw, 1.3rem);
  }

  #selected-work .grid .card h3 {
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  }
}

/* Final Selected Work deck override: must stay at the end of the file. */
@media (min-width: 901px) {
  #selected-work .grid {
    position: relative;
    display: block;
    width: 100vw;
    max-width: none;
    height: clamp(340px, 45vw, 535px);
    min-height: clamp(410px, 48vw, 610px);
    margin: clamp(2.2rem, 4.5vw, 4.1rem) calc(50% - 50vw) clamp(4.2rem, 7vw, 6.8rem) auto;
    padding: 0.6rem 0 0;
    overflow: hidden;
    isolation: isolate;
    perspective: none;
  }

  #selected-work .grid.selected-work-deck-ready {
    height: var(--selected-work-card-height);
    min-height: 0;
  }

  #selected-work .grid .card {
    position: absolute;
    inset: auto auto auto auto;
    left: 0;
    top: 0;
    right: auto;
    bottom: auto;
    box-sizing: border-box;
    width: var(--selected-work-card-width, clamp(220px, 31vw, 360px));
    height: var(--selected-work-card-height, clamp(311px, 43.8vw, 509px));
    max-width: none;
    max-height: none;
    margin: 0;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    transform-origin: left top;
    transition:
      transform var(--deck-motion-duration, 645ms) var(--deck-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
      filter 1080ms ease,
      box-shadow 1080ms ease,
      opacity 1080ms ease;
  }

  #selected-work .grid .selected-work-hero-card,
  #selected-work .grid .card:nth-child(n + 2):nth-child(-n + 3),
  #selected-work .grid .card:nth-child(n + 4) {
    flex: none;
    max-width: none;
    min-height: 0;
  }

  #selected-work .grid .card[data-stack-index] {
    transform: none;
  }

  #selected-work .grid .card:hover,
  #selected-work .grid .card:focus-within,
  #selected-work .grid .card.is-hovered,
  #selected-work .grid:has(.card:hover) .card:hover,
  #selected-work .grid:has(.card.is-hovered) .card.is-hovered {
    transform: none;
    filter: none;
    opacity: 1;
  }

  #selected-work .grid .card > div,
  #selected-work .grid .card-header,
  #selected-work .grid .card-footer {
    min-width: 0;
  }

  #selected-work .grid .card > div {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(0.92rem, 1.2vw, 1.15rem);
  }

  #selected-work .grid .card h3 {
    font-size: clamp(0.98rem, 1.15vw, 1.18rem);
    line-height: 1.12;
  }

  #selected-work .grid .card-summary {
    font-size: clamp(0.82rem, 0.92vw, 0.94rem);
    line-height: 1.42;
  }

  #selected-work .grid .card-actions {
    gap: 0.45rem;
  }

  #selected-work .grid .btn {
    padding: 0.5rem 0.68rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) {
  #selected-work .grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  #selected-work .grid .card {
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: start;
    transform: none;
  }
}

/* Keep stack-card hover stable: movement should read through geometry, not color shifts. */
@media (min-width: 901px) {
  #selected-work .grid.selected-work-deck-ready .deck-reader-card {
    background:
      linear-gradient(180deg, var(--card-inner-highlight), transparent 38%),
      var(--card-bg);
    transition:
      transform var(--deck-motion-duration, 645ms) var(--deck-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
      border-color 320ms ease,
      box-shadow 1080ms ease,
      opacity 1080ms ease,
      filter 1080ms ease;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card:hover,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card:focus-within,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-hovered,
  #selected-work .grid.selected-work-deck-ready:has(.deck-reader-card:hover) .deck-reader-card:hover,
  #selected-work .grid.selected-work-deck-ready:has(.deck-reader-card.is-hovered) .deck-reader-card.is-hovered {
    background:
      linear-gradient(180deg, var(--card-inner-highlight), transparent 38%),
      var(--card-bg);
    border-color: var(--card-border);
    box-shadow:
      0 15px 34px color-mix(in srgb, var(--card-shadow) 90%, transparent),
      0 0 22px color-mix(in srgb, var(--sheet-glow) 55%, transparent),
      inset 0 1px 0 var(--card-inner-highlight);
    filter: none;
    opacity: 1;
  }

  #selected-work .grid.selected-work-deck-ready:has(.deck-reader-card:hover) .deck-reader-card.is-deck-active,
  #selected-work .grid.selected-work-deck-ready:has(.deck-reader-card.is-hovered) .deck-reader-card.is-deck-active {
    filter: none;
    opacity: 1;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .card-header,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab:hover .card-header,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab:focus-within .card-header {
    background:
      linear-gradient(180deg, var(--sheet-inner-highlight), transparent 42%),
      rgba(255, 255, 255, 0.035);
  }
}

/* Case-study stack reader mode. */
#selected-work .grid .deck-card-kicker {
  display: none;
}

#selected-work .grid .deck-side-title {
  display: none;
}

@media (min-width: 901px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card {
    --deck-tab-width: clamp(3.35rem, calc(var(--selected-work-card-width, 32rem) * 0.14), 5.45rem);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    overflow-anchor: none;
    scrollbar-width: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: var(--deck-tab-width);
    border-right: 1px solid color-mix(in srgb, rgba(255, 255, 255, 0.62) 62%, var(--sheet-border));
    background:
      linear-gradient(90deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.13) 48%,
        rgba(255, 255, 255, 0.025) 100%),
      linear-gradient(180deg, color-mix(in srgb, var(--sheet-inner-highlight) 78%, rgba(255, 255, 255, 0.18)), transparent 46%),
      rgba(255, 255, 255, 0.085);
    box-shadow:
      inset -1px 0 0 rgba(255, 255, 255, 0.38),
      inset 0 0 30px rgba(255, 255, 255, 0.18),
      0 0 34px rgba(255, 255, 255, 0.14);
    opacity: var(--deck-tab-title-opacity, 1);
    pointer-events: none;
    will-change: opacity;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card .card-header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: start;
    opacity: 1;
    visibility: visible;
    transition:
      opacity 1080ms ease,
      visibility 0s linear 0s;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-fading-to-tab .card-header,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-fading-to-tab .deck-open-button,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-fading-to-tab .deck-reader {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-fading-to-tab .deck-open-button {
    transition:
      opacity 1080ms ease,
      color 220ms ease,
      transform 220ms ease;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card .card-header h3 {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(1.65rem, 2.25vw, 2.65rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
    opacity: 1;
    transition: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card:not(.is-deck-tab) .card-header {
    padding-left: calc(var(--deck-tab-width) + clamp(0.72rem, 1.1vw, 1rem));
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card .deck-card-kicker {
    display: block;
    grid-column: 1;
    max-width: 24ch;
    margin: 0.55rem 0 0;
    color: color-mix(in srgb, var(--fg) 58%, var(--muted));
    font-size: clamp(0.92rem, 1vw, 1.05rem);
    line-height: 1.35;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card .pill,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card .pill-group,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card .card-summary,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card .card-footer {
    display: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-open-button {
    position: absolute;
    left: 50%;
    bottom: clamp(1.05rem, 1.8vw, 1.7rem);
    z-index: 5;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.26rem;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: color-mix(in srgb, var(--fg) 72%, var(--muted));
    font: inherit;
    cursor: pointer;
    font-size: 0.74rem;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
    box-shadow: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
    transition: opacity 220ms ease, color 220ms ease, transform 220ms ease;
  }

  #selected-work .grid.selected-work-deck-ready .deck-open-button:hover,
  #selected-work .grid.selected-work-deck-ready .deck-open-button:focus-visible {
    background: transparent;
    box-shadow: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-open-button span:not([aria-hidden="true"]) {
    opacity: 0.42;
  }

  #selected-work .grid.selected-work-deck-ready .deck-open-button:hover span:not([aria-hidden="true"]),
  #selected-work .grid.selected-work-deck-ready .deck-open-button:focus-visible span:not([aria-hidden="true"]) {
    opacity: 0.56;
  }

  #selected-work .grid.selected-work-deck-ready .deck-open-button span[aria-hidden="true"] {
    display: block;
    font-size: 3rem;
    line-height: 0.42;
    filter: drop-shadow(0 0.62rem 0.58rem rgba(0, 0, 0, 0.28));
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform, opacity;
    animation: deckChevronPulse 5.2s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  }

  @keyframes deckChevronPulse {
    0%,
    100% {
      opacity: 0.22;
      transform: scaleX(1.4);
    }

    50% {
      opacity: 0.42;
      transform: scaleX(1.62);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #selected-work .grid.selected-work-deck-ready .deck-open-button span[aria-hidden="true"] {
      animation: none;
    }
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab {
    padding: 0;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .card-header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: start;
    width: auto;
    padding: 0 0 0 calc(var(--deck-tab-width) + clamp(0.72rem, 1.1vw, 1rem));
    border-right: 0;
    background: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 1080ms ease,
      visibility 0s linear 1080ms;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card .deck-side-title {
    position: absolute;
    left: calc(var(--deck-tab-width) / 2);
    bottom: clamp(4.25rem, 5.4vw, 5.75rem);
    z-index: 4;
    width: max-content;
    max-width: calc(var(--selected-work-card-height, 32rem) - 7.25rem);
    margin: 0;
    color: var(--fg);
    font-size: clamp(0.86rem, 1vw, 1rem);
    line-height: 1;
    white-space: nowrap;
    display: block;
    opacity: var(--deck-tab-title-opacity, 1);
    pointer-events: none;
    filter: none;
    transform: rotate(-90deg);
    transform-origin: left center;
    will-change: opacity;
    transition: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .deck-side-title {
    display: block;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .card-header h3 {
    opacity: 1;
    pointer-events: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .deck-open-button,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .pill,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .pill-group,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .card-summary,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .card-footer,
  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .deck-reader {
    display: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-tab .deck-card-kicker {
    display: block;
    visibility: visible;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-reader-open .deck-open-button {
    opacity: 0;
    pointer-events: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader {
    display: none;
    opacity: 1;
    overflow-anchor: none;
    transition: opacity 1080ms ease;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-active .deck-reader {
    display: block;
    visibility: visible;
    pointer-events: auto;
    padding: 0 clamp(0.75rem, 1.4vw, 1.15rem) 2.4rem;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-deck-pending-tab .deck-reader {
    display: block;
    visibility: visible;
    pointer-events: none;
    padding: 0 clamp(0.75rem, 1.4vw, 1.15rem) 2.4rem;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-reader-open {
    overscroll-behavior: contain;
    scroll-behavior: smooth;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-reader-open .deck-reader {
    display: block;
    visibility: visible;
    pointer-events: auto;
    padding: 0 clamp(0.75rem, 1.4vw, 1.15rem) 2.4rem;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card.is-reader-resetting .deck-reader {
    display: block;
    visibility: visible;
    pointer-events: none;
    padding: 0 clamp(0.75rem, 1.4vw, 1.15rem) 2.4rem;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-content {
    display: grid;
    gap: 1.55rem;
    max-width: min(100%, 34rem);
    margin: 0 auto;
    color: var(--muted);
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-hero,
  #selected-work .grid.selected-work-deck-ready .deck-reader-section,
  #selected-work .grid.selected-work-deck-ready .deck-reader-mini-card {
    display: grid;
    gap: 0.62rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-hero {
    padding-bottom: 1.28rem;
    border-bottom: 1px solid color-mix(in srgb, var(--sheet-border) 70%, transparent);
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-section {
    padding-top: 0.2rem;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-section + .deck-reader-section {
    padding-top: 1.35rem;
    border-top: 1px solid color-mix(in srgb, var(--sheet-border) 58%, transparent);
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-card-grid {
    display: grid;
    gap: 1.05rem;
    margin-top: 0.48rem;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-mini-card {
    padding-left: 0.9rem;
    border-left: 1px solid color-mix(in srgb, var(--sheet-border) 64%, transparent);
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-tags span {
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-tags span:not(:last-child)::after {
    content: "/";
    margin-left: 0.4rem;
    opacity: 0.45;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-placeholder {
    display: grid;
    min-height: 0;
    align-content: start;
    gap: 0.24rem;
    padding: 0.42rem 0 0.42rem 0.9rem;
    border: 0;
    border-left: 1px solid color-mix(in srgb, var(--sheet-border) 64%, transparent);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-placeholder span {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-placeholder strong {
    color: var(--fg);
    font-size: 0.78rem;
    line-height: 1.22;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-eyebrow {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-lede {
    color: var(--fg);
    font-size: 0.94rem;
    line-height: 1.5;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-content h4,
  #selected-work .grid.selected-work-deck-ready .deck-reader-content h2,
  #selected-work .grid.selected-work-deck-ready .deck-reader-content h3,
  #selected-work .grid.selected-work-deck-ready .deck-reader-content p {
    margin: 0;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-content h4 {
    color: var(--fg);
    font-size: clamp(1.02rem, 1.22vw, 1.22rem);
    line-height: 1.1;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-content h2 {
    margin-top: 0.55rem;
    color: var(--fg);
    font-size: clamp(0.96rem, 1.08vw, 1.1rem);
    line-height: 1.16;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-content h3 {
    margin-top: 0.25rem;
    color: var(--fg);
    font-size: 0.92rem;
    line-height: 1.18;
  }

  #selected-work .grid.selected-work-deck-ready .deck-reader-content p {
    font-size: 0.84rem;
    line-height: 1.55;
  }
}

@media (max-width: 900px) {
  #selected-work .grid .deck-open-button,
  #selected-work .grid .deck-reader {
    display: none;
  }
}

/* Selected Work final deck guard.
   The homepage deck is controlled by deck-final.js on desktop; these rules
   neutralize older grid/hover stack experiments that remain earlier in this
   stylesheet and keep mobile as a horizontal card rail. */
@media (min-width: 901px) {
  #selected-work .grid {
    position: relative;
    display: block;
    width: 100vw;
    max-width: none;
    min-height: clamp(410px, 48vw, 610px);
    margin: clamp(2.2rem, 4.5vw, 4.1rem) calc(50% - 50vw) clamp(2.6rem, 5vw, 4.8rem) auto;
    padding: 0.6rem 0 0;
    overflow: hidden;
    isolation: isolate;
    perspective: none;
  }

  #selected-work .grid.selected-work-deck-ready {
    min-height: 0;
  }

  #selected-work .grid .card {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    transform-origin: left top;
    transition:
      transform 645ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 780ms ease,
      box-shadow 780ms ease,
      opacity 780ms ease;
  }

  #selected-work .grid .selected-work-hero-card,
  #selected-work .grid .card:nth-child(n + 2):nth-child(-n + 3),
  #selected-work .grid .card:nth-child(n + 4) {
    flex: none;
    max-width: none;
    min-height: 0;
  }

  #selected-work .grid .card:hover,
  #selected-work .grid .card:focus-within,
  #selected-work .grid .card.is-hovered,
  #selected-work .grid:has(.card:hover) .card:hover,
  #selected-work .grid:has(.card.is-hovered) .card.is-hovered {
    transform: none;
    filter: none;
    opacity: 1;
  }

  #selected-work .grid .card > div,
  #selected-work .grid .card-header,
  #selected-work .grid .card-footer {
    min-width: 0;
  }

  #selected-work .grid .card > div {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(0.92rem, 1.2vw, 1.15rem);
  }

  #selected-work .grid .card h3 {
    font-size: clamp(0.98rem, 1.15vw, 1.18rem);
    line-height: 1.12;
  }

  #selected-work .grid .card-summary {
    font-size: clamp(0.82rem, 0.92vw, 0.94rem);
    line-height: 1.42;
  }

  #selected-work .grid .card-actions {
    gap: 0.45rem;
  }

  #selected-work .grid .btn {
    padding: 0.5rem 0.68rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) {
  #selected-work .grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  #selected-work .grid .card {
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: start;
    transform: none;
  }
}

#selected-work .grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.55rem, 0.9vw, 0.85rem);
  align-items: stretch;
}

#selected-work .grid .card {
  min-width: 0;
  overflow: hidden;
}

#selected-work .grid .selected-work-hero-card {
  grid-column: auto;
  grid-template-columns: 1fr;
}

#selected-work .grid .card img {
  min-height: 0;
  aspect-ratio: 4 / 3;
  height: auto;
}

#selected-work .grid .card > div {
  padding: clamp(0.72rem, 1vw, 0.98rem);
}

#selected-work .grid .card h3 {
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.12;
}

#selected-work .grid .card p:not(.panel-label) {
  margin-top: 0.55rem;
  font-size: 0.83rem;
  line-height: 1.42;
}

@media (max-width: 900px) {
  #selected-work .grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  #selected-work .grid .card {
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: start;
  }

  #selected-work .grid .card img {
    aspect-ratio: 16 / 10;
  }

  #selected-work .grid .card > div {
    padding: 0.85rem;
  }

  #selected-work .grid .card h3 {
    font-size: 1rem;
  }
}

@media (min-width: 901px) {
  #selected-work .grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
    overflow: visible;
    padding: 0.45rem 0 1rem;
    perspective: 1200px;
    isolation: isolate;
  }

  #selected-work .grid .card {
    position: relative;
    grid-column: 1 / -1;
    width: auto;
    transform-origin: center center;
    transition:
      transform 260ms ease,
      filter 780ms ease,
      box-shadow 780ms ease,
      opacity 780ms ease;
  }

  #selected-work .grid .card:nth-child(1) {
    grid-column: 1 / -1;
    margin-left: 0;
    z-index: 1;
  }

  #selected-work .grid .card:nth-child(2) {
    grid-column: 2 / -1;
    z-index: 2;
  }

  #selected-work .grid .card:nth-child(3) {
    grid-column: 3 / -1;
    z-index: 3;
  }

  #selected-work .grid .card:nth-child(4) {
    grid-column: 4 / -1;
    z-index: 4;
  }

  #selected-work .grid .card:nth-child(5) {
    grid-column: 5 / -1;
    z-index: 5;
  }

  #selected-work .grid .card:nth-child(6) {
    grid-column: 6 / -1;
    z-index: 6;
  }

  #selected-work .grid .card:nth-child(7) {
    grid-column: 7 / -1;
    z-index: 7;
  }

  #selected-work .grid .card:nth-child(8) {
    grid-column: 8 / -1;
    z-index: 8;
  }

  #selected-work .grid .card:nth-child(9) {
    grid-column: 9 / -1;
    z-index: 9;
  }

  #selected-work .grid .card:nth-child(10) {
    grid-column: 10 / -1;
    z-index: 10;
  }

  #selected-work .grid .card:hover,
  #selected-work .grid .card:focus-within,
  #selected-work .grid .card.is-hovered {
    transform: translateY(-0.65rem) scale(1.045);
    z-index: 40;
    box-shadow:
      0 24px 52px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 var(--sheet-inner-highlight);
  }

  #selected-work .grid:has(.card:hover) .card,
  #selected-work .grid:has(.card.is-hovered) .card {
    filter: saturate(0.88) brightness(0.96);
  }

  #selected-work .grid:has(.card:hover) .card:hover,
  #selected-work .grid:has(.card.is-hovered) .card.is-hovered {
    filter: none;
    opacity: 1;
  }

  #selected-work .grid:has(.card:hover) .card:not(:hover) {
    opacity: 0.98;
  }

  #selected-work .grid:has(.card:hover) .card:hover,
  #selected-work .grid:has(.card.is-hovered) .card.is-hovered {
    transform: translateY(-0.85rem) scale(1.06);
  }
}

@media (min-width: 901px) {
  #selected-work .grid {
    position: relative;
    display: block;
    width: 100vw;
    max-width: none;
    height: clamp(520px, 60vw, 820px);
    overflow: hidden;
    isolation: isolate;
    padding: 0.35rem 0 0;
    margin-left: calc(50% - 50vw);
  }

  #selected-work .grid {
    margin-left: auto;
    margin-right: calc(50% - 50vw);
  }

  #selected-work .grid .card {
    position: absolute;
    inset: 0 auto 0 0;
    width: 100%;
    height: 100%;
    margin: 0;
    transform: translateX(0);
    transform-origin: left center;
    transition:
      transform 645ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 780ms ease,
      box-shadow 780ms ease,
      opacity 780ms ease;
  }

  #selected-work .grid .card[data-stack-index="0"] { z-index: 10; }
  #selected-work .grid .card[data-stack-index="1"] { z-index: 20; }
  #selected-work .grid .card[data-stack-index="2"] { z-index: 30; }
  #selected-work .grid .card[data-stack-index="3"] { z-index: 40; }
  #selected-work .grid .card[data-stack-index="4"] { z-index: 50; }
  #selected-work .grid .card[data-stack-index="5"] { z-index: 60; }
  #selected-work .grid .card[data-stack-index="6"] { z-index: 70; }
  #selected-work .grid .card[data-stack-index="7"] { z-index: 80; }
  #selected-work .grid .card[data-stack-index="8"] { z-index: 90; }
  #selected-work .grid .card[data-stack-index="9"] { z-index: 100; }

  #selected-work .grid .card.is-open,
  #selected-work .grid .card:hover,
  #selected-work .grid .card:focus-within {
    filter: none;
    opacity: 1;
    box-shadow:
      0 24px 52px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 var(--sheet-inner-highlight);
  }

  #selected-work .grid .card.is-open {
    z-index: 120;
  }

  #selected-work .grid .card[data-stack-index="0"] { transform: translateX(-6%); }
  #selected-work .grid .card[data-stack-index="1"] { transform: translateX(8%); }
  #selected-work .grid .card[data-stack-index="2"] { transform: translateX(22%); }
  #selected-work .grid .card[data-stack-index="3"] { transform: translateX(36%); }
  #selected-work .grid .card[data-stack-index="4"] { transform: translateX(50%); }
  #selected-work .grid .card[data-stack-index="5"] { transform: translateX(64%); }

  #selected-work .grid .card img {
    aspect-ratio: 16 / 9;
  }

  #selected-work .grid .card > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1rem, 1.35vw, 1.3rem);
  }

  #selected-work .grid .card h3 {
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  }
}

/* Final Selected Work deck override: keep this as the last cascade layer. */
@media (min-width: 901px) {
  #selected-work .grid {
    position: relative;
    display: block;
    width: 100vw;
    max-width: none;
    min-height: clamp(410px, 48vw, 610px);
    margin: clamp(2.2rem, 4.5vw, 4.1rem) calc(50% - 50vw) clamp(2.6rem, 5vw, 4.8rem) auto;
    padding: 0.6rem 0 0;
    overflow: hidden;
    isolation: isolate;
    perspective: none;
  }

  #selected-work .grid.selected-work-deck-ready {
    min-height: 0;
  }

  #selected-work .grid .card {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    transform-origin: left top;
    transition:
      transform 645ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 780ms ease,
      box-shadow 780ms ease,
      opacity 780ms ease;
  }

  #selected-work .grid .selected-work-hero-card,
  #selected-work .grid .card:nth-child(n + 2):nth-child(-n + 3),
  #selected-work .grid .card:nth-child(n + 4) {
    flex: none;
    max-width: none;
    min-height: 0;
  }

  #selected-work .grid .card[data-stack-index] {
    transform: none;
  }

  #selected-work .grid .card:hover,
  #selected-work .grid .card:focus-within,
  #selected-work .grid .card.is-hovered,
  #selected-work .grid:has(.card:hover) .card:hover,
  #selected-work .grid:has(.card.is-hovered) .card.is-hovered {
    transform: none;
    filter: none;
    opacity: 1;
  }

  #selected-work .grid .card > div,
  #selected-work .grid .card-header,
  #selected-work .grid .card-footer {
    min-width: 0;
  }

  #selected-work .grid .card > div {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(0.92rem, 1.2vw, 1.15rem);
  }

  #selected-work .grid .card h3 {
    font-size: clamp(0.98rem, 1.15vw, 1.18rem);
    line-height: 1.12;
  }

  #selected-work .grid .card-summary {
    font-size: clamp(0.82rem, 0.92vw, 0.94rem);
    line-height: 1.42;
  }

  #selected-work .grid .card-actions {
    gap: 0.45rem;
  }

  #selected-work .grid .btn {
    padding: 0.5rem 0.68rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) {
  #selected-work .grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  #selected-work .grid .card {
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: start;
    transform: none;
  }
}
/* EOF Selected Work deck lock. This must remain after all older stack CSS. */
@media (min-width: 901px) {
  #selected-work .grid {
    position: relative;
    display: block;
    width: 100vw;
    max-width: none;
    height: clamp(340px, 45vw, 535px);
    min-height: clamp(410px, 48vw, 610px);
    margin: clamp(2.2rem, 4.5vw, 4.1rem) calc(50% - 50vw) clamp(2.6rem, 5vw, 4.8rem) auto;
    padding: 0.6rem 0 0;
    overflow: hidden;
    isolation: isolate;
    perspective: none;
  }

  #selected-work .grid.selected-work-deck-ready {
    height: var(--selected-work-card-height);
    min-height: 0;
  }

  #selected-work .grid .card {
    position: absolute;
    inset: auto auto auto auto;
    left: 0;
    top: 0;
    right: auto;
    bottom: auto;
    box-sizing: border-box;
    width: var(--selected-work-card-width, clamp(220px, 31vw, 360px));
    height: var(--selected-work-card-height, clamp(311px, 43.8vw, 509px));
    max-width: none;
    max-height: none;
    margin: 0;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    transform-origin: left top;
    transition:
      transform var(--deck-motion-duration, 645ms) var(--deck-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
      filter 1080ms ease,
      box-shadow 1080ms ease,
      opacity 1080ms ease;
  }

  #selected-work .grid .selected-work-hero-card,
  #selected-work .grid .card:nth-child(n + 2):nth-child(-n + 3),
  #selected-work .grid .card:nth-child(n + 4) {
    flex: none;
    max-width: none;
    min-height: 0;
  }

  #selected-work .grid .card[data-stack-index] {
    transform: none;
  }

  #selected-work .grid .card:hover,
  #selected-work .grid .card:focus-within,
  #selected-work .grid .card.is-hovered,
  #selected-work .grid:has(.card:hover) .card:hover,
  #selected-work .grid:has(.card.is-hovered) .card.is-hovered {
    transform: none;
    filter: none;
    opacity: 1;
  }

  #selected-work .grid .card > div,
  #selected-work .grid .card-header,
  #selected-work .grid .card-footer {
    min-width: 0;
  }

  #selected-work .grid .card > div {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(0.92rem, 1.2vw, 1.15rem);
  }

  #selected-work .grid .card h3 {
    font-size: clamp(0.98rem, 1.15vw, 1.18rem);
    line-height: 1.12;
  }

  #selected-work .grid .card-summary {
    font-size: clamp(0.82rem, 0.92vw, 0.94rem);
    line-height: 1.42;
  }

  #selected-work .grid .card-actions {
    gap: 0.45rem;
  }

  #selected-work .grid .btn {
    padding: 0.5rem 0.68rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) {
  #selected-work .grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  #selected-work .grid .card {
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: start;
    transform: none;
  }
}

.selected-work-rail-guide {
  display: none;
}

/* Mobile selected-work focus rail: keep after the final deck lock. */
@media (max-width: 900px) {
  .selected-work-intro {
    flex-direction: column;
    align-items: stretch;
  }

  .selected-work-intro .virtual-system-links {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .selected-work-intro .virtual-system-links a {
    max-width: 100%;
    white-space: normal;
  }

  :is(
    .hero-actions,
    .card-actions,
    .contact-actions,
    .business-architect-intro__actions,
    .terrain-hub-actions
  ) {
    width: 100%;
  }

  html.right-handed :is(
    .hero-actions,
    .card-actions,
    .contact-actions,
    .business-architect-intro__actions,
    .terrain-hub-actions
  ) {
    justify-content: flex-end;
  }

  html.left-handed :is(
    .hero-actions,
    .card-actions,
    .contact-actions,
    .business-architect-intro__actions,
    .terrain-hub-actions
  ) {
    justify-content: flex-start;
  }

  :is(
    .hero-actions,
    .contact-actions,
    .business-architect-intro__actions,
    .terrain-hub-actions
  ) .btn {
    min-height: 3rem;
  }

  .card-footer .card-actions {
    grid-template-columns: minmax(0, min(86%, 19rem));
  }

  html.right-handed .card-footer .card-actions {
    justify-content: end;
  }

  html.left-handed .card-footer .card-actions {
    justify-content: start;
  }

  html.right-handed .case-study-home-header > .btn {
    justify-self: end;
  }

  html.left-handed .case-study-home-header > .btn {
    justify-self: start;
  }

  .selected-work-rail-guide {
    display: grid;
    grid-template-columns: auto minmax(4.5rem, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    margin: clamp(1.4rem, 6vw, 2rem) 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
  }

  .selected-work-rail-guide__label {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    white-space: nowrap;
  }

  .selected-work-rail-guide__label > span {
    color: var(--fg);
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.62;
  }

  .selected-work-rail-guide__progress {
    position: relative;
    display: block;
    height: 1px;
    overflow: hidden;
    background: color-mix(in srgb, var(--muted) 24%, transparent);
  }

  .selected-work-rail-guide__progress > span {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--fg) 68%, transparent);
    transform: scaleX(var(--mobile-rail-progress, 0.1667));
    transform-origin: left center;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .selected-work-rail-guide__count {
    display: inline-flex;
    gap: 0.24rem;
    min-width: 2.7rem;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
  }

  #selected-work .grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100vw;
    max-width: none;
    margin: clamp(1.65rem, 7vw, 2.4rem) calc(50% - 50vw) clamp(2.4rem, 9vw, 3.6rem);
    padding: 0 calc((100vw - min(78vw, 22.5rem)) / 2) 0.9rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-padding-inline: calc((100vw - min(78vw, 22.5rem)) / 2);
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  #selected-work .grid::-webkit-scrollbar {
    display: none;
  }

  #selected-work .grid .card {
    flex: 0 0 min(78vw, 22.5rem);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: clamp(24rem, 116vw, 34rem);
    margin: 0 -0.62rem;
    opacity: 0.58;
    transform:
      translateX(calc(var(--mobile-card-offset, 0) * -0.38rem))
      scale(0.92);
    transform-origin: center bottom;
    transition:
      transform 540ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 540ms ease,
      filter 540ms ease,
      box-shadow 540ms ease;
    touch-action: pan-x pan-y;
  }

  #selected-work .grid .card[data-mobile-offset="-2"],
  #selected-work .grid .card[data-mobile-offset="2"] {
    opacity: 0.28;
    filter: saturate(0.84) brightness(0.97);
    transform: translateX(0) scale(0.86);
  }

  #selected-work .grid .card[data-mobile-offset="-1"] {
    --mobile-card-offset: -1;
    opacity: 0.64;
  }

  #selected-work .grid .card[data-mobile-offset="1"] {
    --mobile-card-offset: 1;
    opacity: 0.64;
  }

  #selected-work .grid .card.is-mobile-active {
    position: relative;
    z-index: 4;
    opacity: 1;
    filter: none;
    transform: translateX(0) scale(1);
    box-shadow:
      0 1.45rem 3rem rgba(0, 0, 0, 0.18),
      0 0 2rem color-mix(in srgb, var(--sheet-glow) 38%, transparent),
      inset 0 1px 0 var(--card-inner-highlight);
  }

  #selected-work .grid .card > div {
    min-height: 0;
    padding: 0;
  }

  #selected-work .grid .card .card-header {
    display: block;
  }

  #selected-work .grid .card .deck-card-kicker {
    display: -webkit-box;
    margin-top: 0.78rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #selected-work .grid .card .pill-group,
  #selected-work .grid .card .card-header > .pill {
    justify-content: flex-start;
    margin-top: 0.85rem;
  }

  #selected-work .grid .card .pill-group .pill:not(.pill-strong) {
    display: none;
  }

  #selected-work .grid .card-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  #selected-work .grid .card-footer {
    margin-top: auto;
    padding-top: 1rem;
  }

  #selected-work .grid .card-footer .card-actions {
    display: flex;
    margin: 0;
  }

  #selected-work .grid .card-footer .card-actions .btn:not(.btn-primary),
  #selected-work .grid .card-nested {
    display: none;
  }

  #selected-work .grid .card-footer .card-actions .btn-primary {
    width: min(86%, 18rem);
    min-height: 3rem;
    justify-content: space-between;
    padding-inline: 1rem;
    margin-inline: 0;
    touch-action: pan-x pan-y;
  }

  #selected-work .grid .card h3 {
    font-size: clamp(1.16rem, 6.3vw, 2.05rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
  }

  #selected-work .grid .card-summary,
  #selected-work .grid .deck-card-kicker {
    font-size: 0.94rem;
    line-height: 1.48;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .selected-work-rail-guide__progress > span,
  #selected-work .grid .card,
  #selected-work .grid .card.is-mobile-active,
  #selected-work .grid .card[data-mobile-offset] {
    transition: none;
  }

  #selected-work .grid .card,
  #selected-work .grid .card.is-mobile-active,
  #selected-work .grid .card[data-mobile-offset] {
    transform: none;
  }

  #selected-work .grid .card {
    opacity: 0.72;
    filter: none;
  }

  #selected-work .grid .card.is-mobile-active {
    opacity: 1;
  }
}

/* Physical Products: one-product-per-card portfolio deck. */
.physical-product-deck {
  min-height: 100vh;
  padding-top: clamp(6.8rem, 10vw, 9rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.physical-product-deck-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.64fr);
  gap: clamp(1.4rem, 4vw, 3.6rem);
  align-items: end;
}

.physical-product-deck-intro > * {
  min-width: 0;
}

.physical-product-deck-intro h1,
.physical-product-deck-intro p {
  margin: 0;
}

.physical-product-deck-intro h1 {
  max-width: 10ch;
  color: var(--fg);
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.physical-product-deck-intro .section-lede {
  max-width: 62ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.58;
}

.physical-product-deck-index {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--sheet-border);
}

.physical-product-deck-index span {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.035em;
}

.physical-product-deck-card .card-header > .pill {
  width: max-content;
}

.product-deck-card-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
  min-width: 0;
  overflow: visible;
}

.product-deck-card-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: #11131a;
  box-shadow: inset 0 1px 0 var(--card-inner-highlight);
}

.product-deck-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

body.physical-products-page #selected-work .grid .product-deck-card-gallery .product-deck-card-media img {
  height: 100%;
  aspect-ratio: auto;
}

.product-deck-card-media--range img {
  object-position: center center;
}

.product-deck-card-media--campaign-left img {
  object-position: 12% center;
}

.product-deck-card-media--campaign-dog img {
  object-position: 76% center;
}

.product-deck-card-media--contain img {
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.09), transparent 40%),
    #0a0b0e;
}

.product-deck-card-media figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.65rem;
  left: 0.7rem;
  padding: 0.5rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(5, 6, 8, 0.66);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  line-height: 1.32;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-deck-card-media--support figcaption {
  right: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  padding: 0.32rem 0.38rem;
  font-size: 0.61rem;
}

.product-deck-image-note {
  position: relative;
  margin: 0.15rem clamp(0.15rem, 0.8vw, 0.5rem);
  padding: 0.15rem 0.25rem 0.2rem clamp(0.9rem, 1.4vw, 1.2rem);
  border-left: 1px solid var(--sheet-border);
}

.product-deck-image-note::before {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 62%, transparent);
}

.product-deck-image-note .panel-label,
.product-deck-image-note h4,
.product-deck-image-note p {
  margin: 0;
}

.product-deck-image-note .panel-label {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-deck-image-note h4 {
  margin-top: 0.38rem;
  color: var(--fg);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.16;
  text-wrap: balance;
}

.product-deck-image-note p:not(.panel-label) {
  margin-top: 0.48rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.52;
}

.product-deck-mobile-proof strong {
  display: block;
  margin-bottom: 0.24rem;
  color: var(--fg);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-deck-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.product-deck-facts > div {
  padding: 0.8rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--sheet-surface-faint);
}

.product-deck-facts dt {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-deck-facts dd {
  margin: 0.3rem 0 0;
  color: var(--fg);
  font-size: 0.84rem;
  line-height: 1.36;
}

.product-deck-reader-figure {
  margin: 1rem 0 0;
}

.product-deck-reader-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-deck-reader-figure figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.42;
}

.physical-product-deck-cta h2 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.05;
}

@media (min-width: 901px) {
  body.physical-products-page #selected-work .grid {
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
  }

  body.physical-products-page #selected-work .grid.selected-work-deck-ready .physical-product-deck-card {
    padding: clamp(0.85rem, 1.1vw, 1.05rem);
    gap: 0.7rem;
  }

  body.physical-products-page #selected-work .grid.selected-work-deck-ready .physical-product-deck-card > .card-header {
    display: block;
    flex: 0 0 clamp(6.6rem, 9vw, 7.8rem);
    min-height: clamp(6.6rem, 9vw, 7.8rem);
    padding: 0.15rem 0.15rem 0 calc(var(--deck-tab-width) + clamp(0.72rem, 1.1vw, 1rem));
  }

  body.physical-products-page #selected-work .grid.selected-work-deck-ready .physical-product-deck-card > .card-header h3 {
    max-width: 12ch;
    font-size: clamp(1.55rem, 2.15vw, 2.55rem);
  }

  body.physical-products-page #selected-work .grid.selected-work-deck-ready .physical-product-deck-card > .card-header .pill {
    display: none;
  }

  body.physical-products-page #selected-work .grid.selected-work-deck-ready .product-deck-card-gallery {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    margin-left: calc(var(--deck-tab-width) + clamp(0.72rem, 1.1vw, 1rem));
    transition: opacity 520ms ease, visibility 0s linear 0s;
  }

  body.physical-products-page #selected-work .grid.selected-work-deck-ready .product-deck-card-media--primary {
    flex: 0 0 clamp(280px, 31vw, 390px);
    height: clamp(280px, 31vw, 390px);
  }

  body.physical-products-page #selected-work .grid.selected-work-deck-ready .product-deck-card-media--support {
    flex: 0 0 clamp(150px, 15vw, 190px);
    height: clamp(150px, 15vw, 190px);
  }

  body.physical-products-page #selected-work .grid.selected-work-deck-ready .product-deck-card-media--range,
  body.physical-products-page #selected-work .grid.selected-work-deck-ready .product-deck-card-media--campaign-left,
  body.physical-products-page #selected-work .grid.selected-work-deck-ready .product-deck-card-media--campaign-dog {
    flex-basis: clamp(100px, 9.5vw, 132px);
    height: clamp(100px, 9.5vw, 132px);
  }

  body.physical-products-page #selected-work .grid.selected-work-deck-ready .physical-product-deck-card.is-deck-tab > .product-deck-card-gallery,
  body.physical-products-page #selected-work .grid.selected-work-deck-ready .physical-product-deck-card.is-deck-fading-to-tab > .product-deck-card-gallery {
    opacity: 0;
    visibility: hidden;
    transition: opacity 520ms ease, visibility 0s linear 520ms;
  }

  body.physical-products-page #selected-work .grid.selected-work-deck-ready .product-deck-reader-content {
    padding-top: 0.25rem;
  }
}

@media (max-width: 900px) {
  .physical-product-deck {
    padding-top: 6.4rem;
  }

  .physical-product-deck-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .physical-product-deck-intro h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3rem, 14.5vw, 4.7rem);
  }

  .physical-product-deck-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  body.physical-products-page #selected-work .grid {
    margin-top: 1rem;
  }

  body.physical-products-page #selected-work .grid .physical-product-deck-card {
    flex-basis: min(86vw, 360px);
    max-width: min(86vw, 360px);
    padding: 0.9rem;
    gap: 0.72rem;
  }

  body.physical-products-page #selected-work .grid .physical-product-deck-card .card-header {
    display: block;
    min-height: 0;
    padding: 0;
  }

  body.physical-products-page #selected-work .grid .physical-product-deck-card .card-header > .pill {
    display: inline-flex;
  }

  body.physical-products-page #selected-work .grid .product-deck-card-gallery {
    height: auto;
  }

  body.physical-products-page #selected-work .grid .product-deck-card-media--primary {
    height: clamp(230px, 72vw, 310px);
  }

  body.physical-products-page #selected-work .grid .product-deck-card-media--support {
    height: clamp(130px, 42vw, 170px);
  }

  body.physical-products-page #selected-work .grid .product-deck-card-media--range,
  body.physical-products-page #selected-work .grid .product-deck-card-media--campaign-left,
  body.physical-products-page #selected-work .grid .product-deck-card-media--campaign-dog {
    height: clamp(90px, 28vw, 118px);
  }

  body.physical-products-page #selected-work .grid .product-deck-card-media--landscape img {
    object-position: 52% center;
  }

  body.physical-products-page #selected-work .grid .card-summary {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  body.physical-products-page #selected-work .grid .product-deck-mobile-proof {
    display: block;
    margin-top: auto;
    padding-top: 0.8rem;
  }

  .physical-product-deck-cta {
    margin-top: 2.5rem;
  }
}

@media (max-width: 520px) {
  .physical-product-deck-index {
    grid-template-columns: 1fr;
  }

  .product-deck-facts {
    grid-template-columns: 1fr;
  }
}
