/* design\components.css: the CSS of the components in design\components.md, the director's: the header, the footer,
   the exit popup, the call bar, the stop icon, and each section pattern, card, form box and call-to-action block as the
   home page built them. Every page loads it (the build copies it to site\assets\css\components.css). Every page uses these
   classes as they are; a page's own CSS only places and sizes its parts, with the tokens of system.css. */

/* The frame of the page */
.wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--section-y); }
.sec--alt { background: var(--c-paper-alt); }
.sec--ink { background: var(--c-ink); color: var(--c-on-ink); }
.sec__head { max-width: 46rem; margin-bottom: var(--space-5); }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head h2 { font-size: var(--fs-h2); }
.sec__head p { margin-top: var(--space-2); color: var(--c-ink-soft); font-size: 1.125rem; text-wrap: balance; }
.sec--ink .sec__head p { color: color-mix(in srgb, var(--c-on-ink) 78%, transparent); }

/* The roofline: the site's motif, one thin gradient line rising to a peak. It spreads from its peak as it comes into view. */
.roof { display: block; height: var(--roof-h, 56px); background: var(--g-roof); clip-path: polygon(0 calc(100% - 3px), 50% 0, 100% calc(100% - 3px), 100% 100%, 50% 3px, 0 100%); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .roof { animation: roof-open linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }
}
@keyframes roof-open { from { transform: scaleX(.2); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

/* Buttons: the brand board's pills. The main one is the gradient, its words at 19 px bold so white reads on it; every
   smaller action is the outline. */
.btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; border-radius: 999px; font-family: var(--font-ui); font-weight: 700; text-decoration: none; text-align: center; transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast); }
.btn:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.btn--main { padding: .95rem 2.1rem; min-height: 60px; font-size: 1.1875rem; line-height: 1.25; color: #fff; background: var(--g-button); box-shadow: 0 10px 24px rgb(255 65 108 / .28); text-wrap: balance; }
.btn--main:hover { background: var(--g-button-hover); transform: translateY(-1px); box-shadow: 0 14px 30px rgb(255 65 108 / .34); }
.btn--line { padding: .55rem 1.25rem; font-size: .9375rem; color: var(--c-brand-text); background: var(--c-paper); border: 2px solid var(--c-brand-text); }
.btn--line:hover { color: var(--c-paper); background: var(--c-brand-text); }
.btn-note { margin-top: .85rem; font-size: var(--fs-small); color: var(--c-ink-soft); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-ui); font-weight: 700; color: var(--c-brand-text); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.sec--ink .more { color: var(--c-brand-on-ink); }

/* The stop icon */
.stop { position: absolute; z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--c-on-ink); background: rgb(41 41 48 / .78); border: 0; border-radius: 50%; cursor: pointer; }
.stop:hover { background: var(--c-ink); }
.stop:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }

/* A framed picture: footage or a photo on white */
.frame { position: relative; display: block; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); }
.frame > video, .frame > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }

/* The header */
.logo-name { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.site-header__in { box-sizing: border-box; display: flex; align-items: center; gap: var(--space-3); max-width: calc(var(--max-w) + 2 * var(--gutter)); min-height: 76px; margin-inline: auto; padding-inline: var(--gutter); }
.site-header__logo { display: inline-flex; align-items: center; gap: .6rem; flex: none; color: var(--c-ink); text-decoration: none; }
.site-header__logo img { width: 52px; height: 52px; }
.site-header__nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__item > a, .nav__group { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .7rem; font-family: var(--font-ui); font-size: .9375rem; font-weight: 600; color: var(--c-ink); background: none; border: 0; border-radius: var(--radius-s); text-decoration: none; cursor: pointer; }
.nav__item > a:hover, .nav__group:hover { color: var(--c-brand-text); }
.nav__item > a[aria-current="page"] { color: var(--c-brand-text); }
.nav__group::after { content: ""; width: .45em; height: .45em; margin-top: -.2em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.nav__sub { display: none; margin: 0; padding: .5rem; list-style: none; }
.nav__sub a { display: flex; align-items: center; min-height: 44px; padding: 0 .85rem; font-size: var(--fs-small); font-weight: 600; color: var(--c-ink); text-decoration: none; border-radius: var(--radius-s); }
.nav__sub a:hover { color: var(--c-brand-text); background: var(--c-paper-alt); }
.nav__group[aria-expanded="true"] + .nav__sub { display: block; }
.site-header__phone { display: none; flex: none; font-family: var(--font-ui); font-size: .9375rem; font-weight: 700; color: var(--c-ink); text-decoration: none; white-space: nowrap; }
.site-header__phone:hover { color: var(--c-brand-text); }
.site-header__cta { flex: none; white-space: nowrap; }
.site-header__menu { display: none; min-height: 44px; margin-left: auto; padding: 0 1rem; font-family: var(--font-ui); font-size: .9375rem; font-weight: 700; color: var(--c-ink); background: none; border: 2px solid var(--c-line); border-radius: 999px; cursor: pointer; }
@media (min-width: 1181px) {
  .nav__item--group:hover .nav__sub, .nav__item--group:focus-within .nav__sub, .nav__group[aria-expanded="true"] + .nav__sub { display: block; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-m); box-shadow: var(--shadow-m); }
}
@media (min-width: 1360px) { .site-header__phone { display: inline; } }
@media (max-width: 1180px) {
  .site-header__in { flex-wrap: wrap; }
  .site-header__menu { display: inline-flex; align-items: center; }
  .site-header__cta { display: none; }
  .site-header__nav { display: none; order: 5; flex-basis: 100%; margin: 0; padding-bottom: var(--space-2); }
  .site-header:has([data-menu-toggle][aria-expanded="true"]) .site-header__nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__item > a, .nav__group { width: 100%; }
  .nav__group { justify-content: space-between; }
}

/* The footer */
.site-footer { position: relative; margin-top: 0; padding-top: var(--space-5); color: var(--c-on-ink); background: var(--c-ink); }
.site-footer__roof { --roof-h: 44px; max-width: var(--max-w); margin: 0 auto var(--space-4); width: calc(100% - 2 * var(--gutter)); }
.site-footer__in { box-sizing: border-box; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--space-4); max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: 0 var(--gutter) var(--space-3); }
.site-footer a { color: var(--c-on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--c-brand-on-ink); }
.site-footer__logo { display: inline-flex; align-items: center; gap: .7rem; }
.site-footer__logo img { width: 64px; height: 64px; }
.site-footer__line { margin-top: var(--space-2); color: color-mix(in srgb, var(--c-on-ink) 78%, transparent); }
.site-footer__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.site-footer__badges li { padding: .3rem .8rem; font-family: var(--font-ui); font-size: .8125rem; font-weight: 700; color: var(--c-accent-on-ink); border: 1px solid color-mix(in srgb, var(--c-accent-on-ink) 45%, transparent); border-radius: 999px; }
.site-footer__title { margin-bottom: .65rem; font-family: var(--font-ui); font-size: .9375rem; font-weight: 800; }
.site-footer__col ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col li a { display: inline-flex; align-items: center; min-height: 34px; font-size: var(--fs-small); }
.site-footer__col address { display: inline-flex; align-items: center; min-height: 34px; font-size: var(--fs-small); font-style: normal; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: .5rem !important; }
.site-footer__ask { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid color-mix(in srgb, var(--c-on-ink) 16%, transparent); }
.site-footer__ask .site-footer__title { margin: 0; }
.site-footer__ask ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ask { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; font-family: var(--font-ui); font-size: .875rem; font-weight: 700; border: 1px solid color-mix(in srgb, var(--c-on-ink) 36%, transparent); border-radius: 999px; }
.site-footer .ask:hover { color: var(--c-ink); background: var(--c-on-ink); }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: .875rem; color: color-mix(in srgb, var(--c-on-ink) 72%, transparent); }
.site-footer__legal ul { display: flex; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 34px; }
@media (max-width: 900px) { .site-footer__in { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } .site-footer__contact { grid-column: 1 / -1; } }
@media (max-width: 899px) { body:has([data-kit-callbar]) .site-footer { padding-bottom: 76px; } }

/* The clients picker: the exit popup's */
.picker__set { margin: 0; padding: 0; border: 0; }
.picker__set legend { padding: 0; margin-bottom: .6rem; font-family: var(--font-ui); font-weight: 700; }
.picker__choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-bottom: var(--space-2); }
.picker__choice { position: relative; display: block; }
.picker__choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.picker__choice span { display: grid; place-items: center; min-height: 48px; font-family: var(--font-ui); font-weight: 700; border: 2px solid var(--c-line); border-radius: var(--radius-s); transition: border-color var(--dur-fast), color var(--dur-fast); }
.picker__choice input:hover + span { border-color: var(--c-brand); }
.picker__choice input:checked + span { color: var(--c-brand-text); border-color: var(--c-brand-text); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.picker .btn { width: 100%; }

/* The exit popup */
.exit { box-sizing: border-box; width: min(520px, calc(100vw - 2rem)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.exit::backdrop { background: rgb(41 41 48 / .55); }
.exit__in { position: relative; padding: var(--space-4); }
.exit__roof { --roof-h: 32px; margin-bottom: var(--space-3); }
.exit__title { font-size: 1.625rem; }
.exit__line { margin: .6rem 0 var(--space-3); color: var(--c-ink-soft); }
.exit__close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; font-size: 1.5rem; line-height: 1; color: var(--c-ink); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.exit__close:hover { background: var(--c-paper-alt); }
html[data-kit-modal] { overflow: hidden; }

/* The call bar on the phone */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: auto 1fr; gap: .5rem; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--c-paper); border-top: 1px solid var(--c-line); box-shadow: 0 -6px 20px rgb(41 41 48 / .08); transform: translateY(110%); transition: transform .3s var(--ease-out); }
.callbar[data-kit-on] { transform: none; }
.callbar a { display: grid; place-items: center; min-height: 48px; padding: 0 .9rem; font-family: var(--font-ui); font-size: .875rem; font-weight: 700; text-align: center; text-decoration: none; border-radius: 999px; }
.callbar__call { color: var(--c-brand-text); border: 2px solid var(--c-brand-text); }
.callbar__cta { color: var(--c-paper); background: var(--c-ink); }
@media (min-width: 900px) { .callbar { display: none; } }

/* The FAQ */
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); min-height: 44px; padding: 1.15rem 0; font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .6em; height: .6em; margin-right: .3em; border-right: 2px solid var(--c-brand-text); border-bottom: 2px solid var(--c-brand-text); transform: rotate(45deg); transition: transform var(--dur-fast); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 1.25rem; color: var(--c-ink-soft); }

/* Post cards (home#blog), the FAQ part (home#faq) and the close band (home#close): moved here unchanged from home.css at
   Part 2's start, so every page shares them. A Part 2 page changes them only by a modifier class of its own. */
.blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.post-card a { display: block; color: var(--c-ink); text-decoration: none; }
.post-card__pic { aspect-ratio: 4 / 3; }
.post-card__pic img { transition: transform var(--dur-med) var(--ease-out); }
.post-card a:hover .post-card__pic img { transform: scale(1.03); }
.post-card h3 { margin-top: var(--space-2); font-size: var(--fs-h3); }
.post-card .more { min-height: 40px; }
.blog__all { margin-top: var(--space-3); }
@media (max-width: 860px) { .blog__grid { grid-template-columns: minmax(0, 1fr); } }

.faq-part__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-part h2 { font-size: var(--fs-h2); }
@media (max-width: 860px) { .faq-part__grid { grid-template-columns: minmax(0, 1fr); } }

.close { position: relative; display: grid; align-items: end; min-height: clamp(600px, 52vw, 720px); overflow: hidden; color: var(--c-on-ink); background: var(--c-ink); }
.close__pic { position: absolute; inset: 0; }
.close__pic video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 12%; }
.close__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(30 30 36 / .92) 0%, rgb(30 30 36 / .84) 34%, rgb(30 30 36 / 0) 62%); }
.close__stop { top: 14px; right: 14px; }
.close__words { position: relative; z-index: 2; padding-block: var(--space-5); text-align: center; }
.close__words h2 { max-width: 44rem; margin-inline: auto; font-size: var(--fs-h2); }
.close__words p { margin: .75rem 0 var(--space-3); font-size: 1.1875rem; }
.close__le { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 0 0 var(--space-2) !important; font-size: 1rem !important; }
.close__le img { width: 56px; height: 56px; object-fit: cover; object-position: 50% 12%; border-radius: 50%; border: 2px solid var(--c-on-ink); }
.close__alt { display: flex; justify-content: center; margin-top: .6rem; color: var(--c-on-ink); }
.close .btn--main { min-width: min(320px, 100%); }
@media (max-width: 900px) {
  .close { min-height: 720px; }
  .close__pic { bottom: auto; height: 400px; overflow: hidden; }
  .close__pic::after { background: linear-gradient(to top, var(--c-ink) 0%, rgb(41 41 48 / 0) 48%); }
}

/* Part 2: the grounds (Tomer's design note of 19 Nov). Every part has its own ground, never its neighbor's. The tints are
   bands under framed pictures, scenes and forms; a scene standing on one also carries .ground, so no tint is ever a
   plain background for a scene alone. */
.sec--tint { background-color: var(--c-brand-tint); }
.sec--warm { background-color: var(--c-accent-tint); }
/* The designed ground's motif: a huge faint roofline (two nested gables in the roof's gradient) drawn as the section's own
   background, so it never makes a stacking context (How It Works' thread runs over it). With data-react="ground" on the
   section, react.js slides it slower than the page and nudges it toward the pointer's side. */
.ground { background-image: url("../img/ground-roof.svg"); background-repeat: no-repeat; background-size: max(1100px, 116%) auto;
  background-position: calc(50% + var(--rg-x, 0px)) calc(var(--ground-top, 72px) + var(--rg-y, 0px)); }
.sec--ink.ground { background-image: linear-gradient(rgb(41 41 48 / .5), rgb(41 41 48 / .5)), url("../img/ground-roof.svg"); background-size: 100% 100%, max(1100px, 116%) auto;
  background-position: 0 0, calc(50% + var(--rg-x, 0px)) calc(var(--ground-top, 72px) + var(--rg-y, 0px)); }
/* Part 2: the reactive layer (Tomer's design note of 19 Nov; site\assets\js\react.js). The page answers the mouse and
   the scroll; nothing follows the pointer, and the pointer stays the browser's own. react.js sets the variables and marks
   <html data-react-on>; without it (reduced motion, no script) every piece rests where it is drawn. */
.frame__pic { position: absolute; inset: -1px; overflow: hidden; }
.frame__pic > img, .frame__pic > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
html[data-react-on] [data-react~="drift"] { scale: 1.08; translate: var(--rd-x, 0px) var(--rd-y, 0px); will-change: translate; }
html[data-react-on] [data-react~="float"] { translate: var(--rf-x, 0px) var(--rf-y, 0px); }
[data-react~="tilt"] { transform: perspective(1100px) rotateX(var(--rt-x, 0deg)) rotateY(var(--rt-y, 0deg)) translateY(calc(var(--rt-on, 0) * -6px));
  box-shadow: 0 calc(var(--rt-on, 0) * 22px) calc(var(--rt-on, 0) * 48px) rgb(41 41 48 / calc(var(--rt-on, 0) * .18)); }
html[data-react-on] .btn--main:active { transform: translateY(1px) scale(.985); }
@media (prefers-reduced-motion: reduce) {
  [data-react~="tilt"] { transform: none; box-shadow: none; }
}

/* The thank-you page */
.thanks { box-sizing: border-box; max-width: calc(760px + 2 * var(--gutter)); margin-inline: auto; padding: var(--section-y) var(--gutter); }
.thanks__headline { font-size: var(--fs-h1); }
.thanks__body { margin-top: var(--space-3); font-size: 1.1875rem; color: var(--c-ink-soft); }
.thanks__next { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.thanks__next a { font-family: var(--font-ui); font-weight: 700; }
