/* websites.css: the Websites page (plan.md, Websites; F2: the free mockup and her samples), placed with the tokens of
   system.css. Her samples stand in white frames (a browser window, its phone view over a corner) on soft gray with the
   site's grid of squares, each with the mint "Free Mockup" badge. A new sample comes into view square by square: the
   kit's sequence gives each item --kit-in, and each square of it lights after its own delay (--d), from the lower left
   to the upper right, the mark's direction. Never a gradient. */

/* the header's main button shows quiet on this page: the page's own action, the free mockup, leads */
.page-web .site-header__cta { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-on-ink) 36%, transparent); }
.page-web .site-header__cta:hover { background: color-mix(in srgb, var(--c-on-ink) 10%, transparent); }

/* ---- square by square ---- */
/* the slide carries its screenshot (an inline style, so its address resolves from the page) at no size; each square
   takes it over (inherit) and draws its own piece */
.ws__tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr);
  background-size: 0 0; background-repeat: no-repeat; }
.ws__tiles i { --on: clamp(0, calc((var(--kit-in, 1) - var(--d)) * 5), 1); display: block; background-image: inherit; background-repeat: no-repeat;
  opacity: var(--on); transform: scale(calc(0.84 + 0.16 * var(--on))); }

/* ---- hero: the words, and a laptop on a white desk whose screen shows her samples in turn ---- */
.web-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6.5vw, 96px); }
.web-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.web-hero__words { display: grid; gap: 22px; justify-items: start; }
.web-hero__line { margin: 0; max-width: 34ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-navy-soft); }
.web-hero__media { position: relative; aspect-ratio: 1.3; border-radius: var(--radius-l); overflow: hidden; background: var(--c-paper); }
.web-hero__shot { position: absolute; inset: 0; margin: 0; }
.web-hero__shot > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.ws { position: absolute; inset: 0; overflow: hidden; background: var(--c-paper); }
.ws__slide { position: absolute; inset: 0; }
.ws__slide--first img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; }
/* the screen is 1280 x 800 in its own pixels: squares of 160, each with its piece of a screenshot drawn 800 high */
.ws .ws__tiles i { background-size: 1472px 800px; background-position: calc(var(--x) * -160px - 96px) calc(var(--y) * -160px); }
.web-hero__badge { position: absolute; right: 24%; top: 21%; z-index: 3; }
.web-hero__stop { top: 12px; right: 12px; }
.web-hero__px--1 { top: 12%; left: 3%; }
.web-hero__px--2 { bottom: 10%; left: 47%; }

/* ---- mockup: the signature, how the free mockup works ---- */
.mockup { overflow: hidden; }
.mk { position: relative; display: grid; grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.mk-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mk-step { --l: var(--kit-in, 1); display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; padding: 18px 20px; border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--c-paper) calc(var(--l) * 100%), transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-line) calc((1 - var(--l)) * 100%), transparent), 0 8px 22px -12px color-mix(in srgb, var(--c-navy) calc(var(--l) * 30%), transparent); }
.mk-step__n { grid-row: 1 / span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; font: 700 20px/1 var(--font-display);
  background: color-mix(in srgb, var(--c-brand) calc(var(--l) * 100%), var(--c-paper)); color: color-mix(in srgb, var(--c-on-brand) calc(var(--l) * 100%), var(--c-ink-soft));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-line) calc((1 - var(--l)) * 100%), transparent); }
.mk-step h3 { align-self: end; font: 700 var(--fs-h3)/1.25 var(--font-head); }
.mk-step p { margin: 0; font: 500 var(--fs-small)/1.5 var(--font-ui); color: var(--c-ink-soft); }
.mk-stage { position: relative; }
.mk-stop { top: 0; left: 0; }
.mk-pic { position: relative; padding: 64px 0 76px; }
.mk-frame { position: relative; margin-right: 13%; border-radius: 14px; overflow: hidden; background: var(--c-paper); box-shadow: var(--shadow-l); }
.mk-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--c-line); }
.mk-bar i { width: 9px; height: 9px; border-radius: 3px; background: var(--c-line); }
.mk-bar span { margin-left: 12px; padding: 4px 12px; border-radius: 6px; background: var(--c-paper-alt); font: 500 13px/1.3 var(--font-ui); color: var(--c-ink-soft); }
.mk-screen { position: relative; aspect-ratio: 1886 / 1026; overflow: hidden; background: var(--c-paper-alt); }
/* the owner's form sits inside the homepage that replaces it (the same item of the sequence): it leaves as the last
   squares land, so nothing stays hidden under them */
.mk-form { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 14px; background: var(--c-paper-alt);
  opacity: calc(1 - clamp(0, (var(--kit-in, 0) - 0.62) * 3, 1)); }
.mk-form__title { margin-bottom: 2px; font: 700 17px/1.2 var(--font-head); color: var(--c-ink); }
.mk-field { display: grid; grid-template-columns: 110px minmax(0, 210px); align-items: center; gap: 10px; }
.mk-field > span:first-child { font: 500 13px/1.3 var(--font-ui); color: var(--c-ink-soft); text-align: right; }
.mk-input { display: block; height: 36px; padding: 0 12px; border-radius: 8px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.mk-input b { display: block; font: 600 14px/36px var(--font-ui); color: var(--c-ink); white-space: nowrap; clip-path: inset(0 calc((1 - var(--kit-in, 1)) * 100%) 0 0); }
.mk-form__send { margin-top: 4px; padding: 10px 16px; border-radius: 8px; background: var(--c-brand); color: var(--c-on-brand); font: 700 14px/1 var(--font-ui);
  scale: calc(1 - 0.07 * sin(calc(var(--kit-in, 0) * 180deg)));
  box-shadow: 0 0 0 calc(var(--kit-in, 0) * 12px) color-mix(in srgb, var(--c-accent) calc((1 - var(--kit-in, 0)) * 70%), transparent); }
.mk-site i { background-size: 800% 500%; background-position: calc(var(--x) * 100% / 7) calc(var(--y) * 25%); }
.mk-badge { position: absolute; left: 12px; bottom: 12px; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)) scale(calc(0.8 + 0.2 * var(--kit-in, 1))); }
.mk-cal { position: absolute; right: 0; top: 0; z-index: 2; display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--c-paper); box-shadow: var(--shadow-m);
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 10px)); }
.mk-cal b { font: 700 14px/1.2 var(--font-ui); }
.mk-cal__days { display: flex; gap: 10px; }
.mk-day { display: grid; justify-items: center; gap: 5px; font: 600 13px/1.2 var(--font-ui); color: var(--c-ink-soft); }
.mk-day i { width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--c-brand) calc(var(--kit-in, 1) * 100%), var(--c-paper-alt)); }
.mk-phone { position: absolute; right: 2%; bottom: 40px; z-index: 2; width: 21%; aspect-ratio: 410 / 712; border: 5px solid var(--c-charcoal); border-radius: 18px; overflow: hidden;
  background: var(--c-paper); box-shadow: var(--shadow-l); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 24px)); }
.mk-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.mk-choose { position: absolute; left: 34%; bottom: 0; z-index: 3; display: flex; gap: 10px; padding: 10px; border-radius: 14px; background: var(--c-paper); box-shadow: var(--shadow-l);
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.mk-choose__go, .mk-choose__ask { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9px; font: 700 14px/1 var(--font-ui); white-space: nowrap; }
.mk-choose__go { background: var(--c-brand); color: var(--c-on-brand);
  box-shadow: 0 0 0 calc(var(--kit-in, 0) * 10px) color-mix(in srgb, var(--c-accent) calc((1 - var(--kit-in, 0)) * 70%), transparent); }
.mk-choose__ask { color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); }

/* ---- changes: a request from the site, answered and booked ---- */
.changes { padding-bottom: 0; }
.changes__head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.changes__media { position: relative; height: clamp(520px, 46vw, 680px); overflow: hidden; background: var(--c-charcoal); }
.changes__media > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 30% 12%; }
.changes__stage { position: absolute; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: 12%; width: min(420px, 34%); }
.changes__stage .changes__scene { display: block; }
.changes__stop { top: 16px; right: 16px; }

/* ---- gallery: her nine samples, in white frames on soft gray ---- */
.gallery { overflow: hidden; }
.gal-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto clamp(28px, 3.5vw, 44px); }
.gal-filter { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line);
  font: 600 var(--fs-small)/1 var(--font-ui); cursor: pointer; transition: background-color var(--dur-fast); }
.gal-filter:hover { background: var(--c-paper-alt); }
.gal-filter[aria-pressed="true"] { background: var(--c-charcoal); color: var(--c-on-ink); box-shadow: none; }
.gal-filter:focus-visible, .gal-tile:focus-visible { outline: 3px solid var(--c-electric); outline-offset: 4px; }
.gal-grid { columns: 3 300px; column-gap: clamp(18px, 2.2vw, 32px); }
.gal-tile { position: relative; display: block; width: 100%; margin: 0 0 clamp(24px, 2.6vw, 36px); padding: 0; border: 0; border-radius: 14px; background: none; color: var(--c-ink);
  text-align: left; font: inherit; cursor: pointer; break-inside: avoid; }
.gal-tile[hidden] { display: none; }
.gal-art { position: relative; display: block; padding: 0 8% 16% 0; }
.gal-frame { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--c-paper); box-shadow: var(--shadow-m);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med); }
.gal-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.gal-bar i { width: 7px; height: 7px; border-radius: 2px; background: var(--c-line); }
.gal-frame img { display: block; width: 100%; height: auto; }
.gal-badge { position: absolute; left: 10px; bottom: 10px; }
.gal-phone { position: absolute; right: 0; bottom: 0; display: block; width: 25%; border: 4px solid var(--c-charcoal); border-radius: 14px; overflow: hidden; background: var(--c-paper);
  box-shadow: var(--shadow-l); transition: transform var(--dur-med) var(--ease-out); }
.gal-phone img { display: block; width: 100%; height: auto; }
/* the tall ones: the phone large at the lower left, the computer smaller behind it */
.gal-tile--tall .gal-art { padding: 0 0 calc(54% - 22px) 18%; }
.gal-tile--tall .gal-phone { left: 0; right: auto; width: 42%; }
.gal-tile--tall .gal-badge { left: auto; right: 10px; }
.gal-cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font: 600 var(--fs-small)/1.3 var(--font-ui); }
.gal-cap i { flex: none; width: 10px; height: 10px; border-radius: 2.5px; background: var(--c-line); transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.gal-tile:hover .gal-frame { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.gal-tile:hover .gal-phone { transform: translateY(-8px); }
.gal-tile:hover .gal-cap i { background: var(--c-accent); transform: translate(3px, -3px); }
.gal-more { margin: 8px 0 0; text-align: center; }
/* the larger view */
.gal-dialog { box-sizing: border-box; width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 0;
  border-radius: var(--radius-l); overflow: auto; background: var(--c-paper); color: var(--c-ink); box-shadow: 0 30px 80px -20px rgba(10, 26, 47, .6); }
.gal-dialog::backdrop { background: color-mix(in srgb, var(--c-charcoal) 80%, transparent); }
.gal-dialog__in { display: grid; gap: 16px; padding: clamp(14px, 2vw, 24px); }
.gal-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gal-dialog__title { margin: 0; font: 700 var(--fs-h3)/1.2 var(--font-head); }
.gal-dialog__close, .gal-dialog__nav { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px;
  background: var(--c-paper-alt); color: var(--c-ink); cursor: pointer; }
.gal-dialog__close:hover, .gal-dialog__nav:hover { background: var(--c-line); }
.gal-dialog__close:focus-visible, .gal-dialog__nav:focus-visible { outline: 3px solid var(--c-electric); outline-offset: 2px; }
.gal-dialog__close svg, .gal-dialog__nav svg { width: 22px; height: 22px; }
.gal-dialog__view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.25fr); gap: clamp(14px, 2vw, 24px); align-items: end; }
.gal-phone--big { position: relative; width: 100%; border-width: 6px; border-radius: 22px; }
.gal-dialog__foot { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ---- request: the free mockup request, beside a sample in its white frame ---- */
.request__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.request__head { margin-bottom: clamp(20px, 2.4vw, 28px); }
.rq { display: grid; gap: 20px; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m), inset 0 0 0 1px var(--c-line); }
.rq-marks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.rq-marks li { display: flex; align-items: center; gap: 8px; font: 600 13px/1.2 var(--font-ui); color: var(--c-ink-soft); }
.rq-marks li::before { content: ""; width: 24px; height: 6px; border-radius: 3px; background: var(--c-line); }
.rq-marks li[aria-current="step"], .rq-marks li[data-kit-past] { color: var(--c-ink); }
.rq-marks li[aria-current="step"]::before, .rq-marks li[data-kit-past]::before { background: var(--c-brand); }
.rq-step { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rq-legend { margin-bottom: 4px; padding: 0; font: 700 var(--fs-h3)/1.25 var(--font-head); color: var(--c-ink); }
.rq-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rq-choice { position: relative; display: grid; justify-items: start; gap: 4px; padding: 16px; border-radius: var(--radius-m); background: var(--c-paper);
  box-shadow: inset 0 0 0 1.5px var(--c-line); cursor: pointer; transition: box-shadow var(--dur-fast), background-color var(--dur-fast); }
.rq-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rq-choice__pic { display: grid; place-items: center; width: 68px; height: 52px; margin-bottom: 6px; border-radius: 12px; background: var(--c-brand-light); color: var(--c-brand); }
.rq-choice__pic svg { width: 46px; height: 35px; }
.rq-choice b { font: 700 var(--fs-body)/1.2 var(--font-ui); }
.rq-choice > span:last-child { font: 500 var(--fs-small)/1.4 var(--font-ui); color: var(--c-ink-soft); }
.rq-choice:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink-soft); }
.rq-choice[data-kit-on] { background: var(--c-brand-light); box-shadow: inset 0 0 0 2px var(--c-brand); }
.rq-choice:has(input:focus-visible) { outline: 3px solid var(--c-electric); outline-offset: 2px; }
.rq-error { grid-column: 1 / -1; margin: 0; font: 600 var(--fs-small)/1.4 var(--font-ui); color: #B42318; }
.rq-field { display: grid; gap: 6px; }
.rq-field label { font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--c-ink); }
.rq-field input { box-sizing: border-box; width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: var(--radius-s); background: var(--c-paper);
  box-shadow: inset 0 0 0 1.5px var(--c-line); font: 500 var(--fs-body)/1.2 var(--font-ui); color: var(--c-ink); }
.rq-field input::placeholder { color: var(--c-ink-soft); }
.rq-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-electric); }
.rq-field[data-kit-invalid] input { box-shadow: inset 0 0 0 2px #B42318; }
.rq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rq-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.rq-back { min-height: 50px; padding: 0 18px; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--c-ink-soft); font: 600 var(--fs-body)/1 var(--font-ui); cursor: pointer; }
.rq-back:hover { color: var(--c-ink); background: var(--c-paper-alt); }
.request__sample { align-self: center; }

/* ---- faq ---- */
.web-faq__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.web-faq__head { margin-bottom: 0; }

/* ---- close: the split band, the words on navy at the left, the clip at the right with its corner stepped ---- */
.page-web #close { --tint-w: 50%; }
.band--split .band__media { left: 50%; clip-path: polygon(calc(var(--s) * 3) 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--s) * 3), var(--s) calc(var(--s) * 3),
  var(--s) calc(var(--s) * 2), calc(var(--s) * 2) calc(var(--s) * 2), calc(var(--s) * 2) var(--s), calc(var(--s) * 3) var(--s)); }
.band--split .band__media > video { object-position: 22% 40%; }
@media (min-width: 901px) { .band--split .band__words > .band__title { max-width: min(560px, calc(50% - 64px)); } }
.web-close__more { color: var(--c-brand-on-ink); }

/* ---- under 1000 ---- */
@media (max-width: 999px) {
  .web-hero__in, .mk, .request__in { grid-template-columns: minmax(0, 1fr); }
  .request__sample { max-width: 560px; }
}
@media (max-width: 900px) {
  .band--split .band__media { left: auto; clip-path: none; }
  .web-faq__in { grid-template-columns: minmax(0, 1fr); }
  .changes__media { height: 600px; }
  .changes__media > video { object-position: 28% 50%; }
  .changes__stage { left: 16px; right: 16px; bottom: 16px; width: auto; max-width: 420px; margin-inline: auto; }
}
/* ---- the phone ---- */
@media (max-width: 639px) {
  .mk-pic { padding: 76px 0 70px; }
  .mk-frame { margin-right: 0; }
  .mk-field { grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: start; }
  .mk-field > span:first-child { text-align: left; }
  .mk-form { gap: 6px; }
  .mk-form__title { font-size: 15px; }
  .mk-input { width: 200px; height: 30px; }
  .mk-input b { line-height: 30px; font-size: 13px; }
  .mk-form__send { padding: 7px 12px; font-size: 13px; }
  .mk-phone { width: 26%; bottom: 56px; }
  .mk-choose { left: 0; right: 0; justify-content: center; }
  .rq-choices, .rq-grid { grid-template-columns: minmax(0, 1fr); }
  .gal-dialog__view { grid-template-columns: minmax(0, 1fr); }
  .gal-phone--big { width: 56%; justify-self: center; }
}
