:root {
  --paper: #FAFAF8;
  --white: #FFFFFF;
  --ink: #12161C;
  --petrol: #0F3B45;
  --petrol-2: #16505C;
  --mist: #EDF1F2;
  --steel: #56616B;
  --line: #D9DEE1;
  --gold: #E3B04B;

  --display: "Hanken Grotesk", "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --body: "IBM Plex Sans", "IBM Plex Sans Hebrew", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { padding: 20px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  direction: ltr;
}
.wordmark .mark { width: 24px; height: 24px; flex: none; }
.header-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.header-links a { text-decoration: none; color: var(--steel); }
.header-links a:hover { color: var(--ink); }
.header-links .lang { color: var(--petrol); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 16px/1 var(--body);
  padding: 15px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--petrol); color: var(--white); }
.btn-primary:hover { background: var(--petrol-2); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 14ch;
}
.hero .lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--steel); max-width: 33em; margin: 0 0 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin: 20px 0 0; font-size: 14px; color: var(--steel); max-width: 34em; }

/* Automation log: the one memorable moment */
.log {
  background: var(--petrol);
  color: #E6EEF0;
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: 0 40px 80px -40px rgba(15, 59, 69, .6);
}
.log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.log-head strong { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--white); letter-spacing: -0.01em; }
.log-head span { font-size: 13px; color: #9FB8BE; }
.log ol { list-style: none; margin: 0; padding: 0; }
.log li {
  display: grid; grid-template-columns: 52px 14px minmax(0, 1fr); gap: 10px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 15px; line-height: 1.45;
}
.log time { font-variant-numeric: tabular-nums; color: #9FB8BE; font-size: 14px; direction: ltr; }
.log .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); align-self: center; }
.log-total {
  margin-top: 8px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 14px; color: #C9D8DB;
}
.log-total b { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .log li, .log-total { opacity: 0; animation: reveal .4s ease-out forwards; }
  .log li:nth-child(1) { animation-delay: .25s; }
  .log li:nth-child(2) { animation-delay: .55s; }
  .log li:nth-child(3) { animation-delay: .85s; }
  .log li:nth-child(4) { animation-delay: 1.15s; }
  .log li:nth-child(5) { animation-delay: 1.45s; }
  .log li:nth-child(6) { animation-delay: 1.75s; }
  .log-total { animation-delay: 2.2s; }
  @keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
section.block { padding: clamp(64px, 9vw, 112px) 0; }
section.block.tight { padding-top: 0; }
.block h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  max-width: 22ch;
}
.block .intro { color: var(--steel); max-width: 36em; margin: 0 0 48px; font-size: 18px; }

/* Capabilities: two-column ruled list */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.areas li { padding: 24px 0; border-top: 1px solid var(--line); }
.areas h3 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.areas p { margin: 0; color: var(--steel); }

/* Process: a real sequence, so it's numbered */
.process { background: var(--mist); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border-radius: 10px; padding: 28px 26px 30px; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--petrol); color: var(--petrol);
  font: 600 16px/1 var(--display);
  margin-bottom: 22px;
}
.steps h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
.steps .when { font-size: 14px; color: var(--petrol-2); font-weight: 500; margin: 0 0 12px; }
.steps p { margin: 0; color: var(--steel); }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.principles li { border-top: 2px solid var(--petrol); padding-top: 18px; }
.principles h3 { font-family: var(--display); font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.principles p { margin: 0; color: var(--steel); font-size: 16px; }

/* Who it's for */
.who-line { font-size: clamp(19px, 2vw, 23px); line-height: 1.6; max-width: 40em; margin: 0; color: var(--ink); }
.who-line span { white-space: nowrap; }
.who-line .sep { color: var(--gold); padding: 0 .35em; }

/* About */
.about { background: var(--petrol); color: #E6EEF0; }
.about .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about h2 { color: var(--white); }
.about p { margin: 0 0 16px; max-width: 36em; color: #C9D8DB; font-size: 18px; }
.about p:last-child { margin-bottom: 0; }
.about strong { color: var(--white); font-weight: 500; }

/* Contact */
.contact .panel {
  border-top: 2px solid var(--ink);
  padding-top: clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: end;
}
.contact h2 { margin-bottom: 12px; }
.contact p { margin: 0; color: var(--steel); max-width: 34em; font-size: 18px; }

footer { padding: 28px 0 40px; font-size: 14px; color: var(--steel); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--steel); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero .wrap, .about .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .contact .panel { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .principles { grid-template-columns: 1fr; }
  .header-links .hide-sm { display: none; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
  .log { padding: 22px 18px 18px; }
  .log li { grid-template-columns: 46px 12px minmax(0, 1fr); }
  .who-line span { white-space: normal; }
}

/* ---------- Hebrew / RTL ---------- */
body[dir="rtl"] { font-family: "IBM Plex Sans Hebrew", system-ui, sans-serif; }
body[dir="rtl"] .hero h1,
body[dir="rtl"] .block h2,
body[dir="rtl"] h3,
body[dir="rtl"] .log-head strong,
body[dir="rtl"] .log-total b { font-family: "IBM Plex Sans Hebrew", system-ui, sans-serif; letter-spacing: 0; }
body[dir="rtl"] .hero h1 { font-weight: 700; line-height: 1.1; max-width: 12ch; }
body[dir="rtl"] .block h2 { font-weight: 700; }

/* ---------- Video hero ---------- */
.hero.hero-video {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--petrol); color: var(--white); border-bottom: 0;
  min-height: clamp(600px, 86vh, 860px);
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9, 36, 43, .94) 0%, rgba(9, 36, 43, .82) 38%, rgba(9, 36, 43, .35) 72%, rgba(9, 36, 43, .2) 100%);
}
body[dir="rtl"] .hero-shade { background: linear-gradient(270deg, rgba(9, 36, 43, .94) 0%, rgba(9, 36, 43, .82) 38%, rgba(9, 36, 43, .35) 72%, rgba(9, 36, 43, .2) 100%); }
.hero-video .wrap { width: 100%; }
.hero-video h1 { color: var(--white); }
.hero-video .lede { color: #D3E1E4; }
.hero-video .fine { color: #A6BFC4; }
.hero-video .btn-primary { background: var(--gold); color: var(--ink); }
.hero-video .btn-primary:hover { background: #F0C266; }
.hero-video .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.hero-video .btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.hero-video .log {
  background: rgba(10, 42, 50, .62);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header.on-dark { position: absolute; inset: 0 0 auto 0; z-index: 5; background: transparent; border-bottom-color: rgba(255, 255, 255, .14); }
.site-header.on-dark .wordmark { color: var(--white); }
.site-header.on-dark .header-links a { color: #C9D8DB; }
.site-header.on-dark .header-links a:hover { color: var(--white); }
.site-header.on-dark .header-links .lang { color: var(--gold); }
.hero-video { padding-top: clamp(110px, 12vw, 150px); }

/* ---------- Who: photo strip ---------- */
.people { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.people figure { margin: 0; }
.people img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; display: block; background: var(--mist); }
.people figcaption { margin-top: 10px; font-weight: 500; font-size: 15px; }
.who-more { color: var(--steel); font-size: 18px; max-width: 40em; margin: 0; }

@media (max-width: 860px) {
  .hero-shade, body[dir="rtl"] .hero-shade { background: linear-gradient(180deg, rgba(9, 36, 43, .9) 0%, rgba(9, 36, 43, .8) 55%, rgba(9, 36, 43, .7) 100%); }
  .hero.hero-video { min-height: 0; padding-bottom: 56px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people li:last-child { grid-column: 1 / -1; }
  .people li:last-child img { aspect-ratio: 16 / 9; }
}
.people img { height: auto; }
.site-header.on-dark .mark rect { fill: var(--white); }
.site-header.on-dark .mark path { stroke: var(--petrol); }

.about-photo { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-top: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
@media (max-width: 860px) { .about-photo { max-width: 220px; margin-top: 20px; } }

/* ---------- Film hero: video in its own space, no tint ---------- */
.hero-film { position: relative; background: #0B1F24; line-height: 0; }
.hero-film video { display: block; width: 100%; height: min(80vh, 56.25vw); min-height: 220px; object-fit: cover; }
.film-caption {
  position: absolute; left: var(--gutter); bottom: 20px; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--petrol); color: var(--white);
  font: 500 14px/1.2 var(--body);
}
body[dir="rtl"] .film-caption { left: auto; right: var(--gutter); }
.film-caption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .film-caption .dot { animation: blink 1.6s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: .25; } }
}
@media (max-width: 600px) { .film-caption { bottom: 12px; font-size: 13px; padding: 7px 12px; } }

/* ---------- Trust ---------- */
.trust { background: var(--mist); }
.commitments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.commitments li { background: var(--white); border-radius: 10px; padding: 24px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; }
.commitments svg { width: 28px; height: 28px; color: var(--petrol); }
.commitments h3 { font-family: var(--display); font-size: 18px; font-weight: 600; margin: 2px 0 6px; letter-spacing: -0.01em; }
.commitments p { margin: 0; color: var(--steel); font-size: 16px; }
.toolbelt { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.toolbelt-label { margin: 0 0 14px; font-weight: 600; }
.tool-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
body[dir="rtl"] .tool-names { justify-content: flex-end; }
.tool-names li { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; font-weight: 500; font-size: 15px; }
.toolbelt-note { margin: 14px 0 0; font-size: 13px; color: var(--steel); }
@media (max-width: 960px) { .commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .commitments { grid-template-columns: 1fr; } }
