/* ═══════════════════════════════════════════════════════════════
   LOCALWORKS homepage: the five scenes of "Five ways we help" (2026-11-26)

   One real 3D phone (phone3d.css) on the stage beside the rows. Its
   screen shows whichever row was last pointed at or focused, and on
   phones and touch screens the 01 to 05 buttons above it pick the scene:
     01  the Northside Plumbing sample site builds itself, block by block
     02  a live call the AI receptionist is taking
     03  a phone search results page for "plumber near me"
     04  real app screens, one after another (ours, plus a sample)
     05  a feed of three videos, one plays, tap for sound, swipe for next

   Loaded without blocking the first screen (media="print" swap in the
   head). The stage's size and position live in index.html, so nothing
   moves when this file arrives; until it does, the phone stays hidden.

   Every size on the screen is in real millimetres (--mm from
   phone3d.css), so the screen reads the same at 1440 and at 390.
   Nothing here touches .p3d-body or .p3d-edge (that would flatten the
   phone, phone3d.css explains why). Animations run only while the
   scene is on and the stage is near the screen: home-ways.js sets
   .hw-run on the stage, and every animation below is gated on it.
   ═══════════════════════════════════════════════════════════════ */

/* the phone's turn eases from scene to scene, so a new row feels like
   the phone turning to show you something */
@property --p3d-ry{syntax:'<angle>'; inherits:true; initial-value:-24deg}

.ways-stage{container-type:size; display:grid; grid-template-rows:auto minmax(0,1fr) 38px}
.hw-tabs{grid-row:1}
.ways-stage .stage-cap{grid-row:3}
.ways-stage .hw-dev{grid-row:2; visibility:visible; position:relative; display:grid; place-items:center; min-height:0;
  --p3d-w:clamp(244px, calc((100cqh - 120px) / 2.0643), 310px)}
.hw-p3d{--p3d-ry:-16deg; --p3d-rx:4deg;
  transition:--p3d-ry .9s var(--ease-out)}
.ways-grid[data-on="2"] .hw-p3d{--p3d-ry:-22deg}
.ways-grid[data-on="3"] .hw-p3d{--p3d-ry:-15deg}
.ways-grid[data-on="4"] .hw-p3d{--p3d-ry:-26deg}
.ways-grid[data-on="5"] .hw-p3d{--p3d-ry:-18deg}

/* the 01 to 05 buttons: only where a row can't be hovered (touch, or the stacked phone layout) */
.hw-tabs{display:none}
@media (hover:none), (max-width:980px){
  .hw-tabs{display:flex; justify-content:center; gap:5px; padding:18px 10px 0; flex-wrap:wrap}
  .ways-stage .hw-dev{--p3d-w:clamp(214px, calc((100cqh - 180px) / 2.0643), 310px)}
}
/* the buttons only work once home-ways.js runs: keep their space, hide them until then (and with JS off) */
.ways-grid:not(.hw-live) .hw-tabs{visibility:hidden}
.hw-tab{appearance:none; font:500 12px/1 var(--font-ui); color:var(--dim); background:transparent; cursor:pointer;
  min-height:40px; padding:0 10px; border-radius:var(--r-pill); border:1px solid var(--line-strong);
  transition:color var(--t-fast), background var(--t-fast), border-color var(--t-fast)}
.hw-tab b{font:600 10px/1 var(--font-mono); letter-spacing:.06em; color:var(--accent); margin-right:5px}
.hw-tab[aria-pressed="true"]{color:var(--on-accent); background:var(--accent); border-color:var(--accent)}
.hw-tab[aria-pressed="true"] b{color:inherit}
.hw-tab:focus-visible{outline:2px solid var(--ink); outline-offset:3px}

/* captions under the phone: one per scene, and scene 4's names the app on screen */
.ways-stage .stage-cap{position:relative; left:auto; right:auto; bottom:auto; align-self:start; height:14px}
.ways-grid[data-on] .stage-cap .cap{opacity:0}
.ways-grid[data-on="1"] .stage-cap .cap-1, .ways-grid[data-on="2"] .stage-cap .cap-2, .ways-grid[data-on="3"] .stage-cap .cap-3,
.ways-grid[data-on="4"] .stage-cap .cap-4, .ways-grid[data-on="5"] .stage-cap .cap-5{opacity:1}
.cap-4 .hw-appname{color:var(--dim)}
/* on a phone the app names are long: a little less tracking keeps them on one line at 390 px, and if a
   narrower screen still wraps, both lines are kept even (no single word left on its own) */
.ways-stage .stage-cap .cap{text-wrap:balance}
@media (max-width:480px){ .ways-stage .stage-cap{letter-spacing:.08em} }
/* the five buttons stay on one row: where the row is narrower than they need with their numbers
   (a phone, or the narrow stage beside the rows on a touch tablet), the numbers go and the names stay.
   The row itself is the container, so this follows the room the buttons really have. */
.hw-tabs{container-type:inline-size}
@container (max-width:400px){ .hw-tab b{display:none} }
@media (max-width:380px){ .hw-tabs{gap:4px; padding-left:6px; padding-right:6px} .hw-tab{padding:0 9px} }

/* ── the screen: five scenes stacked; the one that's on fades up ── */
.hw-p3d .p3d-screen{background:#07080B; font-family:var(--font-ui); color:var(--ink); -webkit-font-smoothing:antialiased}
.hw-sc{position:absolute; inset:0; overflow:hidden; opacity:0; visibility:hidden; transform:scale(.985);
  transition:opacity .45s var(--ease-out), transform .6s var(--ease-out), visibility 0s linear .45s}
.ways-grid:not([data-on]) .hw-sc-1,
.ways-grid[data-on="1"] .hw-sc-1, .ways-grid[data-on="2"] .hw-sc-2, .ways-grid[data-on="3"] .hw-sc-3,
.ways-grid[data-on="4"] .hw-sc-4, .ways-grid[data-on="5"] .hw-sc-5{opacity:1; visibility:visible; transform:none; transition-delay:0s}
/* Only the scene on screen (and the one fading out) is laid out at all. The other scenes skip
   rendering (content-visibility), which keeps the phone cheaper when it first comes near:
   measured on a phone slowed 4x, the phone with every scene laid out (four, then) took 734 ms to lay out, with
   only the scene on show 392 ms. A scene keeps its laid-out state once seen, so coming back is free.
   Without JavaScript (no .js class) every scene stays laid out, for the hover fallback below. */
html.js .hw-sc{content-visibility:hidden}
html.js .hw-sc.is-live{content-visibility:visible}
/* before the script runs, a hover still picks the scene (browsers with :has) */
@supports selector(:has(a)){
  .ways-grid:not(.hw-live):has(.way:hover, .way:focus-visible) .hw-sc{opacity:0; visibility:hidden}
  .ways-grid:not(.hw-live):has(.way[data-i="1"]:hover, .way[data-i="1"]:focus-visible) .hw-sc-1,
  .ways-grid:not(.hw-live):has(.way[data-i="2"]:hover, .way[data-i="2"]:focus-visible) .hw-sc-2,
  .ways-grid:not(.hw-live):has(.way[data-i="3"]:hover, .way[data-i="3"]:focus-visible) .hw-sc-3,
  .ways-grid:not(.hw-live):has(.way[data-i="4"]:hover, .way[data-i="4"]:focus-visible) .hw-sc-4,
  .ways-grid:not(.hw-live):has(.way[data-i="5"]:hover, .way[data-i="5"]:focus-visible) .hw-sc-5{opacity:1; visibility:visible; transform:none; content-visibility:visible}
}

/* the row whose scene is on the phone keeps a quiet mark after the pointer leaves it */
.ways-grid.hw-live .way.is-on .way-go{border-color:rgba(var(--orb-glow),.7)}

/* the status bar every scene shares */
.hw-status{position:absolute; z-index:5; inset:0 0 auto; height:var(--p3d-safe-top); display:flex; align-items:center; justify-content:space-between;
  padding:calc(var(--mm) * 1.2) calc(var(--mm) * 6.4) 0 calc(var(--mm) * 7.4); font-size:calc(var(--mm) * 3.3); font-weight:600;
  letter-spacing:-.01em; color:#fff; pointer-events:none; font-variant-numeric:tabular-nums}
.hw-status.is-dark{color:#14161A}
/* before the script runs the status bar is dark (the HTML's is-dark), right for scene 01; a hover
   that picks one of the two dark scenes (02 the call, 05 the feed) turns it white */
@supports selector(:has(a)){
  .ways-grid:not(.hw-live):has(.way[data-i="2"]:hover, .way[data-i="2"]:focus-visible, .way[data-i="5"]:hover, .way[data-i="5"]:focus-visible) .hw-status{color:#fff}
}
.hw-sig{display:flex; align-items:center; gap:calc(var(--mm) * 1.1)}
.hw-sig i{display:flex; align-items:flex-end; gap:calc(var(--mm) * .4); height:calc(var(--mm) * 2.6)}
.hw-sig i b{width:calc(var(--mm) * .7); border-radius:1px; background:currentColor}
.hw-sig i b:nth-child(1){height:35%}.hw-sig i b:nth-child(2){height:55%}.hw-sig i b:nth-child(3){height:78%}.hw-sig i b:nth-child(4){height:100%}
.hw-sig s{position:relative; width:calc(var(--mm) * 5.4); height:calc(var(--mm) * 2.5); border-radius:calc(var(--mm) * .8); border:1px solid currentColor; opacity:.9}
.hw-sig s::before{content:''; position:absolute; inset:1.5px; right:22%; border-radius:1.5px; background:currentColor}
.hw-sig s::after{content:''; position:absolute; right:calc(var(--mm) * -.9); top:30%; bottom:30%; width:calc(var(--mm) * .5); border-radius:0 2px 2px 0; background:currentColor}

/* ═══ 01  the website: the Northside Plumbing sample (the Essential tier's sample further down the
   page, its colours and words), laid out for a phone, building itself ═══
   The finished page is the default. home-ways.js sets data-b from 0 (empty) to 7 (finished), and each
   part waits for its beat: 1 the nav and the photo's frame, 2 the headline, line and buttons, 3 the
   photo, 4 the three services, 5 the reviews, 6 the page glides down to the recent jobs. Only opacity,
   transform and clip-path move, so the build never lays the page out again. */
.hw-sc-1{--ws:#12564A; --ws-ink:#141A18; --ws-mut:#59645F; --ws-bg:#F7F5F0; --ws-pale:#EBE7DE;
  background:var(--ws-bg); color:var(--ws-ink)}
.hw-ws-top{position:absolute; z-index:2; inset:0 0 auto; padding-top:var(--p3d-safe-top); background:var(--ws-bg);
  border-bottom:1px solid rgba(20,26,24,.08)}
.hw-ws-nav{display:flex; align-items:center; gap:calc(var(--mm) * 1.3); height:calc(var(--mm) * 9.4); padding:0 calc(var(--mm) * 3.4)}
.hw-ws-logo{font-size:calc(var(--mm) * 2.45); font-weight:600; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap}
.hw-ws-logo b{color:var(--ws); font-weight:inherit}
.hw-ws-nav .hw-tag{flex:none}
.hw-ws-call{margin-left:auto; display:inline-flex; align-items:center; gap:calc(var(--mm) * .8); padding:calc(var(--mm) * 1.3) calc(var(--mm) * 2.1);
  border-radius:calc(var(--mm) * .7); background:var(--ws); color:#fff; font-size:calc(var(--mm) * 2.3); font-weight:600}
.hw-ws-call svg{width:calc(var(--mm) * 2.3); height:calc(var(--mm) * 2.3)}
/* the window the page glides in. Its height is known in millimetres (the 142.2 mm display, less the
   status bar and the nav: 121 mm), so the glide is that height less the page's own (100%): it brings
   the recent jobs up to the bottom edge and nothing is measured by script. (Not a size container:
   cqh inside it would also change --mm, which phone3d.css works out from the stage's height.) */
.hw-ws-view{position:absolute; inset:calc(var(--p3d-safe-top) + var(--mm) * 9.4) 0 0; overflow:hidden}
.hw-ws-top, .hw-ws-view{transition:opacity .5s var(--ease-out)}
.hw-sc-1.is-out .hw-ws-top, .hw-sc-1.is-out .hw-ws-view{opacity:0}
.hw-ws-page{padding-bottom:calc(var(--mm) * 8.6); transform:translateY(min(0px, calc(var(--mm) * 121 - 100%)));
  transition:transform 1.5s cubic-bezier(.45,0,.2,1)}
.hw-ws-shot{display:block; height:calc(var(--mm) * 24); overflow:hidden; background:var(--ws-pale)}
.hw-ws-shot img, .hw-ws-grid img{display:block; width:100%; height:100%; object-fit:cover}
.hw-ws-shot img{transition:clip-path 1.1s cubic-bezier(.65,0,.25,1), transform 1.7s var(--ease-out)}
.hw-ws-copy{padding:calc(var(--mm) * 3.2) calc(var(--mm) * 3.4)}
.hw-ws-kick{font-size:calc(var(--mm) * 1.75); letter-spacing:.16em; text-transform:uppercase; color:var(--ws); font-weight:600}
.hw-ws-h{margin-top:calc(var(--mm) * 1.7); font-size:calc(var(--mm) * 5.5); line-height:1.02; letter-spacing:-.04em; font-weight:700; text-wrap:balance}
.hw-ws-p{margin-top:calc(var(--mm) * 1.7); font-size:calc(var(--mm) * 2.35); line-height:1.5; color:var(--ws-mut)}
.hw-ws-btns{display:flex; gap:calc(var(--mm) * 1.5); margin-top:calc(var(--mm) * 2.8)}
.hw-ws-btns span{font-size:calc(var(--mm) * 2.35); font-weight:600; padding:calc(var(--mm) * 1.8) calc(var(--mm) * 2.7); border-radius:calc(var(--mm) * .7);
  border:1.5px solid rgba(20,26,24,.16)}
.hw-ws-btns .hw-ws-b1{background:var(--ws); border-color:var(--ws); color:#fff}
.hw-ws-cards{display:grid; gap:calc(var(--mm) * 1.1); padding:0 calc(var(--mm) * 3.4)}
.hw-ws-card{padding:calc(var(--mm) * 1.9) calc(var(--mm) * 2.6); border-radius:calc(var(--mm) * .7); background:var(--ws-pale)}
.hw-ws-card b{display:block; font-size:calc(var(--mm) * 2.55); font-weight:600; letter-spacing:-.01em}
.hw-ws-card span{display:block; margin-top:calc(var(--mm) * .5); font-size:calc(var(--mm) * 2.1); line-height:1.45; color:var(--ws-mut)}
.hw-ws-band{margin-top:calc(var(--mm) * 3.2); padding:calc(var(--mm) * 3.2) calc(var(--mm) * 3.4); background:var(--ws-pale)}
.hw-ws-band > b, .hw-ws-jobs > b{display:block; font-size:calc(var(--mm) * 3.2); font-weight:600; letter-spacing:-.03em}
.hw-ws-quotes{display:grid; grid-template-columns:1fr 1fr; gap:calc(var(--mm) * 1.3); margin-top:calc(var(--mm) * 2.2)}
.hw-ws-q{padding:calc(var(--mm) * 1.9) calc(var(--mm) * 2.1); border-radius:calc(var(--mm) * .7); background:var(--ws-bg)}
.hw-ws-q u{display:block; text-decoration:none; color:#E8A317; letter-spacing:1px; font-size:calc(var(--mm) * 2)}
.hw-ws-q span{display:block; margin:calc(var(--mm) * 1) 0; font-size:calc(var(--mm) * 2.15); line-height:1.4}
.hw-ws-q i{font-style:normal; font-size:calc(var(--mm) * 1.9); font-weight:500; color:var(--ws-mut)}
.hw-ws-jobs{padding:calc(var(--mm) * 3.2) calc(var(--mm) * 3.4) 0}
.hw-ws-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:calc(var(--mm) * 1.2); margin-top:calc(var(--mm) * 2)}
.hw-ws-grid span{display:block; aspect-ratio:5/4; overflow:hidden; border-radius:calc(var(--mm) * .7); background:var(--ws-pale)}
/* with the script off the data-src copies never load; the noscript copies show instead */
html:not(.js) .hw-sc-1 img[data-src]{display:none}

/* the beats. hw-snap: a reset or a stop jumps straight there, with nothing left animating */
.hw-sc-1.hw-snap, .hw-sc-1.hw-snap *{transition:none !important}
.hw-sc-1 :is(.hw-b1, .hw-b2, .hw-b4, .hw-b5, .hw-b6){transition:opacity .55s var(--ease-out), transform .75s var(--ease-out)}
.hw-sc-1 .hw-d1{transition-delay:.12s}
.hw-sc-1 .hw-d2{transition-delay:.24s}
.hw-sc-1 .hw-d3{transition-delay:.36s}
.hw-sc-1[data-b="0"] :is(.hw-b1, .hw-b2, .hw-b4, .hw-b5, .hw-b6),
.hw-sc-1[data-b="1"] :is(.hw-b2, .hw-b4, .hw-b5, .hw-b6),
.hw-sc-1[data-b="2"] :is(.hw-b4, .hw-b5, .hw-b6),
.hw-sc-1[data-b="3"] :is(.hw-b4, .hw-b5, .hw-b6),
.hw-sc-1[data-b="4"] :is(.hw-b5, .hw-b6),
.hw-sc-1[data-b="5"] .hw-b6{opacity:0; transform:translateY(calc(var(--mm) * 2.4))}
/* the photo wipes in from the left over its pale frame, settling from a slight zoom */
.hw-sc-1:is([data-b="0"], [data-b="1"], [data-b="2"]) .hw-ws-shot img{clip-path:inset(0 100% 0 0); transform:scale(1.08)}
.hw-sc-1:is([data-b="0"], [data-b="1"], [data-b="2"], [data-b="3"], [data-b="4"], [data-b="5"]) .hw-ws-page{transform:none}
/* back to the empty page in one step, never animated */
.hw-sc-1[data-b="0"] :is(.hw-b1, .hw-b2, .hw-b4, .hw-b5, .hw-b6, .hw-ws-page, .hw-ws-shot img){transition:none}

/* ═══ 02  the call ═══ (the look of the AI Receptionist page's call screen) */
.hw-sc-2{display:flex; flex-direction:column; padding:calc(var(--p3d-safe-top) + var(--mm) * 2.5) calc(var(--mm) * 4.2) calc(var(--mm) * 4.5);
  background:radial-gradient(120% 45% at 50% 0%, rgba(var(--orb-glow),.26), transparent 70%), linear-gradient(180deg,#121419,#0B0C0F)}
.hw-c-top{display:flex; justify-content:space-between; align-items:center}
.hw-c-dir{display:inline-flex; align-items:center; gap:calc(var(--mm) * 1.6); font-size:calc(var(--mm) * 2.3); letter-spacing:.16em; text-transform:uppercase; font-weight:600; color:var(--dim)}
.hw-c-dir i{position:relative; width:calc(var(--mm) * 1.7); height:calc(var(--mm) * 1.7); border-radius:50%; background:var(--accent)}
.hw-c-dir i::after{content:''; position:absolute; inset:-4px; border-radius:50%; border:1px solid var(--accent); opacity:0}
.hw-run .hw-c-dir i::after{animation:hw-ripple 1.6s var(--ease-out) infinite}
.hw-c-time{font-size:calc(var(--mm) * 2.8); color:var(--dim); font-variant-numeric:tabular-nums}
.hw-c-biz{margin-top:calc(var(--mm) * 2.6); font-size:calc(var(--mm) * 5.6); font-weight:300; letter-spacing:-.03em; line-height:1.05}
.hw-c-note{margin-top:calc(var(--mm) * .8); font-size:calc(var(--mm) * 2.3); color:var(--dim)}
.hw-voices{display:flex; gap:calc(var(--mm) * 1.4); margin-top:calc(var(--mm) * 3.4)}
.hw-voice{font-size:calc(var(--mm) * 2.3); padding:calc(var(--mm) * 1.1) calc(var(--mm) * 2.4); border-radius:999px; border:1px solid var(--line); color:#8A9096;
  transition:color .3s, border-color .3s, background .3s}
.hw-sc-2[data-who="ai"] .hw-voice[data-who="ai"]{color:var(--ink); border-color:rgba(var(--orb-glow),.8); background:rgba(var(--orb-glow),.22)}
.hw-sc-2[data-who="caller"] .hw-voice[data-who="caller"]{color:var(--ink); border-color:rgba(242,243,241,.6); background:rgba(242,243,241,.1)}
/* the waveform: bars scale on the GPU (scaleY), never height */
.hw-wave{display:flex; align-items:center; gap:calc(var(--mm) * .55); height:calc(var(--mm) * 9); margin-top:calc(var(--mm) * 3)}
.hw-wave i{flex:1; height:100%; border-radius:2px; background:var(--accent); transform:scaleY(.12); transition:background .3s;
  animation:none 1.05s ease-in-out infinite}
.hw-sc-2[data-who="caller"] .hw-wave i{background:#C9CDD1}
/* only the name switches on, so each bar keeps its own delay and speed below */
.hw-run.hw-talk .hw-wave i{animation-name:hw-wave}
.hw-wave i:nth-child(2n){animation-delay:-.35s}.hw-wave i:nth-child(3n){animation-delay:-.7s}.hw-wave i:nth-child(5n){animation-delay:-.15s}.hw-wave i:nth-child(7n){animation-delay:-.55s}
.hw-wave i:nth-child(4n+1){animation-duration:.85s}.hw-wave i:nth-child(6n+2){animation-duration:1.3s}
@keyframes hw-wave{0%,100%{transform:scaleY(.14)}50%{transform:scaleY(1)}}
/* the transcript: each line arrives under the last, like a chat. While they fit they sit at the
   top (the spacer after them takes the spare room); once they don't, the newest stays in view and
   the oldest slides up under a fade, the way a chat scrolls. */
.hw-lines{flex:1; min-height:0; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; gap:calc(var(--mm) * 1.8); padding-top:calc(var(--mm) * 4);
  -webkit-mask-image:linear-gradient(transparent, #000 calc(var(--mm) * 4)); mask-image:linear-gradient(transparent, #000 calc(var(--mm) * 4))}
.hw-lines::after{content:''; flex:1 1 0; margin-top:calc(var(--mm) * -1.8)}
.hw-line{display:none; flex:none; flex-direction:column; gap:calc(var(--mm) * .6); max-width:88%; padding:calc(var(--mm) * 2) calc(var(--mm) * 2.8);
  border-radius:calc(var(--mm) * 3.4); background:#191B20; border:1px solid var(--line); align-self:flex-start}
.hw-line.is-ai{align-self:flex-end; background:rgba(var(--orb-glow),.16); border-color:rgba(var(--orb-glow),.34)}
.hw-line em{font-style:normal; font-size:calc(var(--mm) * 1.9); letter-spacing:.14em; text-transform:uppercase; font-weight:600; color:#8A9096}
.hw-line.is-ai em{color:#A9C2F0}
.hw-line p{font-size:calc(var(--mm) * 2.85); line-height:1.4}
.hw-sc-2[data-step="1"] .hw-line:nth-child(-n+1), .hw-sc-2[data-step="2"] .hw-line:nth-child(-n+2),
.hw-sc-2[data-step="3"] .hw-line:nth-child(-n+3), .hw-sc-2[data-step="4"] .hw-line, .hw-sc-2[data-step="5"] .hw-line{display:flex}
.hw-line{animation:hw-in .45s var(--ease-out) both}
@keyframes hw-in{from{opacity:0; transform:translateY(8px)}to{opacity:1; transform:none}}
.hw-did{margin-top:calc(var(--mm) * 3); padding-top:calc(var(--mm) * 2.6); border-top:1px solid var(--line)}
.hw-did p{font-size:calc(var(--mm) * 2); letter-spacing:.18em; text-transform:uppercase; font-weight:600; color:#8A9096}
.hw-chips{display:flex; flex-wrap:wrap; gap:calc(var(--mm) * 1.2); margin-top:calc(var(--mm) * 1.8)}
.hw-chip{display:inline-flex; align-items:center; gap:calc(var(--mm) * 1.2); font-size:calc(var(--mm) * 2.45); font-weight:500; color:#8A9096; white-space:nowrap;
  padding:calc(var(--mm) * 1.2) calc(var(--mm) * 2.2) calc(var(--mm) * 1.2) calc(var(--mm) * 1.2); border-radius:999px; border:1px dashed var(--line-strong);
  transition:color .35s var(--ease-out), border-color .35s var(--ease-out)}
.hw-chip::before{content:''; flex:none; width:calc(var(--mm) * 3.2); height:calc(var(--mm) * 3.2); border-radius:50%; border:1px dashed var(--line-strong);
  background:transparent center/62% no-repeat}
.hw-chip.is-done{color:var(--ink); border-style:solid; border-color:rgba(var(--orb-glow),.6)}
.hw-chip.is-done::before{border:0; background-color:var(--accent); animation:hw-tick .5s var(--ease-out) both;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1.2' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
@keyframes hw-tick{0%{transform:scale(.4)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
@keyframes hw-ripple{from{transform:scale(1); opacity:.9}to{transform:scale(2.3); opacity:0}}
.hw-c-foot{margin-top:calc(var(--mm) * 2.6); font-size:calc(var(--mm) * 2); color:#6E747A; text-align:center}

/* ═══ 03  a search results page (light, like every real phone search; no search engine's
   name, logo or colours) ═══ */
.hw-sc-3{--sx-ink:#1C1E22; --sx-dim:#5E636B; --sx-line:#E3E5E8; --sx-blue:#2E62C9; --sx-green:#1F7A4D;
  display:flex; flex-direction:column; padding-top:calc(var(--p3d-safe-top) + var(--mm) * .6); background:#fff; color:var(--sx-ink)}
.hw-sx-bar{display:flex; align-items:center; gap:calc(var(--mm) * 2); margin:0 calc(var(--mm) * 3.2); height:calc(var(--mm) * 8.4);
  padding:0 calc(var(--mm) * 3); border-radius:999px; background:#F1F3F5; font-size:calc(var(--mm) * 3.15)}
.hw-sx-bar svg{flex:none; width:calc(var(--mm) * 3.4); height:calc(var(--mm) * 3.4); color:var(--sx-dim)}
.hw-sx-q{flex:1; min-width:0; white-space:nowrap; overflow:hidden}
.hw-sx-q span{display:inline-block; vertical-align:bottom; overflow:hidden; max-width:100%}
.hw-sx-caret{display:inline-block; width:1.5px; height:1.1em; vertical-align:-.15em; margin-left:1px; background:var(--sx-blue); opacity:0}
.hw-run .hw-sx-caret{animation:hw-blink 1s steps(1) infinite}
@keyframes hw-blink{50%{opacity:1}}
.hw-sx-tabs{display:flex; gap:calc(var(--mm) * 4.2); margin:calc(var(--mm) * 2.2) calc(var(--mm) * 3.2) 0; padding:0 calc(var(--mm) * 1);
  border-bottom:1px solid var(--sx-line); font-size:calc(var(--mm) * 2.6); color:var(--sx-dim); white-space:nowrap}
.hw-sx-tabs span{padding-bottom:calc(var(--mm) * 1.6)}
.hw-sx-tabs .on{color:var(--sx-ink); font-weight:600; border-bottom:2px solid var(--sx-ink)}
.hw-sx-body{flex:1; min-height:0; overflow:hidden; padding:calc(var(--mm) * 2.4) calc(var(--mm) * 3.2) 0}
.hw-sx-h{display:flex; justify-content:space-between; align-items:baseline; font-size:calc(var(--mm) * 3.1); font-weight:600; letter-spacing:-.01em}
.hw-sx-h small{font-size:calc(var(--mm) * 2); font-weight:500; color:var(--sx-dim); letter-spacing:.06em; text-transform:uppercase}
.hw-map{position:relative; margin-top:calc(var(--mm) * 1.8); border-radius:calc(var(--mm) * 2.6); overflow:hidden; border:1px solid var(--sx-line); aspect-ratio:300/158}
.hw-map svg{display:block; width:100%; height:100%}
.hw-m-lbl{font:500 6.2px/1 var(--font-ui); fill:#6F737A; letter-spacing:.02em}
.hw-m-main{font-weight:600; fill:#7A5F1E}
.hw-m-park{fill:#4E7A44; font-size:6.4px; font-weight:600}
.hw-m-water{fill:#4F7FA3; font-style:italic; font-size:6.4px}
.hw-m-pin{transform-box:fill-box; transform-origin:50% 100%; animation:none .6s var(--ease-out) var(--d, 0s) both}
.hw-run.hw-pins .hw-m-pin{animation-name:hw-drop}
@keyframes hw-drop{0%{opacity:0; transform:translateY(-10px)}100%{opacity:1; transform:none}}
.hw-m-ours{transform-box:fill-box; transform-origin:50% 100%}
.hw-run.hw-pins .hw-m-ours{animation:hw-drop .7s var(--ease-out) .3s both}
.hw-m-halo{fill:rgba(86,131,218,.22); transform-box:fill-box; transform-origin:center}
.hw-run.hw-pins .hw-m-halo{animation:hw-halo 2.4s var(--ease-out) 1s infinite}
@keyframes hw-halo{0%{transform:scale(.6); opacity:1}100%{transform:scale(2.2); opacity:0}}
.hw-sx-list{margin-top:calc(var(--mm) * 1.2)}
.hw-biz{position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 calc(var(--mm) * 2); padding:calc(var(--mm) * 2) 0;
  border-bottom:1px solid var(--sx-line); font-size:calc(var(--mm) * 2.55); line-height:1.45; color:var(--sx-dim)}
.hw-biz.is-ours{margin:calc(var(--mm) * 1) calc(var(--mm) * -1.6) 0; padding:calc(var(--mm) * 2.2) calc(var(--mm) * 1.6); border:1.5px solid rgba(86,131,218,.75);
  border-radius:calc(var(--mm) * 2.4); background:rgba(86,131,218,.06)}
.hw-run.hw-pins .hw-biz.is-ours{animation:hw-in .6s var(--ease-out) .25s both}
.hw-biz b{display:flex; align-items:center; gap:calc(var(--mm) * 1.4); font-size:calc(var(--mm) * 3.15); font-weight:600; color:var(--sx-ink); letter-spacing:-.01em}
.hw-tag{font-size:calc(var(--mm) * 1.75); font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:#3B5EA8; padding:calc(var(--mm) * .5) calc(var(--mm) * 1.2);
  border-radius:999px; border:1px solid rgba(86,131,218,.55)}
.hw-rate{display:flex; align-items:center; gap:calc(var(--mm) * .9); color:var(--sx-ink)}
.hw-stars{letter-spacing:.05em; color:#E2A21B; font-size:calc(var(--mm) * 2.5)}
.hw-stars i{font-style:normal; color:#D5D8DC}
.hw-rate small{font-size:inherit; color:var(--sx-dim)}
.hw-open{color:var(--sx-green); font-weight:500}
.hw-shut{color:#B3261E; font-weight:500}
.hw-acts{grid-column:1/-1; display:flex; gap:calc(var(--mm) * 1.6); margin-top:calc(var(--mm) * 1.5)}
.hw-acts span{display:inline-flex; align-items:center; gap:calc(var(--mm) * 1.1); padding:calc(var(--mm) * 1.2) calc(var(--mm) * 2.6); border-radius:999px;
  border:1px solid #C9CDD3; color:var(--sx-blue); font-weight:600; font-size:calc(var(--mm) * 2.5)}
.hw-acts span:first-child{background:var(--sx-blue); border-color:var(--sx-blue); color:#fff}
.hw-acts svg{width:calc(var(--mm) * 2.8); height:calc(var(--mm) * 2.8)}
.hw-thumb{align-self:start; width:calc(var(--mm) * 11); height:calc(var(--mm) * 11); border-radius:calc(var(--mm) * 2); background:#EEF0F2; display:grid; place-items:center}
.hw-thumb svg{width:55%; height:55%; color:#9AA0A8}
.hw-biz.is-ours .hw-thumb{background:rgba(86,131,218,.14)}
.hw-biz.is-ours .hw-thumb svg{color:#3B5EA8}
.hw-km{display:none}
html[data-region="au"] .hw-mi{display:none}
html[data-region="au"] .hw-km{display:inline}
/* ═══ 04  real app screens, one after another, the way a phone pushes a new screen ═══ */
.hw-sc-4{background:#0c0e12}
.hw-app{position:absolute; inset:0; padding-top:var(--p3d-safe-top); background:var(--app-bg, #0c0e12); transform:translateX(100%); visibility:hidden}
.hw-app img{display:block; width:100%; height:100%; object-fit:cover; object-position:top}
.hw-app.is-on{transform:none; visibility:visible}
.hw-app.is-out{transform:translateX(-28%); visibility:visible}
.hw-app.is-out::after{content:''; position:absolute; inset:0; background:#000; opacity:.38}
.hw-app.is-anim{transition:transform .62s cubic-bezier(.32,.72,0,1)}
.hw-app.is-anim::after{transition:opacity .62s cubic-bezier(.32,.72,0,1)}
.hw-app.is-on::after{content:''; position:absolute; inset:0; background:#000; opacity:0}
.hw-dots{position:absolute; z-index:6; left:0; right:0; bottom:calc(var(--mm) * 1.6); display:flex; justify-content:center; gap:calc(var(--mm) * 1.1); pointer-events:none}
.hw-dots i{width:calc(var(--mm) * 1.2); height:calc(var(--mm) * 1.2); border-radius:50%; background:rgba(128,128,128,.55); transition:background .3s, transform .3s}
.hw-dots i.on{background:var(--accent); transform:scale(1.25)}

/* ═══ 05  the feed: three videos, swipe or arrow to the next, one plays ═══ */
.hw-sc-5{background:#000}
.hw-feed{position:absolute; inset:0; overflow-y:auto; overscroll-behavior:contain; scroll-snap-type:y mandatory; scrollbar-width:none; outline:none; touch-action:pan-y}
.hw-feed::-webkit-scrollbar{display:none}
.hw-feed.is-drag{scroll-snap-type:none; cursor:grabbing}
.hw-post{position:relative; height:100%; scroll-snap-align:start; scroll-snap-stop:always; background:#000; padding-top:var(--p3d-safe-top)}
/* each video whole, 9:16 across the full width, under the status bar; the strip left below it
   holds the sound button and the counter, so nothing covers the video's own words */
.hw-post video{display:block; width:100%; height:auto; aspect-ratio:9/16; object-fit:contain; background:#0B0C0F}
.hw-feed:focus-visible{box-shadow:none; outline:2px solid var(--accent); outline-offset:-4px}
.hw-sound{position:absolute; z-index:6; left:calc(var(--mm) * 3.4); bottom:calc(var(--mm) * 2.6); display:inline-flex; align-items:center; gap:calc(var(--mm) * 1.4);
  appearance:none; border:1px solid rgba(255,255,255,.28); cursor:pointer; min-height:max(40px, calc(var(--mm) * 9.6)); padding:0 calc(var(--mm) * 3.2) 0 calc(var(--mm) * 2.4);
  border-radius:999px; background:rgba(255,255,255,.1); color:#fff;
  font:600 calc(var(--mm) * 2.8)/1 var(--font-ui)}
.hw-sound[hidden]{display:none}
.hw-sound i{width:calc(var(--mm) * 3.6); height:calc(var(--mm) * 3.6); background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z' fill='%23000'/%3E%3Cpath d='M16.5 9.5l5 5m0-5l-5 5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z' fill='%23000'/%3E%3Cpath d='M16.5 9.5l5 5m0-5l-5 5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.hw-sound.on i{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z' fill='%23000'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.6 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z' fill='%23000'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.6 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
.hw-sound:focus-visible, .hw-play:focus-visible, .hw-go:focus-visible{outline:2px solid var(--ink); outline-offset:3px}
.hw-play{position:absolute; z-index:6; left:50%; top:calc(var(--p3d-safe-top) + var(--mm) * 57.7); width:calc(var(--mm) * 17); height:calc(var(--mm) * 17); margin:calc(var(--mm) * -8.5) 0 0 calc(var(--mm) * -8.5);
  appearance:none; border:0; cursor:pointer; border-radius:50%; background:rgba(8,9,11,.58); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); display:grid; place-items:center}
.hw-play[hidden]{display:none}
.hw-play::before{content:''; margin-left:12%; border-left:calc(var(--mm) * 5.2) solid #fff; border-top:calc(var(--mm) * 3.2) solid transparent; border-bottom:calc(var(--mm) * 3.2) solid transparent}
.hw-pos{position:absolute; z-index:6; right:calc(var(--mm) * 3.4); bottom:calc(var(--mm) * 4.6); font:600 calc(var(--mm) * 2.2)/1 var(--font-mono);
  letter-spacing:.1em; color:#A2A7AC; pointer-events:none}
/* next and previous, beside the phone (only on scene 05) */
.hw-ctrl{position:absolute; z-index:3; top:50%; right:max(8px, calc(50% - var(--p3d-w) / 2 - 68px)); transform:translateY(-50%);
  display:flex; flex-direction:column; gap:10px; opacity:0; visibility:hidden; transition:opacity .35s var(--ease-out), visibility 0s linear .35s}
.ways-grid[data-on="5"] .hw-ctrl{opacity:1; visibility:visible; transition-delay:0s}
.hw-go{appearance:none; cursor:pointer; width:44px; height:44px; border-radius:50%; border:1px solid var(--line-strong); background:var(--bg-3); color:var(--ink);
  display:grid; place-items:center; transition:background var(--t-fast), border-color var(--t-fast), opacity var(--t-fast)}
.hw-go:hover{border-color:var(--accent); background:var(--accent-dim)}
.hw-go[aria-disabled="true"]{opacity:.35; cursor:default}
.hw-go svg{width:18px; height:18px}

/* ── phones and narrow tablets: the same one phone, under the rows, with the buttons above ── */
@media (max-width:980px){
  .ways-stage{container-type:normal; display:block; height:auto}
  .ways-stage .hw-dev{padding:var(--s5) 0 var(--s6)}
  .ways-stage .hw-dev{--p3d-w:min(272px, calc(100vw - 110px)); gap:calc(var(--s5) + 6px)}
  .hw-ctrl{position:relative; top:auto; right:auto; transform:none; flex-direction:row; gap:16px}
  /* the next and previous buttons take room only on 05 (the move follows a tap, so it is not a layout shift) */
  .ways-grid:not([data-on="5"]) .hw-ctrl{display:none}
  .ways-stage .stage-cap{height:auto; min-height:14px; padding:0 16px 22px}
  .ways-stage .stage-cap .cap{position:relative; display:none; inset:auto}
  .ways-grid[data-on="1"] .stage-cap .cap-1, .ways-grid[data-on="2"] .stage-cap .cap-2, .ways-grid[data-on="3"] .stage-cap .cap-3,
  .ways-grid[data-on="4"] .stage-cap .cap-4, .ways-grid[data-on="5"] .stage-cap .cap-5{display:block}
}

@media (prefers-reduced-motion: reduce){
  .hw-p3d{transition:none}
  .hw-sc, .hw-app.is-anim, .hw-app.is-anim::after{transition:none}
  .hw-line, .hw-chip.is-done::before{animation:none}
  .hw-sc-1 :is(.hw-b1, .hw-b2, .hw-b4, .hw-b5, .hw-b6, .hw-ws-page, .hw-ws-shot img), .hw-ws-top, .hw-ws-view{transition:none}
  .hw-run .hw-c-dir i::after, .hw-run.hw-talk .hw-wave i, .hw-run .hw-sx-caret,
  .hw-run.hw-pins .hw-m-pin, .hw-run.hw-pins .hw-m-ours, .hw-run.hw-pins .hw-m-halo, .hw-run.hw-pins .hw-biz.is-ours{animation:none}
  .hw-wave i:nth-child(odd){transform:scaleY(.6)}
}

.hw-m-oursl{fill:#1C1E22; font-weight:600; font-size:6.6px}
.hw-sr{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}
.ways-stage .stage-ticks{position:absolute; inset:0; pointer-events:none}
