/* luxfall.app, direction B (Stage) with C's sentence-by-sentence text.
   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; }

/* The stage: a sand figure fills the first screen behind a thin, wide name. */
.stage { position: relative; min-height: min(100svh, 1000px); display: grid; place-items: center; text-align: center;
  overflow: hidden; padding: max(40px, env(safe-area-inset-top)) 20px 60px; }
/* Rome 19:40: the logo is the centrepiece, about a third of the screen's
   height on desktop and most of the width on a phone; never above 512 CSS px
   (its 1024 px source at 2x), so it stays crisp. */
.logo { display: block; margin: 0 auto 26px; width: min(36vh, 512px); height: auto; aspect-ratio: 1;
  border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 220, 150, .18), 0 24px 80px rgba(0, 0, 0, .8), 0 0 90px rgba(255, 200, 110, .16); }
@media (max-width: 699px) { .logo { width: min(70vw, 512px); } }
#sand { position: absolute; inset: -6%; width: 112%; height: 112%; animation: drift 48s ease-in-out infinite alternate; transform-origin: 50% 55%; }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.stage-in { position: relative; z-index: 1; }
h1 { font-size: clamp(52px, 12vw, 136px); font-weight: 200; letter-spacing: .06em; line-height: 1; margin: 0 0 22px;
  text-shadow: 0 0 60px rgba(95, 224, 138, .45), 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; }
@keyframes drift {
  from { transform: scale(1) rotate(0deg); opacity: .92; }
  to { transform: scale(1.06) rotate(1.4deg); opacity: 1; }
}

main { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }

/* C's text: one sentence at a time, large, down a lit line. */
.spine { position: relative; margin: 0 0 0 8px; padding: 6px 0 0 34px; border-left: 1px solid rgba(95, 224, 138, .35); max-width: 860px; }
.spine::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 120px; background: linear-gradient(var(--green), transparent); }
.spine p { position: relative; margin: 0 0 38px; font-size: clamp(21px, 2.9vw, 32px); line-height: 1.32; font-weight: 500; color: #e3f3ea;
  text-wrap: pretty; max-width: 24em; }
.spine p:last-child { margin-bottom: 0; }
.spine p::before { content: ""; position: absolute; left: -41px; top: .5em; width: 13px; height: 13px; border-radius: 50%;
  background: #9dffb9; box-shadow: 0 0 14px var(--green); }

/* Frames for Rome's own film and stills, later. Empty on purpose. */
/* minmax(0, 1fr): a frame's aspect ratio must never widen the page. */
.frames { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.frame { border: 1px solid rgba(120, 255, 160, .22); background:
  linear-gradient(180deg, rgba(95, 224, 138, .04), rgba(90, 209, 230, .03)), #040807;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.film { width: 100%; aspect-ratio: 21 / 9; }
.stills { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.stills .frame { width: 100%; }
.stills .frame { aspect-ratio: 16 / 10; }

/* 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; }
.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) {
  .stills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  main { gap: 72px; }
}

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