/* polish-a.css — final review polish, loaded last */
/* Scope: site header + nav + mobile menu, hero (#top), LED ticker */

/* Hero eyebrow: when it wraps on phones, split it into two even lines */
.hero .eyebrow-pill > span:last-child {
  text-wrap: balance;
}

/* Small phones (360px): "Put your business" needed exactly the 317px available, so it
   tipped onto three lines and pushed "See our work" under the fold at 360x740.
   A hair smaller keeps the two-line headline with room to spare. */
@media (max-width: 379px) {
  .hero .hero__title { font-size: min(10.5vw, 39px); }
}

/* Hero lead: keeps "shop-window" on one line once the markup wraps it in <span class="nowrap"> */
.hero .hero__lead .nowrap {
  white-space: nowrap;
}

/* Hero proof line: line icons a touch larger so they sit level with the 13px text */
.hero .hero__proof li .icon {
  width: 15px;
  height: 15px;
  flex: none;
}

/* "See our work": the thumbnail cluster sat 11px from the left edge against 27px on the right;
   a little more air so it does not look jammed into the corner */
.hero .hero__actions .btn--work {
  padding-left: 14px;
}

/* Scene selector row: the pause control was the only square-cornered (8px) piece beside the
   round pill group; give it the same capsule shape and border tone */
.hero .scenes .wall-pause {
  border-radius: 999px;
  border-color: rgba(244, 240, 230, .14);
}

/* Phones: the pause control is position:relative here, so the desktop "right: var(--side)"
   shifted it 18px left of centre under the centred proof list */
@media (max-width: 699px) {
  .hero .wall-pause { right: auto; }
}

/* Desktop first-screen fit: the scene selector sat only 5-6px above the window edge at
   1728x842 and 1440x900, and 1px at 1920x1080. A little more floor under the screens
   (screens about 3px narrower) gives it an even 11-13px of breathing room. */
@media (min-width: 1100px) and (min-height: 841px) {
  .hero { --floor: 80px; }
}
@media (min-width: 1100px) and (min-height: 1000px) {
  .hero { --floor: 86px; }
}

/* Round 2 */

/* ---------- Header: glass bar with a lit top edge and a soft shadow underneath ---------- */
.site-header.is-scrolled,
.menu-open .site-header {
  background-image: linear-gradient(180deg, rgba(244, 240, 230, .035), rgba(244, 240, 230, 0) 70%);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .9);
}

/* Nav links: a quiet glass pill joins the coral dot on hover; a coral ring for keyboard focus */
.site-header .nav a {
  transition: color .25s, background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header .nav a:hover {
  background-color: rgba(244, 240, 230, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(244, 240, 230, .06);
}
.site-header .nav a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Header CTA: a lit top edge so the coral reads as a pressed-glass key, not a flat block */
.site-header .site-header__cta {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 224, .45), 0 0 0 0 rgba(255, 107, 61, 0), 0 10px 30px -12px rgba(255, 107, 61, .6);
}
.site-header .site-header__cta:hover {
  box-shadow: inset 0 1px 0 rgba(255, 236, 224, .5), 0 0 0 4px rgba(255, 107, 61, .16), 0 16px 38px -12px rgba(255, 107, 61, .8);
}

/* Menu button (tablet and phone): same glass as the scene selector */
.site-header .menu-toggle {
  background: linear-gradient(180deg, rgba(244, 240, 230, .07), rgba(244, 240, 230, .02)), rgba(6, 17, 13, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .25s, background-color .25s, box-shadow .3s var(--ease-out);
}
.site-header .menu-toggle:hover { border-color: rgba(244, 240, 230, .4); }
.site-header .menu-toggle[aria-expanded="true"] { border-color: rgba(255, 107, 61, .45); }
.site-header .menu-toggle:focus-visible,
.site-header .brand:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ---------- Mobile menu ---------- */
/* The empty middle of the overlay was flat; a deep green light rises from the lower left */
.mobile-menu {
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(255, 107, 61, .16), transparent 60%),
    radial-gradient(90% 45% at 0% 100%, rgba(18, 53, 43, .75), transparent 70%),
    radial-gradient(1.4px 1.4px at 50% 50%, rgba(244, 240, 230, .09) 99%, transparent) 0 0 / 14px 14px,
    var(--ink);
}
/* Even rhythm: a rule above the first item too, so every row sits between two lines */
.mobile-menu .mobile-menu__nav li:first-child { border-top: 1px solid var(--line); }
.mobile-menu .mobile-menu__nav a { position: relative; border-radius: 12px; }
.mobile-menu .mm-num { transition: color .25s; }
.mobile-menu .mobile-menu__nav a::after {
  content: "";
  align-self: center;
  margin: 0 14px 0 auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 1px;
  opacity: 0;
  transform: translateX(-8px) rotate(45deg);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__nav a:hover:not(:focus-visible) { transform: translateX(6px); }
.mobile-menu .mobile-menu__nav a:is(:hover, :focus-visible)::after { opacity: 1; transform: rotate(45deg); }
.mobile-menu .mobile-menu__nav a:is(:hover, :focus-visible) .mm-num { color: var(--cream); }
/* The full cream box round the first link looked heavy when the menu opens with focus inside */
.mobile-menu .mobile-menu__nav a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 12px;
  color: var(--coral-soft);
}
.mobile-menu .mobile-menu__foot .btn--primary {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 224, .45), 0 14px 36px -14px rgba(255, 107, 61, .7);
}
.mobile-menu .mobile-menu__mail { transition: text-decoration-color .25s, color .25s; }
.mobile-menu .mobile-menu__mail:hover { color: var(--coral-soft); text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
/* Primary: lit top edge, and on hover a soft coral halo ring (the sheen rule had flattened the hover) */
.hero .hero__actions .btn--primary {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 224, .5), inset 0 -1px 0 rgba(120, 30, 0, .16),
    0 0 0 0 rgba(255, 107, 61, 0), 0 14px 40px -12px rgba(255, 107, 61, .7), 0 0 60px -20px rgba(255, 107, 61, .6);
}
.hero .hero__actions .btn--primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 236, 224, .55), inset 0 -1px 0 rgba(120, 30, 0, .16),
    0 0 0 5px rgba(255, 107, 61, .16), 0 20px 46px -12px rgba(255, 107, 61, .85), 0 0 70px -18px rgba(255, 107, 61, .7);
}
/* Glass button: a fine bright top edge; on hover the arrow and border warm up */
.hero .hero__actions .btn--work {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 14px 34px -22px rgba(0, 0, 0, .9);
}
.hero .hero__actions .btn--work:hover {
  border-color: rgba(244, 240, 230, .42);
  background: linear-gradient(180deg, rgba(244, 240, 230, .12), rgba(244, 240, 230, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px -20px rgba(0, 0, 0, .9);
}
.hero .hero__actions .btn--work .installs__faces img { transition: transform .4s var(--ease-spring); }
.hero .hero__actions .btn--work:hover .installs__faces img { transform: translateY(-2px); }
.hero .hero__actions .btn--work:hover .installs__faces img:nth-child(2) { transition-delay: .04s; }
.hero .hero__actions .btn--work:hover .installs__faces img:nth-child(3) { transition-delay: .08s; }
.hero .hero__actions .btn--work:hover .installs__faces img:nth-child(4) { transition-delay: .12s; }
.hero .hero__actions .btn:focus-visible { outline-offset: 4px; }

/* Pause control: same glass and lit edge as the pill group beside it */
.hero .scenes .wall-pause {
  background: linear-gradient(180deg, rgba(244, 240, 230, .08), rgba(244, 240, 230, .03)), rgba(6, 17, 13, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -22px rgba(0, 0, 0, .9);
  transition: color .25s, border-color .25s, box-shadow .3s var(--ease-out);
}
.hero .scenes .wall-pause:hover { border-color: rgba(244, 240, 230, .3); }
.hero .scenes .wall-pause:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 999px; }
.hero .scenes__pill:not([aria-pressed="true"]):hover { color: var(--cream); }

/* Proof line: the small separators sit a touch lighter so the row reads as one line */
.hero .hero__proof li .icon { color: var(--coral-soft); opacity: .85; }

/* ---------- LED ticker ---------- */
/* The border lines were one flat tone; now a coral light runs along the middle of each and fades out */
.ticker { isolation: isolate; }
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 61, .55) 30%, rgba(255, 170, 130, .7) 50%, rgba(255, 107, 61, .55) 70%, transparent);
}
.ticker::before { top: -1px; }
.ticker::after { bottom: -1px; opacity: .55; }
/* A faint panel bevel: light at the top, shade at the bottom, over the LED dot grid */
.ticker .ticker__panel {
  background:
    linear-gradient(180deg, rgba(255, 107, 61, .06), transparent 35%, transparent 70%, rgba(0, 0, 0, .35)),
    radial-gradient(1.1px 1.1px at 50% 50%, rgba(255, 107, 61, .2) 99%, transparent) 0 0 / 6px 6px;
}
/* The words get a very light warm glow, as if lit from the panel behind */
.ticker .ticker__list li {
  color: rgba(244, 240, 230, .88);
  text-shadow: 0 0 18px rgba(255, 107, 61, .18);
}
.ticker .ticker__list li::after {
  box-shadow: 0 0 0 3px rgba(255, 107, 61, .12), 0 0 6px rgba(255, 138, 98, .95), 0 0 18px rgba(255, 107, 61, .75);
}

/* Reduced motion: no slides or lifts on hover */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu.is-open .mobile-menu__nav a:hover { transform: none; }
  .mobile-menu .mobile-menu__nav a::after { transition: none; }
  .hero .hero__actions .btn--work:hover .installs__faces img { transform: none; }
}

/* Round 3 */

/* ---------- Header ---------- */
/* Nav hover pill: was 45.6px tall against the 42px quote button beside it, so its top and bottom
   stood 2px proud of the button. Now exactly 42px, and the same 10px corners as the button. */
@media (min-width: 1100px) {
  .site-header .nav a {
    padding-block: 8px;
    line-height: 26px;
    border-radius: 10px;
  }
}
/* Keyboard focus showed only a ring, without the glass pill and coral dot that hover gives.
   Focus now looks like hover, and the ring hugs the pill so it is the same 42px height as the
   quote button instead of standing 4px taller. */
.site-header .nav a:focus-visible {
  color: var(--cream);
  background-color: rgba(244, 240, 230, .08);
  outline-offset: -2px;
}
.site-header .nav a:focus-visible::before { opacity: 1; transform: none; }

/* Phones: the short quote button had 9px corners beside the 10px menu button */
@media (max-width: 559px) {
  .site-header .site-header__cta { border-radius: 10px; }
}

/* ---------- Mobile menu ---------- */
/* The menu words were small for a full-screen menu and left a big empty band above the
   contact block. Larger words and a little more air per row on tall phones. */
@media (max-width: 1099px) and (min-height: 700px) {
  .mobile-menu .mobile-menu__nav a {
    font-size: clamp(30px, 9.2vw, 44px);
    padding-block: 17px;
  }
}
/* The contact block now starts with a lit hairline, the same coral light as the ticker edges */
.mobile-menu .mobile-menu__foot {
  position: relative;
  padding-top: 24px;
}
.mobile-menu .mobile-menu__foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 107, 61, .7), rgba(255, 170, 130, .35) 28%, rgba(244, 240, 230, .1) 60%, transparent);
  pointer-events: none;
}

/* ---------- Hero ---------- */
/* Eyebrow, tablet and desktop: the letter-spacing after the last letter made the right-hand
   padding look 1.6px wider than the left */
@media (min-width: 700px) {
  .hero .eyebrow-pill > span:last-child { margin-right: -.14em; }
}

/* Eyebrow, phones: the text wraps to two centred lines, but the live dot stayed at the far left
   of the box, well away from the words. The dot now sits at the start of the first line and
   travels with it. */
@media (max-width: 699px) {
  .hero .eyebrow-pill {
    display: block;
    text-wrap: balance;
  }
  .hero .eyebrow-pill > .live-led {
    display: inline-block;
    vertical-align: baseline;
    margin-right: 8px;
  }
  .hero .eyebrow-pill > span:last-child { text-wrap: inherit; }
}

/* Scene selector, tablet and desktop: the pill group sat 30-36px left of the centre line of the
   screens and the headline, because the label and the pause button beside it differ in width.
   The group is now on the exact centre, with the label and the pause control hung either side.
   (900-1099px keeps the plain centred row: the label and the worded pause button do not fit
   either side there.) */
@media (min-width: 700px) and (max-width: 899px), (min-width: 1100px) {
  .hero .scenes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
  }
  .hero .scenes > * { grid-row: 1; }
  .hero .scenes .scenes__label { grid-column: 1; justify-self: end; margin-right: -.16em; }
  .hero .scenes .scenes__pills { grid-column: 2; }
  .hero .scenes .wall-pause { grid-column: 3; justify-self: start; margin: 0; }
}

/* Desktop: the pause control was a 31px lozenge beside the 50px pill capsule; it now has the
   same height, glass and edge, so the row reads as one family */
@media (min-width: 1100px) {
  .hero .scenes .wall-pause {
    height: 50px;
    padding: 0 20px 0 18px;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0;
    color: rgba(244, 240, 230, .8);
    background: linear-gradient(180deg, rgba(244, 240, 230, .08), rgba(244, 240, 230, .03));
    border-color: rgba(244, 240, 230, .14);
  }
  .hero .scenes .wall-pause:hover {
    color: var(--cream);
    border-color: rgba(244, 240, 230, .28);
    background: linear-gradient(180deg, rgba(244, 240, 230, .12), rgba(244, 240, 230, .05));
  }
}

/* The dark band behind the selector ended in a hard horizontal edge, which showed as a stripe
   across the floor once the page scrolled. It now fades out at the bottom as well. */
@media (min-width: 700px) {
  .hero .scenes::before {
    bottom: -64px;
    background: linear-gradient(180deg, rgba(4, 11, 8, 0), rgba(4, 11, 8, .82) 34%, rgba(4, 11, 8, .82) 74%, rgba(4, 11, 8, 0));
  }
}

/* Phones: the scene pills scroll sideways, but the capsule simply ran off the right edge of the
   screen, as if cut. Its ends now fade where more pills are waiting, and the fade follows the
   scroll (no script). Browsers without scroll timelines keep the plain row. */
@property --sp-fl { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --sp-fr { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes sp-edge-fade {
  from { --sp-fl: 0px; --sp-fr: 44px; }
  12% { --sp-fl: 28px; }
  88% { --sp-fr: 28px; }
  to { --sp-fl: 44px; --sp-fr: 0px; }
}
@supports (animation-timeline: scroll(self inline)) {
  @media (max-width: 699px) {
    .hero .scenes__pills {
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--sp-fl), #000 calc(100% - var(--sp-fr)), transparent);
      mask-image: linear-gradient(90deg, transparent, #000 var(--sp-fl), #000 calc(100% - var(--sp-fr)), transparent);
      animation: sp-edge-fade linear both;
      animation-timeline: scroll(self inline);
    }
  }
}
