#projects{padding-top:28px}
@media(max-width:560px){#projects{padding-top:24px}}

.recommended-telegram-actions{display:flex;flex-direction:column;width:max-content;max-width:100%;margin:18px auto 0}
.recommended-telegram-actions .recommended-main-telegram{width:100%;margin:0;justify-content:center;text-align:center}

.video-greeting-content,
.tyler-task-content,
.clips-content {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-block: clamp(22px, 5vw, 40px);
  --section-rule: linear-gradient(90deg, transparent, #e45b9262, transparent);
  background: var(--section-rule) top / 100% 1px no-repeat;
}

.video-greeting-content {
  background: var(--section-rule) top / 100% 1px no-repeat,
              var(--section-rule) bottom / 100% 1px no-repeat;
}

.clips-content {
  background: var(--section-rule) bottom / 100% 1px no-repeat;
}

.stacked-project {
  display: block;
  width: min(100%, 780px);
  min-height: 0;
}

.stacked-project .stacked-project-photo {
  min-height: 0;
  background: #0c0c0d;
}

.stacked-project .stacked-project-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.stacked-project .project-copy {
  align-items: center;
}

.stacked-project h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 7vmin, 50px);
  text-wrap: balance;
}

.stacked-project .project-copy .soap-button {
  min-width: 0;
  margin-top: 0;
}

.tyler-notification {
  --notification-slide: calc(-100% - 16px);
  position: fixed;
  z-index: 40;
  inset: max(8px, env(safe-area-inset-top)) auto auto 50%;
  width: min(540px, calc(100% - 16px));
  translate: -50% var(--notification-drag, 0px);
  pointer-events: none;
  animation: tyler-notification-visit 5.6s ease both;
}

.tyler-notification.is-dismissed {
  animation: tyler-notification-dismiss .18s ease-in both;
}

.tyler-notification a {
  display: block;
  pointer-events: auto;
  touch-action: pan-x;
  user-select: none;
  clip-path: polygon(
    8.21% 2.64%, 7.39% 3.03%, 6.47% 3.91%, 5.64% 5.27%, 4.87% 7.23%, 4.17% 9.77%,
    3.49% 13.18%, 2.93% 17.58%, 2.57% 23.93%, 2.45% 32.23%, 2.42% 43.95%, 2.42% 56.64%,
    2.45% 68.36%, 2.71% 78.12%, 3.49% 85.45%, 4.41% 89.84%, 5.43% 92.87%, 6.47% 94.73%,
    8.02% 95.90%, 8.91% 96.19%, 91.21% 96.19%, 92.18% 95.90%, 93.63% 94.73%, 94.69% 92.87%,
    95.71% 89.84%, 96.61% 85.45%, 97.38% 78.12%, 97.65% 68.36%, 97.67% 56.64%, 97.67% 43.95%,
    97.63% 32.23%, 97.50% 23.93%, 97.14% 17.58%, 96.61% 13.18%, 95.93% 9.77%, 95.20% 7.23%,
    94.45% 5.27%, 93.63% 3.91%, 92.68% 3.03%, 91.81% 2.64%
  );
}

.tyler-notification a:focus-visible { filter: brightness(1.18); }
.tyler-notification.is-dismissed a { pointer-events: none; }

.tyler-notification img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes tyler-notification-visit {
  0%, 100% { opacity: 0; transform: translateY(var(--notification-slide)); }
  5.36%, 94.64% { opacity: 1; transform: translateY(0); }
}

@keyframes tyler-notification-dismiss {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(var(--notification-slide)); }
}

@media (prefers-reduced-motion: reduce) {
  .tyler-notification { --notification-slide: 0; }
}

#tyler-task {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.tyler-reels {
  --slot-cell: clamp(28px, 8dvh, 70px);
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(2px, 1vmin, 7px);
  opacity: .54;
  pointer-events: none;
}

#site-menu .tyler-reels {
  --slot-cell: clamp(28px, 15dvh, 118px);
}

#tyler-task .tyler-reels {
  --slot-cell: clamp(36px, 7dvh, 58px);
  z-index: -1;
  mask-image: linear-gradient(to bottom, transparent, #000 12% 86%, transparent);
}

.tyler-reel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #110d14, #2a242e 45%, #120f16);
  border-inline: 1px solid #c68daa33;
}

.tyler-reel-track {
  position: absolute;
  inset: calc(-4 * var(--slot-cell)) 0 auto;
  animation: tyler-reel-scroll var(--reel-speed) linear var(--reel-offset) infinite;
}

.tyler-reel-track > span {
  display: grid;
  place-items: center;
  height: var(--slot-cell);
  color: #e9aec9;
  font-family: var(--display);
  font-size: clamp(12px, 3.8vmin, 32px);
  border-bottom: 1px solid #e6a3c321;
}

#tyler-task h2,
.menu-shard-tyler > span:first-child {
  text-shadow: 0 1px 3px #050407, 0 0 12px #050407;
}

@keyframes tyler-reel-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(50%); }
}

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

.tyler-task-content h2 {
  margin: 0 0 4px;
}

.video-greeting-order,
.tyler-task-link,
.clips-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--primary-cta-width, 320px));
  min-height: 50px;
}

body .soap-button {
  --soap-fill: linear-gradient(165deg, #ffaac7 2%, #f17aa8 52%, #d74480);
  --soap-fill-hover: linear-gradient(165deg, #ffbfd4 2%, #f58ab2 52%, #e6528b);
  background: var(--soap-fill);
  border: 1px solid #fb9fc4;
  border-radius: 24px 21px 23px 20px / 20px 22px 21px 23px;
  color: #000;
  text-shadow: 0 1px 0 #ffbad68c;
  box-shadow: inset 0 2px 3px #ffd5e6, inset 0 -5px 0 #ac2d635c,
              inset 0 0 0 5px #ffc0d547, 0 4px 0 #7c244a, 0 7px 16px #6b123f66;
}

body .soap-button:hover {
  background: var(--soap-fill-hover);
}

.soap-button:focus-visible {
  outline: 2px solid #e45b92;
  outline-offset: 4px;
}

#video-greeting-dialog,
#clips-dialog {
  width: min(460px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 42px clamp(16px, 5vw, 30px) 24px;
  border: 1px solid #e45b9256;
  border-radius: 18px;
  background: #141414;
}

#clips-dialog {
  width: min(540px, calc(100% - 28px));
}

#clips-dialog .clips-intro {
  margin: 0 auto 20px;
  color: #f2e8ed;
  font-size: clamp(16px, 3.9vw, 19px) !important;
  line-height: 1.55;
}

#clips-dialog h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 5vw, 30px);
  text-wrap: balance;
}

#video-greeting-dialog h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 6vw, 32px);
}

#video-greeting-dialog .video-greeting-price {
  margin: 0 0 8px;
  font-size: clamp(18px, 5vw, 24px) !important;
  line-height: 1.35;
}

.video-greeting-price strong {
  color: var(--accent-text);
  white-space: nowrap;
}

#video-greeting-dialog .video-greeting-note {
  margin: 0 auto 18px;
  color: #bdbdc3;
  font-size: 16px !important;
  line-height: 1.45;
}

.contact-actions {
  display: grid;
  justify-items: center;
}

.telegram-handle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #a4a4aa;
  font-size: 15px;
  line-height: 1.35;
}

.telegram-handle svg {
  flex: none;
}
