/* =========================================================
   Nafsyria — site styles
   Colours come from tokens.css (generated by tools/palette.py).
   ========================================================= */

:root {
  color-scheme: light;

  --bg: var(--paper);
  --bg-tint: var(--paper-2);
  --surface: #FFFFFF;
  --heading: var(--brand-900);
  --primary: var(--brand-700);
  --primary-strong: var(--brand-900);
  --on-primary: #FFFFFF;
  --link: var(--brand-700);
  --accent: var(--accent-500);
  --on-accent: var(--brand-950);
  --danger: #A8261B;
  --danger-soft: #FCEBE8;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / .05);
  --shadow: 0 22px 44px -26px rgb(0 0 0 / .28);
  --shadow-lg: 0 44px 80px -40px rgb(0 0 0 / .38);

  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dir: 1;

  --font-sans: "Figtree", "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-accent: "Instrument Serif", "Markazi Text", Georgia, serif;
  --lh: 1.65;
  --lh-head: 1.08;
  --track-head: -.028em;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[dir="rtl"] { --dir: -1; }

html:lang(ar) {
  --lh: 1.9;
  --lh-head: 1.38;
  --track-head: 0;
}

@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --shadow-sm: 0 1px 2px color-mix(in srgb, var(--brand-950) 8%, transparent);
    --shadow: 0 22px 44px -26px color-mix(in srgb, var(--brand-950) 34%, transparent);
    --shadow-lg: 0 44px 80px -40px color-mix(in srgb, var(--brand-950) 46%, transparent);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--heading);
  line-height: var(--lh-head);
  letter-spacing: var(--track-head);
  text-wrap: balance;
}
h3, h4 { font-weight: 600; letter-spacing: 0; line-height: 1.35; }

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--link);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { background: var(--brand-700); color: #fff; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir="rtl"] .flip { transform: scaleX(-1); }

.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Accent words: a calligraphic voice inside the sans headline */
.accent {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 600;
  font-size: 1.28em;
  line-height: 1;
  color: var(--brand-600);
}
html:lang(en) .accent {
  font-style: italic;
  font-weight: 400;
  font-size: 1.13em;
  letter-spacing: -.01em;
}
.accent--line { position: relative; display: inline-block; }
.scribble {
  position: absolute;
  inset-inline: -4%;
  bottom: -.12em;
  width: 108%;
  max-width: none;
  height: .3em;
  overflow: visible;
}
html:lang(en) .scribble { bottom: -.06em; }
.scribble path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  --btn-fill: var(--primary-strong);
  --btn-fg-hover: var(--on-primary);
  --btn-chip: var(--on-primary);
  --btn-chip-fg: var(--primary);
  --h: 56px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--h);
  padding-inline: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* Press and hover movement use the scale/translate properties: `transform` belongs to GSAP. */
  transition: color .3s, box-shadow .45s var(--ease), scale .2s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  background: var(--btn-fill);
  transform: translateY(103%);
  transition: transform .55s var(--ease-out);
}
.btn--icon { padding-inline: 28px 9px; }
.btn__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--h) - 18px);
  height: calc(var(--h) - 18px);
  overflow: hidden;
  border-radius: 50%;
  background: var(--btn-chip);
  color: var(--btn-chip-fg);
  transition: background-color .35s, color .35s;
}
.btn__icon .icon { width: 18px; height: 18px; }
.btn:active { scale: .97; }
.btn--sm { --h: 46px; padding-inline: 20px; font-size: .95rem; gap: 10px; }
.btn--sm.btn--icon { padding-inline: 20px 7px; }
.btn--sm .btn__icon { width: 32px; height: 32px; }
.btn--sm .btn__icon .icon { width: 16px; height: 16px; }
.btn--block { width: 100%; }
.btn--block.btn--icon { justify-content: space-between; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--heading);
  --btn-fill: var(--brand-100);
  --btn-fg-hover: var(--heading);
  --btn-chip: var(--brand-100);
  --btn-chip-fg: var(--brand-800);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--soft {
  --btn-bg: var(--brand-100);
  --btn-fg: var(--brand-800);
  --btn-fill: var(--brand-200);
  --btn-fg-hover: var(--brand-900);
}

@media (hover: hover) {
  .btn:hover { color: var(--btn-fg-hover); }
  .btn:hover::before { transform: none; }
  .btn--primary:hover { box-shadow: 0 18px 32px -18px var(--brand-700); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand-700); }
  .btn:hover .btn__icon { background: var(--accent); color: var(--on-accent); }
  .btn:hover .btn__icon .icon { animation: icon-swap .6s var(--ease-out); }
  .btn:hover .btn__icon--ring .icon { animation: icon-ring .7s var(--ease); }
}
.btn:focus-visible::before { transform: none; }
.btn:focus-visible { color: var(--btn-fg-hover); border-radius: 999px; }

@keyframes icon-swap {
  0% { translate: 0 0; opacity: 1; }
  45% { translate: calc(var(--dir) * 150%) 0; opacity: 0; }
  46% { translate: calc(var(--dir) * -150%) 0; opacity: 0; }
  100% { translate: 0 0; opacity: 1; }
}
@keyframes icon-ring {
  0%, 100% { rotate: 0deg; }
  20% { rotate: -16deg; }
  45% { rotate: 14deg; }
  70% { rotate: -8deg; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding-inline: 6px;
  border-radius: 999px;
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow__label {
  padding-block: 2px;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
  transition: background-size .45s var(--ease-out);
}
[dir="rtl"] .link-arrow__label { background-position: 100% 100%; }
.link-arrow__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-800);
  transition: background-color .35s, color .35s;
}
.link-arrow__icon .icon { width: 18px; height: 18px; }
@media (hover: hover) {
  .link-arrow:hover .link-arrow__label { background-size: 100% 1.5px; }
  .link-arrow:hover .link-arrow__icon { background: var(--primary); color: var(--on-primary); }
  .link-arrow:hover .link-arrow__icon .icon { animation: icon-swap .6s var(--ease-out); }
}

/* ---------- Small pieces ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-800);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.6;
}

.live-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--brand-500));
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .6; }
  80%, 100% { transform: scale(3.4); opacity: 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--brand-700);
  font: 600 .9rem/1.4 var(--font-sans);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
html:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.75;
}
.tag--live { background: var(--brand-100); color: var(--brand-800); }

.icon-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--brand-100);
  color: var(--brand-700);
  transition: background-color .35s, color .35s;
}
.icon-badge .icon { width: 22px; height: 22px; }

.card {
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.on-dark { color: var(--brand-100); }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .accent { color: var(--accent-300); }
.on-dark .eyebrow { color: var(--brand-300); }
.grain { position: relative; isolation: isolate; overflow: hidden; }
.grain::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--grain);
  opacity: .1;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* ---------- Read more (details) ---------- */
.more { margin-top: 16px; }
.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--heading);
  font: 600 .92rem/1 var(--font-sans);
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary .icon { width: 18px; height: 18px; color: var(--brand-600); transition: transform .4s var(--ease), color .3s; }
.more[open] > summary { background: var(--brand-100); box-shadow: inset 0 0 0 1.5px var(--brand-100); }
.more[open] > summary .icon { transform: rotate(180deg); }
@media (hover: hover) {
  .more > summary:hover { background: var(--brand-100); box-shadow: inset 0 0 0 1.5px var(--brand-300); }
}
.more .when-open { display: none; }
.more[open] .when-open { display: inline; }
.more[open] .when-closed { display: none; }
.more__body { padding-top: 18px; color: var(--ink); }
.more__body > * + * { margin-top: 12px; }
.more__body ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 10px; }
.more__body li::marker { color: var(--accent); }

.more::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
}
.more[open]::details-content { block-size: auto; }

.on-dark .more > summary { box-shadow: inset 0 0 0 1.5px var(--brand-700); color: #fff; }
.on-dark .more > summary .icon { color: var(--accent-300); }
.on-dark .more[open] > summary,
.on-dark .more > summary:hover { background: var(--brand-800); box-shadow: inset 0 0 0 1.5px var(--brand-600); }
.on-dark .more__body { color: var(--brand-100); }

.facts { display: grid; gap: 14px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--heading); font-weight: 600; font-size: .9rem; }
.facts dd { margin: 0; color: var(--muted); }
.on-dark .facts dt { color: #fff; }
.on-dark .facts dd { color: var(--brand-200); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--brand-900); color: var(--brand-100); font-size: .9rem; line-height: 1.6; }
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 8px;
  text-align: center;
}
.topbar .live-dot { --dot: var(--accent-500); }
.topbar a { color: var(--accent-300); font-weight: 600; white-space: nowrap; }
@media (max-width: 559px) { .topbar__q { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  padding-inline-start: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgb(255 255 255 / .94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: box-shadow .4s, border-color .4s;
}
.site-header.is-scrolled .site-header__bar { box-shadow: var(--shadow); border-color: var(--line-strong); }

.brand { display: inline-flex; flex: none; border-radius: 10px; }
.brand__logo { width: 171px; height: 35px; }

.nav { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.nav a {
  padding: 11px 16px;
  border-radius: 14px;
  color: var(--heading);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .3s, color .3s;
}
.nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav a.is-active { background: var(--brand-100); color: var(--brand-800); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang__item {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 40px;
  padding-inline: 12px;
  border-radius: 999px;
  color: var(--muted);
  font: 600 .88rem/1 var(--font-sans);
  text-decoration: none;
  transition: background-color .3s, color .3s;
}
.lang__item.is-active { background: var(--surface); color: var(--heading); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
a.lang__item:hover { background: var(--brand-100); color: var(--brand-800); }
.lang--block { display: grid; grid-template-columns: 1fr 1fr; }
.lang--block .lang__item { height: 48px; font-size: 1rem; }

.menu-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--brand-900);
  color: #fff;
  cursor: pointer;
  transition: background-color .3s, scale .2s var(--ease);
}
.menu-btn:hover { background: var(--brand-700); }
.menu-btn:active { scale: .95; }
.menu-btn--soft { background: var(--brand-100); color: var(--brand-900); }
.menu-btn--soft:hover { background: var(--brand-200); }

@media (max-width: 599px) {
  .header-actions .lang { display: none; }
  .site-header__bar { min-height: 64px; padding: 8px; padding-inline-start: 18px; border-radius: 22px; }
  .brand__logo { width: 151px; height: 31px; }
}
@media (max-width: 419px) {
  .header-actions .btn { display: none; }
}
@media (min-width: 1080px) {
  .nav { display: flex; }
  .nav ~ .header-actions { margin-inline-start: 0; }
  .site-header .menu-btn { display: none; }
}

.menu {
  position: fixed;
  inset: 12px 12px auto;
  width: auto;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transition: opacity .25s, transform .3s var(--ease), display .3s allow-discrete, overlay .3s allow-discrete;
}
.menu:popover-open { opacity: 1; transform: none; }
@starting-style { .menu:popover-open { opacity: 0; transform: translateY(-10px) scale(.98); } }
.menu::backdrop { background: rgb(0 0 0 / .35); backdrop-filter: blur(4px); }
.menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.menu__mark { width: 40px; height: 40px; }
.menu__nav { display: grid; gap: 2px; }
.menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  color: var(--heading);
  font: 600 1.12rem var(--font-sans);
  text-decoration: none;
}
.menu__nav a:hover { background: var(--brand-50); }
.menu__nav .icon { width: 18px; height: 18px; color: var(--brand-500); }
.menu__foot { display: grid; gap: 10px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(36px, 6vw, 84px) clamp(48px, 6vw, 88px);
}
.hero__bg {
  position: absolute;
  inset: -160px 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 52% at 14% 30%, var(--brand-100), transparent 72%),
    radial-gradient(34% 42% at 94% 92%, var(--accent-100), transparent 72%);
}
[dir="ltr"] .hero__bg::before { transform: scaleX(-1); }

.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
  .hero__copy { padding-top: clamp(28px, 5vw, 76px); }
}

.hero h1 {
  margin-block: 22px;
  font-size: clamp(2.35rem, 5.5vw, 4.4rem);
}
html:lang(ar) .hero h1 { line-height: 1.3; }

.hero__lead { max-width: 33em; color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.28rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 34px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 30px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: .95rem;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: var(--brand-600); }

.hero__visual { position: relative; display: grid; justify-items: center; width: 100%; max-width: 520px; margin-inline: auto; }
.arch {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px var(--radius-xl) var(--radius-xl);
  background: var(--accent-100);
  box-shadow: var(--shadow);
}
.arch picture { display: block; width: 100%; height: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

.float-mark {
  position: absolute;
  z-index: 2;
  top: 12%;
  inset-inline-end: 0;
  width: 84px;
  height: 84px;
  padding: 14px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

/* Quick call card over the picture: one action, the numbers live in the support section */
.hero-card {
  position: relative;
  z-index: 3;
  width: min(100%, 410px);
  margin-top: -128px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / .95);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-card h2 { margin-top: 14px; font-size: 1.32rem; letter-spacing: 0; line-height: 1.4; }
.hero-card__desc { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.hero-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; }
.hero-card__more { color: var(--heading); font-weight: 600; font-size: .95rem; }
@media (min-width: 980px) {
  .hero-card { justify-self: start; margin-inline-start: -36px; }
}

.tel-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.tel {
  --tel-bg: var(--brand-50);
  --tel-line: var(--brand-200);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 8px;
  padding-inline-end: 20px;
  border-radius: 20px;
  background: var(--tel-bg);
  box-shadow: inset 0 0 0 1px var(--tel-line);
  color: var(--brand-900);
  font: 700 1.22rem/1 var(--font-sans);
  letter-spacing: .02em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .3s, box-shadow .3s, scale .2s var(--ease);
}
.tel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  background: var(--primary);
  transform: translateY(103%);
  transition: transform .55s var(--ease-out);
}
.tel__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--primary);
  color: var(--on-primary);
  transition: background-color .35s, color .35s;
}
.tel__icon .icon { width: 20px; height: 20px; }
.tel__hint {
  margin-inline-start: auto;
  color: var(--brand-700);
  font: 600 .85rem var(--font-sans);
  letter-spacing: 0;
  transition: color .3s;
}
.tel:active { scale: .98; }
@media (hover: hover) {
  .tel:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--primary); }
  .tel:hover::before { transform: none; }
  .tel:hover .tel__icon { background: var(--accent); color: var(--on-accent); }
  .tel:hover .tel__icon .icon { animation: icon-ring .7s var(--ease); }
  .tel:hover .tel__hint { color: var(--accent-300); }
}

/* ---------- Paths (what do you need?) ---------- */
.paths { padding-block: 0 clamp(40px, 6vw, 80px); }
.paths__title {
  margin-bottom: 20px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0;
}
.paths__grid { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .paths__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .paths__grid { grid-template-columns: repeat(4, 1fr); } }
.path {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: color .35s, border-color .35s, scale .2s var(--ease);
}
.path::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  background: var(--brand-900);
  transform: translateY(103%);
  transition: transform .6s var(--ease-out);
}
.path__top { display: flex; align-items: center; justify-content: space-between; }
.path__go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--brand-800);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.path__go .icon { width: 18px; height: 18px; }
.path strong {
  display: block;
  margin-top: auto;
  color: var(--heading);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color .35s;
}
.path small { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; line-height: 1.6; transition: color .35s; }
.path:active { scale: .98; }
@media (max-width: 639px) {
  .path {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 0;
    padding: 16px;
  }
  .path__top { display: contents; }
  .path__text { order: 2; }
  .path__go { order: 3; }
  .path strong { font-size: 1.05rem; }
}
@media (hover: hover) {
  .path:hover { border-color: var(--brand-900); }
  .path:hover::before { transform: none; }
  .path:hover strong { color: #fff; }
  .path:hover small { color: var(--brand-200); }
  .path:hover .icon-badge { background: var(--brand-800); color: var(--accent-300); }
  .path:hover .path__go { background: var(--accent); box-shadow: none; color: var(--on-accent); }
  .path:hover .path__go .icon { animation: icon-swap .6s var(--ease-out); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(72px, 9vw, 128px);
}
.section > .container { position: relative; z-index: 1; }
.section--panel {
  margin-inline: clamp(8px, 1.4vw, 20px);
  border-radius: clamp(28px, 4vw, 56px);
  background: var(--bg-tint);
}

.ghost {
  position: absolute;
  z-index: 0;
  inset-inline: 0;
  top: clamp(10px, 2.4vw, 36px);
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}
.ghost__word {
  color: var(--brand-700);
  font: 700 clamp(3.6rem, 13vw, 12rem)/1.3 var(--font-sans);
  letter-spacing: var(--track-head);
  white-space: nowrap;
  opacity: .05;
  will-change: transform;
}
html:lang(en) .ghost__word { font-size: clamp(2.6rem, 8.2vw, 7.6rem); }
.section--panel .ghost__word { opacity: .06; }
.ghost--low { top: auto; bottom: clamp(4px, 1.6vw, 24px); }

.section-head { display: grid; gap: 14px 56px; align-items: end; margin-bottom: clamp(36px, 4.4vw, 60px); }
.section-head h2 { font-size: clamp(1.9rem, 3.9vw, 3.1rem); }
.section-head__lead { max-width: 36em; color: var(--muted); font-size: 1.1rem; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; }
}

/* Why */
.why { display: grid; gap: 20px; }
.why__copy h2 { margin-bottom: 18px; font-size: clamp(1.9rem, 3.9vw, 3.1rem); }
.why__copy > p { max-width: 34em; color: var(--muted); font-size: 1.12rem; }
.why__stats { display: grid; gap: 16px; }
@media (min-width: 600px) { .why__stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .why { grid-template-columns: 1fr 1fr; gap: 24px 72px; align-items: center; }
  .statement { grid-column: 1 / -1; }
}

.stat { display: flex; flex-direction: column; gap: 14px; }
.stat__num {
  display: flex;
  align-items: baseline;
  gap: .28em;
  color: var(--brand-700);
  font: 700 clamp(2.8rem, 4.8vw, 3.9rem)/1 var(--font-sans);
  letter-spacing: -.02em;
}
.stat__num small { color: var(--muted); font-size: .36em; font-weight: 500; letter-spacing: 0; }
.stat__src { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: .8rem; }

.dots {
  --c: 17px;
  --n: 10;
  --rows: 1;
  position: relative;
  width: calc(var(--c) * var(--n));
  height: calc(var(--c) * var(--rows));
  background: radial-gradient(circle, var(--brand-200) 0 calc(var(--c) * .3), transparent calc(var(--c) * .3 + .6px)) 0 0 / var(--c) var(--c);
}
.dots::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: var(--c);
  height: var(--c);
  background: radial-gradient(circle, var(--accent) 0 calc(var(--c) * .4), transparent calc(var(--c) * .4 + .6px));
}
.dots--30 { --c: 13px; --rows: 3; }

.statement {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  margin: clamp(28px, 4vw, 52px) 0 0;
  padding: clamp(28px, 4.4vw, 60px);
  border-radius: var(--radius-xl);
  background: var(--accent-100);
}
.statement p {
  color: var(--heading);
  font: 700 clamp(1.45rem, 3.2vw, 2.5rem)/1.5 var(--font-sans);
  letter-spacing: var(--track-head);
  text-wrap: balance;
}
html:lang(en) .statement p { line-height: 1.22; }
.statement > .icon { flex: none; width: clamp(40px, 5vw, 64px); height: clamp(40px, 5vw, 64px); color: var(--accent); stroke-width: 1.6; }
@media (max-width: 559px) { .statement { flex-direction: column; align-items: flex-start; } }

/* Support */
.hotline {
  display: grid;
  gap: 24px 56px;
  margin-bottom: 16px;
  padding: clamp(26px, 3.8vw, 52px);
  border-radius: var(--radius-xl);
  background: var(--brand-900);
}
.hotline .tag { background: rgb(255 255 255 / .1); color: var(--brand-100); }
.hotline .tag--live { background: var(--accent-300); color: var(--brand-950); }
.hotline .tag--live .live-dot { --dot: var(--brand-700); }
.hotline h3 { margin-block: 18px 8px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: var(--lh-head); letter-spacing: var(--track-head); }
.hotline__desc { max-width: 30em; color: var(--brand-200); }
.hotline .tel-list { margin: 0; }
.hotline .tel { --tel-bg: #fff; --tel-line: transparent; }
@media (min-width: 900px) {
  .hotline { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

.svc-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc { display: flex; flex-direction: column; gap: 12px; transition: border-color .35s, box-shadow .45s var(--ease); }
.svc:hover { border-color: var(--brand-300); box-shadow: var(--shadow); }
.svc:hover .icon-badge { background: var(--primary); color: var(--on-primary); }
.svc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.svc h3 { font-size: 1.35rem; }
.svc__by { margin-top: -8px; color: var(--muted); font-size: .88rem; }
.svc__desc { color: var(--muted); }
.svc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.svc__actions .more { margin-top: 0; }
.svc__actions .more[open] { flex-basis: 100%; }
.svc__plain { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; color: var(--heading); font-weight: 600; font-size: .95rem; }
.svc__plain .icon { width: 18px; height: 18px; color: var(--brand-600); }

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--paper-3);
  color: var(--muted);
  font-size: .95rem;
}
.note .icon { width: 20px; height: 20px; margin-top: .3em; color: var(--brand-600); }

/* Picture banners */
.banner {
  margin: 0 0 clamp(16px, 2vw, 24px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--accent-100);
}
.banner picture { display: block; }
.banner img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 440px);
  object-fit: cover;
}
.banner--tea img { object-position: 50% 58%; }
.banner--path img { object-position: 50% 24%; }

/* Approach */
.features { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: translate .45s var(--ease), box-shadow .45s var(--ease);
}
.feature--brand { border-color: transparent; background: var(--brand-100); }
.feature--warm { border-color: transparent; background: var(--accent-100); }
.feature__n {
  position: absolute;
  top: clamp(24px, 2.6vw, 34px);
  inset-inline-end: clamp(24px, 2.6vw, 34px);
  color: var(--muted);
  font: 600 .85rem/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  opacity: .7;
}
.feature .icon-badge { width: 56px; height: 56px; border-radius: 18px; background: var(--surface); }
.feature:not(.feature--brand):not(.feature--warm) .icon-badge { background: var(--brand-100); }
.feature h3 { margin-top: 26px; font-size: 1.28rem; }
.feature p { margin-top: 6px; color: var(--muted); }
.feature--brand p, .feature--warm p { color: var(--ink); }
@media (hover: hover) {
  .feature:hover { translate: 0 -6px; box-shadow: var(--shadow); }
  .feature:hover .icon-badge { background: var(--primary); color: var(--on-primary); }
}

/* Vision + roadmap */
.vision { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .vision { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
}
.vision__intro h2 { font-size: clamp(1.9rem, 3.9vw, 3.1rem); }
.vision__intro > p { margin-top: 16px; color: var(--muted); font-size: 1.12rem; }

.goals { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .goals { grid-template-columns: 1fr 1fr; } }
.goals li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--heading);
  font-weight: 500;
  line-height: 1.5;
}
.goals__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--accent-700);
  font: 700 .88rem var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.roadmap { position: relative; margin-top: clamp(72px, 8vw, 112px); }
.roadmap > :not(.ghost) { position: relative; z-index: 1; }
.roadmap .ghost { top: -.35em; font-size: clamp(2.8rem, 10vw, 9rem); }
html:lang(en) .roadmap .ghost { font-size: clamp(2.2rem, 7vw, 6.4rem); }
.roadmap .ghost .ghost__word { font-size: 1em; }
.roadmap .section-head { margin-bottom: 36px; }
.steps { position: relative; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .steps::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 58px;
    inset-inline: 12% 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-200), var(--accent), var(--brand-200));
    transform: scaleX(var(--line, 1));
    transform-origin: left;
  }
  [dir="rtl"] .steps::before { transform-origin: right; }
}
.step { position: relative; }
.step__n {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font: 700 1.1rem var(--font-sans);
  box-shadow: 0 0 0 7px var(--surface);
}
.step__kicker { margin-top: 22px; color: var(--accent-700); font-size: .82rem; font-weight: 600; }
.step h3 { margin-top: 2px; font-size: 1.3rem; }
.step__desc { margin-top: 8px; color: var(--muted); }

/* About */
.about { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .about { grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: start; }
}
.quote-card {
  --pad: clamp(28px, 4vw, 52px);
  margin: 0;
  padding: var(--pad) var(--pad) 0;
  border-radius: var(--radius-xl);
  background: var(--brand-900);
}
.quote-card > * { position: relative; z-index: 1; }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  color: #fff;
  font: 600 clamp(1.4rem, 2.7vw, 2.05rem)/1.55 var(--font-sans);
  letter-spacing: var(--track-head);
}
html:lang(en) .quote-card blockquote p { line-height: 1.3; }
.quote-card__note { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--brand-700); color: var(--brand-200); font-size: .95rem; }
.quote-card .quote-card__photo {
  z-index: 0;
  display: block;
  margin: 30px calc(-1 * var(--pad)) 0;
  overflow: hidden;
}
.quote-card__photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 38%;
  background: linear-gradient(var(--brand-900), transparent);
  pointer-events: none;
}
.quote-card__photo img {
  display: block;
  width: 100%;
  height: clamp(250px, 32vw, 400px);
  object-fit: cover;
  object-position: 50% 50%;
}

.about__body h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.about__body > p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.team-title { margin-top: 40px; font-size: 1.2rem; }
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.team li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px;
  padding-inline-end: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.4;
}
.team li:nth-child(6n + 2) { --turn: 150deg; }
.team li:nth-child(6n + 3) { --turn: 265deg; }
.team li:nth-child(6n + 4) { --turn: 95deg; }
.team li:nth-child(6n + 5) { --turn: 210deg; }
.team li:nth-child(6n) { --turn: 330deg; }

/* A doctor's medallion: the «ن» of our mark, drawn as a stethoscope */
.avatar {
  --dot: var(--accent-500);
  --ring: var(--accent-500);
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand-600), var(--brand-900));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22);
  color: #fff;
}
.avatar svg { width: 36px; height: 36px; }
.avatar::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1.5px solid transparent;
  border-top-color: var(--ring);
  border-radius: 50%;
  rotate: var(--turn, 35deg);
  transition: rotate 1s var(--ease-out);
}
.team li:nth-child(3n + 2) .avatar {
  --dot: var(--brand-700);
  --ring: var(--brand-500);
  background: linear-gradient(150deg, var(--accent-300), var(--accent-500));
  color: var(--brand-950);
}
.team li:nth-child(3n) .avatar {
  --ring: var(--brand-400);
  background: linear-gradient(150deg, var(--brand-50), var(--brand-200));
  color: var(--brand-800);
}
@media (hover: hover) {
  .team li:hover .avatar::before { rotate: calc(var(--turn, 35deg) + 200deg); }
}
.team__who { display: grid; gap: 1px; }
.team__role { color: var(--muted); font-size: .8rem; font-weight: 500; line-height: 1.35; }
.thanks { margin-top: 16px; color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .contact { grid-template-columns: .85fr 1.15fr; gap: 20px; align-items: stretch; }
}
.contact__info {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-xl);
  background: var(--accent-100);
}
.contact__info > * { position: relative; z-index: 1; }
.contact__info h2 { margin-bottom: 14px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.contact__info .eyebrow { color: var(--accent-700); }
.contact__info .eyebrow::before { background: var(--brand-600); }
.contact__info .contact__photo {
  --pad: clamp(28px, 4vw, 52px);
  display: block;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) clamp(24px, 3vw, 36px);
  overflow: hidden;
}
.contact__photo img {
  display: block;
  width: 100%;
  height: clamp(190px, 22vw, 270px);
  object-fit: cover;
  object-position: 72% 62%;
}
/* Beside the form, the photo takes up whatever height the card has to spare */
@media (min-width: 960px) {
  .contact__info { display: flex; flex-direction: column; }
  .contact__info > * { flex: none; }
  .contact__info .contact__photo { position: relative; flex: 1 1 270px; min-height: 270px; }
  .contact__photo img { position: absolute; inset: 0; height: 100%; }
  .contact__info .mail-chip { align-self: flex-start; }
}

.assure { display: grid; gap: 14px; margin: 28px 0; padding: 0; list-style: none; }
.assure li { display: flex; align-items: center; gap: 12px; color: var(--heading); font-weight: 500; }
.assure .icon-badge { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--brand-700); }
.assure .icon-badge .icon { width: 20px; height: 20px; }

.urgent {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  font-size: .95rem;
}
.urgent strong { display: block; color: var(--heading); }
.urgent a { font-weight: 700; white-space: nowrap; }
.urgent > .icon { width: 22px; height: 22px; margin-top: .25em; color: var(--accent-700); }

/* E-mail chip (contact card and footer) */
.mail-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px;
  padding-inline-end: 22px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--heading);
  text-decoration: none;
  transition: background-color .3s, box-shadow .3s;
}
.mail-chip__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  transition: background-color .35s, color .35s;
}
.mail-chip__icon .icon { width: 18px; height: 18px; }
.mail-chip__text { display: grid; gap: 1px; min-width: 0; text-align: start; }
.mail-chip__text small { color: var(--muted); font-size: .76rem; font-weight: 500; line-height: 1.3; }
.mail-chip__text bdi { font: 600 .98rem/1.3 "Figtree", var(--font-sans); letter-spacing: 0; }
@media (hover: hover) {
  .mail-chip:hover { box-shadow: inset 0 0 0 1.5px var(--brand-600); }
  .mail-chip:hover .mail-chip__icon { background: var(--accent); color: var(--on-accent); }
  .mail-chip:hover .mail-chip__icon .icon { animation: icon-swap .6s var(--ease-out); }
}
.mail-chip:focus-visible { border-radius: 999px; }
.contact__info .mail-chip { margin-bottom: 20px; }

/* Form */
.form {
  display: grid;
  align-content: start;
  gap: clamp(20px, 2.2vw, 26px);
  padding: clamp(22px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form [hidden] { display: none !important; }

.form__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(18px, 2.2vw, 26px);
  border-bottom: 1px solid var(--line);
}
.form__head h3 { font-size: 1.4rem; }
.form__head p { margin-top: 4px; color: var(--muted); font-size: .92rem; }
@media (max-width: 479px) {
  .form__head h3 { font-size: 1.25rem; }
  .form__head .form__meter span { width: 18px; }
}

/* Three bars that fill as the three steps are completed */
.form__meter { display: flex; flex: none; gap: 5px; margin-top: .85em; }
.form__meter span {
  position: relative;
  width: 24px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-3);
}
.form__meter span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--brand-600);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .55s var(--ease-out);
}
[dir="rtl"] .form__meter span::after { transform-origin: 100% 50%; }
.form__meter span.is-on::after { transform: none; }

.form__body { display: grid; gap: clamp(22px, 2.4vw, 28px); }

.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.step-block { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.step-block > legend { margin-bottom: 12px; padding: 0; }
.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  font: 600 1.05rem/1.4 var(--font-sans);
}
legend .step-title { display: inline-flex; }
.step-title__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-800);
  font: 700 .85rem/1 "Figtree", var(--font-sans);
  transition: background-color .35s, color .35s;
}
.step-title__n b { font-weight: inherit; }
.step-title__n .icon { display: none; width: 15px; height: 15px; stroke-width: 3; }
.is-done .step-title__n { background: var(--primary); color: var(--on-primary); }
.is-done .step-title__n b { display: none; }
.is-done .step-title__n .icon { display: block; animation: pop-in .45s var(--ease-out); }
@keyframes pop-in {
  0% { scale: .4; opacity: 0; }
  60% { scale: 1.15; opacity: 1; }
  100% { scale: 1; opacity: 1; }
}

.req { margin-inline-start: 2px; color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }

/* Reason cards */
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick { position: relative; display: block; min-width: 0; }
.pick:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .picks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pick, .pick:last-child:nth-child(odd) { grid-column: span 2; }
  .pick:nth-child(n + 4), .pick:nth-child(n + 4):last-child { grid-column: span 3; }
}
.pick input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pick__box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 14px 8px;
  height: 100%;
  min-height: 98px;
  padding: 13px 14px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--heading);
  transition: background-color .3s, box-shadow .3s, color .3s, translate .4s var(--ease);
}
.pick__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--brand-100);
  color: var(--brand-700);
  transition: background-color .3s, color .3s;
}
.pick__icon .icon { width: 20px; height: 20px; }
.pick__check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: transparent;
}
.pick__check .icon { width: 13px; height: 13px; stroke-width: 3; }
.pick__label { grid-column: 1 / -1; font: 600 .95rem/1.4 var(--font-sans); }
.pick input:checked + .pick__box {
  background: var(--primary);
  box-shadow: inset 0 0 0 1.5px var(--primary), 0 18px 30px -20px var(--brand-700);
  color: var(--on-primary);
}
.pick input:checked + .pick__box .pick__icon { background: var(--accent); color: var(--on-accent); }
.pick input:checked + .pick__box .pick__check {
  background: var(--on-primary);
  box-shadow: none;
  color: var(--primary);
  animation: pop-in .45s var(--ease-out);
}
.pick input:focus-visible + .pick__box { outline: 3px solid var(--brand-500); outline-offset: 3px; }
@media (hover: hover) {
  .pick input:not(:checked):hover + .pick__box {
    background: var(--brand-50);
    box-shadow: inset 0 0 0 1.5px var(--brand-400);
    translate: 0 -2px;
  }
}
.is-invalid .pick input:not(:checked) + .pick__box { box-shadow: inset 0 0 0 1.5px var(--danger); }

/* Fields with a floating label */
.fl { --field-bg: var(--paper); position: relative; display: block; min-width: 0; }
.fl:focus-within { --field-bg: var(--surface); }
.fl__input {
  display: block;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 26px 18px 10px;
  padding-inline-start: 54px;
  border: 1.5px solid var(--line-strong);
  border-radius: 18px;
  background: var(--field-bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
html[dir="rtl"] .fl__input[dir="ltr"] { padding-inline: 18px 54px; text-align: right; }
.fl__input::placeholder { color: var(--muted); opacity: 0; transition: opacity .25s; }
.fl__input:focus::placeholder { opacity: .7; }
.fl__input:hover { border-color: var(--brand-400); }
.fl__input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 1px var(--brand-600), 0 0 0 5px var(--brand-100);
}
.fl__input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 100px var(--brand-50) inset;
}
.fl__input:-webkit-autofill:focus {
  box-shadow: 0 0 0 100px var(--brand-50) inset, 0 0 0 1px var(--brand-600), 0 0 0 5px var(--brand-100);
}

.fl__label {
  position: absolute;
  inset-inline: 54px 18px;
  top: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 1rem;
  line-height: 64px;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform-origin: 0 0;
  transition: translate .3s var(--ease), scale .3s var(--ease), color .25s;
}
[dir="rtl"] .fl__label { transform-origin: 100% 0; }
.fl__input:focus ~ .fl__label,
.fl__input:not(:placeholder-shown) ~ .fl__label,
.fl__input:-webkit-autofill ~ .fl__label { translate: 0 -9px; scale: .8; }
.fl__input:focus ~ .fl__label { color: var(--brand-700); }

.fl__icon {
  position: absolute;
  inset-inline-start: 19px;
  top: 22px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
  transition: color .25s;
}
.fl__input:focus ~ .fl__icon { color: var(--brand-600); }

.fl__ok {
  position: absolute;
  inset-inline-end: 18px;
  top: 21px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  opacity: 0;
  scale: .3;
  pointer-events: none;
  transition: opacity .25s, scale .4s var(--ease-out);
}
.fl--area .fl__ok { z-index: 2; }
.fl__ok .icon { width: 13px; height: 13px; stroke-width: 3; }
.is-valid .fl__ok { opacity: 1; scale: 1; }
.is-valid .fl__input { padding-inline-end: 50px; }
html[dir="rtl"] .is-valid .fl__input[dir="ltr"] { padding-inline: 50px 54px; }

.fl--area .fl__input { min-height: 150px; padding-inline-start: 18px; resize: vertical; }
.fl--area .fl__label { z-index: 2; inset-inline-start: 18px; }
/* Keeps long, scrolled text from running under the label */
.fl--area::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 1.5px 18px auto 1.5px;
  height: 26px;
  border-start-start-radius: 16.5px;
  background: var(--field-bg);
  pointer-events: none;
  transition: background-color .25s;
}
[dir="rtl"] .fl--area::before { inset-inline: 1.5px 18px; }
@supports (field-sizing: content) {
  .fl--area .fl__input { field-sizing: content; max-height: 60vh; resize: none; }
}

.field__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 1.55em;
  padding-inline: 6px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}
.field__note--auto { min-height: 0; }
.field__error { display: none; align-items: center; gap: 6px; color: var(--danger); font-weight: 500; }
.field__error .icon { width: 16px; height: 16px; }
.field__count { flex: none; margin-inline-start: auto; font-size: .8rem; }
.is-invalid .field__error { display: inline-flex; }
.is-invalid .field__hint { display: none; }
.is-invalid .fl__input { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.is-invalid .fl__label, .is-invalid .fl__icon { color: var(--danger); }

/* How should we reply? */
.via {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.via__opt { position: relative; display: block; }
.via__opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.via__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 999px;
  color: var(--muted);
  font: 600 .9rem/1.2 var(--font-sans);
  white-space: nowrap;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.via__opt span .icon { width: 17px; height: 17px; }
.via__opt input:checked + span {
  background: var(--surface);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  color: var(--brand-800);
}
.via__opt input:focus-visible + span { outline: 3px solid var(--brand-500); outline-offset: 2px; }
@media (hover: hover) {
  .via__opt input:not(:checked):hover + span { color: var(--heading); }
}
@media (max-width: 479px) {
  .via { display: grid; justify-self: stretch; }
  .via__opt span { padding-inline: 8px; }
}
.field:has(input[name="reply_via"][value="email"]:checked) [data-via="phone"],
.field:has(input[name="reply_via"][value="phone"]:checked) [data-via="email"] { display: none; }

/* Consent */
.check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  font-size: .93rem;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color .3s, box-shadow .3s;
}
.check:has(input:checked) { background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand-300); }
.check input {
  appearance: none;
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin: .1em 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.check input::after {
  content: "";
  width: 12px;
  height: 6.5px;
  margin-top: -3px;
  border-left: 2.5px solid var(--on-primary);
  border-bottom: 2.5px solid var(--on-primary);
  transform: rotate(-45deg);
  opacity: 0;
}
.check input:checked { border-color: var(--primary); background: var(--primary); animation: pop-in .4s var(--ease-out); }
.check input:checked::after { opacity: 1; }
.is-invalid .check { box-shadow: inset 0 0 0 1.5px var(--danger); }
.is-invalid .check input { border-color: var(--danger); }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; inset-inline-start: -9999px; }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.form__privacy { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.form__privacy .icon { width: 16px; height: 16px; }
@media (max-width: 559px) { .form__submit .btn { width: 100%; justify-content: space-between; } }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: block; }
.is-loading .btn__icon .icon { display: none; }
.is-loading .btn { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: .95rem;
}
.form-status.is-shown { display: flex; animation: status-in .45s var(--ease-out); }
.form-status .icon { width: 20px; height: 20px; margin-top: .25em; }
.form-status a { color: inherit; font-weight: 700; white-space: nowrap; }
.form-status--success { background: var(--brand-100); color: var(--brand-800); }
.form-status--error { background: var(--danger-soft); color: var(--danger); }
.form-status--info { background: var(--accent-100); color: var(--accent-700); }
@keyframes status-in {
  from { opacity: 0; translate: 0 10px; }
}

/* Shown in place of the fields once a message has been sent */
.form__done {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-block: clamp(32px, 6vw, 72px);
  text-align: center;
}
.form__done:focus { outline: none; }
.form__done-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  animation: pop-in .6s var(--ease-out);
}
.form__done-icon .icon { width: 36px; height: 36px; stroke-width: 2.5; }
.form__done h3 { font-size: 1.5rem; }
.form__done p { max-width: 30em; color: var(--muted); }
.form__done .btn { margin-top: 10px; }
.form.is-sent { align-content: center; }
.form.is-sent .form__head,
.form.is-sent .form__body { display: none; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  overflow: clip;
  margin-top: clamp(24px, 3vw, 40px);
  padding-block: clamp(36px, 4.4vw, 56px) clamp(18px, 2vw, 24px);
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  background: var(--brand-950);
  color: var(--brand-200);
}
@supports (color: color-mix(in srgb, red, blue)) {
  .footer {
    background:
      radial-gradient(56% 80% at 88% 0%, color-mix(in srgb, var(--brand-700) 60%, transparent), transparent 72%),
      radial-gradient(44% 70% at 0% 60%, color-mix(in srgb, var(--accent-700) 22%, transparent), transparent 72%),
      var(--brand-950);
  }
  [dir="rtl"] .footer {
    background:
      radial-gradient(56% 80% at 12% 0%, color-mix(in srgb, var(--brand-700) 60%, transparent), transparent 72%),
      radial-gradient(44% 70% at 100% 60%, color-mix(in srgb, var(--accent-700) 22%, transparent), transparent 72%),
      var(--brand-950);
  }
}
.footer > .container { position: relative; z-index: 1; }
.footer a { color: var(--brand-100); text-decoration: none; }

.footer__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.4vw, 44px); }
@media (min-width: 680px) {
  .footer__main { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 7vw, 104px); }
}

.footer__brand { display: grid; gap: 12px; align-content: start; justify-items: start; }
.footer__id { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.footer .brand__logo { width: 166px; height: 34px; --noon: #fff; --dot: var(--accent-300); --logo-text: #fff; }
.footer__tagline {
  max-width: 22em;
  color: #fff;
  font: 600 clamp(1.15rem, 1.8vw, 1.42rem)/1.5 var(--font-sans);
  letter-spacing: var(--track-head);
}
html:lang(en) .footer__tagline { line-height: 1.3; }
.footer__tagline .accent { color: var(--accent-300); }
.footer__origin { color: var(--brand-300); font-size: .9rem; }
.footer__reach { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }

.footer .mail-chip { background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); color: #fff; }
.footer .mail-chip__icon { background: var(--accent); color: var(--on-accent); }
.footer .mail-chip__text small { color: var(--brand-200); }
@media (hover: hover) {
  .footer .mail-chip:hover { background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .32); }
  .footer .mail-chip:hover .mail-chip__icon { background: #fff; color: var(--brand-900); }
}

/* The national flag, drawn to its 2:3 proportions */
.flag {
  position: relative;
  display: inline-block;
  flex: none;
  width: 54px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / .25), 0 12px 22px -10px rgb(0 0 0 / .7);
}
.flag svg { display: block; width: 100%; height: 100%; }
.flag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 18%, rgb(255 255 255 / .3) 36%, transparent 50%, rgb(0 0 0 / .16) 68%, transparent 86%) 120% 0 / 240% 100%;
  animation: flag-light 6s ease-in-out infinite;
}
@keyframes flag-light {
  0%, 12% { background-position: 120% 0; }
  88%, 100% { background-position: -120% 0; }
}

.lang--dark { background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.lang--dark .lang__item { color: var(--brand-200); }
.lang--dark .lang__item.is-active { background: #fff; color: var(--brand-950); box-shadow: none; }
.footer .lang--dark a.lang__item:hover { background: rgb(255 255 255 / .14); color: #fff; }

.footer__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.footer__title {
  margin-bottom: 4px;
  color: var(--accent-300);
  font: 600 .8rem/1.5 var(--font-sans);
  letter-spacing: 0;
}
html:lang(en) .footer__title { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 0; padding: 0; list-style: none; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 calc(100% - 7px) / 0 1.5px;
  font-weight: 500;
  transition: background-size .45s var(--ease-out), color .3s;
}
[dir="rtl"] .footer__links a { background-position: 100% calc(100% - 7px); }
.footer__links a:hover { color: #fff; background-size: 100% 1.5px; }

/* References: a dot sits in each gap; the one that would start a line falls outside the list and is clipped */
.footer__links--refs { gap: 0 22px; margin: -2px -6px; padding: 2px 6px; overflow: hidden; }
.footer__links--refs li { position: relative; }
.footer__links--refs li::before {
  content: "";
  position: absolute;
  inset-inline-start: -12.5px;
  top: calc(50% - 1.5px);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand-500);
}
.footer__links--refs a {
  min-height: 32px;
  color: var(--brand-200);
  font-size: .86rem;
  font-weight: 400;
}
/* On phones the references become one row of chips that scrolls sideways */
@media (max-width: 679px) {
  .footer__links a { min-height: 36px; }
  .footer__links--refs {
    flex-wrap: nowrap;
    gap: 8px;
    margin: -4px calc(-1 * var(--gutter));
    padding: 8px var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .footer__links--refs::-webkit-scrollbar { display: none; }
  .footer__links--refs li { flex: none; scroll-snap-align: start; }
  .footer__links--refs li::before { display: none; }
  .footer__links--refs a,
  [dir="rtl"] .footer__links--refs a {
    min-height: 40px;
    padding-inline: 15px;
    border-radius: 999px;
    background: rgb(255 255 255 / .07);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .13);
    color: var(--brand-100);
    font-size: .84rem;
    white-space: nowrap;
  }
  .footer__links--refs a:focus-visible { border-radius: 999px; }
}

.footer__bottom {
  display: grid;
  gap: 12px 28px;
  align-items: center;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / .1);
  color: var(--brand-300);
  font-size: .82rem;
  line-height: 1.6;
}
.footer__bottom p:first-child { max-width: 62em; }
.footer__credit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.footer__by { display: inline-flex; align-items: center; gap: .35em; }
.footer__by::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-inline-end: calc(12px - .35em);
  border-radius: 50%;
  background: var(--brand-500);
}
.footer .footer__by a {
  padding-block: 4px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 100% 1px;
  color: #fff;
  font-weight: 600;
  transition: color .3s;
}
.footer .footer__by a:hover { color: var(--accent-300); }
.footer__bottom { grid-template-columns: minmax(0, 1fr) auto; }
.footer__bottom p:first-child { grid-column: 1 / -1; }
.footer__bottom .footer__up { justify-self: end; }
@media (max-width: 679px) {
  .footer__bottom { font-size: .78rem; }
  .footer__credit { display: grid; justify-items: start; gap: 0; }
  .footer__by::before { display: none; }
}
@media (min-width: 1000px) {
  .footer__bottom { grid-template-columns: 1fr auto auto; }
  .footer__bottom p:first-child { grid-column: auto; }
}
.footer__up {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-height: 44px;
  padding-inline: 18px 6px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--brand-800);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  transition: box-shadow .3s, background-color .3s;
}
.footer__up-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.footer__up-icon .icon { width: 16px; height: 16px; }
@media (hover: hover) {
  .footer__up:hover { background: var(--brand-900); box-shadow: inset 0 0 0 1.5px var(--brand-600); }
  .footer__up:hover .icon { animation: icon-rise .6s var(--ease-out); }
}
@keyframes icon-rise {
  0% { translate: 0 0; opacity: 1; }
  45% { translate: 0 -150%; opacity: 0; }
  46% { translate: 0 150%; opacity: 0; }
  100% { translate: 0 0; opacity: 1; }
}

/* The wordmark sits behind the footer, so it adds no height */
.footer__ghost {
  position: absolute;
  z-index: 0;
  inset-inline: 0;
  bottom: -.17em;
  color: var(--brand-900);
  direction: ltr;
  font: 700 clamp(4.4rem, 17vw, 13.5rem)/.8 "Figtree", sans-serif;
  letter-spacing: -.045em;
  text-align: center;
  white-space: nowrap;
  opacity: .55;
  pointer-events: none;
  user-select: none;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .footer__ghost {
    background: linear-gradient(var(--brand-800), var(--brand-950) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ---------- Mobile support bar ---------- */
.sos {
  position: fixed;
  z-index: 40;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px;
  padding-inline-start: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / .86);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transform: translateY(calc(100% + 28px));
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility .5s;
}
.sos.is-visible { transform: none; visibility: visible; }
.sos__text { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 600; font-size: .95rem; }
@media (min-width: 760px) { .sos { display: none; } }

/* ---------- Pop-up (read more / details) ---------- */
html:has(dialog[open]) { overflow: hidden; }

.pop {
  width: min(680px, 100% - 32px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
  opacity: 0;
  transform: translateY(32px) scale(.97);
  transition-property: opacity, transform, display, overlay;
  transition-duration: .45s;
  transition-timing-function: var(--ease-out);
  transition-behavior: allow-discrete;
}
.pop[open] { opacity: 1; transform: none; }
@starting-style {
  .pop[open] { opacity: 0; transform: translateY(32px) scale(.97); }
}
.pop::backdrop {
  background-color: rgb(0 25 21 / 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: display .45s allow-discrete, overlay .45s allow-discrete, background-color .45s ease-out, backdrop-filter .45s ease-out, -webkit-backdrop-filter .45s ease-out;
}
.pop[open]::backdrop {
  background-color: rgb(0 25 21 / .6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
@starting-style {
  .pop[open]::backdrop { background-color: rgb(0 25 21 / 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
}
.pop form { display: contents; }
.pop__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(84vh, 780px);
  max-height: min(84dvh, 780px);
  overflow: hidden;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 50px 120px -30px rgb(0 0 0 / .6);
}
.pop__head {
  padding: 34px clamp(24px, 4vw, 40px) 30px;
  padding-inline-end: 84px;
  border-radius: 0 0 34px 34px;
  background: var(--brand-900);
  color: #fff;
}
.pop__head > * { position: relative; z-index: 1; }
.pop__mark {
  position: absolute;
  z-index: 0;
  inset-inline-end: -26px;
  bottom: -54px;
  width: 190px;
  height: 190px;
  opacity: .55;
  --noon: var(--brand-800);
  --dot: var(--brand-700);
}
.pop__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--accent-300);
  font-size: .88rem;
  font-weight: 600;
}
.pop__kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.pop__title { color: #fff; font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.4; letter-spacing: 0; }
html:lang(en) .pop__title { line-height: 1.2; letter-spacing: -.015em; }
.pop .pop__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  inset-inline-end: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .12);
  color: #fff;
  cursor: pointer;
  transition: background-color .3s, rotate .4s var(--ease-out);
}
.pop__close:hover { background: var(--accent); color: var(--on-accent); rotate: 90deg; }

.pop__body {
  padding: clamp(24px, 3.4vw, 34px) clamp(24px, 4vw, 40px);
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 1.05rem;
}
.pop__body > * + * { margin-top: 14px; }
.pop__body p { color: var(--ink); }
.pop__body ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pop__body li {
  position: relative;
  padding: 14px 18px;
  padding-inline-start: 44px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pop__body li::before {
  content: "";
  position: absolute;
  top: 1.35em;
  inset-inline-start: 20px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.pop__body .facts { gap: 12px; }
.pop__body .facts div {
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pop__body .facts dt { color: var(--brand-700); font-size: .86rem; }
.pop__body .facts dd { color: var(--ink); }

.pop__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(24px, 4vw, 40px) 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.pop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pop__actions:empty { display: none; }
.pop__domain { color: var(--muted); font-size: .88rem; }

@media (max-width: 639px) {
  .pop { width: 100%; margin: auto 0 0; transform: translateY(100%); }
  .pop[open] { transform: none; }
  @starting-style {
    .pop[open] { transform: translateY(100%); }
  }
  .pop__panel { max-height: 88vh; max-height: 88dvh; border-radius: 30px 30px 0 0; }
  .pop__head { padding-top: 40px; border-radius: 0 0 28px 28px; }
  .pop__head::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 50%;
    width: 44px;
    height: 5px;
    margin-left: -22px;
    border-radius: 5px;
    background: rgb(255 255 255 / .3);
  }
  .pop__foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .pop__foot .btn { flex: 1 1 auto; }
}

/* ---------- Motion (driven by GSAP in main.js) ---------- */
.w, .w__i { display: inline-block; }

/* Hidden only until GSAP takes over; the inline head script removes .js-anim if GSAP never loads. */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .reveal,
  .js-anim .rise { visibility: hidden; }
}

.progress {
  position: fixed;
  z-index: 60;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700) 60%, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
[dir="rtl"] .progress { transform-origin: right; background: linear-gradient(270deg, var(--brand-500), var(--brand-700) 60%, var(--accent)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pop, .pop[open] { transform: none; }
  @starting-style {
    .pop[open] { transform: none; }
  }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Brand guidelines page ---------- */
.kit-hero { padding-block: clamp(40px, 6vw, 80px) 24px; }
.kit-hero h1 { margin-block: 16px 14px; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.kit-hero p { max-width: 40em; color: var(--muted); font-size: 1.12rem; }

.kit-story { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .kit-story { grid-template-columns: 1fr 1fr; gap: 64px; } }
.kit-story__art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--brand-100), var(--accent-100));
}
.kit-story__art img { width: 50%; }
.kit-story ol { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.kit-story li { display: flex; gap: 14px; align-items: flex-start; }
.kit-story li p { color: var(--muted); }
.kit-story li strong { color: var(--heading); }
.kit-story .icon-badge { font-weight: 700; }

.kit-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .kit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .kit-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.tile { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.tile__art { display: grid; place-items: center; min-height: 220px; padding: 36px; }
.tile__art img { max-height: 110px; width: auto; }
.tile__art--sq img { max-height: 140px; }
.tile__art--light { background: #FFFFFF; }
.tile__art--tint { background: var(--paper-2); }
.tile__art--dark { background: var(--brand-950); }
.tile__art--brand { background: var(--brand-700); }
.tile__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.tile__meta h3 { font-size: 1rem; }
.tile__meta p { color: var(--muted); font-size: .85rem; }
.dl { display: flex; flex-wrap: wrap; gap: 6px; }
.dl a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-800);
  font: 600 .8rem var(--font-sans);
  text-decoration: none;
  transition: background-color .3s, color .3s;
}
.dl a:hover { background: var(--primary); color: var(--on-primary); }
.dl .icon { width: 14px; height: 14px; }

.swatches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.swatch { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.swatch__chip { height: 96px; }
.swatch__meta { padding: 12px 14px; }
.swatch__meta strong { display: block; color: var(--heading); font-size: .95rem; }
.swatch__meta code { color: var(--muted); font-size: .82rem; direction: ltr; unicode-bidi: isolate; }

.specimen { display: grid; gap: 16px; }
@media (min-width: 900px) { .specimen { grid-template-columns: 1fr 1fr; } }
.specimen p { color: var(--muted); }
.specimen .specimen__big { margin-block: 12px 8px; color: var(--heading); font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.3; }
.specimen .specimen__big--accent { font-family: var(--font-accent); font-weight: 600; font-size: clamp(2.8rem, 5.6vw, 4.2rem); line-height: 1.1; color: var(--brand-600); }
.specimen__big--accent [lang="en"] { font-style: italic; font-weight: 400; }

.rules { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rules .icon { width: 20px; height: 20px; margin-top: .3em; }
.rules--do .icon { color: var(--brand-600); }
.rules--dont .icon { color: var(--danger); }
