/* Contact page: the form beside the drawn Thanet map, what happens next (moss), where we work (white). */

/* ---------- opener (paper with the drawing grid) ---------- */
.c-open { background-color: var(--paper); padding: calc(var(--head-h) + clamp(18px, 3.2vh, 40px)) 0 clamp(24px, 3.4vh, 36px); min-height: 100vh; min-height: 100svh; overflow: clip; isolation: isolate; --mx: 75%; --my: 45%; }
/* the drawing grid creeps across the board (one 140px square every 40s) */
.c-open::before { content: ""; position: absolute; inset: -140px 0 0 -140px; z-index: -3; pointer-events: none; animation: c-grid 26s linear infinite;
  background-image: linear-gradient(rgba(44, 53, 60, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 53, 60, .06) 1px, transparent 1px), linear-gradient(rgba(44, 53, 60, .085) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 53, 60, .085) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px; }
@keyframes c-grid { to { transform: translate(140px, 140px); } }
.c-open__glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(30vw 30vw at var(--mx) var(--my), rgba(201, 148, 89, .16), transparent 70%), radial-gradient(50% 40% at 85% 100%, rgba(85, 98, 42, .1), transparent 70%); animation: c-glow 11s ease-in-out infinite alternate; }
@keyframes c-glow { from { transform: translate(-4%, 2%); } to { transform: translate(4%, -3%); } }
.c-open__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); grid-template-areas: "head head" "card map"; gap: clamp(18px, 2.8vh, 30px) clamp(36px, 4.6vw, 76px); align-items: start; }
.c-open__head { grid-area: head; }
.c-open h1 { font-size: clamp(2.3rem, 4.4vw, 4rem); font-stretch: 114%; line-height: 1.04; }
.c-open__line { font-size: 1.18rem; line-height: 1.5; color: var(--muted); margin: .5em 0 0; }

/* the form card, with an oak outline offset behind it like the homepage frames */
.c-card { grid-area: card; position: relative; isolation: isolate; border-radius: var(--r); padding: clamp(20px, 2.2vw, 30px); }
/* the card's own stacking context paints the outline (::before) first, then the white sheet (::after) over it */
.c-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white); border-radius: var(--r); box-shadow: 0 30px 70px rgba(44, 53, 60, .16), 0 2px 0 rgba(44, 53, 60, .04); }
.c-card::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border: 2px solid var(--oak); border-radius: var(--r); transition: opacity .9s .3s var(--ease), transform 1.1s .3s var(--ease); }
.js.gs:not(.rm) .c-card:not(.is-in)::before { opacity: 0; transform: translate(-14px, -14px); }
.c-card__plan { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: calc(var(--r) - 2px); background: var(--moss-tint); color: var(--moss-d); font-weight: 600; font-size: .98rem; line-height: 1.45; }
.c-card__plan svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; margin-top: 1px; }
.page-contact .form { gap: 12px; }
.page-contact .form__row { gap: 12px; }
.page-contact .field { gap: 5px; }
.page-contact .field textarea { height: 104px; min-height: 84px; }
.page-contact .form__status { position: relative; padding-left: 46px; }
.page-contact .form__status::before { content: ""; position: absolute; left: 17px; top: 50%; width: 15px; height: 8px; margin-top: -6px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
.page-contact .form__status--err::before { content: "!"; left: 14px; width: 22px; height: 22px; margin-top: -11px; border: 2px solid currentColor; border-radius: 50%; transform: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .8rem; line-height: 1; }
.page-contact .field select.is-picked { border-color: var(--moss); box-shadow: 0 0 0 4px rgba(85, 98, 42, .18); }

/* the map sheet */
.c-map { grid-area: map; }
.c-map__sheet { --pad: clamp(14px, 1.8vw, 26px); position: relative; padding: var(--pad); border-radius: var(--r); background: var(--sky); border: 1px solid rgba(44, 53, 60, .12); box-shadow: 0 24px 60px rgba(44, 53, 60, .1); }
.c-map__sheet .map { position: relative; z-index: 1; }
.page-contact #map-grid path { stroke: rgba(44, 53, 60, .1); }
/* the island's name across the empty land, as on a survey map; centred on (250, 150) of the 560 x 310 map */
.c-map__isle { position: absolute; z-index: 1; left: calc(var(--pad) + (100% - var(--pad) * 2) * .43); top: calc(var(--pad) + (100% - var(--pad) * 2) * .484); transform: translate(-50%, -50%) rotate(-12deg); font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: clamp(.875rem, 1.25vw, 1.15rem); letter-spacing: .24em; text-transform: uppercase; color: rgba(44, 53, 60, .3); white-space: nowrap; pointer-events: none; }
.c-map .map__pin { cursor: pointer; }
.c-map .map__pin.is-picked .map__dot { fill: var(--oak-deep); }
.c-map .map__label.is-picked { fill: var(--oak-deep); }
.c-van__halo { fill: rgba(201, 148, 89, .28); }
.c-van__dot { fill: var(--oak); stroke: var(--ink); stroke-width: 2.5; }
.c-map__north { position: absolute; right: calc(var(--pad) + 4px); top: calc(var(--pad) + 2px); z-index: 2; display: grid; justify-items: center; gap: 2px; width: 30px; }
.c-map__north svg { width: 22px; height: auto; }
.c-north__a { fill: none; stroke: var(--slate); stroke-width: 2; stroke-linejoin: round; }
.c-north__h { fill: var(--slate); }
.c-map__north span, .c-map__scale span { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: .875rem; letter-spacing: .1em; color: var(--slate); line-height: 1; }
/* 5 km is 145 of the map's 560 units */
.c-map__scale { position: absolute; left: calc(var(--pad) + 2%); bottom: calc(var(--pad) + 2px); z-index: 2; width: calc((100% - var(--pad) * 2) * .259); display: flex; justify-content: space-between; padding-top: 12px; }
.c-map__scale i { position: absolute; left: 0; right: 0; top: 0; height: 8px; border: 2px solid var(--slate); border-top: 0; background: linear-gradient(90deg, var(--slate) 0 20%, transparent 20% 40%, var(--slate) 40% 60%, transparent 60% 80%, var(--slate) 80%) 0 100% / 100% 4px no-repeat; }
.c-map__scale span:first-of-type { transform: translateX(-40%); }
.c-map__scale span:last-of-type { transform: translateX(45%); }

/* the stage label under the map (as in the homepage hero) */
.c-stage { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px; margin: 18px 0 0; }
.c-stage__count { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: .95rem; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-stage__count b { color: var(--oak-deep); font-weight: 800; }
.c-stage__name { display: block; min-height: 1.5em; line-height: 1.5; white-space: nowrap; font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.c-stage__bar { grid-column: 1 / -1; height: 2px; background: rgba(44, 53, 60, .14); overflow: hidden; }
.c-stage__bar i { display: block; height: 100%; background: var(--oak); transform-origin: left; transform: scaleX(1); }
.c-map__line { margin: 16px 0 10px; font-weight: 500; }
.c-towns { display: flex; flex-wrap: wrap; gap: 6px; }
.c-town { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 13px 7px 10px; border-radius: 999px; border: 2px solid rgba(44, 53, 60, .25); background: var(--white); font-weight: 600; font-size: .92rem; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.c-town svg { width: 14px; height: 18px; fill: none; stroke: var(--moss); stroke-width: 1.8; transition: stroke .3s; }
.c-town:hover { border-color: var(--moss); transform: translateY(-2px); }
.c-town[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: var(--white); }
.c-town[aria-pressed="true"] svg { stroke: var(--white); }

.js:not(.rm):not(.gs):not(.reveal-all) :is([data-c-card], .c-map) { opacity: 0; }

/* ---------- what happens next (moss) ---------- */
.c-next { background: var(--moss); color: var(--white); padding: clamp(80px, 9vw, 124px) 0; overflow: clip; isolation: isolate; }
.c-next__tex { position: absolute; left: 0; top: 0; width: 100%; height: 2600px; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px; animation: c-drift 22s linear infinite; }
@keyframes c-drift { to { background-position: 200px 0, 200px 0, 40px 0, 40px 0; } }
.c-next__ghost { position: absolute; right: 2vw; bottom: 0; z-index: -1; height: 92%; width: auto; max-width: 52vw; fill: none; stroke: rgba(255, 255, 255, .11); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14 10; animation: c-march 2.4s linear infinite; }
@keyframes c-march { to { stroke-dashoffset: -24; } }
.c-next .sec-head--dark .lede { color: rgba(255, 255, 255, .86); }
.c-steps { position: relative; }
/* a measuring tape: ticks every 12px, a longer one every 60px */
.c-steps__rail { position: absolute; left: 0; right: 0; top: 21px; height: 16px; margin-top: -1px; background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) 0 0 / 100% 2px no-repeat, repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 12px) 0 2px / 100% 6px no-repeat, repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 2px, transparent 2px 60px) 0 2px / 100% 11px no-repeat; }
.c-steps__rail i { position: absolute; left: 0; top: 0; height: 3px; width: 100%; margin-top: -.5px; background: var(--oak-l); transform-origin: left center; transform: scaleX(1); box-shadow: 0 0 14px rgba(227, 185, 127, .6); }
/* a glint that runs along the lit part of the tape */
.c-steps__glint { position: absolute; left: 0; top: -3px; width: 90px; height: 9px; border-radius: 9px; background: radial-gradient(closest-side, rgba(255, 246, 228, .95), rgba(255, 246, 228, 0)); pointer-events: none; opacity: 0; }
.c-steps__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.c-step { position: relative; transition: transform .45s var(--ease); }
.c-step__n { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--moss); border: 2px solid rgba(255, 255, 255, .55); font-family: var(--display); font-weight: 800; font-size: 1rem; transition: background-color .45s, border-color .45s, color .45s; }
.c-step__n::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--oak-l); opacity: 0; }
.c-step__icon { display: block; width: 58px; height: 58px; margin: 26px 0 14px; fill: none; stroke: var(--oak-l); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.c-step h3 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); margin-bottom: 10px; color: var(--white); }
.c-step p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 1rem; }
.c-step.is-on .c-step__n { background: var(--oak-l); border-color: var(--oak-l); color: var(--ink); }
.c-step.is-on .c-step__n::after { animation: c-ring 2.8s ease-out infinite; }
@keyframes c-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.c-step:hover { transform: translateY(-4px); }
.c-step:hover .c-step__icon { transform: rotate(-4deg) scale(1.06); }
.js.gs:not(.rm) .c-step:not(.is-on) { opacity: .62; }
.c-step { transition: transform .45s var(--ease), opacity .5s var(--ease); }

/* ---------- where we work (white) ---------- */
.c-where { background: var(--white); padding: clamp(64px, 6.5vw, 96px) 0 clamp(56px, 6vw, 88px); overflow: clip; }
.c-where__towns { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin: -8px 0 0; padding: 18px 0; border-top: 2px solid var(--text); border-bottom: 1px solid rgba(44, 53, 60, .18); }
.c-where__towns li { position: relative; display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(1.25rem, 1.95vw, 1.95rem); line-height: 1.2; color: rgba(44, 53, 60, .22); background: linear-gradient(90deg, var(--text) 0 50%, rgba(44, 53, 60, .2) 50% 100%) 0 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.c-where__towns li::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--oak); box-shadow: 0 0 0 0 rgba(201, 148, 89, .5); animation: c-pin 5s ease-out infinite; }
.c-where__towns li:nth-child(2)::before { animation-delay: 1s; } .c-where__towns li:nth-child(3)::before { animation-delay: 2s; } .c-where__towns li:nth-child(4)::before { animation-delay: 3s; } .c-where__towns li:nth-child(5)::before { animation-delay: 4s; }
@keyframes c-pin { 0% { box-shadow: 0 0 0 0 rgba(201, 148, 89, .6); } 30%, 100% { box-shadow: 0 0 0 14px rgba(201, 148, 89, 0); } }
.c-strip { margin-top: clamp(24px, 3.4vh, 40px); overflow: clip; cursor: grab; touch-action: pan-y; padding-bottom: 8px; }
.c-strip:active { cursor: grabbing; }
.c-strip__track { --h: min(37vh, 360px); display: flex; align-items: flex-start; gap: 22px; width: max-content; padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.c-strip__item { position: relative; flex: none; width: calc(var(--h) * .75); }
.c-strip__item:nth-child(even) { margin-top: 36px; }
.c-strip__item--wide { width: calc(var(--h) * 1.49); }
.c-strip__img { height: var(--h); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.c-strip__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; transform: scale(1.04); transition: transform 1s var(--ease); }
.c-strip__item:hover .c-strip__img img { transform: scale(1.1); }
.c-strip__item figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: var(--paper); font-family: var(--display); font-stretch: 78%; font-weight: 600; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; max-width: calc(100% - 24px); }
.c-where__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: clamp(20px, 3vh, 36px); }
.no-js .c-strip, .rm .c-strip { overflow-x: auto; }

/* ---------- short desktop screens: everything in the opener fits above the fold at 1280x720 and 1366x768 ---------- */
@media (min-width: 981px) and (max-height: 860px) {
  .c-open { padding-top: calc(var(--head-h) + 14px); padding-bottom: 8px; }
  .c-open__grid { row-gap: 14px; }
  .c-open h1 { font-size: clamp(2.3rem, 3.6vw, 3.1rem); }
  .c-open__line { font-size: 1.05rem; margin-top: .3em; }
  .c-card { padding: 18px 22px; }
  .page-contact .form { gap: 9px; }
  .page-contact .form__row { gap: 10px; }
  .page-contact .field { gap: 3px; }
  .page-contact .field__l { font-size: .9rem; }
  .page-contact .field input, .page-contact .field select { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
  .page-contact .field textarea { height: 70px; min-height: 64px; padding-top: 9px; padding-bottom: 9px; }
  .page-contact .form .btn { min-height: 46px; padding-top: .6em; padding-bottom: .6em; }
  .page-contact .form__note { font-size: .875rem; }
  /* the map scales with the screen height: 426px is the header, heading, stage, line and chips */
  .c-map__sheet { --pad: 14px; max-width: calc((100vh - 426px) * 1.806 + 28px); max-width: calc((100svh - 426px) * 1.806 + 28px); }
  .c-stage { margin-top: 10px; }
  .c-map__line { margin: 8px 0; }
  .c-town { padding-top: 6px; padding-bottom: 6px; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .c-open__grid { grid-template-columns: 1fr; grid-template-areas: "head" "card" "map"; }
  .c-map { margin-top: 20px; }
  .c-steps__list { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .c-steps__rail { display: none; }
}
@media (max-width: 700px) {
  .c-open { padding-top: calc(var(--head-h) + 16px); }
  .c-open h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); }
  .c-open__line { font-size: 1.05rem; margin-top: .4em; }
  .c-card { padding: 18px 16px; }
  .c-card::before { inset: 8px -8px -8px 8px; }
  .page-contact .field textarea { height: 96px; }
  .page-contact .map__label:not(.is-on):not(.is-picked) { opacity: 0 !important; }
  .c-map__isle { font-size: .875rem; letter-spacing: .14em; left: calc(var(--pad) + (100% - var(--pad) * 2) * .36); top: calc(var(--pad) + (100% - var(--pad) * 2) * .6); }
  .c-map__north { width: 22px; } .c-map__north svg { width: 16px; }
  .c-map__north span, .c-map__scale span { font-size: .875rem; }
  .page-contact .map__label { font-size: 25px; }
  .c-steps__list { grid-template-columns: 1fr; row-gap: 26px; padding-left: 64px; }
  .c-steps__rail { display: block; left: 21px; right: auto; top: 0; bottom: 0; width: 16px; height: auto; margin: 0; background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) 0 0 / 2px 100% no-repeat, repeating-linear-gradient(180deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 12px) 2px 0 / 6px 100% no-repeat; }
  .c-steps__rail i { width: 3px; height: 100%; margin: 0 0 0 -.5px; transform-origin: center top; transform: scaleY(1); }
  .c-step__n { position: absolute; left: -64px; top: -6px; }
  .c-step__icon { width: 44px; height: 44px; margin: 0 0 8px; }
  .c-next__ghost { right: -6vw; bottom: 0; width: 86vw; max-width: none; height: auto; max-height: 60vh; }
  .c-where__towns { justify-content: flex-start; gap: 6px 18px; }
  .c-where__towns li { font-size: 1.2rem; gap: 9px; }
  .c-where__towns li::before { width: 10px; height: 10px; }
  .c-strip__track { --h: min(46vh, 340px); gap: 14px; }
  .c-strip__item:nth-child(even) { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-open::before, .c-open__glow, .c-next__tex, .c-next__ghost, .c-where__towns li::before, .c-step.is-on .c-step__n::after { animation: none; }
}
.rm .c-where__towns li, .no-js .c-where__towns li { background-position: 0 0; }
.rm .c-step, .no-js .c-step { opacity: 1; }

/* footer links keep a margin above the 44px tap floor here (sub-pixel transforms measured 43.99) */
.page-contact .site-foot__col a { min-height: 46px; }
