/* ==========================================================================
   Yarden Kerem — "Focusing", second pass
   The practice is called Focusing, and its tools are the breath and the lens.
   One bold element: an ink panel with a breathing lens, where titles come
   into focus. Everything else is quiet and legible: one family (IBM Plex Sans
   Hebrew), blues only, generous space, real structure instead of text walls.
   ========================================================================== */

/* Fonts: IBM Plex Sans Hebrew, self-hosted (SIL OFL, see fonts/LICENSE-IBM-Plex.txt) */
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/IBMPlexSansHebrew-ExtraLight.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/IBMPlexSansHebrew-Light.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/IBMPlexSansHebrew-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/IBMPlexSansHebrew-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/IBMPlexSansHebrew-SemiBold.woff2") format("woff2"); }

:root {
  /* Palette — the five blues */
  --ink:    #0f2140;   /* text, the lens panels */
  --cobalt: #2e57c4;   /* actions and links */
  --mist:   #e8eef7;   /* secondary surfaces */
  --paper:  #f9fafc;   /* page */
  --slate:  #56637a;   /* secondary text */

  /* Derived from them */
  --ink-soft: #2a3a57;
  --ink-2: #16294d;            /* raised surface on ink */
  --cobalt-deep: #2346a3;
  --halo: #b9cbf5;             /* cobalt seen through the lens, used on ink */
  --rule: #d5deeb;
  --rule-dark: rgba(232, 238, 247, .14);
  --on-ink: #e8eef7;
  --on-ink-soft: #a9b8cf;
  --white: #ffffff;

  --font: "IBM Plex Sans Hebrew", "Arial Hebrew", "Segoe UI", sans-serif;
  /* Scale: 1.333 (perfect fourth) from 18px body; display is fluid */
  --t-small: 0.875rem;   /* 14 */
  --t-body:  1.125rem;   /* 18 */
  --t-lead:  1.375rem;   /* 22 */
  --t-h3:    1.75rem;    /* 28 */
  --t-h2:    clamp(2rem, 1.3rem + 2.6vw, 3.25rem);     /* 32–52 */
  --t-h1:    clamp(2.7rem, 1.4rem + 5vw, 5.4rem);      /* 43–86 */
  --t-hero:  clamp(3.2rem, 1rem + 8.8vw, 8.8rem);      /* 51–141 */

  --gap: clamp(20px, 3vw, 32px);
  --section: clamp(80px, 10vw, 152px);
  --wrap: 1240px;
  --measure: 38em;
  /* Radii follow hierarchy: panels > cards > controls */
  --r-panel: clamp(24px, 3vw, 40px);
  --r-card: 20px;
  --r-ctl: 12px;
  --pill: 999px;
  --header-h: 76px;
  --shadow: 0 1px 0 rgba(15, 33, 64, .04), 0 18px 40px -28px rgba(15, 33, 64, .45);
}

/* Base ---------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 72px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: inherit; text-wrap: balance; }
h1 { font-size: var(--t-h1); font-weight: 200; line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: var(--t-h2); font-weight: 300; line-height: 1.12; letter-spacing: -0.028em; }
h3 { font-size: var(--t-h3); font-weight: 400; line-height: 1.28; letter-spacing: -0.015em; }
h4 { font-size: var(--t-lead); font-weight: 500; line-height: 1.4; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 600; }
::selection { background: var(--halo); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
@media (min-width: 760px) { .wrap { width: min(var(--wrap), 100% - 80px); } }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-soft); max-width: 30em; }
.quiet { color: var(--slate); }
.narrow { max-width: var(--measure); }

/* Buttons ------------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid var(--cobalt); border-radius: var(--pill);
  background: var(--cobalt); color: var(--white) !important;
  font: 500 var(--t-body)/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn--line { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }
.btn--paper:hover { background: var(--mist); border-color: var(--mist); }
.btn--line-light { background: transparent; color: var(--paper) !important; border-color: rgba(249, 250, 252, .45); }
.btn--line-light:hover { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row { margin: 8px 0 0; }
.more { font-weight: 500; }

/* Header -------------------------------------------------------------------*/
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(249, 250, 252, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; line-height: 1.15; flex: none; }
.brand::before { content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--cobalt) 0 5px, transparent 6px), repeating-radial-gradient(circle, transparent 0 7px, rgba(46, 87, 196, .45) 7.5px 8.5px, transparent 9px 11px); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand b { display: block; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; }
.brand span { display: block; font-size: var(--t-small); color: var(--slate); }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 2px; padding: 4px; border-radius: var(--pill); background: rgba(232, 238, 247, .7); }
.nav a, .nav__label { display: block; padding: 9px 16px; border-radius: var(--pill); color: var(--ink); font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.nav > ul > li > a:hover, .has-sub:hover > .nav__label, .has-sub:focus-within > .nav__label { background: var(--paper); color: var(--cobalt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--cobalt); }
.has-sub { position: relative; }
.nav__toggle { display: none; }
.nav__sub { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 260px; padding: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: 0 30px 60px -30px rgba(15, 33, 64, .45); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, visibility .15s, transform .15s; }
.nav__sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__sub a { padding: 9px 14px; border-radius: var(--r-ctl); white-space: normal; }
.nav__sub a:hover { background: var(--mist); color: var(--ink); }
.has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub, .has-sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.header-cta { flex: none; }
.menu-btn { display: none; }

@media (max-width: 1140px) {
  :root { --header-h: 66px; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  html.menu-open .toc, html.menu-open .whatsapp, html.menu-open .a11y-btn { visibility: hidden; }
  .site-header__inner { gap: 12px; }
  .header-cta { margin-inline-start: auto; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--pill); background: none; color: var(--ink); font: 500 1rem var(--font); cursor: pointer; }
  .menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
  .nav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; margin: 0; background: var(--paper); padding: 24px 16px 48px; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav > ul { flex-direction: column; gap: 0; max-width: 560px; margin-inline: auto; padding: 0; background: none; border-radius: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--rule); }
  .nav a, .nav__label { font-size: 1.5rem; font-weight: 300; padding: 16px 0; border-radius: 0; }
  .nav > ul > li > a:hover, .has-sub:hover > .nav__label, .has-sub:focus-within > .nav__label { background: none; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > .nav__label, .has-sub > a { flex: 1; }
  .nav__toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: var(--ink); font: 300 1.75rem/1 var(--font); cursor: pointer; }
  .nav__toggle::before { content: "+"; }
  .has-sub.is-open > .nav__toggle::before { content: "–"; }
  .nav__sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: 0 0 12px; display: none; }
  .nav__sub::before { display: none; }
  .has-sub.is-open > .nav__sub { display: block; }
  .nav__sub a { font-size: 1.125rem; font-weight: 400; padding: 8px 16px; color: var(--ink-soft); }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .brand b { font-size: 1.15rem; }
  .brand::before { width: 28px; height: 28px; }
  .header-cta { min-height: 40px; padding: 0 14px; font-size: .95rem; }
  .menu-btn { min-height: 40px; padding: 0 14px; }
}
@media (max-width: 350px) { .header-cta { display: none; } .menu-btn { margin-inline-start: auto; } }

/* The lens: ink panel, breathing rings, titles that come into focus --------*/
.hero, .page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 8px clamp(8px, 1.2vw, 16px) 0;
  border-radius: var(--r-panel);
  background: var(--ink); color: var(--on-ink);
}
.hero::before, .page-hero::before {
  /* the lens: concentric rings with a soft cobalt core */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset-inline-end: calc(var(--lens) * -0.28); top: 50%;
  width: var(--lens); aspect-ratio: 1; border-radius: 50%;
  translate: 0 -50%;
  background:
    radial-gradient(circle, rgba(46, 87, 196, .55) 0, rgba(46, 87, 196, .18) 26%, transparent 52%),
    repeating-radial-gradient(circle, transparent 0 calc(var(--lens) * .045), rgba(185, 203, 245, .16) calc(var(--lens) * .045) calc(var(--lens) * .045 + 1px));
  -webkit-mask-image: radial-gradient(circle, #000 42%, transparent 71%);
  mask-image: radial-gradient(circle, #000 42%, transparent 71%);
  animation: breathe 11s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { scale: .94; } 45% { scale: 1.05; } }
.hero a:not(.btn), .page-hero a:not(.btn) { color: var(--halo); }

.page-hero { --lens: clamp(420px, 62vw, 900px); padding: clamp(64px, 10vw, 150px) 0 clamp(48px, 7vw, 104px); }
.page-hero h1 { max-width: 13em; margin: 0; color: var(--white); }
.page-hero h1, .hero h1 span { animation: focus-in 1.8s cubic-bezier(.2, .6, .1, 1) both; }
@keyframes focus-in {
  from { filter: blur(16px); opacity: 0; }
  55%  { opacity: 1; }
  to   { filter: blur(0); opacity: 1; }
}
.page-hero__sub { margin: clamp(20px, 3vw, 32px) 0 0; max-width: 30em; font-size: var(--t-lead); line-height: 1.55; color: var(--on-ink-soft); }
.page-hero .crumb { margin: 0 0 20px; color: var(--on-ink-soft); font-size: 1rem; }
.page-hero .crumb a { color: var(--halo); }
.page-hero .actions { margin-top: 32px; }

/* Home hero */
.hero { --lens: clamp(520px, 78vw, 1200px); padding: clamp(80px, 12vw, 190px) 0 clamp(56px, 8vw, 120px); }
.hero h1 { font-size: var(--t-hero); font-weight: 200; line-height: .98; letter-spacing: -0.05em; margin: 0 0 clamp(36px, 5vw, 64px); color: var(--white); }
.hero h1 span { display: block; }
.hero h1 span + span { animation-delay: .45s; color: var(--halo); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 30em) auto; gap: 28px 64px; align-items: end; justify-content: space-between; }
.hero__foot .lead { margin: 0; color: var(--on-ink); }
.hero__place { margin: 20px 0 0; color: var(--on-ink-soft); font-size: 1rem; }
.hero .btn--line { color: var(--paper) !important; border-color: rgba(249, 250, 252, .45); }
.hero .btn--line:hover { background: var(--paper); color: var(--ink) !important; }
@media (max-width: 860px) { .hero__foot { grid-template-columns: 1fr; } }

/* In-page contents (built by main.js from the section headings) -----------*/
.toc { position: sticky; top: var(--header-h); z-index: 30; margin-top: 12px; background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
.toc__inner { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; -webkit-mask-image: linear-gradient(to left, #000 92%, transparent); mask-image: linear-gradient(to left, #000 92%, transparent); }
.toc__inner::-webkit-scrollbar { display: none; }
.toc__label { flex: none; margin-inline-end: 6px; color: var(--slate); font-size: .95rem; }
.toc a { flex: none; padding: 8px 16px; border-radius: var(--pill); background: var(--mist); color: var(--ink); font-size: .95rem; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.toc a:hover { background: var(--halo); }
.toc a[aria-current="true"] { background: var(--ink); color: var(--paper); }

/* Home: the two ways in -----------------------------------------------------*/
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.way { display: flex; flex-direction: column; gap: 28px; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-panel); min-height: 540px; }
.way--ink { background: var(--ink-2); color: var(--on-ink); }
.way--mist { background: var(--mist); color: var(--ink); }
.way h2 { margin: 0; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); font-weight: 200; }
.way__kind { margin: 0; font-size: 1rem; color: var(--slate); }
.way--ink .way__kind { color: var(--on-ink-soft); }
.way dl { margin: 0; display: grid; gap: 22px; max-width: 30em; }
.way dt { font-weight: 600; margin-bottom: 4px; }
.way dd { margin: 0; color: var(--ink-soft); }
.way--ink dd { color: var(--on-ink-soft); }
.way .actions { margin-top: auto; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } .way { min-height: 0; } }

.also { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.also > p { margin: 0; color: var(--slate); }
.also ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.also li a { display: grid; grid-template-columns: minmax(0, 16em) 1fr; gap: 6px 32px; padding: 20px 24px; border-radius: var(--r-card); background: var(--mist); color: var(--ink); text-decoration: none; transition: background .2s; }
.also li a:hover { background: var(--halo); }
.also b { font-weight: 500; font-size: var(--t-lead); line-height: 1.35; }
.also span { color: var(--slate); }
@media (max-width: 760px) { .also, .also li a { grid-template-columns: 1fr; } }

/* Sections -----------------------------------------------------------------*/
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); margin-inline: clamp(8px, 1.2vw, 16px); border-radius: var(--r-panel); }
.section--ink { background: var(--ink); color: var(--on-ink); margin-inline: clamp(8px, 1.2vw, 16px); border-radius: var(--r-panel); }
.hero + .section { padding-top: 8px !important; }
.section--mist + .section--ink, .section--ink + .section--mist, .section--mist + .section--mist { margin-top: 8px; }
.section--ink a:not(.btn) { color: var(--paper); }
.section--ink .quiet, .section--ink .lead { color: var(--on-ink-soft); }
.section__title { max-width: 14em; margin-bottom: clamp(40px, 5vw, 72px); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.split > h2, .split > .heading { position: sticky; top: calc(var(--header-h) + 84px); margin: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split > h2, .split > .heading { position: static; } }
.split .body { max-width: var(--measure); }
.split .body > p:first-child { font-size: var(--t-lead); line-height: 1.6; color: var(--ink); }
.plain-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.plain-list li { position: relative; padding: 18px 22px; padding-inline-start: 56px; border-radius: var(--r-card); background: var(--paper); }
.section:not(.section--mist) .plain-list li { background: var(--mist); }
.plain-list li::before { content: ""; position: absolute; inset-inline-start: 22px; top: 1.45em; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--cobalt); }

/* Voices — one testimony at a time */
.voice { margin: 0; max-width: 26em; }
.voice blockquote { margin: 0; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); font-weight: 200; line-height: 1.35; letter-spacing: -0.02em; }
.voice blockquote::before { content: "״"; display: block; height: .55em; font-size: 2.2em; line-height: 1; color: var(--halo); }
.voice figcaption { margin-top: 28px; color: var(--on-ink-soft); }
.voices { display: grid; }
.voices > .voice { grid-area: 1 / 1; }
.voices > .voice[hidden] { display: block; visibility: hidden; }
.voices__nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 48px; }
.voices__count { color: var(--on-ink-soft); font-variant-numeric: tabular-nums; }

/* Methods — rows that open into their page */
.methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.methods a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 8px clamp(32px, 7vw, 112px); align-items: center; padding: 28px clamp(20px, 3vw, 36px); border-radius: var(--r-card); background: var(--mist); color: var(--ink); text-decoration: none; transition: background .2s; }
.section--mist .methods a { background: var(--paper); }
.methods a:hover { background: var(--halo); }
.methods__name { font-size: var(--t-h3); font-weight: 300; line-height: 1.25; letter-spacing: -0.015em; }
.methods__desc { color: var(--slate); max-width: var(--measure); }
@media (max-width: 760px) { .methods a { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 112px); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about h2 { margin: 0; }
.about .body { max-width: var(--measure); }
.about .body > p:first-child { font-size: var(--t-lead); line-height: 1.6; }

.issue-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15em), 1fr)); gap: 8px; }
.issue-list li { position: relative; padding: 12px 18px; padding-inline-start: 44px; border-radius: var(--r-ctl); background: var(--mist); line-height: 1.5; }
.section--mist .issue-list li { background: var(--paper); }
.issue-list li::before { content: ""; position: absolute; inset-inline-start: 18px; top: 1.15em; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--cobalt); }
.vision { margin-top: 32px; padding: 24px 28px; border-radius: var(--r-card); background: var(--mist); color: var(--ink-soft); }
.epigraph { margin: 32px 0; }
.epigraph p { font-size: var(--t-lead); font-weight: 300; line-height: 1.5; margin: 0 0 8px; }
.epigraph cite { font-style: normal; color: var(--slate); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Blog index */
.topic-nav ul { list-style: none; margin: 0 0 56px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-nav li a { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 16px; border-radius: var(--pill); background: var(--mist); color: var(--ink); font-weight: 500; text-decoration: none; }
.topic-nav li { display: flex; align-items: center; }
.topic-nav li > .quiet { display: none; }
.topic-nav li a:hover { background: var(--halo); }
.year { margin-bottom: 72px; }
.year h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); font-weight: 200; color: var(--cobalt); margin-bottom: 20px; font-variant-numeric: tabular-nums; }

/* Listen & read */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 900px) { .media-split { grid-template-columns: 1fr; } }
.media-split h2 { font-size: var(--t-h3); font-weight: 400; margin-bottom: 28px; }
.episode { margin-bottom: 28px; }
.episode p { margin: 12px 0 0; }

/* Entries (post lists) */
.entries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.entries--single { grid-template-columns: 1fr; }
.entries a { display: flex; flex-direction: column; height: 100%; padding: 26px 28px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.block--tint .entries a, .section--mist .entries a { border-color: transparent; }
.entries a:hover { border-color: var(--cobalt); }
.entries__thumb { position: relative; display: block; margin: -12px -14px 20px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--mist); }
.entries__thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s; }
.entries a:hover .entries__thumb img { scale: 1.03; }
.entries__thumb--video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(249, 250, 252, .92) center/16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 3l10 6-10 6z' fill='%230f2140'/%3E%3C/svg%3E"); }
.entries__thumb:has(img.is-missing) { display: none; }
.entries h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; margin: 0 0 10px; }
.entries a:hover h3 { color: var(--cobalt); }
.entries p { margin: 0; color: var(--slate); font-size: 1rem; line-height: 1.65; }
.entries small { display: block; margin-top: auto; padding-top: 14px; color: var(--slate); font-size: var(--t-small); }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.post-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 22px; border-radius: var(--r-ctl); background: var(--mist); color: var(--ink); text-decoration: none; }
.post-list a:hover { background: var(--halo); }
.post-list time { flex: none; color: var(--slate); font-size: var(--t-small); }
@media (max-width: 560px) { .post-list a { flex-direction: column; gap: 2px; } }

/* Contact ------------------------------------------------------------------*/
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 128px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact h2 { margin-bottom: 20px; font-weight: 200; }
.contact-lines { margin: 40px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; }
.contact-lines dt { color: var(--on-ink-soft); }
.contact-lines dd { margin: 0; }
.contact-lines a { color: var(--paper); text-decoration: none; font-size: var(--t-lead); }
.contact-lines a:hover { text-decoration: underline; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 1rem; }
.form__full, .form .btn, .form__status { grid-column: 1 / -1; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); padding: 14px 18px; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--white); transition: border-color .2s, background .2s; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: var(--cobalt); }
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.5em; }
.section--ink .form label, .block--contact .form label { color: var(--on-ink-soft); }
.section--ink .form input, .section--ink .form textarea { background: rgba(249, 250, 252, .06); border-color: rgba(232, 238, 247, .22); color: var(--paper); }
.section--ink .form input:focus, .section--ink .form textarea:focus { outline-color: var(--halo); border-color: var(--halo); background: rgba(249, 250, 252, .1); }
.section--ink .form .btn { background: var(--paper); border-color: var(--paper); color: var(--ink) !important; }
.section--ink .form .btn:hover { background: var(--halo); border-color: var(--halo); }
.form--inline { grid-template-columns: 1fr auto; align-items: end; }
.form--inline .btn { grid-column: auto; }
@media (max-width: 560px) { .form, .form--inline { grid-template-columns: 1fr; } .form--inline .btn { grid-column: 1 / -1; } }

.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--rule-dark); color: inherit; text-decoration: none; font-size: .95rem; transition: background .2s; }
.social a:hover { background: rgba(249, 250, 252, .08); }
.social svg { width: 18px; height: 18px; fill: currentColor; opacity: .85; }

/* Inner pages --------------------------------------------------------------*/
.crumb { margin: 0 0 20px; color: var(--slate); font-size: 1rem; }
.crumb a { color: inherit; }

.block { padding-block: clamp(64px, 8vw, 120px); }
.block:not(.block--tint):not(.block--image) + .block:not(.block--tint):not(.block--image):not(.block--contact) { padding-top: 0; }
.block--tint { background: var(--mist); margin-inline: clamp(8px, 1.2vw, 16px); border-radius: var(--r-panel); }
.block--tint + .block--tint { margin-top: 8px; }
.block--image { background: var(--ink); color: var(--on-ink); margin-inline: clamp(8px, 1.2vw, 16px); border-radius: var(--r-panel); }
.block--image a:not(.btn) { color: var(--paper); }
.block--image .prose, .block--image p { color: var(--on-ink-soft); }
.block--image .card, .block--image .quote { color: var(--ink); }
.block--image .card p, .block--image .card .prose { color: var(--slate); }
.block > .wrap > .prose, .block > .wrap > .heading { max-width: var(--measure); }
.block > .wrap > .prose { font-size: 1.1875rem; }
.heading { margin-bottom: clamp(24px, 3vw, 40px); }
h2.heading { font-size: var(--t-h2); font-weight: 300; }
h3.heading { font-size: var(--t-lead); font-weight: 500; margin-bottom: 16px; }
.divider { display: none; }
.section-intro { max-width: 34em; margin: -8px 0 clamp(28px, 4vw, 48px); font-size: var(--t-lead); line-height: 1.55; color: var(--ink-soft); }
.prose--lead { font-size: var(--t-lead) !important; line-height: 1.65; }
.prose--lead p:first-child { color: var(--ink); }

.cols { display: grid; gap: var(--gap); }
.cols + .cols, .prose + .cols, .cols + .prose, .video + .cols { margin-top: clamp(28px, 4vw, 48px); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col { min-width: 0; }
.col > * + * { margin-top: 18px; }
.col > .heading { margin-bottom: 0; }
.col > h2.heading { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.col > .video + .heading { margin-top: 12px; font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }

/* Cards from old pages: soft panels */
.card { height: 100%; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--white); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.block--tint .card { border-color: transparent; }
.card__title { margin: 0; font-size: var(--t-lead); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.card__body { color: var(--slate); flex: 1; }
.card__body > :last-child { margin-bottom: 0; }
.card__meta { margin: 0; color: var(--slate); font-size: 1rem; }
.card__link { font-weight: 500; }
.card--service .card__body { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.card--course { padding: clamp(28px, 4vw, 44px); border: 0; border-radius: var(--r-card); background: var(--mist); }
.block--tint .card--course { background: var(--paper); }
.card--course h4 { font-size: 1rem; font-weight: 600; margin: 8px 0 0; }
.card--course .btn { align-self: flex-start; margin-top: auto; }
.chip-card { height: 100%; padding: 18px 22px; border-radius: var(--r-card); background: var(--mist); font-weight: 500; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 8px 0; padding-inline-start: 26px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .95em; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--cobalt); }

.quotes { columns: 3 300px; column-gap: 16px; }
.quote { break-inside: avoid; margin: 0 0 16px; padding: 28px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--rule); }
.block--tint .quote { border-color: transparent; }
.quote blockquote { margin: 0 0 16px; color: var(--ink-soft); max-height: 18em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.quote.is-open blockquote { max-height: none; -webkit-mask-image: none; mask-image: none; }
.quote figcaption { color: var(--slate); font-size: 1rem; }
.quote figcaption strong { color: var(--ink); font-weight: 600; }
.quote__more { border: 0; background: none; padding: 0; margin: 0 0 12px; font: 500 1rem var(--font); color: var(--cobalt); cursor: pointer; }

.motto { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); font-weight: 200; line-height: 1.35; letter-spacing: -0.02em; max-width: 22em; margin: 0; }
.motto em { font-style: normal; }
.motto + .heading { font-size: 1rem; font-weight: 400; color: var(--slate); margin-top: 16px; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--ink); margin: 0 0 16px; }
.video iframe, .video__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { cursor: pointer; background: var(--ink) center/cover no-repeat; }
.video__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 33, 64, .55), rgba(15, 33, 64, .05) 55%); transition: opacity .2s; }
.video__icon { position: absolute; z-index: 1; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(249, 250, 252, .92); box-shadow: 0 0 0 10px rgba(249, 250, 252, .18); transition: transform .2s, box-shadow .2s; }
.video__icon::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--ink); }
.video__play:hover .video__icon { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(249, 250, 252, .22); }
.video__play:hover::after { opacity: .6; }
.block > .wrap > .video { max-width: 900px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--r-ctl); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.figure { margin: 0; }
.figure img { border-radius: var(--r-card); width: 100%; }
.figure figcaption { font-size: var(--t-small); color: var(--slate); margin-top: 8px; }
img.is-missing, .figure.is-missing, .gallery figure.is-missing { display: none; }

/* New components ------------------------------------------------------------*/

/* Facets: a small set of parallel ideas (not a sequence) */
.facets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 216px), 1fr)); gap: 12px; }
.facets > li { position: relative; padding: clamp(24px, 3vw, 32px); padding-top: 64px; border-radius: var(--r-card); background: var(--white); }
.block:not(.block--tint) .facets > li { background: var(--mist); }
.facets > li::before { content: ""; position: absolute; top: 28px; inset-inline-start: clamp(24px, 3vw, 32px); width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 5px var(--paper), 0 0 0 6px var(--halo); }
.block:not(.block--tint) .facets > li::before { box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 5px var(--mist), 0 0 0 6px var(--halo); }
.facets h3 { font-size: 1.3rem; font-weight: 500; margin: 0 0 8px; }
.facets p { margin: 0; color: var(--slate); font-size: 1.0625rem; line-height: 1.65; }
.facets p + p { margin-top: .7em; }

@media (max-width: 640px) {
  .facets > li { padding: 22px 22px 22px 22px; padding-inline-start: 58px; }
  .facets > li::before { top: 28px; inset-inline-start: 22px; }
}

/* Balance rows by item count: 6 or 9 go in threes, 7 or 8 in fours (no orphans) */
.facets:is(:has(> li:nth-child(6):last-child), :has(> li:nth-child(9):last-child), :has(> li:nth-child(3):last-child)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.facets:is(:has(> li:nth-child(7):last-child), :has(> li:nth-child(8):last-child), :has(> li:nth-child(4):last-child)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.steps:is(:has(> li:nth-child(6):last-child), :has(> li:nth-child(3):last-child)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* Models: summaries that open into the full text */
.models { display: grid; gap: 10px; }
.model { border-radius: var(--r-card); background: var(--mist); transition: background .2s; }
.block--tint .model { background: var(--paper); }
.model > summary { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 36px); cursor: pointer; list-style: none; }
.model > summary::-webkit-details-marker { display: none; }
.model > summary::after { content: ""; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--paper) center/18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 1v16M1 9h16' stroke='%232e57c4' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .3s, background-color .2s; }
.block--tint .model > summary::after { background-color: var(--mist); }
.model[open] > summary::after { transform: rotate(45deg); }
.model > summary:hover::after { background-color: var(--halo); }
.model__head { display: grid; gap: 6px; }
.model h3 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 300; }
.model__sum { color: var(--slate); max-width: 40em; }
@media (max-width: 640px) { .model > summary { gap: 14px; padding: 22px; } .model > summary::after { width: 40px; height: 40px; } .model > .prose { padding-inline: 22px !important; } }
.model > .prose { padding: 0 clamp(24px, 3vw, 36px) clamp(28px, 3vw, 40px); max-width: calc(var(--measure) + 72px); }

/* Many short items (people, FAQs): two columns, each opens in place */
.models--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.models--grid .model > summary { padding: 22px 26px; }
.models--grid .model h3 { font-size: 1.4rem; font-weight: 400; }
.models--grid .model__sum { font-size: 1rem; }
.models--grid .model > summary::after { width: 40px; height: 40px; }
.models--grid .model > .prose { padding: 0 26px 26px; font-size: 1.0625rem; }

/* Timeline: a real sequence */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; max-width: 52em; }
.timeline::before { content: ""; position: absolute; inset-block: 14px 14px; inset-inline-start: 9px; width: 1px; background: var(--halo); }
.timeline > li { position: relative; display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 32px; padding: 0 0 32px; padding-inline-start: 44px; }
.timeline > li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 19px; height: 19px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--cobalt); }
.block--tint .timeline > li::before { background: var(--mist); }
.timeline__when { color: var(--cobalt); font-weight: 500; font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; }
@media (max-width: 640px) { .timeline > li { grid-template-columns: 1fr; } }

/* Citation */
.citation { margin: clamp(32px, 4vw, 48px) 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--ink); color: var(--on-ink); max-width: 52em; }
.citation blockquote { margin: 0 0 16px; text-align: left; font-size: 1.0625rem; line-height: 1.7; }
.citation figcaption { color: var(--on-ink-soft); font-size: 1rem; }

/* Link cards: where a link leads, said plainly */
.linkcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
* + .linkcards { margin-top: clamp(24px, 3vw, 36px); }
.linkcard { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; gap: 4px 16px; height: 100%; padding: 20px 22px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.block--tint .linkcard { border-color: transparent; }
.linkcard:hover { border-color: var(--cobalt); color: var(--ink); text-decoration: none; }
.linkcard__icon { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--mist) center/18px no-repeat; transition: background-color .2s; }
.block--tint .linkcard__icon { background-color: var(--mist); }
.linkcard:hover .linkcard__icon { background-color: var(--halo); }
.linkcard--video .linkcard__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 3l10 6-10 6z' fill='%232e57c4'/%3E%3C/svg%3E"); }
.linkcard--article .linkcard__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M13 5L5 13M6 5h7v7' stroke='%232e57c4' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.linkcard--read .linkcard__icon, .linkcard--page .linkcard__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M11 4L6 9l5 5' stroke='%232e57c4' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.linkcard__title { font-weight: 500; line-height: 1.45; }
.linkcard__where { color: var(--slate); font-size: .95rem; }

/* Films */
.films { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.film { margin: 0; }
.film .video { margin-bottom: 20px; }
.film h3 { font-size: var(--t-lead); font-weight: 500; margin: 0 0 8px; }
.film p { margin: 0; color: var(--slate); }

/* Steps: a real sequence, laid out across */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.steps > li { counter-increment: step; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-card); background: var(--white); }
.block:not(.block--tint) .steps > li { background: var(--mist); }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 500; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.25rem; font-weight: 500; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--slate); font-size: 1.0625rem; }

/* Callout: one sentence that matters */
.callout { margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-card); background: var(--ink); color: var(--on-ink); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 300; line-height: 1.45; letter-spacing: -0.015em; max-width: 36em; }
.callout cite, .callout small { display: block; margin-top: 16px; font-size: 1rem; font-style: normal; color: var(--on-ink-soft); letter-spacing: 0; }

/* Stats: a few true numbers */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.stats > li { padding: 24px 26px; border-radius: var(--r-card); background: var(--white); }
.block:not(.block--tint) .stats > li { background: var(--mist); }
.stats b { display: block; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 200; line-height: 1.1; color: var(--cobalt); letter-spacing: -0.03em; }
.stats span { color: var(--slate); font-size: 1rem; }

/* Chips: short tags like issues a therapy helps with */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 18px; border-radius: 22px; line-height: 1.5; background: var(--white); border: 1px solid var(--rule); font-size: 1rem; }
.block:not(.block--tint) .chips li { background: var(--mist); border-color: transparent; }

/* Offer: a course or service with its facts */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.offer { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3.5vw, 40px); border-radius: var(--r-card); background: var(--white); }
.block:not(.block--tint) .offer { background: var(--mist); }
.offer h3 { margin: 0; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 300; }
.offer p { margin: 0; color: var(--slate); }
.offer dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 1rem; }
.offer dt { color: var(--slate); }
.offer dd { margin: 0; }
.offer .btn { align-self: flex-start; margin-top: auto; }

/* Components placed inside running text keep their own layout */
.prose :is(.chips, .facets, .steps, .linkcards, .stats) { padding: 0; margin: 1.2em 0; }
.prose :is(.chips, .facets, .steps, .linkcards, .stats) li { margin: 0; }

/* Rhythm between components inside a section */
.wrap > :is(.split, .entries, .facets, .steps, .offers, .stats, .chips, .models, .films, .cols, .timeline, .linkcards, .figure, .prose, .callout, .quotes, .readmore, .actions, .video, .gallery) + :is(.facets, .steps, .offers, .stats, .chips, .models, .films, .cols, .timeline, .linkcards, .figure, .prose, .callout, .quotes, .readmore, .actions, .video, .gallery, .entries, h3.heading, .section-intro) { margin-top: clamp(28px, 4vw, 48px); }

/* Long text that opens on request (added by main.js) */
.readmore { position: relative; }
.readmore.is-closed > .readmore__body { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.readmore__btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 20px; border: 1px solid var(--rule); border-radius: var(--pill); background: var(--white); color: var(--ink); font: 500 1rem var(--font); cursor: pointer; transition: border-color .2s; }
.readmore__btn:hover { border-color: var(--cobalt); }
.readmore__btn::after { content: ""; width: 10px; height: 10px; border-inline-end: 1.8px solid var(--cobalt); border-bottom: 1.8px solid var(--cobalt); rotate: 45deg; translate: 0 -2px; transition: rotate .2s; }
.readmore:not(.is-closed) .readmore__btn::after { rotate: 225deg; translate: 0 2px; }

/* Reading progress on articles (main.js) */
.progress { position: fixed; top: 0; inset-inline: 0; z-index: 60; height: 3px; background: var(--cobalt); transform-origin: right; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* Long reading */
.prose { overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); font-weight: 300; margin: 1.6em 0 .5em; }
.prose h3 { font-size: var(--t-lead); font-weight: 500; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.125rem; font-weight: 600; margin: 1.2em 0 .3em; }
.prose ul, .prose ol { padding-inline-start: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--cobalt); }
[dir=ltr] .prose blockquote { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.prose blockquote { margin: 1.6em 0; padding: 20px 26px; border-radius: var(--r-ctl) 0 0 var(--r-ctl); border-inline-start: 3px solid var(--cobalt); background: var(--mist); font-size: 1.125rem; line-height: 1.7; color: var(--ink-soft); }
.block--tint .prose blockquote { background: var(--paper); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; display: block; overflow-x: auto; font-size: 1rem; }
.prose td, .prose th { border-bottom: 1px solid var(--rule); padding: 10px 12px; vertical-align: top; }
.prose img { border-radius: var(--r-card); margin: 1.4em auto; }
.prose [dir="ltr"] { text-align: left; }
.prose .video { margin: 1.6em 0; }
.article .prose { font-size: 1.1875rem; line-height: 1.85; }
.article .prose, .article .tags { max-width: 40em; margin-inline: auto; }
.article .prose > p:first-child { font-size: var(--t-lead); line-height: 1.65; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: .95rem; }
.tags a { padding: 6px 14px; border-radius: var(--pill); background: var(--mist); color: var(--ink); text-decoration: none; }
.tags a:hover { background: var(--halo); }

/* Contact block: the closing panel */
.block--contact { background: var(--ink); color: var(--on-ink); padding-block: var(--section); margin: 8px clamp(8px, 1.2vw, 16px) 0; border-radius: var(--r-panel); }
.block--contact .quiet { color: var(--on-ink-soft); }

/* Footer -------------------------------------------------------------------*/
.site-footer { padding: 72px 0 40px; font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__grid p { margin: 0 0 12px; }
.site-footer h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--cobalt); text-decoration: underline; }
.site-footer__brand { font-size: 1.5rem; font-weight: 300; letter-spacing: -0.01em; }
.site-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--slate); font-size: var(--t-small); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .site-footer__grid > :first-child { grid-column: 1 / -1; } }

.whatsapp { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(15,33,64,.5); }
.whatsapp svg { width: 26px; height: 26px; fill: currentColor; }
.whatsapp:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 span, .page-hero h1, .hero::before, .page-hero::before { animation: none; }
  * { transition: none !important; }
}
@media print { .site-header, .whatsapp, .block--contact, .site-footer, .toc, .a11y-btn { display: none; } .hero, .page-hero { background: none; color: #000; } .page-hero h1, .hero h1 { color: #000; } }

/* Cookie consent ----------------------------------------------------------*/
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box { pointer-events: auto; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 28px; box-shadow: 0 30px 70px -30px rgba(15, 33, 64, .55); }
.consent__title { font-size: var(--t-lead); font-weight: 500; margin: 0 0 8px; }
.consent__text { margin: 0 0 16px; font-size: 1rem; color: var(--ink-soft); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__actions .btn { min-height: 46px; }
.consent__actions [hidden] { display: none; }
.consent__settings { display: grid; gap: 10px; margin: 0 0 16px; }
.consent__settings[hidden] { display: none; }
.consent__cat { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius-sm); cursor: pointer; }
.consent__cat input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--cobalt); }
.consent__cat b { display: block; font-weight: 500; }
.consent__cat small { display: block; color: var(--slate); font-size: .92rem; line-height: 1.5; }
.video__consent { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; padding: 20px; background: rgba(15, 33, 64, .92); color: var(--paper); text-align: center; }
.video__consent p { margin: 0; }
.video__consent div { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.video__out { color: var(--paper); }
.footer-cookie { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: start; }
.footer-cookie:hover { color: var(--cobalt); text-decoration: underline; }
.form__consent { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: var(--slate); }
.section--ink .form__consent { color: var(--on-ink-soft); }
.section--ink .form__consent a { color: var(--paper); }

/* Accessibility menu ------------------------------------------------------*/
.a11y-btn { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 45; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--cobalt); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(15, 33, 64, .6); }
.a11y-btn svg { width: 28px; height: 28px; fill: currentColor; }
.a11y-btn:hover { background: var(--cobalt-deep); }
.a11y-panel { position: fixed; inset-inline-end: 20px; bottom: 84px; z-index: 46; width: min(300px, calc(100vw - 40px)); display: grid; gap: 8px; padding: 18px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(15, 33, 64, .5); }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.125rem; font-weight: 600; margin: 0 0 4px; }
.a11y-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; }
.a11y-row button, .a11y-toggle { min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: 500 1rem var(--font); cursor: pointer; text-align: start; }
.a11y-row output { min-width: 3.5em; text-align: center; font-variant-numeric: tabular-nums; }
.a11y-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.a11y-toggle[aria-pressed="true"]::after { content: " ✓"; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; font-size: .95rem; }
.a11y-foot .linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--cobalt); cursor: pointer; text-decoration: underline; }
.whatsapp { bottom: 84px; }
@media (min-width: 761px) { .whatsapp { bottom: 20px; inset-inline-start: 20px; } }

html.a11y-size-1 { font-size: 110%; }
html.a11y-size-2 { font-size: 125%; }
html.a11y-size-3 { font-size: 140%; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: #fff6c2; color: #0b1a33 !important; }
html.a11y-spacing body { letter-spacing: .03em; word-spacing: .12em; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing dd { line-height: 2 !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-contrast { --paper: #ffffff; --mist: #ffffff; --ink: #000000; --ink-soft: #000000; --slate: #1a1a1a; --rule: #000000; --cobalt: #0033cc; --cobalt-deep: #001f80; --on-ink: #ffffff; --on-ink-soft: #ffffff; }
html.a11y-contrast .section--ink, html.a11y-contrast .way--ink, html.a11y-contrast .block--image, html.a11y-contrast .block--contact { background: #000 !important; }
html.a11y-contrast .hero h1 span, html.a11y-contrast .page-hero h1 { animation: none; filter: none; opacity: 1; }
html.a11y-contrast .hero, html.a11y-contrast .page-hero, html.a11y-contrast .citation, html.a11y-contrast .callout { background: #000 !important; }
html.a11y-contrast .hero::before, html.a11y-contrast .page-hero::before { display: none; }
html.a11y-contrast :focus-visible { outline: 3px solid #ff8c00 !important; outline-offset: 3px; }
