/* MHEC — site styles
   Palette: logo red on asphalt navy, cool concrete neutrals. */
:root {
  --red: #c8202f;
  --red-dk: #a3151f;
  --ink: #141a24;        /* asphalt */
  --ink-2: #1f2835;
  --text: #283241;
  --muted: #566070;
  --bg: #ffffff;
  --tint: #f1f3f4;       /* concrete */
  --line: #dde1e6;
  --on-dark: #e9edf2;
  --on-dark-muted: #a7b0bd;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.125rem, 1.4rem + 3.4vw, 3.75rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--step-0)/1.65 var(--f-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); margin: 0; text-wrap: balance; line-height: 1.12; }
h2 { font-size: var(--step-3); font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 500 var(--step--1)/1.3 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: .75rem;
}
.eyebrow--light { color: #ff8a92; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  font: 600 1rem/1 var(--f-body); text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dk); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--tint); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }

.link-arrow {
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--red); padding-bottom: 2px; white-space: nowrap;
}
.link-arrow::after { content: " →"; color: var(--red); }
.link-arrow:hover { color: var(--red); }

/* Top bar */
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: var(--step--1); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 1.5rem; }
.social { display: flex; gap: .75rem; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* Header */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
.brand__name { font: 600 .8rem/1.25 var(--f-display); font-stretch: 105%; color: var(--ink); border-left: 1px solid var(--line); padding-left: .75rem; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__list > li { position: relative; }
.nav__list > li > a, .nav__list > li > button {
  display: flex; align-items: center; gap: .35em;
  padding: .6rem .7rem; border: 0; background: none;
  font: 500 .95rem/1 var(--f-body); color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 4px;
}
.has-sub > button::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.nav__list > li > a:hover, .nav__list > li > button:hover { color: var(--red); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  box-shadow: 0 12px 30px rgba(20,26,36,.12); padding: .4rem 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .6rem 1rem; text-decoration: none; font-size: .95rem; }
.sub a:hover { background: var(--tint); color: var(--red); }
.header__cta { min-height: 42px; padding-inline: 1.1em; }

.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer { border-top: 1px solid var(--line); background: #fff; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.drawer nav { display: flex; flex-direction: column; padding: .5rem var(--gutter) 1.5rem; }
.drawer nav > a, .drawer summary {
  display: block; padding: 1rem 0; border-bottom: 1px solid var(--line);
  font: 600 1.05rem/1.2 var(--f-body); color: var(--ink); text-decoration: none; cursor: pointer;
}
.drawer summary { list-style: none; display: flex; justify-content: space-between; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: .8; }
.drawer details[open] summary::after { content: "–"; }
.drawer details a { display: block; padding: .75rem 0 .75rem 1rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--tint); }
.drawer .btn { margin-top: 1.25rem; }
.drawer__contact { margin-top: 1rem; color: var(--muted); font-size: var(--step--1); line-height: 2; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero__media img.is-on { opacity: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,19,27,.92) 0%, rgba(14,19,27,.75) 45%, rgba(14,19,27,.25) 100%);
}
.hero__in { padding-block: clamp(4rem, 9vw, 7.5rem); max-width: 1240px; }
.hero h1 {
  color: #fff; max-width: 17ch;
  font-size: var(--step-4); font-weight: 750; font-stretch: 118%; letter-spacing: -.015em; line-height: 1.04;
}
.hero__lede { max-width: 52ch; margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.55; color: #d9dee6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.creds { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 2.5rem; font-size: var(--step--1); color: #c3cad4; }
.creds li { display: flex; align-items: center; gap: .5rem; }
.creds li::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.creds strong { color: #fff; font-weight: 600; }

/* Figures as kilometre posts on an asphalt strip with a dashed centre line */
.posts { background: var(--ink-2); color: var(--on-dark); position: relative; }
.posts::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 36px, transparent 36px 64px);
}
.posts__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.posts__list li {
  display: flex; flex-direction: column; gap: .25rem; align-items: flex-start;
  padding: 1.75rem 1.25rem; background: var(--ink-2);
}
.posts__list li + li { border-left: 1px solid rgba(255,255,255,.08); }
.posts__km {
  font: 700 var(--step-3)/1 var(--f-display); font-stretch: 125%; color: #fff;
  font-variant-numeric: tabular-nums;
}
.posts__km::after { content: ""; display: block; width: 28px; height: 4px; background: var(--red); margin-top: .6rem; }
.posts__label { font: 500 var(--step--1)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: #fff; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.head__links { display: flex; gap: 1.5rem; }

/* About */
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 2rem 4rem; align-items: start; }
.about__body { display: grid; gap: 1.1rem; max-width: 64ch; justify-items: start; align-content: start; }

/* Success panel: founder photo beside the years figure, full width under the intro */
.success {
  grid-column: 1 / -1; margin-top: 1rem;
  display: grid; grid-template-columns: 6fr 5fr;
  background: var(--tint); border-radius: var(--radius); overflow: hidden;
}
.success__photo { margin: 0; position: relative; min-height: 100%; }
.success__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 40% 40%; }
.success__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.5rem 1rem; color: #d7dde5; font-size: .85rem; line-height: 1.45;
  background: linear-gradient(transparent, rgba(14,19,27,.9));
}
.success__photo figcaption strong { color: #fff; font-weight: 600; }
.success__body { display: grid; gap: 1.25rem; align-content: center; padding: clamp(1.5rem, 3.5vw, 3rem); }
.success__fig { display: flex; align-items: center; gap: 1rem; }
.success__num {
  font: 800 clamp(4.5rem, 3rem + 5vw, 6.5rem)/.85 var(--f-display); font-stretch: 125%;
  color: var(--red); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.success__txt { font: 700 var(--step-2)/1.05 var(--f-display); font-stretch: 112%; color: var(--ink); text-transform: uppercase; }
.success__cap { color: var(--muted); max-width: 40ch; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.certs li { display: grid; justify-items: center; gap: .5rem; text-align: center; font-size: .8rem; line-height: 1.3; color: var(--ink); font-weight: 500; }
.certs img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.divisions summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.divisions summary::marker { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chips li { font-size: var(--step--1); padding: .35rem .75rem; background: var(--tint); border-radius: 100px; }

/* Expertise */
.exp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.exp__card {
  display: flex; flex-direction: column; background: #fff; text-decoration: none; color: var(--text);
  border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.exp__card img { aspect-ratio: 16/10; width: 100%; object-fit: cover; transition: transform .5s; }
.exp__txt { padding: 1.25rem 1.35rem 1.5rem; display: grid; gap: .5rem; }
.exp__txt p { color: var(--muted); font-size: 1rem; }
.exp__card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,26,36,.12); }
.exp__card:hover img { transform: scale(1.04); }
.exp__card:hover h3 { color: var(--red); }

/* Projects */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.chip {
  min-height: 42px; padding: .5rem 1rem; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 500 .95rem/1 var(--f-body);
}
.chip span { font: 500 .8rem var(--f-mono); color: var(--muted); margin-left: .25rem; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-on span { color: #ff9aa1; }

.proj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
.proj a { display: grid; gap: .9rem; text-decoration: none; color: var(--text); }
.proj img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--tint); transition: filter .3s; }
.proj .meta { font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--red); margin-bottom: .35rem; }
.proj h3 { font-size: 1.125rem; font-weight: 600; font-stretch: 100%; line-height: 1.3; }
.proj a:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.proj a:hover img { filter: brightness(.9); }
.proj.is-collapsed li:nth-child(n+10) { display: none; }
.more { margin-top: 2.5rem; display: flex; justify-content: center; }

/* Strengths */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.strengths li { padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); display: grid; gap: .5rem; align-content: start; }
.strengths li:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.12); }
.strengths h3::before { content: ""; display: block; width: 24px; height: 3px; background: var(--red); margin-bottom: 1rem; }

/* History + leadership */
.hist { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; align-items: start; }
.timeline { margin-top: 2rem; border-left: 2px dashed var(--line); padding-left: 1.75rem; display: grid; gap: 1.5rem; }
.timeline li { position: relative; display: grid; gap: .15rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.75rem - 7px); top: .45rem; width: 12px; height: 12px; background: #fff; border: 3px solid var(--red); border-radius: 50%; }
.yr { font: 700 1.25rem/1.2 var(--f-display); font-stretch: 118%; color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline p { color: var(--muted); max-width: 48ch; }
.quote { margin: 0; background: var(--tint); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); }
.quote blockquote { margin: 0; font: 500 var(--step-1)/1.5 var(--f-display); font-stretch: 100%; color: var(--ink); }
.quote figcaption { margin-top: 1.25rem; display: grid; }
.quote figcaption span, .leaders span { color: var(--muted); font-size: var(--step--1); }
.leaders { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .9rem; }
.leaders li { display: grid; }
.leaders strong, .quote figcaption strong { color: var(--ink); font-weight: 600; }

/* Partners */
.tabs { display: flex; gap: .25rem; margin-top: 2rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button {
  flex-shrink: 0; padding: .9rem 1.1rem; border: 0; background: none; cursor: pointer;
  font: 600 .95rem/1 var(--f-body); color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; margin-top: 1.75rem; }
.logos img {
  width: 100%; aspect-ratio: 3/2; object-fit: contain; background: #fff; padding: .6rem;
  border-radius: 4px; filter: grayscale(1); opacity: .85; transition: filter .25s, opacity .25s;
}
.logos img:hover { filter: none; opacity: 1; }

/* CTA */
.cta { background: var(--red); color: #fff; }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta h2 { color: #fff; }
.cta p { margin-top: .5rem; color: #ffe1e3; font-size: var(--step-1); }
.cta__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark-muted); font-size: 1rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer__logo { background: #fff; padding: 8px 10px; border-radius: 4px; height: 56px; width: auto; margin-bottom: 1.25rem; }
.footer__grid > div:first-child p { max-width: 42ch; }
.footer h3 { color: #fff; font: 500 var(--step--1)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer address { font-style: normal; line-height: 1.9; }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--step--1); }

/* Responsive */
@media (max-width: 1180px) {
  .brand__name { display: none; }
}
@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .exp, .proj { grid-template-columns: repeat(2, 1fr); }
  .strengths { grid-template-columns: repeat(2, 1fr); }
  .strengths li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .strengths li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.12); }
  .hist, .about__grid { grid-template-columns: 1fr; }
  .success { grid-template-columns: 1fr; }
  .success__photo img { aspect-ratio: 3/2; height: auto; min-height: 0; }
  .proj.is-collapsed li:nth-child(n+7) { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .brand img { height: 40px; }
  .posts::before { display: none; }
  .posts__list { grid-template-columns: repeat(2, 1fr); }
  .posts__list li { padding: 1.25rem 1rem; }
  .posts__list li:nth-child(3) { border-left: 0; }
  .posts__list li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .hero__media::after { background: linear-gradient(180deg, rgba(14,19,27,.7) 0%, rgba(14,19,27,.88) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .exp, .proj, .strengths { grid-template-columns: 1fr; }
  .strengths li:nth-child(even) { padding-left: 0; border-left: 0; }
  .proj.is-collapsed li:nth-child(n+5) { display: none; }
  .proj a { grid-template-columns: 112px 1fr; align-items: start; gap: 1rem; }
  .proj img { aspect-ratio: 1; }
  .proj h3 { font-size: 1.02rem; }
  .cta__actions, .cta__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ───────────── Motion & interaction ───────────── */

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
.header { transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(20,26,36,.08); }

/* Hero: load sequence, parallax and light trails */
.hero__media { transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0) scale(1.08); will-change: transform; }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: screen; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero__in > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__in > :nth-child(2) { animation-delay: .1s; }
.hero__in > :nth-child(3) { animation-delay: .22s; }
.hero__in > :nth-child(4) { animation-delay: .34s; }
.hero__in > :nth-child(5) { animation-delay: .46s; }

/* Kilometre-post strip: the centre line keeps moving */
@keyframes lane { to { background-position: -64px 0; } }
.posts::before { animation: lane 1.1s linear infinite; }

/* Reveal on scroll — only applied by JS to content that starts below the fold */
:root .rv { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
:root .rv.in { opacity: 1; transform: none; }

/* Buttons: sheen on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn:hover::after { left: 130%; transition: left .7s ease; }

/* Expertise: 3D tilt + cursor spotlight */
.exp { perspective: 1000px; }
.exp__card {
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .2s ease-out, box-shadow .3s;
  transform-style: preserve-3d;
}
.exp__card:hover { --ty: -6px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty)); }
.exp__card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 45%);
}
.exp__card:hover::after { opacity: 1; }
.exp__card h3 { transition: color .2s; }

/* Projects: items animate in when a filter changes */
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.proj li.enter { animation: pop .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.proj img { transition: filter .3s, transform .6s cubic-bezier(.2,.7,.2,1); }
.proj a { overflow: visible; }
.proj a:hover img { transform: scale(1.03); }

/* Strengths: live survey contours behind the content */
#strengths { position: relative; overflow: hidden; isolation: isolate; }
#strengths .wrap { position: relative; z-index: 1; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.strengths li { transition: background .3s; }
.strengths li:hover { background: rgba(255,255,255,.03); }
.strengths li:hover h3::before { width: 48px; }
.strengths h3::before { transition: width .35s cubic-bezier(.2,.7,.2,1); }

/* Timeline draws itself as you scroll */
.timeline { position: relative; }
.timeline::after {
  content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 100%;
  background: var(--red); transform-origin: 50% 0; transform: scaleY(var(--tl, 1));
}
.timeline li::before { z-index: 1; transition: background .3s, transform .3s; }
.timeline li.on::before { background: var(--red); transform: scale(1.15); }

/* Partner logos fade in, staggered */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: .85; transform: none; } }
.logos img { animation: fadeUp .5s ease backwards; animation-delay: calc(var(--i, 0) * 30ms); }
.logos img:hover { transform: translateY(-3px); }

/* CTA: slow-moving road chevrons */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
  background: repeating-linear-gradient(-55deg, #fff 0 18px, transparent 18px 56px);
  background-size: 200% 100%; animation: chevrons 14s linear infinite;
}
@keyframes chevrons { to { background-position: -400px 0; } }

@media (prefers-reduced-motion: reduce) {
  :root .rv { opacity: 1; transform: none; }
  .hero__media { transform: none; }
  .exp__card { transform: none !important; }
}

/* ───────────── Line-drawing textures (light sections) ───────────── */
:root {
  --draw: #aeb7c3;       /* drawing line-work */
  --draw-soft: #dde2e8;  /* zebra fills */
  --draw-text: #97a1ad;  /* sheet annotations */
}
.section--tint {
  /* engineering graph paper: fine 28px grid, heavier every 140px */
  background-image:
    linear-gradient(rgba(20,26,36,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,26,36,.05) 1px, transparent 1px),
    linear-gradient(rgba(20,26,36,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,26,36,.028) 1px, transparent 1px);
  background-size: 140px 140px, 140px 140px, 28px 28px, 28px 28px;
  background-position: -1px -1px;
}
.has-art { position: relative; overflow: hidden; isolation: isolate; --art-bg: var(--bg); }
.section--tint.has-art { --art-bg: var(--tint); }
.has-art > .wrap { position: relative; z-index: 1; }

.art { position: absolute; z-index: 0; pointer-events: none; color: var(--draw); }
.art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.art--band { left: 0; right: 0; bottom: 0; height: 130px; }
.art--tall { height: 150px; }
.art--corner { top: 14px; right: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter))); }
.art--junction { width: 300px; height: 150px; top: 10px; }
.art--align { width: min(730px, 56%); height: 160px; }
#history, #partners, .about { padding-bottom: clamp(7rem, 12vw, 9.5rem); }

.art .ln, .art .dash, .art .wv, .art .head {
  fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.art .thin { stroke-width: .8; }
.art .dash { stroke-dasharray: 7 7; }
.art .acc { color: var(--red); }
.art .acc .ln, .art .acc .dash { opacity: .5; }
.art .fill { fill: var(--draw-soft); }
.art text { font: 500 10px/1 var(--f-mono); fill: var(--draw-text); letter-spacing: .08em; }
.art .veh path, .art .veh circle { fill: var(--art-bg); stroke: currentColor; stroke-width: 1.1; }
.art .veh .dot { fill: var(--red); stroke: none; }
.art .veh .halo { fill: var(--red); stroke: none; opacity: .15; }
.art .head { fill: var(--art-bg); }
.art .lamp { fill: var(--art-bg); stroke: currentColor; stroke-width: 1; transition: fill .35s, stroke .35s; }
.art .sig[data-s="r"] .lamp.r { fill: #e5484d; stroke: #e5484d; }
.art .sig[data-s="a"] .lamp.a { fill: #f0a52b; stroke: #f0a52b; }
.art .sig[data-s="g"] .lamp.g { fill: #2eb46a; stroke: #2eb46a; }
.art .water { color: #9fc3d9; }
@keyframes wave { to { transform: translateX(20px); } }
.art .water path { animation: wave 2.6s linear infinite; }
.art .water path + path { animation-duration: 3.4s; animation-direction: reverse; }

/* Sketch-in: strokes draw themselves, annotations and vehicles fade in after */
.art-anim .art .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.55,.1,.25,1) var(--d, 0s); }
.art-anim .art.drawn .ln { stroke-dashoffset: 0; }
.art-anim .art .fd { opacity: 0; transition: opacity 1s ease 1.6s; }
.art-anim .art.drawn .fd { opacity: 1; }

@media (max-width: 1024px) {
  .art--corner { display: none; }
}
@media (max-width: 760px) {
  .art--band { height: 92px; }
  .art--tall { height: 104px; }
  .art text { display: none; }
  #history, #partners, .about { padding-bottom: 6.5rem; }
}
