
  :root{
    color-scheme:light;
    --paper:#FFFDF8;
    --ink:#111111;
    --muted:#444444;
    --card:#FFFFFF;
    --blue:#2B5CFF;
    --violet:#7C3AED;
    --yellow:#FFC800;
    --red:#FF5C5C;
    --ease:cubic-bezier(.22,1,.36,1);
    /* dedicated ease for the title underline draws: ease-out — the line
       starts promptly and decelerates gently as it finishes, settling
       softly at the end — one curve + one duration for every underline */
    --ease-draw:cubic-bezier(0,0,.2,1);
    --shadow:5px 5px 0 var(--ink);
    --shadow-lg:8px 8px 0 var(--ink);
    --radius:18px;
  }
  *{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
  /* Android Chrome auto-inflates text it thinks is "too small", which
     made type render at different effective sizes on the phone than the
     CSS specifies (and different again from PC). 100% pins every size
     to exactly what the stylesheet says, on every device. */
  html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-anchor:none;background:var(--paper)}
  /* touch glide (JS-added class, coarse pointers only): while the
     custom rAF scroll animation drives the page frame by frame, the
     CSS smooth behaviour must stand down — otherwise every scrollTo
     step gets smoothed a second time and the glide fights itself.
     PC never gets this class, so its native smooth scroll is
     untouched. */
  html.touch-glide{scroll-behavior:auto}
  body{
    font-family:'Nunito Sans',system-ui,sans-serif;
    /* body background is the FOOTER's ink, not paper: every visible
       field above the footer paints its own paper background (the
       header, and .page which wraps all sections), so the body's own
       background only ever shows where no element covers it — the
       sticky footer's reveal gap and any sub-pixel sliver below the
       footer at the document end. In paper that sliver read as a
       stray white line under the footer doodle board (it kept coming
       back after the board's bottom border was removed, because the
       line was never the board's — it was the page background showing
       past it). In ink it is invisible: the board ends flush at the
       page bottom. html keeps the paper background above, so the
       canvas outside the document (overscroll) is unchanged. */
    background:#111;
    color:var(--ink);
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
  }
  ::selection{background:var(--yellow);color:#111}
  a{color:inherit}
  button,[role="button"]{min-height:44px}
  :focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:6px}
  /* anchor landing offset = the sticky header's EXACT height, measured
     by JS into --head-h (see the header-sync script). The old fixed
     118px overshot the ~95px header, so every menu jump stopped ~23px
     short and left a strip of the previous section — the black board
     edge — showing above the target section. With the margin equal to
     the header height, the section's top edge lands flush against the
     nav's bottom edge: heading right below the nav, nothing of the
     section above peeking in. The px fallback only covers the moments
     before the script runs. */
  section,#top{scroll-margin-top:var(--head-h,95px)}
  .wrap{max-width:1180px;margin:0 auto;padding:0 24px}
  h1,h2,h3,.serif{font-family:'Fraunces',serif}

  /* ---------- reveal system (one treatment, whole page) ---------- */
  html.js .rv{opacity:0;transform:translateY(26px);transition:opacity .85s var(--ease),transform .85s var(--ease);transition-delay:var(--d,0ms)}
  html.js .rv.in{opacity:1;transform:none}
  /* after the entrance settles, hoverable reveals get the page's standard
     .3s hover timing back (the reveal transition would otherwise make
     hovers feel laggy and out of sync with buttons and tiles) */
  html.js .rv.settled{transition:transform .3s var(--ease),box-shadow .3s var(--ease),background .3s var(--ease),opacity .3s var(--ease)}

  /* ---------- header ---------- */
  .site-head{
    position:sticky;top:0;z-index:50;
    background:var(--paper);
    border-bottom:2px solid var(--ink);
  }
  .site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:22px;padding-bottom:22px}
  /* Nav logo: the full "Woah Akshay" set in Satisfy, a real
     self-hosted signature typeface (comparison version against
     the Sacramento build, user's call). Ink black; Satisfy is a
     chunkier brush script with a larger x-height than Sacramento,
     so it sits a step down in size from Sacramento's 42px to read
     the same at nav size. */
  .logo{font-family:'Satisfy',cursive;font-size:34px;font-weight:400;line-height:1;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;color:var(--ink);transition:color .25s var(--ease)}
  .logo:hover{color:var(--blue)}
  .nav-links{display:flex;gap:34px;align-items:center}
  .nav-links a{font-size:14px;font-weight:800;color:var(--muted);text-decoration:none;padding:12px 4px;transition:color .25s var(--ease)}
  .nav-links a:hover{color:var(--blue)}
  .nav-cta{
    background:var(--ink);color:var(--paper);font-size:13px;font-weight:800;
    /* side padding widened again with the hero/contact pills (user's
       call, second round: the 32px inset still read as tight — the
       label and arrow sat too close to the pill's edges). 40px puts
       clear black space on both sides of the text, matching the
       roomier .btn inset below */
    padding:14px 40px;border-radius:999px;border:2px solid var(--ink);text-decoration:none;
    display:inline-flex;align-items:center;gap:7px;min-height:44px;
    transition:transform .25s var(--ease),background .25s var(--ease),border-color .25s var(--ease);
  }
  /* HOVER BLUR FIX (user's report: every hovered animated element
     went soft): a hover transform that ends in rotate() or a
     fractional scale() leaves the element on a resampled bitmap
     for the WHOLE hover — the browser rasterises it once, then
     GPU-rotates/scales that raster, so text inside never
     re-rasterises sharp at the tilted/zoomed pose. Every
     text-bearing hover on the page now ends in an integer-pixel
     translateY() ONLY: the lift still reads, and at the settled
     hover pose the element sits exactly on the pixel grid and
     paints crisp. Art-only hovers (doodles, thumbnails) keep
     their grow but lose the rotate for the same reason. */
  .nav-cta:hover{transform:translateY(-2px);background:var(--blue);border-color:var(--blue);color:#fff}
  /* the padding MUST live on this higher-specificity rule: the plain
     .nav-links a rule above (class + element) outranks .nav-cta
     (class alone), so the nav pill silently rendered with that rule's
     12px 4px padding no matter what .nav-cta declared — which is why
     the earlier side-padding increases never showed on this button.
     Declared here, 40px actually reaches the pill. */
  .nav-links a.nav-cta{color:var(--paper);padding:14px 40px}
  .nav-links a.nav-cta:hover{color:#fff}
  .burger{
    display:none;background:var(--card);border:2px solid var(--ink);border-radius:12px;
    width:46px;height:46px;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px;
  }
  .burger span{display:block;width:20px;height:2.5px;background:var(--ink);border-radius:2px;transition:transform .3s var(--ease),opacity .3s var(--ease)}
  .burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
  .burger[aria-expanded="true"] span:nth-child(2){opacity:0}
  .burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
  @media (max-width:860px){
    .burger{display:flex}
    /* menu open/close animation: display:none <-> flex cannot transition
       (why the menu used to snap), so the motion runs as keyframe
       animations on the page's ease curve. Opening: .open makes the panel
       display:flex and menuIn fades/drops it in while the links cascade.
       Closing: JS adds .closing (menuOut plays), then removes .open after
       300ms so the panel leaves the layout entirely — a closed menu is
       fully absent, exactly as it was before the animation was added. */
    .nav-links{
      position:absolute;left:16px;right:16px;top:calc(100% + 10px);
      flex-direction:column;align-items:stretch;gap:2px;
      background:var(--card);border:2px solid var(--ink);border-radius:16px;box-shadow:none;
      padding:10px;display:none;
    }
    .nav-links.open{display:flex;animation:menuIn .38s var(--ease) both}
    .nav-links.closing{display:flex;animation:menuOut .3s var(--ease) both}
    @keyframes menuIn{from{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
    @keyframes menuOut{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-10px) scale(.98)}}
    .nav-links a{padding:12px 10px;border-radius:10px}
    /* links cascade in on open; on close they simply ride the panel's fade */
    .nav-links.open a{animation:linkIn .32s var(--ease) both}
    .nav-links.open a:nth-child(1){animation-delay:.05s}
    .nav-links.open a:nth-child(2){animation-delay:.095s}
    .nav-links.open a:nth-child(3){animation-delay:.14s}
    .nav-links.open a:nth-child(4){animation-delay:.185s}
    .nav-links.open a:nth-child(5){animation-delay:.23s}
    .nav-links.open a:nth-child(6){animation-delay:.275s}
    @keyframes linkIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
    .nav-links a:hover{background:var(--yellow);color:#111}
    .nav-cta{justify-content:center;margin-top:6px}
  }

  /* ---------- hero ---------- */
  /* one-screen hero (user's call, PC + phone): the whole hero —
     headline, sub, buttons AND the full deck — fits the viewport
     with no scrolling and nothing cut off. The section is AT LEAST
     one screen tall (viewport minus the sticky header, whose height
     JS keeps in --head-h) and lays out as a flex column: the text
     block keeps its natural height and the deck takes whatever
     height is left. MIN-height, not height (the keyboard fix): the
     deck is sized by WIDTH now (see the doodle rules), so when a
     short viewport — the public link in Chrome, whose address bar
     and page header eat ~110px the downloaded file never loses —
     cannot fit text + full-size deck in one screen, the hero grows
     past one screen instead of shrinking the keyboard to fit. On
     any viewport tall enough, nothing changes: exactly one screen,
     deck centred in the leftover space. svh tracks the phone's
     real visible viewport; the vh line above it is the fallback
     for older engines. */
  /* desktop top padding steps UP (user's call): 20px → 38px (+18px,
     the same modest bump the phones got) so the headline has
     breathing room below the sticky header on PC too. The deck is
     width-sized and the fit estimate below already carries ~20px
     of slack, so the deck's size and the one-screen fit are
     unchanged; the ≤640px block sets its own 28px phone padding. */
  .hero{position:relative;overflow:hidden;padding:38px 0 22px;border-bottom:2px solid var(--ink);display:flex;flex-direction:column;min-height:calc(100vh - var(--head-h,95px));min-height:calc(100svh - var(--head-h,95px))}
  /* justify-content:center only ever engages together with the
     tall-screen deck cap below: while the deck wrap can still grow
     (flex:1) it absorbs every free px itself, free space is 0 and
     centring changes nothing — the approved phone/desktop layouts
     are untouched. Once the cap stops the wrap growing, the
     surplus splits evenly above the headline and below the deck,
     so the whole hero group sits centred as one tight composition
     instead of the deck floating alone mid-screen. */
  .hero-main{position:relative;z-index:2;text-align:center;padding-top:10px;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:center;width:100%}
  /* PC trim (user's call): the headline and sub sit a little smaller
     on desktop so the hero's text block takes less height and the
     one-screen fit holds on shorter desktop viewports — max 80px →
     72px, and the vh/vw terms step down with it. Trimmed once more
     (user's call): the 72px max still dwarfed the 16px sub, so the
     cap drops to 64px and the headline sits closer to the
     description's scale. (The deck's size itself is width-driven
     now; see the doodle rules.) The ≤640px block below sets its own
     phone headline size, so phones are untouched. */
  /* headline leading back at its original 1.04 (user's call): the
     earlier 1.16 rise was reverted — the cramped feel came from the
     spacing BETWEEN the hero blocks, not between the headline's own
     lines, so the fix lives in the sub's and cta-row's top margins
     below. The ≤640px block sets its own phone line-height, so
     phones are untouched. */
  .hero h1{
    font-size:clamp(40px,min(5.9vw,8.8vh),64px);line-height:1.04;font-weight:700;letter-spacing:-.01em;will-change:transform;flex:none;
  }
  /* each headline phrase is one unbreakable unit: a line may only ever
     break BETWEEN phrases (at the <br>s), never inside one. Desktop's
     lines are all shorter than the container, so nothing changes there;
     on a phone the phrases simply become the lines (see the ≤640px
     block), instead of the browser's ragged mid-phrase wraps. */
  .hero h1 .hl-phrase{white-space:nowrap}
  .hero h1 em{font-style:italic;color:var(--blue);position:relative;white-space:nowrap}
  /* underline geometry is in em, not px: the gap and thickness scale with
     the heading size, so the line hugs the word the same way at 86px on
     desktop and 44px on a phone (fixed px left it floating too low on
     mobile, crowding the next line) */
  .hero h1 em svg{position:absolute;left:0;right:0;bottom:-.03em;width:100%;height:.13em;display:block;pointer-events:none}
  /* the hero draw is a left-to-right clip reveal on the SVG box, NOT a
     stroke-dashoffset animation. The dash technique repaints the path on
     the main thread every frame and stepped/stuttered on PC and phone
     alike — worst while the hero parallax rewrites the h1 transform on
     the same frames. A basic-shape clip-path is compositor-driven, so
     the line glides at display rate with no repaint steps.
     PHONE FIX: the reveal is driven by a KEYFRAME ANIMATION, not a
     transition. A transition only runs if the browser painted the
     hidden "from" state first; phone webviews (in-app browsers,
     preloaded pages) routinely coalesce that first paint or fire the
     trigger while the page is still hidden, so the transition was
     skipped wholesale and the line just sat there fully drawn — the
     "underline not animating on phone" bug, which the double-rAF
     transition trigger never reliably fixed. A keyframe animation
     replays its from-state by definition whenever .drawn lands, on
     every engine, and the script now also waits for fonts + actual
     page visibility before firing it (see the title observer), so it
     cannot burn itself unseen in a preload either. Same 1.5s
     duration, same ease-out curve: only the mechanism changed.
     The draw's old .35s delay is GONE (user's call): the title
     observer now releases .drawn at the exact moment the cover
     fade finishes, so any delay stacked on top would start the
     line after the reveal instead of with it. The negative
     top/bottom insets leave headroom
     so the stroke is never clipped vertically, and the hidden state
     is gated on html.js so the line is simply visible if scripts
     never run. -webkit- prefixes included: older mobile Safari /
     Android webviews only animate the prefixed clip-path. */
  html.js .hero h1 em svg{-webkit-clip-path:inset(-45% 100% -45% 0);clip-path:inset(-45% 100% -45% 0);will-change:clip-path}
  html.js .hero.drawn h1 em svg{-webkit-clip-path:inset(-45% 0% -45% 0);clip-path:inset(-45% 0% -45% 0);animation:heroDraw 1.5s var(--ease-draw) both}
  @keyframes heroDraw{from{-webkit-clip-path:inset(-45% 100% -45% 0);clip-path:inset(-45% 100% -45% 0)}to{-webkit-clip-path:inset(-45% 0% -45% 0);clip-path:inset(-45% 0% -45% 0)}}
  /* letter-blast spans: JS splits the headline into one inline-block
     span per letter so each letter can fly on its own when a deck key
     is pressed. A letter is only ever translated/rotated as ONE whole
     piece — glyphs are never fractured or split apart. will-change is
     scoped to the blast itself (.blasting) so the letters cost nothing
     at rest. */
  .blast-ch{display:inline-block}
  .hero h1.blasting .blast-ch,.hero h1.fx-on .blast-ch{will-change:transform}
  /* NO FREEZE WHILE A LETTER EFFECT PLAYS (user's call): pressing a
     deck key used to set body.fx-playing for the effect's duration,
     and a rule here paused EVERY animation inside the deck for as
     long as the headline letters were flying — press the curve key
     while its line was mid-draw and the line stopped dead until the
     whole text effect settled, and the same freeze hit the spinning
     diamond, the pulsing heart, the star, the ball, the bars and
     every other key's loop, whichever key was pressed. The pause
     was a phone frame-budget trade (the bezier draw repaints the
     deck SVG every frame), but a key that freezes when pressed
     reads as broken, so the pause is retired like the scroll pause
     before it: the deck's loops now run straight through an effect,
     and the fx module no longer sets the class at all. */
  /* sub trimmed with the headline (17px → 16px, tighter leading and
     top margin) — same deal: the freed height goes to the deck. The
     ≤640px block overrides all three values on phones. */
  .hero .sub{margin:20px auto 0;max-width:580px;font-size:16px;line-height:1.6;color:var(--muted);will-change:transform;flex:none}
  /* "— work" is one unbreakable unit: the em-dash must never dangle
     at the end of a line with "work" stranded on the next one */
  .hero .sub .keep{white-space:nowrap}
  .hero .sub b{color:var(--ink)}
  .cta-row{margin-top:22px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;will-change:transform;flex:none}
  .btn{
    display:inline-flex;align-items:center;gap:9px;min-height:52px;
    /* side padding widened a second time (user's call): the earlier
       26px → 38px step showed no visible change to the user, so this
       goes clearly further — 48px of pill on each side of the label,
       so the text and arrow sit well inside the black background
       with obvious space to both edges */
    padding:14px 48px;border-radius:999px;font-weight:800;font-size:15px;
    text-decoration:none;cursor:pointer;border:2px solid var(--ink);
    transition:transform .25s var(--ease),background .25s var(--ease),color .25s var(--ease),box-shadow .25s var(--ease);
  }
  .btn .arr{display:inline-block;animation:arrowNudge 2.6s ease-in-out infinite alternate}
  /* button arrows are an inline SVG, not a font glyph: a font's arrow
     ink sits wherever that font's metrics place it inside its line box
     (and shifts again under fallback fonts), while flex centring
     centres the box, not the ink — which is why the arrows rode off
     the text midline. The SVG's drawing is symmetric about its own
     centre and its span is a centred flex box, so the arrow lands
     exactly on the midline in every button, on PC and phone alike.
     The containers' line-height tightens to 1.3 so the flex centre
     tracks the text's visual midline, not the looser default line box. */
  .btn,.nav-cta,.work-link{line-height:1.3}
  .btn span[aria-hidden="true"],.nav-cta span[aria-hidden="true"],.work-link .arr{
    display:inline-flex;align-items:center;justify-content:center;line-height:1;flex:none;
  }
  .arr-ic{display:block;width:1.25em;height:auto}
  .btn-black{background:var(--ink);color:var(--paper)}
  .btn-black:hover{background:var(--blue);border-color:var(--blue);color:#fff}
  .btn-light{background:var(--card);color:var(--ink)}
  .btn-light:hover{background:var(--yellow);color:#111}
  .btn:hover,html.js .rv.btn:hover{transform:translateY(-2px)}
  /* standout primary CTA: slow shine sweep + lift */
  .btn-primary{position:relative;overflow:hidden;box-shadow:4px 4px 0 var(--ink)}
  /* shine sweep: the band travels at CONSTANT speed (linear timing) from
     fully off the left edge to fully off the right edge. The old version
     ran on the site's ease-out curve, which front-loaded the motion —
     the band shot in, crawled mid-button, then the cycle ended before
     it visually crossed, so it seemed to stall and vanish. The gradient
     is now a soft five-stop falloff (fully transparent at both edges of
     a wider band) so no rectangle edge or grey block can ever show, and
     opacity fades the band out while it is still gliding off the far
     side, so it dissolves instead of disappearing. The loop restart
     jump back to the left happens at opacity 0, off-screen — invisible.
     Base state is opacity 0, so with the animation disabled (reduced
     motion) no band is ever left sitting on the button. */
  .btn-primary::after{
    content:"";position:absolute;top:-40%;bottom:-40%;left:0;width:45%;
    background:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.14) 28%,rgba(255,255,255,.42) 50%,rgba(255,255,255,.14) 72%,rgba(255,255,255,0) 100%);
    transform:translateX(-170%) rotate(8deg);
    opacity:0;pointer-events:none;will-change:transform,opacity;
    animation:shine 4.2s linear infinite;
  }
  @keyframes shine{
    0%{transform:translateX(-170%) rotate(8deg);opacity:0}
    5%{opacity:1}
    21%{opacity:1}
    27%{transform:translateX(330%) rotate(8deg);opacity:0}
    100%{transform:translateX(330%) rotate(8deg);opacity:0}
  }
  .btn-primary:hover{box-shadow:6px 6px 0 var(--ink)}

  /* the deck ("keyboard") reframed, closer, bigger and tilted at the
     user's call: the old viewBox (0 0 860 420) was mostly empty air —
     the panel itself spans only x 225–647 / y 114–352 — so the deck
     rendered small and sat ~150px below the CTA buttons despite its
     margin. The viewBox now hugs the artwork (89 93 712 290),
     centred on the panel's own centre (435, 233) so the panel stays
     centred exactly as before — the squiggle wire simply paints
     outside the box's left edge, which .doodle's overflow:visible
     already allows. The tighter frame makes the panel ~23% larger
     at the same CSS width and puts its top edge ~50px under the
     wrap instead of ~150px; the wrap is also wider (1140px at the
     reframe, 1086px after the PC scale-down below) and
     its top margin tighter (28px), so the buttons-to-panel gap
     lands at roughly a third of what it was.
     The whole deck also sits at a slight jaunty tilt: a wrapper
     group inside the SVG rotates all the artwork -1.5deg about the
     panel's centre, on top of the panel group's own -1deg. The tilt
     lives INSIDE the artwork, not as a CSS transform on the SVG
     element, on purpose: the slider converts pointer positions
     through the SVG's CTM using the pointer's x alone, which stays
     exact only while that CTM is axis-aligned — a CSS rotation on
     the element would leak the pointer's y into the computed x and
     drift the knob (measured ~10 units of drift when tried). The
     wrap is likewise left alone (pointer parallax owns its
     transform), and hover/tap/parallax are all scale-independent. */
  /* the wrap is a flex row that CENTRES the deck: flex:1 stretches
     it over whatever hero height is left after the text block, and
     on a taller screen the deck sits centred in that space. Its
     height can never drop below the deck's own width-driven height
     (aspect-ratio here + the in-flow SVG's own height — no
     min-height:0, which was the squeeze point): when the leftover
     runs out, the hero grows instead (see .hero's min-height). */
  .doodle-wrap{position:relative;max-width:1086px;margin:14px auto 0;will-change:transform;flex:1 1 auto;width:100%;aspect-ratio:712/290;display:flex;align-items:center;justify-content:center}
  /* mobile: even reframed, the panel is ~61% of the artwork's width,
     so at phone width it would render small. Scale the whole artwork
     up past the container and let the hero's overflow clip the side
     doodles — negative margins keep it centred without touching
     transform (the desktop parallax owns that).
     WHY THE KEYBOARD KEPT GOING SMALL (root cause, finally fixed):
     the deck used to be sized by the hero's LEFTOVER HEIGHT — the
     SVG absolutely filled a flex box and preserveAspectRatio "meet"
     scaled the artwork to whichever of the box's width/height ran
     out first, which on any real screen is the height. Every
     viewport-height difference therefore resized the keyboard: the
     downloaded HTML file (full screen height) rendered it big,
     while the public link — opened in Chrome under its address bar
     plus the page's own header, ~110px shorter — rendered it small,
     on phone AND on PC. Width bumps (150% → 175%) never helped:
     height bound first, so they landed in empty box space.
     THE FIX: the deck is now sized by WIDTH alone, on every device.
     The SVG sits in flow at width:100% / height:auto, so its height
     comes from the viewBox aspect ratio; the wrap floors at that
     height (aspect-ratio + no min-height:0), and the hero is
     min-height one screen, growing past it rather than squeezing
     the deck. Viewport height now changes only how much empty
     space surrounds the deck — never the deck's size. The panel is
     therefore a fixed ≈61% of the wrap's width everywhere: ~659px
     on a full-height desktop wrap, ≈88% of the screen on phones.
     The phone width tier is 165% (user's call, nudged down from
     the earlier 175% so the panel keeps a comfortable margin from
     the phone's screen edges instead of nearly touching them):
     the panel can never exceed ≈61% × 165% of the container and
     bleed off the screen edges the way the old 205% tier did.
     Desktop has its own guard now — the min-width:701px cap right
     after the phone tiers below makes the wrap width answer to
     the viewport height too, so the deck shrinks on shorter PC
     screens until the whole hero fits one screen again. The
     viewBox also lost its empty top/bottom air (300 → 290 tall,
     centred on the panel), so the taller hero the width-sizing
     needs stays as short as possible. Phone headline and sub keep
     their approved sizes (≤640px block: headline 9.5vw, sub
     14.5px); the slimmed 46px buttons and tightened hero spacing
     stay too — they keep the grown hero close to one screen even
     in the link's short viewport. */
  @media (max-width:700px){
    .doodle-wrap{width:165%;max-width:none;margin-top:10px;margin-left:-32.5%;margin-right:-32.5%}
  }
  @media (max-width:420px){
    .doodle-wrap{width:165%;max-width:none;margin-left:-32.5%;margin-right:-32.5%}
  }
  /* PC one-screen cap (user's call): pure width-sizing made the
     desktop deck a fixed ~458px tall, and on any PC viewport
     shorter than ~1005px (header + fixed text block + that deck)
     the hero outgrew the screen — the deck's bottom ran past the
     viewport edge and was cut off. So on desktop the wrap's width
     now ALSO answers to the viewport height: it is capped at the
     width whose deck exactly fills what is left after the header
     (var(--head-h)) and the hero's fixed text block (~460px:
     hero padding 60 + headline at its 72px max ~225 + sub ~91 +
     buttons ~68 + the deck's top margin 14 + ~2 slack). 2.3383
     is the viewBox ratio 712/290 turned around (height → width),
     scaled by 500/525 (user's call: the PC panel sat at ~525px and
     comes down a little to the ~500px of the earlier approved
     build; the base wrap max steps 1140px → 1086px by the same
     factor, so tall screens shrink by the same proportion).
     Taller screens never meet the cap and keep the full 1086px
     wrap and ~659px panel; shorter screens shrink the deck by
     exactly the amount the fit needs, so the headline, sub,
     buttons and the WHOLE deck always sit inside one screen.
     The 340px floor keeps the deck usable in a squashed window —
     there the hero grows a little instead of the deck vanishing.
     The vh line is the fallback for engines without svh; an
     engine without calc() multiplication ignores both lines and
     keeps the base width:100%. Phones never see this rule — the
     ≤700px tiers above size the phone deck. */
  @media (min-width:701px){
    .doodle-wrap{width:min(100%,1086px,max(340px,calc((100vh - var(--head-h,95px) - 460px)*2.3383)))}
    .doodle-wrap{width:min(100%,1086px,max(340px,calc((100svh - var(--head-h,95px) - 460px)*2.3383)))}
  }
  /* tall-screen cap (the BlueStacks fix): the wrap is flex:1 and
     CENTRES the deck in whatever hero height is left, which is
     right while the leftover is small — but on a tall screen at
     tablet/desktop width (a portrait tablet, a tall monitor, an
     emulator window like BlueStacks at ~720×1280) the leftover
     runs to 500px+ and the deck floats in the middle of a void,
     ~250px below the buttons and ~250px above the hero's bottom
     edge, while the identical page on a phone or a normal desktop
     sits tight (measured gaps there: 30–75px). So the wrap may
     outgrow the deck itself by at most 144px — 72px of air above
     and below it — at ANY size; past that, .hero-main's
     justify-content:center (see its rule) centres the whole
     headline → buttons → deck group in the remaining space, so
     the hero's internal spacing is the same at every resolution
     and only the empty paper around the group grows. The first
     term of each calc is the deck's own height at that tier
     (wrap width × 290/712): at ≥701px the wrap is container-bound
     on tall screens — the height cap above only binds on SHORT
     screens, where the leftover is ~0 and this cap never engages
     — and at ≤700px the wrap is 165% of the container (×1.65 ×
     290/712 ≈ ×.6721). Both estimates err a few px HIGH (they
     ignore the scrollbar), so the cap can never clip the deck;
     and on every size where the hero already sat tight (phones,
     laptops, normal desktops) the leftover is under 144px, the
     cap never engages, and nothing changes. */
  @media (min-width:701px){
    .doodle-wrap{max-height:calc(min(100vw - 48px,1132px)*.4073 + 144px)}
  }
  @media (max-width:700px){
    .doodle-wrap{max-height:calc((100vw - 48px)*.6721 + 144px)}
  }
  /* ---------- portrait tier: tablets & tall windows (user's call) ----------
     The hero's sizes were fixed px, so on a tall portrait screen —
     a tablet (1032×1376), a portrait emulator window like
     BlueStacks (720×1280) — the hero still stretched to a full
     screen while its content stayed phone/desktop-sized: measured
     207–252px of empty paper above the headline and 254–300px
     below the deck, the deck panel at only ~58% of the screen
     width, where a phone fills ~83% of its hero and a desktop
     ~88%. The user: too much negative space on all four sides;
     size and spacing must ADJUST with the screen so the hero looks
     the same at every size. So in portrait from 641px up,
     everything scales with the screen: the headline takes a
     stronger vw term (portrait has width to spare and height to
     fill), the sub steps up a touch, every gap becomes a vh clamp
     (grows on tall screens, shrinks on short ones), and the deck
     is sized like the phone deck — wider than its container, the
     panel at ~90% of the screen width (147.5vw of artwork × the
     panel's 61% share), the side doodles clipping into the hero's
     overflow exactly as they already do on phones — but ALSO
     height-fitted, so on a shorter portrait screen the deck
     shrinks to keep the whole hero on one screen instead of
     outgrowing it. The fit's text allowance (247px of spacings,
     sub and buttons at this tier's clamps + 3.12 × the headline
     size: 3 lines at 1.04 leading) is the same estimate the PC
     cap above uses, re-derived for this tier's sizes. --dw
     carries the width so the centring margin and the tall-screen
     growth cap (deck height + the same 144px of air the other
     tiers allow) read the exact same value. Landscape at these
     widths keeps the rules above untouched, phones keep their
     own tiers, and the approved desktop composition is unchanged. */
  @media (min-width:641px) and (orientation:portrait){
    .hero{padding:clamp(34px,4.5vh,56px) 0 clamp(20px,3vh,36px)}
    .hero h1{font-size:clamp(44px,8.2vw,88px)}
    .hero .sub{font-size:17px;margin-top:clamp(18px,2.6vh,30px)}
    .cta-row{margin-top:clamp(20px,2.8vh,32px)}
    .doodle-wrap{
      --dw:min(147.5vw,max(340px,calc((100vh - var(--head-h,95px) - 247px - 3.12*clamp(44px,8.2vw,88px))*2.3383)));
      --dw:min(147.5vw,max(340px,calc((100svh - var(--head-h,95px) - 247px - 3.12*clamp(44px,8.2vw,88px))*2.3383)));
      width:var(--dw);
      max-width:none;
      margin-top:clamp(14px,2.2vh,26px);
      margin-left:calc((100% - var(--dw))/2);
      margin-right:calc((100% - var(--dw))/2);
      max-height:calc(var(--dw)*.4073 + 144px);
    }
  }
  /* ---------- hero placement pass — option C (user's call) ----------
     Two placement problems, two fixes, approved together:
     (a) TALL screens (the longer-phone screenshots): the hero was
     forced to exactly one screen tall (min-height:100svh) and its
     content was CENTRED in that height — .hero-main flex:1 with
     justify-content:center, the deck wrap flex:1 centring the deck
     in the leftover — so on any screen taller than the content,
     the surplus pooled as empty paper ABOVE the deck (between the
     buttons and the keyboard) and BELOW it (between the keyboard
     and the hero's bottom edge), and the keyboard looked lost
     mid-screen. Fix: in PORTRAIT the hero is now exactly as tall
     as its content — no viewport min-height, no flex growth, no
     centring — so the headline sits right under the sticky header,
     the deck follows the buttons at the normal spacing, the hero
     ends right after the deck, and the violet motto band pulls up
     directly behind it. The sections below simply start higher.
     Portrait phones and tablets get this; landscape desktop keeps
     the one-screen hero exactly as approved.
     (b) WIDE + SHORT landscape screens (Nest Hub Max 1280×800,
     Nest Hub 1024×600): the PC one-screen cap above sized the
     deck from the viewport HEIGHT — (100svh − header − 460px of
     text) — so at 800px tall the wrap was squeezed to ~576px and
     the keyboard panel rendered at only ~27% of the screen width,
     small and stranded. Fix: on landscape screens up to 900px
     tall the wrap is sized from WIDTH instead — 68vw, capped at
     880px — putting the panel at ~40–42% of the screen width. The
     trade is deliberate: the hero grows a little past one screen
     on these short screens rather than shrinking the keyboard to
     fit. Taller landscape desktops never meet this query and keep
     the height-fitted cap untouched. */
  @media (orientation:portrait){
    .hero{min-height:0}
    .hero-main{flex:none;justify-content:flex-start}
    .doodle-wrap{flex:none}
  }
  @media (min-width:701px) and (orientation:landscape) and (max-height:900px){
    .doodle-wrap{width:min(100%,880px,68vw)}
  }
  /* the SVG sits IN FLOW at width:100% / height:auto: its height
     comes from the viewBox's aspect ratio, so the deck's rendered
     size is a pure function of its WIDTH — the wrap's width — and
     never of the viewport's height. (It used to absolutely fill
     the wrap and let "meet" fit it into the leftover hero height;
     that height-binding is what made the keyboard shrink in the
     link's shorter Chrome viewport. See the doodle-wrap note.) */
  .doodle{width:100%;height:auto;display:block;flex:none}
  .plx{will-change:transform}
  /* the base tile declares its rest pose as an explicit transform
     list — translateY(0px) scale(1) — NOT `none`: every other tile
     pose (lit, hover, active, tap) is that same two-function list,
     so EVERY transform change on a key — above all the un-lighting,
     where translateY and scale travel back together — interpolates
     function-by-function inside the ONE .38s transform transition
     below: the key lowers and shrinks simultaneously, in a single
     step, never move-first-then-shrink. Interpolating to or from
     `none` instead hands the whole pose to matrix decomposition,
     which is what let the two components drift apart into the
     two-step scale-down. The last key's un-light at the end of the
     sweep is the same single class removal, so it gets the same
     one-transition return. */
  .tile{cursor:pointer;transform-box:fill-box;transform-origin:center;transform:translateY(0px) scale(1);transition:transform .38s var(--ease),filter .38s var(--ease),translate .38s var(--ease)}
  .tile .bg{fill:var(--fill);transition:fill .25s var(--ease),stroke-width .25s var(--ease)}
  .tile.lit .bg{stroke-width:4.5}
  /* auto-sweep stroke hold (test): while the slider moves on its
     own (JS adds .auto-sweep to the deck SVG for the whole idle
     sweep and removes it the moment the user grabs the slider),
     a lit key keeps the SAME thin stroke it rests with — the
     outlines never thicken as the sweep lights the keys in turn.
     Manual scrubbing after the sweep stops is untouched. */
  #doodleSvg.auto-sweep .tile.lit .bg{stroke-width:3}
  .tile.lit{transform:translateY(-3px) scale(1)}
  /* auto-sweep scale (test): while the slider runs on its own, a
     lit key also grows a little (scale 1.09, the same pop the
     hover uses) as it rises, so the sweep reads lively again
     without any stroke thickening — the stroke hold above still
     applies and the outlines stay thin. Manual scrubbing after
     the sweep stops is untouched. Both directions are the ONE
     transform transition on .tile: translateY and scale are two
     functions of the same list (the base pose declares the same
     list at rest values — see the .tile rule), so a key rises +
     grows together as it lights and lowers + shrinks together as
     it un-lights, each in a single simultaneous motion. */
  #doodleSvg.auto-sweep .tile.lit{transform:translateY(-3px) scale(1.09)}
  /* pop-out hover: the tile lifts out of the deck like a keyboard key —
     scale-up + rise + a soft drop shadow, on the page's ease-out curve,
     settling smoothly back into the panel when the hover ends.
     Real-hover devices ONLY: on touch screens a tap leaves :hover stuck
     on the tapped key (the browser keeps it "hovered" until something
     else is tapped), so the key stayed popped out after a click. Gating
     every hover-pop rule behind (hover:hover) means a tap never pops a
     key at all — it can only be lit by the slider scrub, as intended. */
  @media (hover:hover) and (pointer:fine){
    .tile:hover .bg{fill:var(--hover)}
    .tile:hover{transform:translateY(-7px) scale(1.09);filter:drop-shadow(0 7px 5px rgba(17,17,17,.28))}
    /* held down, a key presses INTO the deck — the opposite of the
       hover pop — so holding a mouse press on a key feels like
       pressing a real key. This rule now carries ONLY the press
       shadow: the press MOVEMENT itself is the one uniform
       translate dip declared after the tap rules below (see the
       uniform-press note there) — no :active rule anywhere sets
       transform any more, so a press can never change a key's
       scale on its way down. Same specificity as :hover but later
       in the block, so the shadow wins while the press is held
       and hands back to the pop the moment it is released. */
    .tile:active{filter:drop-shadow(0 1px 1px rgba(17,17,17,.22))}
    /* lit keys must still answer the pointer (fix): the auto-sweep
       lit rule (#doodleSvg.auto-sweep .tile.lit) carries an ID in
       its selector, so it outranked the plain :hover rule above —
       a key that was lit and scaled up stayed frozen under the
       cursor. The hover selector below matches that specificity
       and adds the lit class on top, so the hover works in every
       state: the lit key KEEPS its 1.09 scale throughout and only
       the rise travels — hover lifts it from the lit −3px to the
       hover −7px. The :active selectors beside it now carry ONLY
       the press shadow, at the weights the shadow always needed:
       the press MOVEMENT is the one uniform translate dip
       declared after the tap rules below (see the uniform-press
       note there), identical for every key, so no press ever
       re-declares a lit key's transform or touches its scale.
       The plain .lit variants cover lit keys outside the sweep,
       and the .tap:active variants keep the press shadow on even
       during the tap class's brief pop. :active follows :hover
       here so the press shadow wins while both apply. */
    .tile.lit:hover,#doodleSvg.auto-sweep .tile.lit:hover{transform:translateY(-7px) scale(1.09);filter:drop-shadow(0 7px 5px rgba(17,17,17,.28))}
    .tile.lit:active,#doodleSvg.auto-sweep .tile.lit:active,.tile.lit.tap:active,#doodleSvg.auto-sweep .tile.lit.tap:active{filter:drop-shadow(0 1px 1px rgba(17,17,17,.22))}
    #sliderTile:hover #sliderFace{transform:translateY(-5px) scale(1.025);filter:drop-shadow(0 7px 5px rgba(17,17,17,.28))}
    #sliderTile:hover #sliderKnob circle:first-of-type{r:11}
  }
  /* the lift lives on #sliderFace, NOT on #sliderTile (flicker below
     the pill, on the keyboard's bottom boundary): #sliderTile owns
     the invisible hit rect, which reaches ~18 units BELOW the pill's
     visible bottom edge, almost to the panel's bottom edge. When the
     lift sat on #sliderTile itself, a cursor resting in that strip
     below the pill kept crossing the boundary — hovering lifted the
     whole group, its bottom edge rose out from under the cursor,
     hover dropped, the group eased back down onto the cursor, hover
     returned — an endless lift/drop loop that read as flickering
     below the pill. The hit rect now never moves: it stays a direct,
     untransformed child of #sliderTile, painted last (on top of the
     face), so once hover is entered it cannot be lost to the lift —
     while the face (pill, track, knob) still pops exactly as before.
     The knob's hover-grow is keyed off the tile's hover for the same
     reason: the hit rect now sits over the knob, so the knob itself
     is never the hovered element. Dragging is unaffected — presses
     on the hit rect bubble to the tile's own listeners, as before. */
  #sliderFace{transform-box:fill-box;transform-origin:center;transition:transform .38s var(--ease),filter .38s var(--ease)}
  .shape{transform-box:fill-box;transform-origin:center}
  .shape-play{animation:pulse 4s ease-in-out infinite}
  @keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.14)}}
  .shape-kf{animation:spinSlow 14s linear infinite}
  @keyframes spinSlow{to{transform:rotate(360deg)}}
  .shape-bezier-path{stroke-dasharray:120;animation:bezDraw 6s ease-in-out infinite}
  @keyframes bezDraw{0%{stroke-dashoffset:120}55%{stroke-dashoffset:0}100%{stroke-dashoffset:0}}
  .shape-heart{animation:heartbeat 2.8s ease-in-out infinite}
  @keyframes heartbeat{0%,100%{transform:scale(1)}14%{transform:scale(1.18)}28%{transform:scale(1)}42%{transform:scale(1.14)}56%{transform:scale(1)}}
  .shape-ball{animation:ballBounce 2.6s cubic-bezier(.36,0,.64,1) infinite alternate}
  @keyframes ballBounce{0%{transform:translateY(5px) scale(1.12,.88)}50%{transform:translateY(-9px) scale(.96,1.04)}100%{transform:translateY(5px) scale(1.12,.88)}}
  .shape-frame-play{animation:slideX 3.2s ease-in-out infinite alternate}
  @keyframes slideX{from{transform:translateX(-3px)}to{transform:translateX(4px)}}
  .shape-star{animation:spinSlow 14s linear infinite}
  .shape-bar{transform-box:fill-box;transform-origin:left center;animation:eq 2.6s ease-in-out infinite alternate}
  .shape-bar:nth-child(2){animation-delay:.18s}
  .shape-bar:nth-child(3){animation-delay:.36s}
  @keyframes eq{from{transform:scaleX(.45)}to{transform:scaleX(1)}}
  .shape-a{animation:wiggle 4.5s ease-in-out infinite}
  @keyframes wiggle{0%,100%{transform:rotate(0deg)}25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}
  .shape-tri{animation:triBob 3.5s ease-in-out infinite}
  @keyframes triBob{0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-5px) rotate(6deg)}}
  .shape-arrow{animation:arrowNudge 2.6s ease-in-out infinite alternate}
  @keyframes arrowNudge{from{transform:translateX(-2px)}to{transform:translateX(3px)}}
  .shape-dot{animation:pulse 3.6s ease-in-out infinite}
  .float-slow{animation:floatY 7s ease-in-out infinite}
  .float-slow2{animation:floatY 8s ease-in-out infinite;animation-delay:.8s}
  @keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
  .spin-slow{animation:spinSlow 20s linear infinite;transform-box:fill-box;transform-origin:center}
  #sliderKnob{cursor:grab}
  #sliderKnob:active{cursor:grabbing}
  #sliderKnob circle{transition:r .2s var(--ease)}
  /* one cursor for the WHOLE slider (cursor-flicker fix): the drag
     starts on a press anywhere on the pill — the listeners sit on
     the tile, the track and the knob alike — but only the knob
     carried the grab cursor. The pill background, the track line
     and the invisible fat hit rect that lies on top of them had
     none, so they fell back to the default arrow: crossing the gap
     between the knob's hit circle and the pill's edge flipped the
     cursor hand → arrow → hand, and the idle auto-sweep sliding
     the knob back and forth under a stationary cursor flickered
     it on its own. Every part of the control now reports grab
     (grabbing while pressed), so the cursor is one steady hand
     anywhere on the pill, moving or still. */
  #sliderTile,#sliderTile *{cursor:grab}
  #sliderTile:active,#sliderTile:active *{cursor:grabbing}
  /* touch drag: without touch-action:none the browser claims the finger
     gesture as a page scroll after a few pixels, fires pointercancel and
     the knob stops following — why the slider barely moved on a phone.
     Claiming the gesture on the whole slider keeps every move event
     flowing to the drag handler until the finger lifts. */
  #sliderTile,#sliderKnob,#sliderTrack{touch-action:none}
  /* the finger usually lands on a CHILD of those groups (the knob circle,
     the tile rect) — claim the gesture there too, or the browser can
     still steal the drag as a scroll on some phone browsers */
  #sliderTile *,#sliderKnob *{touch-action:none}
  /* tiles on touch: the rise / pop-out is a HOVER effect only
     (user's call — on the phone a pressed key came up as if it
     were hovered, which reads wrong). The .tap pop below is
     therefore gated behind the SAME real-hover media query as
     the :hover pop above — (hover:hover) and (pointer:fine) —
     so it can only ever fire for a mouse / pen click on a
     hover-capable device. On touch the .tap class is never
     added at all (see the tapPop listeners in the deck
     script, which ignore touch pointers), and even if the
     class somehow landed, these rules could not match: a
     touch press gets ONLY the one uniform press — the
     translate:0 5px dip plus the :active colour and shadow
     declared below — and never rises. manipulation also drops
     the double-tap-zoom delay so taps feel instant. */
  .tile{touch-action:manipulation}
  /* gap clearance (user's correction — do NOT shrink the keys on
     phone to fix the overlap): an earlier build rendered each key
     at 94% inside its cell on the ≤700px tier (a phone-only
     .tile{scale:.94} rule). That changed the deck's proportions on
     phone, which is not what was asked, so the shrink is REMOVED
     entirely — every key renders at its true size on every device.
     The clearance instead comes from the deck's real geometry:
     the uniform gaps between keys grew from 13 to 15 units in the
     SVG itself (see the gap note in the deck markup), on PC and
     phone alike, so a scaled-up key pressed toward a scaled-up
     neighbour now clears it on phone too, and the slightly larger
     PC gap is fine there as well. */
  @media (hover:hover) and (pointer:fine){
    .tile.tap{transform:translateY(-7px) scale(1.09);filter:drop-shadow(0 7px 5px rgba(17,17,17,.28))}
    /* same specificity fix as the hover block: a tap on a key that
       is lit by the auto-sweep must pop too — the plain .tap rule
       above loses to the sweep's ID-bearing lit rule */
    .tile.lit.tap,#doodleSvg.auto-sweep .tile.lit.tap{transform:translateY(-7px) scale(1.09);filter:drop-shadow(0 7px 5px rgba(17,17,17,.28))}
  }
  /* unlit press shadow during a tap (kept from the press-rescue
     fix): tapPop adds .tap on fine-pointer pointerdowns only —
     and the plain .tap pop above sits later than the unlit :active
     rule at equal weight, so without this rule the tap's pop
     shadow would cover the press shadow for the tap's 380ms. This
     rule carries ONLY the shadow now: the press MOVEMENT is the
     one uniform translate dip declared below (see the
     uniform-press note there) — while the press is held the dip
     applies on top of the tap pose, and the moment it releases
     the .tap pop resumes for the rest of its beat — exactly how
     a lit key already behaves. */
  .tile.tap:active{filter:drop-shadow(0 1px 1px rgba(17,17,17,.22))}
  /* lit press shadow on touch (kept from the phone fix): the lit
     press shadow existed only inside the (hover:hover) and
     (pointer:fine) block above, which a phone never matches, so
     the desktop lit press rules are repeated here, outside any
     media query and after the tap rules, at the same weights the
     hover block uses (.lit:active ties the plain .lit rules and
     lands later; .lit.tap:active outranks them outright). They
     carry ONLY the shadow now: the press MOVEMENT is the one
     uniform translate dip declared below (see the uniform-press
     note there), so a manual press on a lit key on touch dips
     exactly as it does with a mouse — held or tapped. The press
     colour was already outside the hover block (the
     .tile.lit:active .bg rule below), so dip + colour + shadow
     now travel together on touch too. Desktop is unchanged, and
     unlit keys and the auto-sweep are untouched. */
  .tile.lit:active,#doodleSvg.auto-sweep .tile.lit:active,.tile.lit.tap:active,#doodleSvg.auto-sweep .tile.lit.tap:active{filter:drop-shadow(0 1px 1px rgba(17,17,17,.22))}
  /* JS press shadow (first-click fix — see the .press note at the
     uniform-press rule below and the pressOn handlers in the deck
     script): while a mouse / pen press is held, the pressed key
     carries .press as well as :active, and this rule — declared
     after every pop shadow above, at the plain .tile weight — gives
     it the same press shadow for the whole guaranteed hold, even in
     the moments :active itself does not survive. Same value as
     every other press shadow on the deck. */
  .tile.press{filter:drop-shadow(0 1px 1px rgba(17,17,17,.22))}
  /* the tap colour rides with the tap pop, so it is gated the
     same way: only a mouse / pen click on a hover-capable
     device recolours via .tap. A touch press recolours via
     the :active rule below instead, for exactly as long as
     the finger is down — nothing lingers after release. */
  @media (hover:hover) and (pointer:fine){
    .tile.tap .bg{fill:var(--hover)}
  }
  /* manual-press colour (fix, user's report — "on some keys,
     while manually pressing, the colour didn't change"): the
     press poses above and in the hover block change only the
     transform and the shadow — no :active rule ever set the
     fill. During a press the colour was borrowed from two
     places that do not cover every key: :hover (which exists
     only inside the (hover:hover) media query, so a touch hold
     never has it) and .tap (which JS removes 380ms into the
     press, so a held press outlives it). On the keys those two
     missed, the key dipped with no colour change. The press now
     carries its OWN fill, at weights matching the lit press
     poses, for every lit state — unlit, lit, and lit by the
     auto-sweep — and the rule lives OUTSIDE the hover media
     query so a held touch press recolours for the whole hold
     too: pressing any key, in any state, always changes its
     colour to the hover colour. */
  .tile:active .bg,.tile.lit:active .bg,#doodleSvg.auto-sweep .tile.lit:active .bg,.tile.press .bg,.tile.lit.press .bg,#doodleSvg.auto-sweep .tile.lit.press .bg{fill:var(--hover)}
  /* THE uniform manual press (fix, user's report — the scaled-down
     keys STILL bounced harder than the scaled-up keys): the cause
     was exactly the suspected one. The old press poses were
     absolute transforms declared per state — a rest key pressed
     to translateY(5px) scale(1), a lit key to translateY(2px)
     scale(1.09) — but a rest key is always pressed FROM the
     hover / tap pop (translateY(-7px) scale(1.09), which the
     hover and .tap rules apply to every key alike), so its press
     combined a 12px fall with a 1.09 → 1.0 shrink, while a lit
     key's press was a clean dip with its scale held. The shrink
     riding on top of the dip is what read as the harder, more
     aggressive bounce. The press movement now lives in the
     separate CSS `translate` property — the same mechanism the
     .hint indication below already uses — as ONE rule with ONE
     literal value for every key in every state: a 5px dip layered
     over whatever pose the key currently holds. No :active rule
     sets `transform` any more (the per-state rules above and in
     the hover block carry only the press shadow, at the
     specificities they always needed), so a press can never
     change a key's scale: a rest key dips 5px holding scale 1, a
     lit key dips the same 5px holding scale 1.09 — literally the
     same movement values for all keys, and the value is the lit
     key's own press travel (its −3px lit pose pressed to +2px =
     5px), now shared by every key, rest keys made to press
     exactly like lit keys. The dip rides the translate slot of
     the one .tile transition, so it eases in and out on the same
     .38s curve for every key, and the press colour rule above
     already gives every key the same fill change. */
  .tile:active,.tile.press{translate:0 5px}
  /* .press is the JS twin of :active (first-click fix, user's
     report — on PC, after pressing one key, the FIRST click on the
     next key often did not press at all and only the second click
     moved it): the manual press used to ride on :active ALONE, and
     :active is the one press signal that can be lost between two
     keys — it is keyed to the browser's own press tracking, which
     the previous key's still-running .tap pop (the class now
     lingers a full 380ms beat, at the full hover pose) and the new
     key's still-running hover-pop transition can interrupt or
     outlast, above all on a fast click that ends before the dip
     has rendered. The deck script now ALSO puts .press on the
     exact key that received the pointerdown (mouse / pen only —
     see pressOn there) and holds it for a guaranteed minimum beat,
     so the dip above, the press colour and the press shadow land
     on the first click, every time, whichever key was pressed
     before: the class is added in the same task as the pointerdown
     itself, is removed only on release (never by a timer racing
     another key's press), and starting a press on a new key clears
     the previous key's .tap pop in the same instant, so no stale
     pop is left sitting at the hover pose competing with the new
     press. :active keeps working exactly as before alongside it —
     both signals declare the same values everywhere, so they can
     never fight. Touch never adds .press (the handlers are gated
     like tapPop's), so a phone tap is still answered by :active
     alone: dip only, no rise, exactly as fixed before. */
  /* the slider's tap lift is the same hover pop as the keys',
     so it is gated the same way — a touch tap on the slider
     never lifts its face; dragging it is unaffected. */
  @media (hover:hover) and (pointer:fine){
    #sliderTile.tap #sliderFace{transform:translateY(-5px) scale(1.025);filter:drop-shadow(0 7px 5px rgba(17,17,17,.28))}
  }
  /* THE indication (TEST — one consistent press cue for EVERY key,
     no words): this is the only indication the keys get, and its
     whole job is to tell people the keys can be pressed. The .hint
     class is added by JS to one key at a time, and the cue is the
     SAME on every key, whether that key is at rest (scaled down)
     or lit by the sweep (scaled up): the key dips down clearly
     from wherever it currently sits and flashes its hover colour,
     then springs back on the shared .38s ease. The dip rides the
     separate CSS `translate` property, NOT `transform`: the key's
     own pose — rest, the lit rise, the 1.09 scale-up — lives in
     `transform`, and `translate` composes on top of it untouched,
     so the indication never overrides, replaces or re-declares
     that pose. There is deliberately ONE rule here and no lit /
     unlit variant of it: a rest key dips 5px from rest, a lit key
     dips the same 5px from its lit pose, each keeping its current
     scale exactly — the identical relative motion in both states,
     from each key's own starting position. The soft shadow matches
     the manual press's. Nothing anywhere says the keys can be
     pressed or what a press does; the motion alone makes the hand
     want to try one, and the letter effects stay a surprise. */
  .tile.hint{translate:0 5px;filter:drop-shadow(0 1px 1px rgba(17,17,17,.22))}
  .tile.hint .bg{fill:var(--hover)}
  /* the deck SVG paints outside its viewport (overflow:visible) so the
     tiles' hover pop-outs and drop shadows are never clipped by the
     SVG's own box */
  .doodle{overflow:visible}

  /* ---------- hero layout: centred, every width (user's call) ----------
     A PC side-by-side hero (text left, deck right) was tried and
     reverted at the user's call — "not looking good". Every width
     uses the base centred stack: headline centred on top, sub and
     buttons centred under it, deck centred below, inside the
     one-screen fit (see the .hero rules above). Do not re-add a
     desktop two-column hero without a fresh user request. */

  .hero-foot{
    margin:32px auto 0;display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;
    font-size:12px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--muted);will-change:transform;
  }
  /* no separate hero entrance (user's call): the hero used to hold
     its pieces at opacity 0 behind the font gate and stagger them in
     (0 / 180 / 360 / 540 / 720ms) after the page fade — which read as
     elements popping in one after another on load. The hero now has
     no entrance of its own at all: nothing in it is ever held hidden
     separately, and every hero element appears with the rest of the
     page in the single unified cover fade (see the gate
     styles in the head). Scroll reveals below the fold keep their
     stagger — this only governs the load. The underline draw is
     unchanged: still fired by the title observer once the gate has
     lifted and the hero is visible. */
  @media (max-width:860px){.hero-foot{justify-content:center;text-align:center}}

  /* ---------- motto (right after hero) ---------- */
  .motto{background:var(--violet);color:#fff;position:relative;overflow:hidden;border-bottom:2px solid var(--ink)}
  .motto .wrap{padding-top:84px;padding-bottom:84px;text-align:center;position:relative;z-index:2}
  .motto-kicker{font-size:12px;font-weight:900;letter-spacing:3px;text-transform:uppercase;color:var(--yellow)}
  .motto-line{
    font-family:'Fraunces',serif;font-weight:700;
    font-size:clamp(38px,6vw,72px);line-height:1.12;margin-top:18px;
  }
  .mword{display:inline-block}
  html.js .motto .mword{opacity:0;transform:translateY(30px) rotate(2deg);transition:opacity .85s var(--ease),transform .85s var(--ease);transition-delay:calc(var(--i)*180ms)}
  html.js .motto.in .mword{opacity:1;transform:none}
  .motto-line .hl{color:var(--yellow);font-style:italic;position:relative;white-space:nowrap}
  .motto-line .hl svg{position:absolute;left:0;right:0;bottom:-.05em;width:100%;height:.13em;display:block;pointer-events:none}
  /* fired by the title observer (.drawn), NOT by .in: the generic reveal's
     scroll safety net marks the motto .in while it is still below the fold,
     so the old .in trigger finished the draw before anyone saw it */
  .motto-line .hl path{stroke-dasharray:320;stroke-dashoffset:0}
  html.js .motto-line .hl path{stroke-dashoffset:320;transition:stroke-dashoffset 1.5s var(--ease-draw) .5s}
  html.js .motto.drawn .hl path{stroke-dashoffset:0}
  .motto-sub{max-width:620px;margin:26px auto 0;font-size:17px;line-height:1.65;color:#EFE9FF}
  .motto-sub b{color:#fff}

  /* scroll-lag fix: the script tags any top-level zone (hero, motto,
     each section, contact, footer) that is fully off screen with
     .anim-off, freezing every infinite CSS animation inside it —
     pseudo-elements included, since the primary button's shine lives
     on ::after. Roughly thirty looping animations otherwise repaint
     all session long and steal frame budget from scrolling on a
     phone; a zone unfreezes 300px before it reaches the viewport, so
     nothing on screen ever sits frozen. Reveal transitions are not
     animations and are untouched. */
  .anim-off,.anim-off *,.anim-off *::before,.anim-off *::after{animation-play-state:paused !important}
  /* NO SCROLL PAUSE (user's call, site-wide animation check): round 3
     used to tag <html> .is-scrolling during every scroll gesture and
     pause EVERY CSS animation until ~140ms after the scroll settled.
     The freeze was obvious in use — the footer doodles (waving hand,
     spinning sparkle, bobbing play disc), the hero deck's key shapes,
     the service icons and every other loop stopped dead mid-scroll,
     and fixing them one exemption at a time (page cover, number pop,
     cube, button shine) never caught them all. The pause and all its
     exemptions are RETIRED: every animation on the page now runs
     continuously, scrolling or not, and the script's .is-scrolling
     switch is gone with it. What stays from those rounds costs the
     reader nothing visible: the off-screen .anim-off freeze above
     (a zone nobody can see still pauses, and wakes 120–300px before
     it reaches the viewport, so nothing on screen ever sits frozen),
     the paint containment below, and the touch will-change trim
     under it. Reveal TRANSITIONS were never animations and are
     untouched, exactly as before. */
  .section,.motto,.contact{contain:paint}
  /* BELOW-THE-FOLD RENDER SKIP (TEST, user's call 4 Dec, phone
     smoothness step 4): every section under the hero carries
     content-visibility:auto, so the browser skips a section's
     layout and paint entirely until it nears the viewport — an
     off-screen section stops costing frame budget while another
     section is on screen (the .anim-off freeze above stops its
     animations; this stops its rendering). contain-intrinsic-size
     reserves each section's measured height while it is skipped —
     the auto keyword makes the browser remember the true height
     once the section has rendered — so the scrollbar, anchor
     landings and the footer-reveal maths stay put; the ≤760px tier
     reserves the taller stacked phone heights. The hero is never
     skipped (it is the first screen) and the footer is untouched
     (its sticky parallax layer depends on its real box). Nothing
     about how a section looks or moves changes once it renders,
     and reveals still fire from their own observers as before. */
  .motto,.section,.contact{content-visibility:auto;contain-intrinsic-size:auto 700px}
  #motto{contain-intrinsic-size:auto 480px}
  #what{contain-intrinsic-size:auto 700px}
  #work{contain-intrinsic-size:auto 1950px}
  #process{contain-intrinsic-size:auto 720px}
  #about{contain-intrinsic-size:auto 700px}
  #faq{contain-intrinsic-size:auto 665px}
  #contact{contain-intrinsic-size:auto 440px}
  @media (max-width:760px){
    #motto{contain-intrinsic-size:auto 390px}
    #what{contain-intrinsic-size:auto 1670px}
    #work{contain-intrinsic-size:auto 2150px}
    #process{contain-intrinsic-size:auto 1480px}
    #about{contain-intrinsic-size:auto 735px}
    #faq{contain-intrinsic-size:auto 870px}
    #contact{contain-intrinsic-size:auto 480px}
  }
  @media (hover:none),(pointer:coarse){
    .hero h1,.hero .sub,.cta-row,.doodle-wrap,.hero-foot,.foot-inner{will-change:auto}
    .site-foot.armed .foot-inner{will-change:transform}
  }
