.home-case-study {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  margin: 0 auto 64px;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--landing-color-border-on-dark);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, var(--landing-color-blue-ring), transparent 34%),
    var(--landing-gradient-editorial-dark);
  box-shadow: var(--landing-shadow-elevated);
  color: var(--landing-color-text-on-dark);
}

.home-case-study::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  bottom: -140px;
  border-radius: 999px;
  border: 48px solid var(--landing-color-brand-glow);
  pointer-events: none;
}

.home-case-copy,
.home-case-visuals {
  position: relative;
  z-index: 1;
}

.home-case-kicker,
.case-eyebrow,
.case-section-kicker {
  margin: 0 0 14px;
  color: var(--landing-color-text-on-dark-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-case-study h3 {
  margin: 0;
  color: var(--landing-color-text-on-dark);
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.home-case-summary {
  margin: 22px 0 0;
  color: var(--landing-color-text-on-dark-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.home-case-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.home-case-deliverables li {
  padding: 8px 12px;
  border: 1px solid var(--landing-color-border-on-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--landing-color-text-on-dark-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.home-case-actions,
.case-actions,
.case-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.case-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.case-button:hover { transform: translateY(-2px); }
.case-button:focus-visible { outline: 3px solid var(--landing-color-focus); outline-offset: 3px; }
.case-button--primary { background: var(--landing-color-action); color: var(--landing-color-text-on-action); }
.case-button--primary:hover { background: var(--landing-color-action-hover); color: var(--landing-color-text-on-action); }
.case-button--outline {
  border-color: var(--landing-color-border-on-dark);
  background: transparent;
  color: var(--landing-color-text-on-dark);
  transition: transform 180ms ease, border-color 180ms ease;
}
.case-button--outline:hover { border-color: var(--landing-color-surface); background: var(--landing-color-surface); color: var(--landing-color-text-heading); }

.home-case-visuals {
  min-height: 470px;
}

.home-case-browser,
.case-browser {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--landing-color-border-on-dark);
  border-radius: 18px;
  background: var(--landing-color-surface);
  box-shadow: var(--landing-shadow-elevated);
}

.home-case-browser::before,
.case-browser::before {
  content: "";
  display: block;
  height: 25px;
  border-bottom: 1px solid var(--landing-color-border);
  background:
    radial-gradient(circle at 18px 12px, #fb7185 0 4px, transparent 4.5px),
    radial-gradient(circle at 34px 12px, #fbbf24 0 4px, transparent 4.5px),
    radial-gradient(circle at 50px 12px, #34d399 0 4px, transparent 4.5px),
    var(--landing-color-surface-muted);
}

.home-case-browser img,
.case-browser img {
  display: block;
  width: 100%;
  height: auto;
}

.home-case-browser--desktop {
  position: absolute;
  top: 22px;
  left: 0;
  width: 88%;
  transform: rotate(-1.5deg);
}

.home-case-browser--mobile {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  border-radius: 22px;
  transform: rotate(2.5deg);
}

.home-case-browser--mobile::before { height: 16px; background: var(--landing-color-surface-muted); }

.home-other-projects {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
}

.home-other-projects::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--landing-color-border);
}

.home-other-projects h3 {
  margin: 0;
  color: var(--landing-color-text-body);
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-main { overflow: hidden; background: var(--landing-color-surface); color: var(--landing-color-text-heading); }
.case-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.case-narrow { width: min(820px, calc(100% - 40px)); margin: 0 auto; }

.case-hero {
  position: relative;
  padding: clamp(72px, 9vw, 124px) 0 clamp(76px, 9vw, 118px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, var(--landing-color-blue-ring), transparent 32%),
    radial-gradient(circle at 12% 90%, var(--landing-color-brand-glow), transparent 28%),
    var(--landing-gradient-editorial-dark);
  color: var(--landing-color-text-on-dark);
}

.case-hero::after {
  position: absolute;
  top: 0;
  right: max(24px, calc((100vw - 1120px) / 2));
  width: 132px;
  height: 6px;
  background: var(--landing-gradient-accent-split);
  content: "";
  pointer-events: none;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(44px, 7vw, 86px);
  align-items: center;
}

.case-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--landing-color-text-on-dark);
  font-size: clamp(2.55rem, 5vw, 5rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.01;
  letter-spacing: -0.055em;
}

.case-hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--landing-color-text-on-dark-muted);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.case-hero-visual { position: relative; min-height: 520px; }
.case-hero-visual .case-browser:first-child { position: absolute; top: 18px; left: 0; width: 91%; transform: rotate(-1.5deg); }
.case-hero-mobile { position: absolute; right: 0; bottom: 0; width: 29%; border-radius: 24px; transform: rotate(2deg); }
.case-hero-mobile::before { height: 15px; background: var(--landing-color-surface-muted); }

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.case-meta li {
  padding: 8px 12px;
  border: 1px solid var(--landing-color-border-on-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--landing-color-text-on-dark-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.case-section { padding: clamp(72px, 8vw, 112px) 0; }
.case-section--soft { background: var(--landing-color-surface-muted); }
.case-section--blue { background: var(--landing-color-surface-cool); }
.case-section-kicker { color: var(--landing-color-action); }

.case-section h2 {
  max-width: 850px;
  margin: 0;
  color: var(--landing-color-text-heading);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.case-section-intro {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--landing-color-text-body);
  font-size: 1.08rem;
  line-height: 1.8;
}

.case-brief-grid,
.case-role-grid,
.case-process-grid {
  display: grid;
  gap: 20px;
  margin-top: 42px;
}

.case-brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-role-grid,
.case-process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.case-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--landing-color-border);
  border-radius: 18px;
  background: var(--landing-color-surface);
  box-shadow: var(--landing-shadow-subtle);
}

.case-card-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--landing-color-surface-warm);
  color: var(--landing-color-action);
  font-size: 0.82rem;
  font-weight: 900;
}

.case-card h3 { margin: 0; color: var(--landing-color-text-heading); font-size: 1.28rem; font-weight: var(--font-weight-bold); line-height: 1.3; }
.case-card p { margin: 13px 0 0; color: var(--landing-color-text-body); line-height: 1.75; }

.case-callout {
  margin-top: 34px;
  padding: 26px 28px;
  border-left: 4px solid var(--landing-color-brand-accent);
  border-radius: 0 14px 14px 0;
  background: var(--landing-color-surface-warm);
  color: var(--landing-color-action-hover);
  font-size: 1.03rem;
  line-height: 1.75;
}

.case-delivery-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  margin-top: 46px;
}

.case-list { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.case-list li { position: relative; padding-left: 30px; color: var(--landing-color-text-body); line-height: 1.65; }
.case-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--landing-color-decorative-blue); font-weight: 900; }

.case-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 20px;
  margin-top: 46px;
  align-items: start;
}

.case-gallery figure { margin: 0; }
.case-gallery img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--landing-shadow-elevated); }
.case-gallery figcaption { margin-top: 12px; color: var(--landing-color-text-muted); font-size: 0.9rem; line-height: 1.55; }

.case-final {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  border-top: 1px solid var(--landing-color-border);
  background: var(--landing-color-surface-editorial);
  color: var(--landing-color-text-heading);
}

.case-final::before {
  position: absolute;
  top: -180px;
  right: max(-70px, calc((100vw - 1180px) / 2 - 120px));
  width: 390px;
  height: 390px;
  border: 1px solid var(--landing-color-blue-ring);
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 0 54px var(--landing-color-blue-ring),
    0 0 0 108px var(--landing-color-brand-glow);
  content: "";
  pointer-events: none;
}

.case-final::after {
  position: absolute;
  top: 0;
  left: max(20px, calc((100vw - 1180px) / 2));
  width: 174px;
  height: 5px;
  background: var(--landing-gradient-accent-split);
  content: "";
  pointer-events: none;
}

.case-final-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 48px;
  align-items: center;
}

.case-final h2 {
  max-width: 650px;
  margin: 0 0 12px;
  color: var(--landing-color-text-heading);
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.case-final p {
  max-width: 690px;
  margin: 0;
  color: var(--landing-color-text-body);
  font-size: 1.125rem;
  line-height: 1.65;
}

.case-final .case-final-actions {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  margin-top: 0;
}

.case-final .case-button--outline {
  border-color: var(--landing-color-control-border);
  color: var(--landing-color-text-heading);
}

.case-final .case-button--outline:hover {
  border-color: var(--landing-color-text-heading);
  background: var(--landing-color-surface);
  color: var(--landing-color-text-heading);
}

.native-jore-proof {
  margin: 26px 0;
  padding: 24px;
  border: 1px solid var(--landing-color-border);
  border-radius: 16px;
  background: var(--landing-gradient-hero);
}
.native-jore-proof h3 { margin: 0; color: var(--landing-color-text-heading); font-size: 1.28rem; font-weight: var(--font-weight-bold); line-height: 1.35; }
.native-jore-proof p { margin: 10px 0 0; }
.native-jore-proof a { display: inline-flex; margin-top: 14px; color: var(--landing-color-link); font-weight: var(--font-weight-bold); text-decoration: underline; text-underline-offset: 3px; }
.native-jore-proof a:hover { color: var(--landing-color-link-hover); }

@media (max-width: 980px) {
  .home-case-study,
  .case-hero-grid,
  .case-delivery-grid { grid-template-columns: 1fr; }
  .home-case-visuals { min-height: 440px; }
  .case-hero-visual { min-height: 490px; }
  .case-role-grid,
  .case-process-grid { grid-template-columns: 1fr 1fr; }
  .case-final-grid { grid-template-columns: 1fr; }
  .case-final .case-final-actions { width: min(100%, 440px); justify-content: flex-start; }
}

@media (max-width: 700px) {
  .case-shell,
  .case-narrow { width: min(100% - 28px, 1160px); }
  .home-case-study { margin-bottom: 48px; padding: 28px 20px 24px; border-radius: 20px; }
  .home-case-study h3 { font-size: 2.2rem; }
  .home-case-actions,
  .case-actions,
  .case-final-actions { flex-direction: column; align-items: stretch; }
  .case-button { width: 100%; }
  .home-case-visuals { min-height: 330px; }
  .home-case-browser--desktop { width: 94%; }
  .home-case-browser--mobile { width: 31%; }
  .case-hero { padding-top: 60px; }
  .case-hero-visual { min-height: 350px; }
  .case-hero-visual .case-browser:first-child { width: 95%; }
  .case-hero-mobile { width: 31%; }
  .case-brief-grid,
  .case-role-grid,
  .case-process-grid,
  .case-gallery { grid-template-columns: 1fr; }
  .case-card { padding: 23px; }
  .case-gallery figure:last-child { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 430px) {
  .home-case-visuals { min-height: 285px; }
  .case-hero-visual { min-height: 300px; }
}

@media (max-width: 640px) {
  .case-final { padding: 54px 0; }
  .case-final::after { left: 16px; width: 120px; }
  .case-final h2 { font-size: 2rem; }
  .case-final p { font-size: 1.0625rem; }
  .case-final .case-final-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .case-button { transition: none; }
  .case-button:hover { transform: none; }
}
