/* =========================================================
   MP Content — design system v2
   Clean, monochrome, photography-led. No accent colour, no
   status/badge metaphor, single typeface throughout.
   ========================================================= */

:root {
  color-scheme: dark;

  /* --- surfaces --- */
  --ground: #121212;
  --ground-2: #1a1a1a;
  --ground-3: #0a0a0a;
  --ground-raised: #212121;

  /* --- text --- */
  --text: #f5f4f2;
  --text-dim: #aaaaa8;
  --text-dim-2: #8a8a88;

  /* --- lines --- */
  --line: rgba(245, 244, 242, 0.12);
  --line-strong: rgba(245, 244, 242, 0.24);

  /* --- inverse (for solid light buttons) --- */
  --inverse-bg: #f5f4f2;
  --inverse-text: #121212;

  /* --- accent: used sparingly (links, active nav, focus, CTA) --- */
  --accent: #5b8cff;
  --accent-dim: #3a5cb8;

  /* --- light section: for alternating light/dark rhythm --- */
  --light-bg: #f5f4f2;
  --light-bg-2: #ebeae7;
  --light-text: #121212;
  --light-text-dim: #555553;
  --light-line: rgba(18, 18, 18, 0.12);
  --light-line-strong: rgba(18, 18, 18, 0.22);
  --accent-on-light: #3a5cb8;

  /* --- type --- */
  --font: "Hanken Grotesk", -apple-system, system-ui, sans-serif;

  --fs-h1: clamp(2.6rem, 2.1vw + 2.1rem, 4.4rem);
  --fs-h2: clamp(1.9rem, 1.4vw + 1.5rem, 2.8rem);
  --fs-h3: clamp(1.3rem, 0.6vw + 1.1rem, 1.6rem);
  --fs-body-lg: clamp(1.05rem, 0.3vw + 1rem, 1.2rem);
  --fs-body: 1rem;
  --fs-card-title: 1.125rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* --- space --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  --container: 1280px;
  --pad-inline: clamp(20px, 4.5vw, 56px);
  --radius: 2px;

  /* --- motion --- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-7); }
.section-head { max-width: 640px; margin-bottom: var(--sp-7); }

.eyebrow {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--sp-3);
}

h2.section-title {
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
}
.section-lede {
  font-size: var(--fs-body-lg);
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.6;
  font-weight: 400;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 100ms var(--ease-out), background 150ms ease, border-color 150ms ease, opacity 150ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--inverse-bg);
  color: var(--inverse-text);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { opacity: 0.85; }
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--pad-inline);
  background: var(--ground-3);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: var(--fs-card-title);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.wordmark span { color: var(--accent); font-weight: 400; }
.nav-links { display: flex; gap: var(--sp-7); align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 100ms var(--ease-out);
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta:active { transform: scale(0.97); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text);
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}
.site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ground-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    padding: var(--sp-3) var(--pad-inline) var(--sp-5);
  }
  .site-nav.is-open .nav-links a {
    padding: var(--sp-4) 0;
    font-size: var(--fs-body-lg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open .nav-links li:last-child a { border-bottom: none; }
}

/* ---------- simple card ---------- */
.card {
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: var(--fs-card-title); font-weight: 600; }
.card p { color: var(--text-dim); font-size: var(--fs-small); line-height: 1.6; font-weight: 400; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 9px 16px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 100ms var(--ease-out);
}
.card-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(91, 140, 255, 0.08); }
.card-link:active { transform: scale(0.97); }
.card .card-link { margin-top: var(--sp-2); }
.card ul { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.card li {
  font-size: var(--fs-small);
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}
.card li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 1.5px;
  background: var(--text-dim-2);
}
.card.is-pending { opacity: 0.85; }
.card .pending-note {
  font-size: var(--fs-micro);
  color: var(--text-dim-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- featured card: image + content, for primary services ---------- */
.card-featured {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ground-2);
  transition: border-color 0.15s ease;
}
.card-featured:hover { border-color: var(--line-strong); }
.card-featured .card-featured-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-featured .card-featured-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card-featured:hover .card-featured-media img { transform: scale(1.04); }
}
.card-featured .card-featured-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.card-featured h3 { font-size: var(--fs-h3); font-weight: 600; }
.card-featured p { color: var(--text-dim); font-size: var(--fs-body); line-height: 1.65; }
.card-featured .card-link { margin-top: auto; padding-top: var(--sp-2); }

/* ---------- compact list: secondary services ---------- */
.compact-list { display: flex; flex-direction: column; }
.compact-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-6);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.compact-item:last-child { border-bottom: 1px solid var(--line); }
.compact-item h3 { font-size: var(--fs-card-title); font-weight: 600; flex: 0 0 auto; min-width: 220px; }
.compact-item p { color: var(--text-dim); font-size: var(--fs-small); flex: 1 1 320px; margin: 0; }
.compact-item .card-link { flex: 0 0 auto; font-size: var(--fs-small); font-weight: 600; text-decoration: none; color: var(--text); transition: color 0.15s ease; }
.compact-item .card-link:hover { color: var(--accent); }
.compact-item .pending-note {
  font-size: var(--fs-micro);
  color: var(--text-dim-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

/* ---------- tab bar: shared by service tabs and portfolio filters ---------- */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-7);
}
.tab-btn {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  background: var(--ground-2);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  transition: color 0.15s ease, background 0.15s ease, transform 100ms var(--ease-out);
}
.tab-btn:hover { color: var(--text); background: var(--ground-raised); }
.tab-btn:active { transform: scale(0.97); }
.tab-btn.is-active {
  color: var(--inverse-text);
  background: var(--inverse-bg);
  border-color: transparent;
}

/* ---------- service tab panels ---------- */
.service-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.service-panel.is-active {
  display: grid;
  animation: panel-in 0.4s var(--ease-out);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.service-panel-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}
.service-panel-media img, .service-panel-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.service-panel-body h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--sp-4); }
.service-panel-body p { color: var(--text-dim); font-size: var(--fs-body-lg); line-height: 1.65; margin-bottom: var(--sp-5); }
@media (max-width: 760px) {
  .service-panel { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ---------- trusted-by: full-width bold treatment ---------- */
.trust-band {
  background: var(--ground-3);
  padding-block: var(--sp-6);
  text-align: center;
}
.trust-band h2 {
  font-size: var(--fs-card-title);
  font-weight: 600;
  margin-bottom: var(--sp-5);
}
.trust-band h2 span { color: var(--accent); }
.trust-band .logo-strip { justify-content: center; gap: var(--sp-9) var(--sp-8); }
.trust-band .logo-strip img { height: 32px; opacity: 0.85; }

/* ---------- portfolio filter grid ---------- */
.media-item[hidden] { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.45) 50%, rgba(10,10,10,0.8) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: var(--sp-9) var(--pad-inline);
  max-width: var(--container);
  margin-inline: auto;
}
.hero-copy { max-width: 640px; }
.hero-copy h1 {
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.hero-copy p {
  font-size: var(--fs-body-lg);
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: var(--sp-6);
  font-weight: 400;
}

@media (max-width: 900px) {
  .hero { min-height: 100vh; }
}

/* ---------- grids ---------- */
.grid { display: grid; gap: var(--sp-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- logo strip: uniform monochrome treatment ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-7);
  align-items: center;
}
.logo-strip img {
  height: 26px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.15s ease;
}
.logo-strip img:hover { opacity: 1; }

/* Rabbitohs mark is a finished two-tone asset (white fill + black outline
   detail, transparent bg), not a flat colour logo, the standard invert
   filter flattens the outline detail away. Render it natively. */
.logo-strip img[src*="rabbitohs"] { filter: none; }
.section-light .logo-strip img[src*="rabbitohs"] { filter: none; }


/* ---------- media grid (portfolio) ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.media-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.media-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ground-2);
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 0;
}
.media-item.wide { aspect-ratio: 16 / 10; grid-column: span 2; }
.media-item.portrait { aspect-ratio: 9 / 16; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .media-item:hover img, .media-item:hover video { transform: scale(1.04); }
}
.media-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  background: linear-gradient(0deg, rgba(10,10,10,0.8), rgba(10,10,10,0));
  text-align: left;
}
.media-item .expand-icon, .media-item .play-icon {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(10,10,10,0.55);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  backdrop-filter: blur(4px);
}
@media (max-width: 900px) {
  .media-grid, .media-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .media-item.wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .media-grid, .media-grid.cols-4 { grid-template-columns: 1fr; }
  .media-item.wide { grid-column: span 1; }
}

/* ---------- lightbox: images + video ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 6, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 200ms ease, visibility 0s linear 0s; }
.lightbox video, .lightbox img.lightbox-img {
  max-width: min(1200px, 92vw); max-height: 86vh; border-radius: var(--radius); background: #000;
  transform: scale(0.96);
  transition: transform 200ms var(--ease-out);
  width: auto; height: auto;
}
.lightbox.is-open video, .lightbox.is-open img.lightbox-img { transform: scale(1); }
.lightbox video[hidden], .lightbox img.lightbox-img[hidden] { display: none; }
.lightbox-close {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ground);
  transition: transform 100ms var(--ease-out);
}
.lightbox-close:active { transform: scale(0.9); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ground-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-8);
  text-align: center;
}
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.cta-band p { color: var(--text-dim); margin-bottom: var(--sp-6); }
.cta-band .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--ground-3); padding-block: var(--sp-8) var(--sp-6); }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line);
}
.footer-brand .wordmark { font-size: var(--fs-card-title); }
.footer-brand p { color: var(--text-dim); font-size: var(--fs-small); max-width: 34ch; margin-top: var(--sp-3); }
.footer-cols { display: flex; gap: var(--sp-9); flex-wrap: wrap; }
.footer-col-heading {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim-2);
  margin-bottom: var(--sp-4);
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--fs-small);
  margin-bottom: var(--sp-3);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-6);
  font-size: var(--fs-micro);
  color: var(--text-dim-2);
  letter-spacing: 0.02em;
}

/* ---------- utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid.reveal { opacity: 1; transform: none; }
.grid.reveal > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.grid.reveal.is-visible > * { opacity: 1; transform: translateY(0); }
.grid.reveal > *:nth-child(1) { transition-delay: 0ms; }
.grid.reveal > *:nth-child(2) { transition-delay: 50ms; }
.grid.reveal > *:nth-child(3) { transition-delay: 100ms; }
.grid.reveal > *:nth-child(4) { transition-delay: 150ms; }
.grid.reveal > *:nth-child(n+5) { transition-delay: 200ms; }

/* Light section: redefines the surface/text tokens locally, so every
   existing component (card, tab-bar, media-item, etc.) just works inside
   it without duplicate rules, since they all already read these vars. */
.section-light {
  --ground: var(--light-bg);
  --ground-2: var(--light-bg-2);
  --ground-3: var(--light-bg-2);
  --text: var(--light-text);
  --text-dim: var(--light-text-dim);
  --text-dim-2: var(--light-text-dim);
  --line: var(--light-line);
  --line-strong: var(--light-line-strong);
  --inverse-bg: var(--light-text);
  --inverse-text: var(--light-bg);
  --accent: var(--accent-on-light);
  background: var(--ground);
  color: var(--text);
}
.section-light .logo-strip img { filter: grayscale(1) brightness(0); opacity: 0.75; }
.section-light .logo-strip img:hover { opacity: 1; }

.mono { font-variant-numeric: tabular-nums; }
.text-dim { color: var(--text-dim); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- page hero (non-home pages) ---------- */
.page-hero {
  padding: var(--sp-9) var(--pad-inline) var(--sp-7);
  max-width: var(--container);
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
  max-width: 18ch;
}
.page-hero p { font-size: var(--fs-body-lg); color: var(--text-dim); max-width: 56ch; font-weight: 400; }

/* ---------- contact form ---------- */
.form { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 560px; }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field textarea, .field select {
  background: var(--ground-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--text); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: var(--fs-small); color: var(--text-dim-2); }

.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-9); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* ---------- blog index grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6) var(--sp-5);
}
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}
.post-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: var(--sp-4);
}
.post-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover .post-card-media img { transform: scale(1.05); }
}
.post-card .post-meta {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim-2);
  margin-bottom: var(--sp-2);
}
.post-card h3 { font-size: var(--fs-card-title); font-weight: 600; margin-bottom: var(--sp-2); line-height: 1.25; }
.post-card p { color: var(--text-dim); font-size: var(--fs-small); line-height: 1.5; }
.article-body { max-width: 70ch; margin-inline: auto; padding: var(--sp-6) var(--pad-inline); }
.article-body h2 { font-size: var(--fs-h3); margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.article-body p { color: var(--text-dim); margin-bottom: var(--sp-5); line-height: 1.7; }
.article-body img { border-radius: var(--radius); margin-block: var(--sp-6); }

/* ---------- featured project card: overlay title, links to a project page ---------- */
.project-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease-out);
  filter: grayscale(0.15);
}
@media (hover: hover) and (pointer: fine) {
  .project-card:hover img { transform: scale(1.06); filter: grayscale(0); }
}
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.15) 55%, rgba(10,10,10,0) 75%);
}
.project-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-5);
  z-index: 1;
}
.project-card-client {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.project-card-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}
.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.project-card:hover .project-card-link { border-color: var(--accent); background: rgba(91, 140, 255, 0.1); }

/* ---------- project detail page ---------- */
.project-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.project-hero-media { position: absolute; inset: 0; z-index: 0; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.25) 60%, rgba(10,10,10,0.15) 100%);
}
.project-hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: var(--sp-8) var(--pad-inline);
  max-width: var(--container);
  margin-inline: auto;
}
.project-hero-inner .eyebrow { color: var(--accent); }
.project-hero-inner h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.02em; margin-bottom: var(--sp-3); }
.project-hero-inner p { font-size: var(--fs-body-lg); color: var(--text-dim); max-width: 50ch; }
.project-video-feature {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.project-video-feature img, .project-video-feature video { width: 100%; height: 100%; object-fit: cover; }
.project-video-feature.portrait { aspect-ratio: 9 / 16; max-width: 380px; margin-inline: auto; }
.service-panel-media.portrait { aspect-ratio: 9 / 16; max-width: 320px; margin-inline: auto; }
.article-img-row figure.portrait img, .article-img-row figure.portrait video { aspect-ratio: 9 / 16; }
.project-video-feature .play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(10,10,10,0.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(4px);
}

/* ---------- mini gallery: click-through image set inside a service panel ---------- */
.mini-gallery { position: relative; }
.mini-gallery-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}
.mini-gallery-viewport img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 400ms ease;
}
.mini-gallery-viewport img.is-active { opacity: 1; }
.mini-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,10,10,0.55);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, transform 100ms var(--ease-out);
  z-index: 2;
}
.mini-gallery-nav:hover { background: rgba(10,10,10,0.8); }
.mini-gallery-nav:active { transform: translateY(-50%) scale(0.92); }
.mini-gallery-nav.prev { left: var(--sp-3); }
.mini-gallery-nav.next { right: var(--sp-3); }
.mini-gallery-dots {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-4);
}
.mini-gallery-dots button {
  width: 8px; height: 8px; min-width: 8px; min-height: 8px;
  padding: 0; flex-shrink: 0; border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.15s ease, transform 100ms var(--ease-out);
}
.mini-gallery-dots button.is-active { background: var(--accent); }
.mini-gallery-dots button:active { transform: scale(0.85); }

/* ---------- rich article layout ---------- */
.article-hero-img {
  max-width: 1000px;
  margin: 0 auto var(--sp-2);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
/* Full-height variant: for composite before/after or portrait images
   where cropping to 16:9 would cut off content that needs to stay visible. */
.article-hero-img.tall { aspect-ratio: auto; max-height: 80vh; }
.article-hero-img.tall img { height: auto; max-height: 80vh; object-fit: contain; }

.article-img-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  max-width: 900px;
  margin: var(--sp-6) auto;
  padding-inline: var(--pad-inline);
}
.article-img-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.article-img-row figure { margin: 0; }
.article-img-row img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
}
.article-img-row figcaption {
  font-size: var(--fs-micro);
  color: var(--text-dim-2);
  margin-top: var(--sp-2);
}
@media (max-width: 700px) {
  .article-img-row, .article-img-row.cols-3 { grid-template-columns: 1fr; }
}
.article-img-row figure.has-video { position: relative; }
.article-img-row figure.has-video .play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(10,10,10,0.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.article-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  max-width: 900px;
  margin: var(--sp-6) auto;
  padding-inline: var(--pad-inline);
}
.article-stat {
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-align: center;
}
.article-stat .stat-number {
  display: block;
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.article-stat .stat-label { font-size: var(--fs-small); color: var(--text-dim); }
@media (max-width: 700px) { .article-stat-grid { grid-template-columns: 1fr; } }

.article-pullquote {
  max-width: 640px;
  margin: var(--sp-6) auto;
  padding-inline: var(--pad-inline);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  text-wrap: balance;
}
.article-pullquote::before {
  content: "";
  display: block;
  width: 40px; height: 3px;
  background: var(--accent);
  margin-bottom: var(--sp-4);
}

.article-video-embed {
  max-width: 900px;
  margin: var(--sp-6) auto;
  padding-inline: var(--pad-inline);
}
.article-video-embed .project-video-feature { aspect-ratio: 16 / 9; }
.article-video-embed p {
  font-size: var(--fs-small);
  color: var(--text-dim-2);
  margin-top: var(--sp-3);
  text-align: center;
}

/* ---------- accordion: click-through dropdowns for benefits / FAQ blocks ---------- */
.accordion {
  max-width: 900px;
  margin: var(--sp-6) auto;
  padding-inline: var(--pad-inline);
}
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-item:first-child { border-top: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5) 2px;
  text-align: left;
  font-family: var(--font);
  font-size: var(--fs-card-title);
  font-weight: 600;
  color: var(--text);
}
.accordion-trigger:hover { color: var(--accent); }
.accordion-icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  position: relative;
}
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  background: var(--text-dim);
  transition: transform 250ms var(--ease-out), background 0.15s ease;
}
.accordion-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.accordion-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.accordion-item.is-open .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.accordion-item.is-open .accordion-trigger .accordion-icon::before,
.accordion-item.is-open .accordion-trigger .accordion-icon::after { background: var(--accent); }
.accordion-panel {
  height: 0;
  overflow: hidden;
  transition: height 300ms var(--ease-out);
}
.accordion-panel-inner {
  padding: 0 2px var(--sp-5);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 68ch;
}

/* ---------- highlight grid: uniform-crop image wall, e.g. best drone shots across projects ---------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}
.highlight-grid figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.highlight-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .highlight-grid figure:hover img { transform: scale(1.06); }
}
.highlight-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-3);
  font-size: var(--fs-micro);
  color: #fff;
  background: linear-gradient(0deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .highlight-grid figure:hover figcaption { opacity: 1; }
}
@media (max-width: 980px) { .highlight-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .highlight-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- inline autoplay video: replaces static video screenshots
   everywhere. Muted autoplay loop, paused when off-screen (IO-gated in
   JS), with a corner toggle to unmute in place. ---------- */
.mute-toggle {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(10,10,10,0.6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  backdrop-filter: blur(4px);
  z-index: 2;
  transition: background 0.15s ease, transform 100ms var(--ease-out);
}
.mute-toggle:hover { background: rgba(10,10,10,0.85); }
.mute-toggle:active { transform: scale(0.9); }
.media-item .mute-toggle, .project-video-feature .mute-toggle { top: 12px; right: 12px; width: 28px; height: 28px; font-size: 11px; }

/* ---------- service accordion: expand-in-place with a content preview ---------- */
.service-accordion { margin: 0; max-width: none; padding-inline: 0; }
.service-accordion .accordion-trigger { font-size: var(--fs-h3); }
.service-preview {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  max-width: 780px;
}
.service-preview-media {
  position: relative;
  flex: 0 0 220px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ground-2);
}
.service-preview-media img, .service-preview-media video { width: 100%; height: 100%; object-fit: cover; }
.service-preview-media.portrait { aspect-ratio: 9 / 16; }
.service-preview-body { flex: 1 1 auto; max-width: 56ch; }
.service-preview-body p { color: var(--text-dim); line-height: 1.65; margin-bottom: var(--sp-4); }
@media (max-width: 640px) {
  .service-preview { flex-direction: column; }
  .service-preview-media { flex-basis: auto; width: 100%; }
}
