/* ELDI website: dark glass dashboard theme. Uses logical properties so RTL (Hebrew) and LTR (English) mirror cleanly. */
:root {
  --bg: #050816;
  --bg-2: #0a1030;
  --panel: rgba(24, 32, 68, 0.52);
  --panel-strong: rgba(30, 40, 84, 0.68);
  --panel-hover: rgba(40, 52, 108, 0.62);
  --border: rgba(150, 170, 255, 0.16);
  --border-strong: rgba(160, 180, 255, 0.32);
  --text: #eaeeff;
  --muted: #a2acd4;
  --faint: #6f7aa6;
  --accent: #7c9bff;
  --accent-2: #a77bff;
  --cyan: #67d8ff;
  --ok: #3ddc97;
  --warn: #ffbf5c;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", "Noto Sans", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 640px at 50% -12%, rgba(98, 116, 255, 0.34), transparent 70%),
    radial-gradient(760px 540px at 100% 28%, rgba(160, 110, 255, 0.24), transparent 70%),
    radial-gradient(760px 620px at 0% 88%, rgba(56, 160, 255, 0.18), transparent 70%),
    radial-gradient(620px 480px at 30% 55%, rgba(120, 90, 240, 0.08), transparent 72%),
    linear-gradient(180deg, #0c1338, var(--bg) 62%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { /* faint starfield */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(1px 1px at 38% 66%, rgba(255,255,255,.2), transparent 60%),
    radial-gradient(1px 1px at 86% 74%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 58% 38%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(1px 1px at 22% 88%, rgba(255,255,255,.22), transparent 60%);
  opacity: .8;
  z-index: 0;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; background: var(--panel-strong); padding: 8px 14px; border-radius: 10px; }
.skip:focus { inset-inline-start: 8px; }

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow), 0 0 40px rgba(110, 120, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- App shell ---------- */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}
.sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-orb {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 30%, #fff 0 4%, #c9d8ff 10%, #7f9dff 30%, #4a4fe0 58%, #1c1d72 85%);
  box-shadow: 0 0 18px rgba(110, 140, 255, 0.7), 0 0 40px rgba(160, 110, 255, 0.35);
}
.brand-name { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.06em; }
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px;
  color: var(--muted); font-weight: 500; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.nav a:hover { background: rgba(124, 155, 255, 0.08); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(90deg, rgba(124,155,255,.22), rgba(124,155,255,.06));
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 24px rgba(124,155,255,.12);
}
[dir="rtl"] .nav a[aria-current="page"] { background: linear-gradient(270deg, rgba(124,155,255,.22), rgba(124,155,255,.06)); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-sep { height: 1px; background: var(--border); margin: 10px 8px; }
.sidebar-foot { margin-top: auto; display: grid; gap: 12px; }
.status-card { padding: 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.status-card strong { display: block; color: var(--text); font-size: .9rem; margin-bottom: 2px; }

.main { min-width: 0; display: grid; gap: 22px; align-content: start; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.topbar-title { font-size: 1rem; color: var(--muted); margin: 0; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mobile-brand { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
a.pill:hover { text-decoration: none; border-color: var(--border-strong); background: var(--panel-hover); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: pulse 2.4s ease-in-out infinite; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.bars { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.bars i { width: 2px; border-radius: 2px; background: var(--accent); animation: eq 1.4s ease-in-out infinite; }
.bars i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.bars i:nth-child(2) { height: 80%; animation-delay: -.5s; }
.bars i:nth-child(3) { height: 100%; animation-delay: -.9s; }
.bars i:nth-child(4) { height: 60%; animation-delay: -.3s; }
.bars i:nth-child(5) { height: 35%; animation-delay: -.7s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 32px 34px; text-align: center; isolation: isolate; }
.hero-stage { position: relative; height: 250px; display: grid; place-items: center; margin-bottom: 6px; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.waves path { fill: none; stroke-linecap: round; }
.orb {
  position: relative;
  width: 200px; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.95) 0 3%, rgba(214,226,255,.85) 8%, transparent 22%),
    radial-gradient(circle at 50% 55%, #6f8cff 0%, #4b56f0 35%, #2a2aa8 62%, #12134f 88%, #0a0b33 100%);
  box-shadow:
    0 0 40px rgba(110, 140, 255, 0.75),
    0 0 110px rgba(120, 100, 255, 0.5),
    0 0 200px rgba(90, 160, 255, 0.25),
    inset -18px -26px 50px rgba(6, 6, 40, 0.75),
    inset 12px 16px 36px rgba(255, 255, 255, 0.22);
  animation: breathe 6s ease-in-out infinite;
}
.orb::before { /* glass rim */
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 1.5px solid rgba(190, 210, 255, 0.55);
  box-shadow: inset 0 0 22px rgba(160, 190, 255, 0.45);
}
.orb::after { /* slow aurora inside the sphere */
  content: ""; position: absolute; inset: 10%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(103,216,255,.35), transparent 35%, rgba(167,123,255,.4), transparent 70%);
  filter: blur(14px); mix-blend-mode: screen;
  animation: spin 14s linear infinite;
}
.orb-halo { position: absolute; width: 360px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(110,130,255,.35), transparent 62%); filter: blur(10px); z-index: -1;
  animation: breathe 6s ease-in-out infinite reverse; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: .85rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; margin-bottom: 10px; }
.grad { background: linear-gradient(90deg, #d9e2ff, #8fb0ff 40%, #b48cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #b9c6ff; font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 640px; margin: 0 auto 26px; }
.prompt {
  display: flex; align-items: center; gap: 12px;
  max-width: 600px; margin: 0 auto; padding: 10px 10px 10px 16px;
  border-radius: 999px; background: rgba(12, 18, 46, 0.7);
  border: 1px solid rgba(124, 155, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(124,155,255,.07), 0 0 40px rgba(124,155,255,.22), inset 0 1px 0 rgba(255,255,255,.06);
  color: var(--faint); text-align: start;
}
[dir="rtl"] .prompt { padding: 10px 16px 10px 10px; }
.prompt .mic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(124,155,255,.18); color: var(--accent); flex: none; }
.prompt span.ph { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.soon { color: #ffd896; background: rgba(255,191,92,.12); border: 1px solid rgba(255,191,92,.35); }
.badge.planned { color: #c3d0ff; background: rgba(124,155,255,.12); border: 1px solid rgba(124,155,255,.3); }
.badge.done { color: #a6f3cf; background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.3); }
.prompt-note { margin: 12px 0 0; font-size: .82rem; color: var(--faint); }
.float-card { position: absolute; top: 28px; inset-inline-end: 28px; width: 250px; padding: 16px 18px; text-align: start; font-size: .85rem; color: var(--muted); animation: float 7s ease-in-out infinite; }
.float-card h3 { font-size: .95rem; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }

/* ---------- Cards & grids ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 4px 0; }
.section-head h2 { font-size: 1.15rem; margin: 0; }
.section-head a { font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s, border-color .25s, background .25s; }
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--panel-hover); }
.card h3 { font-size: 1.05rem; margin: 4px 0 0; }
.card p { color: var(--muted); font-size: .88rem; margin: 0; }
.card .badge { align-self: flex-start; margin-top: auto; }
.tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.tile-icon .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.ti-blue { background: linear-gradient(135deg, #5b7cff, #3a3fd6); box-shadow: 0 6px 18px rgba(91,124,255,.4); }
.ti-violet { background: linear-gradient(135deg, #a77bff, #6a3fe0); box-shadow: 0 6px 18px rgba(167,123,255,.4); }
.ti-cyan { background: linear-gradient(135deg, #4fd0ff, #2a7fe0); box-shadow: 0 6px 18px rgba(79,208,255,.35); }
.ti-teal { background: linear-gradient(135deg, #3ddcb0, #1f8f9a); box-shadow: 0 6px 18px rgba(61,220,176,.35); }
.ti-rose { background: linear-gradient(135deg, #ff7aa8, #c2408a); box-shadow: 0 6px 18px rgba(255,122,168,.3); }
.ti-amber { background: linear-gradient(135deg, #ffc46b, #e0832a); box-shadow: 0 6px 18px rgba(255,196,107,.3); }

.row-3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.panel { padding: 22px; }
.panel h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel h2 .icon { color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid rgba(150,170,255,.08); font-size: .9rem; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list small { display: block; color: var(--faint); font-size: .8rem; }
.check { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(124,155,255,.12); color: var(--accent); }
.check .icon { width: 16px; height: 16px; }
.panel p { color: var(--muted); font-size: .92rem; }
.cta-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 24px;
  background:
    radial-gradient(400px 220px at 80% 0%, rgba(167,123,255,.35), transparent 70%),
    radial-gradient(300px 200px at 10% 20%, rgba(79,208,255,.22), transparent 70%),
    var(--panel); }
.cta-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.cta-card p { color: #c2ccf2; margin-bottom: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: #fff;
  background: linear-gradient(90deg, #5b7cff, #8a5cff); box-shadow: 0 8px 24px rgba(110,110,255,.35); align-self: flex-start; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn .icon { width: 18px; height: 18px; }
[dir="rtl"] .btn .icon.flip, [dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Inner pages ---------- */
.page-hero { padding: 34px 32px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 280px; aspect-ratio: 1; inset-inline-end: -60px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(124,155,255,.55), rgba(124,155,255,.12) 45%, transparent 70%); filter: blur(4px); pointer-events: none; }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.page-hero p { color: #b9c6ff; max-width: 680px; margin: 0; font-size: 1.05rem; }
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cap { padding: 24px; display: grid; gap: 10px; align-content: start; }
.cap-head { display: flex; align-items: center; gap: 14px; }
.cap-head h2 { margin: 0; font-size: 1.15rem; flex: 1; }
.cap p { color: var(--muted); margin: 0; }
.cap ul { margin: 0; padding-inline-start: 20px; color: #c6cff5; font-size: .92rem; display: grid; gap: 4px; }
.notice { padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: .92rem; color: var(--muted); border-color: rgba(255,191,92,.3); }
.notice .icon { color: var(--warn); margin-top: 3px; }
.prose { padding: 30px 32px; }
.prose h2 { font-size: 1.15rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #c6cff5; }
.prose ul { padding-inline-start: 22px; }
.meta { color: var(--faint); font-size: .88rem; }
.fill { color: #ffd896; background: rgba(255,191,92,.1); border: 1px dashed rgba(255,191,92,.55); padding: 0 6px; border-radius: 6px; white-space: nowrap; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(150,170,255,.08); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .label { color: var(--faint); font-size: .82rem; display: block; }
.contact-line .value { font-weight: 600; word-break: break-word; }
.contact-line .value a.email, a.email { color: #dfe4ff; text-decoration: underline; text-decoration-color: rgba(183, 196, 255, 0.45); text-underline-offset: 3px; }
a.email:hover { color: #fff; text-decoration-color: rgba(223, 228, 255, 0.85); }
.about-hero h1 { margin: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.story { padding: 30px 32px; }
.story p { color: #c6cff5; font-size: 1.02rem; line-height: 1.8; }
.story p:last-child { margin-bottom: 0; }
.story .accent { color: var(--text); font-weight: 600; font-size: 1.1rem; }
.founder { background: radial-gradient(320px 200px at 85% 0%, rgba(167,123,255,.2), transparent 70%), var(--panel); }
.founder p { margin: 0; line-height: 1.75; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 12px; top: 26px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { width: 25px; height: 25px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1px solid var(--border-strong); background: rgba(124,155,255,.08); }
.tl-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.tl-dot.done::after { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.tl-dot.now::after { background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: pulse 2.4s ease-in-out infinite; }
.timeline strong { display: block; font-size: .92rem; }
.timeline span { color: var(--faint); font-size: .82rem; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 18px 6px 6px; color: var(--faint); font-size: .85rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: var(--muted); }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- Animations ---------- */
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes eq { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.main > * { animation: rise .6s ease-out both; }
.main > *:nth-child(2) { animation-delay: .06s; }
.main > *:nth-child(3) { animation-delay: .12s; }
.main > *:nth-child(4) { animation-delay: .18s; }
.main > *:nth-child(5) { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .float-card { display: none; }
}
@media (max-width: 1060px) {
  .row-3 { grid-template-columns: 1fr 1fr; }
  .row-3 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --tabbar-h: 68px; --gutter: 16px; }
  .app {
    grid-template-columns: minmax(0, 1fr); gap: 18px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    padding-inline: calc(var(--gutter) + env(safe-area-inset-left, 0px)) calc(var(--gutter) + env(safe-area-inset-right, 0px));
    /* keep the last content clear of the fixed tab bar (bar + its offset + breathing room) */
    padding-bottom: calc(var(--tabbar-h) + 36px + env(safe-area-inset-bottom, 0px));
  }
  [dir="rtl"] .app { padding-inline: calc(var(--gutter) + env(safe-area-inset-right, 0px)) calc(var(--gutter) + env(safe-area-inset-left, 0px)); }
  .sidebar { display: none; }
  .topbar-title { display: none; }
  .mobile-brand { display: flex; padding: 0; }
  .mobile-brand .brand-orb { width: 30px; height: 30px; }
  .mobile-brand .brand-name { font-size: 1.3rem; }
  .topbar .pill.status-pill .label-long { display: none; }
  .topbar-actions { flex-wrap: nowrap; gap: 8px; }
  .topbar .pill { padding: 7px 12px; font-size: .84rem; white-space: nowrap; }
  .topbar .pill .icon { width: 16px; height: 16px; }
  .waves { inset-inline: -35%; width: 170%; }
  .hero { padding: 24px 20px 28px; }
  .hero-stage { height: 200px; }
  .orb { width: 150px; }
  .orb-halo { width: 270px; }
  .eyebrow { font-size: .88rem; flex-wrap: wrap; justify-content: center; text-align: center; }
  .lead { font-size: 1.05rem; line-height: 1.65; }
  .prompt-note { font-size: .88rem; }
  .section-head { margin: 4px 2px 0; }
  .section-head h2 { font-size: 1.2rem; }
  .section-head a { font-size: .95rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card { padding: 18px 16px; }
  .card p { font-size: .95rem; line-height: 1.55; }
  .badge { font-size: .82rem; }
  .row-3, .cap-grid, .contact-grid, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .panel, .cap { padding: 22px 20px; }
  .panel p, .cap p, .cap ul, .notice { font-size: 1rem; }
  .list li { font-size: 1rem; padding: 12px 2px; }
  .list small, .timeline span, .contact-line .label { font-size: .88rem; line-height: 1.5; }
  .timeline strong { font-size: 1rem; }
  .page-hero, .prose, .story { padding: 26px 20px; }
  .prose p, .prose li { font-size: 1rem; line-height: 1.7; }
  .footer { font-size: .9rem; padding: 12px 4px 0; }
  .footer nav { gap: 10px 22px; }
  .footer nav a { padding: 6px 0; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; z-index: 20;
    inset-inline: calc(12px + env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    min-height: var(--tabbar-h); padding: 7px 6px;
    border-radius: 22px;
    /* near-opaque so scrolled content doesn't show through the labels */
    background: rgba(12, 17, 42, 0.9);
    border-color: var(--border-strong);
    box-shadow: 0 -8px 30px rgba(3, 5, 16, 0.55), inset 0 1px 0 rgba(255,255,255,.06);
  }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; padding: 6px 2px; min-height: 52px; border-radius: 14px; color: var(--muted); font-size: .8rem; font-weight: 500; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--text); background: rgba(124,155,255,.16); }
  .tabbar a[aria-current="page"] .icon { color: var(--accent); }
}
/* soft fade above the tab bar so content dissolves instead of cutting under it */
@media (max-width: 900px) {
  body::after { content: ""; position: fixed; z-index: 19; inset-inline: 0; bottom: 0; height: calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom, 0px)); pointer-events: none;
    background: linear-gradient(to top, rgba(5,8,22,.92) 35%, rgba(5,8,22,0)); }
}
@media (max-width: 560px) {
  /* single column with icon beside the text reads better than two cramped columns */
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon title" "icon text" "icon badge"; column-gap: 14px; row-gap: 4px; align-items: start; }
  .card .tile-icon { grid-area: icon; }
  .card h3 { grid-area: title; margin: 0; }
  .card p { grid-area: text; }
  .card .badge { grid-area: badge; margin-top: 6px; justify-self: start; }
  .float-card { display: none; }
}

@media (max-width: 380px) {
  :root { --gutter: 12px; }
  .prompt .badge { display: none; }
  .hero h1 { font-size: 1.9rem; }
  .topbar .pill { padding: 6px 10px; font-size: .8rem; }
  .topbar .pill .icon { display: none; }
  .topbar-actions { gap: 6px; }
  .mobile-brand .brand-name { font-size: 1.15rem; }
}
@media (max-width: 430px) {
  /* the note under the prompt already says ELDI isn't available; give the placeholder room */
  .prompt .badge { display: none; }
}
