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

:root {
  --ab-black-text: #2c2c2c;
  --ab-gray-text: #a3a3a3;
  --ab-white-bg: #ffffff;
  --ab-black: #292a31;
  --ab-page-bg: #f6f6f6;
  --ab-line: #d9d9d9;

  --nav-pill-bg: rgba(44, 44, 44, 0.7);
  --nav-pill-blur: 2px;

  /* 2800 */
  --section-x: 100px;
  --content-width: 2600px;
  --section-pt: 144px;
  --section-title-mb: 72px;
  --title-size: 170px;
  --title-tracking: -5.1px;
  --header-pt: 33px;
  --hero-pt: 144px;
  --hero-aside-pt: 144px;
  --hero-title-size: 170px;
  --hero-title-tracking: -8.5px;
  --hero-inner-gap: 64px;
  --hero-title-ref-col: calc(var(--content-width) - var(--hero-aside-width) - var(--hero-inner-gap));
  --hero-aside-width: 417px;
  --hero-aside-gap: 89px;
  --hero-logo-width: 417px;
  --hero-logo-pair-width: 417px;
  --hero-logo-pair-mt: 0;
  --hero-logo-circle: 230px;
  --hero-logo-photo-offset: auto;
  --hero-awards-mt: 89px;
  --hero-logo-block-min-h: auto;
  --hero-awards-size: 18px;
  --hero-desc-pt: 72px;
  --hero-desc-pb: 144px;
  --hero-title-pb: 0;
  --hero-desc-text: 48px;
  --hero-desc-padding: 60px;
  --radius-card: 100px;
  --radius-soft: 100px;
  --radius-btn: 73px;
  --nav-pt: 32px;
  --case-list-gap: 64px;
  --case-grid-cols: 1290fr 1310fr;
  --case-ref-w: 2600;
  --case-ref-h: 860;
  --case-ref-gap: 64;
  --case-ref-pad: 64;
  --case-ref-meta: 32;
  --case-ref-meta-track: -0.96;
  --case-ref-meta-gap: 21;
  --case-ref-body-gap: 72;
  --case-ref-title: 72;
  --case-ref-title-track: -2.16;
  --case-ref-btn-py: 32;
  --case-ref-btn-px: 48;
  --case-ref-btn-size: 48;
  --case-ref-btn-track: -1.44;
  --case-ref-meta-col1: 27.29%;
  --case-ref-meta-col2: 32.25%;
  --pub-grid-gap-y: 24px;
  --pub-grid-gap-x: 20px;
  --pub-card-h: 740px;
  --pub-image-h: 370px;
  --pub-text-p: 64px;
  --pub-title-size: 32px;
  --pub-title-tracking: -0.96px;
  --pub-title-max-w: 491px;
  --pub-title-max-h: 165px;
  --pub-meta-size: 24px;
  --pub-meta-tracking: -0.72px;
  --link-gap: 21px;
  --link-icon-num: 170;
  --link-icon-den: 416;
  --link-offset-num: 64;
  --link-offset-den: 416;
  --link-text-size: 24px;
  --link-text-tracking: -0.72px;
  --link-text-w: 272px;
  --cv-card-py: 32px;
  --cv-row-py: 56px;
  --cv-row-px: 64px;
  --cv-row-pr: 64px;
  --cv-line-inset-x: 64px;
  --cv-grid-cols:
    minmax(0, 352fr) minmax(0, 384fr) minmax(0, 417fr) minmax(0, 384fr)
    minmax(0, 417fr) minmax(0, 384fr) minmax(0, 134fr);
  --cv-font-size: 32px;
  --cv-tracking: -0.96px;
  --download-gap: 40px;
  --download-btn-px: 56px;
  --download-btn-py: 32px;
  --download-btn-size: 48px;
  --download-btn-tracking: -1.44px;
  --footer-pt: 144px;
  --footer-pb: 86px;
}

@media (max-width: 1920px) {
  :root {
    --section-x: 100px;
    --content-width: 1720px;
    --section-pt: 72px;
    --section-title-mb: 56px;
    --title-size: 72px;
    --title-tracking: -2.16px;
    --header-pt: 0;
    --hero-pt: 100px;
    --hero-aside-pt: 0;
    --hero-title-size: 88px;
    --hero-title-tracking: -4.4px;
    --hero-aside-width: 417px;
    --hero-aside-gap: 89px;
    --hero-logo-width: 417px;
    --hero-logo-pair-width: 281px;
    --hero-logo-pair-mt: 94px;
    --hero-logo-circle: 155px;
    --hero-logo-photo-offset: 126px;
    --hero-awards-mt: 33px;
    --hero-logo-block-min-h: 384px;
    --hero-awards-size: 14px;
    --hero-desc-pt: 72px;
    --hero-desc-pb: 72px;
    --hero-title-pb: 0;
    --hero-desc-text: 32px;
    --hero-desc-padding: 56px;
    --radius-card: 100px;
    --radius-soft: 56px;
    --radius-btn: 73px;
    --nav-pt: 32px;
    --case-list-gap: 32px;
    --case-grid-cols: 869fr 851fr;
    --case-ref-w: 1720;
    --case-ref-h: 560;
    --case-ref-gap: 32;
    --case-ref-pad: 56;
    --case-ref-meta: 16;
    --case-ref-meta-track: -0.48;
    --case-ref-meta-gap: 21;
    --case-ref-body-gap: 56;
    --case-ref-title: 48;
    --case-ref-title-track: -1.44;
    --case-ref-btn-py: 24;
    --case-ref-btn-px: 32;
    --case-ref-btn-size: 32;
    --case-ref-btn-track: -0.96;
    --case-ref-meta-col1: 23.59%;
    --case-ref-meta-col2: 30.96%;
    --pub-grid-gap-y: 24px;
    --pub-grid-gap-x: 20px;
    --pub-card-h: 488px;
    --pub-image-h: 244px;
    --pub-text-p: 48px;
    --pub-title-size: 20px;
    --pub-title-tracking: -0.6px;
    --pub-title-max-w: 296px;
    --pub-title-max-h: 88px;
    --pub-meta-size: 16px;
    --pub-meta-tracking: -0.48px;
    --link-gap: 20px;
    --link-icon-num: 170;
    --link-icon-den: 416;
    --link-offset-num: 48;
    --link-offset-den: 270;
    --link-text-size: 16px;
    --link-text-tracking: -0.48px;
    --link-text-w: 206px;
    --cv-card-py: 24px;
    --cv-row-py: 40px;
    --cv-row-px: 64px;
    --cv-row-pr: 64px;
    --cv-line-inset-x: 64px;
    --cv-grid-cols:
      minmax(0, 352fr) minmax(0, 92fr) minmax(0, 417fr) minmax(0, 92fr)
      minmax(0, 417fr) minmax(0, 92fr) minmax(0, 134fr);
    --cv-font-size: 16px;
    --cv-tracking: -0.48px;
    --download-gap: 19px;
    --download-btn-px: 24px;
    --download-btn-py: 8px;
    --download-btn-size: 32px;
    --download-btn-tracking: -0.96px;
    --footer-pt: 72px;
    --footer-pb: 86px;
  }
}

@media (max-width: 1440px) {
  :root {
    --section-x: 48px;
    --content-width: 1304px;
    --section-pt: 56px;
    --section-title-mb: 40px;
    --title-size: 64px;
    --title-tracking: -1.92px;
    --header-pt: 0;
    --hero-pt: 72px;
    --hero-aside-pt: 0;
    --hero-title-size: 64px;
    --hero-title-tracking: -3.2px;
    --hero-aside-width: 417px;
    --hero-aside-gap: 56px;
    --hero-logo-width: 417px;
    --hero-logo-pair-width: 281px;
    --hero-logo-pair-mt: 72px;
    --hero-logo-circle: 100px;
    --hero-logo-photo-offset: 81px;
    --hero-awards-mt: 24px;
    --hero-logo-block-min-h: 302px;
    --hero-awards-size: 14px;
    --hero-desc-pt: 56px;
    --hero-desc-pb: 56px;
    --hero-title-pb: 0;
    --hero-desc-text: 24px;
    --hero-desc-padding: 32px;
    --radius-card: 100px;
    --radius-soft: 56px;
    --radius-btn: 73px;
    --nav-pt: 32px;
    --case-list-gap: 16px;
    --case-grid-cols: 660fr 644fr;
    --case-ref-w: 1304;
    --case-ref-h: 440;
    --case-ref-gap: 16;
    --case-ref-pad: 32;
    --case-ref-meta: 16;
    --case-ref-meta-track: -0.48;
    --case-ref-meta-gap: 21;
    --case-ref-body-gap: 32;
    --case-ref-title: 32;
    --case-ref-title-track: -0.96;
    --case-ref-btn-py: 20;
    --case-ref-btn-px: 24;
    --case-ref-btn-size: 24;
    --case-ref-btn-track: -0.72;
    --case-ref-meta-col1: 31.06%;
    --case-ref-meta-col2: 40.76%;
    --pub-grid-gap-y: 16px;
    --pub-grid-gap-x: 16px;
    --pub-card-h: 368px;
    --pub-image-h: 184px;
    --pub-text-p: 32px;
    --pub-title-size: 18px;
    --pub-title-tracking: -0.54px;
    --pub-title-max-w: 252px;
    --pub-title-max-h: 88px;
    --pub-meta-size: 14px;
    --pub-meta-tracking: -0.42px;
    --link-gap: 16px;
    --link-icon-num: 100;
    --link-icon-den: 204;
    --link-offset-num: 32;
    --link-offset-den: 204;
    --link-text-size: 14px;
    --link-text-tracking: -0.42px;
    --link-text-w: 141px;
    --cv-card-py: 16px;
    --cv-row-py: 32px;
    --cv-row-px: 40px;
    --cv-row-pr: 40px;
    --cv-line-inset-x: 40px;
    --cv-grid-cols:
      minmax(0, 320fr) minmax(0, 385fr) minmax(0, 385fr) minmax(0, 134fr);
    --cv-font-size: 16px;
    --cv-tracking: -0.48px;
    --download-gap: 20px;
    --download-btn-px: 20px;
    --download-btn-py: 10px;
    --download-btn-size: 24px;
    --download-btn-tracking: -0.72px;
    --footer-pt: 56px;
    --footer-pb: 86px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-x: 16px;
    --content-width: 100%;
    --section-pt: 32px;
    --section-title-mb: 16px;
    --title-size: 24px;
    --title-tracking: -0.72px;
    --header-pt: 0;
    --hero-pt: 16px;
    --hero-title-pb: 8px;
    --hero-aside-pt: 0;
    --hero-title-size: 26px;
    --hero-title-tracking: -1.3px;
    --hero-aside-width: 100%;
    --hero-aside-gap: 16px;
    --hero-logo-width: 261px;
    --hero-logo-pair-width: 131px;
    --hero-logo-pair-mt: 0;
    --hero-logo-circle: 72px;
    --hero-logo-photo-offset: 59px;
    --hero-awards-mt: 0;
    --hero-logo-block-min-h: auto;
    --hero-awards-size: 10px;
    --hero-desc-pt: 32px;
    --hero-desc-pb: 32px;
    --hero-desc-text: 12px;
    --hero-desc-padding: 16px;
    --radius-card: 100px;
    --radius-soft: 24px;
    --radius-btn: 33px;
    --nav-pt: 16px;
    --case-list-gap: 12px;
    --case-grid-cols: 1fr;
    --case-ref-w: 288;
    --case-ref-h: 308;
    --case-ref-gap: 12;
    --case-ref-pad: 16;
    --case-ref-meta: 10;
    --case-ref-meta-track: -0.3;
    --case-ref-meta-gap: 3;
    --case-ref-body-gap: 20;
    --case-ref-title: 14;
    --case-ref-title-track: -0.42;
    --case-ref-btn-py: 6;
    --case-ref-btn-px: 10;
    --case-ref-btn-size: 10;
    --case-ref-btn-track: -0.3;
    --case-ref-meta-col1: 28%;
    --case-ref-meta-col2: 38%;
    --pub-grid-gap-y: 0;
    --pub-grid-gap-x: 8px;
    --pub-card-h: 280px;
    --pub-image-h: 140px;
    --pub-text-p: 16px;
    --pub-title-size: 14px;
    --pub-title-tracking: -0.42px;
    --pub-title-max-w: 208px;
    --pub-title-max-h: 72px;
    --pub-meta-size: 10px;
    --pub-meta-tracking: -0.3px;
    --link-gap: 8px;
    --link-icon-num: 75;
    --link-icon-den: 140;
    --link-offset-num: 16;
    --link-offset-den: 140;
    --link-text-size: 10px;
    --link-text-tracking: -0.3px;
    --link-text-w: 109px;
    --cv-card-py: 8px;
    --cv-row-py: 16px;
    --cv-row-px: 16px;
    --cv-row-pr: 16px;
    --cv-line-inset-x: 16px;
    --cv-grid-cols:
      minmax(0, 86fr) minmax(0, 107fr) minmax(0, 135fr);
    --cv-font-size: 10px;
    --cv-tracking: -0.3px;
    --download-gap: 4px;
    --download-btn-px: 8px;
    --download-btn-py: 4px;
    --download-btn-size: 10px;
    --download-btn-tracking: -0.3px;
    --footer-pt: 56px;
    --footer-pb: 0;
  }
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--ab-page-bg);
  color: var(--ab-black-text);
  -webkit-font-smoothing: antialiased;
}

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

.muted {
  color: var(--ab-gray-text);
}

.page {
  width: 100%;
  max-width: 2800px;
  margin: 0 auto;
  background: var(--ab-page-bg);
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--nav-pt) var(--section-x) 0;
  background: transparent;
}

.nav-group {
  display: flex;
  gap: 1px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--nav-pill-bg);
  backdrop-filter: blur(var(--nav-pill-blur));
  -webkit-backdrop-filter: blur(var(--nav-pill-blur));
  border-radius: 100px;
  color: var(--ab-white-bg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.28px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav-pill:hover {
  opacity: 0.75;
}

.nav-pill--brand {
  font-weight: 500;
}

.nav-pill--in-menu {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--nav-pill-bg);
  backdrop-filter: blur(var(--nav-pill-blur));
  -webkit-backdrop-filter: blur(var(--nav-pill-blur));
  border: 0;
  border-radius: 100px;
  color: var(--ab-white-bg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.28px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nav-toggle:hover {
  opacity: 0.75;
}

/* Sections */

.section {
  padding: var(--section-pt) var(--section-x) 0;
}

.section-title {
  font-size: var(--title-size);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: var(--title-tracking);
  margin-bottom: var(--section-title-mb);
}

/* Header / Hero */

.section-header {
  padding-top: var(--header-pt);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: var(--content-width);
  max-width: 100%;
  gap: var(--hero-inner-gap);
}

.hero-title {
  flex: 1;
  min-width: 0;
  padding-top: var(--hero-pt);
  padding-bottom: var(--hero-title-pb);
  font-size: var(--hero-title-size);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--hero-title-tracking);
}

.hero-title__line {
  display: block;
}

@media (min-width: 1921px) {
  :root {
    --title-size: 100px;
    --cv-font-size: 24px;
    --cv-tracking: -0.72px;
    --download-gap: 19px;
    --download-btn-px: 24px;
    --download-btn-py: 8px;
    --download-btn-size: 32px;
    --download-btn-tracking: -0.96px;
    --hero-pt: 100px;
    --hero-aside-pt: 0;
    --hero-logo-pair-width: 281px;
    --hero-logo-circle: 155px;
    --hero-logo-photo-offset: 126px;
    --hero-logo-pair-mt: 94px;
    --hero-logo-block-min-h: 384px;
    --hero-awards-mt: 33px;
    --hero-awards-size: 14px;
  }

  .hero {
    container-type: inline-size;
  }

  .hero-title__line {
    white-space: nowrap;
  }

  .hero-title {
    font-size: min(
      var(--hero-title-size),
      calc(
        (100cqw - var(--hero-aside-width) - var(--hero-inner-gap)) / var(--hero-title-ref-col) * var(--hero-title-size)
      )
    );
    letter-spacing: -0.05em;
  }

  .hero-logo__photo {
    left: var(--hero-logo-photo-offset);
    right: auto;
  }

  .link-card {
    border-radius: min(100px, calc(100 / 416 * 100cqw));
  }

  .section-title {
    font-size: min(100px, var(--title-size));
  }

  .case-body h3 {
    font-size: min(
      100px,
      calc(var(--case-ref-title) / var(--case-ref-w) * 100cqw)
    );
  }

  .pub-text h3 {
    font-size: min(100px, var(--pub-title-size));
  }
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: var(--hero-aside-width);
  flex-shrink: 0;
  padding-top: var(--hero-aside-pt);
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: var(--hero-logo-width);
  min-height: var(--hero-logo-block-min-h);
  flex-shrink: 0;
}

.hero-logo__pair {
  position: relative;
  width: var(--hero-logo-pair-width);
  height: var(--hero-logo-circle);
  margin-top: var(--hero-logo-pair-mt);
  flex-shrink: 0;
}

.hero-logo__brand {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--hero-logo-circle);
  height: var(--hero-logo-circle);
  z-index: 2;
}

.hero-logo__circle {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-logo__mark {
  position: absolute;
  left: 31%;
  top: 22%;
  width: 37%;
  height: auto;
}

.hero-logo__photo {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: var(--hero-logo-circle);
  height: var(--hero-logo-circle);
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 1920px) {
  .hero-logo__photo {
    left: var(--hero-logo-photo-offset);
    right: auto;
  }
}

.hero-awards {
  font-size: var(--hero-awards-size);
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  width: auto;
  max-width: 184px;
  margin-top: var(--hero-awards-mt);
  align-self: flex-end;
}

.block-description {
  padding: var(--hero-desc-pt) var(--section-x) var(--hero-desc-pb);
}

.hero-description {
  width: var(--content-width);
  max-width: 100%;
  margin-top: 0;
}

.hero-description p {
  background: var(--ab-white-bg);
  border-radius: var(--radius-soft);
  padding: var(--hero-desc-padding);
  font-size: var(--hero-desc-text);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ab-gray-text);
}

/* UI Showcase */

.section-showcase {
  padding-top: 0;
  background: transparent;
}

.section-showcase img {
  display: block;
  width: var(--content-width);
  max-width: 100%;
  height: auto;
}

/* CV */

.download {
  display: flex;
  align-items: center;
  gap: var(--download-gap);
  width: var(--content-width);
  max-width: 100%;
  margin-bottom: var(--section-title-mb);
}

.download .section-title {
  margin-bottom: 0;
}

.btn-download {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: var(--ab-black);
  color: var(--ab-white-bg);
  border-radius: var(--radius-btn);
  padding: var(--download-btn-py) var(--download-btn-px);
  font-size: var(--download-btn-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--download-btn-tracking);
  text-decoration: none;
  transition: opacity 0.25s;
}

.btn-download:hover {
  opacity: 0.85;
}

.cv-card {
  width: var(--content-width);
  max-width: 100%;
  background: var(--ab-white-bg);
  border-radius: var(--radius-soft);
  padding: var(--cv-card-py) 0;
}

.cv-row {
  display: grid;
  grid-template-columns: var(--cv-grid-cols);
  align-items: start;
  position: relative;
  padding: var(--cv-row-py) var(--cv-row-pr) var(--cv-row-py) var(--cv-row-px);
  font-size: var(--cv-font-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--cv-tracking);
}

.cv-row:not(.cv-row--last)::after {
  content: "";
  position: absolute;
  left: var(--cv-line-inset-x);
  right: var(--cv-line-inset-x);
  bottom: 0;
  height: 1px;
  background: var(--ab-line);
}

.cv-row span {
  min-width: 0;
}

.cv-row span:nth-child(1) { grid-column: 1; }
.cv-row span:nth-child(2) { grid-column: 3; }
.cv-row span:nth-child(3) { grid-column: 5; }
.cv-row span:nth-child(4) { grid-column: 7; }

@media (max-width: 1440px) {
  .cv-row span:nth-child(2) { grid-column: 2; }
  .cv-row span:nth-child(3) { grid-column: 3; }
  .cv-row span:nth-child(4) { grid-column: 4; }
}

.cv-row--last {
  border-bottom: none;
}

.cv-row span:last-child {
  text-align: right;
}

/* Cases */

.cases-list {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: calc(var(--case-ref-gap) / var(--case-ref-w) * 100cqw);
  width: var(--content-width);
  max-width: 100%;
}

.case-card {
  display: grid;
  grid-template-columns: var(--case-grid-cols);
  align-items: stretch;
  width: 100%;
  aspect-ratio: var(--case-ref-w) / var(--case-ref-h);
}

a.case-card {
  text-decoration: none;
  color: inherit;
}

.case-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  padding: calc(var(--case-ref-pad) / var(--case-ref-w) * 100cqw);
  background: var(--ab-white-bg);
  border-radius: var(--radius-soft);
  min-width: 0;
}

.case-content > .text-case1 {
  font-size: calc(var(--case-ref-meta) / var(--case-ref-w) * 100cqw);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: calc(var(--case-ref-meta-track) / var(--case-ref-w) * 100cqw);
  color: var(--ab-gray-text);
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: calc(var(--case-ref-body-gap) / var(--case-ref-w) * 100cqw);
  max-width: 100%;
}

.case-body h3 {
  font-size: calc(var(--case-ref-title) / var(--case-ref-w) * 100cqw);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: calc(var(--case-ref-title-track) / var(--case-ref-w) * 100cqw);
}

.btn-case {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding:
    calc(var(--case-ref-btn-py) / var(--case-ref-w) * 100cqw)
    calc(var(--case-ref-btn-px) / var(--case-ref-w) * 100cqw);
  background: var(--ab-black);
  color: #fff;
  border-radius: var(--radius-btn);
  font-size: calc(var(--case-ref-btn-size) / var(--case-ref-w) * 100cqw);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: calc(var(--case-ref-btn-track) / var(--case-ref-w) * 100cqw);
  transition: opacity 0.2s;
}

.btn-case:hover {
  opacity: 0.85;
}

.case-visual {
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: var(--radius-soft);
  overflow: hidden;
}

.case-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .case-visual img {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.35, 1);
    transform: scale(1);
  }

  a.case-card:hover .case-visual img,
  a.case-card:focus-visible .case-visual img {
    transform: scale(1.08);
  }
}

/* Publications */

.pub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--pub-grid-gap-y) var(--pub-grid-gap-x);
  width: var(--content-width);
  max-width: 100%;
}

.pub-card {
  display: block;
  height: var(--pub-card-h);
  position: relative;
  background: transparent;
}

.pub-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pub-image-h);
  border-radius: var(--radius-soft);
  overflow: hidden;
}

.pub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-soft);
}

.section-publications .pub-image img {
  transition: opacity 0.25s;
}

.section-publications .pub-image:hover img {
  opacity: 0.85;
}

.pub-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--pub-card-h) - var(--pub-image-h));
  background: var(--ab-white-bg);
  border-radius: var(--radius-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pub-text-p);
  box-sizing: border-box;
}

.pub-text h3 {
  position: static;
  width: min(var(--pub-title-max-w), 100%);
  font-size: var(--pub-title-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--pub-title-tracking);
}

.pub-text p {
  position: static;
  width: min(var(--pub-title-max-w), 100%);
  font-size: var(--pub-meta-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--pub-meta-tracking);
}

/* Links */

.links-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--link-gap);
  width: var(--content-width);
  max-width: 100%;
}

.link-card {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--ab-white-bg);
  border-radius: var(--radius-soft);
}

.section-links .link-card {
  transition: opacity 0.25s;
}

.section-links .link-card:hover {
  opacity: 0.85;
}

.link-card__icon {
  position: absolute;
  top: calc(var(--link-offset-num) / var(--link-offset-den) * 100cqw);
  left: calc(var(--link-offset-num) / var(--link-offset-den) * 100cqw);
  width: calc(var(--link-icon-num) / var(--link-icon-den) * 100cqw);
  height: calc(var(--link-icon-num) / var(--link-icon-den) * 100cqw);
  display: block;
  object-fit: contain;
}

@media (min-width: 1441px) and (max-width: 1920px) {
  .link-card--behance {
    --link-icon-num: 100;
    --link-icon-den: 270;
  }
}

.link-card p {
  position: absolute;
  left: calc(var(--link-offset-num) / var(--link-offset-den) * 100cqw);
  bottom: calc(var(--link-offset-num) / var(--link-offset-den) * 100cqw);
  width: min(
    var(--link-text-w),
    calc(100% - (var(--link-offset-num) / var(--link-offset-den) * 100cqw) * 2)
  );
  font-size: var(--link-text-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--link-text-tracking);
}

/* Footer */

.text-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--footer-pt) var(--section-x) var(--footer-pb);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.52;
}

.text-footer p {
  white-space: nowrap;
}

.text-footer p:first-child {
  color: var(--ab-black-text);
}

.text-footer .footer-note {
  color: var(--ab-gray-text);
}

@media (max-width: 768px) {
  .section-header {
    padding-top: 0;
  }

  .hero {
    flex-direction: column;
    gap: 16px;
  }

  .hero-aside {
    align-items: flex-start;
    width: 100%;
    padding-top: 0;
  }

  .hero-logo {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    min-height: auto;
  }

  .hero-logo__pair {
    margin-top: 0;
    flex-shrink: 0;
  }

  .hero-awards {
    align-self: flex-start;
    max-width: 102px;
    margin-top: 0;
  }

  .case-card {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
  }

  .case-visual {
    order: -1;
    aspect-ratio: 288 / 176;
    height: auto;
  }

  .case-content {
    height: auto;
    min-height: 132px;
    padding: 16px;
  }

  .cases-list {
    gap: 12px;
  }

  .case-content > .text-case1 {
    font-size: 10px;
    letter-spacing: -0.3px;
    color: var(--ab-gray-text);
  }

  .case-body {
    gap: 20px;
  }

  .case-body h3 {
    font-size: 14px;
    letter-spacing: -0.42px;
  }

  .btn-case {
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: -0.3px;
  }

  .cv-row span:nth-child(4) {
    display: none;
  }

  .cv-row span:nth-child(2) { grid-column: 2; }
  .cv-row span:nth-child(3) { grid-column: 3; }

  .pub-scroll {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    width: 100%;
  }

  .pub-scroll::-webkit-scrollbar {
    display: none;
  }

  .pub-grid {
    display: flex;
    gap: var(--pub-grid-gap-x);
    width: max-content;
    max-width: none;
  }

  .section-publications .pub-grid {
    padding-left: var(--section-x);
  }

  .section-publications .pub-card {
    flex: 0 0 240px;
    width: 240px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    scroll-snap-align: none;
  }

  .section-publications .pub-card ~ .pub-card {
    scroll-snap-align: start;
  }

  .section-publications .pub-card .pub-image {
    border-radius: 24px;
    overflow: hidden;
  }

  .section-publications .pub-card .pub-image picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .section-publications .pub-card .pub-image img {
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .section-publications .pub-card .pub-text {
    border-radius: 24px;
  }

  .section.section-publications {
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
  }

  .section-publications .section-title {
    padding-left: var(--section-x);
  }

  .text-footer {
    font-size: 10px;
  }

  .text-footer p {
    white-space: normal;
  }

  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    flex-wrap: wrap;
    gap: 0;
  }

  .nav > .nav-pill--brand {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    font-size: 10px;
    letter-spacing: -0.2px;
    padding: 10px 16px;
  }

  .nav-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      margin-top 0.25s ease;
  }

  .nav-group.is-open {
    max-height: 240px;
    opacity: 1;
    margin-top: 8px;
    pointer-events: auto;
  }

  .nav-pill--in-menu {
    display: inline-flex;
    font-weight: 600;
  }

  .nav-pill {
    justify-content: flex-start;
    font-size: 10px;
    letter-spacing: -0.2px;
    padding: 10px 16px;
  }
}

@media (max-width: 400px) {
  :root {
    /* 288px content width inside the 320 Figma frame (16px gutters).
       Scale: N * (100vw - 32px) / 288 — N is unitless so the result stays in px. */
    --title-size: calc(24 * (100vw - 32px) / 288);
    --title-tracking: calc(-0.72 * (100vw - 32px) / 288);
    --section-pt: calc(32 * (100vw - 32px) / 288);
    --section-title-mb: calc(16 * (100vw - 32px) / 288);
    --hero-pt: calc(16 * (100vw - 32px) / 288);
    --hero-title-pb: calc(8 * (100vw - 32px) / 288);
    --hero-title-size: calc(26 * (100vw - 32px) / 288);
    --hero-title-tracking: calc(-1.3 * (100vw - 32px) / 288);
    --hero-aside-gap: calc(16 * (100vw - 32px) / 288);
    --hero-logo-width: calc(261 * (100vw - 32px) / 288);
    --hero-logo-pair-width: calc(131 * (100vw - 32px) / 288);
    --hero-logo-circle: calc(72 * (100vw - 32px) / 288);
    --hero-logo-photo-offset: calc(59 * (100vw - 32px) / 288);
    --hero-awards-size: calc(10 * (100vw - 32px) / 288);
    --hero-desc-pt: calc(32 * (100vw - 32px) / 288);
    --hero-desc-pb: calc(32 * (100vw - 32px) / 288);
    --hero-desc-text: calc(12 * (100vw - 32px) / 288);
    --hero-desc-padding: calc(16 * (100vw - 32px) / 288);
    --nav-pt: calc(16 * (100vw - 32px) / 288);
    --radius-soft: calc(24 * (100vw - 32px) / 288);
    --radius-btn: calc(33 * (100vw - 32px) / 288);
    --case-list-gap: calc(12 * (100vw - 32px) / 288);
    --pub-grid-gap-x: calc(8 * (100vw - 32px) / 288);
    --pub-card-h: calc(280 * (100vw - 32px) / 288);
    --pub-image-h: calc(140 * (100vw - 32px) / 288);
    --pub-text-p: calc(16 * (100vw - 32px) / 288);
    --pub-title-size: calc(14 * (100vw - 32px) / 288);
    --pub-title-tracking: calc(-0.42 * (100vw - 32px) / 288);
    --pub-title-max-w: calc(208 * (100vw - 32px) / 288);
    --pub-meta-size: calc(10 * (100vw - 32px) / 288);
    --pub-meta-tracking: calc(-0.3 * (100vw - 32px) / 288);
    --link-gap: calc(8 * (100vw - 32px) / 288);
    --link-text-size: calc(10 * (100vw - 32px) / 288);
    --link-text-tracking: calc(-0.3 * (100vw - 32px) / 288);
    --link-text-w: calc(109 * (100vw - 32px) / 288);
    --download-gap: calc(4 * (100vw - 32px) / 288);
    --download-btn-px: calc(8 * (100vw - 32px) / 288);
    --download-btn-py: calc(4 * (100vw - 32px) / 288);
    --download-btn-size: calc(10 * (100vw - 32px) / 288);
    --download-btn-tracking: calc(-0.3 * (100vw - 32px) / 288);
    --footer-pt: calc(56 * (100vw - 32px) / 288);
  }

  .hero-logo__photo {
    width: var(--hero-logo-circle, 72px);
    height: var(--hero-logo-circle, 72px);
  }

  .hero-awards {
    max-width: calc(102 * (100vw - 32px) / 288);
  }

  .section-publications .pub-card {
    flex: 0 0 calc(240 * (100vw - 32px) / 288);
    width: calc(240 * (100vw - 32px) / 288);
  }

  .section-publications .pub-card .pub-image,
  .section-publications .pub-card .pub-text {
    border-radius: calc(24 * (100vw - 32px) / 288);
  }
}

/* Heading reveal (desktop / tablet, JS adds .reveal-headings on html) */
@media (min-width: 769px) {
  html.reveal-headings .reveal-mask {
    overflow: hidden;
    vertical-align: top;
  }

  html.reveal-headings .reveal-mask--inline {
    display: inline-block;
  }

  html.reveal-headings .reveal-mask--block {
    display: block;
  }

  html.reveal-headings .reveal-mask__inner {
    display: block;
    transform: translate3d(0, 110%, 0);
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }

  html.reveal-headings .reveal-heading.is-inview .reveal-mask__inner {
    transform: translate3d(0, 0, 0);
  }

  html.reveal-headings .hero-title__line.reveal-heading--line {
    display: block;
  }

  /* Descenders (g, y, p) need extra room inside overflow masks */
  html.reveal-headings .hero-title__line .reveal-mask--block {
    padding-bottom: 0.18em;
    margin-bottom: -0.18em;
  }

  html.reveal-headings .hero-title__line .reveal-mask__inner {
    line-height: 1;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
  }
}

/* Custom cursor: blue dot + inversion ring (desktop); system cursor stays visible */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .site-cursor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
  }

  .site-cursor__follower {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
  }

  .site-cursor.is-visible .site-cursor__follower {
    opacity: 1;
  }

  .site-cursor__dot,
  .site-cursor__ring {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .site-cursor__dot {
    z-index: 2;
    width: 6px;
    height: 6px;
    background: #0066ff;
  }

  .site-cursor__ring {
    z-index: 1;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.88);
    mix-blend-mode: difference;
    transition:
      width 0.3s cubic-bezier(0.25, 1, 0.35, 1),
      height 0.3s cubic-bezier(0.25, 1, 0.35, 1);
  }

  .site-cursor.is-hover .site-cursor__ring {
    width: 34px;
    height: 34px;
  }
}
