/* MRCE.com — public site styles */
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(/assets/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(/assets/fonts/source-serif-4-latin-wght-italic.woff2) format("woff2-variations"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --ink: #18222a;
  --paper: #f5f6f3;
  --white: #fff;
  --bedrock: #1f3442;
  --ochre: #b8893b;
  --slate: #5e6d77;
  --line: #d7dcdb;
  --mist: #e8ecea;
  /* soil profile, top to bottom */
  --s1: #c9bc9a; --s2: var(--ochre); --s3: #8c7650; --s4: #5a5446; --s5: #2b3d49;
  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.22, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bedrock); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); text-decoration-color: var(--ochre); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--sans); font-stretch: 112%; font-weight: 640; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .6em; color: var(--bedrock); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--bedrock); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.block { padding-block: clamp(2.5rem, 6vw, 5rem); }

/* ---------- strata motif ---------- */
.strata { display: flex; flex-direction: column; }
.strata i { display: block; height: 4px; background: var(--s1); transform-origin: left; }
.strata i:nth-child(2) { height: 7px; background: var(--s2); }
.strata i:nth-child(3) { height: 3px; background: var(--s3); }
.strata i:nth-child(4) { height: 9px; background: var(--s4); }
.strata i:nth-child(5) { height: 5px; background: var(--s5); }
.strata--ph { position: absolute; inset: auto 0 0; }
.strata--ph i { height: 14%; }
.strata--ph i:nth-child(2) { height: 22%; } .strata--ph i:nth-child(3) { height: 10%; } .strata--ph i:nth-child(4) { height: 30%; } .strata--ph i:nth-child(5) { height: 24%; }

/* ---------- header ---------- */
.announce { background: var(--ochre); color: var(--ink); text-align: center; padding: .55rem var(--gut); font-weight: 560; font-size: .95rem; }
.announce a { color: inherit; }
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(245, 246, 243, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.masthead.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(24, 34, 42, .45); }
.masthead__inner { max-width: 1440px; margin: 0 auto; padding: 1.1rem var(--gut); display: flex; align-items: center; gap: 2rem; transition: padding .3s var(--ease); }
.masthead.is-scrolled .masthead__inner { padding-block: .55rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--bedrock); margin-right: auto; }
.brand__logo { height: 52px; width: auto; transition: height .3s var(--ease); }
.masthead.is-scrolled .brand__logo { height: 40px; }
.brand__mark { font: 800 1.9rem/1 var(--sans); font-stretch: 125%; letter-spacing: -.02em; padding: .2rem .45rem .25rem; background: var(--bedrock); color: var(--paper); transition: font-size .3s var(--ease); }
.masthead.is-scrolled .brand__mark { font-size: 1.5rem; }
.brand__name { font: 560 .82rem/1.2 var(--sans); font-stretch: 105%; color: var(--slate); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list a { display: block; white-space: nowrap; padding: .55rem .6rem; text-decoration: none; color: var(--ink); font-weight: 540; font-size: .98rem; position: relative; }
.nav__list > li > a::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .25rem; height: 2px; background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__list > li > a:hover::after, .nav__list > li > a[aria-current]::after { transform: scaleX(1); }
.sub-toggle { border: 0; background: none; width: 1.4rem; height: 2rem; margin-left: -.5rem; cursor: pointer; color: var(--slate); }
.sub-toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
.sub { list-style: none; margin: 0; padding: .5rem 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--white); border-top: 3px solid var(--ochre); box-shadow: 0 18px 40px -20px rgba(24, 34, 42, .5); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .sub.is-open { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: .5rem 1.1rem; font-weight: 450; }
.sub a:hover { background: var(--mist); }
.nav__search { display: flex; border-bottom: 1px solid var(--line); }
.nav__search input { border: 0; background: transparent; width: 7.5rem; font: inherit; padding: .35rem 0; transition: width .3s var(--ease); }
.nav__search input:focus { width: 11rem; outline: none; }
.nav__search button { border: 0; background: none; color: var(--slate); cursor: pointer; }
.nav-toggle { display: none; }

@media (max-width: 1320px) { .brand__name { display: none; } .nav { gap: .8rem; } .nav__search input { width: 5.5rem; } }
@media (max-width: 1140px) {
  .masthead { backdrop-filter: none; background: var(--paper); }
  .nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: var(--bedrock); color: #fff; cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: var(--white); flex-direction: column; align-items: stretch; padding: 5.5rem 1.5rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .5); z-index: -1; }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; }
  .nav__list > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--mist); }
  .nav__list a { font-size: 1.1rem; padding: .8rem 0; }
  .nav__list > li > a::after { display: none; }
  .sub-toggle { width: 2.5rem; height: 2.5rem; }
  .sub { position: static; box-shadow: none; border: 0; min-width: 0; width: 100%; padding: 0 0 .5rem 1rem; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .sub.is-open { display: block !important; }
  .nav__search input, .nav__search input:focus { width: 100%; }
  .nav__search { margin-top: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- hero slideshow ---------- */
.hero { position: relative; height: min(86vh, 820px); min-height: 460px; background: var(--bedrock); overflow: hidden; color: #fff; }
.hero__slide { position: absolute; inset: 0; visibility: hidden; }
.hero__slide.is-active { visibility: visible; z-index: 1; }
.hero__media, .hero__ph { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active .hero__media img { animation: kenburns 9s linear both; }
.hero__ph { background: var(--s5); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 26, 34, .05) 40%, rgba(15, 26, 34, .65)); }
.hero__caption { position: absolute; left: var(--gut); bottom: clamp(4.5rem, 9vh, 6rem); max-width: min(46rem, 80%); z-index: 2; }
.hero__about { font-weight: 560; font-size: .95rem; margin: 0 0 .4rem; color: var(--s1); }
.hero__title { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-stretch: 118%; margin: 0; }
.hero__title a { color: inherit; text-decoration: none; background: linear-gradient(var(--ochre), var(--ochre)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease); }
.hero__title a:hover { background-size: 100% 3px; }
.hero__loc { margin: .5rem 0 0; font-size: 1.05rem; opacity: .9; }
.hero__slide.is-active .hero__about, .hero__slide.is-active .hero__title, .hero__slide.is-active .hero__loc { animation: rise .9s var(--ease) both; }
.hero__slide.is-active .hero__title { animation-delay: .12s; }
.hero__slide.is-active .hero__loc { animation-delay: .24s; }
.hero__wipe { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; }
.hero__wipe i { flex: 1; background: var(--s5); transform: scaleX(0); transform-origin: left; }
.hero__wipe i:nth-child(1) { flex: .7; background: var(--s1); } .hero__wipe i:nth-child(2) { flex: 1.1; background: var(--s2); }
.hero__wipe i:nth-child(3) { flex: .6; background: var(--s3); } .hero__wipe i:nth-child(4) { flex: 1.4; background: var(--s4); }
.hero__wipe i:nth-child(5) { flex: .9; background: var(--s5); } .hero__wipe i:nth-child(6) { flex: 1.3; background: var(--bedrock); }
.hero.is-wiping .hero__wipe i { animation: wipe 1.15s var(--ease) both; }
.hero.is-wiping .hero__wipe i:nth-child(2) { animation-delay: .05s; } .hero.is-wiping .hero__wipe i:nth-child(3) { animation-delay: .1s; }
.hero.is-wiping .hero__wipe i:nth-child(4) { animation-delay: .07s; } .hero.is-wiping .hero__wipe i:nth-child(5) { animation-delay: .13s; } .hero.is-wiping .hero__wipe i:nth-child(6) { animation-delay: .17s; }
.hero__controls { position: absolute; right: var(--gut); bottom: 1.6rem; z-index: 4; display: flex; align-items: center; gap: .4rem; }
.hero__btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); background: rgba(15, 26, 34, .35); color: #fff; cursor: pointer; transition: background .2s; }
.hero__btn:hover { background: var(--ochre); border-color: var(--ochre); }

.hero__dots { list-style: none; display: flex; gap: .35rem; margin: 0 .6rem; padding: 0; }
.hero__dots button { width: 28px; height: 4px; padding: 0; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; position: relative; overflow: hidden; }
.hero__dots button[aria-current="true"] { background: rgba(255, 255, 255, .35); }
.hero__dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: progress var(--hero-delay, 7s) linear both; }
.hero.is-paused .hero__dots button::after { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes wipe { 0% { transform: scaleX(0); transform-origin: left; } 48% { transform: scaleX(1); transform-origin: left; } 52% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- home ---------- */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2rem, 5vw, 4rem); align-items: end; }
.intro__head { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 0; }
.intro__text { font: 400 1.2rem/1.65 var(--serif); color: #2c3a44; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.2rem; margin: 1.6rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); }
.stat__num { display: block; font: 700 2rem/1 var(--sans); font-stretch: 120%; color: var(--bedrock); font-variant-numeric: tabular-nums; }
.stat__label { display: block; font-size: .9rem; color: var(--slate); margin-top: .4rem; max-width: 12ch; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.more { font-weight: 560; white-space: nowrap; }

/* services as a boring log: each row a stratum */
.log { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.log__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--bedrock); }
.log__row { border-bottom: 1px solid var(--line); position: relative; }
.log__row a { display: grid; grid-template-columns: minmax(12rem, 1fr) 1.6fr; gap: 2rem; padding: 1.25rem 1rem 1.25rem 1.6rem; text-decoration: none; color: var(--ink); position: relative; z-index: 1; }
.log__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--s1); transition: width .45s var(--ease); }
.log__row:nth-child(5n+2)::before { background: var(--s2); } .log__row:nth-child(5n+3)::before { background: var(--s3); }
.log__row:nth-child(5n+4)::before { background: var(--s4); } .log__row:nth-child(5n+5)::before { background: var(--s5); }
.log__row:hover::before { width: 100%; opacity: .14; }
.log__name { font: 620 1.3rem/1.25 var(--sans); font-stretch: 112%; color: var(--bedrock); }
.log__desc { font: 400 1.05rem/1.55 var(--serif); color: #3a4851; }

.legacy { background: var(--bedrock); color: #e6ebe9; overflow: hidden; }
.legacy__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.legacy .legacy__year { font: 800 clamp(5rem, 15vw, 11rem)/.85 var(--sans); font-stretch: 125%; color: transparent; -webkit-text-stroke: 2px var(--ochre); margin: 0; letter-spacing: -.03em; }
.legacy h2 { color: #fff; }
.legacy p { font: 400 1.15rem/1.6 var(--serif); max-width: 36rem; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--slate); font-size: .95rem; }
.news-list a { font-weight: 560; font-size: 1.1rem; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: 600 1rem/1 var(--sans); padding: .95rem 1.4rem; background: var(--bedrock); color: #fff; border: 0; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; z-index: 0; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ochre); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); z-index: -1; }
.btn:hover { color: var(--ink); } .btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--light { background: var(--paper); color: var(--bedrock); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- interior page head ---------- */
.phead { position: relative; background: var(--white); }
.phead__inner { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.phead__title { margin: 0; max-width: 22ch; }
.phead__lede { font: 400 1.25rem/1.55 var(--serif); color: #3a4851; max-width: 44rem; margin: 1rem 0 0; }
.phead--image { color: #fff; background: var(--bedrock); }
.phead__media { position: absolute; inset: 0; }
.phead__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 12s linear both; }
.phead__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 26, 34, .82), rgba(15, 26, 34, .35)); }
.phead--image .phead__inner { position: relative; padding-block: clamp(5rem, 14vw, 10rem) clamp(2rem, 5vw, 3.5rem); }
.phead--image .phead__title, .phead--image .phead__lede, .phead--image .crumbs a { color: #fff; }
.strata--head i { animation: band 1.1s var(--ease) both; }
.strata--head i:nth-child(2) { animation-delay: .08s; } .strata--head i:nth-child(3) { animation-delay: .16s; } .strata--head i:nth-child(4) { animation-delay: .24s; } .strata--head i:nth-child(5) { animation-delay: .32s; }
.phead--image .strata--head { position: relative; }
@keyframes band { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.2rem; font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--slate); }
.crumbs a { color: var(--slate); }

/* ---------- content ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split--contact { grid-template-columns: minmax(0, 1fr) 22rem; }
.single .split__main { max-width: 46rem; }
.prose { font: 400 1.15rem/1.72 var(--serif); max-width: 44rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { margin: 1.5rem 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 4px solid var(--ochre); font-style: italic; }
.prose figure { margin: 1.5rem 0; } .prose figcaption { font: .9rem/1.4 var(--sans); color: var(--slate); margin-top: .5rem; }
.prose .alignright { float: right; margin: 0 0 1rem 1.5rem; max-width: 45%; } .prose .alignleft { float: left; margin: 0 1.5rem 1rem 0; max-width: 45%; }
.prose table { border-collapse: collapse; width: 100%; font: .95rem/1.4 var(--sans); } .prose td, .prose th { border-bottom: 1px solid var(--line); padding: .5rem; text-align: left; }
.lead { font: 400 1.15rem/1.65 var(--serif); }
.split__aside { position: sticky; top: 7rem; }
.aside-nav h2, .offices h2, .facts dt { font: 620 .95rem/1.3 var(--sans); color: var(--slate); margin: 0 0 .6rem; }
.aside-nav ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--bedrock); }
.aside-nav a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s var(--ease), color .2s; }
.aside-nav a:hover { padding-left: .5rem; color: var(--ochre); }
.facts { margin: 0; border-top: 2px solid var(--bedrock); }
.facts > div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; font-size: 1.05rem; }
.facts ul { list-style: none; margin: 0; padding: 0; }
.dateline { color: var(--slate); }
.empty { color: var(--slate); font-style: italic; font-family: var(--serif); font-size: 1.1rem; }
.list-head { margin-top: 2.5rem; }

/* cards & grids */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 2.4rem 1.6rem; }
.card { transition: opacity .35s, transform .45s var(--ease); }
.card.is-hidden { display: none; }
.card.is-entering { opacity: 0; transform: translateY(14px) scale(.98); }
.card__link { display: block; text-decoration: none; color: var(--ink); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.05); }
.card__ph { position: absolute; inset: 0; background: var(--mist); }
.card__ph .strata { height: 45%; transition: height .6s var(--ease); }
.card__link:hover .card__ph .strata { height: 60%; }
.card__body { padding-top: .9rem; border-top: 3px solid transparent; transition: border-color .3s; }
.card__link:hover .card__body { border-color: var(--ochre); }
.card__title { font-size: 1.2rem; margin: 0 0 .25rem; }
.card__meta { color: var(--slate); margin: 0; font-size: .95rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.2rem; }
.chip { font: 520 .95rem/1 var(--sans); padding: .6rem .9rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--bedrock); }
.chip[aria-pressed="true"] { background: var(--bedrock); color: #fff; border-color: var(--bedrock); }
.gallery { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12, 20, 26, .92); display: grid; place-items: center; padding: 2rem; animation: fade .25s both; }
.lightbox img { max-height: 88vh; width: auto; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border: 0; background: var(--ochre); color: var(--ink); font-size: 1.6rem; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); padding: 0; margin-bottom: 4rem; }
.pager a { background: var(--paper); padding: 1.5rem var(--gut); text-decoration: none; font: 620 1.15rem/1.3 var(--sans); font-stretch: 110%; transition: background .3s; }
.pager a:last-child { text-align: right; }
.pager a:hover { background: var(--white); }
.pager span { display: block; font: 500 .9rem var(--sans); color: var(--slate); margin-bottom: .3rem; }

/* people */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 2.2rem 1.6rem; }
.person a { text-decoration: none; color: var(--ink); display: block; }
.person__photo { aspect-ratio: 4 / 5; background: var(--mist); overflow: hidden; display: grid; place-items: center; margin-bottom: .8rem; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: filter .5s, transform .8s var(--ease); }
.person a:hover .person__photo img { filter: none; transform: scale(1.04); }
.person__initials { font: 800 3rem/1 var(--sans); font-stretch: 125%; color: var(--s3); }
.person__name { font-size: 1.1rem; margin: 0 0 .2rem; }
.person__role { color: var(--slate); margin: 0; }
.person-aside img { margin-bottom: 1rem; }

/* posts, jobs, results */
.post-list, .jobs, .results { list-style: none; margin: 0; padding: 0; }
.post-item { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.post-item:not(:has(.post-item__media)) { grid-template-columns: 1fr; }
.post-item time { color: var(--slate); font-size: .95rem; }
.post-item h2 { font-size: 1.4rem; margin: .3rem 0 .5rem; }
.post-item h2 a { text-decoration: none; }
.jobs { border-top: 2px solid var(--bedrock); }
.jobs a { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem .4rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .25s, padding .3s var(--ease); }
.jobs a:hover { background: var(--white); padding-left: 1rem; }
.jobs__title { font: 620 1.2rem var(--sans); font-stretch: 110%; }
.jobs__meta { color: var(--slate); }
.video { aspect-ratio: 16 / 9; margin-bottom: 2rem; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.searchbar { display: flex; gap: .5rem; max-width: 40rem; margin-bottom: 2rem; }
.searchbar input { flex: 1; font: inherit; font-size: 1.15rem; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--white); }
.result-count { color: var(--slate); }
.results li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.results a { font: 620 1.2rem var(--sans); display: block; margin: .15rem 0 .35rem; }
.results p { margin: 0; color: #3a4851; font-family: var(--serif); }
.results__type { font-size: .88rem; color: var(--slate); }
.sitemap { columns: 3 16rem; column-gap: 3rem; }
.sitemap section { break-inside: avoid; margin-bottom: 2rem; }
.sitemap ul { padding-left: 1.1rem; }
.preview-bar { background: var(--ochre); color: var(--ink); text-align: center; padding: .5rem; font-weight: 600; }

/* forms */
.form { display: grid; gap: 1.1rem; max-width: 44rem; margin-top: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-weight: 560; font-size: .95rem; }
.form input, .form select, .form textarea { font: 400 1rem/1.4 var(--sans); padding: .75rem .85rem; border: 1px solid #b8c1c3; background: var(--white); color: var(--ink); border-radius: 0; width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--bedrock); box-shadow: 0 0 0 3px rgba(184, 137, 59, .35); }
.form input[type=file] { padding: .6rem; }
.hint { font-weight: 400; color: var(--slate); margin-left: .3rem; }
.hp { position: absolute; left: -9999px; }
.form button { justify-self: start; }
.form__status:empty { display: none; }
.form__status { margin: 0; font-weight: 560; }
.form__status.is-error, .notice--error { color: #9b2c1f; }
.notice { padding: 1rem 1.2rem; border-left: 4px solid var(--ochre); background: var(--white); animation: rise .5s var(--ease) both; }
.notice--ok { border-color: #3f7a4f; }
.fineprint { font-size: .88rem; color: var(--slate); margin: 0; }
.apply { border-top: 1px solid var(--line); }
.offices { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.offices li { padding-top: 1rem; border-top: 2px solid var(--bedrock); }
.offices address { font-style: normal; }
.offices p { margin: .3rem 0 0; }

/* footer */
.footer { background: var(--ink); color: #c9d1d3; margin-top: 0; }
.footer a { color: #e6ebe9; }
.footer__grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: 3rem; padding-block: 3.5rem 2.5rem; }
.footer__name { font: 640 1.25rem/1.25 var(--sans); font-stretch: 112%; color: #fff; margin-bottom: .3rem; }
.footer__tag { color: var(--s1); }
.footer__social { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 1.2rem 0 0; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #3c4a53; transition: background .25s, border-color .25s; }
.footer__social a:hover { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }
.footer__offices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.6rem; }
.footer__offices h2 { font: 620 1rem var(--sans); color: #fff; margin-bottom: .4rem; }
.footer__offices address { font-style: normal; font-size: .93rem; margin-bottom: .3rem; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.3rem 2rem; border-top: 1px solid #2f3b43; font-size: .9rem; }
.footer__legal p { margin: 0; }
.footer__legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; }

/* scroll reveal (only once JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .log__row[data-reveal] { transform: translateX(-18px); }
.js .log__row[data-reveal].is-in { transform: none; }

@media (max-width: 900px) {
  .intro, .split, .split--contact, .legacy__inner, .footer__grid { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .log__row a { grid-template-columns: 1fr; gap: .3rem; }
  .post-item { grid-template-columns: 1fr; }
  .news-list li { grid-template-columns: 1fr; gap: .2rem; }
  .form__row { grid-template-columns: 1fr; }
  .stats { gap: 1.4rem; }
  .hero__caption { max-width: none; right: var(--gut); bottom: 5.5rem; }
  .brand__name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .masthead, .footer, .hero__controls, .form, .filters { display: none; }
  body { background: #fff; }
}
