/* Shared design system — loaded after nav.css, forms.css, video-preloader.css */

:root {
  --section-line: rgba(217, 203, 177, 0.14);
  --page-bg-deep: linear-gradient(180deg, #080808 0%, #000000 42%, #000000 100%);
  --grain-svg: url("data:image/svg+xml,%3Csvg viewBox=%220 0 256 256%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22/%3E%3C/svg%3E");
  --sec-pad: clamp(4rem, 10vw, 6rem);
  --muted: rgba(160, 160, 160, 0.88);
  --r-lg: 0.75rem;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(217, 203, 177, 0.14);
}

.page-section {
  position: relative;
  overflow: hidden;
  background: var(--page-bg-deep);
}

.page-section__grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: var(--grain-svg);
}

.page-section__inner {
  position: relative;
  z-index: 1;
}

.section-head__lede {
  font-size: 0.8125rem;
  line-height: 1.65;
  font-weight: 300;
  color: rgba(160, 160, 160, 0.88);
  max-width: 36rem;
}

@media (min-width: 768px) {
  .section-head__lede {
    font-size: 0.875rem;
  }
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

body.site-subpage {
  background-image: radial-gradient(circle at 50% -20%, rgba(142, 202, 230, 0.05) 0%, transparent 50%),
    radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
  background-attachment: fixed;
}

.hero-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--title-warm);
}

.hero-title--h0 {
  font-size: clamp(2.3rem, 6.4vw, 5.9rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em;
}

.hero-title.hero-title--two-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.hero-title.hero-title--two-lines .hero-title__line {
  display: block;
  font-size: clamp(1.45rem, 4.85vw + 0.55rem, 5.65rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--title-warm);
  white-space: nowrap;
}

@media (max-width: 380px) {
  .hero-title.hero-title--two-lines .hero-title__line {
    font-size: clamp(1.15rem, 6.2vw, 5.65rem);
  }
}

/* IndieLab hero: keep two-line title inside column (no flush against right edge) */
.hero-editorial__main--indielab {
  padding-right: clamp(1rem, 5vw, 3.5rem);
  box-sizing: border-box;
}

/* Larger than previous indielab-safe cap (~4.75rem), same max as main hero — min() keeps nowrap lines inside the column */
.hero-title.hero-title--two-lines.hero-title--indielab-safe .hero-title__line {
  font-size: clamp(1.1rem, min(4.35vw + 0.52rem, 12.5vw), 5.65rem);
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 380px) {
  .hero-title.hero-title--two-lines.hero-title--indielab-safe .hero-title__line {
    font-size: clamp(1rem, min(5.85vw + 0.38rem, 10.5vw), 5.65rem);
  }
}

/* IndieLab “Looking to get into a festival?” — 2× vs default 0.55rem eyebrow */
.indielab-festival-eyebrow {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .indielab-festival-eyebrow {
    font-size: 1.15rem;
    letter-spacing: 0.16em;
  }
}

/* Home #indielab — Explore CTA: same type metrics as .nav__contact-btn */
.indielab-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 6px 11px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(217, 203, 177, 0.45);
  background-color: #90ee90;
  color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.indielab-explore-btn:hover {
  background: rgba(144, 238, 144, 0.88);
  color: #0a0a0a;
  border-color: rgba(217, 203, 177, 0.65);
}

@media (max-width: 1100px) {
  .indielab-explore-btn {
    padding: 5px 8px;
  }
}

/* Home #indielab — one centered column (Lab / title / two lines / Explore share one axis) */
#indielab .page-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#indielab .work-showcase__intro {
  width: 100%;
  max-width: 56rem;
}

#indielab .work-section-head--stacked {
  justify-items: stretch;
}

#indielab .work-section-head--stacked > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* IndieLab hero still (replaces video): editorial B&W */
.indielab-bw-hero {
  filter: grayscale(1) contrast(1.08);
}

/* IndieLab: single row of 4 film-strip frames (pool randomized in page JS) */
.indielab-gallery {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.indielab-gallery__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 639px) {
  .indielab-gallery__row {
    gap: 0.35rem;
  }
}

.indielab-gallery__cell {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 0.15rem;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  min-width: 0;
}

.indielab-gallery__cell .indielab-gallery__img,
.indielab-gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Shorter two-line heroes (e.g. IndieLab): lower cap, fluid from narrow to wide */
.hero-title.hero-title--two-lines.hero-title--compact .hero-title__line {
  font-size: clamp(1.05rem, 2.85vw + 0.55rem, 4.25rem);
}

.hero-subtitle--h3 {
  font-size: clamp(1.18rem, 1.7vw, 1.72rem);
  line-height: 1.42;
  font-weight: 300;
  color: rgba(217, 203, 177, 0.84);
  letter-spacing: 0.008em;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 28px;
}

.section-title {
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--title-warm);
  font-size: calc(1.5rem * 1.045);
}

@media (min-width: 768px) {
  .section-title {
    font-size: calc(1.875rem * 1.045);
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: calc(48px * 1.045);
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: calc(24px * 1.045);
  }

  .section-subtitle {
    font-size: 0.65rem;
  }
}

#careers-heading.section-title,
#careers-heading.work-section-head__title {
  padding-inline-start: 0.05em;
}

.hero__arrow {
  display: inline-block;
  margin-top: 24px;
  color: rgb(255, 0, 0);
  animation: site-bounce 2s infinite;
}

@keyframes site-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-6px);
  }
}

img {
  filter: none;
}

img:hover {
  filter: none;
}

button,
a[class*="bg-aldea-blue"] {
  color: rgba(255, 255, 255, 0.9);
}

button:hover,
a[class*="bg-aldea-blue"]:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero__placeholder {
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  background: #000;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.hero__placeholder.loaded {
  opacity: 0;
  pointer-events: none;
}

.hero__blur-up {
  filter: blur(20px);
  opacity: 1;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: block;
  background: #000;
}

/* Project pages: empty div acts as spinner. Home: .hero__loader wraps markup — leave unstyled here. */
.hero__loader {
  z-index: 10;
}

.hero__loader:empty {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: site-spin 0.8s linear infinite;
}

@keyframes site-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__placeholder.loaded .hero__loader {
  display: none;
}

.hero__video {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__video.ready {
  opacity: 1;
}

#hero-play-pause {
  cursor: pointer;
  pointer-events: all;
}

.hero__video-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(6vw, 40px);
  z-index: 25;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.12) 55%,
    transparent 100%
  );
}

#hero-unmute-btn {
  font-family: 'Inter', sans-serif;
  backdrop-filter: none;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.85));
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-shadow {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.green-screen {
  color: #90ee90;
  text-shadow: 0 0 10px rgba(144, 238, 144, 0.4);
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.service-card img {
  border-radius: inherit;
}

.grid-hover-cell {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
}

.grid-hover-grid:has(.grid-hover-cell:hover) .grid-hover-cell:not(:hover) {
  transform: scale(calc(1 / 1.03));
}

.grid-hover-cell:hover {
  position: relative;
  z-index: 2;
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .grid-hover-cell,
  .grid-hover-grid:has(.grid-hover-cell:hover) .grid-hover-cell:not(:hover) {
    transition: none;
  }

  .grid-hover-grid:has(.grid-hover-cell:hover) .grid-hover-cell:not(:hover),
  .grid-hover-cell:hover {
    transform: none;
  }
}

.container-custom {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

/* Book a call */
.book-page {
  padding: var(--sec-pad) 0;
  padding-top: calc(60px + 2.5rem);
}

.book-header {
  text-align: center;
  margin-bottom: 48px;
}

.book-header h1 {
  font-size: clamp(1.9rem, 4vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-transform: uppercase;
  color: var(--title-warm);
}

.book-header .lead {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto 36px;
}

.calendar-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  min-height: 680px;
}

.calendar-wrap iframe {
  width: 100%;
  height: 680px;
  border: none;
  display: block;
}

.book-alt {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

@media (max-width: 768px) {
  .calendar-wrap {
    min-height: 560px;
  }

  .calendar-wrap iframe {
    height: 560px;
  }
}

.eyebrow {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(217, 203, 177, 0.55);
  margin-bottom: 1rem;
}

.article__back {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(217, 203, 177, 0.55);
  margin-bottom: 2rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article__back:hover {
  color: var(--title-warm);
}

.book-page .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--outline {
  border: 1px solid rgba(217, 203, 177, 0.35);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--title-warm);
  color: var(--title-warm);
}

.btn--whatsapp {
  background: #25d366;
  color: #000;
}

.btn--whatsapp:hover {
  filter: brightness(1.08);
}

.footer {
  padding: 5rem 0;
  background: #000;
  border-top: 1px solid rgba(217, 203, 177, 0.1);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.footer__nav a {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__legal {
  font-size: 8px;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin: 0;
}

/* Uncanny Valley — embedded player layout */
.youtube-container {
  position: relative;
  width: 100%;
  padding-bottom: 44%;
  height: 0;
  overflow: hidden;
  border-radius: 0;
}

.youtube-container iframe,
.youtube-container #uv-player iframe {
  position: absolute;
  top: -14%;
  left: 0;
  width: 100%;
  height: 128%;
  border: none;
  border-radius: 0;
}

.uv-video-toggle {
  position: absolute;
  inset: 0;
  z-index: 20;
  cursor: pointer;
  background: transparent;
}

.uv-video-paused {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 21;
  pointer-events: none;
  display: none;
  color: rgba(217, 203, 177, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(217, 203, 177, 0.35);
  background: rgba(0, 0, 0, 0.45);
}

/* —— Home + subpages: editorial hero (masthead + deck) —— */
.hero-editorial {
  align-items: stretch;
}

.hero-editorial__main {
  text-align: left;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .hero-editorial__main {
    border-left: 1px solid rgba(217, 203, 177, 0.12);
    padding-left: clamp(1.25rem, 3vw, 2.25rem);
  }
}

.hero-editorial__main .hero-title {
  text-align: left;
  width: 100%;
}

/* Optional: no vertical rule between rail and main (e.g. IndieLab hero) */
.hero-editorial--no-main-border .hero-editorial__main {
  border-left: none;
  padding-left: 0;
}

.hero-editorial__deck {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(217, 203, 177, 0.82);
  letter-spacing: 0.015em;
  text-align: left;
  width: 100%;
  max-width: 36rem;
}

/* Deck: exactly two lines (one sentence each), scale to deck width so neither wraps */
.hero-editorial__deck--two-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  line-height: 1.25;
  max-width: 100%;
  container-type: inline-size;
  container-name: indielab-hero-deck;
}

.hero-editorial__deck--two-lines > span {
  display: block;
  white-space: nowrap;
  font-size: clamp(0.48rem, 1.15vw + 0.38rem, 1.75rem);
  letter-spacing: 0.01em;
}

@supports (font-size: 1cqi) {
  .hero-editorial__deck--two-lines > span {
    font-size: clamp(0.48rem, 3.15cqi + 0.38rem, 1.75rem);
  }
}

.hero-selected-work {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(217, 203, 177, 0.52);
  text-decoration: underline;
  text-underline-offset: 0.38em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(217, 203, 177, 0.22);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-selected-work:hover {
  color: var(--title-warm);
  text-decoration-color: rgba(217, 203, 177, 0.45);
}

.hero-video-cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 28;
  pointer-events: none;
  margin: 0;
  max-width: calc(100% - 2rem);
  font-size: 0.42rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 300;
  text-align: left;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.351);
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.405), 0 0 1px rgba(0, 0, 0, 0.36);
}

@media (min-width: 768px) {
  .hero-video-cap {
    left: 1.35rem;
    bottom: 1.35rem;
    font-size: 0.46rem;
    letter-spacing: 0.18em;
  }
}

.hero-masthead {
  max-width: 17rem;
}

@media (min-width: 768px) {
  .hero-masthead {
    padding-top: 0.35rem;
  }
}

.hero-rail__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(217, 203, 177, 0.1);
}

.hero-rail__list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(217, 203, 177, 0.08);
}

.hero-rail__list a {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(217, 203, 177, 0.62);
  padding: 0.22rem 0;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.hero-rail__list a:hover {
  color: rgba(217, 203, 177, 0.95);
  background: linear-gradient(90deg, rgba(217, 203, 177, 0.04) 0%, transparent 100%);
}

.hero-masthead__full {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.48rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(160, 160, 160, 0.72);
  text-decoration: underline;
  text-underline-offset: 0.32em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(217, 203, 177, 0.22);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-masthead__full:hover {
  color: var(--title-warm);
  text-decoration-color: rgba(217, 203, 177, 0.45);
}

.project-hero-media {
  position: relative;
}

/* —— Work: editorial reel strips (home + anywhere) —— */
.work-showcase {
  --work-strip-h: clamp(11rem, 22vw, 15rem);
  --work-line: var(--section-line);
}

.work-showcase__intro {
  padding-top: 0;
}

.work-section-head {
  display: grid;
  gap: 1.35rem;
  align-items: center;
}

@media (min-width: 768px) {
  .work-section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 3rem;
  }

  .work-section-head--stacked {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Stacked section intros: center eyebrow, title, subtitle (home, IndieLab, etc.) */
.work-section-head--stacked {
  justify-items: center;
  text-align: center;
}

.work-section-head--stacked .text-title-meta,
.work-section-head--stacked .work-section-head__title,
.work-section-head--stacked .work-section-head__subtitle {
  text-align: center;
}

.work-section-head--stacked .work-section-head__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.work-section-head--centered {
  justify-items: center;
  text-align: center;
}

.work-section-head--centered .work-section-head__subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.work-section-head__subtitle {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  font-weight: 300;
  color: rgba(160, 160, 160, 0.88);
  text-align: left;
}

@media (min-width: 768px) {
  .work-section-head__subtitle {
    font-size: 0.875rem;
  }
}

/* Home #indielab: same two-line copy — one line per sentence, fit width */
.work-section-head__subtitle--two-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  line-height: 1.45;
  width: 100%;
  max-width: min(100%, 42rem);
  margin-left: auto;
  margin-right: auto;
  container-type: inline-size;
  container-name: indielab-home-sub;
}

.work-section-head__subtitle--two-lines > span {
  display: block;
  white-space: nowrap;
  text-align: center;
  width: max-content;
  max-width: 100%;
  font-size: clamp(0.5rem, 1.05vw + 0.32rem, 0.875rem);
}

@supports (font-size: 1cqi) {
  .work-section-head__subtitle--two-lines > span {
    font-size: clamp(0.5rem, 2.65cqi + 0.32rem, 0.875rem);
  }
}

.work-section-head__title {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--title-warm);
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 1.06;
  margin: 0.35rem 0 0;
}

.work-section-head__title.green-screen {
  color: #90ee90;
  text-shadow: 0 0 10px rgba(144, 238, 144, 0.4);
}

.work-section-head__folio {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(217, 203, 177, 0.38);
  font-weight: 400;
  margin: 1rem 0 0;
}

.work-showcase__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding-left: 0.65rem;
}

@media (min-width: 768px) {
  .work-showcase__list {
    padding-left: 1rem;
  }

  .work-showcase__list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
      180deg,
      rgba(217, 203, 177, 0.22) 0%,
      rgba(217, 203, 177, 0.06) 50%,
      rgba(217, 203, 177, 0.18) 100%
    );
  }

  #work-grid.work-showcase__list::before,
  #services-strips.work-showcase__list::before {
    display: none;
  }
}

#work-grid.work-showcase__list,
#services-strips.work-showcase__list {
  padding-left: 0;
}

.work-strip {
  display: grid;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-top: 1px solid var(--work-line);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.work-strip:last-child {
  border-bottom: 1px solid var(--work-line);
}

.work-strip:hover {
  background: linear-gradient(90deg, rgba(217, 203, 177, 0.04) 0%, transparent 55%);
}

.work-strip:focus-visible {
  outline: 1px solid rgba(217, 203, 177, 0.45);
  outline-offset: 3px;
  z-index: 1;
}

.work-strip__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: var(--work-strip-h);
}

@media (min-width: 768px) {
  .work-strip__inner {
    grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .work-strip:nth-child(even) .work-strip__inner {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .work-strip:nth-child(even) .work-strip__media {
    order: 3;
  }

  .work-strip:nth-child(even) .work-strip__copy {
    order: 2;
  }
}

.work-strip__index {
  display: none;
  font-weight: 300;
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(217, 203, 177, 0.12);
  font-variant-numeric: tabular-nums;
  padding: 1.25rem 0.75rem 1.25rem 0;
  align-self: start;
  user-select: none;
}

@media (min-width: 768px) {
  .work-strip__index {
    display: block;
    position: static;
    left: auto;
    top: auto;
    z-index: auto;
  }
}

@media (max-width: 767px) {
  .work-strip__index {
    display: block;
    position: absolute;
    left: 0.5rem;
    top: 0.65rem;
    z-index: 2;
    font-size: 1.65rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: rgba(217, 203, 177, 0.18);
    padding: 0;
    pointer-events: none;
  }
}

.work-strip__media {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  .work-strip__media {
    min-height: 0;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  .work-strip:nth-child(even) .work-strip__media {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }
}

.work-strip__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.45) 0%, transparent 42%);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.work-strip:hover .work-strip__media::after {
  opacity: 0.55;
}

.work-strip__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-strip:hover .work-strip__media img {
  transform: scale(1.06);
}

.work-strip__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem 1rem 1.65rem;
}

@media (min-width: 768px) {
  .work-strip__copy {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  }

  .work-strip:nth-child(even) .work-strip__copy {
    padding: 1.5rem 1.75rem 1.5rem 1.5rem;
  }
}

.work-strip__lane {
  display: block;
  align-self: flex-start;
  font-size: 0.52rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(217, 203, 177, 0.48);
  font-weight: 500;
  padding: 0;
  border: none;
  border-radius: 0;
}

.work-strip__lane::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  margin-top: 0.65rem;
  background: rgba(217, 203, 177, 0.2);
}

.work-strip__title {
  font-size: clamp(1.02rem, 1.65vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title-warm);
  line-height: 1.28;
  max-width: 22rem;
}

.capabilities-strip__items {
  margin: 0;
  max-width: 28rem;
  font-size: 0.75rem;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(160, 160, 160, 0.9);
}

@media (min-width: 768px) {
  .capabilities-strip__items {
    font-size: 0.8125rem;
  }
}

.work-strip__arrow {
  margin-top: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(217, 203, 177, 0.38);
  transition: color 0.25s ease, transform 0.25s ease;
}

.work-strip:hover .work-strip__arrow {
  color: rgba(217, 203, 177, 0.85);
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .work-strip__media img,
  .work-strip:hover .work-strip__media img,
  .work-strip:hover .work-strip__arrow {
    transform: none;
    transition: none;
  }
}

/* Testimonials carousel */
.testimonials-carousel-shell {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.testimonials-carousel__viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.testimonials-carousel__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* width set in JS: slides × viewport width */
}

.testimonial-slide {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 0;
  padding: 0.15rem 0.15rem 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  /* width set in JS to match viewport */
}

.testimonial-card {
  width: 100%;
  min-width: 0;
  border-top: 1px solid var(--section-line);
  border-bottom: 1px solid var(--section-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 48%);
  display: grid;
  grid-template-columns: 1fr;
  transition: background 0.35s ease;
}

@media (min-width: 768px) {
  .testimonial-card {
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    align-items: stretch;
  }
}

.testimonial-card:hover {
  background: linear-gradient(90deg, rgba(217, 203, 177, 0.04) 0%, transparent 55%);
}

.testimonial-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .testimonial-card__media {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.65rem 1.15rem;
  }
}

.testimonial-card__avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(1) contrast(1.15);
}

.testimonial-card__body {
  padding: 1.35rem 1rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .testimonial-card__body {
    text-align: left;
    padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  }
}

.testimonial-card__quote {
  margin: 0 0 1.15rem;
  padding: 0;
  border: none;
  font-size: 0.8125rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(217, 203, 177, 0.82);
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

@media (min-width: 768px) {
  .testimonial-card__quote {
    font-size: 0.875rem;
  }
}

.testimonial-card__name {
  margin: 0;
}

.testimonial-card__role {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160, 160, 160, 0.68);
  margin: 0.4rem 0 0;
}

.testimonial-card__links {
  margin-top: 0.75rem;
}

.testimonial-card__links a {
  display: inline-flex;
  color: rgba(217, 203, 177, 0.45);
  transition: color 0.2s ease;
}

.testimonial-card__links a:hover {
  color: rgba(217, 203, 177, 0.92);
}

.testimonial-card__links svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.testimonials-carousel__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.65rem;
  width: 100%;
}

.testimonials-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.testimonial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: rgba(217, 203, 177, 0.2);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.testimonial-dot.is-active {
  background: rgba(217, 203, 177, 0.88);
  transform: scale(1.2);
}

.testimonial-dot:hover:not(.is-active) {
  background: rgba(217, 203, 177, 0.45);
}

.testimonial-dot:focus-visible {
  outline: 1px solid rgba(217, 203, 177, 0.45);
  outline-offset: 3px;
}

.testimonials-carousel__arrows {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.testimonials-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid var(--border);
  background: transparent;
  color: rgba(217, 203, 177, 0.55);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.testimonials-carousel__btn:hover {
  color: var(--title-warm);
  border-color: rgba(217, 203, 177, 0.32);
  background: rgba(217, 203, 177, 0.04);
}

.testimonials-carousel__btn:focus-visible {
  outline: 1px solid rgba(217, 203, 177, 0.45);
  outline-offset: 3px;
}

.testimonials-carousel__btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-carousel__track,
  .testimonial-dot {
    transition: none;
  }
}

/* Editorial body copy (project pages) */
.body-editorial {
  font-size: 0.93rem;
  line-height: 1.98;
  font-weight: 300;
  color: rgba(160, 160, 160, 0.92);
}

.body-editorial p + p {
  margin-top: 1.75rem;
}
