.hero.bg-topglow {
  isolation: isolate;
}

.hero__kicker {
  justify-content: center;
  text-align: center;
}

.hero--centred .hero__lead {
  color: var(--p-ink);
}

.hero--centred .btn--secondary {
  border-color: var(--p-ink);
}

.hero__window-ground {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.hero__window .hero__window-ground {
  position: absolute;
}

.telegram-window {
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent);
  border-radius: var(--r-lg);
  background: var(--p-bg);
  color: var(--p-ink);
}

.telegram-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent);
}

.telegram-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--p-ink);
  color: var(--p-bg);
  font-size: 16px;
  font-weight: 600;
}

.telegram-name {
  display: grid;
  gap: var(--s-1);
  min-width: 0;
}

.telegram-name strong,
.telegram-result__title {
  font-size: var(--t-body);
  font-weight: 600;
}

.telegram-name > span,
.telegram-state,
.telegram-result__meta {
  color: var(--p-muted);
  font-size: var(--t-label);
}

.telegram-state {
  margin-left: auto;
  white-space: nowrap;
}

.telegram-chat {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
}

.telegram-result {
  display: grid;
  gap: var(--s-2);
  width: min(100%, 400px);
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.telegram-result__title,
.telegram-result__meta {
  margin: 0;
}

.slide-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  width: min(100%, 340px);
  margin-inline: auto;
}

.slide-card {
  display: flex;
  min-width: 0;
  aspect-ratio: 4 / 5;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: var(--s-2);
  border-radius: var(--r-sm);
  background: var(--p-bg);
  color: var(--p-ink);
}

.slide-card > span {
  font-size: var(--t-label);
  color: var(--p-muted);
}

.slide-card strong {
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.slide-card--two {
  background: var(--p-ink);
  color: var(--p-bg);
}

.slide-card--two > span {
  color: var(--p-bg);
}

.slide-card--three {
  background: var(--p-surface);
}

.format-panel {
  display: grid;
  place-items: center;
  --p-h: 180px;
}

#formats {
  padding-bottom: calc(var(--section) + var(--s-4));
}

.format-poster {
  display: flex;
  height: min(100%, 176px);
  max-width: 100%;
  aspect-ratio: 4 / 5;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-3);
  border-radius: var(--r-sm);
  background: var(--p-bg);
  color: var(--p-ink);
}

.format-poster--tiktok {
  height: min(100%, 188px);
  aspect-ratio: 9 / 16;
}

.format-poster > span {
  color: var(--p-muted);
  font-size: var(--t-label);
}

.format-poster > strong {
  font-size: var(--t-card);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.format-poster > i {
  width: 40%;
  height: 4px;
  border-radius: 99px;
  background: var(--p-accent);
}

.profile-board {
  color: var(--p-ink);
}

.profile-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 44px;
  padding: 0 0 var(--s-4);
}

.profile-board__head strong {
  font-size: var(--t-body);
  font-weight: 600;
}

.profile-board__head span {
  color: var(--p-muted);
  font-size: var(--t-small);
}

.profile-board__formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
  padding: 0;
}

.profile-format {
  min-width: 0;
}

.profile-format + .profile-format {
  padding-left: var(--s-5);
  border-left: 1px solid color-mix(in oklab, var(--p-ink) 12%, transparent);
}

.profile-format h3 {
  margin: 0;
  font-size: var(--t-card);
  font-weight: 600;
}

.profile-format ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

.profile-format__fields {
  display: grid;
  margin: var(--s-3) 0 0;
}

.profile-format__fields > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--s-3);
  min-height: 40px;
  border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent);
}

.profile-format__fields dt {
  color: var(--p-muted);
  font-size: var(--t-small);
}

.profile-format__fields dd {
  margin: 0;
  color: var(--p-ink);
  font-size: var(--t-small);
  text-align: right;
}

.profile-board__note {
  margin: var(--s-5) 0 0;
  color: var(--p-muted);
  font-size: var(--t-small);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-flow li {
  min-width: 0;
}

.process-flow__number {
  display: block;
  margin-bottom: var(--s-4);
  color: var(--p-inv-muted);
  font-family: var(--font-mono);
  font-size: var(--t-small);
}

.process-flow h3 {
  margin: 0;
  color: var(--p-inv-ink);
  font-size: var(--t-h3);
  font-weight: 500;
}

.process-flow p {
  max-width: 34ch;
  margin: var(--s-3) 0 0;
  color: var(--p-inv-ink);
  font-size: var(--t-body);
}

.process-output {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-7) 0 0;
  color: var(--p-inv-ink);
}

.process-output__caption {
  margin: 0;
  color: var(--p-inv-ink);
  font-size: var(--t-body);
  font-weight: 600;
}

.process-output__files {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  width: min(100%, 480px);
}

.process-output__file {
  display: flex;
  min-width: 0;
  aspect-ratio: 4 / 5;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-3);
  border-radius: var(--r-sm);
  background: var(--p-surface);
  color: var(--p-ink);
}

.process-output__file > span {
  color: var(--p-muted);
  font-family: var(--font-mono);
  font-size: var(--t-label);
}

.process-output__file > strong {
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.close__word {
  font-size: clamp(64px, 13.8vw, 200px);
  line-height: 1;
  overflow: visible;
}

@media (min-width: 1024px) {
  #formats .format-panel {
    --p-h: 180px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  #formats .format-panel {
    --p-h: 180px;
  }
}

@media (max-width: 639px) {
  .telegram-head {
    min-height: 48px;
    padding: var(--s-2) var(--s-3);
  }

  .telegram-chat {
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
  }

  .telegram-state {
    display: none;
  }

  .slide-strip {
    width: min(100%, 280px);
  }

  .slide-card {
    padding: var(--s-2);
  }

  .slide-card strong {
    font-size: 13px;
  }

  #formats .format-panel {
    --p-h: 148px;
  }

  .format-poster {
    height: min(100%, 120px);
    padding: var(--s-2);
  }

  .format-poster--tiktok {
    height: min(100%, 128px);
  }

  .format-poster > strong {
    font-size: var(--t-small);
  }

  .profile-board__head {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-1);
    padding: 0 0 var(--s-3);
  }

  .profile-board__formats {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
    padding: 0;
  }

  .profile-format + .profile-format {
    padding: var(--s-4) 0 0;
    border-left: 0;
  }

  .profile-format__fields > div {
    min-height: 36px;
  }

  .process-output {
    margin-top: var(--s-5);
  }

  .process-output__file {
    padding: var(--s-2);
  }

  .close__word {
    font-size: clamp(56px, 17vw, 88px);
  }

  .process-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
  }

  .process-flow li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: var(--s-3);
  }

  .process-flow__number {
    grid-row: 1 / span 2;
    margin: var(--s-1) 0 0;
  }

  .process-flow h3 {
    font-size: var(--t-card);
  }

  .process-flow p {
    margin-top: var(--s-1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
