/* Layout: full-bleed bands ruled in ink, asymmetric two-column openers, and flat
   outlined blocks that echo the isometric logo. One look, light, by choice. */
:root {
  color-scheme: light;

  --paper: #f3f5f8;
  --surface: #ffffff;
  --ink: #0e1420;
  --ink-soft: #465066;
  --on-ink: #ffffff;
  --on-ink-soft: #cfd6e2;

  --sky-1: #b9daf7;
  --sky-2: #74b4f2;
  --sky-3: #4a8fd4;
  --sky-ink: #124a94;
  --mint-1: #a9efc6;
  --mint-2: #7ad3a0;
  --mint-3: #55b47d;
  --coral-1: #f8a09b;
  --coral-2: #ea7c77;
  --coral-3: #d95d58;
  --mint-ink: #0a6b43;
  --coral-ink: #a8322d;
  --inkb-1: #3a455c;
  --inkb-2: #232c40;
  --inkb-3: #0e1420;
  --scrim: rgb(14 20 32 / 0.72);

  --font-display: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --font-body: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  --rule: 1.5px solid var(--ink);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(3rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky-3); outline-offset: 3px; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.nb { white-space: nowrap; }
.latin { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: var(--rule); }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.875rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; }
.brand img { height: 2.375rem; width: auto; }
.brand-word {
  color: var(--ink);
  background: linear-gradient(90deg, var(--ink) 0%, var(--sky-3) 14%, var(--mint-3) 28%, var(--coral-3) 42%, var(--sky-3) 56%, var(--mint-3) 70%, var(--coral-3) 84%, var(--ink) 100%);
  background-size: 700% 100%;
  background-position: calc(var(--sp, 0) * 100%) 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a { text-decoration: none; font-weight: 500; padding-block: 0.375rem; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--sky-2); }

/* Type roles */
.label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.03em; }
.label::before { content: ""; width: 0.625rem; height: 0.625rem; background: var(--sky-2); border: var(--rule); }
.display { font-family: var(--font-display); font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
.lead { font-size: clamp(1.1875rem, 2.2vw, 1.375rem); line-height: 1.6; color: var(--ink-soft); max-width: 34rem; }

.btn {
  display: inline-block; padding: 0.75rem 1.375rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--on-ink); border: var(--rule);
  box-shadow: -4px 4px 0 var(--sky-2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-2px, 2px); box-shadow: -2px 2px 0 var(--sky-2); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-light { background: var(--paper); color: var(--ink); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; }
.link:hover { text-decoration-thickness: 3px; }

.iso polygon { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.cube { width: 1.375rem; flex: none; }
.cube polygon { stroke-width: 1; }

/* Opener */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: var(--band);
}
.hero-text { display: grid; gap: 1.5rem; justify-items: start; }
.hero h1 { font-size: clamp(2.625rem, 7.4vw, 5rem); }
.hl { display: inline-block; background: var(--sky-1); border: var(--rule); padding: 0.02em 0.14em 0.06em; margin-block: 0.06em; }
.hl.mint { background: var(--mint-1); }
.byline { width: 100%; border-top: var(--rule); padding-top: 1rem; font-weight: 500; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-art svg { width: 100%; }
.hero-art text { font-family: var(--font-body); font-weight: 600; font-size: 21px; fill: var(--ink); }
.hero-art .leader { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.layer { animation: float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
.hero-art .leader { animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
[data-parallax] { will-change: transform; }
@keyframes float { 50% { transform: translateY(-5px); } }

/* Sections */
.section { border-top: var(--rule); }
.section > .wrap { display: grid; gap: clamp(2rem, 4vw, 3rem); padding-block: var(--band); }
.section-head { display: grid; gap: 0.875rem; max-width: 46rem; }
.section-head h2 { font-size: clamp(2.125rem, 5.4vw, 3.5rem); }
.section-head p { font-size: 1.1875rem; color: var(--ink-soft); }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink .section-head p, .on-ink .muted { color: var(--on-ink-soft); }
.on-ink .label::before { border-color: var(--on-ink); }
.on-mint { background: var(--mint-1); }
.on-surface { background: var(--surface); }

.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 5vw, 4rem); }
.svc li { display: flex; align-items: center; gap: 0.875rem; padding-block: 1rem; border-top: var(--rule); font-size: 1.25rem; font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); }
.stat { display: grid; gap: 0.5rem; align-content: start; border-top: 1.5px solid currentColor; padding-top: 1rem; }
.stat b { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.stat:nth-child(1) b { color: var(--sky-2); }
.stat:nth-child(2) b { color: var(--mint-2); }
.stat:nth-child(3) b { color: var(--coral-2); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem clamp(1.5rem, 4vw, 3rem); }
.two-col p { font-size: 1.125rem; }

.case { display: grid; gap: 1.5rem; justify-items: start; background: var(--paper); color: var(--ink); border: var(--rule); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: -10px 10px 0 var(--sky-2); }
.case h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.case > p { font-size: 1.125rem; max-width: 46rem; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; width: 100%; }
.kpis li { display: grid; gap: 0.25rem; align-content: start; border-top: var(--rule); padding-top: 0.75rem; font-size: 0.9375rem; line-height: 1.45; }
.kpis b { font-family: var(--font-display); font-weight: 900; font-size: 2.25rem; line-height: 1; direction: ltr; text-align: right; }

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.875rem; }
.logos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--rule); background: var(--surface); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.shot { display: block; background: var(--surface); border: var(--rule); box-shadow: -6px 6px 0 var(--ink); }
.shot img { width: 100%; }
.shot.wide { grid-column: 1 / -1; overflow-x: auto; }
.shot.wide img { min-width: 40rem; }

.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portrait { background: var(--sky-2); border: var(--rule); box-shadow: -12px 12px 0 var(--mint-2); aspect-ratio: 4 / 5; overflow: hidden; max-width: 26rem; margin-inline-start: 12px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder-text { display: grid; gap: 1.25rem; justify-items: start; }
.founder-text h2 { font-size: clamp(2.25rem, 5.4vw, 3.5rem); }
.founder-text .latin { color: var(--sky-ink); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.9375rem; }
.founder-text > p { font-size: 1.1875rem; max-width: 36rem; }
.checks { display: grid; gap: 0.75rem; max-width: 38rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; }
.checks .cube { margin-top: 0.25rem; }

.integrations img { border: var(--rule); background: var(--surface); padding: clamp(0.75rem, 3vw, 2rem); width: 100%; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; background: var(--paper); color: var(--ink); border: 1.5px solid var(--on-ink); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: -10px 10px 0 var(--sky-2); margin-inline-start: 10px; }
.field { display: grid; gap: 0.375rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: var(--rule); border-radius: 0; padding: 0.75rem 0.875rem; width: 100%; }
.form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: var(--mint-ink); }
.form-status[data-state="error"] { color: var(--coral-ink); }
.profiles { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.profiles a { display: inline-flex; gap: 0.75rem; padding: 0.5rem 0.875rem; border: 1.5px solid var(--on-ink); font-family: var(--font-mono); font-weight: 500; font-size: 0.9375rem; text-decoration: none; }
.profiles a:hover { background: var(--on-ink); color: var(--ink); }

.profiles.on-paper a { border-color: var(--ink); }
.profiles.on-paper a:hover { background: var(--ink); color: var(--on-ink); }

/* Illustrations, split layouts, drifting cubes */
.art { width: 100%; }
.blend { mix-blend-mode: multiply; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.svc.one { grid-template-columns: minmax(0, 1fr); }
.section, .hero, .page-hero { position: relative; overflow: hidden; }
.deco { position: absolute; top: var(--y); inset-inline-end: var(--x); width: var(--w, 3.5rem); pointer-events: none; }
.deco svg { width: 100%; }
@media (max-width: 68rem) { .deco { display: none; } }
/* Loyalty tiles: three equal cards, each with a figure row of the same height */
.stats.light { gap: 1.5rem; padding-inline-start: 8px; }
.stats.light .stat { gap: 1rem; border: var(--rule); background: var(--paper); padding: 1.5rem; box-shadow: -8px 8px 0 var(--sky-2); }
.stats.light .stat:nth-child(2) { box-shadow: -8px 8px 0 var(--mint-2); }
.stats.light .stat:nth-child(3) { box-shadow: -8px 8px 0 var(--coral-2); }
.stats.light .figure { display: flex; align-items: flex-end; gap: 0.75rem; height: 5.5rem; }
.stats.light .figure b { font-size: 5.5rem; line-height: 0.82; color: var(--ink); }
.stats.light .figure small { font-size: 1.125rem; font-weight: 700; line-height: 1.2; padding-bottom: 0.125rem; }
.stats.light .figure img { height: 100%; width: auto; mix-blend-mode: multiply; }
.stats.light .stat > span { font-size: 1.0625rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.contact .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 26rem; }
.contact .links a.primary { grid-column: 1 / -1; }
.contact .links a.plain { justify-content: center; text-align: center; }
.on-ink .links a.primary { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.on-ink .links a.primary:hover { background: var(--sky-1); border-color: var(--sky-1); }
.links a.plain { display: inline-flex; gap: 0.5rem; padding: 0.625rem 1rem; border: 1.5px solid currentColor; font-weight: 600; text-decoration: none; }
.links a.plain:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.on-ink .links a.plain:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.en-note { border-top: var(--rule); padding-top: 1.5rem; max-width: 44rem; direction: ltr; text-align: left; color: var(--ink-soft); }

/* Portfolio viewer */
.pdf-dialog { width: min(58rem, calc(100vw - 1rem)); height: min(92vh, 64rem); max-width: none; max-height: none; padding: 0; border: var(--rule); background: var(--surface); color: var(--ink); }
.pdf-dialog[open] { display: flex; flex-direction: column; }
.pdf-dialog::backdrop { background: var(--scrim); }
.pdf-dialog header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; padding: 0.75rem 1rem; border-bottom: var(--rule); }
.pdf-dialog h2 { font-size: 1.0625rem; font-weight: 700; margin-inline-end: auto; }
.pdf-dialog .btn { padding: 0.375rem 0.875rem; box-shadow: none; }
.pdf-pages { flex: 1; overflow: auto; background: var(--inkb-2); padding: 1rem; display: grid; gap: 1rem; align-content: start; }
.pdf-page { background: var(--surface); width: 100%; }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
.pdf-note { color: var(--on-ink); padding: 2rem 1rem; text-align: center; }
.pdf-note a { color: var(--sky-1); }

/* subk.co.il mini-site */
.site-subk .label::before { background: var(--mint-2); }
.site-subk .btn { box-shadow: -4px 4px 0 var(--mint-2); }
.site-subk .btn:hover { box-shadow: -2px 2px 0 var(--mint-2); }
.site-subk .site-nav a:hover { border-bottom-color: var(--mint-2); }
.site-subk .person h1 .en { color: var(--ink-soft); }

/* Inner pages */
.page-hero .wrap { display: grid; gap: 1.25rem; justify-items: start; padding-block: clamp(2.5rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); }
.page-hero .split h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.1; }
.page-hero .split { width: 100%; }
.person .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.person h1 { font-size: clamp(3rem, 9vw, 6rem); }
.person h1 .en { display: block; text-align: right; margin-top: 1rem; font-family: var(--font-mono); font-weight: 500; font-size: clamp(0.9375rem, 2.2vw, 1.375rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky-ink); }
.person .lead { color: var(--ink); max-width: 38rem; }
.chip { display: inline-block; border: var(--rule); background: var(--surface); padding: 0.25rem 0.875rem; font-weight: 500; }

.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.125rem; }
.prose h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; margin-top: 3.5rem; padding-top: 1.5rem; border-top: var(--rule); text-wrap: balance; }
.prose h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin-top: 2.25rem; }
.prose ul { list-style: square; padding-inline-start: 1.25rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--sky-3); }
.prose a { font-weight: 600; text-underline-offset: 0.3em; }
.sol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 5vw, 4rem); }
.sol { display: grid; gap: 0.625rem; align-content: start; border-top: var(--rule); padding-block: 1.5rem; }
.sol h2 { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1.3125rem; font-weight: 700; line-height: 1.35; }
.sol .cube { margin-top: 0.2rem; }
.sol p { color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }

.site-footer { border-top: var(--rule); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { text-underline-offset: 0.3em; }

/* Moved-site notice (subk.co.il) */
.moved { min-height: 100vh; display: grid; place-content: center; gap: 1.25rem; justify-items: start; padding: var(--gutter); }
.moved h1 { font-size: clamp(2.25rem, 7vw, 4rem); }

@media (max-width: 56rem) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  .hero .wrap, .founder, .contact, .two-col, .svc, .sol-grid, .person .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .deco { display: none; }
  .masthead .wrap { flex-wrap: nowrap; padding-block: 0.625rem; }
  .brand { font-size: 1.25rem; }
  .brand img { height: 2rem; }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav .home-link { display: none; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .hero-art svg { max-width: 24rem; margin-inline: auto; }
  .portrait { max-width: 20rem; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 0.25rem 1rem; font-size: 0.9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer, .hero-art .leader { animation: none; }
  .btn { transition: none; }
}
