:root {
  --leaf: #F1F4EC; --paper: #FFFFFF; --ink: #17261D; --ink-soft: #46574C;
  --green: #1F4A36; --green-deep: #142F23; --sage: #A8BDA4; --moss: #4A9552;
  --line: #D7DFD3; --ochre: #D9A93B; --ochre-ink: #5A4408;
  box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --leaf: #10191A; --paper: #17231F; --ink: #ECF1E9; --ink-soft: #B3C0B4; --green: #1F4A36; --green-deep: #0E1F17; --sage: #6B8367; --moss: #6DBF78; --line: #2C3A32; --ochre: #E0B24A; --ochre-ink: #F3E2B0; } }
:root[data-theme="dark"] { --leaf: #10191A; --paper: #17231F; --ink: #ECF1E9; --ink-soft: #B3C0B4; --green: #1F4A36; --green-deep: #0E1F17; --sage: #6B8367; --moss: #6DBF78; --line: #2C3A32; --ochre: #E0B24A; --ochre-ink: #F3E2B0; }
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--leaf); color: var(--ink); font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .sans { font-family: "Manrope", "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ochre); color: #1E1706; padding: .6rem 1rem; z-index: 100; font-family: "Manrope", sans-serif; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 6px; text-decoration: none; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1rem; border: 2px solid transparent; transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-ochre { background: var(--ochre); color: #1E1706; }
.btn-ochre:hover { background: #E6B94E; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--leaf) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top.scrolled { box-shadow: 0 6px 24px rgba(20,47,35,.12); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img.mark { height: 46px; width: auto; }
:root[data-theme="dark"] .brand img.mark { background: #fff; border-radius: 6px; padding: 3px 5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img.mark { background: #fff; border-radius: 6px; padding: 3px 5px; } }
.brand small { display: block; font-weight: 600; font-size: .72rem; color: var(--ink-soft); letter-spacing: 0; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--moss); }
.call { display: inline-flex; align-items: center; gap: .5rem; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: .65rem 1.05rem; border-radius: 6px; font-size: .95rem; white-space: nowrap; }
.call:hover { background: var(--green-deep); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .5rem .7rem; color: var(--ink); font: inherit; font-weight: 700; }
@media (max-width: 960px) {
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: .9rem; }
  .menu-btn { display: inline-block; }
  .top .call span { display: none; }
}

/* Home hero */
.hero { position: relative; overflow: hidden; background: var(--green-deep); color: #fff; min-height: min(80vh, 760px); display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform: scale(1.07); animation: kenburns 8s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,31,23,.93) 0%, rgba(14,31,23,.72) 42%, rgba(14,31,23,.18) 100%), linear-gradient(0deg, rgba(14,31,23,.8) 0%, rgba(14,31,23,0) 45%); }
.hero .contours { position: absolute; inset: 0; opacity: .14; pointer-events: none; z-index: 1; }
.hero .wrap { position: relative; z-index: 1; padding: clamp(5rem, 12vw, 9rem) 0 clamp(3rem, 7vw, 5rem); }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #E4EDDF; max-width: 48ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero .proof { margin: 1.4rem 0 0; font-family: "Manrope", sans-serif; font-size: .9rem; font-weight: 600; color: #C9D9C4; }
.hero .credit { position: absolute; right: 1.2rem; bottom: .6rem; z-index: 1; margin: 0; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.75); }
.hero .contours path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s ease-out forwards; }
.hero .contours path:nth-child(2) { animation-delay: .15s } .hero .contours path:nth-child(3) { animation-delay: .3s }
.hero .contours path:nth-child(4) { animation-delay: .45s } .hero .contours path:nth-child(5) { animation-delay: .6s } .hero .contours path:nth-child(6) { animation-delay: .75s }
.hero h1, .hero .lead, .hero .actions, .hero .proof { opacity: 0; transform: translateY(14px); animation: rise .8s ease-out forwards; }
.hero .lead { animation-delay: .15s } .hero .actions { animation-delay: .3s } .hero .proof { animation-delay: .45s }
@keyframes kenburns { to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 860px) { .hero { min-height: 70vh; } .hero::after { background: linear-gradient(0deg, rgba(14,31,23,.95) 0%, rgba(14,31,23,.7) 55%, rgba(14,31,23,.25) 100%); } }
@media (prefers-reduced-motion: reduce) {
  .hero .contours path, .hero h1, .hero .lead, .hero .actions, .hero .proof, .hero-img { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge, .btn, .counties li, .service img, .gallery img, .card { transition: none; }
}

/* Inner page hero */
.page-hero { background: var(--green); color: #fff; }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.page-hero p { color: #DCE8D8; font-size: 1.15rem; }
.page-hero figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.page-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-family: "Manrope", sans-serif; font-size: .85rem; font-weight: 600; color: #B7CCB1; margin: 0 0 1rem; }
.crumbs a { color: #DCE8D8; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero figure { order: -1; aspect-ratio: 16 / 9; } }

/* Trust strip */
.trust { background: var(--green-deep); color: #C9D9C4; }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2.2rem; padding: 1rem 0; font-family: "Manrope", sans-serif; font-size: .9rem; font-weight: 600; }
.trust span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); margin-right: .55rem; vertical-align: 1px; }

/* Sections */
section.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem 4rem; align-items: start; }
.intro p.big, p.big { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; font-weight: 500; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; } }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .35rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.paper { background: var(--paper); }

/* Services ledger */
.services { border-top: 2px solid var(--ink); margin-top: 1rem; }
.service { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.4rem 3rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.service figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--sage); }
.service img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.service:hover img { transform: scale(1.04); }
.service h3 { margin: 0; font-size: 1.5rem; }
.service h3 a { text-decoration: none; }
.service h3 a:hover { color: var(--moss); }
.service .for { font-family: "Manrope", sans-serif; font-size: .9rem; color: var(--ink-soft); font-weight: 600; margin: .3rem 0 .9rem; }
.service ul { margin: .8rem 0 0; padding-left: 1.1rem; columns: 2; column-gap: 2rem; }
.service li { break-inside: avoid; margin-bottom: .25rem; }
.service .more { display: inline-block; margin-top: 1rem; font-family: "Manrope", sans-serif; font-weight: 700; color: var(--green); }
:root[data-theme="dark"] .service .more { color: var(--moss); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .service .more { color: var(--moss); } }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 1rem; } .service ul { columns: 1; } }

/* Clients */
.clients { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients .wrap { padding: 1.8rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2.6rem; }
.clients h2 { font-size: .9rem; font-weight: 700; color: var(--ink-soft); margin: 0; letter-spacing: 0; flex-basis: 100%; }
.clients span { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--green); }
:root[data-theme="dark"] .clients span { color: var(--moss); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .clients span { color: var(--moss); } }
@media (min-width: 900px) { .clients h2 { flex-basis: auto; margin-right: .6rem; } }

/* Developer panel */
.dev { background: var(--green); color: #fff; }
.dev h2, .dev h3 { color: #fff; }
.dev p { color: #DCE8D8; }
.dev .two-col { margin-top: 1.5rem; }
.dev ul { list-style: none; padding: 0; margin: 0; }
.dev li { padding: .7rem 0 .7rem 1.6rem; border-top: 1px solid rgba(255,255,255,.14); position: relative; color: #ECF1E9; }
.dev li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 9px; height: 9px; border-radius: 50%; background: var(--ochre); }
.dev .actions { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: .9rem; margin-top: 1.8rem; }
.gallery figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--sage); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .8rem; background: linear-gradient(0deg, rgba(14,31,23,.85), rgba(14,31,23,0)); color: #fff; font-family: "Manrope", sans-serif; font-size: .85rem; font-weight: 600; }
.g-big { grid-column: span 2; grid-row: span 2; } .g-tall { grid-row: span 2; } .g-wide { grid-column: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; } .g-big { grid-column: span 2; grid-row: span 1; } .g-wide { grid-column: span 1; } }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; margin: auto; }
dialog.lb::backdrop { background: rgba(8,18,13,.92); }
dialog.lb figure { margin: 0; }
dialog.lb img { max-width: 96vw; max-height: 82vh; width: auto; height: auto; border-radius: 8px; margin: 0 auto; }
dialog.lb figcaption { color: #fff; text-align: center; font-family: "Manrope", sans-serif; font-weight: 600; margin-top: .7rem; }
dialog.lb button { position: fixed; top: calc(.8rem + env(safe-area-inset-top, 0px)); right: .8rem; background: #fff; color: var(--green-deep); border: 0; border-radius: 999px; width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; }

/* Process */
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--moss); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: "Manrope", sans-serif; font-weight: 800; font-size: 2rem; color: var(--moss); display: block; line-height: 1; margin-bottom: .5rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.steps p { font-size: .98rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Accreditations */
.accred { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.badge { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 1.1rem 1.2rem; transition: transform .25s ease, box-shadow .25s ease; }
.badge:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,47,35,.10); }
.badge strong { font-family: "Manrope", sans-serif; font-size: 1.15rem; display: block; color: var(--green); }
:root[data-theme="dark"] .badge strong { color: var(--moss); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge strong { color: var(--moss); } }
.badge span { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 760px) { .accred { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .badges { grid-template-columns: 1fr; } }

/* Counties */
.counties { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.counties li { background: var(--paper); padding: 1.1rem 1.2rem; transition: background .25s; }
.counties li:hover { background: var(--leaf); }
.counties strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--green); margin-bottom: .2rem; font-family: "Manrope", sans-serif; }
.counties span { font-size: .95rem; color: var(--ink-soft); }
:root[data-theme="dark"] .counties strong { color: var(--moss); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .counties strong { color: var(--moss); } }
@media (max-width: 860px) { .counties { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .counties { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: .3rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.1rem; padding: .9rem 2rem .9rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .8rem; font-size: 1.4rem; font-weight: 500; color: var(--moss); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1rem; }

/* Cards (related services) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.card { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,47,35,.12); }
.card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.card div { padding: 1rem 1.1rem 1.2rem; }
.card h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--green); color: #fff; }
.contact h2, .contact h3 { color: #fff; }
.contact .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
.contact p { color: #DCE8D8; }
.contact .big a { color: #fff; text-decoration: none; font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.01em; }
.contact .big a:hover { color: var(--ochre); }
.contact dl { margin: 1.5rem 0 0; }
.contact dt { font-family: "Manrope", sans-serif; font-weight: 700; font-size: .85rem; color: #B7CCB1; margin-top: 1rem; }
.contact dd { margin: .15rem 0 0; }
.contact dd a { color: #fff; }
.form { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 1.6rem; }
.form h3 { margin-top: 0; }
.form label { display: block; font-family: "Manrope", sans-serif; font-weight: 700; font-size: .9rem; margin: .9rem 0 .35rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--leaf); color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form button { margin-top: 1.2rem; width: 100%; border: 0; cursor: pointer; }
.form .note { font-size: .85rem; color: var(--ink-soft); margin: .8rem 0 0; }
@media (max-width: 760px) { .contact .grid { grid-template-columns: 1fr; } }

/* Footer */
footer { background: var(--green-deep); color: #B7CCB1; font-size: .9rem; }
footer .wrap { padding: 2.2rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); }
.flogo { display: inline-block; background: #fff; border-radius: 10px; padding: .6rem 1rem; margin-bottom: 1.6rem; }
.flogo img { height: 78px; width: auto; }
.fcols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 1.6rem; }
.fcols h4 { color: #fff; margin: 0 0 .6rem; font-size: .95rem; }
.fcols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.fcols p { margin: 0 0 .5rem; color: #C9D9C4; }
.fbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; }
footer a { color: #DCE8D8; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.fbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; }
@media (max-width: 760px) { .fcols { grid-template-columns: 1fr; } }
