/* Design tokens */
:root {
  --color-bg:      #000000;
  --color-text:    #ffffff;
  --color-hover:   #1f5083;
  --font-primary:  'Cabin', sans-serif;

  --grid-aspect:   1280 / 1582;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

main { width: 100%; }

/* Layout utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(15px, 4vw, 20px);
  box-sizing: border-box;
}

/* Hero */
.hero {
  width: 100%;
  background: var(--color-bg);
}

.hero__grid {
  width: 100%;
  aspect-ratio: var(--grid-aspect);
  display: grid;
  grid-template-columns: 454fr 308fr 131fr 387fr;
  grid-template-rows: 230fr 387fr 183fr 397fr 385fr;
}

/* Cell + image */
.cell {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  display: block;
}

.cell__img {
  position: absolute;
  left:   var(--img-x, 0);
  top:    var(--img-y, 0);
  width:  var(--img-w, 100%);
  height: var(--img-h, 100%);
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

/* Grid placement */
.cell--logo     { grid-column: 1;          grid-row: 1; }
.cell--egitim   { grid-column: 2 / span 2; grid-row: 1 / span 2; }
.cell--dare     { grid-column: 4;          grid-row: 1; }
.cell--orange   { grid-column: 1;          grid-row: 2 / span 2; }
.cell--dokuma   { grid-column: 4;          grid-row: 2; }
.cell--text     { grid-column: 2 / span 3; grid-row: 3; }
.cell--istanbul { grid-column: 1;          grid-row: 4; }
.cell--cookies  { grid-column: 2 / span 2; grid-row: 4; }
.cell--asina    { grid-column: 4;          grid-row: 4; }
.cell--dream    { grid-column: 1 / span 2; grid-row: 5; }
.cell--phone    { grid-column: 3 / span 2; grid-row: 5; }

/* Per-cell image positioning */
.cell--egitim .cell__img {
  --img-w: 134.36%;  --img-h: 165.51%;
  --img-x: -17.18%;  --img-y: -53.76%;
}
.cell--dare .cell__img {
  --img-w: 128.97%;  --img-h: 120.75%;
  --img-x: -14.74%;  --img-y: -18.44%;
}
.cell--orange .cell__img {
  --img-w: 100%;  --img-h: 100%;
  --img-x: 0;     --img-y: 0;
}
.cell--dokuma .cell__img {
  --img-w: 247.61%;  --img-h: 164.71%;
  --img-x: -62.04%;  --img-y: -48.33%;
}
.cell--istanbul .cell__img {
  --img-w: 152.52%;  --img-h: 106.59%;
  --img-x: -45.31%;  --img-y: -1.51%;
}
.cell--cookies .cell__img {
  --img-w: 218.73%;  --img-h: 100%;
  --img-x: -118.10%; --img-y: 0%;
}
.cell--asina .cell__img {
  --img-w: 133.91%;  --img-h: 160.55%;
  --img-x: -14.42%;  --img-y: -31.95%;
}
.cell--dream .cell__img {
  --img-w: 108.45%;  --img-h: 304.10%;
  --img-x: -1.36%;   --img-y: -36.21%;
}
.cell--phone .cell__img {
  --img-w: 124.52%;  --img-h: 168.41%;
  --img-x: -24.52%;  --img-y: -50.78%;
}

/* Logo cell */
.cell--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}
.cell--logo img {
  width: 67.84%;
  max-width: 257px;
  height: auto;
  pointer-events: none;
}

/* Culture & design studio text band */
.cell--text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}
.cell--text h1 {
  color: var(--color-text);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 5.5vw;
  line-height: .77;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

/* Hover overlay */
.cell__hover {
  position: absolute;
  inset: 0;
  background: var(--color-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .35s ease,
              transform .45s cubic-bezier(.2, .6, .2, 1);
  z-index: 2;
  pointer-events: none;
  will-change: opacity, transform;
}
.cell__hover img {
  width:      var(--logo-w, 60%);
  max-height: var(--logo-h, 60%);
  max-width: var(--logo-max, 360px);
  height: auto;
  object-fit: contain;
  transform: scale(.92);
  transition: transform .45s cubic-bezier(.2, .6, .2, 1) .08s;
}

.cell__img {
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
  will-change: transform;
}

a.cell { cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  a.cell:hover .cell__img {
    transform: scale(1.06);
  }
  a.cell:hover .cell__hover {
    opacity: 1;
    transform: scale(1);
  }
  a.cell:hover .cell__hover img {
    transform: scale(1);
  }
}

a.cell:focus-visible .cell__img {
  transform: scale(1.06);
}
a.cell:focus-visible .cell__hover {
  opacity: 1;
  transform: scale(1);
}
a.cell:focus-visible .cell__hover img {
  transform: scale(1);
}

/* Auto-cycle */
a.cell.is-cycling .cell__img {
  transform: scale(1.06);
}
a.cell.is-cycling .cell__hover {
  opacity: 1;
  transform: scale(1);
}
a.cell.is-cycling .cell__hover img {
  transform: scale(1);
}

a.cell:focus-visible {
  outline: 2px solid var(--color-hover);
  outline-offset: -4px;
}

/* Per-cell hover */
.cell--egitim   .cell__hover { background: #104E81; }
.cell--egitim   .cell__hover img { --logo-w: 50%; --logo-h: 36%; --logo-max: 240px; }

.cell--orange   .cell__hover { background: #E8501C; }
.cell--orange   .cell__hover img { --logo-w: 62%;    --logo-h: 33%; }

.cell--dare     .cell__hover { background: #3F8276; }
.cell--dare     .cell__hover img { --logo-w: 62%;    --logo-h: 34%; }

.cell--dokuma   .cell__hover { background: #F2F0EC; }
.cell--dokuma   .cell__hover img { --logo-w: 62%;    --logo-h: 38%; }

.cell--istanbul .cell__hover { background: #6566B0; }
.cell--istanbul .cell__hover img { --logo-w: 62%;    --logo-h: 52%; --logo-max: 480px; }

.cell--cookies  .cell__hover { background: #7E3D38; }
.cell--cookies  .cell__hover img { --logo-w: 76%;    --logo-h: 52%; --logo-max: 560px; }

.cell--asina    .cell__hover { background: #5C3D55; }
.cell--asina    .cell__hover img { --logo-w: 42%;    --logo-h: 38%; }

.cell--dream    .cell__hover { background: #1F72C8; }
.cell--dream    .cell__hover img { --logo-w: 60%;    --logo-h: 52%; --logo-max: 720px; }

.cell--phone    .cell__hover { background: #1F4E8C; }
.cell--phone    .cell__hover img { --logo-w: 80%;    --logo-h: 46%; --logo-max: 640px; }

.cell--dokuma .cell__hover img { filter: invert(1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cell__img,
  .cell__hover,
  .cell__hover img {
    transition: none;
    transform: none;
  }
  a.cell:focus-visible .cell__img,
  a.cell:focus-visible .cell__hover,
  a.cell:focus-visible .cell__hover img,
  a.cell.is-cycling .cell__img,
  a.cell.is-cycling .cell__hover,
  a.cell.is-cycling .cell__hover img {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  a.cell:hover .cell__img,
  a.cell:hover .cell__hover,
  a.cell:hover .cell__hover img {
    transform: none;
  }
}

/* What we do */
.what-we-do {
  --wwd-space-hero-to-title:    clamp(80px, 14vw, 180px);
  --wwd-space-title-to-para:    clamp(20px, 2.1vw, 27px);
  --wwd-space-para-to-eyebrow:  clamp(64px, 10.2vw, 130px);
  --wwd-space-eyebrow-to-list:  clamp(48px, 7.2vw, 92px);
  --wwd-space-bottom:           clamp(80px, 12vw, 160px);

  --wwd-title-size:     clamp(28px, 5vw, 64px);
  --wwd-title-lh:       calc(65 / 64);
  --wwd-title-tracking: 0;

  --wwd-lede-size:      clamp(16px, 2.35vw, 30px);
  --wwd-lede-lh:        calc(39 / 30);

  --wwd-eyebrow-size:   clamp(20px, 2.74vw, 35px);
  --wwd-eyebrow-lh:     calc(36 / 35);

  --wwd-accord-title-size: clamp(22px, 3.52vw, 45px);
  --wwd-accord-title-lh:   calc(36 / 45);

  --wwd-accord-body-size:  clamp(15px, 1.4vw, 18px);
  --wwd-accord-body-lh:    1.6;

  --wwd-rule:        rgba(255, 255, 255, 0.55);
  --wwd-rule-strong: rgba(255, 255, 255, 0.7);
  --wwd-muted:       rgba(255, 255, 255, 0.78);

  --wwd-ease:    cubic-bezier(.2, .6, .2, 1);
  --wwd-dur:     .42s;

  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  padding-block: var(--wwd-space-hero-to-title) var(--wwd-space-bottom);
}

/* Manifesto */
.manifesto {
  text-align: center;
  max-width: 1024px;
  margin-inline: auto;
}

.manifesto__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--wwd-title-size);
  line-height: var(--wwd-title-lh);
  letter-spacing: var(--wwd-title-tracking);
  color: var(--color-text);
  margin: 0 auto;
  max-width: 1024px;
  text-wrap: balance;
}

.manifesto__lede {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--wwd-lede-size);
  line-height: var(--wwd-lede-lh);
  color: var(--color-text);
  margin: var(--wwd-space-title-to-para) auto 0;
  max-width: 942px;
  text-wrap: pretty;
}

/* Services */
.services {
  margin-top: var(--wwd-space-para-to-eyebrow);
}

.services__eyebrow {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--wwd-eyebrow-size);
  line-height: var(--wwd-eyebrow-lh);
  letter-spacing: 0;
  color: var(--color-text);
  margin: 0;
  text-align: left;
}

/* Accordion */
.accordion {
  list-style: none;
  margin: var(--wwd-space-eyebrow-to-list) 0 0;
  padding: 0;
  border-top: 2px solid var(--wwd-rule);
}

.accordion__item {
  border-bottom: 2px solid var(--wwd-rule);
}

.accordion__heading {
  margin: 0;
  font-weight: inherit;
}

.accordion__trigger {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: clamp(18px, 2.74vw, 35px) 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  transition: color .25s ease;
  outline: none;
  border: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.accordion__trigger:focus,
.accordion__trigger:active {
  outline: none;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .accordion__trigger:hover {
    color: #ffffff;
  }
}

.accordion__trigger:focus-visible {
  color: #ffffff;
  outline: none;
  box-shadow: inset 0 0 0 2px var(--wwd-rule-strong);
}

.accordion__title {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--wwd-accord-title-size);
  line-height: var(--wwd-accord-title-lh);
  letter-spacing: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width: clamp(20px, 1.8vw, 24px);
  height: clamp(20px, 1.8vw, 24px);
  display: inline-block;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--wwd-dur) var(--wwd-ease);
}
.accordion__icon::before {
  width: 100%;
  height: 1.5px;
}
.accordion__icon::after {
  width: 1.5px;
  height: 100%;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: scaleY(0);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::before {
  transform: rotate(180deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--wwd-dur) var(--wwd-ease);
}
.accordion__panel-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.accordion__panel-inner > p {
  grid-column: 2 / -1;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--wwd-accord-body-size);
  line-height: var(--wwd-accord-body-lh);
  color: var(--wwd-muted);
  padding-block: 0 clamp(24px, 2.6vw, 36px);
  text-wrap: pretty;
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

/* Mobile */
@media (max-width: 768px) {
  .what-we-do {
    --wwd-space-hero-to-title:   80px;
    --wwd-space-title-to-para:   20px;
    --wwd-space-para-to-eyebrow: 80px;
    --wwd-space-eyebrow-to-list: 32px;
    --wwd-space-bottom:          80px;

    --wwd-title-size:        32px;
    --wwd-lede-size:         16px;
    --wwd-eyebrow-size:      18px;
    --wwd-accord-title-size: 21px;
    --wwd-accord-body-size:  14px;
  }

  .manifesto {
    max-width: 85%;
  }

  .manifesto__lede {
    max-width: 100%;
  }

  .services__eyebrow {
    text-align: center;
  }

  .accordion__panel-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .accordion__panel-inner > p {
    grid-column: 1 / -1;
    padding-block: 0 20px;
  }

  .accordion__trigger {
    padding: 18px 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .accordion__panel,
  .accordion__icon::before,
  .accordion__icon::after,
  .accordion__trigger {
    transition: none;
  }
}

/* BRANDS */
.brands {
  background: var(--color-bg);
  color: var(--color-text);

  padding-block: clamp(60px, 10.5vw, 135px) clamp(60px, 9vw, 120px);

  --brands-heading-size:    clamp(20px, 2.74vw, 35px);
  --brands-heading-lh:      calc(36 / 35);
  --brands-heading-to-grid: clamp(28px, 4vw, 49px);

  --brands-row-gap:         clamp(20px, 2.8vw, 36px);
  --brands-col-gap:         clamp(20px, 2.8vw, 36px);

  --brands-cell-min-h:      clamp(110px, 13vw, 170px);
}

.brands__heading {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--brands-heading-size);
  line-height: var(--brands-heading-lh);
  letter-spacing: 0;
  color: var(--color-text);
  margin: 0 0 var(--brands-heading-to-grid);
  text-align: left;
}

.brands__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--brands-col-gap);
  row-gap: var(--brands-row-gap);
  align-items: center;
  justify-items: center;
}

.brands__cell {
  width: 100%;
  min-height: var(--brands-cell-min-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brands__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: calc(var(--brands-cell-min-h) * 0.78);
  object-fit: contain;
  user-select: none;
}

/* Mobile */
@media (max-width: 768px) {
  .brands {
    --brands-row-gap:    8px;
    --brands-col-gap:    6px;
    --brands-cell-min-h: 60px;
    --brands-heading-size: 18px;
    --brands-heading-to-grid: 28px;
    padding-block: 42px 42px;
  }
  .brands__heading {
    text-align: center;
  }
  .brands__logo {
    max-width: 90%;
    max-height: 48px;
  }
}

/* Footer */
.footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding-block: clamp(60px, 8vw, 110px) clamp(60px, 8vw, 110px);

  --footer-link-size:   clamp(20px, 2.74vw, 35px);
  --footer-link-lh:     calc(36 / 35);

  --footer-logo-to-email:      clamp(20px, 2vw, 32px);
  --footer-gap-email-to-socials: clamp(20px, 2vw, 32px);
  --footer-gap-ig-to-li:       clamp(4px, 0.5vw, 8px);

  --footer-logo-w:      clamp(140px, 15vw, 197px);
  --footer-heart-w:     clamp(220px, 33vw, 475px);
  --footer-info-icon-h: clamp(18px, 1.8vw, 24px);
  --footer-info-icon-w: calc(var(--footer-info-icon-h) * (56 / 31));
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.footer__heart {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__heart img {
  width: var(--footer-heart-w);
  height: auto;
  max-width: 100%;
  display: block;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__logo {
  display: inline-block;
  margin-bottom: var(--footer-logo-to-email);
  outline-offset: 6px;
  border-radius: 2px;
}
.footer__logo img {
  width: var(--footer-logo-w);
  height: auto;
  display: block;
}

.footer__address {
  font-style: normal;
  margin: 0 0 var(--footer-gap-email-to-socials);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.footer__links-item--instagram { margin-bottom: var(--footer-gap-ig-to-li); }
.footer__links-item--linkedin  { margin-bottom: 0; }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--footer-link-size);
  line-height: var(--footer-link-lh);
  letter-spacing: 0;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity .25s ease, transform .25s ease;
  outline-offset: 6px;
  border-radius: 2px;
}

.footer__link--info {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  text-transform: none;
}

.footer__address .footer__link {
  font-weight: 400;
}

.footer__link--instagram,
.footer__link--linkedin {
  text-transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer__link:hover {
    opacity: 0.78;
  }
  .footer__link:hover .footer__info-icon {
    transform: translateX(4px);
  }
}

.footer__link:focus-visible {
  opacity: 0.78;
  outline: 2px solid rgba(255, 255, 255, 0.7);
}
.footer__link:focus-visible .footer__info-icon {
  transform: translateX(4px);
}

.footer__info-icon {
  flex: 0 0 auto;
  width: var(--footer-info-icon-w);
  height: var(--footer-info-icon-h);
  display: inline-block;
  color: var(--color-text);
  transition: transform .3s var(--wwd-ease, cubic-bezier(.2, .6, .2, 1));
}

/* Mobile */
@media (max-width: 768px) {
  .footer {
    --footer-link-size: 18px;
    --footer-logo-w:    140px;

    --footer-heart-w:   96px;
    --footer-info-icon-h: 18px;

    padding-block: 48px 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .footer__contact { order: 1; align-items: center; }
  .footer__heart   { order: 2; }

  .footer__address,
  .footer__links { text-align: center; width: 100%; }
  .footer__links { align-items: center; }
  .footer__link  { justify-content: center; }

  .footer__links { display: flex; flex-direction: column; }

  .footer__logo                  { margin-bottom: 32px; }
  .footer__address               { margin-bottom: 32px; }
  .footer__links-item--instagram { margin-bottom: 8px; }
  .footer__links-item--linkedin  { margin-bottom: 0; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;  height: 1px;
  padding: 0;  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer__link,
  .footer__info-icon {
    transition: none;
  }
  .footer__link:focus-visible {
    opacity: 1;
  }
  .footer__link:focus-visible .footer__info-icon {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .footer__link:hover {
    opacity: 1;
  }
  .footer__link:hover .footer__info-icon {
    transform: none;
  }
}


/* Case study */
.case-study-page {
  --cs-orange:        #f15a2d;
  --cs-orange-strong: #e8501c;
  --cs-white:         #ffffff;
  --cs-black:         #000000;
  --cs-on-orange:     #ffffff;
  --cs-on-white:      #000000;

  --cs-meta-label-size:  clamp(15px, 1.95vw, 25px);
  --cs-meta-value-size:  clamp(12px, 1.56vw, 20px);
  --cs-info-size:        clamp(12px, 1.25vw, 16px);
  --cs-info-lh:          calc(22 / 16);
  --cs-pill-size:        12px;

  --cs-block-title-size: clamp(20px, 2.74vw, 35px);
  --cs-block-title-lh:   calc(40 / 35);
  --cs-block-lede-size:  clamp(13px, 1.56vw, 20px);
  --cs-block-lede-lh:    calc(30 / 20);

  --cs-bar-size:         clamp(20px, 3.52vw, 45px);
  --cs-bar-lh:           calc(36 / 45);

  --cs-pad-inline:       clamp(16px, 6.5vw, 108px);
  --cs-block-gap:        clamp(48px, 8vw, 120px);
}

.case-study-page main { background: var(--color-bg); }


/* Hero */
.cs-hero {
  width: 100%;
  background: var(--cs-orange);
  color: var(--cs-on-orange);
  position: relative;
  overflow: hidden;

  --cs-badge-size: 55px;
  --cs-badge-breath: clamp(28px, 4vw, 48px);
}

.cs-hero__stage {
  position: relative;
  width: 100%;
  padding-top: calc(var(--cs-badge-size) / 2 + var(--cs-badge-breath));
}

.cs-hero__inner {
  padding-block: 0 clamp(48px, 7vw, 88px);
  position: relative;
}

.cs-hero__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cs-badge-size);
  height: var(--cs-badge-size);
  background: var(--cs-white);
  border: 2px solid var(--cs-black);
  border-radius: 50%;
  outline-offset: 6px;
  transition:
    transform .35s cubic-bezier(.2, .6, .2, 1),
    background-color .35s cubic-bezier(.2, .6, .2, 1),
    border-color .35s cubic-bezier(.2, .6, .2, 1);

  position: fixed;
  top: var(--cs-badge-breath);
  left: 50%;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
  z-index: 100;
}
@media (hover: hover) and (pointer: fine) {
  .cs-hero__badge:hover {
    transform: translateX(-50%) scale(1.18);
    background: var(--cs-black);
    border-color: var(--cs-white);
  }
  .cs-hero__badge:hover .cs-hero__badge-mark {
    filter: invert(1);
  }
}

.cs-hero__badge:focus-visible {
  transform: translateX(-50%) scale(1.18);
  background: var(--cs-black);
  border-color: var(--cs-white);
  outline: 2px solid var(--cs-black);
}
.cs-hero__badge:focus-visible .cs-hero__badge-mark {
  filter: invert(1);
}
.cs-hero__badge-mark {
  width: 36.996px;
  height: 30.266px;
  display: block;
  transition: filter .35s cubic-bezier(.2, .6, .2, 1);
}

.cs-hero__kv {
  width: 100%;
  margin: 0;
  display: block;
  aspect-ratio: 1280 / 527;
  overflow: hidden;
}
.cs-hero__kv img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Meta */
.cs-meta {
  margin: clamp(28px, 4.7vw, 65px) auto 0;
  max-width: 1064px;
  display: grid;
  grid-template-columns:
    minmax(0, 156fr)
    minmax(0, 110fr)
    minmax(0, 306fr)
    minmax(0, 376fr);
  column-gap: clamp(16px, 2vw, 28px);
  row-gap: 0;
  align-items: start;
}
.cs-meta__col {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1.95vw, 22px);
}

.cs-meta__label {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--cs-meta-label-size);
  line-height: 1;
  letter-spacing: 0;
  color: var(--cs-on-orange);
  margin: 0;
}

.cs-meta__value {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--cs-meta-value-size);
  line-height: 1.1;
  color: var(--cs-on-orange);
  margin: 0;
}

.cs-meta__info {
  font-size: var(--cs-info-size);
  line-height: var(--cs-info-lh);
  text-align: justify;
  text-wrap: pretty;
}

/* Pills */
.cs-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 6px;
}

.cs-pill {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--cs-pill-size);
  line-height: 1;
  color: var(--cs-on-orange);
  border: 1px solid var(--cs-on-orange);
  border-radius: 15px;
  padding: 5px 10px 5px 10px;
  white-space: nowrap;
}


/* Text blocks */
.cs-block {
  width: 100%;
  background: var(--cs-white);
  color: var(--cs-on-white);
  padding-block: clamp(48px, 8vw, 108px);
}

.cs-block + .cs-block {
  padding-top: 0;
}

.cs-block__inner {
  text-align: center;
}

.cs-block__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--cs-block-title-size);
  line-height: var(--cs-block-title-lh);
  letter-spacing: 0;
  color: var(--cs-on-white);
  margin: 0 auto;
  max-width: 866px;
  text-wrap: balance;
}

.cs-block__lede {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--cs-block-lede-size);
  line-height: var(--cs-block-lede-lh);
  color: var(--cs-on-white);
  margin: clamp(8px, 1.2vw, 16px) auto 0;
  max-width: 866px;
  text-wrap: pretty;
}

.cs-block__media {
  margin-top: clamp(20px, 2.8vw, 40px);
  display: flex;
  justify-content: center;
}

.cs-block:has(.cs-block__media) {
  padding-bottom: clamp(28px, 5vw, 68px);
}
.cs-block__media img {
  display: block;
  width: 100%;
  max-width: 1187px;
  height: auto;
}


/* Gallery */
.cs-gallery {
  width: 100%;
  background: var(--cs-white);
}

.cs-gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.cs-gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--cs-black);
}
.cs-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cs-gallery__item--a { flex: 0 0 calc(522 / 1280 * 100%); aspect-ratio: 522 / 458; }
.cs-gallery__item--b { flex: 0 0 calc(758 / 1280 * 100%); aspect-ratio: 758 / 458; }
.cs-gallery__item--c { flex: 0 0 calc(802 / 1280 * 100%); aspect-ratio: 802 / 458; }
.cs-gallery__item--d { flex: 0 0 calc(478 / 1280 * 100%); aspect-ratio: 478 / 458; }
.cs-gallery__item--e { flex: 0 0 calc(522 / 1280 * 100%); aspect-ratio: 522 / 447; }
.cs-gallery__item--f { flex: 0 0 calc(758 / 1280 * 100%); aspect-ratio: 758 / 448; }


/* Bottom bars */
.cs-cards {
  width: 100%;
  background: var(--cs-orange);
  color: var(--cs-on-orange);
  padding-block: clamp(36px, 5.5vw, 72px);
}

.cs-cards__list {
  list-style: none;
  margin: 0 auto;
  padding-inline: var(--cs-pad-inline);
  max-width: 1280px;
  display: flex;
  flex-direction: column;
}

.cs-cards__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding-block: clamp(20px, 2.4vw, 30px);
  border-bottom: 2px solid var(--cs-on-orange);
  color: var(--cs-on-orange);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--cs-bar-size);
  line-height: var(--cs-bar-lh);
  letter-spacing: 0;
  text-decoration: none;
  transition: padding-left .35s cubic-bezier(.2, .6, .2, 1),
              opacity .25s ease;
  outline-offset: 4px;
}

.cs-cards__list > li:first-child .cs-cards__link {
  border-top: 2px solid var(--cs-on-orange);
}

@media (hover: hover) and (pointer: fine) {
  .cs-cards__link:hover {
    padding-left: 8px;
    opacity: 0.92;
  }
}

.cs-cards__link:focus-visible {
  padding-left: 8px;
  opacity: 0.92;
  outline: 2px solid var(--cs-on-orange);
}

.cs-cards__title {
  flex: 1 1 auto;
  min-width: 0;
}

.cs-cards__icon {
  flex: 0 0 auto;
  width: clamp(22px, 1.9vw, 28px);
  height: clamp(22px, 1.9vw, 28px);
  display: inline-block;
  color: var(--cs-on-orange);
  transition: transform .35s cubic-bezier(.2, .6, .2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .cs-cards__link:hover .cs-cards__icon {
    transform: translateX(6px);
  }
}
.cs-cards__link:focus-visible .cs-cards__icon {
  transform: translateX(6px);
}


/* Tablet */
@media (max-width: 960px) {
  .case-study-page {
    --cs-pad-inline: clamp(16px, 4vw, 32px);
  }

  .cs-meta {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: clamp(20px, 3vw, 32px);
  }
  .cs-meta__col--info { grid-column: 1 / -1; }
  .cs-meta__col--services { grid-column: 1 / -1; }
}


/* Mobile */
@media (max-width: 768px) {
  .case-study-page {
    --cs-meta-label-size:  15px;
    --cs-meta-value-size:  12px;
    --cs-info-size:        12px;
    --cs-info-lh:          calc(16 / 12);
    --cs-block-title-size: 15px;
    --cs-block-title-lh:   calc(20 / 15);
    --cs-block-lede-size:  12px;
    --cs-block-lede-lh:    calc(16 / 12);
    --cs-bar-size:         15px;
  }

  .cs-hero {
    --cs-badge-breath: clamp(20px, 5vw, 32px);
  }
  .cs-hero__inner {
    padding-block: 0 clamp(36px, 8vw, 56px);
  }

  .cs-meta {
    grid-template-columns: 2fr 5fr;
    column-gap: 18px;
    row-gap: 22px;
  }

  .cs-meta__col--industry { grid-column: 1; grid-row: 1; }
  .cs-meta__col--services { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .cs-meta__col--year     { grid-column: 1; grid-row: 2; }
  .cs-meta__col--info     { grid-column: 1 / -1; grid-row: 3; }

  .cs-block {
    padding-block: clamp(36px, 8vw, 48px);
  }
  .cs-block + .cs-block { padding-top: 0; }
  .cs-block:has(.cs-block__media) {
    padding-bottom: clamp(20px, 5vw, 32px);
  }

  .cs-gallery__item--a {
    flex-basis: 100%;
    aspect-ratio: 329 / 301;
    margin: 0 auto;
    max-width: calc(329 / 375 * 100%);
  }
  .cs-gallery__item--b { flex-basis: 100%; aspect-ratio: 375 / 206; }
  .cs-gallery__item--c { flex-basis: 100%; aspect-ratio: 375 / 193; }
  .cs-gallery__item--e { flex-basis: calc(198 / 375 * 100%); aspect-ratio: 198 / 157; order: 1; }
  .cs-gallery__item--d { flex-basis: calc(177 / 375 * 100%); aspect-ratio: 177 / 157; order: 2; }
  .cs-gallery__item--f { flex-basis: 100%; aspect-ratio: 375 / 201; order: 3; }

  .cs-cards__link {
    border-bottom-width: 1px;
    padding-block: 14px;
    justify-content: center;
    text-align: center;
  }
  .cs-cards__title {
    flex: 0 1 auto;
    text-align: center;
  }
  .cs-cards__list > li:first-child .cs-cards__link {
    border-top-width: 1px;
  }
  .cs-cards__icon { display: none; }
  .cs-cards__link:focus-visible { padding-left: 0; }
}

@media (max-width: 768px) and (hover: hover) and (pointer: fine) {
  .cs-cards__link:hover { padding-left: 0; }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cs-cards__link,
  .cs-cards__icon {
    transition: none;
    transform: none;
  }
  .cs-hero__badge {
    transition: none;
  }
  .cs-hero__badge-mark {
    transition: none;
  }
  .cs-hero__badge:focus-visible {
    transform: translateX(-50%);
  }
  .cs-cards__link:focus-visible {
    padding-left: 0;
  }
  .cs-cards__link:focus-visible .cs-cards__icon {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .cs-hero__badge:hover {
    transform: translateX(-50%);
  }
  .cs-cards__link:hover {
    padding-left: 0;
  }
  .cs-cards__link:hover .cs-cards__icon {
    transform: none;
  }
}


/* TEGV */
.case-study-page--tegv {
  --cs-orange: #F9A300;
}

.case-study-page--tegv .cs-hero__kv {
  background: var(--cs-white);
}


/* Timeline + Video */
.cs-timeline-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
}


/* Timeline */
.cs-timeline {
  width: 100%;
  background: var(--cs-white);
  padding-block: 0;
}

.cs-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
}

.cs-timeline__entry {
  position: relative;
  overflow: hidden;
  background: var(--cs-white);
  aspect-ratio: 640 / 413;
}

.cs-timeline__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}


/* Video */
.cs-video {
  width: 100%;
  background: var(--cs-white);
  padding-block: 0;
}

.cs-video__el {
  display: block;
  width: 100%;
  height: auto;
  background: var(--cs-black);
  outline: none;
  will-change: transform;
}


/* Mobile */
@media (max-width: 768px) {
  .cs-hero__kv {
    aspect-ratio: 375 / 214;
  }

  .cs-timeline-stack > .cs-video    { order: 1; }
  .cs-timeline-stack > .cs-timeline { order: 2; }

  .cs-timeline__list {
    grid-template-columns: 1fr;
  }
  .cs-timeline__entry {
    aspect-ratio: 375 / 250;
  }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cs-video__el {
    will-change: auto;
  }
}


/* 212 NexT */
.case-study-page--212next {
  --cs-orange: #00576F;
}


/* Showcase */
.cs-showcase {
  width: 100%;
  background: var(--cs-white);
  display: flex;
  flex-direction: column;
}

.cs-showcase__row {
  display: grid;
  width: 100%;
}

.cs-showcase__row--top    { grid-template-columns: 522fr 759fr; }
.cs-showcase__row--bottom { grid-template-columns: 706fr 575fr; }

.cs-showcase__cell {
  position: relative;
  overflow: hidden;
  background: transparent;
  margin: 0;
  aspect-ratio: var(--cell-aspect, 1);
}

.cs-showcase__cell > img,
.cs-showcase__cell > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cs-showcase__cell--cards   { --cell-aspect: 522 / 458; }
.cs-showcase__cell--video   { --cell-aspect: 759 / 458; }
.cs-showcase__cell--laptop  { --cell-aspect: 706 / 458; }
.cs-showcase__cell--circle  { --cell-aspect: 575 / 458; }
.cs-showcase__cell--wall    { --cell-aspect: 759 / 458; }
.cs-showcase__cell--banner  { --cell-aspect: 706 / 458; }
.cs-showcase__cell--circles { --cell-aspect: 575 / 458; }

/* Mobile */
@media (max-width: 768px) {
  .cs-showcase__row--top,
  .cs-showcase__row--bottom {
    grid-template-columns: 1fr;
  }

  .case-study-page--212next .cs-showcase__row--top    > .cs-showcase__cell--video  { order: 1; }
  .case-study-page--212next .cs-showcase__row--top    > .cs-showcase__cell--cards  { order: 2; }
  .case-study-page--212next .cs-showcase__row--bottom > .cs-showcase__cell--laptop { order: 3; }
  .case-study-page--212next .cs-showcase__row--bottom > .cs-showcase__cell--circle { order: 4; }

  .cs-showcase__cell--cards   { --cell-aspect: 375 / 281; }
  .cs-showcase__cell--video   { --cell-aspect: 375 / 236; }
  .cs-showcase__cell--laptop  { --cell-aspect: 375 / 250; }
  .cs-showcase__cell--circle  { --cell-aspect: 375 / 250; }
}


/* Ortak Mekik */
.case-study-page--ortakmekik {
  --cs-orange: #2f2a6c;
}

.case-study-page--ortakmekik .cs-hero__kv {
  background: var(--cs-orange);
}

/* Mobile */
@media (max-width: 768px) {
  .case-study-page--ortakmekik .cs-showcase__cell--wall   { order: 1; --cell-aspect: 759 / 458; }
  .case-study-page--ortakmekik .cs-showcase__cell--cards  { order: 2; --cell-aspect: 522 / 458; }
  .case-study-page--ortakmekik .cs-showcase__cell--banner { --cell-aspect: 375 / 244; }
  .case-study-page--ortakmekik .cs-showcase__cell--circles{ --cell-aspect: 375 / 299; }
}


/* Atelier Biiz */
.case-study-page--atelierbiiz {
  --cs-orange: #5e6ca9;
}

.case-study-page--atelierbiiz .cs-hero__kv {
  background: var(--cs-orange);
}

.case-study-page--atelierbiiz .cs-showcase__row--top    { grid-template-columns: 650fr 631fr; }
.case-study-page--atelierbiiz .cs-showcase__row--bottom { grid-template-columns: 651fr 631fr; }

.case-study-page--atelierbiiz .cs-showcase__cell--packaging { --cell-aspect: 650 / 458; }
.case-study-page--atelierbiiz .cs-showcase__cell--booklets  { --cell-aspect: 631 / 458; }
.case-study-page--atelierbiiz .cs-showcase__cell--phones    { --cell-aspect: 651 / 444; }
.case-study-page--atelierbiiz .cs-showcase__cell--laptop    { --cell-aspect: 631 / 444; }

/* Mobile */
@media (max-width: 768px) {
  .case-study-page--atelierbiiz .cs-showcase__row--top,
  .case-study-page--atelierbiiz .cs-showcase__row--bottom {
    grid-template-columns: 1fr;
  }

  .case-study-page--atelierbiiz .cs-showcase__cell--packaging { --cell-aspect: 375 / 250; }
  .case-study-page--atelierbiiz .cs-showcase__cell--booklets  { --cell-aspect: 375 / 235; }
  .case-study-page--atelierbiiz .cs-showcase__cell--phones    { --cell-aspect: 375 / 256; }
  .case-study-page--atelierbiiz .cs-showcase__cell--laptop    { --cell-aspect: 375 / 264; }
}


/* Locked-aspect showcase shared */
.cs-showcase--alsanmeram,
.cs-showcase--asina {
  display: grid;
  align-items: stretch;
}

.cs-showcase--alsanmeram .cs-showcase__feature,
.cs-showcase--alsanmeram .cs-showcase__cell--display,
.cs-showcase--alsanmeram .cs-showcase__cell--badges,
.cs-showcase--alsanmeram .cs-showcase__cell--cards,
.cs-showcase--asina .cs-showcase__feature,
.cs-showcase--asina .cs-showcase__cell--menu,
.cs-showcase--asina .cs-showcase__cell--packaging,
.cs-showcase--asina .cs-showcase__cell--apron {
  aspect-ratio: auto;
  height: 100%;
  width: 100%;
}

.cs-showcase--alsanmeram .cs-showcase__group,
.cs-showcase--asina .cs-showcase__group {
  display: grid;
  height: 100%;
}

.cs-showcase--alsanmeram .cs-showcase__row--display,
.cs-showcase--asina .cs-showcase__row--menu {
  display: block;
  height: 100%;
}

.cs-showcase--alsanmeram .cs-showcase__row--pair,
.cs-showcase--asina .cs-showcase__row--pair {
  display: grid;
  height: 100%;
}

@media (max-width: 768px) {
  .cs-showcase--alsanmeram,
  .cs-showcase--asina {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
  }

  .cs-showcase--alsanmeram .cs-showcase__group,
  .cs-showcase--asina .cs-showcase__group {
    display: contents;
  }

  .cs-showcase--alsanmeram .cs-showcase__row--display,
  .cs-showcase--asina .cs-showcase__row--menu {
    display: block;
    height: auto;
  }

  .cs-showcase--alsanmeram .cs-showcase__row--pair,
  .cs-showcase--asina .cs-showcase__row--pair {
    height: auto;
  }

  .cs-showcase--alsanmeram .cs-showcase__feature,
  .cs-showcase--alsanmeram .cs-showcase__cell--display,
  .cs-showcase--alsanmeram .cs-showcase__cell--badges,
  .cs-showcase--alsanmeram .cs-showcase__cell--cards,
  .cs-showcase--asina .cs-showcase__feature,
  .cs-showcase--asina .cs-showcase__cell--menu,
  .cs-showcase--asina .cs-showcase__cell--packaging,
  .cs-showcase--asina .cs-showcase__cell--apron {
    height: auto;
  }
}


/* Alsan Meram */
.case-study-page--alsanmeram {
  --cs-orange: #8f6147;
}

.case-study-page--alsanmeram .cs-hero__kv {
  background: var(--cs-orange);
}

.cs-showcase--alsanmeram {
  grid-template-columns: 491fr 796fr;
  aspect-ratio: 1287 / 941;
}

.cs-showcase--alsanmeram .cs-showcase__feature {
  background-color: #5c2d08;
}

.cs-showcase--alsanmeram .cs-showcase__group {
  grid-template-rows: 584fr 357fr;
}

.cs-showcase--alsanmeram .cs-showcase__row--pair {
  grid-template-columns: 358fr 433fr;
}

/* Mobile */
@media (max-width: 768px) {
  .case-study-page--alsanmeram .cs-showcase__feature      { order: 1; }
  .case-study-page--alsanmeram .cs-showcase__row--display { order: 2; }
  .case-study-page--alsanmeram .cs-showcase__row--pair    { order: 3; }

  .cs-showcase--alsanmeram .cs-showcase__feature {
    aspect-ratio: 375 / 480;
  }
  .cs-showcase--alsanmeram .cs-showcase__cell--display { --cell-aspect: 375 / 275; aspect-ratio: var(--cell-aspect); }
  .cs-showcase--alsanmeram .cs-showcase__cell--badges  { --cell-aspect: 358 / 357; aspect-ratio: var(--cell-aspect); }
  .cs-showcase--alsanmeram .cs-showcase__cell--cards   { --cell-aspect: 433 / 357; aspect-ratio: var(--cell-aspect); }
}


/* Aşina */
.case-study-page--asina {
  --cs-orange: #68445e;
}

.case-study-page--asina .cs-hero__kv {
  background: var(--cs-orange);
}

.cs-showcase--asina {
  grid-template-columns: 522fr 759fr;
  aspect-ratio: 1281 / 902;
}

.cs-showcase--asina .cs-showcase__feature {
  background-color: var(--cs-orange);
}

.cs-showcase--asina .cs-showcase__group {
  grid-template-rows: 458fr 444fr;
}

.cs-showcase--asina .cs-showcase__row--pair {
  grid-template-columns: 387fr 372fr;
}

.cs-showcase--asina .cs-showcase__cell--packaging > img {
  width: 172.07%;
  left: -36.04%;
  max-width: none;
  object-position: left center;
}

/* Mobile */
@media (max-width: 768px) {
  .case-study-page--asina .cs-showcase__feature   { order: 1; }
  .case-study-page--asina .cs-showcase__row--menu { order: 2; }
  .case-study-page--asina .cs-showcase__row--pair { order: 3; }

  .cs-showcase--asina .cs-showcase__feature {
    aspect-ratio: 375 / 480;
  }
  .cs-showcase--asina .cs-showcase__cell--menu      { --cell-aspect: 375 / 226; aspect-ratio: var(--cell-aspect); }
  .cs-showcase--asina .cs-showcase__cell--packaging { --cell-aspect: 387 / 444; aspect-ratio: var(--cell-aspect); }
  .cs-showcase--asina .cs-showcase__cell--apron     { --cell-aspect: 372 / 444; aspect-ratio: var(--cell-aspect); }
}


/* Yapıfen */
.case-study-page--yapifen {
  --cs-orange: #1a5ea9;
}

.case-study-page--yapifen .cs-hero__kv {
  background: var(--cs-orange);
}

.case-study-page--yapifen .cs-showcase__row--top    { grid-template-columns: 650fr 631fr; }
.case-study-page--yapifen .cs-showcase__row--bottom { grid-template-columns: 706fr 575fr; }

.case-study-page--yapifen .cs-showcase__cell--catalogue { --cell-aspect: 650 / 458; }
.case-study-page--yapifen .cs-showcase__cell--cards     { --cell-aspect: 631 / 458; }
.case-study-page--yapifen .cs-showcase__cell--website   { --cell-aspect: 706 / 458; }
.case-study-page--yapifen .cs-showcase__cell--brochure  { --cell-aspect: 575 / 458; }

.case-study-page--yapifen .cs-showcase__cell--catalogue > img {
  inset: auto;
  width: 129.26%;
  height: 122.29%;
  left: -14.43%;
  top: -13.47%;
  max-width: none;
}

.case-study-page--yapifen .cs-showcase__cell--brochure > img {
  inset: auto;
  width: 145.79%;
  height: 162.52%;
  left: -28.83%;
  top: -34.99%;
  max-width: none;
}

/* Mobile */
@media (max-width: 768px) {
  .case-study-page--yapifen .cs-showcase__row--top,
  .case-study-page--yapifen .cs-showcase__row--bottom {
    grid-template-columns: 1fr;
  }

  .case-study-page--yapifen .cs-showcase__row--top    > .cs-showcase__cell--cards     { order: 1; }
  .case-study-page--yapifen .cs-showcase__row--top    > .cs-showcase__cell--catalogue { order: 2; }
  .case-study-page--yapifen .cs-showcase__row--bottom > .cs-showcase__cell--website   { order: 3; }
  .case-study-page--yapifen .cs-showcase__row--bottom > .cs-showcase__cell--brochure  { order: 4; }

  .case-study-page--yapifen .cs-showcase__cell--cards     { --cell-aspect: 375 / 236; }
  .case-study-page--yapifen .cs-showcase__cell--catalogue { --cell-aspect: 375 / 281; }
  .case-study-page--yapifen .cs-showcase__cell--website   { --cell-aspect: 375 / 250; }
  .case-study-page--yapifen .cs-showcase__cell--brochure  { --cell-aspect: 375 / 250; }

  .case-study-page--yapifen .cs-showcase__cell--brochure > img {
    width: 129.14%;
    height: 172%;
    left: -19.47%;
    top: -40.41%;
  }
}


/* Carrier */
.case-study-page--carrier {
  --cs-orange: #00357d;
}

.case-study-page--carrier .cs-hero__kv {
  background: var(--cs-orange);
}

.case-study-page--carrier .cs-showcase__row--top    { grid-template-columns: 823fr 458fr; }
.case-study-page--carrier .cs-showcase__row--bottom { grid-template-columns: 823fr 457fr; }

.case-study-page--carrier .cs-showcase__cell--laptop    { --cell-aspect: 823 / 458; }
.case-study-page--carrier .cs-showcase__cell--inclusive { --cell-aspect: 458 / 458; }
.case-study-page--carrier .cs-showcase__cell--cards     { --cell-aspect: 823 / 444; }
.case-study-page--carrier .cs-showcase__cell--whatwedo  { --cell-aspect: 457 / 444; }

.case-study-page--carrier .cs-showcase__cell--laptop > img {
  inset: auto;
  left: 0;
  top: -66.99%;
  height: 179.69%;
  max-width: none;
}

/* Mobile */
@media (max-width: 768px) {
  .case-study-page--carrier .cs-showcase__row--top,
  .case-study-page--carrier .cs-showcase__row--bottom {
    grid-template-columns: 1fr;
  }

  .case-study-page--carrier .cs-showcase__cell--laptop    { --cell-aspect: 1 / 1; }
  .case-study-page--carrier .cs-showcase__cell--inclusive { --cell-aspect: 1 / 1; }
  .case-study-page--carrier .cs-showcase__cell--cards     { --cell-aspect: 4 / 3; }
  .case-study-page--carrier .cs-showcase__cell--whatwedo  { --cell-aspect: 1 / 1; }

  .case-study-page--carrier .cs-showcase__cell--laptop > img {
    position: static;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: center;
  }
}


/* Suna's Daughters Character Design */
.case-study-page--sunasdaughterscharacterdesign {
  --cs-orange: #f78721;
}

.case-study-page--sunasdaughterscharacterdesign .cs-hero__kv {
  background: var(--cs-orange);
}

.cs-showcase--sunasdaughterscharacterdesign {
  display: grid;
  grid-template-columns: 457fr 823fr;
  align-items: stretch;
  aspect-ratio: 1280 / 1288;
}

.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__col {
  display: grid;
  height: 100%;
}

.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__col--left {
  grid-template-rows: 671fr 616fr;
}

.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__col--right {
  grid-template-rows: 514fr 775fr;
}

.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__row--posters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--video,
.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--street,
.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--poster,
.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--grid {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--cs-white);
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}

.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell > img,
.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell > video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--video   { background: var(--cs-orange); }
.cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--grid    { background: var(--cs-orange); }

/* Mobile */
@media (max-width: 768px) {
  .cs-showcase--sunasdaughterscharacterdesign {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
  }

  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__col--left,
  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__col--right {
    display: contents;
  }

  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__row--posters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--video,
  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--street,
  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--poster,
  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--grid {
    height: auto;
    aspect-ratio: var(--cell-aspect);
  }

  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--video   { order: 1; --cell-aspect: 375 / 550; }
  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--grid    { order: 2; --cell-aspect: 375 / 353; }
  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__row--posters  { order: 3; }
  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--poster  { --cell-aspect: 412 / 514; }
  .cs-showcase--sunasdaughterscharacterdesign .cs-showcase__cell--street  { order: 4; --cell-aspect: 375 / 500; }
}


/* Child-Oriented City Map */
.case-study-page--childorientedcitymap {
  --cs-orange: #ff5a23;
}

.case-study-page--childorientedcitymap .cs-hero__kv {
  background: var(--cs-orange);
}

.cs-showcase--childorientedcitymap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cs-showcase--childorientedcitymap .cs-showcase__row {
  display: grid;
  grid-template-columns: 542fr 738fr;
  width: 100%;
}

.cs-showcase--childorientedcitymap .cs-showcase__cell {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--cs-white);
  width: 100%;
  height: 100%;
}

.cs-showcase--childorientedcitymap .cs-showcase__cell > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.cs-showcase--childorientedcitymap .cs-showcase__cell--people {
  aspect-ratio: 1280 / 576;
}

.cs-showcase--childorientedcitymap .cs-showcase__row--mid {
  aspect-ratio: 1280 / 559;
}

.cs-showcase--childorientedcitymap .cs-showcase__row--bot {
  aspect-ratio: 1280 / 685;
}

.cs-showcase--childorientedcitymap .cs-showcase__cell--logo > img {
  object-fit: contain;
  object-position: center;
  padding: 8.5% 6%;
}

.cs-showcase--childorientedcitymap .cs-showcase__cell--map > img {
  width: 180.52%;
  height: 131.31%;
  left: -40.26%;
  top: -30.23%;
  position: absolute;
  object-fit: cover;
  object-position: center;
  max-width: none;
}

/* Mobile */
@media (max-width: 768px) {
  .cs-showcase--childorientedcitymap .cs-showcase__row {
    display: contents;
  }

  .cs-showcase--childorientedcitymap .cs-showcase__cell {
    height: auto;
    aspect-ratio: var(--cell-aspect);
  }

  .cs-showcase--childorientedcitymap .cs-showcase__cell--people  { order: 2; --cell-aspect: 375 / 250; }
  .cs-showcase--childorientedcitymap .cs-showcase__cell--logo    { order: 1; --cell-aspect: 375 / 320; }
  .cs-showcase--childorientedcitymap .cs-showcase__cell--map     { order: 3; --cell-aspect: 375 / 220; }
  .cs-showcase--childorientedcitymap .cs-showcase__cell--wall    { order: 4; --cell-aspect: 1 / 1; }
  .cs-showcase--childorientedcitymap .cs-showcase__cell--room    { order: 5; --cell-aspect: 1100 / 1467; }

  .cs-showcase--childorientedcitymap .cs-showcase__cell--map > img {
    position: absolute;
    width: 180.52%;
    height: 131.31%;
    left: -40.26%;
    top: -30.23%;
  }

  .cs-showcase--childorientedcitymap .cs-showcase__cell--logo > img {
    padding: 6% 8%;
  }
}

/* Legal page */
.legal-page {
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-page__header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-page__logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 200ms ease;
}
.legal-page__logo:hover,
.legal-page__logo:focus-visible {
  opacity: 0.8;
}
.legal-page__logo img {
  display: block;
  height: clamp(32px, 4vw, 44px);
  width: auto;
}

.legal-page__main {
  flex: 1;
  max-width: 880px;
  padding-block: clamp(40px, 6vw, 80px);
}

/* Legal content */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vw, 40px);
}

.legal-content__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(8px, 1.5vw, 16px);
}

.legal-content__company {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  opacity: 0.65;
}

.legal-content__title {
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-content__subtitle {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  font-weight: 700;
  margin-top: clamp(16px, 2vw, 24px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-section h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  font-weight: 700;
  margin-top: clamp(8px, 1.5vw, 16px);
}

.legal-section h4 {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.4;
  font-weight: 700;
  margin-top: 8px;
  opacity: 0.95;
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.88;
}

.legal-section ul,
.legal-section ol {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-section ul li::marker,
.legal-section ol li::marker {
  color: rgba(255, 255, 255, 0.5);
}

.legal-section strong {
  font-weight: 700;
  opacity: 1;
}

.legal-section em {
  opacity: 0.75;
}

.legal-section a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .25s ease;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  opacity: 0.7;
}

/* Contact */
.legal-content__contact {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
}

.legal-content__contact address {
  font-style: normal;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-content__contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content__contact a:hover,
.legal-content__contact a:focus-visible {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .legal-page__main {
    padding-inline: clamp(16px, 4vw, 20px);
  }

  .legal-section p,
  .legal-section li {
    font-size: 14px;
    line-height: 1.7;
  }
}
