:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  --card-lift: clamp(24px, 5svh, 44px);
  --footer-bottom: max(clamp(16px, 4svh, 36px), env(safe-area-inset-bottom));
  --logo-gap: clamp(16px, 4vw, 44px);
  --logo-size: min(116px, 12svh, calc((100vw - 32px - var(--logo-gap) * 4) / 5));
  --card-width: min(470px, calc(100vw - 100px), calc((100svh - 120px) * 1.5));
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { overscroll-behavior: none; }
.canvas {
  width: 100%; height: 100vh; height: 100dvh; min-height: 100svh;
  position: relative; display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 42%, #fff 8%, #fff 42%, #fff 100%);
}
.light-field {
  position: absolute; width: min(870px, 135vw); aspect-ratio: 1.45;
  left: 50%; top: calc(50% - var(--card-lift)); transform: translate(-50%, -52%);
  pointer-events: none;
}
.light {
  position: absolute; border-radius: 50%; filter: blur(42px);
  will-change: transform; mix-blend-mode: multiply;
}
.light--cyan {
  left: 9%; top: 27%; width: 43%; height: 41%; opacity: .54;
  background: radial-gradient(ellipse, #55edee 0%, #9ef6ef 35%, transparent 72%);
  animation: drift-cyan 17s ease-in-out infinite alternate;
}
.light--violet {
  right: 12%; top: 16%; width: 49%; height: 45%; opacity: .49;
  background: radial-gradient(ellipse, #b48cff, #d2b9ff 35%, transparent 71%);
  animation: drift-violet 19s ease-in-out infinite alternate;
}
.light--coral {
  right: 11%; bottom: 9%; width: 40%; height: 47%; opacity: .48;
  background: radial-gradient(ellipse, #ffa698, #ffdcce 38%, transparent 70%);
  animation: drift-coral 15s ease-in-out infinite alternate;
}
.light--blue {
  left: 22%; bottom: 4%; width: 38%; height: 37%; opacity: .3;
  background: radial-gradient(ellipse, #8badff, #bccfff 35%, transparent 71%);
  animation: drift-blue 21s ease-in-out infinite alternate;
}
.orbit {
  position: absolute; border-radius: 50%; width: 80%; height: 57%;
  left: 10%; top: 22%; opacity: .46; filter: blur(1px);
  border: 1px solid transparent;
  border-top-color: #bdcaff; border-left-color: #aeefee;
  transform: rotate(-24deg); animation: orbit 22s ease-in-out infinite alternate;
}
.orbit--two {
  width: 72%; height: 68%; left: 14%; top: 16%; opacity: .25;
  border-top-color: #eac6f0; border-left-color: transparent;
  border-bottom-color: #f3c5c2; transform: rotate(29deg);
  animation: orbit-two 27s ease-in-out infinite alternate;
}
.stage {
  width: var(--card-width); aspect-ratio: 1.586; position: relative;
  perspective: 1200px; z-index: 1;
  transform: translateY(calc(-1 * var(--card-lift)));
}
.float {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  animation: levitate 7s ease-in-out infinite;
}
.card {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 12deg)) rotateY(var(--tilt-y, -14deg)) rotateZ(-7deg);
  transition: transform 850ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.edge, .card-face { position: absolute; inset: 0; border-radius: clamp(15px, 2.1vw, 24px); }
.edge {
  background: linear-gradient(130deg, #788ed0 0%, #384f97 18%, #152854 38%, #0b153b 72%, #4977bf 100%);
  border: 1px solid #244779;
}
.edge--back { transform: translateZ(-7px); box-shadow: 0 5px 9px #07163828; }
.edge--middle { transform: translateZ(-4.5px); }
.edge--front { transform: translateZ(-2px); }
.card-face {
  overflow: hidden; backface-visibility: hidden;
  background:
    radial-gradient(ellipse at 3% 0%, #5277b94d, transparent 54%),
    radial-gradient(ellipse at 97% 96%, #035fff70, transparent 61%),
    linear-gradient(123deg, #101d47 2%, #122556 41%, #153887 77%, #12439b 100%);
  box-shadow: inset 0 1px 1px #aec8ff99, inset 1px 0 1px #aec8ff40,
    inset 0 -1px 1px #050c32cc, 0 0 0 1px #243966;
}
.card-grain {
  position: absolute; inset: 0; opacity: .12; 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='.87' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.7' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.wordmark {
  position: absolute; left: 9%; top: 13%; width: 51%; height: auto;
  filter: drop-shadow(0 1px 1px #0004); z-index: 1;
}
.signature {
  position: absolute; left: 9%; bottom: 13%; width: 8%; height: auto;
  color: #b7ccee; opacity: .74;
}
.contour {
  position: absolute; width: 89%; height: 137%; border-radius: 50%;
  right: -41%; bottom: -78%; border: 1px solid #95bbff2c;
  transform: rotate(-27deg); pointer-events: none;
}
.contour--two { width: 105%; height: 156%; right: -48%; bottom: -85%; border-color: #87b4ff23; }
.contour--three { width: 122%; height: 177%; right: -55%; bottom: -93%; border-color: #87b4ff1c; }
.contour--four { width: 139%; height: 198%; right: -62%; bottom: -101%; border-color: #87b4ff13; }
.sheen {
  position: absolute; inset: -60%; pointer-events: none; opacity: .5;
  background: linear-gradient(112deg, transparent 32%, #c8dfff03 39%, #d4e5ff16 47%, #e6eeff08 51%, transparent 60%);
  transform: translateX(var(--shine-x, -6%)) rotate(-9deg);
  transition: transform 1s ease, opacity 1s ease;
}
.edge-light {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, #b9d6ff14, transparent 30%, transparent 75%, #63a6ff15);
  pointer-events: none;
}
.ground-shadow {
  position: absolute; left: 8%; width: 83%; height: 20%; bottom: -27%;
  border-radius: 50%; background: #19355f; filter: blur(25px); opacity: .16;
  transform: rotate(-7deg); animation: shadow-breathe 7s ease-in-out infinite;
}
@keyframes levitate { 0%,100% { transform: translateY(-9px); } 50% { transform: translateY(9px); } }
@keyframes shadow-breathe { 0%,100% { transform: rotate(-7deg) scale(.92); opacity: .12; } 50% { transform: rotate(-7deg) scale(1); opacity: .17; } }
@keyframes drift-cyan { from { transform: translate(-4%, 10%) scale(.94); } to { transform: translate(17%, -18%) scale(1.12); } }
@keyframes drift-violet { from { transform: translate(5%, -10%) scale(1.08); } to { transform: translate(-15%, 19%) scale(.96); } }
@keyframes drift-coral { from { transform: translate(10%, 8%) scale(.98); } to { transform: translate(-18%, -13%) scale(1.13); } }
@keyframes drift-blue { from { transform: translate(-12%, 9%); } to { transform: translate(16%, -12%) scale(1.12); } }
@keyframes orbit { from { transform: rotate(-24deg) scale(.98); } to { transform: rotate(-10deg) scale(1.05); } }
@keyframes orbit-two { from { transform: rotate(29deg) scale(1); } to { transform: rotate(42deg) scale(.95); } }
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
@media (max-width: 600px) {
  :root {
    --card-width: min(420px, calc(100vw - 66px), calc((100svh - 100px) * 1.45));
    --logo-size: min(64px, 12svh, calc((100vw - 32px - var(--logo-gap) * 4) / 5));
  }
  .light-field { width: 160vw; }
  .light { filter: blur(27px); }
  .ground-shadow { filter: blur(19px); }
}
@media (max-height: 640px) {
  :root {
    --card-lift: clamp(22px, 7svh, 32px);
    --footer-bottom: max(16px, env(safe-area-inset-bottom));
    --logo-size: min(90px, 12svh, calc((100vw - 32px - var(--logo-gap) * 4) / 5));
    --card-width: min(400px, calc(100vw - 80px), calc((100svh - 140px) * 1.45), calc((100svh - var(--logo-size) * 2 - 86px - var(--footer-bottom) * 2 + var(--card-lift) * 2) * 1.05));
  }
}
@media (max-height: 400px) {
  .light-field { width: min(700px, 120vw); }
  .ground-shadow { bottom: -19%; filter: blur(15px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .float { transform: translateY(-3px); }
  .card { transform: rotateX(12deg) rotateY(-14deg) rotateZ(-7deg); will-change: auto; }
  .light { will-change: auto; }
}

/* One viewport, sized by both available width and height. */
.canvas { min-height: 0; display: grid; grid-template-rows: 17fr 45fr 38fr; padding: max(10px, env(safe-area-inset-top)) 16px max(10px, env(safe-area-inset-bottom)); }
.page-heading { z-index: 2; text-align: center; align-self: center; }
.page-heading h1 { margin: 0 0 .25em; color: #152b62; font-size: clamp(18px, 4.2svh, 38px); letter-spacing: .12em; font-weight: 600; }
.page-heading p { margin: 0; color: #344260; font-size: clamp(10px, 1.9svh, 16px); }
.stage { --card-width: min(470px, calc(100vw - 76px), 52svh); transform: none; align-self: center; justify-self: center; }
.light-field { top: 39%; width: min(870px, 135vw, 95svh); }
.brand-footer { align-self: stretch; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; z-index: 2; gap: clamp(2px, .5svh, 5px); }
.brand-video { display: block; min-height: 0; height: min(21svh, 175px); max-width: 70vw; aspect-ratio: 758 / 760; object-fit: contain; }
.company-text { text-align: center; color: #51596a; font-size: clamp(10px, 1.4svh, 11px); line-height: 1.45; }
.company-text p { margin: 0; }
.motion-toggle { border: 0; background: transparent; color: #596274; font: inherit; font-size: clamp(9px, 1.2svh, 10px); min-height: 24px; padding: 3px 8px; cursor: pointer; border-radius: 4px; }
.motion-toggle:hover { background: #f2f4f8; }
.motion-toggle:focus-visible { outline: 2px solid #1e58b5; outline-offset: 2px; }
@media (max-height: 420px) { .canvas { grid-template-rows: 18fr 42fr 40fr; padding-top: 5px; padding-bottom: 5px; } .brand-video { height: 17svh; } .company-text { font-size: 8px; line-height: 1.2; } .page-heading h1 { font-size: 18px; } .page-heading p { font-size: 10px; } }
/* The supplied film has a white matte and encoded edge pixels, not a border. */
.brand-footer { mix-blend-mode: multiply; }
.brand-video {
  clip-path: inset(.5%);
  border: 0;
  outline: 0;
  background: transparent;
  /* Feather only the empty matte; the logo remains at full opacity. */
  mask-image: linear-gradient(to right, transparent, #000 1.2%, #000 98.8%, transparent), linear-gradient(to bottom, transparent, #000 1.2%, #000 98.8%, transparent);
  mask-composite: intersect;
}
