/* eloai.io in the light (19 Oct 2026): one day told in the world's own light. See pages_light.py.
   Single visual world (photographs at every hour, white words), so one theme, every colour explicit. */
:root {
  --ink: #0b0f17;
  --ink-2: #121826;
  --cloud: #f6f7f9;
  --mist: rgba(246, 247, 249, 0.82);
  --faint: rgba(246, 247, 249, 0.62);
  --line: rgba(246, 247, 249, 0.16);
  --glow: #ffe2c2;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 88px);
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--cloud); -webkit-text-size-adjust: 100%; }
body.l-body { margin: 0; background: var(--ink); color: var(--cloud); font-family: var(--sans); font-weight: 350;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; border-radius: 6px; }
.l-skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--cloud); color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.l-skip:focus { left: 16px; }

/* ---- the bar: transparent over the sunrise, frosted once the page moves ---- */
.l-nav { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter); transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease), backdrop-filter 0.6s var(--ease);
  border-bottom: 1px solid transparent; }
.l-nav.scrolled { background: rgba(11, 15, 23, 0.52); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--line); }
.l-mark { font-family: var(--serif); font-size: 30px; letter-spacing: 0.01em; line-height: 1; }
.l-menu { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; font-weight: 450; }
.l-menu a { color: var(--mist); transition: color 0.3s; }
.l-menu a:hover { color: var(--cloud); }
.l-cta, .l-button { display: inline-flex; align-items: center; justify-content: center; background: var(--cloud); color: var(--ink);
  font-weight: 500; border-radius: 999px; transition: transform 0.4s var(--ease), background-color 0.3s; }
.l-cta { font-size: 14px; height: 40px; padding: 0 18px; }
.l-button { font-size: 16px; height: 52px; padding: 0 26px; }
.l-cta:hover, .l-button:hover { transform: translateY(-2px); background: #fff; }
@media (max-width: 760px) { .l-menu { display: none; } .l-cta { margin-left: auto; } }

/* ---- a scene: the photograph, a shade for the words, the words ---- */
.l-scene { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate;
  padding: calc(68px + var(--gutter)) var(--gutter) clamp(56px, 9vh, 120px); }
.l-frame { position: absolute; inset: -14% 0; z-index: -2; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.l-photo { width: 100%; height: 100%; object-fit: cover; }
.l-hero .l-photo { animation: l-drift 16s var(--ease) both; transform-origin: 50% 40%; }
@keyframes l-drift { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.l-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.28) 0%, rgba(8, 11, 18, 0) 26%, rgba(8, 11, 18, 0) 48%, rgba(8, 11, 18, 0.66) 100%); }
.l-left .l-shade { background: linear-gradient(180deg, rgba(8, 11, 18, 0.28) 0%, rgba(8, 11, 18, 0) 30%),
  linear-gradient(75deg, rgba(8, 11, 18, 0.62) 0%, rgba(8, 11, 18, 0.18) 45%, rgba(8, 11, 18, 0) 70%); }
.l-right .l-shade { background: linear-gradient(180deg, rgba(8, 11, 18, 0.28) 0%, rgba(8, 11, 18, 0) 30%),
  linear-gradient(285deg, rgba(8, 11, 18, 0.62) 0%, rgba(8, 11, 18, 0.18) 45%, rgba(8, 11, 18, 0) 70%); }
.l-words { max-width: 46rem; text-shadow: 0 1px 24px rgba(5, 8, 14, 0.35); }
.l-right .l-words { justify-self: end; }
.l-center { justify-self: center; text-align: center; align-self: center; }
.l-center .l-lead { margin-inline: auto; }
.l-center .l-actions { justify-content: center; }
[data-tone="dawn"] { --glow: #ffd9b8; }
[data-tone="day"] { --glow: #dcecff; }
[data-tone="dusk"] { --glow: #ffcf9f; }
[data-tone="night"] { --glow: #cfdcff; }
[data-tone="light"] { --glow: #fff0cf; }

.l-kicker { margin: 0 0 18px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist); }
.l-display, .l-title, .l-meet { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
.l-display { font-size: clamp(3.3rem, 8.4vw, 8.6rem); line-height: 0.94; }
.l-title { font-size: clamp(2.8rem, 6.4vw, 6.4rem); line-height: 0.96; }
.l-display em, .l-title em, .l-meet em { font-style: italic; color: var(--glow); }
.l-lead, .l-text { margin: 26px 0 0; max-width: 34ch; color: var(--mist); font-size: clamp(1.06rem, 1.35vw, 1.3rem); line-height: 1.55; font-weight: 330; }
.l-text { max-width: 38ch; }
.l-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }
.l-link { font-size: 16px; font-weight: 450; color: var(--cloud); border-bottom: 1px solid rgba(246, 247, 249, 0.4); padding-bottom: 3px;
  transition: border-color 0.3s; }
.l-link:hover { border-color: var(--cloud); }
.l-down { position: absolute; left: 50%; bottom: 26px; width: 1px; height: 46px; transform: translateX(-50%); overflow: hidden; }
.l-down span { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--cloud)); animation: l-fall 2.4s var(--ease) infinite; }
@keyframes l-fall { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---- products: words on the night, no boxes ---- */
.l-products { background: radial-gradient(120% 80% at 50% 0%, #1b2436 0%, var(--ink) 62%); padding: clamp(96px, 16vh, 180px) var(--gutter); }
.l-meet { text-align: center; font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1; max-width: 18ch; margin: 0 auto clamp(56px, 9vh, 100px); }
.l-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); max-width: 1180px; margin: 0 auto; }
@media (max-width: 880px) { .l-trio { grid-template-columns: 1fr; } }
.l-product { display: grid; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.l-pname { font-family: var(--serif); font-size: clamp(2.1rem, 3vw, 2.8rem); line-height: 1; transition: color 0.4s; }
.l-pline { color: var(--faint); max-width: 30ch; }
.l-pmore { font-size: 15px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.l-pmore::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.l-product:hover .l-pname { color: #ffd9b8; }
.l-product:hover .l-pmore::after { width: 34px; }

/* ---- the footer ---- */
.l-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 72px var(--gutter) 40px; display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px; }
.l-fbrand p { color: var(--faint); max-width: 28ch; margin: 14px 0 10px; }
.l-fbrand a { color: var(--mist); }
.l-fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.l-fcol { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.l-fcol a { color: var(--faint); transition: color 0.3s; }
.l-fcol a:hover { color: var(--cloud); }
.l-fhead { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); }
.l-fine { grid-column: 1 / -1; color: var(--faint); font-size: 13px; margin: 24px 0 0; }
@media (max-width: 880px) { .l-footer { grid-template-columns: 1fr; } .l-fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- arriving: words rise in slowly, once; transforms only, so nothing on the page ever shifts ---- */
.js .l-rise { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.js .in .l-rise { opacity: 1; transform: none; }
.js .in .l-rise:nth-child(2) { transition-delay: 0.12s; }
.js .in .l-rise:nth-child(3) { transition-delay: 0.24s; }
.js .in .l-rise:nth-child(4) { transition-delay: 0.36s; }
.js .in .l-product:nth-child(2) { transition-delay: 0.14s; }
.js .in .l-product:nth-child(3) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .l-hero .l-photo, .l-down span { animation: none; }
  .l-frame { transform: none !important; }
  .js .l-rise { opacity: 1; transform: none; transition: none; }
}

/* Centred words over bright skies (the valley of light, the dawn hills) get a soft shade behind the middle; the hero's
   words, on the left, one from the left like the other scenes. */
.l-center { position: relative; }
.l-mission .l-shade, .l-closing .l-shade { background:
  radial-gradient(60% 52% at 50% 52%, rgba(8, 11, 18, 0.55) 0%, rgba(8, 11, 18, 0.22) 60%, rgba(8, 11, 18, 0) 100%),
  linear-gradient(180deg, rgba(8, 11, 18, 0.30) 0%, rgba(8, 11, 18, 0) 30%, rgba(8, 11, 18, 0) 70%, rgba(8, 11, 18, 0.45) 100%); }
.l-hero .l-shade { background: linear-gradient(180deg, rgba(8, 11, 18, 0.30) 0%, rgba(8, 11, 18, 0) 28%),
  linear-gradient(75deg, rgba(8, 11, 18, 0.58) 0%, rgba(8, 11, 18, 0.22) 46%, rgba(8, 11, 18, 0) 72%),
  linear-gradient(180deg, rgba(8, 11, 18, 0) 55%, rgba(8, 11, 18, 0.45) 100%); }
.l-lead, .l-text { color: rgba(246, 247, 249, 0.9); }

/* The first screen never waits on a script: its words rise in by CSS the moment the page paints (19 Oct 2026). */
.js .l-hero .l-rise { opacity: 1; transform: none; transition: none; animation: l-in 1.1s var(--ease) both; }
.js .l-hero .l-rise:nth-child(2) { animation-delay: 0.1s; }
.js .l-hero .l-rise:nth-child(3) { animation-delay: 0.2s; }
.js .l-hero .l-rise:nth-child(4) { animation-delay: 0.3s; }
@keyframes l-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .l-hero .l-rise { animation: none; } }

/* Right to left (the Hebrew home, 19 Oct 2026): Frank Ruhl Libre for display, Heebo for text; every side-shade mirrored
   so the words, which now start on the right, always sit on the darker side. */
[dir="rtl"] { --serif: "Frank Ruhl Libre", "Times New Roman", serif; --sans: "Heebo", -apple-system, system-ui, sans-serif; }
[dir="rtl"] .l-display, [dir="rtl"] .l-title, [dir="rtl"] .l-meet { letter-spacing: 0; line-height: 1.08; }
[dir="rtl"] .l-display { font-size: clamp(3rem, 7.6vw, 7.6rem); }
[dir="rtl"] .l-title { font-size: clamp(2.6rem, 5.8vw, 5.8rem); }
[dir="rtl"] .l-kicker, [dir="rtl"] .l-fhead { letter-spacing: 0.04em; }
[dir="rtl"] .l-left .l-shade, [dir="rtl"] .l-hero .l-shade { background: linear-gradient(180deg, rgba(8, 11, 18, 0.28) 0%, rgba(8, 11, 18, 0) 30%),
  linear-gradient(285deg, rgba(8, 11, 18, 0.62) 0%, rgba(8, 11, 18, 0.18) 45%, rgba(8, 11, 18, 0) 70%),
  linear-gradient(180deg, rgba(8, 11, 18, 0) 55%, rgba(8, 11, 18, 0.4) 100%); }
[dir="rtl"] .l-right .l-shade { background: linear-gradient(180deg, rgba(8, 11, 18, 0.28) 0%, rgba(8, 11, 18, 0) 30%),
  linear-gradient(75deg, rgba(8, 11, 18, 0.62) 0%, rgba(8, 11, 18, 0.18) 45%, rgba(8, 11, 18, 0) 70%); }
[dir="rtl"] .l-pmore::after { order: -1; }

/* ---- every other page (19 Oct 2026): a shorter opening for reading pages, and the page's own content in clean type
   on the night. The old bubble markup is kept for its scripts and its words; its boxes, blurs and borders are not. ---- */
.l-short { min-height: 64svh; }
.l-opening:empty { display: none; }
.l-opening { margin-top: 26px; display: grid; gap: 14px; justify-items: start; color: var(--mist); }
.l-opening p { margin: 0; max-width: 40ch; }
.l-read { background: var(--ink); padding: clamp(56px, 9vh, 104px) var(--gutter) clamp(72px, 12vh, 140px); }
.l-read, .l-opening { --field: rgba(246, 247, 249, 0.08); }
.l-read section, .l-read article, .l-read .wrap, .l-read .r-container, .l-read .b, .l-read [class*="b-"],
.l-read .r-reading, .l-read .sec-s, .l-read .tint, .l-opening div {
  background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important; animation: none !important; transform: none !important; border-radius: 0 !important; }
.l-read > section, .l-read > div, .l-read article { max-width: 760px; margin-inline: auto; }
.l-read section { margin-block: 0 clamp(48px, 8vh, 88px); padding: 0 !important; }
.l-read h1, .l-read h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance;
  font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.04; margin: 0 0 18px; color: var(--cloud); }
.l-read h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 30px 0 8px; color: var(--cloud); }
.l-read h4 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 24px 0 8px; font-weight: 500; }
.l-read p, .l-read li, .l-read dd, .l-read td { color: var(--mist); font-size: 18px; line-height: 1.66; }
.l-read p { margin: 0 0 16px; max-width: 68ch; }
.l-read ul, .l-read ol { padding-inline-start: 1.2em; margin: 0 0 18px; }
.l-read li { margin: 0 0 8px; }
.l-read a { color: var(--cloud); text-decoration: underline; text-decoration-color: rgba(246, 247, 249, 0.35); text-underline-offset: 3px; }
.l-read a:hover { text-decoration-color: var(--cloud); }
.l-read strong { color: var(--cloud); font-weight: 550; }
.l-read table { width: 100%; border-collapse: collapse; margin: 0 0 24px; display: block; overflow-x: auto; }
.l-read th, .l-read td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 16px; }
.l-read th { color: var(--cloud); font-weight: 500; }
.l-read code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; background: var(--field); padding: 2px 6px; border-radius: 6px; }
.l-read pre { background: var(--field); padding: 16px; border-radius: 14px; overflow-x: auto; }
.l-read details { border-top: 1px solid var(--line) !important; padding: 14px 0 !important; }
.l-read summary { cursor: pointer; color: var(--cloud); font-weight: 500; }
.l-read svg { max-width: 100%; }
.l-read img { max-width: 100%; height: auto; border-radius: 18px; }
.l-read hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.l-read .r-button, .l-read .btn, .l-read button[type="submit"], .l-opening .r-button, .l-opening button[type="submit"],
.l-opening .btn { display: inline-flex; align-items: center; justify-content: center; background: var(--cloud) !important;
  color: var(--ink) !important; font: 500 16px/1 var(--sans); height: 52px; padding: 0 26px; border-radius: 999px !important;
  border: 0 !important; text-decoration: none !important; cursor: pointer; transition: transform 0.4s var(--ease); }
.l-read .r-button:hover, .l-opening .r-button:hover { transform: translateY(-2px); }
.l-read input, .l-read select, .l-read textarea, .l-opening input, .l-opening select, .l-opening textarea {
  width: 100%; max-width: 460px; background: var(--field); border: 1px solid var(--line); color: var(--cloud);
  border-radius: 14px; min-height: 52px; padding: 12px 16px; font: 400 17px/1.4 var(--sans); }
.l-read label, .l-opening label { display: block; color: var(--faint); font-size: 14px; margin: 0 0 6px; }
.l-read form, .l-opening form { display: grid; gap: 12px; margin: 8px 0 16px; }
.l-read .r-form-status:empty, .l-opening .r-form-status:empty { display: none; }
.l-read .r-arrow { margin-inline-start: 6px; }
