/* Jonathan Mimouni | site stylesheet (theme v1.1) */

/* ---------- self-hosted type ---------- */

@font-face {
  font-family: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-hebrew-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-hebrew-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-hebrew-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-hebrew-hebrew-400-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-hebrew-hebrew-500-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/frank-ruhl-libre-hebrew-500-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/frank-ruhl-libre-hebrew-700-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/frank-ruhl-libre-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/frank-ruhl-libre-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

:root {
  --paper: #f3f0e9;
  --paper-2: #e9e5dc;
  --white: #fbfaf7;
  --ink: #1e2126;
  --ink-2: #474c54;
  --ink-3: #5f656d;
  --rule: rgba(30, 33, 38, 0.12);
  --rule-strong: rgba(30, 33, 38, 0.3);
  --accent: #16605a;
  --accent-deep: #0f4944;
  --accent-soft: #d8e6e2;
  --accent-2: #6f5634;
  --focus: #1f7a72;
  --error: #9b2c2c;
  --font-body: "IBM Plex Sans Hebrew", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Hebrew", sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font: var(--font-body);
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.6rem, 1.3rem + 1.1vw, 2.05rem);
  --step-3: clamp(2rem, 1.5rem + 1.8vw, 2.8rem);
  --step-4: clamp(2.5rem, 1.6rem + 3vw, 3.9rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 76rem;
  --measure: 64ch;
  --space-section: clamp(3.75rem, 8vw, 7rem);
  --radius: 6px;
  --shadow: 0 18px 40px -22px rgba(30, 33, 38, 0.38);
}

html[lang="he"] {
  --font-display: "Frank Ruhl Libre", "David", "Times New Roman", serif;
  --measure: 60ch;
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}

html[lang="he"] body { font-size: 1.1rem; line-height: 1.7; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.012em; }
h2 { font-size: var(--step-3); letter-spacing: -0.008em; }
h3 { font-family: var(--font-body); font-size: var(--step-1); font-weight: 600; line-height: 1.3; }

html[lang="he"] h1 { letter-spacing: 0; line-height: 1.1; }
html[lang="he"] h2, html[lang="he"] h3 { letter-spacing: 0; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}

a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }

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

::selection { background: var(--accent-soft); color: var(--ink); }

.skip-link {
  position: absolute;
  top: -100%;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus { top: 1rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.band-white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-soft { background: var(--paper-2); }
.band-deep { background: var(--accent); color: #fff; }
.band-deep a { color: #fff; }

.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin-bottom: 1.1em; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
}

.copy-list {
  margin: 0 0 1.3em;
  padding-inline-start: 1.2em;
}

.copy-list li { margin-bottom: 0.5em; padding-inline-start: 0.25em; }
.copy-list li::marker { color: var(--accent); }

.kicker {
  margin: 0 0 0.9rem;
  color: var(--accent-2);
  font-size: var(--step--1);
  font-weight: 500;
}

.section-heading { margin-bottom: 1.25rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-inverse, .band-deep .btn-inverse { background: var(--paper); color: var(--accent-deep); }
.btn-inverse:hover, .band-deep .btn-inverse:hover { background: #fff; color: var(--accent-deep); }
.btn-small { min-height: 2.6rem; padding: 0.45rem 1.1rem; font-size: 0.92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }

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

.site-header {
  position: relative;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand toggle";
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.02rem, 0.5rem + 2.3vw, 1.5rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--accent-deep); text-decoration: none; }
.brand-mark { flex: none; width: 28px; height: 28px; color: var(--accent); }
@media (min-width: 1024px) { .brand-mark { width: 30px; height: 30px; } }
.brand-name { line-height: 1; padding-top: 0.1em; }

.nav-toggle {
  grid-area: toggle;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  transition: background-color 0.15s ease;
}

.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 359px) {
  .nav-toggle { white-space: normal; text-align: end; }
}

.site-header.is-open .nav-toggle-bars { background: transparent; }
.site-header.is-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.header-panel {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  z-index: 40;
  padding: 0.25rem var(--gutter) 1.75rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.site-header.is-open .header-panel { display: block; }

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li { border-bottom: 1px solid var(--rule); }

.nav-list a {
  display: block;
  min-height: 2.75rem;
  padding: 0.85rem 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a[aria-current="page"] { color: var(--accent); }

.nav-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.85rem 0;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.nav-details summary::-webkit-details-marker { display: none; }

.nav-details summary::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.15s ease;
}

.nav-details[open] summary::after { transform: translateY(15%) rotate(-135deg); }

.nav-sub {
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
}

.nav-sub a { padding: 0.65rem 1rem; font-weight: 400; }

.nav-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding-top: 1.25rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.lang-switch:hover { color: var(--accent-deep); border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }

@media (min-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "nav nav";
    row-gap: 0;
    min-height: 0;
    padding-top: 1.1rem;
  }

  .nav-toggle { display: none; }
  .header-panel { display: contents; }

  .site-nav {
    grid-area: nav;
    margin-top: 1rem;
    border-top: 1px solid var(--rule);
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 1.4rem;
  }

  .nav-list > li { border-bottom: 0; }

  .nav-list a, .nav-details summary {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0.9rem 0;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
    transition: color 0.15s ease, border-color 0.15s ease;
  }

  .nav-list > li > a:hover { color: var(--accent-deep); }

  .nav-list > li > a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
  }

  .nav-details summary:hover { color: var(--accent-deep); }
  .nav-details { position: relative; }

  .nav-sub {
    position: absolute;
    top: calc(100% - 1px);
    inset-inline-start: -0.9rem;
    z-index: 30;
    min-width: 16.5rem;
    padding: 0.5rem 0;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-sub a {
    display: block;
    padding: 0.6rem 1.1rem;
    border-bottom: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .nav-sub a:hover, .nav-sub a[aria-current="page"] { background: var(--paper); color: var(--accent-deep); }

  .nav-actions {
    grid-area: actions;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding-top: 0;
  }
}

@media (min-width: 1200px) {
  .nav-list { gap: 1.9rem; }
}

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

.hero { padding-block: clamp(3rem, 6.5vw, 5.5rem) clamp(3rem, 7vw, 6rem); }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; }
}

.hero h1 { margin: 0.25rem 0 1.5rem; max-width: 22ch; }
html[lang="he"] .hero h1 { max-width: 20ch; }

.hero-copy {
  max-width: 36rem;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-copy p { margin-bottom: 0.9em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-figure { width: 100%; }
@media (min-width: 960px) { .hero-figure { width: 114%; margin-inline: -7%; justify-self: end; } }

@media (max-width: 599px) {
  .hero-figure { width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); }
}

.network-figure { width: 100%; height: auto; font-family: var(--font-body); overflow: visible; }
.net-edge { stroke: var(--accent); stroke-width: 1.75; opacity: 0.5; }
.net-edge-dashed { stroke: var(--accent-2); stroke-dasharray: 4 5; opacity: 0.9; }
.net-node { fill: var(--accent); r: 9px; }
.net-hub { fill: var(--paper); stroke: var(--accent); stroke-width: 2; }
.net-label { fill: var(--ink); font-size: 20px; font-weight: 600; }
.net-sub { fill: var(--ink-3); font-size: 16px; }
.net-note { fill: var(--accent-2); font-size: 15px; font-style: italic; }

@media (max-width: 599px) {
  .net-label { font-size: 26px; }
  .net-sub { font-size: 20px; }
  .net-note { font-size: 18px; }
  .net-edge { stroke-width: 2.25; }
}

/* ---------- editorial layouts ---------- */

.editorial {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .editorial { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4.5rem; }
  .editorial-label .section-heading { margin-bottom: 0; }
}

.editorial-label h2 { font-size: var(--step-2); line-height: 1.18; max-width: 16ch; }
.editorial-body .prose { max-width: var(--measure); }

.problem-grid {
  display: grid;
  gap: 2.25rem;
  margin-top: 3.25rem;
}

@media (min-width: 720px) {
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 3rem 4.5rem; }
}

.problem {
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent-soft);
}

.problem h3 { margin-bottom: 0.7rem; }
.problem h3 a { color: var(--ink); text-decoration: none; }
.problem h3 a:hover { color: var(--accent-deep); text-decoration: underline; }
.problem p { color: var(--ink-2); }
.problem p:last-child { margin-bottom: 0; }

.areas {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.area {
  display: grid;
  gap: 0.4rem 3rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}

.area:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 720px) {
  .area { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; }
}

.area h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.15; }
.area h3 a { color: var(--ink); text-decoration: none; }
.area h3 a:hover { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; }
.area p { margin: 0; color: var(--ink-2); }

.two-up {
  display: grid;
  gap: 3rem;
}

@media (min-width: 860px) {
  .two-up { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.two-up h2 { font-size: var(--step-2); margin-bottom: 1rem; }

.stack { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.stack > .editorial + .editorial { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
.stack .prose h3 { margin: 1.5rem 0 0.5rem; }
.stack .prose > .btn { margin-top: 1.5rem; }

.trust-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 860px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; }
}

.trust-item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent);
}

.trust-item h3 { margin-bottom: 0.6rem; }
.trust-item p { margin: 0; color: var(--ink-2); }

/* ---------- FAQ ---------- */

.faq-item { border-top: 1px solid var(--rule); }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--rule); }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.15rem 0;
  list-style: none;
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.15s ease;
}

.faq-item summary:hover { color: var(--accent-deep); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  width: 1.5rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.05;
  text-align: center;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-answer { padding: 0 0 1.5rem; max-width: var(--measure); }
.faq-answer p { margin: 0; color: var(--ink-2); }

/* ---------- CTA band ---------- */

.cta-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .cta-inner { grid-template-columns: minmax(0, 2fr) auto; gap: 4rem; }
}

.cta-band h2 { color: #fff; margin-bottom: 0.9rem; max-width: 22ch; }
.cta-text p { margin: 0; max-width: 40rem; color: rgba(255, 255, 255, 0.86); font-size: var(--step-1); }
.cta-action .btn { min-height: 3.25rem; padding-inline: 1.75rem; font-size: 1.02rem; }

/* ---------- breadcrumbs and page intro ---------- */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: 0.45rem;
  color: var(--rule-strong);
}

.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-deep); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

.page-intro { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem); }

.intro-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .intro-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 4.5rem; }
}

.intro-text h1 {
  margin: 0.25rem 0 1.25rem;
  max-width: 20ch;
  font-size: clamp(2.2rem, 1.6rem + 2.3vw, 3.5rem);
  line-height: 1.08;
}

.intro-figure { max-width: 28rem; }
@media (min-width: 960px) { .intro-figure { justify-self: end; } }

/* ---------- service and article layouts ---------- */

.service-layout {
  display: grid;
  gap: 3rem;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--space-section);
}

@media (min-width: 960px) {
  .service-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 5rem; align-items: start; }
  .service-aside { position: sticky; top: 2rem; }
}

.service-body h2 {
  margin: 2.75rem 0 0.9rem;
  font-size: var(--step-2);
}

.service-body > h2:first-child { margin-top: 0; }

.aside-box {
  padding: 1.6rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.aside-box + .aside-box { margin-top: 1.25rem; }
.aside-box h2 { margin: 0 0 0.75rem; font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.aside-box p { color: var(--ink-2); font-size: 0.98rem; }
.aside-box ul { margin: 0; padding: 0; list-style: none; }
.aside-box li { padding: 0.5rem 0; border-top: 1px solid var(--rule); }
.aside-box li:first-child { border-top: 0; padding-top: 0; }
.aside-box li:last-child { padding-bottom: 0; }
.aside-box li a { color: var(--ink); text-decoration: none; }
.aside-box li a:hover { color: var(--accent-deep); text-decoration: underline; }
.aside-box .btn { margin-top: 0.5rem; }

.article-body { max-width: var(--measure); }
.article-body p { margin-bottom: 1.15em; }
.article-body h2 { margin: 2.5rem 0 0.8rem; font-size: var(--step-2); }
.article-body h3 { margin: 1.75rem 0 0.5rem; }
.article-body .copy-list { margin-bottom: 1.35em; }

.article-cta {
  max-width: var(--measure);
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius);
}

.article-cta p { margin: 0 0 1.1rem; font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.3; }

.related-service {
  max-width: var(--measure);
  margin-top: 2rem;
  color: var(--ink-3);
  font-size: 0.98rem;
}

.insight-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-item {
  display: grid;
  gap: 0.4rem 3rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--rule);
}

.insight-item:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 860px) {
  .insight-item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.insight-item h2 { font-size: 1.5rem; line-height: 1.2; }
.insight-item h2 a { color: var(--ink); text-decoration: none; }
.insight-item h2 a:hover { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; }
.insight-item p { margin: 0; color: var(--ink-2); }

.plain-page { padding-block: 0 var(--space-section); }
.plain-page .prose { max-width: 62ch; }

/* ---------- contact form ---------- */

.contact-layout {
  display: grid;
  gap: 3rem;
  padding-block: clamp(2rem, 4vw, 3rem) var(--space-section);
}

@media (min-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 5rem; align-items: start; }
}

.contact-form { display: grid; gap: 1.35rem; }

@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form .field-full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field .hint { color: var(--ink-3); font-size: 0.85rem; font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field textarea { min-height: 9.5rem; resize: vertical; }

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field-error { margin: 0; color: var(--error); font-size: 0.85rem; }
.field-error:empty { display: none; }

.form-actions { display: grid; gap: 1rem; align-items: start; }
.form-actions .btn { min-height: 3.25rem; padding-inline: 1.9rem; font-size: 1.02rem; }
.form-note { margin: 0; color: var(--ink-3); font-size: 0.9rem; max-width: 40rem; }
.form-status { margin: 0; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

.contact-aside .aside-box p:last-child { margin-bottom: 0; }
.contact-phone { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.contact-phone a { color: var(--ink); text-decoration: none; }
.contact-phone a:hover { color: var(--accent-deep); }

/* ---------- testimonials (reusable, unused until real material exists) ---------- */

.testimonials-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 860px) {
  .testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
}

.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.testimonial blockquote { margin: 0 0 1rem; }
.testimonial blockquote p { margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; }
.testimonial figcaption { color: var(--ink-3); font-size: 0.95rem; }
.testimonial-role::before { content: ", "; }

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(3rem, 8vw, 7rem); }
.notfound-block + .notfound-block { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--rule); }
.notfound h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.notfound ul { margin: 1.5rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }

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

.site-footer {
  padding-block: 3.75rem 2.75rem;
  background: var(--ink);
  color: #d4d2cb;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 2.75rem;
}

@media (min-width: 860px) {
  .footer-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 4.5rem; }
}

.footer-name { margin: 0 0 0.6rem; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; }
.footer-tagline { max-width: 26rem; margin-bottom: 1.4rem; }
.footer-meta { margin: 0 0 0.4rem; }

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.site-footer :focus-visible { outline-color: #fff; }

.footer-nav {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.footer-heading {
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #a6abb3;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-heading-lang { margin-top: 1.75rem; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }

/* ---------- page figures ---------- */

.page-figure { width: 100%; height: auto; font-family: var(--font-body); }
.fig-box { fill: var(--white); stroke: var(--accent); stroke-width: 1.5; }
.fig-box-strong { fill: var(--accent); }
.fig-text { fill: var(--ink); font-size: 15px; font-weight: 600; }
.fig-text-strong { fill: #fff; }
.fig-code { fill: var(--accent); font-size: 15px; font-weight: 600; }
.fig-sub { fill: var(--ink-3); font-size: 14px; }
.fig-edge { stroke: var(--accent); stroke-width: 1.5; opacity: 0.7; }
.fig-arrow { stroke: var(--accent); stroke-width: 1.5; opacity: 0.7; }

/* ---------- accessibility menu ---------- */

.a11y-widget {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 80;
}

.a11y-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.a11y-button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.a11y-icon { flex: none; }

.a11y-panel {
  position: absolute;
  inset-block-end: calc(100% + 0.75rem);
  inset-inline-end: 0;
  width: min(22rem, calc(100vw - 2.5rem));
  max-height: calc(100vh - 6rem);
  overflow: auto;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.a11y-panel[hidden] { display: none; }

.a11y-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.a11y-panel h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }

.a11y-close {
  flex: none;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.a11y-close:hover { background: var(--paper); color: var(--ink); }

.a11y-row, .a11y-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-align: start;
  cursor: pointer;
}

.a11y-row { cursor: default; }
.a11y-stepper { display: inline-flex; align-items: center; gap: 0.4rem; }

.a11y-step {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.a11y-step:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.a11y-step[disabled] { opacity: 0.4; cursor: default; }

.a11y-text-level {
  min-width: 5.5rem;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.a11y-switch {
  flex: none;
  position: relative;
  width: 2.5rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--rule-strong);
  transition: background-color 0.15s ease;
}

.a11y-switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  inset-inline-start: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.a11y-toggle[aria-pressed="true"] .a11y-switch { background: var(--accent); }
.a11y-toggle[aria-pressed="true"] .a11y-switch::after { transform: translateX(1.1rem); }
[dir="rtl"] .a11y-toggle[aria-pressed="true"] .a11y-switch::after { transform: translateX(-1.1rem); }

.a11y-panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

.a11y-reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- accessibility modes (classes on <html>) ---------- */

html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 137.5%; }

html.a11y-contrast {
  --paper: #000;
  --paper-2: #0a0a0a;
  --white: #000;
  --ink: #fff;
  --ink-2: #fff;
  --ink-3: #f2f2f2;
  --rule: #8a8a8a;
  --rule-strong: #bdbdbd;
  --accent: #ffd400;
  --accent-deep: #ffe45c;
  --accent-soft: #333;
  --accent-2: #ffd400;
  --focus: #ffd400;
  --error: #ff8080;
  --shadow: 0 0 0 1px #bdbdbd;
}

html.a11y-contrast .btn-primary, html.a11y-contrast .btn-primary:hover,
html.a11y-contrast .btn-inverse, html.a11y-contrast .btn-inverse:hover,
html.a11y-contrast .a11y-button, html.a11y-contrast .a11y-button:hover,
html.a11y-contrast .skip-link { background: #ffd400; color: #000; border-color: #ffd400; }
html.a11y-contrast .btn-secondary { color: #fff; border-color: #fff; }
html.a11y-contrast .btn-secondary:hover { background: #fff; color: #000; }
html.a11y-contrast .band-deep { background: #000; color: #fff; border-block: 2px solid #ffd400; }
html.a11y-contrast .site-footer { background: #000; border-top: 2px solid #ffd400; }
html.a11y-contrast .fig-text-strong { fill: #000; }
html.a11y-contrast .nav-sub, html.a11y-contrast .a11y-panel { border-color: #bdbdbd; }
html.a11y-contrast .nav-list a[aria-current="page"] { color: #ffd400; }
html.a11y-contrast .lang-switch:hover { background: #000; }
html.a11y-contrast ::selection { background: #ffd400; color: #000; }

html.a11y-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 0.12em !important;
  text-underline-offset: 0.15em;
  outline: 1px dashed currentColor;
  outline-offset: 2px;
}

html.a11y-spacing body { line-height: 2; letter-spacing: 0.04em; word-spacing: 0.12em; }
html.a11y-spacing p { margin-bottom: 1.4em; }

html.a11y-gray .site-header, html.a11y-gray main, html.a11y-gray .site-footer,
html.a11y-gray .a11y-widget { filter: grayscale(1); }

html.a11y-cursor, html.a11y-cursor * {
  cursor: url("/assets/img/cursor.svg") 6 3, auto;
}

/* ---------- utilities and motion ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- blog ---------- */

.post-grid {
  display: grid;
  gap: 2.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; } }

.post-card { display: flex; flex-direction: column; gap: 0.85rem; }

.post-card-figure {
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}

.post-card-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s ease; }
.post-card:hover .post-card-figure img { transform: scale(1.02); }
.post-card-title { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.22; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; }
.post-card-excerpt { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

.blog-list-section { padding-top: 0; }
.blog-cover img { border: 1px solid var(--rule); border-radius: var(--radius); }

.post-head h1 {
  margin: 0.25rem 0 1rem;
  max-width: 24ch;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  line-height: 1.1;
}

.post-excerpt { max-width: var(--measure); margin-bottom: 1rem; }
.post-byline { margin: 0; color: var(--ink-3); font-size: 0.95rem; }
.post-byline a { color: var(--ink); text-decoration: none; }
.post-byline a:hover { color: var(--accent-deep); text-decoration: underline; }

.post-figure { max-width: 56rem; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.post-figure img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); }

.post-source { max-width: var(--measure); margin-top: 2rem; color: var(--ink-3); font-size: 0.95rem; }

.related-posts { padding-top: 0; }
.related-posts .section-heading { font-size: var(--step-2); margin-bottom: 1.75rem; }
.post-grid-related .post-card-title { font-size: 1.2rem; }

.home-blog .post-grid { margin-top: 2.75rem; }
.home-blog-link { font-weight: 500; }

html.a11y-contrast .post-card-figure img, html.a11y-contrast .post-figure img, html.a11y-contrast .blog-cover img { filter: invert(1) hue-rotate(180deg); }
