:root {
  --background: #121312;
  --panel: #151615;
  --panel-rgb: 21, 22, 21;
  --panel-raised: #191a19;
  --panel-muted: #1c1d1c;
  --panel-soft: #232423;
  --stroke: #1c1d1c;
  --text: #f1f1f1;
  --text-muted: #bababa;
  --text-subtle: #9f9f9f;
  --text-dim: #676867;
  --accent: #d6d6d6;
  --transition-bg: #0e0f0e;
  --button-light-hover: #c9c9c9;
  --button-light-hover-text: var(--panel);
  --button-dark-hover: #3a3b3a;
  --button-dark-hover-text: var(--text);
  --max-width: 1600px;
}

html[data-theme="olive"] {
  --background: #10140f;
  --panel: #151a14;
  --panel-rgb: 21, 26, 20;
  --panel-raised: #192018;
  --panel-muted: #20281f;
  --panel-soft: #263125;
  --stroke: #273326;
  --text: #eff3ea;
  --text-muted: #bdc7b7;
  --text-subtle: #8f9b88;
  --text-dim: #798b5f;
  --accent: #b8d879;
  --transition-bg: #0c100b;
  --button-light-hover: #d9e7c7;
  --button-light-hover-text: var(--panel);
  --button-dark-hover: #354232;
  --button-dark-hover-text: var(--text);
}

html[data-theme="cyan"] {
  --background: #0f1212;
  --panel: #141919;
  --panel-rgb: 20, 25, 25;
  --panel-raised: #172020;
  --panel-muted: #1e2929;
  --panel-soft: #233333;
  --stroke: #263838;
  --text: #edf7f5;
  --text-muted: #b5c8c5;
  --text-subtle: #8ca3a0;
  --text-dim: #5f8f8a;
  --accent: #76d8cf;
  --transition-bg: #0b1010;
  --button-light-hover: #c8efeb;
  --button-light-hover-text: var(--panel);
  --button-dark-hover: #304545;
  --button-dark-hover-text: var(--text);
}

html[data-theme="wine"] {
  --background: #150f11;
  --panel: #1b1316;
  --panel-rgb: 27, 19, 22;
  --panel-raised: #21161a;
  --panel-muted: #2a1b20;
  --panel-soft: #342229;
  --stroke: #39262c;
  --text: #f5eeee;
  --text-muted: #cbb9ba;
  --text-subtle: #a18b8e;
  --text-dim: #986171;
  --accent: #e09aab;
  --transition-bg: #100b0d;
  --button-light-hover: #ead5da;
  --button-light-hover-text: var(--panel);
  --button-dark-hover: #442b34;
  --button-dark-hover-text: var(--text);
}

html[data-theme="ember"] {
  --background: #14110e;
  --panel: #1a1611;
  --panel-rgb: 26, 22, 17;
  --panel-raised: #211b14;
  --panel-muted: #2a2218;
  --panel-soft: #342a1d;
  --stroke: #3a2d20;
  --text: #f4efe7;
  --text-muted: #c8b9a6;
  --text-subtle: #a2927c;
  --text-dim: #a67443;
  --accent: #e3a85d;
  --transition-bg: #100d0a;
  --button-light-hover: #ead7bd;
  --button-light-hover-text: var(--panel);
  --button-dark-hover: #443622;
  --button-dark-hover-text: var(--text);
}

html[data-theme="plum"] {
  --background: #131015;
  --panel: #18141b;
  --panel-rgb: 24, 20, 27;
  --panel-raised: #1e1822;
  --panel-muted: #261e2b;
  --panel-soft: #302538;
  --stroke: #342941;
  --text: #f2eef5;
  --text-muted: #c4b8ca;
  --text-subtle: #9e8da8;
  --text-dim: #8f70a6;
  --accent: #c7a0df;
  --transition-bg: #0f0c11;
  --button-light-hover: #e2d4eb;
  --button-light-hover-text: var(--panel);
  --button-dark-hover: #40304a;
  --button-dark-hover-text: var(--text);
}

html[data-theme="mono"] {
  --background: #0d0d0d;
  --panel: #151515;
  --panel-rgb: 21, 21, 21;
  --panel-raised: #1a1a1a;
  --panel-muted: #222222;
  --panel-soft: #2b2b2b;
  --stroke: #303030;
  --text: #f8f8f8;
  --text-muted: #c6c6c6;
  --text-subtle: #969696;
  --text-dim: #6f6f6f;
  --accent: #ffffff;
  --transition-bg: #050505;
  --button-light-hover: #dedede;
  --button-light-hover-text: var(--panel);
  --button-dark-hover: #404040;
  --button-dark-hover-text: var(--text);
}

html[data-theme="default"] {
  --background: #121312;
  --panel: #151615;
  --panel-rgb: 21, 22, 21;
  --panel-raised: #191a19;
  --panel-muted: #1c1d1c;
  --panel-soft: #232423;
  --stroke: #1c1d1c;
  --text: #f1f1f1;
  --text-muted: #bababa;
  --text-subtle: #9f9f9f;
  --text-dim: #676867;
  --accent: #d6d6d6;
  --transition-bg: #0e0f0e;
  --button-light-hover: #c9c9c9;
  --button-light-hover-text: var(--panel);
  --button-dark-hover: #3a3b3a;
  --button-dark-hover-text: var(--text);
}

html[data-theme="paper"] {
  --background: #eeeae2;
  --panel: #f8f5ee;
  --panel-rgb: 248, 245, 238;
  --panel-raised: #ffffff;
  --panel-muted: #ded8cc;
  --panel-soft: #e7e1d6;
  --stroke: #d2cabd;
  --text: #171715;
  --text-muted: #47443e;
  --text-subtle: #706b62;
  --text-dim: #9b9386;
  --accent: #7a6f5d;
  --transition-bg: #ded9cf;
  --button-light-hover: #7a6f5d;
  --button-light-hover-text: #f8f5ee;
  --button-dark-hover: #d0c7b8;
  --button-dark-hover-text: #171715;
}

html[data-theme="mint-light"] {
  --background: #e9f0e8;
  --panel: #f4faf3;
  --panel-rgb: 244, 250, 243;
  --panel-raised: #ffffff;
  --panel-muted: #d8e4d6;
  --panel-soft: #dfeadd;
  --stroke: #c9d8c6;
  --text: #121811;
  --text-muted: #3c4a39;
  --text-subtle: #63705f;
  --text-dim: #829875;
  --accent: #55784c;
  --transition-bg: #d9e2d7;
  --button-light-hover: #55784c;
  --button-light-hover-text: #f4faf3;
  --button-dark-hover: #c4d2c0;
  --button-dark-hover-text: #121811;
}

html[data-theme="sky-light"] {
  --background: #e8eef0;
  --panel: #f5fafb;
  --panel-rgb: 245, 250, 251;
  --panel-raised: #ffffff;
  --panel-muted: #d6e2e5;
  --panel-soft: #dfe9eb;
  --stroke: #c6d4d8;
  --text: #101618;
  --text-muted: #37484d;
  --text-subtle: #5f7176;
  --text-dim: #728f98;
  --accent: #3d7784;
  --transition-bg: #d7e2e6;
  --button-light-hover: #3d7784;
  --button-light-hover-text: #f5fafb;
  --button-dark-hover: #c2d1d5;
  --button-dark-hover-text: #101618;
}

html[data-theme="blush-light"] {
  --background: #f0e9e9;
  --panel: #fbf5f5;
  --panel-rgb: 251, 245, 245;
  --panel-raised: #ffffff;
  --panel-muted: #e4d6d7;
  --panel-soft: #ecdfe0;
  --stroke: #d8c8ca;
  --text: #191313;
  --text-muted: #4c3a3b;
  --text-subtle: #765f62;
  --text-dim: #a37b83;
  --accent: #9a5d6a;
  --transition-bg: #e2d6d8;
  --button-light-hover: #9a5d6a;
  --button-light-hover-text: #fbf5f5;
  --button-dark-hover: #d7c4c7;
  --button-dark-hover-text: #191313;
}

html[data-theme="pink"] {
  --background: #f5e5ee;
  --panel: #fff7fb;
  --panel-rgb: 255, 247, 251;
  --panel-raised: #ffffff;
  --panel-muted: #ead0dd;
  --panel-soft: #f0d8e5;
  --stroke: #dbb8c8;
  --text: #1b1016;
  --text-muted: #503543;
  --text-subtle: #7c5364;
  --text-dim: #b06382;
  --accent: #c74379;
  --transition-bg: #ead1df;
  --button-light-hover: #c74379;
  --button-light-hover-text: #fff7fb;
  --button-dark-hover: #e3bfd0;
  --button-dark-hover-text: #1b1016;
}

html[data-theme="acid"] {
  --background: #0b1009;
  --panel: #10170e;
  --panel-rgb: 16, 23, 14;
  --panel-raised: #141d11;
  --panel-muted: #1c2717;
  --panel-soft: #24331d;
  --stroke: #2f4524;
  --text: #f3ffe9;
  --text-muted: #c5d8b8;
  --text-subtle: #93aa84;
  --text-dim: #8caf54;
  --accent: #b7ff36;
  --transition-bg: #080d07;
  --button-light-hover: #d8ff8a;
  --button-light-hover-text: #10170e;
  --button-dark-hover: #314620;
  --button-dark-hover-text: var(--text);
}

html[data-theme="ocean"] {
  --background: #09111d;
  --panel: #0d1724;
  --panel-rgb: 13, 23, 36;
  --panel-raised: #111e2e;
  --panel-muted: #16283d;
  --panel-soft: #1d3450;
  --stroke: #254263;
  --text: #edf6ff;
  --text-muted: #b9cadb;
  --text-subtle: #86a0b8;
  --text-dim: #4c82b7;
  --accent: #49a7ff;
  --transition-bg: #060d16;
  --button-light-hover: #b9dcff;
  --button-light-hover-text: #0d1724;
  --button-dark-hover: #263f5d;
  --button-dark-hover-text: var(--text);
}

html[data-theme="violet"] {
  --background: #120d1b;
  --panel: #1b1028;
  --panel-rgb: 27, 16, 40;
  --panel-raised: #211532;
  --panel-muted: #2a1b40;
  --panel-soft: #352452;
  --stroke: #49366a;
  --text: #f7f1ff;
  --text-muted: #cab9e0;
  --text-subtle: #a28bbf;
  --text-dim: #9273c4;
  --accent: #a986ff;
  --transition-bg: #0e0916;
  --button-light-hover: #d9caff;
  --button-light-hover-text: #1b1028;
  --button-dark-hover: #44305f;
  --button-dark-hover-text: var(--text);
}

html[data-theme="ruby"] {
  --background: #170d10;
  --panel: #201113;
  --panel-rgb: 32, 17, 19;
  --panel-raised: #281619;
  --panel-muted: #351d21;
  --panel-soft: #43272c;
  --stroke: #5c3138;
  --text: #fff1f3;
  --text-muted: #dfb5bc;
  --text-subtle: #b9878f;
  --text-dim: #c95a69;
  --accent: #ff6b7a;
  --transition-bg: #10090b;
  --button-light-hover: #ffc2ca;
  --button-light-hover-text: #201113;
  --button-dark-hover: #56313a;
  --button-dark-hover-text: var(--text);
}

html[data-theme="gold"] {
  --background: #171307;
  --panel: #211a0c;
  --panel-rgb: 33, 26, 12;
  --panel-raised: #2a220f;
  --panel-muted: #352b13;
  --panel-soft: #443719;
  --stroke: #5c4b22;
  --text: #fff7df;
  --text-muted: #d9c89d;
  --text-subtle: #ae9663;
  --text-dim: #c49738;
  --accent: #ffd166;
  --transition-bg: #100d05;
  --button-light-hover: #ffe2a3;
  --button-light-hover-text: #211a0c;
  --button-dark-hover: #57471d;
  --button-dark-hover-text: var(--text);
}

html[data-theme="teal-light"] {
  --background: #e2f2ef;
  --panel: #f5fffd;
  --panel-rgb: 245, 255, 253;
  --panel-raised: #ffffff;
  --panel-muted: #cfe7e2;
  --panel-soft: #d8ede9;
  --stroke: #b8d9d2;
  --text: #0d1816;
  --text-muted: #344c48;
  --text-subtle: #5e7a75;
  --text-dim: #4e938a;
  --accent: #28766e;
  --transition-bg: #d0e5e0;
  --button-light-hover: #28766e;
  --button-light-hover-text: #f5fffd;
  --button-dark-hover: #bad7d1;
  --button-dark-hover-text: #0d1816;
}

html[data-theme="lilac-light"] {
  --background: #eee9f6;
  --panel: #fbf8ff;
  --panel-rgb: 251, 248, 255;
  --panel-raised: #ffffff;
  --panel-muted: #ded6ee;
  --panel-soft: #e7e0f3;
  --stroke: #cec2e2;
  --text: #15101d;
  --text-muted: #42374f;
  --text-subtle: #6e5f80;
  --text-dim: #8972bd;
  --accent: #6b58a8;
  --transition-bg: #ddd5ea;
  --button-light-hover: #6b58a8;
  --button-light-hover-text: #fbf8ff;
  --button-dark-hover: #cfc3e3;
  --button-dark-hover-text: #15101d;
}

html[data-theme="citrus-light"] {
  --background: #f4f1df;
  --panel: #fffcec;
  --panel-rgb: 255, 252, 236;
  --panel-raised: #ffffff;
  --panel-muted: #e9e1bf;
  --panel-soft: #f0e8ca;
  --stroke: #d8cea3;
  --text: #171409;
  --text-muted: #49432d;
  --text-subtle: #746b49;
  --text-dim: #a89132;
  --accent: #8a741c;
  --transition-bg: #e5dec0;
  --button-light-hover: #8a741c;
  --button-light-hover-text: #fffcec;
  --button-dark-hover: #d8ce9e;
  --button-dark-hover-text: #171409;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: var(--background);
  scrollbar-color: var(--accent) var(--background);
  scrollbar-width: thin;
}

body {
  position: relative;
  display: flow-root;
  isolation: isolate;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  background-attachment: fixed;
  color: var(--text);
  font-family: "PP Neue Montreal", "Neue Montreal", Inter, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  transition: background 220ms ease, color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 18% 10%,
      color-mix(in srgb, var(--accent) 8%, transparent) 0,
      transparent 34vw
    ),
    radial-gradient(
      ellipse at 82% 76%,
      color-mix(in srgb, var(--text-dim) 8%, transparent) 0,
      transparent 34vw
    );
  opacity: 0.68;
}

html[data-theme="paper"] body::before,
html[data-theme="mint-light"] body::before,
html[data-theme="sky-light"] body::before,
html[data-theme="blush-light"] body::before,
html[data-theme="pink"] body::before,
html[data-theme="teal-light"] body::before,
html[data-theme="lilac-light"] body::before,
html[data-theme="citrus-light"] body::before {
  opacity: 0.78;
}

.background-waves {
  position: fixed;
  top: 0;
  right: -50%;
  bottom: 0;
  left: -50%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.3;
}

.background-waves span {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      -60deg,
      color-mix(in srgb, var(--background) 62%, var(--accent) 38%) 50%,
      color-mix(in srgb, var(--background) 78%, var(--text-dim) 22%) 50%
    );
  transform: translate3d(0, 0, 0);
  animation: diagonal-slide 30s ease-in-out infinite alternate;
  will-change: transform;
}

.background-waves span:nth-child(2) {
  background-image:
    linear-gradient(
      -60deg,
      color-mix(in srgb, var(--background) 74%, var(--panel-raised) 26%) 50%,
      color-mix(in srgb, var(--background) 66%, var(--accent) 34%) 50%
    );
  animation-direction: alternate-reverse;
  animation-duration: 42s;
  opacity: 0.64;
}

.background-waves span:nth-child(3) {
  background-image:
    linear-gradient(
      -60deg,
      color-mix(in srgb, var(--background) 76%, var(--text) 14%) 50%,
      color-mix(in srgb, var(--background) 70%, var(--panel-soft) 30%) 50%
    );
  animation-duration: 54s;
  opacity: 0.52;
}

@keyframes diagonal-slide {
  from {
    transform: translateX(-25%);
  }
  to {
    transform: translateX(25%);
  }
}

html[data-theme="paper"] .background-waves,
html[data-theme="mint-light"] .background-waves,
html[data-theme="sky-light"] .background-waves,
html[data-theme="blush-light"] .background-waves,
html[data-theme="pink"] .background-waves,
html[data-theme="teal-light"] .background-waves,
html[data-theme="lilac-light"] .background-waves,
html[data-theme="citrus-light"] .background-waves {
  opacity: 0.42;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  background: var(--transition-bg, var(--initial-transition-bg, var(--background, #121312)));
  transform: translateY(0);
  will-change: transform;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--background);
  border-radius: 999px;
  background: var(--panel-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
}

body.contact-open {
  overflow: hidden;
}

body.media-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 20px;
  z-index: 20;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 20px auto 0;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 24px;
  padding: 0 24px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(var(--panel-rgb), 0.88);
  backdrop-filter: blur(18px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 21px;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

.mobile-menu-toggle {
  width: 42px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 4px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 18px;
  border-top: 1.5px solid currentColor;
  transition: transform 180ms ease;
}

.site-header.is-menu-open .mobile-menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-menu-open .mobile-menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(var(--panel-rgb), 0.98);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header.is-menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a,
.mobile-menu .button {
  min-height: 42px;
  width: 100%;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  border-radius: 4px;
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 16px;
}

.mobile-menu a:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.divider {
  color: var(--text-muted);
  opacity: 0.4;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 3px;
  padding: 12px 13px;
  font-size: 15.8px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: none;
}

.button-light {
  background: var(--text);
  color: var(--panel);
}

.button-light:hover {
  background: var(--button-light-hover);
  color: var(--button-light-hover-text);
}

.button-dark {
  background: var(--panel-soft);
  color: var(--text);
}

.button-dark:hover {
  background: var(--button-dark-hover);
  color: var(--button-dark-hover-text);
}

.nav-left a:hover,
.email-card:hover,
.case-link:hover,
.footer-top a:hover,
.social-links a:hover,
.policy-check a:hover {
  color: var(--text-subtle);
}

.brand:hover {
  color: var(--text-muted);
}

.icon-arrow {
  position: relative;
  width: 16px;
  height: 11px;
  display: inline-block;
  flex: 0 0 16px;
}

.icon-arrow::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 13px;
  border-top: 1.5px solid currentColor;
}

.icon-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 2px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.hero,
.approach,
.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100svh - 20px);
  row-gap: clamp(56px, 10vh, 128px);
  padding-top: clamp(34px, 4vh, 52px);
  padding-bottom: clamp(84px, 9vh, 128px);
}

.hero::before {
  display: none;
}

.hero-grid,
.work-row {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 522px) minmax(260px, 318px);
  justify-content: space-between;
  align-items: start;
  gap: 64px;
  min-height: 0;
}

.intro-title {
  margin: 0;
  max-width: 522px;
  color: var(--text);
  font-size: clamp(34px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
}

.intro-copy {
  display: grid;
  gap: 18px;
}

.intro-support {
  max-width: 500px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.25;
}

.intro-title span,
.statement span {
  color: var(--text-dim);
}

.contact-panel {
  width: 318px;
  justify-self: end;
  padding-top: 3px;
}

.email-card {
  position: relative;
  width: 100%;
  min-height: 156px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border: 0;
  padding: 4px 42px 4px 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.email-card::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--text-dim);
}

.email-card-label,
.email-card-note {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.3;
}

.email-card-address {
  max-width: 100%;
  color: var(--text);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.email-card .icon-arrow {
  position: absolute;
  right: 0;
  bottom: 19px;
}

.work-row {
  display: grid;
  grid-template-columns: minmax(320px, 398px) minmax(720px, 920px);
  justify-content: space-between;
  align-items: end;
  align-self: end;
  gap: 72px;
}

.availability {
  padding-bottom: 2px;
}

.clock-line {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
}

.availability p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.35;
}

.availability .clock-line {
  margin-bottom: 24px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

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

.project-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 3px;
  background: var(--panel);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  background: var(--panel-soft);
  border-color: var(--accent);
}

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

.project-media {
  width: 100%;
  aspect-ratio: 430 / 244;
  border-radius: 3px;
  overflow: hidden;
  background-color: var(--panel-muted);
}

.project-media-blank {
  position: relative;
}

.project-media-blank::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  background:
    linear-gradient(90deg, transparent 49%, color-mix(in srgb, var(--text) 5%, transparent) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, color-mix(in srgb, var(--text) 5%, transparent) 50%, transparent 51%);
}

.project-media-image {
  background: url("imgs/marathon-after-mainmenu-1600.jpg") center / cover no-repeat;
}

.project-media-careroute {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 46%),
    var(--panel-muted);
}

.project-media-careroute span {
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 3px;
  background-color: color-mix(in srgb, var(--panel) 72%, var(--background));
  background-size: cover;
  background-position: top center;
}

.project-media-careroute span:first-child {
  grid-row: span 2;
  background-image: url("imgs/careroute-feed.webp");
}

.project-media-careroute span:nth-child(2) {
  background-image: url("imgs/careroute-result.webp");
}

.project-media-careroute span:nth-child(3) {
  background-image: url("imgs/careroute-doctor-time-booking.webp");
}

.project-media-elder {
  background:
    linear-gradient(180deg, rgba(23, 12, 8, 0.1), rgba(23, 12, 8, 0.5)),
    url("imgs/es-mainmenu-press-1600.jpg");
  background-size: cover;
  background-position: center;
}

.project-card h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
}

.project-category {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card p {
  margin: 16px 0 0;
  color: var(--text-subtle);
  font-size: 13.2px;
  line-height: 1.35;
}

.case-link {
  width: min(100%, 358px);
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.work-index {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 190px auto 0;
}

.work-index-heading {
  margin-bottom: 48px;
}

.work-index-heading p {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.35;
}

.work-index-heading h1,
.work-index-heading h2 {
  max-width: 920px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
}

.work-stack {
  display: grid;
  gap: 20px;
}

.work-page .work-index {
  margin-top: 146px;
}

.work-index-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: clamp(22px, 2.5vw, 40px);
  background: var(--panel);
  color: inherit;
  transition: background 180ms ease, border-color 180ms ease;
}

.work-index-card:hover {
  background: var(--panel-soft);
  border-color: var(--accent);
}

.work-index-card:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.work-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.work-card-count {
  display: block;
  margin-bottom: 8px;
  color: var(--text-subtle);
  font-size: 14px;
  line-height: 1.2;
}

.work-card-top h2,
.work-card-top h3 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.work-card-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  border-radius: 3px;
  padding: 0 12px;
  background: var(--text);
  color: var(--panel);
  font-size: 14px;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}

.work-card-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 0 9px;
  background: var(--panel-soft);
  color: var(--text-subtle);
  font-size: 12.5px;
}

.work-index-card p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.4;
}

.work-card-images {
  overflow: hidden;
  margin: clamp(54px, 7vw, 96px) calc(clamp(22px, 2.5vw, 40px) * -1) calc(clamp(22px, 2.5vw, 40px) * -1);
}

.work-card-track {
  width: max-content;
  display: flex;
  gap: 14px;
  animation: work-card-pan 34s linear infinite;
  will-change: transform;
}

.work-card-images img,
.work-shot {
  width: min(34vw, 560px);
  flex: 0 0 min(34vw, 560px);
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: var(--background);
}

.work-card-care img {
  object-fit: contain;
  background: var(--panel-soft);
}

.work-index-card:nth-child(2) .work-card-track {
  animation-duration: 46s;
}

.work-index-card:nth-child(3) .work-card-track {
  animation-duration: 40s;
}

@keyframes work-card-pan {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.work-shot {
  position: relative;
  overflow: hidden;
}

.work-shot::before,
.work-shot::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  border-radius: 4px;
}

.work-shot::before {
  inset: 10%;
}

.work-shot::after {
  inset: 22% 15% 18% 38%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.work-shot-care-a {
  background: linear-gradient(135deg, #e6f3ef, #afc8c0);
}

.work-shot-care-b {
  background: linear-gradient(135deg, #dfe9f2, #a8becb);
}

.work-shot-care-c {
  background: linear-gradient(135deg, #eee6f3, #c6b1cf);
}

.work-shot-care-d {
  background: linear-gradient(135deg, #f0eee4, #d2bf9f);
}

.work-shot-care-e {
  background: linear-gradient(135deg, #e5eef4, #93acbd);
}

.about-page {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 118px auto 0;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 420px);
  align-items: start;
  gap: clamp(44px, 8vw, 140px);
}

.about-kicker {
  margin: 0 0 14px;
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-copy h1,
.about-panel h2 {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0;
}

.about-copy h1 {
  max-width: 820px;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 0.96;
}

.about-copy > p:not(.about-kicker) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.28;
}

.about-portrait {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--panel);
}

.about-portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 11;
  object-fit: cover;
}

.about-portrait figcaption {
  border-top: 1px solid var(--stroke);
  padding: 14px 16px;
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.35;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.48fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  margin-top: 22px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 40px);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
}

.about-hero + .about-panel {
  margin-top: 72px;
}

.about-panel h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
}

.about-panel p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.38;
}

.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-chip-list li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-self: end;
  justify-content: flex-end;
  gap: 8px;
}

.about-links .social-links {
  justify-content: flex-end;
  align-self: center;
}

.approach {
  padding-top: 216px;
}

.statement {
  max-width: 1350px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
}

.approach-details {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(320px, 386px);
  justify-content: end;
  gap: clamp(40px, 5vw, 82px);
  align-items: start;
  margin-top: 86px;
}

.approach-spacer {
  display: none;
}

.approach-copy {
  max-width: 560px;
}

.approach-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.35;
}

.approach-copy p + p {
  margin-top: 20px;
}

.capability-list {
  display: grid;
  margin-top: -12px;
}

.capability-item {
  border-bottom: 1px solid var(--stroke);
}

.capability-item button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
}

.plus-mark {
  display: inline-block;
  transform-origin: center;
  transition: transform 220ms ease;
}

.capability-item.is-open .plus-mark {
  transform: rotate(45deg);
}

.capability-copy {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text-subtle);
  font-size: 14px;
  line-height: 1.42;
  opacity: 0;
  transition: max-height 320ms ease, opacity 220ms ease, padding 320ms ease;
}

.capability-item.is-open .capability-copy {
  max-height: 140px;
  padding: 0 8px 16px;
  opacity: 1;
}

.site-footer {
  min-height: 441px;
  margin-top: 216px;
  margin-bottom: 20px;
  padding: 31px 25px 0;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--panel);
}

.footer-top,
.footer-middle {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-top {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.35;
}

.footer-top p,
.footer-middle p,
.footer-wordmark {
  margin: 0;
}

.footer-link-stack {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.footer-top nav {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.35;
}

.social-links a {
  color: inherit;
}

.footer-socials {
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-middle {
  margin-top: 28px;
  padding-top: 21px;
  border-top: 1px solid var(--stroke);
  color: var(--text-subtle);
  font-size: 15px;
  line-height: 1.55;
}

.footer-middle div p:first-child {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 16px;
}

.footer-middle div p:first-child span:first-child {
  color: var(--text);
}

.footer-middle address {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-style: normal;
  text-align: right;
}

.footer-wordmark {
  margin-top: 94px;
  color: var(--text);
  font-size: clamp(72px, 12.7vw, 210px);
  line-height: 0.85;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 1100ms;
}

.contact-drawer-shell.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 11, 11, 0.75);
  cursor: pointer;
  opacity: 0;
  transition: opacity 320ms ease;
}

.contact-drawer-shell.is-open .contact-backdrop {
  opacity: 1;
}

.contact-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(496px, 100vw);
  height: 100%;
  overflow-y: auto;
  padding: 40px 24px 44px;
  background: var(--background);
  border-left: 1px solid var(--stroke);
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.contact-drawer-shell.is-open .contact-drawer {
  transform: translateX(0);
}

.drawer-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  background: var(--text);
  color: var(--panel);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  z-index: 2;
}

.drawer-intro {
  max-width: 340px;
  padding-top: 55px;
}

.drawer-intro p:first-child {
  margin: 0 0 2px;
  color: var(--text-subtle);
  font-size: 16px;
  line-height: 1.35;
}

.drawer-intro h2 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
}

.drawer-intro p:last-child {
  margin: 12px 0 0;
  color: var(--text-subtle);
  font-size: 15px;
  line-height: 1.35;
}

.drawer-socials {
  max-width: 340px;
  margin-top: 20px;
}

.contact-form {
  display: grid;
  gap: 31px;
  margin-top: min(26vh, 260px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.35;
}

.contact-form label > span em {
  color: var(--text-dim);
  font-style: normal;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stroke);
  border-radius: 3px;
  padding: 14px 15px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.2px;
  line-height: 1.35;
  outline: none;
}

.contact-form textarea {
  min-height: 80px;
  resize: vertical;
}

.contact-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%) calc(100% - 18px) 21px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%) calc(100% - 14px) 21px / 6px 6px no-repeat;
  color: var(--text-dim);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}



.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 20px;
  margin: -8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status.is-success {
  color: var(--accent);
}

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

.send-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.policy-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 12px !important;
  color: var(--text-muted) !important;
}

.policy-check input {
  width: 19px;
  min-width: 19px;
  height: 19px;
  min-height: 19px;
  padding: 0;
  accent-color: var(--text);
}

.policy-check a {
  color: var(--text-dim);
}

.send-button {
  width: fit-content;
  min-width: 152px;
}

.theme-picker {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 50;
}

.theme-toggle {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover,
.theme-picker.is-open .theme-toggle {
  background: var(--panel-soft);
  border-color: var(--accent);
}

.theme-toggle-mark {
  width: 25px;
  height: 25px;
  display: block;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background:
    conic-gradient(from 90deg, #f1f1f1, #b8d879, #76d8cf, #e09aab, #e3a85d, #c7a0df, #b7ff36, #49a7ff, #a986ff, #ff6b7a, #ffd166, #f8f5ee, #e8eef0, #f1f1f1);
}

.theme-menu {
  position: absolute;
  left: 0;
  bottom: 66px;
  width: 176px;
  display: grid;
  gap: 4px;
  padding: 8px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(var(--panel-rgb), 0.96);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-picker.is-open .theme-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.theme-option {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 4px;
  padding: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.theme-option:hover,
.theme-option.is-active {
  background: var(--panel-soft);
  color: var(--text);
}

.theme-option.is-active .theme-swatch {
  border-color: var(--accent);
}

.theme-swatch {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid var(--stroke);
  border-radius: 50%;
}

.swatch-default {
  background: linear-gradient(135deg, #151615 50%, #d6d6d6 50%);
}

.swatch-olive {
  background: linear-gradient(135deg, #151a14 50%, #b8d879 50%);
}

.swatch-cyan {
  background: linear-gradient(135deg, #141919 50%, #76d8cf 50%);
}

.swatch-wine {
  background: linear-gradient(135deg, #1b1316 50%, #e09aab 50%);
}

.swatch-ember {
  background: linear-gradient(135deg, #1a1611 50%, #e3a85d 50%);
}

.swatch-plum {
  background: linear-gradient(135deg, #18141b 50%, #c7a0df 50%);
}

.swatch-mono {
  background: linear-gradient(135deg, #0d0d0d 50%, #f8f8f8 50%);
}

.swatch-paper {
  background: linear-gradient(135deg, #eeeae2 50%, #171715 50%);
}

.swatch-mint-light {
  background: linear-gradient(135deg, #e9f0e8 50%, #55784c 50%);
}

.swatch-sky-light {
  background: linear-gradient(135deg, #e8eef0 50%, #3d7784 50%);
}

.swatch-blush-light {
  background: linear-gradient(135deg, #f0e9e9 50%, #9a5d6a 50%);
}

.swatch-pink {
  background: linear-gradient(135deg, #f5e5ee 50%, #c74379 50%);
}

.swatch-acid {
  background: linear-gradient(135deg, #10170e 50%, #b7ff36 50%);
}

.swatch-ocean {
  background: linear-gradient(135deg, #0d1724 50%, #49a7ff 50%);
}

.swatch-violet {
  background: linear-gradient(135deg, #1b1028 50%, #a986ff 50%);
}

.swatch-ruby {
  background: linear-gradient(135deg, #201113 50%, #ff6b7a 50%);
}

.swatch-gold {
  background: linear-gradient(135deg, #211a0c 50%, #ffd166 50%);
}

.swatch-teal-light {
  background: linear-gradient(135deg, #e2f2ef 50%, #28766e 50%);
}

.swatch-lilac-light {
  background: linear-gradient(135deg, #eee9f6 50%, #6b58a8 50%);
}

.swatch-citrus-light {
  background: linear-gradient(135deg, #f4f1df 50%, #8a741c 50%);
}

@media (max-width: 1180px) {
  .site-header,
  .hero,
  .approach,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .nav-shell {
    padding: 0 16px;
  }

  .nav-left {
    gap: 16px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .hero-grid {
    min-height: 360px;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .availability {
    max-width: 560px;
  }

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

  .approach-details {
    grid-template-columns: minmax(300px, 1fr) minmax(320px, 386px);
    gap: 48px;
  }

  .approach-spacer {
    display: none;
  }

}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    top: 12px;
    margin-top: 12px;
  }

  .nav-shell {
    min-height: 58px;
    align-items: center;
    padding: 9px 10px 9px 14px;
  }

  .nav-left {
    display: flex;
    width: auto;
  }

  .brand {
    width: auto;
    font-size: 18px;
  }

  .nav-left .divider,
  .nav-left a:not(.brand) {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .mobile-menu {
    display: grid;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 0;
  }

  .hero-grid,
  .approach-details {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: unset;
  }

  .hero-grid {
    margin-bottom: 34px;
  }

  .contact-panel {
    display: none;
  }

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

  .project-card p {
    margin-right: 0;
  }

  .work-index {
    width: min(100% - 28px, var(--max-width));
    margin-top: 132px;
  }

  .about-page {
    width: min(100% - 28px, var(--max-width));
    margin-top: 132px;
  }

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

  .about-hero + .about-panel {
    margin-top: 44px;
  }

  .about-actions,
  .about-links .social-links {
    justify-content: flex-start;
  }

  .work-index-heading {
    margin-bottom: 28px;
  }

  .work-card-top {
    display: grid;
    gap: 20px;
  }

  .work-card-action {
    width: fit-content;
  }

  .work-card-images {
    margin-top: 42px;
    padding-bottom: 2px;
  }

  .work-card-images img,
  .work-shot {
    width: 290px;
    flex-basis: 290px;
  }

  .clock-line {
    display: grid;
    gap: 4px;
  }

  .availability .clock-line {
    margin-bottom: 16px;
  }

  .approach {
    padding-top: 128px;
  }

  .approach-details {
    margin-top: 44px;
  }

  .capability-list {
    margin-top: 0;
  }

  .site-footer {
    min-height: auto;
    margin-top: 128px;
    padding: 24px 18px;
  }

  .footer-top,
  .footer-middle {
    flex-direction: column;
  }

  .footer-top nav {
    flex-wrap: wrap;
  }

  .footer-link-stack {
    justify-items: start;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-middle address {
    align-items: flex-start;
    text-align: left;
  }

  .footer-wordmark {
    display: none;
  }

  .contact-drawer {
    padding: 28px 18px 34px;
  }

  .drawer-close {
    top: 16px;
    right: 16px;
  }

  .drawer-intro {
    padding-top: 54px;
  }

  .contact-form {
    margin-top: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    display: none;
  }

  body::before,
  .background-waves span,
  .work-card-track {
    animation: none;
  }
}

@media (max-width: 480px) {
  .site-header,
  .hero,
  .approach,
  .site-footer {
    width: calc(100% - 32px);
  }

  .nav-shell {
    padding-left: 16px;
  }

  .hero {
    padding-top: 92px;
  }

  .intro-title,
  .statement {
    font-size: 32px;
  }

  .work-row {
    gap: 44px;
  }

  .project-grid {
    gap: 18px;
  }

  .button-row {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .button {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    gap: 8px;
    padding-inline: 9px;
    font-size: 13.4px;
  }

  .project-card {
    min-height: 410px;
    padding: 14px 14px 16px;
  }

  .work-index {
    width: calc(100% - 32px);
  }

  .about-page {
    width: calc(100% - 32px);
  }

  .about-copy h1 {
    font-size: 46px;
  }

  .about-panel {
    padding: 18px;
  }

  .work-index-card {
    padding: 18px;
  }

  .work-card-images {
    margin-inline: -18px;
    margin-bottom: -18px;
  }

  .approach {
    padding-top: 144px;
  }

  .approach-details {
    margin-top: 52px;
  }

  .contact-drawer {
    width: 100vw;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .send-button {
    width: 100%;
  }
}

@media (hover: none), (pointer: coarse) {
  .button-light:hover {
    background: var(--text);
    color: var(--panel);
  }

  .button-dark:hover {
    background: var(--panel-soft);
    color: var(--text);
  }

  .nav-left a:hover,
  .brand:hover {
    color: inherit;
  }

  .email-card:hover,
  .mobile-menu a:hover,
  .social-links a:hover,
  .footer-top a:hover {
    color: var(--text-muted);
  }

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

  .policy-check a:hover {
    color: var(--text-dim);
  }

  .mobile-menu a:hover {
    background: transparent;
  }

  .project-card:hover {
    background: var(--panel);
    border-color: var(--stroke);
  }

  .theme-toggle:hover {
    background: var(--panel);
    border-color: var(--stroke);
  }

  .theme-option:not(.is-active):hover {
    background: transparent;
    color: var(--text-muted);
  }

  .theme-option.is-active:hover {
    background: var(--panel-soft);
    color: var(--text);
  }
}

.case-page {
  padding-top: 118px;
}

.case-study-body::before,
.case-study-body .background-waves {
  display: none;
}

.case-shell,
.case-section,
.case-break {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 0.6fr);
  gap: 72px;
  align-items: start;
}

.case-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.35;
}

.case-hero .case-kicker {
  max-width: 560px;
  margin-top: 22px;
}

.case-title {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-size: clamp(54px, 7.2vw, 112px);
  line-height: 0.88;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.case-intro-copy {
  max-width: 560px;
  color: var(--text-muted);
  font-size: clamp(19px, 1.7vw, 28px);
  line-height: 1.12;
}

.case-intro-copy p {
  margin: 0;
}

.case-intro-copy p + p {
  margin-top: 16px;
}

.case-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.case-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text-subtle);
  background: rgba(var(--panel-rgb), 0.58);
  font-size: 13px;
  line-height: 1;
}

.case-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--panel);
}

.case-final {
  min-height: 680px;
  margin: 72px 0 0;
  padding: clamp(16px, 3vw, 42px);
}

.case-visual figcaption {
  position: absolute;
  left: clamp(16px, 3vw, 34px);
  bottom: clamp(14px, 2.4vw, 28px);
  max-width: 620px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.case-image {
  width: 100%;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.case-final .case-image {
  min-height: 560px;
}

.case-marathon .case-final,
.case-elder .case-final {
  width: 100%;
  min-height: auto;
  padding: 0;
  background: var(--panel);
}

.case-marathon .case-final .case-image,
.case-elder .case-final .case-image {
  min-height: auto;
  border-radius: 0;
  object-fit: contain;
}

.case-marathon .case-final figcaption,
.case-elder .case-final figcaption {
  position: static;
  max-width: none;
  border-top: 1px solid var(--stroke);
  padding: 14px 16px;
  background: var(--panel);
}

.case-carousel {
  display: grid;
  min-height: auto;
}

.case-carousel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label cue"
    "copy copy";
  align-items: start;
  gap: 10px 20px;
  border-bottom: 1px solid var(--stroke);
  padding: 20px 22px;
  background: rgba(var(--panel-rgb), 0.8);
}

.case-carousel-header span {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-carousel-cue {
  grid-area: cue;
  justify-self: end;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--stroke));
  border-radius: 999px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.case-carousel-header > span:first-child {
  grid-area: label;
}

.case-carousel-header p {
  grid-area: copy;
  max-width: 680px;
  justify-self: start;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.28;
  text-align: left;
}

.case-carousel-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}

.case-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.case-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.case-carousel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: clamp(14px, 2vw, 24px);
}

.case-carousel-slide {
  flex: 0 0 min(78vw, 1180px);
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--background);
  scroll-snap-align: center;
}

.case-carousel-slide,
.case-carousel-slide img {
  -webkit-user-drag: none;
  user-select: none;
}

.case-marathon .case-carousel-slide .case-image,
.case-elder .case-carousel-slide .case-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  display: block;
  border-radius: 0;
  object-fit: contain;
  cursor: zoom-in;
}

.case-careroute .care-phone-carousel .case-carousel-track {
  align-items: stretch;
}

.case-careroute .care-phone-carousel .case-carousel-slide {
  flex: 0 0 min(72vw, 336px);
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--panel-soft);
}

.case-careroute .care-phone-carousel .case-image {
  width: 100%;
  max-height: 710px;
  display: block;
  align-self: center;
  object-fit: contain;
  cursor: zoom-in;
}

.case-carousel-slide figcaption {
  position: static;
  max-width: none;
  border-top: 1px solid var(--stroke);
  padding: 13px 14px;
  background: var(--panel);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.3;
}

.case-video-card {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: 14px 16px;
  background: rgba(var(--panel-rgb), 0.7);
  color: var(--text);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.case-video-card:hover {
  border-color: var(--accent);
  background: var(--button-dark-hover);
  color: var(--button-dark-hover-text);
}

.case-snapshot {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--stroke);
}

.case-snapshot article {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 16px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.case-snapshot span {
  color: var(--text-subtle);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-snapshot p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.case-snapshot a {
  width: fit-content;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.2;
}

.case-snapshot a:hover {
  color: var(--accent);
}

.case-tldr {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--stroke);
}

.case-tldr article {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.case-tldr span {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-tldr p {
  max-width: 420px;
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.15;
}

.case-section,
.case-snapshot,
.case-tldr,
.screen-card,
.case-image-card,
.design-pair {
  scroll-margin-top: 136px;
}

.case-video-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.case-video-play {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.case-video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
  transform: translate(-50%, -50%);
}

.case-video-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.case-video-label,
.case-video-time {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-video-card:hover .case-video-label,
.case-video-card:hover .case-video-time {
  color: currentColor;
}

.case-video-copy strong {
  color: currentColor;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.08;
  font-weight: 500;
}

.case-video-preview {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .case-video-preview {
    position: fixed;
    left: var(--preview-x, 24px);
    top: var(--preview-y, 24px);
    z-index: 130;
    display: block;
    width: min(340px, calc(100vw - 48px));
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 6px;
    background: var(--panel);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.96);
    transform-origin: top left;
    transition: opacity 180ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .case-video-preview img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .case-video-card.is-previewing .case-video-preview,
  .case-video-card:focus-visible .case-video-preview {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.case-image-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--panel);
}

.case-image-card img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.case-image-card figcaption {
  border-top: 1px solid var(--stroke);
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.case-image-card span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(var(--panel-rgb), 0.86);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.before-after-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--panel);
  --split: 50%;
}

.before-after-stage {
  position: relative;
  overflow: hidden;
  background: var(--background);
}

.before-after-image {
  width: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.before-after-before {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 1px;
  background: var(--text);
  transform: translateX(-0.5px);
  pointer-events: none;
}

.before-after-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid var(--text);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 48%, currentColor 49%, currentColor 51%, transparent 52%) 15px 18px / 9px 9px no-repeat,
    linear-gradient(225deg, transparent 48%, currentColor 49%, currentColor 51%, transparent 52%) 22px 18px / 9px 9px no-repeat,
    var(--panel);
  color: var(--text);
  transform: translate(-50%, -50%);
}

.before-after-label {
  position: absolute;
  top: 14px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(var(--panel-rgb), 0.86);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.label-before {
  left: 14px;
}

.label-after {
  right: 14px;
}

.before-after-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.before-after-slider figcaption {
  margin: 0;
  border-top: 1px solid var(--stroke);
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.screen-gallery,
.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.screen-card {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--panel);
}

.screen-card-wide {
  grid-column: 1 / -1;
}

.screen-card-media {
  border-bottom: 1px solid var(--stroke);
  background: var(--panel-soft);
}

.screen-card-media img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.screen-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 14px 18px;
  padding: 18px;
}

.screen-kicker,
.screen-card-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.screen-kicker,
.screen-card-kicker {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--stroke));
  border-radius: 999px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.screen-card-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 500;
}

.screen-card-copy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 24%, var(--stroke));
  padding-top: 14px;
}

.screen-card-copy p {
  margin: 0;
  min-height: 100%;
  border: 1px solid color-mix(in srgb, var(--stroke) 88%, transparent);
  border-radius: 5px;
  padding: 13px;
  background: color-mix(in srgb, var(--panel-soft) 78%, transparent);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.screen-card-copy p:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.screen-card-copy strong {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.screen-gallery > .screen-card,
.screen-grid > .screen-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  align-items: stretch;
  min-height: auto;
  background: var(--panel);
}

.screen-gallery > .screen-card .screen-card-media,
.screen-grid > .screen-card .screen-card-media {
  border-right: 1px solid var(--stroke);
  border-bottom: 0;
}

.screen-gallery > .screen-card .screen-card-media img,
.screen-grid > .screen-card .screen-card-media img {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

.screen-gallery > .screen-card .screen-card-body,
.screen-grid > .screen-card .screen-card-body {
  align-content: start;
  padding: clamp(22px, 3vw, 34px);
}

.screen-gallery > .screen-card .screen-card-title,
.screen-grid > .screen-card .screen-card-title {
  max-width: 420px;
  font-size: clamp(28px, 2.7vw, 46px);
  line-height: 1.02;
}

.screen-gallery > .screen-card .screen-card-copy,
.screen-grid > .screen-card .screen-card-copy {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
  border-top-color: color-mix(in srgb, var(--accent) 30%, var(--stroke));
}

.screen-gallery > .screen-card .screen-card-copy p,
.screen-grid > .screen-card .screen-card-copy p {
  padding: 14px;
  background: color-mix(in srgb, var(--panel-soft) 78%, transparent);
}

.mock-screen {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--stroke);
  border-radius: 4px;
  background: var(--background);
  color: var(--text);
}

.mock-topbar {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--stroke);
  padding: 0 18px;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
}

.mock-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.33fr) minmax(280px, 1fr) minmax(180px, 0.38fr);
  gap: 14px;
  padding: 14px;
}

.mock-panel {
  border: 1px solid var(--stroke);
  border-radius: 4px;
  background: rgba(var(--panel-rgb), 0.7);
  padding: 14px;
}

.mock-panel h3,
.mock-panel p {
  margin: 0;
}

.mock-panel h3 {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.mock-panel p {
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 12px;
  line-height: 1.35;
}

.mock-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mock-list span,
.mock-stat,
.mock-chip {
  border: 1px solid var(--stroke);
  border-radius: 3px;
  background: var(--panel-soft);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
}

.mock-list span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.mock-hero-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
  border: 1px solid var(--stroke);
  border-radius: 4px;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(135deg, var(--panel-raised), var(--panel));
  padding: 18px;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.mock-stat,
.mock-chip {
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 9px;
}

.mock-stat strong,
.mock-chip strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1;
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-actions span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 0 12px;
  background: var(--text);
  color: var(--panel);
  font-size: 12px;
  line-height: 1;
}

.mock-actions span:last-child {
  border: 1px solid var(--stroke);
  background: var(--panel-soft);
  color: var(--text-muted);
}

.case-section {
  margin-top: clamp(72px, 7vw, 112px);
}

.case-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title kicker"
    "body body";
  gap: 18px clamp(20px, 4vw, 64px);
  align-items: start;
  max-width: none;
  margin-bottom: 28px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--stroke));
  padding-top: 22px;
}

.case-section-header .case-kicker {
  grid-area: kicker;
  justify-self: end;
  align-self: start;
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--stroke));
  border-radius: 999px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
  color: var(--accent);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.case-section-title {
  grid-area: title;
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
  text-transform: none;
}

.case-section-header p:not(.case-kicker),
.case-section > p {
  grid-area: body;
  max-width: 840px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.34;
}

.pain-grid,
.quote-grid,
.persona-grid,
.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pain-card,
.quote-card,
.persona-card,
.decision-item,
.annotation-card,
.flow-card {
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--panel);
}

.pain-card,
.persona-card,
.decision-item {
  min-height: 154px;
  padding: 18px;
}

.pain-card span,
.persona-card span,
.decision-item span,
.annotation-card span,
.flow-card span:first-child {
  display: block;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pain-card h3,
.persona-card h3,
.decision-item h3 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 500;
}

.pain-card p,
.persona-card p,
.decision-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.decision-item p {
  font-size: 16px;
}

.decision-item strong {
  color: var(--text);
  font-weight: 500;
}

.quote-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-card {
  display: grid;
  align-content: space-between;
  min-height: 180px;
  margin: 0;
  padding: 18px;
}

.quote-card p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.28;
}

.quote-card cite {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.35;
  font-style: normal;
}

.case-break {
  min-height: 142px;
  display: grid;
  place-items: center;
  margin-top: clamp(72px, 7vw, 112px);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  text-align: center;
}

.case-break h2,
.case-break p {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0 clamp(18px, 2.4vw, 32px);
  background: rgba(var(--panel-rgb), 0.54);
  color: var(--text-muted);
  font-size: clamp(18px, 2.6vw, 42px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-break h2 {
  margin: 0;
}

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

.case-marathon .flow-stack {
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
  max-width: 100%;
}

.flow-card {
  margin: 0;
  min-height: 220px;
  padding: 14px;
}

.case-marathon .flow-stack .flow-card {
  width: 100%;
  max-width: 100%;
  min-height: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.case-marathon .flow-stack .flow-card figcaption {
  margin: 0 0 14px;
  border: 0;
  padding: 0;
}

.flow-card figcaption {
  position: static;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
}

.flow-card img {
  width: 100%;
  display: block;
  border: 1px solid var(--stroke);
  border-radius: 4px;
  background: var(--background);
}

.case-marathon .flow-stack .flow-card img {
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: #f4f4f1;
  cursor: zoom-in;
}

.case-marathon .case-final .case-image,
.case-elder .case-final .case-image {
  cursor: zoom-in;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 8, 8, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}

.media-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.media-lightbox-frame {
  position: relative;
  z-index: 1;
  width: min(98vw, 1760px);
  max-height: 94vh;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--panel);
  transform: scale(0.9) translateY(18px);
  opacity: 0;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
}

.media-lightbox.is-open .media-lightbox-frame {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.media-lightbox img {
  width: 100%;
  max-height: calc(94vh - 52px);
  display: block;
  object-fit: contain;
  background: var(--background);
}

.media-lightbox-caption {
  margin: 0;
  border-top: 1px solid var(--stroke);
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.media-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  background: var(--text);
  color: var(--panel);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.flow-card strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--stroke));
  border-radius: 999px;
  padding: 0 10px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-line {
  display: grid;
  gap: 8px;
}

.flow-line span {
  min-height: 32px;
  display: flex;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 3px;
  padding: 0 10px;
  color: var(--text-muted);
  background: var(--panel-soft);
  font-size: 12px;
  line-height: 1.2;
}

.design-pair {
  display: grid;
  grid-template-columns: minmax(420px, 1.16fr) minmax(340px, 0.84fr);
  gap: 20px;
  align-items: start;
}

.design-visual {
  min-height: auto;
  padding: clamp(12px, 1.8vw, 22px);
  background: var(--panel);
}

.design-visual .mock-screen {
  min-height: 500px;
}

.annotation-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.annotation-card {
  min-height: auto;
  display: grid;
  align-content: start;
  padding: clamp(16px, 2vw, 22px);
  background: var(--panel);
}

.annotation-card span {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--stroke));
  border-radius: 999px;
  padding: 7px 10px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}

.annotation-card h3 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.15;
  font-weight: 500;
}

.annotation-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.38;
}

.case-mini-visual {
  min-height: auto;
  margin-top: 20px;
  padding: clamp(14px, 2vw, 24px);
}

.phone-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 14px;
  min-height: 100%;
}

.case-careroute .case-final .phone-strip {
  min-height: 560px;
  align-items: center;
  padding-bottom: 64px;
}

.case-careroute .case-final .phone-screen {
  min-height: 430px;
}

.care-screen-row {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 14px clamp(16px, 2.4vw, 30px) 28px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--stroke)) transparent;
  scroll-snap-type: x proximity;
}

.care-screen-row::-webkit-scrollbar {
  height: 8px;
}

.care-screen-row::-webkit-scrollbar-track {
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-soft) 84%, transparent);
}

.care-screen-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 62%, var(--stroke));
}

.care-screen-row img {
  width: min(280px, 42vw);
  max-height: 680px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.design-visual .care-screen-row {
  align-items: center;
  padding-bottom: 28px;
}

.care-screen-row.two-up img {
  width: min(240px, 46%);
}

.care-screen-row.single img {
  width: min(280px, 72%);
}

.care-screen-row.many img {
  width: clamp(260px, 21vw, 340px);
  max-height: 760px;
}

.case-careroute .case-final figcaption {
  position: static;
  max-width: none;
  border-top: 1px solid var(--stroke);
  padding: 14px 16px;
  background: var(--panel);
}

.phone-screen {
  min-height: 310px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 18px 14px;
  background: var(--background);
}

.phone-screen h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.15;
}

.phone-screen p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 12px;
  line-height: 1.35;
}

.phone-block,
.phone-choice {
  border: 1px solid var(--stroke);
  border-radius: 4px;
  background: var(--panel-soft);
}

.phone-block {
  min-height: 62px;
}

.phone-choice {
  min-height: 36px;
}

.phone-cta {
  min-height: 38px;
  margin-top: auto;
  border-radius: 4px;
  background: var(--text);
}

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

.care-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: clamp(18px, 2vw, 30px);
  min-height: auto;
  align-content: center;
  position: relative;
  padding: clamp(18px, 2vw, 26px);
}

.care-flow span {
  position: relative;
  z-index: 1;
  min-height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--stroke));
  border-radius: 4px;
  padding: 12px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: center;
  font-size: 15px;
  line-height: 1.2;
}

.care-flow span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(clamp(18px, 2vw, 30px) * -1);
  width: clamp(18px, 2vw, 30px);
  border-top: 2px solid color-mix(in srgb, var(--accent) 46%, var(--stroke));
  transform: translateY(-50%);
}

.care-flow span:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc((clamp(18px, 2vw, 30px) * -1) - 1px);
  z-index: 2;
  width: 8px;
  height: 8px;
  border-top: 2px solid color-mix(in srgb, var(--accent) 56%, var(--stroke));
  border-right: 2px solid color-mix(in srgb, var(--accent) 56%, var(--stroke));
  transform: translateY(-50%) rotate(45deg);
}

.case-careroute .design-pair {
  grid-template-columns: 1fr;
}

.case-careroute .design-visual {
  padding: clamp(18px, 2.2vw, 30px);
}

.case-careroute .annotation-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phone-flow-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.phone-flow-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--panel);
}

.phone-flow-media {
  min-width: 0;
  border-right: 1px solid var(--stroke);
  background: var(--panel-soft);
}

.phone-flow-media .care-screen-row {
  min-height: 500px;
  align-items: center;
  justify-content: flex-start;
  padding: 18px;
}

.phone-flow-body {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
}

.phone-flow-body span {
  width: fit-content;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phone-flow-body h3 {
  max-width: 420px;
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 2.7vw, 46px);
  line-height: 0.98;
  font-weight: 500;
}

.phone-flow-body p {
  margin: 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 30%, var(--stroke));
  padding-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.4;
}

.case-nav-row {
  width: min(var(--max-width), calc(100% - 40px));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 96px auto 0;
}

@media (max-width: 1180px) {
  .case-hero-grid,
  .design-pair {
    grid-template-columns: 1fr;
  }

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

  .case-snapshot,
  .case-tldr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screen-gallery,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .screen-gallery > .screen-card,
  .screen-grid > .screen-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .phone-flow-card {
    grid-template-columns: 1fr;
  }

  .phone-flow-media {
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
  }

  .screen-gallery > .screen-card .screen-card-media,
  .screen-grid > .screen-card .screen-card-media {
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
  }

  .screen-gallery > .screen-card .screen-card-media img,
  .screen-grid > .screen-card .screen-card-media img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .pain-grid,
  .persona-grid,
  .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mock-layout {
    grid-template-columns: 1fr;
  }

  .mock-screen,
  .design-visual .mock-screen {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .case-page {
    padding-top: 96px;
  }

  .case-hero-grid {
    gap: 32px;
  }

  .case-video-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .case-video-time {
    padding-left: 56px;
  }

  .case-final {
    min-height: auto;
    margin: 44px 0 0;
  }

  .case-carousel-header {
    align-items: start;
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "copy"
      "cue";
    gap: 10px;
  }

  .case-carousel-header p {
    justify-self: start;
    text-align: left;
  }

  .case-carousel-cue {
    justify-self: start;
  }

  .case-carousel-slide {
    flex-basis: min(84vw, 720px);
  }

  .case-careroute .case-final .phone-strip,
  .case-careroute .case-final .care-screen-row {
    min-height: auto;
    padding-bottom: 72px;
  }

  .case-careroute .case-final .phone-screen {
    min-height: 310px;
  }

  .case-section,
  .case-break {
    margin-top: 80px;
  }

  .case-section-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "body";
    gap: 12px;
    margin-bottom: 24px;
    padding-top: 18px;
  }

  .case-section-header .case-kicker {
    justify-self: start;
    margin-bottom: 0;
  }

  .case-section-header p:not(.case-kicker),
  .case-section > p {
    margin-top: 0;
  }

  .case-break {
    min-height: 220px;
  }

  .quote-grid,
  .flow-grid,
  .case-snapshot,
  .case-tldr,
  .pain-grid,
  .persona-grid,
  .decision-grid,
  .case-image-grid,
  .phone-strip,
  .care-screen-row,
  .care-flow {
    grid-template-columns: 1fr;
  }

  .care-screen-row {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .care-screen-row img,
  .care-screen-row.two-up img,
  .care-screen-row.single img {
    width: min(240px, 76vw);
  }

  .case-careroute .annotation-list {
    grid-template-columns: 1fr;
  }

  .case-careroute .care-screen-row img,
  .case-careroute .care-screen-row.two-up img,
  .case-careroute .care-screen-row.single img,
  .case-careroute .care-screen-row.many img {
    width: min(310px, 82vw);
    max-height: 720px;
  }

  .care-flow {
    gap: 24px;
  }

  .care-flow span:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -24px;
    left: 50%;
    width: 0;
    height: 24px;
    border-top: 0;
    border-left: 2px solid color-mix(in srgb, var(--accent) 46%, var(--stroke));
    transform: translateX(-50%);
  }

  .care-flow span:not(:last-child)::before {
    top: auto;
    right: auto;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .design-pair {
    gap: 14px;
  }

  .design-visual,
  .case-mini-visual {
    min-height: auto;
  }

  .case-nav-row {
    flex-direction: column;
    margin-top: 72px;
  }

  .quote-card {
    min-height: auto;
    align-content: start;
    gap: 28px;
  }

  .media-lightbox {
    align-items: stretch;
    padding: 0;
  }

  .media-lightbox-frame {
    width: 100vw;
    height: 100svh;
    max-height: none;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .media-lightbox img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .media-lightbox-caption {
    min-height: 52px;
    max-height: 76px;
    overflow: auto;
    padding: 11px 12px;
    font-size: 12px;
  }

  .media-lightbox-close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .media-lightbox.is-wide {
    place-items: stretch;
  }

  .media-lightbox.is-wide .media-lightbox-frame {
    display: block;
    overflow: auto;
    padding-top: 58px;
    background: var(--panel);
    -webkit-overflow-scrolling: touch;
  }

  .media-lightbox.is-wide img {
    width: max(920px, 190vw);
    max-width: none;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .media-lightbox.is-wide .media-lightbox-caption {
    position: sticky;
    left: 0;
    bottom: 0;
    width: 100vw;
    border-right: 1px solid var(--stroke);
    background: var(--panel);
  }
}

@media (max-width: 480px) {
  .case-shell,
  .case-section,
  .case-break,
  .case-nav-row {
    width: calc(100% - 32px);
  }

  .case-title {
    font-size: 48px;
  }

  .case-section-title {
    font-size: 42px;
  }

  .case-break h2,
  .case-break p {
    font-size: 16px;
  }

  .case-intro-copy,
  .case-section-header p:not(.case-kicker),
  .case-section > p {
    font-size: 17px;
  }

  .case-video-card {
    padding: 13px;
  }

  .case-video-copy strong {
    font-size: 18px;
  }

  .screen-card-body {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .screen-kicker,
  .screen-card-kicker {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .screen-card-title {
    grid-column: 1;
    grid-row: auto;
  }

  .case-carousel-track {
    gap: 10px;
    padding: 12px;
  }

  .case-carousel-slide {
    flex-basis: calc(100vw - 56px);
  }

  .case-final,
  .design-visual,
  .case-mini-visual {
    padding: 12px;
  }
}


/* ==============================
   Portfolio mid-level upgrade layer
   Note: color picker/button styles intentionally untouched.
   ============================== */
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.proof-strip span,
.card-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 68%, transparent);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.proof-strip.compact {
  margin-top: 18px;
}

.card-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 2px;
}

.card-proof-row span {
  min-height: 28px;
  padding: 6px 10px;
  font-size: 0.72rem;
}

.about-page-upgraded .about-hero {
  align-items: stretch;
}

.about-profile-card {
  min-height: 420px;
  display: grid;
  place-items: center;
  gap: 22px;
  padding: clamp(24px, 4vw, 48px);
  text-align: left;
}

.profile-monogram {
  width: min(230px, 52vw);
  aspect-ratio: 1;
  border-radius: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--panel-raised) 78%, var(--accent) 22%), var(--panel));
  color: var(--text);
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: -0.12em;
  padding-right: 0.12em;
}

.about-focus-grid,
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-focus-grid article,
.evidence-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(18px, 2vw, 24px);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.about-focus-grid span,
.evidence-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-focus-grid h3,
.evidence-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.about-focus-grid p,
.evidence-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.evidence-card.urgent {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: process;
}

.process-list li {
  counter-increment: process;
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-list strong {
  color: var(--text);
}

.process-list span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  line-height: 1.55;
}

.comparison-table {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 74%, transparent);
}

.comparison-table > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.comparison-table.task-table > div {
  grid-template-columns: 0.75fr 1.15fr 1.15fr 1fr;
}

.comparison-table > div:last-child {
  border-bottom: 0;
}

.comparison-table strong,
.comparison-table span {
  padding: clamp(14px, 2vw, 22px);
  line-height: 1.55;
  border-right: 1px solid var(--border);
}

.comparison-table strong:last-child,
.comparison-table span:last-child {
  border-right: 0;
}

.comparison-table strong {
  color: var(--text);
  background: color-mix(in srgb, var(--panel-raised) 76%, var(--accent) 8%);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.comparison-table span {
  color: var(--text-muted);
}

.system-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1050px) {
  .about-focus-grid,
  .evidence-grid,
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-table.task-table > div {
    grid-template-columns: 1fr 1fr;
  }

  .comparison-table.task-table > div:first-child strong:nth-child(3),
  .comparison-table.task-table > div:first-child strong:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .proof-strip,
  .card-proof-row {
    gap: 7px;
  }

  .proof-strip span,
  .card-proof-row span {
    font-size: 0.68rem;
  }

  .about-focus-grid,
  .evidence-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .comparison-table > div,
  .comparison-table.task-table > div {
    grid-template-columns: 1fr;
  }

  .comparison-table strong,
  .comparison-table span {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .comparison-table > div > *:last-child {
    border-bottom: 0;
  }
}

/* ==============================
   Case-study structure fixes
   Color picker/button untouched.
   ============================== */
.case-process-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 12px 0;
}

.case-process-nav a {
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: 14px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.case-process-nav a:hover,
.case-process-nav a:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--stroke));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  transform: translateY(-2px);
}

.case-process-nav span {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-process-nav strong {
  font-size: clamp(0.94rem, 1.1vw, 1.08rem);
  line-height: 1.1;
  font-weight: 650;
}

.case-process-nav em {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  font-style: normal;
}

.case-carousel-slide {
  border: 0;
  background: transparent;
}

.case-careroute .care-phone-carousel .case-carousel-slide {
  background: transparent;
}

.comparison-table {
  border-radius: 6px;
  background: var(--panel);
}

.about-focus-grid article,
.evidence-card {
  border-radius: 6px;
  background: var(--panel);
}

.evidence-card.urgent {
  border-color: var(--border);
  background: var(--panel);
}

.case-careroute .care-research-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.case-careroute .care-research-grid .quote-card {
  min-height: auto;
}

.care-flow-card {
  width: 100%;
  margin-top: 0;
}

.care-flow-card .care-flow {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.process-list li {
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num copy";
  gap: 8px 18px;
  border-radius: 6px;
  background: var(--panel);
}

.process-list li::before {
  grid-area: num;
}

.process-list strong {
  grid-area: title;
}

.process-list span {
  grid-area: copy;
  margin-top: 0;
}

@media (max-width: 1180px) {
  .case-process-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .case-process-nav {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .case-process-nav a {
    min-height: auto;
  }

  .care-flow-card .care-flow,
  .care-flow {
    grid-template-columns: 1fr;
  }

  .process-list li {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "title"
      "copy";
  }
}

/* ==============================
   Case-study intro redesign v5
   Keeps color picker/button untouched.
   ============================== */
.case-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: clamp(22px, 3vw, 34px) 0;
}

.case-brief-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.case-brief-card {
  min-height: 0;
  border-left: 1px solid var(--stroke);
  border-radius: 0;
  padding-left: clamp(16px, 2vw, 24px);
  background: transparent;
}

.case-brief-card span,
.case-brief-meta dt {
  display: block;
  margin-bottom: 14px;
  color: var(--text-subtle);
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.case-brief-card p {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.26vw, 1.28rem);
  line-height: 1.34;
}

.case-brief-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 0;
  padding: 0;
}

.case-brief-meta div {
  min-width: 0;
  border-top: 1px solid var(--stroke);
  padding-top: 14px;
}

.case-brief-meta dt,
.case-brief-meta dd {
  margin: 0;
}

.case-brief-meta dd {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.case-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.case-hero-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text-muted);
  background: transparent;
  font-size: 0.84rem;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.case-hero-action.primary {
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
}

.case-hero-action:hover,
.case-hero-action:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--stroke));
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.case-process-strip {
  display: grid;
  grid-template-columns: minmax(140px, 0.22fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  margin-top: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 16px;
}

.case-process-strip-head span {
  display: block;
  color: var(--text-subtle);
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-process-strip-head p {
  max-width: 220px;
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.case-process-nav,
.case-process-nav.case-process-nav-compact {
  display: flex;
  grid-template-columns: none;
  gap: 0;
  margin-top: 0;
  border: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.case-process-nav a,
.case-process-nav.case-process-nav-compact a {
  position: relative;
  min-height: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  transform: none;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.case-process-nav a + a {
  margin-left: 24px;
}

.case-process-nav a + a::before {
  content: "→";
  position: absolute;
  left: -18px;
  color: var(--text-subtle);
  font-size: 0.78rem;
  line-height: 1;
  pointer-events: none;
}

.case-process-nav a:hover,
.case-process-nav a:focus-visible,
.case-process-nav.case-process-nav-compact a:hover,
.case-process-nav.case-process-nav-compact a:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--stroke));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--text);
  transform: none;
}

.case-process-nav span,
.case-process-nav.case-process-nav-compact span {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-process-nav strong,
.case-process-nav.case-process-nav-compact strong {
  color: currentColor;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 620;
  white-space: nowrap;
}

.case-process-nav em {
  display: none;
}

@media (max-width: 1080px) {
  .case-brief {
    grid-template-columns: 1fr;
  }

  .case-process-strip {
    grid-template-columns: 1fr;
  }

  .case-process-strip-head p {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .case-brief-primary,
  .case-brief-meta {
    grid-template-columns: 1fr;
  }

  .case-brief-card {
    padding-left: 16px;
  }

  .case-process-nav,
  .case-process-nav.case-process-nav-compact {
    margin-top: 0;
    padding-bottom: 4px;
  }

  .case-process-nav a,
  .case-process-nav.case-process-nav-compact a {
    padding: 10px 13px;
  }
}


.case-elder .es-feedback-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-response-card {
  align-content: start;
  gap: 14px;
}

.quote-response-card cite {
  margin-top: 0;
}

.design-response {
  border-top: 1px solid var(--stroke);
  padding-top: 14px;
}

.design-response span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.design-response p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.42;
}

@media (max-width: 900px) {
  .case-elder .es-feedback-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Case-study polish v7
   Color picker/button intentionally untouched.
   ============================== */
.project-media-careroute {
  display: block;
  padding: 0;
  background: url("imgs/careroute-cover.webp") center / cover no-repeat, var(--panel-muted);
}

.project-media-careroute span {
  display: none;
}

.case-brief {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(22px, 3.2vw, 44px);
  margin-top: clamp(30px, 4.5vw, 52px);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: clamp(20px, 2.8vw, 30px);
  background: color-mix(in srgb, var(--panel) 64%, transparent);
}

.case-brief-primary {
  grid-template-columns: 1fr;
  gap: 18px;
}

.case-brief-card {
  border-left: 0;
  padding-left: 0;
}

.case-brief-card + .case-brief-card {
  border-top: 1px solid var(--stroke);
  padding-top: 18px;
}

.case-brief-card span,
.case-brief-meta dt {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.case-brief-card p {
  max-width: 760px;
  font-size: clamp(1rem, 1.08vw, 1.14rem);
  line-height: 1.38;
}

.case-brief-meta {
  align-content: start;
  gap: 18px 22px;
  border-left: 1px solid var(--stroke);
  padding-left: clamp(22px, 3vw, 34px);
}

.case-brief-meta div {
  border-top: 0;
  padding-top: 0;
}

.case-brief-meta dd {
  font-size: 0.88rem;
  line-height: 1.38;
}

.case-process-strip {
  align-items: start;
  margin-top: 14px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: 14px;
  background: color-mix(in srgb, var(--panel) 52%, transparent);
}

.case-process-strip-head p {
  margin-top: 5px;
}

.case-process-nav,
.case-process-nav.case-process-nav-compact {
  align-self: center;
}

.case-carousel-slide {
  overflow: visible;
  border: 0;
  background: transparent;
}

.case-carousel-slide figcaption {
  border-top: 0;
  padding: 10px 2px 0;
  background: transparent;
}

.case-carousel-header {
  background: transparent;
}

.case-careroute .care-phone-carousel .case-carousel-slide {
  flex: 0 0 min(86vw, 1080px);
  background: transparent;
}

.case-careroute .care-phone-carousel .case-carousel-cover {
  flex-basis: min(88vw, 1180px);
}

.case-careroute .care-phone-carousel .case-image {
  max-height: 820px;
  border-radius: 4px;
  object-fit: contain;
}

.work-card-care .work-card-cover {
  width: min(58vw, 860px);
  flex-basis: min(58vw, 860px);
  object-fit: cover;
}

.case-careroute .design-visual {
  background: color-mix(in srgb, var(--panel) 58%, transparent);
}

.case-careroute .care-screen-row.many img,
.case-careroute .care-screen-row img,
.case-careroute .care-screen-row.two-up img,
.case-careroute .care-screen-row.single img {
  width: min(86vw, 860px);
  max-height: none;
  border-radius: 4px;
}

.care-flow-card {
  border: 0;
  background: transparent;
}

.care-flow {
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 58%, transparent);
}

.care-flow span {
  min-height: 76px;
  background: color-mix(in srgb, var(--panel-soft) 86%, transparent);
}

.comparison-table,
.process-list li,
.evidence-card,
.annotation-card,
.case-snapshot,
.case-tldr,
.pain-card,
.persona-card,
.decision-card,
.phone-flow-card {
  border-radius: 6px;
}

@media (max-width: 1080px) {
  .case-brief {
    grid-template-columns: 1fr;
  }

  .case-brief-meta {
    border-left: 0;
    border-top: 1px solid var(--stroke);
    padding-top: 18px;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .case-brief {
    padding: 18px;
  }

  .case-brief-meta {
    grid-template-columns: 1fr;
  }

  .case-process-strip {
    padding: 12px;
  }

  .case-careroute .care-phone-carousel .case-carousel-slide,
  .case-careroute .care-phone-carousel .case-carousel-cover {
    flex-basis: min(88vw, 720px);
  }

  .case-careroute .care-screen-row.many img,
  .case-careroute .care-screen-row img,
  .case-careroute .care-screen-row.two-up img,
  .case-careroute .care-screen-row.single img {
    width: min(86vw, 680px);
  }
}

/* ==============================
   v8 - case structure and theme updates
   Color picker button markup intentionally untouched.
   ============================== */
:root {
  --background: #120d1b;
  --panel: #1b1028;
  --panel-rgb: 27, 16, 40;
  --panel-raised: #211532;
  --panel-muted: #2a1b40;
  --panel-soft: #352452;
  --stroke: #49366a;
  --text: #f7f1ff;
  --text-muted: #cab9e0;
  --text-subtle: #a28bbf;
  --text-dim: #9273c4;
  --accent: #a986ff;
  --transition-bg: #0e0916;
  --button-light-hover: #d9caff;
  --button-light-hover-text: #1b1028;
  --button-dark-hover: #44305f;
  --button-dark-hover-text: var(--text);
}

html[data-theme="blue"] {
  --background: #07122f;
  --panel: #0d1b47;
  --panel-rgb: 13, 27, 71;
  --panel-raised: #12245c;
  --panel-muted: #172d70;
  --panel-soft: #1d398c;
  --stroke: #3157bf;
  --text: #f1f6ff;
  --text-muted: #b9c9fb;
  --text-subtle: #8fa7ef;
  --text-dim: #5f84ff;
  --accent: #2f6dff;
  --transition-bg: #050b20;
  --button-light-hover: #bdd0ff;
  --button-light-hover-text: #07122f;
  --button-dark-hover: #24418c;
  --button-dark-hover-text: var(--text);
}

html[data-theme="red"] {
  --background: #180c0d;
  --panel: #211011;
  --panel-rgb: 33, 16, 17;
  --panel-raised: #2a1516;
  --panel-muted: #371b1d;
  --panel-soft: #482426;
  --stroke: #673135;
  --text: #fff1f1;
  --text-muted: #e1b5b7;
  --text-subtle: #b9878a;
  --text-dim: #d05f67;
  --accent: #ff5f6d;
  --transition-bg: #100708;
  --button-light-hover: #ffc0c6;
  --button-light-hover-text: #211011;
  --button-dark-hover: #5b3034;
  --button-dark-hover-text: var(--text);
}

.swatch-blue {
  background: linear-gradient(135deg, #0d1b47 50%, #2f6dff 50%);
}

.swatch-red {
  background: linear-gradient(135deg, #211011 50%, #ff5f6d 50%);
}

.case-brief {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.case-brief-card,
.case-brief-card + .case-brief-card,
.case-brief-meta,
.case-brief-meta div {
  border: 0;
  padding: 0;
  background: transparent;
}

.case-brief-card + .case-brief-card {
  margin-top: 22px;
}

.case-brief-primary {
  gap: 0;
}

.case-brief-meta {
  padding-left: 0;
  align-content: start;
}

.case-process-strip {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.case-process-strip-head p {
  max-width: none;
}

.case-process-nav,
.case-process-nav.case-process-nav-compact {
  width: 100%;
  justify-content: center;
  padding-bottom: 6px;
}

.care-user-quote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.care-persona-grid {
  margin-top: 14px;
}

.case-anchor {
  scroll-margin-top: 136px;
}

.care-research-section .care-flow-card {
  margin-top: 20px;
}

.care-screen-row {
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}

.care-screen-row.is-dragging {
  cursor: grabbing;
}

.care-screen-row img {
  -webkit-user-drag: none;
  user-select: none;
}

@media (max-width: 1080px) {
  .care-user-quote-grid,
  .care-persona-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .case-process-nav,
  .case-process-nav.case-process-nav-compact {
    justify-content: flex-start;
  }
}

/* ==============================
   v10 requested refinements
   Color picker/button untouched.
   ============================== */
.case-process-strip {
  margin-top: clamp(56px, 6.5vw, 86px);
}

.work-card-care img {
  object-fit: cover;
  object-position: center center;
  background: transparent;
}

.work-card-care .work-card-track {
  align-items: stretch;
}

.work-card-care .work-card-cover {
  display: none;
}


/* ==============================
   v11 - CareRoute truth + smooth draggable rows
   Color picker button markup intentionally untouched.
   ============================== */
.case-process-strip {
  margin-top: clamp(32px, 5vw, 72px);
}

.case-careroute .evidence-card.urgent {
  border-color: var(--border);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.case-carousel-viewport,
.care-screen-row {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  scroll-snap-type: none !important;
  touch-action: pan-y;
}

.case-carousel-viewport.is-dragging,
.care-screen-row.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.case-carousel-viewport img,
.care-screen-row img {
  -webkit-user-drag: none;
  user-select: none;
}

.care-screen-row img {
  scroll-snap-align: none !important;
}

.case-careroute .care-screen-row {
  padding-bottom: 20px;
}

.case-careroute .care-screen-row::-webkit-scrollbar {
  height: 6px;
}

.case-careroute .care-screen-row::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--panel) 68%, transparent);
}

.case-careroute .care-screen-row::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 76%, var(--stroke));
}

.case-careroute .case-carousel-viewport {
  padding-bottom: 2px;
}

.case-careroute .care-phone-carousel .case-carousel-track {
  align-items: flex-start;
}

.case-careroute .care-phone-carousel .case-carousel-slide {
  flex: 0 0 min(84vw, 920px);
}

.case-careroute .care-phone-carousel .case-image {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
}

/* ==============================
   v12 - mobile case table + process shortcut fixes
   Color picker/button untouched.
   ============================== */
@media (max-width: 760px) {
  .case-process-strip {
    margin-top: 34px;
    padding-inline: 0;
    overflow: visible;
  }

  .case-process-strip-head {
    width: 100%;
    text-align: center;
  }

  .case-process-nav,
  .case-process-nav.case-process-nav-compact {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 12px;
    margin-inline: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .case-process-nav a,
  .case-process-nav.case-process-nav-compact a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 9px 12px;
    gap: 7px;
    white-space: nowrap;
  }

  .case-process-nav a + a,
  .case-process-nav.case-process-nav-compact a + a {
    margin-left: 0;
  }

  .case-process-nav a + a::before,
  .case-process-nav.case-process-nav-compact a + a::before {
    display: none;
  }

  .case-process-nav span,
  .case-process-nav.case-process-nav-compact span {
    font-size: 0.64rem;
  }

  .case-process-nav strong,
  .case-process-nav.case-process-nav-compact strong {
    font-size: 0.82rem;
  }

  .comparison-table.task-table {
    display: grid;
    gap: 12px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .comparison-table.task-table > div:first-child {
    display: none;
  }

  .comparison-table.task-table > div:not(:first-child) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    padding: 16px;
    background: color-mix(in srgb, var(--panel) 72%, transparent);
  }

  .comparison-table.task-table > div:not(:first-child) span {
    display: block;
    border: 0;
    padding: 0;
    color: var(--text-muted);
    line-height: 1.45;
  }

  .comparison-table.task-table > div:not(:first-child) span::before {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .comparison-table.task-table > div:not(:first-child) span:nth-child(1)::before {
    content: "Task";
  }

  .comparison-table.task-table > div:not(:first-child) span:nth-child(2)::before {
    content: "Original issue";
  }

  .comparison-table.task-table > div:not(:first-child) span:nth-child(3)::before {
    content: "Redesign decision";
  }

  .comparison-table.task-table > div:not(:first-child) span:nth-child(4)::before {
    content: "Expected improvement";
  }

  .comparison-table.task-table > div:not(:first-child) span:nth-child(1) {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 650;
  }
}

/* ==============================
   v14 - mobile readability + stronger red theme
   Color picker button markup intentionally untouched.
   ============================== */
html[data-theme="red"] {
  --background: #140407;
  --panel: #22070d;
  --panel-rgb: 34, 7, 13;
  --panel-raised: #300b14;
  --panel-muted: #43101d;
  --panel-soft: #5a1728;
  --stroke: #7c2439;
  --text: #fff2f4;
  --text-muted: #f0b8c0;
  --text-subtle: #d78392;
  --text-dim: #ff5f78;
  --accent: #ff3155;
  --transition-bg: #0d0305;
  --button-light-hover: #ffc3cc;
  --button-light-hover-text: #22070d;
  --button-dark-hover: #6b1d31;
  --button-dark-hover-text: var(--text);
}

.swatch-red {
  background: linear-gradient(135deg, #22070d 50%, #ff3155 50%);
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .case-page,
  .case-shell,
  .case-section,
  .case-visual,
  .design-visual,
  .case-final {
    max-width: 100%;
  }

  .case-hero-actions {
    gap: 10px;
    flex-wrap: wrap;
  }

  .case-process-strip {
    width: 100%;
    margin-top: 44px;
    padding: 0;
    overflow: visible;
    text-align: center;
  }

  .case-process-strip-head {
    width: 100%;
    text-align: center;
  }

  .case-process-strip-head p {
    max-width: 100%;
    margin-inline: auto;
  }

  .case-process-nav,
  .case-process-nav.case-process-nav-compact {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 18px auto 0;
    padding: 0 0 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .case-process-nav::-webkit-scrollbar,
  .case-process-nav.case-process-nav-compact::-webkit-scrollbar {
    display: none;
  }

  .case-process-nav a,
  .case-process-nav.case-process-nav-compact a {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 9px 12px;
    gap: 7px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .case-process-nav a + a,
  .case-process-nav.case-process-nav-compact a + a {
    margin-left: 0;
  }

  .case-process-nav a + a::before,
  .case-process-nav.case-process-nav-compact a + a::before {
    display: none;
  }

  .case-process-nav span,
  .case-process-nav.case-process-nav-compact span {
    font-size: 0.62rem;
  }

  .case-process-nav strong,
  .case-process-nav.case-process-nav-compact strong {
    font-size: 0.8rem;
  }

  .comparison-table:not(.task-table) {
    display: grid;
    gap: 12px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .comparison-table:not(.task-table) > div:first-child {
    display: none;
  }

  .comparison-table:not(.task-table) > div:not(:first-child) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    padding: 16px;
    background: color-mix(in srgb, var(--panel) 72%, transparent);
  }

  .comparison-table:not(.task-table) > div:not(:first-child) span {
    display: block;
    border: 0;
    padding: 0;
    color: var(--text-muted);
    line-height: 1.45;
  }

  .comparison-table:not(.task-table) > div:not(:first-child) span::before {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .comparison-table:not(.task-table) > div:not(:first-child) span:nth-child(1)::before {
    content: "Before";
  }

  .comparison-table:not(.task-table) > div:not(:first-child) span:nth-child(2)::before {
    content: "After";
  }

  .case-careroute .case-final,
  .case-careroute .care-phone-carousel {
    padding: 18px 14px;
    overflow: hidden;
  }

  .case-careroute .care-phone-carousel .case-carousel-header {
    display: grid;
    gap: 10px;
  }

  .case-careroute .care-phone-carousel .case-carousel-viewport {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
  }

  .case-careroute .care-phone-carousel .case-carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .case-careroute .care-phone-carousel .case-carousel-track {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: max-content;
    padding: 0;
  }

  .case-careroute .care-phone-carousel .case-carousel-slide,
  .case-careroute .care-phone-carousel .case-carousel-cover {
    flex: 0 0 calc(100vw - 72px);
    max-width: calc(100vw - 72px);
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .case-careroute .care-phone-carousel .case-image {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    border-radius: 4px;
    object-fit: contain;
    background: transparent;
  }

  .case-careroute .care-phone-carousel .case-carousel-slide figcaption {
    overflow: hidden;
    border-top: 0;
    padding: 10px 0 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ==============================
   v16 - final mobile fixes requested
   Color picker button untouched.
   ============================== */

/* CareRoute work preview should not feel faster than the other project previews. */
.work-index-card:first-child .work-card-track {
  animation-duration: 72s;
}

.work-index-card:nth-child(2) .work-card-track,
.work-index-card:nth-child(3) .work-card-track {
  animation-duration: 56s;
}

@media (max-width: 760px) {
  /* Process shortcuts are navigation, not a drag carousel. */
  .case-process-strip {
    margin-top: 34px;
    text-align: center;
  }

  .case-process-nav,
  .case-process-nav.case-process-nav-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 10px;
    width: min(100%, 390px);
    margin: 18px auto 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
    touch-action: auto;
  }

  .case-process-nav a,
  .case-process-nav.case-process-nav-compact a {
    min-width: 0;
    width: 100%;
    justify-content: center;
    padding: 9px 10px;
    white-space: nowrap;
    scroll-snap-align: none;
  }

  .case-process-nav a + a::before,
  .case-process-nav.case-process-nav-compact a + a::before {
    display: none;
  }

  .case-process-nav span,
  .case-process-nav.case-process-nav-compact span {
    font-size: 0.62rem;
  }

  .case-process-nav strong,
  .case-process-nav.case-process-nav-compact strong {
    font-size: 0.78rem;
  }

  /* Before/After must stay side-by-side on mobile. */
  .comparison-table:not(.task-table) {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    background: var(--panel);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .comparison-table:not(.task-table)::-webkit-scrollbar {
    display: none;
  }

  .comparison-table:not(.task-table) > div,
  .comparison-table:not(.task-table) > div:first-child,
  .comparison-table:not(.task-table) > div:not(:first-child) {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 0;
    min-width: 360px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  .comparison-table:not(.task-table) > div:first-child {
    background: var(--panel-muted);
  }

  .comparison-table:not(.task-table) strong,
  .comparison-table:not(.task-table) span,
  .comparison-table:not(.task-table) > div:not(:first-child) span {
    display: block;
    padding: 14px;
    border-right: 1px solid var(--stroke);
    color: var(--text-muted);
    line-height: 1.35;
  }

  .comparison-table:not(.task-table) strong {
    color: var(--text);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .comparison-table:not(.task-table) strong:last-child,
  .comparison-table:not(.task-table) span:last-child {
    border-right: 0;
  }

  .comparison-table:not(.task-table) > div:not(:first-child) span::before {
    content: none !important;
    display: none !important;
  }

  .comparison-table:not(.task-table) > div + div {
    border-top: 1px solid var(--stroke);
  }

  /* Final output carousel: compact, no giant empty panels, no broken slices. */
  .case-careroute .case-final,
  .case-careroute .care-phone-carousel {
    padding: 18px 12px;
    overflow: hidden;
  }

  .case-careroute .care-phone-carousel .case-carousel-header {
    gap: 8px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--stroke);
    background: transparent;
  }

  .case-careroute .care-phone-carousel .case-carousel-header p {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .case-careroute .care-phone-carousel .case-carousel-cue {
    min-height: 30px;
    padding-inline: 11px;
  }

  .case-careroute .care-phone-carousel .case-carousel-viewport {
    margin-top: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .case-careroute .care-phone-carousel .case-carousel-track {
    gap: 12px;
    padding: 0;
    align-items: start;
  }

  .case-careroute .care-phone-carousel .case-carousel-slide,
  .case-careroute .care-phone-carousel .case-carousel-cover {
    flex: 0 0 min(76vw, 315px);
    max-width: min(76vw, 315px);
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: transparent;
  }

  .case-careroute .care-phone-carousel .case-image {
    width: 100%;
    height: clamp(175px, 50vw, 245px);
    max-height: none;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    background: transparent;
  }

  .case-careroute .care-phone-carousel .case-carousel-slide figcaption {
    max-width: 100%;
    overflow: hidden;
    padding: 8px 0 0;
    border: 0;
    background: transparent;
    font-size: 0.78rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .case-process-nav,
  .case-process-nav.case-process-nav-compact {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .case-process-nav a,
  .case-process-nav.case-process-nav-compact a {
    padding: 8px 8px;
  }

  .case-careroute .care-phone-carousel .case-carousel-slide,
  .case-careroute .care-phone-carousel .case-carousel-cover {
    flex-basis: 74vw;
    max-width: 74vw;
  }
}


/* ==============================
   v17 - theme naming, mobile drag, centered lightbox
   Color picker button untouched.
   ============================== */
.case-carousel-viewport,
.care-screen-row {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  scroll-behavior: auto;
  scroll-snap-type: none !important;
}

.case-carousel-track,
.care-screen-row {
  will-change: scroll-position;
}

.case-carousel-viewport.is-touching,
.case-carousel-viewport.is-dragging,
.care-screen-row.is-touching,
.care-screen-row.is-dragging {
  cursor: grabbing;
}

.theme-option[data-theme-value="violet"] .theme-swatch {
  background: linear-gradient(135deg, #1b1029 0 48%, #a986ff 48% 100%);
}

@media (max-width: 760px) {
  .media-lightbox {
    display: grid;
    place-items: center;
    align-items: center;
    justify-items: center;
    padding: 12px;
  }

  .media-lightbox-frame,
  .media-lightbox.is-wide .media-lightbox-frame {
    width: min(100%, calc(100vw - 24px));
    height: auto;
    max-height: calc(100svh - 24px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding-top: 0;
    background: var(--panel);
  }

  .media-lightbox img,
  .media-lightbox.is-wide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100svh - 112px);
    object-fit: contain;
    object-position: center center;
    display: block;
  }

  .media-lightbox-caption,
  .media-lightbox.is-wide .media-lightbox-caption {
    position: static;
    width: 100%;
    min-height: 0;
    max-height: 72px;
    overflow: auto;
    border-right: 0;
    border-top: 1px solid var(--stroke);
    padding: 10px 12px;
    background: var(--panel);
  }

  .media-lightbox-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 3;
  }
}

/* ==============================
   v20 - mobile CareRoute zoom, visible scrollbars, safer picker/form polish
   Color picker button untouched.
   ============================== */

/* All contact drawers now use the shorter form. Keep it tidy on every page. */
.contact-form .form-row + label,
.contact-form label + label {
  margin-top: 0;
}

/* Make horizontal galleries obviously scrollable instead of hiding the bar. */
.case-carousel-viewport,
.care-screen-row {
  scrollbar-width: thin !important;
  scrollbar-color: color-mix(in srgb, var(--accent) 70%, var(--text-muted)) color-mix(in srgb, var(--panel-soft) 70%, transparent) !important;
}

.case-carousel-viewport::-webkit-scrollbar,
.care-screen-row::-webkit-scrollbar {
  display: block !important;
  height: 9px;
}

.case-carousel-viewport::-webkit-scrollbar-track,
.care-screen-row::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--panel-soft) 70%, transparent);
  border-radius: 999px;
}

.case-carousel-viewport::-webkit-scrollbar-thumb,
.care-screen-row::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 72%, var(--text-muted));
  border-radius: 999px;
}

.case-carousel-viewport::-webkit-scrollbar-thumb:hover,
.care-screen-row::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Stop the mobile page from moving behind the color menu. */
body.theme-open {
  overscroll-behavior: none;
}

.theme-menu {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(var(--panel-rgb), 0.38);
}

.theme-menu::-webkit-scrollbar {
  width: 8px;
}

.theme-menu::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

@media (max-width: 760px) {
  body.theme-open {
    overflow: hidden;
  }

  .theme-picker {
    left: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .theme-menu {
    position: fixed;
    left: 14px;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 66px);
    width: min(240px, calc(100vw - 28px));
    max-height: min(58svh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .theme-option {
    min-height: 44px;
  }

  /* Native mobile swipe should handle galleries. Desktop keeps pointer drag. */
  .case-carousel-viewport,
  .care-screen-row {
    cursor: auto !important;
    touch-action: pan-x !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity !important;
    padding-bottom: 10px;
  }

  .case-carousel-slide {
    scroll-snap-align: start;
  }

  /* CareRoute phone screenshots need to read bigger on mobile. */
  .case-careroute .care-phone-carousel .case-carousel-slide,
  .case-careroute .care-phone-carousel .case-carousel-cover {
    flex-basis: min(82vw, 360px) !important;
  }

  .case-careroute .care-phone-carousel .case-image {
    width: 100%;
    height: min(72svh, 680px);
    object-fit: cover !important;
    object-position: center top;
  }

  .case-careroute .care-screen-row img {
    min-width: min(82vw, 360px);
    height: min(70svh, 660px);
    object-fit: cover;
    object-position: center top;
  }

  /* When a CareRoute phone shot opens, keep it centered and zoomed, not tiny. */
  .media-lightbox.is-care-route .media-lightbox-frame {
    width: min(100%, calc(100vw - 20px));
    height: min(86svh, 760px);
    max-height: calc(100svh - 20px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .media-lightbox.is-care-route img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center top;
    background: var(--background);
  }

  .media-lightbox.is-care-route .media-lightbox-caption {
    max-height: 70px;
  }
}

/* ==============================
   v21 - mobile scroll, header, work-card spacing, and universal centered lightbox
   Color picker button markup intentionally untouched.
   ============================== */

/* Work page project-card image strips: reduce image gaps on desktop and mobile. */
.work-card-track {
  gap: 8px;
}

@media (max-width: 760px) {
  .work-card-track {
    gap: 6px;
  }
}

/* Mobile header should stay in one predictable place on every page. */
@media (max-width: 760px) {
  .site-header {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    z-index: 90;
    width: calc(100% - 24px);
    margin: 0;
    transform: translateX(-50%);
  }

  main {
    padding-top: 96px;
  }

  .nav-shell {
    min-height: 58px;
  }
}

/* Mobile horizontal galleries: show a permanent scroll hint and allow vertical page scrolling. */
@media (max-width: 760px) {
  .case-carousel-viewport,
  .care-screen-row {
    position: relative;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-bottom: 18px !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y !important;
    scrollbar-width: thin !important;
    scrollbar-color: color-mix(in srgb, var(--accent) 88%, white 4%) color-mix(in srgb, var(--panel-soft) 84%, transparent) !important;
    background-image:
      linear-gradient(90deg, color-mix(in srgb, var(--accent) 92%, white 4%), color-mix(in srgb, var(--accent) 92%, white 4%)),
      linear-gradient(90deg, color-mix(in srgb, var(--panel-soft) 92%, transparent), color-mix(in srgb, var(--panel-soft) 92%, transparent));
    background-repeat: no-repeat;
    background-size: 32% 5px, 100% 5px;
    background-position: left bottom, left bottom;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }

  .case-carousel-viewport::-webkit-scrollbar,
  .care-screen-row::-webkit-scrollbar {
    display: block !important;
    height: 10px !important;
  }

  .case-carousel-viewport::-webkit-scrollbar-track,
  .care-screen-row::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--panel-soft) 86%, transparent) !important;
    border-radius: 999px;
  }

  .case-carousel-viewport::-webkit-scrollbar-thumb,
  .care-screen-row::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent) 90%, white 4%) !important;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--background) 80%, transparent);
  }
}

/* Mobile lightbox: all case studies should open centered/focused, not only CareRoute. */
@media (max-width: 760px) {
  .media-lightbox,
  .media-lightbox.is-wide {
    display: grid;
    place-items: center;
    align-items: center;
    justify-items: center;
    padding: 12px;
  }

  .media-lightbox-frame,
  .media-lightbox.is-wide .media-lightbox-frame,
  .media-lightbox.is-care-route .media-lightbox-frame {
    width: min(100%, calc(100vw - 24px));
    height: auto;
    max-height: calc(100svh - 24px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding-top: 0;
    background: var(--panel);
  }

  .media-lightbox img,
  .media-lightbox.is-wide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100svh - 112px);
    display: block;
    object-fit: contain;
    object-position: center center;
  }

  .media-lightbox.is-care-route img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center top;
  }

  .media-lightbox-caption,
  .media-lightbox.is-wide .media-lightbox-caption,
  .media-lightbox.is-care-route .media-lightbox-caption {
    position: static;
    width: 100%;
    min-height: 0;
    max-height: 72px;
    overflow: auto;
    border-right: 0;
    border-top: 1px solid var(--stroke);
    padding: 10px 12px;
    background: var(--panel);
  }
}

/* Mobile: remove animated decorative background layers for a calmer, lighter page. */
@media (max-width: 760px) {
  .background-waves {
    display: none !important;
  }
}

/* v24 - mobile galleries: real persistent scrollbar + contact drawer above fixed header */
@media (max-width: 760px) {
  .case-carousel-viewport,
  .care-screen-row {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 0 !important;
    background-image: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y !important;
    scrollbar-width: none !important;
  }

  .case-carousel-viewport::-webkit-scrollbar,
  .care-screen-row::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .mobile-gallery-scrollbar {
    position: relative;
    display: block;
    width: 100%;
    height: 8px;
    margin: 10px 0 0;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel-soft) 78%, var(--background));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stroke) 72%, transparent);
    cursor: pointer;
    touch-action: none;
  }

  .mobile-gallery-scrollbar[hidden] {
    display: none;
  }

  .mobile-gallery-scrollbar-thumb {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    min-width: 54px;
    border-radius: inherit;
    background: var(--accent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 44%, transparent);
    will-change: left, width;
  }

  .contact-drawer-shell {
    z-index: 140;
  }

  .contact-drawer {
    padding-top: max(28px, calc(env(safe-area-inset-top) + 18px));
  }

  .drawer-close {
    top: max(16px, calc(env(safe-area-inset-top) + 8px));
    right: 16px;
    z-index: 150;
  }
}


/* v25: writing cleanup, source links, and iOS form zoom fix */
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 18px;
  font-size: 0.84rem;
}
.source-links span {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.source-links a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source-links a:hover,
.source-links a:focus-visible {
  color: var(--text);
}
@media (max-width: 820px) {
  input,
  select,
  textarea,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px !important;
  }
}


/* ==============================
   v26 CareRoute focused case study
   ============================== */
.care-product-summary {
  margin-top: clamp(34px, 5vw, 72px);
  max-width: 980px;
}
.care-product-summary h2 {
  max-width: 900px;
  margin: 8px 0 12px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.care-product-summary > p:last-child {
  max-width: 760px;
  color: var(--text-subtle);
}
.care-hero-meta {
  margin-top: clamp(22px, 3vw, 36px);
  padding-top: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--stroke);
}
.care-three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.supporting-gallery {
  overflow: hidden;
}
@media (max-width: 860px) {
  .care-three-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .care-product-summary { margin-top: 28px; }
  .care-product-summary h2 { font-size: clamp(32px, 10vw, 48px); }
  .care-hero-meta { grid-template-columns: 1fr; }
}


/* CareRoute v27: interview detail and explicit flow sections */
.care-interview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.care-interview-card {
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1.15rem;
  background: color-mix(in srgb, var(--surface-color) 88%, transparent);
}
.care-interview-card > span,
.care-interview-meta {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}
.care-interview-card h3 {
  margin: .55rem 0 .2rem;
  font-size: 1.35rem;
}
.care-interview-card p {
  margin: .7rem 0;
  line-height: 1.55;
}
.care-interview-card blockquote {
  margin: .9rem 0;
  padding-left: .85rem;
  border-left: 2px solid var(--accent-color);
  font-size: 1rem;
  line-height: 1.45;
}
.care-interview-card ul {
  margin: .7rem 0 0;
  padding-left: 1rem;
}
.care-interview-card li {
  margin: .45rem 0;
  line-height: 1.45;
}
.care-research-summary {
  margin-top: 1.25rem;
}
.care-feature-gallery {
  margin-top: 1.4rem;
}
@media (max-width: 820px) {
  .care-interview-grid { grid-template-columns: 1fr; }
  .care-interview-card { padding: 1rem; }
  .care-interview-card h3 { font-size: 1.15rem; }
}


/* CareRoute v28: compact research bridge and journey strip */
.care-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.care-source-note {
  margin: 1rem 0 0;
  color: var(--text-subtle);
  font-size: .86rem;
}
.care-synthesis-table {
  margin-top: 1.4rem;
}
.care-journey-compare {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}
.care-journey-compare article {
  border: 1px solid var(--border-color);
  border-radius: .85rem;
  padding: 1rem;
  background: color-mix(in srgb, var(--surface-color) 88%, transparent);
}
.care-journey-compare article > span,
.care-requirement-list span {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}
.care-journey-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .6rem;
  margin-top: .8rem;
}
.care-journey-strip strong {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  padding: .7rem .8rem;
  border: 1px solid var(--stroke);
  border-radius: .65rem;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.25;
}
.care-journey-strip strong:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -.52rem;
  z-index: 2;
  color: var(--accent-color);
  font-weight: 700;
}
.care-requirement-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.care-requirement-list article {
  border-top: 1px solid var(--stroke);
  padding-top: .9rem;
}
.care-requirement-list p {
  margin: .65rem 0 0;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .care-secondary-grid,
  .care-requirement-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-journey-strip { grid-template-columns: 1fr; gap: .48rem; }
  .care-journey-strip strong { min-height: auto; }
  .care-journey-strip strong:not(:last-child)::after {
    content: '↓';
    right: auto;
    left: 50%;
    bottom: -.64rem;
    transform: translateX(-50%);
  }
}
@media (max-width: 560px) {
  .care-secondary-grid,
  .care-requirement-list { grid-template-columns: 1fr; }
}


/* v29: CareRoute hero simplification */
.case-careroute .case-tldr {
  margin-top: clamp(34px, 4vw, 54px);
}
@media (max-width: 760px) {
  .case-careroute .case-tldr {
    margin-top: 26px;
  }
}


/* v30 CareRoute: restore the editorial case-study rhythm used by the game pages */
.case-careroute .care-user-quote-grid,
.case-careroute .care-persona-grid,
.case-careroute .evidence-grid,
.case-careroute .decision-grid {
  margin-top: 1.35rem;
}
.case-careroute .care-user-quote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.case-careroute .care-user-quote-grid .quote-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.case-careroute .care-user-quote-grid .quote-card p {
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.5;
}
.case-careroute .care-user-quote-grid cite {
  margin-top: 1.3rem;
}
.case-careroute .care-persona-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.case-careroute .care-research-summary {
  margin-top: 2.1rem;
}
.case-careroute .care-research-summary > .case-kicker {
  margin-bottom: .85rem;
}
.case-careroute .care-source-note {
  margin-top: .9rem;
  opacity: .72;
}
.case-careroute .care-journey-compare-flow {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}
.case-careroute .care-journey-compare-flow .care-flow-card {
  margin: 0;
}
.case-careroute .care-flow-label {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.case-careroute .care-journey-compare-flow .care-flow {
  margin-top: 0;
}
.case-careroute .care-requirement-list {
  margin-top: 1.2rem;
}
@media (max-width: 900px) {
  .case-careroute .care-user-quote-grid,
  .case-careroute .care-persona-grid {
    grid-template-columns: 1fr;
  }
  .case-careroute .care-user-quote-grid .quote-card {
    min-height: auto;
  }
}

/* v31 - Mobile uses a clean flat theme background with no decorative glow layers. */
@media (max-width: 760px) {
  body::before,
  .background-waves {
    display: none !important;
  }

  html,
  body {
    background-image: none !important;
  }
}


/* v32 - Compact CareRoute research and requirements */
.case-careroute .care-interview-list {
  display: grid;
  gap: 10px;
  margin-top: 1.35rem;
}
.case-careroute .care-interview-item {
  display: grid;
  grid-template-columns: minmax(170px, .72fr) minmax(240px, 1fr) minmax(300px, 1.25fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  border-top: 1px solid var(--stroke);
  padding: 18px 0;
}
.case-careroute .care-interview-item:last-child {
  border-bottom: 1px solid var(--stroke);
}
.case-careroute .care-interview-meta span,
.case-careroute .care-interview-meta small {
  display: block;
}
.case-careroute .care-interview-meta span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-careroute .care-interview-meta small {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.35;
}
.case-careroute .care-interview-body h3,
.case-careroute .care-interview-body p,
.case-careroute .care-interview-item blockquote {
  margin: 0;
}
.case-careroute .care-interview-body h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}
.case-careroute .care-interview-body p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.case-careroute .care-interview-item blockquote {
  color: var(--text);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.42;
}
.case-careroute .care-research-summary {
  margin-top: clamp(34px, 4vw, 54px);
}
.case-careroute .care-compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: .95rem 0 0;
  padding: 0;
  border-top: 1px solid var(--stroke);
  list-style: none;
}
.case-careroute .care-compact-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--stroke);
  padding: 15px 4px 15px 0;
}
.case-careroute .care-compact-list li:nth-child(odd) {
  padding-right: 18px;
}
.case-careroute .care-compact-list li:nth-child(even) {
  border-left: 1px solid var(--stroke);
  padding-left: 18px;
}
.case-careroute .care-compact-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.case-careroute .care-compact-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.42;
}
.case-careroute .care-requirement-list {
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .case-careroute .care-interview-item {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 12px 20px;
  }
  .case-careroute .care-interview-item blockquote {
    grid-column: 1 / -1;
    color: var(--text-muted);
  }
}
@media (max-width: 560px) {
  .case-careroute .care-interview-item {
    display: block;
    padding: 15px 0;
  }
  .case-careroute .care-interview-body {
    margin-top: 12px;
  }
  .case-careroute .care-interview-item blockquote {
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid var(--accent);
    font-size: 15px;
    line-height: 1.45;
  }
  .case-careroute .care-compact-list {
    grid-template-columns: 1fr;
  }
  .case-careroute .care-compact-list li,
  .case-careroute .care-compact-list li:nth-child(odd),
  .case-careroute .care-compact-list li:nth-child(even) {
    border-left: 0;
    padding: 13px 0;
  }
}


/* v34 - CareRoute interview merge and compact editorial lists */
.case-careroute .care-interview-list {
  margin-top: 1rem;
}
.case-careroute .care-research-summary {
  margin-top: clamp(24px, 3vw, 40px);
}
.case-careroute .care-compact-list {
  gap: 0;
}
@media (max-width: 560px) {
  .case-careroute .care-interview-list {
    gap: 0;
    border-top: 1px solid var(--stroke);
  }
  .case-careroute .care-interview-item {
    padding: 14px 0;
    border-top: 0;
    border-bottom: 1px solid var(--stroke);
  }
  .case-careroute .care-interview-meta small {
    margin-top: 4px;
  }
  .case-careroute .care-interview-body {
    margin-top: 10px;
  }
  .case-careroute .care-interview-body p {
    margin-top: 5px;
  }
  .case-careroute .care-interview-item blockquote {
    margin-top: 10px;
  }
  .case-careroute .care-research-summary {
    margin-top: 24px;
  }
  .case-careroute .care-compact-list {
    margin-top: .55rem;
  }
  .case-careroute .care-compact-list li,
  .case-careroute .care-compact-list li:nth-child(odd),
  .case-careroute .care-compact-list li:nth-child(even) {
    min-height: 0;
    padding: 11px 0;
  }
  .case-careroute .care-compact-list p {
    font-size: 14px;
    line-height: 1.38;
  }
}

/* v35 - Compact CareRoute editorial rows on mobile */
@media (max-width: 760px) {
  .case-careroute .care-compact-list,
  .case-careroute .care-requirement-list {
    display: block;
    margin-top: .65rem;
    border-top: 1px solid var(--stroke);
  }

  .case-careroute .care-compact-list li,
  .case-careroute .care-compact-list li:nth-child(odd),
  .case-careroute .care-compact-list li:nth-child(even),
  .case-careroute .care-requirement-list li,
  .case-careroute .care-requirement-list li:nth-child(odd),
  .case-careroute .care-requirement-list li:nth-child(even) {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    min-height: 0 !important;
    margin: 0;
    padding: 11px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--stroke) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .case-careroute .care-compact-list span,
  .case-careroute .care-requirement-list span {
    padding-top: 1px;
    font-size: 11px;
    line-height: 1.35;
  }

  .case-careroute .care-compact-list p,
  .case-careroute .care-requirement-list p {
    margin: 0;
    font-size: 14px;
    line-height: 1.42;
  }

  .case-careroute .decision-grid {
    display: block;
    margin-top: .7rem;
    border-top: 1px solid var(--stroke);
  }

  .case-careroute .decision-grid .decision-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0 !important;
    margin: 0;
    padding: 12px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--stroke) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .case-careroute .decision-grid .decision-item span {
    margin-bottom: 7px;
    font-size: 11px;
    line-height: 1.25;
  }

  .case-careroute .decision-grid .decision-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.46;
  }

  .case-careroute .care-research-summary {
    margin-top: 20px;
  }
}


/* v39 - CareRoute prototype-to-final comparison gallery */
.case-careroute .care-prototype-gallery {
  overflow: hidden;
}
.case-careroute .care-prototype-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px 18px 16px;
  scroll-snap-type: x proximity;
}
.case-careroute .care-prototype-pair {
  flex: 0 0 min(760px, 86vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  scroll-snap-align: start;
}
.case-careroute .care-prototype-pair > div {
  min-width: 0;
}
.case-careroute .care-prototype-pair span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-careroute .care-prototype-pair img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}
.case-careroute .care-prototype-pair p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 2px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 760px) {
  .case-careroute .care-prototype-row {
    gap: 12px;
    padding: 14px 12px 12px;
  }
  .case-careroute .care-prototype-pair {
    flex-basis: 88vw;
    gap: 8px;
  }
  .case-careroute .care-prototype-pair span {
    margin-bottom: 6px;
    font-size: 10px;
  }
  .case-careroute .care-prototype-pair p {
    font-size: 13px;
  }
}

/* v40: prototype-to-final comparison uses standalone final UI exports */
.case-careroute .care-prototype-pair > div:nth-of-type(2) img {
  object-fit: contain;
  background: transparent;
}
