/* ==========================================================================
   Section patterns — split media, stat band, marquee, coverage, CTA
   ========================================================================== */

/* --- Split: media + copy ------------------------------------------------ */

/* Media stretches to the height of the copy beside it rather than sitting in
   a fixed 4:3 box and leaving a gap under the taller column. */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
}

.split__copy { align-self: center; }

.split--offset { grid-template-columns: 1.05fr .95fr; }
.split--reverse .split__media { order: 2; }

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-deep);
  max-height: 640px;
}

.split__media img {
  width: 100%;
  height: 100%;
  min-height: clamp(300px, 38vw, 460px);
  object-fit: cover;
  display: block;
}

.split__media--tall img { min-height: clamp(380px, 46vw, 620px); }

@media (max-width: 900px) {
  .split__media img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .split__media--tall img { aspect-ratio: 3 / 4; }
}

/* Small floating stat card over the image */
.split__badge {
  position: absolute;
  right: 0; bottom: 0;
  background: var(--paper);
  padding: 1.4rem 1.6rem;
  border-top-left-radius: var(--radius-lg);
  min-width: 190px;
  box-shadow: -8px -8px 30px rgba(10, 26, 40, .1);
}

.split__badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: .4rem;
}

.split__badge span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.split__copy h2 { margin-bottom: 1.1rem; }

@media (max-width: 900px) {
  .split, .split--offset { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* --- Signature / credential band ---------------------------------------- */

.credband {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.credband__item {
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.6rem) clamp(1.1rem, 2vw, 1.8rem);
  text-align: center;
}

.credband__item b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: .6rem;
  color: var(--ink);
}

.credband__item > span {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
  display: block;
}

/* --- Marquee of ports ---------------------------------------------------- */

.marq {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  background: var(--paper);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marq__track {
  display: flex;
  width: max-content;
  animation: marq 46s linear infinite;
}

.marq:hover .marq__track { animation-play-state: paused; }

.marq__track span {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marq__track span::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Coverage / route map ------------------------------------------------ */

.coverage {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 980px) { .coverage { grid-template-columns: 1fr; } }

.map {
  position: relative;
  width: 100%;
}

.map svg { width: 100%; height: auto; overflow: visible; }

.map .land {
  fill: var(--navy-tint);
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: fill .4s var(--ease);
}

.section--ink .map .land { fill: rgba(255,255,255,.075); stroke: rgba(10,26,40,.55); }

.map .route {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.5;
  stroke-linecap: butt;
  stroke-dasharray: 4 7;
  opacity: .85;
  animation: route-flow 2.6s linear infinite;
}

@keyframes route-flow { to { stroke-dashoffset: -44; } }

.map .port--minor { fill: var(--muted-soft); }
.section--ink .map .port--minor { fill: rgba(255, 255, 255, .42); }
.map .port--home { fill: var(--brass-lite); }

.map .plabel--home { fill: var(--ink); font-weight: 600; }
.section--ink .map .plabel--home { fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  .map .route { animation: none; }
}

.map .port { fill: var(--ink); }
.section--ink .map .port { fill: #fff; }

.map .port-ring {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 3s var(--ease) infinite;
}

@keyframes ping {
  0%   { opacity: .8; transform: scale(.4); }
  70%  { opacity: 0;  transform: scale(2.4); }
  100% { opacity: 0;  transform: scale(2.4); }
}

.map .plabel {
  font-family: var(--font-mono);
  font-size: 8.6px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  fill: var(--muted);
}

.section--ink .map .plabel { fill: rgba(255,255,255,.6); }

/* Region list beside the map */
.regions { display: grid; gap: 0; }

.region {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
}

.region:last-child { border-bottom: 1px solid var(--line); }
.section--ink .region { border-color: rgba(255,255,255,.13); }

.region b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.region span { font-size: .9rem; color: var(--muted); }
.section--ink .region span { color: rgba(255,255,255,.55); }
.region em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}

/* --- Pull quote ----------------------------------------------------------- */

/* The measure is set on the <p>, where `ch` resolves against the display
   font-size. Putting a ch limit on the wrapper clamps it to the body size
   instead and squeezes the quote into a thin column. */
.pull {
  text-align: center;
  margin-inline: auto;
}

.pull p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2.1vw, 2.6rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 26ch;
  margin-inline: auto;
  text-wrap: balance;
}

.section--ink .pull p { color: #fff; }

.pull cite {
  display: block;
  margin-top: 1.8rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--ink .pull cite { color: rgba(255,255,255,.5); }

/* --- CTA band ------------------------------------------------------------- */

.cta {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }

.cta__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(6,18,29,.94) 12%, rgba(6,18,29,.72) 55%, rgba(6,18,29,.42) 100%);
}

.cta__inner {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  max-width: 66ch;
}

.cta h2 { color: #fff; font-weight: 300; letter-spacing: -0.03em; margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,.8); font-size: var(--fs-lead); margin-bottom: 2.2rem; }

/* --- Two-column prose ----------------------------------------------------- */

.prose h2 { margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; font-size: 1.3rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }

/* --- Sticky sub-nav (services page) ---------------------------------------- */

.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.subnav__track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 1rem;
}

.subnav__track::-webkit-scrollbar { display: none; }

.subnav a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s var(--ease);
}

.subnav a:hover, .subnav a.is-active { color: var(--brass); }

/* --- Anchor blocks (services detail) --------------------------------------- */

.svc-block { scroll-margin-top: calc(var(--nav-h) + 70px); }
.svc-block + .svc-block { margin-top: clamp(3.5rem, 7vw, 6.5rem); }
