/* Sunbird Lanka Tours – site styles */
:root {
  --blue: #1d75bb;
  --blue-dark: #155c94;
  --ink: #113d48;
  --ink-deep: #0c2c34;
  --text: #4a6170;
  --muted: #5b7383;
  --mist: #e9f6f9;
  --smoke: #f3f4f6;
  --line: #e1e4e5;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 61, 72, .08);
  --title: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 16px/1.7 var(--body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
/* photos fade in as they arrive (site.js marks the ones still loading when the page starts) */
img.img-wait { opacity: 0 !important; }
img.img-in { animation: img-in .8s cubic-bezier(.25, .6, .3, 1); }
@keyframes img-in { from { opacity: 0; } }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4, h5 { font-family: var(--title); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
/* big titles in the serif (it has one weight, so no bold), everything smaller in the clean sans */
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.25rem; }
h1, h2, h3, h4, blockquote, figcaption, .th-tag, .dh-tag, .pm-tag,
.kicker, .ci-kicker, .hh-kicker, .tw-kicker, .ma-kicker, .sx-k, .ft-k { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); font-weight: 600; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.brand { overflow: visible; }   /* logos that reach the edge of their box (Facebook's circle) keep their soft edge */
/* page column: wide on big screens; running text keeps a comfortable line length (--measure) */
.wrap { max-width: 1760px; margin: 0 auto; padding: 0 clamp(20px, 6vw - 40px, 72px); }
:root { --measure: 52rem; }
.narrow > .wrap, .wrap.narrow { max-width: 840px; }
.sr, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.kicker { font: 600 .74rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin: 0 0 1em; }

/* ---------- buttons. Two kinds only, the same on every page:
   - the main action ("btn gold": plan, book, enquire, send) is the yellow "sun pill": a logo-blue sun at its end
     holds the arrow; pointing at it, the sun spreads to fill the whole button and the arrow turns
   - everything else is a quiet outline pill ("btn"; "btn ghost" on photos; "btn pill" adds a dashed arrow) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: .5em 1.6em;
  background: transparent; color: #1f3a4a; border: 1px solid rgba(31, 58, 74, .5); border-radius: 48px;
  font: 600 .95rem/1.2 var(--title); text-align: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--brand-blue, #1f74ba); border-color: var(--brand-blue, #1f74ba); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--brand-sky, #29abe2); outline-offset: 3px; }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn.ghost:hover { background: #fff; border-color: #fff; color: #1f3a4a; }
.btn.small { min-height: 40px; padding: .4em 1.2em; font-size: .85rem; }
.btn.block { display: flex; width: 100%; margin-top: .6em; }
.btn:disabled { opacity: .6; cursor: wait; }

/* the sun pill */
.btn.gold { --sun: 40px; --edge: 6px; position: relative; isolation: isolate; overflow: hidden; gap: 16px; justify-content: space-between;
  min-height: calc(var(--sun) + var(--edge) * 2); padding: var(--edge) var(--edge) var(--edge) 1.55em; border: 0;
  background: var(--brand-yellow, #fbdc03); color: var(--brand-navy, #0c3460); font-weight: 700; box-shadow: none;
  transition: color .4s ease, transform .2s ease, background-color 0s; }
.btn.gold > svg { display: none; }   /* the sun carries the arrow */
/* the sun: a logo-blue disc, cut from a layer behind the words so that it can spread over the whole button */
.btn.gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand-sky, #29abe2);
  clip-path: circle(calc(var(--sun) / 2) at calc(100% - var(--edge) - var(--sun) / 2) 50%);
  transition: clip-path .6s cubic-bezier(.2, .7, .2, 1), background-color .45s ease; }
/* the arrow on the sun */
.btn.gold::after { content: ""; flex: none; width: var(--sun); height: var(--sun); border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 46% no-repeat;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
/* once the sun has covered the button, the button's own colour turns to the sun's too: otherwise a hair of yellow
   showed round the rounded edge, where the edge's soft pixels mix the sun with the yellow under it. Pointing away,
   the yellow comes back at once, before the sun shrinks off it. */
.btn.gold:hover, .btn.gold:focus-visible { background: var(--sun-fill, var(--brand-blue, #1f74ba)); color: #fff;
  transition: color .4s ease, transform .2s ease, background-color 0s .42s; }
/* as it spreads, the light-blue sun deepens to the logo blue so that white words read clearly on it */
.btn.gold:hover::before, .btn.gold:focus-visible::before { background: var(--sun-fill, var(--brand-blue, #1f74ba)); clip-path: circle(160% at calc(100% - var(--edge) - var(--sun) / 2) 50%); }
.btn.gold:hover::after, .btn.gold:focus-visible::after { transform: rotate(-45deg); }
.btn.gold:active { transform: scale(.98); }
.btn.gold.small { --sun: 32px; --edge: 4px; gap: 12px; padding-left: 1.2em; }
/* the blue sun pill ("btn gold blue"): the way into the tour finder, the reverse of "Plan my trip": a logo-blue pill
   with white words and a yellow sun holding a navy arrow; on hover the yellow spreads and the words turn navy */
.btn.gold.blue { background: var(--brand-blue, #1f74ba); color: #fff; }
.btn.gold.blue::before { background: var(--brand-yellow, #fbdc03); }
.btn.gold.blue::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c3460' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.btn.gold.blue:hover, .btn.gold.blue:focus-visible { background: var(--brand-yellow, #fbdc03); color: var(--brand-navy, #0c3460); }
.btn.gold.blue:hover::before, .btn.gold.blue:focus-visible::before { background: var(--brand-yellow, #fbdc03); }
/* on a logo-blue ground (the blue band, the footer's blue half) the spreading sun turns white instead, with logo-blue
   words and arrow, or the whole button would melt into the blue behind it; outline buttons there fill white too */
.band.blue, .ft-talk { --sun-fill: #fff; }
:is(.band.blue, .ft-talk) .btn.gold:is(:hover, :focus-visible) { color: var(--brand-blue, #1f74ba); }
:is(.band.blue, .ft-talk) .btn.gold:is(:hover, :focus-visible)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f74ba' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
:is(.band.blue, .ft-talk) .btn:not(.gold):hover { background: #fff; border-color: #fff; color: var(--brand-blue, #1f74ba); }
@media (prefers-reduced-motion: reduce) { .btn.gold, .btn.gold::before, .btn.gold::after { transition: none; } }

/* ---------- header: the logo, the menu words in the middle, WhatsApp and the language on the right, then "Plan my
   trip". Each menu word opens a sheet under the header (build.py nav, site.js): numbered lines in the big serif on the
   left, and on the right a photo that follows the line you point at. A thin line under the menu words glides to the
   word you point at and rests under the section you are in. While a sheet is open the header takes the sheet's paper
   colour, so the two read as one piece, and the page behind dims a little. */
:root { --paper: #fbfaf7; --hh: 84px; --glide: cubic-bezier(.22, .8, .2, 1); }
.site-header { position: sticky; top: 0; z-index: 50; background-color: var(--white); transition: background-color .35s ease, box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.site-header > .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--hh); }
.logo { position: relative; flex: none; }
.logo img { width: 170px; height: auto; }
/* the white logo lies over the colour one; over a photo the colour one is see-through (not hidden: the opening
   screen lands on whichever logo is showing, hello.js) */
.logo .logo-light { position: absolute; left: 0; top: 0; display: none; }
.site-header.mx .logo img { transition: opacity .35s ease; }
.nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav > ul { list-style: none; display: flex; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav .top { display: block; padding: 30px 15px; font: 600 .95rem/24px var(--title); color: #1f3a4a; white-space: nowrap; transition: color .3s ease; }
.nav .top:hover { color: var(--brand-blue); }
.nav-ink { position: absolute; left: 0; top: calc(50% + 15px); width: 100px; height: 2px; border-radius: 2px; background: var(--brand-blue);
  transform-origin: 0 50%; opacity: 0; pointer-events: none; transition: transform .5s var(--glide), opacity .3s ease, background-color .35s ease; }
.nav-ink.on { opacity: 1; }
/* even steps on the right: WhatsApp to the globe is the same 30px as "EN" to "Plan my trip" (the words' 20px gap
   plus the language button's 10px inside); laptops without "EN" and phones set their own below */
.hd-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.hd-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 42px; height: 42px; padding: 0 10px;
  border-radius: 21px; color: #1f3a4a; font: 700 .74rem/1 var(--title); letter-spacing: .08em; transition: background-color .25s ease, color .35s ease; }
.hd-ic svg { width: 20px; height: 20px; stroke-width: 1.6; }
.hd-wa svg { width: 18px; height: 18px; }   /* the solid WhatsApp logo fills its whole box: a little smaller looks the same size as the thin globe */
.hd-ic:hover, .lang:focus-within { background-color: rgba(31, 116, 186, .08); color: var(--brand-blue); }
.lang:has(select:focus-visible) { outline: 2px solid var(--brand-sky); outline-offset: 2px; }
/* the language list is GTranslate's own select, lying unseen over the globe, so a click opens it */
.lang .gtranslate_wrapper { position: absolute; inset: 0; min-height: 0; }
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; padding: 0; }
.lang option { color: #111; }
.sub-toggle, .nav-toggle, .nav-foot, .mega-bg { display: none; }
.btn.header-cta { flex: none; --sun: 34px; --edge: 5px; gap: 12px; padding-left: 1.3em; }
.mega-scrim { position: fixed; inset: 0; z-index: 49; background: rgba(9, 28, 36, .3); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .65s ease, visibility 0s .65s; }
.mega-scrim.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }

@media (min-width: 901px) {
  /* one paper background under all the sheets; its height follows the open sheet, so it grows and shrinks between them */
  .mega-bg { display: block; position: absolute; left: 0; right: 0; top: 100%; height: 0; overflow: hidden; background: var(--paper); pointer-events: none;
    box-shadow: 0 50px 60px -40px rgba(9, 28, 36, 0); transition: height .55s var(--glide), box-shadow .45s ease; }
  .mega-bg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(17, 61, 72, .09); }
  .site-header.is-open .mega-bg { box-shadow: 0 50px 60px -40px rgba(9, 28, 36, .28); }
  /* a sheet waits out of sight, then comes in from the side of the word you came from (--mdx) or drops in when
     nothing was open (--mdy); the one you leave slides out the other way ("was") */
  .mega-pg { position: absolute; left: 0; right: 0; top: 100%; z-index: 1; visibility: hidden; opacity: 0; pointer-events: none;
    transform: translate3d(var(--mdx, 0px), var(--mdy, 0px), 0); }
  .has-sub.on > .mega-pg { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition: opacity .4s ease .05s, transform .6s var(--glide), clip-path .6s var(--glide); }
  .has-sub.was > .mega-pg { transform: translate3d(calc(var(--mdx, 0px) * -1), 0, 0); transition: opacity .2s ease, transform .4s ease, visibility 0s .4s; }
  /* closing (scrolling, the pointer leaving, Esc): the paper rolls up like a blind on one even curve, and the sheet
     goes up with it, cut off at the paper's lower edge, so nothing snaps away. The cut (clip-path) rests well
     outside the sheet while it is open. */
  .mega-pg { clip-path: inset(-40px -40px -40px -40px); }
  .site-header.closing .mega-bg { transition: height .7s cubic-bezier(.6, 0, .3, 1), box-shadow .6s ease; }
  .site-header.closing .has-sub.was > .mega-pg { clip-path: inset(-40px -40px 100% -40px); transform: translate3d(0, -28px, 0); opacity: 0;
    transition: clip-path .7s cubic-bezier(.6, 0, .3, 1), transform .7s cubic-bezier(.6, 0, .3, 1), opacity .45s ease .2s, visibility 0s .7s; }
  .mp-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 112px);
    padding-top: clamp(26px, 3vw, 40px); padding-bottom: clamp(26px, 3vw, 36px); }
  .mp-in:has(.mp-ph.tall) { grid-template-columns: minmax(0, 1fr) clamp(240px, 22vw, 340px); }
  .mp-list { grid-column: 1; list-style: none; margin: 0; padding: 0; }
  .mp-list > li { margin: 0; opacity: 0; transform: translate3d(0, 10px, 0); }
  .mp-list > li + li { border-top: 1px solid rgba(17, 61, 72, .1); }
  .has-sub.on .mp-list > li { opacity: 1; transform: none;
    transition: opacity .5s ease calc(.1s + var(--i) * .04s), transform .7s var(--glide) calc(.1s + var(--i) * .04s); }
  .has-sub.was .mp-list > li { opacity: 1; transform: none; }
  .mp-row { display: grid; grid-template-columns: 2.6em auto minmax(0, 1fr) 36px; align-items: center; column-gap: 16px; padding: 11px 0; color: #1f3a4a; }
  .mp-row:hover { color: #1f3a4a; }
  .mp-row:focus-visible { outline: 2px solid var(--brand-sky); outline-offset: 2px; border-radius: 4px; }
  .mp-n { font: 500 .72rem/1 var(--body); letter-spacing: .1em; color: #8a9ea8; font-variant-numeric: tabular-nums; }
  .mp-t { font: 400 clamp(1.55rem, 2vw, 2.1rem)/1.15 var(--serif); white-space: nowrap; transition: transform .5s var(--glide), color .3s ease; }
  .mp-d { font: 400 .84rem/1.4 var(--body); color: #5b7383; text-align: right; }
  .mp-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(31, 58, 74, .22); color: #1f3a4a;
    transition: background-color .35s ease, border-color .35s ease, color .35s ease; }
  .mp-go svg { width: 15px; height: 15px; transition: transform .5s var(--glide); }
  .mp-row.on .mp-t { transform: translateX(8px); color: var(--brand-blue); }
  .mp-row.on .mp-go { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
  .mp-row.on .mp-go svg { transform: rotate(-45deg); }
  .mp-ph { grid-column: 2; grid-row: 1 / 3; position: relative; overflow: hidden; min-height: 300px; border-radius: 6px; background: #ebe6da; }
  .mp-ph img, .mp-ph i { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
    transition: opacity .6s ease, transform 1.4s var(--glide); }
  .mp-ph img.on { opacity: 1; transform: none; }
  .mp-foot { grid-column: 1; align-self: end; display: flex; align-items: center; gap: 24px; padding-top: 22px; }
  .btn.mp-cta { --sun: 34px; --edge: 5px; gap: 14px; padding-left: 1.4em; font-size: .92rem; }
  .mp-all { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid rgba(31, 58, 74, .3);
    font: 600 .9rem/1.2 var(--title); color: #1f3a4a; transition: color .25s, border-color .25s; }
  .mp-all svg { width: 15px; height: 15px; transition: transform .35s ease; }
  .mp-all:hover { color: var(--brand-blue); border-color: currentColor; }
  .mp-all:hover svg { transform: translateX(4px); }
  .mp-wa { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: #5b7383; }
  .mp-wa svg { width: 17px; height: 17px; }
  .mp-wa:hover { color: var(--brand-blue); }
}
/* laptops: a little tighter, and the notes go under the names */
@media (min-width: 901px) and (max-width: 1240px) {
  .site-header > .wrap { gap: 12px; }
  .nav .top { padding-left: 11px; padding-right: 11px; }
  .lang .lang-code { display: none; }
  .hd-tools { gap: 0; }   /* WhatsApp to the globe 23px, the same as the globe to "Plan my trip" */
  .mp-row { grid-template-columns: 2.4em minmax(0, 1fr) 36px; row-gap: 3px; }
  .mp-n { grid-row: 1 / 3; }
  .mp-d { grid-column: 2; grid-row: 2; text-align: left; }
  .mp-go { grid-column: 3; grid-row: 1 / 3; }
}

/* phones and tablets: the menu button opens the menu over the page, the menu words in the big serif, and the + beside
   a word folds its lines open */
@media (max-width: 900px) {
  .btn.header-cta, .nav-ink { display: none; }
  .hd-tools { margin-left: auto; gap: 2px; }
  .nav-toggle { display: inline-flex; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 50%; background: none; color: #1f3a4a;
    align-items: center; justify-content: center; cursor: pointer; transition: color .35s ease; }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 1.5px; border-radius: 1px; background-color: currentColor; position: relative;
    transition: transform .4s var(--glide), top .4s var(--glide), background-color .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .nav-open .bars { background-color: transparent; }
  .nav-open .bars::before { top: 0; transform: rotate(45deg); }
  .nav-open .bars::after { top: 0; transform: rotate(-45deg); }
  .nav { position: fixed; left: 0; right: 0; top: var(--hh); bottom: 0; display: block; margin: 0; padding: 4px clamp(20px, 6vw, 48px) 40px;
    overflow-y: auto; overscroll-behavior: contain; background: var(--paper); opacity: 0; visibility: hidden; transform: translate3d(0, -12px, 0);
    transition: opacity .3s ease, transform .5s var(--glide), visibility 0s .5s; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .5s var(--glide); }
  .nav > ul { display: block; }
  .nav > ul > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(17, 61, 72, .1); }
  .nav > ul > li, .nav-foot { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .25s ease, transform .25s ease; }
  .nav-open .nav > ul > li, .nav-open .nav-foot { opacity: 1; transform: none;
    transition: opacity .5s ease calc(.06s + var(--n, 0) * .05s), transform .6s var(--glide) calc(.06s + var(--n, 0) * .05s); }
  .nav .top { flex: 1; padding: 15px 0; font: 400 2.1rem/1.1 var(--serif); }
  .sub-toggle { display: block; position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: #1f3a4a; cursor: pointer; }
  .sub-toggle::before, .sub-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px;
    background: currentColor; transition: transform .4s var(--glide); }
  .sub-toggle::after { transform: rotate(90deg); }
  .open > .sub-toggle::after { transform: rotate(0deg); }
  .mega-pg { flex-basis: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--glide); }
  .has-sub.open > .mega-pg { grid-template-rows: 1fr; }
  .mp-clip { min-height: 0; overflow: hidden; }
  .mp-in.wrap { padding: 0 0 14px; }
  .mp-list { list-style: none; margin: 0; padding: 0; }
  .mp-list > li { margin: 0; }
  .mp-row { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); padding: 7px 0; color: #1f3a4a; }
  .mp-n { grid-row: 1 / 3; padding-top: .7em; font: 500 .7rem/1 var(--body); letter-spacing: .1em; color: #8a9ea8; }
  .mp-t { font: 400 1.35rem/1.2 var(--serif); }
  .mp-d { font-size: .82rem; line-height: 1.4; color: #5b7383; }
  .mp-go, .mp-ph, .mp-wa { display: none; }
  .mp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-left: 2.4em; }
  .btn.mp-cta { --sun: 32px; --edge: 4px; gap: 12px; margin-top: 8px; padding-left: 1.2em; font-size: .88rem; }
  .mp-all { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 4px 0; font: 600 .88rem/1.2 var(--title); color: var(--brand-blue); }
  .mp-all svg { width: 14px; height: 14px; }
  .nav-foot { --n: 5; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 28px; }
  .nf-line { display: inline-flex; align-items: center; gap: 10px; color: #1f3a4a; font-size: .95rem; }
  .nf-line svg { width: 19px; height: 19px; color: var(--brand-blue); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 760px) {
  :root { --hh: 72px; }
  .logo img { width: 140px; }
  .hd-ic { padding: 0 8px; }
}

/* ---------- sections */
.band { padding: 88px 0; }
.band.mist { background: var(--mist); }
.band.blue { background: var(--blue); color: #eaf4fb; }
.band.blue h2, .band.blue h3, .band.blue strong { color: var(--white); }
.band.flush { padding: 0; }
.band .wrap > .kicker, .band .wrap > h2 { text-align: center; }
.band .wrap > :is(p, ul, ol, h3, blockquote) { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.band .wrap > h2 + p { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.band .wrap > p:last-child:has(.btn) { text-align: center; margin-top: 2.2em; }
.band.narrow .wrap > h2, .band.narrow .wrap > .kicker { text-align: left; }
.band.narrow .wrap > h2 + p { text-align: left; margin-left: 0; }
.band ul li::marker { color: var(--blue); }
@media (max-width: 760px) { .band { padding: 60px 0; } }

/* ---------- home slider */
.slider { position: relative; height: min(86vh, 760px); min-height: 520px; background: var(--ink); overflow: hidden; }
.slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,30,36,.72) 0%, rgba(7,30,36,.35) 60%, rgba(7,30,36,.15) 100%); }
.slide.active { opacity: 1; z-index: 1; }
.slide .wrap { position: relative; width: 100%; color: var(--white); }
.slide .kicker { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.slide h1, .slide h2 { color: var(--white); font-size: clamp(2.3rem, 6vw, 4.6rem); max-width: 760px; margin-bottom: .5em; }
.slide-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.dots { position: absolute; z-index: 2; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; padding: 0; cursor: pointer; }
.dots button.active { background: var(--white); }

/* ---------- page hero */
.page-hero { position: relative; background: var(--ink) center/cover no-repeat; color: var(--white); text-align: center; padding: 130px 0 90px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(7,30,36,.55); }
.page-hero.plain::before { background: linear-gradient(135deg, var(--ink), var(--blue-dark)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--white); max-width: 900px; margin: 0 auto .4em; }
.page-hero .kicker { color: var(--white); }
.crumbs { font-size: .92rem; color: #dbe7ea; }
.crumbs a { color: var(--white); }
.crumbs span { margin: 0 4px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 0 0 1.4em; font-weight: 500; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .page-hero { padding: 90px 0 60px; } }

/* ---------- grids & cards */
.grid { display: grid; gap: 26px; margin: 2.2em 0 0; }
/* never more than 3 (or 4) cards a row, however wide the screen */
.cards3 { grid-template-columns: repeat(auto-fill, minmax(max(290px, calc((100% - 53px) / 3)), 1fr)); }
.cards4 { grid-template-columns: repeat(auto-fill, minmax(max(240px, calc((100% - 79px) / 4)), 1fr)); }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(17,61,72,.14); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--smoke); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.chip { position: absolute; left: 14px; top: 14px; background: var(--white); color: var(--ink); border-radius: 30px; padding: 3px 12px; font: 600 .8rem var(--title); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { font-size: .95rem; color: var(--muted); }
.card-type { font-size: .72rem !important; text-transform: uppercase; letter-spacing: .16em; color: var(--blue) !important; font-weight: 600; margin-bottom: .4em; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 .92rem var(--title); color: var(--blue); }
.cats { grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 16px; background: linear-gradient(transparent, rgba(7,30,36,.85)); color: var(--white); font: 700 1.05rem var(--title); text-align: center; }
/* category pages */
.cat-intro { max-width: var(--measure); margin: 0 auto; }
.cat-intro p:first-child { font-size: 1.12rem; color: var(--ink); }
.tour-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1.2em; }
.tour-cats a { border: 1px solid var(--line); border-radius: 30px; padding: 4px 12px; background: var(--white); color: var(--ink); font: 600 .8rem var(--title); }
.tour-cats a:hover { border-color: var(--blue); color: var(--blue); }
.place-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; display: block; }
.place-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.place-card:hover img { transform: scale(1.06); }
.pc-text { position: absolute; inset: auto 0 0 0; padding: 50px 18px 18px; background: linear-gradient(transparent, rgba(7,30,36,.85)); color: var(--white); }
.pc-text strong { display: block; color: var(--white); font: 400 1.75rem/1.1 var(--serif); }
.pc-text small { font-size: .88rem; opacity: .9; }

/* ---------- galleries (Markdown lines made only of images) */
.gallery { display: grid; gap: 14px; margin: 1.4em 0 1.8em; grid-template-columns: repeat(3, 1fr); }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.gallery.n1 img { aspect-ratio: auto; max-height: 520px; }
.gallery figcaption { font: 600 .92rem var(--title); color: var(--ink); margin-top: 8px; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery.n1 { grid-template-columns: 1fr; } }

/* ---------- stats, events, quotes, partners */
.stats { background: var(--blue); color: var(--white); padding: 56px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; color: var(--white); font: 400 clamp(2.6rem, 4.8vw, 3.8rem)/1.05 var(--serif); }
.stats span { opacity: .92; }
@media (max-width: 700px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }
.events { grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1000px) { .events { grid-template-columns: repeat(2, 1fr); } }
.event { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); background: center/cover; overflow: hidden; display: flex; align-items: flex-end; }
.event span { position: relative; width: 100%; padding: 50px 16px 16px; background: linear-gradient(transparent, rgba(7,30,36,.85)); color: #e7f1f4; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .9rem; }
.event strong { width: 100%; color: var(--white); font: 700 1.1rem var(--title); }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin-top: 2.2em; }
.quote { scroll-snap-align: start; margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 18px; font-size: .98rem; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img, .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--blue); color: var(--white); font-weight: 700; }
.quote figcaption span { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 40px; margin-top: 2.6em; }
.partners img { height: 56px; width: auto; object-fit: contain; filter: grayscale(.3); }

/* ---------- destinations page */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 2em 0 1em; }
.jump a { border: 1px solid var(--line); border-radius: 30px; padding: 6px 16px; color: var(--ink); font: 600 .9rem var(--title); background: var(--white); }
.jump a:hover { border-color: var(--blue); color: var(--blue); }
.place { border-top: 1px solid var(--line); padding: 56px 0 30px; max-width: 1200px; margin: 0 auto; }
.place header h2 { text-align: left !important; }
.place .gallery { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .place .gallery { grid-template-columns: repeat(2, 1fr); } }
.place .top { font-size: .9rem; }
.place-body > :is(p, ul, ol) { max-width: var(--measure); }

/* ---------- vehicles & contact cards */
.vehicles { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.vehicle { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.vehicle dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: .92rem; }
.vehicle dt { color: var(--muted); }
.vehicle dd { margin: 0; color: var(--ink); font-weight: 500; }
.vehicle .price { font: 700 1.1rem var(--title); color: var(--blue); }
.vehicle .btn { margin-top: auto; align-self: flex-start; }
.contact-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ccard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; text-align: center; }
.ccard > svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--mist); color: var(--blue); margin-bottom: 10px; }
.map { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- forms */
.plan-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 920px; margin: 2em auto 0; }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.fgrid label { display: flex; flex-direction: column; gap: 6px; font: 600 .88rem var(--title); color: var(--ink); }
.fgrid .wide { grid-column: 1 / -1; }
.fgrid input, .fgrid select, .fgrid textarea { font: 400 1rem var(--body); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: var(--smoke); width: 100%; }
.fgrid input:focus, .fgrid select:focus, .fgrid textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: var(--white); }
.fgrid .invalid { border-color: #c62828; background: #fdecec; }
.hp { position: absolute; left: -5000px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 22px 0 0; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-weight: 500; }
.form-status.ok { color: #17643a; }
.form-status.err { color: #b42318; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } .plan-form { padding: 22px; } }

/* ---------- tour pages */
/* text column, kept in the middle on wide screens (with room on the right, where a side box used to be) */
.tour-layout { display: grid; grid-template-columns: minmax(0, var(--measure)) 340px; justify-content: center; gap: clamp(40px, 5vw, 90px); align-items: start; }
@media (max-width: 960px) { .tour-layout { grid-template-columns: 1fr; } }
.prose > p:first-child { font-size: 1.08rem; color: var(--ink); }
.prose :is(p, ul, ol) { max-width: var(--measure); }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.8rem, 1.2rem + 1.25vw, 2.3rem); }
.prose .gallery.n1 img { max-height: 460px; }

/* the first screen (build.py tour_hero): the photo fills the screen under the header; the tagline, the name and
   the route sit in the middle with the two ways to ask, and the facts run along the bottom. The photo drifts
   slower than the page as you scroll (site.js). */
.tour-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh; margin-top: -72px; padding-top: 72px; background: #0b1824; color: #fff; }
.th-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.th-bg img { width: 100%; height: 116%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(var(--pz, 1));
  animation: th-zoom 2.4s cubic-bezier(.2, .7, .2, 1) both; }
/* darkens as the page scrolls on (site.js), so the words below read over it */
.th-dim { position: absolute; inset: 0; background: #08151d; opacity: 0; }
@keyframes th-zoom { from { scale: 1.1; } }
.th-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 46% at 50% 50%, rgba(6, 14, 22, .34), transparent),
    linear-gradient(180deg, rgba(6, 14, 22, .62) 0%, rgba(6, 14, 22, .16) 22%, rgba(6, 14, 22, .22) 52%, rgba(6, 14, 22, .74) 80%, rgba(6, 14, 22, .9) 100%); }
/* the back pill, the middle and the facts row all use the page's full column, so their left edges line up with
   the logo (in a column of boxes like this one, a box would otherwise shrink to its contents and sit centred) */
.tour-hero > .wrap { width: 100%; }
.th-top { padding-top: 18px; }
.th-back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 14px; border-radius: 40px;
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font: 500 .84rem/1.2 var(--body); transition: background .25s, color .25s; }
.th-back svg { width: 16px; height: 16px; transform: scaleX(-1); }
.th-back:hover { background: #fff; color: #1f3a4a; }
.th-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 36px; padding-bottom: 44px; text-align: center; }
.th-tag { max-width: 40rem; margin: 0 0 .5em; font: italic 400 clamp(1.2rem, 2vw, 1.7rem)/1.3 var(--serif); color: rgba(255, 255, 255, .92); text-shadow: 0 1px 16px rgba(0, 0, 0, .35); }
.th-title { max-width: 16ch; margin: 0 0 .34em; color: #fff; font: 400 clamp(3rem, min(8.2vw, 13vh), 7.4rem)/.94 var(--serif);
  letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 40px rgba(0, 0, 0, .3); }
.th-route { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; max-width: 52rem; margin: 0 0 32px;
  font: 500 .95rem/1.5 var(--body); color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.th-route svg { flex: none; width: 17px; height: 17px; color: var(--brand-yellow); }
.th-route i { font-style: normal; color: rgba(255, 255, 255, .5); }
.th-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.th-btns .btn.ghost { background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.th-btns .btn.ghost svg { width: 18px; height: 18px; }
.th-btns .btn.ghost:hover { background: #fff; }
/* the facts along the bottom, between thin lines, and a round "Day by day" arrow down to the itinerary */
.th-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 30px; padding: 24px 0 30px; border-top: 1px solid rgba(255, 255, 255, .2); }
.th-facts { display: flex; flex-wrap: wrap; gap: 18px 0; margin: 0; }
.th-fact { padding: 0 clamp(18px, 2.4vw, 40px); border-left: 1px solid rgba(255, 255, 255, .2); }
.th-fact:first-child { padding-left: 0; border-left: 0; }
.th-fact dt { margin: 0 0 9px; font: 600 .7rem/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.th-fact dd { margin: 0; font: 400 clamp(1.35rem, 1.9vw, 1.8rem)/1.1 var(--serif); color: #fff; }
.th-fact dd a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color .25s; }
.th-fact dd a:hover { text-decoration-color: var(--brand-yellow); }
.th-ms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; width: 172px; margin-top: 11px; }
.th-ms i { display: grid; place-items: center; height: 16px; border-radius: 2px; font: 600 .54rem/1 var(--body); font-style: normal; color: rgba(31, 58, 74, .8); }
.th-ms .G { background: #f2c75c; }
.th-ms .M { background: #ddd5c2; }
.th-ms .R { background: #9dbedd; }
.th-down { display: inline-flex; flex: none; align-items: center; gap: 14px; color: #fff; font: 600 .7rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.th-down i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); transition: background .25s, color .25s; }
.th-down svg { width: 18px; height: 18px; transform: rotate(90deg); animation: th-bob 2.4s ease-in-out infinite; }
@keyframes th-bob { 50% { translate: 0 4px; } }
.th-down:hover { color: #fff; }
.th-down:hover i { background: #fff; color: #1f3a4a; }
/* entrance (a little later when the page opens on the picture it was clicked from) */
.th-top, .th-in > *, .th-foot { animation: hh-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.th-in > :nth-child(1) { animation-delay: .1s; }
.th-in > :nth-child(2) { animation-delay: .2s; }
.th-in > :nth-child(3) { animation-delay: .32s; }
.th-in > :nth-child(4) { animation-delay: .44s; }
.th-foot { animation-delay: .58s; }
.arriving :is(.th-top, .th-in > *, .th-foot) { animation-delay: .7s; }
@media (min-width: 761px) { .tour-hero { margin-top: -84px; padding-top: 84px; } }
/* the same first screen on other pages (build.py screen_hero): the page's name, its facts (if it has any) and a round
   "scroll down" link. Longer names get a smaller size so they stay on two or three lines. */
.page-top .th-in { padding-bottom: 56px; }
.page-top .th-title { margin-bottom: 0; }
.page-top .th-title.mid { max-width: 15ch; font-size: clamp(2.7rem, min(6.8vw, 11vh), 6.2rem); }
.page-top .th-title.long { max-width: 21ch; font-size: clamp(2.2rem, min(5vw, 8.5vh), 4.6rem); line-height: 1.02; }
.th-down { margin-left: auto; }
body:has(.cb) .th-down { margin-right: 64px; }   /* clear of the chat button in the corner */
.th-end { display: block; }
@media (max-width: 760px) {
  .th-top { padding-top: 14px; }
  .th-in { padding-top: 28px; padding-bottom: 32px; }
  .th-route { font-size: .88rem; margin-bottom: 26px; }
  .th-btns { width: 100%; }
  .th-btns .btn { flex: 1 1 100%; }
  .th-foot { padding: 20px 0 24px; }
  .th-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 0; width: 100%; }
  .th-fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .th-fact:nth-child(even) { padding-right: 0; }
  .th-ms { width: 100%; max-width: 172px; }
  .th-down { display: none; }
  .th-foot.bare { display: none; }
  .page-top .th-in { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .th-bg img, .th-top, .th-in > *, .th-foot, .th-down svg { animation: none; }
}

/* under it, the opening words: on the left a small label and the map of the tour's route (it stays beside the
   text as you read), the text large on the right */
.tour-open { padding-top: clamp(64px, 8vw, 124px); }
.to-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 20px clamp(40px, 6vw, 110px); max-width: 1280px; align-items: start; }
.to-side { position: sticky; top: 110px; }
.to-k { display: flex; align-items: center; gap: 12px; margin: .9em 0 0; }
.to-k::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--brand-yellow); }
.to-text > p:first-child { margin-top: 0; font: 400 clamp(1.25rem, 1.75vw, 1.6rem)/1.6 var(--body); color: #1f3a4a; }
.to-text :is(p, ul, ol) { max-width: 46rem; }
@media (max-width: 860px) {
  .to-grid { grid-template-columns: 1fr; }
  .to-side { display: contents; }   /* phones: label, text, then the map */
  .to-k { margin: 0; }
  .tmap { order: 1; width: 100%; max-width: 420px; margin: 18px auto 0; }
}

/* the route map (build.py tour_map): the engraved island, a gold line through the stops with a navy edge, a
   dot and a name at each place. site.js adds .pre, then .in once it's on screen: the island fades up, the line
   draws itself from the start, and each place appears as the line reaches it. */
.tmap { max-width: 460px; margin: 26px 0 0; }
.tmap svg { display: block; width: 100%; height: auto; overflow: visible; }
.tm-edge, .tm-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tm-edge { stroke: #1f3a4a; stroke-width: 9; }
.tm-line { stroke: #f2c75c; stroke-width: 5.5; }
.tm-stop circle { fill: #1f3a4a; stroke: #fff; stroke-width: 3; }
.tm-stop.start circle { fill: var(--brand-sky); }
.tm-stop text, .tm-north text { font: 600 20px/1 var(--body); letter-spacing: 1.2px; fill: #1f3a4a;
  paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.tm-north path { fill: #1f3a4a; }
.tm-north text { font-size: 15px; stroke-width: 0; }
.tm-credit { margin: 10px 0 0; font-size: .7rem; line-height: 1.4; color: #8aa3b2; }
.tmap.pre .tm-art { opacity: 0; transition: opacity 1.2s ease; }
.tmap.pre :is(.tm-edge, .tm-line) { stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset 2.8s cubic-bezier(.45, .05, .25, 1) .6s; }
.tmap.pre .tm-stop { opacity: 0; transition: opacity .6s ease; transition-delay: calc(.6s + var(--d) * 2.8s); }
.tmap.pre.in .tm-art, .tmap.pre.in .tm-stop { opacity: 1; }
.tmap.pre.in :is(.tm-edge, .tm-line) { stroke-dashoffset: 0; }
/* ---------- tour pages: the itinerary, day by day (build.py day_by_day)
   One fold-out row per day, strung on a dotted route line with a stop for each day. On wide screens an
   arched photo stays beside the days and changes to the day you are on (site.js). */
.dbd { --dbd-bg: #f3f8fa; --dbd-line: #d9e5eb; --dbd-ink: #1f3a4a; --dbd-gap: clamp(16px, 2.2vw, 28px); background: var(--dbd-bg); }
.dbd-top { display: grid; gap: 18px; margin-bottom: clamp(26px, 4vw, 52px); }
.dbd-say h2 { margin: 0; color: var(--dbd-ink); }
.dbd-say .kicker { margin-bottom: .7em; }
.dbd-tools { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.dbd-tools p { margin: 0; }
/* the places on this trip, joined like stops on a line */
.dbd-route { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; max-width: 46rem; }
.dbd-route a { display: inline-flex; align-items: center; color: var(--dbd-ink); font: 600 .9rem/1.5 var(--title); }
.dbd-route a:hover { color: var(--brand-blue); }
.dbd-route a:not(:last-child)::after { content: ""; width: 22px; margin: 0 10px; border-top: 2px dotted #8fc6dd; }
@media (max-width: 600px) {
  .dbd-route a { font-size: .84rem; }
  .dbd-route a:not(:last-child)::after { width: 14px; margin: 0 7px; }
}
.dbd-all { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--dbd-ink); font: 600 .92rem var(--title); }
.dbd-all .day-plus { width: 34px; height: 34px; }
.dbd-all:hover .day-plus { border-color: var(--brand-sky); }
.dbd-all[aria-pressed="true"] .day-plus { background: var(--dbd-ink); border-color: var(--dbd-ink); }
.dbd-all[aria-pressed="true"] .day-plus::before, .dbd-all[aria-pressed="true"] .day-plus::after { background: #fff; }
.dbd-all[aria-pressed="true"] .day-plus::after { transform: translate(-50%, -50%); }

/* one day */
.day { position: relative; }
.day::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; border-left: 2px dotted #a9d3e4; }  /* the route line */
.day:first-child::before { top: 40px; }
.day:last-child::before { bottom: auto; height: 40px; }
.day:only-child::before { display: none; }
.day::after { content: ""; position: absolute; left: calc(16px + var(--dbd-gap)); right: 0; bottom: 0; border-bottom: 1px solid var(--dbd-line); }
.day > summary { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: var(--dbd-gap); align-items: center;
  padding: 30px 0; cursor: pointer; list-style: none; }
.day > summary::-webkit-details-marker { display: none; }
.day > summary:focus-visible { outline: 2px solid var(--brand-sky); outline-offset: 2px; border-radius: 10px; }
/* the stop sits level with the "Day 4 · Kandy" line */
.day-stop { position: relative; z-index: 1; align-self: start; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%;
  background: var(--dbd-bg); border: 2px solid var(--brand-sky); transition: background .3s, box-shadow .3s; }
.day.on .day-stop, .day[open]:not(.closing) .day-stop { background: var(--brand-sky); box-shadow: 0 0 0 6px rgba(41, 171, 226, .16); }
.day-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.day-n { color: var(--brand-blue); font: 700 .74rem/20px var(--title); letter-spacing: .18em; text-transform: uppercase; }
.day-where { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; color: #4a6170; font: 500 .92rem/20px var(--body); }
.day-where svg { width: 15px; height: 15px; color: var(--brand-sky); }
.day-where i { display: inline-flex; color: #9db4c1; }
.day-where i svg { width: 14px; height: 14px; color: inherit; }
/* a place in a day's heading that has its own page: a link to it (build.py place_links) */
.day-place { color: inherit; text-decoration: underline; text-decoration-color: rgba(31, 116, 186, .35); text-decoration-thickness: 1px;
  text-underline-offset: 4px; transition: color .25s, text-decoration-color .25s; }
.day-place:hover { color: var(--brand-blue, #1f74ba); text-decoration-color: currentColor; }
.day-place:focus-visible { outline: 2px solid var(--brand-sky); outline-offset: 2px; border-radius: 2px; }
.day-title { margin: 10px 0 0; color: var(--dbd-ink); font: 400 clamp(1.8rem, 2.5vw, 2.6rem)/1.08 var(--serif); letter-spacing: -.005em;
  transition: color .25s; }
.day > summary:hover .day-title { color: var(--brand-blue); }
/* the round + that turns into a − */
.day-plus { position: relative; display: block; flex: none; width: 48px; height: 48px; border: 1px solid #c3d6e0; border-radius: 50%;
  transition: background .3s, border-color .3s; }
.day-plus::before, .day-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--dbd-ink);
  transform: translate(-50%, -50%); transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .3s; }
.day-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.day > summary:hover .day-plus { border-color: var(--brand-sky); }
.day[open]:not(.closing) > summary .day-plus { background: var(--dbd-ink); border-color: var(--dbd-ink); }
.day[open]:not(.closing) > summary .day-plus::before, .day[open]:not(.closing) > summary .day-plus::after { background: #fff; }
.day[open]:not(.closing) > summary .day-plus::after { transform: translate(-50%, -50%); }
/* what happens that day */
.day-body { overflow: hidden; }
.day-in { padding: 0 0 34px calc(16px + var(--dbd-gap)); }
.day-text ul { display: grid; gap: 10px; max-width: 42rem; margin: 0; padding: 0; list-style: none; }
.day-text li { position: relative; margin: 0; padding-left: 28px; color: #3e5563; line-height: 1.6; }
.day-text li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; border-top: 1.5px solid var(--brand-sky); }
.day-text p { margin: 18px 0 0; }
/* a day's own photos: each image is taller than its frame and drifts slower than the page (site.js sets --py) */
.day-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; max-width: 42rem; }
.day-pic { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--dbd-line); }
.day-pic img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; max-width: none; object-fit: cover;
  transform: translate3d(0, var(--py, 0%), 0); will-change: transform; }

/* the photo window beside the days (wide screens): every day's photo is a slide; site.js moves them up through
   the window as you scroll or open a day, while the picture inside each slide moves at half speed (parallax) */
.dbd-side { display: none; }
.dbd-window { position: relative; overflow: hidden; height: clamp(420px, calc(100vh - 170px), 780px); border-radius: 20px;
  background: #cfdde5; box-shadow: 0 30px 60px rgba(31, 58, 74, .14); isolation: isolate; }
.dbd-slide { position: absolute; inset: 0; overflow: hidden; transform: translate3d(0, 100%, 0); will-change: transform; }
.dbd-slide:first-child { transform: none; }
.dbd-slide::after { content: ""; position: absolute; inset: 0; background: #0c2c34; opacity: var(--dim, 0); }   /* the leaving photo darkens */
.dbd-slide img { position: absolute; left: 0; top: -18%; width: 100%; height: 136%; max-width: none; object-fit: cover;
  transform: translate3d(0, var(--py, 0%), 0); will-change: transform; }
/* caption and counter sit on the photo */
.dbd-window::after { content: ""; position: absolute; inset: auto 0 0; z-index: 1; height: 38%; pointer-events: none;
  background: linear-gradient(transparent, rgba(8, 30, 38, .62)); }
.dbd-cap, .dbd-count { position: absolute; z-index: 2; margin: 0; color: #fff; transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.dbd-cap { left: 28px; right: 28px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; }
.dbd-cap-n { font: 700 .74rem var(--title); letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.dbd-cap-w { font: 400 clamp(1.6rem, 2.2vw, 2.2rem)/1.1 var(--serif); text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.dbd-count { top: 22px; right: 24px; padding: 5px 12px; border-radius: 999px; background: rgba(8, 30, 38, .34);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 600 .78rem var(--title); letter-spacing: .08em; }
.dbd-count-n { color: var(--brand-yellow); }
.dbd-side.swapping .dbd-cap { opacity: 0; transform: translateY(8px); }
@media (min-width: 980px) {
  .dbd-top, .dbd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 120px); }
  .dbd-top { align-items: end; }
  .dbd-grid { display: grid; align-items: start; }
  .dbd-side { display: block; position: sticky; top: 112px; }
  /* the window stays put until the last day is over: a sticky box lets go when the end of its grid reaches it,
     so the days get room at the end until the last day's bottom has passed the reading line (45% down the
     screen, site.js readerAt) by the time the grid ends at the window's bottom (its top 112px + its height) */
  .dbd-grid:not(.solo) .dbd-days { padding-bottom: max(0px, calc(112px + clamp(420px, calc(100vh - 170px), 780px) - 45vh)); }
  /* the first photo is in the window; an open day shows its second one, wide */
  .dbd-grid:not(.solo) .day-pics { grid-template-columns: 1fr; }
  .dbd-grid:not(.solo) .day-pic:first-child { display: none; }
  .dbd-grid:not(.solo) .day-pic { aspect-ratio: 16 / 8; }
  .dbd-grid.solo .dbd-days { grid-column: 2; }
}
@media (max-width: 600px) {
  .day > summary { padding: 24px 0; }
  .day-plus { width: 40px; height: 40px; }
  .day-title { font-size: 1.65rem; }
  .day:first-child::before { top: 34px; }
  .day:last-child::before { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .dbd-cap, .dbd-count, .day-plus::before, .day-plus::after { transition: none; } }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--white); }
.faq summary { cursor: pointer; padding: 16px 20px; font: 600 1rem var(--title); color: var(--ink); list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 14px; }
.post-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

/* ---------- footer (build.py footer): "Talk to a person" on the left in logo blue, the links on the right on pale
   blue. Big screens: two halves side by side, edge to edge. Phones: they stack. */
.site-footer { font-size: .95rem; }
.ft { display: grid; grid-template-columns: minmax(0, 1fr); }
.ft-in { padding: clamp(56px, 7vw, 100px) clamp(20px, 4vw, 72px); }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft-talk { background: var(--brand-blue); color: #fff; }
.ft-logo { display: block; width: 170px; height: auto; margin: 0 0 clamp(36px, 4vw, 56px); }
.ft-k { margin: 0 0 14px; font: 600 .74rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: #eaf4fb; }
.ft-say { max-width: 30rem; margin: 0; font: 400 clamp(1.7rem, 2.5vw, 2.5rem)/1.12 var(--serif); color: #fff; }
.ft-say em { font-style: italic; }
.ft-wa { margin: 30px 0 0; }
.ft .ft-big { margin: 34px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.ft-big li { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.ft-big a { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: #fff; font: 400 clamp(1.35rem, 1.9vw, 1.8rem)/1.2 var(--serif);
  overflow-wrap: anywhere; transition: transform .4s var(--glide); }
.ft-big a:hover { color: #fff; transform: translateX(6px); }
.ft-big svg { width: 20px; height: 20px; color: #eaf4fb; }
.ft-more, .ft-where { margin: 18px 0 0; font-size: .88rem; line-height: 1.6; color: #eaf4fb; }
.ft-more a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.ft-more a:hover { color: #fff; border-color: #fff; }
.ft-where { display: flex; gap: 10px; align-items: flex-start; }
.ft-where svg { margin-top: .25em; }
.ft-links { background: #eef5f9; color: #1f3a4a; display: flex; }
.ft-links .ft-in { display: flex; flex-direction: column; width: 100%; }
.ft-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 40px clamp(24px, 3vw, 56px); }
.ft-h { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #d5e3ea; font: 600 .74rem/1.4 var(--body); letter-spacing: .22em;
  text-transform: uppercase; color: #5b7383; }
.ft-cols li { margin: 0; }
.ft-cols a { display: inline-block; padding: 5px 0; color: #1f3a4a; line-height: 1.45; transition: color .25s, transform .35s var(--glide); }
.ft-cols a:hover { color: var(--brand-blue); transform: translateX(4px); }
.ft-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: auto; padding-top: 56px; }
.ft-social { display: flex; gap: 10px; margin: 0; }
.ft-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(31, 58, 74, .25); color: #1f3a4a;
  transition: background-color .3s, border-color .3s, color .3s; }
.ft-social a:hover { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.ft-social svg { width: 20px; height: 20px; }
.ft-social a[aria-label="Tripadvisor"] svg { width: 24px; height: 24px; }   /* the owl is wide and short: a little bigger to look the same size */
.ft-copy { margin: 0; font-size: .82rem; color: #5b7383; }
@media (min-width: 980px) {
  .ft { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .ft-talk .ft-in { max-width: 700px; margin-left: auto; }
  .ft-links .ft-in { max-width: 1060px; }
  /* at the bottom of the page the footer fills exactly the screen under the header, so the header stays in view and
     nothing of the footer (its logo, the column headings) sits under it: its spacing and big words follow the
     screen's height, so it still fits on short laptop screens */
  .ft { min-height: calc(100vh - var(--hh)); }
  .ft-in { padding-top: clamp(28px, 6vh, 100px); padding-bottom: clamp(28px, 6vh, 100px); }
  .ft-logo { margin-bottom: clamp(18px, 4vh, 56px); }
  .ft-say { font-size: clamp(1.5rem, min(2.5vw, 4.6vh), 2.5rem); }
  .ft-wa { margin-top: clamp(16px, 3vh, 30px); }
  .ft .ft-big { margin-top: clamp(18px, 3.4vh, 34px); }
  .ft-big a { padding: clamp(8px, 1.6vh, 14px) 0; font-size: clamp(1.25rem, min(1.9vw, 3.4vh), 1.8rem); }
  .ft-more, .ft-where { margin-top: clamp(10px, 1.8vh, 18px); }
  .ft-end { padding-top: clamp(28px, 5vh, 56px); }
  .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* Plan, Tours, Sunbird side by side, never two rows */
  body:has(.cb) .ft-end { padding-right: 52px; }   /* the copyright line stops short of the chat button in the corner */
}
@media (min-width: 980px) and (max-width: 1199px) { .ft-cols { column-gap: 22px; } }

/* ---------- misc */
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 4px solid var(--blue); background: var(--mist); border-radius: 0 12px 12px 0; }
.cursor-follower { display: none !important; }

/* single photos keep their natural shape, centred */
.gallery.n1 img { width: auto; max-width: 100%; max-height: 460px; margin: 0 auto; aspect-ratio: auto; }
/* review cards are not quote boxes */
.quote blockquote { border: 0; background: none; padding: 0; border-radius: 0; }

/* =====================================================================
   Brand colours and the home page hero
   ===================================================================== */
:root {
  --brand-blue: #1f74ba;   /* logo blue */
  --brand-sky: #29abe2;    /* logo light blue */
  --brand-yellow: #fbdc03; /* logo yellow: used for the main action buttons */
  --brand-navy: #0c3460;   /* deep blue */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

/* ---------- the header over a photo (home, About us, tour pages, pages that open on a full-screen photo, the /tours/ intro): see-through, with the white logo,
   words and icons and a yellow line under the menu words; scrolling down turns it into a light-blue bar. The blue bar
   and its blur sit on a layer behind the header, not on the header itself: a blur on the header would trap the phone
   menu inside the bar. */
:is(.layout-home, .layout-about, .layout-tour, .over-photo, .tf-dark) .site-header { background-color: transparent; }
:is(.layout-home, .layout-about, .layout-tour, .over-photo) .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: background-color .3s; }
:is(.layout-home, .layout-about, .layout-tour, .over-photo) .site-header.scrolled::before { background-color: rgba(41, 171, 226, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
:is(.layout-home, .layout-about, .layout-tour, .over-photo) .site-header.scrolled { box-shadow: 0 8px 26px rgba(0, 0, 0, .2); }
:is(.layout-home, .layout-about, .layout-tour, .over-photo, .tf-dark) .logo .logo-dark { opacity: 0; }
:is(.layout-home, .layout-about, .layout-tour, .over-photo, .tf-dark) .logo .logo-light { display: block; }
:is(.layout-home, .layout-about, .layout-tour, .over-photo, .tf-dark) :is(.hd-ic, .nav-toggle) { color: #fff; }
:is(.layout-home, .layout-about, .layout-tour, .over-photo, .tf-dark) :is(.hd-ic:hover, .lang:focus-within) { background-color: rgba(255, 255, 255, .14); color: #fff; }
:is(.layout-home, .layout-about, .layout-tour, .over-photo, .tf-dark) .nav-ink { background: var(--brand-yellow); }
@media (min-width: 901px) {
  :is(.layout-home, .layout-about, .layout-tour, .over-photo, .tf-dark) .nav .top { color: #fff; }
}


/* full photo, natural (not blue-tinted) shading, words at the bottom left */
.hero-home {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  margin-top: -72px; padding: 140px 0 34px;
  background: #0b1824; color: #fff;
}
.hh-photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, 50% 50%);
  animation: hh-zoom 18s ease-out both;
}
@keyframes hh-zoom { from { transform: scale(1.08); } to { transform: none; } }
.hh-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 14, 22, .65) 0%, rgba(6, 14, 22, .2) 18%, rgba(6, 14, 22, .45) 30%, rgba(6, 14, 22, .85) 52%, rgba(6, 14, 22, .94) 100%);
}
.hh-inner { width: 100%; position: relative; }
/* the photo and, on top of it, the short looping film. The film plays in two parts on two video layers
   (site.js): the one showing has .show; part 2 takes over from part 1 instantly (no transition), the very
   first start fades in over the photo (.ease) and the slow-connection replay of part 1 dissolves in (.dissolve) */
.hh-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hh-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
}
.hh-video.show { opacity: 1; }
.hh-video.ease { transition: opacity 1.2s ease; }
.hh-video.dissolve { transition: opacity .8s ease; z-index: 1; }
/* once the film is showing, the photo under it is no longer drawn (or zoomed) */
.hh-live picture { visibility: hidden; }
.hh-live .hh-photo { animation: none; }

.hh-kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 .74rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}
.hh-kicker::before { content: ""; width: 32px; height: 1px; background: var(--brand-yellow); flex: none; }
.hh-title {
  margin: 0 0 22px; color: #fff;
  font: 400 clamp(2.6rem, 11vw, 6rem)/.96 var(--serif); letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hh-title > * { display: block; }
.hh-title em { font-style: italic; }
.hh-text { max-width: 35rem; margin: 0 0 28px; font-size: 1.04rem; line-height: 1.65; color: rgba(255, 255, 255, .9); }
.hh-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (max-width: 480px) { .hh-btns .btn { flex: 1 1 100%; } }
/* no backdrop blur here: blurring a moving film behind the button costs every frame */
.hh-btns .btn.ghost { background: rgba(255, 255, 255, .14); }

/* bottom row: a few trust facts, and where the photo was taken */
.hh-foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 30px;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18);
}
.hh-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 0; margin: 0; padding: 0; }
.hh-facts li { margin: 0; padding: 0 24px; border-left: 1px solid rgba(255, 255, 255, .22); font-size: .8rem; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.hh-facts li:first-child { padding-left: 0; border-left: 0; }
.hh-facts strong { display: block; margin-bottom: 4px; font: 400 1.75rem/1 var(--serif); color: #fff; }
.hh-place { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 .7rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.hh-place svg { width: 14px; height: 14px; color: var(--brand-yellow); }
.hh-place span { transition: opacity .35s ease; }
.hh-place span.swap { opacity: 0; }
@media (max-width: 480px) {
  .hh-facts { display: grid; grid-template-columns: repeat(3, auto); width: 100%; }
  .hh-facts li { padding: 0 12px; font-size: .74rem; }
  .hh-facts strong { font-size: 1.4rem; }
}

/* entrance */
.hh-kicker, .hh-title > *, .hh-text, .hh-btns, .hh-foot { animation: hh-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.hh-title > :nth-child(1) { animation-delay: .1s; }
.hh-title > :nth-child(2) { animation-delay: .22s; }
.hh-title > :nth-child(3) { animation-delay: .34s; }
.hh-text { animation-delay: .45s; }
.hh-btns { animation-delay: .58s; }
.hh-foot { animation-delay: .72s; }
@keyframes hh-up { from { opacity: 0; transform: translateY(18px); } }

@media (min-width: 761px) {
  .hh-photo { object-position: var(--focus-wide, var(--focus, 50% 50%)); }
  .hero-home { margin-top: -84px; min-height: 100vh; padding: 170px 0 40px; }
  .hh-shade {
    background:
      linear-gradient(180deg, rgba(6, 14, 22, .55) 0%, rgba(6, 14, 22, 0) 22%),
      linear-gradient(90deg, rgba(6, 14, 22, .7) 0%, rgba(6, 14, 22, .45) 34%, rgba(6, 14, 22, 0) 62%),
      linear-gradient(0deg, rgba(6, 14, 22, .8) 0%, rgba(6, 14, 22, .25) 34%, rgba(6, 14, 22, 0) 52%);
  }
  .hh-text { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hh-photo, .hh-kicker, .hh-title > *, .hh-text, .hh-btns, .hh-foot { animation: none !important; }
}

/* =====================================================================
   "I want a trip full of ___": tour categories on a turning wheel of words
   (home page, right under the hero; words and photos live in content/pages/home.md)
   ===================================================================== */
.trip-wheel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  padding: 84px 0 76px; background: var(--brand-sky); color: #fff;
}
.tw-photos { position: absolute; inset: 0; z-index: -2; }
.tw-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 7s ease-out;
}
.tw-photos img.on { opacity: 1; transform: none; }
.tw-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(41, 171, 226, .78) 0%, rgba(41, 171, 226, .62) 45%, rgba(41, 171, 226, .92) 100%); }
.tw-inner { width: 100%; position: relative; }
.tw-kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 .74rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .88);
}
.tw-kicker::before { content: ""; width: 32px; height: 1px; background: var(--brand-yellow); flex: none; }
.tw-lead { margin: 0; color: #fff; font: 400 clamp(2.4rem, 9.5vw, 3.8rem)/1.05 var(--serif); letter-spacing: -.01em; }

/* the wheel: a big thin ring off to the left; the words sit on its edge, each with a dot on the line,
   and turn around it. The chosen word sits at the far right of the ring, straight after the sentence.
   --R = ring size, --spread = gap between words, --hx = where the ring's right edge sits in the box */
.tw-wheel { --R: 300px; --spread: 15deg; --hx: 26px;
  position: relative; width: 100%; height: 300px; margin: 6px 0 0; overflow: hidden;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
.trip-wheel.tw-ready .tw-wheel { touch-action: none; }
.tw-wheel:active { cursor: grabbing; }
.tw-wheel:focus-visible { outline: 2px dashed rgba(251, 220, 3, .6); outline-offset: 8px; border-radius: 14px; }
.tw-ring { position: absolute; left: calc(var(--hx) - 2 * var(--R)); top: calc(50% - var(--R)); width: calc(2 * var(--R)); height: calc(2 * var(--R));
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); pointer-events: none; }
.tw-rot { position: absolute; left: calc(var(--hx) - var(--R)); top: 50%; width: 0; height: 0; }
.tw-word {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; height: 1.2em; margin-top: -.62em; padding-left: .42em;
  transform: rotate(calc(var(--k, 0) * var(--spread))) translateX(var(--R)) scale(var(--s, 1)); transform-origin: 0 50%; white-space: nowrap;
  font: italic 400 clamp(3rem, 14vw, 4.8rem)/1 var(--serif); color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transition: transform .7s cubic-bezier(.25, .8, .25, 1), opacity .5s, visibility .5s, color .4s;
}
.tw-word::before { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: rgba(255, 255, 255, .75); transition: background .4s, box-shadow .4s; }
.tw-word.on::before { left: -6px; width: 12px; height: 12px; margin-top: -6px; background: var(--brand-yellow); box-shadow: 0 0 0 6px rgba(251, 220, 3, .2); }
.tw-word:hover { color: #fff; }
.tw-word[data-d="-1"], .tw-word[data-d="1"] { opacity: .5; visibility: visible; }
.tw-word.on { opacity: 1; visibility: visible; color: #fff; }
.tw-word.on:hover { color: #fff; }
/* once site.js runs it moves the words itself, every frame (following a finger, a throw, a trackpad) */
.trip-wheel.tw-js .tw-word { transition: color .4s; will-change: transform, opacity; }

.tw-turn { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; }
.tw-turn small { font: 700 .7rem var(--title); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.tw-turn button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); color: #fff; transition: background .2s, color .2s, border-color .2s; }
.tw-turn button:hover, .tw-turn button:focus-visible { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--brand-navy); }
.tw-turn svg { width: 20px; height: 20px; stroke-width: 2.4; }
.tw-hint-mouse, .tw-hint-scroll { display: none; }
/* with a mouse the hint reads "Click to change", and "Scroll to rotate" while the mouse is over the wheel
   (site.js adds tw-over). Both sit in the same spot, so the column never changes size, and they crossfade. */
@media (hover: hover) and (pointer: fine) {
  .tw-hint-touch { display: none; }
  .tw-turn small { display: grid; place-items: center; }
  .tw-hint-mouse, .tw-hint-scroll { display: block; grid-area: 1 / 1; transition: opacity .3s ease; }
  .tw-hint-scroll { opacity: 0; }
  .trip-wheel.tw-over .tw-hint-mouse { opacity: 0; }
  .trip-wheel.tw-over .tw-hint-scroll { opacity: 1; }
}

.tw-line { margin: 22px 0 0; max-width: 34rem; min-height: 1.6em; font-size: 1.08rem; line-height: 1.6; font-weight: 500; color: #fff; }
.tw-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.tw-go em { font-style: normal; }
/* the line under the wheel and the word in the yellow button fade and slide when the wheel turns */
.tw-line span, .tw-go em { display: inline-block; transition: opacity .22s ease, transform .4s cubic-bezier(.2, .7, .2, 1), filter .22s ease; }
.tw-swap { opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(4px); }
.btn.gold.tw-go { white-space: nowrap; transition: width .45s cubic-bezier(.2, .7, .2, 1), color .4s ease, transform .2s ease, background-color 0s; }
.btn.gold.tw-go:is(:hover, :focus-visible) { transition: width .45s cubic-bezier(.2, .7, .2, 1), color .4s ease, transform .2s ease, background-color 0s .42s; }
.tw-btns .btn.ghost { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08); }
@media (max-width: 480px) { .tw-btns .btn { flex: 1 1 100%; } }

/* phones and small tablets: no ring. The words stand straight in a short list on a thin line: the chosen one big,
   one faded neighbour above and below. Swipe up and down on the list (once the section is fully on screen and
   the page has stopped), tap a word or use the arrows. (--hx = where the line sits; the gap between words is
   1em of the word size, and site.js moves the list by that much per word) */
@media (max-width: 979px) {
  .tw-wheel { --hx: 8px; height: 2.9em; margin: 14px 0 0; font-size: clamp(3rem, 14vw, 4.8rem); }
  .tw-wheel::before { content: ""; position: absolute; left: var(--hx); top: .15em; bottom: .15em; width: 1px; background: rgba(255, 255, 255, .35); }
  .tw-ring { display: none; }
  .tw-rot { left: var(--hx); }
  .tw-word { --ms: .46; transform: translate3d(0, calc(var(--k, 0) * 1em), 0) scale(var(--ms)); }
  .tw-word.on { --ms: 1; }
  .tw-word:not(.on)::before { opacity: 0; }
  .tw-word[data-d="-1"], .tw-word[data-d="1"] { opacity: .55; }
  .tw-turn { margin: 10px 0 0; }
  /* "Want it all? Mix your own" is a quiet text link here, so only one big button is left */
  .tw-btns { align-items: center; }
  .tw-btns .btn.ghost.tw-mix { min-height: 0; padding: 8px 4px; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .55); text-underline-offset: 5px; }
  .tw-btns .btn.ghost.tw-mix:hover { background: none; color: #fff; text-decoration-color: #fff; }
}

/* big screens: the photo fills the right side, like the hero; text and wheel on the left */
@media (min-width: 980px) {
  .trip-wheel { min-height: calc(100vh - 84px); padding: 70px 0; }
  .tw-photos { left: 36%; }
  .tw-shade {
    background:
      linear-gradient(90deg, rgba(41, 171, 226, 1) 0%, rgba(41, 171, 226, 1) 36%, rgba(41, 171, 226, .7) 48%, rgba(41, 171, 226, .2) 70%, rgba(41, 171, 226, 0) 100%),
      linear-gradient(0deg, rgba(41, 171, 226, .45) 0%, rgba(41, 171, 226, 0) 34%);
  }
  .tw-row { display: flex; align-items: center; gap: 4px; }
  .tw-lead { flex: none; white-space: nowrap; font-size: clamp(2.3rem, 3.8vw, 4rem); }
  /* the wheel's box is also where scrolling turns it, so keep it to a band around the chosen word */
  .tw-wheel { --R: 560px; --spread: 13deg; --hx: 0px; flex: none; width: 27rem; height: 180px; margin: 0 0 0 20px; overflow: visible; }
  .tw-line { max-width: 27rem; }
  .tw-word { font-size: clamp(3rem, 4.8vw, 4.8rem); }
  .tw-word[data-d="-2"], .tw-word[data-d="2"] { opacity: .2; visibility: visible; }
  .tw-turn { flex-direction: column; margin: 0 0 0 8px; }
  .tw-turn small { writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-photos img { transition: opacity .3s; transform: none; }
  .tw-word { transition-duration: .2s; }
}

/* ---------- home: brand introduction ("Who we are"), a split screen: one big photo fills the left half from
   edge to edge; beside it our motto, "Utmost content in tourism", set big as the headline, then the statement
   (it lights up word by word as you scroll, site.js), three promises and "Our story". Pale logo-blue tint. */
.band.intro { position: relative; background: #eef8fd; overflow: hidden; }
.band.intro .intro-text { max-width: 46rem; }
.ia-words { margin: 0 0 .55em; color: #1f3a4a; letter-spacing: -.025em; font: 400 clamp(3.1rem, 16.5vw, 5.4rem)/.9 var(--serif); }
.ia-words > span { display: block; }
.ia-words em { font-style: italic; color: var(--brand-sky); }
.band.intro .intro-text > p:not(.kicker):not(:last-child) {
  margin: 0; color: #1f3a4a; letter-spacing: -.003em;
  font: 400 clamp(1.25rem, 4.8vw, 1.6rem)/1.42 var(--serif);
}
.band.intro .intro-text > p em { font-style: italic; color: var(--blue); }
/* three promises in a row under a hairline, numbered 01 02 03 */
.band.intro .intro-text > ol { list-style: none; counter-reset: ia; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.8rem 0 0; padding: 0; border-top: 1px solid rgba(31, 58, 74, .16); }
.band.intro .intro-text > ol li { counter-increment: ia; margin: 0; padding: 14px 12px 0 0; font: 500 .9rem/1.35 var(--body); color: #1f3a4a; }
.band.intro .intro-text > ol li + li { padding-left: 14px; border-left: 1px solid rgba(31, 58, 74, .12); }
.band.intro .intro-text > ol li::before { content: counter(ia, decimal-leading-zero); display: block; margin-bottom: 6px;
  font: italic 400 1.2rem/1 var(--serif); color: var(--brand-sky); }
.band.intro .intro-text > p:last-child { margin: 2rem 0 0; }
/* the photo: on phones a framed picture above the words; on computers the whole left half (below) */
.ia-photo { position: relative; margin: 0 0 2.2rem; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 6px; background: #d3e6ef; }
.ia-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; object-position: 68% 40%; }
.ia-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 24, 34, 0), rgba(10, 24, 34, .5)); }
.ia-photo figcaption { position: absolute; left: 18px; bottom: 18px; z-index: 1; display: flex; align-items: center; gap: 10px;
  font: 600 .7rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.ia-photo figcaption::before { content: ""; width: 24px; height: 1px; background: var(--brand-yellow); }
/* the "licensed" seal: a white disc with a fine blue ring, on the photo's corner */
.ia-badge { position: absolute; right: 14px; top: 14px; z-index: 1; width: 104px; height: 104px; margin: 0; border-radius: 50%;
  display: grid; place-content: center; text-align: center; background: rgba(255, 255, 255, .95); color: var(--blue);
  box-shadow: 0 12px 28px rgba(10, 24, 34, .25); transform: rotate(-8deg); }
.ia-badge::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(41, 171, 226, .5); border-radius: 50%; }
.ia-badge small { display: block; font: 600 .54rem/1.35 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.ia-badge strong { display: block; margin: 2px 0 1px; color: #1f3a4a; font: 400 1.45rem/1 var(--serif); }
@media (min-width: 980px) {
  /* fills the screen under the header: the photo is the left half, the words sit in the right half */
  .band.intro { min-height: calc(100vh - 84px); display: flex; align-items: center; padding: 0; }
  .band.intro .wrap { width: 100%; max-width: none; padding: 48px clamp(32px, 5vw, 110px) 48px calc(46% + clamp(40px, 5vw, 110px)); }
  .ia-photo { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; margin: 0; aspect-ratio: auto; border-radius: 0; }
  .ia-photo figcaption { left: clamp(24px, 3vw, 48px); bottom: 30px; }
  .ia-badge { width: 120px; height: 120px; right: clamp(24px, 3vw, 48px); top: auto; bottom: 26px; }
  .ia-badge small { font-size: .6rem; }
  .ia-badge strong { font-size: 1.9rem; }
  /* as big as the screen allows, by its width and by its height */
  .ia-words { font-size: clamp(4rem, min(8.2vw, 14vh), 10rem); }
  .band.intro .intro-text > p:not(.kicker):not(:last-child) { font-size: clamp(1.2rem, min(1.45vw, 2.7vh), 1.75rem); }
}
/* outline pill with a round dashed arrow; turns logo blue on hover */
.btn.pill { background: transparent; color: #1f3a4a; border: 1px solid #1f3a4a; padding: .45em .5em .45em 1.6em; font-weight: 500; }
.btn.pill::after { content: "\2192"; display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: 14px;
  border: 1px dashed currentColor; border-radius: 50%; font-size: 1rem; transition: transform .3s; }
.btn.pill:hover { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.btn.pill:hover::after { transform: rotate(-45deg); }


/* ---------- dotted map of Sri Lanka with a route drawn across it ({{island}} in a page; not used right now) */
.island { display: block; width: 100%; max-width: 420px; height: auto; overflow: visible; }
.is-coast { fill: #fff; fill-opacity: .75; stroke: var(--brand-sky); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: .01 4.2; }
.is-leg { fill: none; stroke: #e2a900; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.is-stop circle { fill: #e2a900; stroke: #fff; stroke-width: 1.3; }
.is-stop text { font: 600 6.6px var(--body); letter-spacing: .12em; text-transform: uppercase; fill: #1f3a4a; }

/* ---------- home page motion (switched on by site.js; see "home page motion" there) */
.rv { opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .9s ease; transition-delay: var(--rv-delay, 0s); }
h2.rv, .kicker.rv, .tw-kicker.rv { filter: blur(10px); }
.rv.in { opacity: 1; transform: none; filter: none; }
/* the hero photo moves as one layer (the photo inside keeps its slow zoom) */
.hero-home picture { position: absolute; inset: 0; z-index: -2; display: block; }
/* smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* ---------- "pin and play" (big screens; site.js builds the stack): the hero, "Who we are" and the tour
   wheel each stay pinned while the empty stretch after them scrolls past and plays their effect, then the
   next one slides up over them like a card. Make a stretch longer to slow that section's effect down. */
.pin-stack { position: relative; }
.pin-stack > section { position: sticky; }
.pin-stack > .hero-home { top: 0; z-index: 1; transform-origin: 50% 35%; }
.pin-stack > .band.intro { position: sticky; top: 84px; z-index: 2; transform-origin: 50% 30%; }
/* while pinned, the statement lights up word by word (site.js wraps each word) */
.band.intro .w { transition: opacity .15s linear; }
.pin-stack > .trip-wheel { top: 84px; z-index: 3; }
.pin-space-0 { height: 85vh; }
.pin-space-1 { height: 100vh; }
.pin-space-2 { height: 70vh; }
.pin-stack .hero-home .hh-media { transform-origin: 60% 45%; will-change: transform; }
/* the dimming layer site.js lays over a pinned section while the next one slides up over it */
.sb-dim { position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
.pin-stack .tw-rot { transform-origin: 0 0; }

/* ---------- page-to-page transition from the home page's tour wheel (site.js + the small script at the top
   of every page): the wheel's photo opens out to fill the screen with the chosen word, the next page opens
   on that same picture, and it fades away to reveal the page */
/* (dark under the photo, like the photo tops of the pages, in case the photo is a moment late) */
.pt { position: fixed; inset: 0; z-index: 300; overflow: hidden; pointer-events: none; background: #0b1824; }
/* the photo is framed exactly like the big photo at the top of the next page (.th-bg img: the full width and 116%
   of the screen's height, from the top), so when the screen fades the two copies lie on top of each other */
.pt img { position: absolute; left: 0; top: 0; width: 100%; height: 116%; max-width: none; object-fit: cover; }
.pt-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 14, 22, .3) 0%, rgba(6, 14, 22, .55) 100%); }
.pt-word { position: absolute; left: 0; right: 0; top: 50%; margin: 0; padding: 0 20px; transform: translateY(-50%); text-align: center; color: #fff; }
.pt-word small { display: block; margin-bottom: .7rem; font: 600 .78rem/1.4 var(--body); letter-spacing: .24em; text-transform: uppercase; opacity: .9; }
.pt-word em { display: block; font: italic 400 clamp(3.4rem, 11vw, 8rem)/1 var(--serif); text-shadow: 0 6px 40px rgba(0, 0, 0, .3); }
/* leaving: starts as the wheel's photo panel and opens out to the whole screen */
.pt-out { clip-path: var(--from, inset(0)); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); }
.pt-out.go { clip-path: var(--to, inset(0 0 0 0)); }
.pt-out .pt-shade, .pt-out .pt-word { opacity: 0; transition: opacity .5s ease .3s; }
.pt-out .pt-word em { transform: translate3d(0, 34px, 0); transition: transform .9s cubic-bezier(.2, .7, .2, 1) .25s; }
.pt-out.go .pt-shade, .pt-out.go .pt-word { opacity: 1; }
.pt-out.go .pt-word em { transform: none; }
/* arriving: the same picture fades away (and never stays up, even if the page's script fails) */
.pt-in { animation: pt-away 0s linear 5s forwards; }
.pt-in.done { opacity: 0; transition: opacity .9s cubic-bezier(.4, 0, .2, 1) .05s; }
.pt-in.done .pt-word { opacity: 0; transform: translateY(calc(-50% - 40px)); transition: opacity .5s ease, transform .9s ease; }
@keyframes pt-away { to { opacity: 0; visibility: hidden; } }
/* while the screen is still up (until site.js adds "landed" once the pictures are ready), the page's own opening
   movements wait under it, so they play as it lifts; and when the screen carried a photo, the page's big photo
   stays still (no opening zoom), lying exactly under the screen's copy */
.arriving:not(.landed) :is(.th-bg img, .th-top, .th-in > *, .th-foot, .page-hero .wrap > *, .tf-top > *) { animation-play-state: paused; }
.arriving-photo .th-bg img { animation: none; }
/* ...and the new page's title area rises into place as the picture fades */
.arriving .page-hero .wrap > * { animation: hh-up 1s cubic-bezier(.2, .7, .2, 1) both; }
.arriving .page-hero .wrap > :nth-child(1) { animation-delay: .45s; }
.arriving .page-hero .wrap > :nth-child(2) { animation-delay: .55s; }
.arriving .page-hero .wrap > :nth-child(3) { animation-delay: .65s; }
.arriving .page-hero .wrap > :nth-child(4) { animation-delay: .75s; }

/* the plain version (from "Want it all?") and the page-to-page version (every other link): a pale screen that
   grows out of the spot you clicked, with words instead of a photo */
.pt-plain, .pt-nav { background: #f6fafc; }
.pt-plain .pt-shade, .pt-nav .pt-shade { display: none; }
.pt-plain .pt-word, .pt-nav .pt-word { color: #1f3a4a; }
.pt-plain .pt-word small { color: var(--blue); opacity: 1; }
.pt-plain .pt-word em, .pt-nav .pt-word em { color: var(--brand-sky); text-shadow: none; }
/* leaving: the screen itself stays clear; a soft-edged pale disc (site.js cover()) grows out of the click and
   fades in as it goes, so it melts over the page instead of cutting across it */
.pt-out.pt-plain, .pt-out.pt-nav, .pt-out.pt-plain.go, .pt-out.pt-nav.go { background: none; clip-path: none; transition: none; }
.pt-disc { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, #f6fafc 85%, rgba(246, 250, 252, 0) 100%);
  opacity: 0; transform: scale(.03); will-change: transform, opacity;
  transition: transform .8s cubic-bezier(.5, 0, .15, 1), opacity .5s cubic-bezier(.3, 0, .3, 1); }
.pt-out.go .pt-disc { opacity: 1; transform: none; }
.pt-out.pt-plain .pt-disc { transition-duration: .95s, .6s; }
/* ...and the words come into focus: they fade up out of a soft blur and settle just before the page changes,
   so the next page can pick them up in exactly the same place */
.pt-out.pt-plain .pt-word, .pt-out.pt-nav .pt-word { opacity: 1; transition: none; }
.pt-out.pt-plain .pt-word > *, .pt-out.pt-nav .pt-word > * { opacity: 0; filter: blur(10px); transform: translate3d(0, 16px, 0);
  transition: opacity .5s cubic-bezier(.3, 0, .3, 1) .18s, filter .55s cubic-bezier(.3, 0, .3, 1) .18s, transform .6s cubic-bezier(.2, .7, .2, 1) .18s; }
.pt-out.pt-plain.go .pt-word > *, .pt-out.pt-nav.go .pt-word > * { opacity: 1; filter: blur(0); transform: none; }
.pt-out.pt-plain .pt-word em { transition-delay: .28s; }
/* page to page: the name of what you clicked is smaller than the wheel's big word; the small line above it
   shows only when a link gives one (data-pt-lead, e.g. "Tours that visit" + "Anuradhapura") */
.pt-nav .pt-word small { color: var(--blue); opacity: 1; }
.pt-nav .pt-word small:empty { display: none; }
.pt-nav .pt-word em { font-size: clamp(2.4rem, 6vw, 4.6rem); }
/* arriving: the words drift up and soften away first, then the pale screen dissolves into the new page */
.pt-in.pt-plain.done, .pt-in.pt-nav.done { transition: opacity .75s cubic-bezier(.4, 0, .2, 1) .15s; }
.pt-in.pt-plain.done .pt-word, .pt-in.pt-nav.done .pt-word { opacity: 0; filter: blur(8px); transform: translateY(calc(-50% - 14px));
  transition: opacity .45s cubic-bezier(.4, 0, .2, 1), filter .45s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
/* arriving from "Want it all?": the tour finder's sentence and question rise into place as the screen fades */
.arriving .tf-top > * { animation: hh-up 1s cubic-bezier(.2, .7, .2, 1) both; }
.arriving .tf-top > :nth-child(1) { animation-delay: .4s; }
.arriving .tf-top > :nth-child(2) { animation-delay: .5s; }
.arriving .tf-top > :nth-child(3) { animation-delay: .62s; }

/* ---------- tour categories as an editorial index (top of /tours/, "Other tour categories" on category pages)
   numbered serif names between hairlines; one large photo beside them changes to the row you point at.
   On phones the big photo goes and each row shows a small one instead. */
.cat-index { display: grid; gap: 40px; max-width: 1280px; margin: 0 auto; }
.ci-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font: 600 .74rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.ci-kicker::before { content: ""; width: 32px; height: 1px; background: var(--brand-yellow); flex: none; }
.ci-title { margin: 0 0 14px; color: #1f3a4a; text-align: left; }
.ci-text { max-width: 30rem; margin: 0 0 30px; color: #4a6170; }
.ci-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #dde7ed; }
.ci-list li { margin: 0; border-bottom: 1px solid #dde7ed; }
.ci-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; color: #1f3a4a; }
.ci-row:hover { color: #1f3a4a; }
.ci-row:focus-visible { outline: 2px solid var(--brand-sky); outline-offset: 4px; border-radius: 8px; }
.ci-num { font: 500 .78rem/1 var(--body); letter-spacing: .14em; color: #8aa3b2; transition: color .3s; }
.ci-thumb, .ci-line, .ci-progress { display: none; }
.ci-name { font: 400 clamp(1.7rem, 2.5vw, 2.35rem)/1.1 var(--serif); transition: transform .4s cubic-bezier(.2, .7, .2, 1), color .3s; }
.ci-meta { display: inline-flex; align-items: center; gap: 10px; font: 500 .86rem/1 var(--body); color: #5b7383; white-space: nowrap; }
.ci-meta svg { width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.ci-row.on .ci-name { transform: translateX(10px); color: var(--brand-blue); }
.ci-row.on .ci-num { color: var(--brand-sky); }
.ci-row.on .ci-meta svg { opacity: 1; transform: none; }
.ci-photo { margin: 0; }
.ci-frame { position: relative; aspect-ratio: 4 / 5; max-height: 660px; border-radius: 6px; overflow: hidden; background: #dde7ed; }
.ci-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity .7s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.ci-frame img.on { opacity: 1; transform: none; }
.ci-cap { margin: 14px 0 0; font: italic 400 1.2rem/1.4 var(--serif); color: #5b7383; transition: opacity .25s; }
.ci-cap.swap { opacity: 0; }
.ci-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 34px 0 0; }
.ci-more { font: 600 .92rem var(--title); color: #1f3a4a; text-decoration: underline; text-decoration-color: #b9cbd6;
  text-decoration-thickness: 1px; text-underline-offset: 6px; }
.ci-more:hover { color: var(--brand-blue); text-decoration-color: currentColor; }
@media (min-width: 980px) {
  .cat-index { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(48px, 6vw, 110px); align-items: center; }
}
/* phones and tablets: no hover, so the list becomes a row of tall photo cards you swipe through, the next
   one peeking in from the edge, with a thin progress line and "01 / 07" underneath */
@media (max-width: 979px) {
  /* minmax(0, …) and min-width: 0 stop the row of cards from stretching the column (and the page) wider than the screen */
  .cat-index { --edge: clamp(20px, 6vw - 40px, 72px); grid-template-columns: minmax(0, 1fr); }
  .ci-side { min-width: 0; }
  .ci-photo { display: none; }
  .ci-list { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--edge)); padding: 0 var(--edge); scroll-padding: 0 var(--edge); border: 0;
    scrollbar-width: none; }
  .ci-list::-webkit-scrollbar { display: none; }
  .ci-list li { flex: 0 0 min(78%, 340px); border: 0; scroll-snap-align: start; }
  .ci-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 0; }
  .ci-thumb { display: block; order: -1; width: 100%; height: auto; aspect-ratio: 4 / 5; margin: 0 0 18px;
    border-radius: 6px; object-fit: cover; }
  .ci-num { margin: 0 0 10px; color: var(--brand-sky); }
  .ci-name { font-size: clamp(1.75rem, 7.4vw, 2.2rem); }
  .ci-line { display: block; margin: 6px 0 0; font: italic 400 1.05rem/1.4 var(--serif); color: #5b7383; }
  .ci-meta { margin: 14px 0 0; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #1f3a4a; }
  .ci-meta svg, .ci-row.on .ci-meta svg { opacity: 1; transform: none; width: 14px; height: 14px; }
  .ci-row.on .ci-name { transform: none; color: #1f3a4a; }
  .ci-row.on .ci-num { color: var(--brand-sky); }
  .ci-progress { display: flex; align-items: center; gap: 16px; margin: 26px 0 0; }
  .ci-bar { position: relative; flex: 1; height: 1px; background: #cfdde5; }
  .ci-bar i { position: absolute; left: 0; top: -.5px; height: 2px; background: #1f3a4a; transition: width .35s cubic-bezier(.2, .7, .2, 1); }
  .ci-count { font: 500 .74rem/1 var(--body); letter-spacing: .16em; color: #5b7383; font-variant-numeric: tabular-nums; }
}
@media (prefers-reduced-motion: reduce) { .ci-frame img, .ci-name { transition: none; } }

/* ---------- weather: shared sunny / mixed / rainy dots */
.season-chip::before, .dr-st::before, .mg-k.G::before, .mg-k.M::before, .mg-k.R::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #8aa3b2; }
.season-chip.G::before, .dr-st.G::before, .mg-k.G::before { background: #efb54a; }
.season-chip.M::before, .dr-st.M::before, .mg-k.M::before { background: #c9c1ad; }
.season-chip.R::before, .dr-st.R::before, .mg-k.R::before { background: #6f9fca; }
/* yellow buttons on the light sections: no heavy shadow, and a visible hover */

/* ---------- category pages: "When are you travelling?" bar above the tours */
.month-bar { max-width: 1280px; margin: 38px auto 0; padding: 24px 0 0; border-top: 1px solid #dde7ed; }
.mb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin: 0 0 26px; }
.mb-ask { margin: 0; color: #1f3a4a; font: 400 clamp(1.5rem, 2.2vw, 1.9rem)/1.15 var(--serif); }
.mb-guide { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #1f3a4a; font: 600 .88rem var(--title);
  text-decoration: underline; text-decoration-color: #b9cbd6; text-underline-offset: 5px; }
.mb-guide:hover { color: var(--brand-blue); text-decoration-color: currentColor; }
.mb-guide svg { width: 15px; height: 15px; }
/* "Any month": a quiet link beside the question; while it is the choice it rests, greyed, without its line */
.mb-any { padding: 2px 0; border: 0; border-bottom: 1px dashed currentColor; background: none; color: var(--brand-blue); font: 600 .84rem var(--title);
  cursor: pointer; transition: color .25s, border-color .25s; }
.mb-any:hover { color: #1f3a4a; }
.mb-any[aria-pressed="true"] { color: #8a9ea8; border-bottom-color: transparent; cursor: default; }
.mb-any:focus-visible, .mb-m:focus-visible { outline: 2px solid var(--brand-sky); outline-offset: 2px; }
/* the season strip: twelve months in the tour list's colours (gold best, sand mixed, blue rainy) for these tours */
.mb-strip { --gap: 4px; position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.mb-m { position: relative; display: grid; place-items: center; height: 46px; padding: 0; border: 0; border-radius: 6px; background: #e5edf1;
  color: #1f3a4a; font: 600 .84rem var(--title); cursor: pointer; box-shadow: inset 0 0 0 0 var(--brand-blue, #1f74ba);
  transition: transform .35s var(--glide, ease), box-shadow .3s ease, filter .25s ease; }
.mb-m.G { background: #f2c75c; }
.mb-m.M { background: #ddd5c2; }
.mb-m.R { background: #9dbedd; }
.mb-m:hover { transform: translateY(-3px); filter: saturate(1.15) brightness(1.03); }
.mb-m[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--brand-blue, #1f74ba); transform: translateY(-3px); }
.mb-s { display: none; }
/* the yellow sun: one disc that glides along the strip to the month you pick (site.js sets --m) */
.mb-sun { position: absolute; z-index: 1; top: -11px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--brand-yellow, #fbdc03);
  box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(12, 52, 96, .2); pointer-events: none;
  left: calc(var(--m, 0) * ((100% - 11 * var(--gap)) / 12 + var(--gap)) + (100% - 11 * var(--gap)) / 24);
  opacity: 0; transform: translateY(-3px) scale(.3); transition: left .55s var(--glide, ease), opacity .3s ease, transform .45s var(--glide, ease); }
.mb-strip.has-m .mb-sun { opacity: 1; transform: translateY(-3px); }
.mb-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px; margin: 16px 0 0; }
.mb-note { flex: 1 1 26rem; margin: 0; color: #5b7383; font-size: .95rem; text-wrap: pretty; }
.mb-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: #5b7383; font-size: .78rem; }
.mb-key span { display: inline-flex; align-items: center; gap: 7px; }
.mb-key span::before { content: ""; width: 10px; height: 10px; border-radius: 2px; }
.mb-key .G::before { background: #f2c75c; }
.mb-key .M::before { background: #ddd5c2; }
.mb-key .R::before { background: #9dbedd; }
@media (max-width: 760px) {
  .mb-head { margin-bottom: 22px; }
  .mb-guide { margin-left: 0; }
  .mb-strip { --gap: 3px; }
  .mb-m { height: 42px; border-radius: 5px; }
  .mb-l { display: none; }   /* one letter each, so all twelve fit across a phone */
  .mb-s { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .mb-m, .mb-sun { transition: none; } }
/* the tag on each tour card once a month is picked; tours out of season step back a little */
.season-chip { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 12px 3px 10px; border-radius: 30px; background: rgba(255, 255, 255, .95); color: #1f3a4a; font: 600 .78rem var(--title); }
.tour-card { transition: transform .25s, box-shadow .25s, opacity .3s; }
.tour-card.is-off { opacity: .6; }
.tour-card.is-off:hover { opacity: 1; }

/* ---------- tours as photo tiles (build.py card_tour): the words sit on the photo, centred in its lower part.
   Pointing at a tile, the photo slowly zooms, the route slides up and "View tour" fills in. */
.tile { position: relative; isolation: isolate; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #10303c; box-shadow: none; }
.tile:hover { transform: none; box-shadow: 0 26px 50px rgba(10, 24, 34, .22); }
.tile .card-link { position: relative; display: block; height: 100%; color: #fff; }
.tile .card-img { position: absolute; inset: 0; aspect-ratio: auto; background: #10303c; }
.tile .card-img img { transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .card-img img { transform: scale(1.07); }
.tile .card-img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 22, 30, .18) 0%, rgba(8, 22, 30, .06) 32%, rgba(8, 22, 30, .78) 100%); }
.tile .season-chip { z-index: 2; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; align-items: center;
  padding: 0 clamp(20px, 2.4vw, 36px) clamp(24px, 2.6vw, 36px); text-align: center; }
.tile-kick { margin: 0 0 .75em; font: 600 .7rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.tile-t { margin: 0; color: #fff; font: 400 clamp(1.9rem, 2.3vw, 2.5rem)/1.04 var(--serif); letter-spacing: -.01em; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
/* the route opens smoothly (its row grows from nothing) as the tile is pointed at */
.tile-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1); }
.tile-route { max-width: 100%; min-height: 0; overflow: hidden; margin: 0; display: flex; justify-content: center; align-items: center; gap: 7px;
  font: 500 .86rem/1.4 var(--body); color: rgba(255, 255, 255, .92); opacity: 0; transform: translateY(12px);
  transition: opacity .45s ease .05s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile-route span { min-width: 0; padding-top: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-route svg { width: 15px; height: 15px; margin-top: .9em; }
.tile-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 1.25em; padding: 0 1.4em; border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, .65); font: 600 .9rem/1 var(--title); color: #fff; transition: background .3s, color .3s, border-color .3s; }
.tile-go svg { width: 1em; height: 1em; transition: transform .3s; }
.tile:hover .tile-more, .tile:focus-within .tile-more { grid-template-rows: 1fr; }
.tile:hover .tile-route, .tile:focus-within .tile-route { opacity: 1; transform: none; }
.tile:hover .tile-go, .tile:focus-within .tile-go { background: #fff; border-color: #fff; color: #1f3a4a; }
.tile:hover .tile-go svg { transform: translateX(3px); }
/* touch screens can't point, so the route always shows there */
@media (hover: none) { .tile-more { grid-template-rows: 1fr; } .tile-route { opacity: 1; transform: none; } }

/* home, "Places our guests love" ({{place-show}}, build.py place_show): the main places one at a time, full screen,
   built as a 3D scene. Far behind: the place's big photo (darkened). In the middle: three of its own photos printed
   like photographs, each at its own depth. In front: its name, floating, then its tagline. All of it sits inside a
   camera (.sx-cam) that site.js turns a little with the pointer, lets drift slowly when nothing moves it, and
   brings closer as you scroll (--px/--py go to the photo behind and the glare on the prints, so they move with it).
   A change of place is a flight through the scene: the prints and the name rush past the camera, out of focus,
   and the next ones come up out of the distance into focus while the photo behind racks focus to the new place
   (.sx-fwd; .sx-back flies the other way). Pointing at the prints pulls focus to them: they spread a little and
   the photo behind goes soft (.sx-focus). States of a place: none (waiting at --zin), .on (in place), .set (landed:
   pointing at it can spread it), .off (leaving, towards --zout). Nothing moves for people who asked for less motion. */
.place-show { --zin: -1100px; --zout: 700px; position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto; min-height: 100vh; min-height: 100svh; background: #0b1b22; color: #fff; }
.place-show.sx-back { --zin: 700px; --zout: -1100px; }
/* the photo behind: a little bigger than the screen, so it can move against the camera */
.sx-bgs { position: absolute; inset: -3%; z-index: -2; will-change: transform;
  transform: translate3d(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -12px), 0); }
.sx-bgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(22px); transform: scale(1.18);
  will-change: transform, filter, opacity; transition: opacity 1.1s ease, filter 1.1s ease, transform 1.6s cubic-bezier(.55, 0, .8, .3); }
.place-show.sx-back .sx-bgs img:not(.on) { transform: scale(.94); }
.sx-bgs img.on { opacity: 1; filter: blur(0); transform: scale(1.02);
  transition: opacity 1s ease .1s, filter 1.7s cubic-bezier(.3, .6, .2, 1) .15s, transform 2.4s cubic-bezier(.16, .84, .24, 1); }
/* focus pulled to the prints: the photo behind goes soft and a little darker */
.place-show.sx-focus .sx-bgs img.on { filter: blur(9px) brightness(.82); transform: scale(1.05);
  transition: filter .9s cubic-bezier(.3, .6, .2, 1), transform 1.4s var(--glide), opacity 1s ease; }
.sx-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, rgba(6, 18, 24, 0) 40%, rgba(6, 18, 24, .5) 100%),
    linear-gradient(180deg, rgba(6, 18, 24, .6) 0%, rgba(6, 18, 24, .32) 30%, rgba(6, 18, 24, .4) 62%, rgba(6, 18, 24, .9) 100%); }
.sx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; width: 100%; padding-top: calc(var(--hh, 84px) + 30px); }
.place-show h2.sx-title { margin: 0; color: #fff; text-align: left; font: 400 clamp(1.7rem, 2.5vw, 2.4rem)/1.1 var(--serif); }
.sx-title em { font-style: italic; }
.sx-k { display: block; margin-bottom: 12px; font: 600 .74rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.sx-count { margin: 0; font: 500 .8rem/1 var(--body); letter-spacing: .16em; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.sx-count b { font-weight: 600; color: #fff; }
/* the stage and the camera: every place sits in the same spot; only the one shown (and the one leaving) is visible */
.sx-stage { display: grid; place-items: center; padding: clamp(14px, 3vh, 34px) 0; perspective: 1300px; perspective-origin: 50% 46%; }
.sx-cam { display: grid; place-items: center; transform-style: preserve-3d; will-change: transform; }
.sx-slide { --ch: clamp(280px, 50vh, 530px); --dz: var(--zin); position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center;
  transform-style: preserve-3d; color: #fff; visibility: hidden; pointer-events: none; transition: visibility 0s 1.1s; }
.sx-slide.on { --dz: 0px; visibility: visible; pointer-events: auto; transition: none; }
.sx-slide.off { --dz: var(--zout); visibility: visible; transition: visibility 0s 1.1s; }
.sx-slide:hover { color: #fff; }
.sx-slide:focus-visible { outline: none; }
.sx-slide:focus-visible h3.sx-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
/* the prints: where each one lies (--x --y --r), how deep (--z), and how far it still is from its place (--dz) */
.sx-cards { position: relative; display: block; width: calc(var(--ch) * .754); height: var(--ch); transform-style: preserve-3d; }
.sx-card { --x: 0%; --y: 0%; --r: 0deg; --z: 0px; --s: 1; position: absolute; inset: 0; padding: 7px; border-radius: 3px; background: #f6f1e7; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4), 0 2px 6px rgba(0, 0, 0, .22); backface-visibility: hidden;
  transform: translate3d(var(--x), var(--y), calc(var(--z) + var(--dz))) rotate(var(--r)) scale(var(--s));
  opacity: 0; filter: blur(16px); transition: none; }
.sx-card:nth-child(1) { --x: -25%; --y: 3%; --r: -10deg; --z: -150px; }
.sx-card:nth-child(2) { --x: 23%; --y: -2%; --r: 8deg; --z: -80px; }
.sx-card:nth-child(3) { --r: -1.5deg; }
.sx-card img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
/* the glare: a soft band of light across the print that slides as the camera turns */
.sx-glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, .32) 47%, rgba(255, 255, 255, 0) 60%);
  transform: translate3d(calc(var(--px, 0) * 38% - 8%), 0, 0); }
/* arriving: up out of the distance, one after another, coming into focus */
.sx-slide.on .sx-card { opacity: 1; filter: blur(0);
  transition: transform 1.5s cubic-bezier(.16, .84, .24, 1) calc(.12s + var(--c) * .09s), opacity .7s ease calc(.12s + var(--c) * .09s),
    filter 1.1s ease calc(.2s + var(--c) * .09s); }
/* leaving: rushing past the camera (or back into the distance), out of focus, front print first */
.sx-slide.off .sx-card { opacity: 0; filter: blur(14px);
  transition: transform 1s cubic-bezier(.55, 0, .8, .3) calc((2 - var(--c)) * .05s), opacity .6s ease calc(.2s + (2 - var(--c)) * .05s), filter .7s ease; }
/* landed: pointing at them spreads them a little and lifts them towards you */
.sx-slide.on.set .sx-card { transition: transform .9s var(--glide), filter .4s ease, opacity .4s ease; }
.sx-slide.on.set:hover .sx-card:nth-child(1) { --x: -34%; --y: 4%; --r: -13deg; --z: -110px; }
.sx-slide.on.set:hover .sx-card:nth-child(2) { --x: 32%; --y: -3%; --r: 11deg; --z: -40px; }
.sx-slide.on.set:hover .sx-card:nth-child(3) { --z: 50px; --r: 0deg; }
/* the name: floating in front of the prints, its letters coming into focus one after another */
.place-show h3.sx-name { position: absolute; top: calc(var(--ch) / 2); left: 50%; z-index: 1; margin: 0; white-space: nowrap; pointer-events: none;
  color: #fff; font: 400 clamp(3.2rem, 11.5vw, 12.5rem)/.9 var(--serif); letter-spacing: -.01em; text-shadow: 0 6px 50px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%) translate3d(0, 0, calc(190px + var(--dz))); opacity: 0; transition: none; }
.sx-name > span > span { display: inline-block; opacity: 0; filter: blur(14px); transform: translate3d(0, .18em, 0); }
.sx-slide.on h3.sx-name { opacity: 1; transition: transform 1.6s cubic-bezier(.16, .84, .24, 1) .05s, opacity .4s ease; }
.sx-slide.on .sx-name > span > span { opacity: 1; filter: blur(0); transform: none;
  transition: opacity .8s ease calc(.35s + var(--i) * .045s), filter 1s ease calc(.35s + var(--i) * .045s), transform 1.2s var(--glide) calc(.35s + var(--i) * .045s); }
.sx-slide.off h3.sx-name { opacity: 0; filter: blur(10px); transition: transform .95s cubic-bezier(.55, 0, .8, .3), opacity .5s ease .25s, filter .6s ease; }
.sx-slide.off .sx-name > span > span { opacity: 1; filter: none; transform: none; }
/* the tagline and best months, just in front of the prints */
.sx-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; margin-top: clamp(30px, 4.5vh, 50px);
  font-size: .88rem; color: rgba(255, 255, 255, .88); opacity: 0; transform: translate3d(0, 10px, calc(60px + var(--dz))); transition: none; }
.sx-line em { font: italic 400 1.3rem/1.2 var(--serif); color: #fff; }
.sx-line > span { display: inline-flex; align-items: center; gap: 6px; }
.sx-line svg { width: 15px; height: 15px; stroke: #f2c75c; }
.sx-slide.on .sx-line { opacity: 1; transform: translate3d(0, 0, 60px); transition: opacity .8s ease .7s, transform 1.4s var(--glide) .45s; }
.sx-slide.off .sx-line { opacity: 0; transition: opacity .35s ease, transform 1s cubic-bezier(.55, 0, .8, .3); }
/* the bar along the bottom: the places by name, then the arrows and the way to all of them */
.sx-bar { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 18px; width: 100%; padding-bottom: clamp(22px, 3.5vh, 40px); }
.sx-tabs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 clamp(12px, 1.6vw, 28px); margin: 0; padding: 0; list-style: none; }
.sx-tabs li { margin: 0; }
.sx-tab { position: relative; display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 16px 0 2px; border: 0; border-top: 1px solid rgba(255, 255, 255, .3);
  background: none; color: rgba(255, 255, 255, .62); text-align: left; font: 400 clamp(1.15rem, 1.5vw, 1.55rem)/1.15 var(--serif); cursor: pointer; transition: color .3s; }
.sx-tab:hover, .sx-tab.on { color: #fff; }
.sx-tab:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.sx-n { font: 500 .68rem/1 var(--body); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.sx-tab::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: #fff; transform-origin: left; transform: scaleX(0); }
.sx-tab.on::before { transform: scaleX(1); }
.place-show.sx-auto .sx-tab.on::before { animation: sx-fill 7s linear both paused; }
.place-show.sx-auto.sx-run .sx-tab.on::before { animation-play-state: running; }
@keyframes sx-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sx-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.sx-prev, .sx-next { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5);
  background: transparent; color: #fff; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.sx-prev:hover, .sx-next:hover { background: #fff; border-color: #fff; color: #1f3a4a; }
.sx-prev svg, .sx-next svg { width: 18px; height: 18px; }
.sx-prev svg { transform: rotate(180deg); }
.btn.sx-all { margin-left: 8px; white-space: nowrap; }
@media (min-width: 1200px) {
  .sx-bar { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(28px, 3vw, 56px); align-items: end; }
}
/* the bar takes two rows here, so the prints are a little smaller and it all still fits one screen */
@media (min-width: 900px) and (max-width: 1199px) { .sx-slide { --ch: clamp(260px, 43vh, 480px); } }
@media (max-width: 899px) {
  /* phones and small tablets: "01 / 06" at the top does the counting, and the arrows and the link share the bar */
  .sx-tabs { display: none; }
  .sx-nav { justify-content: flex-start; }
  .btn.sx-all { margin-left: auto; }
  .sx-slide { --ch: clamp(230px, 37svh, 380px); }
  .sx-head { padding-top: calc(var(--hh, 72px) + 18px); }
  .sx-stage { perspective: 1000px; }
  /* a tighter fan, so the back prints stay on the screen */
  .sx-card:nth-child(1) { --x: -17%; --r: -8deg; --z: -110px; }
  .sx-card:nth-child(2) { --x: 16%; --r: 7deg; --z: -60px; }
  .place-show h3.sx-name { font-size: min(15vw, 4.6rem); transform: translate(-50%, -50%) translate3d(0, 0, calc(120px + var(--dz))); }
}
@media (prefers-reduced-motion: reduce) {
  .sx-bgs, .sx-glare { transform: none; }
  .sx-bgs img, .sx-bgs img.on, .sx-card, .sx-slide.on .sx-card, .sx-slide.off .sx-card, h3.sx-name, .sx-slide.on h3.sx-name,
  .sx-name > span > span, .sx-slide.on .sx-name > span > span, .sx-line, .sx-slide.on .sx-line { transition: none; filter: none; }
}

/* home, "Best recommended trips": the words hold still on the left while the tiles go by on the right. The first
   tour is a wide feature tile, and the last tile leads to all the tours. */
.band.trips .wrap { display: grid; gap: 36px; }
.tg-intro h2 { margin: 0 0 .45em; text-align: left; }
.tg-intro p:not(.kicker) { max-width: 30rem; }
.tg-intro p:last-child { margin: 1.8em 0 0; }
.grid.tiles.feature { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature > .tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.feature > .tile:first-child .tile-t { font-size: clamp(2.3rem, 3.6vw, 3.8rem); }
.tile-all { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 4 / 5; padding: 24px;
  border-radius: 6px; background: #eef8fd; color: #1f3a4a; text-align: center; transition: background .3s; }
.tile-all:hover { background: #e1f2fb; color: #1f3a4a; }
.tile-all-n { font: 400 clamp(5.5rem, 9vw, 8.5rem)/.85 var(--serif); color: var(--brand-sky); letter-spacing: -.03em; }
.tile-all-t { font: 400 clamp(1.7rem, 2.2vw, 2.2rem)/1.1 var(--serif); }
.tile-all-s { font-size: .9rem; color: #4a6170; }
.tile-all-go { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 14px; border: 1px dashed currentColor; border-radius: 50%; transition: transform .3s; }
.tile-all:hover .tile-all-go { transform: rotate(-45deg); }
@media (min-width: 1100px) {
  .band.trips .wrap { grid-template-columns: minmax(260px, .72fr) 2fr; column-gap: clamp(40px, 5vw, 100px); align-items: start; }
  .tg-intro { position: sticky; top: 130px; }
}
/* phones: the tiles become a row you swipe through */
@media (max-width: 699px) {
  .grid.tiles, .grid.tiles.feature { display: flex; gap: 12px; margin-left: -20px; margin-right: -20px; padding: 0 20px 4px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
  .grid.tiles::-webkit-scrollbar { display: none; }
  .grid.tiles > * { flex: 0 0 86%; scroll-snap-align: start; }
  .tile-kick { letter-spacing: .14em; }
  .feature > .tile:first-child { aspect-ratio: 4 / 5; }
  .feature > .tile:first-child .tile-t { font-size: clamp(1.9rem, 8vw, 2.5rem); }
}

/* ---------- category pages: the full-screen question, on the photo of the category */
.month-ask { position: fixed; inset: 0; z-index: 290; display: grid; place-items: center; padding: 24px; overflow-y: auto;
  opacity: 0; transition: opacity .5s ease; }
.month-ask[hidden] { display: none; }
.month-ask.show { opacity: 1; }
.month-ask:focus { outline: none; }
html.ma-open, html.ma-open body { overflow: hidden; }
/* the photo settles slowly while the question is up */
.ma-photo { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.08);
  transition: transform 9s cubic-bezier(.2, .7, .2, 1); }
.month-ask.show .ma-photo { transform: none; }
.ma-shade { position: fixed; inset: 0; background: radial-gradient(ellipse at center, rgba(6, 14, 22, .5) 0%, rgba(6, 14, 22, .74) 100%); }
.ma-box { position: relative; width: min(1060px, 100%); text-align: center; color: #fff; }
.ma-kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 16px; color: #fff;
  font: 600 .74rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.ma-kicker::before, .ma-kicker::after { content: ""; width: 28px; height: 1px; background: var(--brand-yellow); }
.ma-title { margin: 0 0 16px; color: #fff; text-align: center; font: 400 clamp(2.6rem, 7vw, 4.6rem)/1.02 var(--serif);
  text-shadow: 0 6px 40px rgba(0, 0, 0, .3); }
.ma-text { max-width: 30rem; margin: 0 auto 34px; color: rgba(255, 255, 255, .88); line-height: 1.6; }
/* the twelve months in one row of glass tiles, each with the weather these tours have then: a yellow sun (best),
   a sun behind a cloud (mixed) or rain. Pointing at one lifts it and fills in the line under the row. */
.ma-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.ma-m { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; padding: 18px 0 15px;
  border: 1px solid rgba(255, 255, 255, .26); border-radius: 14px; background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .25s, border-color .25s, box-shadow .35s, color .25s; }
.ma-ic { display: grid; place-items: center; height: 28px; }
.ma-ic svg { width: 28px; height: 28px; stroke-width: 1.5; }
.ma-m.G .ma-ic { color: var(--brand-yellow); }
.ma-m.G .ma-ic circle { fill: currentColor; }
.ma-m.M .ma-ic { color: #f3e3b0; }
.ma-m.R .ma-ic { color: #9edcf6; }
.ma-l { font: 600 1rem/1 var(--title); }
.ma-w { font: 600 .7rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.ma-m.G { border-color: rgba(251, 220, 3, .42); background: rgba(251, 220, 3, .09); }
.ma-m.G .ma-w { color: rgba(251, 236, 140, .9); }
.ma-m.R { background: rgba(255, 255, 255, .04); }
.ma-m.R :is(.ma-l, .ma-w) { opacity: .78; }
.ma-m:hover, .ma-m:focus-visible { transform: translateY(-5px); background-color: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24); }
.ma-m:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 3px; }
/* the month picked turns white for a moment before the question lifts away */
.ma-m.picked { transform: translateY(-5px); background-color: #fff; border-color: #fff; color: #1f3a4a; box-shadow: 0 16px 34px rgba(0, 0, 0, .24); }
.ma-m.picked .ma-w { color: #5b7383; }
.ma-m.picked.G .ma-ic { color: #f2b705; }
.ma-m.picked.M .ma-ic { color: #c9a24a; }
.ma-m.picked.R .ma-ic { color: var(--brand-blue); }
.ma-say { min-height: 1.6em; margin: 22px auto 0; color: rgba(255, 255, 255, .82); font-size: .95rem; text-wrap: balance; }
.ma-say b { color: #fff; font-weight: 600; }
.ma-say i { margin: 0 .55em; font-style: normal; color: rgba(255, 255, 255, .4); }
.ma-foot { margin: 18px 0 0; }
.ma-skip { padding: 6px 4px; border: 0; background: none; color: #fff; cursor: pointer; font: 600 .92rem var(--title);
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 6px; }
.ma-skip:hover { text-decoration-color: #fff; }
.month-ask.show .ma-box > * { animation: hh-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.month-ask.show .ma-box > :nth-child(2) { animation-delay: .08s; }
.month-ask.show .ma-box > :nth-child(3) { animation-delay: .16s; }
.month-ask.show .ma-box > :nth-child(4) { animation-delay: .24s; }
.month-ask.show .ma-box > :nth-child(5) { animation-delay: .32s; }
.month-ask.show .ma-box > :nth-child(6) { animation-delay: .4s; }
/* the tiles rise one after another, January first ("backwards": once in, the tiles' own lift on hover takes over) */
.month-ask.show .ma-box > .ma-months { animation: none; }
.month-ask.show .ma-m { animation: hh-up .8s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(.22s + var(--i, 0) * 40ms); }
@media (max-width: 980px) { .ma-months { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ma-months { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .ma-m { gap: 7px; padding: 13px 0 11px; border-radius: 12px; }
  .ma-ic, .ma-ic svg { width: 24px; height: 24px; }
  .ma-text { margin-bottom: 26px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .month-ask, .month-ask.show .ma-box > *, .month-ask.show .ma-m, .ma-photo { transition: none; animation: none; }
  .ma-photo { transform: none; }
}

/* ---------- the monsoon map: Sri Lanka's 25 districts inside a ring of the months (guide page, and under the home wheel).
   A small sun travels round the ring; districts turn gold (sunny), sand (mixed) or monsoon blue (rainy), and rain
   falls only over the rainy ones. --r is the ring's radius; the month buttons sit just outside it. */
/* top-aligned (not centred): the panel's text changes length from month to month, and centring would make
   the map jump up and down as it does */
.dial-wrap { display: grid; gap: 44px; max-width: 1240px; margin: 54px auto 0; align-items: start; }
@media (min-width: 900px) { .dial-wrap { grid-template-columns: auto minmax(0, 1fr); gap: clamp(48px, 6vw, 110px); } }
.dial { --size: clamp(320px, 44vw, 600px); --r: calc(var(--size) / 2 - 56px); position: relative; width: var(--size); height: var(--size); margin: 0 auto; }
@media (max-width: 600px) { .dial, .island-dial .dial { --size: min(94vw, 400px); } }
.dial-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border: 1px solid #cfdde5; border-radius: 50%; }
/* a zero-size pivot in the middle that turns, carrying the sun on the ring (zero-size so turning it never pokes
   out past the edge of the page) */
.dial-sun { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.dial-sun i { position: absolute; left: 0; top: calc(var(--r) * -1); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--brand-yellow); box-shadow: 0 0 0 6px rgba(251, 220, 3, .25), 0 0 26px rgba(251, 220, 3, .6); }
.dial-m { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #5b7383; cursor: pointer; font: 600 .72rem var(--title); letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(calc(var(--i) * 30deg)) translateY(calc((var(--r) + 34px) * -1)) rotate(calc(var(--i) * -30deg)); transition: background .3s, color .3s; }
.dial-m:hover { background: #e9f1f5; color: #1f3a4a; }
.dial-m.on { background: #1f3a4a; color: #fff; }
.dial-m:focus-visible { outline: 2px solid var(--brand-sky); outline-offset: 2px; }
/* the map, centred in the ring and as big as fits inside it */
.dial-map { position: absolute; left: 50%; top: 50%; height: calc((var(--r) - 14px) / .533); width: auto; aspect-ratio: 563.5 / 1000;
  max-width: none; transform: translate(-50%, -50%); overflow: visible; }
.dm-d { stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; cursor: pointer; transition: fill .7s ease; }
.dm-d.G { fill: #efb54a; }
.dm-d.M { fill: #ddd5c4; }
.dm-d.R { fill: #6f9fca; }
.dm-d:hover { fill-opacity: .85; }
.dm-prov { fill: none; stroke: #1f3a4a; stroke-opacity: .5; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.dm-rain { pointer-events: none; }
/* raindrops: rings that open and fade, like drops landing on water (the line keeps the same on-screen
   thickness however big the map is drawn) */
.dm-drop { fill: none; stroke: #fff; stroke-width: 1.3px; vector-effect: non-scaling-stroke; opacity: 0;
  transform-box: fill-box; transform-origin: center; animation: dm-drop 2.8s cubic-bezier(.2, .6, .3, 1) infinite; }
.dial-rest .dm-drop { animation-play-state: paused; }   /* the map is off screen (site.js) */
@keyframes dm-drop {
  0% { transform: scale(.08); opacity: .95; }
  65% { opacity: .3; }
  100% { transform: scale(1); opacity: 0; }
}
/* point at a district: its name, province and weather */
.dial-tip { position: absolute; z-index: 3; margin: 0; padding: 9px 13px; transform: translate(-50%, calc(-100% - 14px)); border-radius: 8px;
  background: #fff; box-shadow: 0 10px 30px rgba(17, 61, 72, .16); color: #1f3a4a; font-size: .8rem; line-height: 1.5; white-space: nowrap; pointer-events: none; }
.dial-tip[hidden] { display: none; }
.dial-tip strong { font: 400 1.15rem var(--serif); }
.dial-tip span { display: inline-flex; align-items: center; gap: 7px; color: #5b7383; }
/* the panel beside the map */
.band .wrap .dial-info p, .island-dial .dial-info p { max-width: none; text-align: left; }
.dial-name { margin: 0; color: #1f3a4a; font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif); }
.dial-sum { margin: 10px 0 16px; color: #4a6170; font-size: 1rem; }
.dial-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 22px; }
.dial-legend span, .dial-tip span { display: inline-flex; align-items: center; gap: 8px; }
.dial-legend span { color: #5b7383; font: 600 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; }
.dial-legend span::before, .dial-tip span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #c9c1ad; }
.dial-legend .G::before, .dial-tip .G::before { background: #efb54a; }
.dial-legend .R::before, .dial-tip .R::before { background: #6f9fca; }
.dial-regions { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid #dde7ed; }
.dial-regions li { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 13px 0; border-bottom: 1px solid #dde7ed; }
.dr-name { color: #1f3a4a; font: 400 clamp(1.2rem, 1.7vw, 1.45rem)/1.15 var(--serif); }
.dr-name small { display: block; margin-top: 3px; color: #8aa3b2; font: 500 .8rem var(--body); }
.dr-st { display: inline-flex; align-items: center; gap: 8px; color: #1f3a4a; white-space: nowrap;
  font: 600 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; }
.dial-k { margin: 0 0 6px; color: var(--blue); font: 600 .74rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; }
/* room kept for the longest month (two lines of "what's on", three of tours), so the panel stays one height */
.dial-sum { min-height: 1.5em; line-height: 1.5; }
.dial-on { min-height: 2.9em; margin: 0 0 20px; color: #1f3a4a; font: italic 400 1.15rem/1.45 var(--serif); }
.dial-tours { min-height: 5.4em; margin: 0 0 20px; color: #8aa3b2; font-size: .95rem; line-height: 1.8; }
@media (max-width: 600px) { .dial-sum { min-height: 3em; } .dial-on { min-height: 4.35em; } .dial-tours { min-height: 9em; } }   /* narrow: more lines */
.dial-tours a, .mg-tours a { color: #1f3a4a; text-decoration: underline; text-decoration-color: #b9cbd6; text-underline-offset: 4px; }
.dial-tours a:hover, .mg-tours a:hover { color: var(--brand-blue); text-decoration-color: currentColor; }
.dial-more { display: inline-flex; align-items: center; gap: 8px; color: #1f3a4a; font: 600 .9rem var(--title); }
.dial-more svg { width: 15px; height: 15px; }
.map-credit { max-width: 1240px; margin: 18px auto 0; color: #8aa3b2; font-size: .72rem; text-align: center; }
.band .wrap > p.map-credit { text-align: center; }
@media (prefers-reduced-motion: reduce) { .dm-drop { animation: none; opacity: .4; } .dial-sun, .dm-d { transition: none; } }

/* ---------- home page: the monsoon map in its own section under the tour wheel. Scrolling over the map turns
   the months (site.js); the page itself scrolls past as normal. */
.island-dial { position: relative; padding: 100px 0; background: #f6fafc; }
.id-head { max-width: 1240px; margin: 0 auto; }
.id-head h2 { margin: 0 0 10px; color: #1f3a4a; text-align: left; }
.id-text { max-width: 34rem; margin: 0; color: #4a6170; }
.id-phone { display: none; }
@media (max-width: 979px) { .id-desk { display: none; } .id-phone { display: inline; } }
.island-dial .dial-wrap { margin-top: 26px; }
@media (min-width: 601px) { .island-dial .dial { --size: clamp(320px, min(40vw, 62vh), 560px); } }
.island-dial .map-credit { margin-top: 6px; }

/* ---------- home: the train to Ella ({{ella-ride}}). A wide train window onto the hill country line: the sky, the
   mountains, the tea hills and the trackside drift past on their own, each at its own speed (the speeds are set in
   build.py), like the view from the carriage. The way in to the full ride at /ella-train/ sits on the view itself. */
.ella-ride { background: #f6fafc; overflow: hidden; }
/* the window: rounded like a carriage window, in a white frame */
.er-win { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; height: clamp(540px, 150vw, 640px);
  margin: 6px; border-radius: 20px; background: linear-gradient(180deg, #c6d8e4, #e9dcc0 70%, #8fa982);
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(31, 58, 74, .08), 0 30px 60px rgba(10, 24, 34, .18); }
.er-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.er-l { position: absolute; left: 0; right: 0; }
.er-s { position: absolute; left: 0; top: 0; display: flex; width: max-content; height: 100%; will-change: transform;
  animation: er-drift var(--d) linear infinite paused; }
.er-s img { display: block; flex: none; width: auto; height: 100%; max-width: none; }
@keyframes er-drift { to { transform: translate3d(-50%, 0, 0); } }
/* the glass: a soft glare, a little shade at its edges, and a darker shade where the words sit */
.er-glass { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .07) 72%, rgba(255, 255, 255, 0) 84%),
    linear-gradient(0deg, rgba(8, 22, 30, .82) 0%, rgba(8, 22, 30, .5) 38%, rgba(8, 22, 30, 0) 66%);
  box-shadow: inset 0 12px 30px rgba(0, 0, 0, .16); }
/* the words, on the view */
.er-text { position: relative; z-index: 2; width: 100%; padding: 0 22px 26px; color: #fff; }
.er-text .kicker { color: rgba(255, 255, 255, .88); }
.er-text h2 { margin: 0 0 .35em; color: #fff; text-align: left; font-size: clamp(2.5rem, 9vw, 4.6rem); text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.er-text h2 em { font-style: italic; }
.er-text p:not(.kicker):not(.er-btns) { max-width: 30rem; margin: 0; color: rgba(255, 255, 255, .88); }
.er-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }
.er-chip { position: absolute; right: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; padding: 7px 14px;
  border-radius: 30px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #1f3a4a; font: 600 .78rem/1.2 var(--title); }
/* the line from Kandy to Ella under the window, with a small yellow train running along it */
.er-route { position: relative; margin: 36px 20px 0; }
.er-track { position: relative; display: block; height: 2px; background: rgba(31, 58, 74, .14); }
.er-loco { position: absolute; top: -6px; left: 0; z-index: 1; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--brand-yellow); box-shadow: 0 0 0 4px rgba(251, 220, 3, .3), 0 1px 3px rgba(0, 0, 0, .2);
  animation: er-run 30s cubic-bezier(.45, 0, .55, 1) infinite paused; }
@keyframes er-run { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 86% { left: 100%; opacity: 1; } 96% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
.er-route ol { position: relative; height: 32px; margin: -1px 0 0; padding: 0; list-style: none; }
.er-route li { position: absolute; top: 0; margin: 0; padding-top: 15px; transform: translateX(-50%); white-space: nowrap;
  font: 600 .64rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #6b8190; }
.er-route li::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #f6fafc; border: 2px solid rgba(31, 58, 74, .3); }
.er-route li:first-child, .er-route li:last-child { color: #1f3a4a; }
.er-route li:first-child::before, .er-route li:last-child::before { background: var(--brand-sky); border-color: var(--brand-sky); }
/* the last words on the home page, under the line: they answer the hero's "Sri Lanka, planned around you." */
.er-end { max-width: 46rem; margin: clamp(80px, 9vw, 140px) auto clamp(10px, 2vw, 30px); text-align: center; }
.band .wrap .er-end h2 { margin: 0 0 .4em; color: #1f3a4a; text-align: center; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1.02; }
.er-end h2 em { font-style: italic; color: var(--blue); }
.band .wrap .er-end p { max-width: 32rem; margin: 0 auto; color: #4a6170; font-size: 1.08rem; }
.band .wrap .er-end p:has(.btn) { margin-top: 2em; }
/* moving only while the section is on screen (site.js), and never for people who asked for less motion */
.ella-ride.er-on .er-s, .ella-ride.er-on .er-loco { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .er-s, .er-loco { animation: none; } }
@media (min-width: 800px) {
  /* a wide window, the words on its left over a shade that fades out across the view */
  .er-win { align-items: center; height: clamp(480px, 40vw, 680px); margin: 10px; border-radius: 28px;
    box-shadow: 0 0 0 10px #fff, 0 0 0 11px rgba(31, 58, 74, .08), 0 34px 70px rgba(10, 24, 34, .2); }
  .er-glass { background:
      linear-gradient(115deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .07) 72%, rgba(255, 255, 255, 0) 84%),
      linear-gradient(90deg, rgba(8, 22, 30, .78) 0%, rgba(8, 22, 30, .5) 32%, rgba(8, 22, 30, 0) 62%); }
  .er-text { max-width: 600px; padding: 40px clamp(32px, 4.5vw, 72px); }
  .er-text h2 { font-size: clamp(3rem, 5.2vw, 5.6rem); }
  .er-chip { right: 22px; top: 22px; }
}
@media (max-width: 699px) {
  /* phones: only the two ends of the line are named */
  .er-route li:not(:first-child):not(:last-child) { font-size: 0; }
}

/* ---------- best time to visit: the year planner ({{month-guide}}). The regions are rows and the months columns
   side by side, so the good seasons read as bands of gold; a frame slides to the chosen month and its details
   show underneath. The same gold / sand / blue as the month strip on destination pages. */
.yp { max-width: 1280px; margin: 52px auto 0; }
.yp-grid { position: relative; display: grid; grid-template-columns: minmax(170px, 250px) repeat(12, minmax(0, 1fr)); gap: 6px 5px; align-items: center; }
.yp-m { height: 40px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 .74rem/1 var(--body); letter-spacing: .12em;
  text-transform: uppercase; color: #8aa3b2; transition: color .25s; }
.yp-m:hover, .yp-m[aria-pressed="true"] { color: #1f3a4a; }
.yp-m:focus-visible { outline: 2px solid var(--brand-sky); outline-offset: 2px; border-radius: 6px; }
.yp-region { margin: 0; padding-right: 18px; }
.yp-region strong { display: block; font: 400 1.4rem/1.15 var(--serif); color: #1f3a4a; }
.yp-region small { display: block; margin-top: 3px; font-size: .8rem; line-height: 1.4; color: #5b7383; }
.yp-c { height: 56px; border-radius: 4px; cursor: pointer; transition: opacity .4s; }
.yp-c.G, .ypm-dot.G { background: #f2c75c; }
.yp-c.M, .ypm-dot.M { background: #ddd5c2; }
.yp-c.R, .ypm-dot.R { background: #9dbedd; }
.yp-grid.picked .yp-c:not(.on) { opacity: .7; }
.yp-grid.picked .yp-c:not(.on):hover { opacity: .9; }
.yp-frame { position: absolute; top: 0; left: 0; width: 0; height: 0; border: 1.5px solid #1f3a4a; border-radius: 9px; pointer-events: none; opacity: 0;
  transition: left .55s cubic-bezier(.2, .7, .2, 1), width .55s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.yp-grid.picked .yp-frame { opacity: 1; }
.yp-key { margin: 20px 0 0; }
/* the chosen month */
.yp-detail { position: relative; margin: 48px 0 0; padding: 40px 0 0; border-top: 1px solid #cfdde5; }
.ypm-nav { position: absolute; top: 40px; right: 0; z-index: 1; display: flex; gap: 10px; }
.ypm-nav button { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #1f3a4a;
  background: transparent; color: #1f3a4a; cursor: pointer; transition: background .2s, color .2s; }
.ypm-nav button svg { width: 18px; height: 18px; }
.ypm-nav button:hover { background: #1f3a4a; color: #fff; }
.ypm-prev svg { transform: rotate(180deg); }
.yp:not(.js) .ypm-nav { display: none; }
.yp-months { display: grid; }
.yp:not(.js) .yp-month + .yp-month { margin-top: 56px; }
.yp.js .yp-month { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility 0s .3s; }
.yp.js .yp-month.on { opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s .12s, transform .6s .12s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.ypm-head { margin: 0 0 32px; padding-right: 136px; }
.ypm-n { margin: 0 0 10px; font: 500 .76rem/1 var(--body); letter-spacing: .16em; color: var(--brand-sky); }
.ypm-head h3 { margin: 0; font: 400 clamp(2.3rem, 3.8vw, 3.4rem)/1.02 var(--serif); color: #1f3a4a; }
.ypm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(32px, 4vw, 64px); }
.ypm-cols > div { padding-top: 20px; border-top: 1px solid #1f3a4a; }
.ypm-wx, .ypm-on, .ypm-tours { list-style: none; margin: 0; padding: 0; }
.ypm-wx li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid #d6e3ea; color: #1f3a4a; }
.ypm-dot { flex: none; width: 11px; height: 11px; border-radius: 3px; }
.ypm-r { flex: 1; font-weight: 500; }
.ypm-s { font: 600 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #5b7383; }
.ypm-on li { margin: 0; padding: 10px 0; border-bottom: 1px solid #d6e3ea; font: italic 400 1.35rem/1.35 var(--serif); color: #1f3a4a; }
.ypm-tours li { margin: 0; border-bottom: 1px solid #d6e3ea; }
.ypm-tours a { display: flex; align-items: center; gap: 14px; padding: 9px 0; color: #1f3a4a; }
.ypm-tours img { flex: none; width: 66px; height: 50px; object-fit: cover; border-radius: 4px; }
.ypm-tours strong { display: block; font: 600 .92rem/1.3 var(--title); color: inherit; transition: color .2s; }
.ypm-tours small { color: #5b7383; font-size: .8rem; }
.ypm-tours a:hover strong { color: var(--brand-blue); }
.ypm-none { margin: 0; color: #4a6170; }
@media (max-width: 979px) {
  .ypm-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ypm-cols > div:last-child { grid-column: 1 / -1; }
}
/* phones: each region's name sits above its row of twelve squares; the months are single letters */
@media (max-width: 760px) {
  .yp { margin-top: 36px; }
  .yp-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px 3px; }
  .yp-corner { display: none; }
  .yp-m { height: 32px; letter-spacing: 0; font-size: .72rem; }
  .yp-m span { display: none; }
  .yp-region { grid-column: 1 / -1; padding: 14px 0 2px; }
  .yp-region strong { display: inline; font-size: 1.25rem; }
  .yp-region small { display: inline; margin: 0 0 0 8px; font-size: .74rem; }
  .yp-c { height: 32px; border-radius: 3px; }
  /* the sliding frame would cross the region names here, so the chosen month's squares get a ring instead */
  .yp-frame { display: none; }
  .yp-grid.picked .yp-c.on { box-shadow: inset 0 0 0 1.5px #1f3a4a; }
  .yp-m[aria-pressed="true"] { box-shadow: inset 0 -2px 0 #1f3a4a; border-radius: 0; }
  .yp-detail { margin-top: 36px; padding-top: 30px; }
  .ypm-nav { top: 30px; }
  .ypm-nav button { width: 44px; height: 44px; }
  .ypm-head { padding-right: 104px; margin-bottom: 24px; }
  .ypm-head h3 { font-size: 2.1rem; }
}
@media (max-width: 600px) { .ypm-cols { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .yp-frame, .yp.js .yp-month, .yp.js .yp-month.on, .yp-c { transition: none; } }

/* =====================================================================
   Destinations: /destinations/ (the island with a pin per place, and the places by region) and one page
   per place (build.py build_places). The place photos are small portraits (404 × 536), so nothing
   stretches them across the screen: they stand tall in stacks, rows and cards at about their own size.
   ===================================================================== */
/* ---------- the island and its pins */
.isle { position: relative; margin: 0; aspect-ratio: 563.5 / 1000; }
.isle img { width: 100%; height: 100%; }
.isle-pin, .isle-dot { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; }
.isle-dot { width: 6px; height: 6px; background: #a7c1cf; }
.isle-pin { width: 12px; height: 12px; background: #1f3a4a; box-shadow: 0 0 0 3px #fff; z-index: 1;
  transition: background .25s, box-shadow .25s; }
.isle-pin > span { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px); white-space: nowrap;
  background: #1f3a4a; color: #fff; font: 500 .78rem/1 var(--body); padding: 7px 10px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.isle-pin:hover, .isle-pin:focus-visible, .isle-pin.on { background: var(--brand-sky); z-index: 2;
  box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(41, 171, 226, .22); outline: 0; }
.isle-pin:hover > span, .isle-pin:focus-visible > span, .isle-pin.on > span, .isle-pin.here > span { opacity: 1; transform: translate(-50%, 0); }
.isle-pin.here { width: 14px; height: 14px; background: var(--brand-sky); }
.isle-pin.here::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--brand-sky);
  animation: isle-ping 2.4s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes isle-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }

/* ---------- /destinations/: the island stays beside the list on big screens */
.dest-index { display: grid; gap: 48px; max-width: 1480px; margin: 48px auto 0; }
.di-region + .di-region { margin-top: clamp(56px, 6vw, 88px); }
.di-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  margin: 0 0 24px; padding: 0 0 16px; border-bottom: 1px solid #dde7ed; }
.di-name { margin: 0; font: 400 clamp(1.9rem, 2.6vw, 2.5rem)/1.1 var(--serif); color: #1f3a4a; }
.di-meta { display: inline-flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font: 500 .74rem/1.4 var(--body); letter-spacing: .16em;
  text-transform: uppercase; color: #5b7383; }
.di-meta span { display: inline-flex; align-items: center; gap: 7px; }
.di-meta svg { color: #e2a43a; }
.di-cards, .dm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(14px, 1.4vw, 22px); }
.dm-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1240px; }
:is(.di-cards, .dm-cards) .place-card { border-radius: 6px; aspect-ratio: 3 / 4; }
:is(.di-cards, .dm-cards) .pc-text { padding: 70px 18px 18px; background: linear-gradient(transparent, rgba(12, 30, 40, .78)); }
:is(.di-cards, .dm-cards) .pc-text strong { font-size: clamp(1.5rem, 1.9vw, 1.85rem); }
:is(.di-cards, .dm-cards) .pc-text small { display: block; margin-top: 4px; font-size: .84rem; line-height: 1.4; opacity: .85; }
:is(.di-cards, .dm-cards) .place-card img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
:is(.di-cards, .dm-cards) .place-card:hover img { transform: scale(1.05); }
@media (min-width: 980px) {
  .dest-index { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: clamp(48px, 6vw, 110px); align-items: start; }
  .di-map { position: sticky; top: 120px; }
  .di-map .isle { width: min(100%, calc((100vh - 170px) * .5635)); margin: 0 auto; }
}
@media (max-width: 979px) { .di-map { display: none; } }
@media (max-width: 600px) {
  .di-cards, .dm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :is(.di-cards, .dm-cards) .pc-text { padding: 48px 12px 12px; }
  :is(.di-cards, .dm-cards) .pc-text strong { font-size: 1.3rem; }
  :is(.di-cards, .dm-cards) .pc-text small { display: none; }
}
.dest-index.solo { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }

/* ---------- /destinations/: the big engraved island ({{place-map}}, build.py place_map, site.js). Pointing at
   it lights up the nearest place; choosing one shows its card beside the map (a sheet from the bottom on phones) */
.pmap { display: grid; gap: 32px; max-width: 1240px; margin: 56px auto 0; }
.pm-map { margin: 0; width: 100%; }
.pm-map svg { display: block; width: 100%; height: auto; overflow: visible; -webkit-tap-highlight-color: transparent; }
.pm-map .tm-credit { text-align: center; }
.pm-pin { cursor: pointer; outline: 0; }
.pm-hit { fill: transparent; stroke: none; }
.pm-dot { fill: #1f3a4a; stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center;
  transition: fill .25s, transform .4s cubic-bezier(.2, .7, .2, 1); }
.pm-ring { fill: none; stroke: #e2a43a; stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pm-pin text { font: 600 18px/1 var(--body); letter-spacing: 1.2px; fill: #1f3a4a; paint-order: stroke; stroke: #fff;
  stroke-width: 6px; stroke-linejoin: round; transition: opacity .3s; }
.pm-pin .pm-small { display: none; font-size: 30px; letter-spacing: 0; stroke-width: 8px; }
.pm-pin.hot .pm-dot, .pm-pin.chosen .pm-dot, .pm-pin:focus-visible .pm-dot { fill: #f2c75c; transform: scale(1.4); }
.pm-pin:focus-visible .pm-dot { stroke: var(--brand-sky); }
.pmap.has-hot .pm-pin:not(.hot, .chosen) text { opacity: .35; }
.pm-pin.chosen .pm-ring { animation: pm-ping 2.2s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes pm-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.6); } }

.pm-side { min-width: 0; }
.pm-hint { display: flex; align-items: center; gap: 16px; margin: 0 0 30px; font: 400 clamp(1.7rem, 2.3vw, 2.2rem)/1.15 var(--serif); color: #1f3a4a; }
.pm-hint-dot { position: relative; flex: none; width: 13px; height: 13px; border-radius: 50%; background: #f2c75c; box-shadow: 0 0 0 3px #fff; }
.pm-hint-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #e2a43a;
  animation: isle-ping 2.4s cubic-bezier(.2, .7, .2, 1) infinite; }
.pm-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.pm-reg-n, .pm-label, .pm-kick { margin: 0 0 10px; font: 600 .7rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #5b7383; }
.pm-reg-n { padding-bottom: 9px; border-bottom: 1px solid #dde7ed; }
.pm-reg ul, .pm-sights, .pm-tours { list-style: none; margin: 0; padding: 0; }
.pm-reg li, .pm-sights li, .pm-tours li { margin: 0; padding: 0; }
.pm-reg a { display: inline-block; padding: 4px 0; font: 400 1.3rem/1.3 var(--serif); color: #1f3a4a; text-decoration: none;
  transition: color .2s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.pm-reg a:hover, .pm-reg a.hot, .pm-reg a:focus-visible { color: var(--brand-blue); transform: translateX(5px); }

.pm-place:not(.on) { display: none; }
.pm-place { position: relative; }
.pm-place > *, .pm-start { animation: pm-in .6s cubic-bezier(.2, .7, .2, 1) both; }
.pm-place > :nth-child(2) { animation-delay: .04s; }
.pm-place > :nth-child(3) { animation-delay: .1s; }
.pm-place > :nth-child(4) { animation-delay: .16s; }
.pm-place > :nth-child(5) { animation-delay: .22s; }
.pm-place > :nth-child(n+6) { animation-delay: .28s; }
@keyframes pm-in { from { opacity: 0; transform: translateY(12px); } }
.pm-place:focus { outline: 0; }
.pm-back { display: inline-flex; align-items: center; margin: 0 0 22px; padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: 600 .7rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #5b7383; }
.pm-back:hover { color: var(--brand-blue); }
.pm-back-t { display: inline-flex; align-items: center; gap: 10px; }
.pm-back svg { width: 16px; height: 16px; transform: rotate(180deg); fill: none; stroke: currentColor; stroke-width: 2; }
.pm-x { display: none; }
.pm-top { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); gap: 26px; align-items: end; }
.pm-ph { display: block; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: #e6eef2; }
.pm-ph img, .pm-sph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pm-name { margin: 0; font: 400 clamp(2.6rem, 4vw, 3.7rem)/.95 var(--serif); color: #1f3a4a; text-align: left; }
.pm-tag { margin: 12px 0 0; font: italic 400 1.2rem/1.3 var(--serif); color: #4a6170; text-align: left; }
.pm-best { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font: 500 .72rem/1.4 var(--body);
  letter-spacing: .14em; text-transform: uppercase; color: #5b7383; }
.pm-best svg { width: 18px; height: 18px; fill: none; stroke: #e2a43a; stroke-width: 1.8; }
.band .pmap p { max-width: none; text-align: left; }
.pm-say { margin: 24px 0 0; font-size: 1rem; line-height: 1.65; color: #4a6170; }
.pm-block { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #dde7ed; }
.pm-label { margin-bottom: 12px; }
.pm-sights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pm-sights li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pm-sph { flex: none; width: 58px; height: 58px; border-radius: 6px; overflow: hidden; background: #e6eef2; }
.pm-sn { font-size: .86rem; line-height: 1.3; color: #1f3a4a; }
.pm-tours a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0;
  border-bottom: 1px solid #eef2f4; color: #1f3a4a; text-decoration: none; }
.pm-tt { font: 400 1.2rem/1.25 var(--serif); transition: color .2s; }
.pm-td { flex: none; font: 500 .7rem/1.6 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #5b7383; }
.pm-tours a:hover .pm-tt { color: var(--brand-blue); }
.pm-more { display: inline-block; margin-top: 10px; font-size: .88rem; color: var(--brand-blue); }
.pm-none { margin: 0; color: #4a6170; }
.pm-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin: 24px 0 0; }
.pm-go { margin: 0; }
.pm-near { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pm-near span { margin-right: 6px; font: 600 .7rem/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #5b7383; }
.pm-near button { padding: 8px 15px; border: 1px solid #d5e1e8; border-radius: 99px; background: #fff; cursor: pointer;
  font: 500 .86rem/1 var(--body); color: #1f3a4a; transition: border-color .2s, background .2s; }
.pm-near button:hover { border-color: var(--brand-sky); background: #f1f9fd; }
@media (min-width: 980px) {
  .pmap { grid-template-columns: auto minmax(380px, 520px); justify-content: center; gap: clamp(48px, 6vw, 110px); }
  .pm-map { width: min(52vw, calc((100vh - 150px) * .6909)); position: sticky; top: 84px; align-self: start; }
  .pm-side { padding-top: clamp(16px, 7vh, 90px); }
  .pmap.chose .pm-side { padding-top: 8px; }
  .pmap.chose .pm-start { display: none; }
  .pm-back { margin-bottom: 14px; }
  .pm-top { grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); }
  .pm-say { margin-top: 18px; }
  .pm-block { margin-top: 18px; padding-top: 14px; }
  .pm-tours a { padding: 7px 0; }
}
@media (max-width: 979px) {
  .pmap { margin-top: 32px; }
  .pm-map { width: min(100%, 520px); justify-self: center; }
  .pm-pin .pm-big { display: none; }
  .pm-pin .pm-small { display: inline; }
  .pm-hint { font-size: 1.6rem; margin-bottom: 22px; }
  .pm-place.on { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; max-height: min(60vh, 600px); overflow-y: auto;
    overscroll-behavior: contain; padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); background: #fff;
    border-radius: 18px 18px 0 0; box-shadow: 0 -18px 50px rgba(12, 30, 40, .22); animation: pm-sheet .45s cubic-bezier(.2, .7, .2, 1) both; }
  .pm-place.on::before { content: ""; display: block; width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: #d5e1e8; }
  .pm-place.on > * { animation: none; }
  .pm-back { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; margin: 0; padding: 0; justify-content: center;
    border-radius: 50%; background: #f1f5f7; }
  .pm-back-t { display: none; }
  .pm-x { display: block; font: 400 1.6rem/1 var(--body); color: #1f3a4a; letter-spacing: 0; }
  .pm-top { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; padding-right: 44px; }
  .pm-name { font-size: 2.3rem; }
  .pm-tag { margin-top: 6px; font-size: 1.02rem; }
  .pm-best { margin-top: 8px; }
  .pm-say { margin-top: 16px; font-size: .95rem; }
  .pm-block { margin-top: 18px; padding-top: 14px; }
  .pm-go { flex: 1 1 100%; }
  .pm-go .btn { width: 100%; }
  .pm-sights li { flex-direction: column; align-items: stretch; gap: 6px; }
  .pm-sph { width: auto; height: auto; aspect-ratio: 1; }
  .pm-sn { font-size: .8rem; }
}
@media (max-width: 480px) { .pm-regions { gap: 22px 20px; } .pm-reg a { font-size: 1.15rem; } }
@keyframes pm-sheet { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .pm-pin.chosen .pm-ring, .pm-hint-dot::after { animation: none; }
  .pm-place > *, .pm-start, .pm-place.on { animation: none; }
}

/* ---------- a destination page: the name beside three tall photos */
.dest-hero { background: #eef6f9; padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 110px); overflow: hidden; }
.dh-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; max-width: 1480px; margin: 0 auto; }   /* one column no wider than the screen: the photo row used to stretch it past a phone's edge */
.dest-hero .crumbs { margin: 0 0 clamp(32px, 5vw, 72px); font-size: .86rem; color: #5b7383; }
/* arriving from a tour's itinerary (site.js "from a tour to a place and back"): the way back to that tour and day,
   in place of the breadcrumbs, and the same as a small pill in the corner once the top has scrolled away */
.dh-back { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 clamp(32px, 5vw, 72px); padding: 10px 20px 10px 14px;
  border: 1px solid rgba(31, 58, 74, .16); border-radius: 48px; background: #fff; color: #1f3a4a; font: 600 .88rem/1.3 var(--title);
  box-shadow: 0 6px 18px -10px rgba(12, 52, 96, .3); transition: background-color .3s, border-color .3s, color .3s; }
.dh-back i, .tour-back i { flex: none; font-style: normal; white-space: nowrap; }
.dh-back b, .tour-back b { min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dh-back span, .tour-back span { flex: none; color: #5b7383; font-weight: 600; transition: color .3s; }
.dh-back svg, .tour-back svg { flex: none; width: 16px; height: 16px; transform: scaleX(-1); transition: transform .3s var(--glide, ease); }
.dh-back:hover, .tour-back:hover { background: var(--brand-blue, #1f74ba); border-color: var(--brand-blue, #1f74ba); color: #fff; }
.dh-back:hover span, .tour-back:hover span { color: rgba(255, 255, 255, .8); }
.dh-back:hover svg, .tour-back:hover svg { transform: scaleX(-1) translateX(4px); }
.tour-back { position: fixed; left: 24px; bottom: 24px; z-index: 69; display: inline-flex; align-items: center; gap: 9px;
  max-width: min(440px, calc(100vw - 120px)); padding: 12px 20px 12px 16px; border: 1px solid rgba(31, 58, 74, .12); border-radius: 48px;
  background: var(--paper, #fbfaf7); color: #1f3a4a; font: 600 .86rem/1.3 var(--title); box-shadow: 0 14px 34px -12px rgba(12, 52, 96, .45);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .35s ease, transform .5s var(--glide, ease), visibility 0s .5s, background-color .3s, border-color .3s, color .3s; }
.tour-back.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .5s var(--glide, ease), background-color .3s, border-color .3s, color .3s; }
html.lt-lock .tour-back, body.nav-open .tour-back, html.cb-lock .tour-back { display: none; }
@media (max-width: 640px) { .tour-back { left: 16px; bottom: 16px; padding: 11px 16px 11px 13px; font-size: .82rem; } }
@media print { .tour-back { display: none; } }
.dest-hero .crumbs a { color: #1f3a4a; }
.dest-hero .crumbs a:hover { color: var(--brand-blue); }
.dest-hero h1 { margin: 0 0 .18em; font-size: clamp(3.6rem, 8vw, 7.4rem); line-height: .92; color: #1f3a4a; }
.dh-tag { margin: 0 0 30px; font: italic 400 clamp(1.3rem, 2vw, 1.75rem)/1.3 var(--serif); color: #4a6170; }
.dh-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 36px; font: 500 .76rem/1.4 var(--body);
  letter-spacing: .16em; text-transform: uppercase; color: #1f3a4a; }
.dh-facts span { display: inline-flex; align-items: center; gap: 8px; }
.dh-facts svg { color: var(--brand-sky); }
.dh-facts span:first-child svg { color: #e2a43a; }
.dh-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin: 0; }
.dh-photos { display: grid; grid-template-columns: 1.18fr 1fr 1fr; gap: clamp(10px, 1.3vw, 20px); align-items: start; width: 100%; max-width: 840px; justify-self: end; }
.dh-ph { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: #dde7ed;
  animation: hh-up 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.dh-ph:nth-child(2) { margin-top: 22%; animation-delay: .12s; }
.dh-ph:nth-child(3) { margin-top: 9%; animation-delay: .24s; }
/* the pictures drift a little inside their frames as the page scrolls (site.js sets --dy) */
.dh-ph img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--dy, 0%), 0) scale(1.14); }
@media (min-width: 980px) { .dh-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 5vw, 96px); } }
@media (max-width: 979px) { .dh-photos { justify-self: stretch; max-width: 620px; } }

/* the opening text, with the island and the months beside it */
.dest-intro { padding-top: clamp(64px, 7vw, 112px); padding-bottom: clamp(48px, 5vw, 80px); }
.di-grid { display: grid; gap: 44px; max-width: 1280px; margin: 0 auto; }
.dest-intro .prose > p:first-child { font: 400 clamp(1.35rem, 1.75vw, 1.65rem)/1.5 var(--serif); color: #1f3a4a; }
.dest-glance { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px;
  border: 1px solid #dde7ed; border-radius: 6px; }
.dest-glance .isle { width: 116px; }
.dg-when .ci-kicker { margin-bottom: 14px; }
.mstrip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.mstrip span { display: grid; place-items: end center; height: 46px; padding-bottom: 7px; border-radius: 3px;
  font: 600 .66rem/1 var(--body); color: #1f3a4a; }
.mstrip .G, .mstrip-key .G::before { background: #f2c75c; }
.mstrip .M, .mstrip-key .M::before { background: #ddd5c2; }
.mstrip .R, .mstrip-key .R::before { background: #9dbedd; }
.mstrip-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font: 500 .74rem/1 var(--body); color: #5b7383; }
.mstrip-key span { display: inline-flex; align-items: center; gap: 6px; }
.mstrip-key span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.dg-note { margin: 14px 0 0; font-size: .9rem; line-height: 1.6; color: #4a6170; }
@media (min-width: 980px) { .di-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: clamp(48px, 6vw, 120px); align-items: start; } }
@media (max-width: 480px) { .dest-glance { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding: 20px; } .dest-glance .isle { width: 84px; } }

/* top attractions: a row of tall photos that slides sideways, with round arrows and a thin progress line */
.dest-sights { padding-top: 24px; }
.dest-sights .wrap { --edge: clamp(20px, 6vw - 40px, 72px); }
.ds-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin: 0 0 34px; }
.ds-head h2 { margin: 0; color: #1f3a4a; }
.ds-nav { display: flex; gap: 10px; }
.ds-nav button { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #1f3a4a;
  background: transparent; color: #1f3a4a; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.ds-nav button svg { width: 18px; height: 18px; }
.ds-nav button:hover:not(:disabled) { background: #1f3a4a; color: #fff; }
.ds-nav button:disabled { opacity: .28; cursor: default; }
.ds-nav.fits { visibility: hidden; }
.ds-prev svg { transform: rotate(180deg); }
.ds-list { display: flex; gap: clamp(14px, 1.6vw, 24px); list-style: none; margin: 0 calc(-1 * var(--edge)); padding: 0 var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--edge); scrollbar-width: none; }
.ds-list::-webkit-scrollbar { display: none; }
.ds-list li { flex: 0 0 clamp(230px, 23vw, 340px); margin: 0; scroll-snap-align: start; }
.ds-list figure { margin: 0; }
.ds-ph { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: #dde7ed; }
.ds-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.ds-list li:hover .ds-ph img { transform: scale(1.04); }
.ds-list figcaption { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 0; font: 400 1.45rem/1.2 var(--serif); color: #1f3a4a; }
.ds-n { flex: none; font: 500 .74rem/1 var(--body); letter-spacing: .14em; color: var(--brand-sky); }
.ds-bar { position: relative; height: 1px; margin: 38px 0 0; background: #cfdde5; }
.ds-bar i { position: absolute; top: -.5px; left: 0; width: 30%; height: 2px; background: #1f3a4a; transition: left .25s, width .25s; }
@media (max-width: 600px) { .ds-nav { display: none; } .ds-list li { flex-basis: 74%; } }

/* hidden gems: numbered serif lines between hairlines, the heading staying beside them */
.dest-gems { background: #f3f8fa; }
.dgm-grid { display: grid; gap: 36px; max-width: 1280px; margin: 0 auto; }
.dgm-say h2 { margin: 0 0 16px; color: #1f3a4a; }
.dgm-say p:not(.ci-kicker) { max-width: 26rem; color: #4a6170; font-size: 1.05rem; }
.dgm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d6e3ea; }
.dgm-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; margin: 0; padding: 22px 0; border-bottom: 1px solid #d6e3ea; }
.dg-n { grid-row: span 2; padding-top: .55em; font: 500 .76rem/1 var(--body); letter-spacing: .14em; color: #8aa3b2; }
.dg-t { font: 400 clamp(1.55rem, 2.2vw, 2.05rem)/1.15 var(--serif); color: #1f3a4a; }
.dg-t.solo { font-size: clamp(1.3rem, 1.7vw, 1.55rem); line-height: 1.35; }
.dg-d { margin-top: 6px; color: #5b7383; }
@media (min-width: 980px) {
  .dgm-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 120px); align-items: start; }
  .dgm-say { position: sticky; top: 120px; }
}

/* good to know: where to stay, eat and shop */
.dest-know .wrap > h2.dk-title { margin: 0 0 36px; text-align: left; color: #1f3a4a; }
.dk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px clamp(32px, 4vw, 72px); }
.dk-col { padding-top: 22px; border-top: 1px solid #1f3a4a; }
.dk-col p:not(.ci-kicker) { margin: 0; color: #4a6170; }
.dk-list { list-style: none; margin: 0; padding: 0; }
.dk-list li { margin: 0; padding: 9px 0; border-bottom: 1px solid #e3ebf0; font: 400 1.4rem/1.3 var(--serif); color: #1f3a4a; }
.dk-list li:first-child { padding-top: 0; }

/* tours that stop here; more places nearby */
.dt-head { max-width: 46rem; margin: 0 0 36px; }
.dt-head h2 { margin: 0 0 14px; color: #1f3a4a; }
.dt-text { margin: 0; color: #4a6170; }
.dt-btns { margin: 26px 0 0; }
.dest-more .ds-head { max-width: 1240px; }
@media (max-width: 760px) { .dm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* tour pages: links from a day's places to their destination pages */
.day-go { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; }
.day-go a { display: inline-flex; align-items: center; gap: 8px; font: 600 .86rem/1.3 var(--title); color: #1f3a4a;
  text-decoration: underline; text-decoration-color: #b9cbd6; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.day-go a svg { width: 15px; height: 15px; transition: transform .2s; }
.day-go a:hover { color: var(--brand-blue); text-decoration-color: currentColor; }
.day-go a:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .dh-ph { animation: none; }
  .dh-ph img { transform: none; }
  .isle-pin.here::after { animation: none; opacity: 0; }
  .ds-ph img, :is(.di-cards, .dm-cards) .place-card img { transition: none; }
}
/* the band rule that centres running text (".band .wrap > ul/ol") must not narrow these lists */
.dest-sights .wrap > .ds-list { max-width: none; margin: 0 calc(-1 * var(--edge)); }
.dgm-grid > .dgm-list { max-width: none; margin: 0; }
/* "Ride the train to Ella" and other links in a place's opening text: a quiet dark outline, like "Want a mix?" */


/* ---------- /tours/: everything in one place ({{tour-finder}}). A sentence with four blanks in the big serif and one
   quick question under it; below, every tour in one numbered list with a big photo beside it. Each answer re-sorts
   the list: the tours that fit rise to the top, the rest fade under "Possible with a few changes". */
.band.finder { padding-top: clamp(56px, 6vw, 96px); }
.tf { max-width: 1480px; margin: 0 auto; }
/* the same width on the full-screen intro and after "Show my tours", so the sentence keeps its line breaks and the
   answers and the button stay put when the intro lifts away */
.tf-top { max-width: 1240px; margin: 0 0 clamp(52px, 6vw, 88px); }
.tf-say { margin: 0 0 30px; font: 400 clamp(2.1rem, 3.6vw, 3.6rem)/1.28 var(--serif); color: #1f3a4a; }
/* a blank flows with the sentence like a word: a long answer wraps onto the next line, and its underline and
   highlight follow each line (box-decoration-break) */
.tf-b { display: inline; padding: 0 .06em; border: 0; border-bottom: 1.5px dashed rgba(31, 116, 186, .45); background: none; font: inherit; color: var(--brand-blue);
  cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: color .25s, border-color .25s, background .25s; }
.tf-b:hover { border-bottom-color: var(--brand-blue); }
.tf-b.empty { color: #8aa3b2; font-style: italic; }
.tf-b.on { border-bottom: 2px solid var(--brand-sky); background: rgba(41, 171, 226, .12); border-radius: 4px 4px 0 0; }
.tf-b.new { animation: tf-in .6s ease both; }
@keyframes tf-in { from { opacity: .15; } }
.tf-b:focus-visible, .tf-c:focus-visible, .tf-tools button:focus-visible, .tl-link:focus-visible { outline: 2px solid var(--brand-sky); outline-offset: 3px; }
.tf-ask { padding: 22px 0 0; border-top: 1px solid #cfdde5; }
.tf-ask-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.tf-q { margin: 0; font: 600 .98rem/1.3 var(--title); color: #1f3a4a; }
.tf-step { flex: none; margin: 0; font: 500 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #8aa3b2; }
.tf-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 20px 0 0; }
.tf-tools button:not(.btn) { padding: 0; border: 0; background: none; cursor: pointer; font: 600 .84rem/1.4 var(--title); color: #5b7383;
  text-decoration: underline; text-decoration-color: #b9cbd6; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.tf-tools button:not(.btn):hover { color: var(--brand-blue); text-decoration-color: currentColor; }
.tf-tools button[hidden] { display: none; }
.tf-tools .btn.gold { margin-left: auto; }
/* the list, with the photo of the tour you point at beside it */
.tl { display: grid; gap: 40px; }
.tl-photo { margin: 0; }
.tl-frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - 230px); border-radius: 6px; overflow: hidden; background: #dde7ed; }
.tl-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity .6s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.tl-frame img.on { opacity: 1; transform: none; }
.tl-photo figcaption { margin: 18px 0 0; transition: opacity .25s; }
.tl-photo figcaption.swap { opacity: 0; }
.tl-cap-t { display: block; font: 400 1.55rem/1.2 var(--serif); color: #1f3a4a; }
.tl-cap-s { display: block; margin-top: 8px; font-size: .9rem; line-height: 1.6; color: #5b7383; }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding: 0 0 14px; border-bottom: 1px solid #1f3a4a; }
.tf-count { margin: 0; font: 500 .74rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #5b7383; }
.tl-head .tl-key { margin: 0; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-row { margin: 0; border-bottom: 1px solid #dde7ed; transition: opacity .4s; }
.tl-row.dim { opacity: .5; }
.tl-row.dim:hover, .tl-row.dim:focus-within { opacity: 1; }
.tl-link { display: grid; grid-template-columns: 44px minmax(0, 1fr) 184px 30px; align-items: center; gap: 6px 20px; padding: 20px 0; color: #1f3a4a; }
.tl-link:hover { color: #1f3a4a; }
.tl-n { align-self: start; padding-top: .8em; font: 500 .76rem/1 var(--body); letter-spacing: .14em; color: #8aa3b2; transition: color .3s; }
.tl-thumb { display: none; }
.tl-main { display: grid; gap: 7px; min-width: 0; }
.tl-t { font: 400 clamp(1.5rem, 2.1vw, 2rem)/1.12 var(--serif); color: #1f3a4a; transition: transform .45s cubic-bezier(.2, .7, .2, 1), color .3s; }
.tl-row.on .tl-t { color: var(--brand-blue); transform: translateX(8px); }
.tl-row.on .tl-n { color: var(--brand-sky); }
.tl-why { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 14px; font-size: .84rem; line-height: 1.5; color: #5b7383; }
.tl-why span { display: inline-flex; align-items: center; gap: 6px; }
.tl-why .ok { color: #1f3a4a; }
.tl-why .ok::before { content: ""; width: 10px; height: 5px; margin-top: -3px; border: solid #2f8a69; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }
.tl-why .no { color: #8aa3b2; }
.tl-why .no::before { content: ""; width: 8px; height: 1.6px; background: #b9cbd6; }
.tl-why .tl-best { padding: 4px 7px; border-radius: 3px; background: var(--brand-yellow); color: #1f3a4a; font: 600 .62rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.tl-ms { display: grid; gap: 7px; }
.tl-ms-bar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.tl-ms i { display: grid; place-items: center; height: 20px; border-radius: 2px; background: #e5edf1;
  font: 600 .6rem/1 var(--body); font-style: normal; color: rgba(31, 58, 74, .72); }
.tl-ms-best { font-size: .78rem; line-height: 1.35; color: #5b7383; }
.tl-ms-best b { font-weight: 600; color: #1f3a4a; }
.tl-ms .G { background: #f2c75c; }
.tl-ms .M { background: #ddd5c2; }
.tl-ms .R { background: #9dbedd; }
.tl-ms i.x { box-shadow: 0 0 0 1.5px #1f3a4a; }
.tl-go { display: grid; place-items: center; width: 30px; height: 30px; color: #1f3a4a; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.tl-go svg { width: 18px; height: 18px; }
.tl-row.on .tl-go { opacity: 1; transform: none; }
.tl-sep { margin: 0; padding: 36px 0 12px; border-bottom: 1px solid #1f3a4a; font: 500 .74rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #5b7383; }
.tl-sep[hidden] { display: none; }
.tl-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; margin: 40px 0 0; padding: 28px 30px; border-radius: 8px; background: #eef6f9; }
.tl-end-say { margin: 0; max-width: 30rem; font: 400 clamp(1.4rem, 2vw, 1.8rem)/1.25 var(--serif); color: #1f3a4a; }
@media (min-width: 980px) {
  .tl { grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); gap: clamp(40px, 5vw, 100px); align-items: start; }
  .tl-side { position: sticky; top: 112px; }
}
/* tablets and phones: no big photo; each row shows its own small one, with the month strip under the words */
@media (max-width: 979px) {
  .tl-side { display: none; }
  .tl-link { grid-template-columns: 104px minmax(0, 1fr); gap: 10px 18px; padding: 16px 0; }
  .tl-n, .tl-go { display: none; }
  .tl-thumb { display: block; grid-row: 1 / span 2; align-self: start; width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; object-fit: cover; }
  .tl-ms { grid-column: 2; max-width: 240px; gap: 5px; }
  .tl-ms i { height: 16px; font-size: .56rem; }
  .tl-row.on .tl-t { transform: none; }
}
@media (max-width: 600px) {
  .tf-say { font-size: 1.9rem; }
  .tf-tools .btn.gold { margin-left: 0; }
  .tl-link { grid-template-columns: 84px minmax(0, 1fr); gap: 8px 14px; }
  .tl-t { font-size: 1.35rem; }
  .tl-end { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-chips.in .tf-c, .tf-b.new { animation: none; }
  .tl-frame img, .tl-t, .tl-go { transition: none; }
}

/* the answers sit in an even grid, every button the same width: 4 across for who and how long, the 12 months in one
   row, the 7 trip words in one row (fewer across on smaller screens) */
.tf-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tf-chips.at-1 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tf-chips.at-3 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
/* soft white pills that lift a little when pointed at; a chosen one turns deep blue with a tick. Trip words carry a
   small round photo. On the full-screen sentence they turn to frosted glass (see .tf-dark below). */
.tf-c { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-width: 0; min-height: 52px; padding: 0 1em;
  border: 1px solid #d5e2ea; border-radius: 999px; background: #fff; color: #1f3a4a; font: 600 .92rem/1 var(--title); letter-spacing: .01em;
  cursor: pointer; box-shadow: 0 6px 18px rgba(17, 45, 60, .05);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), background .45s, border-color .45s, color .45s, box-shadow .25s; }
.tf-cl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-c:hover { transform: translateY(-2px); border-color: #1f3a4a; box-shadow: 0 12px 26px rgba(17, 45, 60, .1); }
.tf-c[aria-pressed="true"] { background: #1f3a4a; border-color: #1f3a4a; color: #fff; }
.tf-c[aria-pressed="true"]:not(.has-av)::before { content: ""; flex: none; width: 10px; height: 5px; margin: -4px 0 0 -2px;
  border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.tf-c.has-av { justify-content: flex-start; padding: 0 1em 0 7px; }
.tf-av { position: relative; flex: none; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: #dde7ed; }
.tf-av img { width: 100%; height: 100%; object-fit: cover; }
.tf-c[aria-pressed="true"] .tf-av::after { content: ""; position: absolute; inset: 0; background: rgba(31, 58, 74, .55)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.tf-chips.in .tf-c { animation: hh-up .5s cubic-bezier(.2, .7, .2, 1) both; }
.tf-show { display: none; }
@media (max-width: 1100px) { .tf-chips.at-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 979px) { .tf-chips.at-1 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tf-chips, .tf-chips.at-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tf-chips.at-1 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tf-c { min-height: 46px; padding: 0 .8em; font-size: .88rem; }
  .tf-av { width: 32px; height: 32px; }
}

/* ---------- /tours/: the first visit opens on the sentence alone, filling the whole window, over slowly drifting
   trip photos (softly blurred, which also keeps smaller photos from looking soft). The header turns see-through over
   the photo, as on the home page, and the page does not scroll until "Show my tours", so it always opens on the
   sentence. "tf-intro" is the layout, "tf-dark" the colours; "Show my tours" takes "tf-dark" off first, so it all
   fades to the normal colours, then "tf-intro", and the sentence glides up into its place (site.js). */
/* "Show my tours" must be one smooth fade from the dark screen to the white page:
   - the page doesn't scroll during the intro, yet the scroll bar keeps its room, so nothing shifts sideways when
     the page can scroll again: the scroll bar stays (see-through, over the page's own colour, which is dark while
     the screen is and fades with it) and the body is cut to one pixel more than the screen's height, which is
     what keeps the scroll bar there. (Chrome gives no room for a scroll bar to a page that is set not to scroll,
     scrollbar-gutter or not; and a page set to always scroll counts its width a pixel differently, so the
     header's sides moved by that much.) "overflow-y: auto" keeps the body's cut to the body itself.
   - the screen fades to white, never to see-through (behind it, out of the way, sit the rest of the page and
     the footer, which showed through for a moment) */
html.tf-intro { overflow-y: auto; scrollbar-color: transparent transparent; background-color: var(--white); transition: background-color .5s ease; }
html.tf-dark { background-color: #10303c; }
.tf-intro body { height: calc(100vh + 1px); overflow: hidden; }
.tf-intro :is(.page-hero, .tour-hero), .tf-after :is(.page-hero, .tour-hero) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tf-intro .tl { display: none; }
.tf-intro .band.finder { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; overflow-y: auto;
  overscroll-behavior: contain; padding: 150px 0 48px; background-color: var(--white); }
.tf-intro .band.finder > .wrap { width: 100%; margin: auto; }
.tf-intro .tf-top { position: relative; z-index: 1; margin: 0; }
.tf-intro .tf-show { display: inline-flex; margin-left: auto; }
.tf-intro .tf-go { display: none; }
.tf-bg { display: none; }
.tf-intro .tf-bg { display: block; position: fixed; inset: -30px; z-index: 0; filter: blur(5px) saturate(1.08); opacity: 0; transition: opacity .5s ease; }
.tf-dark .tf-bg { opacity: 1; }
.tf-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.14);
  transition: opacity 1.8s ease, transform 10s cubic-bezier(.2, .7, .2, 1); }
.tf-bg img.on { opacity: 1; transform: scale(1.04); }
.tf-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 26, 34, .55), rgba(8, 26, 34, .74)); }
.band.finder { transition: background-color .5s ease; }
.tf-dark .band.finder { background: #10303c; }
/* ...and the header fades with it, in the same half second: the white logo melts into the colour one (both stay
   drawn during the intro, one see-through, instead of the white one simply switching off) */
.tf-intro .logo .logo-light { display: block; opacity: 0; }
.tf-dark .logo .logo-light { opacity: 1; }
.tf-intro .logo img { transition: opacity .5s ease; }
.tf-intro :is(.site-header, .nav .top, .hd-ic, .nav-ink) { transition-duration: .5s; }
/* the header over the photo: see-through, white logo and words, as on the home page ("the header over a photo") */
.tf-top .ci-kicker, .tf-say, .tf-b, .tf-q, .tf-step, .tf-ask, .tf-tools button:not(.btn) { transition: color .5s, border-color .5s, background-color .5s; }
.tf-dark .tf-top .ci-kicker, .tf-dark .tf-say, .tf-dark .tf-q { color: #fff; }
.tf-dark .tf-b { color: #9edcf6; border-bottom-color: rgba(255, 255, 255, .45); }
.tf-dark .tf-b.empty { color: rgba(255, 255, 255, .55); }
.tf-dark .tf-b.on { background: rgba(255, 255, 255, .12); border-bottom-color: #fff; }
.tf-dark .tf-ask { border-top-color: rgba(255, 255, 255, .22); }
.tf-dark .tf-step { color: rgba(255, 255, 255, .6); }
.tf-dark .tf-tools button:not(.btn) { color: rgba(255, 255, 255, .82); text-decoration-color: rgba(255, 255, 255, .4); }
.tf-dark .tf-tools button:not(.btn):hover { color: #fff; text-decoration-color: #fff; }
.tf-dark .tf-c { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; box-shadow: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tf-dark .tf-c:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .75); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.tf-dark .tf-c[aria-pressed="true"] { background: #fff; border-color: #fff; color: #1f3a4a; }
/* after "Show my tours": the list rises in under the sentence */
.tl.tl-in .tl-side { animation: hh-up .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
.tl.tl-in .tl-head, .tl.tl-in .tl-row:nth-child(-n+8) { animation: hh-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.tl.tl-in .tl-head { animation-delay: .2s; }
.tl.tl-in .tl-row:nth-child(1) { animation-delay: .28s; }
.tl.tl-in .tl-row:nth-child(2) { animation-delay: .34s; }
.tl.tl-in .tl-row:nth-child(3) { animation-delay: .4s; }
.tl.tl-in .tl-row:nth-child(4) { animation-delay: .46s; }
.tl.tl-in .tl-row:nth-child(n+5) { animation-delay: .52s; }
@media (max-width: 760px) {
  .tf-intro .band.finder { padding: 132px 0 28px; }
  .tf-intro .tf-show { width: 100%; margin: 6px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-bg img { transition: opacity .4s; transform: none; }
  .tf-bg img.on { transform: none; }
  .tl.tl-in .tl-side, .tl.tl-in .tl-head, .tl.tl-in .tl-row { animation: none; }
  .tf-c:hover { transform: none; }
}

/* =====================================================================
   About us (layout "about"): the page as a journey in chapters; the photos move at different depths as you scroll
   (parallax, site.js).
   ===================================================================== */
/* the header sits over the first photo, as on the home page ("the header over a photo") */

/* ---------- the opening: one line, word by word, over a slowly drifting photo */
.ab-open { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; margin-top: -84px;
  min-height: 100vh; min-height: 100svh; padding: 150px 0 120px; background: #10303c; color: #fff; }
.ab-open-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ab-open-bg img { width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); animation: ab-zoom 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ab-zoom { from { scale: 1.12; } }
.ab-open-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 26, 34, .45), rgba(8, 26, 34, .25) 40%, rgba(8, 26, 34, .72)); }
.ab-open .wrap { width: 100%; max-width: 1400px; }
.ab-open .ci-kicker { color: #fff; animation: hh-up 1s .1s cubic-bezier(.2, .7, .2, 1) both; }
/* the motto, set as big as the screen allows (by its width and by its height) */
.ab-say { max-width: none; margin: 0 0 .3em; font-size: clamp(3.4rem, min(14vw, 24vh), 10.5rem); line-height: .92; letter-spacing: -.025em; color: #fff; text-align: left; }
.ab-w { display: inline-block; animation: ab-word 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.25s + var(--i) * .08s); }
.ab-w.em { font-style: italic; }
@keyframes ab-word { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }
.ab-note { max-width: 34rem; margin: 0; font: italic 400 clamp(1.3rem, 2.2vw, 2rem)/1.35 var(--serif); color: rgba(255, 255, 255, .88);
  animation: hh-up 1s 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.ab-down { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 64px; margin-left: -.5px; overflow: hidden; background: rgba(255, 255, 255, .25); }
.ab-down span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: ab-drop 2.2s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes ab-drop { to { top: 100%; } }

/* ---------- every chapter: a small label with the yellow dash, a big serif heading, calm text */
.layout-about .chapter { position: relative; padding: clamp(84px, 9vw, 150px) 0; }
.layout-about .chapter .wrap { max-width: 1400px; }
.layout-about .chapter .wrap > * { margin-left: 0; margin-right: 0; }
.layout-about .chapter .wrap > .kicker, .layout-about .chapter .ab-side > .kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 .74rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--blue); text-align: left; }
.layout-about .chapter .kicker::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--brand-yellow); }
.layout-about .chapter .wrap > h2, .layout-about .chapter .ab-side > h2 { max-width: 15ch; margin: 0 0 30px; font-size: clamp(2.5rem, 4.6vw, 4.2rem); line-height: 1.02; color: #1f3a4a; text-align: left; }
.layout-about .chapter .wrap > p, .layout-about .chapter .wrap > h2 + p { max-width: 38rem; margin: 0 0 1.2em; font-size: 1.06rem; line-height: 1.8; color: #4a6170; text-align: left; }
.layout-about .chapter .wrap > p:last-child:has(.btn) { margin: 2em 0 0; text-align: left; }
/* things rise in as they come into view (site.js adds .rv, then .in) */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* who we are: three photos at three depths beside the words */
.layout-about .who .gallery { position: relative; display: block; height: clamp(440px, 46vw, 700px); margin: 40px 0 0; }
.layout-about .who .gallery figure { position: absolute; margin: 0; overflow: hidden; border-radius: 6px; background: #dde7ed;
  box-shadow: 0 30px 60px rgba(17, 45, 60, .16); transform: translate3d(0, var(--py, 0px), 0); }
.layout-about .who .gallery figure:nth-child(1) { left: 0; top: 6%; width: 44%; aspect-ratio: 1 / 2; }
.layout-about .who .gallery figure:nth-child(2) { right: 0; top: 0; width: 46%; aspect-ratio: 5 / 6; }
.layout-about .who .gallery figure:nth-child(3) { right: 16%; bottom: 0; width: 38%; aspect-ratio: 1; z-index: 2; }
.layout-about .who .gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 980px) {
  .layout-about .who .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(48px, 7vw, 140px); align-items: center; }
  .layout-about .who .wrap > * { grid-column: 1; }
  .layout-about .who .wrap > .gallery { grid-column: 2; grid-row: 1 / span 8; margin: 0; }
}

/* since 2010: deep blue, a huge outline year drifting behind, numbers that count up */
.layout-about .since { overflow: hidden; background: #10303c; }
.layout-about .since .kicker { color: #9edcf6; }
.layout-about .since .wrap > h2 { color: #fff; }
.layout-about .since .wrap > p { color: rgba(255, 255, 255, .72); }
.layout-about .since .wrap > * { position: relative; z-index: 1; }
.layout-about .since .wrap > .ab-since { position: static; }
.ab-year { position: absolute; right: -.04em; top: 50%; z-index: 0; margin-top: -.5em; font: 400 clamp(10rem, 30vw, 28rem)/1 var(--serif);
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .2); pointer-events: none; user-select: none;
  transform: translate3d(0, var(--py, 0px), 0); }
.ab-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 56px 0 0; padding: 0;
  list-style: none; border-top: 1px solid rgba(255, 255, 255, .18); }
.ab-stats li { margin: 0; padding: 30px 24px 0 0; }
.ab-stats strong { display: block; font: 400 clamp(3rem, 6vw, 5.6rem)/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.ab-stats span { display: block; margin-top: 12px; font: 500 .74rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
@media (max-width: 760px) { .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }

/* a letter from our founder: his portrait stays beside the letter and drifts slowly inside its frame */
.layout-about .letter .wrap > h2 { margin-bottom: 10px; }
.layout-about .letter .wrap > h2 + p { margin-bottom: 36px; font: 500 .76rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #5b7383; }
.layout-about .letter .wrap > h2 + p em { font-style: normal; }
.layout-about .letter .gallery { display: block; margin: 0 0 36px; }
.layout-about .letter .gallery figure { margin: 0; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; background: #dde7ed; }
.layout-about .letter .gallery img { width: 100%; height: 116%; max-height: none; object-fit: cover; transform: translate3d(0, calc(-7% + var(--py, 0px)), 0); }
.layout-about .letter blockquote { max-width: 34rem; margin: 0 0 40px; padding: 0; border: 0; border-radius: 0; background: none;
  font: italic 400 clamp(1.6rem, 2.5vw, 2.3rem)/1.3 var(--serif); color: #1f3a4a; }
.layout-about .letter blockquote::before { content: "\201C"; display: block; height: .5em; font-size: 2.6em; line-height: 1; color: var(--brand-sky); }
.layout-about .letter blockquote p { margin: 0; }
.layout-about .letter .wrap > p:last-child { margin-top: 2em; font: 600 .9rem/1.5 var(--title); color: #1f3a4a; }
@media (min-width: 980px) {
  .layout-about .letter .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(48px, 7vw, 140px); align-items: start; }
  .layout-about .letter .wrap > * { grid-column: 2; }
  .layout-about .letter .wrap > .gallery { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 120px; margin: 0; }
}

/* how we plan: the heading and button stay in view while the six reasons pass by as numbered rows */
.layout-about .plan { background: #f3f8fa; }
.layout-about .plan ul { counter-reset: ab; margin: 0; padding: 0; list-style: none; border-top: 1px solid #cfdde5; }
.layout-about .plan li { counter-increment: ab; display: grid; grid-template-columns: 60px minmax(0, 1fr); margin: 0; padding: 30px 0; border-bottom: 1px solid #cfdde5; color: #4a6170; line-height: 1.7; }
.layout-about .plan li::before { content: counter(ab, decimal-leading-zero); grid-row: span 2; padding-top: .8em; font: 500 .76rem/1 var(--body); letter-spacing: .14em; color: var(--brand-sky); }
.layout-about .plan li strong { display: block; margin: 0 0 8px; font: 400 clamp(1.6rem, 2.3vw, 2.1rem)/1.15 var(--serif); color: #1f3a4a; }
.layout-about .plan .ab-side p:last-child { margin: 34px 0 0; }
@media (min-width: 980px) {
  .layout-about .plan .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(48px, 7vw, 140px); align-items: start; }
  .layout-about .plan .ab-side { position: sticky; top: 140px; }
}
@media (max-width: 979px) { .layout-about .plan .ab-side { margin-bottom: 36px; } }

/* leave only footprints: one wide photo band that drifts, the promises in two columns, the giving-back photos at
   three depths */
.layout-about .footprints .wrap > .gallery.n1 { display: block; height: clamp(320px, 58vh, 620px); margin: 10px 0 60px; overflow: hidden; border-radius: 6px; }
.layout-about .footprints .gallery.n1 figure { height: 100%; margin: 0; }
.layout-about .footprints .gallery.n1 img { width: 100%; max-width: none; height: 132%; max-height: none; margin: 0; aspect-ratio: auto; object-fit: cover;
  transform: translate3d(0, calc(-12% + var(--py, 0px)), 0); }
.layout-about .footprints ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); max-width: none;
  margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid #dde7ed; }
.layout-about .footprints li { margin: 0; padding: 24px 0; border-bottom: 1px solid #dde7ed; color: #4a6170; font-size: 1rem; line-height: 1.7; }
.layout-about .footprints li strong { display: block; margin: 0 0 6px; font: 400 1.45rem/1.2 var(--serif); color: #1f3a4a; }
.layout-about .footprints h3 { margin: clamp(80px, 9vw, 130px) 0 24px; font: 400 clamp(2rem, 3.4vw, 3rem)/1.05 var(--serif); color: #1f3a4a; text-align: left; }
.layout-about .footprints .gallery.n3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; margin: 44px 0 10px; }
.layout-about .footprints .gallery.n3 figure { margin: 0; overflow: hidden; border-radius: 6px; transform: translate3d(0, var(--py, 0px), 0); }
.layout-about .footprints .gallery.n3 figure:nth-child(2) { margin-top: 70px; }
.layout-about .footprints .gallery.n3 figure:nth-child(3) { margin-top: 26px; }
.layout-about .footprints .gallery.n3 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; }
.layout-about .footprints .wrap > p:last-child { max-width: 46rem; margin-top: 50px; font: italic 400 clamp(1.3rem, 2vw, 1.7rem)/1.45 var(--serif); color: #1f3a4a; }
@media (max-width: 760px) { .layout-about .footprints ul { grid-template-columns: minmax(0, 1fr); } }

/* guests' words (home and About): one quote at a time, large; the partner logos underneath (site.js turns the quotes) */
.guests { background: #f3f8fa; }
.guests .quotes.ab-q { display: grid; grid-auto-flow: row; grid-auto-columns: auto; max-width: 980px; margin: 30px 0 0; padding: 0; overflow: visible; }
.guests .ab-q .quote { grid-area: 1 / 1; padding: 0; background: none; box-shadow: none; border-radius: 0;
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1), visibility 0s .6s; }
.guests .ab-q .quote.on { opacity: 1; visibility: visible; transform: none; transition: opacity .8s .15s ease, transform .9s .15s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.guests .quote blockquote { margin: 0 0 28px; font: italic 400 clamp(1.4rem, 2.2vw, 2rem)/1.45 var(--serif); color: #1f3a4a; }
.guests .quote figcaption span { color: #5b7383; }
/* on the home page it is the quiet pause between the tours and the monsoon map: white, centred, lots of air */
.layout-home .guests { padding: clamp(96px, 11vw, 170px) 0; background: var(--white); text-align: center; }
.layout-home .guests .wrap > h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 0; color: #5b7383; }
.layout-home .guests .quotes.ab-q { max-width: 880px; margin: clamp(28px, 3vw, 44px) auto 0; }
.layout-home .guests .quote figcaption { justify-content: center; text-align: left; }
.layout-home .guests .ab-qnav { justify-content: center; }
.layout-home .guests .wrap > p.center { margin-top: 22px; }
.layout-home .guests .partners { max-width: 980px; margin: clamp(56px, 6vw, 84px) auto 0; padding-top: 36px; border-top: 1px solid #e3ecf1; gap: 22px 44px; }
.layout-home .guests .partners img { height: 44px; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s; }
.layout-home .guests .partners a:hover img { filter: none; opacity: 1; }
.ab-qnav { display: flex; align-items: center; gap: 16px; margin: 34px 0 0; }
.ab-qnav button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #1f3a4a; background: transparent; color: #1f3a4a; cursor: pointer; transition: background .2s, color .2s; }
.ab-qnav button:hover { background: #1f3a4a; color: #fff; }
.ab-qnav button svg { width: 18px; height: 18px; }
.ab-qnav .ab-qprev svg { transform: rotate(180deg); }
.ab-qn { font: 500 .76rem/1 var(--body); letter-spacing: .16em; color: #5b7383; font-variant-numeric: tabular-nums; }
.layout-about .guests .wrap > p.center { text-align: left; margin: 26px 0 0; }
.layout-about .guests .partners { justify-content: flex-start; margin-top: 64px; padding-top: 40px; border-top: 1px solid #dde7ed; }

/* the end of the path */
.layout-about .end { text-align: center; }
/* white on the photo (logo blue was hard to read there), and centred over the heading like the rest */
.layout-about .end .wrap > .kicker { justify-content: center; margin-left: auto; margin-right: auto; color: #fff; }
.layout-about .end .wrap > h2 { max-width: none; margin-left: auto; margin-right: auto; text-align: center; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.layout-about .end .wrap > p, .layout-about .end .wrap > h2 + p { margin-left: auto; margin-right: auto; text-align: center; }
.layout-about .end .wrap > p:last-child:has(.btn) { margin: 2em auto 0; text-align: center; }
@media (max-width: 760px) {
  .ab-open { margin-top: -72px; padding: 120px 0 100px; }
  .layout-about .who .gallery { height: 420px; margin-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-open-bg img, .ab-w, .ab-note, .ab-open .ci-kicker, .ab-down span { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}
.layout-about main { position: relative; }

/* ---------- About us: full-width photo "windows" between the chapters. The photo fills the screen width, drifts
   slower than the page and settles from a slight zoom as it comes into view; the words rise a little faster
   (site.js sets --py, --ps and --ty). The finale ("end") sits on a photo the same way. */
.layout-about .window, .layout-about .end { position: relative; isolation: isolate; overflow: hidden; }
.layout-about .window { display: flex; align-items: flex-end; min-height: 88vh; min-height: 88svh; padding: 0 0 clamp(56px, 8vw, 120px); background: #10303c; }
.layout-about .window .wrap { width: 100%; max-width: 1400px; }
.layout-about :is(.window, .end) .wrap > .gallery.n1 { position: absolute; inset: 0; z-index: -2; display: block; max-width: none; margin: 0; overflow: hidden; border-radius: 0; }
.layout-about :is(.window, .end) .gallery.n1 figure { height: 100%; margin: 0; }
.layout-about :is(.window, .end) .gallery.n1 img { width: 100%; max-width: none; height: 130%; max-height: none; margin: 0; aspect-ratio: auto;
  object-fit: cover; border-radius: 0; transform: translate3d(0, calc(-11.5% + var(--py, 0px)), 0) scale(var(--ps, 1.06)); transform-origin: 50% 45%; }
.layout-about .window::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 26, 34, .05) 30%, rgba(8, 26, 34, .72)); }
.layout-about .window .wrap > .kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; text-align: left;
  font: 600 .74rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: #fff; transform: translate3d(0, var(--ty, 0px), 0); }
.layout-about .window .wrap > .kicker::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--brand-yellow); }
.layout-about .window .wrap > h2 { max-width: 13ch; margin: 0; text-align: left; color: #fff; font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: 1;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25); transform: translate3d(0, var(--ty, 0px), 0); }

/* the finale on the sunset photo */
.layout-about .end { display: flex; align-items: center; min-height: 90vh; min-height: 90svh; background: #10303c; }
.layout-about .end::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(8, 26, 34, .5); }
.layout-about .end .wrap { width: 100%; }
.layout-about .end .kicker { color: #fff; }
.layout-about .end .wrap > h2 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.layout-about .end .wrap > p, .layout-about .end .wrap > h2 + p { color: rgba(255, 255, 255, .88); font-size: 1.15rem; }

/* who we are: the three photos, larger, with a slow zoom when pointed at */
.layout-about .who .gallery figure:nth-child(1) { aspect-ratio: 2 / 3; width: 46%; }
.layout-about .who .gallery figure:nth-child(2) { aspect-ratio: 3 / 4; width: 44%; }
.layout-about .who .gallery figure:nth-child(3) { aspect-ratio: 4 / 3; width: 50%; right: 12%; }
.layout-about .who .gallery img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.layout-about .who .gallery figure:hover img { transform: scale(1.06); }

@media (max-width: 760px) {
  .layout-about .window { min-height: 72vh; min-height: 72svh; }
  .layout-about .end { min-height: 80vh; min-height: 80svh; }
}
@media (prefers-reduced-motion: reduce) {
  .layout-about :is(.window, .end) .gallery.n1 img { transform: translate3d(0, -11.5%, 0); }
  .layout-about .window .wrap > :is(.kicker, h2) { transform: none; }
  .layout-about .who .gallery figure:hover img { transform: none; }
}

/* ---------- the trip letter ({{letter}} on /contact-us/; site.js "the trip letter"). The request is a letter on
   cream paper with an airmail edge in the logo colours, and every blue word is a blank (the tour finder's .tf-b). On
   the page the letter shows as it stands, with "Start my letter". It is written full screen (.lt.full): the letter,
   the step being answered and, at the end, "Seal and send", all on one screen with nothing to scroll to. Phones have
   the letter above and the answers below; bigger screens have the letter on the left and the answers on the right.
   "Seal and send" folds the paper into an airmail envelope, which is stamped and flies off. */
.lt-box { max-width: 900px; margin: 2em auto 0; }
.lt[hidden], .lt-plain[hidden], .lt [hidden] { display: none !important; }
.lt-tip { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 18px; font: 500 .9rem/1.4 var(--title); color: #5b7383; text-align: center; }
.lt-tip svg { width: 18px; height: 18px; color: var(--brand-sky); }
.lt-stage { position: relative; isolation: isolate; }
.lt-paper { position: relative; z-index: 2; transform-origin: 0 0; border-radius: 4px;
  padding: clamp(30px, 5vw, 64px) clamp(22px, 6.5vw, 84px) clamp(30px, 5vw, 60px);
  background: repeating-linear-gradient(-45deg, var(--brand-sky) 0 12px, #fffdf8 12px 19px, var(--brand-yellow) 19px 31px, #fffdf8 31px 38px) top / 100% 6px no-repeat, #fffdf8;
  box-shadow: 0 1px 2px rgba(17, 45, 60, .06), 0 26px 60px rgba(17, 61, 72, .12); }
/* the folds, seen only while it is being folded */
.lt-paper::before, .lt-paper::after { content: ""; position: absolute; left: 0; right: 0; height: 33.4%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.lt-paper::before { top: 33.3%; background: linear-gradient(rgba(17, 45, 60, .1), rgba(17, 45, 60, 0) 30%, rgba(17, 45, 60, 0) 70%, rgba(17, 45, 60, .07)); }
.lt-paper::after { top: 66.6%; background: linear-gradient(rgba(255, 255, 255, 0), rgba(17, 45, 60, .06)); border-top: 1px solid rgba(17, 45, 60, .08); }
.lt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 0 0 clamp(22px, 3.4vw, 34px); padding: 0 0 18px; border-bottom: 1px solid #ece5d6; }
.lt-to { margin: 0; font: 600 .72rem/1.6 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #8a9aa3; }
.lt-date { margin: 0; font: italic 400 1.2rem/1.3 var(--serif); color: #5b7383; white-space: nowrap; }
.lt-body { font: 400 clamp(1.45rem, 2.4vw, 2.05rem)/1.62 var(--serif); color: #1f3a4a; }
.lt-body p { margin: 0 0 .75em; }
.lt-body .tf-b { line-height: inherit; overflow-wrap: anywhere; }
.lt-body .tf-b:focus-visible { outline: none; border-bottom: 2px solid var(--brand-sky); background: rgba(41, 171, 226, .12); }
/* on the page, the next blank to fill glows softly (site.js "up") */
.lt-body .tf-b.up { animation: lt-up 2.6s ease-in-out infinite; }
@keyframes lt-up { 50% { background: rgba(41, 171, 226, .16); border-bottom-color: var(--brand-sky); } }
.lt-body .lt-ps { margin-top: 1.1em; font-size: .8em; line-height: 1.7; }
.lt-ps-k { color: #5b7383; }
.lt-body .lt-sign { margin: 1.2em 0 0; }
.lt-name { font-style: italic; font-size: 1.15em; }

/* on the page: "Start my letter" and the plain form */
.lt-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 30px 0 0; }
.lt-note { margin: 0; font-size: .92rem; color: var(--muted); }
.lt-note button, .lt-back button, .lt-again, .lt-prev { padding: 0; border: 0; background: none; cursor: pointer; font: 600 .9rem/1.4 var(--title); color: #5b7383;
  text-decoration: underline; text-decoration-color: #b9cbd6; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lt-note button:hover, .lt-back button:hover, .lt-again:hover, .lt-prev:hover { color: var(--brand-blue); text-decoration-color: currentColor; }
.lt-back { margin: 0 0 14px; text-align: center; }
.lt-done { padding: clamp(48px, 8vw, 96px) 24px; text-align: center; outline: none; animation: hh-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.lt-done-t { max-width: 18ch; margin: 0 auto .4em; font: 400 clamp(2.1rem, 4.2vw, 3.4rem)/1.08 var(--serif); color: #1f3a4a; }
.lt-done-s { margin: 0 0 1.6em; color: var(--text); }
.lt-demo { max-width: 34rem; margin: -.6em auto 1.6em; padding: 10px 14px; border-radius: 10px; background: #fff7d6; color: #6a5200; font-size: .88rem; }
.lt-done-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin: 0; }

/* full screen */
html.lt-lock, html.lt-lock body { overflow: hidden; }
.lt-top, .lt-sheet { display: none; }
.lt.full { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; background: #e7f1f6; animation: lt-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes lt-in { from { opacity: 0; } }
.lt.full .lt-tip, .lt.full .lt-foot { display: none; }
.lt.full .lt-top { display: flex; align-items: center; gap: 18px; padding: 10px clamp(14px, 3vw, 32px); }
.lt-title { margin: 0; font: 600 .95rem/1.2 var(--title); color: #1f3a4a; }
/* how far along: one dash per step, filled when answered, darker for the step open now */
.lt-dots { display: flex; flex: 1; gap: 5px; max-width: 280px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.lt-dots li { flex: 1; height: 4px; margin: 0; border-radius: 2px; background: #c8dbe5; transition: background .3s; }
.lt-dots li.done { background: var(--brand-sky); }
.lt-dots li.now { background: var(--brand-blue); }
.lt-close { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: #1f3a4a; font: 400 1.6rem/1 var(--body);
  cursor: pointer; box-shadow: 0 4px 14px rgba(17, 45, 60, .1); }
.lt-close:hover { background: var(--brand-blue); color: #fff; }
.lt-close:disabled { opacity: .4; cursor: default; }
.lt.full .lt-main { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 2px clamp(12px, 3vw, 40px) 18px; }
.lt.full .lt-stage { width: 100%; max-width: 820px; margin: auto; }   /* centred, and still scrolls from the top when taller */
.lt.full .lt-paper { padding: clamp(18px, 3.4vh, 44px) clamp(18px, 4vw, 56px); }
.lt.full .lt-head { margin-bottom: clamp(10px, 2vh, 22px); padding-bottom: clamp(8px, 1.4vh, 14px); }
.lt.full .lt-body { font-size: clamp(1.2rem, min(2.1vw, 3.3vh), 1.95rem); line-height: 1.55; }
.lt.full .lt-body .lt-sign { margin-top: .8em; }
.lt.full .lt-sheet { display: block; max-height: calc(var(--h, 100vh) * .6); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(17, 45, 60, .12); }
.lt.full .lt-done { grid-row: 2 / -1; grid-column: 1 / -1; align-self: center; }
@media (min-width: 980px) {
  .lt.full { grid-template-columns: minmax(0, 1fr) 460px; grid-template-rows: auto minmax(0, 1fr); }
  .lt.full .lt-top { grid-column: 1 / -1; padding-top: 16px; padding-bottom: 8px; }
  .lt.full .lt-main { padding: 6px 48px 40px; }
  .lt.full .lt-sheet { display: flex; flex-direction: column; max-height: none; padding: 40px 36px; border-radius: 0; box-shadow: -1px 0 0 rgba(17, 45, 60, .08); }
  .lt.full .lt-ask, .lt.full .lt-ready { margin: auto 0; }
}

/* the answers */
.lt-sheet-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.lt-q { flex: 1; margin: 0; font: 600 1.02rem/1.3 var(--title); color: #1f3a4a; }
.lt-step { flex: none; margin: 0; font: 500 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #8aa3b2; }
.lt-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lt-chips.at-when { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lt-chips.at-when .tf-c:last-child { grid-column: span 2; }
.lt-chips.at-when .tf-c[aria-pressed="true"]::before { display: none; }   /* the dark fill says it; the tick won't fit */
.lt-chips.at-love { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lt-chips.at-tour { grid-template-columns: 1fr; max-height: min(46vh, 420px); overflow-y: auto; padding: 2px; }
.lt-chips.at-tour .tf-c { justify-content: flex-start; min-height: 44px; border-radius: 12px; text-align: left; }
.lt-chips.at-tour .tf-cl { white-space: normal; line-height: 1.3; }
.lt-chips .tf-c { min-height: 48px; padding: 0 .9em; font-size: .9rem; box-shadow: none; }
.lt-chips .tf-c.has-av { padding-left: 6px; }
.lt-chips .tf-c:hover { transform: none; box-shadow: none; }
.lt-pane .lt-chips .tf-c { animation: hh-up .4s cubic-bezier(.2, .7, .2, 1) both; }
.lt-extra { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #e6eef3; }
.lt-count { display: flex; align-items: center; gap: 10px; }
.lt-count-l { min-width: 4.5em; font: 600 .9rem/1.3 var(--title); color: #1f3a4a; }
.lt-count output { min-width: 1.6em; text-align: center; font: 600 1.05rem/1 var(--title); color: #1f3a4a; }
.lt-pm { width: 40px; height: 40px; border: 1px solid #d5e2ea; border-radius: 50%; background: #fff; color: #1f3a4a; font: 400 1.25rem/1 var(--body); cursor: pointer; }
.lt-pm:hover { border-color: #1f3a4a; }
.lt-dt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 600 .9rem/1.3 var(--title); color: #1f3a4a; }
.lt-dt input { min-height: 44px; padding: 8px 12px; border: 1px solid #d5e2ea; border-radius: 10px; background: #f6f9fb; font: 500 1rem var(--body); color: #1f3a4a; }
.lt-sheet-foot { display: flex; align-items: center; gap: 16px; margin: 16px 0 0; }
.lt-sheet-foot .lt-next { min-width: 140px; margin-left: auto; }
.lt-err { margin: 12px 0 0; font: 500 .9rem/1.4 var(--body); color: #b42318; }
.lt-err:empty { display: none; }
/* typed answers (email, number, P.S., name) and the country search */
.lt-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font: 600 .88rem/1.3 var(--title); color: #1f3a4a; }
.lt-field:last-child { margin-bottom: 0; }
.lt-field em { font-style: normal; font-weight: 500; color: #8aa3b2; }
.lt-find { display: block; margin: 0 0 12px; }
.lt-find input, .lt-field input, .lt-field textarea { -webkit-appearance: none; appearance: none; width: 100%; min-height: 50px; margin: 0; padding: 11px 14px;
  border: 1px solid #d5e2ea; border-radius: 12px; background-color: #f6f9fb; font: 500 1rem/1.4 var(--body); color: #1f3a4a; }
.lt-field textarea { min-height: 110px; resize: vertical; }
.lt-find input { padding-left: 44px; background: #f6f9fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238aa3b2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 15px 50% / 18px no-repeat; }
.lt-find input:focus, .lt-field input:focus, .lt-field textarea:focus { outline: 2px solid var(--brand-sky); outline-offset: -1px; background-color: #fff; }
.lt-chips.at-country { max-height: min(34vh, 320px); overflow-y: auto; padding: 2px; }
.lt-chips.at-country .tf-c { justify-content: flex-start; border-radius: 12px; }
/* how many days: the number in big serif, nights beside it, and with an arrival date the dates under it */
.lt-days { display: flex; align-items: center; justify-content: center; gap: 18px; }
.lt-days-v { min-width: 9.5em; margin: 0; text-align: center; font: 500 1.05rem/1.2 var(--title); color: #5b7383; }
.lt-days-n { font: 400 2.7rem/1 var(--serif); color: #1f3a4a; }
.lt-days-x { margin: 0 .15em; color: #b9cbd6; }
.lt-days-s { min-height: 1.3em; margin: 6px 0 0; text-align: center; font: italic 400 1.15rem/1.3 var(--serif); color: var(--brand-blue); }
.lt-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 6px 0 0; background: transparent; cursor: pointer; }
.lt-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-sky) var(--p, 30%), #dfe8ee var(--p, 30%)); }
.lt-range::-moz-range-track { height: 6px; border-radius: 3px; background: #dfe8ee; }
.lt-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--brand-sky); }
.lt-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -12px; border: 3px solid var(--brand-blue);
  border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(17, 45, 60, .2); }
.lt-range::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid var(--brand-blue); border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(17, 45, 60, .2); }
.lt-range:focus-visible { outline: none; }
.lt-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(41, 171, 226, .35); }
.lt-range-k { display: flex; justify-content: space-between; margin: 0; font: 500 .78rem/1 var(--body); color: #8aa3b2; }
/* the last step: the letter is ready, and "Seal and send" is right there */
.lt-ready { text-align: center; }
.lt-ready-t { margin: 0 0 .25em; font: 400 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--serif); color: #1f3a4a; }
.lt-ready-s { margin: 0 0 18px; font-size: .95rem; color: var(--muted); }
.lt-ready .lt-send { width: 100%; }
.btn.gold.lt-send.nudge { animation: lt-ready 1.3s ease 2; }
@keyframes lt-ready { 45% { box-shadow: 0 0 0 9px rgba(251, 220, 3, .35); } }
.lt-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font: 600 .92rem/1.3 var(--title); color: #1f3a4a;
  text-decoration: underline; text-decoration-color: #b9cbd6; text-underline-offset: 5px; }
.lt-wa svg { width: 20px; height: 20px; color: #1f9d55; }
.lt-wa:hover { color: var(--brand-blue); text-decoration-color: currentColor; }
.lt-status { margin: 14px 0 0; font-weight: 500; }
.lt-status:empty { display: none; }
.lt-status.ok { color: #17643a; }
.lt-status.err { color: #b42318; }
.lt-sheet :focus-visible, .lt-foot :focus-visible, .lt-top :focus-visible { outline: 2px solid var(--brand-sky); outline-offset: 3px; }

/* the airmail envelope (placed and sized by site.js when sending). Its parts are stacked with the paper between
   them: the back and the open flap behind the paper, the front pocket and the closed flap over it. */
.lt-env { position: absolute; left: 0; top: 0; width: 340px; height: 220px; visibility: hidden; pointer-events: none;
  transition: transform .9s cubic-bezier(.55, 0, .75, .1), opacity .9s ease; }
.lt-env > * { position: absolute; }
.lt.sealing .lt-env { visibility: visible; }
.lt.sealing .lt-paper { transition: transform .75s cubic-bezier(.6, 0, .25, 1), box-shadow .5s; }
.lt.fold .lt-paper { box-shadow: 0 2px 6px rgba(17, 45, 60, .12); }
.lt.fold .lt-paper::before, .lt.fold .lt-paper::after { opacity: 1; }
.lt-paper > * { transition: opacity .3s ease; }
.lt.fold .lt-paper > * { opacity: 0; }
.lt.stamp .lt-paper { visibility: hidden; }
.lt-env-back { inset: 0; z-index: 1; border-radius: 6px; background: #e9dfc8; opacity: 0; transition: opacity .4s ease; }
.lt-env-front { inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 14% 0; border: 8px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--brand-sky) 0 11px, #fff 11px 17px, var(--brand-yellow) 17px 28px, #fff 28px 34px) 8;
  background: #f8f2e3 padding-box; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.lt-env-flap { left: 0; right: 0; top: 0; z-index: 1; height: 56%; transform-origin: 50% 0; transform: perspective(900px) rotateX(180deg);
  clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: 0;
  background: repeating-linear-gradient(-45deg, var(--brand-sky) 0 11px, #fff 11px 17px, var(--brand-yellow) 17px 28px, #fff 28px 34px) top / 100% 8px no-repeat, #f2eadb;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1), opacity .4s ease; }
.lt.fold .lt-env-back, .lt.fold .lt-env-flap, .lt.fold .lt-env-front { opacity: 1; }
.lt.fold .lt-env-front { transform: none; }
.lt.seal .lt-env-flap { z-index: 4; transform: perspective(900px) rotateX(0); }
.lt-env-from { position: absolute; left: 7%; bottom: 8%; margin: 0; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: italic 400 .82rem/1.2 var(--serif); color: #7d8a90; opacity: 0; transition: opacity .5s .3s; }
.lt-env-to { margin: 0 0 0 46%; font: italic 400 clamp(.95rem, 2.4vw, 1.15rem)/1.3 var(--serif); color: #1f3a4a; }
.lt-stamp { z-index: 5; top: 9%; right: 7%; width: 17%; aspect-ratio: 5 / 6; padding: 4px; background: #fff;
  -webkit-mask: radial-gradient(2.6px at 3px 3px, #0000 97%, #000) -3px -3px / 6px 6px round, linear-gradient(#000 0 0) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
  mask: radial-gradient(2.6px at 3px 3px, #0000 97%, #000) -3px -3px / 6px 6px round, linear-gradient(#000 0 0) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
  display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: scale(1.5) rotate(-8deg); transition: opacity .25s ease, transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.lt-stamp img { flex: 1; min-height: 0; width: 100%; object-fit: cover; background: #dde7ed; }
.lt-stamp span { font: 600 .5rem/1 var(--body); text-align: center; color: #1f3a4a; white-space: nowrap; overflow: hidden; }
.lt-env .lt-mark { z-index: 6; top: 6%; right: 18%; width: 40%; height: auto; color: rgba(31, 58, 74, .55); opacity: 0; transform: scale(1.4) rotate(-10deg);
  transition: opacity .2s ease .55s, transform .35s cubic-bezier(.3, 1.3, .5, 1) .55s; }
.lt.stamp .lt-stamp { opacity: 1; transform: rotate(3deg); }
.lt.stamp .lt-env .lt-mark { opacity: 1; transform: rotate(-10deg); }
.lt.stamp .lt-env-from { opacity: 1; }
.lt.fly .lt-env { transform: translate(min(60vw, 700px), -70vh) rotate(-16deg) scale(.55); opacity: 0; }

@media (max-width: 760px) {
  .lt-tip { justify-content: flex-start; text-align: left; }
  .lt-head { flex-direction: column; gap: 6px; margin-bottom: 20px; padding-bottom: 14px; }
  .lt.full .lt-to { display: none; }
  .lt.full .lt-date { font-size: .95rem; }
  .lt-date { font-size: 1.05rem; }
  .lt-title { display: none; }
  .lt-dots { max-width: none; margin: 0; }
  .lt-foot { flex-direction: column; align-items: stretch; gap: 16px; text-align: center; }
  .lt-chips, .lt-chips.at-love { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lt-chips.at-when { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .lt-chips.at-when .tf-c { min-height: 42px; padding: 0 .3em; }
  .lt-chips.at-when .tf-c:last-child { grid-column: span 6; }
  .lt-chips.at-tour { grid-template-columns: 1fr; }
  .lt-chips .tf-c { min-height: 46px; font-size: .88rem; }
  .lt-days-n { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lt.full, .lt-pane .lt-chips .tf-c, .lt-body .tf-b.up, .lt-send.nudge, .lt-done { animation: none; }
}

/* ---------- opening screen (js/hello.js; put up by HELLO_SCRIPT in build.py). The logo puts itself together on a
   pale sky, then flies into the header while the screen opens out from its round mark like a widening sunbeam.
   Every moving part of the logo is its own little drawing, so each move below is a move or fade of a whole box,
   which the browser hands to the graphics card: it stays smooth while the page is busy loading. Keep it that
   way: only transform and opacity move here (a change of fill, stroke or a dash would be redrawn by the page).
   Lengths in the moves are logo units (the logo is 204.64 units wide): calc(N * var(--ux)) is N units across
   and var(--uy) is the same downwards; hello.js sets both on every part, as a share of the part's own box.
   Every part is still while it waits: the moves are the keyframes below, so the finished logo is the plain state. */
@property --hl-r { syntax: "<length>"; inherits: false; initial-value: -140px; }
.hl { position: fixed; inset: 0; z-index: 2147483000; cursor: progress; animation: hl-away .4s ease 9s forwards; }
@keyframes hl-away { to { opacity: 0; visibility: hidden; } }
.hl-bg { position: absolute; inset: 0; background: radial-gradient(120% 95% at 50% 44%, #fff 0%, #f5fafd 46%, #e4f0f8 100%); }
/* the opening (a hole that widens from the round mark) only once it leaves: until then the screen is plainly
   solid, so the browser knows it hides the page and needn't keep drawing the page behind it */
.hl.out .hl-bg {
  -webkit-mask-image: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), transparent var(--hl-r), #000 calc(var(--hl-r) + 140px));
  mask-image: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), transparent var(--hl-r), #000 calc(var(--hl-r) + 140px)); }
.hl-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hl-logo { position: relative; display: block; width: min(400px, 74vw); aspect-ratio: 204.64 / 76.99; transform-origin: 0 0; }
.hl-art, .hl-word, .hl-small, .hl-mark, .hl-bird, .hl-motto { position: absolute; inset: 0; }
.hl-logo svg { position: absolute; display: block; overflow: visible; fill: currentColor; stroke: none; stroke-width: 0; }
.hl-big, .hl-disc, .hl-ring { position: absolute; }
.hl-big, .hl-disc, .hl-ring > i { overflow: hidden; }   /* the line the big letters rise out of, the round mark */
.hl-disc { border-radius: 50%; }
.hl-paper { color: #fff; }
.hl-dark, .hl-eye, .hl-motto, .hl-word { color: #2773b7; }
.hl-light { color: #2baae2; }
.hl-bird { color: #fedd00; }
.hl-dark, .hl-light, .hl-bird svg { fill-rule: evenodd; }
.hl-logo .hl-reg { fill: none; stroke: currentColor; stroke-width: .42; }
/* the ring: two half-circles, each turning into view inside its own half of the ring's box */
.hl-ring { opacity: 0; }
.hl-ring > i { position: absolute; left: 0; top: 0; width: 100%; height: 50%; }
.hl-ring > i + i { top: 50%; }
.hl-logo .hl-ring svg { fill: none; stroke: #2baae2; stroke-width: .45; }
.hl-flat { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
/* a fine line under the logo fills only if the page is still loading once the logo is done */
.hl-bar { position: relative; width: 112px; height: 2px; margin-top: clamp(26px, 5vh, 44px); border-radius: 2px; background: rgba(39, 115, 183, .13); overflow: hidden; opacity: 0; transition: opacity .5s; }
.hl-bar b { position: absolute; inset: 0; background: #2baae2; transform: scaleX(0); transform-origin: left; }

/* full: the first page of a visit (about 2.4s) */
/* the ring is drawn round from the left in .7s (the first half-circle eases in, the second eases out: together
   one cubic-bezier(.65, 0, .35, 1)), then fades */
.hl-full .hl-ring { animation: hl-ring 1.2s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes hl-ring { 0%, 58% { opacity: 1; } 100% { opacity: 0; } }
.hl-full .hl-ring > i svg { animation: hl-arc .348s cubic-bezier(.65, 0, .825, .5) both; }
.hl-full .hl-ring > i + i svg { animation: hl-arc-2 .348s cubic-bezier(.175, .5, .35, 1) .348s both; }
@keyframes hl-arc { from { transform: rotate(-180deg); } }
/* (the second half waits unseen: its tip would show as a dot where it starts) */
@keyframes hl-arc-2 { 0% { transform: rotate(-180deg); opacity: 0; } .1% { opacity: 1; } }
.hl-full .hl-paper { animation: hl-paper .7s cubic-bezier(.2, .7, .2, 1) .2s both; }
@keyframes hl-paper { from { opacity: 0; transform: scale(.84); } }
.hl-full .hl-dark { animation: hl-turn-a 1.15s cubic-bezier(.16, 1, .3, 1) .32s both; }
.hl-full .hl-light { animation: hl-turn-b 1.15s cubic-bezier(.16, 1, .3, 1) .42s both; }
@keyframes hl-turn-a { from { transform: rotate(-85deg); opacity: 0; } 30% { opacity: 1; } }
@keyframes hl-turn-b { from { transform: rotate(85deg); opacity: 0; } 30% { opacity: 1; } }
.hl-full .hl-eye { animation: hl-pop .55s cubic-bezier(.34, 1.9, .64, 1) 1s both; }
@keyframes hl-pop { from { transform: scale(0); } }
.hl-full .hl-wing { animation: hl-wing .85s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.86s + var(--i) * .08s); }
@keyframes hl-wing { from { transform: translateX(calc(-24 * var(--ux))); opacity: 0; } }
.hl-full .hl-body { animation: hl-land .85s cubic-bezier(.34, 1.5, .6, 1) 1.02s both; }
@keyframes hl-land { from { transform: translate(calc(-6 * var(--ux)), calc(-13 * var(--uy))) rotate(-20deg); opacity: 0; } 45% { opacity: 1; } }
.hl-full .hl-motto svg { animation: hl-letter .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(1.02s + var(--i) * .026s); }
@keyframes hl-letter { from { opacity: 0; transform: translate(calc(var(--dx) * var(--ux)), calc(var(--dy) * var(--uy))) scale(.3); } }
.hl-full .hl-mark { animation: hl-slide 1s cubic-bezier(.76, 0, .24, 1) 1.42s both; }
@keyframes hl-slide { from { transform: translateX(calc(64 * var(--ux))) scale(1.18); } }
.hl-full .hl-big svg { animation: hl-rise .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(1.6s + var(--i) * .055s); }
@keyframes hl-rise { from { transform: translateY(calc(38 * var(--uy))); } }
.hl-full .hl-small svg { animation: hl-track 1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(1.94s + var(--i) * .022s); }
@keyframes hl-track { from { opacity: 0; transform: translateX(calc(var(--dx) * var(--ux))); } }
.hl-full .hl-reg { animation: hl-fade .5s ease 2.25s both; }
@keyframes hl-fade { from { opacity: 0; } }
/* short: a reload, or a later visit to the site in the same tab */
.hl-short .hl-logo { animation: hl-in .65s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hl-in { from { opacity: 0; translate: 0 12px; } }

/* still loading: the wings shimmer and the line fills */
.hl.wait .hl-wing { animation: hl-shimmer 1.5s ease-in-out infinite; animation-delay: calc(var(--i) * .15s); }
@keyframes hl-shimmer { 50% { opacity: .4; } }
.hl.wait .hl-bar { opacity: 1; }
.hl.wait .hl-bar b { animation: hl-load 8s cubic-bezier(.1, .6, .2, 1) forwards; }
@keyframes hl-load { to { transform: scaleX(.92); } }
.hl.fast .hl-logo, .hl.fast .hl-logo * { animation: none !important; }

/* leaving: the pale screen opens from the round mark while the logo flies into the header */
.hl.out { pointer-events: none; cursor: auto; }
.hl.out .hl-bg { --hl-r: var(--hl-end, 150vmax); transition: --hl-r 1.05s cubic-bezier(.6, 0, .2, 1), opacity .3s ease .8s; opacity: 0; }
.hl.out .hl-bar { opacity: 0; transition-duration: .2s; }
.hl.fly .hl-logo { transition: transform 1.05s cubic-bezier(.65, 0, .25, 1); }
.hl.fade .hl-logo { opacity: 0; transform-origin: 50% 50%; transform: scale(1.05); transition: opacity .5s ease, transform .8s ease; }
/* landing on the white logo over a photo: the header's own white logo (hello.js puts it in) fades in over the
   colour one as it flies, so the colours whiten and the elephant and the bird become see-through */
.hl-art, .hl-flat { transition: opacity .55s ease .35s; }
.hl-white .hl-art { opacity: 0; }
.hl-white .hl-flat { opacity: 1; }
/* while it is up: the header's own logo waits (the flying one lands on it), and the page's opening animations wait */
.hl-on .site-header .logo img { opacity: 0; }
.hl-hold main *, .hl-hold main *::before, .hl-hold main *::after { animation-play-state: paused !important; }
/* less motion: no build and no flight, the screen simply fades */
.hl-calm .hl.out { opacity: 0; transition: opacity .45s ease; }
.hl-calm .hl.out .hl-bg { transition: none; --hl-r: -140px; opacity: 1; }

/* ---------- the header while a menu sheet (or the phone menu) is open: the sheet's paper colour, the colour logo and
   dark words, also over a photo. It comes last so it wins over the see-through header above. */
.site-header.site-header.is-open, .nav-open .site-header.site-header { background-color: var(--paper); box-shadow: none; }
.site-header.is-open.is-open::before, .nav-open .site-header.site-header::before { background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
:is(.site-header.is-open, .nav-open .site-header) .logo .logo-dark { opacity: 1; }
:is(.site-header.is-open, .nav-open .site-header) .logo .logo-light { opacity: 0; }
:is(.site-header.is-open, .nav-open .site-header) :is(.nav .top, .hd-ic, .nav-toggle) { color: #1f3a4a; }
:is(.site-header.is-open, .nav-open .site-header) :is(.nav .top:hover, .hd-ic:hover) { color: var(--brand-blue); }
:is(.site-header.is-open, .nav-open .site-header) .hd-ic:hover { background-color: rgba(31, 116, 186, .08); }
:is(.site-header.is-open, .nav-open .site-header) .nav-ink { background: var(--brand-blue); }

/* ---------- our own chat box (build.py chat_box, site.js "chat box"; settings "chat_box: on"). In the bottom corner,
   a round sun with a speech bubble; pointing at it opens out the words "Chat with us", and on phones a minute after
   the visitor starts scrolling it opens out once by itself, with a soft chime. It opens a paper card above it: a logo-blue top with the logo mark, "Ayubowan." and whether the team is
   in (with the time in Sri Lanka), then the messages, starting questions as chips, and a white box to write in with
   a yellow sun to send. On phones the card is a sheet from the bottom over a dimmed page. It steps aside for the
   full-screen letter, the phone menu and the month question. */
.cb { --cb-w: 384px; --cb-gap: 24px; --cb-sun: 44px; --cb-edge: 6px; position: fixed; right: var(--cb-gap); bottom: var(--cb-gap); z-index: 70;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; font-family: var(--body); }
.cb > * { pointer-events: auto; }
.cb svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.lt-lock .cb, body.nav-open .cb, html.ma-open .cb { display: none; }
@media print { .cb { display: none; } }

/* the launcher: a sun pill like "Plan my trip", with a speech bubble on its sun instead of the arrow */
.cb-open { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; height: calc(var(--cb-sun) + var(--cb-edge) * 2);
  padding: var(--cb-edge); border: 0; border-radius: 48px; background: var(--brand-yellow, #fbdc03); color: var(--brand-navy, #0c3460);
  font: 700 .95rem/1 var(--title); cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 14px 34px -12px rgba(12, 52, 96, .5), 0 2px 6px rgba(12, 52, 96, .12);
  transition: color .4s ease, transform .2s ease, opacity .3s ease, background-color 0s; }
.cb-open::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand-sky, #29abe2);
  clip-path: circle(calc(var(--cb-sun) / 2) at calc(100% - var(--cb-edge) - var(--cb-sun) / 2) 50%);
  transition: clip-path .6s cubic-bezier(.2, .7, .2, 1), background-color .45s ease; }
/* as on the sun pills: once the blue has covered it, the button turns blue too, so no yellow edge shows */
.cb-open:hover { color: #fff; background-color: var(--brand-blue, #1f74ba);
  transition: color .4s ease, transform .2s ease, opacity .3s ease, background-color 0s .42s; }
.cb-open:hover::before { background: var(--brand-blue, #1f74ba); clip-path: circle(160% at calc(100% - var(--cb-edge) - var(--cb-sun) / 2) 50%); }
@media (hover: none) { .cb-open:hover { color: var(--brand-navy, #0c3460); background-color: var(--brand-yellow, #fbdc03); } .cb-open:hover::before { background: var(--brand-sky, #29abe2); clip-path: circle(calc(var(--cb-sun) / 2) at calc(100% - var(--cb-edge) - var(--cb-sun) / 2) 50%); } }
.cb-open:focus-visible { outline: 2px solid var(--brand-blue, #1f74ba); outline-offset: 3px; }
.cb-open:active { transform: scale(.97); }
/* the words stay folded away: pointing at the pill opens them out, and on phones the one-minute nudge does (site.js) */
.cb-label { max-width: 0; padding: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .55s var(--glide), padding .55s var(--glide), opacity .3s ease; }
@media (hover: hover) { .cb:not(.on) .cb-open:hover .cb-label { max-width: 9em; padding: 0 16px 0 14px; opacity: 1; transition-delay: 0s, 0s, .12s; } }
.cb:not(.on) .cb-open:focus-visible .cb-label, .cb.nudge:not(.on) .cb-label { max-width: 9em; padding: 0 16px 0 14px; opacity: 1; transition-delay: 0s, 0s, .12s; }
.cb.nudge:not(.on) .cb-i-chat { animation: cb-wiggle .8s ease .35s 2; }
@keyframes cb-wiggle { 20% { transform: rotate(-14deg); } 45% { transform: rotate(11deg); } 70% { transform: rotate(-6deg); } }
.cb-sun { position: relative; flex: none; display: grid; place-items: center; width: var(--cb-sun); height: var(--cb-sun); color: #fff; }
.cb-sun svg { grid-area: 1 / 1; width: 22px; height: 22px; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .25s ease; }
.cb-i-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.cb.on .cb-i-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.cb.on .cb-i-x { opacity: 1; transform: none; }
/* green while the team is in; a red dot when a reply came while the card was shut */
.cb-ping { position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; border-radius: 50%; background: #34c26a;
  box-shadow: 0 0 0 2px var(--brand-sky, #29abe2); opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .4s var(--glide), box-shadow .45s ease; }
.cb.in .cb-ping, .cb.news .cb-ping { opacity: 1; transform: none; }
.cb.news .cb-ping { background: #e0463a; animation: cb-ping 1.6s ease-out 3; }
.cb.on .cb-ping { opacity: 0; transform: scale(.4); animation: none; }
.cb-open:hover .cb-ping { box-shadow: 0 0 0 2px var(--brand-blue, #1f74ba); }
@keyframes cb-ping { 0% { box-shadow: 0 0 0 2px var(--brand-sky, #29abe2), 0 0 0 2px rgba(224, 70, 58, .5); }
  100% { box-shadow: 0 0 0 2px var(--brand-sky, #29abe2), 0 0 0 12px rgba(224, 70, 58, 0); } }

/* the card */
.cb-card { display: flex; flex-direction: column; width: min(var(--cb-w), calc(100vw - var(--cb-gap) * 2));
  height: max(340px, min(640px, calc(100vh - var(--hh, 84px) - 128px)));
  overflow: hidden; background: var(--paper, #fbfaf7); border-radius: 24px; color: var(--ink);
  box-shadow: 0 34px 80px -24px rgba(9, 28, 36, .5), 0 0 0 1px rgba(17, 61, 72, .07);
  transform-origin: calc(100% - 28px) calc(100% + 40px); opacity: 0; transform: translateY(18px) scale(.94);
  transition: opacity .28s ease, transform .5s var(--glide); }
.cb-card[hidden] { display: none; }
.cb.on .cb-card { opacity: 1; transform: none; }

.cb-head { position: relative; isolation: isolate; overflow: hidden; flex: none; display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 60px 20px 22px; background: var(--brand-blue, #1f74ba); color: #fff; }
/* a light-blue sun rising behind the words */
.cb-head::after { content: ""; position: absolute; z-index: -1; right: -70px; bottom: -120px; width: 230px; height: 230px; border-radius: 50%;
  background: var(--brand-sky, #29abe2); opacity: .4; }
.cb-mark { flex: none; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }
.cb-mark img { display: block; width: auto; max-width: none; height: 49.4px; margin: -3.4px 0 0 0; }
.cb-who { min-width: 0; }
.cb-kick { margin: 2px 0 0; font: 700 .7rem/1.2 var(--title); letter-spacing: .22em; text-transform: uppercase; opacity: .82; }
.cb-hi { margin: 4px 0 0; font: 400 2.15rem/1 var(--serif); letter-spacing: 0; color: #fff; }
.cb-state { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .8rem; line-height: 1.35; color: rgba(255, 255, 255, .9); }
.cb-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-yellow, #fbdc03); box-shadow: 0 0 0 3px rgba(251, 220, 3, .25); }
.cb.in .cb-dot { background: #4fd884; box-shadow: 0 0 0 3px rgba(79, 216, 132, .25); }
.cb-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .25s ease, transform .3s var(--glide); }
.cb-x svg { width: 18px; height: 18px; }
.cb-x:hover { background: rgba(255, 255, 255, .26); transform: rotate(90deg); }
.cb-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the messages */
.cb-log { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 18px 18px 12px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(17, 61, 72, .18) transparent; }
.cb-day { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; font: 700 .7rem/1 var(--title); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cb-day::before, .cb-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cb-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.cb-msg p { margin: 0; padding: 11px 15px; border-radius: 20px; font-size: .92rem; line-height: 1.5; text-wrap: pretty; overflow-wrap: anywhere; white-space: pre-line; }
.cb-msg.them { align-self: flex-start; }
.cb-msg.them p { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cb-msg.me { align-self: flex-end; align-items: flex-end; }
.cb-msg.me p { background: var(--brand-blue, #1f74ba); color: #fff; border-bottom-right-radius: 6px; }
.cb-by { margin: 6px 8px 0; font-size: .72rem; color: var(--muted); }
.cb-msg.new { animation: cb-in .5s var(--glide) both; }
.cb-msg.them.new { transform-origin: 0 100%; }
.cb-msg.me.new { transform-origin: 100% 100%; }
@keyframes cb-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
/* "typing" dots, for when the team is writing */
.cb-typing p { display: flex; gap: 5px; padding: 15px 16px; }
.cb-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .35; animation: cb-dots 1.2s ease-in-out infinite; }
.cb-typing i:nth-child(2) { animation-delay: .15s; }
.cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cb-dots { 30% { opacity: 1; transform: translateY(-3px); } 60% { opacity: .35; transform: none; } }
/* starting questions, on the visitor's side */
.cb-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 4px 0 0 12%; }
.cb-chips.gone { display: none; }
.cb-chip { padding: 9px 15px; border: 1px solid rgba(31, 116, 186, .32); border-radius: 48px; background: #fff; color: var(--brand-blue, #1f74ba);
  font: 600 .82rem/1.2 var(--title); cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease; }
.cb-chip:hover { background: var(--brand-blue, #1f74ba); border-color: var(--brand-blue, #1f74ba); color: #fff; }
.cb-chip:active { transform: scale(.97); }
.cb-chip:focus-visible { outline: 2px solid var(--brand-sky, #29abe2); outline-offset: 2px; }
/* a note from the site itself (not from the team), in the middle */
.cb-note { align-self: center; max-width: 92%; margin: 6px 0; padding: 13px 16px; border-radius: 16px; background: #fdf6cf; color: var(--brand-navy, #0c3460);
  font-size: .84rem; line-height: 1.5; text-align: center; animation: cb-in .5s var(--glide) both; }
.cb-note p { margin: 0; }
.cb-note a { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 8px 14px; border-radius: 48px; background: #fff;
  color: var(--brand-blue, #1f74ba); font: 700 .8rem/1 var(--title); text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.cb-note a:hover { background: var(--brand-blue, #1f74ba); color: #fff; }
.cb-note svg { width: 16px; height: 16px; }
/* live chat: a message on its way is faint; one that couldn't get through has a dashed edge and "Try again" */
.cb-msg.me.sending p { opacity: .6; }
.cb-msg.me.failed p { background: #fff; color: var(--brand-blue, #1f74ba); border: 1px dashed rgba(31, 116, 186, .5); }
.cb-retry { padding: 0; border: 0; background: none; color: #b3402f; font: 600 .72rem/1.4 var(--body); cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px; }
.cb-retry:hover { color: var(--brand-blue, #1f74ba); }
/* who they are, before a new chat: the write box and the starting questions wait until it's filled in (site.js) */
.cb-you { display: none; margin: 2px 0 0; padding: 15px 16px 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.cb.ask-who .cb-you { display: block; animation: cb-in .5s var(--glide) both; }
.cb.ask-who .cb-write, .cb.ask-who .cb-chips, .cb.ask-who .cb-as { display: none; }
.cb-you-t { margin: 0 0 4px; color: var(--brand-navy, #0c3460); font-size: .86rem; line-height: 1.5; }
.cb-you label { display: block; margin: 11px 0 5px; color: var(--muted); font: 600 .76rem/1.2 var(--title); }
.cb-you input { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 10px 15px; border: 1px solid rgba(12, 52, 96, .16);
  border-radius: 48px; background: #fbf8f2; color: var(--ink); font: 400 .92rem/1.3 var(--body); outline: 0;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.cb-you input::placeholder { color: #8d9ea8; }
.cb-you input:focus { border-color: var(--brand-sky, #29abe2); background: #fff; box-shadow: 0 0 0 3px rgba(41, 171, 226, .16); }
.cb-you-no { margin: 9px 2px 0; color: #b3402f; font-size: .8rem; line-height: 1.4; }
.cb-you button { display: block; width: 100%; margin: 14px 0 0; padding: 12px; border: 0; border-radius: 48px; background: var(--brand-yellow, #fbdc03);
  color: var(--brand-navy, #0c3460); font: 700 .9rem/1 var(--title); cursor: pointer; transition: background-color .25s ease, color .25s ease, transform .2s ease; }
.cb-you button:hover, .cb-you button:focus-visible { background: var(--brand-blue, #1f74ba); color: #fff; }
.cb-you button:focus-visible { outline: 2px solid var(--brand-sky, #29abe2); outline-offset: 2px; }
.cb-you button:active { transform: scale(.98); }
.cb-as { margin: 0 4px; color: var(--muted); font-size: .74rem; text-align: right; }
.cb-as:empty { display: none; }

/* writing */
.cb-write { flex: none; display: flex; align-items: flex-end; gap: 8px; margin: 4px 14px 0; padding: 6px 6px 6px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 28px; transition: border-color .25s ease, box-shadow .25s ease; }
.cb-write:focus-within { border-color: var(--brand-sky, #29abe2); box-shadow: 0 0 0 4px rgba(41, 171, 226, .14); }
.cb-write textarea { flex: 1; min-width: 0; max-height: 8.4em; margin: 0; padding: 9px 0; border: 0; outline: 0; resize: none; overflow-y: hidden; background: transparent;
  color: var(--ink); font: 400 .95rem/1.45 var(--body); scrollbar-width: thin; }
.cb-write textarea::placeholder { color: #8d9ea8; }
.cb-send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--brand-yellow, #fbdc03); color: var(--brand-navy, #0c3460); cursor: pointer;
  transition: background-color .3s ease, color .3s ease, transform .2s ease; }
.cb-send svg { width: 19px; height: 19px; stroke-width: 2.4; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.cb-send:hover, .cb-send:focus-visible { background: var(--brand-blue, #1f74ba); color: #fff; }
.cb-send:hover svg, .cb-send:focus-visible svg { transform: rotate(-45deg); }
.cb-send:focus-visible { outline: 2px solid var(--brand-sky, #29abe2); outline-offset: 2px; }
.cb-send:active { transform: scale(.94); }
.cb-send.idle { background: #eef1f2; color: #8d9ea8; }
.cb-alt { flex: none; margin: 0; padding: 10px 18px 14px; text-align: center; }
.cb-alt a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .78rem; text-decoration: none; transition: color .25s ease; }
.cb-alt a:hover { color: var(--brand-blue, #1f74ba); }
.cb-alt svg { width: 15px; height: 15px; }

/* phones: a smaller pill, and the card is a sheet from the bottom over a dimmed page */
@media (max-width: 640px) {
  .cb { --cb-gap: 16px; --cb-sun: 40px; --cb-edge: 5px; }
  .cb-open { font-size: .9rem; }
  .cb::before { content: ""; position: fixed; inset: 0; background: rgba(9, 28, 36, .42); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  .cb.on::before { opacity: 1; pointer-events: auto; }
  .cb-card { position: fixed; left: 0; right: 0; bottom: var(--cb-kb, 0px); width: auto; height: min(88vh, calc(var(--cb-vh, 100vh) - 28px));
    border-radius: 24px 24px 0 0; opacity: 1; transform: translateY(105%); transition: transform .55s var(--glide);
    padding-bottom: env(safe-area-inset-bottom); }
  @supports (height: 100dvh) { .cb-card { height: min(88dvh, calc(var(--cb-vh, 100dvh) - 28px)); } }
  .cb.on .cb-card { transform: none; }
  .cb.on .cb-open { opacity: 0; pointer-events: none; transform: scale(.7); }
  /* a handle at the top of the sheet */
  .cb-head { padding-top: 28px; }
  .cb-head::before { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
  .cb-hi { font-size: 2rem; }
  .cb-write textarea, .cb-you input { font-size: 1rem; }   /* 16px, or iPhones zoom in on the box */
  html.cb-lock, html.cb-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .cb-card, .cb-open, .cb-open::before, .cb-label, .cb-sun svg, .cb-ping, .cb-x, .cb-send, .cb-send svg { transition: none; }
  .cb-msg.new, .cb-note, .cb.news .cb-ping, .cb-typing i, .cb.nudge .cb-i-chat { animation: none; }
}
