/* =====================================================================
   DS PARTNERS LLC — STYLES
   Rugged, clean, mobile-first.
   ===================================================================== */

:root {
  --c-navy: #0b1f3a;
  --c-charcoal: #102a4c;
  --c-steel: #1b3a63;
  --c-slate: #3d5270;
  --c-concrete: #8b9bb3;
  --c-ash: #d5dde8;
  --c-bone: #f4f6f9;
  --c-white: #ffffff;
  --c-accent: #2f80ed;
  --c-accent-dark: #1f66c9;
  --c-accent-soft: rgba(47, 128, 237, 0.14);

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-charcoal);
  background: var(--c-bone);
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  background: var(--c-accent); color: var(--c-white); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 3px;
  background: var(--c-accent); vertical-align: middle; margin-right: 12px;
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-intro { font-size: 1.15rem; color: var(--c-slate); }

/* ---------- Hazard stripe accent ---------- */
.hazard-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg, var(--c-accent) 0 18px, var(--c-white) 18px 36px
  );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radius);
  transition: transform 0.15s var(--ease), background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 30px; font-size: 1.15rem; }
.btn-primary { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }
.btn-primary:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.btn-outline { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: var(--c-white); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--c-white); color: var(--c-navy); border-color: var(--c-white); }
.btn-dark:hover { background: var(--c-bone); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(8px);
  color: var(--c-white);
  border-bottom: 3px solid var(--c-accent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand img { height: 44px; width: auto; color: var(--c-white); }
.site-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.site-nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 2px;
  border-bottom: 2px solid transparent; transition: border-color 0.15s, color 0.15s;
}
.site-nav a:not(.btn):hover, .site-nav a:not(.btn).active { border-bottom-color: var(--c-accent); color: var(--c-accent); }
.nav-cta .btn { padding: 10px 18px; font-size: 1rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; padding: 8px;
}
.nav-toggle span { display: block; height: 3px; background: var(--c-white); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--c-navy); border-bottom: 3px solid var(--c-accent);
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.25s, visibility 0s 0.3s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; transition: transform 0.3s var(--ease), opacity 0.25s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav li { border-bottom: 1px solid var(--c-steel); }
  .site-nav li:last-child { border: 0; padding-top: 16px; }
  .site-nav a:not(.btn) { display: block; padding: 16px 0; font-size: 1.3rem; border-bottom: 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--c-white); isolation: isolate;
  min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-color: var(--c-navy);
  background-image:
    linear-gradient(105deg, rgba(11,31,58,0.95) 0%, rgba(11,31,58,0.8) 45%, rgba(11,31,58,0.55) 100%),
    var(--hero-image, none),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 22px),
    radial-gradient(ellipse at 80% 20%, rgba(47,128,237,0.35), transparent 55%),
    linear-gradient(160deg, #1b3a63 0%, #0b1f3a 60%, #071528 100%);
  background-size: cover; background-position: center;
}
.hero-inner { padding-block: clamp(80px, 12vw, 140px) clamp(64px, 9vw, 110px); }
.hero h1 { max-width: 30ch; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.hero .accent { color: var(--c-accent); }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 60ch; color: var(--c-ash); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .hazard-stripe { position: absolute; left: 0; right: 0; bottom: 0; }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

/* ---------- Stats band ---------- */
.stats { background: var(--c-charcoal); color: var(--c-white); border-bottom: 1px solid var(--c-steel); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 26px 8px; text-align: center; border-right: 1px solid var(--c-steel); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--c-steel); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--c-accent); line-height: 1; }
.stat-label { display: block; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-concrete); margin-top: 6px; }
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(-n+2) { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--c-steel); }
  .stat:last-child { border-right: 0; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.service-card {
  background: var(--c-white); padding: 32px 28px; border-radius: var(--radius);
  border-top: 4px solid var(--c-steel);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); border-top-color: var(--c-accent); box-shadow: 0 14px 28px rgba(0,0,0,0.1); }
.service-icon { width: 56px; height: 56px; color: var(--c-accent); margin-bottom: 18px; background: var(--c-accent-soft); border-radius: var(--radius); padding: 10px; }
.service-card h3 { margin-bottom: 0.4em; }
.service-card p { margin: 0; color: var(--c-slate); }
/* Each card names its division, then lists what that division actually does.
   The rule above the list separates the summary from the capability list. */
.service-list {
  margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid var(--c-ash);
  display: grid; gap: 8px;
  font-size: 0.95rem; color: var(--c-slate);
}
.service-list li { position: relative; padding-left: 20px; line-height: 1.45; }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 2px; background: var(--c-accent);
}

/* ---------- Slogan band ---------- */
/* The line the crews wear, given a band of its own between two light sections. */
.slogan-band { position: relative; background: var(--c-navy); color: var(--c-white); text-align: center; }
.slogan-band .container { padding-block: clamp(40px, 6vw, 68px); }
.slogan-band .container::before {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--c-accent); margin: 0 auto 22px;
}
.slogan {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3.1rem);
  letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.1;
}

/* ---------- Fleet and Crew ---------- */
.fleet, .crew { background: var(--c-white); }

/* ---------- Project pages ---------- */
/* The dark title band at the top of the Projects page and each project page. */
.page-head { position: relative; background: var(--c-navy); color: var(--c-white); }
.page-head .container { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 22ch; }
.page-head .section-intro { color: var(--c-ash); max-width: 62ch; margin: 0; }
.crumb {
  display: inline-block; margin-bottom: 1.5rem; color: var(--c-concrete);
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.crumb:hover { color: var(--c-accent); }
.project-body { background: var(--c-white); }
.project-back { margin: clamp(40px, 6vw, 64px) 0 0; }

.project-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.project-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--c-white); color: var(--c-navy);
  border-radius: var(--radius); overflow: hidden; border-top: 4px solid var(--c-accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.18); }
.project-card-media { background: var(--c-charcoal); overflow: hidden; }
.project-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.04); }
.project-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.project-card-meta {
  margin: 0 0 8px; color: var(--c-slate); font-family: var(--font-display); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.project-card h3 { margin-bottom: 0.4em; }
.project-card-summary { color: var(--c-slate); }
.project-card-link {
  margin-top: auto; color: var(--c-accent-dark); font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.project-list { background: var(--c-bone); }

/* The home page teaser sits in the dark Projects section, under the videos. */
.project-teaser-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

.feature-videos {
  display: grid; gap: 16px; grid-template-columns: 1fr;
  margin-top: clamp(32px, 5vw, 48px);
}
@media (min-width: 800px) { .feature-videos { grid-template-columns: repeat(2, 1fr); } }
.feature-video { margin: 0; }
.feature-video video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain;
  background: var(--c-navy); border-radius: var(--radius);
}
.feature-video figcaption {
  margin-top: 10px; font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-charcoal);
}

/* ---------- Tags and photo grid (Fleet and project pages) ---------- */
.tag-list {
  list-style: none; margin: 0 0 clamp(28px, 4vw, 40px); padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tag-list li {
  background: var(--c-accent-soft); color: var(--c-charcoal);
  border-left: 3px solid var(--c-accent); border-radius: var(--radius);
  padding: 8px 14px; font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.98rem;
}

.photo-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  /* The closing shot runs the full width, so the grid ends flush instead of
     leaving one tile stranded on a row of its own. */
  .photo-grid .photo-item:last-child { grid-column: 1 / -1; }
  .photo-grid .photo-item:last-child img { aspect-ratio: 21 / 9; }
}
@media (min-width: 640px) and (max-width: 999px) {
  /* Two columns leave a hole when the count is even, so an even-sized grid
     opens with a full-width shot as well as closing with one. */
  .photo-grid .photo-item:first-child:nth-last-child(2n) { grid-column: 1 / -1; }
  .photo-grid .photo-item:first-child:nth-last-child(2n) img { aspect-ratio: 21 / 9; }
}
@media (min-width: 1000px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  /* The first photo is the establishing shot, so it gets four tiles' worth. */
  .photo-grid .photo-item:first-child { grid-column: span 2; grid-row: span 2; }
  .photo-grid .photo-item:last-child img { aspect-ratio: 24 / 7; }
}
.photo-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--c-charcoal);
  cursor: zoom-in; color: var(--c-white);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.4s var(--ease); }
.photo-item:hover img, .photo-item:focus-visible img { transform: scale(1.04); }
.photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: left;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(7,21,40,0.92), rgba(7,21,40,0));
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.3;
}
.photo-grid .photo-item:first-child .photo-caption { font-size: clamp(1.02rem, 1.8vw, 1.35rem); padding: 48px 20px 18px; }
.photo-empty { color: var(--c-slate); padding: 24px; border: 1px dashed var(--c-concrete); border-radius: var(--radius); text-align: center; }

/* Full-size viewer */
.lightbox {
  width: min(96vw, 1600px); max-width: none; max-height: 94vh;
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--c-navy); color: var(--c-white); overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 12, 24, 0.88); }
.lightbox-figure { margin: 0; }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; background: #000; }
.lightbox-caption {
  padding: 14px 20px; font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.05rem;
}
.lightbox .carousel-btn { z-index: 2; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; padding: 11px; border: 0; border-radius: var(--radius);
  background: rgba(11,31,58,0.78); color: var(--c-white);
  transition: background 0.15s;
}
.lightbox-close:hover { background: var(--c-accent); }
@media (max-width: 600px) {
  .lightbox { width: 100vw; max-height: 100vh; border-radius: 0; }
  .lightbox-close { top: 8px; right: 8px; width: 40px; height: 40px; padding: 10px; }
}

/* ---------- Projects: carousel ---------- */
.projects { background: var(--c-navy); color: var(--c-white); }
.projects .section-intro { color: var(--c-concrete); }

.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); background: var(--c-charcoal); box-shadow: var(--shadow); }
.carousel-track { display: flex; transition: transform 0.55s var(--ease); will-change: transform; }
.carousel-track.no-anim { transition: none; }
.carousel-slide { flex: 0 0 100%; position: relative; aspect-ratio: 16 / 9; max-height: 70vh; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(7,21,40,0.9), rgba(7,21,40,0));
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.carousel-caption::before { content: ""; display: inline-block; width: 6px; height: 1em; background: var(--c-accent); vertical-align: -0.15em; margin-right: 12px; }
.carousel-empty { padding: 60px 24px; text-align: center; color: var(--c-concrete); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: 0; border-radius: var(--radius);
  background: rgba(11,31,58,0.78); color: var(--c-white); padding: 12px;
  transition: background 0.15s, color 0.15s;
}
.carousel-btn:hover { background: var(--c-accent); color: var(--c-white); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-footer { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.carousel-dots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.carousel-dots button {
  width: 36px; height: 6px; border: 0; padding: 0; border-radius: 3px;
  background: var(--c-slate); transition: background 0.2s, width 0.2s;
}
.carousel-dots button[aria-selected="true"] { background: var(--c-accent); }
.carousel-play {
  width: 36px; height: 36px; border: 1px solid var(--c-slate); border-radius: var(--radius);
  background: transparent; color: var(--c-ash); padding: 8px;
}
.carousel-play:hover { border-color: var(--c-accent); color: var(--c-accent); }
.carousel-play .icon-play { display: none; }
.carousel-play[aria-pressed="false"] .icon-play { display: block; }
.carousel-play[aria-pressed="false"] .icon-pause { display: none; }
@media (max-width: 600px) {
  .carousel-btn { width: 42px; height: 42px; padding: 9px; }
  .carousel-btn.prev { left: 8px; } .carousel-btn.next { right: 8px; }
  .carousel-dots button { width: 22px; }
}

/* ---------- Projects: video carousel ---------- */
.videos-head { margin: clamp(48px, 7vw, 80px) 0 24px; padding-top: 32px; border-top: 1px solid var(--c-steel); }
.videos-head h3 { margin: 0; }
/* A video cannot be cropped to fit the way a photo can, so the carousel itself
   is capped at the width of a 16:9 frame that fits the screen and centred.
   The arrows then land on the edges of the picture instead of beside it. */
.video-carousel { max-width: calc(70vh * 16 / 9); margin-inline: auto; }
.video-carousel .carousel-viewport { background: var(--c-navy); }
.video-slide { flex: 0 0 100%; background: var(--c-charcoal); }
/* Inactive slides stay visible while sliding past, but [inert] keeps them
   out of the tab order and unclickable. */
.video-slide[inert] { opacity: 0.35; transition: opacity 0.4s var(--ease); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--c-navy); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; background: var(--c-steel) center / cover no-repeat; cursor: pointer;
}
.video-facade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
  transition: background 0.2s;
}
.video-facade:hover::after { background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.25)); }
.video-facade .play-badge {
  position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-white);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.15s var(--ease);
}
/* A right-pointing triangle centred by its bounding box reads as left-heavy,
   because its mass sits toward the base. Nudging it right by the gap between
   its centroid and its box centre puts the weight on the circle's centre. */
.video-facade .play-badge svg { transform: translateX(1.33px); }
.video-facade:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); }
.video-title { padding: 14px 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0; color: var(--c-white); }
/* Three columns so the dots sit on the centre line of the video, with the
   counter beside them rather than pushing them off centre. */
.video-carousel .carousel-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.video-carousel .carousel-dots { grid-column: 2; }
.video-counter { grid-column: 3; justify-self: start; margin: 0 0 0 16px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1em; color: var(--c-concrete); font-variant-numeric: tabular-nums; }
.video-empty { color: var(--c-concrete); padding: 24px; border: 1px dashed var(--c-slate); border-radius: var(--radius); text-align: center; }

/* ---------- Instagram band ---------- */
.social-band {
  background: var(--c-charcoal);
  color: var(--c-white);
  border-block: 1px solid var(--c-steel);
}
.social-inner {
  padding-block: clamp(34px, 5vw, 56px);
  display: grid; gap: clamp(18px, 3vw, 34px); align-items: center;
  grid-template-columns: auto 1fr auto;
}
.social-mark { height: 52px; width: auto; flex: none; }
.social-copy h2 { margin: 6px 0 0; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.social-intro { margin: 8px 0 0; color: var(--c-ash); max-width: 46ch; }
.social-cta { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
/* Handles are lowercase; the button's uppercase would turn @dsp.llc into @DSP.LLC. */
.social-cta [data-company-instagram] { text-transform: none; letter-spacing: 0.04em; }
.social-glyph {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
}
.social-glyph-dot { fill: currentColor; stroke: none; }

/* Stack on narrow screens: mark and heading together, button full width below. */
@media (max-width: 760px) {
  .social-inner { grid-template-columns: auto 1fr; text-align: left; }
  .social-cta { grid-column: 1 / -1; justify-content: center; }
  .social-mark { height: 40px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-copy p { color: var(--c-slate); font-size: 1.1rem; }
.about-copy .btn { margin-top: 8px; }
.values { display: grid; gap: 0; border-top: 2px solid var(--c-ash); }
.values li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 2px solid var(--c-ash); }
.value-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--c-accent); line-height: 1; min-width: 48px; }
.values h3 { font-size: 1.3rem; margin-bottom: 0.25em; }
.values p { margin: 0; color: var(--c-slate); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-accent); color: var(--c-white); padding-block: clamp(40px, 6vw, 64px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-inner h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-inner p { margin: 0; flex-basis: 100%; font-weight: 500; }
@media (min-width: 900px) {
  .cta-inner p { flex-basis: auto; margin-right: auto; margin-left: 24px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 72px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.25fr; } }
.contact-list { display: grid; gap: 14px; margin-top: 24px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--c-accent); flex-shrink: 0; }
.contact-list a:hover { color: var(--c-accent-dark); text-decoration: underline; }

.contact-form { background: var(--c-white); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border-top: 4px solid var(--c-accent); box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.contact-form label { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; margin-bottom: 16px; color: var(--c-slate); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; font-family: var(--font-body); font-size: 1rem; text-transform: none; letter-spacing: 0;
  color: var(--c-charcoal); background: var(--c-bone); border: 2px solid var(--c-ash); border-radius: var(--radius);
  transition: border-color 0.15s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--c-accent); background: var(--c-white); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-note { margin: 12px 0 0; font-size: 0.95rem; color: var(--c-slate); min-height: 1.4em; }
.form-note.error { color: #b3261e; }
.form-note.success { color: #1d7a3a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); color: var(--c-ash); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: clamp(40px, 6vw, 64px) 24px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 30px; width: auto; max-width: 100%; color: var(--c-white); margin-bottom: 14px; }
.footer-brand p { margin: 0 0 4px; }
.footer-license { color: var(--c-concrete); font-size: 0.9rem; }
.footer-nav, .footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-nav a { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1.05rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--c-accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px 28px; border-top: 1px solid var(--c-steel); font-size: 0.9rem; color: var(--c-concrete); }
.footer-bottom p { margin: 0; }
.back-to-top:hover { color: var(--c-accent); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
}
