/* "Golden Hour": the Mutineer Charters look for the chat. Loaded into the
   widget's shadow root after its own styles when a page sets
   __chatBrand.skin, so every rule here replaces the comic look.

   The colours are mutineercharters.com's own: the royal navy of its header
   and hero (#1C4587), the deep navy of its dark sections (#0D2744), the peach
   of its wordmark and headings (#F6B26B), the golds of its buttons (#F8D98E,
   #F0B45C, #DD9A35, #C47A10), the slate of its second buttons (#333C4A) and
   its mist (#EFE7E7). The name and headings are Playfair Display like the
   site's; everything else is Roboto Condensed, the site's UI font.

   Pictures:
   - mutineer-character-*.webp  a cartoon pelican in a captain's cap, cut out
                                of his video frame by frame
   - mutineer-tiles.webp        seven photos from the site, one per topic
   - mutineer-thumbs.webp       eighteen photos from the site for link cards
   - mutineer-bow.svg, -sun, -sea, -wave, -wheel, -gull, -fish, -splash,
     -cloud, -rain, -whale, -anchor: drawn pieces in the same colours

   The show, in order:
   - closed: a round porthole like the site's logo spins in with the sun
     setting over the sea; the pelican rises up behind the bow, salutes,
     tips his cap and waves once; an "Ahoy!" pennant flies out. Hover and he
     waves again
   - opening: the chat opens out of the corner; a wave washes across the
     scene, the sun drops to the horizon, two gulls cross, the ship's wheel
     around his face in the header spins to a stop, and he rises over the
     bow with a burst of sunlight behind him and salutes
   - topics: photo cards with the site's own pictures
   - chatting: answers come as captain's log cards; on a wide screen he
     stands on his bow beside the chat and nods at each answer, and bobs
     while an answer is read aloud (only then); on a phone he sits small in
     the header
   - reactions: ask about the fish and a salmon leaps across the chat; ask
     about weather and storm clouds roll in with a short shower; ask about
     whales and a tail rises and slaps; ask about seasickness and the whole
     chat rocks once; say thanks and he salutes again while anchors float up
   Nothing repeats on its own except the thinking indicator. Reduced motion
   shows every end state. */

:host, :host([data-theme="dark"]) {
  --navy: #1C4587; --navy-2: #2A5AA6; --navy-3: #163A73; --deep: #0D2744; --deep-2: #0D2C54;
  --peach: #F6B26B; --peach-l: #F8D98E; --gold: #F0B45C; --gold-2: #DD9A35; --gold-3: #C47A10; --gold-4: #8A560B;
  --slate: #333C4A; --mist: #EFE7E7; --paper: #FBF7F2; --paper-2: #FFFDF8; --ink-0: #1B2433; --ink-2: #3E4757; --ink-3: #5E6675;
  --bg: var(--paper); --surface: #fff; --text: var(--ink-0); --muted: var(--ink-2); --glove: var(--paper);
  --ink: var(--deep); --line: var(--deep); --hard: transparent; --focus: var(--navy); --dot: transparent;
  --disp: "Playfair Display", var(--font-tfc2, Georgia), Georgia, serif;
  --body: "Roboto Condensed", var(--font-tfc1, system-ui), system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --out: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* golden hour: deep navy overhead, warming to the site's peach and gold at the horizon */
  --sky: linear-gradient(180deg, #0D2744 0%, #1C4587 28%, #4F67A0 41%, #B9918E 50%, #F6B26B 55%, #F8D98E 58%, #F8D98E 100%);
  --sheet: url("mutineer-character-wave.webp");
  --brass: linear-gradient(180deg, #F8D98E 0%, #F0B45C 48%, #DD9A35 100%);
  /* the closed launcher: the porthole and the pelican rising behind its bow */
  --LW: 186px; --LH: 252px; --BD: 146px; --DH: 248px; --Bo: 34px;
  /* the welcome scene */
  --stage-h: 432px; --hero-h: 336px; --hero-r: -46px; --bow: 86px; --hz: 58%;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

.ic { stroke-width: 2.2; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

@keyframes mt-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes mt-rise { from { transform: translateY(16px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes mt-pop { 0% { transform: scale(.4); opacity: 0 } 60% { transform: scale(1.07); opacity: 1 } 100% { transform: none; opacity: 1 } }
/* the porthole rolls in like a life ring */
@keyframes mt-port { 0% { transform: scale(.3) rotate(-120deg); opacity: 0 } 65% { transform: scale(1.06) rotate(8deg); opacity: 1 } 100% { transform: none; opacity: 1 } }
/* he rises from behind the bow: low, past the mark, and settles */
@keyframes mt-up { 0% { transform: translateY(100%); } 55% { transform: translateY(-6%); } 76% { transform: translateY(2%); } 100% { transform: none; } }
/* the pennant flies out from the mast and flutters to rest */
@keyframes mt-flag { 0% { transform: scaleX(0) skewY(0); opacity: 0 } 40% { transform: scaleX(1.08) skewY(-6deg); opacity: 1 } 60% { transform: scaleX(.96) skewY(4deg) } 80% { transform: scaleX(1.02) skewY(-2deg) } 100% { transform: none; opacity: 1 } }
/* the sun drops to the horizon and sits half in the sea */
@keyframes mt-sun { 0% { transform: translateY(-190px) scale(.8); opacity: 0 } 20% { opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes mt-sunp { 0% { transform: translateY(-34px) } 100% { transform: none } }
/* the wave washes across the scene, right to left, and is gone */
@keyframes mt-wash { 0% { transform: translateX(105%) } 100% { transform: translateX(-125%) } }
@keyframes mt-spray { 0%, 30% { transform: scale(.2) translateY(30px); opacity: 0 } 45% { opacity: 1 } 70% { transform: scale(1.1) translateY(-6px); opacity: 1 } 100% { transform: scale(1.2) translateY(-14px); opacity: 0 } }
/* two gulls glide across */
@keyframes mt-gull { 0% { transform: translate(0, 0) scale(.7); opacity: 0 } 10% { opacity: .85 } 50% { transform: translate(-190px, -18px) scale(.85) } 90% { opacity: .8 } 100% { transform: translate(-420px, 6px) scale(.75); opacity: 0 } }
/* sunlight bursts behind him as he arrives */
@keyframes mt-burst { 0% { transform: scale(.3) rotate(0); opacity: 0 } 25% { opacity: .9 } 100% { transform: scale(1.5) rotate(40deg); opacity: 0 } }
/* the ship's wheel spins to a stop */
@keyframes mt-wheel { 0% { transform: rotate(-540deg) scale(.6); opacity: 0 } 20% { opacity: 1 } 85% { transform: rotate(12deg) scale(1) } 100% { transform: rotate(0) scale(1); opacity: 1 } }
@keyframes mt-slam { 0% { transform: scale(1.6) rotate(-6deg); opacity: 0 } 55% { transform: scale(.96) rotate(-2deg); opacity: 1 } 100% { transform: rotate(-3deg); opacity: 1 } }
@keyframes mt-plaque { 0% { transform: translateY(26px) rotate(var(--t, 0deg)); opacity: 0 } 60% { transform: translateY(-4px) rotate(var(--t, 0deg)); opacity: 1 } 100% { transform: rotate(var(--t, 0deg)); opacity: 1 } }
/* his greeting, 60 frames once: one set of names per trigger so each can replay */
@keyframes mt-x1 { from { background-position-x: 0% } to { background-position-x: 100% } }
@keyframes mt-y1 { from { background-position-y: 0% } to { background-position-y: 100% } }
@keyframes mt-x2 { from { background-position-x: 0% } to { background-position-x: 100% } }
@keyframes mt-y2 { from { background-position-y: 0% } to { background-position-y: 100% } }
@keyframes mt-x3 { from { background-position-x: 0% } to { background-position-x: 100% } }
@keyframes mt-y3 { from { background-position-y: 0% } to { background-position-y: 100% } }
@keyframes mt-x4 { from { background-position-x: 0% } to { background-position-x: 100% } }
@keyframes mt-y4 { from { background-position-y: 0% } to { background-position-y: 100% } }
@keyframes mt-x5 { from { background-position-x: 0% } to { background-position-x: 100% } }
@keyframes mt-y5 { from { background-position-y: 0% } to { background-position-y: 100% } }
@keyframes mt-x6 { from { background-position-x: 0% } to { background-position-x: 100% } }
@keyframes mt-y6 { from { background-position-y: 0% } to { background-position-y: 100% } }
@keyframes mt-nod-a { 0%, 100% { transform: none } 30% { transform: translateY(-9px) rotate(-2deg) } 60% { transform: translateY(2px) rotate(1deg) } }
@keyframes mt-nod-b { 0%, 100% { transform: none } 30% { transform: translateY(-9px) rotate(-2deg) } 60% { transform: translateY(2px) rotate(1deg) } }
/* while an answer is read aloud: a captain's bob, beak up on each phrase */
@keyframes mt-talk { 0%, 100% { transform: none } 25% { transform: translateY(-5px) rotate(-1.6deg) } 50% { transform: translateY(1px) rotate(.4deg) } 75% { transform: translateY(-3px) rotate(-.8deg) } }
@keyframes mt-standin { 0% { transform: translateY(70px); opacity: 0 } 50% { opacity: 1 } 75% { transform: translateY(-6px) } 100% { transform: none; opacity: 1 } }
/* thinking: three bubbles rise one after another */
@keyframes mt-bub { 0%, 15% { transform: translateY(4px) scale(.7); opacity: .25 } 40%, 60% { transform: translateY(-4px) scale(1); opacity: 1 } 85%, 100% { transform: translateY(4px) scale(.7); opacity: .25 } }
/* the reactions */
@keyframes mt-leap-a { 0% { transform: translate(0, 0) rotate(-58deg); opacity: 0 } 6% { opacity: 1 } 50% { transform: translate(var(--lx), -230px) rotate(0deg) } 94% { opacity: 1 } 100% { transform: translate(calc(var(--lx) * 2), 0) rotate(58deg); opacity: 0 } }
@keyframes mt-leap-b { 0% { transform: translate(0, 0) rotate(-58deg); opacity: 0 } 6% { opacity: 1 } 50% { transform: translate(var(--lx), -230px) rotate(0deg) } 94% { opacity: 1 } 100% { transform: translate(calc(var(--lx) * 2), 0) rotate(58deg); opacity: 0 } }
@keyframes mt-splash-a { 0%, 8% { transform: translateX(-50%) scale(.2); opacity: 0 } 16% { transform: translateX(-50%) scale(1.1); opacity: 1 } 30% { transform: translateX(-50%) scale(1); opacity: 0 } 80% { transform: translateX(calc(-50% + var(--sx))) scale(.2); opacity: 0 } 88% { transform: translateX(calc(-50% + var(--sx))) scale(1.1); opacity: 1 } 100% { transform: translateX(calc(-50% + var(--sx))) scale(1); opacity: 0 } }
@keyframes mt-splash-b { 0%, 8% { transform: translateX(-50%) scale(.2); opacity: 0 } 16% { transform: translateX(-50%) scale(1.1); opacity: 1 } 30% { transform: translateX(-50%) scale(1); opacity: 0 } 80% { transform: translateX(calc(-50% + var(--sx))) scale(.2); opacity: 0 } 88% { transform: translateX(calc(-50% + var(--sx))) scale(1.1); opacity: 1 } 100% { transform: translateX(calc(-50% + var(--sx))) scale(1); opacity: 0 } }
@keyframes mt-cloud-l-a { 0% { transform: translateX(-110%); opacity: 0 } 20% { transform: translateX(0); opacity: 1 } 78% { transform: translateX(4%); opacity: 1 } 100% { transform: translateX(-110%); opacity: 0 } }
@keyframes mt-cloud-l-b { 0% { transform: translateX(-110%); opacity: 0 } 20% { transform: translateX(0); opacity: 1 } 78% { transform: translateX(4%); opacity: 1 } 100% { transform: translateX(-110%); opacity: 0 } }
@keyframes mt-cloud-r-a { 0% { transform: translateX(110%); opacity: 0 } 24% { transform: translateX(0); opacity: 1 } 78% { transform: translateX(-4%); opacity: 1 } 100% { transform: translateX(110%); opacity: 0 } }
@keyframes mt-cloud-r-b { 0% { transform: translateX(110%); opacity: 0 } 24% { transform: translateX(0); opacity: 1 } 78% { transform: translateX(-4%); opacity: 1 } 100% { transform: translateX(110%); opacity: 0 } }
@keyframes mt-rain-a { from { background-position: 0 0, 50px 60px } to { background-position: -20px 180px, 30px 188px } }
@keyframes mt-rain-b { from { background-position: 0 0, 50px 60px } to { background-position: -20px 180px, 30px 188px } }
@keyframes mt-show-a { 0%, 100% { opacity: 0 } 18%, 76% { opacity: 1 } }
@keyframes mt-show-b { 0%, 100% { opacity: 0 } 18%, 76% { opacity: 1 } }
@keyframes mt-tail-a { 0% { transform: translate(-50%, 110%) rotate(-8deg); opacity: 0 } 12% { opacity: 1 } 38% { transform: translate(-50%, 0) rotate(4deg) } 58% { transform: translate(-50%, -4%) rotate(-3deg) } 78% { transform: translate(-50%, 4%) rotate(0); opacity: 1 } 100% { transform: translate(-50%, 115%) rotate(6deg); opacity: 1 } }
@keyframes mt-tail-b { 0% { transform: translate(-50%, 110%) rotate(-8deg); opacity: 0 } 12% { opacity: 1 } 38% { transform: translate(-50%, 0) rotate(4deg) } 58% { transform: translate(-50%, -4%) rotate(-3deg) } 78% { transform: translate(-50%, 4%) rotate(0); opacity: 1 } 100% { transform: translate(-50%, 115%) rotate(6deg); opacity: 1 } }
@keyframes mt-slap-a { 0%, 74% { transform: translateX(-50%) scale(.2); opacity: 0 } 82% { transform: translateX(-50%) scale(1.15); opacity: 1 } 100% { transform: translateX(-50%) scale(1.25); opacity: 0 } }
@keyframes mt-slap-b { 0%, 74% { transform: translateX(-50%) scale(.2); opacity: 0 } 82% { transform: translateX(-50%) scale(1.15); opacity: 1 } 100% { transform: translateX(-50%) scale(1.25); opacity: 0 } }
@keyframes mt-rock-a { 0%, 100% { transform: none } 18% { transform: rotate(-1.6deg) translateY(3px) } 40% { transform: rotate(1.3deg) translateY(-2px) } 62% { transform: rotate(-.8deg) translateY(1px) } 82% { transform: rotate(.35deg) } }
@keyframes mt-rock-b { 0%, 100% { transform: none } 18% { transform: rotate(-1.6deg) translateY(3px) } 40% { transform: rotate(1.3deg) translateY(-2px) } 62% { transform: rotate(-.8deg) translateY(1px) } 82% { transform: rotate(.35deg) } }
@keyframes mt-float-a { 0% { transform: translate(0, 0) rotate(var(--r)) scale(.3); opacity: 0 } 20% { opacity: 1; transform: translate(calc(var(--dx) * .3), -40px) rotate(var(--r)) scale(1) } 100% { transform: translate(var(--dx), -230px) rotate(var(--r)) scale(.9); opacity: 0 } }
@keyframes mt-float-b { 0% { transform: translate(0, 0) rotate(var(--r)) scale(.3); opacity: 0 } 20% { opacity: 1; transform: translate(calc(var(--dx) * .3), -40px) rotate(var(--r)) scale(1) } 100% { transform: translate(var(--dx), -230px) rotate(var(--r)) scale(.9); opacity: 0 } }

/* ================= launcher: the porthole, and the pelican rising behind its bow ================= */
.launch { width: var(--LW); height: var(--LH); right: 18px; bottom: calc(20px + var(--lift)); border-radius: 0; overflow: visible;
  transition: transform .45s var(--ease), opacity .25s, visibility 0s, bottom .4s var(--ease); animation: none; }
.launch .wig { position: absolute; inset: 0; animation: none; }
.launch .face { display: none; }
.launch .fx { position: absolute; inset: 0; display: block; pointer-events: none; }
.launch .fx i { position: absolute; display: block; }
/* the porthole: the sun setting over the sea, in a navy ring with a gold rim like a brass port */
.launch .fx i:nth-child(1) { left: calc(50% - var(--BD) / 2); bottom: 0; width: var(--BD); height: var(--BD); border-radius: 50%; z-index: 0;
  background: url("mutineer-sun.svg") 92% 62% / 50% auto no-repeat, linear-gradient(180deg, transparent var(--hz), #1C4587 var(--hz), #0D2744 100%), var(--sky);
  box-shadow: inset 0 0 0 6px var(--deep), inset 0 0 0 9px var(--gold-2), inset 0 0 0 11px var(--peach-l), 0 16px 28px -10px rgba(13, 39, 68, .6);
  animation: mt-port .75s var(--spring) .1s backwards; }
/* the pelican: masked to the porthole below its middle, free above it, so his cap and wings break out over the rim */
.launch .fx i:nth-child(2) { left: 50%; bottom: var(--Bo); z-index: 1; height: var(--DH); aspect-ratio: 5 / 6; margin-left: calc(var(--DH) * -5 / 6 * .43);
  background: var(--sheet) 0 0 / 3000% 200% no-repeat; transform-origin: 43% 100%;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--BD) / 2 + var(--Bo) + 6px) no-repeat, radial-gradient(circle at 43% calc(100% - var(--BD) / 2 + var(--Bo)), #000 calc(var(--BD) / 2 - 10px), transparent calc(var(--BD) / 2 - 9px));
          mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--BD) / 2 + var(--Bo) + 6px) no-repeat, radial-gradient(circle at 43% calc(100% - var(--BD) / 2 + var(--Bo)), #000 calc(var(--BD) / 2 - 10px), transparent calc(var(--BD) / 2 - 9px));
  filter: drop-shadow(0 6px 8px rgba(13, 39, 68, .4));
  animation: mt-up .8s var(--spring) .5s backwards, mt-x1 2.5s steps(30, jump-none) 1.5s 2 backwards, mt-y1 5s steps(2, jump-none) 1.5s 1 backwards; }
.launch:hover .fx i:nth-child(2), .launch:focus-visible .fx i:nth-child(2) { animation: mt-x2 2.5s steps(30, jump-none) 0s 2 backwards, mt-y2 5s steps(2, jump-none) 0s 1 backwards; }
/* the bow in front of his shins, inside the lower rim */
.launch .fx i:nth-child(3) { left: calc(50% - var(--BD) / 2); bottom: 0; width: var(--BD); height: var(--BD); border-radius: 50%; z-index: 2;
  background: url("mutineer-bow.svg") 50% 100% / 100% 36% no-repeat;
  box-shadow: inset 0 0 0 6px var(--deep), inset 0 0 0 9px var(--gold-2), inset 0 0 0 11px var(--peach-l);
  -webkit-mask: linear-gradient(transparent 52%, #000 52%); mask: linear-gradient(transparent 52%, #000 52%);
  animation: mt-port .75s var(--spring) .1s backwards; }
/* a glint on the brass rim */
.launch::before { display: none; }
/* his shadow */
.launch::after { content: ""; position: absolute; z-index: -1; left: 16%; right: 16%; bottom: -10px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 39, 68, .45), rgba(13, 39, 68, 0)); }
/* "Ahoy!": a peach pennant on a little mast */
.launch .tag { left: auto; right: calc(100% - 34px); bottom: 74px; z-index: 4; display: block; padding: 9px 16px 9px 24px; border: 0; border-radius: 0; transform-origin: 100% 50%;
  background: linear-gradient(180deg, var(--peach-l), var(--peach) 55%, var(--gold-2)); color: var(--deep); font: 900 italic 19px/1 var(--disp); letter-spacing: 0; text-transform: none;
  clip-path: polygon(100% 0, 0 0, 14px 50%, 0 100%, 100% 100%); filter: drop-shadow(0 6px 8px rgba(13, 39, 68, .35));
  animation: mt-flag .9s var(--ease) 2s backwards; transition: opacity .25s, transform .3s var(--spring); }
.launch .wig::after { content: ""; position: absolute; right: calc(100% - 37px); bottom: 54px; z-index: 3; width: 4px; height: 58px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-3), var(--peach-l), var(--gold-3)); box-shadow: 0 -4px 0 1px var(--gold-2); animation: mt-fade .3s ease 1.85s backwards; transition: opacity .25s; }
.wrap:has(.teaser) .launch .tag, .wrap:has(.teaser) .launch .wig::after { opacity: 0; transform: scale(.6); pointer-events: none; }
.launch:hover .tag { transform: skewY(-3deg) scaleX(1.04); }
.launch:active .fx i:nth-child(2) { transform: translateY(4px); }
.launch:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; border-radius: 16px; }
.launch.hide { transform: translateY(20px) scale(.8); opacity: 0; visibility: hidden; transition: transform .25s ease-in, opacity .2s, visibility 0s linear .26s, bottom .4s var(--ease); }
.launch.hide .fx i, .launch.hide .tag { animation: none; }
.wrap.thinking .launch .face { animation: none; }

/* ================= teaser: a white card with a peach waterline ================= */
.teaser { right: calc(18px + var(--LW) - 26px); bottom: calc(20px + var(--lift) + var(--LH) - 40px); width: 288px; transform-origin: 100% 100%; animation: mt-pop .6s var(--spring) backwards; z-index: 2147483003; }
.teaser.out { animation: mt-fade .2s ease-in reverse forwards; }
.teaser .tb { padding: 16px 42px 17px 18px; border: 0; border-radius: 20px 20px 6px 20px; color: var(--ink-0); background: #fff;
  box-shadow: inset 0 -5px 0 var(--peach), 0 0 0 1px rgba(13, 39, 68, .08), 0 22px 40px -14px rgba(13, 39, 68, .5); transition: transform .3s var(--spring); }
.teaser .tb:hover { transform: translateY(-2px) rotate(-.6deg); }
.teaser .tb::after, .teaser .tb::before { display: none; }
.teaser b { font: 900 22px/1.12 var(--disp); letter-spacing: 0; text-transform: none; color: var(--navy); }
.teaser b em, :host([data-theme="dark"]) .teaser b em { font: 800 italic 22px/1.2 var(--disp); letter-spacing: 0; color: var(--gold-3); }
.teaser small { margin-top: 7px; font: 500 15.5px/1.4 var(--body); color: var(--ink-2); }
.teaser .pow, .teaser .powt { display: none; }
.teaser .tx, :host([data-theme="dark"]) .teaser .tx { top: 9px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--deep); color: #fff; box-shadow: none; }
.teaser .tx .ic { width: 13px; height: 13px; stroke-width: 2.6; }

/* ================= panel ================= */
.panel { width: 440px; height: min(744px, calc(100vh - 56px - var(--plift))); height: min(744px, calc(100dvh - 56px - var(--plift)));
  border: 0; border-radius: 24px; overflow: visible; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(13, 39, 68, .08), 0 40px 80px -24px rgba(13, 39, 68, .6), 0 18px 36px -18px rgba(196, 122, 16, .45);
  transform-origin: 100% 100%; transform: translateY(24px) scale(.94);
  transition: transform .4s var(--ease), opacity .2s, visibility 0s linear .4s, bottom .4s var(--ease), height .4s var(--ease); }
.wrap.is-open .panel { transform: none; transition: transform .55s var(--spring), opacity .2s, visibility 0s, bottom .4s var(--ease), height .4s var(--ease); }
@keyframes mt-open { from { clip-path: circle(0% at 92% 100%) } to { clip-path: circle(150% at 92% 100%) } }
.wrap.is-open .panel:has(.welcome:not([hidden])) { animation: mt-open .7s var(--out) both; }
/* seasick: the whole chat rocks once on the swell */
.wrap.is-open[data-react="seasick-a"] .panel:has(.welcome[hidden]) { animation: mt-rock-a 1.9s var(--ease) .15s; transform-origin: 50% 90%; }
.wrap.is-open[data-react="seasick-b"] .panel:has(.welcome[hidden]) { animation: mt-rock-b 1.9s var(--ease) .15s; transform-origin: 50% 90%; }

/* the header: the site's royal navy, the name in its peach like the wordmark */
.head { min-height: 74px; padding: 12px 10px 12px 14px; gap: 6px; color: #fff; border: 0; border-radius: 24px 24px 0 0; box-shadow: none;
  background: radial-gradient(120% 160% at 100% 0%, rgba(246, 178, 107, .22), rgba(246, 178, 107, 0) 45%), linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-3) 100%); }
.head :focus-visible, .strip :focus-visible { outline-color: var(--peach-l); }
/* his face inside the ship's wheel */
.hface { position: relative; left: auto; top: auto; flex: none; width: 50px; height: 50px; margin: 0 8px 0 4px; border: 0; border-radius: 50%; overflow: visible; transform: none; box-shadow: none; background: none; }
.hface::before { content: ""; position: absolute; left: -11px; top: -11px; width: 72px; height: 72px; z-index: 0; background: url("mutineer-wheel.svg") 50% 50% / contain no-repeat; filter: drop-shadow(0 3px 4px rgba(13, 39, 68, .5)); }
.hface img { position: absolute; left: 3px; top: 3px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--sky); box-shadow: 0 0 0 2.5px var(--peach-l); }
.wrap.is-open .panel:has(.welcome:not([hidden])) .hface::before { animation: mt-wheel 1.8s var(--out) .35s backwards; }
.wrap.is-open .panel:has(.welcome:not([hidden])) .hface img { animation: mt-pop .6s var(--spring) .9s backwards; }
.wrap.is-open .hface, .wrap.thinking .hface { animation: none; }
.wrap.is-open .hface.nod, .wrap.is-open .hface.oops { animation: mt-nod-a .6s var(--ease); }
.htext { min-width: 0; }
.htext h2 { font: 800 19.5px/1.15 var(--disp) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--peach); text-shadow: 0 2px 0 rgba(13, 39, 68, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.htext p { margin: 2px 0 0; font: 500 13px/1.25 var(--body); color: rgba(255, 255, 255, .95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbtn { width: 36px; height: 36px; border: 2px solid rgba(248, 217, 142, .55); border-radius: 50%; background: rgba(13, 39, 68, .3); color: #fff; box-shadow: none; transition: background .2s, border-color .2s, transform .2s var(--spring); }
.hbtn:hover { transform: rotate(-10deg); background: rgba(13, 39, 68, .55); border-color: var(--peach-l); box-shadow: none; }
.hbtn:active { transform: scale(.92); box-shadow: none; }
.hbtn .ic { width: 17px; height: 17px; stroke-width: 2.6; }

/* the strip: deep navy, the reservations line, a person */
.strip, :host([data-theme="dark"]) .strip { position: relative; gap: 10px; padding: 7px 12px 7px 14px; color: #fff; background: var(--deep); font: 500 14px/1.2 var(--body); border: 0; }
.strip a { white-space: nowrap; gap: 8px; min-height: 40px; padding: 4px 2px; border-radius: 8px; color: #fff; }
.strip a span { font: 600 12.5px/1 var(--body); color: #C9D4E8; }
.strip a b { font: 800 17px/1 var(--body); letter-spacing: .01em; color: #fff; }
.strip .ic { width: 16px; height: 16px; color: var(--peach); }
.strip button { white-space: nowrap; gap: 8px; min-height: 40px; padding: 9px 15px 9px 12px; border: 0; border-radius: 999px; color: var(--deep);
  background: var(--brass); font: 800 14.5px/1 var(--body); letter-spacing: .01em; text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(138, 86, 11, .35), 0 6px 14px -6px rgba(240, 180, 92, .8); transition: transform .2s var(--spring), filter .2s; }
.strip button .ic { color: var(--deep); width: 16px; height: 16px; }
.strip button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.strip button:active { transform: scale(.95); }
/* a rope runs under the strip; it creeps along while an answer is fetched */
.strip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; z-index: 5; pointer-events: none;
  background: repeating-linear-gradient(-55deg, var(--gold-2) 0 4px, var(--peach-l) 4px 6px, var(--gold-3) 6px 9px); opacity: .95; }
.wrap.thinking .strip::after { animation: mt-rope .7s linear infinite; }
@keyframes mt-rope { from { background-position: 0 0 } to { background-position: 11px 0 } }

/* the paper the conversation is written on, with faint waves */
.scroller { padding: 22px 16px 24px; scroll-padding: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q15 10 30 20 T60 20 T90 20 T120 20' fill='none' stroke='%231C4587' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 120px 40px, var(--paper); }
.scroller::-webkit-scrollbar { width: 8px; }
.scroller::-webkit-scrollbar-track { background: transparent; }
.scroller::-webkit-scrollbar-thumb { background: rgba(28, 69, 135, .4); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

/* ================= welcome: golden hour at sea ================= */
.stage, :host([data-theme="dark"]) .stage { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px;
  height: var(--stage-h); margin: -22px -16px 0; padding: 24px 0 0 20px; border: 0; border-radius: 0; overflow: hidden; box-shadow: none; isolation: isolate; cursor: pointer;
  background: var(--sky); }
.stage .fx { position: absolute; inset: 0; pointer-events: none; }
.stage .fx i { position: absolute; display: block; }
.stage .fx.back { z-index: 0; overflow: hidden; }
/* the sun: drops from the sky and sits on the horizon */
.stage .fx.back i:nth-child(1) { left: 28%; top: calc(var(--hz) - 92px); width: 184px; height: 184px; background: url("mutineer-sun.svg") 50% 50% / contain no-repeat; }
.wrap.is-open .stage .fx.back i:nth-child(1) { animation: mt-sun 1.7s var(--out) .25s backwards; }
/* the sea, from the horizon down, with the sun's path on it */
.stage .fx.back i:nth-child(2) { left: 0; right: 0; top: var(--hz); bottom: 0; background: url("mutineer-sea.svg") 0 0 / 100% 100% no-repeat; }
/* two gulls */
.stage .fx.back i:nth-child(3), .stage .fx.back i:nth-child(4) { right: -40px; top: 92px; width: 34px; height: 14px; opacity: 0; background: url("mutineer-gull.svg") 50% 50% / contain no-repeat; }
.stage .fx.back i:nth-child(4) { top: 120px; right: -80px; width: 24px; height: 10px; }
.wrap.is-open .stage .fx.back i:nth-child(3) { animation: mt-gull 4.2s linear 1.2s backwards; }
.wrap.is-open .stage .fx.back i:nth-child(4) { animation: mt-gull 4.6s linear 1.5s backwards; }
/* sunlight bursting behind him */
.stage .fx.back i:nth-child(5) { right: calc(var(--hero-r) + var(--hero-h) * 5 / 6 * .57 - 150px); bottom: calc(var(--bow) + var(--hero-h) * .55 - 150px); width: 300px; height: 300px; border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(248, 217, 142, .85) 0 7deg, rgba(248, 217, 142, 0) 7deg 22deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%); }
.wrap.is-open .stage .fx.back i:nth-child(5) { animation: mt-burst 1.6s var(--out) 1.05s backwards; }
/* a far-off headland on the horizon, left */
.stage .fx.back i:nth-child(6) { left: -10px; top: calc(var(--hz) - 22px); width: 120px; height: 24px; background: #0D2744; opacity: .55; clip-path: polygon(0 100%, 0 40%, 12% 30%, 22% 0, 30% 25%, 46% 35%, 60% 60%, 78% 70%, 100% 100%); }
.stage .fx.back i:nth-child(n+7) { display: none; }
/* the still stands in for reduced motion */
.stage .hero { position: absolute; left: auto; right: var(--hero-r); bottom: calc(var(--bow) - 24px); z-index: 2; width: auto; height: var(--hero-h); max-width: none; visibility: hidden;
  filter: drop-shadow(0 14px 16px rgba(13, 39, 68, .4)); }
.stage .fx.front { z-index: 3; }
/* the pelican: rises behind the bow, then salutes and waves once */
.stage .fx.front i:nth-child(1) { right: var(--hero-r); bottom: calc(var(--bow) - 24px); height: var(--hero-h); aspect-ratio: 5 / 6; z-index: 3; transform-origin: 43% 100%;
  background: var(--sheet) 0 0 / 3000% 200% no-repeat; filter: drop-shadow(0 14px 16px rgba(13, 39, 68, .4)); }
.wrap.is-open .stage .fx.front i:nth-child(1) { animation: mt-up .85s var(--spring) .9s backwards, mt-x3 2.5s steps(30, jump-none) 1.85s 2 backwards, mt-y3 5s steps(2, jump-none) 1.85s 1 backwards; }
.wrap.is-open[data-hit="a"] .stage .fx.front i:nth-child(1) { animation: mt-x4 2.5s steps(30, jump-none) 0s 2 backwards, mt-y4 5s steps(2, jump-none) 0s 1 backwards; }
.wrap.is-open[data-hit="b"] .stage .fx.front i:nth-child(1) { animation: mt-x2 2.5s steps(30, jump-none) 0s 2 backwards, mt-y2 5s steps(2, jump-none) 0s 1 backwards; }
@media (prefers-reduced-motion: reduce) { .stage .fx.front i:nth-child(1) { display: none; } .stage .hero { visibility: visible; } }
/* the bow across the foot of the scene, in front of him */
.stage .fx.front i:nth-child(2) { left: 0; right: 0; bottom: 0; height: var(--bow); z-index: 4; background: url("mutineer-bow.svg") 0 0 / 100% 100% no-repeat; filter: drop-shadow(0 -4px 8px rgba(13, 39, 68, .35)); }
/* the wave that washes across as the chat opens */
.stage .fx.front i:nth-child(3) { left: 0; right: -40%; bottom: -6px; height: 100%; z-index: 9; transform: translateX(-125%); background: url("mutineer-wave.svg") 0 100% / 100% 100% no-repeat; }
.wrap.is-open .stage .fx.front i:nth-child(3) { animation: mt-wash 1.7s cubic-bezier(.42, .05, .58, .95) .05s backwards; }
/* spray off the prow as the wave goes through */
.stage .fx.front i:nth-child(n+4), .stage .fx.top { display: none; }

/* the greeting, on the evening sky */
.say { position: relative; left: auto; right: auto; top: auto; bottom: auto; z-index: 7; width: 56%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
.say::before { display: none; }
.say h3 { margin: 0; font: 900 34px/1 var(--disp); letter-spacing: 0; text-transform: none; color: var(--peach); text-shadow: 0 2px 0 rgba(13, 39, 68, .6), 0 8px 18px rgba(13, 39, 68, .5); }
.say h3 em, :host([data-theme="dark"]) .say h3 em { display: block; margin-top: 6px; font: 800 italic 31px/1.08 var(--disp); letter-spacing: 0; text-transform: none; color: #fff; transform: rotate(-3deg); transform-origin: 0 50%;
  text-shadow: 0 3px 0 var(--gold-3), 0 6px 0 rgba(13, 39, 68, .55), 0 12px 22px rgba(13, 39, 68, .55); }
.caption { position: relative; left: auto; right: auto; top: auto; bottom: auto; z-index: 7; width: 48%; margin: 12px 0 0; padding: 0; border: 0; background: none; box-shadow: none; transform: none;
  font: 500 15px/1.42 var(--body); color: #fff; text-shadow: 0 1px 8px rgba(13, 39, 68, .9); text-wrap: pretty; }
.wrap.is-open .say h3 { animation: mt-rise .5s var(--out) 1.3s backwards; }
.wrap.is-open .say h3 em { animation: mt-slam .6s var(--out) 1.45s backwards; }
.wrap.is-open .caption { animation: mt-rise .6s var(--out) 1.75s backwards; }
/* three facts as brass plaques on the hull */
.badges { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.badges li { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 6px 8px 6px 10px; border-radius: 8px; background: var(--brass); transform: rotate(var(--t, 0deg));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(138, 86, 11, .4), 0 0 0 1.5px var(--gold-4), 0 8px 14px -6px rgba(0, 0, 0, .55); text-align: center; }
.badges li::before, .badges li::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--gold-4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.badges li::before { left: 4px; } .badges li::after { right: 4px; }
.badges li:nth-child(2) { --t: .6deg; } .badges li:nth-child(3) { --t: -.5deg; }
.badges b { font: 900 17px/1 var(--disp); letter-spacing: 0; color: var(--deep); white-space: nowrap; }
.badges span { font: 700 10.5px/1.15 var(--body); letter-spacing: .02em; color: #4A3205; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrap.is-open .badges li { animation: mt-plaque .55s var(--spring) backwards; animation-delay: calc(2s + var(--i) * 110ms); }

/* ================= topics: photo cards with the site's own pictures ================= */
.tilehead { margin: 24px 2px 14px; gap: 10px; }
.tilehead h3 { font: 800 italic 24px/1.2 var(--disp); letter-spacing: 0; text-transform: none; color: var(--navy); }
.tilehead h3 span { background: none; }
.tilehead .zig, :host([data-theme="dark"]) .tilehead .zig { height: 10px; opacity: .95; transform: none;
  background: repeating-linear-gradient(-55deg, var(--gold-2) 0 4px, var(--peach-l) 4px 6px, var(--gold-3) 6px 9px); border-radius: 6px;
  -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent); }
.tiles { gap: 12px; padding: 0 2px 4px; }
.tile, .tile.red { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1.06; min-height: 0; padding: 0; text-align: left;
  border: 0; border-radius: 18px; color: var(--ink-0); background: #fff; transform: none;
  box-shadow: 0 0 0 1px rgba(13, 39, 68, .08), 0 14px 24px -14px rgba(13, 39, 68, .6); transition: transform .3s var(--spring), box-shadow .3s; }
.wrap.is-open .tile { animation: mt-rise .55s var(--out) backwards; animation-delay: calc(2.15s + var(--i) * 70ms); }
.tile .ti { position: absolute; inset: 0 0 60px; z-index: 0; width: auto; height: auto; align-self: stretch; justify-self: stretch; border: 0; border-radius: 0; display: block; grid-row: auto;
  background: url("mutineer-tiles.webp") 0 50% / 800% auto no-repeat, var(--navy); box-shadow: none; transition: transform .5s var(--ease); }
.tile .ti .ic { display: none; }
.tile:nth-child(2) .ti { background-position: calc(100% / 7) 50%, 0 0; }
.tile:nth-child(3) .ti { background-position: calc(200% / 7) 50%, 0 0; }
.tile:nth-child(4) .ti { background-position: calc(300% / 7) 50%, 0 0; }
.tile:nth-child(5) .ti { background-position: calc(400% / 7) 40%, 0 0; }
.tile:nth-child(6) .ti { background-position: calc(500% / 7) 55%, 0 0; }
.tile:nth-child(7) .ti { background-position: calc(600% / 7) 40%, 0 0; }
/* the label: a navy band with a gold waterline, a small brass anchor on the corner */
.tile::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; z-index: 1; background: var(--navy); box-shadow: inset 0 3px 0 var(--peach); transition: background .25s; }
.tile::after { content: ""; position: absolute; right: 10px; bottom: 42px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: var(--deep) url("mutineer-anchor.svg") 50% 50% / 18px 18px no-repeat; box-shadow: 0 0 0 2px var(--peach), 0 4px 10px -3px rgba(13, 39, 68, .6); transition: transform .3s var(--spring); }
.tile b { position: absolute; left: 12px; right: 10px; bottom: 27px; z-index: 2; font: 800 17px/1.1 var(--disp); letter-spacing: 0; text-transform: none; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { position: absolute; left: 12px; right: 10px; bottom: 10px; z-index: 2; font: 600 13px/1.15 var(--body); color: var(--peach-l); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the first: trips and prices across the full width, with a brass price tag */
.tile:nth-child(1) { grid-column: 1 / -1; aspect-ratio: auto; height: 162px; background: var(--deep); }
.tile:nth-child(1) .ti { inset: 0; background-size: 800% auto, auto; background-position: 0 42%, 0 0; }
.tile:nth-child(1)::before { inset: 0; height: auto; box-shadow: none; background: linear-gradient(90deg, rgba(13, 39, 68, .92) 0%, rgba(13, 39, 68, .55) 52%, rgba(13, 39, 68, 0) 78%); }
.tile:nth-child(1)::after { content: "FROM $237"; right: 14px; top: 14px; bottom: auto; width: auto; height: auto; padding: 9px 12px 8px; border-radius: 6px; display: block; background: var(--brass); color: var(--deep); font: 900 15px/1 var(--disp); letter-spacing: .02em;
  transform: rotate(6deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1.5px var(--gold-4), 0 8px 16px -6px rgba(0, 0, 0, .6); }
.tile:nth-child(1) b { left: 16px; right: 42%; bottom: auto; top: 44px; font: 900 26px/1.04 var(--disp); color: var(--peach); white-space: normal; }
.tile:nth-child(1) small { left: 16px; right: 42%; bottom: auto; top: 104px; font: 600 14.5px/1.25 var(--body); color: #fff; white-space: normal; }
/* the last: the office, across the full width in brass with his face */
.tile:nth-child(8), .tile.red { grid-column: 1 / -1; aspect-ratio: auto; height: 84px; color: var(--deep); background: var(--brass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1.5px var(--gold-3), 0 14px 24px -14px rgba(138, 86, 11, .7); }
.tile:nth-child(8) .ti { inset: 12px auto 12px 12px; width: 60px; height: 60px; border-radius: 50%; background: url("mutineer-character-head.webp") 38% 30% / 128% auto no-repeat, var(--sky); box-shadow: 0 0 0 3px var(--deep); }
.tile:nth-child(8)::before { display: none; }
.tile:nth-child(8)::after { right: 14px; top: 50%; bottom: auto; margin-top: -21px; width: 42px; height: 42px; background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8D98E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.2l1.6 4.2-2.1 1.3a11 11 0 0 0 6.8 6.8l1.3-2.1L20 15.8V19a1.5 1.5 0 0 1-1.6 1.5C10.6 20 4 13.4 3.5 5.6A1.5 1.5 0 0 1 5 4z'/%3E%3C/svg%3E") 50% 50% / 20px 20px no-repeat; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }
.tile:nth-child(8) b { left: 88px; right: 64px; bottom: auto; top: 18px; font-size: 19px; color: var(--deep); }
.tile:nth-child(8) small { left: 88px; right: 64px; bottom: 18px; font: 800 15px/1.1 var(--body); color: var(--deep); }
.tile:focus-visible { transform: translateY(-4px); z-index: 1; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px) rotate(-.5deg); z-index: 1; box-shadow: 0 0 0 3px var(--peach), 0 22px 30px -14px rgba(13, 39, 68, .65); }
  .tile:hover .ti { transform: scale(1.06); }
  .tile:nth-child(8):hover .ti { transform: none; }
  .tile:not(:nth-child(1)):not(:nth-child(8)):hover::after { transform: rotate(-24deg) scale(1.12); }
}
.tile:active { transform: scale(.96); transition-duration: .1s; }
.ownq { margin: 18px 6px 0; font: 500 15px/1.45 var(--body); color: var(--ink-2); text-align: center; }

/* ================= the pelican beside the chat (wide screens) and in the header (the rest) ================= */
.panel > .fx { position: absolute; inset: 0; display: block; pointer-events: none; z-index: 8; }
.panel > .fx i { position: absolute; display: none; }
@media (min-width: 1100px) and (min-height: 640px) {
  /* he stands on his bow at the chat's left edge */
  .panel:has(.welcome[hidden]) > .fx i:nth-child(2) { display: block; right: calc(100% - 36px); bottom: 34px; height: 360px; aspect-ratio: 5 / 6; z-index: -1;
    background: var(--sheet) 0 0 / 3000% 200% no-repeat; filter: drop-shadow(0 18px 20px rgba(13, 39, 68, .35));
    transform-origin: 43% 100%; animation: mt-standin .7s var(--spring) .1s backwards; }
  .panel:has(.welcome[hidden]) > .fx i:nth-child(3) { display: block; right: calc(100% - 50px); bottom: 0; width: 300px; height: 64px; z-index: -1;
    background: url("mutineer-bow.svg") 0 0 / 100% 100% no-repeat; filter: drop-shadow(0 12px 14px rgba(13, 39, 68, .35)); transform: scaleX(-1); animation: mt-fade .5s ease backwards; }
  .wrap[data-said="a"] .panel:has(.welcome[hidden]) > .fx i:nth-child(2) { animation: mt-nod-a .7s var(--ease) .1s; }
  .wrap[data-said="b"] .panel:has(.welcome[hidden]) > .fx i:nth-child(2) { animation: mt-nod-b .7s var(--ease) .1s; }
  .wrap[data-react="thanks-a"] .panel:has(.welcome[hidden]) > .fx i:nth-child(2) { animation: mt-x5 2.5s steps(30, jump-none) .3s 2 backwards, mt-y5 5s steps(2, jump-none) .3s 1 backwards; }
  .wrap[data-react="thanks-b"] .panel:has(.welcome[hidden]) > .fx i:nth-child(2) { animation: mt-x6 2.5s steps(30, jump-none) .3s 2 backwards, mt-y6 5s steps(2, jump-none) .3s 1 backwards; }
  /* while an answer is read aloud he bobs, and stops when the voice does */
  .wrap.talking .panel:has(.welcome[hidden]) > .fx i:nth-child(2) { animation: mt-talk .9s ease-in-out 0s infinite; }
}
/* elsewhere, once the chat starts, he stands small in the header */
@media (max-width: 1099px), (max-height: 639px) {
  .panel:has(.welcome[hidden]) .hface { position: absolute; left: 4px; top: -24px; width: 84px; height: 101px; margin: 0; z-index: 7; border-radius: 0; overflow: visible; box-shadow: none;
    background: var(--sheet) 0 0 / 3000% 200% no-repeat; filter: drop-shadow(0 6px 6px rgba(13, 39, 68, .5)); animation: mt-standin .6s var(--spring) backwards; }
  .panel:has(.welcome[hidden]) .hface::before, .panel:has(.welcome[hidden]) .hface img { display: none; }
  .panel:has(.welcome[hidden]) .head { padding-left: 90px; }
  .wrap[data-said="a"] .panel:has(.welcome[hidden]) .hface { animation: mt-nod-a .6s var(--ease); }
  .wrap[data-said="b"] .panel:has(.welcome[hidden]) .hface { animation: mt-nod-b .6s var(--ease); }
  .wrap[data-react="thanks-a"] .panel:has(.welcome[hidden]) .hface { animation: mt-x5 2.5s steps(30, jump-none) .3s 2 backwards, mt-y5 5s steps(2, jump-none) .3s 1 backwards; }
  .wrap[data-react="thanks-b"] .panel:has(.welcome[hidden]) .hface { animation: mt-x6 2.5s steps(30, jump-none) .3s 2 backwards, mt-y6 5s steps(2, jump-none) .3s 1 backwards; }
  .wrap.talking .panel:has(.welcome[hidden]) .hface { animation: mt-talk .9s ease-in-out 0s infinite; }
}
/* weather: storm clouds roll in from both sides and a short shower falls */
.panel > .fx i:nth-child(4) { display: block; left: 0; right: 0; top: 150px; bottom: 96px; z-index: 10; opacity: 0;
  background-image: url("mutineer-rain.svg"), url("mutineer-rain.svg"); background-size: 140px 180px, 100px 128px; background-repeat: repeat; background-position: 0 0, 50px 60px;
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
.panel > .fx i:nth-child(5) { display: block; left: -16px; top: 112px; width: 62%; height: 96px; z-index: 11; opacity: 0; background: url("mutineer-cloud.svg") 0 0 / contain no-repeat; filter: drop-shadow(0 10px 12px rgba(13, 39, 68, .35)); }
.panel > .fx i:nth-child(6) { display: block; right: -18px; top: 132px; width: 54%; height: 84px; z-index: 11; opacity: 0; background: url("mutineer-cloud.svg") 100% 0 / contain no-repeat; filter: drop-shadow(0 10px 12px rgba(13, 39, 68, .35)); }
.wrap.is-open[data-react="weather-a"] .panel > .fx i:nth-child(4) { animation: mt-show-a 2.8s ease .35s both, mt-rain-a .55s linear .35s 5; }
.wrap.is-open[data-react="weather-b"] .panel > .fx i:nth-child(4) { animation: mt-show-b 2.8s ease .35s both, mt-rain-b .55s linear .35s 5; }
.wrap.is-open[data-react="weather-a"] .panel > .fx i:nth-child(5) { animation: mt-cloud-l-a 3.2s var(--out) .1s both; }
.wrap.is-open[data-react="weather-b"] .panel > .fx i:nth-child(5) { animation: mt-cloud-l-b 3.2s var(--out) .1s both; }
.wrap.is-open[data-react="weather-a"] .panel > .fx i:nth-child(6) { animation: mt-cloud-r-a 3.2s var(--out) .2s both; }
.wrap.is-open[data-react="weather-b"] .panel > .fx i:nth-child(6) { animation: mt-cloud-r-b 3.2s var(--out) .2s both; }
/* the fish: a salmon leaps out of the bottom of the chat in an arc, splash in, splash out */
.panel > .fx i:nth-child(7) { display: block; left: 6%; bottom: 120px; width: 170px; height: 78px; z-index: 11; opacity: 0; --lx: 140px;
  background: url("mutineer-fish.svg") 50% 50% / contain no-repeat; filter: drop-shadow(0 10px 8px rgba(13, 39, 68, .3)); transform-origin: 50% 50%; }
.panel > .fx i:nth-child(8) { display: block; left: calc(6% + 85px); bottom: 100px; width: 130px; height: 78px; z-index: 12; opacity: 0; --sx: 280px; background: url("mutineer-splash.svg") 50% 100% / contain no-repeat; }
.wrap.is-open[data-react="fish-a"] .panel > .fx i:nth-child(7) { animation: mt-leap-a 1.6s cubic-bezier(.35, .1, .65, .9) .3s both; }
.wrap.is-open[data-react="fish-b"] .panel > .fx i:nth-child(7) { animation: mt-leap-b 1.6s cubic-bezier(.35, .1, .65, .9) .3s both; }
.wrap.is-open[data-react="fish-a"] .panel > .fx i:nth-child(8) { animation: mt-splash-a 1.8s linear .2s both; }
.wrap.is-open[data-react="fish-b"] .panel > .fx i:nth-child(8) { animation: mt-splash-b 1.8s linear .2s both; }
/* whales: a tail rises out of the foot of the chat and slaps down */
.panel > .fx i:nth-child(9) { display: block; left: 50%; bottom: 96px; width: 190px; height: 172px; z-index: 11; opacity: 0; background: url("mutineer-whale.svg") 50% 100% / contain no-repeat; filter: drop-shadow(0 12px 14px rgba(13, 39, 68, .35));
  -webkit-mask: linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0); }
.panel > .fx i:nth-child(10) { display: block; left: 50%; bottom: 92px; width: 200px; height: 110px; z-index: 12; opacity: 0; background: url("mutineer-splash.svg") 50% 100% / contain no-repeat; }
.wrap.is-open[data-react="whale-a"] .panel > .fx i:nth-child(9) { animation: mt-tail-a 2.4s var(--ease) .3s both; }
.wrap.is-open[data-react="whale-b"] .panel > .fx i:nth-child(9) { animation: mt-tail-b 2.4s var(--ease) .3s both; }
.wrap.is-open[data-react="whale-a"] .panel > .fx i:nth-child(10) { animation: mt-slap-a 2.4s var(--ease) .3s both; }
.wrap.is-open[data-react="whale-b"] .panel > .fx i:nth-child(10) { animation: mt-slap-b 2.4s var(--ease) .3s both; }
/* thanks: four brass anchors float up while he salutes */
.panel > .fx i:nth-child(n+11):nth-child(-n+14) { display: block; bottom: 110px; left: var(--fl); width: 30px; height: 30px; z-index: 11; opacity: 0; border-radius: 50%;
  background: var(--deep) url("mutineer-anchor.svg") 50% 50% / 62% 62% no-repeat; box-shadow: 0 0 0 2px var(--peach), 0 6px 10px -4px rgba(13, 39, 68, .6); }
.panel > .fx i:nth-child(11) { --fl: 18%; --dx: -20px; --r: -20deg; }
.panel > .fx i:nth-child(12) { --fl: 38%; --dx: 16px; --r: 14deg; width: 24px; height: 24px; }
.panel > .fx i:nth-child(13) { --fl: 58%; --dx: -14px; --r: -8deg; }
.panel > .fx i:nth-child(14) { --fl: 76%; --dx: 22px; --r: 22deg; width: 22px; height: 22px; }
.wrap.is-open[data-react="thanks-a"] .panel > .fx i:nth-child(n+11):nth-child(-n+14) { animation: mt-float-a 1.9s var(--out) both; animation-delay: calc(.2s + var(--k, 0) * 120ms); }
.wrap.is-open[data-react="thanks-b"] .panel > .fx i:nth-child(n+11):nth-child(-n+14) { animation: mt-float-b 1.9s var(--out) both; animation-delay: calc(.2s + var(--k, 0) * 120ms); }
.panel > .fx i:nth-child(12) { --k: 1; } .panel > .fx i:nth-child(13) { --k: 2; } .panel > .fx i:nth-child(14) { --k: 3; }
@media (prefers-reduced-motion: reduce) { .panel > .fx i:nth-child(n+4) { display: none; } }

/* ================= conversation: captain's log cards ================= */
.log { gap: 20px; }
.u { max-width: 84%; padding: 11px 16px 12px; border: 0; border-radius: 20px 20px 6px 20px; color: #fff; font: 500 16px/1.42 var(--body);
  background: linear-gradient(160deg, var(--navy-2), var(--navy) 55%, var(--navy-3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 var(--peach), 0 12px 22px -12px rgba(13, 39, 68, .8); }
:host([data-theme="dark"]) .u { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 var(--peach), 0 12px 22px -12px rgba(13, 39, 68, .8); }
.u.in { animation: mt-pop .4s var(--spring) backwards; transform-origin: 100% 100%; }
.bot { grid-template-columns: 42px minmax(0, 1fr); column-gap: 10px; row-gap: 14px; }
.av { width: 42px; height: 42px; border: 0; border-radius: 50%; overflow: hidden; background: var(--sky); box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--gold-2), 0 6px 12px -4px rgba(13, 39, 68, .5); }
.av img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.bot.in .av { animation: mt-pop .5s var(--spring) backwards; }
/* answers: a log page, ruled faintly, bound in peach */
.bubble { padding: 13px 16px 15px 18px; border: 0; border-radius: 6px 18px 18px 18px; color: var(--ink-0);
  background: var(--paper-2);
  box-shadow: inset 4px 0 0 var(--peach), 0 0 0 1px rgba(13, 39, 68, .07), 0 14px 26px -16px rgba(13, 39, 68, .55); }
.bubble::before { display: none; }
.bot.in .bubble { animation: mt-pop .45s var(--spring) .05s backwards; transform-origin: 0 0; }
.bubble p { font: 400 16px/1.56 var(--body); color: #222B3A; background: repeating-linear-gradient(180deg, transparent 0 calc(1.56em - 1px), rgba(28, 69, 135, .09) calc(1.56em - 1px) 1.56em); }
.who, :host([data-theme="dark"]) .who { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 0 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--gold-3); }
.who::before { content: "Captain\2019s log"; font: 800 italic 15px/1.2 var(--disp); color: var(--navy); }
.who::after { content: ""; width: 14px; height: 14px; background: url("mutineer-anchor.svg") 50% 50% / contain no-repeat; }
.kick, :host([data-theme="dark"]) .kick, .ghead .kick { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px 2px; padding: 0; border: 0; background: none; box-shadow: none; transform: none;
  font: 800 12.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.kick::before { content: ""; flex: none; width: 15px; height: 15px; background: url("mutineer-anchor.svg") 50% 50% / contain no-repeat; }

/* a reply's parts: log entries, each numbered on a brass disc */
.ghead { margin-bottom: 0; }
.ghead img, .ghead .gn { display: none; }
.secs { gap: 10px; }
.sec, .sec.v1, .sec.v2, .sec.v3, .sec.v4, :host([data-theme="dark"]) .sec.v1 { padding: 12px 16px 13px; border: 0; border-radius: 14px; transform: none; color: var(--ink-0);
  background: #fff; box-shadow: inset 4px 0 0 var(--navy), 0 0 0 1px rgba(13, 39, 68, .06), 0 12px 22px -14px rgba(13, 39, 68, .5); }
.sec:nth-child(2n) { box-shadow: inset 4px 0 0 var(--gold-2), 0 0 0 1px rgba(13, 39, 68, .06), 0 12px 22px -14px rgba(138, 86, 11, .45); }
.bot.in .sec { animation: mt-rise .45s var(--out) backwards; animation-delay: calc(.18s + var(--i) * 90ms); }
.sec::after { display: none; }
.sec .sh { align-items: center; gap: 11px; margin-bottom: 5px; }
.sec .num { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px #DCE5F3; }
.sec:nth-child(2n) .num { background: var(--brass); box-shadow: 0 0 0 1.5px var(--gold-4), 0 0 0 4px #FBEBCB; }
.sec .num svg { display: none; }
.sec .num span, .sec.v1 .num span, .sec.v2 .num span, .sec.v3 .num span, .sec.v4 .num span { font: 900 15px/1 var(--disp); color: #fff; }
.sec:nth-child(2n) .num span { color: var(--deep); }
.sec h4 { font: 800 17px/1.2 var(--disp); letter-spacing: 0; text-transform: none; color: var(--navy); }
.sec .si { display: none; }
.sec p { font: 400 15.5px/1.52 var(--body); color: #222B3A; }

/* links: cards with a photo from the page they open */
.links { gap: 10px; padding: 2px 2px 4px; }
.card { grid-template-columns: 62px minmax(0, 1fr) 36px; gap: 13px; padding: 8px 12px 8px 8px; border: 0; border-radius: 16px; color: var(--ink-0); transform: none;
  background: #fff; box-shadow: 0 0 0 1px rgba(13, 39, 68, .07), 0 12px 22px -14px rgba(13, 39, 68, .5); transition: transform .3s var(--spring), box-shadow .3s; }
.bot.in .card { animation: mt-rise .45s var(--out) backwards; animation-delay: calc(.3s + var(--i) * 90ms); }
.card:hover { transform: none; }
.card:focus-visible { transform: translateY(-3px); }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--peach), 0 18px 26px -14px rgba(13, 39, 68, .55); } .card:hover .go { transform: translateX(3px); background: var(--navy-2); } }
.card .ci, .card:nth-child(1) .ci, .card:nth-child(2) .ci { position: relative; width: 62px; height: 62px; border: 0; border-radius: 12px; overflow: hidden; color: #fff;
  background: url("mutineer-thumbs.webp") 0 0 / 1800% 100% no-repeat, var(--navy); box-shadow: none; }
.card .ci .ic { display: none; }
.card[href$="mutineercharters.com/"] .ci { background-position: 0 0, 0 0; }
.card[href*="/price-and-trip-types/"] .ci { background-position: calc(100% / 17) 0, 0 0; }
.card[href*="/bottom-fishing/"] .ci { background-position: calc(200% / 17) 0, 0 0; }
.card[href*="/halibut-fishing/"] .ci, .card[href*="halibut-season"] .ci { background-position: calc(300% / 17) 0, 0 0; }
.card[href*="/deep-water-bottom-fishing/"] .ci { background-position: calc(400% / 17) 0, 0 0; }
.card[href*="/salmon-fishing/"] .ci { background-position: calc(500% / 17) 0, 0 0; }
.card[href*="/combo-fishing/"] .ci { background-position: calc(600% / 17) 0, 0 0; }
.card[href*="/albacore-tuna-fishing/"] .ci, .card[href*="/fly-fishing-tuna/"] .ci { background-position: calc(700% / 17) 0, 0 0; }
.card[href$="/our-fleet/"] .ci, .card[href*="/gold-rush-charter/"] .ci, .card[href*="season-is-now-open"] .ci { background-position: calc(800% / 17) 0, 0 0; }
.card[href*="/fury-charter/"] .ci { background-position: calc(900% / 17) 0, 0 0; }
.card[href*="/hot-pursuit/"] .ci { background-position: calc(1000% / 17) 0, 0 0; }
.card[href*="/reel-electric-charter/"] .ci, .card[href*="/black-cod-fishing/"] .ci { background-position: calc(1100% / 17) 0, 0 0; }
.card[href*="/slammer-charters"] .ci { background-position: calc(1200% / 17) 0, 0 0; }
.card[href*="/stardust-charter-boat/"] .ci { background-position: calc(1300% / 17) 0, 0 0; }
.card[href*="/faq/"] .ci, .card[href*="/policies-information/"] .ci { background-position: calc(1400% / 17) 0, 0 0; }
.card[href*="/contact-us/"] .ci, .card[href*="/book-now/"] .ci { background-position: calc(1500% / 17) 0, 0 0; }
.card[href*="/product/"] .ci, .card[href*="military-discount"] .ci { background-position: calc(1600% / 17) 0, 0 0; }
.card[href*="/fish-counts/"] .ci, .card[href*="/blog/"] .ci, .card[href*="/photo-gallery/"] .ci, .card[href*="/contest-winners/"] .ci { background-position: calc(1700% / 17) 0, 0 0; }
.card .ct { font: 800 16px/1.2 var(--disp); letter-spacing: 0; text-transform: none; color: var(--navy); }
.card .cw { margin-top: 3px; font: 400 14px/1.35 var(--body); color: var(--ink-3); }
.card .go { width: 36px; height: 36px; border: 0; color: #fff; background: var(--navy); transition: transform .3s var(--spring), background .2s; }
.card:focus-visible .go { transform: translateX(3px); }
.card .go .ic { width: 16px; height: 16px; stroke-width: 2.6; }

/* video, in case an answer ever brings one */
.vbtn { border: 0; border-radius: 16px; box-shadow: 0 0 0 2px var(--peach), 0 16px 24px -14px rgba(0, 0, 0, .6); background: var(--sky); }
.vbtn .vrays { display: none; }
.vbtn .vplay { width: 60px; height: 60px; margin: -30px 0 0 -30px; border: 0; background: var(--brass); color: var(--deep); box-shadow: 0 10px 20px -6px rgba(13, 39, 68, .7); }
.vbtn .vtag { border: 0; border-radius: 999px; padding: 6px 10px; background: #fff; color: var(--ink-0); font: 800 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; transform: none; box-shadow: none; }
.vbtn .vt { font: 800 16px/1.2 var(--disp); text-transform: none; }
.vframe { border: 0; border-radius: 16px; box-shadow: 0 0 0 2px var(--peach); }
.vlink { min-height: 44px; font: 600 15px/1.3 var(--body); color: var(--ink-0); text-decoration-color: var(--peach); }

/* follow-up questions: white pills with a navy line and a brass anchor */
.follow { gap: 9px; }
.chip, .chip:nth-child(2), .chip:nth-child(3), :host([data-theme="dark"]) .chip:nth-child(2) { gap: 9px; min-height: 44px; padding: 10px 16px 10px 10px; border: 0; border-radius: 999px; color: var(--navy);
  background: #fff; font: 700 15px/1.25 var(--body); box-shadow: inset 0 0 0 2px var(--navy), 0 8px 16px -10px rgba(13, 39, 68, .6); transition: transform .25s var(--spring), background .2s, color .2s, box-shadow .2s; }
.chip .q, .chip:nth-child(2) .q, .chip:nth-child(3) .q { width: 24px; height: 24px; flex: none; border: 0; border-radius: 50%; font-size: 0; color: transparent;
  background: var(--deep) url("mutineer-anchor.svg") 50% 50% / 15px 15px no-repeat; box-shadow: 0 0 0 1.5px var(--peach); }
.chip:hover { transform: none; }
.chip:focus-visible { transform: translateY(-2px); background: var(--navy); color: #fff; }
@media (hover: hover) { .chip:hover, :host([data-theme="dark"]) .chip:hover { transform: translateY(-2px); background: var(--navy); color: #fff; box-shadow: inset 0 0 0 2px var(--navy), 0 12px 20px -10px rgba(13, 39, 68, .7); } }
.chip:active { transform: translateY(1px) scale(.97); }
.bot.in .chip { animation: mt-pop .45s var(--spring) backwards; animation-delay: calc(.45s + var(--i) * 80ms); }

/* thinking: three bubbles rising */
.typing { gap: 10px; margin-top: 18px; }
.typing .av { animation: none; }
.thought { gap: 12px; padding: 10px 16px 10px 12px; border: 0; border-radius: 6px 18px 18px 18px; background: var(--paper-2); box-shadow: inset 4px 0 0 var(--peach), 0 0 0 1px rgba(13, 39, 68, .06), 0 10px 20px -12px rgba(13, 39, 68, .5); animation: mt-pop .4s var(--spring) backwards; }
.thought::before, .thought::after { display: none; }
.dots { gap: 6px; align-items: center; }
.dots i, .dots i:nth-child(2), :host([data-theme="dark"]) .dots i:nth-child(2) { width: 11px; height: 11px; border: 2px solid var(--navy); border-radius: 50%; background: rgba(28, 69, 135, .12); animation: mt-bub 1.2s var(--ease) infinite; }
.dots i:nth-child(2) { animation-delay: .2s; width: 9px; height: 9px; }
.dots i:nth-child(3) { animation-delay: .4s; }
.tl { font: 600 14.5px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink-2); }

/* ================= talk to a person ================= */
.contact { border: 0; border-radius: 20px; background: #fff; box-shadow: 0 0 0 2px var(--navy), 0 18px 30px -14px rgba(13, 39, 68, .55); overflow: hidden; }
.bot.in .contact { animation: mt-pop .5s var(--spring) .2s backwards; }
.ctop { position: relative; min-height: 140px; padding: 18px 42% 18px 18px; color: #fff; border: 0;
  background: url("mutineer-character-full.webp") calc(100% + 26px) 6px / auto 150% no-repeat, url("mutineer-sun.svg") 64% calc(100% + 50px) / 120px auto no-repeat, var(--sky); }
.ctop h4 { font: 800 23px/1.15 var(--disp); letter-spacing: 0; text-transform: none; text-shadow: 0 2px 0 rgba(13, 39, 68, .5); color: var(--peach); }
.ctop p { margin-top: 7px; font: 500 14.5px/1.42 var(--body); color: #fff; text-shadow: 0 1px 6px rgba(13, 39, 68, .8); }
.cbody { padding: 14px; }
.call, :host([data-theme="dark"]) .call { gap: 12px; padding: 10px 16px 10px 10px; border: 0; border-radius: 16px; color: var(--deep);
  background: var(--brass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(138, 86, 11, .35), 0 10px 18px -10px rgba(196, 122, 16, .9); transition: transform .25s var(--spring); }
.call:hover, .call:focus-visible { transform: translateY(-2px); }
.call .cc { width: 44px; height: 44px; border: 0; background: var(--deep); color: var(--peach-l); }
.wrap:not(.still) .call .cc { animation: none; }
.call small { font: 700 12.5px/1.2 var(--body); letter-spacing: .02em; color: #4A3205; }
.call b { margin-top: 2px; font: 900 24px/1.05 var(--body); letter-spacing: .01em; color: var(--deep); }
.or { margin: 15px 2px 10px; font: 500 15px/1.45 var(--body); color: var(--ink-2); }
.fgrid { gap: 12px 10px; }
.f label { margin: 0 0 6px 2px; font: 700 13.5px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink-0); }
.f label span { font: 500 13.5px/1.3 var(--body); color: var(--ink-3); }
.f input, .f textarea, :host([data-theme="dark"]) .f input, :host([data-theme="dark"]) .f textarea { min-height: 46px; padding: 11px 13px; border: 2px solid #D5DEEC; border-radius: 12px; background: var(--paper); color: var(--ink-0);
  font: 400 16px/1.4 var(--body); transition: border-color .15s, box-shadow .15s; }
.f input:focus, .f textarea:focus, :host([data-theme="dark"]) .f input:focus, :host([data-theme="dark"]) .f textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(28, 69, 135, .18); }
.f [aria-invalid="true"] { border-color: #B22234; box-shadow: 0 0 0 3px rgba(178, 34, 52, .14); }
.fe, :host([data-theme="dark"]) .fe, .ferr, :host([data-theme="dark"]) .ferr { font: 600 14px/1.4 var(--body); color: #B22234; }
.btn, :host([data-theme="dark"]) .btn { gap: 10px; min-height: 50px; padding: 14px 20px; border: 0; border-radius: 999px; color: #fff;
  background: var(--navy); font: 800 16px/1 var(--body); letter-spacing: .01em; text-transform: none; box-shadow: inset 0 -3px 0 var(--peach), 0 10px 18px -10px rgba(13, 39, 68, .8); transition: transform .2s var(--spring), background .2s; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 17px; height: 17px; stroke-width: 2.4; color: #fff; }
.btn.ghost, :host([data-theme="dark"]) .btn.ghost { background: #fff; color: var(--ink-0); box-shadow: inset 0 0 0 2px var(--slate); }
.btn.ghost .ic { color: var(--ink-0); }
.done { gap: 12px; margin-top: 14px; padding: 14px 15px; border: 0; border-radius: 16px; color: var(--ink-0); background: #FBEBCB; box-shadow: inset 0 0 0 2px var(--gold-2); animation: mt-pop .5s var(--spring) backwards; }
.done .ck { width: 40px; height: 40px; border: 0; background: var(--navy); color: #fff; box-shadow: none; }
.done p { font: 600 15px/1.5 var(--body); color: var(--ink-0); }
.done .sent, .done .sentt { display: none; }
.bubble.err { box-shadow: inset 4px 0 0 #B22234, 0 14px 26px -14px rgba(0, 0, 0, .35); }
.row { gap: 8px; }
.row .btn { padding: 12px 15px; min-height: 44px; font-size: 14.5px; }

/* ================= offline note, composer, the mark ================= */
.offline { padding: 7px 16px 8px; font: 500 13px/1.4 var(--body); color: var(--ink-3); background: #fff; border-top: 1px solid #E6DCCB; }
.composer { gap: 10px; padding: 12px; border-top: 0; background: #fff; border-radius: 0; box-shadow: 0 -10px 20px -14px rgba(13, 39, 68, .35); }
.composer textarea, :host([data-theme="dark"]) .composer textarea { min-height: 52px; padding: 14px 16px; border: 2px solid #D5DEEC; border-radius: 26px; background: var(--paper); color: var(--ink-0);
  font: 500 16px/1.4 var(--body); transition: border-color .15s, box-shadow .2s; }
.composer textarea::placeholder { color: #6B7280; opacity: 1; }
.composer textarea:focus, :host([data-theme="dark"]) .composer textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(28, 69, 135, .16); }
.send, :host([data-theme="dark"]) .send { width: 52px; height: 52px; border: 0; border-radius: 50%; color: var(--deep);
  background: var(--brass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(138, 86, 11, .4), 0 8px 16px -8px rgba(196, 122, 16, .9);
  transition: transform .2s var(--spring), filter .2s, opacity .2s; }
.send .ic { width: 21px; height: 21px; stroke-width: 2.8; }
.send:not([disabled]):hover { transform: translateY(-2px) rotate(-8deg); filter: brightness(1.05); }
.send:not([disabled]):active { transform: translateY(1px); }
.send[disabled], :host([data-theme="dark"]) .send[disabled] { opacity: .45; filter: grayscale(.4); box-shadow: none; }
/* the mic in navy; while it listens it glows gold like a lamp */
.vmic { width: 52px; height: 52px; border: 0; color: #fff; background: linear-gradient(180deg, var(--navy-2), var(--navy)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 16px -8px rgba(13, 39, 68, .8); }
.vmic:hover { transform: translateY(-2px); }
.vmic.on { background: var(--brass); color: var(--deep); border-color: transparent; }
.vmic.on::after { border-color: var(--gold); }
.vlisten { background: var(--navy); color: #fff; font: 600 15px/1.35 var(--body); }
.vlisten i { background: var(--peach); }
.vlisten.err { background: #FBEBCB; color: var(--deep); box-shadow: inset 0 1px 0 #F0D9A8; }
.hbtn.snd[aria-pressed="true"]::after { background: var(--peach); }
.wrap.skinned .hbtn.snd[aria-pressed="true"], .wrap.skinned .hbtn.snd[aria-pressed="true"]:hover { background: var(--peach); color: var(--deep); border-color: var(--peach-l); }
.tfw { background: #fff; color: var(--ink-3); border-top: 1px solid #EFE7E7; border-radius: 0 0 24px 24px; }

/* ================= the first-use intro ================= */
.vintro { padding: 16px 18px 10px; color: var(--ink-0); background: var(--paper); border-radius: 24px; }
.vi-in { gap: 11px; }
.vi-hero { position: relative; display: grid; grid-template-columns: 172px minmax(0, 1fr); align-items: start; gap: 4px; min-height: 214px; padding: 0 16px 0 0; border-radius: 22px; overflow: hidden;
  background: url("mutineer-bow.svg") 0 100% / 100% 40px no-repeat, url("mutineer-sun.svg") 14% 64% / 150px auto no-repeat, linear-gradient(180deg, transparent 66%, #1C4587 66%, #0D2744 100%), linear-gradient(180deg, #0D2744 0%, #1C4587 34%, #4F67A0 50%, #B9918E 58%, #F6B26B 63%, #F8D98E 66%);
  box-shadow: 0 14px 26px -16px rgba(13, 39, 68, .75); }
.vi-pic { order: 0; align-self: end; height: 236px; width: auto; max-width: none; justify-self: center; margin: 0 0 26px -6px; position: relative; z-index: 1; filter: drop-shadow(0 10px 12px rgba(13, 39, 68, .35)); animation: mt-up .8s var(--spring) .15s backwards; }
.vi-hero > div { align-self: start; padding: 22px 0 0; }
.vi-hero h2 { margin: 0 0 8px; font: 900 28px/1.06 var(--disp); color: var(--peach); text-shadow: 0 2px 0 rgba(13, 39, 68, .6), 0 6px 14px rgba(13, 39, 68, .5); }
.vi-lead { font: 500 15px/1.4 var(--body); color: #fff; opacity: 1; text-shadow: 0 1px 6px rgba(13, 39, 68, .9); }
.vi-steps { gap: 9px; }
.vi-step { grid-template-columns: 52px minmax(0, 1fr); gap: 13px; padding: 10px 14px 10px 10px; border: 0; border-radius: 18px; background: #fff; color: var(--ink-0); box-shadow: 0 0 0 1px rgba(13, 39, 68, .07), 0 10px 18px -14px rgba(13, 39, 68, .6); }
button.vi-step:hover { border-color: transparent; box-shadow: 0 0 0 2px var(--navy), 0 10px 18px -14px rgba(13, 39, 68, .6); }
.vi-ico { width: 52px; height: 52px; background: #DCE5F3; color: var(--navy); }
button.vi-step .vi-ico { background: var(--navy); color: #fff; }
.vi-n { background: var(--gold-2); color: var(--deep); font: 900 13px/25px var(--body); }
.vi-t b { font: 800 17.5px/1.2 var(--body); }
.vi-t small { font: 500 14px/1.35 var(--body); color: var(--ink-2); opacity: 1; }
.vi-big { grid-template-columns: 70px minmax(0, 1fr); border: 0; box-shadow: 0 0 0 3px var(--gold-2), 0 12px 22px -14px rgba(196, 122, 16, .8); }
.vi-big .vi-ico, button.vi-big .vi-ico { width: 70px; height: 70px; background: var(--brass); color: var(--deep); }
.vi-big .vi-ico > .ic { width: 36px; height: 36px; }
.vi-big .vi-t b { font-size: 20px; }
/* the speaker calls for a tap a few times, then waits */
.vi-big:not(.on) .vi-ico { animation: vi-pulse 1.6s ease-in-out 4; }
.vi-big:not(.on) .vi-ico::after { border-color: var(--gold-2); animation: vi-ring 1.6s ease-out 4 both; }
.vi-big.on { background: #FBEBCB; }
.vi-start { min-height: 56px; background: linear-gradient(180deg, var(--navy-2), var(--navy) 60%, var(--navy-3)); color: #fff; font: 900 22px/1 var(--disp); box-shadow: inset 0 -3px 0 var(--peach), 0 12px 24px -12px rgba(13, 39, 68, .9); }
.vi-type { color: var(--ink-2); font: 600 15.5px/1.2 var(--body); }
.vi-note { font: 500 13.5px/1.45 var(--body); color: var(--ink-2); opacity: 1; }
.vi-mark { color: var(--ink-3); opacity: 1; }
.vintro :focus-visible { outline-color: var(--navy); }

/* ================= touch screens ================= */
@media (pointer: coarse) {
  .hbtn { width: 44px; height: 44px; }
  .strip a, .strip button { min-height: 44px; }
}

/* ================= phones: the chat fills the screen ================= */
@media (max-width: 480px) {
  :host, :host([data-theme="dark"]) { --LW: 150px; --LH: 204px; --BD: 118px; --DH: 200px; --Bo: 27px; --stage-h: 404px; --hero-h: 300px; --hero-r: -50px; --bow: 80px; }
  .launch { right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(14px + var(--lift) + env(safe-area-inset-bottom, 0px)); }
  .launch .tag { font-size: 16px; padding: 8px 13px 8px 20px; bottom: 58px; right: calc(100% - 28px); }
  .launch .wig::after { right: calc(100% - 31px); bottom: 42px; height: 48px; }
  .teaser { right: calc(10px + var(--LW) - 28px + env(safe-area-inset-right, 0px)); bottom: calc(14px + var(--lift) + var(--LH) - 40px + env(safe-area-inset-bottom, 0px)); width: min(232px, calc(100vw - 132px)); }
  .teaser .tb { padding: 14px 36px 15px 16px; }
  .teaser b { font-size: 19px; }
  .teaser b em { font-size: 19px; }
  .teaser small { font-size: 14.5px; }
  .panel { top: 0; bottom: 0; width: 100%; height: auto; border-radius: 0; box-shadow: none; overflow: hidden; }
  .wrap.is-open .panel:has(.welcome:not([hidden])) { animation-name: mt-open; }
  .head { border-radius: 0; padding: calc(10px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px)) 10px calc(14px + env(safe-area-inset-left, 0px)); min-height: 68px; }
  .htext h2 { font-size: 19px !important; }
  .panel:has(.welcome[hidden]) .htext h2 { white-space: normal; font-size: 18px !important; line-height: 1.05 !important; }
  .htext p { display: none; }
  .head { gap: 4px; }
  .head .hbtn, .head .hbtn.vhelp, .head .hbtn.snd { width: 36px; height: 36px; }
  .strip a span { display: none; }
  .strip a b { font-size: 16.5px; }
  .strip button { min-width: 0; padding: 9px 13px; font-size: 14px; }
  .strip button .ic { display: none; }
  .panel:has(.welcome[hidden]) .hface { top: calc(2px + env(safe-area-inset-top, 0px)); left: calc(4px + env(safe-area-inset-left, 0px)); width: 62px; height: 74px; }
  .panel:has(.welcome[hidden]) .head { padding-left: calc(72px + env(safe-area-inset-left, 0px)); }
  .hbtn { width: 44px; height: 44px; }
  .strip { padding-left: calc(14px + env(safe-area-inset-left, 0px)); padding-right: calc(12px + env(safe-area-inset-right, 0px)); }
  .scroller { padding-left: calc(14px + env(safe-area-inset-left, 0px)); padding-right: calc(14px + env(safe-area-inset-right, 0px)); }
  .stage, :host([data-theme="dark"]) .stage { margin-left: calc(-14px - env(safe-area-inset-left, 0px)); margin-right: calc(-14px - env(safe-area-inset-right, 0px)); padding-left: calc(18px + env(safe-area-inset-left, 0px)); }
  .composer { border-radius: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding-left: calc(12px + env(safe-area-inset-left, 0px)); padding-right: calc(12px + env(safe-area-inset-right, 0px)); }
  .tfw { border-radius: 0; }
  .vintro { border-radius: 0; padding: calc(14px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px)); }
  .vi-hero { grid-template-columns: 140px minmax(0, 1fr); min-height: 180px; }
  .vi-pic { height: 188px; margin-bottom: 20px; }
  .vi-hero h2 { font-size: 24px; }
  .vi-lead { font-size: 14px; }
  .say { width: 60%; }
  .say h3 { font-size: 30px; }
  .say h3 em { font-size: 27px; }
  .caption { width: 50%; font-size: 14.5px; }
  .badges { left: 8px; right: 8px; gap: 6px; }
  .badges li { padding: 6px 7px; }
  .badges b { font-size: 15.5px; }
  .badges span { font-size: 10px; }
  .tiles { gap: 10px; }
  .tile b { font-size: 16px; }
  .tile small { font-size: 12.5px; }
  .u, .bubble p, .sec p { font-size: 16px; }
}
@media (max-width: 480px) and (max-height: 700px) {
  :host, :host([data-theme="dark"]) { --stage-h: 352px; --hero-h: 244px; --hero-r: -34px; }
  .say h3 em { font-size: 25px; }
  .caption { font-size: 13.5px; }
}
@media (max-width: 370px) {
  :host, :host([data-theme="dark"]) { --hero-r: -56px; }
  .say h3 { font-size: 27px; }
  .say h3 em { font-size: 24px; }
  .badges span { font-size: 9px; }
}

/* ================= short desktop and tablet windows ================= */
@media (min-width: 481px) and (max-height: 780px) {
  :host, :host([data-theme="dark"]) { --stage-h: 380px; --hero-h: 292px; }
  .say h3 em { font-size: 28px; }
}

/* ================= phones held sideways ================= */
@media (max-height: 500px) {
  :host, :host([data-theme="dark"]) { --LW: 92px; --LH: 116px; --BD: 76px; --DH: 108px; --Bo: 16px; --stage-h: 264px; --hero-h: 200px; --hero-r: 4%; --bow: 56px; }
  .launch { right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + var(--lift) + env(safe-area-inset-bottom, 0px)); }
  .launch .tag, .launch .wig::after { display: none; }
  .teaser { right: calc(14px + var(--LW) + env(safe-area-inset-right, 0px)); bottom: calc(14px + var(--lift) + 10px + env(safe-area-inset-bottom, 0px)); width: 280px; }
  .panel { top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; overflow: hidden; }
  .head { border-radius: 0; min-height: 52px; padding: 5px calc(10px + env(safe-area-inset-right, 0px)) 5px calc(14px + env(safe-area-inset-left, 0px)); }
  .hface { width: 38px; height: 38px; }
  .hface::before { left: -8px; top: -8px; width: 54px; height: 54px; }
  .hface img { left: 2px; top: 2px; width: 34px; height: 34px; }
  .htext p { display: none; }
  .strip { padding: 2px calc(12px + env(safe-area-inset-right, 0px)) 2px calc(14px + env(safe-area-inset-left, 0px)); }
  .scroller { padding: 16px calc(16px + env(safe-area-inset-right, 0px)) 16px calc(16px + env(safe-area-inset-left, 0px)); }
  .stage, :host([data-theme="dark"]) .stage { margin: -16px calc(-16px - env(safe-area-inset-right, 0px)) 0 calc(-16px - env(safe-area-inset-left, 0px)); padding: 18px 0 0 calc(22px + env(safe-area-inset-left, 0px)); }
  .say h3 { font-size: 24px; }
  .say h3 em { font-size: 24px; }
  .caption { font-size: 13.5px; width: 50%; }
  .badges { left: 12px; right: auto; width: 56%; }
  .composer { border-radius: 0; padding: 7px calc(12px + env(safe-area-inset-right, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); }
  .composer textarea, :host([data-theme="dark"]) .composer textarea { min-height: 46px; max-height: 92px; padding-top: 11px; padding-bottom: 11px; }
  .send, :host([data-theme="dark"]) .send, .vmic { width: 46px; height: 46px; }
  .panel:has(.welcome[hidden]) .hface { height: 62px; width: 52px; top: -4px; }
  .tfw, .vintro { border-radius: 0; }
}
@media (max-height: 500px) and (min-width: 760px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile:nth-child(1), .tile:nth-child(8) { grid-column: span 2; }
}

/* reduced motion: the widget stops every animation; everything stands at its end */
@media (prefers-reduced-motion: reduce) {
  .stage .fx.back i:nth-child(3), .stage .fx.back i:nth-child(4), .stage .fx.back i:nth-child(5), .stage .fx.front i:nth-child(3), .stage .fx.front i:nth-child(4) { display: none; }
  .launch .fx i, .tile, .card, .chip { transition: none; }
  .wrap.is-open .panel:has(.welcome:not([hidden])) { animation: none; clip-path: none; }
}

/* ======================================================================
   The welcome card
   A compact golden-hour card at the top of the chat, so the first row of
   topics shows on a phone's first screen. Left: who he is, his line in a
   white speech bubble pointing at him, and one line that keeps changing to
   show what he does beyond a chatbot. Right: the pelican on his bow, the sun
   sitting on the horizon behind him. It is a grid, so the words set its
   height and nothing is laid over anything else. The plaques are left out
   here; the same facts are on the topic cards.
   ====================================================================== */
@keyframes mt-swell { 0%, 100% { rotate: 0deg; translate: 0 0 } 50% { rotate: -1.2deg; translate: 0 -2px } }
@keyframes mt-glint { 0%, 100% { opacity: .75; scale: 1 } 50% { opacity: 1; scale: 1.06 } }
@keyframes mt-live { 0% { box-shadow: 0 0 0 0 rgba(248, 217, 142, .65) } 70%, 100% { box-shadow: 0 0 0 6px rgba(248, 217, 142, 0) } }
@keyframes mt-sndpulse { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 0 0 0 rgba(248, 217, 142, .5) } 60% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 0 0 7px rgba(248, 217, 142, 0) } }
@keyframes mt-reel-x { from { background-position-x: 0% } to { background-position-x: 100% } }
@keyframes mt-reel-y { from { background-position-y: 0% } to { background-position-y: 100% } }
@keyframes mt-bubble { from { opacity: 0; transform: translateY(6px) scale(.96) } to { opacity: 1; transform: none } }

:host, :host([data-theme="dark"]) { --hero-h: 178px; --hero-r: -18px; --bow: 30px; --hz: 85%; --pw: 128px; }
.stage, :host([data-theme="dark"]) .stage {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--pw); grid-template-rows: auto auto 1fr; row-gap: 9px; justify-content: stretch;
  height: auto; min-height: 192px; margin: 0; padding: 15px 0 13px 16px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #0D2744 0%, #163A73 32%, #2E4F8E 58%, #5F6699 70%, #B98A86 78%, #F0AD6C 83%, #F8D98E 85%, #F8D98E 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(13, 39, 68, .2), 0 22px 36px -24px rgba(13, 39, 68, .95); }
/* the sun sits on the horizon behind him, breathing gently */
.stage .fx.back i:nth-child(1) { left: auto; right: calc(var(--pw) / 2 - 86px); top: calc(var(--hz) - 86px); width: 172px; height: 172px; }
.wrap.is-open .stage .fx.back i:nth-child(1) { animation: mt-sun 1.5s var(--out) .2s backwards, mt-glint 5s ease-in-out 1.8s infinite; }
.stage .fx.back i:nth-child(3) { top: 26px; } .stage .fx.back i:nth-child(4) { top: 46px; }
.stage .fx.back i:nth-child(6) { top: calc(var(--hz) - 16px); width: 96px; height: 17px; opacity: .45; }
/* the pelican, a little smaller, rocking on the swell once he has said hello */
.wrap.is-open .stage .fx.front i:nth-child(1) { animation: mt-up .85s var(--spring) .5s backwards, mt-x3 2.5s steps(30, jump-none) 1.4s 2 backwards, mt-y3 5s steps(2, jump-none) 1.4s 1 backwards, mt-swell 5.5s ease-in-out 6.5s infinite; }
/* his bit of the bow, under him only */
.stage .fx.front i:nth-child(2) { left: auto; right: -24px; width: calc(var(--pw) + 64px); }
.badges { display: none; }

/* who he is */
.say, :host([data-theme="dark"]) .say { position: relative; z-index: 7; grid-column: 1; grid-row: 1; width: auto; margin: 0; padding: 0; text-align: left; }
.say h3 { font: 900 22px/1.12 var(--disp); color: var(--peach); text-shadow: 0 2px 0 rgba(13, 39, 68, .55); white-space: normal; }
.say h3 em, :host([data-theme="dark"]) .say h3 em { display: block; margin: 1px 0 0; font: 800 italic 22px/1.12 var(--disp); color: #fff; transform: none; text-shadow: 0 2px 0 rgba(13, 39, 68, .55); }
.wrap.is-open .say h3 { animation: mt-rise .5s var(--out) .15s backwards; }
.wrap.is-open .say h3 em { animation: none; }

/* his line, in a white speech bubble pointing at him */
.caption, :host([data-theme="dark"]) .caption { position: relative; z-index: 7; grid-column: 1; grid-row: 2; width: auto; margin: 0 12px 0 0; padding: 9px 12px 10px; border-radius: 16px;
  background: #fff; color: var(--ink-0); font: 500 14px/1.38 var(--body); text-shadow: none; text-wrap: pretty;
  box-shadow: inset 0 -2px 0 rgba(246, 178, 107, .55), 0 1px 1px rgba(0, 0, 0, .08), 0 12px 24px -14px rgba(13, 39, 68, .8); }
.caption::after { content: ""; position: absolute; right: -5px; top: 16px; width: 12px; height: 12px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.wrap.is-open .caption { animation: mt-bubble .5s var(--out) .35s backwards; }

/* more than a chatbot: a small label and a navy glass chip whose line changes */
.more { position: relative; z-index: 7; grid-column: 1; grid-row: 3; align-self: end; margin: 2px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; color: #fff; font: 600 13px/1.2 var(--body); }
.wrap.is-open .more { animation: mt-rise .5s var(--out) .5s backwards; }
.more-k { margin: 0; padding-left: 1px; opacity: 1; color: #fff; font: 800 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(13, 39, 68, .8); }
.more-w { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(13, 39, 68, .86); box-shadow: inset 0 0 0 1px rgba(248, 217, 142, .35), 0 6px 14px -8px rgba(13, 39, 68, .8); }
.more-w::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--peach-l); animation: mt-live 2.6s ease-out infinite; }
.more-t { color: #fff; white-space: nowrap; }
.tilehead { margin-top: 20px; }

/* the topics: two to a row, so the first two show on the first screen. The
   trips card keeps its brass price tag; the office card is brass with his face */
.wrap.is-open .tile { animation-delay: calc(.8s + var(--i) * 60ms); }
.tile, .tile.red { aspect-ratio: 1 / .9; }
.tile:nth-child(1) { grid-column: auto; aspect-ratio: 1 / .9; height: auto; }
.tile:nth-child(1) .ti { inset: 0 0 60px; background-position: 0 42%, 0 0; }
.tile:nth-child(1)::before { inset: auto 0 0 0; height: 60px; background: var(--navy); box-shadow: inset 0 3px 0 var(--peach); }
.tile:nth-child(1)::after { right: 8px; top: 9px; padding: 6px 8px 5px; font-size: 12px; transform: rotate(5deg); }
.tile:nth-child(1) b { left: 12px; right: 10px; top: auto; bottom: 27px; font: 800 17px/1.1 var(--disp); color: #fff; white-space: nowrap; }
.tile:nth-child(1) small { left: 12px; right: 10px; top: auto; bottom: 10px; font: 600 13px/1.15 var(--body); color: var(--peach-l); white-space: nowrap; }
.tile:nth-child(8), .tile.red { grid-column: auto; aspect-ratio: 1 / .9; height: auto; }
.tile:nth-child(8) .ti { inset: 12px auto auto 12px; width: 52px; height: 52px; }
.tile:nth-child(8)::after { right: 12px; top: 18px; margin-top: 0; width: 38px; height: 38px; background-size: 18px 18px; }
.tile:nth-child(8) b { left: 12px; right: 10px; top: auto; bottom: 30px; font-size: 16.5px; }
.tile:nth-child(8) small { left: 12px; right: 10px; bottom: 12px; font: 800 13px/1.1 var(--body); }

/* ======================================================================
   How I work: pinned under the phone strip, below the rope
   ====================================================================== */
.howto { gap: 6px; padding: 10px 12px 8px; border-bottom: 1px solid rgba(13, 39, 68, .1); background: var(--paper-2); font: 600 13px/1 var(--body); }
.how-k { color: var(--navy); font-weight: 800; }
.how-b { gap: 5px; padding: 6px 12px 6px 9px; border: 1.5px solid rgba(28, 69, 135, .25); background: #fff; color: var(--deep); box-shadow: 0 1px 2px rgba(13, 39, 68, .06); transition: border-color .2s, transform .2s var(--spring); }
.how-b .ic { color: var(--navy); }
.how-b:hover { transform: translateY(-1px); border-color: var(--navy); }
.how-b:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.how-b.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.how-b.on .ic { color: var(--peach-l); }

/* ======================================================================
   The intro: a short clip, then the three ways to use him
   The clip is golden hour at sea: the pelican on his bow saluting and
   waving, his lines arriving as speech bubbles with a moment of typing
   dots, sound off until you tap. It plays once, then offers to play again.
   ====================================================================== */
.vintro, .vintro.has-reel { container-type: size; padding: 14px 16px 10px;
  background: radial-gradient(120% 32% at 50% 0%, rgba(246, 178, 107, .16), rgba(246, 178, 107, 0) 70%), var(--paper); }
.vintro .vi-in { gap: 12px; }
.vi-reel { height: 220px; height: clamp(176px, calc(100cqh - 456px), 270px); margin: 0; border-radius: 22px; isolation: isolate;
  background:
    url("mutineer-bow.svg") 100% 100% / 72% 34px no-repeat,
    url("mutineer-sun.svg") calc(100% - 22px) 70% / 150px 150px no-repeat,
    linear-gradient(180deg, #0D2744 0%, #163A73 30%, #2E4F8E 52%, #7D6F95 63%, #D99A79 71%, #F6B26B 75%, #F8D98E 76%, #1C4587 76.5%, #0D2744 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 22px 40px -26px rgba(13, 39, 68, .95); }
.rl-pic { z-index: 1; left: auto; right: -2%; bottom: 14px; height: 86%; translate: none; aspect-ratio: 5 / 6; transform-origin: 43% 100%;
  background: var(--sheet) 0 0 / 3000% 200% no-repeat; filter: drop-shadow(0 10px 12px rgba(13, 39, 68, .45));
  animation: mt-reel-x 2.5s steps(30, jump-none) infinite, mt-reel-y 5s steps(2, jump-none) infinite; }
.rl-pic img { display: none; }
.vi-reel.done .rl-pic { animation-play-state: paused; }
.rl-bars { top: 10px; left: 12px; right: 12px; gap: 4px; }
.rl-bars i { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .26); }
.rl-bars b { background: var(--peach-l); border-radius: 3px; }
/* his lines: a white bubble beside him, pointing at him */
.rl-cap { left: 14px; right: 44%; top: 62px; bottom: auto; text-align: left; font: 600 15px/1.36 var(--body); color: var(--ink-0); }
.rl-cap span { position: relative; display: inline-block; padding: 9px 13px 10px; border-radius: 16px; background: #fff; color: var(--ink-0);
  box-shadow: inset 0 -2px 0 rgba(246, 178, 107, .55), 0 1px 1px rgba(0, 0, 0, .08), 0 14px 26px -14px rgba(0, 0, 0, .7); animation: mt-bubble .35s var(--spring); }
.rl-cap span::after { content: ""; position: absolute; right: -5px; top: 14px; width: 12px; height: 12px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.rl-cap .rl-dots { color: var(--navy); padding: 11px 13px !important; }
.rl-cap .rl-dots i { width: 6px; height: 6px; }
/* sound: a navy glass pill with a brass ring calling for a tap */
.rl-snd { top: 22px; left: 12px; right: auto; gap: 6px; padding: 7px 12px 7px 10px; background: rgba(13, 39, 68, .55); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 700 13px/1 var(--body); }
.rl-snd .ic { width: 15px; height: 15px; }
.rl-snd:not(.on) { animation: mt-sndpulse 2.2s ease-out infinite; }
.rl-snd.on { background: var(--brass); color: var(--deep); box-shadow: 0 8px 18px -10px rgba(196, 122, 16, .9); }
.rl-again { left: 14px; top: auto; bottom: 16px; translate: none; gap: 7px; padding: 10px 16px 10px 13px; background: var(--brass); color: var(--deep); font: 800 15px/1 var(--body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(138, 86, 11, .35), 0 12px 24px -12px rgba(13, 39, 68, .9); }
.rl-again .ic { width: 15px; height: 15px; }

/* who he is: plain words on the paper, no second picture */
.vintro .vi-pic, .vintro.has-reel .vi-pic { display: none; }
.vintro .vi-hero, .vintro.has-reel .vi-hero { display: block; min-height: 0; padding: 2px 2px 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
.vintro .vi-hero > div { padding: 0; }
.vintro .vi-hero h2, .vintro.has-reel .vi-hero h2 { margin: 0 0 5px; font: 900 23px/1.15 var(--disp); color: var(--navy); text-shadow: none; }
.vintro .vi-lead, .vintro.has-reel .vi-lead { font: 400 15px/1.42 var(--body); color: var(--ink-2); text-shadow: none; opacity: 1; }

/* the three ways, as one grouped card */
.vi-steps { gap: 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(13, 39, 68, .08), 0 1px 2px rgba(13, 39, 68, .05), 0 14px 30px -22px rgba(13, 39, 68, .55); }
.vi-steps li { position: relative; }
.vi-steps li + li::before { content: ""; position: absolute; z-index: 1; left: 64px; right: 0; top: 0; height: 1px; background: rgba(13, 39, 68, .09); }
.vi-step, .vi-step.vi-person { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; min-height: 60px; padding: 11px 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: background .2s; }
button.vi-step { padding-right: 36px; }
button.vi-step::after { content: ""; position: absolute; right: 17px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border: solid rgba(13, 39, 68, .35); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s var(--spring), border-color .2s; }
.vi-step:hover, button.vi-step:hover { transform: none; background: rgba(28, 69, 135, .05); box-shadow: none; }
button.vi-step:hover::after { transform: translateX(2px) rotate(45deg); border-color: var(--navy); }
.vintro .vi-step:focus-visible { outline: none; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--navy); }
.vi-ico, .vi-step .vi-ico, button.vi-step .vi-ico { width: 38px; height: 38px; border-radius: 12px; background: #E3EAF5; color: var(--navy); box-shadow: inset 0 0 0 1px rgba(28, 69, 135, .14); }
.vi-ico > .ic { width: 19px; height: 19px; stroke-width: 2.2; }
.vi-steps li:first-child .vi-ico { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.vi-steps button.vi-person .vi-ico { background: var(--brass); color: var(--deep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.vi-n { left: auto; right: -5px; top: -5px; width: 17px; height: 17px; background: var(--deep); color: var(--peach-l); font: 800 10px/17px var(--body); box-shadow: 0 0 0 2px #fff; }
.vi-t b { font: 700 16px/1.22 var(--body); color: var(--ink-0); }
.vi-t small { margin-top: 2px; font: 400 13.5px/1.35 var(--body); color: var(--ink-3); opacity: 1; }

/* all aboard, and the quieter ways out */
.vi-start { min-height: 52px; margin: 0; padding: 12px 20px; gap: 8px; border-radius: 16px; font: 900 20px/1 var(--disp);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 var(--peach), 0 14px 26px -14px rgba(13, 39, 68, .9); }
.vi-start .ic { width: 19px; height: 19px; stroke-width: 2.6; transition: transform .2s var(--spring); }
.vi-start:hover { transform: none; filter: brightness(1.08); }
.vi-start:hover .ic { transform: translateX(3px); }
.vi-type { margin: -4px 0 -6px; padding: 8px 14px; border-radius: 999px; color: var(--navy); font: 700 15px/1.2 var(--body); text-decoration: none; }
.vi-type:hover { text-decoration: underline; text-underline-offset: 3px; }
.vi-note { max-width: 36ch; align-self: center; font: 400 13px/1.45 var(--body); color: var(--ink-3); }

@media (max-width: 480px) {
  .stage, :host([data-theme="dark"]) .stage { margin: 0; padding-left: 15px; }
  .say { width: auto; }
  .say h3, .say h3 em { font-size: 21px; }
  .caption { width: auto; font-size: 13.5px; }
}
@media (max-width: 480px) and (max-height: 700px) {
  :host, :host([data-theme="dark"]) { --hero-h: 170px; --hero-r: -18px; }
  .say h3 em { font-size: 21px; }
  .caption { font-size: 13.5px; }
}
@media (max-width: 384px) {
  :host, :host([data-theme="dark"]) { --pw: 116px; --hero-h: 166px; --hero-r: -22px; }
  .say h3, .say h3 em { font-size: 20px; }
  .caption { margin-right: 11px; font-size: 13px; }
  .howto { gap: 4px; padding: 9px 10px 7px; font-size: 12px; }
  .how-b { gap: 4px; padding: 5px 9px 5px 7px; }
  .how-b .ic { width: 13px; height: 13px; }
  .vi-t b { font-size: 15px; }
}
@media (max-width: 350px) {
  .how-k { display: none; }
}
@media (min-width: 481px) and (max-height: 780px) {
  :host, :host([data-theme="dark"]) { --hero-h: 178px; }
  .say h3 em { font-size: 22px; }
}
@media (max-height: 500px) {
  :host, :host([data-theme="dark"]) { --hero-h: 150px; --hero-r: -14px; --bow: 30px; --pw: 112px; }
  .stage, :host([data-theme="dark"]) .stage { margin: 0; padding: 12px 0 12px 16px; min-height: 160px; }
  .say h3, .say h3 em { font-size: 20px; }
  .caption { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .more-w::before, .rl-pic, .rl-snd:not(.on), .stage .fx.back i:nth-child(1) { animation: none; }
}
