/* Liquid / September 2026. Presentation only; loaded after each page's styles. */
@import url('/liquid-shell.css?v=20260908');
@import url('/liquid-studios.css?v=20260908');

@property --liquid-angle {
  syntax: '<angle>';
  initial-value: 135deg;
  inherits: false;
}

:root:root {
  --ground: #000;
  --void: #000;
  --veil: #121214;
  --veil-2: #1b1b1e;
  --veil-3: #28282c;
  --veil-4: #37373d;
  --solid: #18181b;
  --solid-2: #101012;
  --panel: var(--veil);
  --panel-2: var(--veil-2);
  --panel-3: var(--veil-3);
  --panel-hover: var(--veil-3);
  --ink: #f4f4f5;
  --ink-2: #aaaab0;
  --ink-3: #929298;
  --ink-4: #77777f;
  --signal: #d4d5da;
  --signal-2: #ececf0;
  --on-signal: #101012;
  --glass-film-top: rgba(255,255,255,.055);
  --glass-film-bot: rgba(255,255,255,.014);
  --glass-rim-top: rgba(255,255,255,.19);
  --glass-rim-bottom: rgba(255,255,255,.045);
  --glass-ring: rgba(255,255,255,.065);
  --glass-glow: radial-gradient(120% 130% at 20% -35%, rgba(255,255,255,.055), transparent 72%);
  --glass-film: linear-gradient(165deg, var(--glass-film-top), var(--glass-film-bot));
  --glass-rim: inset 0 1px 0 var(--glass-rim-top), inset 0 -1px 0 var(--glass-rim-bottom), inset 0 0 0 1px var(--glass-ring);
  --glass-depth: inset 0 -5px 10px -7px rgba(0,0,0,.7);
  --glass-lift: 0 5px 16px rgba(0,0,0,.24);
  --glass-blur: none;
  --lift: 0 24px 70px rgba(0,0,0,.65);
  --liquid-surface: linear-gradient(160deg, #232326, #151517 60%, #19191c);
  --liquid-hairline: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.065);
  --liquid-stops: #74767d 0deg, #d9dedb 24deg, #778d8a 33deg, #323238 55deg, #29292d 132deg, #817785 155deg, #d5bfc7 168deg, #b4b9c8 185deg, #697f89 203deg, #303035 225deg, #333338 300deg, #989391 326deg, #cdd4d5 342deg, #74767d 360deg;
  color-scheme: dark;
  /* ONE PALETTE FOR EVERY PAGE (the owner, 2026-11-17: "make sure the other pages are with the same
     style and the color palette" as the new Home). The brand is the launch film's blue; nothing is
     orange. Ember keeps its name and its meaning — something failed, or this deletes — and is red
     now; every place that used it as the page's main colour points at --brand instead. This sheet
     loads last on every page, so :root:root here wins over each page's own definitions. */
  --brand: #2F6BFF;
  --brand-2: #4B82FF;
  --brand-hi: #7C9BFF;
  --brand-glow: rgba(47,107,255,.85);
  --ember: #F0445A;
}

html { background: #000; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: #4a4659; color: #fff; }

/* The base controls keep their existing hit boxes and state handling. */
body :is(.tl-btn, .btn, .chip, .pill, .tl-dd) {
  --btn-bg: #1b1b1e;
  --btn-fg: var(--ink);
  --btn-hover-bg: #29292d;
  --btn-active-bg: #202023;
  background-image: var(--glass-film);
  box-shadow: var(--glass-rim), var(--glass-depth), var(--glass-lift);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 180ms var(--ease-out, ease), box-shadow 180ms ease,
    border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

body :is(.tl-btn, .btn, .chip, .pill, .tl-dd):not(:disabled):hover {
  background-image: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.12), 0 7px 20px rgba(0,0,0,.3);
}

/* A chrome rim with a charcoal centre, like the reference's send control.
   No filters or transforms on ancestors of menus or canvas coordinates. */
body :is(.tl-btn--primary, .tl-btn--signal, .btn-primary, .btn.primary, .btn.pri) {
  color: #fff;
  --btn-fg: #fff;
  --btn-bg: var(--brand);
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 30px -6px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.32);
}

/* Shared .tl-btn already establishes its own positioning; overlay variants
   such as .pgo keep their absolute anchor from the page stylesheet. */
body :is(.btn-primary, .btn.primary, .btn.pri):not(.tl-btn) { position: relative; }

body :is(.tl-btn--primary, .tl-btn--signal, .btn-primary, .btn.primary, .btn.pri)::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--liquid-angle), var(--liquid-stops));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: .74;
  animation: liquid-edge-turn 7s linear infinite;
}
/* the rim on the blue buttons: a thin travelling highlight of the same blue, no silver */
body :is(.tl-btn--primary, .tl-btn--signal, .btn-primary, .btn.primary, .btn.pri)::after {
  background: conic-gradient(from var(--liquid-angle), rgba(255,255,255,0) 0deg, rgba(255,255,255,.55) 40deg,
    rgba(124,155,255,.25) 120deg, rgba(255,255,255,0) 200deg, rgba(124,155,255,.35) 300deg, rgba(255,255,255,0) 360deg);
}

body :is(.tl-btn--primary, .tl-btn--signal, .btn-primary, .btn.primary, .btn.pri):not(:disabled):hover {
  color: #fff;
  background: linear-gradient(180deg, #5C8EFF, var(--brand-2));
  box-shadow: 0 0 40px -4px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.36);
}
body :is(.tl-btn--primary, .tl-btn--signal, .btn-primary, .btn.primary, .btn.pri):is(:disabled, [aria-disabled='true']) {
  background: #1d2130; color: #8C93A6; box-shadow: none;
}

body :is(.tl-btn--primary, .tl-btn--signal, .btn-primary, .btn.primary, .btn.pri):not(:disabled):hover::after {
  opacity: 1;
}

body :is(.tl-btn--primary, .tl-btn--signal, .btn-primary, .btn.primary, .btn.pri):is(:disabled, [aria-disabled='true'])::after {
  animation-play-state: paused;
}

/* State colors still mean success, warning or rejection. */
body .tl-btn--danger { --btn-fg: var(--ember); }
body :is(.tl-btn--ghost) { --btn-bg: transparent; box-shadow: none; }
body :is(.chip.on, .chip.chipsel, .pill.on, .tl-dd.is-open) {
  background-color: #2c2c31;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), inset 0 0 0 1px rgba(202,203,221,.22);
}

body :is(.tl-card, .tl-panel) {
  background: linear-gradient(155deg, #1c1c1f, #111113 72%);
  box-shadow: var(--liquid-hairline), 0 16px 44px rgba(0,0,0,.26);
}
body .tl-card--interactive:hover {
  background: linear-gradient(155deg, #242427, #161618 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.12), 0 20px 48px rgba(0,0,0,.35);
}

body :is(.tl-input, .tl-select, .tl-textarea, .tl-dd):not(.tl-dd-native) {
  background-color: #1a1a1d;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.06);
}
body :is(.tl-input, .tl-select, .tl-textarea, .tl-dd):not(.tl-dd-native):hover { background-color: #222225; }
body :is(input, textarea)::placeholder { color: #898991; }
body select { color-scheme: dark; }
body select option { background: #19191c; color: #f4f4f5; }
body .tl-dd-menu {
  background: #19191c;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.1), 0 24px 60px rgba(0,0,0,.65);
}
body .tl-dd-opt.is-hl { background: #303036; }
body .tl-dd-opt[aria-selected='true'] { color: #fff; }

/* Image, video, audio and Library share this canvas/composer. */
body:has(#heroModel) :is(#hero, #main, #studio) { background-color: transparent; }
body:has(#heroModel) #hero h1 {
  letter-spacing: -.045em;
  font-weight: 500;
  text-transform: none;
}
body:has(#heroModel) :is(#composer, #fbox, #pop, #dock) {
  background: linear-gradient(160deg, rgba(34,34,38,.97), rgba(18,18,21,.98));
  box-shadow: var(--liquid-hairline), 0 18px 60px rgba(0,0,0,.45);
}
body:has(#heroModel) #composer {
  border-radius: 28px;
  background: radial-gradient(80% 120% at 100% 110%, rgba(128,94,142,.1), transparent 58%), linear-gradient(165deg, #242427, #161618 70%);
}
body:has(#heroModel) #composer:focus-within {
  box-shadow: inset 0 1px 0 rgba(222,220,239,.3), inset 0 0 0 1px rgba(165,147,185,.25), 0 18px 60px rgba(0,0,0,.45);
}
body:has(#heroModel) #prompt { background: transparent; box-shadow: none; color: #f4f4f5; }
/* Generate is the page's one action: Home's blue pill (the owner, 2026-11-17: "here generate should be blue") */
body:has(#heroModel) #go {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 30px -6px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.32);
}
body:has(#heroModel) #go:not(:disabled):hover {
  background: linear-gradient(180deg, #5C8EFF, var(--brand-2));
  box-shadow: 0 0 40px -4px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.36);
}
body:has(#heroModel) #go:disabled { background: #1d2130; color: #8C93A6; box-shadow: none; }
body:has(#heroModel) :is(.cell, .voice-card) {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.075), 0 9px 28px rgba(0,0,0,.25);
}
body:has(#heroModel) :is(.cell, .voice-card):hover {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 14px 40px rgba(0,0,0,.4);
}

/* Keyboard focus remains distinct from hover and pointer focus. */
html body :is(button, a, [tabindex]):focus-visible {
  outline: 2px solid #bfc4d5;
  outline-offset: 3px;
}
html:not([data-pointer]) body :is(input, textarea, select, [contenteditable]):focus-visible {
  outline: 1.5px solid #bfc4d5;
  outline-offset: 2px;
}

/* The custom send / render buttons use inset reflections, keeping their
   existing positioning and hit boxes. Their light moves while idle too. */
body:has(#bbar) :is(#send, #gobtn):not(:disabled):not([aria-disabled='true']),
body:has(#hbox) .hbox .hsend {
  animation: liquid-button-light 8s ease-in-out infinite;
}

@keyframes liquid-edge-turn { to { --liquid-angle: 495deg; } }
@keyframes liquid-button-light {
  0%, 100% {
    box-shadow: inset 1px 1px 0 rgba(216,228,210,.6), inset -1px -1px 0 rgba(183,173,192,.28),
      inset 0 0 0 1px rgba(212,222,224,.12), 0 4px 14px rgba(0,0,0,.38);
  }
  25% {
    box-shadow: inset -1px 1px 0 rgba(194,220,227,.6), inset 1px -1px 0 rgba(219,196,207,.28),
      inset 0 0 0 1px rgba(212,222,224,.12), 0 4px 14px rgba(0,0,0,.38);
  }
  50% {
    box-shadow: inset -1px -1px 0 rgba(212,194,225,.6), inset 1px 1px 0 rgba(188,216,217,.28),
      inset 0 0 0 1px rgba(212,222,224,.12), 0 4px 14px rgba(0,0,0,.38);
  }
  75% {
    box-shadow: inset 1px -1px 0 rgba(228,211,189,.6), inset -1px 1px 0 rgba(184,193,221,.28),
      inset 0 0 0 1px rgba(212,222,224,.12), 0 4px 14px rgba(0,0,0,.38);
  }
}
@media (prefers-reduced-motion: reduce) {
  body:has(#heroModel) #go,
  body:has(#bbar) :is(#send, #gobtn),
  body:has(#hbox) .hbox .hsend,
  body :is(.tl-btn--primary, .tl-btn--signal, .btn-primary, .btn.primary, .btn.pri)::after {
    animation: none !important;
  }
}
@media (forced-colors: active) {
  body :is(.tl-btn, .btn, .chip, .pill, .tl-dd, .tl-card, .tl-panel) {
    outline: 1px solid ButtonText;
    outline-offset: -1px;
  }
  body :is(.tl-btn--primary, .tl-btn--signal, .btn-primary, .btn.primary, .btn.pri)::after { display: none; }
}

/* A BUTTON THAT CANNOT BE PRESSED LOOKS IT. The glass capsule above gives
   every .btn the same film, rim and bright ink whether or not it can be
   pressed, and nothing dimmed a disabled one: the Recreate window's
   "Yes, recreate" stood full-bright, with a pointer, while it waited for
   "This person agreed to appear" (the owner, 2026-10-07: "the button to
   continue should be dim until the person agreed with is clicked"). Last in
   the file and on the shared button classes only, so a control that is
   disabled because it is the one already chosen (a lit .qrow) keeps its own
   look. */
body :is(.tl-btn, .btn, .btn-primary):is(:disabled, [aria-disabled='true']) {
  opacity: .38;
  cursor: not-allowed;
  filter: none;
}


/* TITLES IN HOME'S VOICE (the owner, 2026-11-17: the same style on every page). Each studio's name in
   heavy capitals, as MAKE VIDEOS THAT SELL. is on Home. */
body :is(#bigline, .rh-top h1, .hhead h1, #home .inner > h1, h1.tl-display, .page-title) {
  text-transform: uppercase;
  font-weight: 880;
  letter-spacing: -.03em;
  line-height: .95;
  color: #fff;
}
