@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/lato-latin-900-normal.woff2") format("woff2"); }

/* AVI Infrastructure Inc. website
   Layout: a drawing sheet. Black bands top and bottom, paper body on one
   measured grid, and every page closes with a title block, as the
   services brochure does. Type and colour follow the brochure and logo. */
:root {
  color-scheme: light;

  /* colour */
  --ink: #141413;
  --ink-2: #22211e;
  --ink-line: #413f38;
  --paper: #fbfbf9;
  --paper-2: #f1f0ea;
  --line: #d8d6cc;
  --text: #1f1e1b;
  --muted: #5c5a52;
  --on-ink: #f5f4ee;
  --on-ink-muted: #b9b6aa;
  --gold: #e1cb59;
  --gold-hi: #ecdb7d;
  --gold-deep: #766310;

  /* type: one family, as in the brochure */
  --display: "Lato", "Carlito", "Segoe UI", Arial, sans-serif;
  --body: "Lato", "Carlito", "Segoe UI", Arial, sans-serif;

  /* layout */
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* contextual, redefined inside .tint and .ink bands */
  --surface: var(--paper);
  --rule: var(--line);
  --soft: var(--muted);
  --tag: var(--gold-deep);
  --focus: var(--gold-deep);
}
.tint { --surface: var(--paper-2); background: var(--paper-2); }
.ink {
  --surface: var(--ink);
  --rule: var(--ink-line);
  --soft: var(--on-ink-muted);
  --tag: var(--gold);
  --focus: var(--gold);
  background: var(--ink);
  color: var(--on-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
svg { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--tag); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--tag);
}
.skip {
  position: absolute; left: -999rem;
  background: var(--gold); color: var(--ink);
  padding: 0.5rem 0.75rem; font-weight: 700; font-size: 0.85rem;
}
.skip:focus { left: var(--gutter); top: 0.5rem; z-index: 5; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--ink-line); position: sticky; top: 0; z-index: 50; background: rgba(20, 20, 19, 0.94); }
@supports (backdrop-filter: blur(1px)) { .site-head { background: rgba(20, 20, 19, 0.9); backdrop-filter: blur(10px); } }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 0.9rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--on-ink); }
.brand img { display: block; width: 4rem; height: auto; }
.brand-name { display: flex; flex-direction: column; gap: 0.2rem; }
.brand-name b { font-weight: 900; font-size: 1.02rem; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.1; }
.brand-name small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--gold); line-height: 1.3; }
.nav { display: flex; flex-wrap: wrap; gap: 0.1rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding-block: 0.4rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--on-ink-muted); text-decoration: none; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--on-ink); }
.nav a[aria-current="page"] { color: var(--on-ink); border-bottom-color: var(--gold); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; padding: 0.85rem 1.25rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--gold); background: var(--gold); color: var(--ink);
}
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn.ghost { background: transparent; color: var(--on-ink); border-color: var(--ink-line); }
.btn.ghost:hover { border-color: var(--on-ink-muted); background: transparent; }
.btn.dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn.dark:hover { background: var(--ink-2); border-color: var(--ink-2); }

/* ---------- home hero: full-bleed photos that cross-fade (CSS only, no scripts) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.hero-media .slide {
  position: absolute; inset: 0; background-color: var(--ink); background-size: cover; background-repeat: no-repeat;
  opacity: 0; transform: scale(1.02); transform-origin: 60% 50%;
  animation: hero-fade 36s linear infinite both; will-change: opacity, transform;
}
.hero-media .slide:nth-child(1) { animation-delay: -1.2s; }
.hero-media .slide:nth-child(2) { animation-delay: 4.8s; }
.hero-media .slide:nth-child(3) { animation-delay: 10.8s; }
.hero-media .slide:nth-child(4) { animation-delay: 16.8s; }
.hero-media .slide:nth-child(5) { animation-delay: 22.8s; }
.hero-media .slide:nth-child(6) { animation-delay: 28.8s; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 20, 19, 0.94) 0%, rgba(20, 20, 19, 0.84) 36%, rgba(20, 20, 19, 0.42) 70%, rgba(20, 20, 19, 0.28) 100%),
    linear-gradient(0deg, rgba(20, 20, 19, 1) 0%, rgba(20, 20, 19, 0) 34%);
}
@keyframes hero-fade {
  0% { opacity: 0; transform: scale(1.02); }
  3.3% { opacity: 1; }
  16.7% { opacity: 1; }
  20% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}
.hero-grid { display: flex; align-items: center; min-height: clamp(30rem, 74vh, 44rem); padding-block: clamp(3rem, 7vw, 5.5rem) 2rem; }
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; max-width: 44rem; }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: var(--on-ink); opacity: 0.86; max-width: 37rem; font-size: 1.125rem; }
.hero-tags-wrap { padding-bottom: 1.75rem; }
.hero-tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.hero-tags li {
  position: relative; padding-top: 0.85rem; display: flex; gap: 0.5rem; align-items: baseline; min-width: 0;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink);
  opacity: 0.42; animation: hero-tag 36s linear infinite both;
}
.hero-tags .n { color: var(--gold); }
.hero-tags li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, 0.22); }
.hero-tags i { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: hero-bar 36s linear infinite both; }
.hero-tags li:nth-child(1), .hero-tags li:nth-child(1) i { animation-delay: -1.2s; }
.hero-tags li:nth-child(2), .hero-tags li:nth-child(2) i { animation-delay: 4.8s; }
.hero-tags li:nth-child(3), .hero-tags li:nth-child(3) i { animation-delay: 10.8s; }
.hero-tags li:nth-child(4), .hero-tags li:nth-child(4) i { animation-delay: 16.8s; }
.hero-tags li:nth-child(5), .hero-tags li:nth-child(5) i { animation-delay: 22.8s; }
.hero-tags li:nth-child(6), .hero-tags li:nth-child(6) i { animation-delay: 28.8s; }
@keyframes hero-tag { 0% { opacity: 0.42; } 2.5% { opacity: 1; } 17.5% { opacity: 1; } 19% { opacity: 0.42; } 100% { opacity: 0.42; } }
@keyframes hero-bar { 0% { transform: scaleX(0); } 3.3% { transform: scaleX(0); } 20% { transform: scaleX(1); } 20.01% { transform: scaleX(0); } 100% { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-media .slide, .hero-tags li, .hero-tags i { animation: none; }
  .hero-media .slide:nth-child(1) { opacity: 1; transform: none; }
  .hero-tags li:nth-child(1) { opacity: 1; }
}

/* ---------- inner-page photo banners ---------- */
.page-head.photo { position: relative; isolation: isolate; overflow: hidden; }
.page-head.photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background-color: var(--ink); background-size: cover; }
.page-head.photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 20, 19, 0.95) 0%, rgba(20, 20, 19, 0.82) 45%, rgba(20, 20, 19, 0.45) 100%);
}
.page-head.photo .wrap { min-height: clamp(15rem, 34vh, 22rem); justify-content: flex-end; padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-head.photo p:not(.label) { color: var(--on-ink); opacity: 0.86; }

/* ---------- experience features ---------- */
.features { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4.5rem); }
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature:nth-child(even) img { order: 2; }
.feature img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-top: 3px solid var(--gold); }
.feature-body { display: flex; flex-direction: column; gap: 0.8rem; }
.feature-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature-body p { color: var(--soft); }

/* ---------- sector photo cards ---------- */
.sector-cards { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.sector-cards a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--rule); overflow: hidden; }
.sector-cards img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.6s ease; }
.sector-cards a:hover img { transform: scale(1.05); }
.sc-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.15rem 1.25rem 1.4rem; border-top: 3px solid var(--gold); position: relative; background: var(--surface); }
.sc-n { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; color: var(--tag); }
.sector-cards b { font-size: 1.25rem; font-weight: 900; line-height: 1.2; }
.sc-body > span:last-child { color: var(--soft); font-size: 0.96rem; }
.detail-fig figcaption { border-top: 1px solid var(--ink-line); padding-top: 0.6rem; color: var(--on-ink-muted); }
.d-line { fill: none; stroke: var(--on-ink-muted); stroke-width: 1.4; }
.d-part { fill: var(--ink-2); stroke: var(--on-ink-muted); stroke-width: 1.4; }
.d-gold { fill: var(--ink-2); stroke: var(--gold); stroke-width: 1.6; }
.d-goldline { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.d-cl { fill: none; stroke: var(--ink-line); stroke-width: 1.2; stroke-dasharray: 14 4 3 4; }
.d-text { fill: var(--on-ink-muted); stroke: none; font-family: var(--body); font-weight: 700; font-size: 10.5px; letter-spacing: 0.14em; }
.d-textgold { fill: var(--gold); stroke: none; font-family: var(--body); font-weight: 900; font-size: 13px; }

.facts { border-top: 1px solid var(--ink-line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ink-line); border-inline: 1px solid var(--ink-line); }
.facts li { background: var(--ink); padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.facts b { font-weight: 900; font-size: 1.9rem; line-height: 1.05; color: var(--gold); }
.facts span { font-size: 0.9rem; color: var(--on-ink-muted); }

/* ---------- inner page head ---------- */
.page-head .wrap { display: flex; flex-direction: column; gap: 1rem; padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head p:not(.label) { color: var(--on-ink-muted); max-width: 44rem; font-size: 1.1rem; }

/* ---------- bands ---------- */
.band { padding-block: clamp(3rem, 7vw, 5rem); }
.band > .wrap { display: flex; flex-direction: column; gap: 2.25rem; }
.band > .wrap > * { min-width: 0; }
.band-head { display: flex; flex-direction: column; gap: 0.7rem; max-width: 46rem; }
.band-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.band-head p:not(.label) { color: var(--soft); }
.prose { display: flex; flex-direction: column; gap: 1rem; max-width: 42rem; }
.prose h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.prose p:not(.label) { color: var(--soft); }
.prose p.strong { color: inherit; font-size: 1.15rem; font-weight: 700; }

.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.items li { display: flex; flex-direction: column; gap: 0.6rem; border-top: 3px solid var(--gold); padding-top: 1rem; min-width: 0; }
.items h3 { font-size: 1.3rem; }
.items p { color: var(--soft); font-size: 0.98rem; }

.rows { margin: 0; border-top: 1px solid var(--rule); }
.rows > div {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0.5rem 2rem; padding-block: 1.2rem; border-bottom: 1px solid var(--rule);
}
.rows dt { font-weight: 900; font-size: 1.25rem; line-height: 1.2; }
.rows dd { margin: 0; color: var(--soft); }
.rows dd .ticks { margin-top: 0.75rem; }

.ticks { list-style: none; margin: 0; padding: 0; columns: 2 17rem; column-gap: 2.5rem; color: var(--soft); font-size: 0.98rem; }
.ticks li { position: relative; padding-left: 1.15rem; break-inside: avoid; padding-block: 0.2rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.42rem; height: 0.42rem; background: var(--gold); }

.notes { margin: 0; padding-left: 1.5rem; columns: 2 20rem; column-gap: 3.5rem; }
.notes li { break-inside: avoid; padding-block: 0.45rem; padding-left: 0.3rem; }
.notes li::marker { font-weight: 900; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3rem; align-items: start; }
.cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cells li { background: var(--surface); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.cells b { font-weight: 900; font-size: 1.35rem; letter-spacing: 0.03em; line-height: 1.15; }
.cells span { font-size: 0.88rem; color: var(--soft); }
.highlights { margin-top: clamp(2rem, 4vw, 3rem); }
.highlights b { color: var(--tag); font-size: 1.6rem; }
.cells li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.cells li:last-child:nth-child(3n+2) { grid-column: span 2; }

/* ---------- services ---------- */
.svc-list { display: flex; flex-direction: column; }
.svc {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.25rem 3rem; padding-block: 2.25rem; border-top: 1px solid var(--rule);
}
.svc:first-child { border-top: 3px solid var(--gold); }
.svc-title { display: flex; flex-direction: column; gap: 0.6rem; }
.svc h2 { font-size: 1.75rem; }
.svc-title p { color: var(--soft); font-size: 0.95rem; }
.svc-body { display: flex; flex-direction: column; gap: 1.4rem; }
.svc-body > p { max-width: 44rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 0.5rem; border-top: 3px solid var(--gold); padding-top: 1rem; min-width: 0; }
.steps li::before { content: "Stage " counter(step); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--tag); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--soft); font-size: 0.96rem; }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1.25rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--soft); border-bottom: 2px solid var(--tag); }
tbody th { font-weight: 900; white-space: nowrap; }
td { color: var(--soft); }

/* ---------- contact ---------- */
.kv { margin: 0; border-top: 3px solid var(--gold); }
.kv > div { padding-block: 1rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.25rem; }
.kv dd { margin: 0; font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.kv dd small { display: block; font-size: 0.92rem; font-weight: 400; color: var(--soft); }
.kv a { color: var(--text); }
.checklist { margin: 0; padding-left: 1.2rem; color: var(--soft); }
.checklist li + li { margin-top: 0.5rem; }
.checklist b { color: var(--text); font-weight: 700; }

/* ---------- closing call ---------- */
.call { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.call .prose { max-width: 40rem; }

/* ---------- title block footer ---------- */
.titleblock .wrap { display: flex; flex-direction: column; gap: 1.5rem; padding-block: 2.5rem 2rem; }
.foot-logo { display: block; width: 9.5rem; height: auto; }
.tb { margin: 0; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1.5fr) minmax(0, 2.6fr) minmax(0, 0.9fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.tb > div { background: var(--ink); padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.tb dt { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-ink-muted); }
.tb dd { margin: 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.tb dd small { display: block; font-size: 0.8rem; color: var(--on-ink-muted); }
.tb a { color: var(--on-ink); }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.82rem; color: var(--on-ink-muted); }
.fine ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.fine a { color: var(--on-ink-muted); }

/* ---------- narrower screens ---------- */
@media (max-width: 62rem) {
  .items, .steps, .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 54rem) {
  .split, .svc { grid-template-columns: minmax(0, 1fr); }
  .sector-cards { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) img { order: 0; }
  .hero-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.1rem; }
  .hero-media::after { background: linear-gradient(0deg, rgba(20, 20, 19, 0.96) 0%, rgba(20, 20, 19, 0.8) 45%, rgba(20, 20, 19, 0.62) 100%); }
}
@media (max-width: 44rem) {
  .rows > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 36rem) {
  .items, .steps, .tb, .facts ul { grid-template-columns: minmax(0, 1fr); }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells li:last-child:nth-child(3n+1):nth-child(even) { grid-column: auto; }
  .cells li:last-child:nth-child(3n+2):nth-child(even) { grid-column: auto; }
  .cells li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .brand img { width: 3.25rem; }
  .brand-name b { font-size: 0.92rem; letter-spacing: 0.12em; }
  .nav { gap: 0.1rem 0.9rem; }
  .nav a { font-size: 0.7rem; letter-spacing: 0.1em; }
  .hero-tags { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
  .hero-tags .t { display: none; }
}

/* ---------- gentle reveal on scroll (CSS only; skipped where unsupported or motion is reduced) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sector-cards li, .feature, .items li, .steps li, .cells, .svc, .notes li {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- photos (generated from photos.py) ---------- */
.hero-media .s1 { background-image: url(assets/photos/hero-1a-900.jpg); background-position: 62% 50%; }
@media (min-width: 56rem) { .hero-media .s1 { background-image: url(assets/photos/hero-1a-1920.jpg); } }
[data-photos="b"] .hero-media .s1 { background-image: url(assets/photos/hero-1b-900.jpg); background-position: 50% 50%; }
@media (min-width: 56rem) { [data-photos="b"] .hero-media .s1 { background-image: url(assets/photos/hero-1b-1920.jpg); } }
[data-photos="c"] .hero-media .s1 { background-image: url(assets/photos/hero-1c-900.jpg); background-position: 62% 50%; }
@media (min-width: 56rem) { [data-photos="c"] .hero-media .s1 { background-image: url(assets/photos/hero-1c-1920.jpg); } }
.hero-media .s2 { background-image: url(assets/photos/hero-2a-900.jpg); background-position: 62% 50%; }
@media (min-width: 56rem) { .hero-media .s2 { background-image: url(assets/photos/hero-2a-1920.jpg); } }
[data-photos="b"] .hero-media .s2 { background-image: url(assets/photos/hero-2b-900.jpg); background-position: 62% 50%; }
@media (min-width: 56rem) { [data-photos="b"] .hero-media .s2 { background-image: url(assets/photos/hero-2b-1920.jpg); } }
[data-photos="c"] .hero-media .s2 { background-image: url(assets/photos/hero-2c-900.jpg); background-position: 60% 50%; }
@media (min-width: 56rem) { [data-photos="c"] .hero-media .s2 { background-image: url(assets/photos/hero-2c-1920.jpg); } }
.hero-media .s3 { background-image: url(assets/photos/hero-3a-900.jpg); background-position: 55% 50%; }
@media (min-width: 56rem) { .hero-media .s3 { background-image: url(assets/photos/hero-3a-1920.jpg); } }
[data-photos="b"] .hero-media .s3 { background-image: url(assets/photos/hero-3b-900.jpg); background-position: 50% 50%; }
@media (min-width: 56rem) { [data-photos="b"] .hero-media .s3 { background-image: url(assets/photos/hero-3b-1920.jpg); } }
[data-photos="c"] .hero-media .s3 { background-image: url(assets/photos/hero-3c-900.jpg); background-position: 50% 55%; }
@media (min-width: 56rem) { [data-photos="c"] .hero-media .s3 { background-image: url(assets/photos/hero-3c-1920.jpg); } }
.hero-media .s4 { background-image: url(assets/photos/hero-4a-900.jpg); background-position: 62% 50%; }
@media (min-width: 56rem) { .hero-media .s4 { background-image: url(assets/photos/hero-4a-1920.jpg); } }
[data-photos="b"] .hero-media .s4 { background-image: url(assets/photos/hero-4b-900.jpg); background-position: 55% 50%; }
@media (min-width: 56rem) { [data-photos="b"] .hero-media .s4 { background-image: url(assets/photos/hero-4b-1920.jpg); } }
[data-photos="c"] .hero-media .s4 { background-image: url(assets/photos/hero-4c-900.jpg); background-position: 62% 45%; }
@media (min-width: 56rem) { [data-photos="c"] .hero-media .s4 { background-image: url(assets/photos/hero-4c-1920.jpg); } }
.hero-media .s5 { background-image: url(assets/photos/hero-5a-900.jpg); background-position: 78% 50%; }
@media (min-width: 56rem) { .hero-media .s5 { background-image: url(assets/photos/hero-5a-1920.jpg); } }
[data-photos="b"] .hero-media .s5 { background-image: url(assets/photos/hero-5b-900.jpg); background-position: 62% 50%; }
@media (min-width: 56rem) { [data-photos="b"] .hero-media .s5 { background-image: url(assets/photos/hero-5b-1920.jpg); } }
[data-photos="c"] .hero-media .s5 { background-image: url(assets/photos/hero-5c-900.jpg); background-position: 68% 50%; }
@media (min-width: 56rem) { [data-photos="c"] .hero-media .s5 { background-image: url(assets/photos/hero-5c-1920.jpg); } }
.hero-media .s6 { background-image: url(assets/photos/hero-6a-900.jpg); background-position: 55% 50%; }
@media (min-width: 56rem) { .hero-media .s6 { background-image: url(assets/photos/hero-6a-1920.jpg); } }
[data-photos="b"] .hero-media .s6 { background-image: url(assets/photos/hero-6b-900.jpg); background-position: 50% 50%; }
@media (min-width: 56rem) { [data-photos="b"] .hero-media .s6 { background-image: url(assets/photos/hero-6b-1920.jpg); } }
[data-photos="c"] .hero-media .s6 { background-image: url(assets/photos/hero-6c-900.jpg); background-position: 62% 50%; }
@media (min-width: 56rem) { [data-photos="c"] .hero-media .s6 { background-image: url(assets/photos/hero-6c-1920.jpg); } }
.ph-services::before { background-image: url(assets/photos/hero-3a-1920.jpg); background-position: 55% 50%; }
.ph-experience::before { background-image: url(assets/photos/hero-1b-1920.jpg); background-position: 50% 50%; }
.ph-about::before { background-image: url(assets/photos/hero-4a-1920.jpg); background-position: 62% 50%; }
.ph-contact::before { background-image: url(assets/photos/hero-6c-1920.jpg); background-position: 62% 50%; }

/* ---------- careers: application form ---------- */
.ph-careers::before { background-image: url(assets/photos/hero-1b-1920.jpg); background-position: 50% 50%; }
.split.careers { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 54rem) { .split.careers { grid-template-columns: minmax(0, 1fr); } }
.prose h3 { font-size: 1.15rem; font-weight: 900; margin: 0.6rem 0 0; }
.apply { display: flex; flex-direction: column; gap: 0.9rem; align-self: start; border: 1px solid var(--rule); background: var(--paper-2, var(--surface)); padding: clamp(1rem, 3vw, 1.75rem); min-width: 0; }
.apply h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.apply label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.apply .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--soft); }
.apply input, .apply textarea, .apply select { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--text); background: #fff; border: 1px solid var(--rule); padding: 0.65rem 0.75rem; width: 100%; box-sizing: border-box; }
.apply input[type="file"] { padding: 0.5rem; background: transparent; }
.apply input:focus-visible, .apply textarea:focus-visible, .apply select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.apply .consent { flex-direction: row; align-items: flex-start; gap: 0.6rem; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.92rem; color: var(--soft); }
.apply .consent input { width: auto; margin-top: 0.25rem; }
.apply .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply .btn { align-self: flex-start; cursor: pointer; }
.apply .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-msg { margin: 0; min-height: 1.4em; font-weight: 700; }
.form-msg.ok { color: #1f6b4a; }
.form-msg.bad { color: #a3381b; }
.fine-print { margin: 0; font-size: 0.78rem; color: var(--soft); }
.grecaptcha-badge { visibility: hidden; }

/* careers: two postings */
.job-rule { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0 2rem; }
.apply select { appearance: auto; }

/* ---------- careers: listing, roles, hiring ---------- */
.ph-careers .actions { margin-top: 0.5rem; }
.ph-careers .wrap { min-height: clamp(18rem, 42vh, 26rem); }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.why li { display: flex; flex-direction: column; gap: 0.5rem; border-top: 3px solid var(--gold); padding-top: 1rem; min-width: 0; }
.why b { font-size: 1.2rem; font-weight: 900; }
.why span { color: var(--soft); font-size: 0.96rem; }
.job-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.55rem 0.9rem; border: 1px solid var(--rule); background: var(--paper); color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.jobs li { border-bottom: 1px solid var(--rule); }
.jobs li[hidden] { display: none; }
.jobs a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 0.5rem 1.5rem; align-items: center; padding: 1.25rem 0.25rem; color: inherit; text-decoration: none; }
.jobs a:hover .job-title, .jobs a:focus-visible .job-title { text-decoration: underline; text-underline-offset: 4px; }
.jobs a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.job-title { font-size: 1.25rem; font-weight: 900; }
.job-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.job-tags span { font-size: 0.78rem; padding: 0.25rem 0.55rem; background: var(--paper); border: 1px solid var(--rule); color: var(--soft); }
.job-go { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tag); white-space: nowrap; }
.roles { gap: clamp(3rem, 7vw, 4.5rem); }
.role { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); border-top: 3px solid var(--ink); padding-top: 1.5rem; scroll-margin-top: 6rem; }
.role-head { display: flex; flex-direction: column; gap: 0.6rem; }
.role-head h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.15; }
.role-meta { margin: 0.5rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.role-meta div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.role-meta dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tag); }
.role-meta dd { margin: 0; font-size: 0.95rem; }
.role-body { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.role-body > p:first-child { font-size: 1.1rem; }
.role-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.role-cols h4 { font-size: 1rem; font-weight: 900; margin: 0 0 0.6rem; }
.role-terms { color: var(--soft); }
.role-terms b { color: var(--text); }
#roles, #hiring, #apply, #applyForm { scroll-margin-top: 5rem; }
@media (max-width: 62rem) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } .role { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 44rem) { .why, .role-cols { grid-template-columns: minmax(0, 1fr); } .jobs a { grid-template-columns: minmax(0, 1fr); } }
