/* The Fest Map '26-27 · Shivam Meet. Sketchbook system: paper, ink, red/blue/post-it. */
:root {
  --paper: #fdfbf7;
  --ink: #2d2d2d;
  --muted: #e5e0d8;
  --faint: #8c857a;
  --red: #ff4d4d;
  --blue: #2d5da1;
  --postit: #fff9c4;
  --green: #3a7d44;
  --wobbly: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobblyMd: 15px 225px 15px 255px / 255px 15px 225px 15px;
  --wobblySm: 18px 12px 20px 14px / 14px 20px 12px 18px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body { font-family: 'Patrick Hand', cursive; background-color: var(--paper); background-image: radial-gradient(var(--muted) 1px, transparent 1px); background-size: 24px 24px; color: var(--ink); font-size: 18px; line-height: 1.5; overflow-x: clip; }
h1, h2, h3, h4 { font-family: 'Kalam', cursive; font-weight: 700; line-height: 1.1; }
::selection { background: var(--red); color: #fff; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
a { color: var(--blue); text-decoration: none; }
.red { color: var(--red); } .blue { color: var(--blue); }
img { display: block; max-width: 100%; }

.ink-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--red); z-index: 100; border-radius: 0 4px 4px 0; }
.tape { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: 90px; height: 26px; background: rgba(45, 45, 45, .12); border: 1px dashed rgba(45, 45, 45, .25); }
.tack { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); box-shadow: 2px 2px 0 0 rgba(45, 45, 45, .3); }

/* nav */
nav { position: sticky; top: 0; z-index: 50; background: rgba(253, 251, 247, .92); backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Kalam'; font-weight: 700; font-size: 22px; color: var(--ink); white-space: nowrap; }
.photo-nav { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; box-shadow: 2px 2px 0 var(--red); }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links a { font-size: 16px; color: var(--ink); padding: 4px 12px; border: 2px solid var(--ink); background: #fff; border-radius: var(--wobblySm); box-shadow: 2px 2px 0 0 var(--ink); transition: transform .12s, background .12s, color .12s, box-shadow .12s; }
.nav-links a:hover { background: var(--red); color: #fff; transform: translate(1px, 1px) rotate(-2deg); box-shadow: 1px 1px 0 0 var(--ink); }

/* hero */
header { padding: 56px 0 30px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; background: var(--postit); border: 2px solid var(--ink); padding: 4px 14px; font-size: 16px; transform: rotate(-2deg); border-radius: var(--wobblySm); box-shadow: 3px 3px 0 0 var(--ink); margin-bottom: 18px; }
.pop { animation: pop .7s .1s var(--spring) both; }
@keyframes pop { from { transform: rotate(-12deg) scale(.4); opacity: 0; } }
h1.title { font-size: clamp(44px, 6vw, 70px); letter-spacing: -1px; }
h1.title .w { display: inline-block; opacity: 0; transform: translateY(40px) rotate(6deg); transition: opacity .5s, transform .7s var(--spring); }
h1.title.in .w { opacity: 1; transform: none; }
.marker { position: relative; }
.marker svg { position: absolute; left: -4%; bottom: -6px; width: 108%; height: 18px; overflow: visible; }
.marker path { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
h1.title.in .marker path { animation: draw 1s 1.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.subtitle { font-size: 22px; margin: 18px 0 22px; max-width: 580px; }
.disclaimer { position: relative; max-width: 580px; margin: 0 0 24px; background: var(--postit); border: 2px dashed var(--ink); padding: 14px 18px; border-radius: var(--wobblySm); transform: rotate(-.6deg); box-shadow: 3px 3px 0 0 var(--ink); font-size: 16px; }
.disclaimer b { font-family: 'Kalam'; }
.dtag { display: inline-block; background: var(--ink); color: var(--paper); font-family: 'Kalam'; font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: var(--wobblySm); transform: rotate(-2deg); margin-right: 8px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; font-family: 'Patrick Hand'; font-size: 20px; cursor: pointer; background: #fff; border: 3px solid var(--ink); color: var(--ink); padding: 10px 22px; border-radius: var(--wobbly); box-shadow: 4px 4px 0 0 var(--ink); transition: transform .12s, background .12s, color .12s, box-shadow .12s; }
.btn:hover { background: var(--red); color: #fff; transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn.blue:hover { background: var(--blue); }

/* dial */
.dial-wrap { position: relative; aspect-ratio: 1; max-width: 470px; width: 100%; justify-self: center; }
.dial { width: 100%; height: 100%; overflow: visible; }
.dial-ring { fill: #fff; stroke: var(--ink); stroke-width: 3; filter: drop-shadow(6px 6px 0 var(--ink)); }
.dial-ring.thin { fill: var(--paper); stroke-width: 2; stroke-dasharray: 4 6; filter: none; }
.seg { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; transform-origin: 0 0; transform: scale(.6); opacity: 0; transition: transform .7s var(--spring), opacity .4s; cursor: pointer; }
.dial-wrap.in .seg { transform: scale(1); opacity: 1; }
.seg:hover, .seg.on { stroke-width: 3.5; filter: brightness(1.04); }
.dlbl { font-family: 'Kalam'; font-weight: 700; font-size: 13px; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.dcount { font-family: "Patrick Hand"; font-size: 11px; fill: var(--ink); opacity: .65; text-anchor: middle; pointer-events: none; }
.needle { transform: rotate(-90deg); transition: transform 2.4s cubic-bezier(.6, .05, .2, 1.2); }
.needle line { stroke: var(--red); stroke-width: 4; stroke-linecap: round; }
.needle circle { fill: var(--red); stroke: var(--ink); stroke-width: 2; }
.dial-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 18%); text-align: center; pointer-events: none; }
.dc-k { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.dc-v { font-family: 'Kalam'; font-weight: 700; font-size: 24px; }
.postit { background: var(--postit); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: var(--wobblySm); }
.next-note { position: absolute; right: -46px; top: -34px; width: 190px; padding: 18px 14px 12px; transform: rotate(4deg); display: flex; flex-direction: column; animation: sway 6s ease-in-out infinite; z-index: 2; }
@keyframes sway { 50% { transform: rotate(1.5deg) translateY(-4px); } }
.nn-k { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.next-note b { font-family: 'Kalam'; font-size: 22px; line-height: 1.05; margin-top: 2px; }
.nn-inst { font-size: 15px; }
.nn-cd { margin-top: 6px; font-family: 'Kalam'; font-weight: 700; color: var(--red); font-size: 17px; }
.polaroid { position: absolute; left: -6px; bottom: -40px; width: 150px; background: #fff; border: 2px solid var(--ink); padding: 8px 8px 10px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-6deg); text-align: center; z-index: 2; transition: transform .4s var(--spring); }
.polaroid:hover { transform: rotate(-1deg) scale(1.05); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); }
.polaroid b { display: block; font-family: 'Kalam'; font-size: 18px; margin-top: 6px; }
.polaroid span { font-size: 14px; }

/* sections */
section { padding: 70px 0 10px; }
.sec-tag { display: inline-block; background: var(--ink); color: #fff; font-family: 'Kalam'; font-weight: 700; font-size: 14px; padding: 3px 12px; border-radius: var(--wobblySm); transform: rotate(-2deg); margin-bottom: 14px; letter-spacing: .5px; }
.sec-title { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 10px; }
.sec-sub { font-size: 20px; max-width: 720px; margin-bottom: 28px; }
.scribble { display: inline-block; color: var(--red); animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(6px); } }

/* up next rail */
.next-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.nx { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: var(--wobblyMd); box-shadow: 4px 4px 0 var(--ink); padding: 16px 16px 14px; transition: transform .25s var(--spring), box-shadow .2s; opacity: 0; transform: translateY(24px) rotate(var(--r, 0deg)); }
.nx.in { opacity: 1; transform: rotate(var(--r, 0deg)); transition: opacity .5s, transform .6s var(--spring); }
.nx:hover { transform: translate(-2px, -2px) rotate(0); box-shadow: 7px 7px 0 var(--ink); }
.nx-when { font-family: 'Kalam'; font-weight: 700; color: var(--red); font-size: 30px; line-height: 1; }
.nx-when small { font-size: 16px; color: var(--ink); font-family: 'Patrick Hand'; font-weight: 400; margin-left: 4px; }
.nx h4 { font-size: 21px; margin-top: 8px; }
.nx .nx-i { font-size: 15px; color: #555; }
.nx .nx-d { font-size: 14px; margin-top: 6px; }
.meter { margin-top: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); }
.meter i { display: block; height: 100%; width: 0; background: var(--green); transition: width 1.4s var(--ease); background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 6px, transparent 6px 12px); }
.meter i.hot { background-color: var(--red); }
.meter i.warm { background-color: #e7b416; }
.nx .alert { font-size: 13px; margin-top: 6px; color: #555; }
.nx.star::after { content: "★"; position: absolute; top: -14px; right: 12px; background: var(--red); color: #fff; border: 2px solid var(--ink); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; transform: rotate(12deg); }

/* seismograph */
.seismo { background: #fff; border: 3px solid var(--ink); border-radius: var(--wobblyMd); box-shadow: 6px 6px 0 var(--ink); padding: 18px 18px 14px; }
.brackets { width: 100%; height: 50px; display: block; }
.br { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.br.dr { stroke: var(--faint); stroke-dasharray: 6 8; stroke-dashoffset: 0; opacity: 0; transition: opacity .8s 1.2s; }
.seismo.in .br:not(.dr) { animation: draw 1.6s .4s var(--ease) forwards; }
.seismo.in .br.dr { opacity: 1; }
.br-lbls { display: grid; grid-template-columns: 31% 25% 1fr; text-align: center; font-family: 'Kalam'; font-weight: 700; font-size: 16px; margin: -6px 0 6px; }
.br-lbls .muted { color: var(--faint); }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 220px; border-bottom: 3px solid var(--ink); }
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; cursor: pointer; }
.bar i { display: block; width: 100%; height: 0; border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 14px 0 0 / 14px 10px 0 0; background: var(--muted); transition: height 1s var(--spring); }
.bar.hot i { background: var(--red); } .bar.warm i { background: var(--postit); }
.bar b { position: absolute; left: 0; right: 0; text-align: center; font-family: 'Kalam'; font-size: 18px; bottom: calc(var(--h) + 4px); opacity: 0; transition: opacity .4s 1s, bottom 1s var(--spring); }
.seismo.in .bar b { opacity: 1; }
.bar:hover i { filter: brightness(1.08); transform: scaleY(1.02); transform-origin: bottom; }
.bar-lbls { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; text-align: center; font-family: 'Kalam'; font-weight: 700; font-size: 15px; margin-top: 6px; }
.bar-lbls .now { color: var(--red); }
.bar-lbls .now::after { content: "▲ now"; display: block; font-size: 12px; font-family: 'Patrick Hand'; font-weight: 400; }

/* month rail */
.month-rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 4px 14px; margin-bottom: 14px; position: relative; }
.month-rail::-webkit-scrollbar { display: none; }
.mr { flex: 1 0 auto; min-width: 70px; font-family: 'Kalam'; font-weight: 700; font-size: 17px; background: #fff; border: 2px solid var(--ink); border-radius: var(--wobblySm); padding: 8px 10px 6px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; text-align: center; color: var(--ink); transition: transform .2s var(--spring), background .15s, color .15s; position: relative; }
.mr small { display: block; font-family: 'Patrick Hand'; font-weight: 400; font-size: 13px; color: var(--faint); }
.mr:hover { transform: translateY(-3px) rotate(-2deg); }
.mr.active { background: var(--ink); color: #fff; transform: translateY(-3px); }
.mr.active small { color: #ddd; }
.mr.now::before { content: ""; position: absolute; top: -6px; right: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); } }

.filters { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: var(--wobblyMd); box-shadow: 5px 5px 0 var(--ink); padding: 22px 20px 14px; margin-bottom: 18px; }
.filter-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.filter-row .lbl { font-size: 20px; width: 26px; }
#search { flex: 1; min-width: 200px; font-family: 'Patrick Hand'; font-size: 18px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: var(--wobblySm); background: var(--paper); outline: none; transition: box-shadow .15s; }
#search:focus { box-shadow: 3px 3px 0 var(--blue); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.chip { font-size: 15px; padding: 3px 12px; border: 2px solid var(--ink); border-radius: var(--wobblySm); background: #fff; cursor: pointer; transition: transform .15s var(--spring), background .12s; }
.chip:hover { transform: rotate(-3deg) scale(1.05); }
.chip.active { background: var(--ink); color: #fff; }
.chip.cat-active { background: var(--blue); color: #fff; }
.count-pill { display: inline-block; font-family: 'Kalam'; font-weight: 700; background: var(--postit); border: 2px solid var(--ink); padding: 2px 14px; border-radius: var(--wobblySm); margin-bottom: 18px; transform: rotate(-1deg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: var(--wobblyMd); box-shadow: 4px 4px 0 var(--ink); padding: 20px; display: flex; flex-direction: column; transition: transform .25s var(--spring), box-shadow .2s; animation: cardIn .55s var(--spring) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) rotate(calc(var(--r) * 3)) scale(.94); } }
.card:hover { transform: translate(-3px, -3px) rotate(var(--r)); box-shadow: 8px 8px 0 var(--ink); }
.card.star { background: #fffdf0; }
.star-badge { position: absolute; top: -13px; right: 14px; background: var(--red); color: #fff; font-family: 'Kalam'; font-weight: 700; font-size: 13px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: var(--wobblySm); transform: rotate(3deg); }
.ev-month { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); font-family: 'Kalam'; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.ev-month .cd { color: var(--red); text-transform: none; letter-spacing: 0; }
.card h3 { font-size: 25px; margin: 4px 0 2px; }
.card .inst { font-size: 16px; color: #555; }
.card .dates { margin-top: 10px; font-size: 16px; }
.card .dates .last { display: block; font-size: 13.5px; color: var(--faint); }
.prize { display: inline-block; margin-top: 8px; background: var(--postit); border: 2px dashed var(--ink); padding: 0 10px; border-radius: var(--wobblySm); font-size: 15px; align-self: flex-start; }
.card .sub { font-size: 15px; margin-top: 10px; flex: 1; }
.card .reg { font-size: 14.5px; margin-top: 10px; color: #555; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 12.5px; padding: 0 8px; border: 1.5px solid var(--ink); border-radius: var(--wobblySm); background: var(--paper); }
.tag.itype { background: var(--ink); color: #fff; }
.links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--muted); }
.lk { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; color: var(--ink); padding: 2px 10px; border: 2px solid var(--ink); border-radius: var(--wobblySm); background: #fff; box-shadow: 2px 2px 0 var(--ink); transition: transform .12s, background .12s, color .12s, box-shadow .12s; }
.lk:hover { background: var(--blue); color: #fff; transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.lk.ig:hover { background: #d6249f; }
.lk.us:hover { background: #1c4980; }
.lk .ok { color: var(--green); font-weight: 700; }
.lk:hover .ok { color: #fff; }
.no-links { font-size: 13.5px; color: var(--faint); }
.no-results { display: none; text-align: center; font-size: 22px; padding: 40px; }

/* routes */
.route-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.rt { font-family: 'Kalam'; font-weight: 700; font-size: 18px; background: #fff; border: 2px solid var(--ink); border-radius: var(--wobblySm); padding: 6px 16px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: transform .2s var(--spring), background .15s, color .15s; color: var(--ink); }
.rt:hover { transform: rotate(-2deg) translateY(-2px); }
.rt.on { background: var(--red); color: #fff; }
.route-board { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: var(--wobblyMd); box-shadow: 6px 6px 0 var(--ink); height: 300px; overflow: hidden; }
.route-svg { position: absolute; inset: 0 0 40px; width: 100%; height: calc(100% - 40px); }
.route-svg .grid-l { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 7; }
.route-svg .path { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 9 9; }
.route-months { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; display: grid; grid-template-columns: repeat(12, 1fr); border-top: 2px solid var(--ink); font-family: 'Kalam'; font-weight: 700; font-size: 15px; text-align: center; align-items: center; }
.route-stops { position: absolute; inset: 0 0 40px; }
.stop { position: absolute; transform: translate(-50%, -50%) scale(0); transition: transform .5s var(--spring); }
.stop.in { transform: translate(-50%, -50%) scale(1); }
.stop i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--postit); border: 3px solid var(--ink); margin: 0 auto; font-style: normal; font-family: 'Kalam'; font-weight: 700; font-size: 11px; line-height: 1; }
.stop span { position: absolute; left: 50%; transform: translateX(-50%) rotate(-3deg); white-space: nowrap; font-family: 'Kalam'; font-weight: 700; font-size: 14px; background: #fff; border: 2px solid var(--ink); border-radius: var(--wobblySm); padding: 0 8px; bottom: 24px; }
.stop.edge-l span { left: -8px; transform: rotate(-3deg); }
.stop.edge-r span { left: auto; right: -8px; transform: rotate(-3deg); }
.stop.lo span { bottom: auto; top: 24px; transform: translateX(-50%) rotate(2deg); }
.stop.lo.edge-l span, .stop.lo.edge-r span { transform: rotate(2deg); }
.route-list { margin-top: 18px; padding-left: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 22px; counter-reset: r; }
.route-list li { counter-increment: r; font-size: 17px; display: flex; gap: 10px; align-items: baseline; animation: cardIn .4s var(--spring) both; animation-delay: calc(var(--i) * 60ms); --r: 0deg; }
.route-list li::before { content: counter(r); font-family: 'Kalam'; font-weight: 700; color: #fff; background: var(--ink); min-width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }

/* lead-time ruler */
.ruler { background: #fff; border: 3px solid var(--ink); border-radius: var(--wobblyMd); box-shadow: 6px 6px 0 var(--ink); padding: 20px; }
.ruler-scale { display: flex; justify-content: space-between; margin-left: 34%; font-family: 'Kalam'; font-weight: 700; font-size: 14px; border-bottom: 3px solid var(--ink); padding-bottom: 4px; margin-bottom: 8px; background-image: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 8.33%); background-size: 100% 8px; background-repeat: no-repeat; background-position: bottom; }
.lead-row { display: grid; grid-template-columns: 34% 1fr; align-items: center; padding: 12px 0; border-bottom: 2px dashed var(--muted); }
.lead-row:last-child { border-bottom: 0; }
.lr-l b { display: block; font-family: 'Kalam'; font-size: 18px; line-height: 1.15; }
.lr-l i { font-size: 14px; color: #555; }
.lr-track { position: relative; height: 44px; }
.lr-bar { position: absolute; top: 4px; height: 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--red); left: calc((12 - var(--from)) / 12 * 100%); width: 0; transition: width 1.2s var(--ease); background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .3) 0 6px, transparent 6px 12px); }
.lr-bar.blue { background-color: var(--blue); } .lr-bar.green { background-color: var(--green); } .lr-bar.yellow { background-color: #e7b416; }
.ruler.in .lr-bar { width: calc((var(--from) - var(--to)) / 12 * 100%); }
.lead-row:nth-of-type(3) .lr-bar { transition-delay: .2s; } .lead-row:nth-of-type(4) .lr-bar { transition-delay: .4s; } .lead-row:nth-of-type(5) .lr-bar { transition-delay: .6s; }
.lr-tag { position: absolute; top: 25px; left: calc((12 - var(--from)) / 12 * 100%); font-size: 13.5px; white-space: nowrap; }

/* handles */
.handles { display: flex; flex-wrap: wrap; gap: 10px; }
.handle { font-size: 16px; color: var(--ink); padding: 4px 12px; border: 2px solid var(--ink); border-radius: var(--wobblySm); background: #fff; box-shadow: 2px 2px 0 var(--ink); transition: transform .2s var(--spring), background .12s, color .12s; }
.handle:nth-child(3n) { transform: rotate(-1.5deg); } .handle:nth-child(4n) { transform: rotate(1.5deg); }
.handle:hover { background: var(--red); color: #fff; transform: rotate(-4deg) scale(1.08); }

/* caveats + footer */
.caveat { background: var(--postit); border: 2px dashed var(--ink); border-radius: var(--wobblyMd); padding: 22px 26px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-.4deg); }
.caveat ul { margin: 10px 0 0 20px; display: grid; gap: 8px; font-size: 17px; }
footer { margin-top: 80px; border-top: 3px solid var(--ink); padding: 50px 0 30px; background: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
footer h3 { font-size: 36px; }
.wavy { text-decoration: underline wavy var(--red); text-underline-offset: 6px; }
footer p { font-size: 19px; margin-top: 10px; max-width: 520px; }
.foot-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.foot-socials a { color: var(--ink); padding: 4px 14px; border: 2px solid var(--ink); border-radius: var(--wobblySm); box-shadow: 2px 2px 0 var(--ink); background: var(--paper); }
.foot-socials a:hover { background: var(--red); color: #fff; }
.foot-card { position: relative; display: flex; gap: 14px; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wobblyMd); box-shadow: 5px 5px 0 var(--ink); padding: 18px; transform: rotate(1.5deg); }
.foot-card img { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.foot-card b { display: block; font-family: 'Kalam'; font-size: 22px; }
.foot-card span:not(.tape) { font-size: 15px; }
.foot-note { font-size: 14px !important; color: #666; margin-top: 30px !important; max-width: none !important; }

.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.disclaimer.rv.in { transform: rotate(-.6deg); }
.caveat.rv.in { transform: rotate(-.4deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, h1.title .w, .nx, .seg { opacity: 1 !important; transform: none !important; }
  .marker path, .br { stroke-dashoffset: 0 !important; }
  .stop { transform: translate(-50%, -50%) scale(1); }
}

@media (min-width: 1240px) { .polaroid { left: -54px; } }
@media (max-width: 900px) {
  .hero-grid, .foot-grid { grid-template-columns: 1fr; }
  .dial-wrap { max-width: 400px; margin-top: 30px; }
  .nav-links a:not(.social-btn) { display: none; }
  .ruler-scale { margin-left: 0; }
  .lead-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand { font-size: 19px; }
  .social-btn { font-size: 14px !important; padding: 4px 8px !important; }
  .subtitle { font-size: 19px; }
  .dial-wrap { max-width: 340px; }
  .dial-wrap { aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; }
  .dial { width: 100%; height: auto; aspect-ratio: 1; }
  .dial-center { top: calc(min(340px, 100vw - 40px) / 2); transform: translate(-50%, 4px); }
  .next-note, .polaroid { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; }
  .next-note { width: 168px; padding: 18px 12px 12px; }
  .next-note b { font-size: 19px; }
  .polaroid { width: 130px; }
  .polaroid b { font-size: 15px; }
  .polaroid span { font-size: 12px; }
  .stop span { display: none; }
  .bars { height: 160px; gap: 4px; }
  .bar-lbls { gap: 4px; font-size: 12px; }
  .bar b { font-size: 14px; }
  .br-lbls { font-size: 12px; }
  .grid { grid-template-columns: 1fr; }
  .route-board { height: 260px; }
  .route-months { font-size: 11px; }
  .stop span { font-size: 11.5px; padding: 0 5px; }
  .route-list { grid-template-columns: 1fr; }
  footer h3 { font-size: 28px; }
}
