/* Finish pass (Liam, November 20, 2026: "look at the site from fresh eyes and jsut see waht u can give it that polish").
   Each block names what was measured on the page that day and what it changes. ?finish=0 opens the page without it.
   Kept apart from polish.css so the two passes can be compared and so other sessions' edits there are untouched. */

/* 1. Nav after the hero. Past the hero the pills were the live site's dark glass at 52%, made for a black page. On this
   page's light grounds that glass turned mid grey and the link labels (#8C8579) sat on it at about 1.2 to 1 contrast:
   the four links could not be read on Services, the case studies or Why work with us. The live nav already has an
   answer for light pages (html.nav-on-paper: the pills at rgba(22,21,20,.86)); the concept never switched it on.
   Same value here, so the pills are the near-black he asked to keep ("the pills are the live ones again"). */
html.c2-finish.hero-light:not(.vibe-top) :is(.mark,.nav-links,.nav-cta,.nav-menu){background:rgba(22,21,20,.86);transition:background .25s}
html.c2-finish.hero-light:not(.vibe-top) .nav-links a{color:#a9a194}
html.c2-finish.hero-light:not(.vibe-top) .nav-links a:hover{color:#ede9e1}

/* 2. Hero into Services: nothing. A soft rise of grey was added here to blur the line where Services slides over the
   hero, and Liam had it removed the same day (November 20, 2026: "i purpsooefulyl dind tlike this. i asked for the
   hsharpline"). The sharp edge is his choice. Do not soften it again. */

/* 3. The preloader hands over to the hero. The hero's own entrance (the headline lines rising 130% over 1.1s, the glass
   tiles fading in) ran at page load, behind the preloader, about six seconds before anyone could see it; the circle
   then opened on a hero that was already still. finish.js holds that entrance until the circle starts to open, so
   the headline rises as the page is revealed. The timings are the hero's own; nothing new is animated. */
html.c2-finish.c2-hold.hero-live .hero-head .ln span{transform:translateY(130%)!important;transition:none!important}
html.c2-finish.c2-hold.hero-live :is(.hero-tile img,.hero-scroll){opacity:0!important;transition:none!important}


/* 4. Homepage content rises a short way on arrival. The diagram draws separately.
   finish.js arms this entrance only when animation is available and allowed. */
html.c2-arm is set by the script. */
html.c2-arm :is(.c2-services .c2-intro :is(h2,p),.c2-cards>.service,.c2-models .diagramcopy h2,.c2-models .nodes button,
  #work [data-proof-h] h2,#work .kv-title,#work [data-proof-head] p,#work .proof-tog,#work .cx-bento>.cx-cell,#work a.frame.sm):not([data-fs]){opacity:0}
html.c2-arm .c2-models .map>svg:not([data-fs]){clip-path:inset(0 0 100% 0)}

/* Keep the services on one baseline when the pointer rests on a card. The button still responds. */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  html.c2-finish .c2 .service{transition:box-shadow var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1))}
  html.c2-finish.c2-polish.c2-glass .c2 .service:hover{box-shadow:inset 0 0 0 1px rgba(25,23,20,.04),inset 0 2px 0 rgba(255,255,255,.95),0 0 0 1px rgba(25,23,20,.06),0 3px 7px rgba(60,40,20,.08),0 44px 70px -30px rgba(70,44,20,.56)}
  html.c2-finish .c2 .service:hover .servicecopy .book{background:#000}
  html.c2-finish .c2 .service:hover .servicecopy .book::before{transform:translateX(-9px)}
  html.c2-finish .c2 .service:hover .servicecopy .book::after{transform:translateX(9px)}
}

/* 6. The orange key on a phone. The Your business key leaves the AI search card and flies to the AI models section. On a
   desk that path runs straight down from the first card into the orange. On a phone the cards are stacked, so the
   key crossed the Digital PR and Custom websites cards on its way: measured at 390 wide it sat on the Digital PR
   paragraph, then on the wired picture, then on the "Talk about a website" button. It now fades out as it leaves its
   own card and fades back in as it enters the orange section, so it never covers words or a button. Desk unchanged. */
@media (max-width:760px){html.c2-finish .c2-tile{transition:opacity var(--dur-2) ease-out}}

/* 7. Case study tiles answer the cursor (Liam, November 20, 2026: "Want the case study tiles to react to the cursor
   next? sure"). While the pointer is on a tile its photo or film sits 6% larger and drifts up to 2% of the tile
   against the pointer, so the picture reads as sitting behind the tile's frame. finish.js writes the pointer's place
   in the tile to --fx and --fy (-1 to 1); the 0.6s transition does the easing, so there is no animation loop. The
   6% is what keeps an edge from showing at full drift. Mouse only; nothing on touch or with reduced motion. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  html.c2-finish #work .cx-cell .cx-m{transition:transform 2s var(--ease,cubic-bezier(.22,1,.36,1)),translate var(--dur-2) var(--ease,cubic-bezier(.22,1,.36,1)),scale var(--dur-3) var(--ease,cubic-bezier(.22,1,.36,1))}
  html.c2-finish #work .cx-cell:hover .cx-m{scale:1.06;translate:calc(var(--fx,0)*-2%) calc(var(--fy,0)*-2%)}
}
