/* ============================================================
   Heftman R&D — shared design system (production)
   Single source of truth for the site's design language.

   Production changes vs. the approved demo, all deliberate:
   - Inter is self-hosted (performance + no IP leak to Google
     Fonts, which EU regulators have treated as a GDPR issue).
   - Four colours nudged to pass WCAG 2.1 AA contrast (4.5:1),
     which the published Accessibility Statement commits to:
       eyebrow text   #0C7A85 -> #0C7781   (4.44 -> 4.63:1)
       footer bottom  #7E92A4 -> #889BA9   (4.09 -> 4.57:1)
       fine print     #5E7282 -> #889BA9   (2.63 -> 4.57:1)
       placeholders   UA grey -> #64727F   (4.31 -> 4.62:1)
   - Skip link, visible focus, reduced-motion, form / consent /
     legal-page states. No new colours or layout paradigms.
   ============================================================ */

/* ---------- Fonts (self-hosted Inter, variable 400–600) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-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;
}

:root {
  /* Brand teal — sampled from the Heftman R&D logo */
  --navy:        #08545C;   /* deep teal — headings, button hover */
  --navy-deep:   #06363B;   /* darkest teal — footer bg, CTA band */
  --blue:        #0C7A85;   /* primary teal accent — buttons, links, numbers */
  --blue-light:  #E2F3F5;   /* light teal — icon chips, eyebrow bg */
  --ink:         #1A2530;
  --slate:       #5A6B7B;
  --line:        #E3E8ED;
  --bg:          #FFFFFF;
  --bg-soft:     #F5F8F8;
  --foot-muted:  #889BA9;   /* AA-compliant muted text on --navy-deep */
  --error:       #B42318;
  --radius:      12px;
  --radius-sm:   8px;
  /* Content container. Was max 1120px incl. a fixed 24px gutter = 1072px of content.
     Now 1280px of content on wide screens (+19.4%). The gutter is exactly 24px up to a
     1120px viewport — phones, tablets and small laptops render as before — then grows
     to 56px, so wide screens keep comfortable margins instead of going edge-to-edge. */
  --content-max: 1280px;
  --gutter:      clamp(24px, calc(24px + (100vw - 1120px) / 8), 56px);
  --shadow:      0 1px 3px rgba(8,84,92,.06), 0 8px 24px rgba(8,84,92,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: calc(var(--content-max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
section { scroll-margin-top: 80px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Accessibility affordances ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-deep); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
footer :focus-visible, .cta-band :focus-visible { outline-color: #fff; }
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  border-radius: var(--radius-sm); padding: 12px 24px;
  border: 1px solid transparent; transition: all .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { background: var(--blue-light); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--slate); transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-cta { padding: 9px 18px; font-size: 14px; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: #fff; }
.burger { display: none; background: none; border: none; cursor: pointer; font-size: 24px; line-height: 1; color: var(--ink); padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 64px; background:
    radial-gradient(1100px 500px at 75% -10%, rgba(12,122,133,.08), transparent 60%); }
/* minmax(0,…) stops the stats row's min-content width from forcing the text
   column wide and squeezing the hero visual. */
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 56px; align-items: stretch; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: #0C7781;
  background: var(--blue-light); padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 { font-size: 40px; line-height: 1.16; font-weight: 600; letter-spacing: -.8px; margin-bottom: 20px; max-width: 600px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p { font-size: 18px; color: var(--slate); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-visual {
  border-radius: var(--radius); overflow: hidden;
  height: 100%; min-height: 460px; background: var(--bg-soft);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.stat { padding: 22px 8px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
/* Capped at 18px: anything larger forces the hero text column wide (approved). */
.stat-num { font-size: clamp(15px, 1.9vw, 18px); font-weight: 600; color: var(--blue); letter-spacing: -.4px; white-space: nowrap; }
.stat-label { font-size: 13px; color: var(--slate); margin-top: 4px; }

/* ---------- Section heads ---------- */
.sec { padding: 84px 0; }
.sec-soft { background: var(--bg-soft); }
.sec-tight { padding-top: 52px; padding-bottom: 52px; }
.sec-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.sec-title { font-size: 32px; font-weight: 600; letter-spacing: -.6px; margin-bottom: 14px; }
.sec-intro { font-size: 17px; color: var(--slate); max-width: 580px; margin-bottom: 44px; }
.sec-intro.flush { margin-bottom: 0; }

/* ---------- Cards ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4dde6; }
.card-ico {
  width: 46px; height: 46px; border-radius: 10px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-ico svg { width: 24px; height: 24px; stroke: var(--blue); }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--slate); line-height: 1.6; }
.card-more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 500; color: var(--blue); }
.card-more::after { content: ' \2192'; }
a.card:hover .card-more { text-decoration: underline; }

/* ---------- Braid decoration ---------- */
.braid { position: absolute; z-index: 1; top: 8px; right: -30px;
  width: 680px; height: 320px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 88%, transparent); }
.braid svg { width: 100%; height: 100%; overflow: visible; }
.braid-flow { animation: braidFlow 4.5s linear infinite; }
@keyframes braidFlow { from { transform: translateX(0); } to { transform: translateX(190px); } }
.strand { fill: none; stroke: var(--blue); stroke-width: 2; opacity: .3; stroke-linecap: round; }
.fan { fill: none; stroke: var(--blue); stroke-width: 1.4; opacity: .2; stroke-linecap: round; }
.has-braid { position: relative; overflow: hidden; }
.has-braid .wrap { position: relative; z-index: 2; }
.braid-inline { position: relative; top: auto; right: auto; width: 100%; height: 300px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 92%, transparent); }

/* ---------- About / two-column feature block ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual {
  border-radius: var(--radius); aspect-ratio: 3/2; overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; font-size: 15px; color: var(--ink); align-items: flex-start; }
.checklist li svg { width: 20px; height: 20px; stroke: var(--blue); flex-shrink: 0; margin-top: 2px; }
.checklist strong { font-weight: 600; }
.capsule {
  display: flex; gap: 14px; align-items: center; margin-top: 26px;
  background: var(--blue-light); border: 1px solid #CFE7EA;
  border-radius: var(--radius); padding: 18px 20px;
}
.capsule svg { width: 28px; height: 28px; stroke: var(--blue); flex-shrink: 0; }
.capsule p { font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.capsule strong { font-weight: 600; }
.capsule-wide { margin-top: 0; padding: 24px 28px; gap: 18px; align-items: flex-start; }
.capsule-wide svg { width: 32px; height: 32px; margin-top: 2px; }
.capsule-wide p { font-size: 15.5px; max-width: 860px; }
.capsule-wide .scope { display: block; margin-top: 6px; font-size: 14px; color: var(--slate); }

/* ---------- Clients ---------- */
.clients-head { text-align: center; }
.clients-sub { font-size: 16px; color: var(--slate); max-width: 600px; margin: 8px auto 0; }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; list-style: none; }
.logo-tile { flex: 0 0 auto; width: 172px; height: 88px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 16px 20px;
  transition: border-color .2s ease, box-shadow .2s ease; }
.logo-tile:hover { border-color: #cfe0e2; box-shadow: var(--shadow); }
.logo-tile img { max-height: 38px; max-width: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.logo-tile:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Materials chips ---------- */
.chip-group-label { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips + .chip-group-label { margin-top: 34px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 10px 18px; font-size: 14.5px; font-weight: 500; color: var(--navy);
  transition: border-color .18s ease;
}
.chip:hover { border-color: #cfe0e2; }
.chip span { font-weight: 400; font-size: 13px; color: var(--slate); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: 30px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 14px; }
.contact-info p { font-size: 16px; color: var(--slate); margin-bottom: 28px; }
.info-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 15px; }
.info-row svg { width: 20px; height: 20px; stroke: var(--blue); flex-shrink: 0; }
.info-row a { color: var(--blue); }
.contact-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; display: block; }
label .opt { font-weight: 400; color: var(--slate); }
input, textarea, select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; background: var(--bg-soft); transition: all .15s;
}
::placeholder { color: #64727F; opacity: 1; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue);
  background: #fff; box-shadow: 0 0 0 3px rgba(12,122,133,.12); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); background: #FFF8F7; }
.field-error { margin-top: 6px; font-size: 13px; color: var(--error); }
textarea { resize: vertical; min-height: 110px; }
.contact-form .btn-primary { justify-content: center; margin-top: 4px; }
/* Honeypot — invisible to people, visible to naive bots. Not display:none,
   which some bots detect; moved off-screen and removed from the a11y tree. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 0; }
.turnstile-slot:not(:empty) { min-height: 65px; }
.form-note { font-size: 12.5px; color: var(--slate); line-height: 1.5; }
.form-note a { color: var(--blue); text-decoration: underline; }
.form-status { font-size: 14px; line-height: 1.5; border-radius: var(--radius-sm); }
.form-status:not(:empty) { padding: 12px 14px; }
.form-status.is-error { background: #FEF3F2; color: var(--error); border: 1px solid #FECDCA; }
.form-status.is-error a,
.form-status.is-error .link-button { color: var(--error); font-weight: 600; text-decoration: underline; }
.form-status [data-email-address] { user-select: all; overflow-wrap: anywhere; }
.form-success { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; box-shadow: var(--shadow); }
.form-success h3 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; margin: 14px 0 8px; }
.form-success p { color: var(--slate); font-size: 15.5px; }
.form-success .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; }
.form-success .tick svg { width: 24px; height: 24px; stroke: var(--blue); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-deep); color: #B9C7D4; padding: 48px 0 28px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-logo img { height: 30px; width: auto; display: block; }
.foot-tag { font-size: 14px; color: #8FA3B5; margin-top: 14px; max-width: 320px; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: #B9C7D4; transition: color .15s; }
.foot-links a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 13px; color: var(--foot-muted); }
.foot-legal a, .foot-legal button { color: var(--foot-muted); text-decoration: underline; }
.foot-legal a:hover, .foot-legal button:hover { color: #fff; }
.foot-legal button { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.foot-social { display: flex; gap: 14px; }
.foot-social a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center; transition: background .15s; }
.foot-social a:hover { background: rgba(255,255,255,.16); }
.foot-social svg { width: 18px; height: 18px; stroke: #fff; }
/* Discreet regulatory note — small print, but still AA-legible. */
.foot-fineprint { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--foot-muted); max-width: 760px; }

/* ---------- Spec table ---------- */
/* Capped at the table's previous width: on the wider container the value column
   would otherwise reach ~112 characters per line. */
.spec-table {
  width: 100%; max-width: 1072px; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.spec-table th {
  background: var(--blue-light); color: var(--navy);
  font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  text-align: left; padding: 13px 20px;
}
.spec-table td, .spec-table tbody th { padding: 15px 20px; font-size: 14.5px; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table tbody th { background: transparent; color: var(--ink); font-weight: 500; letter-spacing: 0; text-transform: none; width: 34%; }
.spec-table td { color: var(--slate); }
.spec-table tbody tr:nth-child(even) > * { background: var(--bg-soft); }

/* ---------- Process strip ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; }
.process::before {
  content: ''; position: absolute; top: 23px; left: 10%; right: 10%;
  height: 2px; background: var(--line); z-index: 1;
}
.step { position: relative; z-index: 2; text-align: center; padding: 0 14px; }
.step-dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; margin: 0 auto 18px;
}
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--slate); line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep); border-radius: var(--radius);
  padding: 44px 48px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; font-weight: 600; letter-spacing: -.4px; color: #fff; margin-bottom: 8px; }
.cta-band p { font-size: 15.5px; color: #9FB6BA; max-width: 540px; }

/* ---------- Cross-link cards ---------- */
.crosslink { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.xcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.xcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4dde6; }
.xcard h3 { font-size: 20px; font-weight: 600; letter-spacing: -.3px; margin-bottom: 10px; }
.xcard p { font-size: 14.5px; color: var(--slate); line-height: 1.6; }
.xcard .card-more { padding-top: 20px; font-size: 15px; }
.xcard:hover .card-more { text-decoration: underline; }

/* ---------- Technical diagram panel (figures) ---------- */
.diagram {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.diagram + .diagram { margin-top: 18px; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption {
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--slate); margin-bottom: 16px;
}
.diagram-note {
  margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.5; color: var(--slate);
}
.dg-label { font: 600 13px 'Inter', sans-serif; fill: var(--ink); }
.dg-sub   { font: 400 11.5px 'Inter', sans-serif; fill: var(--slate); }
.dg-cap   { font: 500 12px 'Inter', sans-serif; fill: var(--slate); }
.dg-lead  { stroke: #C3D2D5; stroke-width: 1; fill: none; }
.dg-dot   { fill: var(--blue); }

/* ---------- Legal / prose pages ---------- */
.page-head { padding: 64px 0 8px; background:
    radial-gradient(1100px 400px at 75% -20%, rgba(12,122,133,.07), transparent 60%); }
.page-head h1 { font-size: 36px; font-weight: 600; letter-spacing: -.7px; line-height: 1.2; }
.page-head .updated { margin-top: 10px; font-size: 14px; color: var(--slate); }
.prose { max-width: 760px; padding: 32px 0 84px; }
.prose h2 { font-size: 21px; font-weight: 600; letter-spacing: -.3px; margin: 38px 0 12px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16px; color: #3B4957; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0 0; padding-left: 22px; display: grid; gap: 6px; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose address { font-style: normal; margin-top: 12px; font-size: 16px; color: #3B4957; line-height: 1.8; }
.prose .lang-block { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.prose [dir="rtl"] { font-family: 'Segoe UI', Arial, 'Noto Sans Hebrew', sans-serif; }
.prose [dir="rtl"] ul { padding-left: 0; padding-right: 22px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* ---------- 404 ---------- */
.notfound { padding: 96px 0 110px; text-align: center; }
.notfound .code { font-size: 14px; font-weight: 600; letter-spacing: 2px; color: var(--blue); }
.notfound h1 { font-size: 38px; font-weight: 600; letter-spacing: -.7px; margin: 10px 0 14px; }
.notfound p { color: var(--slate); font-size: 17px; max-width: 520px; margin: 0 auto 30px; }
.notfound .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Cookie consent banner ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(6,54,59,.18); padding: 18px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.consent p { flex: 1 1 340px; font-size: 14px; color: var(--ink); line-height: 1.55; }
.consent p a { color: var(--blue); text-decoration: underline; }
.consent .consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .braid-flow { animation: none; }
  .card, .xcard, .btn, .logo-tile img { transition: none; }
  .card:hover, .xcard:hover { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 901px) {
  /* As the column widens, caption, drawing and note share one centred 480px measure:
     the drawing stays at its designed size (labels 13px) and the note stays readable. */
  .diagram > * { max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 1040px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13.5px; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-visual { aspect-ratio: 16/10; height: auto; min-height: 0; }
  .burger { display: block; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 20px;
    box-shadow: 0 12px 24px rgba(6,54,59,.08);
  }
  .nav-links.open a { padding: 8px 0; font-size: 15px; }
  .nav-links.open a.nav-cta { padding: 10px 18px; margin-top: 8px; }
  .sec { padding: 60px 0; }
  .hero { padding: 52px 0 48px; }
  .braid, .braid-inline { display: none; }
  .logo-tile { width: calc(33.333% - 8px); }
  .crosslink { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .process::before { top: 0; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; text-align: left; padding: 0; }
  .step-dot { margin: 0; }
  .cta-band { padding: 34px 28px; }
  .cta-band h2 { font-size: 23px; }
  .page-head h1 { font-size: 30px; }
}
@media (max-width: 540px) {
  .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .sec-title { font-size: 26px; }
  .notfound h1 { font-size: 30px; }
  .notfound { padding: 64px 0 80px; }
  .logo-tile { width: calc(50% - 6px); height: 76px; }
  .contact-form { padding: 22px; }
  /* spec table stacks into label / value blocks */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td, .spec-table tbody th { display: block; width: 100%; }
  .spec-table thead { display: none; }
  .spec-table tr { border-top: 1px solid var(--line); }
  .spec-table tr:first-child { border-top: none; }
  .spec-table td, .spec-table tbody th { border-top: none; padding: 4px 18px; }
  .spec-table tbody th { padding-top: 16px; font-size: 13px; }
  .spec-table td { padding-bottom: 16px; }
  .cta-band { padding: 28px 22px; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .consent { left: 10px; right: 10px; bottom: 10px; }
  .consent .consent-actions { width: 100%; }
  .consent .btn { flex: 1; justify-content: center; }
}
