:root {
  --bg: #f5f2ec;
  --bg-soft: #efe9df;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: #fffdf9;
  --text: #111111;
  --muted: #6f6a64;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.18);
  --accent: #111111;
  --accent-soft: #d7c6ad;
  --shadow: 0 24px 80px rgba(31, 24, 17, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
  --content-max: 1180px;
  --content-max-narrow: 1120px;
  --grid-gap: 24px;
  --grid-gap-wide: 32px;
  --grid-gap-tight: 16px;
  --section-space: 88px;
  --section-space-tight: 56px;
  --panel-padding: 24px;
  --panel-padding-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(226, 213, 192, 0.65), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.95), transparent 24%),
    linear-gradient(180deg, #f8f4ee 0%, #f2ece3 48%, #f7f3ed 100%);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  top: 6%;
  right: 2%;
  width: min(38vw, 480px);
  height: min(38vw, 480px);
  border-radius: 42% 58% 60% 40% / 38% 41% 59% 62%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.66), transparent 28%),
    linear-gradient(135deg, rgba(217, 170, 106, 0.38), rgba(242, 221, 190, 0.12));
  box-shadow:
    -24vw 28vh 0 -18px rgba(17, 17, 17, 0.04),
    -8vw 52vh 0 -42px rgba(222, 189, 146, 0.38),
    -36vw 62vh 0 -10px rgba(17, 17, 17, 0.03),
    -18vw 8vh 0 -56px rgba(255, 255, 255, 0.34);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
  animation: driftBlob 11s cubic-bezier(0.37, 0, 0.2, 1) infinite alternate;
}

body.case-study-body::after {
  top: 10%;
  right: -4%;
  width: min(40vw, 520px);
  height: min(40vw, 520px);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.58), transparent 26%),
    linear-gradient(135deg, rgba(217, 170, 106, 0.34), rgba(242, 221, 190, 0.12));
  box-shadow:
    -16vw 34vh 0 -28px rgba(222, 189, 146, 0.3),
    -6vw 60vh 0 -42px rgba(17, 17, 17, 0.03),
    -22vw 10vh 0 -54px rgba(255, 255, 255, 0.28);
  filter: blur(22px);
  opacity: 0.88;
}

body.case-study-body {
  position: relative;
  isolation: isolate;
}

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

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

.page-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--content-max));
  margin: 0 auto;
  padding-bottom: 56px;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(31, 24, 17, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: inline-flex;
  gap: 24px;
  font-size: 0.96rem;
  color: var(--muted);
}

.nav-link-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.site-nav a.is-active .nav-count-badge {
  background: #ff7a00;
  color: #ffffff;
}

.site-nav a,
.contact-links a,
.text-link {
  position: relative;
}

.site-nav a {
  transition: color 220ms ease;
}

.site-nav a.is-active {
  color: #ff7a00;
}

.site-nav a::after,
.contact-links a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.contact-links a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.site-nav a:focus-visible,
.nav-cta:focus-visible,
.button:focus-visible,
.case-card-link:focus-visible,
.contact-link-item:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(217, 170, 106, 0.95);
  outline-offset: 4px;
}

.site-nav a:focus-visible::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    color 220ms ease;
}

.nav-cta,
.button-primary {
  background: var(--text);
  color: white;
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.16);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
}

.button-tertiary {
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 17, 0.78);
  box-shadow: none;
  font-weight: 600;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button-tertiary:hover {
  transform: none;
  color: #111111;
}

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

.hero {
  padding-top: calc(var(--section-space) - 8px);
}

.section-label,
.mini-label,
.card-kicker,
.journey-index,
.case-meta span,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-label,
.mini-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: var(--grid-gap-wide);
  align-items: start;
  padding-top: 20px;
}

.hero-copy h1,
.section-heading h2,
.contact-panel h2,
.case-study-hero h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(3.7rem, 8vw, 7.6rem);
  line-height: calc(0.98em + 12px);
  max-width: 8ch;
}

.hero-subtitle {
  margin: 16px 0 0;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  line-height: 1.18;
  color: rgba(17, 17, 17, 0.68);
}

.hero-body {
  max-width: 62ch;
  margin: 26px 0 0;
  font-size: 1.08rem;
  line-height: 1.72;
  color: rgba(17, 17, 17, 0.86);
}

.hero-body-secondary {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gap-tight);
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap-tight);
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.hero-stats li,
.education-card,
.journey-card,
.case-card,
.skill-card,
.contact-panel,
.case-study-block,
.hero-visual .portrait-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-stats strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: nowrap;
}

.hero-visual {
  position: sticky;
  top: 112px;
}

.portrait-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}

.portrait-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 20px;
  font-size: 0.92rem;
  color: var(--muted);
}

.education-panel {
  margin-top: var(--grid-gap-wide);
  padding: var(--panel-padding-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 252, 248, 0.5);
}

.education-grid,
.skills-grid,
.journey-list,
.case-grid {
  display: grid;
  gap: var(--grid-gap);
}

.education-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.education-card {
  min-height: 220px;
  padding: var(--panel-padding);
  border-radius: var(--radius-lg);
}

.education-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.education-logo {
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
}

.card-kicker,
.journey-role,
.journey-time,
.case-meta,
.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
}

.education-card h3,
.journey-card h3,
.case-content h3,
.skill-card h3,
.case-study-block h2 {
  margin: 10px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.education-card p:last-child,
.journey-card p,
.section-heading p,
.case-content p,
.contact-panel p,
.case-study-intro p,
.case-study-block p,
.case-study-block li {
  margin: 0;
  color: rgba(17, 17, 17, 0.78);
  line-height: 1.7;
}

.section-heading {
  max-width: 780px;
}

.journey .section-heading {
  max-width: 1100px;
}

.section-heading h2,
.contact-panel h2 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.96;
}

.section-heading h2 + p,
.contact-panel h2 + p {
  margin-top: 24px;
  font-size: 1.02rem;
}

.education-card h3 + p,
.journey-card h3 + p,
.case-content h3 + p,
.skill-card h3 + p,
.case-study-block h2 + p {
  margin-top: 24px;
}

.journey-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.journey-card {
  padding: var(--panel-padding);
  border-radius: var(--radius-lg);
}

.journey-index {
  margin: 0 0 18px;
  color: rgba(17, 17, 17, 0.48);
  font-weight: 700;
  font-size: 0.76rem;
}

.journey-role {
  margin: 8px 0 0;
}

.journey-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.journey-head h3 {
  margin: 0;
}

.journey-time {
  margin: 0;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
}

.journey-card ul,
.skill-card ul,
.case-study-block ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.journey-card li,
.skill-card li,
.case-study-block li {
  margin-bottom: 12px;
}

.journey-card li:last-child,
.skill-card li:last-child,
.case-study-block li:last-child {
  margin-bottom: 0;
}

.journey-card-featured {
  background: #111111;
  border-color: rgba(17, 17, 17, 0.9);
  color: #ffffff;
}

.journey-card-featured h3,
.journey-card-featured p,
.journey-card-featured li,
.journey-card-featured .journey-role,
.journey-card-featured .journey-time {
  color: rgba(255, 255, 255, 0.82);
}

.journey-card-featured h3 {
  color: #ffffff;
}

.journey-card-featured .journey-index {
  color: rgba(255, 255, 255, 0.5);
}

.case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.case-card-link {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.case-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(31, 24, 17, 0.14);
}

.case-image-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  min-height: 260px;
  padding: 0 20px 0;
  background: #171717;
}

.case-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.35));
  animation: floatCaseStudy 7s ease-in-out infinite;
  transition:
    transform 420ms ease,
    filter 420ms ease;
}

.case-card:hover .case-image-wrap img {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 34px 56px rgba(0, 0, 0, 0.42));
}

.case-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 10% 18px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(20px);
  transform: scaleX(0.82);
}

.case-image-wrap::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 24px;
  height: 62%;
  border-radius: 36px;
  opacity: 0.95;
}

.case-image-wrap-orange::before {
  background:
    linear-gradient(135deg, rgba(255, 148, 19, 0.86), rgba(255, 119, 0, 0.92)),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.06));
}

.case-image-wrap-green::before {
  background:
    linear-gradient(135deg, rgba(8, 255, 80, 0.9), rgba(0, 228, 73, 0.95)),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.06));
}

.case-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}

.case-content .case-button,
.case-content .case-soon-tag {
  align-self: flex-start;
}

.case-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
}

.case-content h3 {
  margin: 0;
}

.case-content p {
  margin: 16px 0 0;
}

.case-button {
  margin-top: 24px;
  pointer-events: none;
}

.case-soon-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a2f, #ff7a00);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  align-items: stretch;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 20px 24px;
  border-radius: var(--radius-xl);
}

.skill-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.34;
  min-height: 0;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(233, 225, 213, 0.9));
}

.skill-visual-product {
  background: linear-gradient(180deg, #f3eadf, #e5d3bd);
}

.skill-visual-ai {
  background: linear-gradient(180deg, #f1e8de, #e2d3c5);
}

.skill-visual-systems {
  background: linear-gradient(180deg, #efe6da, #ddcfbd);
}

.skill-card img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  gap: var(--grid-gap-wide);
  align-items: stretch;
  padding: var(--panel-padding-lg);
  border-radius: var(--radius-xl);
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.contact-copy p {
  max-width: 52ch;
  margin-top: 18px;
}

.contact-links-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contact-icons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  width: 100%;
  user-select: text;
  -webkit-user-select: text;
}

.contact-link-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition:
    transform 220ms ease,
    color 220ms ease;
}

.contact-link-item:hover {
  transform: translateY(-2px);
}

.contact-text-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 10px 0;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

.contact-text-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #111111;
  flex-shrink: 0;
}

.contact-text-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.contact-text-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.02rem;
  font-weight: 700;
  color: #111111;
  cursor: text;
  text-align: left;
  user-select: all;
  -webkit-user-select: all;
  appearance: none;
  -webkit-appearance: none;
}

.contact-text-input:focus {
  outline: none;
}

.contact-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #111111;
  flex-shrink: 0;
}

.contact-link-icon svg,
.contact-link-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.contact-link-value {
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  color: #111111;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms ease var(--reveal-delay, 0ms),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.portrait-card.is-tilting {
  transition: transform 140ms ease;
}

.case-page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--content-max-narrow));
  margin: 0 auto;
  padding: 16px 0 56px;
}

.case-study-nav {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(31, 24, 17, 0.06);
}

.back-link {
  position: absolute;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.back-link::before {
  content: "‹";
  font-size: 1.6rem;
  line-height: 1;
}

.case-study-nav-links {
  display: flex;
  align-items: center;
  gap: var(--grid-gap-tight);
  width: auto;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.case-study-nav-links::-webkit-scrollbar {
  display: none;
}

.case-study-nav-links a {
  color: var(--muted);
}

.case-study-nav-links a {
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: color 220ms ease;
}

.case-study-nav-links a.is-active {
  color: #ff7a00;
}

.case-study-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.case-study-nav-links a:hover::after,
.case-study-nav-links a.is-active::after,
.case-study-nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.case-study-nav-links a:focus-visible {
  outline: 3px solid rgba(217, 170, 106, 0.95);
  outline-offset: 4px;
}

.case-study-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: var(--grid-gap-wide);
  align-items: center;
}

.case-study-intro {
  padding: 18px 0;
}

.case-study-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 24px;
}

.case-study-meta-card {
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.case-study-meta-card p:last-child {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.case-study-hero h1 {
  max-width: 9ch;
  font-size: clamp(2.4rem, 5.2vw, 4.7rem);
  line-height: calc(0.98em + 12px);
  margin: 12px 0 0;
}

.case-study-subtitle {
  max-width: 100%;
  margin-top: 24px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.case-study-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #171717;
  box-shadow: var(--shadow);
}

.case-study-cover img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center center;
  padding: 0 24px;
  filter: drop-shadow(0 34px 56px rgba(0, 0, 0, 0.36));
  animation: floatCaseStudy 7s ease-in-out infinite;
}

.case-study-cover::after {
  content: "";
  position: absolute;
  inset: auto 14% 22px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(20px);
}

.case-study-hero .case-study-cover::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 24px;
  height: 62%;
  border-radius: 36px;
}

.case-study-cover-orange::before {
  background: linear-gradient(135deg, rgba(255, 148, 19, 0.86), rgba(255, 119, 0, 0.92));
}

.case-study-cover-green::before {
  background: linear-gradient(135deg, rgba(8, 255, 80, 0.9), rgba(0, 228, 73, 0.95));
}

@keyframes floatCaseStudy {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes driftBlob {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    border-radius: 42% 58% 60% 40% / 38% 41% 59% 62%;
  }
  18% {
    transform: translate3d(-4vw, 3vh, 0) scale(1.14) rotate(8deg);
    border-radius: 58% 42% 46% 54% / 52% 35% 65% 48%;
  }
  37% {
    transform: translate3d(-10vw, 8vh, 0) scale(0.94) rotate(-11deg);
    border-radius: 47% 53% 61% 39% / 39% 59% 41% 61%;
  }
  58% {
    transform: translate3d(-7vw, 14vh, 0) scale(1.12) rotate(14deg);
    border-radius: 58% 42% 46% 54% / 52% 35% 65% 48%;
  }
  79% {
    transform: translate3d(-14vw, 6vh, 0) scale(0.88) rotate(-6deg);
    border-radius: 61% 39% 49% 51% / 43% 65% 35% 57%;
  }
  100% {
    transform: translate3d(-11vw, 16vh, 0) scale(1.04) rotate(12deg);
    border-radius: 49% 51% 38% 62% / 43% 57% 43% 57%;
  }
}

@keyframes critiqueMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 32px;
}

.case-study-block {
  padding: var(--panel-padding);
  border-radius: var(--radius-lg);
}

.case-study-block.wide {
  grid-column: 1 / -1;
}

.case-study-context {
  margin-top: 32px;
}

.case-study-summary {
  margin-top: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.case-study-summary h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 0.96;
}

.case-study-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 24px;
}

.case-study-summary-grid p {
  max-width: none;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(17, 17, 17, 0.8);
  line-height: 1.75;
}

.case-study-context-intro {
  width: 100%;
}

.case-study-context-split {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 0.52fr);
  gap: var(--grid-gap-wide);
  align-items: center;
  width: 100%;
}

.personal-play-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: var(--grid-gap-wide);
  padding: var(--panel-padding-lg);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 24px 56px rgba(31, 24, 17, 0.08);
  align-items: start;
}

.personal-play-copy h2 {
  margin: 12px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.personal-play-copy h2 + p {
  margin: 24px 0 0;
  max-width: 30ch;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.8);
}

.personal-play-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: 30px;
}

.personal-play-track {
  display: flex;
  width: max-content;
  animation: critiqueMarquee 48s linear infinite;
}

.personal-play-panel:hover .personal-play-track,
.personal-play-panel:focus-within .personal-play-track,
.case-study-carousel:hover .case-study-carousel-track,
.case-study-carousel:focus-within .case-study-carousel-track {
  animation-play-state: paused;
}

.personal-play-visual img {
  display: block;
  width: min(900px, 72vw);
  height: auto;
  flex: 0 0 auto;
}

.case-study-context-copy {
  text-align: left;
}

.case-study-context-copy h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.case-study-context-text-stack {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.case-study-context-text-stack p {
  margin: 0;
  max-width: none;
}

.case-study-context .case-study-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.case-study-carousel {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  border-radius: 26px;
  background: transparent;
}

.case-study-carousel-track {
  display: flex;
  width: max-content;
  animation: critiqueMarquee 36s linear infinite;
}

.case-study-carousel-track img {
  width: min(560px, 44vw);
  height: auto;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 22px 34px rgba(17, 17, 17, 0.14));
}

.case-study-context-meta {
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.challenge-funnel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.7fr);
  gap: var(--grid-gap);
  margin-top: 24px;
  width: 100%;
  align-items: center;
}

.challenge-title {
  margin: 12px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: calc(0.94em + 12px);
  letter-spacing: -0.05em;
}

.challenge-body {
  margin: 24px 0 0;
  max-width: 76ch;
}

.challenge-funnel-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 220px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.challenge-step {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.challenge-step-bar {
  width: 100%;
  border-radius: 18px;
  background: #111111;
}

.challenge-step-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
}

.challenge-step-1 .challenge-step-bar { height: 150px; }
.challenge-step-2 .challenge-step-bar { height: 132px; }
.challenge-step-3 .challenge-step-bar { height: 108px; }
.challenge-step-4 .challenge-step-bar {
  height: 44px;
  background: linear-gradient(135deg, #ead9bc, #dcc39d);
}
.challenge-step-5 .challenge-step-bar {
  height: 10px;
  background: rgba(17, 17, 17, 0.14);
}

.challenge-step strong {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  line-height: 1.1;
  color: #111111;
}

.challenge-step .card-kicker {
  color: var(--muted);
}

.challenge-funnel-metrics {
  display: grid;
  gap: 18px;
  align-content: center;
  padding: var(--panel-padding);
  border-radius: 28px;
  background: #111111;
  color: #ffffff;
}

.challenge-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #ffffff;
}

.challenge-metric-row span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.76);
}

.challenge-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.challenge-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
}

.challenge-metric-highlight .challenge-metric-row strong {
  font-size: 0.96rem;
}

.case-study-grid > .case-study-block.wide {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.case-insight-section {
  margin-top: var(--section-space-tight);
}

.case-insight-header {
  max-width: 72rem;
}

.case-insight-header-full {
  max-width: none;
  width: 100%;
}

.case-section-headline {
  margin: 12px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.9rem, 4.3vw, 3.6rem);
  line-height: calc(0.94em + 12px);
  letter-spacing: -0.05em;
}

.case-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 24px;
  align-items: center;
}

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

.case-insight-grid-observation {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: start;
}

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

.case-insight-body {
  max-width: 62rem;
  margin: 24px 0 0;
  color: rgba(17, 17, 17, 0.76);
  line-height: 1.75;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.case-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  color: rgba(17, 17, 17, 0.78);
}

.case-secondary-label {
  margin: 22px 0 0;
}

.case-document-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  width: 100%;
  margin-left: -36px;
}

.case-document-visual img {
  display: block;
  width: min(100%, 754px);
  height: auto;
}

.case-document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: var(--grid-gap-wide);
  align-items: center;
}

.case-ai-card {
  width: fit-content;
  max-width: 520px;
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  background: #111111;
  color: #ffffff;
}

.section-label-light {
  color: rgba(255, 255, 255, 0.72);
}

.case-ai-body {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.case-ai-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.case-ai-list li {
  line-height: 1.7;
}

.case-ai-list li + li {
  margin-top: 12px;
}

.case-insight-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.case-insight-grid-observation .case-insight-item {
  height: 100%;
  justify-content: flex-start;
  padding-top: 0;
  border-top: 0;
}

.case-insight-grid-observation .case-insight-item p:last-child {
  max-width: none;
}

.case-insight-copy-bottom {
  margin-top: auto;
  padding-top: 32px;
}

.case-insight-item-plain {
  justify-content: flex-start;
  padding-top: 0;
  border-top: 0;
}

.case-insight-item-white {
  padding: 24px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.06);
}

.case-insight-label {
  margin-bottom: 24px;
  font-size: 0.78rem;
  color: var(--muted);
}

.case-insight-item-dark {
  padding: 22px 24px;
  border-top: none;
  border-radius: 24px;
  background: #111111;
  color: #ffffff;
}

.case-insight-title {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.case-insight-item-dark .case-insight-title,
.case-insight-item-dark p:last-child,
.case-insight-item-dark .case-insight-label {
  color: #ffffff;
}

.case-study-02-direction-top {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 0.25fr);
  gap: var(--grid-gap);
  align-items: start;
}

.case-study-02-dark-card {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin-top: 0;
  margin-right: 0;
  margin-left: auto;
  box-sizing: border-box;
}

.case-insight-item ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(17, 17, 17, 0.76);
}

.case-insight-item li + li {
  margin-top: 12px;
}

.case-insight-item p:last-child,
.case-insight-item li {
  font-size: 1rem;
  line-height: 1.7;
}

.case-insight-divider {
  height: 1px;
  margin: 20px 0 18px;
  background: rgba(17, 17, 17, 0.08);
}

.case-insight-mockup {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  background: transparent;
}

.case-insight-mockup img {
  display: block;
  width: min(79%, 220px);
  height: auto;
}

.case-insight-conclusion {
  margin-top: 18px;
  width: 100%;
  padding: 20px 22px;
  border-radius: 20px;
  background: #111111;
  font-weight: 400;
  color: #ffffff;
  box-sizing: border-box;
}

.case-insight-conclusion-title {
  display: block;
  margin-bottom: 10px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.case-goal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: var(--grid-gap);
  align-items: start;
}

.case-goal-card {
  padding: 24px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.06);
}

.case-goal-list {
  margin: 24px 0 0;
  padding-left: 18px;
  color: rgba(17, 17, 17, 0.82);
}

.case-goal-list li {
  line-height: 1.8;
}

.case-goal-list li + li {
  margin-top: 10px;
}


.case-ai-helped-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 28px;
}

.case-ai-helped-visual img {
  display: block;
  width: min(100%, 1180px);
  height: auto;
}

.case-ai-helped-tags {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 1180px);
}

.case-ai-helped-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: rgba(17, 17, 17, 0.86);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.case-ai-helped-tags .is-highlighted {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.case-why-won {
  width: 100%;
  margin-top: 28px;
}

.case-direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  width: 100%;
}

.case-direction-label {
  margin-bottom: 24px;
}

.case-direction-grid p:last-child {
  margin: 0;
  color: rgba(17, 17, 17, 0.8);
  line-height: 1.75;
}

.case-why-won-list {
  margin: 16px 0 0;
  padding-left: 18px;
  max-width: 72rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 10px;
  color: rgba(17, 17, 17, 0.78);
}

.case-why-won-list li {
  font-size: 1rem;
  line-height: 1.75;
}

.case-why-won-list li + li {
  margin-top: 0;
}

.case-direction-visual {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 30px;
}

.case-direction-visual img {
  display: block;
  width: min(80%, 832px);
  height: auto;
}

.case-direction-visual-compact img {
  width: min(90%, 936px);
}

.case-testing-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 24px;
}

.case-testing-copy-label {
  margin-bottom: 24px;
}

.case-testing-copy-grid .case-insight-body {
  margin: 0;
  max-width: none;
}

.ab-test-table {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.ab-test-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.ab-test-label {
  display: flex;
  align-items: center;
  padding: 0 6px 0 0;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  line-height: 1.2;
}

.ab-test-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
  color: rgba(17, 17, 17, 0.86);
  line-height: 1.45;
}

.ab-test-head .ab-test-cell {
  min-height: 74px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ab-test-cell-dark {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.ab-test-outcomes {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 28px;
}

.ab-test-outcome-card,
.ab-test-decision-card {
  min-height: 220px;
  padding: 28px 24px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(31, 24, 17, 0.08);
}

.ab-test-outcome-card {
  position: relative;
  background: linear-gradient(135deg, rgba(214, 244, 230, 0.96), rgba(198, 238, 219, 0.98));
  display: grid;
  align-content: start;
  gap: 14px;
}

.ab-test-outcome-card h3,
.ab-test-decision-card p:last-child {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #111111;
}

.ab-test-outcome-card > p:last-child {
  margin: 0;
  max-width: 28ch;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.82);
}

.ab-test-outcome-label {
  margin: 0;
  color: var(--muted);
}

.ab-test-decision-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.ab-test-decision-card p:last-child {
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  line-height: 1.45;
  letter-spacing: normal;
  color: rgba(17, 17, 17, 0.86);
}

.ab-results-table {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.ab-results-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.ab-results-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
  color: rgba(17, 17, 17, 0.84);
  line-height: 1.4;
}

.ab-results-head .ab-results-cell {
  min-height: 94px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111111;
}

.ab-results-label {
  justify-content: flex-start;
  padding: 0 6px 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #111111;
  box-shadow: none;
}

.ab-results-row:not(.ab-results-head) .ab-results-cell:not(.ab-results-label) {
  font-size: 1.22rem;
}

.ab-results-highlight {
  background: linear-gradient(135deg, rgba(220, 244, 229, 0.96), rgba(196, 239, 215, 0.96));
}

.case-testing-compare {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap-wide);
  justify-items: center;
  align-items: start;
  width: 100%;
  margin-top: 30px;
}

.case-testing-option {
  display: grid;
  gap: 16px;
  width: 100%;
  justify-items: center;
}

.case-testing-option img {
  display: block;
  width: min(100%, 456px);
  height: auto;
}

.case-testing-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Sora", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: #111111;
  text-shadow: 0 10px 28px rgba(255, 255, 255, 0.72);
}

.case-testing-tag {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 456px);
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.86);
}

.case-testing-tag.is-highlighted {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.case-testing-summary {
  margin: 24px 0 0;
  max-width: 74ch;
  color: rgba(17, 17, 17, 0.8);
  line-height: 1.75;
}

.case-inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.case-end-to-end-visual {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 30px;
}

.case-end-to-end-visual img {
  display: block;
  width: min(100%, 1180px);
  height: auto;
}

.case-outcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: var(--grid-gap-wide);
  align-items: start;
}

.case-outcome-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.case-outcome-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.case-outcome-hero-card {
  padding: 24px;
  border-radius: 24px;
  background: #111111;
  color: #ffffff;
}

.case-outcome-hero-card h3,
.case-outcome-stat-card h3 {
  margin: 24px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.case-outcome-hero-card p:last-child {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.case-outcome-stat-card {
  padding: 24px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.06);
}

.case-outcome-stat-card p:last-child {
  margin: 16px 0 0;
  color: rgba(17, 17, 17, 0.82);
  line-height: 1.7;
}

.case-outcome-layout .case-insight-body {
  max-width: none;
}

.outcome-table {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.outcome-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.outcome-label {
  display: flex;
  align-items: center;
  padding: 0 6px 0 0;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  line-height: 1.2;
}

.outcome-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
  color: rgba(17, 17, 17, 0.86);
  line-height: 1.45;
}

.outcome-head .outcome-cell {
  min-height: 74px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.outcome-cell-dark {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.outcome-cell-highlight {
  background: linear-gradient(135deg, rgba(214, 244, 230, 0.96), rgba(198, 238, 219, 0.98));
  color: #111111;
  font-weight: 700;
}

.outcome-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 28px;
}

.outcome-card {
  min-height: 240px;
  padding: 28px 24px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(31, 24, 17, 0.08);
}

.outcome-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.outcome-card p {
  margin: 24px 0 0;
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.82);
}

.outcome-card-highlight {
  background: linear-gradient(135deg, rgba(214, 244, 230, 0.96), rgba(198, 238, 219, 0.98));
}

.market-research-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 0.55fr);
  gap: var(--grid-gap-wide);
  align-items: center;
  margin-top: 30px;
}

.market-research-table-wrap {
  width: 100%;
}

.market-research-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.market-research-visual img {
  display: block;
  width: min(100%, 520px);
  height: auto;
}

.market-matrix {
  margin-top: 0;
  display: grid;
  gap: 10px;
}

.market-matrix-row {
  display: grid;
  grid-template-columns: 180px repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.market-matrix-label {
  display: flex;
  align-items: center;
  padding: 0 6px 0 0;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  line-height: 1.2;
}

.market-matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.market-matrix-brand {
  min-height: 74px;
  padding: 16px 12px;
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  font-family: "Sora", sans-serif;
  font-size: clamp(0.94rem, 1.45vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.matrix-dot {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(17, 17, 17, 0.78);
  background: rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.matrix-dot.is-full {
  background: #49d05e;
  border-color: #49d05e;
}

.matrix-dot.is-partial {
  background: #ffcc3d;
  border-color: #111111;
}

.matrix-dot.is-empty {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(17, 17, 17, 0.78);
}

.market-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
  color: rgba(17, 17, 17, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.market-matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.market-matrix-legend .matrix-dot {
  width: 16px;
  height: 16px;
}

.journey-map {
  margin-top: 28px;
}

.journey-map-grid {
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.journey-row-label {
  display: flex;
  align-items: center;
  padding: 0 6px 0 0;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.journey-stage,
.journey-cell {
  position: relative;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.journey-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.journey-stage-dark {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.journey-stage-highlight {
  background: linear-gradient(135deg, #ead9bc, #dcc39d);
  color: #111111;
}

.journey-stage-tag {
  position: absolute;
  top: -12px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #111111;
  color: #f1e7d6;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  font-weight: 700;
}

.journey-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 68px;
  color: rgba(17, 17, 17, 0.86);
}

.journey-cell-highlight {
  background: linear-gradient(135deg, rgba(234, 217, 188, 0.86), rgba(220, 195, 157, 0.92));
  color: #111111;
}

.journey-cell-dark {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

@media (max-width: 1080px) {
  .site-header,
  .hero-grid,
  .journey-list,
  .skills-grid,
  .education-grid,
  .case-grid,
  .case-study-hero,
  .case-study-grid,
  .case-study-meta-grid,
  .case-study-summary-grid,
  .case-insight-grid,
  .case-goal-layout,
  .case-direction-grid,
  .case-testing-copy-grid,
  .case-outcome-layout,
  .case-outcome-card-grid,
  .case-document-layout,
  .market-research-layout,
  .personal-play-panel,
  .case-study-02-direction-top {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

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

  .case-study-carousel {
    margin-top: 10px;
  }

  .case-study-carousel-track img {
    width: min(560px, 82vw);
  }

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

  .outcome-cards {
    grid-template-columns: 1fr;
  }

  .ab-test-row,
  .ab-test-outcomes {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    position: relative;
    top: 0;
    order: -1;
    margin-bottom: 24px;
  }

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

  .journey-head {
    align-items: flex-start;
  }

  .challenge-funnel {
    grid-template-columns: 1fr;
  }

  .challenge-funnel-steps {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .challenge-step,
  .challenge-step-1 .challenge-step-bar,
  .challenge-step-2 .challenge-step-bar,
  .challenge-step-3 .challenge-step-bar,
  .challenge-step-4 .challenge-step-bar,
  .challenge-step-5 .challenge-step-bar {
    height: auto;
    min-height: 18px;
  }

  .journey-map-grid {
    grid-template-columns: 1fr;
  }

  .journey-row-label {
    padding-top: 18px;
  }

  .journey-stage-tag {
    position: static;
    margin-bottom: 10px;
  }

  .journey-stage {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  :root {
    --section-space: 64px;
    --section-space-tight: 40px;
  }

  .page-shell,
  .case-page {
    width: min(calc(100% - 20px), var(--content-max));
  }

  .site-header {
    top: 10px;
    padding: 10px 14px;
    gap: 10px;
    border-radius: 22px;
    flex-wrap: nowrap;
  }

  .brand-text,
  .nav-cta,
  .hero-actions .button-tertiary {
    display: none;
  }

  .site-header .site-nav {
    order: 0;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    font-size: 0.85rem;
    gap: 16px;
    padding: 4px 2px;
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 16px), transparent 100%);
  }

  .site-header .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(2.9rem, 16vw, 4.6rem);
  }

  .hero-body {
    font-size: 1rem;
  }

  .education-grid,
  .journey-list,
  .case-grid,
  .skills-grid,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .hero-stats li {
    width: 100%;
    padding: 14px 16px;
  }

  .hero-stats strong {
    font-size: 1.15rem;
    line-height: 1.05;
  }

  .hero-stats span {
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .portrait-meta,
  .contact-links {
    flex-direction: column;
    gap: 12px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-link-item {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .contact-link-icon-only {
    width: 44px;
    height: 44px;
  }

  .contact-link-value {
    text-align: left;
  }

  .journey-head {
    flex-direction: column;
    gap: 6px;
  }

  .journey-time {
    text-align: left;
  }

  .education-panel,
  .contact-panel {
    padding: 22px;
  }

  .contact-copy {
    justify-content: flex-start;
    min-height: auto;
    gap: 4px;
  }

  .contact-copy p {
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .contact-links-card {
    padding: 4px 0 0;
    justify-content: flex-start;
  }

  .contact-icons {
    gap: 6px;
  }

  body::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-shell,
  .case-page {
    width: min(calc(100% - 16px), var(--content-max));
  }

  .site-header {
    padding: 10px 12px;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .site-nav {
    font-size: 0.78rem;
    gap: 10px;
    row-gap: 6px;
  }

  .nav-count-badge {
    width: 18px;
    height: 18px;
    font-size: 0.62rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 3.8rem);
    line-height: 1.02;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .hero-actions .button-primary,
  .hero-actions .button-secondary {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .hero-actions .button-tertiary {
    flex: 0 0 100%;
    justify-content: flex-start;
    padding: 4px 0;
    margin-top: 4px;
  }

  .case-content {
    padding: 22px;
  }

  .case-image-wrap {
    min-height: 220px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  body::after {
    animation: none !important;
  }
}
