@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #151617;
  --muted: #66665f;
  --paper: #f5f3ee;
  --paper-2: #ebe9e1;
  --line: rgba(21, 22, 23, 0.16);
  --lime: #c7f056;
  --coral: #ff7259;
  --blue: #6c6ef2;
  --white: #fffdf9;
  --shadow: 0 20px 70px rgba(21, 22, 23, 0.12);
  --display: 'Space Grotesk', 'Arial Black', sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--lime); color: var(--ink); }

.reading-progress { position: fixed; inset: 0 0 auto; height: 4px; background: transparent; z-index: 50; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--coral); transform-origin: left; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; padding: 22px 4.6vw; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: -0.06em; font-size: 1.1rem; }
.wordmark-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--lime); color: var(--ink); font-size: 0.74rem; letter-spacing: -0.1em; }
.nav-links { display: flex; align-items: center; gap: 29px; font-size: 0.78rem; font-weight: 600; color: rgba(21, 22, 23, 0.76); }
.nav-links a { position: relative; padding: 8px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--coral); transition: width 220ms ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 17px; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.78rem; font-weight: 700; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.site-header-dark { color: var(--paper); }
.site-header-dark .nav-links { color: rgba(245, 243, 238, 0.72); }
.site-header-dark .nav-cta { border-color: var(--paper); }
.site-header-dark .nav-cta:hover, .site-header-dark .nav-cta:focus-visible { background: var(--paper); color: var(--ink); }
.site-header-dark .menu-toggle span { background: var(--paper); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 180ms ease; }

.container { width: min(1180px, 90vw); margin: 0 auto; }
.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; padding: 138px 0 84px; background: var(--paper); }
.hero::before { content: ''; position: absolute; width: 42vw; height: 42vw; min-width: 440px; min-height: 440px; right: -14vw; top: -16vw; border-radius: 50%; background: var(--lime); opacity: 0.86; }
.hero::after { content: ''; position: absolute; width: 17vw; height: 17vw; min-width: 190px; min-height: 190px; right: 22vw; bottom: -9vw; border-radius: 50%; background: var(--coral); opacity: 0.94; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr); gap: 9vw; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 23px; font-size: 0.69rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.eyebrow::before { content: ''; display: inline-block; width: 32px; height: 2px; background: var(--coral); }
.hero h1 { max-width: 760px; margin: 0; font-family: var(--display); font-size: clamp(3.7rem, 7.7vw, 7.4rem); line-height: 0.92; letter-spacing: -0.085em; font-weight: 600; }
.hero h1 .accent { position: relative; display: inline-block; z-index: 0; }
.hero h1 .accent::after { content: ''; position: absolute; z-index: -1; left: -0.04em; right: -0.02em; bottom: 0.03em; height: 0.18em; background: var(--coral); transform: rotate(-2deg); }
.hero-copy { max-width: 380px; padding-bottom: 8px; }
.hero-copy p { margin: 0 0 26px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.hero-note { display: flex; align-items: flex-start; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-note-mark { width: 8px; height: 8px; margin-top: 8px; flex: none; border-radius: 50%; background: var(--blue); }
.hero-note p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--ink); }
.hero-note strong { font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 0 19px; border-radius: 999px; border: 1px solid var(--ink); font-size: 0.83rem; font-weight: 700; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-3px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover, .button-dark:focus-visible { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.button-ghost { background: transparent; }
.button-ghost:hover, .button-ghost:focus-visible { background: var(--lime); }
.button-light { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.button-light:hover, .button-light:focus-visible { background: var(--lime); border-color: var(--lime); }
.button-arrow { font-size: 1.1rem; line-height: 0; }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--lime); }
.ticker-track { display: flex; width: max-content; gap: 32px; align-items: center; padding: 14px 0; animation: marquee 24s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 32px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.17em; font-weight: 700; }
.ticker-item::after { content: '✳'; font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 122px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-kicker { margin: 0 0 15px; color: var(--coral); font-size: 0.68rem; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 700; }
.section h2 { max-width: 680px; margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.35rem, 4.5vw, 4.7rem); line-height: 0.98; letter-spacing: -0.075em; }
.section-intro { max-width: 320px; margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof { min-height: 174px; padding: 24px 22px 22px 0; border-right: 1px solid var(--line); }
.proof + .proof { padding-left: 22px; }
.proof:last-child { border-right: 0; }
.proof-number { display: block; margin-bottom: 7px; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 600; letter-spacing: -0.08em; }
.proof-secondary { display: block; margin-bottom: 19px; color: var(--muted); font-size: 0.83rem; font-weight: 600; letter-spacing: -0.02em; }
.proof-label { display: block; color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
.proof-label strong { display: block; color: var(--ink); font-size: 0.82rem; }
.rate-note { margin: 16px 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.proof-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 18px 20px; border: 1px solid var(--ink); border-radius: 13px; background: var(--lime); }
.proof-callout-label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.proof-callout strong { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 0.95; letter-spacing: -0.08em; }
.proof-callout .proof-secondary { margin-bottom: 0; }
.proof-callout-copy { color: rgba(21, 22, 23, 0.62); font-size: 0.76rem; }

.work-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 18px; }
.work-feature { grid-row: span 2; min-height: 620px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: 22px; background: var(--ink); color: var(--paper); }
.work-feature .work-img { height: 370px; }
.work-img { position: relative; overflow: hidden; background: var(--paper-2); }
.work-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.work-card:hover img, .work-feature:hover img { transform: scale(1.035); }
.work-feature .work-img::after { content: 'SELECTED CASE'; position: absolute; top: 18px; left: 18px; padding: 8px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; }
.work-body { padding: 28px 30px 31px; }
.work-body .tag { display: block; margin-bottom: 14px; color: var(--coral); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.work-body h3 { margin: 0 0 13px; font-family: var(--display); font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 0.98; letter-spacing: -0.07em; }
.work-body p { max-width: 580px; margin: 0; color: rgba(245,243,238,0.68); font-size: 0.9rem; line-height: 1.6; }
.work-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--paper); font-size: 0.82rem; font-weight: 700; }
.work-link .circle-arrow { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid currentColor; border-radius: 50%; transition: transform 180ms ease; }
.work-link:hover .circle-arrow { transform: translateX(4px); }
.work-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--white); transition: transform 180ms ease, box-shadow 180ms ease; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-card .work-img { height: 176px; }
.work-card .work-body { padding: 21px 23px 23px; }
.work-card .work-body .tag { color: var(--blue); margin-bottom: 9px; }
.work-card h3 { font-size: 1.38rem; margin-bottom: 10px; }
.work-card p { color: var(--muted); font-size: 0.82rem; }
.work-card .work-link { margin-top: 16px; color: var(--ink); font-size: 0.77rem; }

.split-band { padding: 0; background: var(--ink); color: var(--paper); }
.split-band-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: stretch; min-height: 590px; }
.split-band-title { display: flex; align-items: flex-end; padding: 72px 9vw 72px 0; border-right: 1px solid rgba(245,243,238,0.22); }
.split-band-title h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(2.8rem, 5.5vw, 6rem); line-height: 0.88; letter-spacing: -0.08em; }
.split-band-title h2 span { color: var(--lime); }
.steps { display: grid; grid-template-rows: repeat(3, 1fr); }
.step { display: grid; grid-template-columns: 85px 1fr; align-items: center; gap: 28px; padding: 35px 0 35px 8vw; border-bottom: 1px solid rgba(245,243,238,0.22); }
.step:last-child { border-bottom: 0; }
.step-num { color: var(--lime); font-family: var(--display); font-size: 1rem; letter-spacing: 0.06em; }
.step h3 { margin: 0 0 7px; font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.04em; }
.step p { max-width: 440px; margin: 0; color: rgba(245,243,238,0.62); font-size: 0.87rem; line-height: 1.55; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.service { min-height: 285px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: transparent; transition: background 180ms ease, transform 180ms ease; }
.service:hover { background: var(--lime); transform: translateY(-5px); }
.service-index { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.13em; }
.service-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid currentColor; border-radius: 50%; font-size: 1rem; }
.service h3 { margin: 56px 0 12px; font-family: var(--display); font-size: 1.42rem; letter-spacing: -0.06em; }
.service p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.service:hover p { color: var(--ink); }

.profile { padding: 98px 0; background: var(--paper-2); }
.profile-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 9vw; }
.profile-stamp { position: relative; width: min(100%, 350px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--coral); transform: rotate(-7deg); }
.profile-stamp::before { content: ''; position: absolute; inset: 19px; border: 1px solid var(--ink); border-radius: 50%; }
.profile-stamp span { max-width: 180px; text-align: center; font-family: var(--display); font-size: 2rem; line-height: 0.95; letter-spacing: -0.08em; }
.profile-copy h2 { margin-bottom: 22px; }
.profile-copy p { max-width: 540px; margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.profile-signoff { display: block; margin-top: 27px; font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.04em; }

.contact { position: relative; overflow: hidden; padding: 128px 0 110px; background: var(--blue); color: var(--paper); }
.contact::after { content: 'HELLO'; position: absolute; right: -0.02em; bottom: -0.23em; color: rgba(245,243,238,0.1); font-family: var(--display); font-size: 28vw; line-height: 0.8; letter-spacing: -0.13em; }
.contact-inner { position: relative; z-index: 1; max-width: 800px; }
.contact .section-kicker { color: var(--lime); }
.contact h2 { max-width: 760px; font-size: clamp(3.5rem, 8vw, 8rem); }
.contact p { max-width: 470px; margin: 26px 0 31px; color: rgba(245,243,238,0.73); font-size: 1rem; line-height: 1.65; }
.contact .contact-note { margin: -11px 0 28px; color: var(--lime); font-size: 0.73rem; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.contact-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.contact-option { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.contact-option-meta { display: flex; align-items: center; gap: 10px; color: rgba(245,243,238,0.58); font-size: 0.69rem; }
.copy-email { padding: 0; border: 0; border-bottom: 1px solid rgba(245,243,238,0.48); background: transparent; color: var(--paper); cursor: pointer; font-size: 0.69rem; }
.copy-email:hover, .copy-email:focus-visible { color: var(--lime); border-color: var(--lime); }
.contact-email { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 2px solid var(--lime); font-family: var(--display); font-size: clamp(1.2rem, 2.5vw, 2rem); letter-spacing: -0.06em; }
.contact-email:hover { color: var(--lime); }

.site-footer { padding: 25px 0 30px; background: var(--ink); color: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner .wordmark { color: var(--paper); }
.footer-meta { display: flex; align-items: center; gap: 20px; color: rgba(245,243,238,0.55); font-size: 0.72rem; }
.footer-meta a:hover { color: var(--lime); }

.case-hero { padding: 164px 0 92px; background: var(--ink); color: var(--paper); }
.case-hero .eyebrow { color: rgba(245,243,238,0.62); }
.case-hero .eyebrow::before { background: var(--lime); }
.case-hero-grid { display: grid; grid-template-columns: 1.1fr 0.7fr; gap: 8vw; align-items: end; }
.case-hero h1 { max-width: 740px; margin: 0; font-family: var(--display); font-size: clamp(3.3rem, 7vw, 7.2rem); line-height: 0.91; letter-spacing: -0.09em; font-weight: 500; }
.case-hero h1 span { color: var(--lime); }
.case-hero-copy { padding-bottom: 4px; }
.case-hero-copy p { margin: 0 0 23px; color: rgba(245,243,238,0.67); line-height: 1.65; font-size: 0.95rem; }
.case-meta { display: flex; gap: 20px; flex-wrap: wrap; color: rgba(245,243,238,0.54); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.11em; }
.case-image { margin-top: 70px; overflow: hidden; border-radius: 18px; background: var(--paper-2); box-shadow: 0 24px 80px rgba(0,0,0,0.22); }
.case-image img { display: block; width: 100%; height: auto; }
.case-section { padding: 100px 0; }
.case-intro { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 9vw; }
.case-intro h2 { margin: 0; font-family: var(--display); font-size: clamp(2.1rem, 4vw, 4rem); line-height: 0.96; letter-spacing: -0.07em; }
.case-intro-copy p { margin: 0 0 17px; color: var(--muted); line-height: 1.7; font-size: 0.96rem; }
.case-label { margin: 0 0 16px; color: var(--coral); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.17em; font-weight: 700; }
.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-stat { padding: 23px 20px 24px 0; border-right: 1px solid var(--line); }
.case-stat + .case-stat { padding-left: 20px; }
.case-stat:last-child { border-right: 0; }
.case-stat strong { display: block; margin-bottom: 5px; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.08em; }
.case-secondary { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.case-stat span { color: var(--muted); font-size: 0.74rem; line-height: 1.35; }
.case-rate-note { margin-top: 16px; }
.case-spend-callout { margin-top: 24px; }
.case-dark { background: var(--ink); color: var(--paper); }
.case-dark .case-label { color: var(--lime); }
.case-dark .case-intro-copy p { color: rgba(245,243,238,0.65); }
.case-dark .case-intro h2 { color: var(--paper); }
.case-dark .case-stat { border-color: rgba(245,243,238,0.22); }
.case-dark .case-stat span { color: rgba(245,243,238,0.52); }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 64px; }
.case-gallery figure { margin: 0; }
.case-gallery figure:first-child { grid-column: span 2; }
.case-gallery img { display: block; width: 100%; height: auto; border-radius: 13px; background: var(--paper-2); }
.case-gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.case-dark .case-gallery figcaption { color: rgba(245,243,238,0.51); }
.case-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 60px; border-top: 1px solid rgba(245,243,238,0.22); }
.case-step { min-height: 190px; padding: 21px 18px 20px 0; border-right: 1px solid rgba(245,243,238,0.22); }
.case-step + .case-step { padding-left: 18px; }
.case-step:last-child { border-right: 0; }
.case-step span { color: var(--lime); font-size: 0.68rem; letter-spacing: 0.1em; }
.case-step h3 { margin: 42px 0 10px; font-family: var(--display); font-size: 1.12rem; letter-spacing: -0.04em; }
.case-step p { margin: 0; color: rgba(245,243,238,0.55); font-size: 0.77rem; line-height: 1.5; }
.case-next { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px 0 0; border-top: 1px solid rgba(245,243,238,0.22); }
.case-next h2 { max-width: 650px; margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 4.2rem); line-height: 0.95; letter-spacing: -0.08em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .site-header { padding: 18px 5vw; }
  .nav-links { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; padding: 10vh 10vw; background: var(--lime); font-family: var(--display); font-size: 2.5rem; letter-spacing: -0.07em; transform: translateX(100%); transition: transform 250ms ease; }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { padding: 6px 0; }
  .nav-cta { position: fixed; z-index: 2; left: 10vw; bottom: 10vh; font-family: var(--body); font-size: 0.82rem; }
  .menu-toggle { display: block; position: relative; z-index: 3; }
  .menu-toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { min-height: 730px; padding-top: 137px; }
  .hero-grid, .case-hero-grid, .profile-grid, .case-intro { grid-template-columns: 1fr; gap: 47px; }
  .hero::before { width: 65vw; height: 65vw; right: -24vw; top: -13vw; }
  .hero::after { width: 26vw; height: 26vw; right: 12vw; bottom: -7vw; }
  .hero-copy { max-width: 520px; }
  .section { padding: 86px 0; }
  .section-head { display: block; margin-bottom: 35px; }
  .section-intro { margin-top: 18px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof:nth-child(2) { border-right: 0; }
  .proof:nth-child(3), .proof:nth-child(4) { border-top: 1px solid var(--line); }
  .proof:nth-child(3) { padding-left: 0; }
  .proof:nth-child(4) { border-right: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-feature { min-height: 0; }
  .work-feature .work-img { height: 280px; }
  .split-band-inner { grid-template-columns: 1fr; }
  .split-band-title { min-height: 300px; padding: 72px 0 58px; border-right: 0; border-bottom: 1px solid rgba(245,243,238,0.22); }
  .step { padding-left: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 230px; }
  .service h3 { margin-top: 37px; }
  .profile-stamp { width: min(68vw, 300px); }
  .contact { padding: 96px 0 100px; }
  .case-hero { padding-top: 132px; }
  .case-image { margin-top: 42px; }
  .case-stats { grid-template-columns: repeat(2, 1fr); }
  .case-stat:nth-child(2) { border-right: 0; }
  .case-stat:nth-child(3), .case-stat:nth-child(4) { border-top: 1px solid var(--line); }
  .case-stat:nth-child(3) { padding-left: 0; }
  .case-stat:nth-child(4) { border-right: 0; }
  .case-steps { grid-template-columns: repeat(2, 1fr); }
  .case-step:nth-child(2) { border-right: 0; }
  .case-step:nth-child(3), .case-step:nth-child(4), .case-step:nth-child(5) { border-top: 1px solid rgba(245,243,238,0.22); }
  .case-step:nth-child(3) { padding-left: 0; }
  .case-step:nth-child(4) { border-right: 0; }
  .case-step:last-child { grid-column: span 2; }
  .case-next { display: block; }
  .case-next .button { margin-top: 24px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 40px, 1180px); }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .hero { min-height: 720px; }
  .proof { min-height: 152px; padding-top: 18px; }
  .proof + .proof { padding-left: 16px; }
  .proof-number { margin-bottom: 19px; }
  .work-body { padding: 23px 21px 25px; }
  .work-feature .work-img { height: 220px; }
  .step { grid-template-columns: 53px 1fr; gap: 15px; padding: 28px 0; }
  .step h3 { font-size: 1.15rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { flex-wrap: wrap; gap: 12px 18px; }
  .case-hero h1 { font-size: clamp(3.2rem, 15vw, 5.4rem); }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery figure:first-child { grid-column: auto; }
  .case-steps { grid-template-columns: 1fr; }
  .case-step, .case-step + .case-step { min-height: 0; padding: 23px 0; border-right: 0; border-bottom: 1px solid rgba(245,243,238,0.22); }
  .case-step:nth-child(3), .case-step:nth-child(4), .case-step:nth-child(5) { border-top: 0; }
  .case-step:last-child { grid-column: auto; border-bottom: 0; }
  .case-step h3 { margin-top: 20px; }
}
