/* ---------- Tokens ---------- */
:root {
  --ink: #1B1230;
  --ink-2: #4B4160;
  --ink-3: #6E6485;
  --bg: #FBF9FF;
  --surface: #FFFFFF;
  --line: #E6DFF5;
  --brand-900: #2E0B6B;
  --brand-700: #4915A1;
  --brand-600: #5B1FC0;
  --brand-500: #6827CF;
  --brand-200: #D0B0FF;
  --brand-100: #EDE4FF;
  --brand-50:  #F6F1FF;
  --accent: #FA9102;
  --accent-600: #D97706;
  --accent-text: #8A4300;
  --ok: #1F7A4D;
  --err: #B42318;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(46, 11, 107, 0.10);
  --shadow-lg: 0 24px 60px rgba(46, 11, 107, 0.18);
  --font-en: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-he: 'Rubik', 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-en); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
:lang(he) body, body:lang(he) { font-family: var(--font-he); }
:lang(he) { font-family: var(--font-he); letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
:lang(he) h1, :lang(he) h2, :lang(he) h3 { letter-spacing: 0; }
button { font: inherit; color: inherit; }
a, button, summary, [role="tab"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); scroll-margin-top: 84px; } /* anchors land below the sticky nav */
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-600); }
:lang(he) .eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); margin-top: .6rem; }
.lead { color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 40rem; margin-top: 1rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 8px 24px rgba(250, 145, 2, .35); }
.btn-primary:hover { background: #FFA424; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--brand-700); color: #fff; }
.btn-dark:hover { background: var(--brand-600); }
.btn-outline { background: transparent; color: var(--brand-700); border-color: var(--brand-200); }
.btn-outline:hover { background: var(--brand-50); border-color: var(--brand-500); }
.btn-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .95rem; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 255, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(46, 11, 107, .06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; }
.brand b { color: var(--accent-600); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .98rem; padding: .3rem 0; }
.nav-links a:hover { color: var(--brand-700); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang { min-height: 40px; padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.lang:hover { border-color: var(--brand-500); color: var(--brand-700); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--bg); padding: .8rem 0 1.2rem; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.mobile-menu a { display: block; padding: .8rem .3rem; text-decoration: none; font-weight: 500; color: var(--ink); border-radius: 10px; }
.mobile-menu a:hover { background: var(--brand-50); }
.mobile-menu .row { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.nav.open .mobile-menu { display: block; }
@media (max-width: 900px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, rgba(250, 145, 2, .40), transparent 60%), radial-gradient(900px 700px at -10% 100%, rgba(208, 176, 255, .35), transparent 60%), linear-gradient(160deg, var(--brand-900) 0%, var(--brand-700) 55%, #5D2BB8 100%); padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero .eyebrow { color: var(--brand-200); }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem); margin-top: 1rem; }
.hero h1 .accent { color: #FFB454; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; color: rgba(255,255,255,.8); font-size: .95rem; }
.hero-note svg { flex: none; width: 20px; height: 20px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: none; }
}

/* ---------- Trust strip ---------- */
.strip { padding-block: 0; margin-top: -2.2rem; position: relative; z-index: 2; }
.strip-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.strip-item { background: #fff; padding: 1.3rem 1.5rem; display: flex; gap: .9rem; align-items: flex-start; }
.strip-item svg { flex: none; width: 26px; height: 26px; color: var(--brand-600); margin-top: 2px; }
.strip-item .strip-title { font-size: 1rem; font-weight: 700; color: var(--ink); }
.strip-item p { color: var(--ink-2); font-size: .93rem; margin-top: .15rem; }
@media (max-width: 800px) { .strip-in { grid-template-columns: 1fr; } }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 2px 0 rgba(46,11,107,.03); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); margin-bottom: 1.1rem; }
.icon svg { width: 24px; height: 24px; }
.icon.orange { background: #FFF0DB; color: var(--accent-text); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-2); margin-top: .5rem; font-size: .98rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Who ---------- */
.who { background: #fff; border-block: 1px solid var(--line); }
.who .card { background: var(--brand-50); border-color: transparent; }
.who .card:hover { border-color: var(--brand-200); }
.who-list { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .45rem; color: var(--ink-2); font-size: .95rem; }
.who-list li { display: flex; gap: .5rem; align-items: flex-start; }
.who-list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: .55rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.6rem 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 1rem; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--ink-2); margin-top: .5rem; font-size: .98rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { background: #fff; border-block: 1px solid var(--line); }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.person { text-align: center; padding: 1.5rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.person img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(46,11,107,.12); }
.person h3 { font-size: 1.08rem; }
.person .role { color: var(--brand-600); font-weight: 600; font-size: .86rem; margin-top: .25rem; }
.person .bio { color: var(--ink-2); font-size: .92rem; margin-top: .6rem; }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.film { position: relative; margin-top: 2rem; overflow: hidden; border-radius: var(--radius); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.film-track { display: flex; gap: 1rem; width: max-content; animation: film 55s linear infinite; }
[dir="rtl"] .film-track { animation-name: film-rtl; }
.film.paused .film-track { animation-play-state: paused; }
.film:hover .film-track { animation-play-state: paused; }
.film-item { flex: none; width: 380px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--brand-100); }
.film-item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes film { to { transform: translateX(calc(-50% - .5rem)); } }
@keyframes film-rtl { to { transform: translateX(calc(50% + .5rem)); } }
@media (max-width: 700px) { .film-item { width: 260px; } }
@media (prefers-reduced-motion: reduce) {
  .film { mask-image: none; -webkit-mask-image: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .film-track { animation: none; }
  .film-item { scroll-snap-align: start; }
  .film-toggle { display: none; }
}

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--brand-900), var(--brand-700)); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact .eyebrow { color: var(--brand-200); }
.contact .lead { color: rgba(255,255,255,.85); }
.contact-meta { margin-top: 2rem; display: grid; gap: 1rem; }
.contact-meta a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .6rem; }
.contact-meta a:hover { text-decoration: underline; }
.contact-meta svg { width: 22px; height: 22px; flex: none; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font: inherit; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(104, 39, 207, .35); outline-offset: 0; border-color: var(--brand-500); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .btn { width: 100%; }
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-status.ok { display: block; background: #E6F6EC; color: var(--ok); }
.form-status.err { display: block; background: #FDECEA; color: var(--err); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 860px) { .contact-grid, .two { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { background: var(--brand-900); color: rgba(255,255,255,.8); padding-block: 3rem 2rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot h3 { margin: 0 0 .8rem; color: #fff; font-size: .95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot a { color: rgba(255,255,255,.8); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand { color: #fff; }
.foot .brand b { color: #FFB454; }
.foot p { margin-top: .8rem; max-width: 26rem; font-size: .95rem; }
.social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.social a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.social a:hover { background: rgba(255,255,255,.1); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq { display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.25rem; }
.faq-item[open] { border-color: var(--brand-200); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; width: 22px; height: 22px; color: var(--brand-600); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { color: var(--ink-2); padding-bottom: 1.2rem; font-size: .98rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- The hero board (per the characterisation document) ---------- */
.device { position: relative; background: #fff; color: var(--ink); border-radius: 22px; padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.3); max-width: 560px; margin-inline: auto; font-family: 'Noto Sans Hebrew', var(--font-he); }
.device:lang(en) .cell-label, .device:lang(en) .chip > span, .device:lang(en) .device-title, .device:lang(en) .device-tab, .device:lang(en) .chips-empty { font-family: var(--font-en); }
.device-top { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 8px; }
.device-title { flex: 1; font-weight: 700; font-size: 1rem; }
.device-up { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; cursor: pointer; }
.device-up svg { width: 22px; height: 22px; }
[dir="ltr"] .device-up svg { transform: scaleX(-1); }
.device-up:hover { background: var(--brand-200); }
.device-settings { display: flex; gap: 6px; }
.device-toggle { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 3px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--ink-3); }
.device-toggle span { padding: 4px 9px; border-radius: 999px; }
.device-toggle span.on { background: var(--brand-700); color: #fff; }
.device-toggle.icon { width: 36px; justify-content: center; color: var(--ink-2); }
.device-toggle.icon[aria-pressed="true"] { background: var(--brand-100); border-color: var(--brand-500); color: var(--brand-700); }
.device-toggle.icon svg { width: 18px; height: 18px; }
.device-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-bottom: 8px; }
.device-tab { min-width: 0; min-height: 34px; padding: 4px 6px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-weight: 600; font-size: .76rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s, color .15s, border-color .15s; }
.device-tab:hover { border-color: var(--brand-200); background: var(--brand-50); }
.device-tab.active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
/* message window: white, each symbol with its pointed text underneath; grey / dark-blue controls */
.device-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid #D8DCE6; border-radius: 14px; padding: 6px 8px; min-height: 72px; }
.device-bar .chips { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; align-items: flex-start; min-height: 56px; }
.chips-empty { color: var(--ink-3); font-size: .82rem; padding: 4px; align-self: center; }
.chip { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px; padding: 3px 4px; border-radius: 8px; background: #F6F7FA; font-size: .72rem; font-weight: 700; line-height: 1.5; }
.chip img { width: 30px; height: 30px; }
.chip > span { white-space: nowrap; }
.chip-new { animation: chipin .3s ease; }
@keyframes chipin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.device-actions { display: flex; gap: 5px; flex: none; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 128px; }
.speak, .mini { border: 0; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 3px; font: inherit; font-weight: 700; transition: background .15s, transform .15s; }
.speak { height: 38px; padding: 0 8px; background: #2F3E5C; color: #fff; font-size: .74rem; }
.speak:hover { background: var(--brand-700); }
.speak:disabled { opacity: .45; cursor: not-allowed; }
.speak.speaking { background: var(--accent); color: var(--ink); }
.speak svg { width: 18px; height: 18px; }
.mini { width: 38px; height: 38px; background: #E6E9F0; color: #2F3E5C; }
.mini:hover { background: #D8DCE6; }
.mini:disabled { opacity: .4; cursor: not-allowed; }
.mini svg { width: 18px; height: 18px; }
/* the grid: right-to-left, one part of speech per column, rightmost column = core anchor */
.device-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 6px; margin-top: 8px; direction: rtl; }
.device-grid.home { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; margin-inline: auto; gap: 10px; }
/* cell: softly rounded square, label ABOVE the symbol, about a quarter text / three quarters symbol */
.cell { min-width: 0; overflow: hidden; display: grid; grid-template-rows: 25% 1fr; align-items: center; justify-items: center; aspect-ratio: 1 / 1; border-radius: 10px; border: 2px solid; padding: 3px 4px 5px; font: inherit; font-size: .7rem; font-weight: 700; text-align: center; line-height: 1.5; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.cell-label { align-self: start; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell img { width: 78%; height: 78%; max-width: 100%; object-fit: contain; pointer-events: none; }
.cell:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 22px rgba(46, 11, 107, .18); z-index: 1; }
.cell:active { transform: scale(.96); }
.cell.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(.92); } 100% { transform: scale(1); } }
.cell.empty { border: 2px dashed #E3E6EE; background: transparent; cursor: default; }
/* Fitzgerald key in pastel: core grey, verbs green, nouns yellow, descriptors pink, social orange, navigation blue */
.cell.core { background: #F3F4F6; border-color: #BFC6D1; color: #243042; }
.cell.verb { background: #D9F0CB; border-color: #9CC693; color: #213625; }
.cell.noun { background: #FFF0AE; border-color: #D2BE6A; color: #40320D; }
.cell.adj  { background: #F7D3E3; border-color: #D4A9BF; color: #4C2941; }
.cell.social { background: #F5D4A8; border-color: #D0A06A; color: #4A3113; }
.cell.nav { background: #CFEAF8; border-color: #97C1D9; color: #1D3A4B; border-radius: 14px; }
/* border-only colour mode: white cells, the part of speech carried by a thick frame */
.device[data-colour-mode="border"] .cell:not(.empty) { background: #fff; border-width: 4px; }
.device[data-colour-mode="border"] .cell.core { border-color: #9AA3B2; }
.device[data-colour-mode="border"] .cell.verb { border-color: #5FAE52; }
.device[data-colour-mode="border"] .cell.noun { border-color: #D9B62F; }
.device[data-colour-mode="border"] .cell.adj { border-color: #D9739F; }
.device[data-colour-mode="border"] .cell.nav { border-color: #4A9CC9; }
.device-grid.home .cell { font-size: .9rem; border-radius: 16px; }
@media (max-width: 900px) { .device { max-width: 480px; } }
@media (max-width: 480px) {
  .device { padding: 10px; }
  .device-bar { flex-wrap: wrap; }
  .device-bar .chips { flex: 1 1 100%; }
  .device-actions { flex: 1 1 100%; max-width: none; justify-content: flex-end; }
  .device-tab { font-size: .68rem; padding: 4px 3px; }
  .cell { font-size: .58rem; border-radius: 8px; padding: 2px 3px 4px; }
  .device-title { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .cell, .cell.pop, .chip-new, .speak, .device-tab { animation: none !important; transition: none !important; } .cell:hover { transform: none; } }

.contact-place { display: inline-flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.85); }
.contact-place svg { width: 22px; height: 22px; flex: none; }
.foot-address { font-style: normal; margin-top: .8rem; font-size: .92rem; }

/* ---------- Free-writing demo (animated, not interactive), framed like the board device ---------- */
.writing { background: var(--brand-50); border-block: 1px solid var(--line); }
.wd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; justify-items: center; }
.wd-figure { margin: 0; width: 100%; max-width: 420px; }
.wd-figure figcaption { margin-top: .9rem; color: var(--ink-2); font-size: .9rem; text-align: center; }
.wd { pointer-events: none; user-select: none; background: #fff; border-radius: 22px; padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(46, 11, 107, .06); font-family: var(--font-he); min-height: 260px; }
.wd:lang(en) { font-family: var(--font-en); }
.wd-top { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 8px; }
.wd-title { font-weight: 700; font-size: .9rem; }
.wd-dots { display: flex; gap: 5px; } .wd-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); } .wd-dots i:first-child { background: var(--brand-500); }
.wd-text { min-height: 64px; background: #fff; border: 2px solid #D8DCE6; border-radius: 12px; padding: 10px 12px; font-size: 1.05rem; font-weight: 600; line-height: 1.5; transition: border-color .3s, background .3s; }
.wd-text.ok { border-color: #5FAE52; background: #F1FAEE; }
.wd-caret { display: inline-block; width: 2px; height: 1.15em; background: var(--brand-700); vertical-align: text-bottom; margin-inline-start: 2px; opacity: 0; }
.typing .wd-caret { opacity: 1; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.wd-row { display: flex; gap: 6px; margin-top: 8px; }
.wd-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 10px; background: #E6E9F0; color: #2F3E5C; font-weight: 700; font-size: .8rem; transition: background .25s, color .25s, transform .15s, box-shadow .25s; }
.wd-btn svg { width: 17px; height: 17px; }
.wd-fix.lit { background: var(--brand-700); color: #fff; box-shadow: 0 0 0 5px rgba(104, 39, 207, .18); }
.wd-speak.lit { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 5px rgba(250, 145, 2, .22); }
.wd-btn.press { transform: scale(.92); }
.wd-suggest { margin-top: 8px; background: var(--brand-50); border: 1.5px solid var(--brand-200); border-radius: 12px; padding: 8px 12px; display: grid; gap: 4px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.wd-suggest.on { opacity: 1; transform: none; }
.wd-suggest-label { font-size: .74rem; color: var(--brand-700); font-weight: 700; }
.wd-suggest-text { font-size: .98rem; font-weight: 600; line-height: 1.5; }
.wd-suggest-text mark { background: #FFF0AE; color: var(--ink); border-radius: 4px; padding: 0 3px; }
.wd-accept { justify-self: start; background: var(--brand-700); color: #fff; min-height: 32px; font-size: .76rem; }
@media (max-width: 760px) { .wd-grid { grid-template-columns: 1fr; gap: 1.5rem; } .wd-figure { max-width: 360px; } .wd-text { font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .wd-btn, .wd-suggest, .wd-text { transition: none; } .typing .wd-caret { animation: none; } }

/* ---------- Press ---------- */
.press { background: #fff; border-block: 1px solid var(--line); }
.press-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.press-item a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.press-item a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.press-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.press-kind { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); font-size: .74rem; font-weight: 700; }
.press-kind.video { background: #FFF0DB; color: var(--accent-text); }
.press-kind svg { width: 13px; height: 13px; }
.press-item h3 { font-size: 1.02rem; line-height: 1.4; }
.press-item .press-source { margin-top: auto; font-size: .85rem; color: var(--brand-700); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.press-item .press-source svg { width: 14px; height: 14px; }
@media (max-width: 960px) { .press-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .press-list { grid-template-columns: 1fr; } }
