/* Grantham Web – one-page site. System fonts only (no external requests). */

:root {
  --stone: #eceee8;      /* page background: pale limestone */
  --paper: #ffffff;
  --ink: #161b26;
  --muted: #4a5263;
  --navy: #13294b;       /* same navy as the postcard front */
  --navy-2: #1d3a66;
  --marigold: #f4b928;   /* accent on navy only */
  --link: #1f4fa3;       /* accent on light backgrounds */
  --line: #d3d7cd;
  --sign: Bahnschrift, "DIN Alternate", "DIN Condensed", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--sign);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); max-width: 11ch; font-stretch: 85%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-stretch: 90%; }
h3 { font-size: 1.35rem; line-height: 1.15; }
p { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }
.narrow { max-width: 44rem; }

section { padding: 4.5rem 0; scroll-margin-top: 4rem; }
.sec-lead { color: var(--muted); font-size: 1.15rem; margin-top: -.25rem; max-width: 40ch; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 50; border-radius: 6px; }
.skip:focus { left: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(236, 238, 232, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(6px)) { .top { background: rgba(236, 238, 232, .8); backdrop-filter: blur(8px); } }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 700 1.2rem/1 var(--sign); }
.nav { list-style: none; display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { text-decoration: underline; }
.nav-wide { display: none; }
@media (min-width: 52rem) { .nav-wide { display: block; } }
.nav .nav-cta { background: var(--navy); color: #fff; padding: .5rem .9rem; border-radius: 999px; white-space: nowrap; }
.nav .nav-cta:hover { background: var(--navy-2); color: #fff; text-decoration: none; }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; padding: .85rem 1.35rem; border-radius: 999px; border: 2px solid var(--navy); }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-quiet { background: transparent; color: var(--navy); }
.btn-quiet:hover { background: var(--paper); color: var(--navy); }
.btn-light { background: var(--marigold); border-color: var(--marigold); color: var(--navy); font-size: 1.1rem; overflow-wrap: anywhere; }
.btn-light:hover { background: #ffd35c; border-color: #ffd35c; color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

/* ---------- hero + showcase ---------- */
.hero { padding: 3rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.place { font-weight: 700; color: var(--muted); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.place::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 3px var(--navy); }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.3rem); max-width: 34ch; }
.lead-small { color: var(--muted); max-width: 40ch; margin: 0; }

.showcase { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1rem; min-width: 0; }
.phone { position: relative; width: 17.5rem; max-width: 100%; aspect-ratio: 9 / 17; background: #0d1422; border-radius: 2.4rem; padding: .7rem; box-shadow: 0 1.6rem 3rem -1.2rem rgba(19, 41, 75, .55), inset 0 0 0 2px #2b3650; }
.phone-notch { position: absolute; z-index: 2; top: 1.1rem; left: 50%; width: 4.5rem; height: 1.1rem; margin-left: -2.25rem; background: #0d1422; border-radius: 999px; }
.track { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 1.8rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: 4px; }
.picker { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; max-width: 26rem; }
.picker button { font: 600 .9rem/1 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .75rem .45rem .45rem; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.picker button:hover { border-color: var(--navy); }
.picker button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sw { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: linear-gradient(135deg, var(--c) 55%, var(--d) 55%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.showcase figcaption { font-size: .9rem; color: var(--muted); text-align: center; max-width: 30ch; }

/* mini demo sites: colours and fonts from demos/templates/*.css */
.mini { flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); color: var(--ink2); font-family: var(--body); font-size: .8rem; line-height: 1.4; }
.m-hero { background: var(--hb); color: var(--hi); padding: 3.2rem 1rem 1.4rem; }
.m-name { font: 700 1.55rem/1.05 var(--head); margin: 0 0 .5rem; }
.m-pitch { margin: 0 0 1rem; opacity: .95; }
.m-cta { display: inline-block; background: var(--cta); color: var(--ctai); font-weight: 700; padding: .5rem .85rem; border-radius: var(--rad); }
.m-body { padding: 1rem; flex: 1; }
.m-h { font: 700 1rem/1.1 var(--head); color: var(--h2); margin: 0 0 .5rem; }
.m-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.m-body li { background: var(--card); border: 1px solid var(--ln); border-radius: var(--rad); padding: .45rem .6rem; }

.m-trades { --bg: #f4f1ea; --ink2: #1d2430; --hb: linear-gradient(160deg, #12304f, #1d4a7a); --hi: #fff; --cta: #ffc21a; --ctai: #111; --head: Impact, "Arial Narrow Bold", "Arial Black", sans-serif; --body: Arial, Helvetica, sans-serif; --rad: .3rem; --h2: #1d2430; --card: #fff; --ln: #d5cfc2; }
.m-trades .m-name, .m-trades .m-h { text-transform: uppercase; font-weight: 400; letter-spacing: .02em; }
.m-trades .m-h { border-bottom: 3px solid #ffc21a; display: inline-block; }
.m-food { --bg: #fff8ef; --ink2: #3b2417; --hb: linear-gradient(170deg, #8a2c0d, #b3431a); --hi: #fff; --cta: #2f5d34; --ctai: #fff; --head: Georgia, "Times New Roman", serif; --body: Georgia, "Times New Roman", serif; --rad: 1.2rem; --h2: #8a2c0d; --card: #fffdf8; --ln: #e6cfae; }
.m-food .m-hero { border-bottom: 6px double #f4d9a8; }
.m-beauty { --bg: #fdf5f7; --ink2: #3a2432; --hb: linear-gradient(160deg, #f5d5e0, #f9e8ee); --hi: #3a2432; --cta: #8c2b59; --ctai: #fff; --head: "Palatino Linotype", Palatino, Georgia, serif; --body: "Segoe UI", system-ui, sans-serif; --rad: 1.6rem; --h2: #8c2b59; --card: #fff; --ln: #ecd0da; }
.m-beauty .m-name { font-style: italic; font-weight: 400; }
.m-beauty .m-hero { border-radius: 0 0 50% 50% / 0 0 1.4rem 1.4rem; }
.m-fitness { --bg: #0f1115; --ink2: #f2f2f2; --hb: linear-gradient(160deg, #0f1115, #252b36); --hi: #fff; --cta: #c6f432; --ctai: #0f1115; --head: Impact, "Arial Black", sans-serif; --body: system-ui, Arial, sans-serif; --rad: .2rem; --h2: #c6f432; --card: #1b1f27; --ln: #3a4250; }
.m-fitness .m-name, .m-fitness .m-h { text-transform: uppercase; font-style: italic; font-weight: 400; letter-spacing: .03em; }
.m-shops { --bg: #fffdf5; --ink2: #26301f; --hb: linear-gradient(160deg, #0f5c5c, #157575); --hi: #fff; --cta: #b8381a; --ctai: #fff; --head: "Trebuchet MS", Verdana, sans-serif; --body: Verdana, Geneva, sans-serif; --rad: .6rem; --h2: #0f5c5c; --card: #fff; --ln: #e3dcc0; }
.m-shops .m-hero { border-bottom: 5px dashed #e4a11b; }
.m-services { --bg: #f5f7fa; --ink2: #1c2733; --hb: linear-gradient(160deg, #243b55, #34557a); --hi: #fff; --cta: #1f6f50; --ctai: #fff; --head: "Segoe UI", system-ui, sans-serif; --body: "Segoe UI", system-ui, sans-serif; --rad: .5rem; --h2: #243b55; --card: #fff; --ln: #d3dbe4; }

/* ---------- postcard ---------- */
.postcard-sec { background: var(--navy); color: #fff; }
.postcard-sec h2 { color: #fff; }
.postcard-sec a { color: var(--marigold); }
.postcard-sec a:hover { color: #ffd35c; }
.pc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .pc-grid { grid-template-columns: .95fr 1.05fr; } }
.pc-lead { font-size: 1.2rem; max-width: 38ch; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; max-width: 40rem; }
.checks li { position: relative; padding-left: 2.1rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--marigold); }
.checks li::after { content: ""; position: absolute; left: .45rem; top: .42rem; width: .35rem; height: .65rem; border: solid var(--navy); border-width: 0 .17rem .17rem 0; transform: rotate(45deg); }

.pc-art { position: relative; width: min(100%, 26rem); aspect-ratio: 148 / 125; margin: 0 auto; }
.card { position: absolute; width: 86%; aspect-ratio: 148 / 105; border-radius: .5rem; box-shadow: 0 1.2rem 2rem -1rem rgba(0, 0, 0, .6); }
.card-back { right: 0; top: 0; background: #fff; transform: rotate(5deg); display: flex; padding: 5%; gap: 6%; }
.cb-left { flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.cb-line { height: .3rem; border-radius: 2px; background: #c9ced8; }
.cb-line.short { width: 60%; }
.cb-qr { width: 38%; aspect-ratio: 1; margin: .2rem 0; background: repeating-conic-gradient(#222 0 25%, #fff 0 50%) 0 0 / 22% 22%; outline: 3px solid #222; outline-offset: -3px; }
.cb-right { flex: 1; border-left: 1px dashed #c9ced8; padding-left: 6%; display: flex; flex-direction: column; justify-content: center; gap: .55rem; position: relative; }
.cb-stamp { position: absolute; top: 0; right: 0; width: 22%; aspect-ratio: 4 / 5; border: 2px dashed #c9ced8; border-radius: 2px; }
.cb-addr { height: .3rem; background: #dfe2e8; border-radius: 2px; }
.card-front { left: 0; bottom: 0; background: linear-gradient(160deg, #12304f, #1d4a7a); color: #fff; transform: rotate(-4deg); display: flex; align-items: center; gap: 5%; padding: 6%; box-shadow: 0 1.2rem 2rem -1rem rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cf-words { flex: 1; display: grid; gap: .4rem; }
.cf-kicker { font: 700 clamp(.55rem, 1.8vw, .7rem)/1 var(--sans); color: var(--marigold); text-transform: uppercase; letter-spacing: .06em; }
.cf-h { font: 700 clamp(1rem, 4.4vw, 1.5rem)/1.05 var(--sign); font-stretch: 85%; }
.cf-h em { font-style: normal; color: var(--marigold); }
.cf-sub { font-size: clamp(.55rem, 1.8vw, .72rem); opacity: .9; }
.cf-phone { flex: 0 0 26%; aspect-ratio: 1 / 1.9; background: #fff; border: 4px solid #111; border-radius: .7rem; transform: rotate(4deg); display: flex; flex-direction: column; gap: 8%; padding: 14% 10%; position: relative; }
.cf-bar { height: 18%; background: #0b3a6b; border-radius: 2px; }
.cf-l { height: 5%; background: #c9ced8; border-radius: 2px; }
.cf-btn { position: absolute; left: 12%; right: 12%; bottom: 9%; height: 10%; background: var(--marigold); border-radius: 3px; }

/* ---------- how it works (a real sequence, so numbered) ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; border-top: 3px solid var(--navy); padding-top: 1rem; }
.steps li::before { content: counter(s); display: block; font: 700 3rem/1 var(--sign); color: var(--navy); margin-bottom: .5rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- work ---------- */
.work { background: var(--paper); }
.proof { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 48rem) { .proof { grid-template-columns: 1fr 1fr; } }
.proof-item { color: var(--ink); text-decoration: none; display: block; }
.proof-item h3 { margin-top: 1.25rem; }
.proof-item p { color: var(--muted); max-width: 40ch; }
.proof-item:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.go { color: var(--link); font-weight: 700; overflow-wrap: anywhere; }
.browser { border-radius: .75rem; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1rem 2rem -1.4rem rgba(19, 41, 75, .5); background: #fff; transition: transform .2s ease; }
.proof-item:hover .browser { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .browser { transition: none; } .proof-item:hover .browser { transform: none; } }
.b-bar { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; background: #e6e8ec; }
.b-dots { width: 2.6rem; height: .6rem; background: radial-gradient(circle, #b5bac4 .3rem, transparent .31rem) 0 0 / .9rem .6rem repeat-x; }
.b-url { flex: 1; min-width: 0; background: #fff; border-radius: 999px; padding: .2rem .7rem; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-body { aspect-ratio: 16 / 10; position: relative; }

.bark { display: grid; grid-template-columns: 1fr 1.25fr; gap: .75rem; padding: .9rem; background: #f3f6ef; }
.bark-book { background: #fff; border-radius: .5rem; padding: .7rem; display: flex; flex-direction: column; gap: .45rem; font-size: .7rem; box-shadow: 0 0 0 1px #dfe5d8; }
.bk-h { font: 700 .9rem/1.1 var(--sign); color: #2e4a2a; }
.bk-days { display: flex; flex-wrap: wrap; gap: .25rem; }
.bk-days i { font-style: normal; padding: .1rem .35rem; border-radius: .3rem; background: #eef2ea; color: #2e4a2a; }
.bk-days i.on { background: #2e5b2b; color: #fff; }
.bk-slot { padding: .3rem .4rem; border: 1px solid #cdd8c4; border-radius: .3rem; color: #2e4a2a; }
.bk-btn { margin-top: auto; text-align: center; background: #2e5b2b; color: #fff; font-weight: 700; padding: .3rem; border-radius: .3rem; }
.bark-map { width: 100%; height: 100%; background: #e4ecdc; border-radius: .5rem; }
.map-road { fill: none; stroke: #fff; stroke-width: 6; }
.route { fill: none; stroke: #2e5b2b; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-dot { fill: #f4b928; stroke: #2e5b2b; stroke-width: 2; }
.js-anim .route { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s ease-in-out; }
.js-anim .is-seen .route { stroke-dashoffset: 0; }

.masks { background: radial-gradient(circle at 50% 30%, #3b2d5c, #120d1f 70%); display: flex; align-items: center; justify-content: center; gap: 6%; }
.mask { width: 20%; aspect-ratio: 4 / 5; border-radius: 50% 50% 45% 45% / 40% 40% 60% 60%; position: relative; background: var(--mc); box-shadow: 0 .6rem 1rem -.5rem #000; }
.mask::before, .mask::after { content: ""; position: absolute; top: 36%; width: 24%; height: 12%; background: #120d1f; border-radius: 50%; }
.mask::before { left: 18%; transform: rotate(10deg); }
.mask::after { right: 18%; transform: rotate(-10deg); }
.m1 { --mc: #e9e1d0; transform: rotate(-8deg) translateY(6%); }
.m2 { --mc: #d9a441; transform: translateY(-6%); }
.m3 { --mc: #b8455a; transform: rotate(8deg) translateY(6%); }
.bubble { position: absolute; right: 8%; top: 12%; background: #fff; border-radius: 1rem 1rem 1rem .2rem; padding: .45rem .6rem; display: flex; gap: .25rem; }
.bubble i { width: .4rem; height: .4rem; border-radius: 50%; background: #3b2d5c; }

/* ---------- prices ---------- */
.tiers { display: grid; gap: 1.25rem; margin-top: 2rem; align-items: start; }
@media (min-width: 56rem) { .tiers { grid-template-columns: 1fr 1.08fr 1fr; align-items: stretch; } }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; position: relative; }
.tier ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: .45rem; }
.tier li::marker { color: var(--navy); }
.cost { margin: 0; color: var(--muted); font-weight: 600; }
.amt { font: 700 2.4rem/1 var(--sign); color: var(--ink); letter-spacing: -.02em; }
.plus { color: var(--muted); padding: 0 .1rem; }
.quote { display: block; margin-top: .35rem; }
.tier-main { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (min-width: 56rem) { .tier-main { margin: -.75rem 0; padding: 2.25rem 1.5rem; } }
.tier-main .cost, .tier-main ul, .tier-main .plus { color: #d9e1ee; }
.tier-main .amt { color: #fff; }
.tier-main li::marker { color: var(--marigold); }
.badge { position: absolute; top: -.8rem; right: 1.25rem; margin: 0; background: var(--marigold); color: var(--navy); font-weight: 700; font-size: .85rem; padding: .25rem .7rem; border-radius: 999px; }
.tier-note { margin: 2rem 0 0; font-weight: 600; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 44rem) { .about-grid { grid-template-columns: auto 1fr; gap: 3rem; } }
.about-words { max-width: 42rem; }
.photo { position: relative; width: 11rem; height: 11rem; border-radius: 50%; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--line); }
.photo-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--marigold); font: 700 5rem/1 var(--sign); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact ---------- */
.contact { background: var(--navy); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact p { font-size: 1.15rem; }

/* ---------- privacy ---------- */
.privacy ul { padding-left: 1.1rem; display: grid; gap: .5rem; }
.privacy h2 { font-size: clamp(1.6rem, 4vw, 2rem); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: .95rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.foot p { margin: 0; }
