@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600;6..72,700&display=swap");

:root {
  --ink: #151515;
  --ink-soft: #5a5a5a;
  --paper: #f5f5f3;
  --line: #d7d7d2;
  --panel: #ffffff;
  --card: #ffffff;
  --shadow: 0 16px 32px rgba(15, 15, 15, 0.08);
  --accent: #1b8f6a;
  --font-heading: "Newsreader", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Global typography scale: reuse these across all pages/sections. */
  --type-h1-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --type-h2-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --type-h3-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  --type-body-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --type-h1-line: 1.15;
  --type-h2-line: 1.2;
  --type-h3-line: 1.3;
  --type-body-line: 1.5;
  --type-h1-weight: 600;
  --type-h2-weight: 600;
  --type-h3-weight: 600;
  --type-body-weight: 400;
  --ui-image-ratio: 1600 / 1024;

  --ui-card-pad-y: 80px;
  --ui-card-pad-x: 40px;
  --ui-section-gap: 40px;
  --ui-title-stack-gap: 12px;
  --ui-section-title-size: var(--type-h2-size);
  --ui-result-number-size: var(--type-h2-size);
}

@media (max-width: 980px) {
  :root {
    --ui-card-pad-y: 64px;
    --ui-card-pad-x: 28px;
    --ui-section-gap: 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --ui-card-pad-y: 48px;
    --ui-card-pad-x: 20px;
    --ui-section-gap: 20px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
}

p {
  font-family: var(--font-body);
}

input,
button,
textarea,
select {
  font-family: var(--font-body);
}

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

.bg-orb,
.bg-grid {
  display: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 24px;
}

.floating-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  border: none;
  z-index: 10;
  background: transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-weight: 600;
}

.name-top {
  font-weight: 600;
}

.name-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav a:hover {
  border-bottom-color: var(--ink);
}

.nav .resume {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
}

.nav-pill {
  display: inline-flex;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-weight: 500;
}

.nav-pill a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-pill a:hover {
  background: #ffffff;
}

main {
  padding: 0 40px 24px;
}

.grid-layout {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 40px;
  padding: 120px 20px 56px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.35;
  margin: 0 0 18px;
  color: #2b2f36;
}

.hero-body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 520px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-illustration {
  width: min(320px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: linear-gradient(135deg, #f1f1ef, #deded8);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-left: -40px;
  margin-right: -40px;
  width: calc(100% + 80px);
}

.grid-card {
  aspect-ratio: 1 / 1;
  min-height: 280px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.grid-card:nth-child(2n) {
  border-right: none;
}

.grid-card:nth-child(1),
.grid-card:nth-child(2) {
  border-top: none;
}

.grid-card:hover {
  background: #efefec;
  transform: translateY(-2px);
}

.grid-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.grid-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

.grid-arrow {
  margin-top: 12px;
  font-size: 1.4rem;
  color: var(--ink);
}

.grid-card.muted {
  color: var(--ink-soft);
  background: #f0f0ed;
}

.grid-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 143, 106, 0.16), rgba(241, 162, 58, 0.12));
  opacity: 0.35;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.grid-card:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(9, 78, 121, 0.18), rgba(27, 143, 106, 0.12));
}

.grid-card:nth-child(3)::before {
  background: linear-gradient(135deg, rgba(241, 162, 58, 0.2), rgba(244, 120, 90, 0.14));
}

.grid-card:nth-child(4)::before {
  background: linear-gradient(135deg, rgba(120, 130, 160, 0.15), rgba(240, 240, 236, 0.05));
}

.grid-card:nth-child(5)::before {
  background: linear-gradient(135deg, rgba(27, 143, 106, 0.12), rgba(11, 75, 216, 0.08));
}

.grid-card:nth-child(6)::before {
  background: linear-gradient(135deg, rgba(240, 74, 58, 0.16), rgba(241, 162, 58, 0.1));
}

.grid-card:hover::before {
  opacity: 0.55;
}

.grid-media {
  width: 100%;
  height: 120px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(27, 143, 106, 0.18), rgba(241, 162, 58, 0.14));
}

.grid-card > * {
  position: relative;
  z-index: 1;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 22px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-left: -40px;
  margin-right: -40px;
  width: calc(100% + 80px);
}

.site-footer {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.case-hero {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  margin-top: 40px;
}

.case-hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.case-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.meta-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--ink-soft);
}

.meta-value {
  font-weight: 600;
}

.case-hero-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.case-impact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.impact-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.impact-label {
  color: var(--ink-soft);
}

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

.case-section h3 {
  margin: 0 0 12px;
}

.two-col {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.case-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.case-pill-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(240, 74, 58, 0.12);
  color: var(--accent-warm-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.process-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.process-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
}

.decision-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.decision-card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
}

.case-image {
  margin-top: 24px;
}

.image-placeholder {
  background: #fafafa;
  border: 1px dashed var(--line);
  border-radius: 18px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  text-align: center;
  padding: 24px;
}

.image-hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.outcome-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.outcome-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
}

body.modal-open {
  overflow: hidden;
}

.case-passcode-gate {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 26, 0.2);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  display: grid;
  place-items: center;
  z-index: 120;
  padding: 20px;
}

.case-passcode-gate.hidden {
  display: none;
}

.case-passcode-panel {
  position: relative;
  width: min(480px, 100%);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.9),
    rgba(246, 248, 251, 0.78)
  );
  box-shadow:
    0 14px 40px rgba(33, 45, 59, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 32px;
  display: block;
}

.case-passcode-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 30px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.06)
  );
}

.case-passcode-panel > * {
  position: relative;
  z-index: 1;
}

.case-passcode-eyebrow {
  margin: 0;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 500;
  line-height: 1.25;
  color: #101621;
}

.case-passcode-panel h2 {
  margin: 16px 0 0;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  line-height: 1.15;
  font-weight: 500;
  color: #0f1723;
}

.case-passcode-form {
  display: block;
  margin-top: 32px;
}

.case-passcode-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid rgba(194, 199, 206, 0.95);
  background: rgba(255, 255, 255, 0.9);
  color: #1e2937;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 32px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.case-passcode-form input::placeholder {
  color: rgba(40, 44, 50, 0.35);
}

.case-passcode-form input:focus {
  outline: none;
  border-color: rgba(127, 140, 158, 0.95);
  box-shadow: 0 0 0 3px rgba(125, 160, 202, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

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

/* Standard button visual system (reused across the site). */
.site-button {
  appearance: none;
  width: 100%;
  border-radius: 16px;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease;
}

.site-button-primary {
  background: #2c2c30;
  color: rgba(248, 248, 249, 0.96);
}

.site-button-secondary {
  border: 2px solid rgba(214, 217, 223, 0.95);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(38, 43, 51, 0.92);
}

.site-button-primary:hover {
  background: #3a3a41;
}

.site-button-secondary:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(197, 202, 209, 0.95);
}

@media (max-width: 640px) {
  .case-passcode-panel {
    border-radius: 26px;
  }

  .case-passcode-panel::before {
    border-radius: 24px;
  }
}

@media (max-width: 900px) {
  main {
    padding: 0 24px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 120px 20px 48px;
  }

  .site-footer {
    padding: 20px 24px;
    flex-direction: column;
    gap: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }

  .grid-card {
    border-right: none;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }
}

@media (max-width: 600px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-pill {
    width: 100%;
    justify-content: space-between;
  }
}

/* Homepage redesign */
.home-page {
  --home-bg: #e8eaee;
  --home-line: #c7ced7;
  --home-text: #2a3340;
  --home-text-strong: #1f2834;
  --home-text-main: #2d3746;
  --home-text-soft: #4d5a6b;
  --home-text-muted: #5f6b7b;
  --home-placeholder: #d8d2d4;
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 14% -20%, #f0f2f6 0%, #e8eaee 42%, #e7e9ed 100%);
  color: var(--home-text);
}

.home-page .home-nav-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.home-page .home-nav {
  position: relative;
  display: inline-flex;
  width: 300px;
  justify-content: space-between;
  gap: 6px;
  padding: 7px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.62), rgba(240, 245, 250, 0.42));
  box-shadow: 0 14px 40px rgba(33, 45, 59, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.home-page .home-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06));
}

.home-page .home-nav a {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--home-text-main);
  transition: background 0.25s ease, color 0.25s ease;
}

.home-page .home-nav a:hover {
  background: rgba(255, 255, 255, 0.5);
}

.home-page .home-nav a.is-active {
  background: rgba(255, 255, 255, 0.58);
  font-weight: 600;
}

.home-page .home-main {
  width: 100%;
  padding: 0;
}

.home-page .home-inner {
  width: min(100%, 1400px);
  margin: 0 auto;
}

.home-page .home-hero {
  border-bottom: 1px solid var(--home-line);
}

.home-page .home-hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: var(--ui-section-gap);
  padding: 100px var(--ui-card-pad-x) 0;
}

.home-page .hero-text {
  padding-bottom: 80px;
}

.home-page .hero-text h1 {
  margin: 0;
  max-width: none;
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  letter-spacing: -0.02em;
  color: var(--home-text-strong);
  font-weight: var(--type-h1-weight);
}

.home-page .hero-location {
  margin: 12px 0 0;
  color: var(--home-text-soft);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
}

.home-page .hero-image-col {
  display: flex;
  justify-content: center;
}

.home-page .media-shell {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}

.home-page .portrait-shell {
  max-width: 470px;
  align-self: end;
  border-radius: 16px 16px 0 0;
}

.home-page .portrait-shell img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

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

.home-page .work-card {
  display: block;
  min-height: 530px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  transition: background-color 0.28s ease;
}

.home-page .work-card:nth-child(2n) {
  border-right: none;
}

.home-page .work-card .card-content {
  width: min(100%, 700px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--ui-section-gap);
  padding: var(--ui-card-pad-y) var(--ui-card-pad-x);
}

.home-page .work-card:nth-child(odd) .card-content {
  margin-left: auto;
}

.home-page .work-card:nth-child(even) .card-content {
  margin-right: auto;
}

.home-page .work-card p {
  margin: 0;
  max-width: none;
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  letter-spacing: -0.02em;
  font-weight: var(--type-h2-weight);
  color: var(--home-text-main);
}

.home-page .work-card.case-entry p {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--type-h2-weight);
  letter-spacing: -0.02em;
}

.home-page .text-highlight {
  color: var(--accent);
  font-weight: 600;
}

.home-page .work-card.has-media p {
  color: var(--home-text-main);
}

.home-page .work-card.text-only p {
  color: var(--home-text-soft);
}

.home-page .work-card.is-clickable {
  cursor: pointer;
}

.home-page .work-card.is-clickable:hover {
  background: rgba(255, 255, 255, 0.28);
}

.home-page .work-card.has-media .work-media {
  width: 100%;
  aspect-ratio: var(--ui-image-ratio);
  margin: auto auto 0;
  background: transparent;
  overflow: hidden;
}

.home-page .work-card.has-media .work-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.home-page .work-card.text-only .card-content {
  justify-content: center;
}

.home-page .work-card.with-support-media .card-content {
  justify-content: space-between;
}

.home-page .gear-section {
  gap: var(--ui-section-gap);
}

.home-page .gear-section p {
  color: var(--home-text-muted);
}

.home-page .support-media {
  margin: 0;
  align-self: center;
  background: transparent;
}

.home-page .support-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

.home-page .hummingbird-media {
  width: clamp(120px, 20%, 170px);
}

.home-page .gear-media {
  width: clamp(120px, 20%, 170px);
}

.home-page .support-media.is-missing {
  min-height: 130px;
  width: min(240px, 90%);
  border: 1px dashed var(--home-line);
  border-radius: 16px;
  background: rgba(225, 229, 236, 0.7);
  display: grid;
  place-items: center;
}

.home-page .missing-image-label {
  display: none;
}

.home-page .media-shell.is-missing {
  min-height: 280px;
  border: 1px dashed var(--home-line);
  background: #e1e5ec;
  display: grid;
  place-items: center;
}

.home-page .portrait-shell.is-missing {
  min-height: 460px;
}

.home-page .media-shell.is-missing .missing-image-label {
  display: block;
  margin: 0;
  padding: 14px 18px;
  text-align: center;
  color: #4c5665;
  font-size: 0.95rem;
}

.home-page .support-media.media-shell.is-missing {
  min-height: 130px;
  width: min(240px, 90%);
  border-radius: 16px;
}

.home-page .home-contact {
  border-bottom: 1px solid var(--home-line);
}

.home-page .home-contact .home-inner {
  padding: var(--ui-card-pad-y) var(--ui-card-pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--ui-section-gap);
}

.home-page .home-footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--ui-section-gap);
}

.home-page .home-footer-email {
  margin: 0;
  justify-self: start;
  color: var(--home-text-strong);
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--type-h2-weight);
  letter-spacing: -0.02em;
}

.home-page .home-footer-link,
.home-page .home-footer-year {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
  color: var(--home-text-main);
}

.home-page .home-footer-link {
  justify-self: center;
  transition: color 0.2s ease;
}

.home-page .home-footer-year {
  justify-self: end;
}

.home-page .home-footer-link:hover {
  color: var(--home-text-soft);
}

@media (max-width: 980px) {
  .home-page .home-footer-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-page .home-footer-link,
  .home-page .home-footer-year {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .home-page .home-footer-email {
    font-size: var(--type-h3-size);
    line-height: var(--type-h3-line);
    font-weight: var(--type-h3-weight);
    letter-spacing: -0.01em;
  }
}

@media (max-width: 980px) {
  .home-page .home-hero-inner {
    padding-top: 100px;
    grid-template-columns: 1fr;
    gap: var(--ui-section-gap);
  }

  .home-page .hero-text h1 {
    max-width: none;
  }

  .home-page .hero-image-col {
    justify-content: center;
  }

  .home-page .portrait-shell {
    max-width: 360px;
  }

  .home-page .work-grid {
    grid-template-columns: 1fr;
  }

  .home-page .work-card {
    min-height: auto;
    border-right: none;
  }

  .home-page .work-card .card-content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-height: auto;
  }

  .home-page .work-card p {
    max-width: none;
    font-size: var(--type-h2-size);
  }

}

@media (max-width: 640px) {
  .home-page .home-nav {
    width: calc(100vw - 24px);
    justify-content: space-between;
  }

  .home-page .home-nav a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .home-page .home-hero-inner {
    padding-left: var(--ui-card-pad-x);
    padding-right: var(--ui-card-pad-x);
  }

  .home-page .work-card .card-content {
    padding-left: var(--ui-card-pad-x);
    padding-right: var(--ui-card-pad-x);
  }

  .home-page .home-contact .home-inner {
    padding-left: var(--ui-card-pad-x);
    padding-right: var(--ui-card-pad-x);
  }
}

/* Case page redesign */
.case-page {
  --case-line: #c7ced7;
  --case-text: #2a3340;
  --case-soft: #4d5767;
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 14% -20%, #f0f2f6 0%, #e8eaee 42%, #e7e9ed 100%);
  color: var(--case-text);
}

.case-page .case-nav-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.case-page .case-nav {
  position: relative;
  display: inline-flex;
  gap: 6px;
  padding: 7px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.62), rgba(240, 245, 250, 0.42));
  box-shadow: 0 14px 40px rgba(33, 45, 59, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.case-page .case-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06));
}

.case-page .case-nav a {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.94rem;
  color: rgba(32, 43, 56, 0.93);
  transition: background 0.25s ease;
}

.case-page .case-nav a:hover {
  background: rgba(255, 255, 255, 0.5);
}

.case-page .case-main {
  padding: 0 0 48px;
}

.case-page .case-shell {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 118px clamp(20px, 3.8vw, 56px) 0;
}

.case-page .case-hero {
  margin: 0;
  padding: 28px 0 44px;
  border-bottom: 1px solid var(--case-line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  align-items: start;
}

.case-page .eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  color: rgba(45, 57, 73, 0.68);
  font-weight: 600;
}

.case-page .case-hero-text h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--case-text);
  font-weight: 600;
}

.case-page .lead {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.48;
  color: var(--case-soft);
}

.case-page .case-hero-meta {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-page .case-hero-meta > div {
  padding: 12px 14px;
  border: 1px solid var(--case-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
}

.case-page .meta-label {
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  color: rgba(50, 62, 78, 0.65);
  margin-bottom: 4px;
}

.case-page .meta-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--case-text);
}

.case-page .case-hero-card {
  position: relative;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.62), rgba(236, 241, 247, 0.46));
  box-shadow: 0 18px 34px rgba(20, 30, 42, 0.14);
  display: grid;
  gap: 10px;
}

.case-page .case-impact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(156, 169, 184, 0.38);
}

.case-page .case-impact:last-child {
  border-bottom: none;
}

.case-page .impact-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: #243242;
}

.case-page .impact-label {
  color: var(--case-soft);
  font-size: 0.95rem;
}

.case-page .case-section {
  margin: 0;
  padding: 46px 0;
  border-bottom: 1px solid var(--case-line);
}

.case-page .section-header {
  max-width: 980px;
}

.case-page .section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.42rem, 2vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.case-page .section-header p,
.case-page .case-section p,
.case-page .case-list li {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--case-soft);
}

.case-page .case-section h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.case-page .case-section h4 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  letter-spacing: -0.01em;
}

.case-page .two-col {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-page .case-list {
  margin: 0;
  padding-left: 20px;
}

.case-page .case-pill-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-page .case-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--case-line);
  background: rgba(255, 255, 255, 0.5);
  color: #334153;
  font-weight: 600;
  font-size: 0.9rem;
}

.case-page .process-grid,
.case-page .decision-grid,
.case-page .outcome-grid {
  margin-top: 22px;
}

.case-page .process-card,
.case-page .decision-card,
.case-page .outcome-card {
  border: 1px solid var(--case-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(5px) saturate(115%);
  -webkit-backdrop-filter: blur(5px) saturate(115%);
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.case-page .process-card,
.case-page .outcome-card {
  padding: 18px;
}

.case-page .decision-card {
  padding: 20px;
}

.case-page .process-card:hover,
.case-page .decision-card:hover,
.case-page .outcome-card:hover {
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-2px);
}

.case-page .case-image {
  margin-top: 22px;
}

.case-page .image-placeholder {
  margin: 0;
  border-radius: 16px;
  border: none;
  background: transparent;
  min-height: 420px;
  padding: 0;
  display: grid;
  place-items: center;
  gap: 12px;
}

.case-page .image-placeholder img {
  display: block;
  width: min(760px, 100%);
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

.case-page .image-hint {
  margin: 0;
  color: rgba(57, 69, 84, 0.78);
  font-size: 0.9rem;
  text-align: center;
}

.case-page .image-placeholder.is-missing {
  border-style: dashed;
}

.case-page .case-footer {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 22px clamp(20px, 3.8vw, 56px) 34px;
  color: rgba(42, 52, 66, 0.82);
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .case-page .case-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case-page .case-hero-card {
    max-width: 640px;
  }

  .case-page .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .case-page .case-nav {
    width: calc(100vw - 24px);
    justify-content: space-between;
  }

  .case-page .case-nav a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .case-page .case-shell {
    padding-left: var(--ui-card-pad-x);
    padding-right: var(--ui-card-pad-x);
  }

  .case-page .case-footer {
    padding-left: var(--ui-card-pad-x);
    padding-right: var(--ui-card-pad-x);
    flex-direction: column;
    gap: var(--ui-section-gap);
  }

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

/* Case template page */
.case-template-page {
  --template-line: #c7ced7;
  --template-text-strong: #1f2834;
  --template-text-main: #2d3746;
  --template-text-soft: #4d5a6b;
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 14% -20%, #f0f2f6 0%, #e8eaee 42%, #e7e9ed 100%);
  color: var(--template-text-main);
}

.case-template-page .case-template-nav-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.case-template-page .case-template-nav {
  position: relative;
  display: inline-flex;
  width: 300px;
  justify-content: space-between;
  gap: 6px;
  padding: 7px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.62), rgba(240, 245, 250, 0.42));
  box-shadow: 0 14px 40px rgba(33, 45, 59, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.case-template-page .case-template-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.06));
}

.case-template-page .case-template-nav a {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--template-text-main);
  transition: background 0.25s ease, color 0.25s ease;
}

.case-template-page .case-template-nav a:hover {
  background: rgba(255, 255, 255, 0.5);
}

.case-template-page .case-template-nav a.is-active {
  background: rgba(255, 255, 255, 0.58);
  font-weight: 600;
}

.case-template-page .case-template-main {
  width: 100%;
  padding: 0;
}

.case-template-page .template-row {
  width: 100%;
  border-bottom: 1px solid var(--template-line);
}

.case-template-page .template-inner {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: var(--ui-card-pad-y) var(--ui-card-pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--ui-section-gap);
}

.case-template-page .template-inner h1,
.case-template-page .template-inner h2,
.case-template-page .template-col-inner h2 {
  margin: 0;
  color: var(--template-text-strong);
  letter-spacing: -0.02em;
  line-height: var(--type-h2-line);
  font-weight: var(--type-h2-weight);
}

.case-template-page .template-inner h1 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  font-weight: var(--type-h1-weight);
}

.case-template-page .template-inner h2,
.case-template-page .template-col-inner h2 {
  font-size: var(--type-h2-size);
}

.case-template-page .template-inner p {
  margin: 0;
  color: var(--template-text-soft);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
  max-width: 72ch;
}

.case-template-page .template-col-inner p {
  margin: 0;
  color: var(--template-text-soft);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
}

.case-template-page .template-inner ul,
.case-template-page .template-col-inner ul {
  margin: 0;
  padding-left: 1.25em;
  color: var(--template-text-soft);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
}

.case-template-page .template-inner li + li,
.case-template-page .template-col-inner li + li {
  margin-top: 8px;
}

.case-template-page .result-metrics-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ui-section-gap);
}

.case-template-page .result-visual-row .result-metric {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-template-page .template-inner p.result-metric-value {
  margin: 0;
  color: var(--template-text-strong);
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  letter-spacing: -0.02em;
  font-weight: var(--type-h2-weight);
}

.case-template-page .template-inner p.result-metric-label {
  margin: 0;
  color: var(--template-text-main);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
  max-width: none;
}

.case-template-page .workspace-structured {
  margin-top: 0;
}

.case-template-page .workspace-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-template-page .workspace-block {
  margin: 0;
  padding: 2px 0 30px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: var(--ui-section-gap);
}

.case-template-page .workspace-block:first-child {
  padding-right: 28px;
}

.case-template-page .workspace-block:last-child {
  border-left: 1px solid var(--template-line);
  padding-left: 28px;
}

.case-template-page .workspace-block h3,
.case-template-page .workspace-solution h3 {
  margin: 0;
  color: var(--template-text-strong);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  font-weight: var(--type-h3-weight);
  letter-spacing: -0.01em;
}

.case-template-page .workspace-block p,
.case-template-page .workspace-solution p {
  margin: 0;
  color: var(--template-text-soft);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
  max-width: none;
}

.case-template-page .workspace-solution {
  margin: 0;
  border-top: 1px solid var(--template-line);
  padding-top: var(--ui-section-gap);
  display: flex;
  flex-direction: column;
  gap: var(--ui-section-gap);
}

.case-template-page .template-hero-row .template-inner {
  padding-top: 146px;
  padding-bottom: clamp(52px, 8vw, 120px);
}

.case-template-page .template-hero-split-row {
  overflow: hidden;
}

.case-template-page .template-split {
  width: min(100%, 1400px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.case-template-page .template-split-col {
  min-height: 340px;
}

.case-template-page .template-split-visual {
  min-height: 0;
}

.case-template-page .template-split-meta {
  border-right: 1px solid var(--template-line);
}

.case-template-page .template-split-meta-inner {
  width: min(100%, 700px);
  margin-right: auto;
  padding: 146px clamp(20px, 3.8vw, 56px) clamp(34px, 5vw, 62px);
}

.case-template-page .template-split-meta-inner h1 {
  margin: 0;
  color: var(--template-text-strong);
  letter-spacing: -0.02em;
  line-height: var(--type-h1-line);
  font-weight: var(--type-h1-weight);
  font-size: var(--type-h1-size);
}

.case-template-page .template-split-meta-inner p {
  margin: 0;
  color: var(--template-text-main);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
}

.case-template-page .template-split-meta-inner > p {
  margin-top: var(--ui-title-stack-gap);
}

.case-template-page .template-split-meta-inner strong {
  color: var(--template-text-strong);
  font-weight: 600;
}

.case-template-page .template-split-visual-inner {
  width: min(100%, 980px);
  margin-right: auto;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 136px clamp(20px, 3.8vw, 56px) 0;
}

.case-template-page .template-hero-image {
  margin: 0;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.case-template-page .template-hero-image-cropped {
  aspect-ratio: 11 / 4;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.case-template-page .template-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

.case-template-page .template-hero-image-cropped img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.case-template-page .template-hero-image.is-missing {
  min-height: 240px;
  border: 1px dashed var(--template-line);
  background: rgba(225, 229, 236, 0.7);
  display: grid;
  place-items: center;
}

.case-template-page .missing-image-label {
  display: none;
}

.case-template-page .template-hero-image.is-missing .missing-image-label {
  display: block;
  margin: 0;
  padding: 14px 18px;
  text-align: center;
  color: var(--template-text-soft);
  font-size: 0.95rem;
}

.case-template-page .template-two-col-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-template-page .template-col {
  border-right: 1px solid var(--template-line);
}

.case-template-page .template-col:last-child {
  border-right: none;
}

.case-template-page .template-col-inner {
  width: min(100%, 700px);
  padding: var(--ui-card-pad-y) var(--ui-card-pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--ui-section-gap);
}

.case-template-page .template-col:first-child .template-col-inner {
  margin-left: auto;
}

.case-template-page .template-col:last-child .template-col-inner {
  margin-right: auto;
}

.case-template-page .template-feature-image {
  margin: 0;
  width: min(860px, 100%);
  aspect-ratio: var(--ui-image-ratio);
  border-radius: 16px;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.case-template-page .template-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.case-template-page .template-image-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ui-section-gap);
}

.case-template-page .template-image-grid .template-feature-image {
  margin-top: 0;
  width: 100%;
}

.case-template-page .quote-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

.case-template-page .quote-card {
  margin: 0;
  min-height: 232px;
  height: 100%;
  border-radius: 0;
  background: transparent;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.case-template-page .quote-card:not(:first-child) {
  border-left: 1px solid var(--template-line);
}

.case-template-page .quote-card:first-child {
  padding-left: 0;
}

.case-template-page .quote-card:last-child {
  padding-right: 0;
}

.case-template-page .quote-card .quote-card-text {
  margin: 0;
  color: var(--template-text-main);
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  letter-spacing: -0.02em;
  font-weight: var(--type-h2-weight);
  max-width: none;
}

.case-template-page .quote-card .quote-card-source {
  margin-top: auto;
  margin-bottom: 0;
  max-width: none;
  padding-top: 10px;
  border-top: 1px solid rgba(120, 132, 146, 0.28);
  color: var(--template-text-strong);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
}

.case-template-page .quote-image {
  margin: 0;
  border-radius: 16px;
  background: transparent;
  padding: 0;
}

.case-template-page .quote-image img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ui-image-ratio);
  object-fit: cover;
  border-radius: inherit;
}

.case-template-page .template-feature-image.is-missing,
.case-template-page .quote-image.is-missing {
  min-height: 200px;
  border: 1px dashed var(--template-line);
  display: grid;
  place-items: center;
}

.case-template-page .template-back-row .template-inner {
  padding-top: var(--ui-card-pad-y);
  padding-bottom: var(--ui-card-pad-y);
}

.case-template-page .template-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  letter-spacing: -0.015em;
  font-weight: var(--type-h2-weight);
  color: var(--template-text-strong);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.case-template-page .template-back-link:hover {
  color: var(--template-text-main);
  transform: translateX(2px);
}

/* Physical product case page */
.case-physical-page .physical-hero-row .template-inner {
  padding-top: 146px;
  padding-bottom: var(--ui-card-pad-y);
  gap: 0;
}

.case-physical-page .physical-hero-row .template-inner p {
  margin: 0;
  max-width: 72ch;
  color: var(--template-text-main);
}

.case-physical-page .physical-hero-row .template-inner > p {
  margin-top: var(--ui-title-stack-gap);
}

.case-physical-page .physical-hero-row strong {
  color: var(--template-text-strong);
  font-weight: 600;
}

.case-physical-page .physical-project-grid {
  width: min(100%, 1400px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-physical-page .physical-project-media-inner,
.case-physical-page .physical-project-copy-inner {
  box-sizing: border-box;
  width: min(100%, 700px);
  padding: var(--ui-card-pad-y) var(--ui-card-pad-x);
}

.case-physical-page .physical-project-grid > .physical-project-col:first-child .physical-project-media-inner,
.case-physical-page .physical-project-grid > .physical-project-col:first-child .physical-project-copy-inner {
  margin-right: auto;
}

.case-physical-page .physical-project-grid > .physical-project-col:last-child .physical-project-media-inner,
.case-physical-page .physical-project-grid > .physical-project-col:last-child .physical-project-copy-inner {
  margin-left: auto;
}

.case-physical-page .physical-project-copy-inner h2 {
  margin: 0;
  color: var(--template-text-strong);
  letter-spacing: -0.02em;
  line-height: var(--type-h2-line);
  font-weight: var(--type-h2-weight);
  font-size: var(--type-h2-size);
}

.case-physical-page .physical-project-copy-inner p {
  margin: 0;
  color: var(--template-text-main);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
  max-width: 56ch;
}

.case-physical-page .physical-project-copy-inner {
  display: flex;
  flex-direction: column;
  gap: var(--ui-section-gap);
}

.case-physical-page .physical-project-image {
  margin: 0;
  width: 100%;
  aspect-ratio: var(--ui-image-ratio);
  background: rgba(211, 216, 224, 0.62);
  overflow: hidden;
  border-radius: 16px;
}

.case-physical-page .physical-project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.case-physical-page .physical-project-image.is-missing {
  border: 1px dashed var(--template-line);
  display: grid;
  place-items: center;
}

@media (max-width: 980px) {
  .case-template-page .template-inner p,
  .case-template-page .template-col-inner p,
  .case-template-page .template-split-meta-inner p,
  .case-template-page .workspace-block p,
  .case-template-page .workspace-solution p,
  .case-template-page .quote-row .template-inner p,
  .case-physical-page .physical-hero-row .template-inner p,
  .case-physical-page .physical-project-copy-inner p {
    max-width: none;
  }

  .case-template-page .result-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-template-page .workspace-top {
    grid-template-columns: 1fr;
    margin-bottom: var(--ui-section-gap);
  }

  .case-template-page .workspace-block {
    min-height: 0;
    padding: 0 0 var(--ui-section-gap);
  }

  .case-template-page .workspace-block:first-child {
    padding-right: 0;
  }

  .case-template-page .workspace-block:last-child {
    border-left: none;
    border-top: 1px solid var(--template-line);
    padding-left: 0;
    padding-top: var(--ui-section-gap);
    padding-bottom: 0;
  }

  .case-template-page .workspace-solution {
    margin-top: 0;
  }

  .case-physical-page .physical-hero-row .template-inner {
    padding-top: 118px;
  }

  .case-physical-page .physical-project-grid {
    grid-template-columns: 1fr;
    gap: var(--ui-section-gap);
    padding: var(--ui-card-pad-y) 0;
  }

  .case-physical-page .physical-project-media-inner,
  .case-physical-page .physical-project-copy-inner {
    width: 100%;
    padding: 0 var(--ui-card-pad-x);
    margin-left: auto;
    margin-right: auto;
  }

  .case-physical-page .physical-project-col:has(.physical-project-copy-inner) {
    order: 1;
  }

  .case-physical-page .physical-project-col:has(.physical-project-media-inner) {
    order: 2;
  }

  .case-template-page .template-split {
    grid-template-columns: 1fr;
  }

  .case-template-page .template-split-meta {
    border-right: none;
    border-bottom: 1px solid var(--template-line);
  }

  .case-template-page .template-split-meta-inner,
  .case-template-page .template-split-visual-inner {
    width: min(100%, 980px);
    margin-left: auto;
    margin-right: auto;
    padding-top: clamp(116px, 14vw, 140px);
    padding-bottom: clamp(28px, 5.5vw, 58px);
  }

  .case-template-page .template-split-visual-inner {
    display: block;
    padding-top: var(--ui-card-pad-y);
    padding-bottom: 0;
  }

  .case-template-page .template-two-col-row {
    grid-template-columns: 1fr;
  }

  .case-template-page .template-col {
    border-right: none;
    border-bottom: 1px solid var(--template-line);
  }

  .case-template-page .template-col:last-child {
    border-bottom: none;
  }

  .case-template-page .template-col-inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .case-template-page .quote-grid {
    grid-template-columns: 1fr;
  }

  .case-template-page .quote-card {
    padding: 0;
  }

  .case-template-page .quote-card:not(:first-child) {
    border-left: none;
    border-top: 1px solid var(--template-line);
    padding-top: var(--ui-section-gap);
    margin-top: var(--ui-section-gap);
  }

  .case-template-page .template-image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .case-template-page .result-metrics-grid {
    grid-template-columns: 1fr;
    gap: var(--ui-section-gap);
  }

  .case-template-page .case-template-nav {
    width: calc(100vw - 24px);
    justify-content: space-between;
  }

  .case-template-page .case-template-nav a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .case-template-page .template-inner,
  .case-template-page .template-col-inner {
    padding-left: var(--ui-card-pad-x);
    padding-right: var(--ui-card-pad-x);
  }
}

/* Custom cursor */
body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled [role="button"] {
  cursor: none !important;
}

.site-cursor {
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  background: rgba(126, 136, 146, 0.9);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-200px, -200px);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, width, height, border-radius, opacity;
  transition:
    width 0.2s ease,
    height 0.2s ease,
    border-radius 0.2s ease,
    opacity 0.15s ease;
}

.site-cursor.is-visible {
  opacity: 1;
}

.site-cursor-label {
  display: block;
  width: auto;
  text-align: center;
  opacity: 0;
  color: #ffffff;
  font-size: 0;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.16s ease, font-size 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.site-cursor.is-view {
  width: max-content;
  height: 46px;
  border-radius: 999px;
  padding: 0 12px;
}

.site-cursor.is-view .site-cursor-label {
  opacity: 1;
  font-size: 1.35rem;
}

.site-cursor.is-coming {
  width: max-content;
  height: 46px;
  border-radius: 999px;
  padding: 0 12px;
}

.site-cursor.is-coming .site-cursor-label {
  opacity: 1;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
