/*
Theme Name: Galili 2026
Theme URI: https://www.galililtd.co.il
Author: Galili LTD
Description: Custom theme for Galili — documentation and training consultancy. RTL-first, i18n-ready, no page builder, no plugins.
Version: 0.2.0
Requires PHP: 8.1
Text Domain: galili2026
*/

/* ==========================================================================
   Galili 2026 — design system v0.2

   Bright, quiet, precise. Brand blue is sampled from the logo file, not chosen:
   indigo #2840A8 and cyan #18A0E8.

   RTL-native: every directional value is a logical property, so the English
   pages flip to LTR with no mirrored stylesheet.
   ========================================================================== */

:root {
  /* Ground */
  --white:      #FFFFFF;
  --tint:       #F7F9FC;
  --tint-2:     #EFF3F9;

  /* Ink — blue-black, never pure black */
  --ink:        #0A1A33;
  --ink-2:      #3A4A66;
  --ink-3:      #5A6B85;

  /* Brand, measured from assets/brand/ on 2026-10-05 */
  --indigo:     #2840A8;
  --indigo-700: #1E3184;
  --indigo-50:  #EEF1FB;
  --cyan:       #18A0E8;
  --cyan-50:    #E8F5FE;

  --line:       #E6EBF2;
  --line-2:     #D4DCE8;

  --font-head: "Rubik", system-ui, sans-serif;
  --font-body: "Assistant", system-ui, sans-serif;

  --shell:   1200px;
  --gutter:  clamp(1.25rem, 5vw, 2.5rem);
  --band:    clamp(3rem, 6vw, 5rem);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  /* Shadows carry an offset and a soft blur — never a flat halo */
  --shadow-sm: 0 1px 2px rgba(10, 26, 51, 0.04), 0 2px 8px rgba(10, 26, 51, 0.04);
  --shadow:    0 2px 4px rgba(10, 26, 51, 0.04), 0 12px 28px rgba(10, 26, 51, 0.07);
  --shadow-lg: 0 4px 8px rgba(10, 26, 51, 0.05), 0 28px 64px rgba(10, 26, 51, 0.11);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.25rem); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.9rem); letter-spacing: -0.026em; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); font-weight: 600; }

p { margin: 0 0 0.8em; max-width: 68ch; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* ---------- browser surfaces: theme what we did not draw ---------- */

::selection { background: var(--indigo); color: #fff; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

::placeholder { color: var(--ink-3); opacity: 1; }

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 99px;
  border: 3px solid var(--white);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.3rem;
  z-index: 999;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.skip-link:focus { inset-inline-start: 1rem; }

/* ---------- layout ---------- */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

/* Rhythm is deliberately uneven. A single --band value for every section is how
   a page becomes uniformly quiet by declaration rather than by choice: a dense
   passage has to earn a quiet one. */
.band { padding-block: clamp(3rem, 6vw, 4.5rem); }
.band--tint { background: var(--tint); }

/* The two business areas carry the weight of the page — give them room. */
.band--wide { padding-block: clamp(3rem, 6vw, 4.5rem); }
/* Two tinted bands in a row read as one: no double gap between them (home: areas → video) */
.band--tint + .band--tint { padding-block-start: 0; }

/* A band that follows a heavy one closes up against it. */
.band--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.band__head { max-width: 62ch; margin-block-end: clamp(1.5rem, 3vw, 2.25rem); }
.band__head p { color: var(--ink-3); font-size: 1.1rem; margin-block-start: 1rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  border-block-end: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 92px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; } /* never squeezed by a long menu (English, 2026-11-18) */
.brand img { height: 63px; width: auto; }

/* The official horizontal logo (a lockup with its own tagline) — sized by height so both languages sit on the same line. */
.brand img.brand__logo { height: 63px; width: auto; }
@media (max-width: 600px) { .brand img.brand__logo { height: 52px; } }

/* A menu item never breaks inside its name ("Software / solutions" at 1024 px). */
.nav a { white-space: nowrap; }

.nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 0.9rem);
  margin: 0;
  padding: 0;
}

/* Scoped to the menu list only: a .btn inside .header__cta must keep its own
   colour, and a bare `.nav a` rule outranks `.btn--primary` on specificity. */
.nav ul a {
  display: block;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav ul a:hover { color: var(--ink); background: var(--tint-2); }
.nav .current-menu-item > a { color: var(--indigo); }

.header__cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s var(--ease), box-shadow 0.22s var(--ease),
              transform 0.22s var(--ease), border-color 0.18s var(--ease);
}

.btn--primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 1px 2px rgba(30, 49, 132, 0.2), 0 6px 18px rgba(40, 64, 168, 0.22);
}
.btn--primary:hover {
  background: var(--indigo-700);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(30, 49, 132, 0.22), 0 12px 28px rgba(40, 64, 168, 0.28);
}

.btn--quiet { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn--quiet:hover { border-color: var(--ink-3); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.94rem; }

/* A text link that behaves like an action */
.link-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--indigo);
  text-decoration: none;
}
.link-action:hover { text-decoration: underline; }
.link-action svg { transition: transform 0.22s var(--ease); }
.link-action:hover svg { transform: translateX(-3px); }
/* The chevron is drawn pointing left (Hebrew reading direction); in English it points right. */
[dir="ltr"] .link-action svg { transform: scaleX(-1); }
[dir="ltr"] .link-action:hover svg { transform: scaleX(-1) translateX(-3px); }
/* The text arrow on buttons is "←" (Hebrew reading direction); in English it points right. */
[dir="ltr"] .btn__arrow { display: inline-block; transform: scaleX(-1); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.25rem, 4.5vw, 4rem);
  overflow: hidden;
}

/* One very soft brand glow behind the rendering. Not a gradient wash. */
.hero::before {
  content: "";
  position: absolute;
  inset-block-start: -20%;
  inset-inline-start: -10%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
              rgba(24, 160, 232, 0.14), rgba(40, 64, 168, 0.10) 42%, transparent 68%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { max-width: 15ch; }

.hero__lede {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.28rem);
  color: var(--ink-2);
  margin-block-start: 1.5rem;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-block-start: 2.25rem;
}

/* The fact row — hairline, not cards */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.75rem 2rem;
  margin-block-start: clamp(3rem, 6vw, 4.5rem);
  padding-block-start: 2rem;
  border-block-start: 1px solid var(--line);
}

.fact__k {
  font-size: 0.86rem;
  color: var(--ink-3);
  margin-block-end: 0.3rem;
}

.fact__v {
  margin: 0; /* <dd> carries a 40px browser indent; it pushed the value off its label */
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.04rem;
  color: var(--ink);
  line-height: 1.4;
}

/* A list of names wraps between names, never inside one ("ATA iSpec" / "2200"). */
.fact__v span {
  white-space: nowrap;
}
/* A list value: every name carries its own bullet, at every width, and the list wraps between names — before, a dot sat
   BETWEEN names, so the last name of a wrapped list had none (owner, 2026-11-16: "חסר בולטים" on SCORM and Xignal). */
.fact__v--list { display: flex; flex-wrap: wrap; column-gap: 0.95em; row-gap: 0.15em; }
.fact__v--list span::before { content: "•"; margin-inline-end: 0.4em; }
@media (max-width: 600px) {
  .fact__v--list { flex-direction: column; }
}

/* ---------- glyph-wave background (assets/hero-wave.js) ----------
   With the Customizer switch on, the body carries .glyph-wave-on (set in PHP, so
   there is no flash of a light head before the script runs) and every opening
   section turns dark: the logo's deep indigo, white headline, the brand cyan wave reading
   clearly against it. The script prepends the canvas at z-index 0 and adds
   .has-glyph-wave; the section's own content sits above it. Switch off: no body
   class, no canvas, the light heads come back unchanged. */

.glyph-wave-on :is(.hero, .ghero, .page-head) {
  --ink:      #FFFFFF;
  --ink-2:    #D2DBEC;
  --ink-3:    #D2DBEC;
  --indigo:   #7CC8F4;
  --indigo-50: rgba(255, 255, 255, 0.04);
  --line:     rgba(255, 255, 255, 0.14);
  --line-2:   rgba(255, 255, 255, 0.24);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #1E3184;   /* the logo's deep indigo (--indigo-700); owner chose it, 2026-10-15 */
  color: var(--ink);
}

.glyph-wave-on :is(.hero, .ghero, .page-head) > :not(canvas) { position: relative; z-index: 1; }

/* The closing consultation panel carries the same ground and wave. */
.glyph-wave-on .cta { background: #1E3184; isolation: isolate; }
.glyph-wave-on .cta > :not(canvas) { z-index: 1; }
.glyph-wave-on .cta p { color: #D2DBEC; }   /* #B9C6DA over the wave measured 4.55:1 on mobile */

/* On the dark ground the primary call is white; the accent tokens above recolour
   links, the eyebrow and icons to a light cyan. */
.glyph-wave-on :is(.hero, .ghero, .page-head) .btn--primary {
  background: #FFFFFF;
  color: #0A1A33;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
}
.glyph-wave-on :is(.hero, .ghero, .page-head) .btn--primary:hover { background: var(--cyan-50); }
.glyph-wave-on :is(.hero, .ghero, .page-head) .photo__path { background: rgba(255, 255, 255, 0.08); }

/* Contrast (IS 5568 / WCAG AA): a lit glyph is the brand cyan at up to 0.95 alpha, which
   behind white or --ink-2 text would sink below 4.5:1. So across the text column (the
   inline-start side) the wave is held to a quarter strength, and where text spans the full
   width (narrow screens) the whole canvas is held at 0.3. Measured, not assumed. */
.has-glyph-wave > canvas[data-role="glyph-wave"] {
  -webkit-mask-image: linear-gradient(to right, #000 30%, rgba(0, 0, 0, 0.25) 62%),
                      linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, #000 30%, rgba(0, 0, 0, 0.25) 62%),
                      linear-gradient(to bottom, #000 60%, transparent);
          mask-composite: intersect;
}

[dir="ltr"] .has-glyph-wave > canvas[data-role="glyph-wave"] {
  -webkit-mask-image: linear-gradient(to left, #000 30%, rgba(0, 0, 0, 0.25) 62%),
                      linear-gradient(to bottom, #000 60%, transparent);
          mask-image: linear-gradient(to left, #000 30%, rgba(0, 0, 0, 0.25) 62%),
                      linear-gradient(to bottom, #000 60%, transparent);
}

@media (max-width: 900px) {
  .has-glyph-wave > canvas[data-role="glyph-wave"],
  [dir="ltr"] .has-glyph-wave > canvas[data-role="glyph-wave"] {
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
            mask-image: linear-gradient(to bottom, #000 60%, transparent);
  }
}

/* ---------- photo slots ---------- */

.photo {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 3);
}

.photo img { width: 100%; height: 100%; object-fit: cover; }

/* The empty state is deliberately legible rather than invisible: it tells the
   owner exactly what to supply and where to put it. */
.photo--empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 11px, rgba(40, 64, 168, 0.045) 11px 22px),
    var(--indigo-50);
  border: 1px dashed var(--line-2);
  padding: 1.5rem;
  text-align: center;
}

.photo__inner { display: grid; gap: 0.4rem; justify-items: center; color: var(--ink-3); max-width: 30ch; }
.photo__inner .icon { color: var(--indigo); opacity: 0.75; margin-block-end: 0.3rem; }
.photo__need { margin: 0; font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; }
.photo__spec { margin: 0; font-size: 0.85rem; }

.photo__path {
  font-size: 0.76rem;
  color: var(--indigo);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  margin-block-start: 0.35rem;
  direction: ltr;
}

/* ---------- method: heading beside the steps ---------- */

.method {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.method__head { position: sticky; top: 110px; display: grid; gap: 1rem; }
.method__head p { color: var(--ink-3); margin: 0 0 1rem; }

@media (max-width: 900px) {
  .method { grid-template-columns: 1fr; }
  .method__head { position: static; }
}

/* ---------- icons ---------- */

.icon { flex: none; }

/* ---------- two business areas ---------- */

/* Two typographic columns, not two cards. Same-size cards of icon + heading +
   text as the page's primary structure is the craft floor's first refusal, and
   the direction contract asks for enumeration carried by type and spacing
   rather than by frames. The hairline between them does the separating. */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); /* min(): no sideways scroll at 320 px (WCAG 1.4.10) */
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.area {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding-block-start: 1.75rem;
  border-block-start: 2px solid var(--ink);
}

.area h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); letter-spacing: -0.024em; }

.area__icon {
  width: 38px;
  height: 38px;
  color: var(--indigo);
  display: grid;
  place-items: center;
  margin-block-end: 0.1rem;
}

/* The brand's own vector icon set, from the shared resources library. These are
   drawn artwork rather than line icons, so they carry their own weight and want
   more room than a 38px stroke icon. */
.area__icon--brand { width: 64px; height: 64px; }
.area__icon--brand img { width: 100%; height: auto; }

.area p { color: var(--ink-3); margin: 0; }

.area ul { list-style: none; padding: 0; margin: 0.35rem 0 0; display: grid; gap: 0.6rem; }

.area li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--ink-2);
  font-size: 0.99rem;
}

.area li svg { flex: none; margin-block-start: 0.42em; color: var(--cyan); }

.area__foot { margin-block-start: auto; padding-block-start: 1.3rem; }

/* ---------- team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.member { margin: 0; display: grid; gap: 0.85rem; }

.member__face {
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--indigo-50);
}

.member__face img { width: 100%; height: 100%; object-fit: cover; }

.member__initials {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--indigo);
}

.member figcaption { display: grid; gap: 0.15rem; }
.member__name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.member__role { font-size: 0.92rem; color: var(--ink-3); }

/* An unfilled slot says so. It must never look like a real person. */
.member--empty .member__face {
  background:
    repeating-linear-gradient(135deg,
      transparent 0 10px, rgba(40, 64, 168, 0.05) 10px 20px),
    var(--tint-2);
  border: 1px dashed var(--line-2);
}

.member__slot {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--line-2);
}

.member__name--todo { color: var(--ink-3); font-weight: 500; }

/* ---------- deliverables: what the client actually receives ---------- */

.deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem 3rem;
}

.deliverable { display: grid; gap: 0.6rem; align-content: start; }

.deliverable h3 {
  font-size: 1.22rem;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--line-2);
}

.deliverable p { color: var(--ink-3); margin: 0; font-size: 0.99rem; }

.deliverable__fmt {
  color: var(--indigo);
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- proof: a quiet definition list, not a badge wall ---------- */

.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 3rem;
}

.proof__item { display: grid; gap: 0.5rem; align-content: start; }

.proof__k { color: var(--ink-3); font-size: 0.9rem; }

.proof__v {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
}

.proof__note {
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink-2);
  max-width: 72ch;
}

.proof__note p { margin: 0; }

/* ---------- method: a numbered sequence, because the order is the information ---------- */

.steps { counter-reset: step; display: grid; gap: 0; max-width: 56rem; }

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1.5rem;
  padding-block: 1.6rem;
  border-block-end: 1px solid var(--line);
  align-items: start;
}

.step:first-child { border-block-start: 1px solid var(--line); }

.step::before {
  content: counter(step);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  color: var(--indigo);
  background: var(--indigo-50);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}

.step h3 { margin-block-end: 0.35rem; }
.step p { margin: 0; color: var(--ink-3); }

/* ---------- articles ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.75rem; }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.26s var(--ease), transform 0.26s var(--ease);
}

.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }

.card__meta { color: var(--ink-3); font-size: 0.88rem; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--ink-3); font-size: 0.97rem; margin: 0; }
.card__more { margin-block-start: auto; padding-block-start: 0.9rem; color: var(--indigo); font-weight: 600; font-size: 0.95rem; }

/* ---------- closing call to action ---------- */

.cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -10%;
  width: 48%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(24, 160, 232, 0.3), transparent 66%);
  pointer-events: none;
}

.cta > * { position: relative; }
/* The panel is one full-width .shell; the text/button split lives on it. */
.cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center; }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: #B9C6DA; margin: 0.8rem 0 0; max-width: 44ch; }

.btn--on-ink,
.btn--on-dark { background: var(--white); color: var(--ink); }
.btn--on-ink:hover,
.btn--on-dark:hover { background: var(--tint); transform: translateY(-1px); }

/* ---------- page head ---------- */

.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 2.5vw, 2rem); }
.page-head p { color: var(--ink-3); font-size: 1.14rem; margin-block-start: 1rem; max-width: 60ch; }

/* ---------- parent line on a child page ---------- */

.parent-line { margin: 0 0 0.9rem; }

.parent-line a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-3);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.18s var(--ease);
}

.parent-line a:hover { color: var(--indigo); }
.parent-line .icon { transition: transform 0.2s var(--ease); }
.parent-line a:hover .icon { transform: translateX(-3px); }
[dir="ltr"] .parent-line a:hover .icon { transform: translateX(3px); }

/* ---------- prose ---------- */

.prose { max-width: 70ch; }
.prose h2 { margin-block: 1.8rem 0.7rem; }
.prose h3 { margin-block: 1.4rem 0.5rem; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; color: var(--ink-2); }
.prose li { margin-block-end: 0.5rem; }
.prose a { color: var(--indigo); }

.prose blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  background: var(--tint);
  border-radius: var(--r-sm);
  color: var(--ink-2);
}

/* ---------- forms ---------- */

.form { display: grid; gap: 1.4rem; max-width: 36rem; margin-block-start: 2.5rem; }

.field { display: grid; gap: 0.45rem; }

.field label { font-family: var(--font-head); font-weight: 500; font-size: 0.97rem; }
.field .req { color: var(--indigo); }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--white);
  width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-50);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #C0362C; }

.field textarea { min-height: 140px; resize: vertical; }
.field__hint { font-size: 0.87rem; color: var(--ink-3); }
.field__hint--error { color: #8E2A22; }

/* Anchored after a send/bounce: land below the sticky header, not under it */
#enquiry, #viewer-request { scroll-margin-top: calc(var(--header-h, 73px) + 1.5rem); }

/* Consent line: a checkbox beside its text, not a full-width input */
.field--check label { display: flex; gap: 0.7rem; align-items: flex-start; font-family: inherit; font-weight: 400; line-height: 1.6; }
.field--check input[type="checkbox"] { width: 1.15rem; height: 1.15rem; padding: 0; margin-block-start: 0.3rem; flex: none; accent-color: var(--indigo); }
.field--check input[aria-invalid="true"] { outline: 2px solid #C0362C; outline-offset: 2px; }

.form__error {
  padding: 0.9rem 1.1rem;
  background: #FDF0EF;
  border: 1px solid #F3CFCB;
  border-radius: var(--r-sm);
  color: #8E2A22;
}

.form__ok {
  padding: 1.6rem 1.8rem;
  background: var(--indigo-50);
  border: 1px solid #C9D3F2;
  border-radius: var(--r);
  max-width: 36rem;
}
.form__ok h3 { margin-block-end: 0.5rem; }
.form__ok p { margin: 0; color: var(--ink-2); }

.field--hp { position: absolute; inset-inline-start: -9999px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--tint);
  border-block-start: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.97rem;
  color: var(--ink-3);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem 3rem;
  padding-block-end: 2.5rem;
  border-block-end: 1px solid var(--line);
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer__brand img { height: 32px; width: auto; margin-block-end: 1rem; }

.footer__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  margin-block-end: 0.9rem;
}

.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover { color: var(--indigo); }

.footer__bottom {
  padding-block-start: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.89rem;
}

/* ---------- language switch ---------- */

.lang {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
}
.lang:hover { background: var(--tint-2); color: var(--ink); }

/* ---------- mobile nav ---------- */

.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    margin-inline-start: auto;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    cursor: pointer;
    color: var(--ink);
  }

  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--white);
    border-block-end: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem var(--gutter) 1.5rem;
    margin: 0;
  }

  /* The panel grows out of the header instead of teleporting in. display is
     transitioned discretely so the exit can play before it is removed. */
  .nav {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.15s var(--ease), transform 0.15s var(--ease),
                display 0.15s allow-discrete;
  }
  .nav[data-open="true"] {
    display: block;
    opacity: 1;
    transform: none;
    transition-duration: 0.2s;
  }
  @starting-style {
    .nav[data-open="true"] { opacity: 0; transform: translateY(-6px); }
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav a { padding: 0.8rem 0.6rem; }
  .header__cta { margin: 0.8rem 0 0; }
  .header__cta .btn { width: 100%; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
  .cta, .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .render__body { grid-template-columns: 1fr; }
  .render__tree { border-inline-end: 0; border-block-end: 1px solid var(--line); }
}

/* ---------- GALILIX product page (page-glas.php) ---------- */

/* The product page runs wider than the reading pages: it carries diagrams, a demo and
   comparison columns, not a single column of prose. */
.shell--wide,
.is-wide .site-header .shell,
.is-wide .cta .shell,
.is-wide .site-footer .shell { --shell: 1360px; }

.ghero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.ghero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.ghero__eyebrow,
.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--indigo);
  margin: 0 0 1rem;
}
.ghero__title {
  font-size: clamp(3.6rem, 2rem + 6vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.ghero__lede { margin-block: 1.5rem 2.25rem; color: var(--ink-2); font-size: 1.15rem; max-width: 46ch; }
.ghero__lede p { margin: 0 0 0.6rem; }

/* Section menu: sticks under the site header; scrolls sideways on narrow screens. */
.gnav {
  position: sticky;
  top: var(--header-h, 73px);
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block: 1px solid var(--line);
}
.gnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.gnav ul::-webkit-scrollbar { display: none; }
.gnav a {
  display: block;
  white-space: nowrap;
  padding: 0.95rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.gnav a:hover { color: var(--ink); }
.gnav a[aria-current="true"] { color: var(--indigo); box-shadow: inset 0 -2px 0 var(--indigo); }

.gsec {
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  scroll-margin-top: calc(var(--header-h, 73px) + 52px);
}
.gsec--tint { background: var(--tint); }
.gsec__grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
}
.gsec__num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--indigo); /* cyan on white measured 2.9:1 (axe, 2026-11-16) */
  margin-block-end: 0.6rem;
}
.gsec__head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.gsec__body > :first-child { margin-block-start: 0; }
.gsec__more { margin: 2.25rem 0 0; }

/* A table wider than the screen scrolls inside its own frame, never the page (WCAG 1.4.10); the frame takes focus so a keyboard user can scroll it. */
.table-scroll { overflow-x: auto; margin-block: 1rem; }
.table-scroll > table { margin-block: 0; min-width: 36rem; } /* below this the columns crush to 2-3 letters a line; scroll instead */
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; margin-block: 1rem; }
.prose th, .prose td { text-align: start; padding: 0.75rem 0.9rem; border-block-end: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-head); font-weight: 600; color: var(--ink); background: var(--tint-2); }
.prose td { color: var(--ink-2); }

.gsec__body details { border-block-end: 1px solid var(--line); }
.gsec__body summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.gsec__body summary::-webkit-details-marker { display: none; }
.gsec__body summary::after { content: "+"; color: var(--ink-3); font-weight: 400; transition: transform 0.2s var(--ease); }
.gsec__body details[open] summary::after { transform: rotate(45deg); }
.gsec__body details > :not(summary) { margin: 0 0 1.1rem; }

/* Sub-solution cards */
.gparts {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.gpart {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}
/* GALILIX brand kit lockups: tile + the product's own word, 80 units high (the umbrella is 100). */
.gpart__logo { height: 80px; display: flex; align-items: center; }
.gpart__logo img { height: 72px; width: auto; max-width: 100%; }
/* The title is the brand-kit lockup itself; its proportions and orientation come from the file. */
.ghero__title { line-height: 0; }
.ghero__lockup { display: block; height: clamp(4.25rem, 2.5rem + 5vw, 7rem); width: auto; max-width: 100%; }
.ghero__lockup--light { display: none; }
body:not(.glyph-wave-on) .ghero__lockup--dark { display: none; }
body:not(.glyph-wave-on) .ghero__lockup--light { display: block; }
.plogo img[alt="GALILIX"], .area__logos img[alt="GALILIX"], .gbeside__glas img[alt="GALILIX"] { height: 46px; width: auto; }
/* Home page product row: the all-letters GALILIX wordmark matches the letter height of the partner marks (owner, 2026-11-18). */
.plogo img[alt="GALILIX"] { height: 20px; }
.gmodules__title { font-size: 1.15rem; margin: clamp(2rem, 4vw, 2.75rem) 0 0; }
.gparts--modules { margin-block-start: 1rem; }
.gpart__logo--empty {
  justify-content: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink-3);
  font-size: 0.85rem;
  background: repeating-linear-gradient(-45deg, transparent 0 8px, var(--tint) 8px 16px);
}
.gpart h3 { font-size: 1.1rem; margin: 0.3rem 0 0; }
/* Not shipped yet (GALILIX AI, S1000D module). */
.gpart__soon { display: inline-block; margin-inline-start: 0.4rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--cyan-50); color: var(--indigo-700); font-size: 0.75rem; font-weight: 600; vertical-align: middle; }
.gpart p { color: var(--ink-3); font-size: 0.97rem; margin: 0; }
.gpart__status {
  justify-self: start;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--indigo);
  background: var(--indigo-50);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

/* Process diagram: stages in reading order, a connector growing from each dot to the next. */
.gflow {
  list-style: none;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
  gap: 1.5rem;
}
.gflow__stage { position: relative; display: grid; gap: 0.55rem; align-content: start; }
.gflow__dot {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--indigo);
  color: var(--indigo);
  font-family: var(--font-head);
  font-weight: 600;
}
.gflow__stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  inset-inline-start: 52px;
  inset-inline-end: -1.5rem;
  height: 2px;
  background: linear-gradient(to left, var(--indigo), var(--cyan));
  transform-origin: right;
}
[dir="ltr"] .gflow__stage:not(:last-child)::after { background: linear-gradient(to right, var(--indigo), var(--cyan)); transform-origin: left; }
.gflow__label { font-size: 1.15rem; margin: 0.35rem 0 0; }
.gflow__text { color: var(--ink-3); font-size: 0.95rem; margin: 0; }

/* Armed by glas.js only when it can also finish the draw (see assets/glas.js). */
.gflow.is-armed .gflow__stage { opacity: 0; transform: translateY(10px); }
.gflow.is-armed .gflow__stage::after { transform: scaleX(0); }
.gflow.is-armed.is-drawn .gflow__stage {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 170ms);
}
.gflow.is-armed.is-drawn .gflow__stage::after {
  transform: none;
  transition: transform 0.55s var(--ease);
  transition-delay: calc(var(--i) * 170ms + 220ms);
}

/* GALILIX hero: the tour video beside the title, over the glyph ground */
.ghero__video { margin: 0; }
.ghero__video video {
  display: block; width: 100%; height: auto; aspect-ratio: 1280 / 850;
  border-radius: var(--r); background: #0E1630;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-lg);
}

/* Home: "GALILIX at work" video (2026-11-16) */
.hvideo { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; max-width: 1080px; }
.hvideo video {
  display: block; width: 100%; height: auto; aspect-ratio: 1280 / 850;
  border-radius: var(--r); background: #0E1630; box-shadow: var(--shadow-lg);
}
.hvideo figcaption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem 1.5rem; margin-block-start: 0.9rem; font-size: 0.9rem; color: var(--ink-3);
}

/* GALILIX screenshots gallery and its enlarge dialog (2026-11-14) */
.ggallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
}
.ggallery__item { margin: 0; display: grid; gap: 0.6rem; align-content: start; }
.ggallery__link {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: zoom-in;
}
.ggallery__link:hover, .ggallery__link:focus-visible { box-shadow: var(--shadow); transform: translateY(-2px); }
.ggallery__link img { display: block; width: 100%; height: auto; }
.ggallery__item figcaption { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.ggallery__note { margin-block-start: 1rem; font-size: 0.85rem; color: var(--ink-3); }

.glightbox {
  width: min(96vw, 1700px);
  max-width: none;
  max-height: 96vh;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: #0E1630;
  color: #E6EBF5;
  overflow: visible;
}
.glightbox::backdrop { background: rgba(6, 12, 30, 0.82); }
.glightbox__fig { margin: 0; padding: clamp(0.5rem, 1.5vw, 1rem); display: grid; gap: 0.6rem; }
.glightbox__fig img { display: block; width: 100%; height: auto; max-height: calc(96vh - 5rem); object-fit: contain; border-radius: var(--r-sm); }
.glightbox__fig figcaption { font-size: 0.95rem; text-align: center; }
.glightbox__btn {
  position: absolute;
  width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%;
  background: var(--white); color: var(--ink);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.glightbox__btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.glightbox__close { top: -0.9rem; inset-inline-end: -0.9rem; }
.glightbox__prev { top: 50%; inset-inline-start: -1.1rem; transform: translateY(-50%); }
.glightbox__next { top: 50%; inset-inline-end: -1.1rem; transform: translateY(-50%); }
@media (max-width: 640px) {
  .glightbox__close { top: 0.4rem; inset-inline-end: 0.4rem; }
  .glightbox__prev { inset-inline-start: 0.4rem; }
  .glightbox__next { inset-inline-end: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) { .ggallery__link { transition: none; } .ggallery__link:hover { transform: none; } }

/* Fault-isolation demo */
.gdemo {
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.gdemo__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  padding: 1rem 1.5rem;
  background: var(--tint-2);
  border-block-end: 1px solid var(--line);
}
.gdemo__symptom { margin: 0; color: var(--ink-2); font-weight: 600; }
.gdemo__static { margin: 0; padding: 1.5rem; color: var(--ink-3); }
.gdemo__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.gdemo__body > .gdemo__path { grid-column: 1 / -1; border-inline-start: 0; border-block-start: 1px solid var(--line); }
.gdemo__safety { margin: 0; font-size: 0.85rem; color: var(--ink-3); }
.gdemo__at { margin: 0 0 1rem; font-size: 0.92rem; color: var(--indigo); font-weight: 600; }
.gdemo__path-at { display: block; font-size: 0.85rem; color: var(--ink-3); }
.gdemo__kept { margin: 1rem 0 0; font-size: 0.9rem; color: var(--ink-2); }

/* The wiring drawing: quiet by default, the current step's path lit in brand cyan */
.gdemo__drawing { margin: 0; padding: clamp(1rem, 2.5vw, 1.75rem); border-inline-start: 1px solid var(--line); background: var(--white); }
.gdemo:not(.is-live) .gdemo__drawing { display: none; }
.gdemo__drawing svg { display: block; width: 100%; height: auto; }
/* On a phone the drawing keeps a readable size (text ≥ ~10 px) and scrolls sideways inside its own frame. */
@media (max-width: 640px) {
  .gdemo__drawing { overflow-x: auto; }
  .gdemo__drawing svg { width: 560px; max-width: none; }
}
.gdemo__drawing-cap { margin-block-start: 0.6rem; font-size: 0.82rem; color: var(--ink-3); }
.gd-part rect, .gd-part circle { fill: var(--tint); stroke: #9AA6BC; stroke-width: 1.5; transition: fill 0.25s var(--ease), stroke 0.25s var(--ease); }
.gd-wire { fill: none; stroke: #9AA6BC; stroke-width: 2; transition: stroke 0.25s var(--ease); }
.gd-wire--link { stroke-dasharray: 5 4; }
.gd-code { font: 600 14px var(--font-head); fill: var(--ink-2); text-anchor: middle; }
.gd-small { font: 500 11px var(--font-body); fill: var(--ink-3); text-anchor: middle; }
.gd-cap { font: 500 12px var(--font-body); fill: var(--ink-3); text-anchor: middle; }
.gd-part.is-lit rect, .gd-part.is-lit circle { fill: var(--cyan-50); stroke: var(--cyan); stroke-width: 2.5; }
.gd-part.is-lit .gd-code { fill: var(--indigo-700); }
.gd-wire.is-lit { stroke: var(--cyan); stroke-width: 3.5; }
@media (prefers-reduced-motion: reduce) { .gd-part rect, .gd-part circle, .gd-wire { transition: none; } }
.gdemo__stage { padding: clamp(1.5rem, 3vw, 2.5rem); min-height: 300px; }
.gdemo__card {
  display: grid;
  gap: 0.6rem;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
@starting-style {
  .gdemo__card { opacity: 0; transform: translateY(8px); }
}
.gdemo__k { margin: 0; font-size: 0.84rem; font-weight: 600; color: var(--ink-3); }
.gdemo__q { margin: 0 0 0.9rem; font-family: var(--font-head); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 500; color: var(--ink); line-height: 1.3; }
.gdemo__answers { display: flex; gap: 0.75rem; }
.gdemo__answers .btn { min-width: 7rem; justify-content: center; }
.gdemo__tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 1.25rem; }
.gdemo__card--result { background: var(--cyan-50); border-radius: var(--r); padding: 1.25rem 1.5rem; }
.gdemo__cause { margin: 0 0 0.6rem; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.gdemo__action { margin: 0; color: var(--ink-2); max-width: 52ch; }
.gdemo__path { padding: clamp(1.5rem, 3vw, 2.5rem); border-inline-start: 1px solid var(--line); background: var(--tint); }
.gdemo__path-k { margin: 0 0 0.9rem; font-size: 0.84rem; font-weight: 600; color: var(--ink-3); }
.gdemo__path-empty { margin: 0; color: var(--ink-3); font-size: 0.95rem; }
.gdemo__path ol { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: 0.7rem; }
.gdemo__path li { color: var(--ink-2); font-size: 0.95rem; }
.gdemo__path-q { display: block; }
.gdemo__path-a { display: inline-block; margin-block-start: 0.25rem; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.6rem; }
.gdemo__path-a--yes { color: #0B6B3A; background: #E6F6EC; }
.gdemo__path-a--no { color: #8A3B0C; background: #FCEFE6; }

/* GALILIX beside RapidAuthor and Xignal */
.gbeside {
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.gbeside__col { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; }
.gbeside__col--own { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo); }
.gbeside__mark { height: 52px; display: flex; align-items: center; margin-block-end: 1.25rem; }
.gbeside__mark img { max-height: 40px; width: auto; }
/* Product logos: software page sections, home page software area, GALILIX beside-column. */
/* Software page: the logo is the product's name; only what it does not say sits beside it (2026-11-12). */
.phead { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-block-start: 2.6rem; }
.phead__logo { display: flex; }
.phead__logo img { height: 46px; width: auto; max-width: 100%; }
.phead__logo img[alt="RapidAuthor"] { height: 56px; }
/* The GALILIX wordmark is all letters, so at 46px it outweighs the partner marks; 30px matches their letter height (owner, 2026-11-18). */
.phead__logo img[alt="GALILIX"] { height: 30px; }
.phead__by { font-size: 0.55em; font-weight: 500; color: var(--ink-3); }
.plogo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; margin-block: 2.6rem 0.4rem; }
.plogo img { height: 34px; width: auto; max-width: 100%; }
/* RapidAuthor's mark carries small type; it needs more height to read at the same weight. */
.plogo img[alt="RapidAuthor"] { height: 48px; }
.area__logos img[alt="RapidAuthor"] { height: 36px; }
.area__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; padding-block: 1.25rem 0.25rem; border-block-start: 1px solid var(--line); }
.area__logos .plogo { display: contents; }
.area__logos img { height: 26px; width: auto; }
.gbeside__glas { display: grid; gap: 0.45rem; }
.gbeside__glas img { height: 20px; width: auto; }
.gbeside__word { font-family: var(--font-head); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--indigo); }
.gbeside__k { margin: 0 0 0.35rem; font-size: 0.84rem; font-weight: 600; color: var(--ink-3); }
.gbeside__col p:last-child { margin: 0; color: var(--ink-2); }

@media (max-width: 1000px) {
  .ghero__grid, .gsec__grid, .gdemo__body { grid-template-columns: minmax(0, 1fr); }
  .gdemo__path { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .gdemo__drawing { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .gbeside { grid-template-columns: minmax(0, 1fr); }

  .gflow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gflow__stage { padding-inline-start: 64px; padding-block-end: 1.75rem; min-height: 64px; }
  .gflow__dot { position: absolute; inset-inline-start: 0; top: 0; }
  .gflow__label { margin: 0.55rem 0 0; }
  .gflow__stage:not(:last-child)::after,
  [dir="ltr"] .gflow__stage:not(:last-child)::after {
    top: 48px;
    bottom: 4px;
    inset-inline-start: 21px;
    inset-inline-end: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, var(--indigo), var(--cyan));
    transform-origin: top;
  }
  .gflow.is-armed .gflow__stage::after { transform: scaleY(0); }
}

/* ---------- motion: one authored entrance, from an already-visible default ---------- */

/* One authored moment, not the same entrance on every section. The craft floor
   refuses a repeated identical reveal; only the numbered method staggers, where
   the sequence itself is the point. */
@media (prefers-reduced-motion: no-preference) {
  .steps .step {
    opacity: 0;
    transform: translateY(10px);
    animation: reveal 0.55s var(--ease) forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 18%;
  }
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* Press feedback. Declared after every .btn--*:hover so it wins at equal specificity. */
.btn:active {
  transform: scale(0.97);
  transition-duration: 0.16s;
}

/* Page to page: a short crossfade instead of a hard cut. Browsers without
   cross-document view transitions simply navigate as before. The header is NOT
   given its own view-transition-name: with one, the logo went missing in the
   pane's screenshots (2026-10-10), and holding the header still is not worth that risk. */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */

@media print {
  .site-header, .cta, .nav-toggle, .site-footer, .render { display: none; }
  body { font-size: 11pt; }
}

/* Very narrow screens (or text zoomed to 200 %): a long button label wraps instead of pushing past the edge (WCAG 1.4.10). */
@media (max-width: 420px) {
  .btn { white-space: normal; line-height: 1.3; text-align: start; }
}

/* Text description of the silent tour video (WCAG 1.2.1), under both videos; collapsed by default. */
.vdesc { margin-block-start: 0.9rem; font-size: 0.92rem; }
.vdesc summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--indigo); width: fit-content; }
.vdesc summary:hover { text-decoration: underline; }
.vdesc__body { margin-block-start: 0.6rem; color: var(--ink-2); max-width: 72ch; }
.vdesc__body ol { margin: 0.5rem 0 0; padding-inline-start: 1.25rem; display: grid; gap: 0.45rem; }
.vdesc__body strong { color: var(--ink); font-weight: 600; }
.vdesc__body [dir="ltr"] { unicode-bidi: isolate; white-space: nowrap; } /* a short English term never splits across lines inside Hebrew */

/* Home: the company name sits nearer the top of the blue head; the headline keeps its place (owner, 2026-11-16). */
.hero__eyebrow { margin-block: -2rem 2.6rem; font-size: 1.25rem; } /* larger company name (owner, 2026-11-17) */
@media (max-width: 600px) { .hero__eyebrow { margin-block: -1.25rem 2rem; font-size: 1.05rem; } }

/* ---------- splash (assets/splash.js; gate in functions.php) ----------
   html.splash is set inline before first paint. body::after is a plain dark cover that needs no
   script: it fades by itself at ~3.2 s and then takes no clicks, so a failed or missing script can
   never leave the page covered. The script draws its layer above it and removes the class when done. */
html.splash body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #1E3184;
  animation: splash-cover 0.3s linear 3.2s forwards;
}
@keyframes splash-cover { to { opacity: 0; visibility: hidden; } }
.splash-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1E3184;
  animation: splash-cover 0.3s linear 3.2s forwards;
}
.splash-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.splash-layer__mark {
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
  filter: brightness(0) invert(1);
}
.splash-layer__mark.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.splash body::after, .splash-layer { display: none; }
}
