/* Sane Weekly, "film" look: continuity with the X banner (07-brand/exports/banner-x.jpeg).
   Measured on the banner: faded teal sky #748A8E to #A3B0A6, cream clouds #D8D3BC, cloud shadow #A8AC9B,
   warm terracotta #AD724B, no true black or white (luminance 77 to 220), heavy film grain.
   Loaded after sane.css, only when <html data-look="film">. Same structure, controls and fixes as Brand Board v1. */
[data-look=film]{
  --bg:#8FA39F;--ink:#1F1A15;--ink-2:#3A322A;--mute:#3F3A33;--faint:#5E5A51;
  --glass:rgba(243,238,224,.38);--glass-2:rgba(243,238,224,.54);--glass-3:rgba(243,238,224,.74);
  --edge:rgba(255,251,240,.72);--line:rgba(31,26,21,.10);--line-2:rgba(31,26,21,.17);
  --shadow:0 1px 1px rgba(40,30,20,.05),0 12px 32px -12px rgba(40,30,20,.24);
  --shadow-l:0 2px 4px rgba(40,30,20,.05),0 40px 80px -28px rgba(40,30,20,.34);
  --spec:rgba(255,248,232,.9);--ember:#9C4F28;--ember-ink:#F6F1E4;--solid:#251E18;--solid-ink:#F3EEE2;
  --terra:#7A4A2E;
}
[data-look=film][data-theme=dark]{
  --bg:#10181A;--ink:#EEE8D9;--ink-2:#D3CBB8;--mute:#ABA493;--faint:#7F7A6E;
  --glass:rgba(22,30,32,.40);--glass-2:rgba(28,36,38,.56);--glass-3:rgba(34,42,44,.76);
  --edge:rgba(255,246,226,.10);--line:rgba(238,232,217,.09);--line-2:rgba(238,232,217,.16);
  --spec:rgba(255,240,215,.16);--ember:#D9875C;--ember-ink:#1F1A15;--solid:#EEE8D9;--solid-ink:#1F1A15;
  --terra:#D9A27E;
}
[data-look=film] body{background:var(--bg)}
[data-look=film] .sky-fallback{background:linear-gradient(180deg,#6D8589,#A2ADA4)}
[data-look=film][data-theme=dark] .sky-fallback{background:linear-gradient(180deg,#0D1315,#1B1F1E)}

/* film grain over the sky (under the text and glass, so type stays crisp) */
[data-look=film],[data-look=film] body{overflow-x:clip}
[data-look=film] body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.30;mix-blend-mode:overlay;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 1s steps(6) infinite}
[data-look=film][data-theme=dark] body::after{opacity:.22}
@keyframes grain{0%{background-position:0 0}17%{background-position:-37px 23px}33%{background-position:29px -51px}50%{background-position:-61px -13px}67%{background-position:43px 41px}83%{background-position:-11px 67px}100%{background-position:0 0}}
/* a soft cream haze behind the promise, like the light between the two hands */
[data-look=film] .hero{position:relative}
[data-look=film] .hero::before{content:"";position:absolute;left:50%;top:50%;width:min(980px,100vw);height:min(720px,110vh);transform:translate(-50%,-50%);z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side,rgba(238,232,214,.42),rgba(238,232,214,.16) 55%,transparent);filter:blur(10px);transition:opacity .7s var(--ease-out)}
[data-look=film][data-theme=dark] .hero::before{background:radial-gradient(closest-side,rgba(8,14,20,.40),rgba(8,14,20,.12) 55%,transparent)}

/* type: warm ink, the italic in the banner's terracotta */
[data-look=film] h1{color:var(--ink)}
[data-look=film] h1 em{color:var(--terra)}
[data-look=film] .k{color:var(--ink-2)}
[data-look=film] .fine{color:var(--faint)}

/* glass: cream-tinted, warm shadows */
[data-look=film] .glass{background-image:linear-gradient(180deg,rgba(255,250,236,.20),rgba(255,250,236,0) 40%)}
[data-look=film][data-theme=dark] .glass{background-image:linear-gradient(180deg,rgba(255,240,215,.04),rgba(255,240,215,0) 40%)}
[data-look=film] .theme .th{background:linear-gradient(180deg,rgba(255,251,240,.96),rgba(246,240,226,.7));box-shadow:inset 0 1px 0 #FFFCF4,0 1px 2px rgba(40,30,20,.14),0 4px 10px -3px rgba(40,30,20,.22)}
[data-look=film][data-theme=dark] .theme .th{background:linear-gradient(180deg,rgba(255,244,222,.18),rgba(255,244,222,.07));box-shadow:inset 0 1px 0 rgba(255,244,222,.2),0 1px 2px rgba(0,0,0,.5),0 6px 14px -4px rgba(0,0,0,.6)}
[data-look=film] .field{box-shadow:inset 0 1px 0 var(--edge),inset 0 0 0 1px var(--line-2),0 1px 1px rgba(40,30,20,.05),0 18px 40px -16px rgba(40,30,20,.32)}
[data-look=film] .field:focus-within{box-shadow:inset 0 1px 0 var(--edge),inset 0 0 0 1px var(--ember),0 0 0 4px color-mix(in srgb,var(--ember) 16%,transparent),0 18px 40px -16px rgba(40,30,20,.32)}

/* Join: deep sepia in Day (no brightening on hover, as validated), warm cream in Night */
[data-look=film] .b-solid.gb{background:linear-gradient(180deg,#4B3E33 0%,#2A221C 55%,#1C1612 100%);color:#F3EEE2;
  box-shadow:inset 0 -2px 6px rgba(0,0,0,.4),0 1px 2px rgba(40,30,20,.28),0 10px 22px -10px rgba(40,30,20,.55),0 22px 44px -24px rgba(40,30,20,.5)}
@media (hover:hover) and (pointer:fine){[data-look=film] .b-solid.gb:hover{box-shadow:inset 0 -2px 6px rgba(0,0,0,.4),0 1px 2px rgba(40,30,20,.28),0 16px 30px -12px rgba(40,30,20,.6),0 32px 60px -26px rgba(40,30,20,.55),0 0 0 4px rgba(31,26,21,.07)}}
[data-look=film][data-theme=dark] .b-solid.gb{background:linear-gradient(180deg,#FBF6EA 0%,#E8DFCB 60%,#D3C8B0 100%);color:#1F1A15;
  box-shadow:inset 0 -2px 4px rgba(40,30,20,.16),0 1px 2px rgba(0,0,0,.4),0 12px 28px -10px rgba(0,0,0,.8)}
[data-look=film] .chips button[aria-pressed=true],[data-look=film] .hero .seat[aria-pressed=true]{background:var(--solid);color:var(--solid-ink)}

/* banner sky (Weekly only, Day only since 2026-11-17: no Night, no toggle, no top bar). No moving grain:
   the only texture is a fixed, faint film grain drawn in the shader. A soft cream light behind the promise so the text stays crisp over the clouds */
[data-look=film][data-sky=banner] body::after{content:none;animation:none}
[data-look=film][data-sky=banner] .sky-fallback{background:linear-gradient(180deg,#74898D,#899D9D 50%,#98A8A2) fixed}
/* the sky is a fixed layer of its own: it never scrolls with long pages (/r/...), on any browser */
[data-look=film][data-sky=banner] #sky{position:fixed;top:0;left:0;right:0;bottom:auto;width:100vw;height:100vh;height:100lvh;transform:translateZ(0);will-change:transform;pointer-events:none}

/* Weekly foreground, 2026-11-17: the banner sky stays behind, the interface is neutral Apple pearl, calibrated on the
   X avatar (07-brand/exports/sane-avatar-pearl-800.png = solid pearl #F2F2F4, ink #0E0F11). No sepia, cream or terracotta
   in front: pearl frosted glass, white specular edges, graphite ink, a black Join. The whole block sits at the exact
   centre of the window (no top bar any more). */
[data-look=film][data-sky=banner]{
  --ink:#0E0F11;--ink-2:#2A2C31;--mute:#33363C;--faint:#4A4D54;
  --glass:rgba(242,242,244,.46);--glass-2:rgba(242,242,244,.62);--glass-3:rgba(242,242,244,.80);
  --edge:rgba(255,255,255,.92);--line:rgba(14,15,17,.07);--line-2:rgba(14,15,17,.12);
  --shadow:0 1px 1px rgba(14,15,17,.04),0 12px 32px -12px rgba(14,15,17,.20);
  --shadow-l:0 2px 4px rgba(14,15,17,.04),0 40px 80px -28px rgba(14,15,17,.30);
  --spec:rgba(255,255,255,.95);--ember:#0E0F11;--ember-ink:#fff;--solid:#0E0F11;--solid-ink:#fff;--terra:#2A2C31;
}
[data-look=film][data-sky=banner] .solo{min-height:100vh;min-height:100dvh;padding:max(24px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom))}
[data-look=film][data-sky=banner] .hero::before{background:radial-gradient(closest-side,rgba(242,242,244,.30),rgba(242,242,244,.10) 60%,transparent)}
[data-look=film][data-sky=banner] h1 em{color:var(--ink-2)}
[data-look=film][data-sky=banner] .glass{background-image:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,0) 40%)}
[data-look=film][data-sky=banner] .field{background:linear-gradient(180deg,rgba(248,248,250,.72),rgba(238,238,241,.56));
  -webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%);
  box-shadow:inset 0 1px 0 var(--edge),inset 0 -1px 0 rgba(14,15,17,.04),inset 0 0 0 1px rgba(255,255,255,.38),0 0 0 1px var(--line),0 1px 1px rgba(14,15,17,.05),0 18px 40px -16px rgba(14,15,17,.30)}
[data-look=film][data-sky=banner] .field:focus-within{box-shadow:inset 0 1px 0 var(--edge),inset 0 -1px 0 rgba(14,15,17,.04),inset 0 0 0 1px rgba(255,255,255,.38),0 0 0 1px rgba(14,15,17,.34),0 0 0 5px rgba(255,255,255,.34),0 18px 40px -16px rgba(14,15,17,.30)}
[data-look=film][data-sky=banner] .field input::placeholder{color:#6B6E75}
/* Join: Apple black, same colour at rest and on hover (only the lift and shadow move) */
[data-look=film][data-sky=banner] .b-solid.gb{background:linear-gradient(180deg,#2E3035 0%,#141518 55%,#0A0B0C 100%);color:#fff;
  box-shadow:inset 0 -2px 6px rgba(0,0,0,.45),0 1px 2px rgba(14,15,17,.25),0 10px 22px -10px rgba(14,15,17,.55),0 22px 44px -24px rgba(14,15,17,.5)}
@media (hover:hover) and (pointer:fine){[data-look=film][data-sky=banner] .b-solid.gb:hover{box-shadow:inset 0 -2px 6px rgba(0,0,0,.45),0 1px 2px rgba(14,15,17,.25),0 16px 30px -12px rgba(14,15,17,.6),0 32px 60px -26px rgba(14,15,17,.55),0 0 0 4px rgba(14,15,17,.06)}}

@media (prefers-reduced-motion:reduce){[data-look=film] body::after{animation:none}}
