/* ==========================================================================
   עו"ד שחר שוורץ: main.css (demo, built from templates/premium)
   Design plan: ../design.md

   Palette from the office logo (#101E28 -> #5487B6, gold #DBC274):
     harbor      #0E1C27  text, dark sections
     fog         #ECF0F3  page background (cool, not cream)
     paper       #F8FAFB  alternate sections, fields
     steel       #2C5878  buttons + links on light
     steel-light #9CC0DD  links + small headings on dark
     gold        #D9BF6E  dark backgrounds only (live values, badge), decorative stroke
     slate       #46525E  secondary text
   Type: Bellefair (display serif) + IBM Plex Sans Hebrew (text). Both self-hosted.
   Principle: "cold risk analysis, warm human guidance". One memorable moment
   (the live transparency check), everything else quiet. No shadows, no card grids.
   ========================================================================== */

/* Self-hosted Google Fonts (SIL Open Font License 1.1): Bellefair, IBM Plex Sans Hebrew. No request leaves the site. */
@font-face{font-family:"Bellefair";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/bellefair-400-hebrew.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:"Bellefair";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/bellefair-400-latin.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("../fonts/plex-hebrew-400-hebrew.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:400;font-display:swap;src:url("../fonts/plex-hebrew-400-latin.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("../fonts/plex-hebrew-500-hebrew.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("../fonts/plex-hebrew-500-latin.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("../fonts/plex-hebrew-600-hebrew.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("../fonts/plex-hebrew-600-latin.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;}

/* Lenis (MIT) base styles, inlined from vendor/lenis.css */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}

:root {
  --harbor: #0E1C27;
  --harbor-2: #152838;
  --harbor-line: #2B4457;
  --fog: #ECF0F3;
  --fog-2: #DFE6EB;
  --paper: #F8FAFB;
  --steel: #2C5878;
  --steel-deep: #1F4460;
  --steel-light: #9CC0DD;
  --gold: #D9BF6E;
  --slate: #46525E;
  --mist: #B4C2CE;
  --line: #C3CDD5;
  --field-border: #5A6875;
  --error: #A3212E;
  --focus: var(--steel);

  --font-display: "Bellefair", "Times New Roman", serif;
  --font-text: "IBM Plex Sans Hebrew", "Segoe UI", "Arial", sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.375rem);
  --step-2: clamp(1.6rem, 1.35rem + 1vw, 2.25rem);
  --step-3: clamp(2.4rem, 1.7rem + 3vw, 4.25rem);
  --step-4: clamp(3rem, 1.6rem + 5.4vw, 6.75rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --header-h: 4.25rem;
  --radius-pill: 999px;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--harbor);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

p { margin: 0 0 1em; }

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
a:hover { color: var(--steel-deep); text-decoration-thickness: 2px; }

h1, h2, h3, h4 { text-wrap: balance; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -10rem;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--harbor);
  color: var(--fog);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  --focus: var(--gold);
}
.skip-link:focus,
.skip-link:hover { top: 1rem; color: var(--fog); }

/* ---------- Demo banner ---------- */
.demo-banner {
  --focus: var(--gold);
  background: var(--harbor);
  color: var(--fog);
  font-size: var(--step--1);
  line-height: 1.5;
}
.demo-banner p { margin-block: 0; margin-inline: auto; padding-block: 0.55rem; }
.demo-banner a { color: var(--steel-light); }
.demo-banner a:hover { color: var(--fog); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: 500 var(--step-0) / 1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--primary { background: var(--steel); color: var(--paper); }
.btn--primary:hover { background: var(--harbor); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--harbor); border-color: currentColor; }
.btn--ghost:hover { background: var(--harbor); color: var(--fog); border-color: var(--harbor); }
.btn--light { background: var(--fog); color: var(--harbor); }
.btn--light:hover { background: var(--paper); color: var(--harbor); }
.btn--small { min-height: 2.5rem; padding: 0.45rem 1.15rem; font-size: var(--step--1); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.text-link {
  font-weight: 500;
  color: var(--steel);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fog);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
}

.brand { display: block; flex-shrink: 0; }
.brand img { width: auto; height: 2.5rem; }

.site-nav { margin-inline-start: auto; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list a:not(.btn) {
  color: var(--harbor);
  text-decoration: none;
  padding-block: 0.5rem;
  font-size: var(--step--1);
  font-weight: 500;
}
.site-nav__list a:not(.btn):hover { text-decoration: underline; }

.nav-toggle,
.motion-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--harbor);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--harbor);
  font: 500 var(--step--1) / 1.2 var(--font-text);
  cursor: pointer;
}
.nav-toggle__icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.motion-toggle__icon { width: 1rem; height: 1rem; fill: currentColor; }

.js .motion-toggle { display: inline-flex; }
.motion-toggle[aria-pressed="true"] { background: var(--harbor); color: var(--fog); }
.motion-toggle[aria-disabled="true"] { cursor: not-allowed; }

@media (max-width: 1099.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav__list {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--fog);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav__list.is-open { display: flex; }
  .js .site-nav__list a:not(.btn) {
    display: block;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-1);
  }
  .js .site-nav__cta { padding-top: 1rem; }
  .js .site-nav__cta .btn { width: 100%; min-height: 3rem; font-size: var(--step-0); }
}

@media (max-width: 559.98px) {
  .brand img { height: 2.1rem; }
  .nav-toggle span,
  .motion-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .nav-toggle,
  .motion-toggle { min-width: 2.75rem; min-height: 2.75rem; justify-content: center; padding: 0.4rem; }
}

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  gap: 2rem;
  padding-top: clamp(2.5rem, 6vw, 5.5rem);
}

.hero__text { padding-bottom: clamp(1rem, 4vw, 4rem); }

.hero__title { margin: 0 0 1.5rem; font-weight: 400; }

.hero__name {
  display: block;
  margin-bottom: 1rem;
  font: 500 var(--step-1) / 1.3 var(--font-text);
  color: var(--slate);
}

.hero__lines {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--harbor);
}
.hero__line { display: block; }

.hero__lead {
  max-width: 54ch;
  color: var(--slate);
  font-size: var(--step-1);
  line-height: 1.7;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.hero__facts {
  display: grid;
  gap: 1.25rem 2.5rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero__facts dt { font-size: var(--step--1); color: var(--slate); }
.hero__facts dd { margin: 0; font-weight: 500; line-height: 1.6; }
.hero__facts a { color: var(--harbor); }

.hero__visual {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(100%, 26rem);
}

.monogram {
  position: absolute;
  top: -9%;
  left: 50%;
  width: 150%;
  translate: -48% 0;
  height: auto;
  overflow: visible;
}
.monogram path {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.monogram__a { stroke: var(--gold); }
.monogram__b { stroke: var(--steel); opacity: 0.55; }
.monogram__dot { fill: var(--gold); }

.hero__portrait {
  position: relative;
  width: 100%;
  height: auto;
}

@media (min-width: 560px) {
  .hero__facts { grid-template-columns: repeat(2, minmax(0, max-content)); }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: clamp(2rem, 5vw, 5rem);
  }
  .hero__text { align-self: center; }
  .hero__visual { width: 100%; max-width: 30rem; }
}

/* Entrance: only while the intro is about to run (js/boot.js + failsafe). */
.intro-pending [data-intro] { visibility: hidden; }

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.08;
}

.section__intro {
  max-width: 58ch;
  margin: 0;
  color: var(--slate);
  font-size: var(--step-1);
  line-height: 1.7;
}

/* ---------- Practice areas ---------- */
.practice { background: var(--paper); }

.practice__grid { display: grid; gap: 4rem; }

.wing__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.2;
}
.wing__lead { max-width: 52ch; color: var(--slate); margin-bottom: 2rem; }

.wing__groups { display: grid; gap: 2.25rem; }

.group__title {
  margin: 0 0 0.35rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--steel);
}

.group__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.group__list li {
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}

.letter-callout {
  --focus: var(--gold);
  margin-top: 2.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--harbor);
  color: var(--fog);
}
.letter-callout__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.2;
}
.letter-callout p { max-width: 56ch; color: #D3DDE5; }
.letter-callout .text-link { color: var(--steel-light); }
.letter-callout .text-link:hover { color: var(--fog); }

@media (min-width: 1000px) {
  .practice__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 0;
  }
  .wing--privacy { padding-inline-end: clamp(2rem, 4vw, 4.5rem); }
  .wing--family {
    padding-inline-start: clamp(2rem, 4vw, 4.5rem);
    border-inline-start: 1px solid var(--line);
  }
}

/* ---------- Amendment 13 ---------- */
.amend__grid { display: grid; gap: 3rem; }

.ledger { margin: 2.5rem 0 0; }
.ledger__row {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.ledger__row:last-child { border-bottom: 1px solid var(--line); }
.ledger dt {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.15;
}
.ledger dd { margin: 0; color: var(--slate); max-width: 44ch; }

.q { border-bottom: 1px solid var(--line); }
.q:first-of-type { border-top: 1px solid var(--line); }

.q__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.q__summary::-webkit-details-marker { display: none; }
.q__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  background:
    linear-gradient(var(--steel), var(--steel)) center / 100% 2px no-repeat,
    linear-gradient(var(--steel), var(--steel)) center / 2px 100% no-repeat;
  transition: transform 0.35s ease;
}
.q[open] > .q__summary::after { transform: rotate(45deg); }
.q__summary:hover { color: var(--steel); }

.q__body { padding-bottom: 1.25rem; max-width: 62ch; color: var(--slate); }
.q__body p:last-child { margin-bottom: 0; }

.first-steps {
  margin-top: 3rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.first-steps__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.2;
}
.first-steps__list { margin: 0; padding: 0; list-style: none; }
.first-steps__list li {
  position: relative;
  padding-inline-start: 1.4rem;
  margin-bottom: 0.6rem;
}
.first-steps__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--steel);
}

.disclaimer {
  margin: 2rem 0 0;
  font-size: var(--step--1);
  color: var(--slate);
}

@media (min-width: 1000px) {
  .amend__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .amend__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* ---------- Live transparency check ---------- */
.proof {
  --focus: var(--gold);
  background: var(--harbor);
  color: var(--fog);
}
.proof a { color: var(--steel-light); }
.proof a:hover { color: var(--fog); }
.proof__grid { display: grid; gap: 3rem; }
.proof__intro p { max-width: 46ch; color: #D3DDE5; font-size: var(--step-1); line-height: 1.7; }
.proof__intro .proof__note { font-size: var(--step--1); color: var(--mist); }

.scan {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--harbor-line);
  border-radius: var(--radius);
  background: var(--harbor-2);
}

.scan__list { margin: 0; }
.scan__row {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--harbor-line);
}
.scan__row:first-child { padding-top: 0; }
.scan__row dt { font-weight: 500; color: var(--fog); }
.scan__row dd {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  margin: 0;
}
.scan__value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.4s ease;
}
.scan__value--text { font-size: 1.6rem; }
.scan__detail { font-size: var(--step--1); color: var(--mist); line-height: 1.6; }

/* Sequenced "checking" state (class set by js/transparency.js, never without JS). */
.scan.is-scanning .scan__row:not(.is-done) .scan__value { opacity: 0.25; }
.scan__row.is-done .scan__value { opacity: 1; }

.scan__status {
  margin: 1.25rem 0 0.75rem;
  font-size: var(--step--1);
  color: var(--mist);
}

.scan__banner-demo { font-size: var(--step--1); color: var(--steel-light); }
.scan__banner-demo:hover { color: var(--fog); }

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

@media (min-width: 1000px) {
  .proof__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

/* ---------- Process ---------- */
.process { background: var(--paper); }

.steps {
  display: grid;
  gap: 2.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 1px solid var(--harbor);
}
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--steel);
}
.step__title { margin: 0 0 0.5rem; font-size: var(--step-1); font-weight: 600; line-height: 1.35; }
.step p { margin: 0; color: var(--slate); }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 3rem; }

.about__figure {
  margin: 0;
  justify-self: center;
  width: min(100%, 24rem);
  padding-top: 2.5rem;
  border-radius: 12rem 12rem 0 0;
  background: var(--fog-2);
  overflow: hidden;
}
.about__figure img { width: 88%; height: auto; margin-inline: auto; }

.about__lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--harbor);
  max-width: 30ch;
  margin-bottom: 1.5rem;
}
.about__text > p:not(.about__lead) { max-width: 60ch; color: var(--slate); }

.about__facts {
  display: grid;
  gap: 1rem 2rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.about__facts dt { font-size: var(--step--1); color: var(--slate); }
.about__facts dd { margin: 0.2rem 0 0; }

.ph {
  display: inline-block;
  padding: 0.05rem 0.6rem;
  border: 1px dashed var(--field-border);
  border-radius: 2px;
  font-size: var(--step--1);
  color: var(--slate);
}

@media (min-width: 560px) { .about__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
}

/* ---------- Articles ---------- */
.articles { background: var(--paper); }
.articles__cols { display: grid; gap: 3rem; }
.articles__topic {
  margin: 0 0 0.35rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--steel);
}
.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.article-list a {
  color: var(--harbor);
  font-size: var(--step-1);
  line-height: 1.45;
  text-decoration-color: var(--line);
}
.article-list a:hover { color: var(--steel); text-decoration-color: currentColor; }
.article-list__date { font-size: var(--step--1); color: var(--slate); white-space: nowrap; }
.articles__video { margin: 1.5rem 0 0; color: var(--slate); }

@media (min-width: 1000px) {
  .articles__cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 3rem; }
.contact__intro > p { max-width: 44ch; color: var(--slate); }

.channels { margin: 2rem 0; padding: 0; list-style: none; }
.channels li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.channels__label { color: var(--slate); font-size: var(--step--1); padding-top: 0.15em; }
.channels a { color: var(--harbor); font-weight: 500; }
.channels a[dir="ltr"] { justify-self: start; }

.map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.map__placeholder { padding: 1.5rem; }
.map__placeholder p { margin-bottom: 1rem; color: var(--slate); font-size: var(--step--1); max-width: 40ch; }
.map__glyph {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  fill: none;
  stroke: var(--steel);
  stroke-width: 2;
}
.map__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.map iframe { display: block; width: 100%; height: 20rem; border: 0; }

.contact-form { display: grid; gap: 1.25rem 1.5rem; align-content: start; }

.field label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.req,
.opt { font-size: var(--step--1); font-weight: 400; color: var(--slate); }

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--field-border);
  border-radius: 2px;
  background: var(--paper);
  color: var(--harbor);
  font: inherit;
  font-size: var(--step-0);
  line-height: 1.4;
}
.contact-form input[dir="ltr"] { text-align: right; }
.contact-form textarea { min-height: 7rem; resize: vertical; }
.contact-form .field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.field__hint { margin: 0.35rem 0 0; font-size: var(--step--1); color: var(--slate); }
.field__error { margin: 0.4rem 0 0; font-size: var(--step--1); font-weight: 500; color: var(--error); }

.notice {
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--harbor);
  background: var(--fog-2);
  font-size: var(--step--1);
  line-height: 1.7;
}
.notice__title { margin: 0 0 0.4rem; font-size: var(--step-0); font-weight: 600; }
.notice p { margin: 0; color: var(--harbor); }

.field--check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}
.field--check input {
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.25rem 0 0;
  accent-color: var(--steel);
}
.field--check label { margin: 0; font-weight: 400; }
.field--check .field__error { grid-column: 1 / -1; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.turnstile { display: flex; justify-content: flex-start; min-height: 65px; }
.turnstile[hidden] { display: none; }

.form-status {
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--steel);
  border-radius: var(--radius);
  background: #E2ECF3;
  color: var(--harbor);
}
.form-status[data-state="error"] { border-color: var(--error); background: #F6E6E8; }
.form-status p { margin: 0; }
.form-status p + p { margin-top: 0.4rem; }
.form-noscript { margin: 0; font-weight: 500; }

@media (min-width: 640px) {
  .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  --focus: var(--gold);
  background: var(--harbor);
  color: var(--fog);
  padding-block: 3.5rem 2.5rem;
}
.site-footer a,
.site-footer .link-button { color: var(--fog); }
.site-footer a:hover { color: var(--steel-light); }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__name {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
}
.site-footer__brand p:last-child { margin: 0; color: #D3DDE5; }
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__badge {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: var(--step--1);
  color: #D3DDE5;
}
.site-footer__badge svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-footer__demo {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--harbor-line);
  font-size: var(--step--1);
  color: var(--mist);
}

@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 4rem; }
}

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }

@media (max-width: 759.98px) {
  body { padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px)); }
  .call-bar {
    --focus: var(--gold);
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--harbor);
    border-top: 1px solid var(--harbor-line);
  }
  .call-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.75rem;
    color: var(--fog);
    font-weight: 500;
    text-decoration: none;
  }
  .call-bar__btn + .call-bar__btn { border-inline-start: 1px solid var(--harbor-line); }
  .call-bar__btn:hover { color: var(--fog); background: var(--harbor-2); }
  .call-bar__btn:focus-visible { outline-offset: -4px; }
  .call-bar svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.8;
    stroke-linejoin: round;
  }
}

/* ---------- Legal pages (privacy / accessibility / 404) ---------- */
.page-header .site-header__bar { justify-content: space-between; }
.legal { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.legal__body { max-width: 70ch; }
.legal h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.05;
}
.legal h2 { margin: 2.5rem 0 0.75rem; font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.2; }
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: var(--step-1); font-weight: 600; line-height: 1.35; }
.legal ul { padding-inline-start: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .updated { color: var(--slate); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: var(--step--1); }
.legal caption { text-align: start; font-weight: 600; padding-bottom: 0.5rem; }
.legal th,
.legal td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.legal th { font-weight: 600; }
.draft-note {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--field-border);
  border-radius: var(--radius);
  background: var(--paper);
}
.draft-note p { margin: 0; }
.mark { padding: 0 0.2em; border-radius: 2px; background: #F1E3B3; color: var(--harbor); }

/* ---------- Cookie consent theme (loaded only when a banner is needed / demo) ---------- */
#cc-main {
  --cc-font-family: var(--font-text);
  --cc-bg: var(--paper);
  --cc-primary-color: var(--harbor);
  --cc-secondary-color: var(--slate);
  --cc-btn-primary-bg: var(--steel);
  --cc-btn-primary-color: var(--paper);
  --cc-btn-primary-border-color: var(--steel);
  --cc-btn-primary-hover-bg: var(--harbor);
  --cc-btn-primary-hover-color: var(--paper);
  --cc-btn-primary-hover-border-color: var(--harbor);
  --cc-btn-secondary-bg: var(--steel);
  --cc-btn-secondary-color: var(--paper);
  --cc-btn-secondary-border-color: var(--steel);
  --cc-btn-secondary-hover-bg: var(--harbor);
  --cc-btn-secondary-hover-color: var(--paper);
  --cc-btn-secondary-hover-border-color: var(--harbor);
  --cc-toggle-on-bg: var(--steel);
  --cc-separator-border-color: var(--line);
  --cc-link-color: var(--steel);
  --cc-btn-border-radius: var(--radius-pill);
  --cc-modal-border-radius: 6px;
}
#cc-main :focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ---------- Windows high contrast / forced colors ---------- */
@media (forced-colors: active) {
  .btn,
  .motion-toggle,
  .nav-toggle { border: 1.5px solid ButtonText; }
  .motion-toggle[aria-pressed="true"] { outline: 2px solid Highlight; }
  .q__summary::after { background: ButtonText; }
}

/* ---------- Print: the explainer and contact details print cleanly ---------- */
@media print {
  .site-header, .call-bar, .demo-banner, .hero__visual, .proof, .map, .contact-form { display: none !important; }
  body { background: #fff; padding: 0; }
  .q__body { display: block; }
}
