.contact-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-endcredits {
  --flow-progress: 1;
  --flow-bg: #171614;
  position: relative;
  min-height: 100svh;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  color: #e7e1d4;
  font-family: "Courier New", ui-monospace, monospace;
}

/* One approved 16:9 scene supplies the complete desktop field. Its aspect-ratio
   wrapper covers the viewport while preserving the CRT coordinate system. */
.contact-endcredits::before,
.contact-endcredits::after { content: none; }

.endcredits-frame {
  position: relative;
  z-index: 1;
  width: max(100vw, calc(100svh * 1.776833));
  aspect-ratio: 1672 / 941;
  margin: 0;
  flex: none;
  opacity: calc(.08 + var(--flow-progress) * .92);
  transform: translateY(calc((1 - var(--flow-progress)) * 28px));
  will-change: opacity, transform;
}

.endcredits-mac-visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.endcredits-crt {
  position: absolute;
  left: 24.85%;
  top: 10.65%;
  width: 50.4%;
  height: 63.8%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4.8% 4.8% 7% 7% / 7% 7% 10% 10%;
  isolation: isolate;
  color: #e7e1d4;
  text-shadow: 0 0 .08em rgba(241, 238, 224, .26);
}

.endcredits-crt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .11;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255,255,255,.08) 4px, rgba(0,0,0,.08) 5px);
}

.endcredits-crt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 5.4rem 1.4rem rgba(0, 5, 4, .45);
}

.endcredits-crt-head {
  position: relative;
  z-index: 8;
  flex: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 5.4%;
  padding: clamp(.8rem, 1.6vw, 1.4rem) 0 clamp(.45rem, .8vw, .7rem);
  border: 0;
  border-bottom: 1px solid rgba(226, 222, 202, .25);
  color: #b8b9ae;
  background: transparent;
  font: 400 clamp(.38rem, .58vw, .69rem)/1 "Courier New", ui-monospace, monospace;
  letter-spacing: .15em;
  white-space: nowrap;
}

.endcredits-stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 78%, transparent 100%);
}

.endcredits-track {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.72rem, 1.45vw, 1.55rem);
  padding: .7rem 1.2rem 3.8rem;
  text-align: center;
  will-change: transform;
  transform: translate3d(0, 40rem, 0);
}

.endcredits-track p,
.endcredits-track h3,
.endcredits-track dl { margin: 0; }

.endcredits-kicker {
  color: #a8ada1;
  font: 400 clamp(.4rem, .58vw, .68rem)/1.25 "Courier New", ui-monospace, monospace;
  letter-spacing: .21em;
}

.endcredits-track h3 {
  color: #e7e4d8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.35vw, 5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.047em;
}

.endcredits-rule {
  width: clamp(3rem, 7vw, 6.8rem);
  border-top: 1px solid rgba(194, 198, 185, .52);
}

.endcredits-list {
  width: min(92%, 31rem);
  color: #c5c6ba;
  font: 400 clamp(.4rem, .62vw, .74rem)/1.65 "Courier New", ui-monospace, monospace;
  letter-spacing: .02em;
}

.endcredits-list > div {
  display: grid;
  grid-template-columns: 8.7rem minmax(0, 1fr);
  gap: 1.1rem;
  text-align: left;
}

.endcredits-list dt { color: #9fa79b; }
.endcredits-list dd { margin: 0; }

.endcredits-closing {
  color: #e0ded3;
  font: 400 clamp(1rem, 1.65vw, 1.9rem)/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: .02em;
}

.contact-endcredits .endcredits-crt-foot {
  position: relative;
  z-index: 8;
  flex: none;
  display: block;
  grid-template-columns: none;
  gap: 0;
  margin: 0 5.4%;
  padding: 0 0 clamp(.75rem, 1.4vw, 1.3rem);
  border: 0;
  background: transparent;
  font: inherit;
  letter-spacing: normal;
}

.endcredits-contact-links {
  position: static;
  inset: auto;
  z-index: auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr .82fr;
  align-items: center;
  gap: clamp(.55rem, 1.4vw, 1.3rem);
  padding: clamp(.55rem, 1vw, .92rem) 0;
  background: linear-gradient(90deg,transparent,rgba(20,25,23,.10) 15%,rgba(20,25,23,.10) 85%,transparent);
  border-top: 1px solid rgba(225,221,202,.42);
  border-bottom: 1px solid rgba(225,221,202,.42);
}

.endcredits-contact-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(.12rem, .23vw, .23rem);
  border: 0;
  padding: 0;
  background: none;
  color: #e7e4d8;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.endcredits-contact-item.endcredits-resume { align-items: flex-end; }

.endcredits-contact-label {
  color: #aeb2a7;
  font: 400 clamp(.36rem, .52vw, .61rem)/1.1 "Courier New", ui-monospace, monospace;
  letter-spacing: .13em;
}

.endcredits-contact-value {
  max-width: 100%;
  overflow: hidden;
  color: #ece9dc;
  font: 400 clamp(.45rem, .69vw, .82rem)/1.15 "Courier New", ui-monospace, monospace;
  letter-spacing: .025em;
  text-overflow: ellipsis;
}

.endcredits-contact-item:hover .endcredits-contact-value,
.endcredits-contact-item:focus-visible .endcredits-contact-value {
  color: #fffdf0;
  text-decoration: underline;
  text-underline-offset: .24rem;
}

.endcredits-contact-item:focus-visible { outline: 1px solid currentColor; outline-offset: .32rem; }

.endcredits-crt-base {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  padding-top: clamp(.45rem, .8vw, .75rem);
  color: #aeb2a7;
  font: 400 clamp(.33rem, .49vw, .59rem)/1.2 "Courier New", ui-monospace, monospace;
  letter-spacing: .065em;
  white-space: nowrap;
}

.endcredits-controls {
  position: absolute;
  right: clamp(.7rem, 1.7vw, 1.5rem);
  bottom: clamp(.7rem, 1.7vw, 1.5rem);
  z-index: 20;
  display: flex;
  gap: .4rem;
}

.endcredits-controls button,
.endcredits-controls a {
  border: 1px solid rgba(231,225,212,.4);
  border-radius: 999px;
  padding: .52rem .78rem;
  background: rgba(12,13,12,.68);
  backdrop-filter: blur(10px);
  color: #ded9cd;
  font: 400 .62rem/1 "Courier New", ui-monospace, monospace;
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
}

.endcredits-controls button:hover,
.endcredits-controls button:focus-visible,
.endcredits-controls a:hover,
.endcredits-controls a:focus-visible {
  background: rgba(231,225,212,.92);
  color: #181816;
  outline: none;
}

@media (max-width: 820px) {
  .contact-endcredits {
    min-height: auto;
    padding: 44px 0 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-x: clip;
  }

  .endcredits-frame {
    width: min(100%, 768px);
    margin: 0 0 clamp(8.5rem, 35vw, 10.5rem);
  }

  .endcredits-crt {
    overflow: visible;
  }

  .endcredits-crt-head {
    padding-top: clamp(.34rem, 1.5vw, .72rem);
    font-size: clamp(.29rem, 1.05vw, .52rem);
  }

  .endcredits-crt-head span:last-child { display: none; }

  .endcredits-stage {
    overflow: hidden;
    border-radius: 0 0 7% 7% / 0 0 10% 10%;
  }

  .endcredits-track {
    gap: clamp(.42rem, 1.8vw, .85rem);
    padding: .4rem .72rem 2.4rem;
  }

  .endcredits-track h3 { font-size: clamp(1.08rem, 6.8vw, 3.25rem); }
  .endcredits-kicker { font-size: clamp(.29rem, 1.05vw, .54rem); }
  .endcredits-rule { width: clamp(2.4rem, 12vw, 5.4rem); }
  .endcredits-list { width: 94%; font-size: clamp(.28rem, 1.02vw, .52rem); }
  .endcredits-list > div { grid-template-columns: minmax(3.9rem, 42%) minmax(0, 1fr); gap: .48rem; }
  .endcredits-closing { font-size: clamp(.66rem, 3.8vw, 1.55rem); }

  .contact-endcredits .endcredits-crt-foot {
    position: absolute;
    top: calc(100% + 13vw);
    left: -49.3056%;
    width: 198.4127%;
    margin: 0;
    padding: 0 clamp(1rem, 5vw, 2rem);
    background: rgba(8,8,7,.36);
    -webkit-backdrop-filter: blur(14px) saturate(.72);
    backdrop-filter: blur(14px) saturate(.72);
  }

  .endcredits-contact-links {
    grid-template-columns: 1fr;
    gap: 0;
    padding: .2rem 0;
  }

  .endcredits-contact-item,
  .endcredits-contact-item.endcredits-email,
  .endcredits-contact-item.endcredits-resume {
    grid-column: auto;
    align-items: flex-start;
    width: 100%;
    gap: .2rem;
    padding: .62rem 0;
    white-space: normal;
  }

  .endcredits-contact-item + .endcredits-contact-item {
    border-top: 1px solid rgba(225,221,202,.2);
  }

  .endcredits-contact-label { font-size: .55rem; }
  .endcredits-contact-value {
    overflow: visible;
    font-size: clamp(.68rem, 3.2vw, .86rem);
    line-height: 1.25;
    text-overflow: clip;
  }

  .endcredits-crt-base {
    justify-content: center;
    flex-wrap: wrap;
    gap: .22rem .8rem;
    padding: .6rem 0 0;
    font-size: clamp(.42rem, 1.8vw, .56rem);
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .endcredits-controls {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    justify-content: center;
    gap: .35rem;
    margin-top: .35rem;
    padding: 0 1rem;
  }

  .endcredits-controls button,
  .endcredits-controls a {
    min-width: 0;
    padding: .5rem .68rem;
    font-size: .56rem;
    letter-spacing: .07em;
  }

  .contact-endcredits .endcredits-crt-foot,
  .endcredits-controls button,
  .endcredits-controls a { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-endcredits { --flow-bg: #171614 !important; --flow-progress: 1 !important; background: #171614; }
  .endcredits-frame { opacity: 1; transform: none; }
  .endcredits-track { will-change: auto; }
}
