/* =====================================================================
   PRDS — Provincial Research Data Services, Alberta
   Shared design system.  Rethemed to match PRDS's actual LinkedIn brand:
   DM Sans + DM Serif Display, monochrome deep-plum palette, real logo mark.
   ===================================================================== */

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

/* Colour tokens live in themes.css, which must load BEFORE this file.
   Only layout constants and the one fixed colour stay here. */
:root {
    --white:        #ffffff;
    --card-bg:      #ffffff;
    --card-border:  rgba(var(--ink-rgb), 0.12);
    --glass:        var(--glass);
    --maxw:         1120px;
    --header-h:     68px;
}

html { scroll-behavior: smooth; }

html, body {
    min-height: 100vh;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
    background-attachment: fixed;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* The gradient above is inherited by the canvas from <html>. Body must stay
   transparent: a background here paints AFTER negative z-index children, so
   an opaque body would hide the .scene backdrop completely. */
body { display: flex; flex-direction: column; background: none; }

a { color: inherit; }
img, svg { max-width: 100%; }

/* ── Header ─────────────────────────────────────────────────────── */
header.site-header { position: sticky; top: 0; z-index: 200; background: rgba(var(--sky-rgb),0.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(var(--ink-rgb),0.07); }
.header-inner { max-width: var(--maxw); margin: 0 auto; min-height: var(--header-h); padding: 13px 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-mark-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-text { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; font-weight: 700; letter-spacing: 0.01em; line-height: 1; display: flex; align-items: baseline; gap: 7px; }
.brand-text .bt-main { color: var(--ink); }
.brand-text .bt-sub  { color: var(--accent-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }

nav.site-nav { flex: 1; display: flex; justify-content: flex-end; gap: clamp(22px, 2.6vw, 34px); align-items: center; }
/* auto margins centre the link group between the brand and the CTA; they collapse
   to the flex gap when space runs short, so the bar never overflows. */
.nav-links { display: flex; gap: clamp(18px, 2.1vw, 27px); align-items: center; margin-inline: auto; }
.nav-links a { font-family: 'DM Sans', sans-serif; color: var(--text-muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 0.2s; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--plum); }
.nav-links a.active { color: var(--plum); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }

nav.site-nav .btn { white-space: nowrap; }

.btn { display: inline-flex; align-items: center; gap: 9px; font-family: 'DM Sans', sans-serif; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--plum); color: var(--white); font-size: 14.5px; padding: 12px 22px; border-radius: 50px; box-shadow: 0 6px 20px rgba(var(--ink-rgb),0.25); }
.btn-primary:hover { background: var(--plum-mid); transform: translateY(-1px); box-shadow: 0 9px 26px rgba(var(--ink-rgb),0.30); }
.btn-lg { font-size: 15.5px; padding: 15px 30px; }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--plum); font-size: 14.5px; padding: 12px 22px; border-radius: 50px; border: 1px solid var(--card-border); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--ink); font-size: 14.5px; padding: 14px 26px; border-radius: 50px; box-shadow: 0 8px 24px rgba(0,0,0,0.22); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.28); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ── Layout ─────────────────────────────────────────────────────── */
main { position: relative; z-index: 10; flex: 1; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }
.section { padding: 64px 0; }
.section-tight { padding: 44px 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-dark); background: rgba(var(--accent-rgb),0.12); border: 1px solid rgba(var(--accent-rgb),0.28); padding: 6px 13px; border-radius: 50px; margin-bottom: 20px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.eyebrow-plain { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 16px; }
.eyebrow-plain .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.01em; }
.serif { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-style: normal; }
.serif-i { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-style: italic; }

.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 38px; line-height: 1.14; margin-bottom: 12px; }
.section-head h2 em { font-style: italic; color: var(--plum); }
.section-head p { font-size: 16px; color: var(--text-muted); line-height: 1.6; }
.underline-accent::after { content: ''; display: block; width: 66px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 14px; }
.section-head.center .underline-accent::after { margin-left: auto; margin-right: auto; }

/* ── Page hero (interior pages) ─────────────────────────────────── */
.page-hero { padding: 58px 0 38px; }
.page-hero h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 52px; line-height: 1.1; margin-bottom: 16px; }
.page-hero h1 em { font-style: italic; color: var(--plum); }
.page-hero .lead { font-size: 17px; color: var(--text-muted); line-height: 1.62; max-width: 680px; }
.breadcrumb { font-size: 12.5px; color: var(--text-subtle); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--plum); }

/* ── Home hero split ────────────────────────────────────────────── */
.hero { padding: 46px 0 8px; }
.hero-split { display: grid; grid-template-columns: 1.85fr 1fr; gap: 34px; align-items: stretch; }
.hero-left { min-width: 0; }
.hero-left h1 { font-size: 52px; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.hero-left h1 .h1-serif { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-weight: 400; display: block; font-size: 62px; color: var(--plum); line-height: 1.06; }
.hero-left h1 .h1-serif::after { content: ''; display: block; width: 72px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 10px; }
.hero-left .subtitle { color: var(--text-muted); font-size: 16.5px; line-height: 1.6; margin-bottom: 18px; max-width: 620px; }
.hero-tagline { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 28px; }
.hero-tagline span { color: var(--plum-light); margin: 0 2px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Build credit — a byline under the lede, set quiet so it reads as attribution
   rather than another line of pitch. */
.hero-credit { display: flex; width: fit-content; align-items: baseline; gap: 9px; flex-wrap: wrap; margin: 2px 0 22px; padding: 10px 16px 10px 13px; background: var(--glass); border-left: 2px solid rgba(var(--accent-rgb),0.45); border-radius: 0 9px 9px 0; font-size: 13px; }
.hero-credit .hc-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); }
.hero-credit .hc-name { font-weight: 600; color: var(--plum); }
.hero-credit .hc-role { color: var(--text-muted); position: relative; padding-left: 11px; }
.hero-credit .hc-role::before { content: '·'; position: absolute; left: 2px; color: var(--text-subtle); }

/* gradient rail */
.rail { position: relative; overflow: hidden; color: #fff; border-radius: 20px; display: flex; flex-direction: column; justify-content: center; padding: 30px 28px; background: linear-gradient(180deg, var(--grad-1) 0%, var(--grad-2) 38%, var(--grad-3) 64%, var(--grad-4) 100%); box-shadow: 0 18px 48px rgba(var(--shadow-rgb),0.26); }
.rail::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 20%, rgba(var(--onDark-rgb),0.5), transparent 50%); pointer-events: none; }
.rail-inner { position: relative; z-index: 2; }
.rail-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-onDark); margin-bottom: 14px; }
.rail-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-onDark); }
.rail h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 25px; line-height: 1.18; margin-bottom: 20px; color: #fff; }
/* Break before the italic half so the phrase never splits across lines. */
.rail h2 em { display: block; font-style: italic; color: var(--accent-onDark); }
.rail-stats { display: flex; flex-direction: column; margin-bottom: 22px; }
/* Number stacked over its caption — matches .statbox, and keeps the caption's
   left edge flush no matter how wide the figure is. */
.rail-stat { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.rail-stat:first-child { padding-top: 0; }
.rail-stat:last-child { border-bottom: none; padding-bottom: 0; }
.rail-stat .n { display: block; font-family: 'DM Serif Display', Georgia, serif; font-size: 30px; line-height: 1; color: var(--accent-onDark); white-space: nowrap; }
.rail-stat .n .u { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; margin-left: 5px; color: rgba(var(--onDark-rgb),0.9); }
.rail-stat .l { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.86); }
.rail-cta { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 50px; box-shadow: 0 8px 24px rgba(0,0,0,0.24); transition: transform 0.15s, box-shadow 0.2s; align-self: flex-start; }
.rail-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.30); }
.rail-cta svg { width: 15px; height: 15px; }

/* ── Value row ──────────────────────────────────────────────────── */
.values { display: flex; gap: 40px; flex-wrap: wrap; }
.value { flex: 1; min-width: 220px; display: flex; gap: 14px; align-items: flex-start; }
.value-icon { width: 34px; height: 34px; flex-shrink: 0; margin-top: 1px; }
.value-icon svg { width: 100%; height: 100%; }
.value h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.value p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ── Card grids ─────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 26px 26px; box-shadow: 0 8px 28px rgba(var(--ink-rgb),0.08); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card-link { text-decoration: none; display: block; color: inherit; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(var(--ink-rgb),0.16); border-color: var(--accent); }
.card .card-icon { width: 46px; height: 46px; margin-bottom: 16px; }
.card .card-icon svg { width: 100%; height: 100%; }
.card .kicker { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 7px; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.card .go { margin-top: 15px; font-size: 13px; font-weight: 600; color: var(--plum); display: inline-flex; align-items: center; gap: 6px; }
.card .go svg { width: 15px; height: 15px; }

/* feature list inside cards / sections */
.feature-list { list-style: none; margin: 14px 0 0; }
.feature-list li { position: relative; padding: 9px 0 9px 26px; font-size: 13.5px; line-height: 1.55; color: var(--text-body); border-bottom: 1px solid var(--hairline); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: ''; position: absolute; left: 3px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.16); }
.feature-list li b { color: var(--ink); font-weight: 600; }

/* ── Alternating service rows ───────────────────────────────────── */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 26px; }
.svc-row .card { height: 100%; }
.svc-copy .num { font-family: 'DM Serif Display', Georgia, serif; font-size: 15px; color: var(--accent-dark); }
.svc-copy h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.14; margin: 6px 0 12px; }
.svc-copy > p { font-size: 15px; color: var(--text-muted); line-height: 1.62; }
.svc-visual { display: flex; align-items: center; justify-content: center; }

/* ── Stats band ─────────────────────────────────────────────────── */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.statbox { background: var(--wash); border-radius: 14px; padding: 24px 22px; border-left: 3px solid var(--accent); }
.statbox .n { font-family: 'DM Serif Display', Georgia, serif; font-size: 40px; color: var(--plum); line-height: 1; }
.statbox .n .unit { font-size: 22px; color: var(--accent-dark); }
.statbox .l { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.45; }

/* ── Dataset cards (data platform) ──────────────────────────────── */
.dataset { position: relative; background: var(--wash); border: 1px solid var(--hairline); border-radius: 12px; padding: 20px 20px; transition: transform 0.18s, box-shadow 0.18s; }
.dataset:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(var(--ink-rgb),0.12); }
.dataset .ds-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dataset .ds-icon { width: 34px; height: 34px; flex-shrink: 0; }
.dataset .ds-icon svg { width: 100%; height: 100%; }
.dataset h3 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.dataset .ds-abbr { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--accent-dark); text-transform: uppercase; }
.dataset p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-top: 8px; }
.chip { flex-shrink: 0; font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 9px; border-radius: 50px; background: rgba(34,139,84,0.12); color: #1B7A45; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.chip .cd { width: 6px; height: 6px; border-radius: 50%; background: #21A35A; box-shadow: 0 0 0 3px rgba(33,163,90,0.20); }
.ds-coverage { font-size: 11.5px; color: var(--text-subtle); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 6px; }
.ds-coverage svg { width: 13px; height: 13px; }

/* ── Chart / timeline card ──────────────────────────────────────── */
.chart-card { border: 1px solid var(--card-border); border-radius: 16px; padding: 22px 24px; background: var(--card-bg); box-shadow: 0 8px 28px rgba(var(--ink-rgb),0.06); }
.chart-card .ct { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--plum-mid); margin-bottom: 16px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card .cap { font-size: 12px; color: var(--text-subtle); margin-top: 12px; line-height: 1.5; }

/* ── Steps / journey (process) ──────────────────────────────────── */
.journey { display: flex; flex-direction: column; gap: 16px; }
.step-card { display: flex; gap: 20px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 24px 26px; box-shadow: 0 8px 28px rgba(var(--ink-rgb),0.08); }
.step-num { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; box-shadow: 0 6px 16px rgba(var(--ink-rgb),0.25); }
.step-body .phase { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 3px; }
.step-body h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-body .feature-list { margin-top: 10px; }

/* callout */
.callout { background: linear-gradient(180deg, rgba(var(--ink-rgb),0.05), rgba(var(--accent-rgb),0.07)); border-radius: 20px; padding: 34px 36px; }
.callout .eyebrow-plain { margin-bottom: 12px; }
.callout h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-style: italic; font-size: 27px; color: var(--plum); margin-bottom: 12px; }
.callout p { font-size: 14.5px; color: var(--text-body); line-height: 1.66; max-width: 680px; }
.callout .quote { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink); }

/* info note strip */
.note { display: flex; gap: 14px; align-items: flex-start; background: var(--wash); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 18px 20px; }
.note svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.note p { font-size: 13.5px; color: var(--text-body); line-height: 1.6; }
.note p b { color: var(--ink); }

/* ── CTA band ───────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 54px 44px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--grad-deep) 0%, var(--plum-mid) 55%, var(--grad-2) 100%); box-shadow: 0 20px 54px rgba(var(--shadow-rgb),0.28); }
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(var(--onDark-rgb),0.35), transparent 55%); pointer-events: none; }
.cta-band .inner { position: relative; z-index: 2; }
.cta-band .eyebrow-plain { color: var(--accent-onDark); justify-content: center; }
.cta-band .eyebrow-plain .dot { background: var(--accent-onDark); }
.cta-band h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.16; margin-bottom: 12px; }
.cta-band h2 em { font-style: italic; color: var(--accent-onDark); }
.cta-band p { font-size: 15.5px; color: rgba(255,255,255,0.85); line-height: 1.6; max-width: 560px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Team / leadership ──────────────────────────────────────────── */
.person { display: flex; gap: 18px; align-items: flex-start; }
.person .av { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--plum), var(--plum-mid)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; flex-shrink: 0; }
.person h3 { font-size: 17px; margin-bottom: 2px; }
.person .role { font-size: 12.5px; color: var(--accent-dark); font-weight: 600; margin-bottom: 9px; }
.person p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* pill tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-size: 12.5px; font-weight: 500; color: var(--plum); background: rgba(var(--ink-rgb),0.06); border: 1px solid var(--card-border); border-radius: 50px; padding: 8px 15px; }

/* ── Responsible-use / principles list ──────────────────────────── */
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { position: relative; padding: 0 0 15px 28px; margin-bottom: 15px; border-bottom: 1px solid var(--hairline); }
.principles li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.principles li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.16); }
.principles .pt { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.principles .pd { display: block; font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; padding: 30px 32px; box-shadow: 0 10px 38px rgba(var(--ink-rgb),0.10); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--accent-dark); }
.field input, .field select, .field textarea { width: 100%; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum-light); box-shadow: 0 0 0 3px rgba(var(--plumlight-rgb),0.18); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 12px; color: var(--text-subtle); line-height: 1.5; margin-top: 8px; }
.form-error { font-size: 13px; font-weight: 600; color: #b3261e; line-height: 1.5; margin-top: 10px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#submitBtn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* contact detail rows */
.detail { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.detail:last-child { border-bottom: none; }
.detail .di { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--plum); }
.detail h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.detail p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.detail a { color: var(--plum); font-weight: 600; text-decoration: none; }
.detail a:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer.site-footer { position: relative; z-index: 10; margin-top: 40px; }
footer.site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--sky-rgb),0) 0%, rgba(var(--sky-rgb),0.75) 38%, rgba(var(--sky-rgb),0.94) 100%); pointer-events: none; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 60px 48px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-tagline { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-size: 15px; color: var(--plum-mid); margin-bottom: 10px; }
.footer-brand p { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; max-width: 320px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); text-decoration: none; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--plum); }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 11.5px; color: var(--text-subtle); line-height: 1.6; }

.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--plum); text-decoration: underline; }

/* ── Modal ──────────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(var(--shadow-rgb),0.55); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 24px; }
.overlay.show { display: flex; }
.modal { background: #fff; border-radius: 16px; max-width: 680px; width: 100%; max-height: 86vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 72px rgba(var(--shadow-rgb),0.25); animation: slideIn 0.22s ease-out; }
@keyframes slideIn { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { background: var(--plum); color: #fff; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; font-weight: 400; }
.modal-head button { background: none; border: none; color: rgba(255,255,255,0.75); font-size: 22px; cursor: pointer; line-height: 1; width: 30px; height: 30px; border-radius: 6px; }
.modal-head button:hover { background: rgba(255,255,255,0.15); color: #fff; }
.modal-body { padding: 24px; overflow-y: auto; }

/* ── Reveal animation ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────── */

/* The full nav needs ~1120px to sit on one line — collapse it before it squeezes. */
@media (max-width: 1100px) {
    :root { --header-h: 62px; }
    .nav-toggle { display: block; }
    nav.site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: rgba(var(--sky-rgb),0.98); backdrop-filter: blur(12px); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 20px; border-bottom: 1px solid var(--card-border); box-shadow: 0 16px 40px rgba(var(--ink-rgb),0.12); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s; z-index: 190; }
    nav.site-nav.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; margin-inline: 0; }
    .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--hairline); font-size: 15px; }
    .nav-links a.active::after { display: none; }
    nav.site-nav .btn-primary { margin-top: 14px; justify-content: center; }

    .hero-split { grid-template-columns: 1.45fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
    .header-inner { padding: 10px 22px; }

    .container { padding: 0 22px; }
    .section { padding: 46px 0; }
    .footer-inner { padding: 44px 22px 30px; }

    .hero-split { grid-template-columns: 1fr; gap: 22px; }
    .hero-left h1 { font-size: 38px; }
    .hero-left h1 .h1-serif { font-size: 44px; }
    .page-hero h1 { font-size: 36px; }
    .section-head h2 { font-size: 30px; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .statband { grid-template-columns: repeat(2, 1fr); }
    .svc-row { grid-template-columns: 1fr; gap: 22px; }
    .svc-row.reverse .svc-copy { order: -1; }
    .values { flex-direction: column; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .field-row { grid-template-columns: 1fr; }
    .cta-band { padding: 40px 24px; }
    .section-head h2 { }
}
@media (max-width: 560px) {
    .statband { grid-template-columns: 1fr; }
    .hero-left h1 { font-size: 32px; }
    .hero-left h1 .h1-serif { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Editable content: banner + announcements ────────────────────────
   Injected server-side by functions/_middleware.js from whatever the
   owner saved at /edit/. Both blocks disappear completely when empty. */

.site-banner { border-bottom: 1px solid var(--hairline); background: var(--wash); }
.site-banner--alert { background: #FDF3E7; border-bottom-color: #F0DCC2; }
.site-banner-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 11px 48px;
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap;
    font-size: 14.5px; line-height: 1.45; color: var(--text-body);
}
.site-banner--alert .site-banner-inner { color: #6B4415; }
.site-banner-text { font-weight: 400; }
.site-banner-cta a {
    color: var(--accent-dark); font-weight: 600; text-decoration: none;
    border-bottom: 1.5px solid rgba(var(--accent-rgb),0.32); padding-bottom: 1px;
    white-space: nowrap;
}
.site-banner--alert .site-banner-cta a { color: #8A5312; border-bottom-color: rgba(138,83,18,0.32); }
.site-banner-cta a:hover { border-bottom-color: currentColor; }

.announcements-heading {
    font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
    font-size: clamp(26px, 3vw, 34px); color: var(--ink);
    margin-bottom: 26px; letter-spacing: -0.01em;
}
.announcement-list { list-style: none; display: grid; gap: 18px; }
@media (min-width: 860px) { .announcement-list { grid-template-columns: repeat(2, 1fr); } }
.announcement {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 14px; padding: 24px 26px;
}
.announcement-date {
    font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--text-subtle); margin-bottom: 8px;
}
.announcement-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.32; }
.announcement-body p { font-size: 15px; line-height: 1.62; color: var(--text-body); }
.announcement-body p + p { margin-top: 9px; }
.announcement-cta { margin-top: 12px; }
.announcement-cta a {
    font-size: 14.5px; font-weight: 600; color: var(--accent-dark); text-decoration: none;
    border-bottom: 1.5px solid rgba(var(--accent-rgb),0.32); padding-bottom: 1px;
}
.announcement-cta a:hover { border-bottom-color: currentColor; }

@media (max-width: 720px) {
    .site-banner-inner { padding: 10px 20px; gap: 8px; font-size: 14px; text-align: center; }
}

/* ── Scenery ────────────────────────────────────────────────────────
   Ridgelines fixed to the bottom of the viewport, behind everything, so
   they stay in view as the page scrolls instead of being a banner you
   pass once. Each layer drifts at its own rate (assets/app.js reads the
   data-depth on each one), which is what makes five flat shapes read as
   distance rather than as stripes.

   Nothing here takes space in the flow, so switching scenes — or turning
   them off — never moves a line of text.
   ------------------------------------------------------------------- */
.scene {
    position: fixed; left: 0; right: 0; bottom: 0;
    height: clamp(220px, 42vh, 430px);
    z-index: -1; pointer-events: none;
    /* The top edge dissolves so the ridges emerge out of the page colour
       rather than starting at a hard line. */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 100%);
}
.scene-layer {
    position: absolute; inset: 0;
    /* Parallax is written here by app.js; the entrance animation lives on
       the child svg so the two never fight over one transform. */
    will-change: transform;
}
.scene-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Held back so body text stays legible where content overlaps the nearest
   ridge at the foot of the viewport. At full strength the darkest band
   drops text to about 3.8:1, under the 4.5:1 minimum; these values clear
   it in all twelve themes. Peaks carry more visual weight than the soft
   shapes, so they sit lower still. */
.scene--waves { opacity: 0.70; }
.scene--peaks { opacity: 0.60; }

@media (prefers-reduced-motion: no-preference) {
    /* Layers rise into place back-to-front on load. --i is set per layer
       in the markup, so the stagger needs no per-child rules. */
    .scene-layer svg { animation: ridge-rise 1.05s cubic-bezier(0.22, 0.75, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
    @keyframes ridge-rise {
        from { transform: translate3d(0, 34px, 0); opacity: 0; }
        to   { transform: translate3d(0, 0, 0);    opacity: 1; }
    }
}

@media (max-width: 860px) {
    .scene { height: clamp(180px, 32vh, 300px); }
}
