/* ============================================================================
   Z Netron, Coming Soon, Cinema
   Brand palette: near-black warming into deep teal, bright teal accent
   (mirrors apps/web globals.css and apps/mobile theme/colors.ts)
   Fonts: Playfair Display (display) - Inter (body) - IBM Plex Mono (plate)
   ============================================================================ */

:root {
  --color-text:        #f2f6f6;
  --color-bg:          #04080a;
  --color-surface:     #0b1417;
  --color-primary:     #78e0d8;
  --color-on-primary:  #04080a;
  --color-secondary:   #0d2426;
  --color-accent:      #78e0d8;
  --color-border:      #26302f;

  /* Photographic grades, imagery only, never a text background */
  --veil:              #04080a;
  --footlight:         #78e0d8;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --edge:     clamp(20px, 5vw, 48px);
  --edge-wide: clamp(48px, 10vw, 160px);

  --maxw: 1240px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --r-1: 4px;
  --r-2: 8px;
  --r-3: 16px;

  --fold-h: clamp(640px, 100svh, 1080px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--color-primary); color: var(--color-on-primary); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--edge);
  top: -64px;
  z-index: 100;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--r-1);
  font-size: 14px;
  font-weight: 500;
  transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: translateY(76px); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* Grain, one subtle full-page texture over flat areas. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

/* Nav, one quiet bar. Nothing on this page to navigate to. */
.bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-6);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.mark { flex: none; }

.wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Fold, the stage. The background is the app's own signature wash (near-black
   easing into deep teal) plus a slow light field drawn on canvas. */
.fold {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--fold-h);
  padding: var(--space-16) var(--edge) var(--space-24);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-bg);
  background-image: linear-gradient(180deg,
    #010304 0%,
    var(--color-bg) 38%,
    #081a1c 78%,
    #0d2a2b 100%);
}

/* Drift: the canvas light field. Paints soft teal light that breathes and
   drifts, layered over the wash. */
.drift {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Vignette: keeps the edges dark so the headline stays the focal point and
   the fold never washes out, no matter where the light drifts. */
.fold-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% 44%, transparent 0%, transparent 44%,
      rgba(4, 8, 10, 0.42) 76%, rgba(4, 8, 10, 0.72) 100%),
    linear-gradient(180deg,
      rgba(4, 8, 10, 0.72) 0%,
      rgba(4, 8, 10, 0.30) 30%,
      rgba(4, 8, 10, 0.12) 56%,
      rgba(4, 8, 10, 0.46) 82%,
      rgba(4, 8, 10, 0.84) 100%);
}

.fold-glow {
  position: absolute;
  left: 50%;
  bottom: -14%;
  z-index: 1;
  transform: translateX(-50%);
  width: min(960px, 124vw);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background: radial-gradient(circle at center bottom,
    color-mix(in srgb, var(--footlight) 24%, transparent) 0%,
    transparent 64%);
}

/* Fold content */
.fold-inner {
  position: relative;
  z-index: 2;
  max-width: 44ch;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-6) 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* The eyebrow rule wraps the text on narrow screens; the text keeps its
   letter-spacing and stays on one line. */
.eyebrow-text { white-space: nowrap; }

.eyebrow-rule {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  flex: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 11.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 var(--space-6) 0;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
}

/* Manifesto, the page's only body-copy beat. */
.manifesto {
  position: relative;
  padding-block: clamp(72px, 13vh, 140px) clamp(56px, 10vh, 104px);
  border-top: 1px solid var(--color-border);
}

/* The continuous hairline crossing fold, manifesto and footer. */
.proscenium {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--color-accent) 55%, transparent) 30%,
    color-mix(in srgb, var(--color-accent) 55%, transparent) 70%,
    transparent 100%);
}

.manifesto-line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 4.6vw, 2.6rem);
  line-height: 1.34;
  letter-spacing: -0.012em;
  max-width: 22ch;
}

.manifesto-line + .manifesto-line { margin-top: 0.18em; }

.manifesto-line:last-child {
  color: var(--color-accent);
}

/* Footer */
.foot {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-8) var(--space-12);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
}

.lockup-foot .wordmark { font-size: 16px; }

/* Company block: the quiet legal line sits under the coming-soon plate,
   both right-aligned on desktop, stacked on mobile. */
.foot-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.foot-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
}

.foot-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Accessibility helper */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Motion, entrance only. */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 620ms var(--ease),
    transform 620ms var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .bar { padding-block: var(--space-4); }
  .fold {
    min-height: max(560px, 92svh);
    padding: var(--space-12) var(--edge) var(--space-16);
  }
  .fold-inner { max-width: 100%; }
  .eyebrow { font-size: 10px; letter-spacing: 0.16em; }
  .display { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .lede { font-size: 1rem; }
  .manifesto-line { font-size: clamp(1.25rem, 7.4vw, 1.8rem); }
  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .foot-meta { justify-items: start; text-align: left; }
}

/* --- The reveal panels ------------------------------------------------- */
/* Two halves that part once on load, like a house opening. Not a photo
 * curtain anymore, just a clean wipe of the brand's own dark, so the
 * gesture survives without the imagery it was built for. Removed under
 * reduced motion (page.js removes them). The fold copy is visible by
 * default, so they are decoration and can never trap content. */
.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  z-index: 3;
  pointer-events: none;
  background: var(--color-bg);
}

.curtain[data-curtain-left] {
  left: 0;
  box-shadow: inset -18px 0 34px -18px rgba(0, 0, 0, 0.9);
}

.curtain[data-curtain-right] {
  right: 0;
  box-shadow: inset 18px 0 34px -18px rgba(0, 0, 0, 0.3);
}

.fold-inner { opacity: 0; }

html.is-ready .fold-inner { opacity: 1; }

html.is-static .curtain { display: none; }
