/* Services: the page's own layout (plan.md, Services). Colors, type, corners and timing come from design\system.css;
   the components from design\components.css. */

/* the header: the kit's rotate, as kit.md writes it */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
[data-kit-scene="rotate"] [data-kit-slide] img.kit-first { inset: -1px !important; width: calc(100% + 2px) !important; height: calc(100% + 2px) !important; max-width: none; }

.shero { box-sizing: border-box; display: flex; align-items: center; min-height: min(780px, calc(100svh - 73px)); padding-block: clamp(48px, 6vw, 88px); overflow: hidden; isolation: isolate; }
.shero__stage { position: absolute; inset: 0; z-index: -1; background: var(--c-ink); }
.shero__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgb(11 6 19 / 0.95) 0%, rgb(11 6 19 / 0.84) 34%, rgb(11 6 19 / 0.42) 62%, rgb(11 6 19 / 0.34) 100%), linear-gradient(180deg, rgb(11 6 19 / 0.3) 0%, transparent 16%, transparent 76%, var(--c-ink) 100%); }
/* the calendar was shot from the far side: turned round, its dates read upright and the hand comes from the viewer's side */
.shero [data-kit-slide] video, .shero [data-kit-slide] img { rotate: 180deg; }
.shero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.shero__words > p { margin-top: 20px; max-width: 500px; color: var(--c-on-ink-soft); font-size: 1.1875rem; line-height: 1.55; }
.shero__words .action { margin-top: 30px; }
.shero__scene { height: 430px; }
.stop--hero { top: 14px; right: max(16px, calc((100vw - var(--max-w)) / 2 + var(--gutter) - 8px)); }
@media (max-width: 1080px) {
  .shero { display: block; padding-block: 36px 40px; }
  .shero__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .shero__stage { inset: auto 0 0; height: 66%; }
  .shero__stage::after { background: linear-gradient(180deg, var(--c-ink) 0%, rgb(11 6 19 / 0.42) 30%, rgb(11 6 19 / 0.3) 78%, var(--c-ink) 100%); }
  .shero__scene { width: min(620px, 100%); margin-inline: auto; }
  .stop--hero { top: 10px; right: 12px; }
}
@media (max-width: 520px) { .shero__scene { height: 440px; } }

/* the page's promise: type set as the picture, rising with the scroll, on the designed ground */
.path { padding-block: clamp(96px, 11vw, 168px); }
.path__type { max-width: 1120px; font-size: clamp(2.75rem, 0.9rem + 5.4vw, 5.5rem); line-height: 1.06; letter-spacing: -0.03em; }
.path__type em { font-style: normal; color: var(--c-brand-on-ink); }
.path__w { display: inline-block; opacity: calc(0.14 + 0.86 * var(--on, 1)); transform: translateY(calc((1 - var(--on, 1)) * 0.34em)); }
.path__line { position: relative; display: flex; justify-content: space-between; list-style: none; margin: clamp(52px, 6vw, 84px) 0 0; padding: 0 0 56px; --path: 1; }
.path__line::before, .path__line::after { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; border-radius: 2px; background: var(--c-hair-strong); }
.path__line::after { background: var(--grad-node); transform: scaleX(var(--path)); transform-origin: left center; }
.path__stop { position: relative; z-index: 1; flex: 0 0 24px; display: flex; flex-direction: column; align-items: center; }
.path__stop i { display: block; flex: none; width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; background: var(--c-ink); border: 2px solid var(--c-hair-strong); transition: background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast); }
.path__stop[data-lit] i { background: var(--c-brand); border-color: var(--c-brand-light); box-shadow: 0 0 0 5px rgb(88 0 255 / 0.24), 0 0 24px var(--c-glow); }
.path__stop--seed i { width: 16px; height: 16px; margin-top: 4px; }
.path__stop--end[data-lit] i { background: var(--c-accent); border-color: var(--c-accent-on-ink); box-shadow: 0 0 0 5px rgb(200 107 230 / 0.24), 0 0 26px rgb(200 107 230 / 0.5); }
.path__stop a { display: flex; flex-direction: column; align-items: center; gap: 14px; width: max-content; min-height: 44px; text-decoration: none; color: var(--c-on-ink); font: 650 clamp(1.125rem, 0.9rem + 0.7vw, 1.5rem)/1.2 var(--font-display); letter-spacing: -0.01em; }
.path__stop a:hover span { color: var(--c-brand-on-ink); }
@media (max-width: 760px) {
  .path__line { flex-direction: column; gap: 22px; padding: 0; }
  .path__line::before, .path__line::after { left: 11px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .path__line::after { transform: scaleY(var(--path)); transform-origin: center top; }
  .path__stop { flex: none; flex-direction: row; width: 24px; }
  .path__stop--seed i { margin: 0 0 0 4px; }
  .path__stop a { flex-direction: row; gap: 16px; align-items: center; }
}

/* the chapters */
.chap { padding-block: clamp(84px, 8.5vw, 128px); }
.chap__img { display: block; object-fit: cover; }
.chap__scene { z-index: 1; }
.chap__words > h2 { margin-top: 20px; }
.chap__words > p { margin-top: 14px; max-width: 520px; color: var(--c-on-ink-soft); font-size: 1.125rem; line-height: 1.55; }
.chap__words .inlist { margin-top: 24px; }
.chap__head { display: grid; grid-template-columns: 48px minmax(0, 720px); gap: 10px 22px; align-items: start; }
.chap__head .chapnode { grid-row: 1 / span 2; }
.chap__head p { color: var(--c-on-ink-soft); font-size: 1.125rem; line-height: 1.55; max-width: 600px; }
.chap__pic { position: relative; height: clamp(600px, 47vw, 660px); margin-top: clamp(28px, 3vw, 44px); }
.chap__pic .frame { position: absolute; inset: 0; }
.chap__pic .chap__scene, .chap__list { position: absolute; }
.chap__pic .stop { top: 14px; right: 14px; }
.chap__list { z-index: 1; }

/* 1: the photo bleeds to the page's right edge and fades into the ink on its left */
.chap--found { overflow: hidden; isolation: isolate; }
.chap__bleed { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; z-index: -1; overflow: hidden; }
.chap__bleed .chap__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-position: 100% 62%; }
.chap__bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-ink) 0%, rgb(11 6 19 / 0.5) 12%, transparent 30%), linear-gradient(180deg, var(--c-ink) 0%, transparent 16%, transparent 84%, var(--c-ink) 100%); }
.chap--found .chap__in { display: grid; grid-template-columns: minmax(0, 450px) minmax(0, 1fr); gap: 40px; align-items: center; }
.chap--found .chap__scene { justify-self: end; width: min(450px, 100%); height: 570px; }

/* 2: a frame, the words offset to the left above it */
.chap--ads .chap__img { object-position: 50% 6%; }
.chap--ads .chap__scene { right: clamp(18px, 3vw, 44px); top: 50%; translate: 0 -50%; width: 460px; height: 470px; }
.chap--ads .chap__list { left: clamp(16px, 2.2vw, 30px); bottom: clamp(16px, 2.2vw, 30px); width: min(372px, 32%); }

/* 3: the full picture, the words and the scene on the side clear of her face, the services along the foot */
.chap--trust { overflow: hidden; isolation: isolate; padding-block: clamp(72px, 7vw, 104px) clamp(36px, 4vw, 56px); }
.chap__full { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.chap__full .chap__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-position: 20% 22%; }
.chap__full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgb(11 6 19 / 0.95) 0%, rgb(11 6 19 / 0.86) 36%, rgb(11 6 19 / 0.12) 62%), linear-gradient(180deg, var(--c-ink) 0%, transparent 14%, transparent 70%, var(--c-ink) 100%); }
.chap--trust .chap__words { width: min(480px, 100%); margin-left: auto; }
.chap--trust .chap__scene { height: 300px; margin-top: 10px; }
.chap__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin-top: 26px; }
.chap__strip li { border-bottom: 0; }

/* 4: a frame, the words offset to the right above it, the cards on the side clear of her face */
.chap--leads .chap__head { width: min(790px, 100%); margin-left: auto; }
.chap--leads .chap__img { object-position: 50% 30%; }
.chap--leads .chap__scene { left: clamp(14px, 2vw, 28px); top: 50%; translate: 0 -50%; width: 500px; height: 580px; }
.chap--leads .chap__list { left: clamp(360px, 29vw, 390px); bottom: clamp(16px, 2.2vw, 30px); width: min(340px, 28%); }

/* what it changes: the same owner's Tuesday, the picture itself changing between the sides */
.wk { padding-top: clamp(24px, 3vw, 44px); }
.wk__stage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: clamp(560px, 47vw, 720px); margin-top: clamp(32px, 4vw, 52px); }
.wk__stage::after { content: ""; position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(180deg, var(--c-brand), var(--c-accent)); box-shadow: 0 0 22px var(--c-glow); }
.wk__side { position: relative; overflow: hidden; background: var(--c-ink-2); }
.wk__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.wk__side--before .wk__img { object-position: 62% 40%; filter: saturate(0.5) brightness(0.62) contrast(1.05); }
.wk__side--after .wk__img { object-position: 34% 30%; filter: saturate(1.06) brightness(0.92); }
.wk__side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 6 19 / 0.5) 0%, transparent 22%, transparent 64%, rgb(11 6 19 / 0.5) 100%); }
.wk__tag { position: absolute; z-index: 2; top: 18px; padding: 8px 14px; border-radius: 999px; background: rgb(11 6 19 / 0.7); border: 1px solid var(--c-hair-strong); font: 600 var(--fs-small)/1.2 var(--font-ui); color: var(--c-on-ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wk__side--before .wk__tag { left: clamp(16px, 2.4vw, 34px); }
.wk__side--after .wk__tag { right: calc(clamp(16px, 2.4vw, 34px) + 56px); background: rgb(88 0 255 / 0.72); border-color: var(--c-brand-light); }
.wk__cards { position: absolute; z-index: 2; bottom: clamp(16px, 2.4vw, 34px); display: grid; gap: 8px; width: min(286px, 44%); list-style: none; margin: 0; padding: 0; }
.wk__side--before .wk__cards { left: clamp(16px, 2.4vw, 34px); }
.wk__side--after .wk__cards { right: clamp(16px, 2.4vw, 34px); }
.wk__card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; box-sizing: border-box; padding: 8px 16px; border-radius: var(--radius-m); background: rgb(20 12 33 / 0.84); border: 1px solid var(--c-hair-strong); box-shadow: var(--shadow-m); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.wk__card span { font: 500 var(--fs-small)/1.25 var(--font-ui); color: var(--c-on-ink-soft); }
.wk__card b { flex: none; font: 650 1.25rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--c-on-ink); }
.wk__side--after .wk__card { border-color: rgb(143 92 255 / 0.6); }
.wk__side--after .wk__card b { color: var(--c-accent-on-ink); }
.wk__stage .stop { top: 14px; right: 14px; }
@media (max-width: 900px) {
  .wk__stage { grid-template-columns: minmax(0, 1fr); height: auto; }
  .wk__stage::after { display: none; }
  .wk__side { display: flex; flex-direction: column; justify-content: flex-end; min-height: 540px; padding: 240px 16px 16px; box-sizing: border-box; }
  .wk__side + .wk__side { border-top: 2px solid var(--c-brand); }
  .wk__side::after { background: linear-gradient(180deg, transparent 0%, transparent 34%, rgb(11 6 19 / 0.82) 62%, var(--c-ink) 100%); }
  .wk__side--before .wk__img { object-position: 55% 0; height: 62%; }
  .wk__side--after .wk__img { object-position: 42% 0; height: 62%; }
  .wk__cards { position: relative; z-index: 2; inset: auto !important; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk__card { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 10px 12px; min-height: 76px; }
  .wk__side--after .wk__tag { right: auto; left: 16px; }
  .wk__side--before .wk__tag { left: 16px; }
}

/* the signature: the plan's mix, on the designed ground */
.mixp { padding-block: var(--section-y); }
.mixp__stage { position: relative; width: min(1100px, 100%); margin: clamp(32px, 4vw, 52px) auto 0; }
.mixp__stage .stop { top: -6px; right: 0; }
.mixp__scene { aspect-ratio: 1100 / 520; }
@media (max-width: 800px) { .mixp__scene { aspect-ratio: auto; } .mixp__stage { padding-top: 54px; } .mixp__stage .stop { top: 0; } }

/* how the owner sees it */
.chap--see .chap__in { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.chap--see .chap__words > h2 { margin-top: 0; }
.chap--see .chap__pic { height: 660px; margin-top: 0; }
.chap--see .chap__img { object-position: 70% 40%; }
.chap--see .chap__scene { left: clamp(14px, 2vw, 22px); top: 50%; translate: 0 -50%; width: 360px; height: 620px; }

/* the close */
.endband__pop { right: max(var(--gutter), 8%); bottom: 18%; }

/* under 1100 px: See's words stand above its frame, the strip takes two columns */
@media (max-width: 1100px) {
  .chap--see .chap__in { grid-template-columns: minmax(0, 1fr); }
  .chap__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chap--found .chap__in { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; }
}

/* the frames, stacked: the picture with its subject at the top, its scene standing on its lower half (at least half the
   scene stays on the photo at every width), then the services */
@media (max-width: 899.98px) {
  .chap__pic, .chap--see .chap__pic { height: auto; }
  .chap__pic .frame { position: relative; inset: auto; height: 350px; }
  .chap__pic .chap__scene, .chap--ads .chap__scene, .chap--leads .chap__scene, .chap--see .chap__scene { position: relative; inset: auto; left: auto; right: auto; top: auto; translate: none; width: min(500px, 100%); margin-inline: auto; }
  .chap__list, .chap--ads .chap__list, .chap--leads .chap__list { position: relative; inset: auto; left: auto; right: auto; bottom: auto; width: auto; margin-top: 20px; }

  .chap--ads .chap__scene { height: 440px; margin-top: -232px; }

  .chap--leads .frame { height: 270px; }
  .chap--leads .chap__img { object-position: 62% 12%; }
  .chap--leads .chap__scene { height: 300px; margin-top: -160px; }

  .chap--see .frame { height: 620px; }
  .chap--see .chap__img { object-position: 78% 50%; }
  .chap--see .chap__scene { height: 560px; margin-top: -300px; }
  .chap--see .chap__pic .stop { top: 262px; right: auto; left: 14px; }

  .chap--found { display: flex; flex-direction: column; padding-block: 0 56px; }
  .chap__bleed { position: relative; width: 100%; height: 400px; z-index: 0; }
  .chap__bleed .chap__img { object-position: 46% 50%; }
  .chap__bleed::after { background: linear-gradient(180deg, var(--c-ink) 0%, transparent 14%, transparent 100%); }
  .chap--found .chap__in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .chap--found .chap__scene { order: -1; justify-self: center; width: min(450px, 100%); height: 500px; margin-top: -262px; }
  .chap--found > .stop { top: 14px; right: 14px; z-index: 6; }

  .chap--trust { padding-block: 0 48px; }
  .chap__full { position: relative; inset: auto; height: 380px; z-index: 0; }
  .chap__full .chap__img { object-position: 22% 12%; }
  .chap__full::after { background: linear-gradient(180deg, var(--c-ink) 0%, transparent 16%, transparent 100%); }
  .chap--trust > .stop { top: 170px; right: 14px; z-index: 6; }
  .chap--trust .wrap { position: relative; }
  .chap--trust .chap__words { display: flex; flex-direction: column; width: 100%; }
  .chap--trust .chap__words .chap__scene { order: -1; width: min(420px, 100%); margin: -160px auto 22px; }
}
@media (max-width: 620px) {
  .chap__strip { grid-template-columns: minmax(0, 1fr); }
  .chap__strip li { border-bottom: 1px solid var(--c-hair); }
  .chap__strip li:last-child { border-bottom: 0; }
}
