/* === COMPONENTS === */

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--duration-slow) ease,
              border-color var(--duration-slow) ease,
              backdrop-filter var(--duration-slow) ease;
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: opacity var(--duration-fast) ease;
}

.nav__logo-icon {
  height: 28px;
  width: auto;
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease,
              background var(--duration-fast) ease;
  position: relative;
}

.nav__link:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav__link--active {
  color: var(--color-text-primary);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  z-index: calc(var(--z-overlay) + 1);
}

@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast) ease;
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.nav__mobile-menu.is-open {
  transform: translateX(0);
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color var(--duration-fast) ease;
}

.nav__mobile-link:hover,
.nav__mobile-link--active {
  color: var(--color-text-primary);
}

/* ---- Project Cards ---- */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-bg-card);
  cursor: pointer;
  aspect-ratio: var(--card-ratio, 4 / 3);
  transition: box-shadow var(--duration-normal) var(--ease-out-expo);
}

.project-card__image,
.project-card__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--card-focus, center);
}

.project-card__image {
  transition: transform var(--duration-slow) var(--ease-out-expo),
              filter var(--duration-normal) ease;
}

/* Hover preview clip: sits over the still, fades in once it is playing */
.project-card__video {
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.project-card__video.is-playing {
  opacity: 1;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.35) 32%,
    transparent 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: var(--space-lg);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

/* Mono sub-line under the title: place, artist or category */
.project-card__category {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

.project-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.project-card__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
}

@media (hover: hover) {
  .project-card:hover {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  }

  .project-card:hover .project-card__image {
    transform: scale(1.05);
    filter: brightness(1.08);
  }

  .project-card:hover .project-card__title {
    transform: translateY(-3px);
  }
}

/* ---- Card grid: uniform cards, no masonry ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Upright cards for vertical subjects (sculptures) */
.card-grid--portrait {
  --card-ratio: 4 / 5;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Featured card: a full-width row on tablet */
  .card-grid .project-card--featured {
    grid-column: span 2;
    aspect-ratio: 16 / 8;
  }
}

@media (min-width: 1280px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Featured card: two columns wide, same height as its row */
  .card-grid .project-card--featured {
    aspect-ratio: auto;
  }
}

/* ---- Mapping motif: calibration grid + corner pins that snap on hover ---- */
.map-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: perspective(700px) rotateX(9deg) rotateY(-11deg) scale(1.14);
  transition: opacity 180ms ease,
              transform 620ms var(--ease-out-expo);
}

.map-fx__grid,
.map-fx__diag,
.map-fx__ring {
  position: absolute;
  opacity: 0;
}

/* Square calibration grid with centre cross */
.map-fx__grid {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)) center / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)) center / 100% 1px no-repeat,
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 44px) center / 100% 100%,
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 44px) center / 100% 100%;
}

.map-fx__diag {
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
}

.map-fx__ring {
  top: 50%;
  left: 50%;
  height: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

/* Frame joining the four pins, running through their centres at the card's edges */
.map-fx__frame {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Corner-pin handles */
.map-fx__pin {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid #fff;
  background: rgba(10, 10, 10, 0.55);
  transition: transform 520ms var(--ease-out-expo);
}

.map-fx__pin::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
}

/* Pins sit flush in the card's true corners; they start skewed in from outside */
.map-fx__pin--tl { top: 0;    left: 0;  transform: translate(-16px, -11px); }
.map-fx__pin--tr { top: 0;    right: 0; transform: translate(13px, -17px); }
.map-fx__pin--br { bottom: 0; right: 0; transform: translate(18px, 12px); }
.map-fx__pin--bl { bottom: 0; left: 0;  transform: translate(-12px, 16px); }

@keyframes mapGridFlash {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  55%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes mapPinLock {
  0%, 60% { background: rgba(10, 10, 10, 0.55); }
  72%     { background: #fff; }
  100%    { background: rgba(10, 10, 10, 0.55); }
}

@media (hover: hover) {
  .project-card:hover .map-fx {
    opacity: 1;
    transform: none;
  }

  .project-card:hover .map-fx__grid,
  .project-card:hover .map-fx__diag,
  .project-card:hover .map-fx__ring {
    animation: mapGridFlash 1100ms ease forwards;
  }

  .project-card:hover .map-fx__pin {
    transform: none;
    animation: mapPinLock 800ms ease;
  }

  .project-card:hover .map-fx__pin--tr { transition-delay: 60ms; }
  .project-card:hover .map-fx__pin--br { transition-delay: 120ms; }
  .project-card:hover .map-fx__pin--bl { transition-delay: 180ms; }
}

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

/* ---- Name strip: festivals and venues, scrolling ---- */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  border-block: 1px solid var(--color-border);
  padding-block: clamp(1.25rem, 3vw, 2.5rem);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-width: 100%;
  justify-content: space-around;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 3.4vw, 4rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text-primary);
}

/* Every second name is outlined */
.marquee__item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
}

/* Separator: a small projector-beam triangle */
.marquee__item::after {
  content: '';
  width: 0.34em;
  height: 0.34em;
  margin-inline: clamp(1.25rem, 3vw, 3rem);
  background: var(--color-accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--space-md);
  }

  .marquee__track[aria-hidden="true"] {
    display: none;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out-expo);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #0a0a0a;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--color-accent-glow);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
  z-index: -1;
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: #0a0a0a;
}

.btn--outline:hover::before {
  transform: scaleX(1);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  padding-inline: 0;
}

.btn--ghost:hover {
  color: var(--color-accent-hover);
  text-shadow: 0 0 12px var(--color-accent-glow);
}

.btn--ghost::after {
  content: '\2192';
  display: inline-block;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn--ghost:hover::after {
  transform: translateX(6px);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--color-accent-subtle);
}

/* ---- Filter Bar ---- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter__btn {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-secondary);
  transition: all var(--duration-fast) ease;
}

.filter__btn:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text-primary);
}

.filter__btn--active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

/* ---- Work Category Navigation ---- */
.work-nav {
  position: sticky;
  top: var(--nav-height);
  z-index: calc(var(--z-nav) - 1);
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-md);
  margin-bottom: var(--space-xl);
}

.work-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  padding-inline: var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}

.work-nav__inner::-webkit-scrollbar {
  display: none;
}

.work-nav__link {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-secondary);
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.work-nav__link:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text-primary);
}

.work-nav__link--active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  box-shadow: 0 0 10px var(--color-accent-glow);
}

/* ---- Work Sections ---- */
.work-section {
  padding-bottom: var(--space-2xl);
}

.work-section__header {
  margin-bottom: var(--space-lg);
}

/* Numbered section label: "01", "02" ... set in mono above each title */
.work-section {
  counter-increment: work-section;
}

.work-section__header::before {
  content: counter(work-section, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.work-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: var(--space-sm);
}

.work-section__description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 52ch;
}

/* ---- Gallery / Carousel ---- */
.gallery {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
}

.gallery__track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-in-out);
}

.gallery__slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  color: var(--color-text-primary);
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
  z-index: 2;
}

.gallery:hover .gallery__nav {
  opacity: 1;
}

.gallery__nav--prev {
  left: var(--space-md);
}

.gallery__nav--next {
  right: var(--space-md);
}

.gallery__nav:hover {
  background: rgba(0, 0, 0, 0.85);
}

.gallery__dots {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 2;
}

.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.gallery__dot--active {
  background: var(--color-text-primary);
  transform: scale(1.3);
}

/* ---- Form ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form__label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-secondary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.form__input:hover,
.form__textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle),
              0 0 15px var(--color-accent-glow);
  background: rgba(17, 17, 17, 0.8);
}

.form__group:focus-within .form__label {
  color: var(--color-accent);
}

.form__textarea {
  resize: vertical;
  min-height: 150px;
}

.form__submit {
  align-self: flex-start;
}

.form__status:empty {
  display: none;
}

.form__status {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.form__status--error {
  color: var(--color-accent-secondary-hover);
}

.form__status a {
  color: inherit;
  text-decoration: underline;
}

/* Spam-trap field: off-screen, never seen by people */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__success {
  font-size: var(--text-lg);
  color: var(--color-accent);
  text-align: center;
  padding: var(--space-xl);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-xl);
  margin-top: var(--space-xl);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__social {
  display: flex;
  gap: var(--space-lg);
}

.footer__social a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--duration-fast) ease;
  position: relative;
  padding-bottom: 2px;
}

.footer__social a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.footer__social a:hover {
  color: var(--color-accent);
}

.footer__social a:hover::after {
  width: 100%;
}

.footer__copyright {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

/* ---- Client Logos ---- */
.clients__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.clients__logo {
  max-height: 40px;
  opacity: 0.3;
  filter: grayscale(100%) brightness(1.5);
  transition: opacity var(--duration-normal) ease,
              filter var(--duration-normal) ease,
              transform var(--duration-fast) ease;
}

.clients__logo:hover {
  opacity: 0.8;
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  text-align: center;
  padding-block: var(--space-lg);
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stats__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}

.stats__label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---- Service Cards ---- */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-lg);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-normal) ease,
              transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) ease,
              background var(--duration-normal) ease;
}

.service-card:hover {
  border-color: var(--color-accent-border);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
              0 0 15px var(--color-accent-glow);
  background: var(--color-bg-card);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              color var(--duration-fast) ease;
}

.service-card:hover .service-card__icon {
  transform: scale(1.15);
  color: var(--color-accent);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: var(--space-sm);
}

.service-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* ---- About Layout ---- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 2fr 3fr;
  }
}

.about-layout__image img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-layout__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-layout__content p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ---- Project Meta ---- */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.project-meta__item {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.project-meta__item:not(:last-child)::after {
  content: '\00B7';
  margin-left: var(--space-md);
  color: var(--color-text-muted);
}

/* "Shown at" row under the main meta line */
.project-meta--venues {
  margin-top: var(--space-sm);
}

.project-meta__label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Project Description ---- */
/* The description section drops its bottom padding so the gap down to the
   next block matches the gap up to the hero (one section spacing each). */
.section:has(> .container > .project-description) {
  padding-bottom: 0;
}

/* Wider text column for project descriptions on laptop screens */
.section:has(> .container > .project-description) > .container {
  max-width: 1040px;
}

.project-description {
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem); /* 17px phone, 19px laptop */
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 80ch;
  margin-inline: auto;
}

/* ---- Project Navigation ---- */
.project-nav__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-xl);
}

.project-nav__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: color var(--duration-fast) ease;
}

.project-nav__link--next {
  text-align: right;
  margin-left: auto;
}

.project-nav__label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-secondary);
}

.project-nav__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.05;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) ease;
}

.project-nav__link:hover .project-nav__title {
  color: var(--color-accent);
}

/* ---- Project Gallery (CSS columns - handles mixed aspect ratios) ---- */
.project-gallery {
  columns: 3;
  column-gap: var(--grid-gap);
}

.project-gallery__item {
  break-inside: avoid;
  margin-bottom: var(--grid-gap);
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--duration-normal) ease,
              transform var(--duration-normal) var(--ease-out-expo);
}

.project-gallery__item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.project-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--duration-slow) var(--ease-out-expo),
              filter var(--duration-normal) ease;
}

.project-gallery__item img:hover {
  transform: scale(1.3);
  filter: brightness(1.1);
}

/* Photographer credit: always visible, small, bottom-right */
.photo-credit {
  position: absolute;
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 1;
  padding: 0.2rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  pointer-events: none;
  max-width: calc(100% - 2 * var(--space-sm));
  text-align: right;
}

/* Hide it while the hover caption is showing, so they don't overlap */
@media (hover: hover) {
  .project-gallery__item:hover .photo-credit {
    opacity: 0;
  }
}

/* Lead mosaic above a gallery: one large image, two stacked beside it */
.feature-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  margin-bottom: var(--grid-gap);
}

.feature-mosaic .project-gallery__item {
  margin-bottom: 0;
}

.feature-mosaic .project-gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (min-width: 768px) {
  .feature-mosaic {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .feature-mosaic__lead {
    grid-row: span 2;
  }

  .feature-mosaic__lead img {
    aspect-ratio: auto;
  }

  /* Keep the zoom gentle on the big lead image */
  .feature-mosaic__lead img:hover {
    transform: scale(1.06);
  }
}

/* Uniform grid of wide (4:3) frames: 1 / 2 / 3 across */
.project-gallery.project-gallery--grid {
  columns: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.project-gallery--grid .project-gallery__item {
  margin-bottom: 0;
}

.project-gallery--grid .project-gallery__item img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

@media (min-width: 768px) {
  .project-gallery.project-gallery--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-gallery.project-gallery--grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-gallery.project-gallery--grid-two {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Four-up grid of upright (9:16) stills: 2 across on phones, 4 on laptops */
.project-gallery.project-gallery--four {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.project-gallery--four .project-gallery__item {
  margin-bottom: 0;
}

.project-gallery--four .project-gallery__item img {
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .project-gallery.project-gallery--four {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* A reel with its credit underneath, used in pairs */
.reel-figure {
  flex: 1 1 260px;
  max-width: min(400px, calc(80vh * 9 / 16));
  margin: 0;
}

.reel-figure .reel-feature__video {
  max-width: none;
}

/* Credits under reels sit in the flow, always visible */
.reel-feature__credit.gallery-caption,
.reel-figure .gallery-caption {
  position: static;
  opacity: 1;
  transform: none;
  background: none;
  padding: var(--space-sm) 0 0;
  color: var(--color-text-secondary);
  text-align: center;
}

/* Wide gallery - single column for ultra-wide (2.35–2.55:1) LED content */
.project-gallery.project-gallery--wide {
  columns: 1;
}

.project-gallery--wide .project-gallery__item img:hover {
  transform: scale(1.04);
}

/* Two-column gallery for 16:9 renders */
.project-gallery.project-gallery--two {
  columns: 2;
}

@media (max-width: 767px) {
  .project-gallery.project-gallery--two { columns: 1; }
}

/* Vertical (9:16) feature reel with sound + controls */
.reel-feature {
  display: flex;
  justify-content: center;
}

.reel-feature__video {
  display: block;
  width: 100%;
  max-width: min(400px, calc(80vh * 9 / 16));
  height: auto;
  aspect-ratio: 9 / 16;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-sm);
}

/* Smaller, centred heading above a reel */
.section__title--center {
  text-align: center;
  font-size: var(--text-xl);
  font-weight: 500;
}

/* Two reels side by side; stacks on narrow screens */
.reel-feature--pair {
  flex-wrap: wrap;
  gap: var(--space-md);
}

.reel-feature--pair .reel-feature__video {
  flex: 1 1 260px;
}

/* Third-party social embed (Instagram) */
.social-embed {
  display: flex;
  justify-content: center;
}

.social-embed .instagram-media {
  width: 100% !important;
  max-width: 540px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  background: var(--color-bg-elevated) !important;
  border: 1px solid var(--color-bg-card) !important;
  border-radius: var(--radius-sm) !important;
}

.social-embed .instagram-media .video-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-bg-elevated);
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.video-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--duration-slow) var(--ease-out-expo),
              filter var(--duration-normal) ease;
}

.video-thumb:hover img {
  transform: scale(1.3);
  filter: brightness(0.7);
}

.video-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-thumb__play::before {
  content: '';
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              background var(--duration-normal) ease;
}

.video-thumb__play::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 4px;
}

.video-thumb:hover .video-thumb__play::before {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.15);
}

.video-thumb__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 1279px) {
  .project-gallery { columns: 2; }
}

@media (max-width: 767px) {
  .project-gallery { columns: 1; }
}

/* ---- Contact Info ---- */
.contact-info {
  margin-top: var(--space-xl);
  text-align: center;
}

.contact-info p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.contact-info a {
  color: var(--color-accent);
  transition: color var(--duration-fast) ease;
}

.contact-info a:hover {
  color: var(--color-accent-hover);
}

/* Credit line under a feature reel */
.reel-feature__credit {
  display: block;
  text-align: center;
  margin-top: var(--space-sm);
}

/* Circular-screen renders: square content shown as round screens, side by side */
.round-screens {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  justify-items: center;
}

.round-screens__item {
  width: 100%;
  max-width: 520px;
  margin: 0;
}

.round-screens__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 80px rgba(255, 255, 255, 0.06);
}

.round-screens__item .gallery-caption {
  position: static;
  opacity: 1;
  transform: none;
  background: none;
  padding: var(--space-sm) 0 0;
  color: var(--color-text-secondary);
  text-align: center;
}

@media (min-width: 768px) {
  .round-screens {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Wide feature video spanning the content column */
.wide-feature {
  margin: 0 auto var(--grid-gap);
  max-width: 1040px;
}

.wide-feature .gallery-video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Square frames in the uniform grid */
.project-gallery--square .project-gallery__item img {
  aspect-ratio: 1;
}

/* 2:1 panoramas (360 captures) */
.project-gallery--pano .project-gallery__item img {
  aspect-ratio: 2 / 1;
}

/* Full-width showcase video with sound and controls */
.wide-feature--full {
  max-width: none;
}

.wide-feature--full .gallery-video {
  aspect-ratio: auto;
  border-radius: var(--radius-sm);
}

.wide-feature .gallery-caption {
  position: static;
  opacity: 1;
  transform: none;
  background: none;
  padding: var(--space-sm) 0 0;
  color: var(--color-text-secondary);
  text-align: center;
}

/* Second strip: countries, smaller mono type, scrolling the other way */
.marquee--countries {
  border-top: 0;
  padding-block: clamp(0.9rem, 1.6vw, 1.25rem);
}

.marquee--countries .marquee__track {
  animation-direction: reverse;
  animation-duration: 60s;
}

.marquee--countries .marquee__item {
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 0.7rem + 0.5vw, 1.0625rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--color-text-secondary);
}

.marquee--countries .marquee__item:nth-child(even) {
  color: var(--color-text-secondary);
  -webkit-text-stroke: 0;
}

.marquee--countries .marquee__item::after {
  width: 4px;
  height: 4px;
  margin-inline: clamp(1rem, 2.4vw, 2.25rem);
  border-radius: 50%;
  clip-path: none;
  opacity: 0.8;
}

/* Three upright (3:4) frames side by side; the middle one can be a video */
.portrait-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  max-width: 1040px;
  margin-inline: auto;
}

.portrait-trio__item {
  margin: 0;
}

.portrait-trio__item img,
.portrait-trio__item video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-sm);
}

.portrait-trio__item .gallery-caption {
  position: static;
  opacity: 1;
  transform: none;
  background: none;
  padding: var(--space-sm) 0 0;
  color: var(--color-text-secondary);
  text-align: center;
}

@media (min-width: 768px) {
  .portrait-trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Grouped media (Elrow): a lead piece with two beside it, then rows of uniform 4:3 tiles ---- */
.media-group {
  margin-bottom: var(--space-2xl);
}

.media-group:last-child {
  margin-bottom: 0;
}

.section__sub {
  margin: calc(var(--space-sm) * -1) 0 var(--space-lg);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.media-mosaic,
.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  margin-bottom: var(--grid-gap);
}

.media-group > :last-child {
  margin-bottom: 0;
}

.media-mosaic .project-gallery__item,
.media-row .project-gallery__item {
  margin-bottom: 0;
}

.media-mosaic .project-gallery__item img,
.media-mosaic .project-gallery__item video,
.media-row .project-gallery__item img,
.media-row .project-gallery__item video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-bg-elevated);
}

@media (min-width: 768px) {
  .media-row--2 { grid-template-columns: repeat(2, 1fr); }
  .media-row--3 { grid-template-columns: repeat(3, 1fr); }

  .media-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .media-mosaic__lead {
    grid-column: span 2;
    grid-row: span 2;
  }

  .media-mosaic--flip .media-mosaic__lead {
    grid-column: 2 / span 2;
    grid-row: 1 / span 2;
  }

  .media-mosaic .media-mosaic__lead img,
  .media-mosaic .media-mosaic__lead video {
    aspect-ratio: auto;
  }

  .media-mosaic__lead img:hover {
    transform: scale(1.06);
  }
}

/* Single full-width 16:9 tile under a group */
@media (min-width: 768px) {
  .media-row--wide .project-gallery__item img,
  .media-row--wide .project-gallery__item video {
    aspect-ratio: 16 / 9;
  }
}

/* Service cards: buttons sit on the bottom edge, and titles reserve two lines
   so every description starts at the same height */
.service-card .btn {
  margin-top: auto;
}

/* Only on mid-size screens, where "Live Visual Performance" can wrap */
@media (min-width: 768px) and (max-width: 1279px) {
  .grid--two .service-card__title {
    min-height: 2.1em;
  }
}

/* About: compact bio column, photo stretches to match the text so both edges align */
.about-layout__content .page-title {
  margin-bottom: 0.1em;
}

.about-layout__content p {
  font-size: 1.0625rem; /* 17px */
}

@media (min-width: 768px) {
  .about-layout {
    align-items: stretch;
  }

  .about-layout__image {
    position: relative;
    min-height: 100%;
  }

  .about-layout__image img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    object-position: center 25%;
  }
}

/* Full-width banner card under a row of cards (e.g. Fire Dog) */
.card-grid .project-card--banner {
  grid-column: 1 / -1;
  --card-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .card-grid .project-card--banner {
    --card-ratio: 21 / 9;
  }

  .project-card--banner .project-card__title {
    font-size: clamp(2rem, 1rem + 2.6vw, 3.25rem);
  }
}

/* Two sheets of different shapes side by side at the same height (widths follow each aspect ratio) */
.sheet-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.sheet-pair .project-gallery__item {
  margin-bottom: 0;
}

.sheet-pair .project-gallery__item img:hover {
  transform: none;
  filter: none;
}

@media (min-width: 768px) {
  .sheet-pair {
    grid-template-columns: 1.328fr 0.747fr;
  }
}

/* Soundtrack player */
.soundtrack {
  max-width: 640px;
  margin: 0 auto;
}

.soundtrack audio {
  display: block;
  width: 100%;
}

.soundtrack figcaption {
  margin-top: var(--space-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* Services intro: one lead line, then the disciplines as a row of tags */
.services-intro {
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.discipline-list {
  list-style: none;
  margin: 0 0 var(--space-xl);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.discipline-list li {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  white-space: nowrap;
}

/* Three explicit columns of natural-height media (Boom): each column set by hand so they end level */
.gallery-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  align-items: start;
}

.gallery-cols__col .project-gallery__item:last-child {
  margin-bottom: 0;
}

.gallery-cols .project-gallery__item img,
.gallery-cols .project-gallery__item video {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .gallery-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Upright trio at full container width (used inside grouped galleries) */
.portrait-trio--full {
  max-width: none;
  margin-bottom: var(--grid-gap);
}

.media-group > .portrait-trio--full:last-child,
.media-group > .wide-feature:last-child {
  margin-bottom: 0;
}

/* 404 page buttons */
.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Tall (9:16) trio: phone-shaped films and stills side by side */
.portrait-trio--tall .portrait-trio__item img,
.portrait-trio--tall .portrait-trio__item video {
  aspect-ratio: 9 / 16;
}

@media (min-width: 768px) {
  .portrait-trio--tall {
    max-width: 960px;
  }
}

.project-gallery--four .project-gallery__item video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--color-bg-elevated);
}
