/* =========================================================
   Altamira Construction Group — shared stylesheet
   Built on Bootstrap 5.3. Custom CSS is kept deliberately
   small: Bootstrap utilities do the layout work, this file
   supplies the brand identity (colour, type, rules, cards).

   TO REBRAND: change the tokens in :root below, then
   search/replace the word "Altamira" across the HTML files.
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour — site materials, not screen gradients */
  --ink:        #14171a;   /* near-black graphite: text, navbar, footer */
  --slab:       #22272b;   /* dark surface panels */
  --steel:      #4a5158;   /* secondary text on light */
  --concrete:   #8a9096;   /* muted labels, hairlines on dark */
  --formwork:   #f2f1ee;   /* page background, warm off-white */
  --paper:      #ffffff;   /* card surface */
  --amber:      #a8520d;   /* single accent — oxide marking paint (AA contrast on light) */
  --amber-soft: #e8871f;   /* accent on dark backgrounds */
  --line:       rgba(20, 23, 26, .14);
  --line-dark:  rgba(255, 255, 255, .16);

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Rhythm */
  --section-y: 5.5rem;
}

@media (min-width: 992px) {
  :root { --section-y: 7rem; }
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--formwork);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;           /* guarantees no sideways scroll on mobile */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }

p { color: var(--steel); }
.lead { font-size: 1.075rem; line-height: 1.7; color: var(--steel); }

a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--amber); }

img { max-width: 100%; }

.section { padding-block: var(--section-y); }
.section-tight { padding-block: calc(var(--section-y) * .66); }

.bg-formwork { background: var(--formwork); }
.bg-paper    { background: var(--paper); }
.bg-ink      { background: var(--ink); }
.bg-slab     { background: var(--slab); }
.text-steel  { color: var(--steel) !important; }
.text-amber  { color: var(--amber) !important; }

/* Accessibility: always show where the keyboard is */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.accordion-button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: none !important;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--amber); color: #fff; padding: .65rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Signature device: the spec rule ----------
   A survey/drawing-sheet tick strip. Used to open sections and
   to separate blocks. It is the one recurring ornament on the
   site — everything else stays plain.                        */
.spec-rule {
  height: 12px;
  border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to right, var(--line) 0 1px, transparent 1px 22px);
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: top left;
}
.spec-rule--dark {
  border-top-color: var(--line-dark);
  background-image: repeating-linear-gradient(
    to right, var(--line-dark) 0 1px, transparent 1px 22px);
}
.spec-rule--accent {
  border-top-color: var(--amber);
  background-image: repeating-linear-gradient(
    to right, var(--amber) 0 1px, transparent 1px 22px);
}

/* Section eyebrow: number + label, mirrors a drawing sheet reference */
.eyebrow {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: baseline;
  gap: .7rem;
}
.eyebrow .sec-no {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}
.eyebrow--dark .sec-no { color: #fff; }
.eyebrow--dark { color: var(--amber-soft); }

/* ---------- 4. Buttons ---------- */
.btn {
  --bs-btn-border-radius: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .04em;
  padding: .8rem 1.5rem;
  border-radius: 0;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-brand {
  background: var(--amber); border: 1px solid var(--amber); color: #fff;
}
.btn-brand:hover, .btn-brand:focus { background: #833f0a; border-color: #833f0a; color: #fff; }

.btn-ink { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.btn-ink:hover, .btn-ink:focus { background: #000; border-color: #000; color: #fff; }

.btn-outline-ink { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-outline-ink:hover, .btn-outline-ink:focus { background: var(--ink); color: #fff; }

.btn-outline-light-ink { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-light-ink:hover, .btn-outline-light-ink:focus { background: #fff; color: var(--ink); border-color: #fff; }

/* Text link with an arrow — used instead of endless "Learn more" buttons */
.link-action {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
  display: inline-block;
}
.link-action:hover { border-bottom-color: var(--ink); }

/* ---------- 5. Demo notice + markers ---------- */
.demo-bar {
  background: var(--slab);
  color: #d8d5d0;
  font-size: .78rem;
  letter-spacing: .02em;
}
.demo-bar .btn-close { filter: invert(1) grayscale(1); opacity: .6; }

.demo-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--line);
  padding: .12rem .4rem;
  vertical-align: middle;
}

/* ---------- 6. Navigation ---------- */
.navbar-main {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-block: .85rem;
  transition: padding .2s ease;
}
.navbar-main.is-scrolled { padding-block: .5rem; border-bottom-color: var(--amber); }

.brand-mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark:hover { color: inherit; }
.brand-glyph {
  width: 34px; height: 34px; flex: none;
  border: 2px solid var(--amber);
  position: relative;
}
.brand-glyph::after {
  content: ""; position: absolute; inset: 5px 5px auto auto;
  width: 12px; height: 12px; background: var(--amber);
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; font-size: 1.02rem; line-height: 1;
}
.brand-sub {
  display: block; font-size: .58rem; letter-spacing: .22em;
  color: var(--concrete); font-weight: 600; margin-top: 3px;
}

.navbar-main .nav-link {
  color: #d7d9db;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .93rem;
  letter-spacing: .02em;
  padding: .5rem .9rem;
  position: relative;
}
.navbar-main .nav-link:hover { color: #fff; }
.navbar-main .nav-link.active { color: #fff; }
.navbar-main .nav-link.active::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem;
  height: 2px; background: var(--amber);
}
.navbar-toggler { border-color: rgba(255,255,255,.3); padding: .35rem .55rem; border-radius: 0; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-main .navbar-nav { padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: .75rem; }
  .navbar-main .nav-link.active::after { left: .9rem; right: auto; width: 22px; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.02); }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,17,19,.94) 0%, rgba(15,17,19,.82) 45%, rgba(15,17,19,.42) 100%);
}
.hero__body { position: relative; padding-block: clamp(4rem, 11vw, 8.5rem); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero p { color: #cfd2d5; }

.hero-strip {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
}
.hero-strip dl { margin: 0; }
.hero-strip dt {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--concrete); font-weight: 600;
}
.hero-strip dd {
  margin: .3rem 0 0; color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
}

/* Compact hero for interior pages */
.page-hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); opacity: .55; }
.page-hero__body { position: relative; padding-block: clamp(3rem, 8vw, 5.5rem); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c9ccd0; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: var(--concrete); font-size: .85rem; }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: var(--concrete); }

/* ---------- 8. Statistics ---------- */
.stat { padding: 1.5rem 0; }
.stat__value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.1rem);
  font-variant-numeric: tabular-nums; line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label {
  margin-top: .5rem; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel); font-weight: 600;
}
.stat-grid > [class*="col"] { border-bottom: 1px solid var(--line); }
.stat-grid > [class*="col"] + [class*="col"] { border-left: 1px solid var(--line); }
@media (max-width: 767.98px) {
  .stat-grid > [class*="col"]:nth-child(odd) { border-left: 0; }
}

/* ---------- 9. Cards: services, projects, generic ---------- */
.card-flat {
  background: var(--paper);
  border: 1px solid var(--line);
  height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
.card-flat:hover { border-color: var(--ink); }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--amber); font-size: 1.15rem;
}

/* Project card styled as a drawing title block */
.project-card { display: block; text-decoration: none; height: 100%; }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--slab); }
.project-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.88); transition: transform .55s ease, filter .3s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.05); filter: saturate(1); }
.project-card__badge {
  position: absolute; left: 0; top: 0;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; padding: .38rem .7rem;
}
.project-card__title { margin: 0; font-size: 1.12rem; }
.project-card:hover .project-card__title { color: var(--amber); }
.project-card__place {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--steel); font-weight: 600;
}

/* Title block: the three-cell data strip under a project */
.titleblock {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); margin-top: 1rem;
}
.titleblock div { padding: .6rem .7rem; }
.titleblock div + div { border-left: 1px solid var(--line); }
.titleblock dt {
  font-size: .6rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--steel); font-weight: 600; margin: 0;
}
.titleblock dd {
  margin: .2rem 0 0; font-family: var(--font-display); font-weight: 600;
  font-size: .84rem; color: var(--ink);
}

/* ---------- 10. Filters, search ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-btn {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: var(--steel);
  border: 1px solid var(--line); padding: .5rem .95rem; cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.form-control, .form-select {
  border-radius: 0; border: 1px solid var(--line); padding: .7rem .85rem;
  background: var(--paper); font-size: .95rem;
}
.form-control:focus, .form-select:focus { border-color: var(--ink); box-shadow: none; }
.form-label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.form-text { font-size: .8rem; }
.required-star { color: var(--amber); }

.search-field { position: relative; }
.search-field .bi { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--concrete); }
.search-field .form-control { padding-left: 2.5rem; }

.empty-state { border: 1px dashed var(--line); padding: 3rem 1rem; text-align: center; }

/* ---------- 11. Process timeline ---------- */
.process-step { position: relative; padding-top: 1.6rem; }
.process-step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line);
}
.process-step::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; background: var(--amber);
}
.process-step__no {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  font-variant-numeric: tabular-nums; color: var(--concrete); line-height: 1;
}
.process-step h3 { font-size: 1.02rem; margin: .55rem 0 .35rem; }
.process-step p { font-size: .9rem; margin: 0; }

/* ---------- 12. Sector list ---------- */
.sector-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem .25rem; border-bottom: 1px solid var(--line-dark);
  text-decoration: none; color: #fff;
}
.sector-row:hover { color: var(--amber-soft); }
.sector-row__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.sector-row__meta { color: var(--concrete); font-size: .85rem; text-align: right; }

/* ---------- 13. Testimonials ---------- */
.quote-block { border: 1px solid var(--line); background: var(--paper); padding: 1.6rem; height: 100%; }
.quote-block p { color: var(--ink); font-size: 1rem; }
.quote-block footer { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: 1.1rem; font-size: .86rem; color: var(--steel); }
.quote-block cite { font-style: normal; font-weight: 600; color: var(--ink); display: block; font-family: var(--font-display); }

/* ---------- 14. Credentials ---------- */
.credential {
  border: 1px solid var(--line); background: var(--paper); padding: 1.25rem;
  width: 100%; text-align: left; cursor: pointer; height: 100%;
  transition: border-color .2s ease;
}
.credential:hover { border-color: var(--ink); }
.credential__doc {
  aspect-ratio: 1 / 1.35; border: 1px solid var(--line); margin-bottom: 1rem;
  background:
    repeating-linear-gradient(to bottom, transparent 0 12px, var(--line) 12px 13px) center / 68% 55% no-repeat,
    var(--formwork);
  position: relative;
}
.credential__doc::before {
  content: attr(data-seal); position: absolute; inset: auto 0 12% 0; text-align: center;
  font-family: var(--font-display); font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--steel);
}
.credential__doc::after {
  content: ""; position: absolute; top: 12%; left: 16%; width: 26%; height: 12%;
  border: 2px solid var(--amber); opacity: .5;
}
.credential h3 { font-size: .98rem; margin-bottom: .2rem; }
.credential p { font-size: .84rem; margin: 0; }

/* ---------- 15. Gallery ---------- */
.gallery-item { position: relative; display: block; padding: 0; border: 0; background: none; width: 100%; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "VIEW"; position: absolute; right: .55rem; bottom: .55rem;
  font-family: var(--font-display); font-size: .62rem; font-weight: 700; letter-spacing: .16em;
  color: #fff; background: rgba(20,23,26,.8); padding: .28rem .5rem;
  opacity: 0; transition: opacity .2s ease;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.modal-content { border-radius: 0; border: 0; }

/* ---------- 16. Before / after slider ---------- */
.ba {
  position: relative; overflow: hidden; user-select: none;
  aspect-ratio: 16 / 10; background: var(--slab);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff;
  transform: translateX(-1px); pointer-events: none;
}
.ba__handle::after {
  content: "\2194";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-size: 1rem;
}
.ba__tag {
  position: absolute; bottom: .75rem; font-family: var(--font-display); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: rgba(20,23,26,.72); padding: .3rem .6rem;
}
.ba__tag--l { left: .75rem; }
.ba__tag--r { right: .75rem; }
.ba-range { width: 100%; margin-top: .75rem; accent-color: var(--amber); }

/* ---------- 17. Data table ---------- */
.matrix { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--paper); }
.matrix th, .matrix td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; }
.matrix thead th {
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); background: var(--formwork); font-weight: 700;
}
.matrix tbody th { font-weight: 600; font-family: var(--font-display); }
.matrix .yes { color: var(--amber); font-weight: 700; }
.matrix td.dash { color: var(--concrete); }

/* ---------- 18. Accordion (FAQ) ---------- */
.accordion-item { border: 1px solid var(--line); border-radius: 0 !important; margin-bottom: .6rem; background: var(--paper); }
.accordion-button {
  border-radius: 0 !important; font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; color: var(--ink); background: var(--paper); padding: 1.05rem 1.15rem;
}
.accordion-button:not(.collapsed) { background: var(--formwork); color: var(--ink); box-shadow: none; }
.accordion-button::after { width: .95rem; height: .95rem; background-size: .95rem; }
.accordion-body { color: var(--steel); font-size: .95rem; padding-top: 0; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--ink); color: #b9bdc1; padding-top: 4rem; }
.site-footer h2, .site-footer h3 {
  color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1.1rem; font-weight: 700;
}
.site-footer a { color: #b9bdc1; text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--amber-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-block: 1.4rem; font-size: .84rem; }
.social-link {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); color: #fff;
}
.social-link:hover { background: var(--amber); border-color: var(--amber); color: #fff; }

/* ---------- 20. CTA band ---------- */
.cta-band { background: var(--slab); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4c8cb; }

/* ---------- 21. Utilities ---------- */
.back-to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1030;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--amber); color: #fff; }

.media-frame { position: relative; }
.media-frame img { width: 100%; object-fit: cover; }
.media-frame--offset::before {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 55%; height: 55%; border: 1px solid var(--amber); z-index: -1;
}

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; color: var(--steel); }
.list-check li::before {
  content: "\2713"; position: absolute; left: 0; top: -1px;
  color: var(--amber); font-weight: 700;
}

.hairline-list { list-style: none; padding: 0; margin: 0; }
.hairline-list li { border-bottom: 1px solid var(--line); padding: .8rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.hairline-list li span:first-child { color: var(--steel); font-size: .88rem; }
.hairline-list li span:last-child { font-weight: 600; text-align: right; font-family: var(--font-display); font-size: .9rem; }

.map-placeholder {
  aspect-ratio: 16 / 7; border: 1px solid var(--line); background:
    repeating-linear-gradient(45deg, rgba(20,23,26,.035) 0 12px, transparent 12px 24px), var(--paper);
  display: grid; place-items: center; text-align: center; padding: 2rem;
}

.milestone { position: relative; padding-left: 2.2rem; padding-bottom: 2rem; border-left: 1px solid var(--line); }
.milestone:last-child { padding-bottom: 0; }
.milestone::before {
  content: ""; position: absolute; left: -5px; top: .35rem; width: 9px; height: 9px; background: var(--amber);
}
.milestone__year { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }

.team-card__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--slab); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter .35s ease; }
.team-card:hover .team-card__media img { filter: grayscale(0); }

/* If a hotlinked photo fails to load, show a neutral block instead of a broken icon */
img.img-fallback {
  background:
    repeating-linear-gradient(45deg, rgba(20,23,26,.05) 0 10px, transparent 10px 20px),
    var(--concrete);
  object-fit: cover;
}

/* Sticky sidebar on large screens only */
@media (min-width: 992px) {
  .sticky-side { position: sticky; top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
