/* ============================================================
   Ten Years AV Solutions — extends modern.css (same tokens/theme)
   ============================================================ */

.av-hero {
  padding: 11rem 0 5rem; position: relative; overflow: hidden;
  min-height: 78vh; display: flex; align-items: center;
}
/* Photo of an installed hall behind the headline. Dark enough that white text
   holds AA contrast over the busiest part of the image. */
.av-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/av/hall-led-wall.jpg") center / cover no-repeat;
  opacity: .48;
}
.av-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(10,10,10,.72) 48%, rgba(10,10,10,.45) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 42%);
}
.av-hero .wrap { position: relative; z-index: 1; }
.av-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); margin-bottom: 1.2rem; }
/* Headings pair a plain phrase with a .grad-text one; keep the gradient half
   whole so a two-word phrase can't break and leave "in." alone on a line. */
.section-head h2 .grad-text, .av-hero h1 .grad-text { white-space: nowrap; }
.av-hero .lead { color: #c4c4c4; max-width: 64ch; font-size: 1.08rem; }
.av-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* ---------- the distinction: temporary vs permanent ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.split-card {
  padding: 2rem 1.9rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .8rem;
}
.split-card.is-this { border-color: rgba(230,51,41,.5); background: rgba(230,51,41,.06); }
.split-card .tag {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: var(--muted);
}
.split-card.is-this .tag { color: var(--accent); }
.split-card h3 { font-size: 1.3rem; line-height: 1.2; }
.split-card .word { font-size: 2.4rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.split-card.is-that .word { color: #6e6e6e; }
.split-card.is-this .word { color: var(--accent); }
.split-card p { color: #b9b9b9; font-size: .94rem; }
.split-card .go { margin-top: auto; padding-top: .8rem; font-size: .88rem; font-weight: 600; color: var(--text); }
.split-card .go:hover { color: var(--accent); }
.split-note {
  margin-top: 1.4rem; text-align: center; color: var(--muted);
  font-size: 1rem; letter-spacing: .01em;
}
.split-note b { color: var(--text); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.8rem; counter-reset: s; }
.step {
  padding: 1.7rem 1.4rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .6rem;
}
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem;
  color: var(--accent); line-height: 1;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .89rem; }

/* ---------- systems ---------- */
.systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; margin-top: 2.8rem; }
.system {
  padding: 1.9rem 1.6rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s;
}
.system:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.26); }
.system svg { width: 30px; color: var(--accent); margin-bottom: 1rem; }
.system h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.system p { color: var(--muted); font-size: .9rem; }
.system ul { list-style: none; margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.system li {
  font-size: .74rem; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: #bdbdbd;
}

/* ---------- installed work: photo marquee ---------- */
/* Standalone rather than reusing .marquee — those rules size and white-box
   client logos, which would fight photographs. Shares only the `scroll`
   keyframes and the duplicate-the-track trick in modern.js. */
.photo-marquee {
  margin-top: 2.8rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pm-track {
  display: flex; gap: 1rem; width: max-content; align-items: stretch;
  animation: scroll 46s linear infinite;
}
.photo-marquee:hover .pm-track { animation-play-state: paused; }
.pm-item {
  position: relative; flex-shrink: 0; margin: 0;
  height: 300px; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border); background: var(--bg-2);
}
.pm-item img {
  height: 100%; width: auto; max-width: none; display: block;
  object-fit: cover; transition: transform .6s var(--ease);
}
.pm-item:hover img { transform: scale(1.05); }
.pm-item::after {
  content: "⤢"; position: absolute; z-index: 2; pointer-events: none;
  bottom: 10px; right: 13px; color: #fff; font-size: 1.05rem;
  opacity: 0; transform: translateY(6px); transition: .35s;
}
.pm-item:hover::after { opacity: 1; transform: none; }
.pm-item figcaption {
  position: absolute; z-index: 1; inset: auto 0 0 0; pointer-events: none;
  padding: 2rem .95rem .8rem 1rem;
  font-size: .82rem; font-weight: 600; line-height: 1.3; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.9) 18%, transparent 100%);
  opacity: 0; transform: translateY(6px); transition: .35s;
}
.pm-item:hover figcaption { opacity: 1; transform: none; }

/* ---------- brands ---------- */
.brand-grid {
  list-style: none; margin-top: 2.6rem; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}
.bm-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.3rem 1rem 1.15rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.bm-item:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); background: var(--surface-2); }

/* Logos arrive on white, black and transparent backgrounds in every colour.
   A white plate is the one surface all of them read on. */
.bm-mark {
  display: grid; place-items: center; width: 100%; height: 70px;
  background: #fff; border-radius: 10px; padding: .55rem .9rem; margin-bottom: .85rem;
}
.bm-item img {
  max-height: 44px; max-width: 130px; width: auto; object-fit: contain;
  filter: grayscale(1) contrast(.9) opacity(.7); transition: filter .3s;
}
.bm-item:hover img { filter: none; }
.bm-word {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.25rem;
  letter-spacing: .05em; color: #6f6f6f; white-space: nowrap; transition: color .3s;
}
.bm-item:hover .bm-word { color: #111; }

.bm-name { font-size: .88rem; font-weight: 600; line-height: 1.25; }
/* Printed, not hovered — a phone has no hover, so this was invisible on
   mobile when it only appeared on pointer-over. */
.bm-cat { margin-top: .2rem; font-size: .74rem; line-height: 1.3; color: var(--muted); }

/* ---------- who we work with ---------- */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.sector { padding: 1.6rem 1.5rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.sector h3 { font-size: 1rem; margin-bottom: .5rem; }
.sector p { color: var(--muted); font-size: .87rem; }
.sectors-note { margin-top: 1.6rem; color: var(--muted); font-size: .92rem; }

/* ---------- closing CTA ---------- */
.av-cta {
  margin: 4rem 0 6rem; padding: 3.2rem 2.5rem; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(230,51,41,.10) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(230,51,41,.3);
}
.av-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: .9rem; }
.av-cta p { color: #c2c2c2; max-width: 56ch; margin: 0 auto 1.8rem; }
.av-cta .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  /* #work's own column count outranks the .gallery media queries in
     modern.css, so it has to step down here too. */
  .pm-item { height: 230px; }
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: .8rem; }
}
@media (max-width: 720px) {
  .av-hero { padding: 8rem 0 3rem; min-height: 0; }
  .pm-item { width: 74vw; height: 200px; border-radius: 12px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .bm-mark { height: 58px; }
  .bm-item { padding: 1rem .7rem .95rem; }
  .bm-item img { max-height: 36px; max-width: 104px; }
  .bm-word { font-size: 1.05rem; }
  .pm-item img { width: 100%; height: 100%; object-fit: cover; }
  .av-hero::before { opacity: .3; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .av-cta { padding: 2.4rem 1.4rem; margin: 3rem 0 4rem; }
  .av-hero .hero-actions .btn, .av-cta .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  /* No auto-scroll — let the visitor swipe through instead of freezing the
     track mid-loop, which would hide most of the photos. */
  .pm-track { animation: none; width: auto; }
  .photo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
