/* ==========================================================================
   PRO DRON SHOT — style.css
   White / black / gold. Photography leads; thin rails frame the content.
   ========================================================================== */

:root {
  /* Brand */
  --gold: #daa06d;
  --gold-hover: #c98d58;
  --gold-ink: #9a6a35;
  --gold-soft: #f7eee4;
  --gold-soft-hover: #f0e0cf;

  /* Neutrals */
  --black: #0f1011;
  --ink: #0f1011;
  --text: #3c4043;
  --muted: #5f6368;
  --subtle: #8e9196;
  --white: #ffffff;
  --surface: #f6f6f5;
  --line: #ebebeb;
  --line-strong: #dcdcdc;
  --line-dark: rgba(255, 255, 255, 0.1);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --frame-w: 1320px;
  --rail-x: clamp(0px, 3.5vw, 64px);
  --pad: clamp(16px, 2.6vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 64px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --ease: cubic-bezier(0.5, 0, 0, 0.75);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

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

html.has-modal { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible,
.block--dark :focus-visible { outline-color: var(--white); }

section[id] { scroll-margin-top: var(--header-h); }

.lucide { width: 20px; height: 20px; stroke-width: 1.75; flex: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 8px; }

.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }

/* --------------------------------------------------------------------------
   Frame — content column with vertical rails and section dividers
   -------------------------------------------------------------------------- */

.frame {
  position: relative;
  width: min(100% - 2 * var(--rail-x), var(--frame-w));
  margin-inline: auto;
  padding: var(--section-y) var(--pad);
  border-inline: 1px solid var(--line);
}

.block + .block > .frame { border-top: 1px solid var(--line); }

/* Dark band keeps the side rails in a dark tone, without a light divider on top */
.block--dark { background: var(--black); color: var(--white); }
.block--dark > .frame { border-inline-color: var(--line-dark); }
.block + .block--dark > .frame { border-top-color: transparent; }

@media (max-width: 767px) {
  :root { --rail-x: 0px; }
  .frame,
  .block--dark > .frame { border-inline-color: transparent; }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.eyebrow {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.block--dark .eyebrow,
.on-dark .eyebrow { color: var(--gold); }

.display {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.h-lg {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.h-md {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lead {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 22px;
  border: 0;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn .lucide { width: 16px; height: 16px; stroke-width: 2.25; transition: transform 0.3s var(--ease); }
.btn:hover .lucide-chevron-right { transform: translateX(3px); }

.btn--primary { background: var(--gold); color: var(--black); }
.btn--primary:hover { background: var(--gold-hover); }

.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: rgba(255, 255, 255, 0.82); }

.btn--outline { background: var(--white); color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--outline:hover { color: var(--black); box-shadow: inset 0 0 0 1px var(--gold); }

.btn--neutral { background: var(--surface); color: var(--black); }
.btn--neutral:hover { background: var(--line); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { min-width: 168px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.icon-btn:hover { background: var(--gold-soft); color: var(--gold-ink); }
.icon-btn .lucide { width: 21px; height: 21px; stroke-width: 1.6; }

.arrow-group { display: flex; gap: 8px; }

.arrow-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
  color: var(--gold-ink);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), opacity 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.arrow-btn:hover { background: var(--gold-soft-hover); }
.arrow-btn:disabled { background: var(--white); color: var(--subtle); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: default; }
.arrow-btn .lucide { width: 20px; height: 20px; stroke-width: 2; }

/* --------------------------------------------------------------------------
   Media + placeholder (fallback when a photo is missing)
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  background-color: #2b2e33;
  background-image: linear-gradient(162deg, #6e7176 0%, #43464c 40%, #1b1e23 100%);
}

.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media.is-missing > img { visibility: hidden; }

.media.is-missing::after {
  content: attr(data-ph);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.8);
  font: 500 11px/1.3 var(--font-mono);
  text-align: right;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  transition: transform 0.45s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
/* The hairline sits below the header, so it would stay on screen without this */
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 2 * var(--rail-x), var(--frame-w));
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--pad);
  border-inline: 1px solid var(--line);
}

.brand { justify-self: start; display: block; padding: 8px 0; }
.brand__logo { width: auto; height: 26px; filter: brightness(0); }

.nav ul { display: flex; gap: 2px; }

.nav a {
  display: block;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav a:hover { background: var(--gold-soft); color: var(--gold-ink); }

.header-actions { justify-self: end; display: flex; gap: 2px; }
.menu-btn { display: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header__inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 767px) {
  :root { --header-h: 56px; }
  .site-header__inner { border-inline-color: transparent; }
  .brand__logo { height: 22px; }
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  overflow-y: auto;
}
.menu::backdrop { background: transparent; }

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--pad);
}

.menu__links { display: grid; padding: 16px calc(var(--pad) - 12px); }

.menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}
.menu__links .lucide { color: var(--gold-ink); }

.menu__cta { display: grid; gap: 12px; padding: 24px var(--pad) 32px; }

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

.block--hero > .frame { padding-block: 0 clamp(8px, 1vw, 16px); }

.hero {
  position: relative;
  height: min(calc(100svh - var(--header-h) - 16px), 58vw);
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  isolation: isolate;
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 45%),
    linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 30%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 10vh, 112px) var(--pad) 0;
  text-align: center;
}

.hero__title { font-size: clamp(36px, 5vw, 64px); color: var(--white); }

.hero__ctas { justify-content: center; margin-top: 36px; }

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  margin: 0;
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .block--hero > .frame { padding: 0 8px 8px; }
  .hero { height: calc(100svh - var(--header-h) - 8px); min-height: 540px; max-height: 800px; }
  .hero__ctas { width: 100%; max-width: 360px; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Dots
   -------------------------------------------------------------------------- */

.dots { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), width 0.3s var(--ease);
}
.dot::after { content: ""; position: absolute; inset: -8px; }
.dot.is-active { width: 32px; border-radius: 4px; }

/* Fill shows how long the active slide stays */
.dot__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}
.dot.is-active .dot__fill { transform: scaleX(1); }

.dots--light .dot { background: rgba(255, 255, 255, 0.4); }
.dots--light .dot__fill { background: var(--white); }

/* --------------------------------------------------------------------------
   Head — title + CTA left, short aside right
   -------------------------------------------------------------------------- */

.head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px clamp(32px, 8vw, 128px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.head__main .h-lg { max-width: 20ch; }
.head__main > .btn { margin-top: 28px; }

.head__aside {
  max-width: 40ch;
  padding-top: 30px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}

.head--controls { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }

.head__sub {
  margin-top: 6px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--subtle);
}

.head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 900px) {
  .head { grid-template-columns: 1fr; }
  .head__aside { padding-top: 0; }
  .head--controls { grid-template-columns: 1fr auto; }
}

/* No room beside the title on phones — the button drops below it */
@media (max-width: 767px) {
  .head--controls > .btn { grid-column: 1 / -1; justify-self: start; }
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

/* Grid cells run rail to rail, so their lines continue the frame */
.block--stats > .frame { padding-block: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: calc(-1 * var(--pad));
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(36px, 4.5vw, 60px) 16px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line); }

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__plus { color: var(--gold); }

.stat__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding-block: 32px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Carousel (scroll-snap)
   -------------------------------------------------------------------------- */

.carousel__viewport {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport > * { flex: 0 0 auto; scroll-snap-align: start; }
.carousel__viewport:focus-visible { outline-offset: -2px; }

/* Runs edge-to-edge between the rails */
.carousel--bleed .carousel__viewport,
.carousel__viewport--bleed {
  margin-inline: calc(-1 * var(--pad));
  padding-inline: var(--pad);
  scroll-padding-inline: var(--pad);
}

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

.card {
  width: 86%;
  height: clamp(440px, 40vw, 640px);
  border-radius: var(--radius-lg);
  color: var(--white);
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 28%);
  pointer-events: none;
}

.card > img { transition: transform 1.4s var(--ease); }
.card:hover > img { transform: scale(1.03); }

.card__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 40px);
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.card__sub { margin-top: 6px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255, 255, 255, 0.92); }
.card .btn-row { margin-top: 24px; }

@media (max-width: 767px) {
  .card { width: 88%; height: min(72svh, 580px); min-height: 460px; }
  .card .btn-row .btn { flex: 1 1 140px; min-width: 0; padding-inline: 16px; }
}

/* --------------------------------------------------------------------------
   Case studies — accordion rows
   -------------------------------------------------------------------------- */

.case + .case { border-top: 1px solid var(--line); }

.case__row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
}
.case__row::-webkit-details-marker { display: none; }
.case__row::marker { content: ""; }

.case__thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.case__thumb img { width: 100%; height: 100%; object-fit: cover; }

.case__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.case__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
  color: var(--gold-ink);
  transition: background-color 0.3s var(--ease);
}
.case__row:hover .case__toggle { background: var(--gold-soft-hover); }
.case__toggle .lucide { width: 20px; height: 20px; stroke-width: 2; }
.case__minus { display: none; }
.case[open]:not(.is-closing) .case__plus { display: none; }
.case[open]:not(.is-closing) .case__minus { display: block; }

.case__body { overflow: hidden; }
.case__body > :last-child { margin-bottom: 32px; }

.case__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
}
.case__media > img { transition: transform 1.4s var(--ease); }
.case__media:hover > img { transform: scale(1.02); }

.case__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
}

.case__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-size: 16px;
  color: var(--muted);
}
.case__stats strong { font-weight: 600; color: var(--ink); }

@media (max-width: 767px) {
  .case__row { gap: 14px; padding: 16px 0; }
  .case__thumb { width: 44px; height: 44px; }
  .case__toggle { width: 40px; height: 40px; }
  .case__media { aspect-ratio: 4 / 3; }
  .case__stats { flex-direction: column; gap: 4px; }
  .case__footer .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Expanding gallery — active photo wide, the rest narrow by distance
   -------------------------------------------------------------------------- */

.gallery__track {
  display: flex;
  gap: 16px;
  height: clamp(340px, 36vw, 520px);
  overflow: hidden;
}

/* JS sets exact widths; without it the photos share the row equally */
.gallery__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  isolation: isolate;
}
.gallery.is-ready .gallery__track { gap: 0; }
.gallery.is-ready .gallery__item { flex: none; }

/* Photo keeps the active width and is only cropped, so it never rescales */
.gallery__item > img {
  inset: 0 auto auto 50%;
  width: var(--gallery-img-w, 100%);
  max-width: none;
  transform: translateX(-50%);
}

.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.gallery__item.is-active::before { opacity: 1; }
.gallery__item.is-active { cursor: zoom-in; }
.gallery__item:not(.is-active):hover > img { filter: brightness(1.1); }

.gallery__name {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery__item.is-active .gallery__name {
  opacity: 1;
  transform: none;
  transition-duration: 0.5s;
  transition-delay: 0.35s;
}

.gallery__caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: 32px;
}

.gallery__text {
  max-width: 46ch;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.gallery__text strong { font-weight: 500; color: var(--ink); }
.gallery__caption .btn { flex: none; }

@media (max-width: 767px) {
  .gallery__track { height: min(100vw, 480px); margin-inline: calc(-1 * var(--pad)); }
  .gallery .arrow-group { display: none; }
  .gallery__caption { flex-direction: column; margin-top: 24px; }
  .gallery__name { left: 20px; bottom: 18px; }
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.steps-wrap { position: relative; }

.steps__line {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.steps__progress {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform-origin: left center;
}

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }

.step { position: relative; padding-top: 44px; }

.step__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--white);
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.steps-wrap.is-animated .step:not(.is-active) .step__dot { background: var(--line-strong); }

.step__num {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.step p { max-width: 28ch; font-size: 15px; line-height: 1.6; color: var(--muted); }

@media (max-width: 900px) {
  .steps__line { top: 0; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .steps__progress { transform-origin: center top; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step { padding: 0 0 0 40px; }
  .step__dot { top: 3px; }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
}

.about__media { aspect-ratio: 4 / 5; max-height: 80svh; border-radius: var(--radius-lg); }

.about__text .lead { margin-top: 18px; }

.features { display: grid; gap: 18px; margin: 36px 0; }

.feature { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; font-size: 15px; color: var(--muted); }
.feature .lucide { width: 22px; height: 22px; margin-top: 1px; color: var(--gold-ink); }
.feature strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink); }

.team {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.team__photo { flex: none; width: 64px; height: 64px; border-radius: var(--radius-lg); }
.team__photo > img { object-position: 50% 20%; }
.team__text { font-size: 15px; color: var(--muted); }
.team__text strong { display: block; font-size: 17px; font-weight: 500; color: var(--ink); }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; max-height: none; }
}

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

.block--clients > .frame { padding-block: clamp(56px, 6vw, 88px); }
.block--clients .head { margin-bottom: 36px; }

.marquee {
  margin-inline: calc(-1 * var(--pad));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track { display: flex; width: max-content; }

.marquee__list {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  padding-right: clamp(40px, 5vw, 80px);
}

.marquee__list li { flex: none; display: flex; align-items: center; height: 64px; }

/* Logos sit in one grey tone and show their colours on hover */
.logo {
  width: auto;
  height: 34px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}
.logo--mid { height: 46px; }
.logo--square { height: 60px; }
.marquee__list li:hover .logo { filter: none; opacity: 1; }

@media (max-width: 767px) {
  .marquee__list li { height: 52px; }
  .logo { height: 28px; max-width: 140px; }
  .logo--mid { height: 38px; }
  .logo--square { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; margin-inline: 0; }
  .marquee__track { width: auto; justify-content: center; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 16px; padding: 0; }
  .marquee__list[aria-hidden="true"] { display: none; }
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.review {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(380px, 82vw);
  min-height: 360px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.review__icon { width: 28px; height: 28px; }

.review__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.review__more {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.review__footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.review__name { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.review__role { display: block; font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(32px, 7vw, 112px);
}

.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }

.faq__icon { color: var(--gold-ink); transition: transform 0.35s var(--ease); }
.faq__item[open]:not(.is-closing) .faq__icon { transform: rotate(45deg); }

.faq__a { overflow: hidden; }
.faq__a p { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.faq__a a { color: var(--gold-ink); text-underline-offset: 3px; }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__a p { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   Contact (dark)
   -------------------------------------------------------------------------- */

/* Heading sits level with the form's top, the contact rows with its bottom */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  align-items: stretch;
  gap: clamp(40px, 7vw, 112px);
}

.contact__text { display: flex; flex-direction: column; }

.contact .display { color: var(--white); }

.contact__lead {
  max-width: 40ch;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

/* Contact rows — same divided rhythm as the FAQ and case lists */
.contact__list { margin-top: auto; padding-top: 48px; }

.contact__list li { border-bottom: 1px solid var(--line-dark); }
.contact__list li:first-child { border-top: 1px solid var(--line-dark); }

.contact__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  text-decoration: none;
  color: var(--white);
}

.contact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(218, 160, 109, 0.14);
  color: var(--gold);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact__icon .lucide { width: 20px; height: 20px; stroke-width: 2; }

.contact__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.contact__value {
  display: block;
  margin-top: 4px;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact__arrow { color: rgba(255, 255, 255, 0.35); transition: color 0.3s var(--ease), transform 0.3s var(--ease); }

.contact__item:hover .contact__icon { background: var(--gold); color: var(--black); }
.contact__item:hover .contact__arrow { color: var(--gold); transform: translate(2px, -2px); }

/* Social profiles */
.socials { display: flex; gap: 10px; margin-top: 28px; }

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.social .lucide { width: 20px; height: 20px; }
.social:hover { background: var(--gold); color: var(--black); }

/* Typeform embed — framed like a panel, with a title bar */
.typeform {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1b1d20;
}

.typeform__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-dark);
}

.typeform__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.typeform__box { position: relative; height: 560px; }

.typeform__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.typeform__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.typeform__fallback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s var(--ease);
}
.typeform__fallback:hover { color: var(--gold); }
.typeform__fallback .lucide { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__list { padding-top: 36px; }
}

@media (max-width: 560px) {
  .typeform__box { height: 520px; }
}

/* --------------------------------------------------------------------------
   Footer (dark)
   -------------------------------------------------------------------------- */

/* Divider runs rail to rail, like the section dividers above */
.footer > .frame { border-top: 1px solid var(--line-dark); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px clamp(24px, 3vw, 32px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }

.footer__link {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.footer__link:hover { color: var(--gold); }

.footer__up {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s var(--ease);
}
.footer__up .lucide { width: 16px; height: 16px; stroke-width: 2; transition: transform 0.3s var(--ease); }
.footer__up:hover { color: var(--gold); }
.footer__up:hover .lucide { transform: translateY(-3px); }

@media (max-width: 767px) {
  .footer__copy { flex-basis: 100%; }
  .footer__nav { flex: 1; justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   Dialogs
   -------------------------------------------------------------------------- */

dialog::backdrop { background: rgba(0, 0, 0, 0.6); }

@media (prefers-reduced-motion: no-preference) {
  dialog[open]::backdrop { animation: backdrop-in 0.3s ease-out; }
}

@keyframes backdrop-in { from { opacity: 0; } }

.modal {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
  background: rgba(255, 255, 255, 0.9);
}

.modal__media { aspect-ratio: 16 / 9; }
.modal__body { padding: clamp(24px, 4vw, 40px); }
.modal__content > .modal__body:first-child { padding-top: 56px; }

.modal__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.modal__text { font-size: 16px; line-height: 1.65; color: var(--muted); }
.modal__quote p { font-size: 17px; line-height: 1.65; color: var(--text); }

.checklist { display: grid; gap: 8px; margin: 20px 0 28px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.checklist .lucide { width: 18px; height: 18px; stroke-width: 2.25; color: var(--gold-ink); }

.modal--video {
  width: min(1200px, calc(100% - 32px));
  background: transparent;
  overflow: visible;
}
.modal--video .modal__close { top: -52px; right: 0; background: transparent; color: var(--white); }
.modal--video .modal__close:hover { background: rgba(255, 255, 255, 0.12); color: var(--gold); }

.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--black); }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 11, 12, 0.95);
  color: var(--white);
}
.lightbox::backdrop { background: transparent; }

.lightbox__figure {
  position: absolute;
  inset: 72px calc(var(--pad) + 64px) 32px;
  display: flex;
  flex-direction: column;
}

.lightbox__media { flex: 1; border-radius: var(--radius-lg); }
.lightbox__media:not(.is-missing) { background: none; }
.lightbox__media > img { object-fit: contain; }

.lightbox__caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
}

.lightbox__cat {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox__title { display: block; font-size: 20px; font-weight: 500; }
.lightbox__count { font-size: 14px; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }

.lightbox__close { position: absolute; top: 16px; right: var(--pad); color: var(--white); }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.12); color: var(--gold); }

.lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  color: var(--black);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.3s var(--ease);
}
.lightbox__arrow:hover { background: var(--white); }
.lightbox__arrow .lucide { width: 22px; height: 22px; }
.lightbox__arrow--prev { left: var(--pad); }
.lightbox__arrow--next { right: var(--pad); }

@media (max-width: 767px) {
  .lightbox__figure { inset: 64px var(--pad) 88px; }
  .lightbox__arrow { display: grid; top: auto; bottom: 24px; transform: none; }
  .lightbox__arrow--prev { left: var(--pad); }
  .lightbox__arrow--next { left: calc(var(--pad) + 52px); right: auto; }
}
