.ref-v4 .reveal {
  opacity: 1;
  transform: none;
}

.ref-v4 .hero-astronaut-poster,
.ref-v4 .hero-astronaut-video {
  transition: opacity 360ms ease-out;
}

.ref-v4 .hero-astronaut-poster {
  opacity: 1;
}

.ref-v4 .hero-astronaut-video {
  opacity: 0;
}

.ref-v4 .hero-video-loading .hero-astronaut-poster,
.ref-v4 .hero-video-loading .hero-astronaut-video {
  will-change: opacity;
}

.ref-v4 .hero-video-ready .hero-astronaut-poster {
  opacity: 0;
}

.ref-v4 .hero-video-ready .hero-astronaut-video,
.no-js .ref-v4 .hero-astronaut-video {
  opacity: 1;
}

.no-js .ref-v4 .hero-astronaut-poster {
  opacity: 0;
}

.ref-v4 .hero-spacecraft {
  position: absolute;
  z-index: 2;
  top: 56%;
  left: -14%;
  width: 84px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(207, 255, 25, 0.28));
  animation: ref-v4-spacecraft-flyby 13s cubic-bezier(0.42, 0.08, 0.58, 0.96) -3s infinite;
  will-change: transform, opacity;
}

.ref-v4 .hero-spacecraft svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: visible;
}

.ref-v4 .hero-spacecraft-trail {
  position: absolute;
  top: 50%;
  right: calc(100% - 18px);
  width: 170px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 255, 25, 0.12) 24%, rgba(207, 255, 25, 0.78));
  box-shadow: 0 0 8px rgba(207, 255, 25, 0.34);
  transform: translateY(-50%);
}

.ref-v4 .hero-spacecraft-body {
  fill: rgba(11, 13, 11, 0.9);
  stroke: rgba(240, 234, 223, 0.92);
  stroke-width: 1.4;
}

.ref-v4 .hero-spacecraft-wing {
  fill: none;
  stroke: rgba(240, 234, 223, 0.82);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.ref-v4 .hero-spacecraft-window,
.ref-v4 .hero-spacecraft-flame {
  fill: var(--acid);
}

@keyframes ref-v4-spacecraft-flyby {
  0%,
  22% {
    opacity: 0;
    transform: translate3d(-18vw, 8vh, 0) rotate(-16deg) scale(0.76);
  }

  28% {
    opacity: 0.86;
  }

  47% {
    opacity: 0.92;
  }

  51% {
    opacity: 0.12;
  }

  53%,
  62% {
    opacity: 0;
  }

  66% {
    opacity: 0;
    transform: translate3d(78vw, -44vh, 0) rotate(-16deg) scale(0.96);
  }

  70% {
    opacity: 0.9;
    transform: translate3d(86vw, -46vh, 0) rotate(-16deg) scale(0.98);
  }

  75% {
    opacity: 0.86;
    transform: translate3d(102vw, -50vh, 0) rotate(-16deg) scale(1.02);
  }

  78%,
  100% {
    opacity: 0;
    transform: translate3d(118vw, -56vh, 0) rotate(-16deg) scale(1.04);
  }
}

@keyframes ref-v4-spacecraft-flyby-mobile {
  0%,
  22% {
    opacity: 0;
    transform: translate3d(-18vw, 8vh, 0) rotate(-16deg) scale(0.76);
  }

  28% {
    opacity: 0.86;
  }

  40% {
    opacity: 0.88;
  }

  44% {
    opacity: 0.08;
  }

  46%,
  62% {
    opacity: 0;
  }

  66% {
    opacity: 0;
    transform: translate3d(76vw, -41vh, 0) rotate(-16deg) scale(0.96);
  }

  69% {
    opacity: 0.9;
    transform: translate3d(82vw, -42vh, 0) rotate(-16deg) scale(0.98);
  }

  75% {
    opacity: 0.82;
    transform: translate3d(102vw, -49vh, 0) rotate(-16deg) scale(1.02);
  }

  78%,
  100% {
    opacity: 0;
    transform: translate3d(118vw, -56vh, 0) rotate(-16deg) scale(1.04);
  }
}

.ref-v4 #hero .hero-cta-scramble {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition:
    color 300ms ease,
    border-color 300ms ease,
    background-color 300ms ease,
    box-shadow 300ms ease;
}

.ref-v4 #hero .hero-cta-scramble-text {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  white-space: nowrap;
}

.ref-v4 #hero .hero-cta-scramble-text::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--acid);
  background: var(--space);
  content: "";
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.ref-v4 #hero .hero-cta-scramble:hover,
.ref-v4 #hero .hero-cta-scramble:focus-visible {
  color: var(--acid);
  border-color: var(--acid);
  background: var(--space);
  box-shadow: 0 0 0 1px rgba(207, 255, 25, 0.12), 0 6px 22px rgba(0, 0, 0, 0.24);
}

.ref-v4 #hero .hero-cta-scramble:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .ref-v4 #hero .hero-cta-scramble:hover .hero-cta-scramble-text::before {
    animation: ref-v4-hero-cta-chitchat 1.2s linear both;
  }
}

@keyframes ref-v4-hero-cta-chitchat {
  0% {
    content: "#";
    opacity: 1;
  }

  5% {
    content: ".";
  }

  10% {
    content: "^{";
  }

  15% {
    content: "-!";
  }

  20% {
    content: "#$_";
  }

  25% {
    content: "№:0";
  }

  30% {
    content: "#{+.";
  }

  35% {
    content: "@}-?";
  }

  40% {
    content: "?{4@%";
  }

  45% {
    content: "=.,^!";
  }

  50% {
    content: "?2@%";
  }

  55% {
    content: ";1}]";
  }

  60% {
    content: "?{%:%";
  }

  65% {
    content: "|{f[4";
  }

  70% {
    content: "{4%0%";
  }

  75% {
    content: "'1_0<";
  }

  80% {
    content: "{0%";
  }

  85% {
    content: "]>'";
  }

  90% {
    content: "4";
  }

  95% {
    content: "2";
    opacity: 1;
  }

  100% {
    content: "";
    opacity: 0;
  }
}

.ref-v4 .about-story {
  padding-top: 60px;
}

.ref-v4 .about-nameplate {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.ref-v4 .about-nameplate > span,
.ref-v4 .about-quote > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.ref-v4 .about-nameplate > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.ref-v4 .about-nameplate strong {
  font-family: var(--serif);
  font-size: clamp(42px, 4vw, 66px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.ref-v4 .about-nameplate em {
  color: var(--ivory-soft);
  font-size: 18px;
  font-style: normal;
  font-weight: 650;
}

.ref-v4 .about-copy {
  margin-top: 38px;
}

.ref-v4 .about-quote {
  margin: 0;
}

.ref-v4 .about-quote p {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 3.7vw, 58px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.ref-v4 .about-description {
  max-width: 760px;
  margin-top: 28px;
}

.ref-v4 .focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
}

.ref-v4 .focus-grid li {
  min-height: 102px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.ref-v4 .focus-grid li:nth-child(3n + 1) {
  border-left: 0;
}

.ref-v4 .focus-grid li:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .ref-v4.qa-mode .logo-track {
    animation: marquee 34s linear infinite;
  }
}

.ref-v4 .contact {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
  gap: 32px;
}

.ref-v4 .contact-copy h2 {
  font-size: clamp(46px, 4.2vw, 68px);
}

.ref-v4 .contact-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ref-v4 .contact-channel {
  min-height: 94px;
  margin: 0;
  border: 1px solid rgba(234, 229, 216, 0.22);
  padding: 16px;
  color: var(--ivory);
  background: rgba(7, 25, 50, 0.68);
  backdrop-filter: blur(7px);
}

.ref-v4 .contact-channel-primary {
  border-color: var(--acid);
  color: var(--space);
  background: var(--acid);
}

.ref-v4 .contact-channel strong {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

/* Information-bearing microcopy is lifted without changing decorative labels. */
.ref-v4 .project-title > span,
.ref-v4 .more-project-meta,
.ref-v4 .article-card-top,
.ref-v4 .article-card-footer,
.ref-v4 .article-source,
.ref-v4 .directing-type,
.ref-v4 .directing-credit,
.ref-v4 .directing-footer {
  font-size: 10px;
  letter-spacing: 0.085em;
}

.ref-v4 .more-project-card > p,
.ref-v4 .directing-credit strong,
.ref-v4 .service-body li span,
.ref-v4 .service-row aside p {
  font-size: 12px;
}

.ref-v4 .competition-meta {
  font-size: 9px;
  letter-spacing: 0.085em;
}

.ref-v4 .service-body li strong {
  font-size: 12px;
}

.ref-v4 .contact-channel-placeholder strong {
  color: rgba(234, 229, 216, 0.58);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.ref-v4 .more-project-media-yiding {
  background: linear-gradient(145deg, #1c1242 0 35%, #5260ea 35% 100%);
}

.ref-v4 .more-project-media-yiding img {
  right: 6%;
  height: 126%;
}

.ref-v4 .system-projects {
  margin-top: 88px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.ref-v4 .system-projects-heading {
  padding-bottom: 32px;
}

.ref-v4 .more-project-media-system {
  background:
    radial-gradient(circle at 86% 16%, rgba(201, 255, 31, 0.08), transparent 22%),
    #0a0d12;
}

.ref-v4 .more-project-media-system::before {
  z-index: 0;
  opacity: 0.22;
  background-size: 22px 22px;
}

.ref-v4 .more-project-media-system img {
  inset: 8px;
  z-index: 1;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  object-position: center;
  filter: saturate(0.76) contrast(1.04) brightness(0.94);
  transform: none;
}

.ref-v4 .more-project-media-system .more-project-art-mark {
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 7px;
  background: rgba(7, 9, 8, 0.78);
  backdrop-filter: blur(5px);
}

.ref-v4 .system-project-grid .more-project-card h4 {
  min-height: 2.25em;
  font-size: clamp(19px, 1.35vw, 24px);
}

.ref-v4 .system-project-grid .more-project-card:hover .more-project-media-system img {
  filter: saturate(0.92) contrast(1.04) brightness(0.99);
  transform: scale(1.012);
}

@media (max-width: 1180px) {
  .ref-v4 .contact {
    display: block;
  }

  .ref-v4 .contact-channels {
    max-width: 640px;
    margin-top: 40px;
  }
}

@media (max-width: 760px) {
  .ref-v4 .hero-spacecraft {
    top: 52%;
    width: 62px;
    animation-name: ref-v4-spacecraft-flyby-mobile;
    animation-duration: 11.5s;
  }

  .ref-v4 .hero-spacecraft-trail {
    width: 108px;
  }

  .ref-v4 .hero-actions {
    display: flex;
    margin-top: 28px;
  }

  .ref-v4 .hero-actions .button-acid {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 9px;
  }

  .ref-v4 .hero-actions .button-ghost {
    display: none;
  }

  .ref-v4 .about-story {
    padding-top: 34px;
  }

  .ref-v4 .about-nameplate {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .ref-v4 .about-nameplate > div {
    width: 100%;
    justify-content: space-between;
  }

  .ref-v4 .about-nameplate strong {
    font-size: 48px;
  }

  .ref-v4 .about-copy {
    margin-top: 30px;
  }

  .ref-v4 .about-quote p {
    font-size: 38px;
  }

  .ref-v4 .about-description {
    margin-top: 24px;
  }

  .ref-v4 .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
  }

  .ref-v4 .focus-grid li,
  .ref-v4 .focus-grid li:nth-child(3n + 1) {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .ref-v4 .focus-grid li:nth-child(odd) {
    border-left: 0;
  }

  .ref-v4 .focus-grid li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .ref-v4 .contact-channels {
    gap: 8px;
    margin-top: 36px;
  }

  .ref-v4 .contact-channel {
    min-height: 84px;
    margin-top: 0;
    padding: 14px;
  }

  .ref-v4 .contact-channel strong {
    font-size: 17px;
  }

  .ref-v4 .contact-channel-placeholder strong {
    font-size: 9px;
  }

  .ref-v4 .system-projects {
    margin-top: 62px;
    padding-top: 28px;
  }

  .ref-v4 .system-projects-heading {
    padding-bottom: 26px;
  }

  .ref-v4 .system-project-grid .more-project-card h4 {
    min-height: 0;
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ref-v4 .hero-astronaut-poster {
    opacity: 1;
    transition: none;
  }

  .ref-v4 .hero-astronaut-video {
    opacity: 0;
    transition: none;
  }

  .ref-v4 .hero-spacecraft {
    display: none;
  }

  .ref-v4 #hero .hero-cta-scramble:hover .hero-cta-scramble-text::before {
    animation: none;
  }
}
