/* insan.one website, October 2026 redesign.
   Layout: a navy hero band carries the thesis and a drawing of the product; below, light reading sections alternate
   text with simplified product drawings. Brand palette (v3.5): light #1D4ED8 on #F4F4F5, dark navy #0B1633 with #3B82F6,
   high contrast #FFFF00 on #000000. Inter for Latin, Noto Sans Arabic for Arabic. Every size is in rem, scaled by --scale. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-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: "Noto Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/noto-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens: light ---------- */
:root {
  --scale: 1;
  --bg: #f4f4f5; --bg-alt: #eceef3; --surface: #ffffff; --fg: #1f2937; --muted: #52525b; --rule: #e2e5ec; --control: #6b7280;
  --brand: #1d4ed8; --brand-strong: #1e40af; --brand-soft: #e4ebfb; --focus: #2563eb;
  --btn-bg: #1d4ed8; --btn-hover: #1e40af; --btn-fg: #ffffff;
  --wm-a: #0b0b0c; --wm-b: #1d4ed8;
  /* the hero band is navy in every mode except high contrast */
  --hero-bg: #0b1633; --hero-fg: #eef2ff; --hero-muted: #a9b6d9; --hero-rule: #2c3b6b; --hero-accent: #60a5fa; --hero-node: #38bdf8;
  --hero-btn-bg: #ffffff; --hero-btn-fg: #0b1633; --hero-ghost: #a9b6d9;
  /* drawings */
  --d-bg: #f7f8fb; --d-surface: #ffffff; --d-rule: #dfe3ec; --d-fg: #1f2937; --d-muted: #5b6475; --d-brand: #1d4ed8; --d-brand-soft: #e4ebfb;
  --d-bad: #b91c1c; --d-bad-bg: #fdecec; --d-warn: #92400e; --d-warn-bg: #fdf3dc; --d-info: #1d4ed8; --d-info-bg: #e7eefc; --d-ok: #166534; --d-ok-bg: #e5f5ea; --d-neu: #3f3f46; --d-neu-bg: #efeff1;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.10);
  --scrim: rgba(10, 10, 10, 0.55);
  --link-underline: rgba(29, 78, 216, 0.45);
  color-scheme: light;
}
/* ---------- Dark: navy, as the product ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-mode]) {
    --bg: #0b1633; --bg-alt: #101c42; --surface: #13204a; --fg: #eef2ff; --muted: #a9b6d9; --rule: #2c3b6b; --control: #7f8db6;
    --brand: #60a5fa; --brand-strong: #93c5fd; --brand-soft: #1a2957; --focus: #60a5fa;
    --btn-bg: #2563eb; --btn-hover: #1d4ed8; --btn-fg: #ffffff; --wm-a: #ffffff; --wm-b: #3b82f6;
    --hero-bg: #070f26; --hero-rule: #22305c;
    --d-bg: #0f1a3d; --d-surface: #13204a; --d-rule: #2c3b6b; --d-fg: #eef2ff; --d-muted: #a9b6d9; --d-brand: #60a5fa; --d-brand-soft: #1a2957;
    --d-bad: #fca5a5; --d-bad-bg: #3b1520; --d-warn: #fcd34d; --d-warn-bg: #3a2a10; --d-info: #93c5fd; --d-info-bg: #18295a; --d-ok: #86efac; --d-ok-bg: #12321f; --d-neu: #d4d4d8; --d-neu-bg: #1e2a52;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.45); --scrim: rgba(0, 0, 0, 0.7); --link-underline: rgba(96, 165, 250, 0.55);
    color-scheme: dark;
  }
}
:root[data-mode="dark"] {
  --bg: #0b1633; --bg-alt: #101c42; --surface: #13204a; --fg: #eef2ff; --muted: #a9b6d9; --rule: #2c3b6b; --control: #7f8db6;
  --brand: #60a5fa; --brand-strong: #93c5fd; --brand-soft: #1a2957; --focus: #60a5fa;
  --btn-bg: #2563eb; --btn-hover: #1d4ed8; --btn-fg: #ffffff; --wm-a: #ffffff; --wm-b: #3b82f6;
  --hero-bg: #070f26; --hero-rule: #22305c;
  --d-bg: #0f1a3d; --d-surface: #13204a; --d-rule: #2c3b6b; --d-fg: #eef2ff; --d-muted: #a9b6d9; --d-brand: #60a5fa; --d-brand-soft: #1a2957;
  --d-bad: #fca5a5; --d-bad-bg: #3b1520; --d-warn: #fcd34d; --d-warn-bg: #3a2a10; --d-info: #93c5fd; --d-info-bg: #18295a; --d-ok: #86efac; --d-ok-bg: #12321f; --d-neu: #d4d4d8; --d-neu-bg: #1e2a52;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.45); --scrim: rgba(0, 0, 0, 0.7); --link-underline: rgba(96, 165, 250, 0.55);
  color-scheme: dark;
}
/* ---------- High contrast: yellow on black; the logo is all white ---------- */
@media (prefers-contrast: more) {
  :root:not([data-mode]) {
    --bg: #000; --bg-alt: #000; --surface: #000; --fg: #ff0; --muted: #ff0; --rule: #ff0; --control: #ff0;
    --brand: #ff0; --brand-strong: #fff; --brand-soft: #000; --focus: #fff; --btn-bg: #ff0; --btn-hover: #fff; --btn-fg: #000; --wm-a: #fff; --wm-b: #fff;
    --hero-bg: #000; --hero-fg: #ff0; --hero-muted: #ff0; --hero-rule: #ff0; --hero-accent: #ff0; --hero-node: #ff0; --hero-btn-bg: #ff0; --hero-btn-fg: #000; --hero-ghost: #ff0;
    --d-bg: #000; --d-surface: #000; --d-rule: #ff0; --d-fg: #ff0; --d-muted: #ff0; --d-brand: #ff0; --d-brand-soft: #000;
    --d-bad: #ff0; --d-bad-bg: #000; --d-warn: #ff0; --d-warn-bg: #000; --d-info: #ff0; --d-info-bg: #000; --d-ok: #ff0; --d-ok-bg: #000; --d-neu: #ff0; --d-neu-bg: #000;
    --shadow: none; --scrim: rgba(0, 0, 0, 0.85); --link-underline: #ff0; color-scheme: dark;
  }
}
:root[data-mode="contrast"] {
  --bg: #000; --bg-alt: #000; --surface: #000; --fg: #ff0; --muted: #ff0; --rule: #ff0; --control: #ff0;
  --brand: #ff0; --brand-strong: #fff; --brand-soft: #000; --focus: #fff; --btn-bg: #ff0; --btn-hover: #fff; --btn-fg: #000; --wm-a: #fff; --wm-b: #fff;
  --hero-bg: #000; --hero-fg: #ff0; --hero-muted: #ff0; --hero-rule: #ff0; --hero-accent: #ff0; --hero-node: #ff0; --hero-btn-bg: #ff0; --hero-btn-fg: #000; --hero-ghost: #ff0;
  --d-bg: #000; --d-surface: #000; --d-rule: #ff0; --d-fg: #ff0; --d-muted: #ff0; --d-brand: #ff0; --d-brand-soft: #000;
  --d-bad: #ff0; --d-bad-bg: #000; --d-warn: #ff0; --d-warn-bg: #000; --d-info: #ff0; --d-info-bg: #000; --d-ok: #ff0; --d-ok-bg: #000; --d-neu: #ff0; --d-neu-bg: #000;
  --shadow: none; --scrim: rgba(0, 0, 0, 0.85); --link-underline: #ff0; color-scheme: dark;
}

/* ---------- Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--scale)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Inter", "Noto Sans Arabic", Arial, Helvetica, sans-serif; font-size: 1.0625rem; line-height: 1.65; overflow-wrap: break-word; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
:lang(ar) { font-family: "Noto Sans Arabic", "Inter", Arial, sans-serif; }
body:lang(ar) { line-height: 1.85; }
:where([lang="en"]) { font-family: "Inter", Arial, Helvetica, sans-serif; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -0.018em; }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.4; }
p, ul, ol { margin: 0; }
ul { padding: 0; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
@media (min-width: 40rem) { .wrap { padding-left: max(2rem, env(safe-area-inset-left, 0px)); padding-right: max(2rem, env(safe-area-inset-right, 0px)); } }
.skip-link { position: absolute; left: 1rem; top: -100rem; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 0.9375rem; }

/* ---------- Wordmark: live text, Inter Regular, never bold ---------- */
.wordmark { font-family: "Inter", Arial, sans-serif; font-weight: 400; letter-spacing: -0.01em; white-space: nowrap; line-height: 1; }
.wordmark .a { color: var(--wm-a); } .wordmark .b { color: var(--wm-b); }

/* ---------- Header: stays left to right in both languages ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 0.625rem; }
.brand { text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand .wordmark { font-size: 1.625rem; }
.bar-nav { display: none; }
.bar-nav ul { list-style: none; display: flex; gap: 0.25rem; }
.bar-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem; border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.bar-nav a:hover { color: var(--brand); }
.bar-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
@media (min-width: 64rem) { .bar-nav { display: block; } }
.bar-actions { display: flex; align-items: center; gap: 0.5rem; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.375rem 1rem; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill svg { width: 1.125rem; height: 1.125rem; flex: none; }
.pill[aria-pressed="true"], .pill[aria-current="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.pill:disabled { opacity: 0.5; cursor: not-allowed; }
.js-only { display: none; } .js .js-only { display: inline-flex; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.625rem 1.375rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn-ghost { border-color: currentColor; color: var(--brand); }
.btn svg { width: 1.125rem; height: 1.125rem; }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hero: navy band, thesis and a drawing ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-fg); }
.hero .wrap { position: relative; display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); align-items: center; }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1 { color: var(--hero-fg); }
.hero .eyebrow { color: var(--hero-accent); }
.hero .lead { color: var(--hero-muted); font-size: 1.1875rem; max-width: 34rem; margin-top: 1.25rem; }
.hero .ctas { margin-top: 2rem; }
.hero .btn-primary { background: var(--hero-btn-bg); color: var(--hero-btn-fg); }
.hero .btn-primary:hover { background: var(--hero-accent); color: var(--hero-btn-fg); }
.hero .btn-ghost { color: var(--hero-fg); border-color: var(--hero-ghost); }
.hero .btn-ghost:hover { border-color: var(--hero-fg); }
.hero-text { min-width: 0; }
.hero .drawing { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }

.pagehead { border-bottom: 1px solid var(--rule); background: var(--bg-alt); }
.pagehead .wrap { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.pagehead h1 { margin-top: 0.75rem; }
.pagehead .lead { margin-top: 1rem; font-size: 1.1875rem; color: var(--muted); max-width: 44rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 2.25rem + 3vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.section-head .lead { color: var(--muted); font-size: 1.125rem; }
.prose { max-width: 46rem; display: grid; gap: 1rem; }
.prose h2 { margin-bottom: 0.25rem; }
.prose p, .feature-text p { color: var(--fg); }
.ticks { list-style: none; display: grid; gap: 0.625rem; }
.ticks li { position: relative; padding-inline-start: 1.75rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0.125rem; top: 0.55em; width: 0.75rem; height: 0.4rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

.cards { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 1rem; padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.card p { color: var(--muted); }
.card .num { font-size: 0.8125rem; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }

.feature { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; } .feature.flip .feature-text { order: 2; } }
.feature-text { display: grid; gap: 1rem; min-width: 0; }
.feature-text .ticks { margin-top: 0.25rem; }
.feature-art { min-width: 0; }

.checklist { list-style: none; display: grid; gap: 0.75rem 2rem; }
@media (min-width: 40rem) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.checklist li { position: relative; padding: 0.875rem 1rem 0.875rem 2.75rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 0.75rem; }
[dir="rtl"] .checklist li { padding: 0.875rem 2.75rem 0.875rem 1rem; }
.checklist li::before { content: ""; position: absolute; inset-inline-start: 1.125rem; top: 1.35rem; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--brand); }

.band { background: var(--hero-bg); color: var(--hero-fg); }
.band .wrap { padding-block: clamp(3rem, 2.25rem + 3vw, 5rem); display: grid; gap: 1.25rem; }
.band h2 { color: var(--hero-fg); }
.band p { color: var(--hero-muted); max-width: 46rem; font-size: 1.125rem; }
.band .btn-primary { background: var(--hero-btn-bg); color: var(--hero-btn-fg); justify-self: start; }
.band .btn-primary:hover { background: var(--hero-accent); }

.toc { background: var(--surface); border: 1px solid var(--rule); border-radius: 1rem; padding: 1.25rem 1.5rem; }
.toc h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.75rem; }
.toc ul { list-style: none; display: grid; gap: 0.25rem 1.5rem; }
@media (min-width: 40rem) { .toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .toc ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.toc a { display: inline-flex; min-height: 2.75rem; align-items: center; }

.person { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .person { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; } }
.person .prose { max-width: none; }
.quote { font-size: 1.375rem; line-height: 1.4; border-inline-start: 3px solid var(--brand); padding-inline-start: 1.25rem; margin: 0.5rem 0 0; }
.stats { list-style: none; display: grid; gap: 1rem; align-content: start; }
.stats li { background: var(--surface); border: 1px solid var(--rule); border-radius: 1rem; padding: 1.25rem 1.5rem; display: grid; }
.stats b { font-size: 2.25rem; font-weight: 400; letter-spacing: -0.02em; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats span { color: var(--muted); }

.contact-list { list-style: none; display: grid; gap: 1rem; max-width: 40rem; }
.contact-list li { background: var(--surface); border: 1px solid var(--rule); border-radius: 1rem; padding: 1.25rem 1.5rem; display: grid; gap: 0.25rem; }
.contact-list .k { font-size: 0.875rem; color: var(--muted); font-weight: 600; }
.contact-list a { font-size: 1.25rem; }
.note { color: var(--muted); margin-top: 1rem; }

/* ---------- Product drawings (SVG, coloured from tokens) ---------- */
.drawing { margin: 0; background: var(--d-bg); border: 1px solid var(--d-rule); border-radius: 1rem; overflow: hidden; }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing figcaption { font-size: 0.8125rem; color: var(--muted); padding: 0.5rem 1rem 0.75rem; border-top: 1px solid var(--d-rule); background: var(--d-surface); }
.hero .drawing figcaption { color: var(--d-muted); }
.drawing.phone { background: transparent; border: 0; max-width: 22rem; margin-inline: auto; }
.drawing.phone figcaption { background: transparent; border: 0; text-align: center; }
.dw-bg { fill: var(--d-bg); } .dw-surface { fill: var(--d-surface); } .dw-line { stroke: var(--d-rule); fill: none; } .dw-card { fill: var(--d-surface); stroke: var(--d-rule); }
.dw-t { fill: var(--d-fg); font-family: inherit; } .dw-m { fill: var(--d-muted); } .dw-b { fill: var(--d-brand); } .dw-bsoft { fill: var(--d-brand-soft); }
.dw-btn { fill: var(--d-brand); } .dw-btn-t { fill: var(--d-surface); }
:root[data-mode="contrast"] .dw-btn-t { fill: #000; }
.dw-s-bad { fill: var(--d-bad-bg); stroke: var(--d-bad); } .dw-c-bad { fill: var(--d-bad); }
.dw-s-warn { fill: var(--d-warn-bg); stroke: var(--d-warn); } .dw-c-warn { fill: var(--d-warn); }
.dw-s-info { fill: var(--d-info-bg); stroke: var(--d-info); } .dw-c-info { fill: var(--d-info); }
.dw-s-ok { fill: var(--d-ok-bg); stroke: var(--d-ok); } .dw-c-ok { fill: var(--d-ok); }
.dw-s-neu { fill: var(--d-neu-bg); stroke: var(--d-neu); } .dw-c-neu { fill: var(--d-neu); }
.dw-fill-bad { fill: var(--d-bad); } .dw-stroke-b { stroke: var(--d-brand); fill: none; }
.dw-bar-a { fill: var(--d-brand); } .dw-bar-b { fill: var(--d-info); opacity: 0.55; } .dw-bar-c { fill: var(--d-muted); opacity: 0.55; }
:root[data-mode="contrast"] .dw-bar-b, :root[data-mode="contrast"] .dw-bar-c { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--bg); }
.footer-grid { display: grid; gap: 1.5rem; padding-block: 2.5rem; }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: 1fr 2fr; } }
.footer-brand .wordmark { font-size: 1.5rem; }
.footer-brand p { color: var(--muted); margin-top: 0.5rem; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; }
@media (min-width: 60rem) { .footer-social { grid-column: 2; margin-top: -1.5rem; } }
.footer-meta { grid-column: 1 / -1; color: var(--muted); font-size: 0.875rem; display: grid; gap: 0.25rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; }

/* ---------- Menu (dialog, fixed to the right in both languages) ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(26rem, 100%); background: var(--surface); color: var(--fg); border-left: 1px solid var(--rule); padding: calc(1rem + env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1.25rem; overflow-y: auto; display: grid; align-content: start; gap: 1.5rem; box-shadow: var(--shadow); }
.menu-head { display: flex; align-items: center; justify-content: space-between; }
.menu-head h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }
.menu nav ul { list-style: none; display: grid; gap: 0.125rem; }
.menu nav a { display: flex; align-items: center; min-height: 3rem; padding: 0 0.75rem; border-radius: 0.625rem; color: var(--fg); text-decoration: none; font-size: 1.125rem; }
.menu nav a:hover { background: var(--bg-alt); color: var(--brand); }
.menu nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.menu-section { display: grid; gap: 0.75rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.menu-section h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.setting { display: grid; gap: 0.5rem; }
.setting-label { font-size: 0.875rem; color: var(--muted); }
.btn-row, .lang-choice { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.size-value { min-width: 3.5rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.swatch { width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid var(--control); }
.swatch.light { background: #f4f4f5; } .swatch.dark { background: #0b1633; } .swatch.contrast { background: #000; box-shadow: inset 0 0 0 4px #ff0; }
body.menu-open { overflow: hidden; }

/* ---------- Large text: everything stacks ---------- */
.large-text .hero .wrap, .large-text .feature, .large-text .person { grid-template-columns: minmax(0, 1fr); }
.large-text .cards, .large-text .checklist, .large-text .toc ul { grid-template-columns: minmax(0, 1fr); }
.large-text .bar-nav { display: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header, .menu, .scrim { display: none; } }
.pname { color: var(--fg); font-weight: 600; }

/* the name in running text: "insan" in the text colour, "ONE" in brand blue (never bold) */
.wm-inline { white-space: nowrap; }
.wm-inline .b { color: var(--brand); }
.hero-text .wm-inline .b, .band .wm-inline .b { color: var(--hero-accent); }
:root[data-mode="contrast"] .wm-inline .b { color: inherit; }

/* "will not do" list: a cross, not a tick */
.ticks.nots li::before { border: 0; transform: none; width: 0.75rem; height: 0.75rem; top: 0.5em; background: linear-gradient(45deg, transparent 43%, var(--muted) 43%, var(--muted) 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--muted) 43%, var(--muted) 57%, transparent 57%); }
:root[data-mode="contrast"] .ticks.nots li::before { background: linear-gradient(45deg, transparent 43%, #ff0 43%, #ff0 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #ff0 43%, #ff0 57%, transparent 57%); }

/* Brand icons: a line drawing in a circle, with a soft glow and an accent dot (brand guidelines, Icon style) */
:root { --ic-circle: #dce5fa; --ic-ring: #e8eefc; --ic-glow: #e9effc; --ic-glyph: #1f2937; --ic-dot: #1d4ed8; }
.bi { position: relative; display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: radial-gradient(circle at 50% 55%, var(--ic-glow) 0 38%, var(--ic-circle) 39%); box-shadow: inset 0 0 0 1.5px var(--ic-ring); color: var(--ic-glyph); flex: none; margin-bottom: 0.875rem; }
.bi svg { width: 50%; height: 50%; }
.bi::after { content: ""; position: absolute; top: 0.3rem; right: 0.3rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ic-dot); }
.feature-text > .bi, .section-head > .bi { margin-bottom: 1rem; }

@media (prefers-color-scheme: dark) { :root:not([data-mode]) { --ic-circle: #1a2957; --ic-ring: #33447a; --ic-glow: #1e2e5e; --ic-glyph: #eef2ff; --ic-dot: #60a5fa; } }
:root[data-mode="dark"] { --ic-circle: #1a2957; --ic-ring: #33447a; --ic-glow: #1e2e5e; --ic-glyph: #eef2ff; --ic-dot: #60a5fa; }
@media (prefers-contrast: more) { :root:not([data-mode]) { --ic-circle: #000; --ic-ring: #ff0; --ic-glow: #000; --ic-glyph: #ff0; --ic-dot: #ff0; } }
:root[data-mode="contrast"] { --ic-circle: #000; --ic-ring: #ff0; --ic-glow: #000; --ic-glyph: #ff0; --ic-dot: #ff0; }

/* Hero shapes from the brand wallpaper: rounded bars, a ring with fine circles, fine lines and nodes, kept to the edges */
.hero-deco { position: absolute; top: 0; height: 100%; width: auto; pointer-events: none; }
.hero-deco-l { left: 0; width: min(40vw, 520px); }
.hero-deco-r { right: 0; width: min(34vw, 460px); }
[dir="rtl"] .hero-deco-l { left: auto; right: 0; transform: scaleX(-1); }
[dir="rtl"] .hero-deco-r { right: auto; left: 0; transform: scaleX(-1); }
@media (max-width: 860px) { .hero-deco-r { display: none; } .hero-deco-l { width: 90vw; opacity: 0.6; } }
:root[data-mode="contrast"] .hero-deco { display: none; }
@media (prefers-contrast: more) { :root:not([data-mode]) .hero-deco { display: none; } }
@media print { .hero-deco { display: none; } }

/* Closing band: a corner of the wallpaper shapes */
.band { position: relative; overflow: hidden; }
.band .wrap { position: relative; }
.band-deco { position: absolute; top: 0; right: 0; height: 100%; width: min(40vw, 520px); pointer-events: none; }
[dir="rtl"] .band-deco { right: auto; left: 0; transform: scaleX(-1); }
@media (max-width: 860px) { .band-deco { display: none; } }
:root[data-mode="contrast"] .band-deco { display: none; }
@media (prefers-contrast: more) { :root:not([data-mode]) .band-deco { display: none; } }
@media print { .band-deco { display: none; } }

/* Contact form */
.contact-form { position: relative; max-width: 40rem; display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.375rem; }
.field label { font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--control); border-radius: 0.625rem; padding: 0.75rem 0.875rem; min-height: 3rem; width: 100%; }
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--d-bad); border-width: 2px; }
.field .hint { color: var(--muted); font-size: 0.9375rem; }
.field-error { color: var(--d-bad); font-weight: 600; font-size: 0.9375rem; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-privacy { color: var(--muted); }
.form-actions .btn { cursor: pointer; font: inherit; font-weight: 600; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { border-radius: 0.75rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); background: var(--surface); }
.form-status.ok { border-color: var(--d-ok); background: var(--d-ok-bg); color: var(--fg); }
.form-status.bad { border-color: var(--d-bad); background: var(--d-bad-bg); color: var(--fg); }
.form-status:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.cf-turnstile:empty { display: none; }
