/* How to get here, the quiet version (quiet.js). Mock, 2026-11-17. */
.quiet-page { --green: #2F4A3D; }

/* 1. the photo */
.q-hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #3b4a42; color: var(--white); }
.q-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,23,20,.25) 0, rgba(22,23,20,0) 30%, rgba(22,23,20,.15) 55%, rgba(22,23,20,.62) 100%); }
.q-hero-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 11vh; text-align: center; padding: 0 16px; }
.q-hero-copy .eyebrow { margin: 0 0 18px; font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(251,250,247,.85); }
.q-hero-copy .eyebrow a { color: inherit; }
.q-hero h1 { margin: 0 auto 14px; max-width: 14ch; font: 400 clamp(44px, 7vw, 104px)/.98 var(--serif); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(22,23,20,.35); }
.q-hero-dek { margin: 0 auto; max-width: 34em; font: italic 400 clamp(17px, 1.6vw, 22px)/1.4 var(--serif); color: rgba(251,250,247,.92); }
.q-credit { position: absolute; z-index: 1; right: 14px; bottom: 10px; margin: 0; font-size: .68rem; color: rgba(251,250,247,.7); }
.q-credit a { color: inherit; }

/* 2. the facts, then the wide map */
.q-intro { max-width: 1040px; margin: 0 auto; padding: 72px clamp(16px, 5vw, 48px) 40px; }
.q-lede p { margin: 0 0 22px; max-width: 38em; font: 400 clamp(19px, 1.6vw, 22px)/1.5 var(--sans); letter-spacing: -.012em; }
.q-lede strong { font-weight: 500; }
.q-lede a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
.q-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .92rem; color: var(--quiet); }
.q-nav .k { font: 500 .64rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.q-nav code { font: 500 .92rem/1 var(--sans); color: var(--ink); padding: 6px 9px; background: var(--stone); border-radius: 3px; }
.q-nav .maps, .q-end-links .maps { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
.q-nav .g-btn { margin-left: auto; }

.q-wide { position: relative; margin: 0 0 24px; }
.q-wide-frame { position: relative; aspect-ratio: 16 / 9; max-height: 92vh; width: 100%; overflow: hidden; background: #D8D4CB; }
.q-wide-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-r { fill: none; stroke-linecap: round; stroke-linejoin: round; }      /* drawn whole, not animated */
.q-r--cbe { stroke: var(--ember); stroke-width: 3.2; }
.q-r--pkd { stroke: #fff; stroke-width: 9; }        /* the mask over the dashed Palakkad road (kept so it can animate again) */
.q-r-dash { fill: none; stroke: var(--ember); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 6; }
.q-rlab--phone { display: none; }
.q-rlab { font: 500 12.5px/1 var(--sans); letter-spacing: .02em; fill: #8A5426; paint-order: stroke; stroke: rgba(236,233,226,.92); stroke-width: 3.5px; opacity: 0; }
.q-place circle { fill: #3a3b37; }
.q-place text, .q-scale text { font: 500 13px/1 var(--sans); fill: #2c2d29; paint-order: stroke; stroke: rgba(236,233,226,.9); stroke-width: 3px; }
.q-place--l text { text-anchor: end; } .q-place--a text { text-anchor: middle; }
.q-air circle { fill: var(--white); stroke: var(--ember); stroke-width: 1.6; }
.q-air path { fill: var(--ink); }
.q-air--phone { display: none; }
.q-home-ground { fill: rgba(243,241,236,.82); filter: blur(4px); }      /* a little ground under the name */
.q-home--phone { display: none; }
.q-home-name { font: 500 23px/1 var(--sans); letter-spacing: .16em; fill: var(--ink); paint-order: stroke; stroke: rgba(243,241,236,.92); stroke-width: 5px; }
.q-scale path { stroke: #2c2d29; stroke-width: 1.2; fill: none; }
.q-scale text { font-size: 11px; }
.q-wide-note { position: absolute; top: 5vw; right: 5%; width: min(330px, 34%); margin: 0; font: 400 clamp(15px, 1.25vw, 18px)/1.45 var(--serif); color: #2c2d29;
  text-shadow: 0 0 10px rgba(236,233,226,.9); }
.q-wide figcaption, .q-drawn figcaption { max-width: 1040px; margin: 10px auto 0; padding: 0 clamp(16px, 5vw, 48px); font-size: .76rem; color: var(--quiet); }

/* arrivals beside headings: the plane by "Flying in", the train by "By train" (quiet.js runs them once).
   Clipped (contain: paint): Firefox otherwise counts the drawing area as page width. */
.q-arrive { display: inline-block; width: 300px; height: 60px; margin: 0 0 0 10px; vertical-align: -14px; contain: paint; }
.q-arrive > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.q-fly-trail { fill: none; stroke: var(--ember); stroke-width: 1.6; stroke-linecap: round; opacity: .8; }
.q-arrive--plane .q-arrive-veh path { fill: var(--ink); }
.q-rail-line { fill: none; stroke: rgba(22,23,20,.45); stroke-width: 1.2; }
.q-rail-sleepers { fill: none; stroke: var(--ember); stroke-width: 6; opacity: .8; }
.q-train-ico g g { stroke: var(--ink); stroke-width: 1.5; }
.q-road-bed { fill: none; stroke: rgba(22,23,20,.16); stroke-width: 6; stroke-linecap: round; }
.q-road-mid { fill: none; stroke: var(--ember); stroke-width: 1.2; opacity: .9; }
.q-suv-ico g g { stroke: var(--ink); stroke-width: 1.5; }
.q-xroad { fill: none; stroke: rgba(22,23,20,.35); stroke-width: 1.2; stroke-linecap: round; transition: opacity .6s; }
.q-xroad-mid { fill: none; stroke: var(--ember); stroke-width: 1.2; stroke-dasharray: 4 4; transition: opacity .6s; }
.q-ele-ico path { fill: #3E3F3A; }

/* our gate beside "The last stretch": the leaf swings open toward us (foreshortened on its hinge) */
.q-gate-post { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.q-gate-lamp { fill: var(--ember); }
.q-gate-leaf { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round;
  transform-box: view-box; transform-origin: 74px 31px; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.q-gate.open .q-gate-leaf { transform: scaleX(.1); }
.q-arrive--gate:not(:has(.open)) .q-gate-leaf { transition-duration: 0s; }      /* a reset snaps shut */

/* the tea stall beside "Towns on the way" (quiet.js adds .on as the heading comes up the screen) */
.q-stall { display: inline-block; width: 160px; height: 60px; margin: 0 0 0 14px; vertical-align: -14px; }
.q-stall > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.q-st-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.4,0,.2,1); }
.q-st-ground { stroke: rgba(22,23,20,.35); stroke-width: 1.2; }
.q-st-awning { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform .55s cubic-bezier(.3,1.3,.5,1) .6s; }
.q-st-stripe { fill: var(--ember); } .q-st-stripe.alt { fill: var(--white); }
.q-st-scallop { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.q-st-bananas path { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; }
.q-st-bananas .q-st-ban { stroke: #D9A93E; stroke-width: 2.2; }
.q-st-bananas, .q-st-glass { opacity: 0; transform: translateY(-4px); transition: opacity .35s, transform .35s; }
.q-st-bananas { transition-delay: 1.05s; } .q-st-glass { transition-delay: 1.25s; }
.q-st-tumbler { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.q-st-tea { fill: #C27A3A; }
.q-st-steam path { fill: none; stroke: rgba(22,23,20,.45); stroke-width: 1.1; stroke-linecap: round; opacity: 0; }
.q-stall.on .q-st-line { stroke-dashoffset: 0; }
.q-stall.on .q-st-awning { transform: none; }
.q-stall.on .q-st-bananas, .q-stall.on .q-st-glass { opacity: 1; transform: none; }
.q-stall.on .q-st-steam path { animation: q-steam 3.2s ease-in-out 1.7s infinite; }
.q-stall.on .q-st-steam path + path { animation-delay: 2.6s; }
@keyframes q-steam { 0% { opacity: 0; transform: translateY(3px); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-3px); } }
.q-stall:not(.on) * { transition: none !important; }      /* reset instantly when scrolled back up */
@media (prefers-reduced-motion: reduce) { .q-stall .q-st-steam path { animation: none !important; } }

/* the checklist beside "Before you leave the city": each item rings ember and gets its tick in turn */
.q-check { display: inline-block; width: 156px; height: 60px; margin: 0 0 0 14px; vertical-align: -14px; }
.q-check > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.q-check-ring { fill: none; stroke: rgba(22,23,20,.28); stroke-width: 1.2; transition: stroke .4s, fill .4s; }
.q-check-item > svg path { fill: rgba(22,23,20,.55); transition: fill .4s; }
.q-check-badge { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.q-check-badge circle { fill: var(--ember); }
.q-check-badge path { fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s .15s; }
.q-check.on .q-check-item { --d: calc(var(--i) * .55s); }
.q-check.on .q-check-ring { stroke: var(--ember); fill: rgba(217,135,62,.08); transition-delay: var(--d); }
.q-check.on .q-check-item > svg path { fill: var(--ink); transition-delay: var(--d); }
.q-check.on .q-check-badge { opacity: 1; transform: none; transition-delay: var(--d); }
.q-check.on .q-check-badge path { stroke-dashoffset: 0; transition-delay: calc(var(--d) + .15s); }
.q-check:not(.on) * { transition: none !important; }       /* reset instantly when scrolled back up */
@media (max-width: 760px) { .q-arrive { width: 150px; height: 30px; margin-left: 6px; vertical-align: -6px; }
  .q-check { width: 104px; height: 40px; margin-left: 8px; vertical-align: -9px; }
  .q-stall { width: 96px; height: 36px; margin-left: 8px; vertical-align: -8px; } }

/* 3. the guide, with the road down the margin */
.q-body { grid-template-columns: minmax(170px, 210px) minmax(0, 1fr); }
.q-rail { position: sticky; top: 92px; align-self: start; padding-top: 6px; }
.q-rail-now { margin: 0 0 10px; min-height: 2.4em; font: 500 .64rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--quiet); }
.q-rail svg { display: block; width: 100%; height: min(calc(100vh - 220px), 560px); overflow: visible; }
.q-rail-base { fill: none; stroke: rgba(22,23,20,.28); stroke-width: 1; stroke-dasharray: 2 3; }
.q-rail-done { fill: none; stroke: var(--ember); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.q-stop circle { fill: var(--bone); stroke: rgba(22,23,20,.45); stroke-width: 1; transition: fill .3s, stroke .3s; }
.q-stop text { font: 500 10.5px/1 var(--sans); fill: rgba(22,23,20,.45); transition: fill .3s; }
.q-stop.passed circle { fill: var(--ember); stroke: var(--ember); }
.q-stop.passed text { fill: var(--ink); }
.q-rail-km { margin: 8px 0 0; font-size: .74rem; color: var(--quiet); }

/* the drawn last stretch breaks out of the text column */
/* centred on the text column, and only as wide as keeps its left edge clear of the road in the margin
   (the rail sits 48-72px left of the column: 36px past the text each side, at most 840, always clears it) */
.q-drawn { margin: 28px 0 34px; width: min(840px, calc(100% + 72px)); position: relative; left: 50%; transform: translateX(-50%); }
.q-drawn .tw-frame { border-radius: 3px; }
.q-drawn .tw-key { margin: 10px 16px 0; }
.q-drawn figcaption { padding: 0; margin-left: 6%; }

/* 4. the ending: the hills, traced */
.q-end { position: relative; overflow: hidden; background: var(--green); color: var(--bone); min-height: 92vh; padding: 14vh clamp(16px, 7vw, 110px) 8vh;
  display: grid; align-content: start; }
.q-ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.q-ridge { fill: none; stroke: var(--bone); stroke-linecap: round; stroke-linejoin: round; }
.q-ridge--0 { stroke-width: 2; opacity: .95; } .q-ridge--1 { stroke-width: 1.5; opacity: .7; }
.q-ridge--2 { stroke-width: 1.2; opacity: .48; } .q-ridge--3 { stroke-width: 1; opacity: .32; }
.q-peak circle { fill: var(--bone); } .q-peak text { font: 500 13px/1 var(--sans); fill: rgba(243,241,236,.8); }
.q-end-copy { position: relative; z-index: 1; max-width: 520px; }
.q-end .eyebrow { margin: 0 0 18px; font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(243,241,236,.7); }
.q-end h2 { margin: 0 0 22px; font: 400 clamp(44px, 6.4vw, 92px)/1 var(--serif); letter-spacing: -.02em; color: var(--white); }
.q-addr { margin: 0 0 12px; font-size: .98rem; line-height: 1.6; color: rgba(243,241,236,.85); }
.q-addr code { font: 500 .9rem/1 var(--sans); color: var(--white); padding: 4px 7px; background: rgba(243,241,236,.12); border-radius: 3px; }
.q-end-links { margin: 0 0 26px; } .q-end-links .maps { color: var(--white); }
.q-end-cap { position: absolute; right: 18px; bottom: 12px; margin: 0; font-size: .7rem; color: rgba(243,241,236,.55); }

@media (max-width: 960px) {
  .q-rail { display: none; }
  .q-body { grid-template-columns: minmax(0, 1fr); }      /* no rail, so no rail column: the text gets the width */
  .q-drawn { left: auto; transform: none; width: calc(100% + 32px); margin-left: -16px; }
  .q-drawn figcaption { margin-left: 16px; }
}
@media (max-width: 760px) {
  .q-wide-frame { aspect-ratio: 940 / 720; }
  .q-place text, .q-scale text { font-size: 22px; } .q-home--desk { display: none; } .q-home--phone { display: inline; } .q-place circle { r: 5; }
  .q-r--cbe, .q-r-dash { stroke-width: 5; } .q-r-dash { stroke-dasharray: 11 9; } .q-r--pkd { stroke-width: 13; }
  .q-rlab { font-size: 21px; } .q-air--desk { display: none; } .q-air--phone { display: inline; } .q-rlab--desk { display: none; } .q-rlab--phone { display: inline; }
  .q-wide-note { position: static; margin: 0 16px 14px; width: auto; text-shadow: none; }
  .q-nav .g-btn { margin-left: 0; }
  .q-end { min-height: 86vh; }
  .q-ridges { height: 46%; }
}
@media (prefers-reduced-motion: reduce) {
  .q-r, .q-rail-done { stroke-dashoffset: 0; }
}
