#work { padding-bottom: 70px; }

#work .section-heading { align-items: end; }
#work .section-heading .button { flex: none; }

#work .work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

#work .work-image { border-radius: 12px; }

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}

.reveal-ready .reveal-item { transition: opacity 760ms ease, transform 760ms cubic-bezier(.18,.68,.23,1); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); will-change: auto; }
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 21;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, #d4d7df38 0%, #c6cbd41c 36%, transparent 72%);
  filter: blur(18px);
  mix-blend-mode: screen;
  transition: opacity 260ms ease;
}
.cursor-glow.is-visible { opacity: 1; }

.channels-section,
.services-section,
.faq-section,
.footer { border: 0; }

.channels-section { padding: 38px 0 72px; }

.channels-strip {
  display: block;
  overflow: hidden;
  padding: 7px 0;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.channels-marquee-track,
.channels-marquee-group {
  display: flex;
  gap: 18px;
  width: max-content;
}

.channels-marquee-track {
  animation: channels-marquee 58s linear infinite;
  will-change: transform;
}

.channel {
  flex: 0 0 290px;
  min-width: 290px;
}

.channel-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid #ffffff32;
  background: linear-gradient(135deg, #454c65, #242c3e);
}

.channel:nth-child(4n + 2) .channel-icon { background: linear-gradient(135deg, #55516d, #29263c); }
.channel:nth-child(4n + 3) .channel-icon { background: linear-gradient(135deg, #435b61, #273237); }
.channel:nth-child(4n + 4) .channel-icon { background: linear-gradient(135deg, #655849, #342c25); }
.channel-icon img { width: 100%; height: 100%; object-fit: cover; }
.channel-avatar-placeholder { width: 100%; height: 100%; fill: #d7dfeb; opacity: .83; }

.case-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 27px 34px 34px;
  border: 1px solid #383a40;
  border-radius: 28px;
  background: #1b1c1e;
  text-align: center;
}

.case-window-dots { display: flex; align-self: flex-start; gap: 9px; margin-bottom: 31px; }
.case-window-dots span { width: 12px; height: 12px; border-radius: 50%; background: #ff5c60; }
.case-window-dots span:nth-child(2) { background: #ffc33d; }
.case-window-dots span:nth-child(3) { background: #36bc70; }

.case-avatar {
  width: 110px;
  height: 110px;
  position: relative;
  overflow: hidden;
  flex: none;
  border-radius: 50%;
  background: #24262b;
}

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

.case-card h3 { margin-top: 17px; font-size: clamp(1.6rem, 2.5vw, 2.15rem); }
.case-summary { margin-top: 4px; font-size: .98rem; }
.case-divider { width: 100%; height: 1px; background: #55585a; margin: 25px 0; }
.case-metrics { display: grid; gap: 5px; width: 100%; min-height: 112px; align-content: center; }
.case-metrics p { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.case-metrics strong { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1; color: #5de04e; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgb(93 224 78 / 26%), 0 0 64px rgb(93 224 78 / 18%); }
.case-metrics span { font-size: .96rem; color: #b9babd; }
.case-metrics-apollon { grid-template-columns: max-content max-content; justify-content: center; column-gap: 12px; row-gap: 9px; }
.case-metrics-apollon p { display: contents; }
.case-metrics-apollon strong { text-align: right; }
.case-metrics-apollon p:last-child strong { letter-spacing: -.055em; }
.case-metrics-apollon span { align-self: center; text-align: left; }
.case-metrics-arseniy { transform: translateY(8px); }
.case-metrics-arseniy p { flex-direction: column; gap: 10px; }
.case-metrics-arseniy strong { font-size: clamp(3rem, 5.9vw, 4.25rem); }
.case-metrics-arseniy + .case-divider { margin-top: 34px; }
.case-montage,
.case-proof { position: relative; width: 100%; overflow: hidden; border-radius: 10px; margin-top: auto; }
.case-montage { aspect-ratio: 2570 / 1558; }
.case-proof { aspect-ratio: 2570 / 1558; margin-bottom: 0; display: flex; align-items: flex-start; }
.case-montage img,
.case-proof img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-proof img { height: auto; flex: none; border-radius: 14px; object-fit: contain; }

#process .section-heading { margin-bottom: 46px; }

#pricing .center-heading { margin-bottom: 50px; }

.about-portrait {
  aspect-ratio: .94;
  overflow: hidden;
  border: 1px solid #ffffff24;
  border-radius: 30px;
  background: #191719;
}

.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.about-copy .button { margin-top: 4px; }

.numbers-section { padding-top: 48px; }
.numbers-section h2 { text-align: center; margin-bottom: 62px; }
.numbers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 62px; }
.number-item { min-width: 0; text-align: center; }
.number-icon { position: relative; display: grid; place-items: center; width: 104px; height: 104px; margin: 0 auto 27px; border: 1px solid #a8b8ca38; border-radius: 28px; background: linear-gradient(145deg,#222a34 0%,#171b21 72%); box-shadow: inset 0 1px 0 #e4edf51c, 0 16px 34px #0005; }
.number-icon::before { content: ''; position: absolute; width: 72px; height: 18px; bottom: -8px; border-radius: 50%; background: #8399b322; filter: blur(15px); }
.number-icon svg {
  position: relative;
  width: 48px;
  height: 48px;
  color: #c0cedd;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  fill: none;
  filter: drop-shadow(0 3px 5px #9eafc326);
}

.number-value { display: block; font-size: clamp(3.8rem, 6vw, 5.6rem); line-height: 1; letter-spacing: -.075em; font-weight: 600; color: #dce5ee; font-variant-numeric: tabular-nums; }
.number-item p { max-width: 280px; margin: 16px auto 0; color: #b3bdca; font-size: 1rem; line-height: 1.5; }
.contact-form .form-note { text-align: center; color: #89919d; }
.contact-form .form-note a { color: #a1aab7; text-decoration: underline; text-underline-offset: 3px; }
.contact-form .form-note a:hover { color: #d0d8e2; }

#contact .contact-panel { align-items: stretch; }
#contact .contact-intro { display: flex; flex-direction: column; }
#contact-status:empty { display: none; }
#contact-status a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.social-icons { position: static; margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 12px; }
.social-icons a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #77708770; border-radius: 11px; color: #d0cbd8; background: linear-gradient(150deg,#ffffff12,#ffffff04 70%); box-shadow: inset 0 1px 0 #ffffff18; transition: color .2s,border-color .2s,background .2s,transform .2s; }
.social-icons a:hover { color: #fff; border-color: #aebbd0; background: linear-gradient(150deg,#aebbd020,#ffffff06 70%); transform: translateY(-2px); }
.social-icons svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

@keyframes channels-marquee {
  to { transform: translateX(calc(-50% - 9px)); }
}

@media (max-width: 1000px) {
  #work .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers-grid { gap: 30px; }

}

@media (max-width: 780px) {
  #work { padding-bottom: 42px; }
  #work .section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; }
  #work .work-grid { gap: 15px; }
  .channels-section { padding: 24px 0 55px; }
  .case-card { padding: 23px 26px 28px; }
  .case-window-dots { margin-bottom: 24px; }
  .numbers-grid { gap: 18px; }
  .number-icon { width: 88px; height: 88px; border-radius: 24px; }
  .number-icon svg { width: 49px; height: 49px; }

  .number-value { font-size: clamp(2.9rem, 6vw, 4.5rem); }
  .number-item p { font-size: .87rem; }
}

@media (max-width: 520px) {
  #work .work-grid { grid-template-columns: 1fr; }
  #work .section-heading .button { align-self: flex-start; }
  .channel { flex-basis: 250px; min-width: 250px; }
  .case-card { padding: 21px 20px 23px; border-radius: 22px; }
  .case-card h3 { font-size: 1.6rem; }
  .case-proof { aspect-ratio: 1811 / 868; display: block; }
  .case-proof img { height: 100%; }
  .case-metrics span { font-size: .86rem; }
  .about-portrait { aspect-ratio: 1.35; border-radius: 22px; }
  .numbers-section { padding-top: 20px; }
  .numbers-section h2 { margin-bottom: 36px; }
  .numbers-grid { grid-template-columns: 1fr; gap: 52px; }
  .number-icon { width: 92px; height: 92px; margin-bottom: 10px; }
  .number-icon svg { width: 51px; height: 51px; }

  .number-value { font-size: clamp(2rem, 18vw, 4.25rem); }
  .number-item p { margin-top: 10px; }

  .social-icons { gap: 8px; }
  .social-icons a { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .channels-marquee-track { animation: none; will-change: auto; }
  .reveal-item { opacity: 1; transform: none; transition: none; will-change: auto; }
  .cursor-glow { display: none; }
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 660px);
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
}

.about-section .about-portrait { width: 100%; aspect-ratio: .9; }
.about-section .about-copy { min-width: 0; margin-top: 0; }
.about-section .about-copy h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }

.about-section .about-copy > p:not(.eyebrow) {
  margin-top: 18px;
  line-height: 1.6;
}

.about-section .about-copy .about-closing {
  color: #d7dce7;
}

.about-section .about-copy .button { margin-top: 24px; }

@media (max-width: 860px) {
  .about-section {
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 40px);
  }
}

@media (max-width: 680px) {
  .about-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .about-section .about-portrait { width: min(100%, 300px); aspect-ratio: 1.1; }
  .about-section .about-copy h2 { font-size: clamp(2.25rem, 8vw, 3rem); }
  .about-section .about-copy > p:not(.eyebrow) { margin-top: 16px; }
  .about-section .about-copy .button { margin-top: 22px; }
}

/* Pricing alignment */
#pricing .price span { margin-left: 8px; }
#pricing .delivery { display: flex; align-items: center; gap: 8px; line-height: 1.4; }
#pricing .delivery > span { display: inline-flex; flex: 0 0 1.15rem; align-items: center; justify-content: center; height: 1.15rem; line-height: 1; margin: 0; transform: translateY(-1px); }

#pricing .price .price-currency { display: inline; margin: 0 .07em 0 0; font: inherit; letter-spacing: inherit; color: inherit; }
#pricing .price .price-unit { display: block; }
#pricing .price .price-unit { margin: 6px 0 0 4px; }
.channel-link { transition: color .2s ease; }
.channel-link:hover { color: #fff; }

.channel { flex: 0 0 auto; min-width: 0; }
.channel-icon { width: 64px; height: 64px; flex-basis: 64px; }
.channels-marquee-group { gap: 24px; }
.channel { gap: 10px; }
.channels-marquee-group { gap: 30px; }
.channels-marquee-group { gap: 35px; }
.channels-marquee-group .channel:nth-child(5) { margin-left: 12px; }

/* Loosen the tracking on the large portfolio headings. */
h1, h2 { letter-spacing: -.035em; }
.hero h1 { letter-spacing: -.045em; }
@media (max-width: 520px) {
  .hero h1 { letter-spacing: -.04em; }
}
