/* AVIZ vision — the existing blueprint language, set in Hebrew. */
:root {
    color-scheme: light;
    --cyan: #11cfd0;
    --ink: #22262d;
    --muted: #596167;
    --line: #e3e8e9;
    --tint: #f0fbfb;
    --width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Heebo", -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #087e80; outline-offset: 7px; border-radius: 2px; }
::selection { background: var(--cyan); color: var(--ink); }
p, h1, h2 { margin: 0; }
.container { width: min(var(--width), calc(100% - 96px)); margin-inline: auto; }
.mono { font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: .09em; direction: ltr; }
.skip-link { position: fixed; top: -80px; inset-inline-start: 24px; z-index: 20; padding: 12px 20px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: block; width: 104px; height: 42px; overflow: hidden; flex: 0 0 104px; }
.brand img { position: absolute; width: 150px; height: 150px; max-width: none; left: -23px; top: -54px; }
.header-label { font-size: 13px; color: var(--muted); }
.header-context { display: flex; align-items: center; gap: 28px; }
.language-switch { display: flex; direction: ltr; gap: 12px; align-items: center; font-size: 12px; }
.language-switch a { padding-block: 6px; }
.language-switch a[aria-current="page"] { font-weight: 700; box-shadow: 0 2px var(--cyan); }
.language-switch a:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-link { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; }
.home-link span { font-size: 22px; }
.home-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero { position: relative; isolation: isolate; padding: 90px 0 54px; background: radial-gradient(ellipse at 80% 0, rgba(17,207,208,.08), transparent 62%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .32; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(#000, transparent 82%); }
.hero::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 170px; height: 100px; border-inline-start: 3px solid var(--cyan); border-top: 3px solid var(--cyan); opacity: .7; pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.eyebrow .mono { color: var(--muted); }
[dir="rtl"] .eyebrow .mono { margin-right: auto; }
[dir="ltr"] .eyebrow .mono { margin-left: auto; }
.small-mark { width: 7px; height: 7px; background: var(--cyan); }
h1 { margin-block: 42px 40px; font-size: clamp(64px, 8.4vw, 118px); font-weight: 800; line-height: 1.12; letter-spacing: -.055em; }
.highlight { background: linear-gradient(transparent 59%, rgba(17,207,208,.64) 59%, rgba(17,207,208,.64) 91%, transparent 91%); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding-inline: .025em; }
.hero-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; padding-block: 12px 48px; }
.hero-lead { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.5; font-weight: 500; letter-spacing: -.02em; }
.hero-detail { max-width: 490px; font-size: 17px; line-height: 1.9; color: var(--muted); }
.read-link { display: inline-flex; align-items: center; gap: 28px; font-size: 14px; }
.read-link span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #a1cacc; border-radius: 50%; font-size: 20px; transition: background .2s; }
.read-link:hover span { background: var(--cyan); }
.principles-index { display: grid; grid-template-columns: repeat(5, 1fr); padding-block: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles-index a { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 14px; padding: 6px 10px; border-inline-end: 1px solid var(--line); }
.principles-index a:last-child { border: 0; }
.principles-index .mono { color: #087c7d; }
.principles-index a:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 7px; }

.principle { padding-block: 96px 106px; }
.section-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 38px; color: var(--muted); font-size: 12px; }
.section-meta::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-meta .mono { color: #087c7d; white-space: nowrap; }
.principle-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 72px; align-items: start; }
h2 { font-size: clamp(48px, 5.6vw, 80px); font-weight: 800; line-height: 1.14; letter-spacing: -.045em; }
[lang="en"] .principle h2 { font-size: clamp(46px, 4.8vw, 68px); }
.period, .cyan { color: var(--cyan); }
.prose { padding-top: 5px; }
.prose p { font-size: 18px; line-height: 1.9; color: var(--muted); }
.prose p + p { margin-top: 22px; }
.prose .standfirst { font-size: 24px; line-height: 1.6; color: var(--ink); font-weight: 500; letter-spacing: -.02em; }
.prose .margin-note { border-inline-start: 2px solid var(--cyan); padding-inline-start: 20px; font-size: 15px; }
.principle-dark { background: var(--ink); color: #fff; }
.principle-dark .section-meta { color: #c1cacc; }
.principle-dark .section-meta .mono { color: var(--cyan); }
.principle-dark .section-meta::after { background: #464c52; }
.principle-dark .prose p { color: #c7cdcf; }
.principle-dark .prose .standfirst { color: #fff; }
.craft-line { display: flex; align-items: center; gap: 22px; margin-top: 68px; border-top: 1px solid #464c52; padding-top: 28px; font-size: 14px; color: #e2e8e8; }
.craft-line i { height: 1px; flex: 1; background: linear-gradient(90deg, #464c52, var(--cyan)); position: relative; }
.craft-line i::after { content: ""; position: absolute; inset-inline-start: 0; top: -2px; width: 5px; height: 5px; background: var(--cyan); }
.adoption-gap { --amber: #ffb879; margin: 72px 0 0; padding-top: 48px; border-top: 1px solid #464c52; }
.gap-heading { display: grid; grid-template-columns: 1.12fr 1fr; align-items: end; gap: 72px; }
.gap-kicker { color: var(--cyan); }
.gap-heading h3 { margin: 16px 0 0; font-size: clamp(32px, 3.5vw, 50px); line-height: 1.18; letter-spacing: -.035em; font-weight: 700; }
.gap-heading > p { max-width: 470px; color: #c7cdcf; font-size: 17px; line-height: 1.85; }
.gap-legend { display: flex; flex-wrap: wrap; gap: 16px 32px; list-style: none; padding: 0; margin: 38px 0 28px; font-size: 14px; }
.gap-legend li { display: flex; align-items: center; gap: 10px; }
.legend-mark { display: block; flex: 0 0 9px; width: 9px; height: 9px; }
.capability-mark { background: var(--cyan); border-radius: 50%; }
.absorption-mark { background: var(--amber); }
.gap-plot { position: relative; padding-top: 28px; direction: ltr; }
.gap-axis-y, .gap-axis-x { display: block; color: #b7c2c5; font-size: 12px; line-height: 1.5; }
.gap-axis-y { position: absolute; top: 0; left: 4.8%; }
.gap-axis-x { margin-top: 2px; text-align: right; padding-right: 5.2%; }
[lang="he"] .gap-axis-y, [lang="he"] .gap-axis-x { direction: rtl; }
.gap-svg { display: block; width: 100%; height: clamp(260px, 36vw, 430px); overflow: visible; }
.gap-grid { fill: none; stroke: #fff; stroke-opacity: .08; stroke-width: 1; }
.gap-axis { fill: none; stroke: #7a858b; stroke-width: 1; }
.gap-svg path, .gap-svg circle, .gap-svg rect { vector-effect: non-scaling-stroke; }
.gap-area { fill: var(--amber); fill-opacity: .1; }
.chart-curve { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.capability-curve { stroke: var(--cyan); }
.absorption-curve { stroke: var(--amber); stroke-width: 2; }
.capability-point { fill: var(--cyan); }
.absorption-point { fill: var(--amber); }
.gap-annotation { position: absolute; top: 62%; left: 52%; color: var(--amber); font-size: clamp(16px, 2vw, 24px); font-weight: 500; white-space: nowrap; transform: translate(-50%, -50%); }
.is-pending .chart-curve { stroke-dashoffset: 1; }
.is-pending .chart-reveal { opacity: 0; }
.is-pending.is-drawn .chart-curve { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.25,.1,.25,1); }
.is-pending.is-drawn .chart-reveal { opacity: 1; transition: opacity .7s .7s; }
.adoption-gap figcaption { margin-top: 24px; font-size: 12px; line-height: 1.8; color: #b7c2c5; }
.gap-caveat { color: #e2e8e8; }
.gap-source { margin-top: 5px; overflow-wrap: anywhere; }
.gap-source a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #7a858b; }
.gap-source a:hover { color: #fff; text-decoration-color: var(--cyan); }
.adoption-gap a:focus-visible { outline-color: var(--cyan); }
.gap-bridge { display: grid; grid-template-columns: 1.12fr 1fr; gap: 72px; margin-top: 36px; padding-inline-start: 24px; border-inline-start: 2px solid var(--cyan); }
.gap-bridge h4 { margin: 0; font-size: 23px; line-height: 1.5; font-weight: 500; }
.gap-bridge p { font-size: 17px; line-height: 1.85; color: #c7cdcf; }
.principle-tint { background: var(--tint); }
.closing { border-top: 1px solid var(--line); text-align: center; padding: 100px 0 110px; background: radial-gradient(ellipse at 50% 85%, rgba(17,207,208,.09), transparent 60%); }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing h2 { font-size: clamp(64px, 8vw, 112px); margin-block: 30px; }
.closing p { font-size: 20px; line-height: 1.8; color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: 40px; margin-top: 36px; padding: 17px 26px; background: var(--cyan); border: 1px solid transparent; border-radius: 8px; font-size: 16px; font-weight: 600; transition: background .2s, border-color .2s; }
.button:hover { background: #59dddd; border-color: #087e80; }
.button span { font-size: 22px; line-height: 1; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.copyright { font-size: 11px; }

@media (min-width: 1600px) { :root { --width: 1320px; } h1 { font-size: 130px; } }
@media (max-width: 1000px) {
    .container { width: calc(100% - 64px); }
    .hero-intro { gap: 36px; }
    .principle-grid { gap: 40px; grid-template-columns: 1fr 1fr; }
    .gap-heading, .gap-bridge { gap: 40px; grid-template-columns: 1fr 1fr; }
    .principles-index a { flex-direction: column; gap: 8px; }
    h2 { font-size: 56px; }
}
@media (max-width: 720px) {
    html { scroll-padding-top: 96px; }
    .container { width: calc(100% - 40px); }
    .header-inner { height: 72px; gap: 14px; }
    .header-label { display: none; }
    .home-link { font-size: 12px; }
    .home-link { gap: 6px; }
    .header-context { gap: 0; }
    .language-switch { gap: 10px; font-size: 11px; }
    .hero { padding-block: 52px 36px; }
    .hero::after { width: 100px; height: 60px; }
    .eyebrow { font-size: 12px; }
    .eyebrow .mono { font-size: 9px; }
    h1 { font-size: clamp(52px, 9.7vw, 70px); line-height: 1.16; margin-block: 32px; letter-spacing: -.045em; }
    .hero-intro { grid-template-columns: 1fr; gap: 22px; padding-block: 0 32px; }
    .hero-lead { font-size: 23px; }
    .hero-detail { font-size: 16px; max-width: 100%; }
    .principles-index { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 16px; padding-block: 22px; }
    .principles-index a { flex-direction: row; justify-content: start; border: 0; padding: 0; gap: 8px; font-size: 12px; }
    .principles-index .mono { font-size: 10px; }
    .principle { padding-block: 56px 64px; }
    .section-meta { margin-bottom: 28px; gap: 12px; font-size: 10px; }
    .section-meta .mono { font-size: 10px; }
    .principle-grid { grid-template-columns: 1fr; gap: 30px; }
    h2 { font-size: clamp(47px, 9vw, 62px); }
    [lang="en"] .principle h2 { font-size: clamp(42px, 8.5vw, 60px); }
    .prose { padding: 0; }
    .prose p { font-size: 17px; line-height: 1.85; }
    .prose .standfirst { font-size: 22px; }
    .prose p + p { margin-top: 20px; }
    .craft-line { gap: 12px; margin-top: 36px; padding-top: 24px; font-size: 11px; }
    [lang="en"] .craft-line { flex-wrap: wrap; gap: 12px 20px; }
    [lang="en"] .craft-line i { display: none; }
    [lang="en"] .craft-line span { border-inline-start: 1px solid var(--cyan); padding-inline-start: 8px; }
    .adoption-gap { margin-top: 44px; padding-top: 32px; }
    .gap-heading, .gap-bridge { grid-template-columns: 1fr; gap: 22px; }
    .gap-heading h3 { font-size: clamp(30px, 6.5vw, 42px); }
    .gap-heading > p, .gap-bridge p { font-size: 16px; }
    .gap-legend { margin-block: 28px 22px; gap: 14px; font-size: 13px; }
    .gap-legend li { width: 100%; }
    .gap-svg { height: 280px; }
    .gap-annotation { top: 64%; }
    .gap-bridge { padding-inline-start: 18px; gap: 14px; }
    .gap-bridge h4 { font-size: 21px; }
    .closing { padding-block: 64px 72px; }
    .closing h2 { font-size: clamp(64px, 12vw, 88px); }
    .closing p { font-size: 18px; }
    .button { font-size: 15px; gap: 28px; }
    .site-footer { flex-wrap: wrap; gap: 20px; padding-block: 24px; }
    .site-footer > a:first-child { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .is-pending .chart-curve { stroke-dashoffset: 0; }
    .is-pending .chart-reveal { opacity: 1; }
}
@media print {
    .is-pending .chart-curve { stroke-dashoffset: 0; transition: none; }
    .is-pending .chart-reveal { opacity: 1; transition: none; }
}
