/* შარა-გზამშენი პირველი — main stylesheet */
:root {
  --font: "Noto Sans Georgian", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --surface: #ffffff;
  --text: #16202b;
  --muted: #556270;
  --border: #dde4ec;

  --brand: #7a2626;          /* ბორდო — ლოგოს ასოები */
  --brand-text: #7a2626;
  --brand-btn: #7a2626;
  --brand-btn-hover: #5f1c1c;
  --blue: #1f6fb8;           /* ლოგოს ცა */
  --blue-text: #1a5f9e;
  --tint: #e8f1fa;
  --hero-bg: #0f3e6b;
  --hero-text: #ffffff;
  --hero-muted: #cfe2f4;
  --hero-art: rgba(214, 232, 248, .28);
  --hero-river: rgba(91, 170, 224, .35);

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 8px 24px rgba(16, 32, 48, .06);
  --container: 1180px;
  --header-h: 72px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e1620;
  --bg-alt: #121c28;
  --surface: #16212d;
  --text: #e7edf3;
  --muted: #a3b2c2;
  --border: #243243;

  --brand-text: #e8857f;
  --brand-btn: #a63a3a;
  --brand-btn-hover: #bd4747;
  --blue: #5ab0f0;
  --blue-text: #7cc0f3;
  --tint: #13263a;
  --hero-bg: #0b2a47;
  --hero-muted: #a9c9e6;
  --hero-art: rgba(156, 199, 238, .2);
  --hero-river: rgba(91, 170, 224, .22);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color .2s, color .2s;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--brand-text); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand-btn); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.4em; border-radius: var(--radius);
  font: inherit; font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--brand-btn); color: #fff; }
.btn--accent:hover { background: var(--brand-btn-hover); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn[disabled] { opacity: .7; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; text-decoration: none; color: var(--blue-text); }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue-text); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; min-width: 0; flex: 0 1 auto; }
.nav, .header__tools { flex: none; }
.brand:hover { color: var(--text); }
.brand__logo { width: 76px; height: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-weight: 700; font-size: 1.02rem; line-height: 1.2; color: var(--brand-text); }
.brand__tag { font-size: .74rem; color: var(--muted); line-height: 1.3; max-width: 34ch; }
.nav__list { display: flex; gap: 4px; }
.nav__link { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav__link:hover { background: var(--bg-alt); color: var(--brand-text); }
.nav__link.is-active { color: var(--brand-text); background: var(--tint); }
.header__tools { display: flex; align-items: center; gap: 8px; }
.langs { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lang { padding: 9px 10px; font-size: .82rem; font-weight: 500; text-decoration: none; color: var(--muted); line-height: 1; }
.lang:hover { color: var(--text); background: var(--bg-alt); }
.lang.is-active { background: var(--blue); color: #fff; }
[data-theme="dark"] .lang.is-active { color: #0b1a29; }
.theme-toggle .icon--sun, [data-theme="dark"] .theme-toggle .icon--moon { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
.menu-toggle { display: none; }
.menu-toggle .icon--close, .menu-open .menu-toggle .icon--menu { display: none; }
.menu-open .menu-toggle .icon--close { display: block; }
.nav__langs--mobile { display: none; }

@media (max-width: 1279px) {
  .brand__tag { display: none; }
}
@media (max-width: 960px) {
  .header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle { display: inline-grid; }
  .langs { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--bg); padding: 16px 20px 32px;
    display: flex; flex-direction: column; gap: 20px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility .25s;
    overflow-y: auto;
  }
  .menu-open .nav { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { font-size: 1.15rem; padding: 14px 12px; }
  .nav__langs--mobile { display: flex; gap: 8px; flex-wrap: wrap; }
  .nav__langs--mobile .lang { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: .95rem; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand__logo { width: 62px; }
  .brand__name { font-size: .92rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-text); isolation: isolate; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand-btn); }
.hero__art { position: absolute; right: 0; bottom: 0; width: min(62%, 860px); height: 100%; z-index: -1; -webkit-mask-image: linear-gradient(to right, transparent, #000 18%); mask-image: linear-gradient(to right, transparent, #000 18%); }
.hero__bridge path { fill: none; stroke: var(--hero-art); }
.hero__river { fill: var(--hero-river); }
.hero__inner { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(72px, 10vw, 136px); max-width: var(--container); }
.eyebrow { font-size: .9rem; font-weight: 500; letter-spacing: .02em; color: var(--hero-muted); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: #e8857f; border-radius: 2px; }
.hero__title { max-width: 20ch; color: #fff; margin-bottom: .5em; }
.hero__sub { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--hero-muted); max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) {
  .hero__art { width: 100%; opacity: .55; }
}

/* Stats */
.stats { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 28px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 700; color: var(--brand-text); line-height: 1.1; }
.stat__label { color: var(--muted); font-size: .95rem; line-height: 1.4; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding-top: 32px; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 32px; max-width: 70ch; }
.section__head p { margin: 0; }
.section__head--row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: none; flex-wrap: wrap; }
.section__head--row h2 { margin: 0; }
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 4px; width: 120px; background: var(--brand-btn); }
.page-head .lead { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 1040px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards--4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__title { margin-bottom: .45em; }
.card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--blue-text); margin-bottom: 16px; flex: none; }
.card__icon .icon { width: 26px; height: 26px; }
.card__icon--lg { width: 64px; height: 64px; }
.card__icon--lg .icon { width: 34px; height: 34px; }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; font-weight: 500; line-height: 1.4; }
.checklist .icon { color: var(--brand-text); margin-top: .05em; }
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }
.project { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.project[hidden] { display: none; }
.project__media { position: relative; aspect-ratio: 3 / 2; background: var(--tint); }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 12px; top: 12px; background: var(--brand-btn); color: #fff; font-size: .78rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.project__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project__title { margin: 0; font-size: 1.1rem; }
.project__desc { color: var(--muted); font-size: .95rem; margin: 0; }
.project__meta { margin: auto 0 0; display: grid; gap: 6px; font-size: .9rem; }
.project__meta > div { display: flex; gap: 8px; align-items: flex-start; }
.project__meta dt { color: var(--blue-text); margin-top: .1em; }
.project__meta dd { margin: 0; }
.project__facts { flex-wrap: wrap; gap: 4px 16px !important; padding-top: 8px; border-top: 1px solid var(--border); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: inherit; font-size: .92rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
[data-theme="dark"] .chip.is-active { color: #0b1a29; }
.empty { color: var(--muted); padding: 24px 0; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 24px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-text); }
.timeline__year { display: block; font-weight: 700; font-size: 1.3rem; color: var(--brand-text); line-height: 1.3; }
.timeline p { margin: 4px 0 0; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 10px 16px; border-radius: 999px; background: var(--tint); color: var(--text); font-weight: 500; font-size: .95rem; }

.trust { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.trust__main { display: flex; gap: 20px; align-items: flex-start; }
.trust__main .lead { margin: 0; }
.trust__clients h3 { margin-bottom: 14px; }
.trust__clients .checklist { grid-template-columns: 1fr; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } .trust__main { flex-direction: column; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery__item[hidden] { display: none; }
.gallery__link { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--tint); }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__link:hover img { transform: scale(1.04); }
.gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: .92rem; font-weight: 500; background: linear-gradient(to top, rgba(8, 20, 34, .78), transparent); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 12, 20, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1400px); display: grid; gap: 12px; justify-items: center; }
.lightbox__img { max-height: 80vh; width: auto; border-radius: 8px; }
.lightbox__caption { color: #e7edf3; text-align: center; }
.lightbox__btn { position: fixed; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.lightbox__btn:hover { background: rgba(255,255,255,.2); color: #fff; border-color: #fff; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 20px; }
.info-list { display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: center; }
.info-list .card__icon { margin: 0; }
.info-list div { display: flex; flex-direction: column; }
.info-list__label { font-size: .85rem; color: var(--muted); }
.info-list a, .info-list span:not(.info-list__label) { font-weight: 500; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }

.form { display: grid; gap: 16px; }
.form__title { font-size: 1.4rem; margin: 0; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 500; font-size: .93rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c23b3b; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; min-height: 1.4em; font-weight: 500; }
.form__status.is-ok { color: #1d7a46; }
.form__status.is-err { color: #c23b3b; }
[data-theme="dark"] .form__status.is-ok { color: #6fd39b; }
[data-theme="dark"] .form__status.is-err { color: #f08a8a; }
.form .btn { justify-self: start; }

/* CTA */
.cta { background: var(--hero-bg); color: #fff; position: relative; }
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand-btn); }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: var(--hero-muted); margin: 0; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 404 */
.notfound__code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 700; line-height: 1; color: var(--brand-text); margin-bottom: 24px; }
.notfound__block { padding: 16px 0; border-top: 1px solid var(--border); }
.notfound__block h1 { font-size: 1.5rem; margin-bottom: .3em; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 56px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px; padding-bottom: 40px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { width: 92px; margin-bottom: 12px; }
.footer__name { font-weight: 700; color: var(--brand-text); margin-bottom: .3em; }
.footer__about { color: var(--muted); max-width: 42ch; }
.footer__title { font-size: 1rem; margin-bottom: 14px; }
.footer__list { display: grid; gap: 8px; }
.footer__list a { color: var(--text); text-decoration: none; }
.footer__list a:hover { color: var(--brand-text); text-decoration: underline; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts .icon { color: var(--blue-text); margin-top: .2em; width: 1.1em; height: 1.1em; }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 20px; padding-bottom: 24px; color: var(--muted); font-size: .88rem; }
.footer__bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .header__tools, .nav, .hero__art, .form, .map, .cta { display: none !important; }
  .hero { background: none; color: #000; }
}

/* Project groups */
.project-group + .project-group { margin-top: 56px; }
.project-group__title { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; margin-bottom: 20px; }
.project-group__title .count { font-size: .85rem; font-weight: 500; background: var(--tint); color: var(--blue-text); padding: 2px 10px; border-radius: 999px; }
.empty--static { background: var(--bg-alt); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 24px; margin: 0; }

/* Leadership */
.btn--outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--outline:hover { border-color: var(--brand-text); color: var(--brand-text); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }
.person { display: flex; gap: 20px; align-items: center; padding: 20px; }
.person__photo { width: 120px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--tint); flex: none; display: grid; place-items: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__placeholder { color: var(--blue-text); opacity: .6; }
.person__placeholder .icon { width: 44px; height: 44px; }
.person__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.person__role { margin: 0; font-size: .85rem; font-weight: 500; letter-spacing: .02em; color: var(--brand-text); text-transform: uppercase; }
.person__name { margin: 0 0 8px; font-size: 1.2rem; }
.person__soon { margin: 0; font-size: .92rem; }
.bio { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 24px 64px rgba(0,0,0,.35); }
.bio::backdrop { background: rgba(5, 12, 20, .7); }
.bio__inner { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding: 32px; }
.bio__inner:not(:has(.bio__photo)) { grid-template-columns: 1fr; }
@media (max-width: 640px) { .bio__inner { grid-template-columns: 1fr; padding: 24px 20px; } .bio__photo { max-width: 200px; } }
.bio__photo { width: 100%; border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; }
.bio__text h2 { margin: 4px 0 16px; font-size: 1.6rem; padding-right: 40px; }
.bio__text p:not(.person__role) { color: var(--muted); }
.bio__close { position: absolute; top: 14px; right: 14px; }

/* ---------- Animations ---------- */
.stat__num { white-space: nowrap; display: inline-flex; align-items: baseline; gap: .25em; }
.stat__unit { font-size: .55em; font-weight: 700; }

/* Bridge draws itself */
.js .hero__bridge.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,.1,.3,1) forwards; animation-delay: var(--d, .2s); }
.js .hero__bridge.draw path:nth-child(-n+2) { --d: .1s; }
.js .hero__bridge.draw path:nth-child(n+3):nth-child(-n+6) { --d: .5s; animation-duration: 1s; }
.js .hero__bridge.draw path:nth-child(n+7):nth-child(-n+9) { --d: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__inner > * { animation: rise .7s ease both; }
.hero__inner > :nth-child(2) { animation-delay: .1s; }
.hero__inner > :nth-child(3) { animation-delay: .2s; }
.hero__inner > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Road and roller */
.road { background: #8a7d6b; position: relative; overflow: hidden; border-top: 4px solid #6d6153; }
[data-theme="dark"] .road { background: #4b4339; border-top-color: #3a342c; }
.road__track { position: relative; height: 92px; background-image: radial-gradient(rgba(0,0,0,.18) 1.2px, transparent 1.4px), radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px); background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px; }
.road__fresh { position: absolute; left: 0; top: 0; bottom: 0; width: var(--paved, 0px); overflow: hidden; }
.road__old { position: absolute; inset: 0; overflow: hidden; }
.road__old[hidden] { display: none; }
.road__fresh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(100% - 140px), rgba(255,255,255,.08)); pointer-events: none; }
.road__lines { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: repeating-linear-gradient(90deg, #f2f5f8 0 34px, transparent 34px 68px); width: 100vw; opacity: .9; }
.roller svg { width: 100%; height: 100%; overflow: visible; }
.roller:focus-visible { outline-offset: 4px; }
.roller:hover svg { filter: drop-shadow(0 0 6px rgba(255, 215, 122, .6)); }
.roller__puffs circle { fill: #e9eef3; opacity: 0; }
.roller.is-driving .roller__puffs circle { animation: puff 1.1s ease-out infinite; }
.roller.is-driving .roller__puffs circle:nth-child(2) { animation-delay: .35s; }
.roller.is-driving .roller__puffs circle:nth-child(3) { animation-delay: .7s; }
.roller.is-driving svg { animation: rumble .18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes puff { 0% { opacity: .85; transform: translate(0, 4px) scale(.5); } 100% { opacity: 0; transform: translate(-24px, -22px) scale(1.6); } }
@keyframes rumble { 50% { transform: translateY(1px); } }
.roller.is-driving .roller__pulse, .roller.was-clicked .roller__pulse { animation: none; opacity: 0; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(255, 215, 122, .75); } 80%, 100% { box-shadow: 0 0 0 14px rgba(255, 215, 122, 0); } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2), .js .projects .reveal:nth-child(2), .js .gallery .reveal:nth-child(3n+2) { transition-delay: .08s; }
.js .cards .reveal:nth-child(3), .js .projects .reveal:nth-child(3), .js .gallery .reveal:nth-child(3n) { transition-delay: .16s; }
.js .cards .reveal:nth-child(4) { transition-delay: .24s; }
.card, .project { transition: transform .25s ease, box-shadow .25s ease, opacity .6s ease; }
.card:hover, .project:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16,32,48,.06), 0 16px 36px rgba(16,32,48,.12); }
.card:hover .card__icon { background: var(--brand-btn); color: #fff; }
.card__icon { transition: background-color .25s, color .25s; }
.project__media img { transition: transform .5s ease; }
.project:hover .project__media img { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .hero__bridge.draw path { stroke-dashoffset: 0; }
}

/* Crane in page headers */
.page-head { overflow: hidden; }
.page-head__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head__text { min-width: 0; }
.crane { flex: none; width: 260px; margin: -24px 0 calc(-1 * clamp(32px, 4vw, 48px)); cursor: pointer; }
.crane svg { width: 100%; height: auto; overflow: visible; }
.crane path { fill: none; stroke: var(--blue-text); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.crane .thin { stroke-width: 1.5; }
.crane__weight, .crane__cab { fill: var(--blue-text); opacity: .55; }
.crane .crane__cable { stroke: var(--muted); stroke-width: 1.5; opacity: .9; transform-box: view-box; transform-origin: 0 58px; }
.crane .crane__hook { fill: var(--muted); stroke: none; opacity: 1; }
.crane__beam { fill: var(--brand-btn); }
.crane__trolley { animation: trolley 11s ease-in-out infinite alternate; }
.crane__load { transform-box: view-box; transform-origin: 0 58px; animation: sway 3.2s ease-in-out infinite alternate; }
@keyframes trolley { from { transform: translateX(118px); } to { transform: translateX(262px); } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.crane.is-lift .crane__cable { animation: cable 2.6s ease-in-out; }
.crane.is-lift .crane__drop { animation: drop 2.6s ease-in-out; }
@keyframes cable { 50% { transform: scaleY(1.7); } }
@keyframes drop { 50% { transform: translateY(49px); } }
.crane:hover .crane__beam { fill: var(--brand-btn-hover); }
@media (max-width: 760px) { .crane { display: none; } }

/* Dump truck above footer */
.footer { padding-top: 0; }
.footer__road { position: relative; height: 64px; margin-bottom: 40px; border-bottom: 3px solid var(--border); }
.truck { position: absolute; bottom: -3px; left: 0; width: 120px; height: 64px; cursor: pointer; transform: translateX(var(--tx, -140px)); }
.truck svg { width: 100%; height: 100%; overflow: visible; }
.t-cab { fill: var(--brand-btn); }
.t-glass { fill: #bfe0f7; }
.t-bed { fill: #6b7680; }
.t-load { fill: #a49786; }
.t-rib { stroke: #4f5962; stroke-width: 2; fill: none; }
.t-chassis { fill: #3d454d; }
.t-tire { fill: #1d2228; stroke: #59636d; stroke-width: 2; }
.t-hub { fill: #c9d1d8; }
.t-spoke { stroke: #59636d; stroke-width: 2; fill: none; }
.gravel { position: absolute; bottom: 0; left: var(--gx, 0px); width: 44px; height: 22px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: #a49786; background-image: radial-gradient(rgba(0,0,0,.18) 1.2px, transparent 1.4px); background-size: 6px 6px; opacity: 0; transform: scale(.2); transform-origin: bottom; transition: opacity .4s, transform .7s ease-out; }
.gravel.is-on { opacity: 1; transform: scale(1); }
.truck__bed { transform-box: view-box; transform-origin: 14px 56px; transition: transform .9s ease-in-out; }
.truck.is-dumping .truck__bed { transform: rotate(-32deg); }
.truck.is-driving .truck__wheel { animation: spin .7s linear infinite; }
.truck:hover .t-cab { filter: brightness(1.15); }

@media (prefers-reduced-motion: reduce) {
  .crane__trolley { transform: translateX(200px); }
}

.checklist--single { grid-template-columns: 1fr; }

/* Compact project cards (no photo) */
.project--compact .project__top { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.project--compact .project__top .card__icon { margin: 0; }
.tag--inline { position: static; }
.project--compact .project__body { padding-top: 14px; }
.project:hover .card__icon { background: var(--brand-btn); color: #fff; }
.project-group__sum { margin: -8px 0 24px; }
.project-group__sum strong { color: var(--brand-text); }
.project__badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.badge--live { font-size: .78rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--blue-text); display: inline-flex; align-items: center; gap: 6px; }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fa865; box-shadow: 0 0 0 0 rgba(47,168,101,.6); animation: live 1.8s ease-out infinite; }
@keyframes live { 70%, 100% { box-shadow: 0 0 0 7px rgba(47,168,101,0); } }

/* Road quality levels: each new pass of the roller builds a better road */
.road__surface { position: absolute; left: 0; top: 0; bottom: 0; width: 100vw; background: #2b3138; transition: background-color .3s; }
.road__surface[data-lvl="2"] { background: #262b31; }
.road__surface[data-lvl="3"] { background: #22262b; }
[data-theme="dark"] .road__surface { background: #1b2026; }
[data-theme="dark"] .road__surface[data-lvl="2"], [data-theme="dark"] .road__surface[data-lvl="3"] { background: #171b20; }
.road__edges { display: none; position: absolute; inset: 9px 0; border-top: 3px solid #f2f5f8; border-bottom: 3px solid #f2f5f8; opacity: .85; }
.road__surface[data-lvl="2"] .road__edges, .road__surface[data-lvl="3"] .road__edges { display: block; }
.road__studs { display: none; position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px;
  background: radial-gradient(circle at 51px 4px, #ffc94d 0 3px, transparent 3.5px) 0 0 / 68px 8px repeat-x; animation: studs 2.4s ease-in-out infinite; }
.road__surface[data-lvl="3"] .road__studs { display: block; }
.road__surface[data-lvl="3"] .road__edges { inset: 9px 0; box-shadow: inset 0 3px 0 0 transparent; }
@keyframes studs { 50% { opacity: .55; filter: drop-shadow(0 0 4px #ffc94d); } }
@media (max-width: 600px) { .road__edges { inset: 7px 0; } }

/* Truck: unloads, leaves empty, comes back loaded; the pile grows */
.footer__road { overflow: hidden; }
.t-load { transition: transform .9s ease-in .25s, opacity .6s ease-in .45s; transform-box: view-box; }
.truck.is-dumping .t-load, .truck.is-empty .t-load { transform: translate(-16px, 22px); opacity: 0; }
.truck.is-reloading .t-load { transition: none; }
.gravel { left: var(--gx, 0px); width: var(--gw, 44px); height: var(--gh, 22px); transition: opacity .4s, transform .7s ease-out, width .8s ease-out, height .8s ease-out, left .8s ease-out; }

/* Road roller */
.roller { position: absolute; bottom: 2px; left: 0; width: 150px; height: 92px; padding: 0; border: 0; background: none; cursor: pointer; transform: translateX(var(--x, 40px)); will-change: transform; }
.r-body { fill: #7a2626; }
[data-theme="dark"] .r-body { fill: #a63a3a; }
.r-dark { fill: #3a2020; }
.r-glass { fill: #bfe0f7; }
.r-tire { fill: #1d2228; stroke: #59636d; stroke-width: 3; }
.r-drum { fill: #6b7680; stroke: #3d454d; stroke-width: 3; }
.r-hub { fill: #c9d1d8; }
.r-spoke { stroke: #3d454d; stroke-width: 3; fill: none; }
.roller.is-driving .roller__wheel, .roller.is-driving .roller__drum { animation: spin .9s linear infinite; }
.roller.is-reversing .roller__wheel, .roller.is-reversing .roller__drum { animation-direction: reverse; }
.roller__pulse { position: absolute; left: 34%; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #ffd77a; box-shadow: 0 0 0 0 rgba(255, 215, 122, .7); animation: beacon 1.8s ease-out infinite; }
@media (max-width: 600px) { .road__track { height: 72px; } .roller { width: 116px; height: 72px; } }
