/* =========================================================
   Restoration Church — UI modelled on imprintlondon.co.uk
   cream page · black bar header · heavy wide uppercase type
   rounded 24px media cards · square red buttons · black footer
   ========================================================= */
:root {
  --cream: #f7f1e8;
  --cream-2: #efe7da;
  --ink: #000;
  --ink-soft: #3b3936;
  --muted: #7a746b;
  --red: #e52e2e;
  --orange: #fa8d3e;
  --line: rgba(0,0,0,.14);
  --line-light: rgba(247,241,232,.18);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: 32px;
  --radius: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 700px) { :root { --gutter: 16px; --radius: 16px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.3; background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.h-xxl, .h-xl, .h-lg, .h-md {
  font-family: var(--font); font-weight: 900; font-stretch: 115%; text-transform: uppercase;
  line-height: .95; letter-spacing: -.01em;
}
.h-xxl { font-size: clamp(64px, 13vw, 210px); line-height: .86; }
.h-xl  { font-size: clamp(44px, 6.2vw, 96px); }
.h-lg  { font-size: clamp(34px, 4.2vw, 64px); }
.h-md  { font-size: clamp(24px, 2.4vw, 36px); }
.kicker { display: block; font-weight: 500; font-stretch: 110%; text-transform: uppercase; font-size: clamp(16px, 1.6vw, 24px); line-height: 1.1; }
.tag { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.muted { color: var(--muted); }
.prose p, p.prose { font-size: 17px; line-height: 1.45; margin-bottom: 1em; max-width: 680px; }
.prose p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; max-width: 720px; }
.reo { font-style: italic; color: var(--muted); }

/* ---------- Layout ---------- */
.wrap { padding: 0 var(--gutter); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 920px; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.split.center { align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr 1fr; }
.stack > * + * { margin-top: 24px; }
.dark { background: var(--ink); color: var(--cream); }
.dark .muted { color: rgba(247,241,232,.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 24px; text-decoration: none;
  font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1;
  background: var(--red); color: var(--cream); border: 0; cursor: pointer;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.dark .btn:hover, .hero .btn:hover { background: var(--cream); color: var(--ink); }
.btn.sm { padding: 15px 20px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Big orange bar link (like Imprint "WATCH ONLINE") */
.bar-link {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--orange); color: var(--cream); text-decoration: none; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(28px, 4.4vw, 64px); line-height: .95;
  transition: background .3s;
}
.bar-link:hover { background: var(--red); }
.bar-link .arrow { font-size: .8em; transition: transform .35s var(--ease); }
.bar-link:hover .arrow { transform: translateX(10px); }

/* ---------- Rolling text hover (nav + footer links) ---------- */
.roll { display: inline-flex; overflow: hidden; text-decoration: none; vertical-align: bottom; }
.roll > span { display: block; line-height: 1.15; text-shadow: 0 1.15em 0 currentColor; transition: transform .45s var(--ease); }
.roll:hover > span, .roll:focus-visible > span { transform: translateY(-1.15em); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { width: 40px; height: 40px; }
.logo span { font-weight: 900; font-stretch: 125%; font-size: 26px; letter-spacing: .01em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { padding: 8px 10px; border-radius: 4px; font-size: 15px; font-weight: 500; font-stretch: 110%; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.nav-link[aria-current="page"] > span, .nav-item.current > .nav-link > span { color: var(--orange); }
.nav-link .caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .3s; text-shadow: none; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(225deg) translateY(-1px); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px; padding: 22px 10px 12px; background: var(--ink);
  border-radius: 0 0 12px 12px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 12px; text-decoration: none; font-size: 14px; font-stretch: 110%; text-transform: uppercase; border-radius: 4px; transition: background .2s, color .2s; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--cream); color: var(--ink); }
.menu-btn {
  margin-left: 14px; background: var(--red); color: var(--cream); border: 0; cursor: pointer; border-radius: 6px;
  font-family: var(--font); font-size: 15px; font-weight: 500; font-stretch: 110%; text-transform: uppercase; padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 10px; transition: background .25s, color .25s;
}
.menu-btn:hover { background: var(--cream); color: var(--ink); }
.menu-btn i { display: grid; gap: 4px; }
.menu-btn i::before, .menu-btn i::after { content: ""; width: 16px; height: 2px; background: currentColor; display: block; }

/* ---------- Full-screen menu overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--cream); overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s .7s;
}
.menu-open .overlay { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s cubic-bezier(.7,0,.2,1); }
.menu-open { overflow: hidden; }
.overlay-top { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); position: sticky; top: 0; background: var(--ink); z-index: 1; }
.overlay-close { background: var(--cream); color: var(--ink); }
.overlay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; padding: clamp(32px, 6vw, 80px) var(--gutter) 48px; }
.overlay-group > a { text-decoration: none; font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(34px, 3.6vw, 56px); line-height: .95; display: inline-block; transition: color .25s; }
.overlay-group > a:hover, .overlay-group > a[aria-current="page"] { color: var(--orange); }
.overlay-group ul { list-style: none; margin-top: 16px; border-top: 1px solid var(--line-light); }
.overlay-group li a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; font-size: 15px; font-stretch: 110%; text-transform: uppercase; transition: color .2s, padding .3s; }
.overlay-group li a::after { content: "→"; opacity: 0; transition: opacity .2s; }
.overlay-group li a:hover, .overlay-group li a[aria-current="page"] { color: var(--orange); padding-left: 8px; }
.overlay-group li a:hover::after { opacity: 1; }
.overlay-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 32px var(--gutter); border-top: 1px solid var(--line-light); font-size: 14px; text-transform: uppercase; }
.overlay-foot a { text-decoration: none; }
.overlay-group { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s var(--ease); }
.menu-open .overlay-group { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s); }

/* ---------- Home hero ---------- */
.hero { position: relative; margin: 0 var(--gutter); margin-top: var(--gutter); border-radius: var(--radius); overflow: hidden; height: calc(100vh - 80px - 2 * var(--gutter)); height: calc(100svh - 80px - 2 * var(--gutter)); min-height: 560px; color: var(--cream); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.7) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 0 clamp(20px, 4.5vw, 64px) clamp(28px, 5vw, 64px); }
.hero-marquee { position: relative; z-index: 1; font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(60px, 10vw, 150px); line-height: .9; margin-bottom: clamp(18px, 3vw, 36px); }
.hero .tagline { font-size: clamp(18px, 1.8vw, 24px); max-width: 560px; line-height: 1.2; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; text-transform: uppercase; font-stretch: 110%; opacity: .85; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 40s linear infinite; will-change: transform; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee-track > span { padding-right: .35em; }
.marquee-track .dot { color: var(--red); font-size: .45em; align-self: center; padding: 0 .6em 0 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker { font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(44px, 7vw, 110px); line-height: 1; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker .marquee-track { animation-duration: 32s; }

/* ---------- Inner page head ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(28px, 4vw, 48px); }
.page-head .kicker { margin-top: clamp(14px, 2vw, 24px); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(22px, 3vw, 36px); }
.subnav a { text-decoration: none; font-size: 13px; font-stretch: 110%; text-transform: uppercase; padding: 10px 14px; border-radius: 4px; background: var(--cream-2); transition: background .2s, color .2s; }
.subnav a:hover { background: var(--ink); color: var(--cream); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.page-image { margin: 0 var(--gutter); border-radius: var(--radius); overflow: hidden; height: clamp(300px, 62vh, 640px); }
.page-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.page-image.in img { transform: none; }

/* ---------- Media cards ---------- */
.card-img { border-radius: var(--radius); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-img:hover img { transform: scale(1.04); }
.r-4x5 { aspect-ratio: 4/5; } .r-3x2 { aspect-ratio: 3/2; } .r-16x9 { aspect-ratio: 16/9; } .r-1 { aspect-ratio: 1; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .card-img { aspect-ratio: 3/4; }
.gallery .card-img:nth-child(even) { margin-top: 48px; }

/* ---------- Scripture ---------- */
.quote { font-size: clamp(22px, 2.6vw, 38px); line-height: 1.22; font-weight: 500; max-width: 1150px; }
.quote cite { display: block; margin-top: 22px; font-style: normal; font-size: 14px; text-transform: uppercase; font-stretch: 110%; color: var(--red); }

/* ---------- Services (Imprint "Join us in person") ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; margin-top: clamp(40px, 5vw, 64px); }
.service { border-top: 2px solid var(--ink); padding-top: 18px; }
.service .day { font-size: clamp(18px, 1.7vw, 24px); text-transform: uppercase; font-stretch: 110%; font-weight: 400; }
.service .time { display: block; font-weight: 900; font-stretch: 115%; font-size: clamp(52px, 5.6vw, 80px); line-height: .95; text-transform: uppercase; margin: 6px 0 10px; }
.service h3 { font-size: 16px; text-transform: uppercase; font-stretch: 110%; font-weight: 600; }
.service p { font-size: 12px; text-transform: uppercase; margin-top: 6px; color: var(--ink-soft); }
.service a { color: inherit; }

/* ---------- Event / feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature.flip .card-img { order: 2; }
.feature .tag { color: var(--red); display: block; margin-bottom: 12px; }
.feature p { font-size: 17px; line-height: 1.45; margin-top: 18px; max-width: 560px; }
.feature .logo-chip { width: 120px; margin-bottom: 18px; }

/* ---------- Big link list (Imprint "NEW HERE?") ---------- */
.biglinks { list-style: none; border-top: 2px solid var(--ink); }
.biglinks li { border-bottom: 1px solid var(--line); }
.biglinks a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(14px, 1.8vw, 22px) 0; text-decoration: none; font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(28px, 4vw, 60px); line-height: 1; transition: color .25s, padding .35s var(--ease); }
.biglinks a small { font-size: 13px; font-weight: 500; font-stretch: 110%; color: var(--muted); }
.biglinks a::after { content: "→"; font-weight: 400; font-size: .7em; opacity: 0; transform: translateX(-12px); transition: opacity .3s, transform .35s var(--ease); }
.biglinks a:hover { color: var(--red); padding-left: 12px; }
.biglinks a:hover::after { opacity: 1; transform: none; }
.dark .biglinks { border-top-color: var(--cream); }
.dark .biglinks li { border-color: var(--line-light); }

/* ---------- Hub cards (section overview pages) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 24px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--cream); background: var(--ink); isolation: isolate; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.78)); }
.card:hover img { transform: scale(1.06); }
.card .tag { opacity: .85; }
.card h3 { font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 42px); line-height: .95; margin: 8px 0 10px; }
.card p { font-size: 15px; line-height: 1.35; max-width: 420px; opacity: .9; }
.card .go { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 18px; transition: transform .35s var(--ease); }
.card:hover .go { transform: rotate(-45deg); }
.card.plain { background: var(--cream-2); color: var(--ink); min-height: 260px; }
.card.plain::before { display: none; }

/* ---------- Kingdom assignments ---------- */
.assignments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.assignment { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; padding: 24px; color: var(--cream); isolation: isolate; }
.assignment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.assignment::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.85)); }
.assignment:hover img { transform: scale(1.06); }
.assignment .num { font-size: 13px; color: var(--orange); }
.assignment h3 { font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(24px, 2.2vw, 34px); line-height: .95; margin: 8px 0; }
.assignment p { font-size: 14px; font-style: italic; opacity: .85; }

/* ---------- Values ---------- */
.values { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 80px); border-top: 2px solid currentColor; }
.values li { display: grid; grid-template-columns: 48px 1fr auto; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.dark .values li { border-color: var(--line-light); }
.values li:hover { padding-left: 10px; }
.values .n { font-size: 13px; color: var(--muted); }
.values h3 { font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; transition: color .25s; }
.values li:hover h3 { color: var(--red); }
.dark .values li:hover h3 { color: var(--orange); }
.values p { grid-column: 2 / 4; font-size: 16px; color: var(--muted); }
.values p em { font-style: normal; font-weight: 700; color: inherit; }
.dark .values p em { color: var(--cream); }

/* ---------- Accordion ---------- */
.accordion { border-top: 2px solid currentColor; }
.accordion details { border-bottom: 1px solid var(--line); }
.dark .accordion details { border-color: var(--line-light); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary h3 { font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(24px, 2.8vw, 42px); line-height: 1; transition: color .25s; }
.accordion summary:hover h3 { color: var(--red); }
.accordion.small summary h3 { font-weight: 600; font-stretch: 100%; text-transform: none; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.25; }
.accordion summary::after { content: "+"; font-size: 32px; font-weight: 300; line-height: 1; transition: transform .35s var(--ease); flex: none; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .answer { padding: 0 0 26px; max-width: 780px; }
.accordion .answer strong { display: block; font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.accordion .answer p { font-size: 17px; line-height: 1.45; margin-bottom: .9em; }
.accordion .answer p:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member { background: var(--cream-2); border-radius: var(--radius); padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.member .initials { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 900; font-stretch: 115%; font-size: 20px; }
.member h3 { font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: clamp(24px, 2.2vw, 34px); line-height: .95; margin-top: 28px; }
.member p { font-size: 13px; text-transform: uppercase; margin-top: 8px; color: var(--red); }

/* ---------- Facts / lists ---------- */
.facts { display: grid; border-top: 2px solid currentColor; margin-top: 28px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.dark .facts div { border-color: var(--line-light); }
.facts dt { font-size: 12px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.groups { list-style: none; border-top: 2px solid currentColor; margin-top: 28px; }
.groups li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.groups li span { font-size: 12px; text-transform: uppercase; color: var(--muted); padding-top: 4px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 12px; text-transform: uppercase; }
.form small { color: var(--muted); text-transform: none; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 17px; font-weight: 400; text-transform: none; color: inherit;
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); padding: 10px 0; outline: none; border-radius: 0; resize: vertical; transition: border-color .25s;
}
.dark .form input, .dark .form select, .dark .form textarea { border-bottom-color: var(--cream); }
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); }
.form .check { display: flex; gap: 10px; align-items: center; text-transform: none; font-size: 15px; }
.form .check input { width: 18px; height: 18px; accent-color: var(--red); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #1f7a3a; }
.dark .form-status.ok { color: var(--orange); }
.form-status.err { color: var(--red); }
.newsletter { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.newsletter label { flex: 1 1 260px; }

.map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); filter: grayscale(1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(48px, 6vw, 80px) var(--gutter) 28px; }
.site-footer.flush { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { width: 56px; }
.footer-brand p { margin-top: 18px; font-size: 15px; line-height: 1.4; max-width: 300px; opacity: .8; }
.footer-col h4 { font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { font-size: 15px; text-transform: uppercase; font-stretch: 110%; }
.footer-mark { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 12.2vw; line-height: .8; margin: clamp(48px, 6vw, 80px) 0 24px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; text-transform: uppercase; opacity: .7; border-top: 1px solid var(--line-light); padding-top: 20px; }
.footer-base a { text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav .nav-item { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .assignments, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .overlay-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split, .split.wide-left, .feature { grid-template-columns: 1fr; }
  .feature.flip .card-img { order: 0; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .logo span { font-size: 20px; }
  .logo img { width: 34px; height: 34px; }
  .services, .assignments, .cards.four, .team, .form .row, .overlay-grid { grid-template-columns: 1fr; }
  .assignment { aspect-ratio: 4/3; }
  .card { min-height: 320px; }
  .gallery .card-img:nth-child(even) { margin-top: 24px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .menu-btn { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.values.one { grid-template-columns: 1fr; }

/* ---------- Fit fixes: long words never overflow ---------- */
.split > *, .services > *, .feature > *, .cards > *, .assignments > * { min-width: 0; }
.service .time { font-size: clamp(40px, 4.6vw, 72px); white-space: nowrap; }
.split .biglinks a { font-size: clamp(22px, 2.6vw, 40px); flex-wrap: wrap; }
.biglinks a small { flex: none; } 
