:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.68);
  --line: rgba(245, 241, 232, 0.24);
  --accent: #d6ff58;
  --night: #06110e;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--night);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--night);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  text-rendering: geometricPrecision;
}

a,
button {
  color: inherit;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(92, 153, 124, 0.2), transparent 38%),
    linear-gradient(140deg, #0a1914 0%, #07100e 58%, #020807 100%);
}

.scene__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(0.72) contrast(1.08) brightness(0.63);
  transform: scale(1.025);
  transition: opacity 1.2s ease;
}

.video-ready .scene__video {
  opacity: 0.86;
}

.scene__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 8, 0.93) 0%, rgba(3, 10, 8, 0.72) 46%, rgba(3, 10, 8, 0.36) 100%),
    linear-gradient(180deg, rgba(2, 8, 6, 0.3) 0%, rgba(2, 8, 6, 0.05) 48%, rgba(2, 8, 6, 0.76) 100%);
}

.scene__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.11;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain 0.22s steps(2) infinite;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1500px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: clamp(218px, 18vw, 278px);
  height: auto;
}

.studio {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.12em;
}

.studio__label {
  color: var(--muted);
  font-size: 0.64rem;
}

.studio__logo-frame {
  position: relative;
  display: block;
  width: clamp(104px, 8.8vw, 148px);
  flex-shrink: 0;
  isolation: isolate;
}

.studio__logo {
  display: block;
  width: 100%;
  height: auto;
}

.studio__logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 28%,
    rgba(214, 255, 88, 0.18) 42%,
    #d6ff58 50%,
    rgba(214, 255, 88, 0.38) 57%,
    transparent 72%
  );
  background-position: 180% 0;
  background-size: 260% 100%;
  -webkit-mask: url("/originald-wordmark-balanced-mask.png") center / 100% 100% no-repeat;
  mask: url("/originald-wordmark-balanced-mask.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 5px rgba(214, 255, 88, 0.72));
  opacity: 0;
  animation: originald-shimmer 4.8s ease-in-out infinite;
}

@keyframes originald-shimmer {
  0%,
  56% {
    background-position: 180% 0;
    opacity: 0;
  }

  62% {
    opacity: 0.95;
  }

  82% {
    background-position: -80% 0;
    opacity: 0.95;
  }

  88%,
  100% {
    background-position: -80% 0;
    opacity: 0;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
  gap: clamp(48px, 7vw, 105px);
  align-items: end;
  padding: clamp(42px, 6vh, 72px) 0 clamp(40px, 6vh, 70px);
}

.hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.status {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 4vh, 46px);
  padding: 10px 13px;
  border: 1px solid rgba(214, 255, 88, 0.58);
  background: rgba(6, 17, 14, 0.44);
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
}

.status i,
.moment__pulse i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 255, 88, 0.12);
  animation: pulse 2s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
  letter-spacing: 0.13em;
}

h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3.5rem, 5.25vw, 6.25rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.067em;
  text-wrap: balance;
}

h1 > span {
  display: block;
}

h1 .headline-call {
  margin-top: 0.08em;
  font-size: 0.79em;
  white-space: nowrap;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.intro {
  max-width: 660px;
  margin: clamp(26px, 3.5vh, 40px) 0 0;
  color: rgba(245, 241, 232, 0.82);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  line-height: 1.75;
}

.moment {
  align-self: end;
  padding: 0 0 3px;
  border-top: 1px solid rgba(245, 241, 232, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(7px);
}

.moment__top,
.moment__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
}

.moment__time {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.24em;
  white-space: nowrap;
  padding: 28px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(2.7rem, 5vw, 5.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.07em;
}

.moment__digits,
.moment__period {
  flex: 0 0 auto;
}

.moment__period {
  color: var(--paper);
  font-size: 0.42em;
  letter-spacing: 0.04em;
}

.moment__pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.footer p {
  margin: 0;
}

.footer p:first-child {
  color: var(--muted);
}

.footer p:first-child span {
  white-space: nowrap;
}

.footer__message {
  color: var(--accent);
  font-weight: 700;
}

.motion-control {
  position: fixed;
  z-index: 3;
  right: 22px;
  bottom: 94px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: rgba(6, 17, 14, 0.66);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.motion-control:hover,
.motion-control:focus-visible {
  border-color: var(--accent);
  outline: none;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -1%); }
  50% { transform: translate(-1%, 2%); }
  75% { transform: translate(1%, 1%); }
  100% { transform: translate(-2%, -1%); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 34px, 680px);
  }

  .topbar {
    min-height: 88px;
  }

  .studio__label {
    font-size: 0.56rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding: 44px 0 48px;
  }

  .status {
    margin-bottom: 42px;
  }

  h1 {
    font-size: clamp(3.3rem, 15vw, 6.4rem);
  }

  .moment {
    width: 100%;
  }

  .footer {
    min-height: 92px;
  }

  .motion-control {
    right: 17px;
    bottom: 102px;
  }
}

@media (max-width: 560px) {
  .page {
    width: calc(100% - 28px);
  }

  .brand__logo {
    width: 166px;
  }

  .studio {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .studio__logo-frame {
    width: 88px;
  }

  .studio__label {
    display: block;
    font-size: 0.48rem;
    line-height: 1;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(2.8rem, 12.4vw, 3.35rem);
    letter-spacing: -0.075em;
  }

  h1 .headline-call {
    font-size: 0.66em;
    white-space: nowrap;
  }

  .status {
    margin-bottom: 34px;
  }

  .intro {
    max-width: 92%;
  }

  .moment__time {
    font-size: clamp(2.35rem, 12.5vw, 3.55rem);
    line-height: 1;
  }

  .moment__bottom {
    align-items: flex-end;
  }

  .footer {
    min-height: 108px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 9px 12px;
  }

  .footer p:first-child {
    grid-column: 1 / -1;
  }

  .footer__message {
    grid-column: 1;
    grid-row: 2;
  }

  .motion-control {
    position: static;
    z-index: auto;
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio__logo-frame::after {
    animation: none;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene__video {
    display: none;
  }

  .scene__grain,
  .status i,
  .moment__pulse i {
    animation: none;
  }

  .motion-control {
    display: none;
  }
}
