/* =====================================================================
   Alma Labs — styles (v3: clean)
   White page, navy-black ink, one accent: deep midnight blue (after
   nova.nexus), used as text. One navy panel. Hairlines instead of shadows.
   ===================================================================== */

@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/google-sans-400-700-normal-latin.woff2") format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/google-sans-400-700-normal-hebrew.woff2") format("woff2");
  unicode-range: U+307-308, U+590-5FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Google Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/google-sans-400-700-italic-latin.woff2") format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Google Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/google-sans-400-700-italic-hebrew.woff2") format("woff2");
  unicode-range: U+307-308, U+590-5FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  --bg: #ffffff;
  --panel: #e6eef7;          /* pale blue panel for The Insight */
  --cream: #f6f3ea;
  --ink: #0f1f2d;            /* navy-black */
  --ink-2: #3f4a55;          /* body copy: a step darker for readability */
  --ink-3: #6f7b87;          /* hints, small labels */
  --unlit: #cfd5db;
  --line: #e2e6ea;
  --green: #1f4f80;          /* accent: deep steel blue (variable name kept) */
  --green-deep: #173c62;
  --font: "Google Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Google Sans Code", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(5rem, 10vw, 9.5rem);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(31, 79, 128, .16); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100; padding: .5rem .9rem; background: var(--ink); color: #fff; }
.skip:focus { top: 1rem; }

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.section { padding: var(--section) 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 8rem); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split .sticky { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
.rule { border-top: 1px solid var(--line); padding-top: 2.5rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 1.75rem; } .split .sticky { position: static; } }

/* Type */
.green { color: var(--green); }
.label { font-family: var(--mono); font-size: 1rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 900px) { .label { font-size: .9375rem; } }
.label--green { color: var(--green); }
.label--muted { color: var(--ink-3); }
.split .label, .partner__copy > .label, .manifesto .label { display: block; margin-bottom: 1.5rem; }
.h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.lead { font-size: clamp(1.1875rem, 1.4vw, 1.375rem); line-height: 1.5; color: var(--ink); }
.prose > * + * { margin-top: 1.25rem; }
.prose p { color: var(--ink-2); max-width: 60ch; }
.prose .lead { color: var(--ink); max-width: 44ch; }
.hint { font-size: 1rem; color: var(--ink-3); }

/* Buttons + links */
.btn { display: inline-flex; align-items: center; gap: .55rem; height: 46px; padding: 0 1.15rem; border-radius: 8px; background: var(--green); color: #fff; font-weight: 500; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.btn--sm { height: 38px; padding: 0 .9rem; font-size: .875rem; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn__arrow { transition: transform 200ms var(--ease); flex: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--green-deep); } .btn:hover .btn__arrow { transform: translateX(3px); } }
html[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
.link { display: inline-block; padding: .3rem 0; color: var(--green); font-weight: 500; font-size: .95rem; border-bottom: 1px solid transparent; transition: border-color 160ms; }
.link:hover { border-color: currentColor; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); transition: background-color 200ms var(--ease), border-color 200ms var(--ease); border-bottom: 1px solid transparent; background: rgba(255, 255, 255, 0); }
.nav.is-scrolled { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: var(--line); }
/* Touch devices: a blurred bar over a moving video stalls Safari; use a solid bar instead. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) { .nav.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .97); } }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav__logo img { width: 112px; height: auto; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: color 160ms; }
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 1.25rem; }
.lang { display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.lang__btn { color: var(--ink-3); transition: color 160ms; padding: .5rem .35rem; min-height: 36px; }
.lang__btn:hover, .lang__btn[aria-pressed="true"] { color: var(--ink); }
.lang__sep { color: var(--line); }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; margin-inline-end: -8px; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform 240ms var(--ease), top 240ms var(--ease); }
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: -1; background: #fff; padding-top: calc(var(--nav-h) + 1.5rem); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 500; letter-spacing: -.03em; padding: .7rem 0; border-bottom: 1px solid var(--line); }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: #fff; }
@media (max-width: 900px) { .nav__links, .nav__cta { display: none; } .nav__burger { display: block; } }

/* Hero */
.hero { padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 7rem)); }
.hero__title { font-size: clamp(3rem, 9.4vw, 9.5rem); font-weight: 500; line-height: .95; letter-spacing: -.045em; }
.hero__title .line { display: block; overflow: hidden; padding: .04em 0 .08em; margin: -.04em 0 -.08em; }
/* Glow sweeps: text painted through a moving gradient (background-clip: text).
   main.js sets the gradient and animates its position: on the hero headline at
   load (left to right, back, then clean) and on the big "Alma." as it scrolls in. */
.sweep, .sweep * { color: transparent !important; }
.sweep { background-size: 320% 100%; background-position: 100% 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; }
.brand__mark.sweep .green { color: var(--green) !important; }
.hero__title .line__inner { display: block; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__rule { width: 56px; height: 1px; background: var(--green); margin: clamp(1.75rem, 3.2vw, 2.75rem) auto 0; transform-origin: 50% 50%; }
.hero__lead { margin-top: clamp(1.75rem, 3.2vw, 2.75rem); color: var(--ink-2); font-size: clamp(1.125rem, 1.35vw, 1.3125rem); line-height: 1.55; max-width: 62ch; }
.hero__lead p + p { margin-top: .75rem; }
.hero__cta { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.75rem; }
.hero__stage { margin-top: clamp(3rem, 6vw, 5rem); perspective: 1800px; }
html.static-hero .hero__stage { perspective: none; }
.hero__stage--bleed { width: 100%; }
.hero__stage--bleed .media--video { width: 100%; border-radius: 0; border-color: transparent; max-height: 84vh; }
html:not(.js) .hero__stage--bleed .media--video, html.reduce .hero__stage--bleed .media--video, html.static-hero .hero__stage--bleed .media--video { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; border-radius: 14px; border-color: var(--line); }
.media { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #e9edf1; }
.media--video { aspect-ratio: 16 / 8.5; transform-origin: 50% 0; }
.media--video video { width: 100%; height: 100%; object-fit: cover; }
.caption { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 0; }
.hero__caption { margin-top: 0; }
@media (max-width: 900px) {
  .hero__cta { flex-direction: column; gap: .75rem; }
  .media--video { aspect-ratio: 4 / 3; }
  .caption { flex-direction: column; gap: .35rem; }
}

/* Manifesto */
.statement { font-size: clamp(2.125rem, 5.4vw, 5.25rem); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; max-width: 24ch; text-wrap: balance; }
.statement[lang="he"] { max-width: 30ch; }
.statement .w { display: inline-block; color: var(--ink); }
.statement em { font-style: normal; }
.manifesto .rule { margin-top: clamp(3rem, 6vw, 5rem); }
/* Alma. on its own: the brand at display size, centered, swept by the glow as it scrolls in */
.brand { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem); text-align: center; }
.brand__mark { display: inline-block; font-size: clamp(5rem, 15vw, 13rem); font-weight: 500; letter-spacing: -.05em; line-height: .95; color: var(--ink); margin: 0; }
.manifesto .lead { max-width: 46ch; color: var(--ink); font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.4; letter-spacing: -.015em; }

/* Audience */
.audience { padding-top: 0; }
.audience .split { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 4rem); }

/* Insight (the one panel: pale blue, navy text) */
.insight { background: var(--panel); color: var(--ink); }
.insight .label--green { color: var(--green); }
.insight .green { color: var(--green); }
.insight .h2 { color: var(--ink); }
.insight__text p { font-size: clamp(1.375rem, 2vw, 1.9rem); line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.insight__text p + p { margin-top: 1.75rem; }
.insight .w { display: inline-block; }
.insight__mark { position: relative; height: 104px; margin-top: 2rem; }
.insight__mark svg { position: absolute; top: 0; height: 100%; overflow: visible; }

/* Values: one row per value, each drawing the size of a spread, sketched by
   a pencil when it scrolls into view (js/thread.js). Text and drawing swap
   sides row by row; the drawing always sits flush with the outer edge. */
/* The heading runs the full width of the container on one line (sized by
   fitWide() in main.js) and colors in word by word as it scrolls. */
.h2--wide { max-width: none; text-wrap: initial; }
.values__list { display: block; margin-top: clamp(2rem, 4vw, 3.5rem); }
.values__list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.values__list li .value__text { order: -1; }
.values__list li:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.values__list li:nth-child(even) .value__text { order: 0; }
.value__art { position: relative; width: min(100%, calc(74vh * 300 / 230)); aspect-ratio: 300 / 230; margin: 0; justify-self: end; }
.values__list li:nth-child(even) .value__art { justify-self: start; }
.value__art img { display: block; width: 100%; height: auto; }
.value__art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.values__list h3 { font-size: clamp(1.75rem, 2.9vw, 2.625rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 1.1rem; }
.values__list p { color: var(--ink-2); max-width: 30ch; font-size: clamp(1.1875rem, 1.45vw, 1.375rem); line-height: 1.5; }
@media (max-width: 900px) {
  .values__list li, .values__list li:nth-child(even) { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.25rem 0; align-items: start; }
  .values__list li .value__text, .values__list li:nth-child(even) .value__text { order: 0; }
  .value__art, .values__list li:nth-child(even) .value__art { width: 100%; justify-self: stretch; }
  .values__list h3 { font-size: 1.75rem; }
  .values__list p { font-size: 1.125rem; max-width: none; }
}

/* Platform */
.platform { padding-top: 0; }
.platform .split .lead { color: var(--ink-2); max-width: 58ch; padding-top: .35rem; }
.features { margin-top: clamp(3.5rem, 7vw, 6rem); }
.features__head { display: block; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.features__list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 6vw, 8rem); padding: clamp(1.5rem, 2.6vw, 2.25rem) 0; border-bottom: 1px solid var(--line); }
.features__title { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.features__list h3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; color: var(--ink); }
/* Title fills with the accent from the start edge as the row rises past the reading line (driven by JS). */
html.js:not(.reduce) .features__list h3 {
  display: inline-block;
  background-image: linear-gradient(90deg, var(--green) 0 50%, var(--ink) 50% 100%);
  background-size: 200% 100%; background-position: 100% 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em; margin-bottom: -.06em;
}
html.js:not(.reduce)[dir="rtl"] .features__list h3 { background-image: linear-gradient(-90deg, var(--green) 0 50%, var(--ink) 50% 100%); background-position: 0 0; }
.features__list p { color: var(--ink-2); max-width: 52ch; padding-top: .35rem; font-size: clamp(1.125rem, 1.3vw, 1.3125rem); line-height: 1.55; }
@media (max-width: 900px) { .features__list li { grid-template-columns: 1fr; gap: .75rem; } }

/* Contact */
.partner__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.partner__copy .h2 { margin-bottom: 1.5rem; }
.timeline { margin-top: clamp(2.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.timeline li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.timeline .label { display: block; margin-bottom: .6rem; }
.timeline h4 { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: .35rem; }
.timeline p { color: var(--ink-2); font-size: 1.0625rem; }
.form { border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.5rem, 2.6vw, 2.5rem); }
html.has-thread .form { border-color: #eef1f4; } /* the thread draws the frame */
.form__title { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 1.5rem; }
.field + .field { margin-top: 1.25rem; }
.field label { display: block; font-family: var(--mono); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .3rem; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .55rem 0; outline: none; resize: vertical; transition: border-color 160ms; }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.form__note { font-size: .975rem; color: var(--ink-3); }
.form__status { margin-top: .9rem; font-size: .9375rem; min-height: 1.5em; }
.form__status.is-error { color: #b3261e; }
.form__status.is-success { color: var(--green); }
.form.is-sent .field, .form.is-sent .form__foot { display: none; }
@media (max-width: 900px) { .partner__grid { grid-template-columns: 1fr; } .timeline { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer__brand img { width: 124px; height: auto; }
.footer__brand p { color: var(--ink-2); max-width: 34ch; margin-top: 1.25rem; font-size: 1rem; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer__col .label { color: var(--ink-3); margin-bottom: .4rem; }
.footer__col a:not(.link) { color: var(--ink-2); font-size: 1rem; transition: color 160ms; padding: .2rem 0; }
.footer__col a:not(.link):hover { color: var(--ink); }
.footer__text { color: var(--ink-2); font-size: 1rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0 1.75rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-3); }
@media (max-width: 1100px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* The thread (one hand-drawn line down the page, drawn by js/thread.js) */
.thread { position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none; overflow: visible; }
html.has-thread .values__list img { visibility: hidden; }
/* Finale: a framed "painting" of the last two illustrations, signed bottom right. */
.finale { padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem); }
.finale__word { text-align: center; margin-bottom: 1.75rem; }
.painting { position: relative; width: min(100%, 1120px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.75rem, 4vw, 3.5rem); align-items: end; }
html:not(.has-thread) .painting { border: 1px solid var(--line); border-radius: 6px; }
.painting__art { position: relative; margin: 0; aspect-ratio: 300 / 230; }
.painting__art img { display: block; width: 100%; height: auto; }
.painting__art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.painting__sign { grid-column: 1 / -1; justify-self: end; width: min(260px, 40%); aspect-ratio: 400 / 114; margin-top: 1rem; }
html[dir="rtl"] .painting__sign { justify-self: start; }
html.has-thread .painting__art img { visibility: hidden; }
@media (max-width: 900px) {
  .painting { grid-template-columns: 1fr; gap: 2rem; padding: 1.75rem 1.25rem 1.5rem; }
  .painting__sign { width: min(200px, 55%); }
}

/* RTL */
html[dir="rtl"] .hero__title { letter-spacing: -.02em; line-height: 1.05; }
/* The footer support column is Hebrew in both modes; it carries its own dir. */
html[dir="rtl"] .label, [lang="he"] .label { letter-spacing: 0; }
/* Google Sans Code carries no Hebrew glyphs — fall back to the body face and
   drop the tracking that only reads well on uppercase Latin. */
html[dir="rtl"] :is(.label, .field label) { font-family: var(--font); letter-spacing: 0; text-transform: none; }
html[dir="rtl"] .link span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
.statement[lang="he"] { font-size: clamp(1.75rem, 3.6vw, 3.5rem); line-height: 1.15; max-width: 34ch; }

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