/* design\components.css: the CSS of the components in design\components.md, the director's: the header, the footer,
   the exit popup, 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. A page's own CSS only places and sizes its parts, with the tokens of system.css. */

*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: clip; }
::selection { background: var(--c-brand-light); color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-head { display: grid; gap: var(--space-3); max-width: 760px; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: var(--fs-h2); }
.lead { font-size: 20px; line-height: 1.55; color: var(--c-ink-soft); max-width: 62ch; }

/* An inset navy panel (the moz way): a part held inside a rounded navy block on the white page. */
.panel-navy { position: relative; isolation: isolate; background: var(--c-ink); color: var(--c-on-ink); border-radius: var(--radius-l); padding: clamp(28px, 4.4vw, 64px); overflow: hidden; }
.panel-navy .lead, .panel-navy p { color: var(--c-ink-soft-on-ink); }
.panel-navy h2, .panel-navy h3 { color: var(--c-on-ink); }
.panel-navy [data-scene] p { color: inherit; }
.band-pale { background: var(--c-paper-alt); }

/* The petal ring: the logo's layered petals as thin lines, faint, in a navy ground's corner. */
.petal-ring { position: absolute; z-index: -1; pointer-events: none; width: 560px; height: 560px; fill: none; stroke: color-mix(in srgb, var(--c-accent) 26%, transparent); stroke-width: 1; }

/* A picture's frame: the petal corners. A clip or a photo inside reaches 1 px past it (kit.md, "Video"). */
.frame { position: relative; overflow: hidden; border-radius: var(--petal); background: var(--c-ink-2); isolation: isolate; }
.frame > video, .frame > img, .frame > picture > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; display: block; }
.frame--s { border-radius: var(--petal-s); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 28px; border-radius: 18px 5px 18px 5px; font-family: var(--font-ui); font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; border: 0; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast); }
.btn--gold { background: var(--c-accent); color: var(--c-ink); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--c-accent) 90%, var(--c-ink)); }
.btn--gold:hover { background: color-mix(in srgb, var(--c-accent) 88%, white); transform: translateY(-1px); box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--c-accent) 90%, var(--c-ink)); }
.btn--gold:active { transform: translateY(0); }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 14px 4px 14px 4px; }
.btn--ghost { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--c-brand); color: var(--c-brand-text); }
.btn__arrow { flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.cta-note { font-size: var(--fs-small); color: var(--c-ink-soft); }
.panel-navy .cta-note, .on-ink .cta-note { color: var(--c-ink-soft-on-ink); }
.cta-block { display: grid; justify-items: start; gap: 10px; }
.cta-block--center { justify-items: center; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--c-brand-text); text-decoration: none; }
.link-arrow::after { content: ""; width: 16px; height: 2px; background: currentColor; transition: width var(--dur-fast) var(--ease-out); }
.link-arrow:hover::after { width: 24px; }

/* ---------- the picker ---------- */
.picker { display: grid; gap: 14px; padding: 22px; background: var(--c-paper); color: var(--c-ink); border-radius: var(--petal-s); box-shadow: var(--shadow-l); max-width: 520px; }
.picker__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker__legend { padding: 0; margin-bottom: 12px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--c-ink); }
/* the choices rise like a growth chart: each one a step taller than the last */
.picker__choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; }
.picker__choice { position: relative; --step: 0; }
.picker__choice:nth-child(2) { --step: 1; }
.picker__choice:nth-child(3) { --step: 2; }
.picker__choice:nth-child(4) { --step: 3; }
.picker__choice:nth-child(5) { --step: 4; }
.picker__choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.picker__choice span { display: grid; place-items: end center; height: calc(var(--pick-h, 40px) + var(--step) * var(--pick-rise, 10px)); padding-bottom: 8px; border-radius: 16px 4px 4px 4px; border: 1.5px solid transparent; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1; color: var(--c-brand-dark); background: var(--c-brand-light); transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast); pointer-events: none; }
.picker__choice:hover span { border-color: var(--c-brand); }
.picker__choice input:checked + span { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.picker__go { width: 100%; }
.picker .cta-note { text-align: center; }
.panel-navy .picker .cta-note, .on-ink .picker .cta-note { color: var(--c-ink-soft); }
.picker--plain { box-shadow: none; padding: 0; max-width: none; }

/* ---------- the header ---------- */
.site-header { position: relative; z-index: 30; background: var(--c-ink); color: var(--c-on-ink); }
.site-header__in { display: flex; align-items: center; gap: var(--space-5); min-height: 88px; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: 10px var(--gutter); }
.site-header__logo { display: block; flex: none; }
.logo-img { display: block; width: auto; }
.logo-img--header { height: 64px; }
.site-header__nav { display: flex; align-items: center; gap: var(--space-5); margin-left: auto; }
.nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__list a { position: relative; color: var(--c-on-ink); text-decoration: none; font-weight: 600; font-size: 16px; padding-block: 8px; opacity: 0.88; }
.nav__list a:hover, .nav__list a[aria-current="page"] { opacity: 1; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-med) var(--ease-out); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[data-planned] { opacity: 0.88; }
.site-header__menu { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--c-line-on-ink); border-radius: 12px 4px 12px 4px; background: transparent; color: var(--c-on-ink); font: 600 16px var(--font-ui); cursor: pointer; }
.site-header__bars { width: 18px; height: 12px; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
@media (max-width: 960px) {
  .site-header__in { min-height: 76px; gap: var(--space-3); }
  .logo-img--header { height: 54px; }
  .site-header__menu { display: inline-flex; }
  .site-header__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--space-4); padding: var(--space-4) var(--gutter) var(--space-5); background: var(--c-ink); border-top: 1px solid var(--c-line-on-ink); box-shadow: var(--shadow-l); }
  .site-header[data-open] .site-header__nav { display: flex; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; padding: 12px 0; font-size: 19px; }
  .site-header__cta { align-self: start; }
}

/* ---------- the stop icon ---------- */
.stop, [data-kit-tabs-stop] { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--c-ink) 62%, transparent); color: var(--c-on-ink); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background var(--dur-fast); }
.stop:hover, [data-kit-tabs-stop]:hover { background: var(--c-ink); }
.stop--light { background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-s); }
.stop--light:hover { background: var(--c-brand-light); }
[data-kit-tabs-stop] .stop__play { display: none; }
[data-kit-tabs-stop][aria-pressed="true"] .stop__play { display: inline; }
[data-kit-tabs-stop][aria-pressed="true"] .stop__pause { display: none; }

/* ---------- cards ---------- */
.card { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--petal-s); box-shadow: var(--shadow-s); padding: var(--space-4); }
/* A booking card over a picture: the job, when, and what it is worth (gold: money coming in). */
.booking { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: var(--c-paper); color: var(--c-ink); border-radius: 16px 5px 16px 5px; box-shadow: var(--shadow-l); min-width: 0; }
.booking__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px 4px 12px 4px; background: var(--c-brand-light); color: var(--c-brand); }
.booking__text { display: grid; min-width: 0; }
.booking__text b { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.25; }
.booking__text small { font-size: 13.5px; color: var(--c-ink-soft); line-height: 1.35; }
.booking__value { margin-left: auto; padding-left: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--c-accent-text); white-space: nowrap; }

/* ---------- the FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--petal-s); transition: box-shadow var(--dur-fast); }
.faq details[open] { box-shadow: var(--shadow-m); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2.5px solid var(--c-brand); border-bottom: 2.5px solid var(--c-brand); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--dur-med) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details > div { padding: 0 24px 22px; color: var(--c-ink-soft); max-width: 70ch; }

/* ---------- the footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-ink-soft-on-ink); margin-top: var(--section-y); }
.site-footer__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-5); max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: var(--space-6) var(--gutter) var(--space-5); }
.site-footer__brand { display: grid; justify-items: start; gap: var(--space-3); align-content: start; }
.logo-img--footer { height: 92px; }
.site-footer__line { max-width: 34ch; font-size: 16px; }
.site-footer__title { margin-bottom: 12px; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-on-ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--c-ink-soft-on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--c-on-ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .btn--gold, .site-footer .btn--gold:hover { color: var(--c-ink); text-decoration: none; }
.site-footer address { font-style: normal; }
.site-footer__contact { display: grid; gap: 8px; align-content: start; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: var(--space-4) var(--gutter) var(--space-5); border-top: 1px solid var(--c-line-on-ink); font-size: 14.5px; }
.site-footer__legal ul { display: flex; gap: 20px; }
@media (max-width: 860px) { .site-footer__in { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- the exit popup ---------- */
.exit { width: min(860px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--c-ink); overflow: visible; }
.exit:focus, .exit:focus-visible { outline: none; }
.exit::backdrop { background: color-mix(in srgb, var(--c-ink) 62%, transparent); backdrop-filter: blur(3px); }
.exit__in { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; background: var(--c-paper); border-radius: var(--petal); overflow: hidden; box-shadow: var(--shadow-l); opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.exit[data-kit-on] .exit__in { opacity: 1; transform: none; }
.exit__side { position: relative; display: grid; place-items: center; background: var(--c-ink); min-height: 100%; overflow: hidden; }
.exit__ring { position: absolute; width: 130%; fill: none; stroke: color-mix(in srgb, var(--c-accent) 34%, transparent); stroke-width: 0.7; }
.exit__mark { position: relative; width: 46%; height: auto; }
.exit__body { display: grid; gap: var(--space-3); padding: clamp(28px, 4vw, 48px); }
.exit__title { font-size: clamp(28px, 3vw, 36px); }
.exit__line { color: var(--c-ink-soft); }
.exit__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-paper-alt); color: var(--c-ink); cursor: pointer; }
.exit__close:hover { background: var(--c-brand-light); }
html[data-kit-modal] { overflow: hidden; }
@media (max-width: 700px) { .exit__in { grid-template-columns: 1fr; } .exit__side { min-height: 120px; } .exit__mark { width: 84px; } }

/* ---------- the thank-you page, the 404 and the legal pages ---------- */
.thanks { max-width: calc(760px + 2 * var(--gutter)); margin-inline: auto; padding: var(--section-y) var(--gutter); display: grid; gap: var(--space-4); }
.thanks__headline { font-size: var(--fs-h1); }
.thanks__body { font-size: 20px; color: var(--c-ink-soft); }
.thanks__next { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.thanks__next li:first-child a { display: inline-flex; align-items: center; min-height: 56px; padding: 14px 28px; border-radius: 18px 5px 18px 5px; background: var(--c-accent); color: var(--c-ink); font-weight: 700; text-decoration: none; }
.thanks__next li + li a { display: inline-flex; align-items: center; min-height: 56px; font-weight: 700; }
.not-found h1, .legal h1 { font-size: var(--fs-h1); }

/* ---------- the pages of Part 2: grounds and reactions (Tomer's design notes, 19 Nov) ----------
   Each part of an inner page stands on its own ground, never the same as its neighbor's: white, the blue-white band,
   the pale blue band, the azure band, the navy band, or footage. The reactions are react.js's (assets/js/react.js),
   which only the inner pages load; none of these attributes or classes is on the home page. */
.ground-pale { background: var(--c-brand-light); }
.ground-alt { background: var(--c-paper-alt); }
.ground-ink { background: var(--c-ink); color: var(--c-on-ink); }
.ground-ink h2, .ground-ink h3 { color: var(--c-on-ink); }
.ground-ink .lead, .ground-ink p { color: var(--c-ink-soft-on-ink); }
.ground-ink [data-scene] p { color: inherit; }
.ground-ink .cta-note { color: var(--c-ink-soft-on-ink); }
.ground-brand { background: var(--c-brand); color: var(--c-on-brand); }
.ground-brand h2, .ground-brand h3, .ground-brand .lead, .ground-brand > .wrap p { color: var(--c-on-brand); }
.ground-brand [data-scene] p { color: inherit; }
.ground-ink, .ground-brand { position: relative; isolation: isolate; overflow: hidden; }
.ground-brand .petal-ring { stroke: color-mix(in srgb, var(--c-paper) 30%, transparent); }
/* scroll and mouse */
[data-spin] { transform: rotate(var(--spin, 0deg)); }
[data-drift] { transform: translate3d(0, var(--drift, 0px), 0); }
[data-lean] { transform: translate3d(var(--lx, 0px), calc(var(--ly, 0px) + var(--drift, 0px)), 0) scale(1.08); transition: transform 0.9s var(--ease-out); will-change: transform; }
[data-tilt] { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out); transform-style: preserve-3d; }
[data-tilt].is-tilting { transition-duration: 0.18s; box-shadow: var(--shadow-l); }
[data-tilt] [data-tilt-in] { transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px), 0) scale(1.06); transition: transform 0.7s var(--ease-out); }
[data-tilt].is-tilting [data-tilt-in] { transition-duration: 0.18s; }
[data-rise-in] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-rise-in].is-in, .react-off [data-rise-in] { opacity: 1; transform: none; }
.react-off [data-lean], .react-off [data-tilt], .react-off [data-tilt] [data-tilt-in], .react-off [data-drift], .react-off [data-spin] { transform: none; }
/* a frame that opens wider as the page scrolls (--open 0 to 1). Never the header: core.js marks the open phone menu's
   header [data-open] too, and this clip cut away its menu, which hangs below the bar (Joe, 21 Nov). */
[data-open]:not(header) { clip-path: inset(calc((1 - var(--open, 1)) * 7%) calc((1 - var(--open, 1)) * 9%) round calc(40px + (1 - var(--open, 1)) * 24px) 10px calc(40px + (1 - var(--open, 1)) * 24px) 10px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  [data-rise-in] { opacity: 1; transform: none; }
}
