/* Mr Sauber, the soap menu (js/soapmenu.js). The menu button is a small bar of soap; pressed, the soap falls, slides and
   rests, and the camera goes down to it until its face is the screen: this sheet lays out that face (.sm-menu), and the
   script engraves the very same layout on the soap. Link it after site.css and landing.css (its rules for the button win
   over theirs). */
@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; }

/* ---------- the button: a white soap where the navy tab was. Its picture is the 3D soap itself (assets/soap/soap.webp,
   then the scene's own drawing of this very button); its shadow lies on the page under it. Quiet at rest; pointed at or
   focused, it wobbles once, like soap nudged on a wet tile, and a wet shine runs over it. ---------- */
:root button.sm-soap.sm-soap {
  --sm-w: clamp(76px, 3.2vw + 52px, 108px);
  position: relative; display: block; flex: none; box-sizing: border-box; width: var(--sm-w); height: calc(var(--sm-w) * .68);
  margin: 0 var(--sm-right, var(--pad)) 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit;
  font: inherit; letter-spacing: normal; text-transform: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
:root button.sm-soap.sm-soap > :not(.sm-soap__body) { display: none; }   /* the old tab's label and bars, if the markup still has them */
button.sm-soap::before { content: ""; position: absolute; left: 6%; right: 4%; top: 46%; height: 70%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(2, 16, 34, .3), rgba(2, 16, 34, .12) 55%, rgba(2, 16, 34, 0)); transform: translate3d(4%, 18%, 0); transition: opacity .3s var(--out, ease); }
button.sm-soap.is-out::before { opacity: 0; transition-duration: .16s; }
button.sm-soap.is-out.is-home::before { opacity: 1; transition-duration: .3s; }
.sm-soap__body { position: absolute; inset: 0; display: block; transform-origin: 50% 62%; }
.sm-soap__pic { position: absolute; left: -8%; top: -11.76%; width: 116%; height: 123.53%; display: block; max-width: none; pointer-events: none; -webkit-user-drag: none; }
button.sm-soap.is-out .sm-soap__body { visibility: hidden; }
/* the wet shine: a window's reflection gliding over the wet soap (its face is an oval, the light is clipped to one): a soft
   glow, a crisp bright streak, and the faint cool edge behind it that makes a highlight read on white */
.sm-soap__shine { position: absolute; left: 3%; right: 3%; top: 4%; bottom: 8%; border-radius: 50%; overflow: hidden; pointer-events: none; }
.sm-soap__shine::after { content: ""; position: absolute; top: -30%; bottom: -30%; left: -62%; width: 44%; opacity: 0; transform: translate3d(0, 0, 0) skewX(-18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 34%, #FFFFFF 47%, #FFFFFF 53%, rgba(13, 59, 102, .13) 59%, rgba(13, 59, 102, 0) 74%); }
@media (hover: hover) {
  button.sm-soap:hover .sm-soap__body { animation: sm-wobble .95s cubic-bezier(.3, .6, .35, 1) both; }
  button.sm-soap:hover .sm-soap__shine::after { animation: sm-shine .85s cubic-bezier(.45, 0, .2, 1) .06s both; }
}
button.sm-soap:focus-visible .sm-soap__body { animation: sm-wobble .95s cubic-bezier(.3, .6, .35, 1) both; }
button.sm-soap:focus-visible .sm-soap__shine::after { animation: sm-shine .85s cubic-bezier(.45, 0, .2, 1) .06s both; }
button.sm-soap.is-pressed .sm-soap__body { transform: scale(.96, .92); transition: transform .12s ease-out; }
@keyframes sm-wobble {
  0% { transform: none; } 13% { transform: rotate(-5.5deg) scale(1.025, .975); } 31% { transform: rotate(3.8deg) scale(.99, 1.01); }
  49% { transform: rotate(-2.2deg); } 67% { transform: rotate(1.1deg); } 84% { transform: rotate(-.45deg); } 100% { transform: none; }
}
@keyframes sm-shine { 0% { opacity: 0; transform: translate3d(0, 0, 0) skewX(-18deg); } 14% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; transform: translate3d(390%, 0, 0) skewX(-18deg); } }

/* ---------- the stage: the soap's canvas and the menu, over everything ---------- */
/* (a fixed layer cannot paint over a classic scrollbar: the page keeps its scrollbar while the menu is out, and nothing
   scrolls, the script stops it; hiding the scrollbar would bare its gutter, light even beside the navy footer) */
.sm-stage { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.sm-stage.is-busy { pointer-events: auto; }                      /* while the soap is on its way, the page under it takes no clicks */
.sm-gl { position: absolute; inset: 0; display: block; width: 100%; height: 100%; visibility: hidden; }
.sm-stage.is-gl .sm-gl { visibility: visible; }

/* ---------- the open menu: the soap's face. Its background is the face in the light (the script paints the very same
   gradient on the soap, GRAD in soapmenu.js); everything on it is stamped into the soap, navy with a light edge below and a
   dark one above, as the site's soap buttons carry their words. ---------- */
.sm-menu { position: absolute; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; color: var(--navy, #0D3B66);
  background: radial-gradient(125% 115% at 28% 16%, #FFFFFF 0%, #F7F9FB 45%, #E7EDF3 100%);
  -webkit-user-select: none; user-select: none; -webkit-font-smoothing: antialiased; }
.sm-menu.is-on { visibility: visible; opacity: 1; pointer-events: auto; }
.sm-stage.is-fade .sm-menu { transition: opacity .2s ease-out, visibility 0s .2s; }   /* reduced motion: it fades in and out */
.sm-stage.is-fade .sm-menu.is-on { transition: opacity .2s ease-out, visibility 0s; }
.sm-menu:focus { outline: none; }
.sm-menu :focus-visible { outline: 2px solid var(--navy, #0D3B66); outline-offset: 5px; }
.sm-face { --sm-top: 14px; position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: var(--sm-top) 0 clamp(18px, 3.4svh, 34px) var(--pad, 40px); }
.sm-menu ul { margin: 0; padding: 0; list-style: none; }
.sm-menu a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.sm-head { display: flex; justify-content: space-between; align-items: flex-start; }
.sm-sig { display: block; width: var(--logo-w, 200px); aspect-ratio: 1429 / 810; }
.sm-sig svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* close: where the soap was, the word and a cross */
.sm-close { display: flex; align-items: center; gap: 12px; height: 44px; margin: 0 var(--sm-right, var(--pad, 40px)) 0 0; padding: 0 2px 0 10px; border: 0; border-radius: 22px; background: none;
  color: rgba(13, 59, 102, .9); font: 600 12.5px/1 var(--sans, "Switzer", sans-serif); letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  text-shadow: 0 1px 0 #FFFFFF, 0 -.6px 0 rgba(13, 59, 102, .28); -webkit-tap-highlight-color: transparent; }
.sm-close__x { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .5s var(--out, ease); }
.sm-close:hover .sm-close__x, .sm-close:focus-visible .sm-close__x { transform: rotate(90deg); }

/* the big words, in the middle of the face */
.sm-nav { align-self: center; justify-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; margin-left: calc(var(--pad, 40px) * -1); padding: 2svh 0; }
.sm-star { width: clamp(22px, 1.9vw + 8px, 38px); height: auto; aspect-ratio: 1; margin-bottom: clamp(14px, 2.6svh, 30px); fill: var(--gold, #E5A93B); }
.sm-big { --sm-fs: clamp(44px, min(7.6vw, 10.4svh), 128px); }
.sm-big__a { position: relative; display: inline-block; padding: .03em .14em .06em; font: 400 var(--sm-fs)/1.04 var(--display, "Zodiak", serif); letter-spacing: -.025em; white-space: nowrap;
  color: rgba(13, 59, 102, .93); text-shadow: 0 .014em 0 #FFFFFF, 0 -.009em 0 rgba(13, 59, 102, .3); border-radius: .2em; }
.sm-big__a:focus-visible { outline-offset: 2px; }
/* pointed at: a gold star sparkles beside the word, and a wet shine runs through its letters */
.sm-spark { position: absolute; left: -.5em; top: 50%; width: .32em; height: .32em; margin-top: -.2em; fill: var(--gold, #E5A93B); opacity: 0; transform: scale(.2) rotate(-80deg); transition: opacity .3s, transform .55s var(--out, ease); pointer-events: none; }
.sm-gleam { position: absolute; inset: 0; padding: inherit; color: transparent; text-shadow: none; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .78) 50%, rgba(255, 255, 255, 0) 62%) no-repeat; background-size: 260% 100%; background-position: 140% 0;
  -webkit-background-clip: text; background-clip: text; }
.sm-big__a:hover .sm-spark, .sm-big__a:focus-visible .sm-spark { opacity: 1; transform: none; }
.sm-big__a:hover .sm-gleam, .sm-big__a:focus-visible .sm-gleam { animation: sm-gleam .8s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes sm-gleam { from { background-position: 140% 0; } to { background-position: -40% 0; } }

/* a fine engraved line, then the small things: phone, WhatsApp, the hours */
.sm-rule { width: 64px; height: 3px; margin: clamp(18px, 3.4svh, 36px) 0 clamp(16px, 2.8svh, 30px); fill: none; stroke-width: 1; }
.sm-rule path:first-child { stroke: rgba(13, 59, 102, .3); }
.sm-rule path:last-child { stroke: #FFFFFF; }
.sm-small { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 34px; font: 600 12px/1 var(--sans, "Switzer", sans-serif); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(13, 59, 102, .84); text-shadow: 0 1px 0 #FFFFFF; }
.sm-small__a, .sm-small__t { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; white-space: nowrap; }
.sm-small__a span, .sm-legal__a { position: relative; }
.sm-small__a span::after, .sm-legal__a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: -5px; height: 1px; background: currentColor; opacity: 0; transition: opacity .35s var(--out, ease); }
.sm-small__a:hover span::after, .sm-small__a:focus-visible span::after, .sm-legal__a:hover::after, .sm-legal__a:focus-visible::after { opacity: .7; }
.sm-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sm-legal { justify-self: center; display: flex; gap: 30px; margin-left: calc(var(--pad, 40px) * -1); font: 600 11px/1 var(--sans, "Switzer", sans-serif); letter-spacing: .22em; text-transform: uppercase;
  color: rgba(13, 59, 102, .8); text-shadow: 0 1px 0 #FFFFFF; }   /* (5.6:1 on the face's coolest corner) */
.sm-legal__a { display: inline-block; padding: 6px 0; }

/* ---------- narrow: a phone held upright, a tablet, a small window (site.css asks the same question) ---------- */
@media (max-width: 900px) and (orientation: portrait), (max-width: 900px) and (min-height: 541px) {
  :root button.sm-soap.sm-soap { --sm-w: 78px; }
  .sm-close__t { display: none; }
  .sm-close { width: 44px; justify-content: center; padding: 0; }
  .sm-big { --sm-fs: clamp(40px, min(11.6vw, 7.4svh), 76px); }
  .sm-small { flex-direction: column; gap: 6px; }
}
/* a small phone held upright (an SE, 320 x 480): no star, the small things two to a line */
@media (max-width: 900px) and (orientation: portrait) and (max-height: 620px) {
  .sm-star { display: none; }
  .sm-big { --sm-fs: clamp(34px, min(11vw, 7.6svh), 60px); }
  .sm-rule { margin: 14px 0 12px; }
  .sm-small { flex-direction: row; gap: 2px 24px; }
}
/* ---------- low: a phone held sideways, any low wide window: the big words two by two ---------- */
@media (orientation: landscape) and (max-height: 540px) {
  :root button.sm-soap.sm-soap { --sm-w: 66px; }
  .sm-face { --sm-top: 10px; padding-bottom: 12px; }
  .sm-close { height: 40px; }
  .sm-star { display: none; }
  .sm-big { --sm-fs: clamp(30px, min(5.6vw, 11.4svh), 60px); display: grid; grid-template-columns: auto auto; column-gap: .42em; }
  .sm-big li:nth-child(odd) { justify-self: end; }               /* the two columns meet on the middle line */
  .sm-big li:nth-child(even) { justify-self: start; }
  .sm-rule { margin: 12px 0 10px; }
  .sm-small { gap: 8px 26px; font-size: 11px; }
  .sm-small__a, .sm-small__t { padding: 4px 0; }
}
/* ---------- a finger: every link at least 44 px high to hit, the same look ---------- */
@media (pointer: coarse) {
  .sm-small__a { padding-block: 13px; margin-block: -7px; }
  .sm-legal__a { padding-block: 16px; margin-block: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  button.sm-soap .sm-soap__body, button.sm-soap .sm-soap__shine::after, .sm-gleam { animation: none !important; }
  .sm-spark, .sm-close__x, button.sm-soap::before { transition: none; }
}
