@import url("../arsenal/thread.css");
/* how-it-works.css: the page on the thread. The line is the logo's dot-line, its dots in the four colors, drawn over the
   photos and the ground and behind the cards and scenes. */

/* ---------- the line ---------- */
.thread { --thread-link: 13px; --thread-gap: 21px; --thread-ink: var(--c-brand); }
.thread__svg { z-index: 1; }
.thread__links use:nth-child(4n + 1) { fill: var(--c-found); }
.thread__links use:nth-child(4n + 2) { fill: var(--c-answered); }
.thread__links use:nth-child(4n + 3) { fill: var(--c-booked); }
.thread__links use:nth-child(4n) { fill: var(--c-reviewed); }
/* below 960 px the steps stack and the line rests; each number still lights as it is reached */
@media (max-width: 960px) { .thread { --thread-narrow: 1; } }

/* a step's number: a node of the logo's line, lit in its color as the line plugs in */
.hiw-num { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--tone) calc(var(--lit, 0) * 100%), var(--c-paper-alt)); color: var(--c-ink); font: 800 1.375rem/1 var(--font-display); box-shadow: 0 0 0 3px var(--c-paper), 0 0 0 calc(3px + var(--lit-after, 1) * 12px) color-mix(in srgb, var(--tone) calc((1 - var(--lit-after, 1)) * 45%), transparent); }
.hiw-num[data-lit] { color: var(--tone-ink); }
.hiw-lane { position: absolute; width: 2px; height: 2px; }

/* ---------- the header: a tablet on a table, full width ---------- */
.hiw-hero { position: relative; display: flex; align-items: center; box-sizing: border-box; height: clamp(640px, 56vw, 1000px); overflow: hidden; background: var(--c-paper-alt); }
.hiw-hero__photo { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.hiw-hero__photo img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 12%; }
.hiw-hero__screen { font-size: 18px; --bk-r: 4px; }
.hiw-hero__photo [data-screen] { background: var(--c-paper-alt); }
.hiw-hero__wrap { position: relative; box-sizing: border-box; width: 100%; padding-inline: clamp(24px, 3vw, 48px); }
.hiw-hero__card { position: relative; z-index: 2; display: grid; justify-items: start; gap: 14px; box-sizing: border-box; width: min(470px, 31vw); padding: 32px 30px 26px; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.hiw-hero__card h1 { font-size: clamp(2.1rem, 1rem + 2.4vw, 3.25rem); line-height: 1.02; }
.hiw-hero__card > p { color: var(--c-ink-soft); font-size: 1.125rem; line-height: 1.45; }
.hiw-hero__button { margin-top: 6px; }
.hiw-hero__notes { position: absolute; z-index: 2; right: 0; top: 50%; width: 33.4vw; min-width: 480px; height: 460px; transform: translateY(-50%); }
.hiw-hero__notes [data-scene] { height: 100%; }
.hiw-hero__stop { top: 16px; right: 16px; }
@media (max-width: 1100px) {
  .hiw-hero { display: flex; flex-direction: column-reverse; align-items: stretch; height: auto; overflow: visible; background: none; }
  .hiw-hero__wrap { padding-inline: var(--gutter); }
  .hiw-hero__card { width: auto; max-width: 620px; padding: 18px 0 22px; border-radius: 0; background: none; box-shadow: none; }
  .hiw-hero__card h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .hiw-hero__notes { display: none; }
  .hiw-hero__photo { position: relative; inset: auto; height: 470px; margin-inline: var(--gutter); border-radius: var(--radius-l); }
  /* the tablet large in its box: the table drawn wider than the box, the tablet in its middle */
  .hiw-hero__photo img { inset: auto; left: calc(50% - max(460px, 50%)); top: -40px; width: max(920px, 100%); height: auto; aspect-ratio: 3 / 2; object-position: 50% 50%; }
  .hiw-hero__stop { top: auto; bottom: 14px; right: calc(var(--gutter) + 14px); }
}

/* ---------- your part: the owner on top, the three steps on the ground under her ---------- */
.hiw-yours { padding-block: var(--section-y) calc(var(--section-y) * 0.6); }
.hiw-yours__ground { padding: clamp(14px, 1.8vw, 24px); }
.hiw-yours__stage { position: relative; height: 500px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-line); }
.hiw-yours__clip { object-position: 50% 6%; }
.hiw-yours__card { position: absolute; left: 24px; top: 24px; display: grid; gap: 10px; box-sizing: border-box; width: min(440px, 44%); padding: 28px 28px 26px; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m); z-index: 2; }
.hiw-yours__card h2 { font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.75rem); }
.hiw-yours__card p { color: var(--c-ink-soft); font-size: 1.0625rem; line-height: 1.45; }
.hiw-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: -110px 0 0; padding: 0 clamp(8px, 1.4vw, 20px); list-style: none; }
.hiw-step { display: grid; align-content: start; gap: 14px; min-width: 0; }
.hiw-step__name { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; justify-self: start; margin: 0; padding: 6px 22px 6px 6px; border-radius: 999px; background: var(--c-paper); box-shadow: var(--shadow-m); font: 800 1.1875rem/1.1 var(--font-display); }
.hiw-step__name .hiw-num { width: 44px; height: 44px; font-size: 1.1875rem; box-shadow: 0 0 0 calc(var(--lit-after, 1) * 10px) color-mix(in srgb, var(--tone) calc((1 - var(--lit-after, 1)) * 45%), transparent); }
.hiw-step__scene { position: relative; z-index: 2; height: 372px; }
.hiw-step__scene [data-scene] { max-width: 420px; margin-inline: auto; }
@media (max-width: 960px) {
  .hiw-yours__stage { height: 490px; }
  .hiw-yours__clip { object-position: 60% 0; }
  .hiw-yours__card { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; padding: 20px 20px 18px; }
  .hiw-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 24px; padding: 0; }
  .hiw-step__scene { height: auto; min-height: 330px; }
}

/* ---------- our part: three framed photos down a center lane ---------- */
.hiw-ours { padding-block: calc(var(--section-y) * 0.4) var(--section-y); }
.hiw-ours__head { max-width: 540px; margin-bottom: var(--space-5); }
.hiw-rows { display: grid; gap: 56px; margin: 0; padding: 0; list-style: none; }
.hiw-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); align-items: center; }
.hiw-row > .hiw-num { grid-column: 2; grid-row: 1; justify-self: center; }
.hiw-row__words { grid-column: 1; grid-row: 1; display: grid; gap: 10px; padding-right: 32px; }
.hiw-row__words h3 { font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.25rem); }
.hiw-row__words p { color: var(--c-ink-soft); font-size: 1.0625rem; line-height: 1.5; }
.hiw-row__stage { grid-column: 3; grid-row: 1; position: relative; z-index: 2; height: 500px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-line); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tone) 100%, transparent); }
.hiw-row__stage > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.hiw-row--flip .hiw-row__words { grid-column: 3; padding: 0 0 0 32px; }
.hiw-row--flip .hiw-row__stage { grid-column: 1; }
.hiw-row__stop { top: 14px; right: 14px; }
.hiw-launch > img { object-position: 0 50%; }
.hiw-launch__slot { right: 14px; bottom: 14px; width: 340px; height: 300px; }
.hiw-leads > img { object-position: 100% 50%; }
.hiw-leads__slot { left: 8px; bottom: 8px; width: 310px; height: 300px; }
.hiw-tune > img { object-position: 100% 40%; }
.hiw-tune__slot { left: 14px; bottom: 14px; width: 320px; height: 290px; }
@media (max-width: 960px) {
  .hiw-ours__head { max-width: none; }
  .hiw-rows { gap: var(--space-5); }
  .hiw-row { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: 16px; }
  .hiw-row > .hiw-num { grid-column: 1; }
  .hiw-row__words, .hiw-row--flip .hiw-row__words { grid-column: 2; padding: 0; }
  .hiw-row__stage, .hiw-row--flip .hiw-row__stage { grid-column: 1 / -1; grid-row: 2; height: 580px; }
  .hiw-launch > img { object-position: 12% 0; }
  .hiw-row__stage.hiw-tune { height: 620px; }
  .hiw-launch__slot, .hiw-tune__slot { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .hiw-leads__slot { left: 8px; right: 8px; bottom: 8px; width: auto; }
}

/* ---------- what the plan holds ---------- */
.hiw-plan { padding-block: 0 var(--section-y); }
.hiw-plan__ground { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; padding: clamp(18px, 3vw, 40px); }
.hiw-plan__words { display: grid; gap: 14px; }
.hiw-plan__words h2 { font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.75rem); }
.hiw-plan__words p { color: var(--c-ink-soft); font-size: 1.0625rem; line-height: 1.5; }
.hiw-plan__slot { position: relative; z-index: 2; height: 580px; }
.hiw-plan__slot [data-scene] { height: 100%; }
.hiw-plan__stop { top: 8px; right: 8px; }
@media (max-width: 960px) {
  .hiw-plan__ground { grid-template-columns: minmax(0, 1fr); padding-bottom: 66px; }
  .hiw-plan__slot { height: 700px; }
  .hiw-plan__stop { top: auto; bottom: 12px; right: 12px; }
}

/* ---------- who runs it ---------- */
.hiw-team { padding-block: 0 var(--section-y); }
.hiw-team__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-6); align-items: center; }
.hiw-team__stage { position: relative; z-index: 2; height: 540px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-line); }
.hiw-team__stage > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 40%; }
.hiw-team__slot { right: 12px; bottom: 12px; width: 370px; height: 260px; }
.hiw-team__words { display: grid; gap: 14px; }
.hiw-team__words h2 { font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.75rem); }
.hiw-team__words p { color: var(--c-ink-soft); font-size: 1.0625rem; line-height: 1.5; }
@media (max-width: 960px) {
  .hiw-team__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .hiw-team__words { order: -1; }
  .hiw-team__slot { left: 8px; right: 8px; bottom: 8px; width: auto; }
}

/* ---------- the FAQ and the close: the line runs behind the questions and ends in the button ---------- */
.hiw-faq { position: relative; }
.hiw-faq .faq__list { position: relative; z-index: 2; }
.hiw-faq__lane { left: 50%; bottom: 48px; }
.hiw-close { align-items: flex-end; }
.hiw-close .band__wrap { z-index: auto; }
.hiw-close__lane { left: 58%; top: 48px; }
@media (max-width: 760px) { .hiw-close .band__media video { object-position: 44% 50%; } }
