/* Финальная широкая композиция спецноминации.
   Загружается после student-startup.css и заменяет её визуальную часть,
   сохраняя правила спецпункта навигации из исходного файла. */

.startup {
  --frame-open: clamp(250px, 27vw, 450px);
  --frame-crop: 0%;
  --track-film-brightness: 1;
  --track-film-contrast: 0.83;
  --track-film-grain-opacity: 0.5;

  position: relative;
  isolation: isolate;
  overflow: clip;
  border-top: 1px solid var(--film-line);
  border-bottom: 1px solid var(--film-line);
}

.startup__scene {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.startup__frame {
  position: absolute;
  inset: 0;
  z-index: -4;
}

.startup__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: brightness(var(--track-film-brightness, 1)) contrast(var(--track-film-contrast, 1));
}

.startup__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 1;
  background:
    linear-gradient(
      202deg,
      rgba(255, 255, 255, 0) 25%,
      rgba(255, 255, 255, 0.035) 35%,
      rgba(255, 255, 255, 0.16) 46%,
      rgba(255, 255, 255, 0.065) 55%,
      rgba(255, 255, 255, 0) 64%
    ),
    radial-gradient(ellipse 52% 42% at 88% 88%, rgba(255, 255, 255, 0.08), transparent 72%),
    linear-gradient(
      202deg,
      rgba(10, 12, 16, 0) 0%,
      rgba(10, 12, 16, 0) 40%,
      rgba(10, 12, 16, 0.16) 52%,
      rgba(10, 12, 16, 0.55) 69%,
      rgba(10, 12, 16, 0.82) 86%,
      rgba(10, 12, 16, 0.9) 100%
    );
}

.startup__grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: var(--track-film-grain-opacity, 0.5);
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.startup__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 48ch);
  grid-template-rows: 1fr 32px auto auto;
  column-gap: clamp(48px, 6vw, 96px);
  align-items: end;
  width: calc(100% - 2 * clamp(10px, 1.4vw, 20px));
  min-height: calc(var(--frame-open) + clamp(370px, 29.3vw, 412px));
  margin: 0 auto;
  padding: var(--frame-open) 0 clamp(24px, 2.2vw, 36px);
}

.startup__eyebrow,
.startup__title,
.startup__lead {
  text-shadow: var(--track-title-edge);
}

.startup__eyebrow {
  position: absolute;
  z-index: 3;
  top: clamp(12px, 1.4vw, 20px);
  left: clamp(10px, 1.4vw, 20px);
  display: inline-flex;
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: center;
  justify-self: start;
  gap: 10px;
  max-width: calc(100% - 2 * clamp(10px, 1.4vw, 20px));
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font: 800 var(--text-xs) / 1.2 var(--font-ui);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.startup__eyebrow-accent {
  color: var(--color-gold-text);
}

.startup__partner-link {
  display: inline-grid;
  place-items: center;
  margin: -3px -6px;
  padding: 3px 6px;
  border-radius: 5px;
  transition: background-color 180ms ease;
}

.startup__partner-link img {
  grid-area: 1 / 1;
  width: auto;
  height: 15px;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.startup__partner--mono {
  opacity: 0.72;
}

.startup__partner--color {
  opacity: 0;
}

.startup__partner-link:hover,
.startup__partner-link:focus-visible {
  background: rgba(243, 240, 234, 0.94);
}

.startup__partner-link:hover .startup__partner--mono,
.startup__partner-link:focus-visible .startup__partner--mono {
  opacity: 0;
}

.startup__partner-link:hover .startup__partner--color,
.startup__partner-link:focus-visible .startup__partner--color {
  opacity: 1;
}

.startup__partner-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.startup__title {
  grid-column: 1;
  grid-row: 3;
  max-width: 21ch;
  margin: clamp(12px, 1.2vw, 16px) 0 0;
  font: 700 clamp(3rem, 5vw, 5.4rem) / 0.95 var(--font-display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.startup__lead {
  grid-column: 1 / -1;
  grid-row: 4;
  width: 100%;
  max-width: none;
  margin: clamp(14px, 1.6vw, 22px) 0 0;
  color: rgba(243, 240, 234, 0.88);
  font: 400 var(--text-lg) / 1.6 var(--font-body);
}

/* Ссылки на положение и согласие: под лидом, тем же ритмом, что подпись
   ячеек. Появились 27.08 вместе с открытием приёма заявок. */
.startup__docs {
  grid-column: 1 / -1;
  grid-row: 5;
  margin: clamp(10px, 1.2vw, 16px) 0 0;
  font: 400 var(--text-sm) / 1.5 var(--font-body);
  color: var(--muted-soft);
}
.startup__docs a {
  color: rgba(243, 240, 234, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 195, 106, 0.45);
  transition: border-color 160ms ease, color 160ms ease;
}
.startup__docs a:hover { color: #e8c36a; border-bottom-color: #e8c36a; }
.startup__docs span { margin: 0 10px; }

.startup__bar {
  position: relative;
  border-top: 1px solid var(--line-strong);
  border-bottom: 0;
  background: rgba(10, 12, 16, 0.86);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.startup__cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(320px, 1.3fr);
  width: calc(100% - 2 * clamp(10px, 1.4vw, 20px));
  margin: 0 auto;
}

.startup__terms {
  display: contents;
  margin: 0;
}

.startup__cell {
  padding: clamp(18px, 2vw, 28px) clamp(14px, 1.7vw, 26px);
  border-left: 1px solid var(--line-soft);
}

.startup__cell:first-child {
  padding-left: 0;
  border-left: 0;
}

.startup__cell dt,
.startup__live-label {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  font: 800 var(--text-xs) / 1.2 var(--font-ui);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.startup__cell dd,
.startup__live-title {
  margin: 0;
  font: 700 clamp(22px, 1.9vw, 31px) / 1.05 var(--font-display);
  letter-spacing: -0.02em;
}

.startup__cell dd span,
.startup__live-status {
  display: block;
  margin-top: 7px;
  color: var(--muted-soft);
  font: 400 var(--text-sm) / 1.5 var(--font-body);
  letter-spacing: 0;
}

.startup__live {
  padding: clamp(18px, 2vw, 28px) 0 clamp(18px, 2vw, 28px) clamp(20px, 2.2vw, 32px);
  border-left: 1px solid var(--line-soft);
  background: transparent;
}

.startup__live-card {
  display: grid;
  align-content: start;
  color: inherit;
  text-decoration: none;
}

.startup__live-title {
  width: fit-content;
  color: var(--color-gold-text);
  transition: color 160ms ease;
}

.startup__live-title--desktop {
  display: flex;
  align-items: center;
  gap: 10px;
}

.startup__live-title--mobile {
  display: none;
}

.startup__live-label--mobile {
  display: none;
}

.startup__live-title-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.startup__live-card:hover .startup__live-title-icon,
.startup__live-card:focus-visible .startup__live-title-icon {
  transform: translate(2px, -2px);
}

.startup__live-card:hover .startup__live-title,
.startup__live-card:focus-visible .startup__live-title {
  color: var(--gold);
}

.startup__live-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

/* Одноразовый вход секции: сначала проявляется кадр, затем информация и
   измеримые условия номинации. Начальные состояния включаются только после
   инициализации наблюдателя — без JavaScript контент остаётся видимым. */
@media (prefers-reduced-motion: no-preference) {
  .startup.startup--reveal-ready .startup__frame img {
    opacity: 0;
    transform: scale(1.055);
    transform-origin: 50% 55%;
  }

  .startup.startup--reveal-ready .startup__veil {
    opacity: 0;
  }

  .startup.startup--reveal-ready .startup__eyebrow,
  .startup.startup--reveal-ready .startup__title,
  .startup.startup--reveal-ready .startup__lead,
  .startup.startup--reveal-ready .startup__docs,
  .startup.startup--reveal-ready .startup__cell,
  .startup.startup--reveal-ready .startup__live {
    opacity: 0;
    transform: translateY(22px);
  }

  .startup.startup--reveal-armed .startup__frame img {
    transition:
      opacity 760ms ease-out,
      transform 1100ms cubic-bezier(0.2, 0.72, 0.18, 1);
  }

  .startup.startup--reveal-armed .startup__veil {
    transition: opacity 900ms ease-out 80ms;
  }

  .startup.startup--reveal-armed .startup__eyebrow,
  .startup.startup--reveal-armed .startup__title,
  .startup.startup--reveal-armed .startup__lead,
  .startup.startup--reveal-armed .startup__docs,
  .startup.startup--reveal-armed .startup__cell,
  .startup.startup--reveal-armed .startup__live {
    transition:
      opacity 520ms ease-out,
      transform 700ms cubic-bezier(0.2, 0.72, 0.18, 1);
  }

  .startup.startup--reveal-ready .startup__eyebrow {
    transform: translateY(-12px) scale(0.98);
  }

  .startup.startup--reveal-ready .startup__title {
    transform: translateY(42px);
  }

  .startup.startup--reveal-ready .startup__lead {
    transform: translateY(30px);
  }

  .startup.startup--reveal-ready.is-scene-revealed .startup__frame img,
  .startup.startup--reveal-ready.is-scene-revealed .startup__eyebrow,
  .startup.startup--reveal-ready.is-copy-revealed .startup__title,
  .startup.startup--reveal-ready.is-copy-revealed .startup__lead,
  .startup.startup--reveal-ready.is-copy-revealed .startup__docs,
  .startup.startup--reveal-ready.is-bar-revealed .startup__cell,
  .startup.startup--reveal-ready.is-bar-revealed .startup__live {
    opacity: 1;
    transform: none;
  }

  .startup.startup--reveal-ready.is-scene-revealed .startup__veil {
    opacity: 1;
  }

  .startup.startup--reveal-armed .startup__eyebrow {
    transition-delay: 120ms;
  }

  .startup.startup--reveal-armed .startup__title {
    transition-delay: 80ms;
  }

  .startup.startup--reveal-armed .startup__lead {
    transition-delay: 220ms;
  }

  .startup.startup--reveal-armed .startup__cell:nth-child(1) {
    transition-delay: 0ms;
  }

  .startup.startup--reveal-armed .startup__cell:nth-child(2) {
    transition-delay: 90ms;
  }

  .startup.startup--reveal-armed .startup__cell:nth-child(3) {
    transition-delay: 180ms;
  }

  .startup.startup--reveal-armed .startup__cell:nth-child(4) {
    transition-delay: 270ms;
  }

  .startup.startup--reveal-armed .startup__live {
    transition-delay: 380ms;
  }
}

@media (max-width: 1080px) {
  .startup__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .startup__eyebrow,
  .startup__title,
  .startup__lead {
    grid-column: 1;
    grid-row: auto;
  }

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

  .startup__cell:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .startup__cell:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .startup__live {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    padding-left: 0;
    border-top: 1px solid var(--gold-border);
    border-left: 0;
  }

  .startup__live-card {
    justify-items: center;
    align-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
  }

  .startup__live-label--desktop,
  .startup__live-title--desktop,
  .startup__live-status {
    display: none;
  }

  .startup__live-label--mobile {
    display: block;
    margin: 0;
    font-size: clamp(10px, 0.95vw, 12px);
    letter-spacing: 0.1em;
  }

  .startup__live-title--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(22px, 2.4vw, 28px);
    white-space: nowrap;
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .startup.startup--reveal-ready .startup__frame img {
    transform: scale(1.035);
  }

  .startup.startup--reveal-ready .startup__title,
  .startup.startup--reveal-ready .startup__lead,
  .startup.startup--reveal-ready .startup__docs,
  .startup.startup--reveal-ready .startup__cell,
  .startup.startup--reveal-ready .startup__live {
    transform: translateY(20px);
  }
}

@media (max-width: 640px) {
  .startup {
    --frame-open: clamp(210px, 62vw, 300px);
  }

  .startup__body {
    width: calc(100% - 24px);
    min-height: auto;
    padding-bottom: 24px;
  }

  .startup__eyebrow {
    gap: 8px;
    padding-inline: 10px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .startup__partner-link img {
    height: 13px;
  }

  .startup__title {
    max-width: none;
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .startup__lead {
    font-size: var(--text-md);
  }

  .startup__cells {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 24px);
  }

  .startup__cell {
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .startup__cell:first-child {
    border-top: 0;
  }

  .startup__live {
    padding-left: 0;
    border-left: 0;
  }
}
