/* Website component library. The website editor builds every page from these parts.
   Colours, fonts and sizes come from tokens.css; per-element adjustments live in site.css. */
/* Everything sits in a cascade layer so per-element adjustments in site.css always win. */
@layer base {

/* ---------- Font pairing (one class on <html>) ---------- */
.font-classic { --f-head: 'Newsreader', Georgia, 'Times New Roman', serif; --f-body: 'Inter', system-ui, -apple-system, sans-serif; --head-weight: 300; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--c-bg); color: var(--c-ink);
  font-family: var(--f-body); font-size: var(--fs-base); line-height: var(--lh-body);
  --text: var(--c-ink); --body: var(--c-muted); --muted: var(--c-muted); --link: currentColor; --link-hover: var(--c-link); --invert: var(--c-tint);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--c-surface); color: var(--c-ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
sup { font-size: .55em; line-height: 0; vertical-align: super; }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: var(--head-weight); line-height: var(--lh-head); color: var(--text); margin: 0 0 24px; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); }
h4, .h4-size { font-size: calc(var(--fs-h3) * .8); line-height: var(--lh-head); letter-spacing: 0; }
p, ul, ol { margin: 0 0 18px; color: var(--body); }
li { color: var(--body); }
ul:not([class]), ol:not([class]) { padding-left: 1.25em; }
ul:not([class]) li + li, ol:not([class]) li + li { margin-top: .35em; }
strong, b { color: var(--text); }
p.lead { font-size: 1.15em; }
p.small, .small { font-size: var(--fs-small); }
.muted { color: var(--muted); }
.caps { text-transform: uppercase; letter-spacing: .06em; }
.display { font-size: clamp(2.2rem, min(5vw, 7.5cqi), 5.5rem); text-transform: uppercase; letter-spacing: .04em; color: var(--c-tint); }
.col:has(> .display) { container-type: inline-size; }
.on-dark .display, .bg-petrol .display, .bg-deep .display, .bg-olive .display { color: var(--c-tint); }
.tagline { font-size: clamp(1.1rem, 1.5vw, 1.5rem); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-tint); }
.eyebrow { font-family: var(--f-body); font-size: var(--fs-base); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
.eyebrow span { text-transform: none; font-weight: 400; }
.eyebrow.sage { color: var(--c-gold-text); }
.eyebrow a { text-decoration: underline; color: inherit; }
.eyebrow.chip { display: inline-block; background: var(--c-primary); color: #fff; padding: 6px 12px; }
.gold-rule { display: block; width: 56px; height: 2px; background: var(--c-gold); border: 0; margin: 0 0 22px; }
.text-center { text-align: center; } .text-center .gold-rule, .text-center .btn-row { margin-inline: auto; justify-content: center; }
.text-center .wrap.narrow, .wrap.narrow.text-center { margin-inline: auto; }

/* ---------- Header (shown when the menu has items) ---------- */
.site-header { background: var(--c-primary); position: relative; z-index: 20; --text: var(--c-on-dark); --link: var(--c-on-dark); color: var(--text); }
.site-header .bar { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .logo { color: var(--c-tint); text-decoration: none; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--c-on-dark); text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; color: var(--c-on-dark); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--c-on-dark); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-primary); display: none; padding: 8px var(--gutter) 20px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-nav a { display: block; padding: 10px 0; }
}

/* ---------- Sections, rows, columns ---------- */
.sec { position: relative; padding: var(--space-section) 0; --text: var(--c-ink); --body: var(--c-muted); --muted: var(--c-muted); --link: currentColor; --link-hover: var(--c-link); --invert: var(--c-tint); color: var(--text); }
.sec.pad-s { padding: calc(var(--space-section) * .6) 0; } .sec.pad-l { padding: calc(var(--space-section) * 2) 0; } .sec.pad-0 { padding: 0; }
.sec.pad-top-0 { padding-top: 0; } .sec.pad-bottom-0 { padding-bottom: 0; }
.bg-cream { background: var(--c-bg); } .bg-surface { background: var(--c-surface); } .bg-sand { background: var(--c-sand); } .bg-tint { background: var(--c-tint); }
.bg-petrol { background: var(--c-primary); } .bg-deep { background: var(--c-primary-deep); } .bg-olive { background: var(--c-olive); }
.sec.line-top { border-top: 1px solid var(--c-border); }
/* Dark backgrounds switch the whole colour scope, so nothing inside inherits dark-on-dark. */
.on-dark, .bg-petrol, .bg-deep, .bg-olive { --text: var(--c-on-dark); --body: var(--c-on-dark); --muted: var(--c-on-dark-accent); --link: var(--c-on-dark); --link-hover: var(--c-on-dark-accent); --invert: var(--c-primary-deep); color: var(--text); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
.wrap.wide { max-width: calc(var(--maxw) * 1.3); }
.wrap.full { max-width: none; padding: 0; }
.row { display: grid; gap: 32px; align-items: start; }
.row + .row { margin-top: 48px; }
.row.cols-1 { grid-template-columns: minmax(0, 1fr); }
.row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
.row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; }
.row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.row.cols-2.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.row.cols-2.wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.row.gap-s { gap: 16px; } .row.gap-l { gap: 90px; }
.row.v-center { align-items: center; } .row.v-end { align-items: end; } .row.v-stretch { align-items: stretch; }
.col { min-width: 0; }
.col > :last-child, .card > :last-child, .card-body > :last-child { margin-bottom: 0; }
@media (max-width: 1024px) {
  .row.cols-3, .row.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row.cols-2 { gap: 40px; }
}
@media (max-width: 768px) {
  :root { --gutter: 18px; }
  h1 { font-size: min(var(--fs-h1), 44px); } h2 { font-size: min(var(--fs-h2), 35px); } h3 { font-size: min(var(--fs-h3), 28px); } h4, .h4-size { font-size: min(calc(var(--fs-h3) * .8), 22.5px); }
}
@media (max-width: 640px) {
  .row.cols-2, .row.cols-3, .row.cols-4, .row.cols-2.wide-left, .row.cols-2.wide-right { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .row.cols-2.photo-first > .col:has(> .media:only-child) { order: -1; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 0 0 18px; }
.btn-row.stack { flex-direction: column; align-items: stretch; gap: 9px; max-width: 30%; }
@media (max-width: 768px) { .btn-row.stack { max-width: none; } }
.row.cols-3 .btn-row.stack, .row.cols-4 .btn-row.stack { max-width: none; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: .6rem 1.4rem; border-radius: var(--radius-btn);
  font: inherit; font-weight: 500; font-size: var(--fs-base); line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn-outline { background: transparent; color: var(--text); border-color: currentColor; }
.btn-outline:hover { background: var(--text); color: var(--invert); border-color: var(--text); }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: #3D4642; border-color: #3D4642; color: #fff; }
.btn-secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-border); }
.btn-secondary:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn-light { background: var(--c-tint); border-color: var(--c-tint); color: var(--c-primary-deep); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--c-primary-deep); }
.btn-link { background: none; padding-inline: 0; color: var(--text); text-decoration: underline; }
.btn.shape-pill { border-radius: 999px; } .btn.shape-square { border-radius: 0; }
.btn.size-s { padding: .4rem 1rem; font-size: var(--fs-small); } .btn.size-l { padding: .9rem 2rem; }
.btn .icon { width: 18px; height: 18px; }
.btn:disabled { opacity: .6; cursor: wait; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.hover-glow:hover { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-primary) 22%, transparent); }
@media (prefers-reduced-motion: reduce) { .btn, .hover-lift:hover { transition: none; transform: none; } }

/* ---------- Images ---------- */
.media { margin: 0 0 18px; }
.media img { width: 100%; height: auto; }
.media.rounded img { border-radius: var(--radius); }
.media.r-square img, .media.r-4-5 img, .media.r-5-4 img, .media.r-16-9 img, .media.r-3-2 img, .media.r-2-3 img, .media.r-3-4 img { object-fit: cover; height: auto; }
.media.r-square img { aspect-ratio: 1 / 1; } .media.r-4-5 img { aspect-ratio: 4 / 5; } .media.r-5-4 img { aspect-ratio: 5 / 4; }
.media.r-16-9 img { aspect-ratio: 16 / 9; } .media.r-3-2 img { aspect-ratio: 3 / 2; } .media.r-2-3 img { aspect-ratio: 2 / 3; } .media.r-3-4 img { aspect-ratio: 3 / 4; }
.media.focus-top img { object-position: top; }
.media.fill { height: 100%; } .media.fill img { height: 100%; min-height: 400px; object-fit: cover; }
.media.panel { background: var(--c-sand); padding: 36px; display: grid; place-items: center; } .media.panel img { max-width: 420px; }
.media.wide-band { margin: 0; } .media.wide-band img { max-height: 65vh; object-fit: cover; object-position: center top; }
@media (max-width: 768px) { .media.wide-band img { max-height: 50vw; } }
.media figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: 8px; }
.media.w-s { max-width: 50%; } .media.w-m { max-width: 70%; } .media.align-center { margin-inline: auto; } .media.align-right { margin-left: auto; }
.icon { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-badge { display: inline-flex; width: 56px; height: 56px; background: var(--c-tint); color: var(--c-primary); align-items: center; justify-content: center; margin: 0 0 16px; }
.on-dark .icon-badge, .bg-petrol .icon-badge, .bg-olive .icon-badge, .bg-deep .icon-badge { background: rgba(255,255,255,.12); color: var(--c-on-dark-accent); }
.stars { display: inline-block; width: .72em; height: .72em; vertical-align: -.02em; margin-right: .35em; fill: currentColor; }

/* ---------- Video ---------- */
.video { margin: 0 0 18px; }
.video iframe, .video .video-ph { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video .video-ph { background: #1E201F center / cover no-repeat; position: relative; }
.video .video-ph::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #C4302B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E") center / 28px no-repeat; }

/* ---------- Cards ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px; height: 100%;
  --text: var(--c-ink); --body: var(--c-muted); --muted: var(--c-muted); --link: currentColor; --link-hover: var(--c-link); --invert: var(--c-tint); color: var(--text); display: flex; flex-direction: column; }
.card.plain { background: transparent; border: 0; padding: 0; --text: inherit; --body: inherit; }
.card.tint { background: var(--c-tint); border-color: transparent; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .media { margin: 0; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h2, .card h3, .card h4 { margin-bottom: 8px; }
.card .role { color: var(--c-gold-text); font-weight: 600; font-size: var(--fs-small); margin: 0 0 12px; }
.card .more { margin-top: auto; font-weight: 600; font-size: var(--fs-small); }
.card > .btn-row:last-child { margin-top: auto; }
a.card { text-decoration: none; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--c-primary); }
/* Line card: a top rule and no box (Ways to work together). Inherits the section's colours. */
.card.line { background: transparent; border: 0; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); padding: 27px 0 0; --text: inherit; --body: inherit; --muted: inherit; --link: inherit; --invert: inherit; }
.card.line h3, .card.line h4 { margin-bottom: 4px; }
.card.line p { margin-bottom: 13px; }
/* Feature card: centred, white, soft shadow (Nine Centers grid). */
.card.feature { border: 0; padding: 27px 22px 31px; text-align: center; align-items: center; box-shadow: 0 1px 2px rgb(44 46 45 / .08); gap: 0; }
.card.feature > .media { width: 100%; margin-bottom: 14px; }
.card.feature h2, .card.feature h3, .card.feature h4 { width: 100%; border-top: 2px solid rgb(44 46 45 / .12); padding-top: 16px; margin-bottom: 12px; }
.card.feature p { margin-bottom: 18px; }
.card.feature .btn-row { justify-content: center; }
a.card.feature:hover h2, a.card.feature:hover h3, a.card.feature:hover h4, a.card.feature:hover .btn { color: var(--c-gold); }
@media (max-width: 900px) { .card.feature { background: transparent; box-shadow: none; padding: 0; } .card.feature h2, .card.feature h3, .card.feature h4 { border-top: 0; padding-top: 0; } }

/* ---------- Banner (photo behind text) ---------- */
.banner { padding: 0; min-height: 440px; display: flex; align-items: center; overflow: hidden; background: var(--c-primary-deep);
  --text: #FFFFFF; --body: #FFFFFF; --muted: #F0EBE1; --link: #FFFFFF; --link-hover: var(--c-tint); --invert: var(--c-primary-deep); color: var(--text); }
.banner.h-s { min-height: 300px; } .banner.h-m { min-height: 440px; } .banner.h-l { min-height: 600px; } .banner.h-xl { min-height: 80vh; }
.banner > .banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(44, 46, 45, .65); pointer-events: none; }
.banner.tint-soft::after { background: rgba(30, 28, 24, .58); }
.banner.tint-strong::after { background: rgba(30, 28, 24, .78); }
.banner > .wrap { position: relative; z-index: 1; width: 100%; padding-top: var(--space-section); padding-bottom: var(--space-section); }
.banner.pos-end { align-items: flex-end; } .banner.pos-top { align-items: flex-start; }
.banner.pos-center > .wrap { text-align: center; }
.banner .col-narrow, .banner .narrow-text { max-width: 620px; }

/* ---------- Lists, quotes, details, prices ---------- */
.list-check { list-style: none; padding: 0; }
.list-check li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.list-check li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
/* Timeline: accent rings joined by a gently waving line (a list with class "timeline") */
ul.timeline { list-style: none; padding: 0; margin: 2.5rem 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; position: relative; text-align: center; }
ul.timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 8px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='14' viewBox='0 0 80 14'%3E%3Cpath d='M0 7 C20 1 20 1 40 7 S60 13 80 7' fill='none' stroke='%23CDAD7D' stroke-width='2'/%3E%3C/svg%3E") repeat-x left center / 80px 14px; }
ul.timeline li { position: relative; padding: 46px 6px 0; display: flex; flex-direction: column; gap: 4px; margin: 0; }
ul.timeline li::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--c-gold); background: #fff; box-shadow: 0 0 0 4px rgba(205, 173, 125, .22); }
ul.timeline .tl-when { font-family: var(--f-head); font-size: 1.15rem; color: var(--text); }
ul.timeline strong { font-weight: 600; color: var(--text); font-size: var(--fs-small); line-height: 1.4; }
ul.timeline .tl-what { font-size: var(--fs-small); line-height: 1.45; }
@media (max-width: 640px) {
  ul.timeline { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; text-align: left; }
  ul.timeline::before { left: 14px; right: auto; top: 15px; bottom: 15px; width: 2px; height: auto; background: var(--c-gold); opacity: .7; }
  ul.timeline li { padding: 2px 0 22px 52px; }
  ul.timeline li::before { left: 0; transform: none; }
  ul.timeline li:last-child { padding-bottom: 0; }
}
.list-plain { list-style: none; padding: 0; }
.list-plain li + li { margin-top: .35em; }
blockquote { margin: 0 0 18px; }
blockquote p { font-style: italic; }
blockquote cite { display: block; font-style: normal; color: var(--text); }
.faq details { border-top: 1px solid var(--c-border); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--c-border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05em; list-style-position: outside; }
.faq details p { margin: 12px 0 0; }
.table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--c-border); vertical-align: top; color: var(--body); }
.table th { font-weight: 600; color: var(--text); }
.table td.num { text-align: right; white-space: nowrap; }
.divider { border: 0; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); margin: 32px 0; }
.spacer { height: 48px; } .spacer.s { height: 24px; } .spacer.l { height: 96px; }
.stack-tight > p { margin-bottom: 7px; }
.stack-tight > .eyebrow { margin-bottom: 4px; }
.group { margin-bottom: 36px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 13px; max-width: 560px; width: 100%; }
.form label { font-size: var(--fs-small); font-weight: 600; color: var(--text); display: block; }
.form .lbl-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form input:not([type=checkbox]), .form textarea, .form select { display: block; width: 100%; margin-top: 6px; padding: .65rem .85rem; border: 1px solid var(--c-field); border-radius: 0; font: inherit; font-weight: 400; background: #fff; color: var(--c-ink); }
.form .lbl-hidden + input, .form .lbl-hidden + textarea { margin-top: 0; }
.form textarea { min-height: 130px; resize: vertical; }
.on-dark .form input:not([type=checkbox]), .on-dark .form textarea, .banner .form input:not([type=checkbox]), .banner .form textarea, .bg-petrol .form input:not([type=checkbox]), .bg-petrol .form textarea, .bg-olive .form input:not([type=checkbox]), .bg-deep .form textarea, .bg-deep .form input:not([type=checkbox]), .bg-olive .form textarea {
  background: rgba(255,255,255,.15); border-color: rgba(240,235,225,.4); color: var(--c-tint); }
.on-dark .form ::placeholder, .banner .form ::placeholder, .bg-petrol .form ::placeholder, .bg-olive .form ::placeholder, .bg-deep .form ::placeholder { color: rgba(240,235,225,.6); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-status { margin: 0; font-weight: 600; color: var(--text); }
.form-status:empty { display: none; }
.form-done { color: var(--text); }

/* ---------- Pop-up signup (opened by a button linking to #its-id) ---------- */
dialog.popup { border: 0; padding: 0; max-width: 520px; width: calc(100% - 32px); background: #fff; color: var(--c-ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.popup::backdrop { background: rgba(20, 22, 21, .6); }
dialog.popup .popup-img { width: 100%; height: auto; display: block; }
dialog.popup .popup-body { padding: 28px 32px 32px; }
dialog.popup h3 { font-size: calc(var(--fs-h3) * .8); margin-bottom: 6px; }
dialog.popup .popup-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: rgba(255,255,255,.85); font-size: 26px; line-height: 1; cursor: pointer; color: var(--c-ink); }
dialog.popup form { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
dialog.popup input[type=email] { flex: 1; min-width: 200px; padding: .6rem .8rem; border: 1px solid var(--c-field); font: inherit; }
dialog.popup .small { font-size: 15px; }
@media (max-width: 480px) { dialog.popup .popup-body { padding: 24px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-primary-deep); --text: var(--c-on-dark); --body: var(--c-on-dark); --muted: var(--c-on-dark-accent); --link: var(--c-on-dark); --link-hover: var(--c-on-dark-accent); color: var(--text); padding: 27px 0; font-size: var(--fs-base); text-align: center; }
.site-footer .wrap > :last-child { margin-bottom: 0; }
.site-footer p { margin: 0 0 8px; }

/* ---------- Scroll motion (site.js adds .in when visible; respects reduced motion) ---------- */
.js [data-anim] { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--anim-delay, 0s); }
.js [data-anim="fade-up"] { transform: translateY(28px); }
.js [data-anim="zoom-in"] { transform: scale(.94); }
.js [data-anim="slide-left"] { transform: translateX(40px); }
.js [data-anim="slide-right"] { transform: translateX(-40px); }
.js [data-anim].in { opacity: 1; transform: none; }
.js [data-anim="parallax"] { opacity: 1; transform: translateY(var(--py, 0px)); transition: none; }
@media (prefers-reduced-motion: reduce) { .js [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; } }
.h3-size { font-size: var(--fs-h3); }
.m-0 { margin: 0 !important; }


/* ---------- Grace Garvey Tutoring theme touches ---------- */
h1, h2, h3 { letter-spacing: -.02em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; text-decoration: underline; text-decoration-color: var(--c-gold); text-decoration-thickness: 3px; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.site-header { background: var(--c-bg); border-bottom: 1px solid var(--c-border); --text: var(--c-ink); --link: var(--c-ink); }
.site-header { position: sticky; top: 0; }
.site-header .bar { max-width: none; padding-inline: clamp(20px, 4vw, 56px); }
.site-header .logo { color: var(--c-ink); font-weight: 400; font-size: var(--fs-base); letter-spacing: .04em; }
@media (max-width: 640px) { .site-header .logo { font-size: var(--fs-small); letter-spacing: .02em; } }
.site-nav a:not(.btn), .site-nav a:not(.btn):hover { color: var(--c-ink); text-transform: uppercase; font-size: var(--fs-base); font-weight: 400; letter-spacing: .04em; }
.site-header .nav-toggle { color: var(--c-ink); }
@media (max-width: 900px) { .site-nav { background: var(--c-bg); border-bottom: 1px solid var(--c-border); } }
.btn { text-transform: none; letter-spacing: 0; font-weight: 400; }
.site-header .btn, .site-header .btn:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-bg); font-size: var(--fs-base); text-transform: none; letter-spacing: 0; font-weight: 400; }
.btn-primary:hover { background: #222; border-color: #222; }
.eyebrow.chip { display: inline-grid; place-items: center; width: 56px; height: 56px; padding: 0; border-radius: 50%; background: transparent; color: var(--c-ink); border: 1px solid var(--c-ink); font-family: var(--f-head); font-size: 1.6rem; font-weight: 300; letter-spacing: 0; }
.calendly { margin: 0 0 18px; }
.calendly .calendly-inline-widget { min-width: 320px; height: 700px; }
.calendly .cal-ph { display: grid; place-items: center; height: 420px; border: 1px dashed var(--c-border); background: var(--c-surface); color: var(--c-muted); font-size: var(--fs-small); text-align: center; padding: 24px; }
.media.doodle { pointer-events: none; }
.media.doodle img { width: auto; max-width: 100%; }
} /* end @layer base */
