/* 
  Portfolio Starter
  Built from scratch as an original starter layout.
  Replace copy and imagery to match your final brand.
*/

:root {
  --bg: #FAF6EE;
  --surface: #FFFFFF;
  --surface-soft: #F1EBE2;
  --text: #171412;
  --text-muted: #5F564F;
  --accent: #6B4A3A;
  --accent-strong: #8F5F46;
  --border: #E2D8CC;
  --highlight: #E9DFD3;

  --font-main: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 999px;

  --shadow-soft: 0 20px 60px rgba(50, 37, 25, 0.10);
  --shadow: 0 24px 70px rgba(50, 37, 25, 0.12);

  --max-width: 1180px;
  --header-height: 76px;
}

[data-theme="dark"] {
  --bg: #12100F;
  --surface: #1C1917;
  --surface-soft: #29231F;
  --text: #F6EFE8;
  --text-muted: #CBBFB4;
  --accent: #E0A57E;
  --accent-strong: #F1C7A8;
  --border: #3A312B;
  --highlight: #241E1A;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  transition: background 220ms ease, color 220ms ease;
}

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

p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.04em;
}

h1 {
  max-width: none;
  font-size: 52px;
  line-height: 1.06;
  font-weight: 500;
}

h2 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 500;
}

h3 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - var(--max-width)) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}

.logo {
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
}

.nav-links a:hover {
  color: var(--text);
}

.theme-toggle {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.hero {
  min-height: calc(92vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero__copy {
  max-width: 700px;
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-strong) 55%,
    var(--text) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-strong) 55%,
    var(--text) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.button--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button--secondary {
  background: var(--surface);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 96px;
}

.project-card {
  min-height: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}

.project-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.project-card--wide .project-card__link {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.project-card__media {
  padding: 20px;
}

.project-card__media--small {
  padding-bottom: 0;
}

.project-card__image {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.mock-preview {
  min-height: 330px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 32%),
    linear-gradient(135deg, var(--surface-soft), color-mix(in srgb, var(--accent) 18%, var(--surface)));
  border: 1px solid var(--border);
  color: var(--accent-strong);
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.mock-preview--phone {
  min-height: 240px;
  border-radius: 34px;
  width: min(230px, 100%);
  margin: 0 auto;
}

.mock-preview--web {
  min-height: 240px;
}

.mock-preview--resort {
  min-height: 280px;
}

.project-card__content {
  padding: 8px 28px 30px;
  align-self: end;
}

.project-card__meta {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.project-card__content p {
  margin-bottom: 0;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag-row span {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.about-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  padding-bottom: 110px;
}

.about-section p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.7;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
}

.site-footer p,
.site-footer a {
  font-size: 15px;
  line-height: 1.4;
}

/* Case study pages */

.case-hero {
  padding-top: 82px;
  padding-bottom: 52px;
}

.case-hero h1 {
  max-width: 1180px;
}


.case-hero p:not(.eyebrow) {
  max-width: 1180px;
  font-size: 18px;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

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

.case-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 860px);
  gap: 88px;
  align-items: start;
  padding-bottom: 120px;
}

.case-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.case-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.case-nav a {
  color: var(--text-muted);
  border-radius: 0;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.58;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.case-nav a:hover {
  color: var(--accent);
  background: transparent;
  opacity: 1;
  text-decoration: none;
  transform: translateX(3px);
}

.case-nav a.active {
  color: var(--text);
  background: transparent;
  opacity: 1;
  font-weight: 700;
}

.case-content {
  min-width: 0;
  max-width: 860px;
}

.case-section {
  padding: 0 0 72px;
  margin-bottom: 72px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.case-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.case-section .eyebrow {
  margin-bottom: 18px;
}

.case-section h2 {
  max-width: 840px;
  margin-bottom: 24px;
}

.case-section p {
  max-width: 830px;
  margin-top: 0;
  margin-bottom: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
  max-width: 860px;
}

.stats-grid div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.stats-grid strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.callout,
.image-placeholder {
  margin-top: 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 22px;
  color: var(--text-muted);
}

.callout {
  padding: 24px;
  color: var(--text-muted);
}

.image-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
  font-weight: 700;
  color: var(--text-muted);
}

.image-placeholder__image {
  width: 100%;
  min-height: 330px;
  max-height: 600px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: white;
}

/* Case study image slider */

.case-slider {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: white;
  overflow: hidden;
}

.case-slider__track {
  position: relative;
  min-height: 420px;
}

.case-slider__image {
  display: none;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.case-slider__image.is-active {
  display: block;
}

.case-slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.case-slider__button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.case-slider__button:hover {
  background: var(--highlight);
  color: var(--accent);
  border-color: var(--accent);
}

.case-slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
}

.case-slider__dot.is-active {
  width: 26px;
  background: var(--accent);
}

.password-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.password-card {
  width: min(100%, 640px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.password-card h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.password-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.password-form label {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.password-form input {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  padding: 0 16px;
}

.password-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.password-error {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 600px) {
  .password-page {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .password-card {
    padding: 28px;
  }

  .password-card h1 {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .case-slider__track {
    min-height: 280px;
  }

  .case-slider__image {
    height: 280px;
  }

  .case-slider__controls {
    flex-wrap: wrap;
  }

  .case-slider__button {
    flex: 1;
  }

  .case-slider__dots {
    width: 100%;
    justify-content: center;
    order: -1;
  }
}

/* About page */

.about-hero {
  padding-top: 60px;
  padding-bottom: 40px;
}

.about-hero h1 {
  max-width: 900px;
}

.about-intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: top;
  padding-bottom: 40px;
}

.about-intro__copy h2 {
  max-width: 760px;
  margin-bottom: 24px;
  align-items: top;
}

.about-intro__copy p {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  align-items: top;
}

.about-intro__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.about-intro__image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}

.about-hobbies {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 120px;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hobby-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.about-hobbies__copy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.about-hobbies__copy h2 {
  margin-bottom: 20px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 600;
}

.hobby-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.hobby-list li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.hobby-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Labs page */

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

.labs-hero h1 {
  max-width: 900px;
}

.labs-hero .lead {
  max-width: 760px;
  margin-top: 24px;
}

.labs-section {
  padding-bottom: 120px;
}

.labs-grid {
  align-items: stretch;
}

.lab-card {
  min-height: 560px;
}

.lab-card .project-card__link {
  height: 100%;
}

.lab-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.lab-pill,
.lab-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.lab-pill {
  background: var(--highlight);
  color: var(--accent);
}

.lab-status {
  background: var(--surface-soft);
  color: var(--text-muted);
}

.lab-card__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.lab-card__image--gif {
  height: 420px;
  object-fit: contain;
  background: var(--surface);
}

.lab-card--visual .project-card__media {
  display: grid;
  place-items: center;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.project-card:hover .text-link {
  color: var(--accent-strong);
}

.lab-card,
.lab-gif-standalone {
  height: 640px;
}

.lab-gif-standalone {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.lab-gif-standalone__image {
  height: 620px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Default links inside page content */
main a,
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

main a:hover,
.site-footer a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* Top navigation menu links */
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-soft);
  text-decoration: none;
}

/* Optional active/current page menu style */
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-soft);
  font-weight: 700;
  text-decoration: none;
}

/* Always-underlined inline links like "CCBH" */
main a.inline-link,
.inline-link {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

main a.inline-link:hover,
.inline-link:hover {
  color: var(--accent-strong);
  text-decoration-line: underline;
  text-decoration-color: var(--accent-strong);
}

/* Remove underline from project cards */
.project-card a,
.project-card a:hover,
.project-card__link,
.project-card__link:hover {
  text-decoration: none;
}

/* Remove underline from buttons */
.button,
.button:hover,
.button:focus,
.button:visited {
  text-decoration: none;
}

@media (max-width: 860px) {
  h1 {
    font-size: 46px;
    line-height: 1.08;
  }

  h2 {
    font-size: 36px;
    line-height: 1.12;
  }

  h3 {
    font-size: 26px;
    line-height: 1.18;
  }

  .nav-links {
    gap: 12px;
  }

  .hero__copy {
    font-size: 18px;
  }

  .project-grid,
  .about-section,
  .case-layout {
    grid-template-columns: 1fr;
  }

  .project-card--large,
  .project-card--wide {
    grid-column: auto;
    grid-row: auto;
  }

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

  .mock-preview {
    font-size: 48px;
  }

  .case-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 80px;
  }

  .case-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .case-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    scrollbar-width: none;
  }

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

  .case-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 8px 0;
  }

  .case-content {
    max-width: 100%;
  }

  .case-section {
    padding-bottom: 56px;
    margin-bottom: 56px;
  }

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

  .site-footer {
    flex-direction: column;
  }

  .about-intro,
  .about-hobbies {
    grid-template-columns: 1fr;
  }

  .about-intro__image {
    max-width: 460px;
  }

  .about-hobbies__copy {
    order: -1;
  }

  .about-hobbies__copy h2 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: auto;
  }

  h1 {
    font-size: 38px;
    line-height: 1.1;
  }

  h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  h3 {
    font-size: 24px;
    line-height: 1.2;
  }

  p {
    font-size: 16px;
  }

  .site-header {
    position: static;
    min-height: 76px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .theme-toggle__text {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
  }

  .hero__copy {
    font-size: 17px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .button {
    font-size: 15px;
  }

  .project-card {
    min-height: auto;
  }

  .mock-preview,
  .mock-preview--phone,
  .mock-preview--web,
  .mock-preview--resort {
    min-height: 220px;
    width: 100%;
    font-size: 38px;
  }

  .project-card__meta {
    font-size: 13px;
  }

  .tag-row span {
    font-size: 12px;
  }

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

  .about-intro,
  .about-hobbies {
    gap: 32px;
    padding-bottom: 80px;
  }

  .about-intro__copy p {
    font-size: 16px;
  }

  .hobby-grid {
    gap: 12px;
  }

  .about-hobbies__copy {
    padding: 24px;
  }

  .about-hobbies__copy h2 {
    font-size: 28px;
  }

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

.lab-card {
  min-height: auto;
}

.lab-card__topline {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.lab-card__image,
.lab-card__image--gif {
  height: 240px;
}

.lab-gif-standalone {
  min-height: auto;
  padding: 24px 0;
}

.lab-gif-standalone__image {
  width: 220px;
  height: auto;
  max-height: 440px;
}

.case-hero {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .case-layout {
    width: min(var(--max-width), calc(100% - 32px));
    gap: 32px;
    padding-bottom: 64px;
  }

  .case-section {
    padding-bottom: 48px;
    margin-bottom: 48px;
  }

  .case-section h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  .case-section p {
    font-size: 16px;
    line-height: 1.65;
  }

  .stats-grid div {
    padding: 18px;
  }

  .case-slider__track {
    min-height: 240px;
  }

  .case-slider__image {
    height: 240px;
  }
}
