/* websites.css: the Websites page's own placing and sizing. Components and tokens come from design\ (components.css,
   system.css). Every scene here keeps its words at full size (13 px and up): where a scene would have to shrink, the
   layout gives it room instead. */

/* ---------- 1. the header: words and box at the left, a framed photo panel at the right ---------- */
.webhead { background: radial-gradient(80% 70% at 0% 0%, rgba(241, 128, 46, 0.1), rgba(241, 128, 46, 0) 60%), var(--c-night); }
.webhead__in { display: grid; grid-template-columns: minmax(0, 1fr); }
.webhead__copy { display: grid; gap: 18px; align-content: center; padding: 28px var(--gutter) 32px; }
.webhead .phead__line { margin-top: 0; }
.webhead .book { margin-top: 4px; }
.webhead .phead__note { margin-top: -4px; }
.webhead__proof { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.webhead__panel { position: relative; overflow: hidden; height: 600px; margin: 0 var(--gutter) 24px; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-night); }
.webhead__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 0% 40%; }
.webhead__wash { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 58%, rgba(13, 13, 15, 0.38) 100%); }
.webhead__scene { position: absolute; inset: 0; z-index: 2; }
.webhead__panel .stop { top: 14px; right: 14px; bottom: auto; }
@media (min-width: 1100px) {
  .webhead__in { --side: max(var(--gutter), calc((100% - var(--max-w)) / 2)); grid-template-columns: var(--side) minmax(0, 600px) minmax(0, 1fr) var(--side); min-height: calc(100svh - var(--header-h)); }
  .webhead__copy { grid-column: 2; gap: 16px; padding: clamp(16px, 3vh, 44px) 48px clamp(16px, 3vh, 44px) 0; }
  .webhead .phead__title { font-size: min(clamp(2.5rem, 1.6rem + 3.4vw, 4.75rem), 7.2vh); }
  .webhead__panel { grid-column: 3; align-self: stretch; height: auto; min-height: 620px; margin: 28px 0; }
  .webhead__photo { object-position: 0% 50%; }
}
/* the phone: the photo mirrored, so his face is at the right and the contractor's site, on a phone at full size, at the
   left; the call card and the week strip over his work shirt */
@media (max-width: 699px) {
  .webhead__panel { height: 680px; }
  .webhead__photo { object-position: 33% 50%; transform: scaleX(-1); }
}

/* ---------- 2. the difference: the same homepage twice on the designed ground ---------- */
.diff { --ground-x: 12%; --ground-y: 0%; }
.diff { padding-top: clamp(56px, 6vw, 88px); }
.diff .head { max-width: 60rem; margin-bottom: 28px; }
/* the window and its words fit one screen: the frame narrows on a short screen, never under the window's 900 px */
.diff__frame { position: relative; container-type: inline-size; max-width: clamp(900px, calc((100svh - 300px) * 1.75), 1120px); margin: 0 auto; }
/* the window is drawn at the frame's whole width (1120 x 640, scaled), with 26 px under it for the marks */
.diff__scene { position: relative; height: calc(57.142857cqw + 26px); }
.diff__range { position: absolute; z-index: 6; left: 0; top: 0; width: 100%; height: 57.142857cqw; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.diff__frame:has(.diff__range:focus-visible) .cs-knob { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.diff__frame .stop { top: calc(100% + 10px); bottom: auto; left: 0; right: auto; }
@container (max-width: 899px) {
  .diff__scene { height: 700px; }
  .diff__range { left: 50%; width: min(360px, 100%); height: 700px; transform: translateX(-50%); }
  .diff__frame .stop { left: max(0px, calc(50% - 180px)); }
}
.diff__quotes { display: grid; gap: 22px 40px; max-width: 1120px; margin: 76px auto 0; }
@media (min-width: 760px) { .diff__quotes { grid-template-columns: 1fr 1fr; } }
.ground .quote__by { color: var(--c-on-night-soft); }

/* ---------- 3. looked after: the care log in glass on the bare wall, the remodeler on the right ---------- */
.care__in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .care__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }
.care__media { position: relative; overflow: hidden; height: 560px; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-l); }
.care__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 0% 50%; }
.care__scene { position: absolute; inset: 0; }
.care__media .stop { top: 14px; right: 14px; bottom: auto; }
/* the glass column on the bare wall, clear of his face (from about 50% of the photo's width) */
@media (min-width: 760px) { .care .care__scene .cl-col { left: 24px; top: 28px; width: min(350px, calc(100% - 48px)); } }
@media (max-width: 759px) { .care__media { height: 700px; } .care__photo { object-position: 60% 0%; } }
.care__copy { display: grid; gap: 20px; align-content: center; }
.care__copy .head__line { margin: 0; }
.care__ask { font-weight: 600; }

/* ---------- 4. real sites: the wall of client homepages ---------- */
.wall { position: relative; display: grid; overflow: hidden; background: var(--c-night); color: var(--c-on-night); }
.wall__copy { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: start; align-content: center; padding: var(--section-y) var(--gutter) 32px; max-width: 36rem; }
.wall__copy .head__line { margin: 0; }
.wall__scene { position: relative; height: 520px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.wall > .stop { top: auto; bottom: 16px; right: 16px; }
@media (min-width: 760px) { .wall__scene { height: 560px; } }
@media (min-width: 1000px) {
  .wall { grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); height: 640px; }
  .wall__copy { padding: 0 24px 0 max(var(--gutter), calc((100vw - var(--max-w)) / 2)); }
  .wall__scene { height: 640px; }
  /* the wall fades into the night under the words */
  .wall::after { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: 34%; width: 110px; pointer-events: none; background: linear-gradient(90deg, var(--c-night), rgba(13, 13, 15, 0)); }
  .wall > .stop { top: 16px; bottom: auto; }
}

/* ---------- 5. online stores: words and a real review at the left, the maker and her store at the right ---------- */
.store__in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .store__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.store__copy { display: grid; gap: 20px; }
.store__copy .head__line { margin: 0; }
.store__quote { margin-top: 6px; padding: 20px 22px; border-radius: var(--radius-l); background: var(--c-card); box-shadow: var(--shadow-m); }
.store__media { position: relative; overflow: hidden; height: 640px; border-radius: var(--radius-xl); background: var(--c-night); box-shadow: var(--shadow-l); }
.store__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 50%; }
.store__wash { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(13, 13, 15, 0.35) 0%, rgba(13, 13, 15, 0) 45%); }
.store__scene { position: absolute; inset: 0; }
.store__media .stop { top: 14px; left: 14px; right: auto; bottom: auto; }
/* the phone: her whole moment in the frame, the order landing over the dark wall above her and the week over the table */
@media (max-width: 599px) {
  .store__photo { object-position: 50% 50%; }
  .store__wash { display: none; }
  .store__media .stop { top: auto; bottom: 122px; left: auto; right: 14px; }
}

/* ---------- 6. the close: the booking box on the photo's calm right ---------- */
.webclose__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 0% 40%; }
.webclose::before { background: linear-gradient(270deg, rgba(13, 13, 15, 0.96) 0%, rgba(13, 13, 15, 0.9) 36%, rgba(13, 13, 15, 0.42) 60%, rgba(13, 13, 15, 0.06) 100%); }
.webclose__in { margin-left: auto; }
.webclose__card { position: absolute; z-index: 1; left: 31%; top: 58%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; }
.webclose__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--c-paper); }
.webclose__mark .x { width: 26px; height: 26px; border-radius: 7px; }
.webclose__text { display: grid; gap: 2px; }
.webclose__text b { font: 700 var(--scene-fs-l)/1.15 var(--font-ui); }
.webclose__text small { font: 500 var(--scene-fs-s)/1.2 var(--font-ui); color: var(--c-ink-soft); }
@media (max-width: 1099px) { .webclose__card { left: auto; right: 24px; top: 24px; } }
@media (max-width: 899px) { .webclose::before { background: linear-gradient(180deg, rgba(13, 13, 15, 0.5) 0%, rgba(13, 13, 15, 0.92) 40%, rgba(13, 13, 15, 0.97) 100%); } }
@media (max-width: 759px) {
  .webclose { padding-top: 0; }
  .webclose .close__media { position: relative; inset: auto; z-index: 0; height: 320px; margin-bottom: 28px; }
  .webclose .close__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 60%, var(--c-night) 100%); }
  .webclose__photo { object-position: 18% 30%; }
  .webclose::before { display: none; }
  .webclose__card { right: 16px; top: auto; bottom: 28px; }
}
