/* Emerald Wave AVL
   Theme: dark, locked site-wide. Accent: brand emerald, used for CTAs and links only.
   Radius rule: buttons are pill, cards/images 12px, form inputs 8px. */

@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/clash-display-500.woff2') format('woff2');
  font-weight: 500; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/clash-display-600.woff2') format('woff2');
  font-weight: 600; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-display: swap; font-style: normal;
}

:root {
  color-scheme: dark;
  --bg: #0b0e0d;
  --bg-2: #101512;
  --surface: #151b17;
  --line: rgba(233, 240, 235, 0.09);
  --text: #eef2ef;
  --muted: #9aa69f;
  --accent: #2fbf71;
  --accent-strong: #37d980;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-card: 12px;
  --radius-input: 8px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #06130c; }

p { text-wrap: pretty; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  background: var(--accent);
  color: #06130c;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-64px);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

h1, h2, h3 {
  font-family: 'Clash Display', 'Satoshi', sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
section[id] { scroll-margin-top: 84px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.9375rem; }

.btn-primary {
  background: var(--accent);
  color: #06130c;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 250ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(47, 191, 113, 0.28);
  }
}
.btn-primary:active { transform: translateY(0) scale(0.97); box-shadow: none; }

.btn-ghost {
  color: var(--text);
  border-color: rgba(238, 242, 239, 0.35);
  background: rgba(11, 14, 13, 0.25);
  backdrop-filter: blur(6px);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    border-color: rgba(238, 242, 239, 0.7);
    background: rgba(238, 242, 239, 0.07);
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 14, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  opacity: 0.85;
  transition: opacity 200ms ease, color 200ms ease;
}
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a.active:not(.btn) { color: var(--accent-strong); opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 250ms var(--ease-out), opacity 250ms ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-block: 0 clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-video.ready { opacity: 1; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 14, 13, 0.94) 0%, rgba(11, 14, 13, 0.45) 45%, rgba(11, 14, 13, 0.35) 100%),
    linear-gradient(100deg, rgba(11, 14, 13, 0.55) 0%, rgba(11, 14, 13, 0) 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  max-width: 14ch;
}
.hero-content p {
  margin-top: 1.25rem;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: rgba(238, 242, 239, 0.88);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* Hero load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero-content h1,
  .hero-content p,
  .hero-actions {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-in 900ms var(--ease-out) forwards;
  }
  .hero-content p { animation-delay: 120ms; }
  .hero-actions { animation-delay: 240ms; }
  .hero-media img {
    animation: hero-zoom 2200ms var(--ease-out) forwards;
    transform: scale(1.045);
  }
}
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }
@keyframes hero-zoom { to { transform: scale(1); } }

/* ---------- Clients ---------- */

.clients { padding-block: clamp(3.5rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.clients-lead {
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 2.25rem;
}
.marquee-clients { --gap: 5rem; }
.marquee-clients .marquee-track { animation-duration: 45s; }
.marquee-clients .marquee-track img {
  height: 82px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 400ms ease, transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .marquee-clients .marquee-track img:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
  }
}

/* ---------- Services ---------- */

.services h2 { margin-bottom: 2.75rem; }

.services-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card h3 { font-size: 1.375rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); font-size: 1rem; }

.service-card-feature {
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 480px;
}
.service-card-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card-feature .service-card-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 2rem;
  background: linear-gradient(to top, rgba(11, 14, 13, 0.92) 30%, rgba(11, 14, 13, 0));
  padding-top: 5rem;
}
.service-card-feature p { color: rgba(238, 242, 239, 0.8); }

/* ---------- Featured work ---------- */

.featured { background: var(--bg-2); border-block: 1px solid var(--line); }

.featured-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.featured-media img {
  border-radius: var(--radius-card);
  width: 100%;
  height: auto;
}

.featured-copy h2 { margin-bottom: 1.25rem; }
.featured-copy > p:not(.eyebrow) { color: var(--muted); }

.featured-copy blockquote,
.quote-big {
  margin-top: 2.25rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}
.featured-copy blockquote p { font-size: 1.0625rem; }
blockquote footer {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
blockquote footer img {
  border-radius: 50%;
  object-fit: cover;
  width: 44px;
  height: 44px;
}
blockquote footer strong { display: block; font-size: 0.9375rem; }
blockquote footer span { color: var(--muted); font-size: 0.875rem; }

/* ---------- Video testimonial ---------- */

.btn-play {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--accent-strong);
  transition: color 200ms ease;
}
.btn-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(55, 217, 128, 0.5);
  padding-left: 2px;
  transition: background-color 250ms ease, transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn-play:hover .btn-play-icon {
    background: rgba(55, 217, 128, 0.14);
    transform: scale(1.08);
  }
}
.btn-play:active .btn-play-icon { transform: scale(0.95); }

.video-modal {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  max-width: min(1080px, 92vw);
  width: 100%;
}
.video-modal::backdrop {
  background: rgba(4, 6, 5, 0.85);
  backdrop-filter: blur(6px);
}
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  opacity: 0.8;
  transition: opacity 200ms ease;
}
.video-close:hover { opacity: 1; }

/* ---------- Gallery ---------- */

.gallery h2 { margin-bottom: 2.75rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-grid figure { display: flex; flex-direction: column; }
.gallery-grid .g-wide { grid-column: span 2; }
.gallery-grid .g-full { grid-column: 1 / -1; }
.gallery-grid .g-full img { height: 420px; }
.gallery-grid img {
  border-radius: var(--radius-card);
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gallery-grid figure:hover img { transform: scale(1.02); }
}
.gallery-grid figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 250ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .gallery-grid figure:hover figcaption { color: var(--text); }
}

/* ---------- Mission band ---------- */

.mission {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 62vh;
}
.mission-media { position: absolute; inset: 0; }
.mission-media img { width: 100%; height: 100%; object-fit: cover; }
.mission-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 14, 13, 0.9) 20%, rgba(11, 14, 13, 0.45) 75%);
}
.mission-copy { position: relative; z-index: 1; }
.mission-copy p {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
.mission-copy h2 { max-width: 20ch; font-size: clamp(2rem, 4.2vw, 3.4rem); }

/* ---------- Big quote ---------- */

.quote { padding-block: clamp(4rem, 8vw, 6.5rem); }
.quote-big { max-width: 760px; margin-inline: auto; }
.quote-big p {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.quote-big footer img { width: 52px; height: 52px; }

/* ---------- Gear ---------- */

.gear { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.gear h2 { margin-bottom: 0.9rem; }
.gear-lead { color: var(--muted); max-width: 52ch; margin-bottom: 3rem; }

.marquee {
  --gap: 4.5rem;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding-right: var(--gap);
  flex-shrink: 0;
  animation: marquee 55s linear infinite;
  animation-play-state: paused;
}
.marquee.ready .marquee-track { animation-play-state: running; }
.marquee-gear .marquee-track { animation-direction: reverse; }
.marquee-gear .marquee-track img {
  height: 66px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  opacity: 0.88;
  transition: opacity 400ms ease, transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .marquee-gear .marquee-track img:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
  }
}
@keyframes marquee {
  to { transform: translateX(calc(-100% - var(--gap))); }
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}

/* ---------- Team ---------- */

.team h2 { margin-bottom: 1.1rem; }
.team-intro {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 2.75rem;
}

.team-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-bottom: 2.5rem;
}
.person {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.person img {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(47, 191, 113, 0.35);
}
.person:first-child img { object-position: 72% 30%; }
.person:last-child img { object-position: 50% 20%; }
.bio { margin-bottom: 0; }
.bio h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.bio h3 span {
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--accent);
  margin-left: 0.6rem;
  letter-spacing: 0;
}
.bio p { color: var(--muted); font-size: 1rem; }

/* ---------- Contact ---------- */

.contact { background: var(--bg-2); border-top: 1px solid var(--line); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.contact-copy h2 { margin-bottom: 1.1rem; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); max-width: 40ch; }

.contact-direct {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-direct a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}
.contact-direct a:hover { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field .optional { font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid rgba(233, 240, 235, 0.16);
  border-radius: var(--radius-input);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 200ms ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #e5484d;
}
.contact-form .btn { margin-top: 0.35rem; }
.form-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- Blog ---------- */

.nav-solid {
  background: rgba(11, 14, 13, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.blog-main { padding-top: 72px; }

.blog-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.blog-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 22ch; }
.blog-hero p { color: var(--muted); margin-top: 1rem; max-width: 58ch; }

.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 300ms var(--ease-out), border-color 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { transform: translateY(-3px); border-color: rgba(47, 191, 113, 0.4); }
}
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-card-body { padding: 1.5rem; }
.post-card h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.post-card p { color: var(--muted); font-size: 0.9375rem; }
.post-card time { display: block; margin-top: 1rem; color: var(--muted); font-size: 0.8125rem; }

.article { padding-block: clamp(3rem, 6vw, 4.5rem); }
.article-header { max-width: 760px; margin-inline: auto; margin-bottom: 2.5rem; }
.article-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article-meta { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }
.article-hero-img {
  display: block;
  max-width: 980px;
  margin: 2.5rem auto 0;
  border-radius: var(--radius-card);
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}
.article-body { max-width: 720px; margin-inline: auto; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 2.75rem 0 1rem;
}
.article-body h3 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.15rem; color: rgba(238, 242, 239, 0.86); }
.article-body ul, .article-body ol { margin: 0 0 1.15rem 1.35rem; color: rgba(238, 242, 239, 0.86); }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--accent-strong); }
.article-body strong { color: var(--text); }
.article-body .answer-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.9375rem;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.article-body th { color: var(--text); font-weight: 700; }
.article-body td { color: rgba(238, 242, 239, 0.82); }
.table-scroll { overflow-x: auto; }

.article-cta {
  max-width: 720px;
  margin: 3rem auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
}
.article-cta h2 { margin-bottom: 0.6rem; font-size: 1.5rem; }
.article-cta p { color: var(--muted); margin-bottom: 1.4rem; }

.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 200ms ease;
}
.back-link:hover { color: var(--accent-strong); }

@media (max-width: 860px) {
  .post-list { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding-block: 2.75rem; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-inner > img { height: 50px; width: auto; }
.footer-meta p { color: var(--muted); font-size: 0.875rem; }
.footer-credit-mark {
  display: inline-block;
  margin-top: 0.85rem;
}
.footer-credit-mark img {
  opacity: 0.45;
  transition: opacity 250ms ease;
}
.footer-credit-mark:hover img { opacity: 0.9; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--text); }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 200ms ease;
}
.footer-social a:hover { color: var(--text); }

/* ---------- Scroll reveals ---------- */

/* Reveals only arm when JS is present (html.js), so content is never
   hidden if the script fails to load. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    transition-delay: calc(var(--d, 0) * 60ms);
  }
  html.js .reveal.in { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .marquee-clients .marquee-track img { height: 64px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 72px;
    inset-inline: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
    background: rgba(11, 14, 13, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a:not(.btn) { font-size: 1.15rem; }
  .nav-toggle { display: flex; }
  .nav { background: rgba(11, 14, 13, 0.82); backdrop-filter: blur(14px); }

  .services-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .service-card-feature { min-height: 380px; }
  .featured-grid,
  .team-people,
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-wide { grid-column: auto; }
  .gallery-grid img { height: 260px; }
  .mission { min-height: 55vh; }
}

@media (max-width: 640px) {
  .person img { width: 96px; height: 96px; }
  .field-row { grid-template-columns: 1fr; }
  .marquee-clients .marquee-track img { height: 52px; }
  .marquee-gear .marquee-track img { height: 48px; }
  .hero-content h1 { font-size: clamp(2.35rem, 10vw, 3rem); }
  .hero-media img { object-position: 30% 22%; }
  .hero-media::after {
    background:
      linear-gradient(to top, rgba(11, 14, 13, 0.97) 0%, rgba(11, 14, 13, 0.84) 55%, rgba(11, 14, 13, 0.42) 100%);
  }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
