/* Tornado FX site. Bilingual: elements with lang="he" / lang="en" show only in the active language.
   Visual world: Tel Aviv White City (Bauhaus). Plaster ground, charcoal slabs and rules, the logo's lime as the one
   colour field (the "balcony"). Display: Secular One. Text: Assistant. Both cover Hebrew and Latin. */
:root {
  --plaster: #eef0ea;
  --plaster-deep: #e3e6dc;
  --paper: #fbfbf8;
  --ink: #262626;
  --ink-soft: #3d3d3d;
  --muted: #4c4f47;
  --lime: #bec63c;
  --on-lime-muted: #3a3d12;
  --on-ink: #eceee7;
  --on-ink-muted: #b8bcb0;
  --radius: 14px;
  --max: 1200px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font-text: "Assistant", "Segoe UI", system-ui, sans-serif;
  --font-display: "Secular One", "Assistant", system-ui, sans-serif;
  color-scheme: light;
  accent-color: var(--ink);
  scrollbar-color: var(--ink-soft) var(--plaster-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 400 1.125rem/1.65 var(--font-text); caret-color: var(--ink); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* language visibility */
html[data-lang="he"] [lang="en"]:not(html),
html[data-lang="en"] [lang="he"]:not(html) { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(238, 240, 234, .95); border-bottom: 2px solid var(--ink); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(238, 240, 234, .86); backdrop-filter: saturate(1.2) blur(10px); } }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 1.3rem/1 var(--font-display); white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.nav { display: none; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 150ms var(--ease-out); }
.nav a:hover { border-bottom-color: var(--lime); }
@media (min-width: 900px) { .nav { display: flex; } }
.lang-toggle { margin-inline-start: auto; min-height: 40px; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 4px 16px; font: 700 .95rem/1 var(--font-text); cursor: pointer; transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.lang-toggle:hover { background: var(--ink); color: var(--plaster); }
@media (min-width: 900px) { .lang-toggle { margin-inline-start: 0; } }

/* hero */
.hero { position: relative; overflow: clip; padding-block: clamp(56px, 8vw, 112px) clamp(72px, 9vw, 128px); }
.hero .wrap { position: relative; z-index: 1; }
.hero-spiral { position: absolute; z-index: 0; inset-inline-end: calc(-1 * clamp(80px, 11vw, 190px)); top: clamp(24px, 4vw, 64px); width: clamp(320px, 45vw, 660px); height: auto; animation: turn 1.8s var(--ease-out) both; }
@keyframes turn { from { transform: rotate(-150deg); } to { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .hero-spiral { animation: none; } }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: 1.04; letter-spacing: -.015em; max-width: 13.5ch; }
.hero .lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); color: var(--muted); max-width: 34rem; margin: 28px 0 40px; }
.after-form { margin: 16px 0 0; max-width: 40rem; color: var(--muted); font-size: 1rem; }
.after-form a { margin-inline-start: .4em; font-weight: 700; }
@media (min-width: 760px) and (max-width: 1099px) {
  .hero-spiral { width: 36vw; inset-inline-end: -12vw; }
  .hero h1, .hero .lead { max-width: min(34rem, 62vw); }
}
@media (max-width: 759px) {
  .hero { padding-top: 60vw; }
  .hero-spiral { width: 62vw; inset-inline-end: -18vw; top: -10vw; }
  .hero h1 { max-width: none; }
}

/* the balcony: WhatsApp composer */
.composer { background: var(--lime); color: var(--ink); max-width: 680px; padding: clamp(20px, 3vw, 30px); padding-inline-end: clamp(56px, 9vw, 120px); border-radius: var(--radius); border-start-end-radius: 999px; border-end-end-radius: 999px; box-shadow: 0 2px 4px rgba(38, 38, 38, .06), 0 22px 40px -24px rgba(38, 38, 38, .45); }
.composer label { display: block; font-weight: 700; font-size: 1.08rem; margin-bottom: 10px; }
.composer textarea { display: block; width: 100%; min-height: 3.6em; resize: vertical; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); padding: 12px 16px; font: 400 1.1rem/1.5 var(--font-text); }
.composer textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; }
.composer .hint { margin: 0; flex: 1 1 16rem; font-size: .98rem; line-height: 1.5; color: var(--on-lime-muted); }
.composer button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: var(--plaster); font: 700 1.05rem/1 var(--font-text); cursor: pointer; transition: transform 150ms var(--ease-out), background-color 150ms var(--ease-out); }
.composer button:hover { background: #000; transform: translateY(-1px); }
.composer button:active { transform: translateY(0); transition-duration: 160ms; }
.composer .wa { width: 20px; height: 20px; color: var(--lime); }
@media (max-width: 559px) {
  .composer { padding-inline-end: 22px; border-start-end-radius: 56px; border-end-end-radius: var(--radius); }
  .composer button { width: 100%; justify-content: center; }
}

/* floors: each section is a storey, divided by a charcoal slab */
.floor { border-top: 2px solid var(--ink); padding-block: clamp(72px, 9vw, 128px); }
.floor h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; max-width: 18ch; margin-bottom: clamp(32px, 4vw, 56px); }
.section-lead { color: var(--muted); max-width: 42rem; margin: calc(-1 * clamp(12px, 2vw, 28px)) 0 clamp(36px, 4vw, 52px); }

/* services: the lobby directory */
.directory { list-style: none; margin: 0 -16px; padding: 0; border-top: 2px solid var(--ink); }
.directory li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px; padding: 28px 16px; border-bottom: 1px solid var(--ink); transition: background-color 160ms var(--ease-out); }
.directory li:hover { background: var(--lime); }
.directory h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.directory p { margin: 0; color: var(--muted); max-width: 54ch; }
.directory li:hover p { color: var(--ink); }
@media (max-width: 759px) { .directory li { grid-template-columns: 1fr; padding-block: 22px; } }

/* beyond automation */
.beyond { background: var(--plaster-deep); }
.scenario { margin: 0; }
.scenario figcaption { font-weight: 700; font-size: 1rem; color: var(--muted); margin-bottom: 14px; }
.bubble { margin: 0 0 32px; max-width: 36rem; background: var(--paper); padding: 18px 22px; border-radius: 20px; border-end-start-radius: 6px; font-size: clamp(1.15rem, 1.6vw, 1.3rem); box-shadow: 0 1px 2px rgba(38, 38, 38, .08), 0 14px 30px -18px rgba(38, 38, 38, .35); }
.bubble p { margin: 0; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.outcome { padding: clamp(24px, 3vw, 40px); }
.outcome h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin-bottom: 14px; }
.outcome .reply { font-size: 1.15rem; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid currentColor; }
.outcome ul { margin: 0; padding-inline-start: 1.2em; }
.outcome li { margin-bottom: 6px; }
.outcome.rule { background: var(--plaster); }
.outcome.rule .reply, .outcome.rule li { color: var(--muted); }
.outcome.rule .reply { border-color: rgba(38, 38, 38, .3); }
.outcome.agent { background: var(--ink); color: var(--on-ink); }
.outcome.agent .reply { border-color: rgba(236, 238, 231, .3); }
.outcome.agent li { color: var(--on-ink-muted); }
.outcome.agent li::marker { color: var(--lime); }
@media (max-width: 759px) { .outcomes { grid-template-columns: 1fr; } }

/* approach: one ribbon window, four panes */
.ribbon { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 2px solid var(--ink); }
.ribbon li { counter-increment: step; padding: 28px 24px 34px; border-inline-start: 1px solid var(--ink); }
.ribbon li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ribbon li::before { content: counter(step); display: block; font: 400 3rem/1 var(--font-display); margin-bottom: 22px; }
.ribbon h3 { font-size: 1.4rem; margin-bottom: 8px; }
.ribbon p { margin: 0; color: var(--muted); }
@media (max-width: 899px) {
  .ribbon { grid-template-columns: 1fr 1fr; }
  .ribbon li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .ribbon li:nth-child(n+3) { border-top: 1px solid var(--ink); }
}
@media (max-width: 559px) {
  .ribbon { grid-template-columns: 1fr; }
  .ribbon li { border-inline-start: 0; padding-inline: 0; }
  .ribbon li + li { border-top: 1px solid var(--ink); }
  .ribbon li::before { font-size: 2.4rem; margin-bottom: 14px; }
}

/* roots */
.roots-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 40px; }
.roots-text h2 { margin-bottom: 24px; grid-row: span 2; }
.roots-text p { grid-column: 2; }
.roots-text p { color: var(--muted); max-width: 60ch; }
.industries strong { color: var(--ink); margin-inline-end: .5em; }
@media (max-width: 759px) { .roots-text { grid-template-columns: 1fr; } .roots-text p { grid-column: 1; } }
.logos-title { font-size: 1.4rem; margin: clamp(40px, 5vw, 64px) 0 20px; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.logos li { background: var(--plaster); height: 120px; display: grid; place-items: center; padding: 16px; }
.logos img { width: auto; height: auto; max-height: 42px; max-width: 78%; mix-blend-mode: multiply; }
@media (max-width: 759px) { .logos { grid-template-columns: 1fr 1fr; } .logos li { height: 96px; } }

/* contact: the lime storey with a curved balcony corner */
.contact { background: var(--lime); border-start-start-radius: clamp(72px, 14vw, 220px); padding-block: clamp(72px, 9vw, 128px); }
.contact h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; max-width: 15ch; margin-bottom: 20px; }
.contact > .wrap > p { color: var(--on-lime-muted); max-width: 38rem; font-size: 1.2rem; margin-bottom: 36px; }
.contact .composer { background: var(--plaster); padding-inline-end: clamp(20px, 3vw, 30px); border-radius: var(--radius); box-shadow: 0 2px 4px rgba(38, 38, 38, .08), 0 24px 44px -26px rgba(38, 38, 38, .55); }
.contact .composer textarea { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(38, 38, 38, .25); }
.contact .composer .hint { color: var(--muted); }

/* footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: .95rem; padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-footer .brand { color: var(--on-ink); font-size: 1.15rem; }
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer .legal-line { margin: 0; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-inline-start: auto; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer .links a:hover { color: var(--lime); }
.site-footer :focus-visible { outline-color: var(--lime); }

/* legal pages (read mode) */
.legal { max-width: 74ch; margin: 0 auto; padding: clamp(48px, 7vw, 96px) 20px clamp(72px, 9vw, 120px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; margin-bottom: 16px; }
.legal h2 { font-size: 1.4rem; margin: 44px 0 12px; }
.legal .meta { color: var(--muted); font-size: 1rem; padding-bottom: 24px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.legal li { margin-bottom: 6px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 1rem; margin: 12px 0 20px; display: block; overflow-x: auto; }
.legal td, .legal th { border: 1px solid var(--ink); padding: 10px 12px; text-align: start; vertical-align: top; background: var(--paper); }
.legal th { background: var(--plaster-deep); font-weight: 700; }
