/* Services (plan.md): the agency's own video first (Charlie, 12 Nov), the header (a handshake at a front door, the
   words on the left, the search on the right), the stack of the four groups (`stack-cards`, as it stands), the
   signature `gaps`, the mix over the owner's photo, the FAQ and the close on the finished backyard. Only places and
   sizes; the look is in design\components.css, but for the video's frame and button, which only this page has. */
@import url("../arsenal/stack-cards.css");

/* ---- video: the agency's 1:35 video above the fold, on the alt paper with the riser line's faint arc. Its frame is as
   wide as the screen's height lets the whole picture show under the bar (up to 1040 px); its button lies over the
   poster's lower left, clear of the presenter's face; a click swaps the poster for Vimeo's player (services.js). ---- */
.svc-video { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(18px, 3vw, 40px) clamp(26px, 3.6vw, 48px); background: var(--c-paper-alt); }
.svc-video > .wrap { position: relative; z-index: 1; }
.vid { --vid-room: 170px; width: min(100%, 1040px, max(30rem, calc((100vh - var(--vid-room)) * 16 / 9))); margin-inline: auto; }
@supports (height: 100svh) { .vid { width: min(100%, 1040px, max(30rem, calc((100svh - var(--vid-room)) * 16 / 9))); } }
.vid__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ink) 10%, transparent), var(--shadow-l); }
.vid__frame > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.vid__play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; gap: clamp(12px, 1.4vw, 18px); box-sizing: border-box; width: 100%; padding: clamp(14px, 2.6vw, 30px); border: 0; border-radius: inherit; background: linear-gradient(to top, color-mix(in srgb, var(--c-ink) 80%, transparent) 0%, color-mix(in srgb, var(--c-ink) 34%, transparent) 24%, transparent 44%); color: var(--c-on-ink); font: inherit; text-align: left; cursor: pointer; }
.vid__icon { display: grid; flex: none; place-items: center; width: clamp(52px, 5vw, 72px); aspect-ratio: 1; border-radius: 50%; background: var(--c-accent); color: var(--c-on-brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-accent) 26%, transparent), 0 12px 26px -12px rgba(0, 0, 0, 0.7); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.vid__icon svg { width: 40%; height: 40%; margin-left: 8%; fill: currentColor; }
.vid__text { display: grid; gap: 3px; padding-bottom: 2px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.vid__text b { font: 600 clamp(1.05rem, 0.92rem + 0.45vw, 1.35rem)/1.2 var(--font-ui); }
.vid__text > span { font: 500 0.9375rem/1.3 var(--font-ui); font-variant-numeric: tabular-nums; }
.vid__play:hover .vid__icon, .vid__play:focus-visible .vid__icon { transform: scale(1.06); box-shadow: 0 0 0 9px color-mix(in srgb, var(--c-accent) 30%, transparent), 0 12px 26px -12px rgba(0, 0, 0, 0.7); }
.vid__play:focus-visible { outline: 3px solid var(--c-brand-on-ink); outline-offset: -7px; }
.vid__player { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity var(--dur-med) var(--ease-out); }
.vid__frame.is-ready .vid__player { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .vid__icon, .vid__player { transition: none; } }

/* ---- hero ---- */
.phead--svc { display: grid; min-height: clamp(600px, 86vh, 800px); }
.phead--svc .phead__media img { object-position: 46% 42%; }
.phead--svc .phead__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 82%, transparent) 34%, color-mix(in srgb, var(--c-ink) 16%, transparent) 58%, transparent 74%); }
.phead--svc .phead__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(56px, 6vw, 88px) clamp(96px, 9vw, 124px); }
.phead--svc .phead__copy { max-width: 35rem; }
.phead--svc h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.7rem); }
.phead--svc .phead__scene { justify-self: end; width: min(100%, 480px); }
.svc-search { width: 100%; }

/* ---- path: the four groups, stacked ---- */
.svc-stack { --stack-top: 104px; --sk-surface: var(--c-paper); }
.svc-stack .stack-cards__num { color: var(--c-accent-text); }
.svc-stack .stack-cards__points b { color: var(--c-ink); font-weight: 600; }
.svc-stack .stack-cards__float .fc { width: 100%; box-sizing: border-box; }

/* ---- gaps: the signature, on the paper with the riser line's faint arc ---- */
.gaps { position: relative; overflow: hidden; }
.gaps__in { position: relative; z-index: 1; }
.gaps__stage { position: relative; }
.gaps__scene { height: 440px; }
@media (max-width: 1180px) { .gaps__scene { height: 620px; } }
.gaps__stop { top: 0; right: 0; }

/* ---- mix: the words left, the owner's photo right with the shares over its clear left side ---- */
.mix__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(28px, 4.5vw, 72px); }
.mix__head { margin-bottom: 0; }
.mix__cta { display: grid; gap: var(--space-2); justify-items: start; margin-top: var(--space-3); }
.mix__stage { position: relative; min-height: 600px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-paper-alt); }
.mix__media { position: absolute; inset: 0; }
.mix__media img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 70% 40%; }
.mix__scene { position: absolute; left: 0; top: 0; bottom: 0; width: min(60%, 470px); display: grid; place-items: center; padding-left: 8px; }
.mix__stop { top: 16px; right: 16px; }

/* ---- close: the finished backyard, the words on the left, Dana's review on the right ---- */
.close--svc .close__media img { object-position: 50% 62%; }
.close__review { position: absolute; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: clamp(96px, 11vw, 150px); z-index: 1; display: grid; gap: 4px; padding: 16px 20px 17px; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-l); }
.close__review b { font-size: 16px; font-weight: 600; }
.close__review span:last-child { font-size: 13.5px; color: var(--c-ink-soft); }

/* ---- the phone and the tablet ---- */
@media (max-width: 1000px) {
  .mix__in { grid-template-columns: minmax(0, 1fr); }
  .mix__stage { min-height: 560px; }
}
@media (max-width: 900px) {
  .close__review { display: none; }
}
@media (max-width: 760px) {
  .phead--svc { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .phead--svc .phead__in { display: contents; }
  .phead--svc .phead__copy { grid-row: 1; padding: 40px var(--gutter) 30px; }
  .phead--svc .phead__media { position: relative; grid-row: 2; height: 280px; inset: auto; z-index: 0; }
  .phead--svc .phead__media::after { display: none; }
  .phead--svc .phead__media img { object-position: 44% 40%; }
  .phead--svc .phead__scene { position: relative; z-index: 2; grid-row: 3; justify-self: center; width: calc(100% - 2 * var(--gutter)); margin-top: -132px; padding-bottom: 40px; }
  .phead--svc .phead__stop { position: relative; z-index: 3; grid-row: 2; top: auto; right: auto; justify-self: end; align-self: start; margin: 12px; }
  .gaps__scene { height: 960px; }
  .mix__stage { min-height: 0; display: grid; }
  .mix__media img { object-position: 80% 18%; }
  .mix__scene { position: relative; width: auto; margin: 250px 10px 10px; padding: 0; }
  .mix__stop { top: 12px; right: 12px; }
}
