/* =========================================================
   QUANTA EXPRESS SHIPPING GROUP
   Editorial industrial aesthetic — ink navy + copper accent
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=JetBrains+Mono:wght@400;500;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink: #0b1828;
  --ink-2: #122438;
  --ink-3: #1a3147;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --paper-3: #d8cfbe;
  --copper: #b66a3c;
  --copper-dark: #8e4f2b;
  --copper-light: #d18a5b;
  --line: rgba(11, 24, 40, 0.14);
  --line-light: rgba(244, 239, 230, 0.18);
  --rust: #7a3a1e;
  --sea: #2c4f5c;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --maxw: 1320px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Tiny grain texture overlay ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* ===================== HEADER ===================== */
.top-bar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-light);
}
.top-bar .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.top-bar .ticker {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0.85;
}
.top-bar .ticker span:before {
  content: "◆";
  margin-right: 0.4rem;
  color: var(--copper-light);
}
.top-bar .right { display: flex; gap: 1.25rem; align-items: center; }
.top-bar .right a:hover { color: var(--copper-light); }

header.main {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
}
header.main .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--ink);
  display: grid;
  place-items: center;
  position: relative;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  display: block;
}
.brand-text small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.75;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
nav.primary a {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
nav.primary a:hover, nav.primary a.active { color: var(--copper-dark); }
nav.primary a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--copper);
}
.cta-track {
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}
.cta-track:hover { background: var(--copper-dark); }
.cta-track::before {
  content: "→";
  font-family: var(--font-body);
  font-size: 1rem;
}

.mobile-toggle { display: none; font-size: 1.5rem; }

@media (max-width: 900px) {
  nav.primary { display: none; }
  nav.primary.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    padding: 1rem var(--pad);
    border-bottom: 1px solid var(--line);
    align-items: stretch;
  }
  nav.primary.open a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .mobile-toggle { display: block; }
  .cta-track { padding: 0.55rem 0.9rem; font-size: 0.7rem; }
}

/* ===================== HERO ===================== */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  border-bottom: 1px solid var(--line-light);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
          linear-gradient(rgba(244,239,230,0.04) 1px, transparent 1px),
          linear-gradient(90deg, rgba(244,239,230,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(182, 106, 60, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.hero .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: end;
}
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.hero .eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--copper-light);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  font-variation-settings: "opsz" 144;
}
.hero h1 em {
  font-style: italic;
  color: var(--copper-light);
  font-weight: 400;
}
.hero h1 .stamp {
  display: inline-block;
  border: 2px solid var(--copper);
  padding: 0.1em 0.4em 0.05em;
  color: var(--copper-light);
  font-style: normal;
  font-weight: 600;
  font-size: 0.7em;
  transform: rotate(-2deg) translateY(-0.15em);
  margin: 0 0.15em;
}
.hero p.lede {
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 38ch;
  opacity: 0.85;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--copper);
  color: var(--paper);
}
.btn-primary:hover { background: var(--paper); color: var(--ink); }
.btn-ghost {
  border: 1px solid var(--paper);
  color: var(--paper);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--copper-dark); }
.btn::after { content: "→"; font-family: var(--font-body); font-size: 1rem; }

/* Hero right card - shipment tracker preview */
.tracker-card {
  background: var(--paper);
  color: var(--ink);
  padding: 1.75rem;
  position: relative;
  box-shadow: 24px 24px 0 0 var(--copper);
}
.tracker-card h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tracker-card h3 .live {
  background: var(--ink);
  color: var(--paper);
  padding: 0.2em 0.5em;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}
.tracker-card .input-row {
  display: flex;
  border: 1.5px solid var(--ink);
  margin-bottom: 1rem;
}
.tracker-card input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  outline: none;
  color: var(--ink);
}
.tracker-card input::placeholder { color: rgba(11,24,40,0.4); }
.tracker-card button {
  background: var(--ink);
  color: var(--paper);
  padding: 0 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tracker-card .recent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tracker-card .recent .sample {
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.tracker-card .recent .sample:hover { color: var(--copper-dark); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .tracker-card { box-shadow: 14px 14px 0 0 var(--copper); }
}

/* ----- Marquee ----- */
.marquee {
  background: var(--copper);
  color: var(--ink);
  padding: 0.85rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(11,24,40,0.2);
  border-top: 1px solid rgba(11,24,40,0.2);
}
.marquee-inner {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  font-style: italic;
}
.marquee-inner span { display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee-inner span::after {
  content: "✦";
  font-style: normal;
  color: var(--ink);
  opacity: 0.5;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== SECTIONS ===================== */
section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  position: relative;
}
.wrap-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.section-title .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-dark);
  align-self: start;
  padding-top: 0.6rem;
}
.section-title h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.section-title h2 em { font-style: italic; color: var(--copper-dark); font-weight: 400; }
.section-title p {
  max-width: 50ch;
  justify-self: end;
  text-align: right;
  font-size: 1.02rem;
  opacity: 0.78;
}
@media (max-width: 700px) {
  .section-title { grid-template-columns: 1fr; gap: 1rem; }
  .section-title p { text-align: left; justify-self: start; }
}

/* ===================== SERVICES ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.svc {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem;
  background: var(--paper);
  position: relative;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.svc:hover { background: var(--paper-2); }
.svc .svc-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--copper-dark);
  margin-bottom: 1.5rem;
}
.svc .svc-icon {
  margin-bottom: 1.5rem;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
}
.svc .svc-icon svg { width: 32px; height: 32px; }
.svc h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}
.svc p { font-size: 0.95rem; opacity: 0.78; margin-bottom: 1.25rem; flex: 1; }
.svc .svc-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.svc .svc-meta a { color: var(--copper-dark); }
.svc .svc-meta a:hover { text-decoration: underline; }
@media (max-width: 800px) { .services-grid { grid-template-columns: 1fr; } }

/* ===================== ABOUT STRIP ===================== */
.about-strip {
  background: var(--ink);
  color: var(--paper);
}
.about-strip .grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-strip .visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink-2);
  overflow: hidden;
  border: 1px solid var(--line-light);
}
.about-strip .visual svg { width: 100%; height: 100%; }
.about-strip .visual .badge {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  background: var(--copper);
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.about-strip h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.about-strip h2 em { font-style: italic; color: var(--copper-light); font-weight: 400; }
.about-strip p { opacity: 0.85; margin-bottom: 1.5rem; font-size: 1.05rem; }
.about-strip .pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-light);
}
.pillar h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 0.5rem;
}
.pillar p { font-size: 0.9rem; opacity: 0.78; margin: 0; }
@media (max-width: 800px) { .about-strip .grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ===================== STATS ===================== */
.stats {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 3rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.stat .num em { font-style: italic; color: var(--copper-dark); }
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ===================== PROCESS ===================== */
.process { background: var(--paper); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 5%; right: 5%;
  height: 1px;
  border-top: 1.5px dashed var(--copper);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: left;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
}
.step .num::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.step p { font-size: 0.92rem; opacity: 0.78; }
@media (max-width: 800px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
}
@media (max-width: 500px) { .process-steps { grid-template-columns: 1fr; } }

/* ===================== NETWORK / MAP ===================== */
.network {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.network .section-title { border-color: var(--line-light); }
.network .section-title .num { color: var(--copper-light); }
.network .grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.world-map {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  overflow: hidden;
}
.world-map svg { width: 100%; height: 100%; }
.world-map .pin {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--copper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(182,106,60,0.25);
  animation: ping 2.4s ease-out infinite;
}
.world-map .pin.delay-1 { animation-delay: 0.6s; }
.world-map .pin.delay-2 { animation-delay: 1.2s; }
.world-map .pin.delay-3 { animation-delay: 1.8s; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(182,106,60,0.5); }
  70% { box-shadow: 0 0 0 18px rgba(182,106,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(182,106,60,0); }
}
.hub-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.hub-list li {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
  gap: 1rem;
  align-items: center;
}
.hub-list li:first-child { border-top: 1px solid var(--line-light); }
.hub-list .code { color: var(--copper-light); }
.hub-list .name { font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0; }
.hub-list .status {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  padding: 0.2rem 0.5rem;
  background: rgba(182,106,60,0.15);
  color: var(--copper-light);
  text-transform: uppercase;
}
@media (max-width: 900px) { .network .grid { grid-template-columns: 1fr; } }

/* ===================== TESTIMONIAL / QUOTE ===================== */
.quote-block {
  background: var(--paper);
  position: relative;
}
.quote-block .grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}
.quote-block .mark {
  font-family: var(--font-display);
  font-size: 12rem;
  line-height: 0.6;
  color: var(--copper);
  font-style: italic;
  font-weight: 500;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
  max-width: 30ch;
}
.quote-block .cite {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.quote-block .cite strong { color: var(--copper-dark); }
@media (max-width: 700px) { .quote-block .grid { grid-template-columns: 1fr; gap: 1rem; } .quote-block .mark { font-size: 7rem; } }

/* ===================== INDUSTRIES ===================== */
.industries { background: var(--paper-2); }
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ind {
  background: var(--paper-2);
  padding: 2rem;
  transition: background 0.25s;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ind:hover { background: var(--ink); color: var(--paper); }
.ind:hover .ind-num { color: var(--copper-light); }
.ind:hover h4 em { color: var(--copper-light); }
.ind .ind-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--copper-dark);
}
.ind h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 1.25rem 0 0.5rem;
}
.ind h4 em { font-style: italic; color: var(--copper-dark); font-weight: 400; }
.ind p { font-size: 0.9rem; opacity: 0.78; }
@media (max-width: 800px) { .ind-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .ind-grid { grid-template-columns: 1fr; } }

/* ===================== CTA STRIP ===================== */
.cta-strip {
  background: var(--copper);
  color: var(--ink);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid rgba(11,24,40,0.18);
  border-bottom: 1px solid rgba(11,24,40,0.18);
}
.cta-strip .wrap-section {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 3rem;
  align-items: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta-strip h2 em { font-style: italic; font-weight: 400; }
.cta-strip .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 700px) {
  .cta-strip .wrap-section { grid-template-columns: 1fr; }
}

/* ===================== FOOTER ===================== */
footer.main {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}
footer.main .grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
footer.main .col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 1.25rem;
}
footer.main .col p, footer.main .col li {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}
footer.main .col ul { list-style: none; }
footer.main .col li a:hover { color: var(--copper-light); }
footer.main .brand-block .brand-text strong { color: var(--paper); font-size: 1.5rem; }
footer.main .brand-block .brand-text small { color: var(--copper-light); opacity: 1; }
footer.main .brand-block p { margin-top: 1.25rem; max-width: 36ch; opacity: 0.7; }
footer.main .legal-strip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0.7;
}
@media (max-width: 800px) {
  footer.main .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  footer.main .grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===================== INNER PAGES ===================== */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
          linear-gradient(rgba(244,239,230,0.04) 1px, transparent 1px),
          linear-gradient(90deg, rgba(244,239,230,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.page-hero .crumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.page-hero .crumb a:hover { color: var(--paper); }
.page-hero .crumb span { opacity: 0.5; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 18ch;
  position: relative;
  z-index: 2;
}
.page-hero h1 em { font-style: italic; color: var(--copper-light); font-weight: 400; }
.page-hero p {
  margin-top: 1.5rem;
  max-width: 52ch;
  opacity: 0.85;
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
}

/* prose section */
.prose {
  background: var(--paper);
}
.prose .wrap-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}
.prose .side h6 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 0.5rem;
}
.prose .side h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.prose .body p { margin-bottom: 1.25rem; font-size: 1.02rem; line-height: 1.7; }
.prose .body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.015em;
}
.prose .body ul { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.prose .body li { margin-bottom: 0.4rem; }
@media (max-width: 800px) { .prose .wrap-section { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 3rem;
}
.contact-info { padding-right: 1rem; }
.contact-info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}
.contact-info p { opacity: 0.78; margin-bottom: 2rem; }
.info-block {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: start;
}
.info-block:last-child { border-bottom: 1px solid var(--line); }
.info-block .lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
  padding-top: 0.15rem;
}
.info-block .val { font-size: 1rem; }
.info-block .val a:hover { color: var(--copper-dark); text-decoration: underline; }
.info-block .val div { margin-bottom: 0.25rem; }

.contact-form {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem;
  position: relative;
}
.contact-form::before {
  content: "FORM 04 — INQUIRY";
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--copper-light);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}
.contact-form > p {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 2rem;
}
.field {
  display: block;
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--copper-light);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line-light);
  padding: 0.6rem 0;
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper); }
.field textarea { resize: vertical; min-height: 100px; }
.field select option { background: var(--ink); color: var(--paper); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } }

/* ===================== TRACK PAGE ===================== */
.track-hero-card {
  background: var(--paper);
  padding: 2.5rem;
  margin-top: -4rem;
  position: relative;
  z-index: 4;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.3);
  border: 1px solid var(--line);
}
.track-hero-card .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 0.5rem;
}
.track-hero-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}
.track-hero-card .input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 2px solid var(--ink);
}
.track-hero-card input {
  padding: 1.1rem 1.25rem;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.05em;
  outline: none;
}
.track-hero-card button {
  padding: 0 2rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.track-hero-card button:hover { background: var(--copper-dark); }
.track-hero-card .helper {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-top: 1rem;
  opacity: 0.65;
  letter-spacing: 0.05em;
}

/* FAQ */
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.faq-list details summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list details summary::-webkit-details-marker { display: none; }
.faq-list details summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--copper-dark);
  transition: transform 0.3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  margin-top: 1rem;
  opacity: 0.8;
  font-size: 1rem;
  line-height: 1.7;
}

/* Service-specific subpage */
.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.svc-detail-grid > div {
  padding: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.svc-detail-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.svc-detail-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 0.75rem;
}
.svc-detail-grid h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}
.svc-detail-grid p { font-size: 0.96rem; opacity: 0.78; }
@media (max-width: 700px) {
  .svc-detail-grid { grid-template-columns: 1fr; }
  .svc-detail-grid > div:nth-child(odd) { border-right: none; }
}

/* timeline (for tracking detail) */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 1.5px;
  background: var(--copper);
  opacity: 0.4;
}
.timeline li {
  position: relative;
  padding-bottom: 2rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -2rem; top: 6px;
  width: 14px; height: 14px;
  background: var(--paper);
  border: 2px solid var(--copper);
  border-radius: 50%;
}
.timeline li.done::before { background: var(--copper); }
.timeline li.current::before {
  background: var(--copper);
  box-shadow: 0 0 0 4px rgba(182,106,60,0.25);
  animation: ping 2s ease-out infinite;
}
.timeline .when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 0.25rem;
}
.timeline h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.timeline p { font-size: 0.92rem; opacity: 0.78; }

/* page sub-list */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.principle {
  background: var(--paper);
  padding: 2rem;
  min-height: 220px;
}
.principle .pn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--copper-dark);
  margin-bottom: 1rem;
}
.principle h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.principle p { font-size: 0.92rem; opacity: 0.78; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; } }

/* team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.member {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.member .avatar {
  aspect-ratio: 4/5;
  background: var(--paper-3);
  position: relative;
  overflow: hidden;
}
.member .avatar svg { width: 100%; height: 100%; }
.member .body { padding: 1.5rem; }
.member h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}
.member .role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 0.75rem;
}
.member p { font-size: 0.9rem; opacity: 0.78; }
@media (max-width: 800px) { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .team-grid { grid-template-columns: 1fr; } }

/* ====== Page anim ====== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ===================== CONTACT PAGE EXTRAS ===================== */
.info-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
  background: var(--paper-2);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  vertical-align: middle;
}
.contact-form .form-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-top: 1.25rem;
  opacity: 0.75;
}
.contact-form .btn-primary { margin-top: 0.5rem; }

/* DEPARTMENT GRID */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.dept-card {
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  padding: 2rem 1.75rem;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.dept-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}
.dept-card .dept-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--copper-light);
  margin-bottom: 1rem;
}
.dept-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.dept-card p {
  font-size: 0.92rem;
  opacity: 0.78;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.dept-card .dept-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line-light);
  padding-top: 1rem;
  line-height: 1.9;
}
.dept-card .dept-meta a { color: var(--copper-light); }
.dept-card .dept-meta a:hover { color: var(--copper); }
@media (max-width: 900px) { .dept-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dept-grid { grid-template-columns: 1fr; } }

/* MAP FRAME */
.map-frame {
  margin-top: 2rem;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  overflow: hidden;
  position: relative;
}
.map-frame .anchorage-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
}
.map-caption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: var(--paper);
  border-top: 1px solid var(--paper-3);
}
.map-caption .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 0.5rem;
}
.map-caption .val {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.85;
}
@media (max-width: 700px) {
  .map-caption { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.5rem; }
}

/* =============================================================
   PHOTOGRAPHY — added 17 May 2026
   Editorial treatment: warm sepia/copper tint, subtle desaturation,
   ink overlays so type stays the primary subject.
   ============================================================= */

/* HERO BACKGROUND PHOTO */
.hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* heavy darken + warm copper tint so type wins */
  filter: brightness(0.4) saturate(0.7) contrast(1.05) sepia(0.18);
  opacity: 0.65;
  display: block;
}
.hero {
  /* layer order: bg img (z:0) -> grid pattern (::before) -> copper glow (::after) -> content (z:2) */
}
.hero::before { z-index: 1; }
.hero::after  { z-index: 1; }
/* darken left side specifically so headline area stays legible */
.hero .wrap::before {
  content: "";
  position: absolute;
  inset: -2rem -2rem -2rem -50%;
  background: linear-gradient(90deg, var(--ink) 30%, rgba(11,24,40,0.85) 60%, rgba(11,24,40,0.2) 100%);
  z-index: -1;
  pointer-events: none;
}

/* SERVICE CARD IMAGES */
.svc { padding: 0 !important; overflow: hidden; }
.svc .svc-img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.svc .svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.75) contrast(1.05) sepia(0.08) brightness(0.92);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.svc .svc-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,24,40,0.05) 0%, rgba(11,24,40,0.35) 100%);
  pointer-events: none;
}
.svc:hover .svc-img img {
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.05) sepia(0.04) brightness(1);
}
/* re-establish padding on the body content after removing card padding */
.svc .svc-num { padding: 1.5rem 2rem 0; margin-bottom: 1rem; }
.svc .svc-icon { margin: 0 2rem 1.25rem; }
.svc h3 { padding: 0 2rem; }
.svc p { padding: 0 2rem; }
.svc .svc-meta { padding: 1rem 2rem 1.75rem; margin-top: auto; }

/* INDUSTRIES — photographic cards */
.ind.ind-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 280px;
  isolation: isolate;
}
.ind.ind-photo .ind-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.55) contrast(1.05) sepia(0.15) brightness(0.55);
  transition: transform 0.7s ease, filter 0.5s ease;
}
.ind.ind-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,24,40,0.4) 0%, rgba(11,24,40,0.85) 75%, rgba(11,24,40,0.95) 100%);
  z-index: 1;
  transition: background 0.35s ease;
}
.ind.ind-photo .ind-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
}
.ind.ind-photo .ind-num { color: var(--copper-light); }
.ind.ind-photo h4 { color: var(--paper); margin-top: 0; }
.ind.ind-photo h4 em { color: var(--copper-light); }
.ind.ind-photo p { color: var(--paper); opacity: 0.82; }
.ind.ind-photo:hover { background: transparent; }
.ind.ind-photo:hover::after {
  background: linear-gradient(180deg, rgba(11,24,40,0.25) 0%, rgba(11,24,40,0.7) 70%, rgba(11,24,40,0.92) 100%);
}
.ind.ind-photo:hover .ind-bg {
  transform: scale(1.05);
  filter: saturate(0.7) contrast(1.05) sepia(0.1) brightness(0.65);
}

/* CONTACT PAGE — hero photo background */
.page-hero.page-hero-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero.page-hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-hero.page-hero-photo .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.65) sepia(0.18) contrast(1.05);
  opacity: 0.55;
  display: block;
}
.page-hero.page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 5%, rgba(11,24,40,0.7) 50%, rgba(11,24,40,0.4) 100%);
  z-index: 1;
}
.page-hero.page-hero-photo .wrap-section {
  position: relative;
  z-index: 2;
}

/* CONTACT INFO — photo at top of left column */
.contact-photo {
  position: relative;
  margin-bottom: 2rem;
  border: 1px solid var(--paper-3);
  overflow: hidden;
}
.contact-photo img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05) sepia(0.1);
}
.contact-photo-cap {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(11,24,40,0.85);
  padding: 0.4rem 0.7rem;
  border-left: 2px solid var(--copper);
}

/* RESPONSIVE TUNING */
@media (max-width: 800px) {
  .svc .svc-img { height: 160px; }
  .ind.ind-photo { min-height: 240px; }
  .contact-photo img { height: 200px; }
  .hero .wrap::before { inset: -2rem; background: linear-gradient(180deg, rgba(11,24,40,0.65) 0%, rgba(11,24,40,0.9) 100%); }
}

/* IMAGE LOADING POLISH — subtle fade-in while images stream */
.svc .svc-img img,
.ind.ind-photo .ind-bg,
.contact-photo img,
.hero .hero-bg img,
.page-hero.page-hero-photo .hero-bg img {
  animation: qx-img-fade 0.65s ease;
}
@keyframes qx-img-fade {
  from { opacity: 0; }
  to { opacity: var(--end-op, 1); }
}
.hero .hero-bg img { --end-op: 0.65; }
.page-hero.page-hero-photo .hero-bg img { --end-op: 0.55; }

/* =============================================================
   IMAGE FALLBACK — when an Unsplash URL 404s, show a tasteful
   copper-tinted placeholder with diagonal lines instead of a
   broken-image icon. Set by JS .img-failed class on the parent.
   ============================================================= */
.svc .svc-img.img-failed,
.ind.ind-photo.img-failed,
.contact-photo.img-failed,
.hero .hero-bg.img-failed,
.page-hero.page-hero-photo .hero-bg.img-failed {
  background:
          repeating-linear-gradient(
                  135deg,
                  var(--ink) 0px,
                  var(--ink) 18px,
                  var(--ink-2) 18px,
                  var(--ink-2) 36px
          );
  position: relative;
}
.svc .svc-img.img-failed::before,
.ind.ind-photo.img-failed::before,
.contact-photo.img-failed::before,
.hero .hero-bg.img-failed::before,
.page-hero.page-hero-photo .hero-bg.img-failed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(182, 106, 60, 0.28) 0%, transparent 65%);
  pointer-events: none;
}
/* keep the contact photo caption visible even if the image failed */
.contact-photo.img-failed .contact-photo-cap {
  background: rgba(11, 24, 40, 0.95);
}
/* For industry cards: ensure the overlay+content still work over the placeholder */
.ind.ind-photo.img-failed .ind-content { z-index: 2; }

/* =============================================================
   PROACTIVE IMG PLACEHOLDER — the container always has a
   patterned background; the photo sits on top. If the photo
   loads, it covers the pattern. If it fails, the pattern shows.
   No JS-detection required.
   ============================================================= */
.svc .svc-img,
.ind.ind-photo,
.contact-photo,
.hero .hero-bg,
.page-hero.page-hero-photo .hero-bg {
  background:
          radial-gradient(ellipse at 30% 40%, rgba(182, 106, 60, 0.25) 0%, transparent 60%),
          repeating-linear-gradient(
                  135deg,
                  var(--ink) 0px,
                  var(--ink) 22px,
                  var(--ink-2) 22px,
                  var(--ink-2) 44px
          );
}
/* Hide alt-text aesthetics while image is still loading or has failed */
.svc .svc-img img,
.ind.ind-photo .ind-bg,
.contact-photo img,
.hero .hero-bg img,
.page-hero.page-hero-photo .hero-bg img {
  font-size: 0;  /* hides alt text rendering as fallback */
  color: transparent;
}