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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
/* =============================================================================

   Lightloom — stage.css · "La Sala" projection-room look & layout

   Built entirely on css/tokens.css. Warm darkness, amber projector glow.

   NEVER blue tech dark-mode. No frameworks, no build step.



   Sections:

     0. Reset & base       4. Lobby (S0) + projector beam

     1. Screens & geometry 5. The Set (S1): HUD, subtitles, stage-bar

     2. Global post-FX      6. The Slate (hero clapperboard) + mobile sheet

     3. Shared atoms        7. Theater / Showcase / About

        (pills, links)      8. Reduced motion + responsive/mobile

   ========================================================================== */

/* ---------- 0. Reset & base ------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden; /* screens manage their own scroll */
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: var(--amber);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 1. Screens & geometry ----------------------------------------- */
#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  /* A faint warm floor-glow so the room is never flat black. */
  background:
    radial-gradient(120% 80% at 50% 118%, rgba(232, 163, 61, 0.06), transparent 60%),
    var(--bg);
}

/* Each screen is a full-bleed layer; only .is-active is shown. We crossfade

   rather than hard-cut between screens (cinema, not tab-switch). */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--transition-ms) var(--ease),
    visibility 0s linear var(--transition-ms);
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--transition-ms) var(--ease),
    visibility 0s;
}

.screen__heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ---------- 2. Global post-FX (grain + vignette) -------------------------- */
/* These sit above all screens; pointer-events:none so they never block input.

   The animated film grain is a tiled SVG noise nudged every frame; the WebGL

   stage paints its own grain too, but this guarantees the whole ROOM grains. */
.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.fx--grain {
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  animation: grain-shift 0.6s steps(4) infinite;
  will-change: transform;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -4%); }
  75% { transform: translate(-2%, 3%); }
  100% { transform: translate(3%, -2%); }
}

/* Radial vignette ~12% (token --vignette) darkens the room edges. */
.fx--vignette {
  background: radial-gradient(
    120% 100% at 50% 45%,
    transparent 55%,
    rgba(0, 0, 0, calc(var(--vignette) * 4)) 100%
  );
}

/* ---------- 3. Shared atoms (pills, links, toast) ------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.62em 1.05em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(245, 239, 230, 0.04);
  color: var(--ink-dim);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pill:hover {
  color: var(--ink);
  border-color: var(--amber-soft);
  background: var(--amber-soft);
}
.pill[aria-pressed="true"] {
  color: var(--amber);
  border-color: rgba(232, 163, 61, 0.4);
  box-shadow: var(--halo-soft);
}
.pill__icon,
.pill__flag {
  font-size: 0.95em;
  line-height: 1;
}

/* REC-accented call to action (Roll / Cut). */
.pill--rec {
  color: var(--ink);
  border-color: rgba(224, 68, 46, 0.5);
  background: rgba(224, 68, 46, 0.12);
}
.pill--rec:hover {
  border-color: var(--rec);
  background: rgba(224, 68, 46, 0.22);
  box-shadow: 0 0 20px rgba(224, 68, 46, 0.25);
}

.pill--lang {
  font-variant: tabular-nums;
  letter-spacing: 0.06em;
}
.pill--icon {
  padding: 0.5em 0.7em;
}

.ghostlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 0.4em 0;
  transition: color 0.25s var(--ease);
}
.ghostlink:hover {
  color: var(--amber);
}

.linklike {
  background: none;
  border: none;
  padding: 0;
  color: var(--amber);
  font-size: inherit;
}
.linklike:hover {
  text-decoration: underline;
}

/* Soft-error toast: amber, slides up from bottom-center. */
.toast {
  position: fixed;
  left: 50%;
  bottom: 6vh;
  transform: translate(-50%, 1.2rem);
  z-index: 80;
  max-width: min(90vw, 30rem);
  padding: 0.85em 1.3em;
  border: 1px solid rgba(232, 163, 61, 0.45);
  border-radius: var(--r-pill);
  background: rgba(27, 18, 6, 0.92);
  color: var(--ink);
  box-shadow: var(--halo);
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 4. Lobby (S0) + volumetric projector beam --------------------- */
#lobby {
  padding: clamp(1.2rem, 3vw, 2.4rem);
  text-align: center;
  z-index: 10;
}

.lobby__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: var(--tracking-title);
  color: var(--ink-dim);
}
.brandmark__dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px rgba(224, 68, 46, 0.7);
}

/* Volumetric amber beam: a clipped cone from a top-right "lamp" sweeping down

   across the dim room. Layered cone + drifting dust + a glowing lamp source. */
.beam {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.beam__cone {
  position: absolute;
  top: -16%;
  right: -6%;
  width: 86%;
  height: 150%;
  /* The cone narrows toward the lamp (top-right) and widens to the screen. */
  background: conic-gradient(
    from 210deg at 96% 4%,
    transparent 0deg,
    rgba(232, 163, 61, 0.16) 14deg,
    rgba(232, 163, 61, 0.05) 30deg,
    transparent 44deg
  );
  filter: blur(6px);
  mix-blend-mode: screen;
  transform-origin: top right;
  animation: beam-breathe 7s var(--ease) infinite;
}
.beam__dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 70% 30%, rgba(245, 239, 230, 0.5), transparent 60%),
    radial-gradient(1px 1px at 60% 55%, rgba(245, 239, 230, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 65%, rgba(232, 163, 61, 0.5), transparent 60%),
    radial-gradient(1px 1px at 52% 40%, rgba(245, 239, 230, 0.35), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: dust-drift 16s linear infinite;
}
.beam__lamp {
  position: absolute;
  top: 2%;
  right: 3%;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.85), rgba(232, 163, 61, 0.12) 60%, transparent 72%);
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: lamp-flicker 4.5s steps(8) infinite;
}

@keyframes beam-breathe {
  0%, 100% { opacity: 0.85; transform: rotate(0deg) scaleX(1); }
  50% { opacity: 1; transform: rotate(0.6deg) scaleX(1.03); }
}
@keyframes dust-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-3%); }
}
@keyframes lamp-flicker {
  0%, 100% { opacity: 0.9; }
  40% { opacity: 1; }
  55% { opacity: 0.82; }
  70% { opacity: 0.97; }
}

.lobby__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.4vh, 1.8rem);
  z-index: 2;
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 11vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
  text-shadow: var(--halo);
}
.title__word--amber {
  color: var(--amber);
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.55rem);
  color: var(--ink-dim);
  margin: 0;
  max-width: 34ch;
}

/* The two doors. */
.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.4rem);
  width: 100%;
  max-width: 42rem;
  margin-top: 0.4rem;
}
.door {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  text-align: left;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: linear-gradient(160deg, rgba(245, 239, 230, 0.05), rgba(245, 239, 230, 0.015));
  box-shadow: var(--panel-shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.door:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 163, 61, 0.45);
  box-shadow: var(--halo);
}
.door__icon {
  font-size: 1.7rem;
}
.door__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.door__sub {
  font-size: 0.86rem;
  color: var(--ink-faint);
}

/* Recital composer. */
.recital {
  width: 100%;
  max-width: 42rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: rgba(10, 10, 12, 0.6);
  box-shadow: var(--panel-shadow);
}
.recital__label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.recital__text {
  width: 100%;
  min-height: 8.5rem;
  resize: vertical;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.7);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.6;
}
.recital__text:focus-visible {
  border-color: var(--amber);
  outline: none;
  box-shadow: var(--halo-soft);
}
.recital__cite {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.recital__actions {
  display: flex;
  justify-content: flex-end;
}

.lobby__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  z-index: 2;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.foot__ledger strong {
  color: var(--ink-dim);
  font-variant: tabular-nums;
}
.foot__links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.foot__sep {
  color: var(--line);
}

/* ---------- 5. The Set (S1): stage, HUD, subtitles, stage-bar ------------- */
#set {
  display: grid;
  /* The stage spans full width; the slate floats over its right edge on

     desktop; controls sit on a bottom rail. */
  grid-template-rows: 1fr auto;
  padding: clamp(0.6rem, 1.6vw, 1.2rem);
  gap: clamp(0.6rem, 1.4vh, 1rem);
}

/* The 2.39:1 letterbox wrapper, centered. The black bars are the body bg, and

   the HUD lives in them. We size by available space and clamp to the aspect. */
.stage {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, calc((100dvh - 9.5rem) * var(--aspect-film)));
  aspect-ratio: var(--aspect-film);
  max-height: calc(100dvh - 8.5rem);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--halo), inset 0 0 120px rgba(0, 0, 0, 0.8);
}
.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* HUD lives in the (effectively black) top/bottom regions of the stage. */
.hud {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  z-index: 4;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.hud--top {
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
  padding: 0.7rem 1rem 0;
}
.hud__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-title);
  color: var(--ink);
}
.hud__counter {
  font-variant: tabular-nums;
}
.hud--budget {
  bottom: 0;
  left: 0;
  padding: 0 1rem 0.7rem;
}
.hud__rec {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 8px rgba(224, 68, 46, 0.8);
  animation: rec-pulse 1.6s var(--ease) infinite;
}
@keyframes rec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.78); }
}
.hud__budget-val {
  font-variant: tabular-nums;
}
/* JS adds .is-warning at 70% budget; the ledger turns amber. */
.hud--budget.is-warning {
  color: var(--amber);
}
.hud--budget.is-warning .hud__rec {
  background: var(--amber);
}

/* Subtitles: narrated words in Fraunces italic, AA-contrast scrim. */
.subtitles {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(82%, 46rem);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
  /* Layered text-shadow = readable over any frame without a hard box. */
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 0 24px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.subtitles.is-visible {
  opacity: 1;
}

/* Micro-stage bar: thin amber rail with chips that light up in sequence. */
.stage-bar {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.stage-bar.is-active {
  opacity: 1;
}
.stage-bar__chip {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  padding: 0.32em 0.7em;
  border-radius: var(--r-pill);
  color: var(--ink-faint);
  background: transparent;
  transition: color 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.stage-bar__chip.is-on {
  color: var(--bg);
  background: var(--amber);
  box-shadow: var(--halo-soft);
}
.stage-bar__chip.is-done {
  color: var(--amber);
}

/* Bottom control rail. */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- 6. The Slate (hero clapperboard) ------------------------------ */
/* On desktop the slate floats over the stage's right edge — a real prop in the

   room. Chalk-on-slate body with an amber accent and clapper sticks on top. */
.slate {
  position: absolute;
  top: clamp(0.8rem, 4vh, 3rem);
  right: clamp(0.8rem, 2vw, 2rem);
  z-index: 20;
  width: clamp(15rem, 22vw, 18.5rem);
  padding: 0.9rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  /* Slate-stone gradient, warm not blue. */
  background:
    linear-gradient(165deg, rgba(34, 32, 30, 0.96), rgba(18, 17, 16, 0.97));
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(245, 239, 230, 0.05);
  font-size: 0.82rem;
  /* Subtle chalk grain. */
  background-blend-mode: normal;
}
.slate__hinge {
  position: absolute;
  top: -6px;
  left: 1.1rem;
  right: 1.1rem;
  height: 6px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #3a3631, #211f1c);
}
/* Diagonal clapper sticks — the unmistakable clapperboard silhouette. */
.slate__sticks {
  position: absolute;
  top: -6px;
  left: 1.1rem;
  right: 1.1rem;
  height: 1.05rem;
  display: flex;
  gap: 0;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
  background: repeating-linear-gradient(
    -55deg,
    var(--ink) 0 0.85rem,
    #1b1a18 0.85rem 1.7rem
  );
}
.slate__sticks span {
  display: none;
}
/* When the decision flips, JS toggles .is-clapping for a quick snap. */
.slate.is-clapping .slate__sticks {
  animation: clap 0.32s var(--ease);
}
@keyframes clap {
  0% { transform: rotate(-9deg); }
  55% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

.slate__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(245, 239, 230, 0.16);
}
.slate__label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.slate__shot {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--amber);
  font-variant: tabular-nums;
}

/* The hero decision chip: a flip card. CONTINUITY (amber) <-> CUT (red). */
.slate__decision {
  display: flex;
  justify-content: center;
  margin: 0.8rem 0;
  perspective: 600px;
}
.decision-chip {
  position: relative;
  display: inline-block;
  min-width: 9.5rem;
  height: 2.5rem;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease);
}
.decision-chip__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  backface-visibility: hidden;
}
/* Front face = CONTINUITY (amber). */
.decision-chip__face--front {
  color: var(--bg);
  background: var(--amber);
  box-shadow: 0 0 22px rgba(232, 163, 61, 0.4);
}
/* Back face = CUT (red), pre-rotated so the flip reveals it. */
.decision-chip__face--back {
  color: var(--ink);
  background: var(--rec);
  box-shadow: 0 0 22px rgba(224, 68, 46, 0.45);
  transform: rotateX(180deg);
}
/* JS sets data-decision="cut" to flip to the red CUT face. */
.decision-chip[data-decision="cut"] {
  transform: rotateX(180deg);
}

.slate__grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.7rem;
}
.slate__row {
  min-width: 0;
}
.slate__row--wide {
  grid-column: 1 / -1;
}
.slate__row dt {
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 0.12rem;
}
.slate__row dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
  /* Camera/scale read as crisp chalk. */
  font-family: var(--font-ui);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.slate__palette {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.swatch {
  flex: 1;
  height: 1.4rem;
  border-radius: 5px;
  border: 1px solid rgba(245, 239, 230, 0.12);
  background: var(--line);
  transition: background 0.5s var(--ease);
}

.slate__translation {
  margin: 0.7rem 0 0;
  font-size: 0.74rem;
  font-style: italic;
  color: var(--ink-faint);
}

/* ---------- 7. Theater / Showcase / About --------------------------------- */
/* Theater: a red curtain that parts (1.2s) to reveal the film. */
#theater {
  align-items: center;
  justify-content: center;
}
.curtain {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.curtain__half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.28) 0 14px, transparent 14px 38px),
    linear-gradient(180deg, #7d1d16, #4a0f0b);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
  transition: transform 1.2s var(--ease);
}
.curtain__half--left {
  left: 0;
  transform-origin: left;
}
.curtain__half--right {
  right: 0;
  transform-origin: right;
}
/* JS adds .is-open on #theater to part the curtain. */
#theater.is-open .curtain__half--left {
  transform: translateX(-101%);
}
#theater.is-open .curtain__half--right {
  transform: translateX(101%);
}

.theater__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: min(94%, 60rem);
  z-index: 5;
}
.theater__screen {
  width: 100%;
  aspect-ratio: var(--aspect-film);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--halo);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.theater__placeholder {
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-style: italic;
}
.theater__transport {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.theater__note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* Showcase: grid of pre-rendered film cards, each visibly stamped. */
#showcase {
  padding: clamp(1.2rem, 3vw, 2.4rem);
  overflow-y: auto;
}
.showcase__banner {
  margin-bottom: 1.2rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(232, 163, 61, 0.4);
  border-radius: var(--r-panel);
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 0.92rem;
}
.showcase__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.showcase__head .screen__heading {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.2rem;
}
.film-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: rgba(245, 239, 230, 0.03);
  box-shadow: var(--panel-shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.film-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--halo);
}
.film-card__thumb {
  aspect-ratio: var(--aspect-film);
  background:
    radial-gradient(80% 120% at 70% 20%, var(--amber-soft), transparent 60%),
    linear-gradient(160deg, #161821, #0c0d10);
}
.film-card__stamp {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.28em 0.7em;
  border: 1px solid rgba(232, 163, 61, 0.6);
  border-radius: var(--r-pill);
  background: rgba(10, 10, 12, 0.7);
  color: var(--amber);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  transform: rotate(-3deg);
}
.film-card__title {
  margin: 0.8rem 1rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.film-card__src {
  margin: 0 1rem 1rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* About: a centered overlay panel above a dimmed room. */
.screen--overlay {
  background: rgba(6, 6, 8, 0.78);
  backdrop-filter: blur(8px);
  z-index: 60;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}
.about__panel {
  width: min(94%, 44rem);
  max-height: 86dvh;
  overflow-y: auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: linear-gradient(165deg, rgba(20, 19, 22, 0.98), rgba(12, 12, 14, 0.98));
  box-shadow: var(--halo);
}
.about__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.about__head .screen__heading {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.about__intro {
  font-size: 0.92rem;
  color: var(--ink-dim);
  margin: 0 0 1.2rem;
}
.about__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.about__table th,
.about__table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
.about__table th {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.about__table tfoot td {
  border-bottom: none;
  color: var(--amber);
  font-variant: tabular-nums;
}
.about__engine {
  margin: 1.2rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

/* ---------- 8. Reduced motion --------------------------------------------- */
/* Triggered by body.reduced-motion (manual toggle) OR prefers-reduced-motion.

   Kills the grain shimmer, beam breathing, dust drift, REC pulse, chip flip

   animation timing — crossfade-only, static grain. (Parallax k=0 is handled

   in the WebGL stage module via the same body class.) */
body.reduced-motion .fx--grain {
  animation: none;
}
body.reduced-motion .beam__cone,
body.reduced-motion .beam__dust,
body.reduced-motion .beam__lamp,
body.reduced-motion .hud__rec {
  animation: none;
}
body.reduced-motion .decision-chip,
body.reduced-motion .slate__sticks {
  transition-duration: 0.18s;
}
body.reduced-motion .slate.is-clapping .slate__sticks {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .fx--grain,
  .beam__cone,
  .beam__dust,
  .beam__lamp,
  .hud__rec {
    animation: none;
  }
}

/* ---------- 8b. Responsive / mobile --------------------------------------- */
@media (max-width: 860px) {
  .doors {
    grid-template-columns: 1fr;
  }

  /* Mobile letterbox switches to 16:9. */
  .stage,
  .theater__screen,
  .film-card__thumb {
    --aspect-film: var(--aspect-film-mobile);
  }
  .stage {
    width: 100%;
    max-height: calc(100dvh - 12rem);
  }

  /* The slate becomes a bottom sheet docked under the stage. */
  #set {
    grid-template-rows: 1fr auto auto;
  }
  .slate {
    position: static;
    width: 100%;
    order: 2;
    border-radius: var(--r-panel) var(--r-panel) 0 0;
    /* Sheet handle look. */
    border-bottom: none;
  }
  .slate__decision {
    margin: 0.6rem 0;
  }
  .controls {
    order: 3;
  }

  .subtitles {
    bottom: 16%;
    font-size: 1.05rem;
  }
  .hud {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
  .lobby__foot {
    justify-content: center;
    text-align: center;
  }
}

/* Very narrow phones: tighten the control rail so it never wraps awkwardly. */
@media (max-width: 480px) {
  .controls .pill span:not(.pill__icon):not(.pill__flag):not(.pill__lang) {
    display: none; /* icon-only controls; lang pill keeps its label */
  }
  .pill--rec span:not(.pill__icon) {
    display: inline; /* keep the primary CTA labeled */
  }
}