/* ============ Fonts ============ */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Inter-var-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Inter-var-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Inter-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Inter-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Inter-var-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Inter-var-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Inter-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Inter-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/Inter-var-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/Inter-var-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/Inter-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/Inter-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Inter-var-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Inter-var-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Inter-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Inter-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Jetbrainsmono;
  src: url("../fonts/6897089f89ea8889bb71bdb6_JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============ Variables & base ============ */

:root {
  --colors--gray-smoke: #f6f6f6;
  --colors--black: #090909;
  --colors--light-gray-30: #cfcfcf4d;
  --colors--white: white;
  --colors--gray: #7e7e7e;
  --colors--light-gray-50: #cfcfcf80;
}

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

/* Adaptive root font-size: layout scales with viewport via rem/em */
html {
  font-size: calc(16vw / 14.4);
}

@media (max-width: 767px) {
  html {
    font-size: calc(16vw / 3.93);
  }
}

@media (min-width: 1440px) {
  html,
  body {
    font-size: 16px;
  }
}

body {
  margin: 0;
  background-color: var(--colors--gray-smoke);
  color: var(--colors--black);
  font-family: Inter, Arial, sans-serif;
  font-size: 1.11111vw;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 767px) {
  body {
    font-size: 4.07125vw;
  }
}

@media (min-width: 1440px) {
  body {
    font-size: 16px;
  }
}

h2 {
  margin-top: 0;
  margin-bottom: 0;
}

p {
  margin: 0;
}

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

img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
  border: 0;
}

/* ============ Typography ============ */

.dd-text-24px {
  letter-spacing: -0.02em;
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.2;
}

.dd-text-48px {
  letter-spacing: -0.02em;
  font-size: 3em;
  font-weight: 500;
  line-height: 1.1;
}

.dd-code {
  letter-spacing: -0.02em;
  font-family: Jetbrainsmono, Arial, sans-serif;
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1.3;
}

.dd-text-gray {
  color: var(--colors--gray);
}

.dd-button-text {
  font-size: 1em;
  transition: color 0.2s;
}

/* ============ Layout ============ */

.dd-container {
  width: 100%;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.dd-container.is--cta {
  z-index: 3;
  height: 100%;
  position: relative;
}

/* ============ Hero ============ */

.dd-hero {
  width: 100%;
}

.dd-hero__wrapper {
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  display: flex;
  position: relative;
}

.dd-hero__profile {
  z-index: 100;
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 25rem;
  height: 100vh;
  display: flex;
  position: sticky;
  top: 0;
}

.dd-profile-card {
  gap: 1rem;
  border: 1px solid var(--colors--light-gray-30);
  background-color: var(--colors--white);
  flex-flow: column;
  width: 100%;
  padding: 1.25rem;
  display: flex;
}

/* ---- Founders card stack ---- */
/* The second card is absolutely stacked over the first and slides up
   (ScrollTrigger scrub in main.js). overflow: hidden clips it while parked
   below, so it wipes in from the bottom edge of the stack. */

.dd-profile-stack-zone {
  width: 100%;
}

.dd-profile-stack {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.dd-profile-card--overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* parked below via GSAP (yPercent: 110) — no CSS transform here,
     it would stack with GSAP's own transform and double the offset */
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.2);
  will-change: transform;
}

/* Mobile: the profile column is static, so the stack gets its own sticky
   zone. The spacer must be real content (::after), not padding — sticky
   elements can only travel within the parent's content box. */
@media (max-width: 767px) {
  .dd-profile-stack-zone::after {
    content: "";
    display: block;
    height: 85vh;
  }

  .dd-profile-stack-sticky {
    position: sticky;
    top: 1.25rem;
  }
}

/* Reduced motion: no overlap effect, cards stack vertically */
@media (prefers-reduced-motion: reduce) {
  .dd-profile-card--overlay {
    position: static;
    transform: none;
    box-shadow: none;
    margin-top: 1.25rem;
  }

  .dd-profile-stack-zone::after {
    content: none;
  }
}

.dd-profile-card__image {
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
}

.dd-image-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.dd-hero__content {
  width: 100%;
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Works ============ */

.dd-works {
  gap: 2rem;
  flex-flow: column;
  width: 100%;
  padding-top: 3.75rem;
  display: flex;
}

.dd-works__list {
  column-gap: 0.625rem;
  row-gap: 3.75rem;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  width: 100%;
  display: grid;
}

/* ---- Category tabs (sticky) ---- */

/* Sticky range is bounded by .dd-works (its parent), so the panel
   unsticks and leaves together with the section. The site has no
   fixed header — --header-height defaults to 0. */
.featured-works__tabs-wrapper {
  position: sticky;
  top: var(--header-height, 0px);
  z-index: 30;
  background-color: rgba(246, 246, 246, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.625rem 0;
}

/* Реєстрація дозволяє плавно анімувати згасання країв.
   Там, де @property не підтримується, край просто перемикається миттєво. */
@property --fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.featured-works__tabs {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  white-space: nowrap;
  /* Край згасає, коли за ним є ще таби — підказка, що стрічку можна гортати.
     Маска на контейнері: не рухається разом із вмістом. */
  --fade-start: 0px;
  --fade-end: 0px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--fade-start),
    #000 calc(100% - var(--fade-end)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--fade-start),
    #000 calc(100% - var(--fade-end)),
    transparent 100%
  );
  transition: --fade-start 0.3s ease, --fade-end 0.3s ease;
}

.featured-works__tabs.has-start {
  --fade-start: 1.75rem;
}

.featured-works__tabs.has-end {
  --fade-end: 1.75rem;
}

.featured-works__tabs::-webkit-scrollbar {
  display: none;
}

.featured-works__tab {
  font: inherit;
  color: var(--colors--black);
  background-color: var(--colors--white);
  border: 1px solid var(--colors--light-gray-50);
  padding: 0.5rem 1rem;
  cursor: pointer;
  flex: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

@media (hover: hover) {
  .featured-works__tab:not(.is-active):hover {
    opacity: 0.7;
  }
}

.featured-works__tab.is-active {
  background-color: var(--colors--black);
  border-color: var(--colors--black);
  color: var(--colors--white);
}

.featured-works__tab:focus-visible {
  outline: 2px solid var(--colors--black);
  outline-offset: 2px;
}

.featured-works__list-anchor {
  height: 0;
}

.featured-works__empty {
  color: var(--colors--gray);
  line-height: 1.4;
}

/* Loading skeletons */
.sk {
  background: linear-gradient(90deg, #ececec 25%, #f6f6f6 45%, #ececec 65%);
  background-size: 300% 100%;
  animation: dd-shimmer 1.4s ease infinite;
}

@keyframes dd-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.sk-media {
  aspect-ratio: 1;
  width: 100%;
}

.sk-line {
  height: 1em;
  margin-top: 0.75rem;
  width: 100%;
}

.sk-line--title {
  height: 1.5em;
  width: 55%;
  margin-top: 0;
}

.sk-line--short {
  width: 70%;
}

@media (prefers-reduced-motion: reduce) {
  .sk {
    animation: none;
  }
}

/* Category switch animation */
.dd-works__list .project-card {
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dd-works__list.is-leaving .project-card {
  opacity: 0;
  transform: translateY(12px);
}

.project-card.is-entering {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  .dd-works__list .project-card {
    transition: opacity 0.3s ease;
  }

  .dd-works__list.is-leaving .project-card,
  .project-card.is-entering {
    transform: none;
  }
}

/* ---- Project card ---- */

.project-card {
  width: 100%;
}

.project-card__media {
  aspect-ratio: 1;
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

.project-card__image,
.project-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__image {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__video {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__arrow {
  z-index: 3;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8.75rem;
  height: 8.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--colors--white);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  filter: blur(6px);
  transform: translate(-50%, -50%) scale(0.8);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__arrow svg {
  width: 2.5rem;
  height: 2.5rem;
}

.project-card__content {
  margin-top: 24px;
}

.project-card__title {
  margin: 0;
}

.project-card__description {
  margin: 12px 0 0;
  color: var(--colors--gray);
  line-height: 1.4;
}

@media (max-width: 767px) {
  .project-card__content {
    margin-top: 20px;
  }

  .project-card__description {
    margin-top: 12px;
  }
}

/* Desktop: activation via cursor hover */
@media (hover: hover) and (pointer: fine) {
  .project-card__media:hover .project-card__image {
    transform: scale(1.02);
  }

  .project-card__media:hover .project-card__video {
    opacity: 1;
    transform: scale(1.02);
  }

  .project-card__media:hover .project-card__arrow {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Touch devices: activation via scroll position — .is-active is set by projects.js
   when the card's media block is nearest to the viewport center */
@media (hover: none), (pointer: coarse) {
  .project-card__media.is-active .project-card__image {
    transform: scale(1.02);
  }

  .project-card__media.is-active .project-card__video {
    opacity: 1;
    transform: scale(1.02);
  }

  .project-card__media.is-active .project-card__arrow {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Smaller arrow button on mobile so it doesn't cover the preview */
@media (max-width: 767px) {
  .project-card__arrow {
    width: clamp(56px, 18vw, 76px);
    height: clamp(56px, 18vw, 76px);
  }

  .project-card__arrow svg {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card__image,
  .project-card__video,
  .project-card__arrow {
    transition: opacity 0.3s ease;
  }

  .project-card__arrow {
    filter: none;
    transform: translate(-50%, -50%);
  }

  .project-card__media:hover .project-card__image,
  .project-card__media:hover .project-card__video,
  .project-card__media.is-active .project-card__image,
  .project-card__media.is-active .project-card__video {
    transform: none;
  }

  .project-card__media:hover .project-card__arrow,
  .project-card__media.is-active .project-card__arrow {
    transform: translate(-50%, -50%);
  }
}

/* ============ CTA anchor ============ */

.dd-cta-anchor {
  width: 100%;
  height: 200vh;
  position: relative;
}

.dd-cta-anchor__content {
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  padding-top: 6.25rem;
  padding-bottom: 6.25rem;
  display: flex;
  position: sticky;
  top: 0;
}

/* ============ CTA ============ */

.dd-cta {
  z-index: 10;
  pointer-events: none;
  color: var(--colors--white);
  visibility: hidden;
  width: 100%;
  height: 100vh;
  position: fixed;
  inset: 0%;
  overflow: hidden;
}

.dd-cta__wrapper {
  justify-content: space-between;
  place-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.dd-cta__left {
  flex: none;
  width: 100%;
  max-width: 25rem;
}

.dd-cta__content {
  gap: 2.5rem;
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
  padding-right: 12rem;
  display: flex;
}

.dd-cta__content > * {
  opacity: 0;
}

.dd-button {
  background-color: var(--colors--white);
  color: var(--colors--black);
  padding: 0.625rem 1.25rem;
  transition: opacity 0.2s;
  display: inline-block;
}

@media (hover: hover) {
  .dd-button:hover {
    opacity: 0.7;
  }
}

.dd-cta__bg {
  z-index: 1;
  gap: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  inset: 0%;
}

.dd-cta__bg-box {
  background-color: var(--colors--black);
  -webkit-clip-path: polygon(0% 0%, 102% 0%, 102% 0%, 0% 0%);
  clip-path: polygon(0% 0%, 102% 0%, 102% 0%, 0% 0%);
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
}

.dd-cta__bg-box::before {
  content: "";
  width: 200%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--colors--black);
}

/* ============ Bottom dock ============ */

.dd-dock {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  /* above .dd-hero__profile (z-index: 100 as a flex item) */
  z-index: 110;
  display: flex;
  gap: 0.625rem;
  padding: 0.625rem;
  /* convex glass: translucent gradient + blur, rim light on top,
     inner shade at the bottom — reads as a bulging lens */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.18) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 12px 24px rgba(255, 255, 255, 0.4),
    inset 0 -10px 20px rgba(0, 0, 0, 0.08);
  max-width: calc(100% - 2rem);
}

.dd-dock::before {
  content: "";
  position: absolute;
  inset: 0 0 55% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.dd-dock__cta {
  font: inherit;
  font-weight: 500;
  font-size: 1em;
  color: var(--colors--white);
  background-color: var(--colors--black);
  border: none;
  height: 3.25rem;
  padding: 0 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.dd-dock__icon {
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  background-color: var(--colors--white);
  border: 1px solid var(--colors--light-gray-50);
  color: var(--colors--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.dd-dock__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (hover: hover) {
  .dd-dock__cta:hover,
  .dd-dock__icon:hover {
    opacity: 0.7;
  }
}

.dd-dock__cta:focus-visible,
.dd-dock__icon:focus-visible {
  outline: 2px solid var(--colors--black);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .dd-dock {
    bottom: 1rem;
    width: calc(100% - 2rem);
  }

  .dd-dock__cta {
    flex: 1;
    padding: 0 1rem;
  }
}

/* ============ Lead modal ============ */

.dd-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.dd-modal[hidden] {
  display: none;
}

.dd-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(9, 9, 9, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dd-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  background-color: var(--colors--white);
  border: 1px solid var(--colors--light-gray-30);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dd-modal.is-open .dd-modal__backdrop {
  opacity: 1;
}

.dd-modal.is-open .dd-modal__card {
  opacity: 1;
  transform: none;
}

.dd-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background-color: var(--colors--gray-smoke);
  color: var(--colors--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.dd-modal__close svg {
  width: 1rem;
  height: 1rem;
}

@media (hover: hover) {
  .dd-modal__close:hover {
    opacity: 0.7;
  }
}

.dd-modal__note {
  margin-top: 0.75rem;
  color: var(--colors--gray);
  line-height: 1.4;
}

.dd-modal__form {
  margin-top: 1.25rem;
  display: flex;
  flex-flow: column;
  gap: 0.625rem;
}

.dd-modal__field {
  font: inherit;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--colors--light-gray-50);
  background-color: var(--colors--white);
  color: var(--colors--black);
  resize: vertical;
}

.dd-modal__field::placeholder {
  color: var(--colors--gray);
}

/* Пастка для спам-ботів: людина цього поля не бачить */
.dd-modal__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dd-modal__field:focus {
  outline: none;
  border-color: var(--colors--black);
}

.dd-modal__submit {
  font: inherit;
  font-weight: 500;
  font-size: 1em;
  color: var(--colors--white);
  background-color: var(--colors--black);
  border: none;
  width: 100%;
  height: 3.25rem;
  padding: 0 1.5rem;
  cursor: pointer;
  margin-top: 0.375rem;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .dd-modal__submit:hover {
    opacity: 0.7;
  }
}

.dd-modal__submit:focus-visible {
  outline: 2px solid var(--colors--black);
  outline-offset: 2px;
}

.dd-modal__status {
  min-height: 1.2em;
  line-height: 1.4;
  color: var(--colors--gray);
}

.dd-modal__status.is-error {
  color: #c0392b;
}

@media (prefers-reduced-motion: reduce) {
  .dd-modal__card,
  .dd-modal__backdrop {
    transition: opacity 0.2s ease;
  }

  .dd-modal__card {
    transform: none;
  }

}

/* ============ Text animation masks ============ */

.line {
  position: relative;
}

.line-mask {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--colors--gray-smoke);
  opacity: 0.65;
  height: 100%;
  width: 100%;
  z-index: 2;
}

/* ============ Mobile ============ */

@media (max-width: 767px) {
  .dd-container {
    max-width: none;
  }

  .dd-hero__wrapper {
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 1.25rem;
  }

  .dd-hero__profile {
    max-width: none;
    height: auto;
    position: static;
  }

  .dd-code {
    font-size: 1.125em;
  }

  .dd-hero__content {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .dd-works {
    padding-top: 5rem;
  }

  .dd-works__list {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }

  .dd-cta__wrapper {
    display: block;
  }

  .dd-cta__content {
    gap: 1.875rem;
    max-width: 100%;
    height: 100%;
    padding-right: 0;
  }

  .dd-text-48px {
    font-size: 2.25em;
  }

  .dd-cta-anchor__content {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .dd-cta__left {
    display: none;
  }

  .dd-cta__bg-box:nth-of-type(5),
  .dd-cta__bg-box:nth-of-type(6) {
    display: none;
  }
}
