:root {
  --cb-blue: #001e60;
  --cb-blue-deep: #00133f;
  --white: #fff;
  --soft-white: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .32);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html { background: var(--cb-blue-deep); }

body {
  background: var(--cb-blue-deep);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--white); outline-offset: 6px; }

.tracking-pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.teaser {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 64% 34%, rgba(58, 103, 177, .27), transparent 28rem),
    linear-gradient(145deg, #001137 0%, #001e60 54%, #001033 100%);
}

.blue-form {
  position: absolute;
  border-radius: 48% 52% 42% 58% / 38% 50% 50% 62%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  animation: fabricMove 20s ease-in-out infinite alternate;
}

.blue-form-one {
  width: 67vw;
  height: 115vh;
  right: -18vw;
  top: -26vh;
  transform: rotate(20deg);
  background: linear-gradient(135deg,
    rgba(255,255,255,.012) 0%,
    rgba(58,104,177,.28) 38%,
    rgba(255,255,255,.065) 50%,
    rgba(27,74,145,.48) 69%,
    rgba(0,19,63,.08) 100%);
  box-shadow: inset 5rem 0 10rem rgba(255,255,255,.02), inset -8rem 0 14rem rgba(0,0,0,.18);
}

.blue-form-two {
  width: 49vw;
  height: 75vh;
  left: -24vw;
  bottom: -34vh;
  transform: rotate(-28deg);
  opacity: .36;
  background: linear-gradient(32deg, rgba(38,88,164,.45), rgba(255,255,255,.03) 47%, rgba(0,16,52,.10));
  animation-duration: 27s;
}

.digital-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .10;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 56% 47%, #000 0%, transparent 72%);
  animation: gridDrift 30s linear infinite;
}

.cursor-glow {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: .14;
  background: radial-gradient(circle, rgba(76, 133, 226, .25), transparent 68%);
  filter: blur(14px);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .085;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.value-track, .reveal, .side-copy, .footer { position: relative; z-index: 2; }

.value-track {
  position: absolute;
  left: clamp(2.2rem, 6.3vw, 6.8rem);
  top: 50%;
  transform: translateY(-52%);
  width: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

.value-track .value {
  font-size: clamp(.62rem, .72vw, .78rem);
  font-weight: 500;
  letter-spacing: .22em;
  color: rgba(255,255,255,.52);
  transition: color .45s ease, transform .45s ease, text-shadow .45s ease;
}

.value-track .value.active {
  color: var(--white);
  transform: scale(1.05);
  text-shadow: 0 0 1rem rgba(89,146,255,.34);
}

.value-line { width: 1px; height: 2.55rem; background: var(--line); }

.reveal {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 12rem 8rem;
  text-align: center;
}

.official-logo {
  display: block;
  width: clamp(12.5rem, 18vw, 19rem);
  height: auto;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  filter: drop-shadow(0 .5rem 1.8rem rgba(0,0,0,.12));
  animation: logoReveal 1.35s cubic-bezier(.2,.8,.2,1) forwards .25s, logoBreath 10s ease-in-out infinite 1.6s;
}

.word-stage {
  height: 2.6rem;
  margin-top: clamp(2.8rem, 5vh, 4.5rem);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.word-stage span {
  display: inline-block;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-weight: 500;
  letter-spacing: .42em;
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
}

.word-stage span.show { animation: wordIn .55s ease forwards; }
.word-stage span.hide { animation: wordOut .45s ease forwards; }

.final-message {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.final-message.show { animation: finalReveal 1s ease forwards; }
.final-message.show[aria-hidden="false"] { pointer-events: auto; }

.final-message h1 {
  margin: 1.3rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  font-size: clamp(1.25rem, 2.15vw, 2.1rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .34em;
}

.short-line {
  display: block;
  width: 3rem;
  height: 1px;
  margin: 2.2rem auto 0;
  background: rgba(255,255,255,.68);
  transform: scaleX(0);
}

.final-message.show .short-line { animation: lineReveal .9s ease forwards .45s; }

.final-message p {
  margin: 1.55rem 0 0;
  font-size: .8rem;
  letter-spacing: .42em;
}

.noscript-message { margin-top: 3rem; }
.noscript-message h1 { font-size: 1.6rem; letter-spacing: .22em; line-height: 1.45; font-weight: 400; }
.noscript-message p { font-size: .75rem; letter-spacing: .3em; }

.side-copy {
  position: absolute;
  right: clamp(2rem, 5.1vw, 5.6rem);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  margin: 0;
  font-size: .78rem;
  letter-spacing: .22em;
  white-space: nowrap;
}

.side-copy::after {
  content: "";
  display: inline-block;
  width: 3rem;
  height: 1px;
  margin-left: 1rem;
  vertical-align: middle;
  background: rgba(255,255,255,.58);
}

.footer {
  position: absolute;
  left: max(clamp(2rem, 4.4vw, 4.4rem), env(safe-area-inset-left));
  right: max(clamp(2rem, 4.4vw, 4.4rem), env(safe-area-inset-right));
  bottom: max(1.9rem, env(safe-area-inset-bottom));
  min-height: 5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.44);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p, .contact-links a {
  margin: 0;
  font-size: .69rem;
  letter-spacing: .13em;
  color: rgba(255,255,255,.82);
}

.contact-links { display: flex; align-items: center; gap: 1.2rem; }
.contact-links span { width: 1px; height: 1.8rem; background: rgba(255,255,255,.36); }
.contact-links a { transition: opacity .2s ease, transform .2s ease, text-shadow .2s ease; }
.contact-links a:hover { opacity: .72; transform: translateY(-1px); text-shadow: 0 0 1rem rgba(89,146,255,.28); }

.not-found-page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: auto;
  background: var(--cb-blue);
  text-align: center;
}

.not-found-card img {
  width: min(55vw, 15rem);
  height: auto;
}

.not-found-card p {
  margin: 2rem 0 1.25rem;
  font-size: .75rem;
  letter-spacing: .2em;
}

.not-found-card a {
  text-decoration: underline;
  text-underline-offset: .25em;
}

@keyframes fabricMove {
  from { transform: rotate(20deg) translate3d(0,0,0) scale(1); }
  to { transform: rotate(17deg) translate3d(-2vw,2vh,0) scale(1.05); }
}
@keyframes gridDrift { to { background-position: 96px 96px; } }
@keyframes logoReveal { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes logoBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.006); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wordOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-12px); } }
@keyframes finalReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes lineReveal { to { transform: scaleX(1); } }

@media (max-width: 900px) {
  body { overflow-y: auto; }
  .value-track, .side-copy { display: none; }
  .reveal { padding: 4rem 2rem 10rem; }
  .official-logo { width: clamp(11.5rem, 36vw, 16rem); }
  .final-message h1 { max-width: 25rem; gap: .7rem; line-height: 1.35; letter-spacing: .23em; }
  .cursor-glow { display: none; }
}

@media (max-width: 560px) {
  .reveal { padding: 3rem 1.2rem 10rem; }
  .official-logo { width: min(58vw, 14rem); }
  .word-stage { margin-top: 2.7rem; }
  .word-stage span { font-size: .92rem; letter-spacing: .30em; }
  .final-message h1 { font-size: 1.08rem; letter-spacing: .18em; }
  .final-message p { font-size: .68rem; letter-spacing: .30em; }
  .footer {
    left: max(1.25rem, env(safe-area-inset-left));
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: max(1.15rem, env(safe-area-inset-bottom));
    flex-direction: column-reverse;
    justify-content: flex-start;
    gap: .7rem;
    min-height: 6.5rem;
  }
  .footer p, .contact-links a { font-size: .58rem; }
  .contact-links { gap: .8rem; }
  .contact-links span { height: 1.5rem; }
  .blue-form-one { width: 122vw; right: -56vw; }
  .digital-grid { background-size: 64px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .digital-grid, .cursor-glow { display: none; }
}
