/* ==========================================================================
   Markiz — style.css
   Tokenlar Webflow projesindeki değişkenlerden birebir alınmıştır
   (Colors / Typography / Sizes koleksiyonları).
   ========================================================================== */

/* ---------- Fontlar (kendi sunucunda, KVKK dostu) ---------- */
@font-face {
  font-family: "BDO Grotesk";
  src: url("../fonts/BDOGrotesk-VF.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokenlar ---------- */
:root {
  /* Renk */
  --black: #000;
  --white: #fff;
  --grey-100: #dddddd;
  --grey-200: #b6b6b6;
  --grey-300: #6b6b6b;
  --grey-400: #474747;
  --grey-500: #333;
  --grey-600: #292929;
  --grey-700: #171717;
  --grey-900: #0a0a0a;
  --surface: #f3f3f3;

  /* Tipografi */
  --font-display: "BDO Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --h1: 6rem;   --h2: 5rem;   --h3: 3.5rem;
  --h4: 2.75rem; --h5: 2rem;  --h6: 1.25rem;

  /* Boşluk */
  --space-xs: .5rem;  --space-s: 1rem;   --space-m: 2rem;
  --space-l: 3rem;    --space-xl: 4rem;  --space-xxl: 5rem;
  --section: 8rem;    --section-l: 10rem;

  /* Köşe */
  --radius-s: .75rem; --radius-m: 1rem; --radius-l: 1.5rem;

  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  --max: 92rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 991px) {
  :root {
    --h1: 5rem; --h2: 4rem; --h3: 3rem; --h4: 2.25rem; --h5: 1.5rem; --h6: 1.125rem;
    --space-xxl: 4rem; --section: 7rem; --section-l: 8rem;
    --radius-m: .5rem; --radius-l: .875rem;
  }
}
@media (max-width: 767px) {
  :root {
    --h1: 3rem; --h2: 2.5rem; --h3: 2rem; --h4: 1.75rem; --h5: 1.5rem; --h6: 1rem;
    --space-m: 1.5rem; --space-l: 2rem; --space-xl: 3rem; --space-xxl: 3rem;
    --section: 5rem; --section-l: 5rem;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6, p, figure, ul { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; border-radius: 4px; }
.cta :focus-visible, .nav__pill :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  padding: .75rem 1rem; background: var(--black); color: var(--white); border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

/* Görsel yüklenene kadar yer tutucu ton */
.deck__card img, .client img, .manifesto__img, .work__media img, .service__media img {
  background: var(--surface);
}

/* ---------- Tipografi yardımcıları ---------- */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.02em;
}
.h2 { font-size: var(--h2); line-height: 1; }
.h4 { font-size: var(--h4); line-height: 1.1; }
.h5 { font-size: var(--h5); line-height: 1.1; }
.h6 { font-size: var(--h6); line-height: 1.2; }
.mono { font-family: var(--font-mono); font-size: .875rem; letter-spacing: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.section-label { color: var(--grey-300); margin-bottom: var(--space-m); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "↓"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateY(3px); }

/* ---------- Butonlar ---------- */
.btn {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.125rem 1.75rem;
  border-radius: var(--radius-m);
  font-family: var(--font-body); font-size: .9375rem; font-weight: 500; line-height: 1.2;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::before { /* imleci takip eden ışık */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--x) var(--y), rgba(255,255,255,.35), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(.98); }

.btn--dark {
  color: var(--white);
  background: linear-gradient(180deg, hsl(0 0% 14%), hsl(0 0% 7%));
  box-shadow: inset 0 0 7px rgba(255,255,255,.18), 0 12px 24px -10px rgba(0,0,0,.35);
}
.btn--light { color: var(--black); background: var(--white); }
.btn--light::before { background: radial-gradient(120px circle at var(--x) var(--y), rgba(0,0,0,.12), transparent 70%); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-top: 1rem;
  pointer-events: none;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__inner > * { pointer-events: auto; }

.nav__logo { width: 9rem; position: relative; top: -.25rem; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.nav.is-scrolled .nav__logo { opacity: 0; transform: translateY(-.5rem); pointer-events: none; }

.nav__pill {
  display: flex; align-items: center; gap: 1.75rem;
  padding: .5rem .5rem .5rem 1.75rem;
  border-radius: var(--radius-l);
  background: rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.nav__link {
  position: relative; overflow: hidden; display: block;
  color: var(--white); font-size: .875rem; font-weight: 500; line-height: 1.2;
}
.nav__link span { display: block; transition: transform .45s var(--ease); }
.nav__link span::after { /* metin yuvarlama efekti */
  content: attr(data-text); position: absolute; left: 0; top: 100%;
}
.nav__link:hover span, .nav__link:focus-visible span { transform: translateY(-100%); }
.nav__link[aria-current="page"] { opacity: .6; }
.nav__cta { padding: .75rem 1.25rem; font-size: .875rem; border-radius: var(--radius-m); }

.nav__toggle {
  display: none;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  position: relative; z-index: 102;
}
.nav__toggle span {
  position: absolute; left: 50%; width: 1.125rem; height: 2px; background: var(--white);
  transform: translateX(-50%); transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: calc(50% - 4px); }
.nav__toggle span:last-child  { top: calc(50% + 2px); }
.nav__toggle[aria-expanded="true"] span:first-child { top: calc(50% - 1px); transform: translateX(-50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { top: calc(50% - 1px); transform: translateX(-50%) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 101; pointer-events: auto;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem var(--gutter) 2.5rem;
  background: var(--black); color: var(--white);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .25rem; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(2.5rem, 12vw, 4rem);
  font-weight: 500; letter-spacing: -.02em; line-height: 1.1;
}
.mobile-menu__meta { font-family: var(--font-mono); font-size: .875rem; color: var(--grey-200); line-height: 1.8; }

@media (max-width: 767px) {
  .nav__pill { display: none; }
  .nav__toggle { display: block; }
  .nav__logo { width: 7.5rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100svh;
  overflow-x: clip;
  display: flex;
  padding-top: clamp(6.5rem, 12vh, 9rem);
  padding-bottom: var(--space-m);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  column-gap: var(--space-l);
  row-gap: var(--space-l);
}
.hero__title {
  align-self: center;
  font-size: clamp(4rem, 13.5vw, 13rem);
  line-height: .86;
  letter-spacing: -.045em;
  font-weight: 500;
}
.hero__line { display: block; }
.hero__line:nth-child(2) { padding-left: .9em; color: var(--grey-300); }
.hero__line:nth-child(3) { padding-left: .35em; }

/* Kart destesi — tek orkestre edilmiş hareket */
.hero__deck {
  position: relative; align-self: center;
  width: clamp(13rem, 24vw, 23rem);
  aspect-ratio: 4 / 5;
  margin-right: clamp(0rem, 3vw, 3rem);
}
.deck__card {
  position: absolute; inset: 0;
  border-radius: var(--radius-l); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
  transform: translate(calc(var(--i, 0) * 14px), calc(var(--i, 0) * -10px)) rotate(calc(var(--i, 0) * 3.5deg)) scale(calc(1 - var(--i, 0) * .04));
  z-index: calc(10 - var(--i, 0));
  transition: transform .9s var(--ease), opacity .6s ease;
}
.deck__card img { width: 100%; height: 100%; object-fit: cover; }
.deck__card[data-pos="4"] { opacity: 0; }
.deck__card.is-leaving { transform: translate(-60%, 8%) rotate(-12deg); opacity: 0; }

.hero__foot {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr minmax(0, 26rem) 1fr; align-items: end; gap: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--grey-100);
}
.hero__foot > .mono:last-child { justify-self: end; }
.hero__intro { display: grid; gap: .75rem; justify-items: start; }
.hero__intro p { font-size: 1.125rem; line-height: 1.35; }

@media (max-width: 767px) {
  .hero { min-height: auto; padding-top: 6.5rem; }
  .hero__title { font-size: 23vw; }
  .hero__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero__deck { width: min(72vw, 18rem); justify-self: center; margin: var(--space-s) 0 var(--space-m); }
  .hero__foot { grid-template-columns: 1fr auto; }
  .hero__intro { grid-column: 1 / -1; grid-row: 1; margin-bottom: var(--space-s); }
}

/* ==========================================================================
   MÜŞTERİLER
   ========================================================================== */
.clients { padding-block: var(--section) 0; overflow: hidden; }
.clients__head { margin-bottom: var(--space-xl); }
.clients__lead { max-width: 22ch; }

.marquee {
  --gap: 1rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex; gap: var(--gap); width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

.client {
  width: 15rem; flex: none;
  display: grid; grid-template-rows: 6.5rem auto auto; gap: .25rem;
  padding: 1.25rem;
  border: 1px solid var(--grey-100); border-radius: var(--radius-m);
}
.client img { width: 100%; height: 100%; object-fit: contain; object-position: left center; background: none; margin-bottom: .75rem; }
.client h3 { font-size: 1rem; line-height: 1.2; letter-spacing: -.01em; }
.client p { font-size: .875rem; color: var(--grey-300); }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; padding-inline: var(--gutter); }
  .marquee__track { animation: none; }
  .marquee__track [data-clone] { display: none; }
}

/* ==========================================================================
   MANİFESTO
   ========================================================================== */
.manifesto { padding-top: var(--section); }
.manifesto__frame {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  aspect-ratio: 16 / 9; background: var(--grey-900);
}
.manifesto__img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__text {
  position: absolute; left: var(--space-l); bottom: var(--space-l); right: var(--space-l);
  color: var(--white); max-width: 12ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 26.5vw, 25rem);
  font-weight: 600; line-height: .78; letter-spacing: -.065em;
  margin-top: var(--space-m);
  margin-left: -.04em;
  white-space: nowrap;
  width: max-content;
}
.wordmark sup { font-size: .14em; font-weight: 500; letter-spacing: 0; vertical-align: top; position: relative; top: .55em; margin-left: .1em; }

@media (max-width: 767px) {
  .manifesto__frame { aspect-ratio: 4 / 5; }
  .manifesto__text { left: var(--space-m); bottom: var(--space-m); right: var(--space-m); }
}

/* ==========================================================================
   İŞLER
   ========================================================================== */
.works { padding-top: var(--section-l); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: var(--space-s); margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--grey-100);
}
.section-head__count { color: var(--grey-300); }

.works__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: var(--space-m); row-gap: var(--space-xl);
}
.works__grid > li:nth-child(even) { margin-top: var(--space-xxl); }

.work { display: block; }
.work__media {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  aspect-ratio: 4 / 3; margin-bottom: 1.25rem;
}
.work__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), opacity .6s ease;
}
.work__alt { opacity: 0; }
.work:hover .work__media img { transform: scale(1.04); }
.work:hover .work__alt { opacity: 1; }
.work__cta {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  padding: .625rem 1rem; border-radius: var(--radius-s);
  background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--white); font-size: .875rem; font-weight: 500;
  opacity: 0; transform: translateY(.5rem);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.work:hover .work__cta, .work:focus-visible .work__cta { opacity: 1; transform: none; }
@media (hover: none) { .work__cta { opacity: 1; transform: none; } }

.work__title { margin-bottom: .375rem; }
.work__desc { color: var(--grey-300); max-width: 42ch; }

.works__more { display: flex; justify-content: center; margin-top: var(--space-xxl); }

@media (max-width: 767px) {
  .works__grid { grid-template-columns: 1fr; }
  .works__grid > li:nth-child(even) { margin-top: 0; }
}

/* ==========================================================================
   HİZMETLER
   ========================================================================== */
.services { padding-top: var(--section-l); }
.services__head {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-m);
  margin-bottom: var(--space-xl);
}
.services__head .section-label { margin: 0; padding-top: .5rem; }
.services__lead { max-width: 30ch; }

.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
.service__media { overflow: hidden; border-radius: var(--radius-l); aspect-ratio: 4 / 5; margin-bottom: 1.25rem; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service h3 { margin-bottom: .5rem; }
.service p { color: var(--grey-300); max-width: 34ch; }

@media (max-width: 991px) {
  .services__head { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .services__grid { grid-template-columns: 1fr; gap: var(--space-l); }
  .service__media { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--section-l) var(--gutter) 0;
  border-radius: var(--radius-l);
  min-height: min(48rem, 85svh);
  display: flex; align-items: flex-end;
  background: var(--grey-900); color: var(--white);
}
.cta__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.65) 100%); }
.cta__inner { padding-block: var(--space-xxl); }
.cta__kicker { color: rgba(255,255,255,.7); margin-bottom: var(--space-s); }
.cta__title { max-width: 14ch; margin-bottom: var(--space-l); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.cta__actions p { color: rgba(255,255,255,.75); }
.cta__actions p a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.4); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding-top: var(--section); padding-bottom: var(--space-m); }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--space-l) var(--space-m);
  padding-bottom: var(--space-xl);
}
.footer__brand img { width: 10rem; margin-bottom: 1.25rem; }
.footer__brand p { color: var(--grey-300); max-width: 28ch; margin-bottom: 1.5rem; }
.footer__social { display: flex; gap: .5rem; }
.footer__social a {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--grey-100); border-radius: 50%;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.footer__social a:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.footer__col { display: flex; flex-direction: column; gap: .625rem; align-items: flex-start; }
.footer__heading {
  font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: 0;
  color: var(--grey-300); margin-bottom: .5rem;
}
.footer__col a { line-height: 1.35; transition: opacity .2s ease; }
.footer__col a:hover { opacity: .55; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: var(--space-s); border-top: 1px solid var(--grey-100);
  font-size: .875rem; color: var(--grey-300);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer__legal a:hover { color: var(--black); }

@media (max-width: 991px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ALT SAYFALAR — ortak
   ========================================================================== */
.label {
  font-family: var(--font-mono); font-size: .875rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
.page-head { padding-top: clamp(8rem, 16vh, 11rem); }
.page-head__title { font-size: var(--h1); line-height: 1; letter-spacing: -.02em; font-weight: 500; }
.section-head--page { margin-bottom: var(--space-xl); }
.works--page { padding-top: 0; }

/* ==========================================================================
   PROJE (VAKA) SAYFASI — Webflow "Works Template" değerleri
   ========================================================================== */
.case-header { padding-top: clamp(8rem, 16vh, 10rem); }
.case-header .container { display: flex; flex-direction: column; gap: 3rem; }
.case-header__head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.case-header__infos { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2.75rem; }
.case-header__info { color: var(--grey-300); font-size: .875rem; font-weight: 500; }
.case-header__title { font-size: var(--h3); line-height: 1.05; letter-spacing: -.02em; font-weight: 500; max-width: 20ch; }
.case-header__media { position: relative; overflow: clip; aspect-ratio: 2 / 1; border-radius: var(--radius-l); background: var(--surface); }
.case-header__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 3%; }

.case-heading { font-size: 2.5rem; line-height: 1.1; letter-spacing: -.02em; font-weight: 500; }

.case-body { padding-top: var(--section-l); }
.case-body__grid { display: grid; grid-template-columns: .45fr 1fr; gap: 3rem; align-items: start; }
.case-body__intro {
  position: sticky; top: 7rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2.75rem;
  max-width: 21.875rem;
}
.case-body__head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.case-body__intro p { color: var(--grey-400); }
.case-body__main { display: flex; flex-direction: column; gap: 4rem; min-width: 0; }
.case__gallery { display: flex; flex-direction: column; gap: 2rem; }
.case__img { overflow: clip; border-radius: var(--radius-l); background: var(--surface); }
.case__img img { width: 100%; height: auto; }
.case__process { max-width: 42rem; }
.case__process h3 { font-size: var(--h6); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; margin: 2.25rem 0 .75rem; }
.case__process h3:first-child { margin-top: 0; }
.case__process p { color: var(--grey-400); line-height: 1.55; }

.case-final { padding-top: var(--section); }
.case-final__media { position: relative; overflow: clip; aspect-ratio: 5 / 4; border-radius: var(--radius-l); background: var(--surface); }
.case-final__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.case-final__text {
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 3rem;
  padding-top: var(--space-xxl);
}
.case-final__text .case-heading { max-width: 26rem; }
.case-final__text p { color: var(--grey-400); }

.case-next { padding-top: var(--section); }
.case-next__link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-top: var(--space-s); border-top: 1px solid var(--grey-100);
}
.case-next__link .mono { color: var(--grey-300); }
.case-next__name {
  font-family: var(--font-display); font-size: var(--h2); line-height: 1; letter-spacing: -.03em; font-weight: 500;
  transition: transform .5s var(--ease);
}
.case-next__name::after { content: " ↗"; font-size: .5em; vertical-align: super; color: var(--grey-300); }
.case-next__link:hover .case-next__name { transform: translateX(-.5rem); }

@media (max-width: 991px) {
  .case-header__media, .case-final__media { aspect-ratio: auto; }
  .case-header__media img, .case-final__media img { position: relative; }
  .case-heading { font-size: 1.75rem; }
  .case-body__grid { display: flex; flex-direction: column; gap: 3rem; }
  .case-body__intro { position: relative; top: auto; max-width: 100%; gap: 1.5rem; }
  .case__gallery { gap: 3rem; }
  .case-final__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
@media (max-width: 767px) {
  .case-header .container { gap: 2rem; }
  .case-header__info { display: none; }
  .case-header__title { font-size: var(--h4); }
  .case-heading { font-size: 1.5rem; }
  .case__gallery { gap: 1.5rem; }
  .case-next__link { flex-direction: column; gap: .5rem; }
}
