/* 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. Only the tokens of system.css. */

/* ---------- Layout ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max-w)); margin-inline: auto; }
.mono { filter: var(--grade); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; border-radius: 4px; }
/* The olive is 2.75:1 on the ink, so the ring takes its light tint on dark grounds. */
.band--ink :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .callbar :focus-visible, .stop--on-dark:focus-visible { outline-color: var(--c-brand-on-ink); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Bands: the page's pace, light and dark alternating ---------- */
.band { position: relative; padding-block: var(--section-y); }
.band--white { background: var(--c-paper); }
.band--grey { background: var(--c-paper-alt); }
.band--ink { background: var(--c-ink); color: var(--c-on-ink); }
.band--footage { overflow: hidden; isolation: isolate; }
.band__media { position: absolute; inset: 0; z-index: -1; }
.band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 11, .92) 0%, rgba(11, 12, 11, .72) 55%, rgba(11, 12, 11, .55) 100%); }
.band__video, .band__media video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; } /* 1 px past the band (kit.md, Video) */
/* The motif: twelve marks along the top edge of a dark band, the first lit green (the year's twelve months, the XII of
   the logo: "busy all twelve months"). An edge, never a mark beside a headline. */
.ticks { position: absolute; z-index: 1; top: 0; left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); height: 18px; pointer-events: none;
  background: linear-gradient(var(--c-brand-on-ink), var(--c-brand-on-ink)) 0 0 / 2px 100% no-repeat, linear-gradient(90deg, var(--c-line-ink-strong) 1px, transparent 1px) 0 0 / calc((100% - 1px) / 11) 55% repeat-x; }

/* ---------- Part headings: one sentence, its key phrase in green ---------- */
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.head__title { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-display); text-wrap: balance; }
.head__title em { font-style: normal; color: var(--c-brand-text); }
.head__line { margin: 18px 0 0; max-width: 620px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--c-ink-soft); text-wrap: pretty; }
.head--center .head__line { margin-inline: auto; }
.head__line a { color: var(--c-brand-text); font-weight: 600; text-underline-offset: 3px; }
.head--on-ink .head__title em, .band--ink .head__title em { color: var(--c-brand-on-ink); }
.head--on-ink .head__line, .band--ink .head__line { color: var(--c-on-ink-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 650 1rem/1 var(--font-ui); text-decoration: none; letter-spacing: -.005em; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-med) var(--ease-out); }
.btn--go { background: var(--c-brand); color: var(--c-on-brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-brand) 40%, transparent); }
.btn--go:hover { background: color-mix(in srgb, var(--c-brand) 88%, var(--c-paper)); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--c-brand) 70%, transparent); transform: translateY(-1px); }
.btn--go:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

/* The main button with its fear line */
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(28px, 3vw, 44px); }
.go__fear { margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.go--on-ink .go__fear { color: var(--c-on-ink-soft); }

/* ---------- The clients picker ---------- */
.picker { display: grid; gap: 14px; width: min(100%, 470px); padding: 20px; border-radius: var(--radius-l); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-m); }
.picker__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.picker__legend { padding: 0; margin-bottom: 12px; font: 600 var(--fs-ui)/1.3 var(--font-ui); color: var(--c-ink); }
.picker__choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.picker__choice { position: relative; display: block; cursor: pointer; }
.picker__choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.picker__choice span { display: grid; place-items: center; height: 48px; border-radius: var(--radius-m); border: 1px solid var(--c-line); background: var(--c-paper); font: 650 1.0625rem/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--c-ink); transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast); }
.picker__choice:hover span { border-color: var(--c-ink-soft); }
.picker__choice input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.picker--dark .picker__choice input:focus-visible + span { outline-color: var(--c-brand-on-ink); }
.picker__go { width: 100%; }
.picker__fear { margin: 0; text-align: center; font-size: var(--fs-small); color: var(--c-ink-soft); }
/* on dark grounds and footage */
.picker--dark { background: color-mix(in srgb, var(--c-ink) 72%, transparent); border-color: var(--c-line-ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); color: var(--c-on-ink); }
.picker--dark .picker__legend { color: var(--c-on-ink); }
.picker--dark .picker__choice span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--c-on-ink); }
.picker--dark .picker__choice:hover span { border-color: rgba(255, 255, 255, .4); }
.picker--dark .picker__choice input:checked + span { background: var(--c-paper); border-color: var(--c-paper); color: var(--c-ink); }
.picker--dark .picker__fear { color: var(--c-on-ink-soft); }

/* ---------- The stop icon ---------- */
.stop { position: absolute; z-index: 6; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--c-line); border-radius: 50%; background: color-mix(in srgb, var(--c-paper) 86%, transparent); color: var(--c-ink); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color var(--dur-fast); }
.stop:hover { background: var(--c-paper); }
.stop--on-dark { border-color: rgba(255, 255, 255, .18); background: rgba(11, 12, 11, .5); color: var(--c-on-ink); }
.stop--on-dark:hover { background: rgba(11, 12, 11, .78); }
[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; }
.band__stop { top: 20px; right: 20px; }

/* ---------- The header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 28px; height: var(--header-h); padding-inline: var(--gutter); background: color-mix(in srgb, var(--c-ink) 94%, transparent); color: var(--c-on-ink); border-bottom: 1px solid var(--c-line-ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header__logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--c-on-ink); text-decoration: none; }
.logo__mark { display: block; width: 40px; height: 40px; object-fit: contain; }
.logo__name { font: var(--fw-display) 1.3rem/1 var(--font-display); letter-spacing: -.025em; white-space: nowrap; }
.nav__list { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav__item a { display: inline-block; padding: 8px 0; color: var(--c-on-ink-soft); font: 500 var(--fs-ui)/1 var(--font-ui); text-decoration: none; transition: color var(--dur-fast); }
.nav__item a:hover, .nav__item a[aria-current="page"] { color: var(--c-on-ink); }
.site-header__cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--c-brand); color: var(--c-on-brand); font: 650 var(--fs-ui)/1 var(--font-ui); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-fast); }
.site-header__cta:hover { background: color-mix(in srgb, var(--c-brand) 86%, var(--c-paper)); }
.site-header__menu { display: none; min-height: 42px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: transparent; color: var(--c-on-ink); font: 600 var(--fs-ui)/1 var(--font-ui); cursor: pointer; }
@media (max-width: 1023px) {
  .site-header { gap: 12px; }
  .site-header__menu { display: inline-flex; align-items: center; order: 3; }
  .site-header__cta { order: 2; }
  .site-header__nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: none; padding: 12px var(--gutter) 24px; background: var(--c-ink); border-bottom: 1px solid var(--c-line-ink); }
  .site-header[data-open] .site-header__nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item a { display: block; padding: 16px 0; font-size: 1.125rem; border-bottom: 1px solid var(--c-line-ink); }
}
@media (max-width: 520px) {
  .logo__name { font-size: 1.1rem; }
  .logo__mark { width: 34px; height: 34px; }
  .site-header__cta { padding: 0 14px; font-size: .875rem; }
  .site-header__menu { padding: 0 12px; }
}
@media (max-width: 599px) { .site-header__cta { display: none; } }

/* ---------- The footer ---------- */
.site-footer { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px var(--space-5); padding: clamp(56px, 7vw, 96px) max(var(--gutter), calc((100% - var(--max-w)) / 2)) 32px; background: var(--c-ink); color: var(--c-on-ink); border-top: 1px solid var(--c-line-ink); }
.site-footer__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-on-ink); }
.site-footer__line { max-width: 360px; margin: 16px 0 0; color: var(--c-on-ink-soft); }
.site-footer__title { margin: 0 0 14px; font: 600 var(--fs-small)/1 var(--font-ui); color: var(--c-on-ink); }
.site-footer__col ul, .site-footer__legal ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col li + li { margin-top: 10px; }
.site-footer a { color: var(--c-on-ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--c-on-ink); }
.site-footer__col a { display: inline-block; padding: 2px 0; }
.site-footer__contact:empty { display: none; }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--c-line-ink); font-size: var(--fs-small); color: var(--c-on-ink-soft); }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: 24px; }
@media (max-width: 760px) { .site-footer { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- The exit popup ---------- */
.exit { margin: auto; padding: 0; border: 0; max-width: none; max-height: none; background: transparent; color: var(--c-ink); }
.exit::backdrop { background: rgba(11, 12, 11, .64); backdrop-filter: blur(4px); }
.exit__in { position: relative; display: grid; justify-items: center; gap: 12px; width: min(92vw, 520px); padding: 40px 32px 32px; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); text-align: center; opacity: 0; transform: translateY(14px) scale(.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__mark { width: 56px; height: 56px; }
.exit__title { margin: 4px 0 0; font: var(--fw-display) clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem)/1.05 var(--font-display); letter-spacing: var(--ls-display); text-wrap: balance; }
.exit__title em { font-style: normal; color: var(--c-brand-text); }
.exit__line { margin: 0 0 8px; max-width: 400px; color: var(--c-ink-soft); }
.exit .picker { box-shadow: none; padding: 0; border: 0; width: 100%; }
.exit .picker__legend { width: 100%; text-align: left; }
.exit__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-ink-soft); cursor: pointer; }
.exit__close:hover { background: var(--c-paper-alt); color: var(--c-ink); }

/* ---------- The call bar on the phone ---------- */
.callbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--c-ink) 92%, transparent); border: 1px solid var(--c-line-ink); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(130%); transition: transform var(--dur-med) var(--ease-out), visibility 0s var(--dur-med); }
.callbar[data-kit-on] { transform: none; transition: transform var(--dur-med) var(--ease-out); }
.callbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font: 650 1rem/1 var(--font-ui); text-decoration: none; }
.callbar__cta { background: var(--c-brand); color: var(--c-on-brand); }
.callbar__call { background: rgba(255, 255, 255, .08); color: var(--c-on-ink); }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- Cards on footage: the booking card ---------- */
.bcard { display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: var(--radius-l); background: color-mix(in srgb, var(--c-paper) 92%, transparent); color: var(--c-ink); box-shadow: var(--shadow-l); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }

/* ---------- Photo tiles (who we help) ---------- */
.tile { position: relative; display: flex; align-items: flex-end; min-height: 260px; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); color: var(--c-on-ink); text-decoration: none; isolation: isolate; }
.tile__photo { position: absolute; inset: -1px; z-index: -2; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.tile__photo { transition: filter var(--dur-med), transform 900ms var(--ease-out); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 12, 11, 0) 30%, rgba(11, 12, 11, .82) 100%); }
.tile::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--c-brand-on-ink); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-med) var(--ease-out); }
.tile:hover::after, .tile:focus-visible::after { transform: scaleX(1); }
.tile:hover .tile__photo { filter: saturate(.85); transform: scale(1.03); }
.tile__text { position: relative; z-index: 1; display: grid; gap: 6px; padding: 22px; }
.tile__name { font: var(--fw-display) var(--fs-h3)/1.05 var(--font-display); letter-spacing: -.02em; }
.tile__fields { font-size: var(--fs-small); line-height: 1.45; color: rgba(255, 255, 255, .86); }
.tile--more { align-items: stretch; flex-direction: column; justify-content: space-between; background: var(--c-ink); }
.tile--more::before { display: none; }
.tile__mark { width: 56px; height: 56px; margin: 22px 22px 0; }
.tile__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 650 var(--fs-ui)/1 var(--font-ui); color: var(--c-brand-on-ink); }

/* ---------- Questions (FAQ) ---------- */
.qa { border-bottom: 1px solid var(--c-line); }
.qa:first-child { border-top: 1px solid var(--c-line); }
.qa__q { position: relative; display: block; padding: 24px 56px 24px 0; font: 650 clamp(1.0625rem, 1rem + .35vw, 1.25rem)/1.35 var(--font-ui); cursor: pointer; list-style: none; }
.qa__q::-webkit-details-marker { display: none; }
.qa__icon { position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 1px solid var(--c-line); transition: background-color var(--dur-fast), border-color var(--dur-fast); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--c-ink); transition: transform var(--dur-med) var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--c-brand); border-color: var(--c-brand); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: var(--c-on-brand); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa__a p { margin: 0; padding: 0 56px 26px 0; max-width: 720px; color: var(--c-ink-soft); }

/* ---------- Questions beside their heading (the home page's own copy of this stays in home.css) ---------- */
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 899px) { .faq__in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- The closing band, on every page (the home page's own copy of this stays in home.css) ---------- */
.close { padding-block: clamp(96px, 11vw, 160px); }
.close .band__media::after { background: radial-gradient(90% 120% at 50% 50%, rgba(11, 12, 11, .7), rgba(11, 12, 11, .9)); }
.close__in { display: grid; justify-items: center; }
.close__picker { margin-top: 4px; }

/* ---------- The designed ground (inner pages, below the header; never on the home page) ----------
   A part whose picture is a piece, a new scene or type set as the picture: grey (or ink) with the motif as its
   texture, a fine ruler of twelve marks along its top and its foot (five fine marks in each twelfth, the first mark
   olive and full height), and a soft tonal light behind the piece. Never one flat fill. */
.ground { position: relative; isolation: isolate; --ground-mark: rgba(11, 12, 11, .26); --ground-fine: rgba(11, 12, 11, .12); --ground-first: var(--c-brand);
  background: radial-gradient(58% 64% at 50% 60%, var(--c-paper) 0%, rgba(255, 255, 255, .55) 38%, rgba(255, 255, 255, 0) 74%), var(--c-paper-alt); }
.ground--ink { color: var(--c-on-ink); --ground-mark: var(--c-line-ink-strong); --ground-fine: var(--c-line-ink); --ground-first: var(--c-brand-on-ink);
  background: radial-gradient(58% 64% at 50% 60%, var(--c-ink-3) 0%, rgba(21, 23, 22, .6) 40%, rgba(11, 12, 11, 0) 76%), var(--c-ink); }
.ground::before, .ground::after { content: ""; position: absolute; z-index: 0; left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); height: 16px; pointer-events: none;
  background: linear-gradient(var(--ground-first), var(--ground-first)) 0 0 / 2px 100% no-repeat,
    linear-gradient(90deg, var(--ground-mark) 1px, transparent 1px) 0 0 / calc((100% - 1px) / 11) 70% repeat-x,
    linear-gradient(90deg, var(--ground-fine) 1px, transparent 1px) 0 0 / calc((100% - 1px) / 55) 34% repeat-x; }
.ground::before { top: 0; }
.ground::after { bottom: 0; transform: scaleY(-1); }
@media (max-width: 599px) {
  .ground::before, .ground::after { background: linear-gradient(var(--ground-first), var(--ground-first)) 0 0 / 2px 100% no-repeat,
    linear-gradient(90deg, var(--ground-mark) 1px, transparent 1px) 0 0 / calc((100% - 1px) / 11) 70% repeat-x,
    linear-gradient(90deg, var(--ground-fine) 1px, transparent 1px) 0 0 / calc((100% - 1px) / 33) 34% repeat-x; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn svg, .tile__photo, .tile::after, .exit__in, .callbar { transition: none; }
}
