/* Contact page. Design plan: _work/design-plan.md (opener: the form on the first screen; signature: fields rule themselves in, SENT stamp) */

@keyframes cx-drift-32 { to { background-position: 0 32px; } }
@keyframes cx-drift-36 { to { background-position: 0 36px; } }
@keyframes cx-safe-in { to { opacity: 1; transform: none; } }
@keyframes cx-pulse { 0% { box-shadow: 0 0 0 0 rgba(163,24,62,.45); } 75%, 100% { box-shadow: 0 0 0 11px rgba(163,24,62,0); } }
@keyframes cx-pulse-y { 0% { box-shadow: 0 0 0 0 rgba(242,214,75,.55); } 75%, 100% { box-shadow: 0 0 0 11px rgba(242,214,75,0); } }

/* ---------- 1. Opener: the enquiry form on ruled paper ---------- */
.cx-open { position: relative; overflow: clip; background: var(--paper); padding: calc(var(--head-h) + clamp(30px, 4.2vw, 64px)) 0 clamp(64px, 7vw, 104px); }
.cx-open__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(19,32,47,.065) 31px, rgba(19,32,47,.065) 32px); animation: cx-drift-32 16s linear infinite; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.25), #000 30%, #000 75%, rgba(0,0,0,.4)); mask-image: linear-gradient(180deg, rgba(0,0,0,.25), #000 30%, #000 75%, rgba(0,0,0,.4)); }
.cx-open__ruling::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(18px, 3vw, 46px); width: 1.5px; background: rgba(163,24,62,.45); }
.cx-open__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4.6vw, 84px); align-items: start; }
.cx-open h1 { font-size: clamp(2.5rem, 4.4vw, 4.5rem); color: var(--ink); margin-bottom: 14px; }
.cx-open__line { font-size: clamp(1.06rem, 1.2vw, 1.18rem); line-height: 1.55; color: var(--ink-soft); margin-bottom: clamp(20px, 2.2vw, 30px); }
.cx-open__line a { color: var(--claret); font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1.5px; white-space: nowrap; }

/* The form card: a ledger sheet with a red margin rule */
.enq { position: relative; background: #fff; border: 1px solid var(--rule); box-shadow: 20px 20px 0 rgba(117,21,35,.07); padding: clamp(20px, 2.2vw, 30px) clamp(20px, 2.4vw, 34px) clamp(22px, 2.4vw, 30px) clamp(34px, 3.6vw, 54px); }
.enq::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(16px, 1.7vw, 26px); width: 1.5px; background: var(--crimson); opacity: .7; transform-origin: top; }
.enq::after { content: ''; position: absolute; top: 0; left: calc(clamp(16px, 1.7vw, 26px) - 1px); width: 3.5px; height: 110px; background: linear-gradient(180deg, rgba(163,24,62,0), var(--crimson) 70%, rgba(242,214,75,.9)); pointer-events: none; animation: margin-pen 5s cubic-bezier(.45,0,.55,1) 1.8s infinite; opacity: 0; }
@keyframes margin-pen { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 110px); opacity: 0; } }
.rm .enq::after { display: none; }
.enq__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); }
.enq__head p { margin: 0; }
.enq__title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--claret); }
.enq__date { font-size: .95rem; color: var(--ink-soft); }
.enq__date span { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--claret); margin-right: 4px; }
.enq__msg { margin: 0 0 20px; padding: 14px 16px; font-size: 1rem; line-height: 1.5; }
.enq__msg p { margin: 0; }
.enq__msg--ok { background: var(--blush); border-left: 4px solid var(--crimson); padding-right: 210px; min-height: 112px; }
.enq__msg--err { background: #fff; border: 2px solid var(--crimson); }
.enq__msg a { color: var(--claret); font-weight: 700; }
.enq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px clamp(18px, 2vw, 28px); }

.fld { position: relative; margin: 0; padding: 0; border: 0; min-width: 0; }
.fld > label, .fld > legend { display: block; padding: 0; margin: 0 0 6px; font-weight: 600; font-size: .98rem; line-height: 1.3; color: var(--ink); }
.fld small { font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.fld input, .fld select, .fld textarea { display: block; width: 100%; height: 52px; margin: 0; padding: 0 14px; border: 0; border-radius: 0; background: #FAF3F5; color: var(--ink); font: inherit; font-size: 1.02rem; outline: none; -webkit-appearance: none; appearance: none; transition: background-color .3s, box-shadow .3s; }
.fld textarea { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.fld textarea::placeholder { color: #7A6A6F; opacity: 1; }
.fld select { padding-right: 48px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 6.5 9 12l5.5-5.5' fill='none' stroke='%23751523' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 18px; }
.fld input:hover, .fld select:hover, .fld textarea:hover { background-color: #F6ECEF; }
.fld input:focus, .fld select:focus, .fld textarea:focus { background-color: #fff; box-shadow: inset 0 0 0 1.5px rgba(163,24,62,.35); }
.fld__rule, .fld__focus { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; transform-origin: left center; }
.fld__rule { height: 1.5px; background: var(--ink); opacity: .6; overflow: hidden; }
.fld__rule::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, rgba(163,24,62,0), var(--crimson) 60%, #E8395E 85%, rgba(163,24,62,0)); transform: translateX(-110%); }
.motion .fld__rule::after { animation: rule-glint 7s cubic-bezier(.5,0,.4,1) calc(2.2s + var(--i, 0) * .22s) infinite; }
@keyframes rule-glint { 0% { transform: translateX(-110%); } 26%, 100% { transform: translateX(300%); } }
.fld:focus-within .fld__rule::after { animation: none; }
.fld__focus { height: 3px; background: var(--crimson); transform: scaleX(0); transition: transform .55s var(--ease); }
.fld:focus-within .fld__focus { transform: scaleX(1); }
.fld:focus-within > label { color: var(--crimson); }
.fld--wide { grid-column: 1 / -1; }

/* Preferred contact: three choices with an oval marker (the brand's stamp shape) */
.radios { display: flex; gap: 6px; }
.radio { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; height: 52px; padding: 0 8px; font-size: .97rem; background: #FAF3F5; font-weight: 600; cursor: pointer; transition: background-color .3s, box-shadow .3s, color .3s; }
.radio:hover { background: #F6ECEF; }
.radio input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.radio__o { flex: none; width: 19px; height: 13px; border: 2px solid var(--claret); border-radius: 50%; position: relative; transition: background .3s, border-color .3s; }
.radio__o::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .35s var(--ease); }
.radio:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--crimson); color: var(--claret); }
.radio input:checked + .radio__o { background: var(--crimson); border-color: var(--crimson); }
.radio input:checked + .radio__o::after { transform: scale(1); }
.radio:has(input:focus-visible) { outline: 3px solid var(--highlight); outline-offset: 2px; }
.fld--radio .fld__rule { opacity: .25; }

.enq__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.enq__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 22px; }
.enq__foot p { flex: 1 1 260px; margin: 0; font-size: .96rem; line-height: 1.5; color: var(--ink-soft); }
.enq__foot a { color: var(--claret); font-weight: 600; }
.enq__foot .btn { min-width: 210px; }

/* The SENT stamp, thumped onto the sheet on ?sent=1 */
.enq__stamp { position: absolute; z-index: 4; top: clamp(58px, 5vw, 70px); right: clamp(18px, 2.4vw, 40px); width: 196px; height: 122px; display: grid; place-content: center; text-align: center; border: 3.5px solid var(--crimson); border-radius: 50%; outline: 1.5px solid var(--crimson); outline-offset: -10px; color: var(--crimson); background: rgba(255,255,255,.55); transform: rotate(-12deg); pointer-events: none; mix-blend-mode: multiply; }
.enq__stamp span { font-family: var(--serif); font-size: 2.2rem; line-height: 1; text-transform: uppercase; letter-spacing: .07em; }
.enq__stamp small { margin-top: 5px; font-weight: 700; font-size: .72rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.enq__stamp::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--crimson); opacity: 0; }
.enq__stamp.is-thumped::after { animation: stamp-ring .7s var(--ease) forwards; }
@keyframes stamp-ring { 0% { opacity: .55; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.35); } }

/* Right column: Oakleigh at the clock, with the details card over the lower edge */
.cx-open__side { position: relative; padding-top: clamp(4px, 1vw, 16px); }
.cx-photo { position: relative; margin: 34px 38px 0 18px; }
.cx-photo__oval { position: absolute; left: -9%; top: -12%; width: 118%; height: 124%; overflow: visible; pointer-events: none; z-index: 0; }
.cx-photo__oval ellipse { fill: none; }
.cx-photo__oval .o-draw { stroke: var(--crimson); stroke-width: 1.6; stroke-dasharray: 1 1; stroke-dashoffset: 0; opacity: .55; }
.cx-photo__oval .o-dash { vector-effect: non-scaling-stroke; stroke: var(--claret); stroke-width: 1.4; stroke-dasharray: 5 9; animation: dash-turn 30s linear infinite; opacity: .7; }
.cx-photo__fig { position: relative; z-index: 1; margin: 0; }
.cx-photo__frame { width: min(100%, var(--media-cap)); aspect-ratio: 1; box-shadow: -18px 18px 0 rgba(117,21,35,.1); }
.cx-photo__frame img { position: absolute; left: -3%; top: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; }
.cx-photo__cap { top: 22px; bottom: auto; left: auto; right: -16px; border-left: 3px solid var(--crimson); box-shadow: 0 10px 24px rgba(34,9,15,.14); }
@keyframes cx-safe-clip { to { clip-path: inset(0 0 0 0); } }
.motion:not(.motion-fail) [data-cx-wipe] { clip-path: inset(0 100% 0 0); animation: cx-safe-clip .01s 2.8s forwards; }
.cx-intro-done [data-cx-wipe] { animation: none !important; }
.cx-card { position: relative; z-index: 2; margin: -92px 10px 0 clamp(-40px, -2vw, -10px); background: #fff; padding: 20px 24px 10px; border-top: 3px solid var(--crimson); box-shadow: 0 28px 56px rgba(34,9,15,.17), 0 2px 0 rgba(34,9,15,.04); }
.cx-card__status { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-weight: 700; line-height: 1.35; }
.cx-card__dot { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--claret); background: transparent; }
.is-open .cx-card__dot { background: var(--crimson); border-color: var(--crimson); animation: cx-pulse 2s infinite; }
.cx-card__list { margin: 0; }
.cx-card__list > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.cx-card__list > div:last-child { border-bottom: 0; }
.cx-card__list dt { font-weight: 700; font-size: .84rem; line-height: 1.9; text-transform: uppercase; letter-spacing: .08em; color: var(--claret); }
.cx-card__list dd { margin: 0; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.cx-card__list a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--crimson), var(--crimson)) no-repeat 0 100% / 0 1.5px; transition: background-size .35s var(--ease), color .2s; }
.cx-card__list a:hover, .cx-card__list a:focus-visible { background-size: 100% 1.5px; color: var(--claret); }

/* Start states for the opener intro (motion on, scripts present). A late CSS safety net shows everything. */
.motion:not(.motion-fail) [data-cx-in],
.motion:not(.motion-fail) [data-enq-head],
.motion:not(.motion-fail) [data-enq-foot],
.motion:not(.motion-fail) [data-fld] > label,
.motion:not(.motion-fail) [data-fld] > legend,
.motion:not(.motion-fail) [data-cx-card],
.motion:not(.motion-fail) .cx-photo__cap,
.motion:not(.motion-fail) .enq__stamp { opacity: 0; animation: cx-safe-in .01s 2.8s forwards; }
.motion:not(.motion-fail) [data-fld] .fld__rule { transform: scaleX(0); animation: cx-safe-in .01s 2.8s forwards; }
.motion:not(.motion-fail) .enq::before { transform: scaleY(var(--mr, 0)); animation: cx-safe-in .01s 2.8s forwards; }
.motion:not(.motion-fail) .cx-photo__oval .o-draw { stroke-dashoffset: 1; }
.motion:not(.motion-fail) .enq__stamp { animation-delay: 3.4s; }
.motion:not(.motion-fail) .enq__stamp.is-down { animation: none; }
.cx-intro-done [data-cx-in], .cx-intro-done [data-enq-head], .cx-intro-done [data-enq-foot], .cx-intro-done [data-fld] > label, .cx-intro-done [data-fld] > legend, .cx-intro-done [data-cx-card], .cx-intro-done .cx-photo__cap, .cx-intro-done [data-fld] .fld__rule, .cx-intro-done .enq::before { animation: none !important; }

@media (max-width: 1099px) {
  .cx-open__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); }
  .enq__msg--ok { padding-right: 16px; padding-top: 104px; }
  .enq__stamp { top: 70px; }
  .cx-card__list > div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 900px) {
  .cx-open__grid { grid-template-columns: 1fr; gap: 56px; }
  .cx-open__side { width: min(100%, 560px); margin-inline: auto; }
  .cx-card__list > div { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .cx-open { padding-top: calc(var(--head-h) + 22px); }
  .cx-open h1 { font-size: clamp(2.3rem, 10.6vw, 2.8rem); margin-bottom: 10px; }
  .cx-open__line { font-size: 1.02rem; margin-bottom: 18px; }
  .enq { padding: 16px 16px 20px 28px; box-shadow: 10px 10px 0 rgba(117,21,35,.07); margin-right: 6px; }
  .enq::before { left: 13px; }
  .enq::after { left: 12px; }
  .cx-open__ruling { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(19,32,47,.08) 31px, rgba(19,32,47,.08) 32px); animation-duration: 9s; }
  .enq__head { margin-bottom: 14px; }
  .enq__title { font-size: 1.3rem; }
  .enq__grid { grid-template-columns: 1fr; gap: 14px; }
  .radio { padding: 0 9px; gap: 7px; }
  .enq__foot .btn { width: 100%; }
  .enq__stamp { width: 150px; height: 94px; top: -14px; right: 2px; outline-offset: -8px; }
  .enq__stamp span { font-size: 1.7rem; }
  .enq__stamp small { font-size: .6rem; letter-spacing: .06em; }
  .is-sent .enq__date { visibility: hidden; }
  .enq__msg--ok { padding: 14px 16px; min-height: 0; margin-top: 30px; }
  .cx-photo { margin: 26px 22px 0 12px; }
  .cx-photo__oval { left: -6%; top: -10%; width: 112%; }
  .cx-photo__cap { right: -10px; }
  .cx-card { margin: -64px 0 0 14px; padding: 16px 18px 6px; }
  .cx-card__list > div { grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
  .cx-card__list dt { line-height: 1.6; }
}

/* Short desktop screens: the whole opener (form, privacy line, button and the details card) fits below the header */
@media (min-width: 901px) and (max-height: 960px) {
  .cx-open { padding-top: calc(var(--head-h) + 30px); padding-bottom: 72px; }
  .cx-open h1 { font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 10px; }
  .cx-open__line { margin-bottom: 20px; }
  .enq { padding-top: 18px; padding-bottom: 20px; }
  .enq__head { padding-bottom: 8px; margin-bottom: 14px; }
  .enq__grid { row-gap: 14px; }
  .fld input, .fld select, .radio { height: 48px; }
  .fld textarea { height: 82px; min-height: 82px; padding-block: 10px; }
  .enq__foot { margin-top: 16px; }
  .cx-open__side { padding-top: 6px; }
  .cx-photo { margin-top: 28px; }
  .cx-photo__frame { aspect-ratio: auto; width: 100%; height: min(42vh, 440px); }
  .cx-photo__frame img { object-position: 50% 62%; }
  .cx-card { margin-top: -72px; padding: 16px 22px 6px; }
  .cx-card__status { padding-bottom: 10px; }
  .cx-card__list > div { padding: 8px 0; }
  .cx-card__list dd { line-height: 1.45; }
}
@media (min-width: 901px) and (max-height: 800px) {
  .cx-open { padding-top: calc(var(--head-h) + 18px); padding-bottom: 56px; }
  .cx-open h1 { font-size: clamp(2.3rem, 3.5vw, 3.2rem); margin-bottom: 6px; }
  .cx-open__line { font-size: 1rem; margin-bottom: 14px; }
  .enq { padding-top: 14px; padding-bottom: 16px; box-shadow: 14px 14px 0 rgba(117,21,35,.07); }
  .enq__title { font-size: 1.25rem; }
  .enq__date { font-size: .9rem; }
  .enq__head { padding-bottom: 6px; margin-bottom: 10px; }
  .fld > label, .fld > legend { margin-bottom: 4px; font-size: .94rem; }
  .enq__grid { row-gap: 10px; }
  .fld input, .fld select, .radio { height: 44px; }
  .fld textarea { height: 66px; min-height: 66px; padding-block: 8px; }
  .enq__foot { margin-top: 12px; }
  .enq__foot p { font-size: .92rem; line-height: 1.45; }
  .enq__foot .btn { min-height: 46px; }
  .cx-photo { margin-top: 20px; }
  .cx-photo__frame { height: min(40vh, 320px); }
  .cx-photo__cap { top: 14px; padding: 7px 12px; }
  .cx-card { margin-top: -56px; padding: 12px 18px 4px; }
  .cx-card__status { padding-bottom: 8px; margin-bottom: 2px; font-size: .98rem; }
  .cx-card__list > div { padding: 6px 0; }
  .cx-card__list dt { line-height: 1.7; }
  .cx-card__list dd { line-height: 1.38; font-size: .97rem; }
}

/* ---------- 2. Other ways to reach us (ink-blue) ---------- */
.cx-ways { overflow: clip; padding-block: clamp(64px, 7vw, 100px); }
.cx-ways .sec-head { margin-bottom: clamp(28px, 3vw, 44px); }
.cx-ways__ruling { 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: cx-drift-36 22s linear infinite; }
.cx-ways__ruling::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(20px, 4.4vw, 70px); width: 1px; background: rgba(163,24,62,.6); }
.cx-ways .wrap { position: relative; }
.cx-ways h2 { color: #fff; }
.cx-ways__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; }

.cx-map { position: relative; width: min(100%, calc(var(--media-cap) * 1.1)); justify-self: center; }
.cx-map__svg { width: 100%; height: auto; overflow: visible; }
.cx-map .ring { fill: none; }
.cx-map__glow { animation: glow-breathe 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes glow-breathe { from { opacity: .7; } to { opacity: 1; } }
.cx-map__area { font-family: var(--serif); font-size: 26px; fill: rgba(255,255,255,.16); }
.cx-map .ring--3 { stroke: rgba(242,214,75,.38); stroke-width: 1.3; stroke-dasharray: 3 10; animation: dash-turn 70s linear infinite; }
.cx-map .ring--2 { stroke: rgba(255,255,255,.26); stroke-width: 1.3; stroke-dasharray: 8 9; animation: dash-turn 45s linear infinite reverse; }
.cx-map .ring--1 { fill: rgba(163,24,62,.22); stroke: var(--crimson); stroke-width: 2; }
.cx-map .route { fill: none; stroke: rgba(247,238,240,.85); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke .3s, stroke-width .3s; }
.motion:not(.motion-fail) .cx-map .route { stroke-dashoffset: 1; }
.cx-map .traveller { fill: var(--highlight); opacity: 0; transition: opacity .6s; }
.cx-map.is-drawn .traveller { opacity: 1; }
.rm .cx-map .traveller { display: none; }
.cx-map .town { cursor: pointer; }
.cx-map .town__pin { fill: var(--crimson); stroke: #fff; stroke-width: 2.5; transition: fill .3s; }
.cx-map .town__name { font-family: var(--sans); font-size: 17px; font-weight: 600; fill: #fff; paint-order: stroke; stroke: var(--ink-blue); stroke-width: 5px; stroke-linejoin: round; }
.cx-map .home__pin { fill: var(--highlight); stroke: var(--ink-blue); stroke-width: 3; }
.cx-map .home__pulse { fill: none; stroke: var(--highlight); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: home-pulse 2.4s ease-out infinite; }
@keyframes home-pulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.rm .cx-map .home__pulse { animation: none; opacity: 0; }
.cx-map .home__name { font-family: var(--serif); font-size: 25px; fill: #fff; paint-order: stroke; stroke: var(--ink-blue); stroke-width: 6px; stroke-linejoin: round; }
.cx-map .home__sub { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--on-dark-soft); paint-order: stroke; stroke: var(--ink-blue); stroke-width: 5px; }
.cx-map .ring-label { font-family: var(--sans); font-size: 16px; font-weight: 600; fill: var(--highlight); paint-order: stroke; stroke: var(--ink-blue); stroke-width: 8px; stroke-linejoin: round; }
.cx-map .compass path { fill: var(--on-dark-soft); }
.cx-map .compass text { font-family: var(--sans); font-size: 14px; font-weight: 700; fill: var(--on-dark-soft); }
.cx-map[data-hl="hh"] .route[data-route="hh"], .cx-map[data-hl="hp"] .route[data-route="hp"], .cx-map[data-hl="hs"] .route[data-route="hs"] { stroke: var(--highlight); stroke-width: 3.4; }
.cx-map[data-hl="hh"] [data-town="hh"] .town__pin, .cx-map[data-hl="hp"] [data-town="hp"] .town__pin, .cx-map[data-hl="hs"] [data-town="hs"] .town__pin { fill: var(--highlight); }
.cx-map__key { margin: 6px 0 0; font-size: .95rem; color: var(--on-dark-soft); text-align: center; }

.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; perspective: 1200px; }
.way { position: relative; padding: 20px 22px 18px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.13); overflow: hidden; isolation: isolate; transition: background-color .4s, border-color .4s; }
.way::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--crimson); transform: scaleX(var(--rule-s, 1)); transform-origin: left; }
.way::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(360px circle at var(--lx, 50%) var(--ly, 0%), rgba(242,214,75,.11), transparent 62%); opacity: 0; transition: opacity .4s; }
.way:hover { background-color: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }
.way:hover::after { opacity: 1; }
.way__ico { width: 34px; height: 34px; margin-bottom: 10px; overflow: visible; }
.way__ico path, .way__ico circle { fill: none; stroke: var(--highlight); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.motion:not(.motion-fail) .way__ico [pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.way h3 { color: #fff; margin-bottom: 6px; }
.way p { margin: 0 0 8px; color: var(--on-dark-soft); font-size: 1rem; line-height: 1.55; }
.way p:last-child { margin-bottom: 0; }
.way a { color: #fff; font-weight: 600; text-decoration: none; background: linear-gradient(var(--highlight), var(--highlight)) no-repeat 0 100% / 100% 1px; transition: background-size .35s var(--ease), color .2s; }
.way a:hover, .way a:focus-visible { color: var(--highlight); }
.way__big { font-family: var(--sans); font-weight: 600; font-size: clamp(1.5rem, 2vw, 1.9rem) !important; letter-spacing: -.02em; line-height: 1.2 !important; color: #fff !important; }
.way__big a { background-size: 0 2px; }
.way__big a:hover { background-size: 100% 2px; }
.way__addr { color: #fff !important; font-weight: 600; }
.way__mail a { display: inline-block; margin-bottom: 4px; overflow-wrap: anywhere; }
.way__mail a + a { display: inline-block; }
.week { display: flex; gap: 5px; margin: 8px 0 10px; padding: 0; list-style: none; }
.week li { flex: 1; font-size: .84rem; font-weight: 700; text-align: center; color: rgba(217,198,203,.6); }
.week li span { display: block; height: 8px; margin-bottom: 6px; background: rgba(255,255,255,.12); transform-origin: bottom; }
.week li.is-open { color: var(--on-dark); }
.week li.is-open span { background: var(--crimson); }
.week li.is-today { color: var(--highlight); }
.week li.is-today span { box-shadow: 0 0 0 2px var(--highlight); }
.way__live { display: flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 600; }
.way__live .cx-card__dot { border-color: var(--on-dark-soft); }
.way__live.is-open .cx-card__dot { background: var(--highlight); border-color: var(--highlight); animation: cx-pulse-y 2s infinite; }
@media (max-width: 1099px) {
  .cx-ways__grid { grid-template-columns: 1fr; }
  .cx-map { width: min(100%, 520px); }
}
@media (max-width: 600px) {
  .ways { grid-template-columns: 1fr; gap: 12px; }
  .way { padding: 20px 18px 18px; }
  .cx-map .town__name { font-size: 22px; }
  .cx-map .home__name { font-size: 30px; }
  .cx-map .home__sub { font-size: 19px; }
  .cx-map .ring-label { font-size: 20px; }
}

/* ---------- 3. What happens next (blush) ---------- */
.cx-next { overflow: clip; }
.cx-next::before { content: ''; 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: cx-drift-32 20s linear infinite; }
.cx-next__oval { position: absolute; right: -18vw; top: 4%; width: 62vw; height: 62vw; max-height: 900px; border-radius: 50%; border: 1.5px solid rgba(163,24,62,.18); box-shadow: inset 0 0 0 36px rgba(255,255,255,.28), inset 0 0 0 37.5px rgba(163,24,62,.1); animation: wobble 14s ease-in-out infinite alternate; pointer-events: none; }
.cx-next .wrap { position: relative; }

.steps { position: relative; margin-bottom: clamp(60px, 7vw, 104px); --node-w: 96px; --node-h: 70px; --gap: clamp(20px, 2.6vw, 44px); }
.steps__line { position: absolute; left: calc(var(--node-w) / 2); right: calc((100% - 3 * var(--gap)) / 4 - var(--node-w) / 2); top: calc(var(--node-h) / 2 - 1px); height: 2px; background: repeating-linear-gradient(90deg, rgba(117,21,35,.35) 0 8px, transparent 8px 16px); animation: line-march 1.2s linear infinite; }
@keyframes line-march { to { background-position: 16px 0; } }
.rm .steps__line { animation: none; }
.steps__fill { position: absolute; inset: 0; background: var(--crimson); transform-origin: left center; }
.motion:not(.motion-fail) .steps__fill { transform: scaleX(0); }
.steps__runner { position: absolute; top: 50%; left: 0; width: 70px; height: 4px; margin-top: -2px; background: linear-gradient(90deg, transparent, var(--highlight), transparent); opacity: 0; }
.steps.is-done .steps__runner { opacity: 1; animation: runner 3.6s linear infinite; }
@keyframes runner { from { transform: translateX(-70px); } to { transform: translateX(var(--run, 900px)); } }
.rm .steps__runner { display: none; }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: flex; flex-direction: column; }
.step__node { display: grid; place-items: center; width: var(--node-w); height: var(--node-h); margin-bottom: 22px; border-radius: 50%; border: 2px solid var(--claret); background: var(--blush); color: var(--claret); font-family: var(--sans); font-weight: 700; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1; transition: background-color .45s var(--ease), color .45s, border-color .45s, box-shadow .45s, transform .45s var(--ease); }
.step.is-lit .step__node { background: var(--crimson); border-color: var(--crimson); color: #fff; box-shadow: inset 0 0 0 4px var(--crimson), inset 0 0 0 5.5px rgba(255,255,255,.85); }
.no-js .step__node, .motion-fail .step__node, .rm .step__node { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.step.is-current .step__node { animation: cx-pulse 1.8s infinite; }
.steps.is-done .step:last-child .step__node { animation: cx-pulse 2.4s infinite; }
.step:hover .step__node { transform: rotate(-6deg) scale(1.05); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin-bottom: 14px; }
.step__fig { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: auto 0 0 !important; padding-top: 12px; border-top: 1px solid rgba(117,21,35,.18); color: var(--claret) !important; font-weight: 600; font-size: .98rem; }
.step__fig b { font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--crimson); }

.cx-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5.5vw, 100px); align-items: center; }
.cx-faq__media { position: relative; margin: 0; padding: 26px 0 0 26px; width: min(100%, calc(min(66vh, 580px) * .8 + 26px)); justify-self: start; }
.cx-faq__ring { position: absolute; left: -9%; top: -6%; width: 112%; overflow: visible; pointer-events: none; }
.cx-faq__ring ellipse { fill: none; stroke: var(--crimson); stroke-width: 1.6; stroke-dasharray: 6 10; animation: dash-turn 32s linear infinite; }
.cx-faq__frame { position: relative; aspect-ratio: 4 / 5; width: 100%; box-shadow: 20px 20px 0 rgba(117,21,35,.1); }
.motion .cx-faq__frame { animation: breathe-soft 9s ease-in-out infinite alternate; }
@keyframes breathe-soft { from { transform: scale(1); } to { transform: scale(1.025); } }
.cx-faq__frame img { position: absolute; inset: -6% 0 auto; height: 112%; object-position: 50% 40%; }
.cx-faq__cap { left: auto; right: -18px; bottom: 26px; border-left: 3px solid var(--crimson); box-shadow: 0 10px 24px rgba(34,9,15,.14); }
.cx-faq__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.15; margin-bottom: 14px; }

.acc { border-top: 2px solid var(--ink); }
.acc__item { position: relative; border-bottom: 1px solid rgba(117,21,35,.22); }
.acc__q { margin: 0; font: inherit; }
.acc__q button { display: flex; width: 100%; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border: 0; background: none; text-align: left; font-weight: 700; font-size: clamp(1.06rem, 1.2vw, 1.18rem); line-height: 1.35; color: var(--ink); cursor: pointer; transition: color .3s; }
.acc__q button:hover { color: var(--claret); }
.acc__icon { position: relative; flex: none; width: 34px; height: 34px; border: 1.5px solid var(--claret); border-radius: var(--btn-r); transition: background-color .35s, border-color .35s; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--claret); transition: transform .45s var(--ease), background-color .35s; }
.acc__icon::after { transform: rotate(90deg); }
.is-open .acc__icon { background: var(--crimson); border-color: var(--crimson); }
.is-open .acc__icon::before, .is-open .acc__icon::after { background: #fff; }
.is-open .acc__icon::after { transform: rotate(0deg); }
.acc__a { overflow: hidden; }
.acc-ready .acc__item:not(.is-open) .acc__a { height: 0; }
.acc__inner p { margin: 0; padding: 0 56px 20px 0; color: var(--ink-soft); }
.acc__rule { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.is-open .acc__rule { transform: scaleX(1); }
.cx-faq__more { margin: 22px 0 0; }

@media (max-width: 900px) {
  .steps { --node-w: 74px; --node-h: 54px; }
  .steps__line { left: calc(var(--node-w) / 2 - 1px); right: auto; top: 10px; bottom: 40px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(117,21,35,.35) 0 8px, transparent 8px 16px); animation-name: line-march-v; }
  @keyframes line-march-v { to { background-position: 0 16px; } }
  .steps__fill { transform-origin: center top; }
  .motion:not(.motion-fail) .steps__fill { transform: scaleY(0); }
  .steps__runner { left: 50%; top: 0; width: 4px; height: 60px; margin: 0 0 0 -2px; background: linear-gradient(180deg, transparent, var(--highlight), transparent); }
  @keyframes runner-v { from { transform: translateY(-60px); } to { transform: translateY(var(--run, 900px)); } }
  .steps.is-done .steps__runner { animation-name: runner-v; }
  .steps__list { grid-template-columns: 1fr; gap: 30px; }
  .step { padding-left: calc(var(--node-w) + 20px); min-height: var(--node-h); }
  .step__node { position: absolute; left: 0; top: 0; margin: 0; font-size: 1.5rem; }
  .cx-faq { grid-template-columns: 1fr; }
  .cx-faq__media { width: min(100%, 420px); justify-self: center; }
  .cx-faq__frame { width: 100%; max-height: 62vh; aspect-ratio: 4 / 4.6; }
}
@media (max-width: 600px) {
  .acc__inner p { padding-right: 8px; }
  .cx-faq__cap { right: 0; }
  .cx-faq__media { padding: 18px 0 0 14px; }
  .cx-faq__ring { left: -2%; top: -3%; width: 104%; }
  .cx-next__oval { width: 120vw; height: 120vw; right: -60vw; }
}

/* Touch screens: the card's phone and email links are full-size tap targets */
@media (pointer: coarse), (max-width: 1099px) {
  .cx-card__list a, .way__big a, .way__mail a { display: inline-flex; align-items: center; min-height: 44px; }
  .way__mail a, .way__mail a + a { display: flex; width: fit-content; margin-bottom: 0; }
}

.cx-faq__cap { right: 0; }

/* Directions link under the address */
.cx-card__dir { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--claret); }

/* Even heading lines (QA heading-wrap) and the ways band fitting one screen */
.page-contact :is(.cx-open h1, .cx-faq__title) { text-wrap: balance; }
.cx-ways.band { padding-block: clamp(52px, 6vw, 84px); }
