/* The home page (the 2026 redesign). css/studio.css draws every shared part (header, menu, loader,
   buttons, sections, cards, logo strip, numbers, questions, fields, closing band) and css/ig.css the Instagram screens.
   This sheet adds only what the home page has on its own: the "brands." lens, the work grid, the fan of phones, the
   packages, the service picker, Meet the team, the reviews row, the contact steps and thank-you, the review pop-up
   (/feedback) and the newsletter band. Motion is transform and opacity only, and everything rests with reduced
   motion. */

/* ---------------------------------------------------------------- "I turn businesses into brands."
   The lens is a signature effect (js/src/main.js turns the filter on only on a fine pointer, with motion allowed,
   outside Safari). */
.brands-word { display: inline-block; font-style: normal; }
/* The lens covers the whole headline; it outranks the reveal's blur, which would otherwise cancel it. */
.lens-head.lens-on, .sx-js .lens-head.lens-on.sx-rv, .sx-js .lens-head.lens-on.sx-rv.is-in { filter: url(#brands-lens); will-change: filter; }
@media (prefers-reduced-motion: reduce) {
  .brands-word, .lens-head { filter: none !important; }
}

/* ---------------------------------------------------------------- The work: five cards of one shape
   Every card is 16:10, and every photo is cut for 16:10 with its subject whole. Wide screens: six columns, the first two cards three each and the next three two each, so two over three
   with no hole. Tablets (999 px and under): two columns, the first card the full row. Phones (560 px and under): one
   column. The name comes up over the photo with the round arrow on hover or keyboard focus and always shows on a touch
   screen; the Mock label always shows. See all projects and Services sit under the cards (.home-work-more). */
.home-work {
  list-style: none; margin-top: clamp(40px, 4.4vw, 56px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px; text-align: left;
}
.home-tile { min-width: 0; grid-column: span 2; }
.home-tile:nth-child(-n + 2) { grid-column: span 3; }
.home-tile > a {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 24px; background: var(--card);
  color: #fefffe; text-decoration: none; isolation: isolate;
}
.home-tile > a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.home-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease);
}
/* A photo that fails to load leaves the dark card, not its description painted over it (screen readers still get it). */
.home-tile img, .home-pk-img { color: transparent; font-size: 0; }
.home-tile-name {
  position: absolute; inset: auto 0 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 64px 16px 16px 22px; font-size: 15px; line-height: 1.3;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55) 48%, rgba(0, 0, 0, .82));
  opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.home-tile-name .sx-arrow { width: 34px; height: 34px; background: #fefffe; color: #000; }
.home-tile-name .sx-arrow svg { width: 14px; height: 14px; }
.home-tile > a:hover .home-tile-name, .home-tile > a:focus-visible .home-tile-name { opacity: 1; transform: none; }
.home-tile > a:hover .home-tile-name .sx-arrow, .home-tile > a:focus-visible .home-tile-name .sx-arrow { transform: rotate(45deg); }
.home-tile-tag {
  position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  background: #fefffe; color: #000; font-size: 12px; line-height: 1.2;
}
@media (hover: hover) and (pointer: fine) {
  .home-tile > a:hover img { transform: scale(1.04); }
}
@media (hover: none) {
  .home-tile-name { opacity: 1; transform: none; padding: 44px 12px 12px 16px; font-size: 14px; }
  .home-tile-name .sx-arrow { width: 30px; height: 30px; }
}
/* On wide screens the cards of a row come in one after another (the shared reveal, css/studio.css). */
@media (min-width: 1000px) {
  .sx-js .home-tile.sx-rv:nth-child(2), .sx-js .home-tile.sx-rv:nth-child(4) { transition-delay: .08s; }
  .sx-js .home-tile.sx-rv:nth-child(5) { transition-delay: .16s; }
}
.home-work-more { margin-top: clamp(36px, 4vw, 52px); }

/* ---------------------------------------------------------------- Clients: the shared strip (css/studio.css). */
.home-clients .sx-logos-track img[src$="w-scrabble-tile.svg"] { height: clamp(26px, 2.6vw, 34px); }

/* ---------------------------------------------------------------- Social media
   Five phones with Instagram screens (css/ig.css) under the words. The resting layout comes first (no JavaScript,
   reduced motion): at 761 px and wider a fan, the reel in the middle and the others overlapping it with gentle turns;
   under 760 px a row to swipe. With motion on a wide screen the phones sweep in from both sides and settle into the fan
   as it comes up the screen (data-sx-stage="enter" on .home-fan: --p from js/studio.js, 0 when the fan's top enters the
   bottom of the screen, 1 when all of it is in view). Each phone's place in the fan: --x and --y in phone widths, --r. */
.home-reels { margin-top: clamp(72px, 8vw, 120px); text-align: center; overflow-x: clip; }
.home-fan { --w: clamp(150px, 19.5vw, 290px); position: relative; margin-top: clamp(40px, 4.4vw, 64px); }
.home-reel {
  position: relative; width: var(--w); aspect-ratio: 9 / 19.5; border-radius: calc(var(--w) * .14); overflow: hidden;
  background: #000; box-shadow: 0 0 0 3px #fefffe;
}
.home-reels-note { margin-top: clamp(22px, 2.4vw, 34px); padding-inline: var(--pad); font-size: 13px; color: var(--soft); }

@media (min-width: 761px) {
  .home-fan { height: calc(var(--w) * 2.5); }
  .home-reel {
    position: absolute; top: 0; left: 50%; margin-left: calc(var(--w) * -.5); z-index: var(--z);
    transform: translate(calc(var(--x) * var(--w)), calc(var(--y) * var(--w))) rotate(var(--r));
  }
  .home-reel--reel { --x: 0; --y: 0; --r: 0deg; --z: 3; }
  .home-reel--post-l { --x: -.82; --y: .07; --r: -6deg; --z: 2; }
  .home-reel--story { --x: .82; --y: .07; --r: 6deg; --z: 2; }
  .home-reel--profile { --x: -1.58; --y: .22; --r: -12deg; --z: 1; }
  .home-reel--post-r { --x: 1.58; --y: .22; --r: 12deg; --z: 1; }
}
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  /* --in runs 0 to 1 while the fan comes up the screen; each phone starts --sx out to its side (the reel from below)
     with a wider turn, and they are all in place a little before the whole fan is in view. */
  .sx-js .home-reel {
    --in: clamp(0, (var(--p, 1) - .06) * 1.5, 1);
    transform: translate(calc(var(--x) * var(--w) + (1 - var(--in)) * var(--sx)), calc((var(--y) + (1 - var(--in)) * var(--sy)) * var(--w))) rotate(calc(var(--r) * (1 + (1 - var(--in)) * 1.6)));
    will-change: transform;
  }
  .sx-js .home-reel--reel { --sx: 0vw; --sy: .5; opacity: calc(.15 + var(--in) * .85); }
  .sx-js .home-reel--post-l { --sx: -44vw; --sy: .3; }
  .sx-js .home-reel--story { --sx: 44vw; --sy: .3; }
  .sx-js .home-reel--profile { --sx: -60vw; --sy: .45; }
  .sx-js .home-reel--post-r { --sx: 60vw; --sy: .45; }
}
@media (max-width: 760px) {
  .home-reels { margin-top: 80px; }
  .home-fan {
    --w: min(64vw, 260px); display: flex; gap: 16px; margin-top: 32px; padding: 6px var(--pad) 10px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .home-fan::-webkit-scrollbar { display: none; }
  .home-fan:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  .home-reel { flex: none; scroll-snap-align: start; }
  .home-reels-note { margin-top: 16px; }
}

/* ---------------------------------------------------------------- What I do: the service picker (the A+W pattern)
   Without JavaScript every group shows in turn: its name, then its photo, line and links. js/src/main.js adds
   .is-ready and keeps one group open (.is-on). Wide screens: the names down the left and the open group on the right,
   every panel in the same grid area (the list sets the height, so nothing under it moves). Phones: each group opens
   under its own name. */
.home-pick { margin-top: 56px; text-align: left; }
.home-pick-name { font-weight: 400; }
.home-pick-name button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: #fefffe; text-align: left; cursor: pointer;
  font-size: clamp(26px, 3vw, 44px); line-height: 1.15; letter-spacing: -.01em; transition: color .25s var(--ease);
}
.home-pick-name button > span:first-child { text-wrap: balance; }
.home-pick-chev {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.home-pick-chev svg { width: 16px; height: 16px; }
.home-pick-panel { display: grid; gap: 18px; padding: 22px 0 34px; }
/* Photos and footage sit in the work cards' shape, 16:10, so every photo is whole (the client photos are the cards'
   own 16:10 cuts); the phone video keeps its taller 4:3 mat. */
.home-pick-media { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: var(--card); }
.home-pick-media img, .home-pick-media video { width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }
.home-pick-media--tall { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px 0; background: #0b0b0b; }
.home-pick-media--tall video { width: auto; height: 100%; aspect-ratio: 9 / 16; border-radius: 20px; }
.home-pick-media figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .66);
  font-size: 12.5px; line-height: 1.2;
}
.home-pick-line { max-width: 34em; font-size: 17px; line-height: 1.55; color: #e8e8e8; text-wrap: pretty; }
.home-pick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.home-pick-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: #fefffe; text-decoration: none; font-size: 14px;
  transition: background-color .25s, color .25s;
}
.home-pick-links a:hover { background: #fefffe; color: #000; }
.home-pick.is-ready .home-pick-name button { color: #8f8f8f; }
.home-pick.is-ready .is-on .home-pick-name button, .home-pick.is-ready .home-pick-name button:hover,
.home-pick.is-ready .home-pick-name button:focus-visible { color: #fefffe; }
.home-pick.is-ready .is-on .home-pick-chev { background: #fefffe; color: #000; box-shadow: none; transform: rotate(135deg); }
@media (min-width: 900px) {
  .home-pick.is-ready {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: repeat(8, auto) 1fr;
    column-gap: clamp(40px, 5vw, 96px); align-items: start;
  }
  .home-pick.is-ready .home-pick-item { display: contents; }
  .home-pick.is-ready .home-pick-name { grid-column: 1; }
  .home-pick.is-ready .home-pick-panel { grid-column: 2; grid-row: 1 / -1; position: sticky; top: 112px; padding: 4px 0 0; }
  .home-pick.is-ready .is-on .home-pick-chev { transform: rotate(45deg); }
}
@media (hover: hover) and (pointer: fine) {
  .home-pick-name button:hover .home-pick-chev { transform: translateX(3px); }
  .home-pick.is-ready .is-on .home-pick-name button:hover .home-pick-chev { transform: rotate(45deg) scale(1.06); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-pick.is-ready .is-on .home-pick-panel { animation: home-pick-in .5s var(--ease); }
  @keyframes home-pick-in { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------------------------------------------------------------- Packages
   No prices here. Each card: the name, its line, what it includes (/pricing's words, with /pricing's white circle
   and cut-out check on every line), then the project's photo with Book a call inside it and the project's name in its
   corner. The lines take the same height on wide screens, so the lists and photos line up across the cards. A button
   under the cards opens /pricing. */
.home-pk-grid {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left;
}
.home-pk { display: flex; flex-direction: column; min-width: 0; background: var(--card); border-radius: 32px; padding: 36px; }
.home-pk h3 { font-weight: 400; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -.01em; }
.home-pk-tag { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
@media (min-width: 961px) {
  .home-pk-tag { min-height: 4.65em; } /* three lines */
}
.home-pk-feats {
  list-style: none; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 13px;
  font-size: 14.5px; line-height: 1.45;
}
.home-pk-feats li { position: relative; padding-left: 30px; }
.home-pk-feats li::before { content: ""; position: absolute; left: 0; top: .12em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cmask id='c'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M5.6 10.3l2.9 2.9 5.9-6.1' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3C/defs%3E%3Ccircle cx='10' cy='10' r='10' fill='white' mask='url(%23c)'/%3E%3C/svg%3E") center / contain no-repeat; }
.home-pk-more { display: block; margin-top: 3px; font-size: 13.5px; color: var(--soft); }
.home-pk-all strong { font-weight: 500; }
.home-pk-media { position: relative; margin-top: auto; padding-top: 30px; }
.home-pk-img {
  width: 100%; height: auto; aspect-ratio: 325 / 300; border-radius: 22px; object-fit: cover; object-position: 50% 50%;
  background: var(--card-2);
}
.home-pk-site {
  position: absolute; top: 44px; left: 14px; max-width: calc(100% - 28px); padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .66); font-size: 12.5px; line-height: 1.2; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.home-pk-media .sx-btn { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.home-pk-promise {
  max-width: 46em; margin: 40px auto 0; font-size: 17px; line-height: 1.55; color: #fefffe; text-wrap: pretty;
}
.home-pk-next { margin-top: 30px; }

/* ---------------------------------------------------------------- Meet the team
   Round photos side by side, the second cut into the first by a black ring; the name and role under
   each. */
.home-team { --d: min(280px, 41vw); list-style: none; margin-top: 52px; display: flex; justify-content: center; }
.home-team li { display: grid; justify-items: center; align-content: start; width: var(--d); }
.home-team li + li { margin-left: calc(var(--d) * -.07); }
.home-team img {
  position: relative; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  object-position: 50% 22%; background: var(--card); box-shadow: 0 0 0 6px #000;
}
.home-team p { margin-top: 18px; display: grid; gap: 2px; }
.home-team strong { font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; }
.home-team span { font-size: 14px; color: var(--soft); }
.home-team-line { margin-top: 34px; max-width: 640px; }
.home-team-line + .home-team-line { margin-top: 12px; }
.home-team-more { margin-top: 14px; font-size: 15px; }
.home-team-more a { color: #fefffe; text-underline-offset: 4px; }
.home-team-more a:hover { color: var(--soft); }

/* ---------------------------------------------------------------- Numbers: each card's source line under it */
.sx-stat .home-stat-note { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--soft); }
.home-stat-note a { color: #fefffe; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Reviews: one row that moves on its own
   (js/src/main.js clones the cards for the loop and runs it: drag or swipe, a mouse over it or
   keyboard focus holds it, a tap holds and lets go on a touch screen). Cards sized by the length of the words; a long
   quote scrolls inside its card. */
/* The soft edges are two black fades over a frame that holds still, not a mask on the moving row: Safari on iPhone can
   drop a masked row that scrolls, and the section goes black. */
.rvm-frame { position: relative; margin-top: 48px; }
.rvm-frame::before, .rvm-frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 5%; pointer-events: none;
}
.rvm-frame::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(0, 0, 0, 0)); }
.rvm-frame::after { right: 0; background: linear-gradient(270deg, var(--bg), rgba(0, 0, 0, 0)); }
.home-reviews .rvm-row {
  overflow-x: auto; padding-block: 6px 18px; cursor: grab; user-select: none; scrollbar-width: none;
}
.rvm-row::-webkit-scrollbar { display: none; }
.rvm-row:active { cursor: grabbing; }
.rvm-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.rvm-track { display: flex; width: max-content; }
.rvm-row--single { cursor: default; }
.rvm-frame:has(.rvm-row--single)::before, .rvm-frame:has(.rvm-row--single)::after { display: none; }
.rvm-row--single .rvm-track { width: 100%; justify-content: center; }
.rvm-card {
  flex-shrink: 0; display: flex; flex-direction: column; width: 330px; margin: 0 8px; padding: 30px 30px 26px;
  border-radius: 28px; background: var(--card); text-align: left;
}
.rvm-card[data-size="mid"] { width: 410px; }
.rvm-card[data-size="long"] { width: 470px; }
.rvm-logo { width: auto; height: 30px; max-width: 150px; object-fit: contain; object-position: 0 50%; margin-bottom: 20px; opacity: .92; }
/* The wrap hugs its quote, so the fade below always sits on the quote's last lines; a card's spare height goes above
   the name instead (.rvm-by's auto margin) */
.rvm-quote-wrap { position: relative; flex: none; }
/* Eight whole lines, then the rest scrolls inside the card */
.rvm-quote {
  max-height: calc(8 * 1.65em + 2px); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; font-size: 16px;
  line-height: 1.65; color: #ececec; text-wrap: pretty;
}
.rvm-quote p { margin-bottom: .8em; }
.rvm-quote p:last-child { margin-bottom: 0; }
/* A long quote fades out over its last lines into the hint, instead of stopping at a hard edge */
.rvm-more {
  position: absolute; inset: auto 0 0; padding-top: 78px; text-align: center; font-size: 12px; color: var(--soft);
  background: linear-gradient(0deg, var(--card) 20%, rgba(20, 20, 20, .92) 34%, rgba(20, 20, 20, .7) 52%,
    rgba(20, 20, 20, .38) 72%, rgba(20, 20, 20, .12) 88%, rgba(20, 20, 20, 0));
  pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
}
.rvm-card.is-clipped .rvm-more { opacity: 1; }
.rvm-card.is-clipped.is-read .rvm-more { opacity: 0; }
.rvm-by { margin-top: auto; padding-top: 22px; display: grid; gap: 2px; }
.rvm-name { font-size: 20px; line-height: 1.3; }
.rvm-meta { font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.rvm-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 13.5px; }
.rvm-links a { color: #fefffe; text-underline-offset: 3px; }
.home-reviews-ask { margin-top: 44px; }
@media (max-width: 640px) {
  .rvm-card { width: 290px; padding: 24px 22px 22px; border-radius: 24px; }
  .rvm-card[data-size="mid"] { width: 310px; }
  .rvm-card[data-size="long"] { width: 320px; }
}

/* ---------------------------------------------------------------- Contact: the form on black, the direct column */
.home-contact-grid {
  margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: start; text-align: left;
}
.contact-form { display: grid; gap: 18px; }
.form-head { display: grid; gap: 8px; margin-bottom: 4px; }
.form-title { font-size: clamp(22px, 2vw, 28px); font-weight: 400; line-height: 1.25; }
.form-sub { font-size: 15px; color: var(--soft); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sx-field .opt { color: #a6a6a6; }
.sx-field textarea { min-height: 130px; }
.sx-field [aria-invalid="true"] { border-color: #ff8a80; }
.field-error { font-size: 14px; line-height: 1.4; color: #ffb4ab; }
.check { display: flex; gap: 12px; align-items: flex-start; max-width: 60em; font-size: 13.5px; line-height: 1.55; color: var(--soft); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; display: grid;
  place-items: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px; background: var(--card); cursor: pointer;
}
.check input:checked { background: #fefffe; border-color: #fefffe; }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #000; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.form-errors { padding: 14px 18px; border: 1px solid #ff8a80; border-radius: 16px; background: rgba(255, 138, 128, .08); font-size: 15px; line-height: 1.5; }
.form-errors p { margin-bottom: 6px; font-weight: 500; }
.form-errors ul { padding-left: 20px; }
.form-errors a { color: #ffb4ab; text-underline-offset: 2px; }
.form-legal { font-size: 13px; line-height: 1.5; color: var(--soft); }
.form-legal a { color: #fefffe; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.contact-submit { font-size: 15px; }
.contact-submit:disabled { opacity: .6; cursor: wait; }
.form-status { font-size: 14px; color: var(--soft); }
.form-status.is-err { color: #ffb4ab; }
/* The steps (js/src/main.js adds .is-stepped; without JavaScript it is the plain full form): the step label with the
   progress line under it, one question at a time with room under it, big choices of one height for the first, then
   Back and Next with clear space above. The fieldset's legend floats so the grid's gap applies under it. */
.home-step { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 20px; }
.home-step-q { float: left; width: 100%; margin-bottom: 6px; padding: 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.01em; }
.home-steps-progress { font-size: 13px; color: var(--soft); }
.home-steps-progress::after {
  content: ""; display: block; height: 3px; margin-top: 12px; border-radius: 3px;
  background: linear-gradient(90deg, #fefffe var(--done, 33%), rgba(255, 255, 255, .16) var(--done, 33%));
  transition: background .4s var(--ease);
}
.contact-form.is-stepped { gap: 0; }
.is-stepped .form-head { margin-bottom: 30px; }
.is-stepped .home-steps-progress { margin-bottom: 34px; }
.is-stepped .form-errors { margin-bottom: 24px; }
.is-stepped .home-step-q { margin-bottom: 8px; } /* with the step's gap: 28 px under each question */
.is-stepped .form-legal { margin-top: 26px; }
.is-stepped .form-actions { margin-top: 38px; }
.home-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.home-choice {
  display: flex; align-items: center; min-height: 64px; padding: 14px 20px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--card); color: #fefffe; font-size: 15.5px; line-height: 1.35; text-align: left;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.home-choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
.contact-form:not(.is-stepped) .home-step + .home-step { margin-top: 22px; }
.home-choice:hover { border-color: rgba(255, 255, 255, .42); }
.home-choice[aria-pressed="true"] { background: #fefffe; border-color: #fefffe; color: #000; }
.home-step-back {
  min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: #fefffe; font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); cursor: pointer; transition: background-color .25s;
}
.home-step-back:hover { background: rgba(255, 255, 255, .08); }
@media (prefers-reduced-motion: no-preference) {
  .is-stepped .home-step:not([hidden]) { animation: home-step-in .45s var(--ease); }
  @keyframes home-step-in { from { opacity: 0; transform: translateY(10px); } }
}
@media (max-width: 640px) {
  .home-choices { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 10px; }
  .home-choice { min-height: 56px; }
  .is-stepped .form-actions { margin-top: 32px; }
}
/* The thank-you that takes the form's place (js/src/main.js), and its one late question. */
.form-thanks { display: grid; gap: 14px; padding: 36px; border-radius: 32px; background: var(--card); }
.form-thanks:focus { outline: none; }
.form-thanks p { color: var(--soft); }
.form-thanks .thanks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-thanks a:not(.sx-btn) { color: #fefffe; }
.late-q { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.late-q-title { font-size: 17px; color: #fefffe; }
.late-q .form-actions { margin-top: 0; }
.late-skip {
  min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--soft); text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.late-skip:hover { color: #fefffe; }
/* The direct column. */
.home-direct { display: grid; gap: 22px; }
.home-direct h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; line-height: 1.2; }
.home-direct-list { display: grid; gap: 16px; }
.home-direct-list div { display: grid; gap: 2px; }
.home-direct-list dt { font-size: 13px; color: var(--soft); }
.home-direct-list dd { font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.home-direct-list a { color: #fefffe; text-decoration: none; }
.home-direct-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-direct-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-direct-studio { padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }

/* ---------------------------------------------------------------- The review pop-up (/feedback), on black
   Desktop: the ask and a live preview of the review card beside the form, whose body scrolls under a pinned Send
   bar. Phones (under 900 px): a full-height sheet pinned to the visible screen (main.js sets --fb-top and --fb-vh
   from visualViewport), so the keyboard never hides Send; the page behind does not scroll while it is open. */
body.fb-open { overflow: hidden; }
/* main.js moves the sheet to the end of <body>, so its z-index puts it over the fixed site header (inside <main> the
   header covered its title and close button on phones). The header also steps aside once the scrim is in,
   so no browser can draw it over the sheet. */
body.fb-open .sx-top { visibility: hidden; transition: visibility 0s .3s; }
.fb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); text-align: left; }
.fb-scrim {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .74); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: fb-fade .3s var(--ease) both;
}
.fb-dialog {
  position: relative; display: flex; width: min(100%, 1040px); max-height: min(92svh, 860px); overflow: hidden;
  background: var(--card); color: #fefffe; border-radius: 32px; outline: none;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px -30px rgba(0, 0, 0, .9); animation: fb-rise .5s var(--ease) both;
}
@keyframes fb-fade { from { opacity: 0; } }
@keyframes fb-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes fb-sheet { from { transform: translateY(100%); } }
.fb-x {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: #fefffe; color: #000; cursor: pointer; transition: transform .3s var(--ease);
}
.fb-x:hover { transform: rotate(90deg); }
.fb-pane { width: 100%; min-height: 0; }
.fb-pane--form { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: minmax(0, 1fr); }
.fb-side { display: flex; flex-direction: column; gap: 36px; padding: 44px 40px; background: #000; overflow: hidden; }
.fb-kicker { display: block; margin-bottom: 14px; font-size: 13px; color: var(--soft); }
.fb-title { font-weight: 400; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.01em; }
.fb-title em { font-style: normal; color: var(--soft); }
.fb-sub { margin-top: 14px; max-width: 22em; font-size: 15.5px; line-height: 1.55; color: var(--soft); }
.fb-side-note { margin-top: auto; max-width: 22em; font-size: 13px; line-height: 1.5; color: var(--soft); }
.fb-preview-tag { display: block; margin-bottom: 12px; font-size: 12px; color: var(--soft); }
.fb-preview-card { padding: 22px; border-radius: 24px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.fb-preview-quote {
  font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6;
  -webkit-box-orient: vertical; overflow: hidden;
}
.fb-preview-quote.is-empty { color: #959595; }
.fb-preview-who { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.fb-preview-face {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fefffe;
  color: #000; font-size: 12.5px; font-weight: 500;
}
.fb-preview-id { display: grid; gap: 2px; min-width: 0; }
.fb-preview-id strong { font-weight: 500; font-size: 14.5px; }
.fb-preview-id span { font-size: 12.5px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-form { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fb-body {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 22px; padding: 44px 44px 28px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.fb-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fb-label { font-size: 14px; font-weight: 500; line-height: 1.35; }
.fb-opt { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--soft); }
.fb-field input[type="text"], .fb-field input[type="email"], .fb-field textarea {
  width: 100%; padding: 14px 16px; font-size: 16px; line-height: 1.45; color: #fefffe; background: #000;
  border: 1px solid var(--line); border-radius: 16px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s var(--ease);
}
.fb-field textarea { min-height: 150px; line-height: 1.6; resize: none; overflow-y: hidden; }
.fb-field input::placeholder, .fb-field textarea::placeholder { color: #959595; opacity: 1; }
.fb-field input:hover, .fb-field textarea:hover { border-color: rgba(255, 255, 255, .32); }
.fb-field input:focus, .fb-field textarea:focus { border-color: #fefffe; outline: 2px solid #fefffe; outline-offset: 2px; }
.fb-field.is-invalid input, .fb-field.is-invalid textarea { border-color: #ff8a80; }
.fb-under { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fb-hint { font-size: 13px; line-height: 1.45; color: var(--soft); }
.fb-count { font-size: 12px; color: var(--soft); white-space: nowrap; }
.fb-err { font-size: 13.5px; line-height: 1.4; color: #ffb4ab; }
.fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.fb-stars { display: flex; align-items: center; margin-left: -7px; }
.fb-star-in { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fb-star { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; cursor: pointer; transition: transform .25s var(--ease); }
.fb-star svg { width: 32px; height: 32px; fill: none; stroke: #959595; stroke-width: 1.4; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.fb-star.is-on svg { fill: #fefffe; stroke: #fefffe; }
.fb-star:hover { transform: scale(1.08); }
.fb-star-in:focus-visible + .fb-star { outline: 2px solid #fff; outline-offset: -3px; }
.fb-rate-word { margin-left: 8px; font-size: 14px; color: var(--soft); }
.fb-foot { flex: none; display: flex; align-items: center; gap: 10px 18px; padding: 16px 44px 20px; background: var(--card); border-top: 1px solid var(--line); }
.fb-submit {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px;
  border: 0; border-radius: 999px; font-size: 15px; font-weight: 500; color: #000; background: #fefffe; cursor: pointer;
  transition: background-color .25s;
}
.fb-submit:hover { background: #e6e6e6; }
.fb-submit:disabled { opacity: .65; cursor: wait; }
.fb-foot-meta { min-width: 0; }
.fb-status { font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.fb-status.is-err { color: #ffb4ab; }
.fb-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fb-saved { font-size: 12.5px; color: var(--soft); }
.fb-status:not(:empty) + .fb-saved { display: none; }
.fb-pane--thanks {
  display: grid; place-items: center; min-height: min(560px, 92svh); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background: #000; text-align: center; overflow-y: auto; overscroll-behavior: contain;
}
.fb-thanks-inner { max-width: 30em; display: flex; flex-direction: column; align-items: center; }
.fb-pane--thanks .fb-sub { margin-inline: auto; }
.fb-check {
  width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 24px; color: #000; background: #fefffe;
  border-radius: 50%; animation: fb-pop .5s var(--ease) both;
}
.fb-check path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: fb-draw .6s var(--ease) .2s forwards; }
@keyframes fb-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes fb-draw { to { stroke-dashoffset: 0; } }
.fb-thanks-quote {
  margin-top: 26px; padding: 18px 22px; border-radius: 20px; background: var(--card); text-align: left; font-size: 17px;
  line-height: 1.55; color: #ececec; overflow-wrap: anywhere;
}
.fb-thanks-quote:empty { display: none; }
.fb-thanks-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.fb-done {
  min-height: 48px; padding: 0 30px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 500; color: #000;
  background: #fefffe; cursor: pointer;
}
.fb-done:hover { background: #e6e6e6; }
.fb-thanks-link { font-size: 15px; color: #fefffe; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) and (max-height: 720px) {
  .fb-side { gap: 24px; padding-block: 32px; }
  .fb-side .fb-sub, .fb-side-note { display: none; }
}
@media (max-width: 899px) {
  /* The sheet clears the status bar and a landscape notch (viewport-fit=cover). */
  .fb { top: var(--fb-top, 0px); bottom: auto; height: var(--fb-vh, 100dvh); padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); place-items: end stretch; }
  .fb-dialog { width: 100%; height: calc(100% - 8px); max-height: none; border-radius: 24px 24px 0 0; animation: fb-sheet .45s var(--ease) both; }
  .fb-pane--form { display: flex; flex-direction: column; height: 100%; }
  .fb-side { flex: none; gap: 0; padding: 22px 72px 20px 22px; }
  .fb-side .fb-sub, .fb-preview, .fb-side-note { display: none; }
  .fb-kicker { margin-bottom: 8px; }
  .fb-title { font-size: 28px; }
  .fb-form { flex: 1 1 auto; }
  .fb-body { gap: 20px; padding: 22px 22px 26px; }
  .fb-foot { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); }
  .fb-submit { width: 100%; min-height: 52px; }
  .fb-foot-meta { text-align: center; }
  /* Space under Send only when there is a note to show (the status stays in the page for screen readers). */
  .fb-foot-meta:has(:not([hidden]):not(:empty)) { margin-top: 8px; }
  .fb-x { top: 14px; right: 14px; }
  .fb-pane--thanks { height: 100%; min-height: 0; }
  /* Keyboard open: the header steps aside. */
  .fb-dialog.is-tight .fb-kicker { display: none; }
  .fb-dialog.is-tight .fb-side { padding-block: 14px; }
  .fb-dialog.is-tight .fb-title { font-size: 22px; }
  .fb-dialog.is-tight .fb-x { top: 4px; }
}
@media (max-width: 560px) {
  .fb-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- Newsletter: a slim band before the closing band */
.home-nl { margin-top: clamp(96px, 11vw, 160px); padding-block: clamp(36px, 4vw, 52px); border-block: 1px solid var(--line); }
.home-nl-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; text-align: left; }
.nl-title { font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; line-height: 1.2; }
.nl-line { margin-top: 8px; max-width: 30em; font-size: 15px; line-height: 1.6; color: var(--soft); }
.nl-form { display: grid; gap: 10px; }
.nl-row { display: flex; align-items: flex-end; gap: 12px; }
.nl-field { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }
.nl-field label { font-size: 13px; color: var(--soft); }
.nl-field input {
  width: 100%; min-height: 50px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: #fefffe; font-size: 16px;
}
.nl-field input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-color: transparent; }
.nl-field input[aria-invalid="true"] { border-color: #ff8a80; }
.nl-submit {
  flex: none; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: #fefffe; color: #000;
  font-size: 14px; white-space: nowrap; cursor: pointer; transition: background-color .25s;
}
.nl-submit:hover { background: #e6e6e6; }
.nl-submit:disabled { opacity: .6; cursor: wait; }
.nl-status { font-size: 14px; line-height: 1.4; color: #ffb4ab; }
.nl-status:empty { display: none; }
.nl-small { font-size: 13px; line-height: 1.5; color: var(--soft); }
.nl-small a { color: #fefffe; }
.nl-thanks { font-size: 18px; line-height: 1.45; color: #fefffe; }
.nl-thanks:focus { outline: none; }
.nl-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Smaller screens */
@media (max-width: 960px) {
  .home-pk-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .home-contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .home-nl-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 999px) {
  .home-work { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-tile, .home-tile:nth-child(-n + 2) { grid-column: span 1; }
  .home-tile:first-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .home-work { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .home-tile:first-child { grid-column: auto; }
  .home-tile > a { border-radius: 18px; }
  .home-tile-tag { top: 10px; left: 10px; padding: 5px 10px; font-size: 11.5px; }
}
@media (max-width: 640px) {
  .home-pk { padding: 26px; border-radius: 26px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form-thanks { padding: 26px; border-radius: 26px; }
}
@media (max-width: 480px) {
  .nl-row { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .home-tile img, .home-tile-name, .home-pick-name button, .home-pick-chev { transition: none; }
  .fb-scrim, .fb-dialog, .fb-check, .fb-check path { animation: none; }
  body.fb-open .sx-top { transition: none; }
  .fb-check path { stroke-dashoffset: 0; }
  .fb-star:hover, .fb-x:hover { transform: none; }
}
