/* MHEC — inner page components (loaded after style.css) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .85em; letter-spacing: .03em; }
.muted { color: var(--muted); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--text); max-width: 60ch; }
.h-sub { font-size: var(--step-2); margin: 2.5rem 0 1rem; }
.narrow { max-width: 820px; }
.narrow > * + * { margin-top: 1.25rem; }
.prose > * + * { margin-top: 1rem; }
.prose p { max-width: 68ch; }
.prose h3 { margin-top: 1.5rem; }
.ticks { display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.4rem; max-width: 68ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.ticks ul { margin-top: .5rem; display: grid; gap: .35rem; }
.ticks ul li { padding-left: 1rem; color: var(--muted); font-size: .97em; }
.ticks ul li::before { width: 6px; height: 1.5px; top: .8em; transform: none; background: var(--muted); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 2.5rem 4rem; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--red); text-decoration: underline; cursor: pointer; }

/* Active nav item */
.nav__list > li.is-active > a, .nav__list > li.is-active > button { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }

/* Page hero */
.hero--page .hero__in { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
/* Many source images are posters with text: soften them so the title always reads cleanly */
.hero--page .hero__media img { filter: blur(6px) saturate(.85); transform: scale(1.08); }
.hero--page .hero__media::after { background: linear-gradient(90deg, rgba(14,19,27,.94) 0%, rgba(14,19,27,.82) 55%, rgba(14,19,27,.6) 100%); }
.hero--page h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); max-width: 22ch; }
.hero--page .hero__lede { font-size: var(--step-0); max-width: 60ch; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-bottom: 1.25rem; font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: #aeb7c3; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: #6b7686; }
.crumbs a { color: #d6dce4; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #ff9aa1; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* About: MD message */
.md { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 2.5rem 4rem; align-items: center; }
.md__photo { margin: 0; position: relative; isolation: isolate; }
.md__photo img { width: 100%; border-radius: var(--radius); background: var(--tint); }
.md__photo::after { content: ""; position: absolute; left: -12px; bottom: -12px; width: 60%; height: 40%; border-left: 4px solid var(--red); border-bottom: 4px solid var(--red); z-index: -1; }
.md__intro { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.md__quote { margin: 1.5rem 0; font: 600 var(--step-2)/1.35 var(--f-display); color: var(--ink); max-width: 34ch; }
.md__sign { display: grid; }
.md__sign strong { color: var(--ink); }
.md__sign span { color: var(--muted); font-size: var(--step--1); }

/* Vision / mission / quality */
.vmq { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.vmq article { background: var(--bg); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 4px solid var(--red); display: grid; gap: .8rem; align-content: start; }
.vmq article > p:not(.eyebrow) { font-size: 1.05rem; }
.vmq__wide { grid-column: 1 / -1; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 2rem 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--bg); padding: 1.1rem 1.25rem; display: flex; flex-direction: column-reverse; gap: .2rem; }
.facts dt { font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font: 700 var(--step-3)/1 var(--f-display); font-stretch: 120%; color: var(--ink); }

.milestones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 2.5rem; border-top: 2px dashed rgba(255,255,255,.25); }
.milestones li { padding: 1.5rem 1.25rem 0 0; position: relative; display: grid; gap: .4rem; align-content: start; }
.milestones li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--red); }
.milestones .yr { color: #fff; font-size: var(--step-2); }
.milestones p { color: var(--on-dark-muted); }

/* People */
.people { display: grid; gap: 2rem; margin-top: 2rem; }
.person { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 2rem; background: var(--tint); border-radius: var(--radius); align-items: start; }
.person__photo { width: 100%; aspect-ratio: 13/15; object-fit: cover; border-radius: 4px; background: #d6dde3; }
.person h3 { font-size: var(--step-2); }
.person__quals { font: 500 .8rem/1.5 var(--f-mono); color: var(--muted); letter-spacing: .02em; margin: .35rem 0 1rem; }
.managers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.manager { display: grid; grid-template-columns: 110px 1fr; gap: 1.25rem; align-items: center; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.manager img { width: 110px; aspect-ratio: 11/13; object-fit: cover; border-radius: 4px; background: var(--tint); }
.manager .person__quals { margin-bottom: 0; }

/* Divisions */
.divisions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; margin-top: 2rem; }
.divisions-grid > li { background: var(--bg); border-radius: var(--radius); padding: 1.35rem 1.4rem; display: grid; gap: .85rem; align-content: start; border-left: 3px solid var(--red); }
.divisions-grid h3 { font-size: 1.1rem; }
.divisions-grid .chips { margin: 0; }
.divisions-grid .chips li { background: var(--tint); font-size: .8rem; padding: .25rem .6rem; }
.chips--lg { margin-top: 1.25rem; }
.chips--lg li { font-size: .92rem; padding: .45rem .9rem; background: var(--bg); border: 1px solid var(--line); }
.cap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cap-cols h3 { margin-bottom: 1rem; }
.cap-cols strong { color: var(--ink); }
.figure { margin: 0; background: var(--bg); border-radius: var(--radius); padding: 1rem; }
.figure img { width: 100%; border-radius: 4px; }
.figure figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--muted); }
.figure--photo { padding: 0; background: none; }

/* Galleries + lightbox */
.gallery { display: grid; gap: .75rem; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery a { display: block; overflow: hidden; border-radius: 4px; background: var(--tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery--3 img { aspect-ratio: 1; }
.gallery a:hover img { transform: scale(1.04); }
.gallery--awards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.gallery--awards figure { margin: 0; display: grid; gap: .6rem; align-content: start; }
.gallery--awards img { aspect-ratio: 4/3; object-fit: contain; background: #fff; }
.gallery--awards figcaption { font-size: var(--step--1); color: var(--muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(10,14,20,.92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 4rem 4.5rem; }
.lightbox img { max-width: min(1200px, 100%); max-height: 78vh; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #d6dce4; font-size: var(--step--1); text-align: center; }
.lightbox button { position: fixed; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--red); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; }
.lightbox__next { right: 12px; top: 50%; }

/* Detail pages (expertise, project, career) */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.detail__figure { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.detail__figure img { width: 100%; max-height: 520px; object-fit: cover; }
.detail__title { font: 600 var(--step-1)/1.45 var(--f-display); color: var(--ink); max-width: 60ch; }
.detail__cta { margin-top: 2rem; }
.detail__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.25rem; }
.side-nav ul { display: grid; border-top: 1px solid var(--line); }
.side-nav a { display: block; padding: .6rem 0 .6rem .9rem; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .95rem; border-left: 3px solid transparent; }
.side-nav a:hover { color: var(--red); }
.side-nav a[aria-current] { border-left-color: var(--red); color: var(--ink); font-weight: 600; background: var(--tint); }
.factsheet { margin: 0; background: var(--tint); border-radius: var(--radius); padding: .5rem 1.25rem; }
.factsheet div { padding: .85rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.factsheet div:last-child { border-bottom: 0; }
.factsheet dt { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.factsheet dd { margin: 0; color: var(--ink); font-weight: 500; }
.status { display: inline-block; padding: .15rem .6rem; border-radius: 100px; font-size: .85rem; background: #e3e7ec; }
.status--on { background: #fde4e6; color: var(--red-dk); }
.side-links { display: grid; gap: .4rem; margin-top: .5rem; }
.side-links a { color: var(--ink); font-weight: 500; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.pager a { display: grid; gap: .3rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, background .2s; }
.pager a:hover { border-color: var(--red); background: var(--tint); }
.pager a[rel="next"] { text-align: right; }
.pager span { font: 500 .75rem var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--red); }

/* Project cards: ongoing badge */
.proj__img { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.proj__img img { border-radius: 0; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font: 500 .72rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: .4rem .55rem; border-radius: 3px; }

/* Project finder */
.finder { display: grid; gap: .75rem; margin-bottom: 2rem; padding: 1.25rem; background: var(--tint); border-radius: var(--radius); }
.finder__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.finder__search input { width: 100%; min-height: 48px; padding: .75rem 1rem .75rem 2.75rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23566070' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px 50%; }
.finder__search input:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: transparent; }
.finder__count { font: 500 .8rem var(--f-mono); letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--tint); border-radius: var(--radius); }

/* Services */
.lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 3rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lifecycle li { padding: 1rem 1.25rem; font: 700 var(--step-1)/1 var(--f-display); font-stretch: 115%; color: var(--ink); display: flex; gap: .75rem; align-items: baseline; position: relative; }
.lifecycle li + li { border-left: 1px solid var(--line); }
.lifecycle .mono { color: var(--red); font-size: .8rem; }
.services { display: grid; gap: 1.25rem; }
.service { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem 3rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); }
.service h2 { font-size: var(--step-2); margin-bottom: .75rem; }
.service .lead { margin-bottom: 1.25rem; font-size: 1.05rem; color: var(--muted); }
.service__refs { background: var(--tint); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .75rem; align-content: start; }
.service__refs ul { display: grid; }
.service__refs a { display: grid; gap: .2rem; padding: .6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; line-height: 1.35; }
.service__refs a:hover { color: var(--red); }
.service__refs .mono { color: var(--red); font-size: .72rem; text-transform: uppercase; }

/* Research */
.pubs { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 70px 1fr auto; gap: 1rem 1.5rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.pub__year { color: var(--red); font-size: 1rem; }
.pub h3 { font-size: 1.05rem; font-weight: 600; font-stretch: 100%; line-height: 1.35; }
.pub__venue { color: var(--muted); font-size: var(--step--1); margin-top: .2rem; }
.pub__pdf { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 100px; font-size: .88rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.pub__pdf svg { width: 16px; height: 16px; fill: var(--red); }
.pub__pdf:hover { border-color: var(--red); color: var(--red); }
.pub__pdf--none { color: var(--muted); font-weight: 400; border-style: dashed; }
.note { margin-top: 1.5rem; color: var(--muted); }
.tabs button .mono { color: var(--muted); margin-left: .3rem; }

/* Technology */
.techs { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; align-items: center; }
.tech--rev > div { order: 2; }
.tech h2 { margin-bottom: .75rem; }
.tech .lead { color: var(--muted); font-size: 1.05rem; }
.tech__list { display: grid; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.tech__list li { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.tech__list li strong { color: var(--ink); }
.tech__list li span { color: var(--muted); }
.tech__list li:not(:has(strong)) { display: block; padding-left: 1.4rem; position: relative; }
.tech__list li:not(:has(strong))::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.tech__fig { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(20,26,36,.1); }
.tech__fig img { width: 100%; }

/* News & media */
.subnav { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.subnav a { padding: .8rem 1.1rem; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.post { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s; }
.post:hover { box-shadow: 0 16px 36px rgba(20,26,36,.1); transform: translateY(-3px); }
.post__img { display: block; aspect-ratio: 16/10; background: var(--tint); overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__body { display: grid; gap: .5rem; padding: 1.25rem 1.35rem 1.5rem; align-content: start; }
.post__body .eyebrow { margin: 0; }
.post:hover h3 { color: var(--red); }
.post p { color: var(--muted); font-size: .95rem; }

/* Careers */
.jobs { display: grid; gap: .75rem; margin-top: 1.5rem; }
.jobs a { display: grid; gap: .3rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); text-decoration: none; transition: background .2s; }
.jobs a:hover { background: var(--tint); }
.jobs__title { font: 700 var(--step-1)/1.2 var(--f-display); color: var(--ink); }
.jobs__title::after { content: " →"; color: var(--red); }
.jobs__meta { color: var(--muted); }
.panel { background: var(--tint); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; }
.panel h3 { font-size: var(--step-2); }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 3rem 4rem; align-items: start; }
.contact__info h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.contact__addr { font-style: normal; font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.contact__lines, .contact__emails { display: grid; margin: 1.5rem 0; border-top: 1px solid var(--line); }
.contact__lines li, .contact__emails li { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact__lines span, .contact__emails span { color: var(--muted); font-size: .92rem; }
.contact__lines a, .contact__emails a { color: var(--ink); font-weight: 600; word-break: break-word; }
.contact__info h3 { margin-top: 2rem; font-size: 1.1rem; }
.form { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--tint); border-radius: var(--radius); }
.form h2 { font-size: var(--step-2); margin-bottom: .5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-weight: 400; padding: .75rem .9rem; min-height: 48px; border: 1px solid #c9d0d8; border-radius: 4px; background: #fff; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: transparent; }
.form .is-invalid { border-color: var(--red); background: #fff6f6; }
.form .btn { justify-self: start; }
.form__note { font-size: var(--step--1); color: var(--muted); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.4); }

.footer__social { display: flex; gap: .9rem; margin-top: 1.25rem; }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 1024px) {
  .detail { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .md, .split, .split--even, .contact, .tech { grid-template-columns: 1fr; }
  .tech--rev > div { order: 0; }
  .service { grid-template-columns: 1fr; }
  .milestones { grid-template-columns: 1fr; border-top: 0; border-left: 2px dashed rgba(255,255,255,.25); padding-left: 1.5rem; gap: 1.5rem; }
  .milestones li { padding: 0; }
  .milestones li::before { top: .35rem; left: calc(-1.5rem - 8px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .md__photo { max-width: 340px; }
}
@media (max-width: 760px) {
  .vmq, .managers, .cap-cols, .form__row, .pager, .gallery--2 { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; padding: 1.5rem; }
  .person__photo { max-width: 220px; }
  .manager { grid-template-columns: 84px 1fr; }
  .manager img { width: 84px; }
  .lifecycle { grid-template-columns: 1fr 1fr; }
  .lifecycle li:nth-child(3) { border-left: 0; }
  .lifecycle li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pub { grid-template-columns: 1fr; gap: .5rem; }
  .pub__pdf { justify-self: start; }
  .contact__lines li, .contact__emails li { grid-template-columns: 1fr; gap: .1rem; }
  .pager a[rel="next"] { text-align: left; }
  .lightbox figure { padding: 4rem 1rem; }
  .tech__list li { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { font-size: var(--step-2); }
  .footer__grid { grid-template-columns: 1fr; }
  .map iframe { height: 320px; }
}
