/* Mr Sauber, the wet page (js/wetpage.js). The site is two pages, one behind the other: the dry page in front (the landing
   page as it is: light ground, navy type) and the wet page behind it - the same page, laid out to the pixel the same,
   with the two brand colours swapped: navy ground and light type where the page is light, light ground and navy type
   where it is navy (the footer); the headline bars light with navy type; the photographs the same pictures, a little
   deeper and cooler, as things look when wet; gold stays gold. Nothing shows it but water (js/water.js draws pictures
   of it wherever there is water).
   The wet page is a copy of the landing page's markup (.landing), so every rule of landing.css, cards.css, textfx.css and
   site.css lays it out exactly as it lays out the page itself. This sheet only adds what makes it the wet one: its place,
   its stillness (everything in its final state, nothing moving) and its colours. Link it after those sheets.
   Round 5: where a photograph has a work picture (the same place in the middle of being cleaned: img/work.json), the
   copy shows that one, deepened more gently (--wet-work-*). */
@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- its place. Fixed behind everything at the page's width (the script sets it, and repeats the place inline, so
   the copy is harmless even without this sheet). The screen never shows it: an empty clip, so the browser paints none of
   it (snapshot.js, which draws only inset() clips, draws all of it into the pictures); the pointer, the keyboard and
   screen readers never reach it (inert, aria-hidden). Laid out only while its pictures are made ([hidden] otherwise).
   Doubled classes: these win over site.css's states of .landing (fixed and hidden during the journey, in the flow on the
   landing page) whatever the order the sheets come in. ---------- */
.landing.wet.wet {
  position: fixed; inset: 0 auto auto 0; z-index: -1; margin: 0; overflow: visible; visibility: visible; opacity: 1;
  pointer-events: none; clip-path: polygon(0 0, 0 0, 0 0);
  /* the wet palette, the brand's two colours swapped: the ground and the type. (Shadows on the navy ground are made of a
     deep navy, rgb(1, 11, 24): the brand navy itself would vanish there.) */
  --wet-ground: #0D3B66; --wet-ink: #F7F9FB;
  /* the photographs: wet things look deeper and cooler - darker, their colours richer (wet wood, wet stone), the light
     a little blue. The script draws each photograph saturated, with more contrast, darker, then multiplied by the tint
     (one colour matrix); the copy's own <img>s show the first three as a CSS filter */
  /* (the fixer, round 5: the tint was a light blue, #DEE8F4 - under a sheet of water the salon's warm wall came out a flat
     neutral grey, frosted rather than wet. Wet things are deeper and richer: darker, more saturated, the light only a
     breath cooler) */
  --wet-saturate: 1.32; --wet-contrast: 1.08; --wet-brightness: .85; --wet-tint: #EDF0F4;
  /* the work pictures (round 5: the same places in the middle of being cleaned, where the script finds one) show wet
     floors and glass already: deepened about half as much, so they sit with the photographs around them */
  --wet-work-saturate: 1.12; --wet-work-contrast: 1.04; --wet-work-brightness: .93; --wet-work-tint: #E8EFF7;
  /* the hero card's shadow (landing.css) on the navy ground: from the deep navy, not the brand navy (which would vanish) */
  --lp-shade: 0 0 0 1px rgba(247, 249, 251, .06), 0 44px 80px -46px rgba(1, 11, 24, .82), 0 8px 22px -6px rgba(1, 11, 24, .34);
  background: var(--wet-ground); color: var(--wet-ink);
}
.landing.wet.wet[hidden] { display: none !important; }
/* the lab only (lab/wet.html, ?view=dom): the copy itself, over the page (its place is inline: these win over it) */
.landing.wet.wet.is-shown { clip-path: none !important; z-index: 45 !important; }

/* ---------- still: everything as it stands once it has come, nothing moving, nothing waiting ---------- */
.landing.wet.wet, .landing.wet *, .landing.wet *::before, .landing.wet *::after { transition: none !important; animation: none !important; will-change: auto !important; }
.landing.wet :is(.lp-top, .lp-hero, .svc, .lp-door, .lp-foot) { content-visibility: visible !important; }
/* (a part of the copy not laid out yet: the script lays them out one per idle moment) */
.landing.wet [data-wet-wait] { content-visibility: hidden !important; }
.landing.wet :is([data-lp-in], [data-lp-door]) { opacity: 1 !important; transform: none !important; }
/* the header as it stands at the top of the page (the page's own is sticky; in a picture of the whole page it belongs to
   its top) */
.landing.wet .lp-top { position: relative; opacity: 1 !important; }
.landing.wet .lp-logo { opacity: 1 !important; transform: none !important; visibility: visible !important; }
/* the room clean: the dirty photograph gone, the clean one plain, no gold line on it */
.landing.wet .lp-card--dirty, .landing.wet .lp-glint { display: none !important; }
.landing.wet :is(.lp-hero__pic, .lp-win, .lp-win__in, .lp-shade) { opacity: 1 !important; transform: none !important; }
/* the headlines as they stand once they have arrived: the bars and their words, nothing else (the words that flew in lie
   under the bars, hidden; the turning edge, the shine and the star are gone) */
.landing.wet .tfx__win { visibility: inherit !important; }
.landing.wet .tfx__w { visibility: hidden !important; }
.landing.wet :is(.tfx__eclip, .tfx__gclip, .tfx__sclip) { display: none !important; }
/* the service cards at rest, all of them there (the script gives each its lean). Their names and lines as at rest on
   the page, for the map of surfaces: with a mouse they come only when a card is pointed at, so at rest there are none;
   without one they stand under every card. The pictures hold none of them (.wet-tiles, below): the sheet holds every
   caption whole, and the water shows each one as much as the page does, where the page has it (round 6) */
.landing.wet .svc__list { visibility: visible !important; }
.landing.wet .svc__float { opacity: 1 !important; }
@media (hover: hover) and (pointer: fine) {
  .landing.wet .svc__cap { visibility: hidden !important; }
}
@media (hover: none), (pointer: coarse), (pointer: none) {
  .landing.wet .svc__card :is(.svc__cap, .svc__text) { visibility: visible !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- round 6: what moves on the page while the wet page stands still (wetpage.js: the sheet). The page's own
   pictures (.wet-tiles) hold no captions - the water shows the sheet's captions */
/* (the line too: without a mouse it is shown in its own right, visible inside a hidden caption) */
.landing.wet.wet-tiles .svc__card :is(.svc__cap, .svc__text) { visibility: hidden !important; }
/* the sheet's pieces, below the page: never part of its pictures or its map */
.landing.wet [data-wet-sheet] { visibility: hidden !important; }
/* ... and its own pictures: only the sheet. The captions in a code (each channel one thing's coverage, on black: the
   water puts the wet colours back): R the bar, G light ink (the words before the name turns, the line), B the bar's
   words. a: the caption whole; b: its name's words alone */
.landing.wet.wet-sheet.wet-sheet { visibility: hidden !important; }
.landing.wet.wet-sheet [data-wet-sheet] { visibility: visible !important; }
.landing.wet.wet-sheet [data-wet-sheet] .svc__cap { visibility: inherit !important; opacity: 1 !important; transform: none !important; }
.landing.wet.wet-sheet [data-wet-sheet] .svc__text { visibility: inherit !important; opacity: 1 !important; transform: none !important; color: #00FF00 !important; }
.landing.wet.wet-sheet [data-wet-sheet] .tfx { --tfx-ink: #00FF00; --tfx-bar: #FF0000; --tfx-on: #FF00FF; }
.landing.wet.wet-sheet [data-wet-sheet] [data-sheet="b"] .tfx__w { visibility: inherit !important; }
.landing.wet.wet-sheet [data-wet-sheet] [data-sheet="b"] :is(.tfx__win, .svc__text) { visibility: hidden !important; }

/* ---------- the colours. Where the page is light (its ground, the hero, the services): navy, the type light ---------- */
.landing.wet .svc { background: var(--wet-ground); color: var(--wet-ink); }
.landing.wet .lp-lede { color: rgba(247, 249, 251, .86); }
.landing.wet .svc__text { color: rgba(247, 249, 251, .8); }
.landing.wet .lp-link { color: var(--wet-ink); }
.landing.wet .lp-hours { color: rgba(247, 249, 251, .78); }
/* the headline bars light, their words navy (the words that flew in were navy: light now, though hidden at rest) */
.landing.wet .tfx { --tfx-ink: #F7F9FB; --tfx-bar: #F7F9FB; --tfx-on: #0D3B66; }
/* a photograph's ground (under it, at its rounded edge): navy, so no light hairline rims it */
.landing.wet .lp-card { background: #0B3459; }
.landing.wet :is(.lp-card, .svc__pic) img, .landing.wet img.sm-soap__pic { filter: saturate(var(--wet-saturate)) contrast(var(--wet-contrast)) brightness(var(--wet-brightness)); }
.landing.wet :is(.lp-card, .svc__pic) img[data-wet-work] { filter: saturate(var(--wet-work-saturate)) contrast(var(--wet-work-contrast)) brightness(var(--wet-work-brightness)); }
/* the service cards' shadows, from the deep navy (cqw: x the card's width, as the page's own) */
.landing.wet .svc__shade { box-shadow: 0 9cqw 18cqw -5cqw rgba(1, 11, 24, .62), 0 1.2cqw 3.6cqw rgba(1, 11, 24, .3); }
.landing.wet .svc__pic img { box-shadow: 0 0 0 1px rgba(1, 11, 24, .2); }

/* the soap: a bar of navy soap with its name stamped in light (the page's is white with its name in navy) */
.landing.wet .soap { color: var(--wet-ink); --foam: #0D3B66; }
.landing.wet .soap__bar { background: linear-gradient(180deg, #1B4D7E 0%, #0F3F6C 42%, #092E52 100%);
  box-shadow: inset 0 2px 0 rgba(247, 249, 251, .2), inset 0 -6px 9px rgba(1, 11, 24, .32), 0 12px 18px -9px rgba(1, 9, 20, .78), 0 0 0 1px rgba(247, 249, 251, .16); }
.landing.wet .soap__bar::before { box-shadow: inset 0 1.5px 2.5px rgba(1, 11, 24, .55), 0 1px 0 rgba(247, 249, 251, .16); }
.landing.wet .soap__label { color: rgba(247, 249, 251, .94); text-shadow: 0 1px 0 rgba(1, 11, 24, .5), 0 -.7px 0 rgba(247, 249, 251, .14); }
/* the menu's soap keeps its own picture (a photograph, made deeper and cooler); its shadow on the navy ground is deeper */
.landing.wet .sm-soap::before { background: radial-gradient(closest-side, rgba(0, 8, 18, .52), rgba(0, 8, 18, .22) 55%, rgba(0, 8, 18, 0)); }

/* ---------- the door (door.css): its words stand on the page's ground, and turn light with it. Its bubble (bubble.js)
   has nothing in the copy - its poster, its clip and its button are taken out (wetpage.js), its canvas hidden -: an
   empty patch of the wet ground, its seal there (shown whatever the page's bubble does: the map of surfaces needs it) */
.landing.wet .lp-door { background: transparent; color: var(--wet-ink); }
.landing.wet .bb-frame { background: none !important; box-shadow: none !important; visibility: visible !important; }
.landing.wet .bb-gl { display: none !important; }
.landing.wet .bb-seal { visibility: visible !important; }
/* the pour's bucket and paint (pour.js) are things over the page, not of it: none in the copy */
.landing.wet .pour { display: none !important; }

/* ---------- where the page is navy (the footer): light, the type navy. Its gold labels turn navy (gold is never type on
   the light colour); their little rules stay gold ---------- */
.landing.wet .lp-foot { background: var(--wet-ink); color: #0D3B66; --logo-ink: #0D3B66; }
.landing.wet .lp-foot__info dt { color: #0D3B66; }
.landing.wet .lp-foot__info dd { color: rgba(13, 59, 102, .86); }
.landing.wet .lp-foot .lp-foot__tel { color: #0D3B66 !important; }
.landing.wet .lp-foot__base { border-top-color: rgba(13, 59, 102, .16); color: rgba(13, 59, 102, .64); }
.landing.wet .lp-foot__legal a { color: rgba(13, 59, 102, .9); }
