/* Section 2, owner spec 19 Nov 2026 (OWNER_ASKS_sitebx.md rows 20-23):
   headline 50px below the header bar, every word completes; then ONE CARD PER FINGER SWIPE, eight 4:1 cards, 12px apart
   (the original spacing). Six fill the screen; swipes 7 and 8 move the stack up one card so the new card enters at the bottom.
   The next swipe goes to a text screen whose words come in like the headline's.
   Typography is the Conwest headline's, unchanged. Swipe stops are scroll-snap points placed by js/way_tiles.js.
   Scroll-linked values (word, headline, card and stack transform/opacity) are written by the script every frame: NO CSS
   transitions on them. Heights: page shells use dvh (with a plain vh fallback before it). The swipe container (the card pin)
   uses --wt-h = the visible screen measured by way_tiles.js on load, re-measured only when no gesture is running, so the
   address bar can never move the layout during a swipe. Owner 20 Nov 2026: no small/large viewport units anywhere. */
html.wt-snap{scroll-snap-type:y mandatory}
.way-tiles{--wt-head-gap:50px;--wt-gap:10px;--wt-radius:10px;/* px-ok: owner-specified design constants, the only place they are defined. --wt-gap = gap between cards AND the cards' left/right margin; --wt-radius = card corners (owner 21 Nov, item AS) */position:relative;background:#fff;color:#1D1D1D}
.way-tiles__pin{position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden}
.way-tiles__stop{position:absolute;left:0;width:1px;height:1px;scroll-snap-align:start;scroll-snap-stop:always;pointer-events:none}
.way-tiles__stop--free{scroll-snap-stop:normal}
.way-tiles__headline{position:absolute;left:50%;top:var(--wt-top,calc(var(--header-h) + var(--wt-head-gap)));z-index:1;display:flex;flex-wrap:wrap;
  gap:clamp(.01em,.22vw,.035em) clamp(.16em,1.35vw,.22em);align-items:center;justify-content:center;
  width:min(calc(100vw - (var(--gutter) * 2)),12em);margin:0;color:#1D1D1D;font-size:clamp(3.5rem,7.8vw,9.6rem);font-weight:500;
  line-height:.9;letter-spacing:-.035em;pointer-events:none;transform:translate3d(-50%,0,0);will-change:transform,opacity}
.way-tiles__word{display:inline-block;white-space:nowrap;letter-spacing:inherit;opacity:var(--wt-o,0);transform:translate3d(0,var(--wt-y,0px),0);
  will-change:transform,opacity}
.way-tiles__window{position:absolute;left:50%;top:var(--wt-ctop,calc(var(--header-h) + var(--wt-gap)));z-index:2;overflow:hidden;pointer-events:none}
.way-tiles__stack{display:grid;gap:var(--wt-gap);margin:0;padding:0;list-style:none;
  transform:translate3d(0,0,0);will-change:transform}
.way-tiles__tile{position:relative;border-radius:var(--wt-radius);transform-origin:50% 0;overflow:hidden;background:#CDCCBC;opacity:0;
  transform:translate3d(0,100vh,0);transform:translate3d(0,100dvh,0);will-change:transform,opacity}
.way-tiles__tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.way-tiles__tile::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,12,14,.62) 0%,rgba(10,12,14,.18) 70%)}
.way-tiles__title{position:absolute;z-index:1;left:var(--wt-gap);bottom:var(--wt-gap);color:#fff;font-weight:500;
  font-size:clamp(1.15rem,2.2vw,2rem);line-height:1.05;letter-spacing:-.03em}
.way-tiles.is-tiles .way-tiles__window{pointer-events:auto}
/* the text screen has more words than the headline: on wide screens it sets smaller so all of it fits on one screen */
.way-tiles--text .way-tiles__headline{width:min(calc(100vw - (var(--gutter) * 2)),15em);font-size:clamp(2.4rem,4.6vw,6.4rem)}
@media (max-width:1024px){.way-tiles__headline{width:min(calc(100vw - (var(--gutter) * 2)),10em);font-size:clamp(3.2rem,8.4vw,6.2rem)}}
@media (max-width:720px){.way-tiles__headline,.way-tiles--text .way-tiles__headline{width:calc(100vw - (var(--gutter) * 2));font-size:clamp(2.55rem,10vw,4.1rem);line-height:.92}
}
@media (prefers-reduced-motion:reduce){
  html.wt-snap{scroll-snap-type:none}
  .way-tiles,.way-tiles--text{height:auto!important}
  .way-tiles__stop{display:none}
  .way-tiles__pin{position:static;height:auto;overflow:visible;padding:var(--wt-top,calc(var(--header-h) + var(--wt-head-gap))) 0 calc(var(--wt-gap) * 4)}
  .way-tiles__headline,.way-tiles__window{position:relative;left:auto;top:auto;transform:none;margin:0 auto;height:auto}
  .way-tiles__window{margin-top:calc(var(--wt-gap) * 4)}
  .way-tiles__stack{transform:none}
  .way-tiles__word,.way-tiles__tile{opacity:1;transform:none}
}
/* owner 19 Nov 21:07: the grafted .way section overlapped 48px up (margin-top:-48px, white) and covered card 8 */
.page-stack:has(.way-tiles)+.way{margin-top:0}   /* cards8s: the old `.way-tiles ~ .way` never matched (.way is a sibling of main.page-stack, not of the section), so site.css .way{margin-top:-48px;z-index:2;background:#fff} sat over card 8 */
/* owner 19 Nov 21:08: anchor to the container. The pin IS the visible screen (100dvh follows the address bar); the card
   window runs from the header bottom to the screen bottom; inside it a grid of 8 equal rows (1fr) with 10px gaps and 10px
   padding, so card 1 sits 10px under the header and card 8's bottom 10px above the screen bottom on any phone. */
/* cards8s (owner asks 24-26): the window runs from the header's bottom edge to the pin's bottom edge with NO padding, so card
   1's top touches the header and card 8's bottom touches the bottom of the screen; 8 equal rows with --wt-gap = 7 equal gaps.
   owner 20 Nov: "it has to conform to dvh" + "the toolbar can't jump the layout while a swipe is running". The pin (the
   swipe container) is the VISIBLE screen: --wt-h is visualViewport.height, set by way_tiles.js on load and re-set only when
   no finger is down and nothing is coasting; plain vh, then dvh, are the fallbacks until the script has measured. */
.way-tiles:not(.way-tiles--text) .way-tiles__pin{height:100vh;height:100dvh;height:var(--wt-h,100dvh)}
/* owner 21 Nov (item AS): real cards, not edge to edge: left/right margin = the gap between cards (--wt-gap) */
.way-tiles__window{top:var(--header-h);bottom:0;left:0;right:0;width:auto;height:auto;transform:none;padding:0 var(--wt-gap);box-sizing:border-box}
.way-tiles__stack{height:100%;grid-auto-rows:1fr;gap:var(--wt-gap)}
.way-tiles__tile{height:auto;min-height:0}
/* ask 26, root cause: (1) .page-stack (conwest_way.css) puts a --section-gap-standard grid gap between sections, a white strip
   between the hero and this section (nothing follows it in the grid, so no bottom margin); (2) the headline sits --header-h + --wt-head-gap below the section's top, so
   even with no gap the first word is still that far below the screen when the section arrives. Cancel both from the same
   variables: the section starts that much earlier, so the first word enters at the bottom of the screen the moment the hero
   card starts to leave. */
.page-stack>.way-tiles{margin-top:calc((var(--section-gap-standard) + var(--header-h) + var(--wt-head-gap)) * -1)}
/* ask 25: white to black over the first 0.05 SVH past stop 0 (--wt-k 0..1 written by way_tiles.js from the scroll). Section,
   pin and the page behind (html.wt-dark) are black once it starts; the header's shadow goes (it showed as a band over the cards). */
.way-tiles{background:color-mix(in srgb,#000 calc(var(--wt-k,0) * 100%),#fff)}
.way-tiles__headline{color:color-mix(in srgb,#fff calc(var(--wt-k,0) * 100%),#1D1D1D)}
.way-tiles__pin{background:transparent}
html.wt-dark,html.wt-dark body{background:#000}
/* owner 20 Nov 11:49 "get some easing on these transitions": every white/black change eases over time as well as with the
   finger, so a fast swipe or Chrome's snap animation cannot jump it in one frame. */
.way-tiles,html,body{transition:background-color .7s cubic-bezier(.4,0,.2,1)}
.way-tiles__headline{transition:color .7s cubic-bezier(.4,0,.2,1)}
html.wt-dark .bar::before{box-shadow:none}
/* GSAP build (owner 20 Nov 2026, "stop hand-rolling the swipe"): js/way_tiles.js is GSAP ScrollTrigger + Observer.
   The section is 175dvh: the pin (100dvh) stays on screen through the extra 75dvh, which absorbs a flick's momentum while
   GSAP takes over (invisible: the pin does not move). No scroll-snap and no overflow lock: GSAP's Observer blocks the page
   scroll while a step plays. The black fade is tweened by GSAP, so the CSS colour transitions are off (they lagged it). */
.way-tiles[data-engine="gsap"]{height:175vh;height:175dvh}
/* GSAP moves the phone hero between its three stops, so site.js's CSS scroll-snap is switched off here (it trapped slow
   swipes on the hero card). While GSAP holds the page, the browser may not pan or bounce it: iOS Safari otherwise takes the
   touch for its own scroll and GSAP never sees the swipe. */
html:has(.way-tiles[data-engine="gsap"]).hero-snap{scroll-snap-type:none}
html:has(.way-tiles[data-engine="gsap"]) .hero-stop{display:none}
html.wt-lock,html.wt-lock body{touch-action:none;overscroll-behavior:none}
html.wt-lock{overflow:hidden}   /* html only: overflow on body too would make body a scroll box and unstick the container */
/* owner 20 Nov 01:15 "clunky ... half an inch up and down it's all jittery ... big white border at the bottom": the hero's
   look follows the scroll, and index.html ALSO put .7s CSS transitions on its padding/height/radius, so every small scroll
   restarted a .7s animation trailing the finger (lag + jitter), and the height trailed the address bar (white strip at the
   bottom). GSAP now moves the page between the hero stops smoothly, so the hero follows it directly: no transitions. */
html:has(.way-tiles[data-engine="gsap"]) .hero-section--immersive-shrink .hero-panel,
html:has(.way-tiles[data-engine="gsap"]) .hero-section--immersive-shrink .hero-media-wrap,
html:has(.way-tiles[data-engine="gsap"]) .hero-section--immersive-shrink .hero-media,
html:has(.way-tiles[data-engine="gsap"]) .hero-section--immersive-shrink .hero-copy--overlay{transition:none}
html:has(.way-tiles[data-engine="gsap"]),html:has(.way-tiles[data-engine="gsap"]) body,.way-tiles[data-engine="gsap"],.way-tiles[data-engine="gsap"] .way-tiles__headline{transition:none}
