/* The home page's own layout: it places and sizes its parts with the tokens of system.css. */

/* ---------- hero: full-bleed footage, one field at a time (the kit's rotate) ---------- */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(680px, 100svh, 960px); overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); }
.hero__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* the kit's header CSS (kit.md) is in components.css, kept as it is, for every page that has one */
/* this site's framing of each clip, and the first clip's poster under it */
.hero__slide video, .hero__slide .kit-first { object-position: var(--pos, 50% 50%); }
.hero__slide .kit-first { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* one still grade over the stage: deep emerald behind the words, clear where the cards land */
.hero__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 62%, transparent) 0%, transparent 20%, transparent 78%, color-mix(in srgb, var(--c-ink) 55%, transparent) 100%),
              linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 76%, transparent) 34%, color-mix(in srgb, var(--c-ink) 20%, transparent) 62%, color-mix(in srgb, var(--c-ink) 4%, transparent) 100%); }
.hero__body { position: relative; z-index: 5; padding-top: 136px; padding-bottom: 104px; }
.hero__title { font-size: clamp(2.35rem, 0.9rem + 3.75vw, 4.35rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 760px; min-height: 3.06em; text-wrap: initial; }
.hero__word { display: block; color: var(--c-brand-on-ink); }
.hero__word [data-kit-word] { display: inline-block; opacity: calc(1 - var(--kit-swap, 0) * 0.9); transform: translateY(calc(var(--kit-swap, 0) * 0.14em)); }
.hero__line { margin-top: 22px; max-width: 560px; font-size: 1.1875rem; line-height: 1.55; color: color-mix(in srgb, var(--c-on-ink) 90%, transparent); }
.hero .picker { margin-top: 30px; }
/* each field's card at the far side, landing with a ripple */
.hero__card { position: absolute; z-index: 4; right: clamp(20px, 6vw, 110px); bottom: clamp(96px, 20%, 200px); display: flex; align-items: center; gap: 14px; max-width: 330px; padding: 15px 22px 15px 15px; border-radius: 22px; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 18px)); }
.hero__tick { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
.hero__tick svg { position: relative; width: 22px; height: 22px; }
.hero__ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--c-brand); transform: scale(calc(1 + var(--kit-in, 1) * 1.5)); opacity: calc((1 - var(--kit-in, 1)) * 0.95); }
.hero__ring--2 { transform: scale(calc(1 + max(0, var(--kit-in, 1) - 0.3) * 2.4)); opacity: calc((1 - var(--kit-in, 1)) * 0.6); }
.hero__card-text { display: grid; gap: 2px; }
.hero__card-text b { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.hero__card-text span { font-size: 0.9375rem; line-height: 1.35; color: color-mix(in srgb, var(--c-on-ink) 84%, transparent); }
.hero__rings { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; width: 100%; height: 120px; color: var(--c-brand); opacity: .45; pointer-events: none; }
/* the stop icon stands at the hero's top right, under the header's bar, so it is in view with the clips whatever the
   screen's height (at its foot it fell below a 640 or 720 px high window, the hero being 784 px high there) */
.hero__stop { position: absolute; right: var(--gutter); top: 96px; }
@media (max-width: 760px) {
  .hero { align-items: end; min-height: 0; }
  .hero__slide video, .hero__slide .kit-first { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .hero__stage::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 58%, transparent) 0%, transparent 13%, transparent 30%, color-mix(in srgb, var(--c-ink) 84%, transparent) 44%, color-mix(in srgb, var(--c-ink) 96%, transparent) 58%, var(--c-ink) 100%); }
  .hero__body { padding-top: 290px; padding-bottom: 64px; }
  .hero__title { font-size: clamp(2.05rem, 1.2rem + 3.6vw, 2.6rem); min-height: 4.08em; }
  .hero__line { margin-top: 14px; font-size: 1.0625rem; }
  .hero .picker { margin-top: 20px; }
  .hero__card { top: 84px; bottom: auto; left: 14px; right: auto; max-width: 252px; padding: 11px 16px 11px 11px; gap: 11px; }
  .hero__tick { width: 36px; height: 36px; }
  .hero__tick svg { width: 18px; height: 18px; }
  .hero__card-text b { font-size: 0.9375rem; }
  .hero__card-text span { font-size: 0.8125rem; }
  .hero__rings { display: none; }
  .hero__stop { bottom: auto; top: 84px; right: 14px; }
}

/* ---------- day: one owner's day, four moments ---------- */
.day { padding-block: var(--section-y) calc(var(--section-y) * 0.8); background: var(--c-paper); }
.day__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
/* the stop icon stands on the strip's first row, at its top right, in the glass of the icons on footage: in view with
   the moments whatever the screen's height (in the head above the strip, the two did not fit a 640 px high window) */
.day__film { position: relative; max-width: 1680px; margin: 0 auto; }
.day__stop { position: absolute; z-index: 4; top: 12px; right: calc(clamp(12px, 2vw, 32px) + 12px); }
.day__strip { list-style: none; margin: 0 auto; padding: 0 clamp(12px, 2vw, 32px); max-width: 1680px; box-sizing: border-box; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 18px); }
.day__moment { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.day__frame { position: relative; overflow: hidden; isolation: isolate; height: clamp(540px, 46vw, 680px); border-radius: 26px; background: var(--c-ink); }
.day__frame > video, .day__frame > img, .film-wait { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); z-index: -1; }
.film-wait { background: var(--c-ink-2); }
.day__frame::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 72%, transparent) 0%, color-mix(in srgb, var(--c-ink) 18%, transparent) 26%, transparent 46%, color-mix(in srgb, var(--c-ink) 22%, transparent) 70%, color-mix(in srgb, var(--c-ink) 58%, transparent) 100%); }
.day__moment--high .day__frame::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 74%, transparent) 0%, color-mix(in srgb, var(--c-ink) 40%, transparent) 48%, transparent 66%, color-mix(in srgb, var(--c-ink) 18%, transparent) 100%); }
.day__time { position: absolute; z-index: 2; top: 20px; left: 22px; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 1.6rem + 1.5vw, 3.5rem); line-height: 1; letter-spacing: -0.035em; color: var(--c-on-ink); }
.day__time small { margin-left: 0.14em; font-size: 0.42em; letter-spacing: 0; font-weight: 500; }
.day__where { position: absolute; z-index: 2; top: calc(30px + clamp(2.5rem, 1.6rem + 1.5vw, 3.5rem)); left: 24px; margin: 0; font-weight: 600; font-size: 0.9375rem; color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); }
.day__scene { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 16px; display: grid; justify-items: center; }
.day__moment--high .day__scene { bottom: auto; top: calc(56px + clamp(2.5rem, 1.6rem + 1.5vw, 3.5rem)); }
.day__scene > [data-scene] { width: 100%; max-width: 340px; }
.day [data-scene="out-reviews"] { --oc-star: var(--c-star); }
.day__text { position: relative; display: grid; align-content: start; gap: 8px; padding: 34px 6px 0; }
.day__text::before { content: ""; position: absolute; top: 15px; left: calc(-0.5 * clamp(10px, 1.1vw, 18px)); right: calc(-0.5 * clamp(10px, 1.1vw, 18px)); height: 2px; background: color-mix(in srgb, var(--c-brand) 55%, transparent); }
.day__moment:first-child .day__text::before { left: 12px; }
.day__moment:last-child .day__text::before { right: 50%; }
.day__dot { position: absolute; top: 9px; left: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 0 5px var(--c-paper), 0 0 0 7px color-mix(in srgb, var(--c-brand) 40%, transparent), 0 0 0 13px color-mix(in srgb, var(--c-brand) 14%, transparent); }
.day__text h3 { font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3rem); }
.day__link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 600; font-size: 0.9375rem; color: var(--c-brand-text); text-decoration: none; }
.day__link svg { width: 18px; height: 18px; }
.day__link:not([data-planned]):hover { text-decoration: underline; }
@media (max-width: 1100px) {
  .day__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .day__frame { height: clamp(520px, 72vw, 640px); }
  .day__text::before { display: none; }
}
@media (max-width: 640px) {
  .day__head { align-items: start; }
  .day__stop { right: calc(var(--gutter) + 12px); }
  .day__strip { grid-template-columns: minmax(0, 1fr); padding-inline: var(--gutter); }
  .day__frame { height: clamp(500px, 132vw, 600px); }
}

/* ---------- how: three steps on one track, over footage ---------- */
.how { padding-block: var(--section-y); background: var(--c-ink); }
.how .band__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 84%, transparent) 0%, color-mix(in srgb, var(--c-ink) 56%, transparent) 46%, color-mix(in srgb, var(--c-ink) 86%, transparent) 100%); }
.how__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.track__step { position: relative; display: grid; min-width: 0; }
.track__step + .track__step::before { content: ""; position: absolute; z-index: 2; top: 47px; left: -24px; width: 24px; height: 2px; background: var(--c-brand); }
.track__card { box-sizing: border-box; display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 26px 24px 24px; border-radius: 28px; min-width: 0; }
.track__title { display: flex; align-items: center; gap: 16px; font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.55rem); }
.track__title::after { content: ""; flex: 1; height: 2px; margin-right: -24px; background: linear-gradient(90deg, color-mix(in srgb, var(--c-brand) 20%, transparent), var(--c-brand)); }
.track__step:last-child .track__title::after { background: linear-gradient(90deg, color-mix(in srgb, var(--c-brand) 20%, transparent), transparent); margin-right: 0; }
.track__num { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; box-shadow: 0 0 0 7px color-mix(in srgb, var(--c-brand) 22%, transparent), 0 0 0 15px color-mix(in srgb, var(--c-brand) 8%, transparent); }
.track__line { color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.track__stage { display: grid; align-items: end; justify-items: center; min-height: 316px; margin-top: 10px; }
.track__stage > [data-scene] { width: 100%; }
.track__stage--launch > [data-scene] { min-height: 284px; }
/* the estimate keeps room around its paper for its tilt and its stamp (its copy's wrap, fix round F1): that room
   reaches into the card's padding, so the paper keeps its width and the stamp stays clear of its last line */
.track__stage--estimate > [data-scene] { width: calc(100% + 22px); margin-inline: -8px -14px; }
.how__cta { margin-top: 40px; }
@media (max-width: 980px) {
  .track { grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 560px; }
  .track__step + .track__step::before { top: -18px; left: 44px; width: 2px; height: 18px; }
  .track__title::after { display: none; }
  .track__stage { min-height: 0; }
}

/* ---------- plan: the free plan tour over aerial footage ---------- */
.plan { padding-block: var(--section-y); background: var(--c-ink); }
.plan .band__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 88%, transparent) 0%, color-mix(in srgb, var(--c-ink) 52%, transparent) 42%, color-mix(in srgb, var(--c-ink) 62%, transparent) 72%, color-mix(in srgb, var(--c-ink) 90%, transparent) 100%); }
.tour { position: relative; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; margin-top: clamp(36px, 4vw, 56px); }
.tour__tabs { display: grid; gap: 12px; align-content: center; }
.tour__tab { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 20px 22px 22px; border: 0; border-radius: 22px; text-align: left; font: inherit; color: var(--c-on-ink); cursor: pointer; background: color-mix(in srgb, var(--c-ink) 52%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--glass-line); transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.tour__tab b { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.tour__tab span { font-size: 0.9375rem; color: color-mix(in srgb, var(--c-on-ink) 82%, transparent); }
.tour__tab:hover { background: color-mix(in srgb, var(--c-ink-2) 70%, transparent); }
.tour__tab[aria-selected="true"] { background: color-mix(in srgb, var(--c-ink-2) 82%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-brand) 75%, transparent); }
.tour__time { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c-brand); transform-origin: 0 50%; transform: scaleX(0); }
.tour__tabs[data-kit-on] .tour__tab[aria-selected="true"] .tour__time { transform: scaleX(var(--kit-fill, 0)); }
.tour__panels { position: relative; min-height: clamp(460px, 40vw, 530px); border-radius: 32px; background: color-mix(in srgb, var(--c-ink) 22%, transparent); box-shadow: inset 0 0 0 1px var(--glass-line); }
.tour__panel { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; }
.tour__panel > [data-scene] { width: 100%; }
.tour__stop { position: absolute; top: 14px; right: 14px; }
.plan__cta { justify-content: center; margin-top: 40px; }
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tour__tab { padding: 14px 12px 16px; }
  .tour__tab b { font-size: 1rem; }
  .tour__tab span { display: none; }
  .tour__panels { min-height: 470px; }
  .tour__panel { padding: 16px 10px; }
  /* on the phone the tour is taller than a short screen: its stop icon stands at the part's top right, over its
     footage and above its title, so it is in view as the footage first fills the screen, whatever the screen's height */
  .tour { position: static; }
  .tour__stop { top: 14px; right: var(--gutter); }
}

/* The tour's phone (yourpart) is dark in every look and draws its words, bubble, choices, pointer and ring in
   --c-on-brand, which is dark on this site (the text on the light emerald): they take the ivory there instead. */
.plan [data-scene="yourpart"] .yp-phone { color: var(--c-on-ink); border-color: color-mix(in srgb, var(--c-on-ink) 14%, var(--c-ink)); }
.plan [data-scene="yourpart"] .yp-ask { background: color-mix(in srgb, var(--c-on-ink) 11%, transparent); }
.plan [data-scene="yourpart"] .yp-chips span:not(.is-on) { border-color: color-mix(in srgb, var(--c-on-ink) 24%, transparent); }
.plan [data-scene="yourpart"] .yp-finger { background: color-mix(in srgb, var(--c-on-ink) 84%, transparent); }
.plan [data-scene="yourpart"] .yp-ring { border-color: var(--c-on-ink); }

/* ---------- worth: the calculator and its lake ---------- */
.worth { padding-block: var(--section-y); background: var(--c-paper-alt); }
.worth__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.worth__box { --calc-gap: 30px; --calc-track: color-mix(in srgb, var(--c-ink) 12%, transparent); --calc-thumb-size: 30px; --calc-value-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem); --calc-label-size: 1.0625rem; --calc-track-size: 8px;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); border-radius: 34px; overflow: hidden; background: var(--c-paper); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--c-line); }
.worth__controls { display: grid; align-content: center; gap: 30px; padding: clamp(28px, 3.4vw, 48px); }
.worth__controls .calc-slider__value { font-family: var(--font-display); font-weight: 600; color: var(--c-brand-text); }
.worth__controls .calc-slider__label { font-weight: 600; }
.worth__controls .calc-note { font-size: var(--fs-small); color: var(--c-ink-soft); }
.worth__result { --calc-ink: var(--c-on-ink); --calc-ink-soft: color-mix(in srgb, var(--c-on-ink) 80%, transparent); --calc-total-size: clamp(2.6rem, 1.6rem + 3vw, 4.25rem); --calc-figure-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  display: grid; gap: 14px; align-content: start; padding: clamp(26px, 3vw, 40px); color: var(--c-on-ink); background: var(--c-ink); }
.worth__result .calc-total { display: grid; gap: 2px; }
.worth__result .calc-total__value { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; color: var(--c-brand-on-ink); line-height: 1; }
.worth__result .calc-total__label { font-size: 1rem; color: color-mix(in srgb, var(--c-on-ink) 84%, transparent); }
.worth__result .calc-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.worth__result .calc-figure { display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--c-on-ink) 7%, transparent); box-shadow: inset 0 0 0 1px var(--glass-line); }
.worth__result .calc-figure__value { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.worth__result .calc-figure__label { font-size: 0.9375rem; color: color-mix(in srgb, var(--c-on-ink) 82%, transparent); }
.worth__picture { position: relative; }
/* the stop icon holds the lake's year: it stands at the picture's top right, in the dark above the bank (the bank is
   52 of the drawing's 262 units down, 19.85%), its box's foot 4 px above the bank's level, so the round icon stays
   clear of the bank's end; where that band is lower than the icon (a narrow lake, on the phone), it rises into the
   room above the picture, still clear of the total's words, never onto the bank or the water */
.worth__lake { position: relative; }
.worth__stop { position: absolute; right: 0; top: min(0px, calc(19.85% - 44px)); }
.lake { display: block; width: 100%; height: auto; overflow: visible; }
.lake__bed { fill: color-mix(in srgb, var(--c-ink-2) 45%, var(--c-ink)); stroke: color-mix(in srgb, var(--c-on-ink) 10%, transparent); stroke-width: 1; }
.lake__bank { stroke: color-mix(in srgb, var(--c-brand) 70%, transparent); stroke-width: 2.5; stroke-linecap: round; }
.lake__month { fill: color-mix(in srgb, var(--c-brand) calc(50% + var(--i) * 4.2%), var(--c-ink-2)); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--kit-in, 1)); }
.lake__month:nth-child(even) { fill: color-mix(in srgb, var(--c-brand) calc(45% + var(--i) * 4.2%), var(--c-ink-2)); }
.lake__month[data-kit-on] { opacity: 1; }
/* the surface rides the water: from the level before the newest month to its own, as the kit's --kit-year brings that
   month in (home.js sets the levels), and shows once the first water is in */
.lake__surface { transform: translateY(calc((var(--lake-from, 0) - var(--lake-rise, 0) * clamp(0, var(--kit-year, 1) * 12 - var(--lake-n0, 11), 1.1)) * 1px)); opacity: clamp(0, var(--kit-year, 1) * 36, 1); }
.lake__surface line { stroke: var(--c-brand-on-ink); stroke-width: 2.5; }
/* the water's surface seen a little from above, to the far bank; the ripple lies on it */
.lake__plane { fill: color-mix(in srgb, var(--c-brand) 44%, var(--c-ink)); stroke: color-mix(in srgb, var(--c-brand-on-ink) 40%, transparent); stroke-width: 1.2; }
/* the rings fade by their stroke's own alpha, not an opacity layer each (a layer's edge repainted a pixel differently
   now and then, which reads as the picture changing by itself) */
.lake__ring { fill: none; stroke: color-mix(in srgb, var(--c-brand-on-ink) 85%, transparent); stroke-width: 1.5; }
.lake__ring--2 { stroke: color-mix(in srgb, var(--c-brand-on-ink) 55%, transparent); }
.lake__ring--3 { stroke: color-mix(in srgb, var(--c-brand-on-ink) 30%, transparent); }
.lake__post { stroke: color-mix(in srgb, var(--c-on-ink) 75%, transparent); stroke-width: 4; stroke-linecap: round; }
.lake__tick { stroke: color-mix(in srgb, var(--c-on-ink) 75%, transparent); stroke-width: 2.5; stroke-linecap: round; }
.lake__label { fill: var(--c-on-ink); font-family: var(--font-display); font-weight: 600; font-size: 19px; }
@media (max-width: 420px) { .lake__label { font-size: 24px; } }
@media (max-width: 920px) {
  .worth__box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .worth__result .calc-figures { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- compare: the usual agency against Emerald Lake ---------- */
.compare { padding-block: var(--section-y); background: var(--c-paper); }
.cmp { position: relative; isolation: isolate; margin-top: clamp(32px, 4vw, 48px); height: clamp(460px, 44vw, 600px); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-l); background: var(--c-ink); }
.cmp__side { position: absolute; inset: 0; overflow: hidden; }
.cmp__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.cmp__side--before .cmp__photo { filter: grayscale(1) contrast(0.9) brightness(0.86); }
.cmp__side--before::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(28 32 31 / .58), rgb(28 32 31 / .12) 60%); }
.cmp__side--after { clip-path: inset(0 0 0 calc(var(--kit-v, 0.5) * 100%)); }
.cmp__side--after .cmp__photo { object-position: 60% 40%; }
.cmp__side--after::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 52%, transparent), transparent 55%), linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 50%, transparent), transparent 50%); }
.cmp__tag { position: absolute; z-index: 2; top: 22px; left: 22px; margin: 0; padding: 9px 16px; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 600; font-size: 1rem; background: rgb(240 240 238 / .92); color: rgb(40 44 43); }
.cmp__tag--after { left: auto; right: 22px; background: var(--c-brand); color: var(--c-on-brand); }
.cmp__cards { position: absolute; z-index: 2; bottom: 22px; left: 22px; display: grid; gap: 10px; width: min(300px, calc(50% - 52px)); margin: 0; padding: 0; list-style: none; }
.cmp__side--after .cmp__cards { left: auto; right: 22px; }
.cmp__card { display: grid; gap: 2px; padding: 13px 16px; border-radius: 16px; }
.cmp__side--before .cmp__card { background: rgb(246 246 244 / .94); color: rgb(52 56 55); box-shadow: 0 10px 24px -14px rgb(0 0 0 / .5); }
.cmp__side--before .cmp__card b { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: rgb(34 37 36); }
.cmp__side--after .cmp__card { background: color-mix(in srgb, var(--c-ink) 62%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--glass-line); color: color-mix(in srgb, var(--c-on-ink) 86%, transparent); }
.cmp__side--after .cmp__card b { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--c-on-ink); }
.cmp__card span { font-size: 0.875rem; line-height: 1.35; }
[data-kit-whole] { transition: opacity .2s, visibility 0s; }
[data-kit-under] { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.cmp__range { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.handle { position: absolute; z-index: 5; top: 0; bottom: 0; left: calc(var(--kit-v, 0.5) * 100%); width: 0; pointer-events: none; opacity: clamp(0, calc((min(var(--kit-v, 0.5), 1 - var(--kit-v, 0.5)) - 0.03) * 14), 1); }
.cmp__range:focus-visible + .handle { opacity: 1; }
.cmp__range:focus-visible + .handle .handle__knob { outline: 3px solid var(--c-brand); outline-offset: 3px; }
.handle__line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--c-paper); box-shadow: 0 0 12px rgb(0 0 0 / .35); }
.handle__knob { position: absolute; top: 24%; left: -27px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); box-shadow: 0 10px 26px -8px rgb(0 0 0 / .5), 0 0 0 6px color-mix(in srgb, var(--c-paper) 28%, transparent); }
.handle__knob svg { width: 24px; height: 24px; }
.handle__hint { position: absolute; top: calc(24% + 64px); left: 0; transform: translateX(-50%); padding: 5px 12px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--c-ink) 70%, transparent); color: var(--c-on-ink); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
[data-kit-touched] .handle__hint { opacity: 0; transition: opacity .3s; }
.promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.promises li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.promises svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand-text); box-sizing: border-box; }
@media (max-width: 700px) {
  .cmp { height: 560px; border-radius: 26px; }
  .cmp__tag { top: 14px; left: 12px; padding: 7px 12px; font-size: 0.875rem; }
  .cmp__tag--after { left: auto; right: 12px; }
  .cmp__cards { left: 10px; bottom: 12px; width: calc(50% - 26px); gap: 8px; }
  .cmp__side--after .cmp__cards { right: 10px; }
  .cmp__card { padding: 10px 11px; border-radius: 13px; }
  .cmp__side--before .cmp__card b, .cmp__side--after .cmp__card b { font-size: 0.875rem; }
  .cmp__card span { font-size: 0.8125rem; }
  .handle__knob { top: 20%; }
  .handle__hint { top: calc(20% + 62px); }
  .promises { justify-content: start; flex-direction: column; }
}

/* ---------- who: six kinds of business and many more ---------- */
.who { padding-block: var(--section-y); background: var(--c-paper); }
.bento { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 22vw, 310px); gap: 16px; }
.bento__item { min-width: 0; }
.bento__item--wide { grid-column: span 2; }
.bento__item--more { grid-column: 1 / -1; }
.tile { position: relative; isolation: isolate; display: block; height: 100%; overflow: hidden; border-radius: 26px; color: var(--c-on-ink); text-decoration: none; background: var(--c-ink); }
.tile__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; z-index: -2; transition: transform .7s var(--ease-out); }
.tile:hover .tile__photo { transform: scale(1.045); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--c-ink) 88%, transparent) 100%); }
.tile__body { position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 6px; }
.tile__name { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.15; }
.tile__fields { font-size: 0.9375rem; line-height: 1.45; color: color-mix(in srgb, var(--c-on-ink) 90%, transparent); }
.tile--more { background: linear-gradient(120deg, var(--c-ink-2), var(--c-ink)); }
.tile--more::after { display: none; }
.tile--more .tile__body { top: 0; bottom: 0; right: 40%; align-content: center; }
.tile--more .tile__name { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.tile__rings { position: absolute; right: -40px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); color: var(--c-brand); transition: transform .7s var(--ease-out); }
.tile--more:hover .tile__rings { transform: translateY(-50%) scale(1.06); }
.tile__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: var(--c-brand-on-ink); }
.tile__go svg { width: 20px; height: 20px; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 40vw, 300px); }
  .bento__item--wide { grid-column: span 2; }
  .tile--more .tile__body { right: 30%; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; gap: 12px; }
  .bento__item--wide { grid-column: auto; }
  .bento__item--more { grid-row: span 1; }
  .tile--more .tile__body { right: 22px; }
  .tile__rings { right: -120px; opacity: .55; }
}

/* ---------- faq ---------- */
.faq { padding-block: var(--section-y); background: var(--c-paper-alt); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__head { position: sticky; top: 40px; }
.faq__cta { margin-top: 10px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: 22px; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); transition: box-shadow var(--dur-fast); }
.faq__item[open] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-brand) 60%, transparent), var(--shadow-s); }
.faq__item summary { position: relative; list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--c-brand-text); transition: transform var(--dur-med) var(--ease-out); }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item p { padding: 0 24px 24px; color: var(--c-ink-soft); max-width: 640px; }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
}

/* ---------- close: the last push, over footage ---------- */
.close { padding-block: clamp(110px, 13vw, 176px) clamp(96px, 11vw, 150px); background: var(--c-ink); }
/* the owner stands at 30 to 45% across in his clip: mirrored, he is on the right, clear of the words */
.close .band__film { object-position: 50% 35%; transform: scaleX(-1); }
.close__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 94%, transparent) 0%, color-mix(in srgb, var(--c-ink) 80%, transparent) 36%, color-mix(in srgb, var(--c-ink) 22%, transparent) 66%, color-mix(in srgb, var(--c-ink) 8%, transparent) 100%); }
.close__arcs { position: absolute; top: 0; left: 0; width: 100%; height: 120px; color: var(--c-brand); opacity: .5; pointer-events: none; }
.close__grid { position: relative; display: grid; gap: 28px; max-width: calc(620px + 2 * var(--gutter)); margin-left: max(0px, calc((100% - var(--max-w) - 2 * var(--gutter)) / 2)); }
.close__words { display: grid; gap: 16px; }
.close__words h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.5rem); }
.close__words p { font-size: 1.1875rem; color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); }
/* the stop icon stands at the part's top right, well right of the owner, so it is in view with the footage whatever
   the screen's height (at its foot it fell below a 640 to 768 px high window, the part being 792 to 817 px high there) */
.close__stop { position: absolute; right: var(--gutter); top: 24px; }
@media (max-width: 760px) {
  .close { padding-top: 300px; }
  .close .band__film { object-position: 40% 30%; }
  .close__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 30%, transparent) 0%, transparent 18%, color-mix(in srgb, var(--c-ink) 78%, transparent) 40%, var(--c-ink) 62%); }
  .close__arcs { display: none; }
  .close__stop { top: 20px; }
}
