/* =====================================================================
   SCELTA — TEMPORARY LANDING (coming-soon.html)
   Standalone. Reuses the Scelta design tokens and visual language from
   the main site / configurator frontend — a deliberately minimal cut of
   the finished experience, not a placeholder page.
   ===================================================================== */

/* ---------------------------- TOKENS ---------------------------- */
:root {
  color-scheme: dark;

  --bg: #0b0b0b;
  --bg-raise: #141414;

  --ink: #f2f0eb;
  --ink-dim: rgba(242, 240, 235, 0.58);
  --ink-faint: rgba(242, 240, 235, 0.34);
  --ink-ghost: rgba(242, 240, 235, 0.16);

  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-3: rgba(255, 255, 255, 0.24);
  --hover: rgba(255, 255, 255, 0.07);

  --r-sm: 4px;
  --r: 7px;

  --ease: cubic-bezier(0.4, 0, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-hover: 260ms;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype",
    Palatino, Georgia, "Times New Roman", serif;

  --gutter: clamp(24px, 5vw, 120px);
  --track-label: 0.22em;
  --track-eyebrow: 0.34em;
}

/* ---------------------------- RESET ---------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: clamp(13px, 0.22vw + 11.4px, 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(242, 240, 235, 0.16);
}

:focus-visible {
  outline: 1px solid var(--ink-dim);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------- SHELL ---------------------------- */
.cs {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 4vh, 44px) var(--gutter) clamp(28px, 5vh, 54px);
}

/* ---------------------------- HERO MEDIA ---------------------------- */
.cs-hero {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

/* still, near-flat cinematic surface — stands in for the final image and
   is fully covered once assets/media/hero.jpg (or a <video>) is added */
.cs-hero__plate {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34% 48% at 82% 28%, rgba(255, 236, 210, 0.18), transparent 72%),
    radial-gradient(90% 100% at 96% 4%, rgba(150, 176, 208, 0.1), transparent 60%),
    radial-gradient(130% 100% at 58% 122%, rgba(0, 0, 0, 0.5), transparent 55%),
    #0c0d0f;
  transform-origin: 64% 44%;
}
.cs-hero__plate::after {
  /* faint horizon / reflection sliver */
  content: "";
  position: absolute;
  left: 36%;
  right: 0;
  top: 58%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(242, 240, 235, 0.22),
    transparent
  );
  filter: blur(0.5px);
}

.cs-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  transform-origin: 64% 44%;
}

/* Very slow, subtle camera drift — STILL media only. A <video> hero keeps
   its own camera movement and is never drifted by CSS. */
.cs-hero__plate,
.cs-hero__media:not(video) {
  animation: cs-drift 26s var(--ease) infinite alternate;
}

/* fine film grain over the media */
.cs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* legibility scrim — functional only: darkens toward the copy */
.cs-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      98deg,
      var(--bg) 5%,
      rgba(11, 11, 11, 0.62) 33%,
      rgba(11, 11, 11, 0.06) 62%,
      rgba(11, 11, 11, 0) 78%
    ),
    linear-gradient(
      to top,
      var(--bg) 3%,
      rgba(11, 11, 11, 0.34) 24%,
      rgba(11, 11, 11, 0) 50%
    ),
    linear-gradient(
      to bottom,
      rgba(11, 11, 11, 0.5) 0%,
      rgba(11, 11, 11, 0) 22%
    );
}

.cs-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    120% 90% at 62% 42%,
    transparent 46%,
    rgba(0, 0, 0, 0.42) 100%
  );
}

/* far-left vertical hairline, echoing the main site hero */
.cs-frame-line {
  position: absolute;
  left: calc(var(--gutter) - clamp(14px, 2vw, 34px));
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  z-index: 0;
}

/* ---------------------------- BRAND ---------------------------- */
.cs-head {
  position: relative;
  z-index: 2;
}
.cs-brand {
  display: inline-block;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  padding-left: 0.42em;
  color: var(--ink);
}

/* ---------------------------- CONTENT ---------------------------- */
.cs-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
  max-width: min(660px, 92vw);
}

.cs-eyebrow {
  font-size: 0.66rem;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: clamp(24px, 3.4vh, 44px);
}

.cs-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.7vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
  max-width: 17ch;
  margin-bottom: clamp(24px, 3.4vh, 38px);
}

.cs-body {
  color: var(--ink-dim);
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  max-width: 46ch;
  margin-bottom: clamp(32px, 4.4vh, 52px);
}

/* CTA — the restrained outlined button language from the Scelta site */
.cs-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t-hover) var(--ease),
    border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.cs-cta:hover {
  background: var(--hover);
  border-color: var(--line-3);
}
.cs-cta__arrow {
  display: inline-block;
  transition: transform var(--t-hover) var(--ease);
}
.cs-cta:hover .cs-cta__arrow {
  transform: translateX(4px);
}

/* ---------------------------- FOOTER ---------------------------- */
.cs-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}
.cs-foot__mark {
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cs-foot__legal {
  display: flex;
  gap: 20px;
}
.cs-foot__legal a {
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color var(--t-hover) var(--ease);
}
.cs-foot__legal a:hover {
  color: var(--ink);
}

/* ---------------------------- LOAD MOTION ---------------------------- */
[data-seq] {
  opacity: 0;
}
body.cs-ready [data-seq="0"] {
  animation: cs-rise 640ms var(--ease-out) 120ms both;
}
body.cs-ready [data-seq="1"] {
  animation: cs-rise 640ms var(--ease-out) 320ms both;
}
body.cs-ready [data-seq="2"] {
  animation: cs-rise 760ms var(--ease-out) 500ms both;
}
body.cs-ready [data-seq="3"] {
  animation: cs-rise 640ms var(--ease-out) 720ms both;
}
body.cs-ready [data-seq="4"] {
  animation: cs-rise 640ms var(--ease-out) 900ms both;
}

@keyframes cs-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes cs-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.045) translate3d(-0.6%, -0.4%, 0);
  }
}

/* ---------------------------- RESPONSIVE ---------------------------- */
@media (max-width: 900px) {
  .cs-content {
    max-width: min(560px, 92vw);
  }
  .cs-hero__media,
  .cs-hero__plate {
    object-position: 64% 46%;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: clamp(22px, 7vw, 40px);
  }

  .cs {
    padding-top: clamp(20px, 3.5vh, 32px);
    padding-bottom: clamp(26px, 5vh, 40px);
  }

  .cs-frame-line {
    display: none;
  }

  .cs-content {
    max-width: none;
  }

  .cs-title {
    font-size: clamp(2.15rem, 8.8vw, 3rem);
    max-width: 15ch;
  }
  .cs-body {
    max-width: 40ch;
  }

  /* keep the cinematic image present — recompose the scrim so the copy
     reads over a stronger bottom-up fade rather than hiding the image */
  .cs-hero__scrim {
    background:
      linear-gradient(
        to top,
        var(--bg) 9%,
        rgba(11, 11, 11, 0.74) 42%,
        rgba(11, 11, 11, 0.16) 70%,
        rgba(11, 11, 11, 0) 88%
      ),
      linear-gradient(
        to bottom,
        rgba(11, 11, 11, 0.44) 0%,
        rgba(11, 11, 11, 0) 32%
      );
  }
  .cs-hero__vignette {
    background: radial-gradient(
      130% 70% at 50% 30%,
      transparent 40%,
      rgba(0, 0, 0, 0.45) 100%
    );
  }
}

/* short-and-wide (e.g. 1440×900 and below): tighten the vertical rhythm */
/* ---------------------------- REDUCED MOTION ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .cs-hero__plate,
  .cs-hero__media {
    animation: none;
    transform: scale(1.02);
  }
  [data-seq] {
    opacity: 1;
    transform: none;
  }
}
