/* Space-inspired native web composition. Cards < focused cards < header < native dialog. */
/* Same licensed glyphs, subset for the inert homepage preview only. */
@font-face { font-family: "EC Home UI"; src: url('assets/fonts/home-ui-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: "EC Home UI"; src: url('assets/fonts/home-ui-medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
:root { scrollbar-gutter: stable; }
.home-page { background: #07080d; }
.home-page::before { content: none; }
.home-page .site-header { background: rgba(8, 8, 12, .38); border-color: rgba(255, 255, 255, .08); }
.home-page .site-header.is-scrolled { background: rgba(8, 8, 12, .9); }
.home-page .space-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3.5vh, 40px);
  min-height: 100svh;
  min-height: 100dvh;
  padding: 116px 0 38px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 52% 68% at 18% 34%, rgba(53, 87, 128, .18), transparent 72%), radial-gradient(ellipse 52% 68% at 82% 39%, rgba(109, 76, 110, .16), transparent 72%), #07080d;
}
.space-hero::after { position: absolute; z-index: 0; inset: auto 0 0; width: 100%; height: clamp(180px, 25vh, 300px); content: ''; pointer-events: none; background: linear-gradient(to bottom, transparent, #07080d77 42%, #07080d); transform: none; }
.home-page .experience-section { border: 0; background: #07080d; }
.home-page .experience-section::before { content: none; }
.home-page .site-footer { border-top: 0; background: #07080d; }
.space-stars { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.space-stage { position: relative; z-index: 1; width: min(1600px, calc(100% - 64px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 90px); }
.space-product { position: relative; min-width: 0; --rim: 165, 209, 255; }
.space-product-bot { --rim: 228, 193, 240; }
.space-title-layer, .space-slot { transform: translate3d(calc(var(--pointer-x, 0) * var(--depth) * 12px), calc(var(--pointer-y, 0) * var(--depth) * 8px), 0); transition: transform 900ms cubic-bezier(.16, 1, .3, 1); }
.space-hero .space-title { position: relative; margin: 0; max-width: none; text-align: center; color: #f8f7fb; font-size: clamp(34px, 4.2vw, 70px); font-weight: 650; line-height: 1.15; letter-spacing: -.045em; white-space: nowrap; text-shadow: none; transform: rotate(-1.5deg); transition: transform 650ms cubic-bezier(.16, 1, .3, 1); }
.space-title span { color: #d0bcff; }
.space-hero .space-title::before { content: none; }
.space-product-bot .space-title { transform: rotate(1.5deg); }
.space-orbit { position: relative; height: clamp(310px, 53vh, 580px); margin-top: 14px; }
.space-slot { position: absolute; z-index: 1; }
.space-slot-main { width: 73%; left: 19%; top: 27%; z-index: 3; --rotate: 4deg; --tilt: -8deg; }
.space-slot-far { width: 32%; left: 1%; top: 9%; --rotate: 7deg; --tilt: 10deg; }
.space-slot-side { width: 36%; left: 0; top: 57%; z-index: 2; --rotate: 6deg; --tilt: -6deg; }
.space-slot-small { width: 28%; left: 46%; top: 81%; --rotate: 8deg; --tilt: -10deg; }
.space-product-bot .space-slot-main { left: 7%; --rotate: -4deg; --tilt: 8deg; }
.space-product-bot .space-slot-far { left: 67%; --rotate: -7deg; --tilt: -10deg; }
.space-product-bot .space-slot-side { left: 64%; --rotate: 6deg; --tilt: 10deg; }
.space-product-bot .space-slot-small { left: 37%; --rotate: -8deg; --tilt: 8deg; }
.space-slot:focus-within { z-index: 6; }
.space-card {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(var(--rim), .7);
  border-radius: 12px;
  background: #14161c;
  box-shadow: 0 0 0 1px rgba(var(--rim), .08), 0 0 18px rgba(var(--rim), .1), 0 22px 55px rgba(0, 0, 0, .7);
  cursor: pointer;
  transform: perspective(900px) rotateY(var(--tilt)) rotate(var(--rotate));
  transition: transform 650ms cubic-bezier(.16, 1, .3, 1), border-color 400ms ease, box-shadow 400ms ease, opacity 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.space-card:focus-visible { outline: 2px solid #f5edff; outline-offset: 6px; transform: translateY(-7px) scale(1.045); border-color: #fff; }
.space-card.is-selected { opacity: 0; }
.space-actions { position: relative; z-index: 1; align-self: center; margin: 0; }
.home-page .space-actions .space-cta { width: auto; min-width: 158px; min-height: 48px; padding: 10px 30px; color: #17131d; background: #f7f5fb; border: 1px solid #fff; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; box-shadow: 0 0 28px #d0bcff1a; }
.space-cta:hover { background: #fff; box-shadow: 0 0 32px #d0bcff30; }
.space-modal-open { overflow: hidden; }
.space-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #f5f1fa; background: transparent; overflow: hidden; }
.space-dialog[open] { display: grid; place-items: center; }
.space-dialog::backdrop { background: rgba(2, 2, 6, .86); backdrop-filter: blur(12px); }
.space-player { position: relative; width: min(1080px, calc(100vw - 40px), calc((100dvh - 140px) * 1.777778)); aspect-ratio: 16 / 9; border: 1px solid rgba(218, 203, 244, .65); border-radius: 12px; background: #14161c; box-shadow: 0 32px 110px #000b, 0 0 30px #d0bcff13; transform-origin: center; }
.space-player video { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #14161c; }
.space-player video[hidden], .space-status[hidden] { display: none; }
.space-close { position: absolute; right: 0; top: -56px; width: 42px; height: 42px; padding: 0; border: 1px solid #ffffff55; border-radius: 50%; color: #fff; background: #18171ee6; font-size: 28px; font-weight: 300; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 180ms ease, background 180ms ease; }
.space-dialog[data-state='open'] .space-close { opacity: 1; }
.space-close:hover { background: #37323f; }
.space-status { position: absolute; top: calc(100% + 12px); left: 0; right: 0; margin: 0; color: #e7ddeb; font-size: 14px; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .space-drift { animation: space-drift var(--duration) ease-in-out var(--delay) infinite alternate; }
  .space-title { animation: space-title-drift 11s ease-in-out -3s infinite alternate; }
  .space-product-bot .space-title { animation-delay: -8s; animation-direction: alternate-reverse; }
  .space-hero[data-paused='true'] .space-drift, .space-hero[data-paused='true'] .space-title { animation-play-state: paused; }
  .space-dialog[data-state='opening']::backdrop { animation: space-shade-in 420ms ease both; }
  .space-dialog[data-state='closing']::backdrop { animation: space-shade-out 300ms ease both; }
  @keyframes space-drift { from { transform: translate3d(-2px, -6px, 0); } to { transform: translate3d(3px, 6px, 0); } }
  @keyframes space-title-drift { from { translate: 0 -3px; } to { translate: 0 3px; } }
  @keyframes space-shade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes space-shade-out { from { opacity: 1; } to { opacity: 0; } }
}
@media (hover: hover) and (pointer: fine) {
  .space-hero .space-title:hover { transform: translateY(-3px) rotate(0deg) scale(1.025); }
  .space-slot:hover { z-index: 5; }
  .space-card:hover { transform: perspective(900px) translateY(-8px) rotateX(calc(var(--hover-y, 0) * -3deg)) rotateY(calc(var(--hover-x, 0) * 4deg)) scale(1.045); border-color: #f4f0ff; box-shadow: 0 0 0 1px rgba(var(--rim), .2), 0 0 32px rgba(var(--rim), .24), 0 34px 70px #000b; }
}
@media (max-width: 980px) and (min-width: 721px) {
  .space-stage { width: calc(100% - 40px); gap: 16px; }
  .space-orbit { height: clamp(290px, 48vh, 440px); }
}
@media (min-width: 721px) and (max-height: 650px) {
  .home-page .space-hero { padding-top: 104px; padding-bottom: 20px; gap: 14px; }
  .space-stage { width: min(1040px, calc(100% - 40px)); }
  .space-hero .space-title { font-size: clamp(30px, 4vw, 46px); }
  .space-orbit { height: clamp(140px, calc(100dvh - 250px), 340px); margin-top: 8px; }
  .space-slot-main { width: 66%; }
  .space-slot-small { top: 76%; }
}
@media (max-width: 720px) {
  .home-page .space-hero { padding: 124px 0 48px; gap: 34px; background: radial-gradient(ellipse 90% 38% at 25% 24%, rgba(53, 87, 128, .18), transparent 72%), radial-gradient(ellipse 90% 38% at 75% 70%, rgba(109, 76, 110, .16), transparent 72%), #07080d; }
  .space-stage { width: calc(100% - 36px); grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .space-hero .space-title { font-size: clamp(36px, 9vw, 52px); }
  .space-orbit { height: clamp(285px, 82vw, 460px); margin-top: 20px; }
  .space-slot-main { left: 17%; width: 77%; }
  .space-product-bot .space-slot-main { left: 6%; }
  .space-card { border-radius: 9px; }
  .space-player { border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .space-title-layer, .space-slot { transform: none; transition: none; }
  .space-card, .space-close, .space-hero .space-title { transition: none; }
  .space-hero .space-title:hover { transform: none; }
  .space-card:hover, .space-card:focus-visible { transform: none; }
}
