:root {
  --bg: #f5f7f9;
  --bg-alt: #e8eef4;
  --ink: #13233a;
  --muted: #56637a;
  --brand: #1f5aa6;
  --brand-dark: #17457f;
  --error: #b3261e;
  --green: #3f5a4a;
  --ochre: #f2c46d;
  --line: #d3dce5;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 106.25%; interpolate-size: allow-keywords; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }

.eyebrow {
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand); margin-bottom: .8em;
}

/* Buttons */
.btn {
  display: inline-block; padding: .9em 1.5em; border-radius: 999px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  border: 2px solid var(--brand); cursor: pointer; font: inherit; font-weight: 600;
  transition: background .2s, border-color .2s, color .2s, transform .1s ease-out;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(.97); background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:active { background: var(--ink); color: #fff; }
@media (hover: hover) {
  .btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
  .btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
}
.btn-small { padding: .55em 1.1em; font-size: .92rem; }
.btn-full { width: 100%; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

/* Header */
.site-header {
  isolation: isolate;
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 249, .78); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 rgba(19, 35, 58, 0); transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 24px -18px rgba(19, 35, 58, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.logo svg { width: 34px; height: 34px; }
.logo svg rect { fill: var(--brand); }
.logo svg path { fill: var(--bg); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
@media (hover: hover) { .nav a:not(.btn):hover { color: var(--ink); } }
.nav a:not(.btn):active { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent; transition: background .1s; }
.nav-toggle:active { background: rgba(19, 35, 58, .08); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }
.hero-art { margin: 0; }
.hero-photo {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%;
  border-radius: 24px; background: var(--bg-alt);
  box-shadow: 0 30px 60px -30px rgba(19, 35, 58, .45);
  animation: photo-in .9s cubic-bezier(.2, .8, .2, 1) .1s both;
}
@keyframes photo-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* Trust */
.trust { background: var(--ink); color: var(--bg); padding: 30px 0; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--ochre); }
.trust span { font-size: .9rem; opacity: .8; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .2s, box-shadow .2s;
}
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(19, 35, 58, .35); } }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: #e2ebf6; display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why-text p { color: var(--muted); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-list li { background: var(--bg); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; }
.why-list strong { display: block; margin-bottom: 2px; }
.why-list span { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 8px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; left: 60px; right: -10px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step-no {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
}
.steps p { color: var(--muted); font-size: .95rem; }

/* References */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ref { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ref-img {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, transparent 0 49.5%, #2a3539 50%) top / 50% 30% no-repeat,
    linear-gradient(225deg, transparent 0 49.5%, #2a3539 50%) top right / 50% 30% no-repeat,
    linear-gradient(#f7f3ec, #f7f3ec) 30% 62% / 14% 20% no-repeat,
    linear-gradient(#f7f3ec, #f7f3ec) 70% 62% / 14% 20% no-repeat,
    linear-gradient(var(--wall), var(--wall)) 50% 85% / 70% 55% no-repeat,
    linear-gradient(#dfe9ec 75%, #7c9a6c 75%);
}
.ref figcaption { padding: 18px 22px; }
.ref strong { display: block; }
.ref span { color: var(--muted); font-size: .92rem; }
.quote { margin: 56px auto 0; max-width: 760px; text-align: center; }
.quote p { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; }
.quote cite { color: var(--muted); font-style: normal; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }
.faq summary { -webkit-tap-highlight-color: transparent; transition: color .1s; }
.faq summary:active { color: var(--brand); }
.faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .35s cubic-bezier(.2, .8, .2, 1), opacity .25s ease, content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* Contact */
.section-dark { background: var(--ink); color: var(--bg); }
.section-dark .eyebrow { color: var(--ochre); }
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-text p { opacity: .8; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.contact-list span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.contact-list a { text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.contact-list a:hover { color: var(--ochre); }
.form { background: var(--bg); color: var(--ink); border-radius: 20px; padding: 34px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 90, 166, .18); }
.form .invalid { border-color: var(--brand); background: #fdf3f2; }
.form-note { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-note.ok { color: var(--green); font-weight: 600; }
.form-note.err { color: var(--brand); }

/* Footer */
.site-footer { background: #0d1a2c; color: rgba(245, 247, 249, .75); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.footer-inner p { margin: .4em 0 0; }
.logo-light { color: var(--bg); }
.footer-meta { text-align: right; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: photo-fade .4s ease both; }
  .reveal { transform: none; transition: opacity .3s ease; }
  .btn:active { transform: none; }
  .nav, .nav.open { transform: none !important; }
  .faq details::details-content { transition: opacity .2s ease, content-visibility .2s allow-discrete; }
}
@keyframes photo-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--ink); }
  .card, .form input, .form select, .form textarea { border-color: var(--ink); }
  .nav a:not(.btn), .lead, .card p, .steps p, .why-list span { color: var(--ink); }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner, .why, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 560px; }
  .cards, .refs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 66px; }
  .steps .step-no { position: absolute; left: 0; top: 0; }
  .steps li:not(:last-child)::after { top: 54px; bottom: -22px; left: 22px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 8px 20px 20px; display: flex;
    box-shadow: 0 24px 40px -28px rgba(19, 35, 58, .45);
    transform-origin: top right; transform: translateY(-8px) scale(.98); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; text-align: center; }
  .nav-toggle span { transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 72px 0; }
  .hero { padding: 36px 0 60px; }
  .cards, .refs { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .form .row { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

/* Team */
.team { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.person { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: var(--radius); padding: 12px 18px 12px 12px; }
.person strong { display: block; line-height: 1.3; }
.person a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.person a:hover { color: var(--brand); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }

.site-footer a { color: inherit; }

/* Errors stay red so they read as errors */
.form .invalid { border-color: var(--error); background: #fdf3f2; }
.form-note.err { color: var(--error); }

/* Original logo image */
.logo img { height: 48px; width: auto; display: block; }
.logo-light img { height: 52px; filter: invert(1); }
@media (max-width: 760px) { .logo img { height: 38px; } }

/* Privacy note under form */
.form-privacy { margin: 0; font-size: .85rem; color: var(--muted); }
.form-privacy a { color: var(--brand); }

/* Legal page */
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal a:not(.btn) { color: var(--brand); }
.legal-meta { color: var(--muted); font-size: .95rem; }
.legal-back { margin-top: 3em; }

/* Form: spam trap hidden from people, sending state */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
