/* Making Tax Digital for Income Tax. Design plan: _work/design-plan.md (MTD row of the openers table). */

/* ---------- Opener: typographic headline, income checker, photo cluster, phase line ---------- */
.mo { position: relative; background: var(--blush); padding: calc(var(--head-h) + clamp(20px, 3.4vh, 44px)) 0 clamp(18px, 2.6vh, 30px); overflow: clip; }
.mo__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(117,21,35,.07) 31px, rgba(117,21,35,.07) 32px); animation: mo-drift 20s linear infinite; }
.mo__ruling::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(14px, 3.2vw, 52px); width: 1px; background: rgba(163,24,62,.38); }
@keyframes mo-drift { to { background-position: 0 32px; } }
.mo__oval { position: absolute; right: -10vw; top: 6%; width: min(1000px, 78vw); overflow: visible; pointer-events: none; }
.mo__oval ellipse { fill: none; stroke: rgba(163,24,62,.16); stroke-width: 1.4; }
.mo__oval .dash { stroke: rgba(163,24,62,.3); stroke-dasharray: 3 12; animation: dash-turn 46s linear infinite; }
.mo__inner { position: relative; }
.mo__title { font-size: clamp(2.4rem, min(4.7vw, 8.3vh), 4.75rem); line-height: 1.03; color: var(--ink); margin-bottom: clamp(16px, 2.6vh, 30px); }
.mo__grid { display: grid; grid-template-columns: minmax(0, 4.1fr) minmax(0, 3.9fr) minmax(0, 4.6fr); gap: clamp(18px, 1.9vw, 28px); align-items: stretch; }
.mo__lede { color: var(--ink); margin-bottom: 22px; }
.mo__copy .btn-row { margin-bottom: 20px; }
.mo__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 18px; border-top: 2px solid var(--ink); }
.mo__facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 12px 12px 0 0; }
.mo__facts > div + div { padding-left: 14px; border-left: 1px solid rgba(117,21,35,.2); }
.mo__facts dt { font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--ink-soft); }
.mo__facts dd { margin: 0; font-weight: 600; font-size: clamp(1.7rem, 2.3vw, 2.3rem); line-height: 1; letter-spacing: -.03em; color: var(--claret); }
.mo__note { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: .98rem; color: var(--claret); }
.mo__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--crimson); animation: mo-pulse 2.2s infinite; }
@keyframes mo-pulse { 0% { box-shadow: 0 0 0 0 rgba(163,24,62,.45); } 70% { box-shadow: 0 0 0 10px rgba(163,24,62,0); } 100% { box-shadow: 0 0 0 0 rgba(163,24,62,0); } }

.mo__photos { position: relative; min-height: 300px; }
.mo__ph { position: absolute; margin: 0; }
.mo__ph .frame { width: 100%; height: 100%; }
.mo__ph .frame img { position: absolute; inset: 0; }
.mo__ph--a { top: 0; left: 0; width: 86%; aspect-ratio: 1264 / 848; z-index: 1; }
.mo__ph--b { right: 0; bottom: 0; width: 62%; aspect-ratio: 1264 / 848; z-index: 2; box-shadow: 0 0 0 8px var(--blush); }
.mo__ph--a::before { content: ''; position: absolute; inset: -12px 12px 12px -12px; border: 1.5px solid var(--crimson); pointer-events: none; }
.mo__ph .cap { border-left: 3px solid var(--crimson); transform: translateY(50%); box-shadow: 0 10px 24px rgba(34,9,15,.14); }
.mo__ph--a .cap { left: 14px; bottom: 0; }
.mo__ph--b .cap { bottom: auto; top: 0; left: auto; right: 14px; transform: translateY(-50%); }
.mo__stamp { position: absolute; right: -30px; top: -26px; z-index: 3; width: 112px; height: 70px; display: grid; place-content: center; text-align: center; border: 3px solid var(--crimson); outline: 1.5px solid var(--crimson); outline-offset: -8px; border-radius: 50%; color: var(--crimson); background: rgba(255,255,255,.88); transform: rotate(-12deg); }
.mo__stamp b { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1; text-transform: uppercase; letter-spacing: .06em; }
.mo__stamp small { font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.motion:not(.motion-fail) .mo__stamp { opacity: 0; }
.motion .mo__ph .frame img { animation: breathe 15s ease-in-out infinite alternate; }
.motion .mo__ph--b .frame img { animation-delay: -6s; }

/* Income checker */
.chk { position: relative; background: #fff; padding: 20px 24px 18px; border-left: 4px solid var(--crimson); box-shadow: 18px 18px 0 rgba(117,21,35,.1); }
.chk__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.7vw, 1.65rem); line-height: 1.15; margin-bottom: 12px; color: var(--ink); }
.chk__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.chk__label { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.chk__label small { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-soft); margin-top: 2px; }
.chk__money { flex: none; display: flex; align-items: baseline; gap: 2px; border-bottom: 2px solid var(--ink); font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--claret); }
.chk__money input { width: 6.6ch; min-width: 0; border: 0; padding: 2px 0 4px; background: transparent; font: inherit; color: var(--ink); text-align: left; font-variant-numeric: tabular-nums; }
.chk__money input:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
.chk__slide { position: relative; margin-top: 16px; padding-bottom: 20px; }
.chk__slide input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; }
.chk__slide input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--crimson) var(--p, 50%), #EAD9DD var(--p, 50%)); }
.chk__slide input[type="range"]::-moz-range-track { height: 6px; background: linear-gradient(90deg, var(--crimson) var(--p, 50%), #EAD9DD var(--p, 50%)); }
.chk__slide input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: var(--btn-r); background: #fff; border: 3px solid var(--crimson); box-shadow: 0 4px 12px rgba(117,21,35,.3); transition: transform .25s var(--ease); }
.chk__slide input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: var(--btn-r); background: #fff; border: 3px solid var(--crimson); box-shadow: 0 4px 12px rgba(117,21,35,.3); }
.chk__slide input[type="range"]:hover::-webkit-slider-thumb, .chk__slide input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.chk__slide input[type="range"]:focus-visible { outline: 3px solid var(--highlight); outline-offset: 4px; }
.chk__ticks span { position: absolute; left: var(--x); top: 30px; transform: translateX(-50%); font-size: .82rem; font-weight: 700; color: var(--claret); line-height: 1; padding-top: 6px; }
.chk__ticks span::before { content: ''; position: absolute; left: 50%; top: -12px; width: 2px; height: 14px; margin-left: -1px; background: var(--claret); }
@media (max-width: 760px), (pointer: coarse) {
  .chk__money input { min-height: 44px; }
  .chk__slide input[type="range"] { height: 44px; }
  .chk__ticks span { top: 37px; }
}
.chk__answer { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.chk__mask { overflow: clip; padding: .12em 0 .22em; margin: -.12em 0 -.22em; }
.chk__a { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 1.9vw, 1.85rem); line-height: 1.12; color: var(--claret); }
.chk__answer[data-tier="2026"] .chk__a { color: var(--crimson); }
.chk__sub { margin: 6px 0 0; font-size: .98rem; line-height: 1.45; color: var(--ink-soft); min-height: 2.9em; }
.chk__fine { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: .92rem; line-height: 1.4; color: var(--ink-soft); }

/* Phase line */
.ph { position: relative; margin-top: clamp(16px, 2.8vh, 32px); padding-top: 22px; }
.ph__line { position: absolute; left: 0; right: 0; top: 30px; height: 3px; }
.ph__past { position: absolute; left: 0; top: 0; height: 3px; background: var(--crimson); transform-origin: left; }
.ph__future { position: absolute; right: 0; top: .5px; height: 2px; background: repeating-linear-gradient(90deg, var(--claret) 0 7px, transparent 7px 15px); opacity: .55; animation: ph-run 1.4s linear infinite; }
@keyframes ph-run { to { background-position: 15px 0; } }
.ph__today { position: absolute; top: -9px; width: 2px; height: 21px; margin-left: -1px; background: var(--ink); }
.ph__today b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ph__rail { position: absolute; left: 0; top: 0; width: 100%; height: 0; pointer-events: none; }
.ph__you { position: absolute; left: 0; top: 1.5px; width: 46px; height: 32px; margin: -16px 0 0 -23px; border: 2px solid var(--crimson); border-radius: 50%; pointer-events: none; animation: ph-ring 2.4s ease-in-out infinite; }
@keyframes ph-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(163,24,62,.35); } 50% { box-shadow: 0 0 0 7px rgba(163,24,62,0); } }
.ph__list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.ph__node { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
.ph__dot { width: 17px; height: 17px; border-radius: 50%; background: var(--blush); border: 2.5px solid var(--claret); transition: transform .45s var(--ease), background .35s, border-color .35s; }
.ph__node.is-past .ph__dot { background: var(--crimson); border-color: var(--crimson); }
.ph__node--none .ph__dot { border-style: dashed; }
.ph__date { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 1.35vw, 1.35rem); line-height: 1.15; color: var(--ink); padding: 0 .12em; background: linear-gradient(100deg, rgba(242,214,75,0) 0, rgba(242,214,75,.95) 2%, rgba(242,214,75,.9) 97%, rgba(242,214,75,0) 100%) no-repeat 0 88% / 0% 62%; transition: background-size .6s var(--ease); }
.ph__who { font-size: .95rem; font-weight: 600; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }
.ph__who .ph__sub { font-weight: 600; }
.ph__node.is-you .ph__dot { transform: scale(1.25); background: var(--highlight); border-color: var(--ink); }
.ph__node.is-you .ph__date { background-size: 100% 62%; }
.ph__node.is-you .ph__who { color: var(--ink); }

/* Short desktop screens (1366x768, 1280x720): the whole opener, phase line included, fits below the header */
@media (min-width: 761px) and (max-height: 860px) {
  .mo { padding-top: calc(var(--head-h) + 14px); padding-bottom: 12px; }
  .mo__title { margin-bottom: 12px; }
  .mo__lede { margin-bottom: 16px; }
  .mo__copy .btn-row { margin-bottom: 14px; }
  .mo__facts { margin-bottom: 12px; }
  .chk { padding: 16px 20px 14px; }
  .chk__title { margin-bottom: 8px; }
  .chk__slide { margin-top: 10px; }
  .chk__answer { margin-top: 4px; padding-top: 10px; }
  .ph { margin-top: 14px; padding-top: 20px; }
  .ph__line { top: 28px; }
  .ph__date { margin-top: 6px; font-size: 1.12rem; }
  .ph__who { font-size: .9rem; }
}

/* Opener start states (the intro animates them in once fonts are ready; the safety net shows them) */
.motion:not(.motion-fail) [data-chk], .motion:not(.motion-fail) .ph__today, .motion:not(.motion-fail) .ph__you, .motion:not(.motion-fail) .ph__dot, .motion:not(.motion-fail) .ph__date, .motion:not(.motion-fail) .ph__who { opacity: 0; }
.motion:not(.motion-fail) .ph__past { transform: scaleX(0); }
.motion:not(.motion-fail) .ph__future { clip-path: inset(0 100% 0 0); }

@media (max-width: 1180px) {
  .mo__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mo__copy { grid-column: 1; grid-row: 1; }
  .mo__photos { grid-column: 1; grid-row: 2; min-height: 280px; }
  .chk { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}
@media (max-width: 760px) {
  .mo__title { font-size: clamp(2.2rem, 9.4vw, 2.8rem); margin-bottom: 16px; }
  .mo__grid { grid-template-columns: 1fr; gap: 28px; }
  .mo__copy, .mo__photos, .chk { grid-column: 1; grid-row: auto; }
  .mo__lede { font-size: 1.05rem; margin-bottom: 18px; }
  .mo__ruling::before { left: 7px; }
  .mo__facts dd { font-size: 1.6rem; }
  .mo__facts dt { font-size: .875rem; }
  .mo__copy .btn-row .btn { flex: 1 1 100%; }
  .mo__photos { min-height: 0; height: min(66vw, 300px); margin: 6px 6px 8px; }
  .mo__ph--a { width: 82%; }
  .mo__ph--b { width: 58%; }
  .mo__stamp { right: -8px; top: -22px; transform: rotate(-12deg) scale(.85); }
  .chk { padding: 18px 18px 16px; box-shadow: 10px 10px 0 rgba(117,21,35,.1); }
  .chk__row { flex-direction: column; align-items: stretch; gap: 8px; }
  .chk__money { align-self: flex-start; }
  .ph { margin-top: 30px; }
  .ph__node { padding: 0 3px; }
  .ph__date { font-family: var(--sans); font-weight: 700; font-size: .92rem; margin-top: 6px; }
  .ph__who { font-size: .875rem; }
  .ph__who .ph__sep { display: none; }
  .ph__who .ph__sub { display: block; }
}

/* ---------- What it is ---------- */
.wi { padding-block: clamp(72px, 8vw, 112px); overflow: clip; }
.wi h2 { margin-bottom: clamp(26px, 3.4vw, 46px); }
#wi-title, #steps-title { text-wrap: balance; } /* the page opts out of the site-wide balance; these two strand a last word without it */
.wi__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 2vw, 32px); align-items: center; }
.wi__copy .lede { color: var(--ink); margin-bottom: 16px; }
.wi__copy > p { color: var(--ink-soft); }
.wi__facts { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 24px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.wi__facts .fact__v { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.wi__media { position: relative; padding: 0 0 64px 0; }
.wi__ring { position: absolute; right: -2%; top: -9%; width: 44%; overflow: visible; z-index: 0; }
.wi__ring ellipse { fill: none; stroke: var(--crimson); stroke-width: 1.6; stroke-dasharray: 6 10; animation: dash-turn 30s linear infinite; }
.wi__frame { position: relative; z-index: 1; height: min(58vh, 480px); box-shadow: 22px 22px 0 rgba(117,21,35,.1); }
.wi__frame img { position: absolute; inset: -6% 0 auto; height: 112%; object-position: 50% 40%; }
.slip { position: absolute; left: 22px; bottom: 0; z-index: 2; width: min(430px, 80%); background: #fff; padding: 16px 20px 6px; border-top: 3px solid var(--crimson); box-shadow: 0 26px 50px rgba(34,9,15,.18); }
.slip__head { margin: 0 0 6px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.slip__row { display: grid; grid-template-columns: 9.6em minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); font-size: .98rem; line-height: 1.35; }
.slip__k { color: var(--ink-soft); font-weight: 600; }
.slip__v { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-weight: 700; }
.slip__old { position: relative; text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.slip__old i { position: absolute; left: -3px; right: -3px; top: 54%; height: 2.5px; background: var(--crimson); transform-origin: left; transform: scaleX(var(--strike, 1)); }
.slip__new { padding: 0 .1em; background: linear-gradient(100deg, rgba(242,214,75,0) 0, rgba(242,214,75,.95) 2%, rgba(242,214,75,.9) 97%, rgba(242,214,75,0) 100%) no-repeat 0 88% / var(--hl, 100%) 62%; }
.slip__tick { flex: none; width: 20px; height: 20px; overflow: visible; }
.slip__tick path, .same__list svg path, .mq__ql svg path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.slip__tick path { stroke: var(--crimson); stroke-dashoffset: var(--tk, 0); }
@media (max-width: 900px) {
  .wi__grid { grid-template-columns: 1fr; }
  .wi__media { padding: 0 0 120px 0; }
  .wi__frame { height: min(56vw, 340px); }
  .slip { left: 12px; width: calc(100% - 24px); }
}
@media (max-width: 480px) { .wi__facts { grid-template-columns: 1fr; } .wi__facts .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } .slip__row { grid-template-columns: 1fr; gap: 2px; } .wi__media { padding-bottom: 210px; } }

/* ---------- Four updates and a final return (pinned) ---------- */
.mq { padding: 0; overflow: clip; }
.mq::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(255,255,255,.04) 35px, rgba(255,255,255,.04) 36px); animation: mq-drift 22s linear infinite; }
.mq::after { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(14px, 3.2vw, 52px); width: 1px; background: rgba(163,24,62,.6); pointer-events: none; }
@keyframes mq-drift { to { background-position: 0 36px; } }
.mq__pin { position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--head-h) + 16px) 0 24px; }
.mq__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 40px; margin-bottom: clamp(12px, 2.6vh, 30px); }
.mq__head h2 { color: #fff; margin: 0; }
.mq__lede { margin: 0; flex: 1 1 380px; }
.mq__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; font-weight: 600; font-size: .98rem; color: var(--on-dark-soft); margin-bottom: 4px; }
.mq__sent b { display: inline-block; min-width: .7em; text-align: center; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1; color: var(--highlight); }
.mq__track { position: relative; padding-top: 78px; }
.mq__flags { position: absolute; left: 0; right: 0; top: 0; height: 78px; }
.mq__flag { position: absolute; left: var(--x); bottom: 0; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); }
.mq__flagcard { display: grid; justify-items: center; background: #fff; color: var(--ink); padding: 6px 12px 6px; border-top: 3px solid var(--highlight); line-height: 1.1; white-space: nowrap; box-shadow: 0 10px 22px rgba(0,0,0,.28); }
.mq__date { display: flex; gap: .25em; overflow: clip; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.15; padding: .06em 0 .12em; }
.mq__date span { display: inline-block; }
.mq__flagcard small { font-size: .8rem; font-weight: 700; color: var(--claret); }
.mq__stem { width: 2px; height: 14px; background: var(--highlight); transform-origin: bottom; }
.mq__bar { position: relative; height: 50px; }
.mq__year { position: absolute; left: 0; top: 0; bottom: 0; width: 72%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.mq__q { position: relative; overflow: hidden; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.mq__fill { position: absolute; inset: 0; background: linear-gradient(90deg, #8E1434, var(--crimson) 70%, #D23A60); transform-origin: left; }
.mq__fill::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: var(--highlight); animation: mq-head 1.6s ease-in-out infinite; }
@keyframes mq-head { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,214,75,.0); opacity: 1; } 50% { box-shadow: 0 0 14px 3px rgba(242,214,75,.55); opacity: .75; } }
.mq__q::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent); transform: translateX(-120%); animation: mq-shine 3.6s ease-in-out infinite; pointer-events: none; }
.mq__q:nth-child(2)::before { animation-delay: .5s; } .mq__q:nth-child(3)::before { animation-delay: 1s; } .mq__q:nth-child(4)::before { animation-delay: 1.5s; }
@keyframes mq-shine { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(260%); } }
.mq__end { animation: mq-endpulse 2.2s ease-out infinite; }
@keyframes mq-endpulse { 0% { box-shadow: 0 0 0 0 rgba(242,214,75,.5); } 80%, 100% { box-shadow: 0 0 0 12px rgba(242,214,75,0); } }
.mq__ql { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; font-weight: 700; font-size: 1rem; color: #fff; }
.mq__ql svg { width: 18px; height: 18px; overflow: visible; }
.mq__ql svg path { stroke: var(--highlight); stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease); }
.mq__after { position: absolute; left: calc(72% + 6px); right: 18px; top: 50%; height: 2px; margin-top: -1px; }
.mq__after i { display: block; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 8px, transparent 8px 15px); transform-origin: left; animation: ph-run 1.6s linear infinite; }
.mq__afterlabel { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: .88rem; font-weight: 600; color: var(--on-dark-soft); white-space: nowrap; }
.mq__end { position: absolute; right: 0; top: 50%; width: 32px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.65); background: var(--ink-blue); transition: background .35s, border-color .35s, transform .45s var(--ease); }
.mq__end.is-done { background: var(--highlight); border-color: #fff; transform: scale(1.2); }
.mq__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; pointer-events: none; z-index: 2; }
.mq__needle { position: absolute; left: 0; top: -9px; bottom: -9px; width: 3px; margin-left: -1.5px; background: var(--highlight); box-shadow: 0 0 12px 2px rgba(242,214,75,.55); }
.mq__needle::before { content: ''; position: absolute; left: 50%; top: -5px; width: 11px; height: 11px; margin-left: -5.5px; background: var(--highlight); transform: rotate(45deg); }
.no-js .mq__rail, .motion-fail .mq__rail, .rm .mq__rail, .mq--static .mq__rail { display: none; }
.mq__now { margin-top: 10px !important; font-weight: 600; color: var(--on-dark-soft); }
.mq__now b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--highlight); margin-right: 4px; font-variant-numeric: tabular-nums; }
.mq__months { position: relative; height: 30px; }
.mq__months span { position: absolute; left: var(--x); top: 8px; transform: translateX(-50%); font-size: .88rem; font-weight: 700; color: rgba(217,198,203,.6); line-height: 1; transition: color .35s; }
.mq__months span.is-past { color: #fff; }
.mq__months .mq__m--end { transform: translateX(-100%); color: var(--highlight); white-space: nowrap; }
.mq__lower { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(10px, 2.4vh, 30px); align-items: center; }
.mq__tabs { position: relative; display: flex; flex-wrap: wrap; gap: 2px 6px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.18); }
.mq__tab { min-height: 44px; padding: 8px 12px; border: 0; background: none; font-weight: 700; font-size: 1rem; color: var(--on-dark-soft); cursor: pointer; transition: color .3s; }
.mq__tab:hover, .mq__tab.is-on { color: #fff; }
.mq__tab:focus-visible { outline-offset: -3px; }
.mq__tabink { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--highlight); }
.no-js .mq__tabink, .motion-fail .mq__tabink, .rm .mq__tabink, .mq--static .mq__tabink { display: none; }
.mq__panels { display: grid; }
.mq__panel { grid-area: 1 / 1; position: relative; background: #fff; color: var(--ink); padding: 20px 26px 18px; border-left: 4px solid var(--crimson); box-shadow: 16px 16px 0 rgba(0,0,0,.22); }
.mq__panel h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 1.9vw, 1.8rem); line-height: 1.15; margin-bottom: 8px; }
.mq__panel p { color: var(--ink-soft); margin-bottom: 10px; }
.mq__we { margin: 0 !important; padding-top: 10px; border-top: 1px dashed var(--rule); color: var(--ink) !important; }
.mq__we b { color: var(--claret); }
.js .mq:not(.mq--static) .mq__panel:not(.is-on) { visibility: hidden; }
.mq__side { position: relative; display: grid; place-items: center; min-height: 230px; }
.mq__status { text-align: center; }
.mq__status p { margin: 0; }
.mq__sq { font-family: var(--serif); font-size: clamp(3rem, 4.6vw, 4rem); line-height: 1; color: #fff; }
.mq__srange { margin-top: 8px !important; font-weight: 600; font-size: 1.05rem; color: var(--on-dark-soft); }
.mq__sdue { margin-top: 14px !important; display: inline-block; padding: 8px 16px; border: 1px solid rgba(255,255,255,.28); font-weight: 600; }
.mq__sdue b { color: var(--highlight); }
.mq__stamp { position: absolute; left: 50%; top: 50%; width: 280px; height: 176px; margin: -88px 0 0 -140px; border: 4px solid #F06A80; outline: 2px solid #F06A80; outline-offset: -13px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #F6889A; background: rgba(19,32,47,.94); transform: rotate(-9deg); box-shadow: 0 0 0 10px rgba(19,32,47,.94); }
.mq__stamp span { font-family: var(--serif); font-size: 2.1rem; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.mq__stamp small { margin-top: 6px; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }
/* Motion start states: the scrub fills these in. Without motion the finished year shows. */
.motion:not(.motion-fail) .mq:not(.mq--static) .mq__fill { transform: scaleX(0); }
.mq__flagcard, .mq__stem { transition: background .35s, color .35s, border-color .35s, box-shadow .35s, opacity .35s; }
.motion:not(.motion-fail) .mq:not(.mq--static) .mq__flag:not(.is-sent) .mq__flagcard { background: rgba(19,32,47,.85); color: var(--on-dark-soft); border-top-color: rgba(255,255,255,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.motion:not(.motion-fail) .mq:not(.mq--static) .mq__flag:not(.is-sent) .mq__flagcard small { color: var(--on-dark-soft); }
.motion:not(.motion-fail) .mq:not(.mq--static) .mq__flag:not(.is-sent) .mq__stem { opacity: .35; }
.motion:not(.motion-fail) .mq:not(.mq--static) .mq__stamp { opacity: 0; }
.motion:not(.motion-fail) .mq:not(.mq--static) .mq__after i { transform: scaleX(0); }
.motion:not(.motion-fail) .mq:not(.mq--static) .mq__ql svg path { stroke-dashoffset: 1; }
.motion:not(.motion-fail) .mq:not(.mq--static) .mq__q.is-sent .mq__ql svg path { stroke-dashoffset: 0; }
/* No pin (no JS, reduced motion, short screens): the four areas as a grid, the year complete */
.no-js .mq__tabs, .motion-fail .mq__tabs, .rm .mq__tabs, .mq--static .mq__tabs { display: none; }
.no-js .mq__panels, .motion-fail .mq__panels, .rm .mq__panels, .mq--static .mq__panels { grid-template-columns: 1fr 1fr; gap: 16px; }
.no-js .mq__panel, .motion-fail .mq__panel, .rm .mq__panel, .mq--static .mq__panel { grid-area: auto; box-shadow: none; padding: 16px 18px; }
.no-js .mq__status, .motion-fail .mq__status, .rm .mq__status, .mq--static .mq__status { display: none; }
.no-js .mq__lower, .motion-fail .mq__lower, .rm .mq__lower, .mq--static .mq__lower { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.no-js .mq__stamp, .motion-fail .mq__stamp, .rm .mq__stamp, .mq--static .mq__stamp { position: relative; left: auto; top: auto; margin: 0; }
.no-js .mq__end, .motion-fail .mq__end, .rm .mq__end, .mq--static .mq__end { background: var(--highlight); border-color: #fff; }
.no-js .mq__pin, .motion-fail .mq__pin, .rm .mq__pin, .mq--static .mq__pin { min-height: 0; padding-block: clamp(72px, 9vw, 120px); }

@media (max-width: 1099px) {
  .mq__lede { display: none; }
  .mq__lower { grid-template-columns: 1fr; gap: 12px; }
  .mq__side { order: -1; min-height: 0; place-items: start; }
  .mq__status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; text-align: left; }
  .mq__sq { font-size: 2rem; }
  .mq__srange { margin: 0 !important; font-size: .98rem; }
  .mq__sdue { margin: 4px 0 0 !important; flex-basis: 100%; padding: 0; border: 0; font-size: .98rem; }
  .mq__now { margin: 2px 0 0 !important; flex-basis: 100%; font-size: .98rem; }
  .mq__now b { font-size: 1.25rem; }
  .mq__stamp { left: auto; right: 0; top: -8px; width: 180px; height: 112px; margin: 0; outline-offset: -9px; border-width: 3px; }
  .mq__stamp span { font-size: 1.35rem; }
  .mq__stamp small { font-size: .72rem; letter-spacing: .08em; }
  .no-js .mq__lower, .motion-fail .mq__lower, .rm .mq__lower, .mq--static .mq__lower { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mq__pin { padding-bottom: 16px; }
  .mq__head h2 { font-size: clamp(1.75rem, 7vw, 2.3rem); }
  .mq__meta { font-size: .9rem; }
  .mq__meta > span:first-child { display: none; }
  .mq__track { padding-top: 50px; }
  .mq__flags { height: 50px; }
  .mq__flagcard { padding: 3px 5px; border-top-width: 2px; }
  .mq::after { left: 7px; }
  .mq__stamp { top: -18px; width: 150px; height: 94px; outline-offset: -8px; }
  .mq__stamp span { font-size: 1.15rem; }
  .mq__stamp small { font-size: .875rem; text-transform: none; letter-spacing: 0; }
  .mq__flagcard small { display: none; }
  .mq__date { font-family: var(--sans); font-weight: 700; font-size: .875rem; }
  .mq__stem { height: 10px; }
  .mq__bar { height: 38px; }
  .mq__ql { padding: 0 5px; font-size: .875rem; gap: 2px; }
  .mq__ql svg { width: 13px; height: 13px; }
  .mq__afterlabel { display: none; }
  .mq__after { right: 14px; }
  .mq__end { width: 24px; height: 16px; margin-top: -8px; }
  .mq__months span { font-size: .8rem; }
  .mq__months .mq__m--minor { display: none; }
  .mq__tab { padding: 8px 8px; font-size: .92rem; }
  .mq__tab .l { display: none; }
  .mq__panel { padding: 14px 16px 14px; box-shadow: 8px 8px 0 rgba(0,0,0,.22); }
  .mq__panel h3 { font-size: 1.3rem; }
  .mq__panel p { font-size: .96rem; line-height: 1.5; margin-bottom: 8px; }
  .no-js .mq__panels, .motion-fail .mq__panels, .rm .mq__panels, .mq--static .mq__panels { grid-template-columns: 1fr; }
}
@media (min-width: 761px) { .mq__tab .s { display: none; } }

/* ---------- What stays the same ---------- */
.same { padding-block: clamp(72px, 8vw, 112px); overflow: clip; }
.same__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.same__media { position: relative; padding: 16px 40px 56px 16px; }
.same__media::before { content: ''; position: absolute; left: 0; top: 0; right: 56px; bottom: 72px; border: 1.5px solid var(--crimson); pointer-events: none; }
.same__frame { position: relative; height: min(62vh, 520px); }
.same__frame img { position: absolute; inset: -6% 0 auto; height: 112%; object-position: 40% 50%; }
.same__tag { position: absolute; right: 0; bottom: 0; z-index: 2; min-width: 230px; padding: 20px 28px 18px; background: #fff; text-align: center; box-shadow: 0 24px 48px rgba(34,9,15,.18); border-bottom: 3px solid var(--crimson); }
.same__tag b { position: relative; z-index: 1; display: inline-block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; color: var(--claret); }
.same__tag span { position: relative; z-index: 1; display: block; margin-top: 4px; font-weight: 600; font-size: .98rem; color: var(--ink-soft); }
.same__circle { position: absolute; left: -20px; top: -12px; width: calc(100% + 40px); height: calc(100% + 24px); overflow: visible; z-index: -1; }
.same__circle path { fill: none; stroke: var(--crimson); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: var(--draw, 0); }
.same__copy h2 { margin-bottom: 16px; }
.same__copy .lede { margin-bottom: 22px; }
.same__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; align-items: start; padding: 15px 0; border-top: 1px solid var(--rule); }
.same__list li:last-child { border-bottom: 1px solid var(--rule); }
.same__list svg { width: 28px; height: 28px; margin-top: 1px; overflow: visible; }
.same__list svg path { stroke: var(--crimson); stroke-dashoffset: 0; }
.same__list h3 { font-size: 1.15rem; margin-bottom: 3px; }
.same__list p { margin: 0; color: var(--ink-soft); }
.same__list li { background: linear-gradient(90deg, var(--blush), var(--blush)) no-repeat 0 0 / 0% 100%; transition: background-size .5s var(--ease); }
.same__list li:hover { background-size: 100% 100%; }
.motion .same__list li { animation: row-check 9s ease-in-out infinite; }
.motion .same__list li:nth-child(2) { animation-delay: 2.25s; } .motion .same__list li:nth-child(3) { animation-delay: 4.5s; } .motion .same__list li:nth-child(4) { animation-delay: 6.75s; }
.motion .same__list li:hover { animation-play-state: paused; }
@keyframes row-check { 0% { background-size: 0% 100%; background-position: 0 0; } 7% { background-size: 100% 100%; background-position: 0 0; } 20% { background-size: 100% 100%; background-position: 100% 0; } 28%, 100% { background-size: 0% 100%; background-position: 100% 0; } }
.wi__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(117,21,35,.05) 31px, rgba(117,21,35,.05) 32px); animation: mo-drift 14s linear infinite; }
.wi__ruling::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(7px, 3.2vw, 52px); width: 1px; background: rgba(163,24,62,.28); }
.wi .wrap { position: relative; }
@media (max-width: 900px) {
  .same__grid { grid-template-columns: 1fr; }
  .same__frame { height: min(60vw, 340px); }
  .same__tag { min-width: 200px; padding: 16px 20px 14px; }
  .same__tag b { font-size: 1.55rem; }
}

/* ---------- What to do now ---------- */
.steps { overflow: clip; }
.steps__oval { position: absolute; left: -18vw; bottom: -40%; width: 66vw; height: 120%; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 0 0 40px rgba(255,255,255,.035), inset 0 0 0 80px rgba(255,255,255,.025); animation: wobble 12s ease-in-out infinite alternate; pointer-events: none; }
.steps h2 { color: #fff; }
.steps__wrap { position: relative; }
.steps__line { position: absolute; left: 0; right: 0; top: 31px; height: 2px; background: rgba(255,255,255,.25); }
.steps__line i { position: absolute; inset: 0; background: var(--highlight); transform-origin: left; }
.steps__head { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--highlight); animation: mo-pulse-y 1.6s infinite; }
.steps::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 36px); animation: mq-drift 12s linear infinite; }
.step.is-on .step__n { animation: step-bob 3.2s ease-in-out infinite; }
.step:nth-child(2).is-on .step__n { animation-delay: -.8s; } .step:nth-child(3).is-on .step__n { animation-delay: -1.6s; } .step:nth-child(4).is-on .step__n { animation-delay: -2.4s; }
@keyframes step-bob { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-5px); } }
@keyframes mo-pulse-y { 0% { box-shadow: 0 0 0 0 rgba(242,214,75,.6); } 70% { box-shadow: 0 0 0 12px rgba(242,214,75,0); } 100% { box-shadow: 0 0 0 0 rgba(242,214,75,0); } }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); margin: 0; padding: 0; list-style: none; }
.step__n { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; background: var(--crimson); border: 2px solid rgba(255,255,255,.55); font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: #fff; transition: background .4s, color .4s, border-color .4s, box-shadow .4s, transform .5s var(--ease); }
.step.is-on .step__n { background: #fff; color: var(--crimson); border-color: #fff; box-shadow: 8px 8px 0 rgba(34,9,15,.25); transform: rotate(-4deg); }
.step h3 { color: #fff; font-size: clamp(1.2rem, 1.5vw, 1.4rem); margin-bottom: 8px; }
.step p { color: #FBE3E8; margin-bottom: 10px; }
.step p a { color: #fff; font-weight: 700; text-decoration-color: var(--highlight); text-underline-offset: 3px; }
.step .ticks li { margin-bottom: 6px; font-weight: 600; font-size: 1rem; color: #fff; }
.steps__cta { margin-top: clamp(30px, 4vw, 56px); }
@media (max-width: 900px) {
  .steps__line { left: 31px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps__line i { transform-origin: top; }
  .steps__head { left: 50%; top: 0; margin: -7px 0 0 -7px; }
  .steps__list { grid-template-columns: 1fr; gap: 28px; }
  .step { position: relative; padding-left: 90px; min-height: 64px; }
  .step__n { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- FAQs and the closing panel ---------- */
.faq { overflow: clip; padding-block: clamp(72px, 7vw, 100px); }
.faq__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(117,21,35,.06) 31px, rgba(117,21,35,.06) 32px); animation: mo-drift 12s linear infinite; }
.faq .wrap { position: relative; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.5vw, 80px); align-items: start; }
.acc { background: #fff; border-left: 3px solid transparent; margin-bottom: 10px; box-shadow: 0 1px 0 var(--rule); transition: border-color .35s, box-shadow .35s; }
.acc[open] { border-left-color: var(--crimson); box-shadow: 10px 10px 0 rgba(117,21,35,.08); }
.acc__q > span { flex: 1 1 auto; }
.acc__q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 16px 20px 16px 22px; cursor: pointer; font-weight: 700; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.35; transition: color .25s; }
.acc__q::-webkit-details-marker { display: none; }
.acc__q:hover { color: var(--claret); }
.acc__q:focus-visible { outline-offset: -3px; }
.acc__icon { position: relative; flex: none; width: 32px; height: 32px; border: 1.5px solid var(--claret); border-radius: var(--btn-r); transition: background .3s, transform .45s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--claret); transition: transform .45s var(--ease), background .3s; }
.acc__icon::after { transform: rotate(90deg); }
.acc[open]:not(.is-closing) .acc__icon { background: var(--claret); transform: rotate(180deg); }
.acc[open]:not(.is-closing) .acc__icon::before, .acc[open]:not(.is-closing) .acc__icon::after { background: #fff; }
.acc[open]:not(.is-closing) .acc__icon::after { transform: rotate(0deg); }
.acc.is-closing { border-left-color: transparent; box-shadow: 0 1px 0 var(--rule); }
.acc__a { overflow: hidden; }
.acc__a p { margin: 0; padding: 0 64px 20px 22px; color: var(--ink-soft); }
.faq__cta { position: sticky; top: calc(var(--head-h) + 24px); }
.faq__photo { position: relative; padding: 18px 18px 0 0; }
.faq__ring { position: absolute; right: -2%; top: -6%; width: 62%; overflow: visible; }
.faq__ring ellipse { fill: none; stroke: var(--crimson); stroke-width: 1.6; stroke-dasharray: 6 10; animation: dash-turn 30s linear infinite; }
.faq__frame { position: relative; height: min(36vh, 320px); }
.faq__clock { position: absolute; left: -22px; top: -4px; z-index: 3; width: 78px; height: 78px; border-radius: 50%; background: #fff; border: 3px solid var(--claret); box-shadow: 0 12px 26px rgba(34,9,15,.2), inset 0 0 0 5px #fff, inset 0 0 0 6px var(--rule); }
.faq__clock::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: repeating-conic-gradient(var(--claret) 0 2deg, transparent 2deg 30deg); -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 63%); mask: radial-gradient(circle, transparent 0 62%, #000 63%); }
.faq__clock i, .faq__clock b { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 2px; }
.faq__clock i { width: 3px; height: 20px; margin-left: -1.5px; background: var(--ink); transform: rotate(var(--hr, 40deg)); animation: clock-hand 60s linear infinite; }
.faq__clock b { width: 2px; height: 28px; margin-left: -1px; background: var(--crimson); animation: clock-hand 6s linear infinite; }
.faq__clock b::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--crimson); }
@keyframes clock-hand { from { transform: rotate(var(--hr, 0deg)); } to { transform: rotate(calc(var(--hr, 0deg) + 360deg)); } }
.faq__clock i { --hr: 40deg; }
.faq__frame img { position: absolute; inset: -6% 0 auto; height: 112%; object-position: 40% 45%; }
.faq__card { position: relative; margin: -46px 0 0 28px; padding: 22px 24px 24px; background: var(--claret); color: #fff; box-shadow: 16px 16px 0 rgba(117,21,35,.14); }
.faq__card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.8vw, 1.7rem); line-height: 1.15; margin-bottom: 10px; color: #fff; }
.faq__card p { color: #F6DCE2; margin-bottom: 18px; }
.faq__card .btn--primary { --bg: #fff; --fg: var(--claret); border-color: #fff; }
.faq__card .btn--primary::before { background: var(--wine); }
.faq__card .btn--primary:hover { color: #fff; border-color: var(--wine); }
.faq__card .btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.6); }
.faq__card .btn--ghost::before { background: #fff; }
.faq__card .btn--ghost:hover, .faq__card .btn--ghost:focus-visible { color: var(--claret); }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__cta { position: relative; top: auto; }
  .faq__frame { height: min(60vw, 300px); }
  .acc__a p { padding-right: 22px; }
}
@media (max-width: 480px) { .faq__card { margin-left: 12px; } .faq__card .btn { flex: 1 1 100%; } }

/* ---------- Reduced motion: stop the loops ---------- */
.rm .mo__ruling, .rm .mo__oval .dash, .rm .mo__dot, .rm .mo__ph .frame img, .rm .ph__future, .rm .ph__you, .rm .wi__ring ellipse, .rm .mq::before, .rm .mq__after i, .rm .faq__ruling, .rm .faq__ring ellipse, .rm .mq__fill::after, .rm .mq__q::before, .rm .mq__end, .rm .steps__oval, .rm .steps__head, .rm .steps::before, .rm .step .step__n, .rm .faq__clock i, .rm .faq__clock b, .rm .same__list li, .rm .wi__ruling { animation: none !important; }

.same__tag { max-width: 100%; white-space: nowrap; }
.same__tag b { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.same__tag { right: 14px; }
