/* YWAM Granada — minimal, white, modern. Brand colours from the logo, used only on buttons, capsules and the star. */
:root {
  --white: #ffffff;
  --soft: #F5F7F6;          /* the only background step */
  --line: #E6EBE9;
  --ink: #0C1A19;           /* text */
  --body: #3B4A48;
  --muted: #5C6B69;
  --green: #0E413F;         /* logo green: primary buttons */
  --green-hover: #135753;
  --terra: #AC532B;         /* logo terracotta: small capsules */
  --terra-soft: #FBF1EC;
  --ochre: #C18348;
  --green-soft: #EDF3F2;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(88px, 10vw, 144px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(12, 26, 25, .04), 0 12px 32px -12px rgba(12, 26, 25, .12);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--white); color: var(--body); font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Type */
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
.display { font-size: clamp(44px, 7.2vw, 104px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; }
.h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -0.035em; }
.h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--body); max-width: 40em; }
.sub { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 38em; margin-top: 16px; }
.statement { font-size: clamp(24px, 3vw, 42px); line-height: 1.22; letter-spacing: -0.03em; color: var(--ink); font-weight: 500; max-width: 26em; text-wrap: balance; }

/* Capsules */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--terra-soft); color: var(--terra); font-size: 13px; font-weight: 500; letter-spacing: .01em; margin-bottom: 20px; }
.tag-soft { background: var(--soft); color: var(--body); margin: 0; }
.tag-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 500; }
.pills-lg .pill { height: 44px; padding: 0 20px; font-size: 17px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .25s var(--ease), color .25s, transform .2s var(--ease), border-color .25s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: #EAF1EF; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 17px; }
.arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); flex: none; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 500; text-decoration: none; }
.link:hover .arrow, .card:hover .link .arrow { transform: translateX(3px); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.link-back:hover .arrow { transform: translateX(-3px); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s var(--ease), box-shadow .35s, color .35s; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav.is-over:not(.is-solid) { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); height: 76px; display: flex; align-items: center; gap: 28px; }
.logo { display: block; flex: none; }
.logo img { width: 190px; transition: filter .35s; }
.nav.is-over:not(.is-solid) .logo img { filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 450; transition: background .2s; }
.nav-links a:hover { background: rgba(14, 65, 63, .07); }
.nav.is-over:not(.is-solid) .nav-links a:hover { background: rgba(255, 255, 255, .14); }
.nav-links a[aria-current] { background: var(--green-soft); color: var(--green); }
.nav-lang { font-size: 13px !important; font-weight: 600 !important; letter-spacing: .04em; }
.nav-cta { height: 42px; padding: 0 20px; font-size: 15px; }
.nav.is-over:not(.is-solid) .nav-cta { background: #fff; color: var(--green); }
.nav-menu { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; border-radius: 999px; position: relative; cursor: pointer; }
.nav-menu i { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.nav-menu i:first-of-type { top: 18px; } .nav-menu i:last-of-type { top: 25px; }
.nav.is-open .nav-menu i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-menu i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #0b1b23; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: hero-zoom 22s var(--ease) both; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 14, 20, .45) 0%, rgba(5, 14, 20, .05) 30%, rgba(5, 14, 20, .25) 55%, rgba(5, 14, 20, .82) 100%); }
.hero-in { position: relative; width: 100%; padding-bottom: clamp(56px, 9vh, 104px); }
.hero .display { color: #fff; max-width: 11em; }
.hero-lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 34em; margin-top: 24px; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .tag, .hero .display, .hero-lead, .hero-actions { animation: hero-in 1.1s var(--ease) both; }
.hero .display { animation-delay: .08s; } .hero-lead { animation-delay: .2s; } .hero-actions { animation-delay: .3s; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Sections */
.sec { padding: var(--sec) 0; }
.sec-tight { padding-top: 24px; }
.sec-soft { background: var(--soft); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head > div { max-width: 44em; }
.sec-head.is-center { justify-content: center; text-align: center; }

/* Intro + stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
.stats dt { font-size: clamp(40px, 4.6vw, 64px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
.stats dd { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Ministry explorer with the real logo star */
.explorer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.explorer-star { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.star { width: 100%; height: auto; display: block; }
.star .petal path { fill: var(--green); transition: fill .35s var(--ease), transform .45s var(--ease), opacity .35s; transform-box: fill-box; transform-origin: center; }
.explorer-star .petal { cursor: pointer; }
.explorer-star .petal:hover path { transform: scale(1.05); }
.star .petal.is-on path { fill: var(--ochre); transform: scale(1.06); }
.explorer-star .petal:focus-visible { outline: none; }
.explorer-star .petal:focus-visible path { stroke: var(--terra); stroke-width: 16; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: #c9d3d1; }
.chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.m-panels { position: relative; }
html.js .m-panel:not(.is-on) { display: none; }
.m-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
html.js .m-panel.is-on { animation: panel-in .5s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.m-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); }
.m-media img { width: 100%; height: 100%; object-fit: cover; }
.m-media-star { width: 100%; height: 100%; display: grid; place-items: center; background: var(--soft); padding: 18%; border-radius: var(--radius-sm); }
.m-body { padding: 8px 12px 8px 0; }
.m-body > p:first-of-type { margin-top: 12px; }
.m-body .btn, .m-body .link { margin-top: 24px; }

/* Feature (DTS) */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; background: var(--soft); border-radius: 32px; padding: clamp(16px, 2vw, 20px); }
.feature-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-img img { transform: scale(1.03); }
.feature-text { padding: 24px clamp(8px, 3vw, 48px) 24px 0; }
.feature-text .btn { margin-top: 32px; }

/* Split: text + picture */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.is-flip .split-text { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img .m-media-star { padding: 22%; }
.split-text .link { margin-top: 32px; }
.split-text .prose { margin-top: 24px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 8px; }
.facts dt { font-size: 32px; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.facts dd { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Cards */
.cards { display: grid; gap: 28px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--body); }
.card-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 8px; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card .link { margin-top: auto; padding-top: 4px; }
.card-meta { display: flex; align-items: center; gap: 12px; }
.post-card .h3 { transition: color .2s; }
.post-card:hover .h3 { color: var(--green); }
.panel { background: var(--soft); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); }
.panel .h3 { margin-bottom: 12px; }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230E413F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 22px; margin-top: 32px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--green); font-weight: 600; font-size: 15px; display: grid; place-items: center; box-shadow: var(--shadow); }

/* Page hero (inner pages) */
.page-hero { padding: calc(76px + clamp(56px, 8vw, 104px)) 0 clamp(48px, 6vw, 80px); }
.page-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.page-hero-text .lead { margin-top: 24px; }
.page-hero-text.is-wide { max-width: 860px; margin-bottom: 56px; }
.page-hero-img { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 18s var(--ease) both; }

/* Text sections */
.text-sec { padding: clamp(56px, 7vw, 96px) 0; }
.text-sec + .text-sec { padding-top: 0; }
.text-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.text-grid .h2 { position: sticky; top: 112px; }
.text-grid.has-img { grid-template-columns: 5fr 7fr; }
.text-img { grid-column: 2; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; margin-top: 16px; }
.text-img img { width: 100%; height: 100%; object-fit: cover; }
.prose p { margin-bottom: 1.1em; font-size: 18px; line-height: 1.7; max-width: 38em; }
.prose p:last-child { margin-bottom: 0; }
.wide-img { border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 9; }
.wide-img img { width: 100%; height: 100%; object-fit: cover; }

/* Posts */
.post-head .link-back { margin-bottom: 32px; }
.post-head .card-meta { margin-bottom: 20px; }
.post-title { font-size: clamp(36px, 5vw, 64px); }
.post-body h2 { margin: 2em 0 .6em; }
.post-body blockquote { margin: 0 0 2em; padding: 28px 32px; background: var(--soft); border-radius: var(--radius); }
.post-body blockquote p { font-size: 22px; line-height: 1.45; color: var(--ink); letter-spacing: -0.015em; margin: 0; }
.post-body cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); font-size: 14px; }
.post-body .btn { margin-top: 16px; }

/* Newsletter */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; background: var(--soft); border-radius: 32px; padding: clamp(32px, 5vw, 72px); }
.sec-soft .news { background: #fff; }
.news-row { display: flex; gap: 10px; flex-wrap: wrap; }
.news-row .field { flex: 1 1 160px; }
.news-form .check { margin-top: 16px; font-size: 14px; }
.news-form .small { margin-top: 10px; }

/* Forms */
.site-form { display: grid; gap: 14px; }
.big-form { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.big-form .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, legend { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #D9E0DE; border-radius: 12px; padding: 0 16px; height: 50px; width: 100%; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 120px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236B7A78' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #98A5A3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(14, 65, 63, .1); }
.is-bad input, .is-bad textarea, .is-bad select { border-color: var(--terra) !important; box-shadow: 0 0 0 4px rgba(172, 83, 43, .1) !important; }
fieldset { border: 0; }
legend { margin-bottom: 10px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid #D9E0DE; background: #fff; font-size: 15px; font-weight: 500; color: var(--body); transition: all .2s; }
.choice input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(14, 65, 63, .18); }
fieldset.is-bad .choice span { border-color: var(--terra); }
.amount-other { flex: 1 1 160px; }
.amount-other input { height: 46px; border-radius: 999px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; color: var(--body); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
.check a { color: var(--green); }
.check.is-bad span { color: var(--terra); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-msg:empty { display: none; }
.form-msg { padding: 14px 18px; border-radius: 12px; font-size: 15px; }
.form-msg.ok { background: var(--green-soft); color: var(--green); font-weight: 500; }
.form-msg.bad { background: var(--terra-soft); color: #8E4221; }
.site-form.is-sent > :not(.form-msg) { display: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 80px 0 32px; font-size: 15px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.foot-brand img { width: 210px; }
.foot-brand p { margin-top: 18px; color: var(--muted); max-width: 22em; }
.foot-h { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 16px; letter-spacing: .01em; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--body); transition: color .2s; }
.foot a:hover { color: var(--green); }
.foot-bottom { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-credits { flex-basis: 100%; }

/* Reveal on scroll (only when the script runs) */
html.motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
html.motion [data-reveal].in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 10px; }
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer-side { min-width: 0; }
  .explorer-star { max-width: 420px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 > :nth-child(3) { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-menu { display: block; margin-left: auto; }
  .nav-cta { order: 3; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--pad) 24px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px -20px rgba(12, 26, 25, .25); display: none; }
  .nav-links a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: none; }
  .nav.is-open { background: #fff; color: var(--ink); }
  .nav.is-open .logo img { filter: none !important; }
  .nav.is-open .nav-links { display: flex; }
  .feature, .split, .page-hero-in, .news, .text-grid, .text-grid.has-img { grid-template-columns: minmax(0, 1fr); }
  .split.is-flip .split-text { order: 0; }
  .text-grid .h2 { position: static; }
  .text-img { grid-column: 1; }
  .feature-text { padding: 8px 16px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .page-hero-img { aspect-ratio: 4 / 3; }
  .split-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo img { width: 150px; }
  .nav-cta { height: 38px; padding: 0 14px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .cards-3 > :nth-child(3) { display: flex; }
  .m-panel { grid-template-columns: 1fr; }
  .m-media { aspect-ratio: 4 / 3; }
  .m-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1) 20px; padding: 0 var(--pad); }
  .m-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .big-form, .check-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .facts dt { font-size: 26px; }
  .wide-img { aspect-ratio: 4 / 3; }
  .foot-top { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.motion [data-reveal] { transform: none; }
}
