/* ==========================================================================
   SVACS 2027 — ASCII hero
   Full-bleed, full-height hero. Big type on the left, a big morphing ASCII
   machine on the right, and a floating summit-record card at the bottom
   right. This file owns only the layout, the scrim and the record card.
   Every control inside the hero reuses the site's existing classes
   (.cyber-pill, .trust-row, .headline, .cta-btn, .countdown-strip ...),
   so the hero stays part of the same design system.
   ========================================================================== */

.hero-ascii {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 65px);
  padding: clamp(18px, 3vh, 40px) clamp(20px, 3.2vw, 56px)
    clamp(56px, 7vh, 92px);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  isolation: isolate;
  overflow: hidden;
}

/* ---------- canvas + scrim ---------- */
.hero-ascii__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.hero-ascii__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(
      90deg,
      rgba(10, 14, 12, 0.98) 0%,
      rgba(10, 14, 12, 0.96) 34%,
      rgba(10, 14, 12, 0.82) 42%,
      rgba(10, 14, 12, 0.4) 50%,
      rgba(10, 14, 12, 0.1) 56%,
      rgba(10, 14, 12, 0) 62%
    ),
    linear-gradient(
      180deg,
      rgba(10, 14, 12, 0.55) 0%,
      rgba(10, 14, 12, 0) 14%,
      rgba(10, 14, 12, 0) 66%,
      rgba(10, 14, 12, 0.62) 86%,
      rgba(10, 14, 12, 0.9) 100%
    );
}

/* soft jade halo behind the machine, so the right side reads as lit */
.hero-ascii__glow {
  position: absolute;
  z-index: 0;
  top: 4%;
  right: 0;
  width: min(58vw, 820px);
  height: min(68vh, 660px);
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(95, 211, 154, 0.2) 0%,
    rgba(95, 211, 154, 0.08) 52%,
    rgba(95, 211, 154, 0) 76%
  );
  filter: blur(10px);
}

/* ---------- layout ---------- */
.hero-ascii__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
}

.hero-ascii .hero-copy {
  min-width: 0;
}

/* ---------- type ---------- */
.hero-ascii .headline {
  margin: 0 0 clamp(14px, 2vh, 22px);
  max-width: 13ch;
  font-size: clamp(46px, 6.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--text, #f3f1e7);
  text-align: left;
}

.hero-ascii .headline .headline-line {
  display: block;
}

.hero-ascii .subhead {
  max-width: 46ch;
  margin: 0 0 clamp(18px, 2.4vh, 26px);
  font-size: clamp(14.5px, 1.1vw, 17px);
  line-height: 1.62;
  color: #c6cec8;
  opacity: 1;
  text-align: left;
}

.hero-ascii .subhead strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text, #f3f1e7);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.hero-ascii .hero-facts-line {
  justify-content: flex-start;
  margin-bottom: clamp(18px, 2.4vh, 24px);
  color: #a7b1aa;
}

.hero-ascii .hero-facts-line i {
  color: var(--accent-jade, #5fd39a);
}

/* ---------- actions ---------- */
.hero-ascii .cta-group {
  justify-content: flex-start;
  margin-bottom: clamp(14px, 2vh, 20px);
}

.hero-ascii .cta-btn {
  box-shadow:
    0 0 0 1px rgba(185, 242, 39, 0.32),
    0 10px 30px rgba(185, 242, 39, 0.2);
}

.hero-ascii .cta-btn i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-ascii .cta-btn:hover i {
  transform: translateY(-2px);
}

.hero-ascii .cta-secondary {
  background: rgba(18, 26, 22, 0.72);
  border-color: rgba(95, 211, 154, 0.32);
  color: var(--text, #f3f1e7);
}

.hero-ascii .cta-secondary:hover {
  background: rgba(24, 36, 30, 0.92);
  border-color: rgba(95, 211, 154, 0.62);
}

.hero-ascii .cta-text-link {
  border-bottom-color: rgba(95, 211, 154, 0.34);
  color: #b9c4bd;
}

.hero-ascii .cta-text-link:hover {
  color: var(--text, #f3f1e7);
  border-bottom-color: rgba(95, 211, 154, 0.8);
}

.hero-ascii .hero-secondary-links {
  justify-content: flex-start;
  margin-top: 4px;
}

/* ---------- right stage ---------- */
.hero-ascii__stage {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: clamp(12px, 1.6vh, 18px);
  min-width: 0;
  padding-bottom: 4px;
}

/* ---------- assistant thought ---------- */
.hero-thought {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(95, 211, 154, 0.14);
  border-radius: 10px;
  background: rgba(9, 14, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New",
    monospace;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: rgba(159, 232, 196, 0.92);
}

.hero-thought__line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.hero-thought__caret {
  color: var(--accent-jade, #5fd39a);
  font-weight: 700;
  animation: heroThoughtBlink 1.4s steps(1, end) infinite;
}

@keyframes heroThoughtBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.25;
  }
}

.hero-thought__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.22s ease;
}

.hero-thought__chips {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hero-thought.is-answered .hero-thought__chips {
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
}

.hero-thought__chip {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(95, 211, 154, 0.34);
  border-radius: 8px;
  background: rgba(95, 211, 154, 0.06);
  color: #bff3d8;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.hero-thought__chip:hover,
.hero-thought__chip:focus-visible {
  background: rgba(95, 211, 154, 0.2);
  border-color: rgba(95, 211, 154, 0.75);
  color: #eafff4;
  transform: translateY(-1px);
  outline: none;
}

.hero-thought__chip:active {
  transform: translateY(0);
}

/* ==========================================================================
   Summit record — event card
   Date block on the left, title and meta in the middle, countdown and a
   register action on the foot. Rebuilt from the 21st.dev Event Card idea
   (@ravikatiyar162/components/card-14) in plain HTML/CSS.
   ========================================================================== */
.hero-event {
  position: relative;
  width: 100%;
  max-width: 560px;
  display: flex;
  gap: 16px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(95, 211, 154, 0.2);
  background: linear-gradient(
    180deg,
    rgba(14, 21, 18, 0.88) 0%,
    rgba(9, 13, 11, 0.96) 100%
  );
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(243, 241, 231, 0.08);
  overflow: hidden;
}

.hero-event::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent-jade, #5fd39a),
    rgba(95, 211, 154, 0.08)
  );
}

.hero-event__date {
  flex-shrink: 0;
  width: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px 0;
  border-radius: 12px;
  border: 1px solid rgba(95, 211, 154, 0.16);
  background: rgba(95, 211, 154, 0.05);
}

.hero-event__month {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-jade, #5fd39a);
}

.hero-event__day {
  font-size: 34px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #f3f1e7;
  font-variant-numeric: tabular-nums;
}

.hero-event__year {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #8f9c94;
  font-variant-numeric: tabular-nums;
}

.hero-event__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-event__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-jade, #5fd39a);
}

.hero-event__eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-jade, #5fd39a);
  box-shadow: 0 0 8px var(--accent-jade, #5fd39a);
}

.hero-event__title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: #f3f1e7;
}

.hero-event__meta {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #9aa79f;
}

.hero-event__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(243, 241, 231, 0.09);
}

.hero-event__cd {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-event__cd-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #8f9c94;
  white-space: nowrap;
}

.hero-event__cd-nums {
  display: flex;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.hero-event__cd-nums span {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.hero-event__cd-nums b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3f1e7;
}

.hero-event__cd-nums i {
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  color: #7f8c84;
}

.hero-event__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(95, 211, 154, 0.34);
  background: rgba(95, 211, 154, 0.08);
  color: #d9f7e7;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.hero-event__action i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.hero-event__action:hover {
  background: rgba(95, 211, 154, 0.18);
  border-color: rgba(95, 211, 154, 0.7);
  transform: translateY(-1px);
}

.hero-event__action:hover i {
  transform: translateX(2px);
}

/* ---------- scroll cue ---------- */
.hero-ascii .scroll-cue {
  z-index: 3;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .hero-ascii {
    min-height: auto;
    padding-top: clamp(32px, 5vh, 56px);
    padding-bottom: clamp(64px, 9vh, 100px);
  }

  .hero-ascii__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 4.5vh, 40px);
  }

  .hero-ascii .hero-copy {
    align-items: center;
  }

  .hero-ascii .headline,
  .hero-ascii .subhead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ascii .headline {
    max-width: 16ch;
    font-size: clamp(42px, 8.4vw, 72px);
  }

  .hero-ascii .hero-facts-line,
  .hero-ascii .cta-group,
  .hero-ascii .hero-secondary-links {
    justify-content: center;
  }

  .hero-ascii__stage {
    align-self: auto;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
  }

  .hero-thought {
    width: 100%;
    max-width: 460px;
  }

  .hero-event {
    max-width: 460px;
  }

  .hero-ascii__glow {
    opacity: 0.55;
  }

  /* the field moves behind the copy, so it is ghosted and the scrim turns
     vertical — the text stays the subject, the machine stays a texture */
  .hero-ascii__canvas {
    opacity: 0.34;
  }

  .hero-ascii__scrim {
    background-image:
      radial-gradient(
        130% 70% at 50% 26%,
        rgba(10, 14, 12, 0.9) 0%,
        rgba(10, 14, 12, 0.78) 44%,
        rgba(10, 14, 12, 0.4) 72%,
        rgba(10, 14, 12, 0.06) 100%
      ),
      linear-gradient(
        180deg,
        rgba(10, 14, 12, 0.6) 0%,
        rgba(10, 14, 12, 0) 20%,
        rgba(10, 14, 12, 0) 70%,
        rgba(10, 14, 12, 0.94) 100%
      );
  }
}

@media (max-width: 640px) {
  .hero-ascii {
    padding-left: clamp(16px, 5vw, 24px);
    padding-right: clamp(16px, 5vw, 24px);
    /* the scroll cue is hidden at this width, so the 64-100px bottom
       padding from the 1023px rule is pure dead space above the next section */
    padding-bottom: clamp(24px, 4vh, 40px);
  }

  .hero-ascii .headline {
    font-size: clamp(36px, 11vw, 50px);
    letter-spacing: -0.038em;
  }

  .hero-ascii .subhead {
    font-size: 14.5px;
    line-height: 1.58;
  }

  .hero-ascii .cta-group {
    width: 100%;
    gap: 10px;
  }

  .hero-ascii .cta-btn,
  .hero-ascii .cta-secondary {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-ascii .cta-text-link {
    flex: 1 1 100%;
    justify-content: center;
    border-bottom: none;
  }

  .hero-ascii .cta-text-link span {
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(95, 211, 154, 0.34);
  }

  .hero-thought {
    max-width: 100%;
    font-size: 12px;
  }

  .hero-event {
    max-width: 100%;
    padding: 14px 14px 12px;
    gap: 12px;
  }

  .hero-event__date {
    width: 58px;
  }

  .hero-event__day {
    font-size: 30px;
  }

  .hero-event__title {
    font-size: 15px;
  }

  .hero-event__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-event__action {
    width: 100%;
    justify-content: center;
  }

  .hero-ascii .scroll-cue {
    display: none;
  }
}

@media (max-height: 720px) and (min-width: 1024px) {
  .hero-ascii {
    min-height: calc(100svh - 65px);
    padding-top: 20px;
    padding-bottom: 64px;
  }

  .hero-ascii .headline {
    font-size: clamp(40px, 5.2vw, 72px);
  }

  .hero-event {
    max-width: 520px;
    padding: 13px 15px 11px;
  }

  .hero-event__day {
    font-size: 30px;
  }

  .hero-event__meta {
    display: none;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-ascii .headline,
  .hero-ascii .subhead {
    color: var(--text, #f3f1e7) !important;
  }
}
