/* luxfall.app, direction B refined: full-bleed rain hero, compact prose.
   The Living instrument palette: deep green-black glass, lit green, a green-to-cyan trace. */
:root {
  --bg: #020705;
  --fg: #e6f2ea;
  --dim: #9fb5aa;
  --green: #5fe08a;
  --cyan: #5ad1e6;
  --edge: rgba(150, 172, 176, .34);
  --glass1: #0b1513;
  --glass2: #060c0b;
  --amber: #ffcf6a;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; overflow-x: hidden; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Full-bleed rain: the app's own radiant render, filling the first screen. */
.hero { position: relative; min-height: 100svh; min-height: 100dvh; display: grid; place-items: end center;
  text-align: center; overflow: hidden; color: var(--fg);
  padding: 0 20px max(52px, env(safe-area-inset-bottom)); }
picture.hero-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-still img, img.hero-still, .hero-rain { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%; }
.hero-rain { z-index: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to top, #020705 0%, rgba(2,7,5,.78) 26%, rgba(2,7,5,.2) 48%, transparent 68%),
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(2,7,5,.5), transparent 60%); }
.hero-in { position: relative; z-index: 3; padding-bottom: 8px; }
.logo { display: block; margin: 0 auto 18px; width: min(22vh, 200px); height: auto; aspect-ratio: 1;
  border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 220, 150, .18), 0 16px 50px rgba(0, 0, 0, .7), 0 0 50px rgba(255, 200, 110, .14); }
h1 { font-size: clamp(44px, 9vw, 96px); font-weight: 200; letter-spacing: .06em; line-height: 1; margin: 0 0 16px;
  text-shadow: 0 0 50px rgba(95, 224, 138, .35), 0 2px 0 #000; }
.status { margin: 0; }
.lit { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 15px; border: 1px solid #7df0a0;
  background: linear-gradient(#2c6a40, #1b452a); color: #eafff0; font: 700 12px/1 -apple-system, system-ui, sans-serif;
  letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 0 18px rgba(95, 224, 138, .28); }
.lit b { width: 7px; height: 7px; border-radius: 50%; background: #9dffb9; box-shadow: 0 0 8px #9dffb9; }

main { max-width: 1080px; margin: 0 auto; padding: 12px 24px 0; display: grid; gap: 56px; }

/* Compact flowing prose — no spine, no bullets. */
.story { max-width: 40em; margin: 0 auto; }
.story h2 { font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .01em;
  line-height: 1.2; margin: 0 0 16px; color: var(--fg); text-wrap: pretty; }
.story p { font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.62; font-weight: 400;
  color: #d5e4db; margin: 0 0 1.2em; text-wrap: pretty; }
.story p:last-of-type { margin-bottom: 0; }
.shot { margin: 28px auto 8px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid rgba(120, 255, 160, .18);
  background: #040807; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.shot.dial { margin: 28px auto 0; max-width: 280px; }
.shot.dial img { border-radius: 4px; }
.shot.plate { margin: 36px auto 0; max-width: 800px; }
.shot.plate img { border-radius: 2px; }
.rome-clip { margin: 36px auto 0; max-width: 800px; }
.rome-clip[hidden] { display: none !important; }
.rome-clip video { display: block; width: 100%; height: auto; background: #040807;
  border: 1px solid rgba(120, 255, 160, .18); }

@media (min-width: 900px) {
  .story { max-width: none; }
  .lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, 280px);
    gap: 48px 56px; align-items: center; max-width: 1080px; margin: 0 auto 8px; }
  .lead .copy { max-width: 36em; }
  .lead .shot.dial { margin: 0; max-width: none; }
  /* Keep the second paragraph aligned with the heading, not centered under the dial. */
  .story > p { max-width: 1080px; margin-left: auto; margin-right: auto;
    padding-right: calc(280px + 56px); box-sizing: border-box; }
}

/* Glass panels with a cut corner, as in the app. */
.two { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.panel { background: var(--edge); padding: 1px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.panel > .in { height: 100%; padding: 22px; background: linear-gradient(180deg, var(--glass1), var(--glass2));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.head { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.head span { font: 700 12px/1 -apple-system, system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.head i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--green), var(--cyan) 60%, transparent); }
.slot { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed rgba(120, 255, 160, .4); background: #040807; color: var(--dim); text-align: center; padding: 18px; }
.slot strong { color: var(--fg); font-weight: 600; }
.app-icon { display: block; width: 88px; height: 88px; border-radius: 22%; margin: 0 auto 10px;
  box-shadow: 0 0 0 1px rgba(255, 220, 150, .18), 0 10px 28px rgba(0, 0, 0, .65), 0 0 28px rgba(255, 200, 110, .14); }
.cap { font: 600 11px/1 -apple-system, system-ui, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--green); }
label { display: block; margin: 10px 0 6px; font: 600 11px/1 -apple-system, system-ui, sans-serif; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green); }
input, textarea, button { font: inherit; font-size: 16px; width: 100%; min-height: 44px; padding: 10px 12px; color: var(--fg);
  background: #040908; border: 1px solid var(--edge); border-radius: 0; }
textarea { min-height: 88px; resize: vertical; }
button { width: auto; min-width: 150px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
  background: #0a1512; cursor: pointer; }
.row { margin: 12px 0 0; }
.note { min-height: 1.5em; color: var(--amber); font-size: 14px; margin: 10px 0 0; }

.foot { color: #7f968b; font-size: 13px; text-align: center; padding: 48px 16px max(40px, env(safe-area-inset-bottom)); }

@media (min-width: 820px) {
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

/* Reduced motion: the rain holds still on the official still. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-rain { display: none; }
}
