@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:wght@400;500;600&display=swap');

/* BUILT Marketing — design tokens from source */
:root {
  --canvas: #f5f5f0;
  --charcoal: #1b1b1f;
  --slate-blue: #3a506b;
  --brand: #293653;
  --max: 1440px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-main: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Bebas Neue", Bebas, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--canvas);
  color: var(--charcoal);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  display: block;
}

iframe {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

.font-bebas { font-family: var(--font-heading); font-weight: 400; }

.font-display { font-family: var(--font-heading); font-weight: 400; }

.font-accent { font-family: var(--font-main); }

.font-helv { font-family: var(--font-main); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* Full-bleed collage video under hero */
.collage-video {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: #0e0e10;
  overflow: hidden;
}

.collage-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2300 / 1080;
  max-height: min(70vh, 760px);
  background: #0e0e10;
  overflow: hidden;
}

@media (max-width: 767px) {
  .collage-video-frame {
    aspect-ratio: 16 / 10;
    max-height: 52vh;
  }
}

.collage-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.collage-video-el::-webkit-media-controls,
.collage-video-el::-webkit-media-controls-enclosure {
  display: none !important;
}

.collage-video-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  color: rgba(245, 245, 240, 0.7);
  font-size: 0.95rem;
}

.collage-video-fallback[hidden] {
  display: none !important;
}

.service-slider {
  border-top: 1px solid rgba(27, 27, 31, 0.08);
  border-bottom: 1px solid rgba(27, 27, 31, 0.08);
}

.italic {
  font-style: normal;
}

.text-slate {
  color: var(--slate-blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #ffffff;
}

.btn-dark {
  background: var(--charcoal);
  color: var(--canvas);
  border-color: var(--charcoal);
}

.btn-dark:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(27, 27, 31, 0.85);
}

.btn-outline:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #ffffff;
}

.btn-light {
  background: var(--canvas);
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-light:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(27, 27, 31, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(245, 245, 240, 0.6);
  transition: background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(245, 245, 240, 0.85);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-inner {
    padding: 0 2.5rem;
  }
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  line-height: 1;
  font-weight: 400;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--brand);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: var(--brand);
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.25s;
}

.nav-cta:hover {
  background: var(--charcoal);
  color: #ffffff;
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 27, 31, 0.15);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--charcoal);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--charcoal);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(27, 27, 31, 0.1);
  background: var(--canvas);
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-main);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(27, 27, 31, 0.08);
}

.mobile-nav .nav-cta {
  display: inline-flex;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .nav-links,
  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + 1.25rem);
  padding-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-h) + 1.75rem);
    padding-bottom: 4rem;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 4.5rem;
  }
}

.hero-top {
  width: 100%;
  margin-bottom: 1.25rem;
}

.hero-wordmark {
  font-family: var(--font-heading);
  font-size: clamp(6.5rem, 21vw, 20rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  color: var(--brand);
  animation: fadeUp 0.9s var(--ease) both;
  max-width: 100%;
  overflow: hidden;
  word-break: keep-all;
  font-weight: 400;
  display: block;
}

.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 959px) {
  .hero-col-right {
    order: 1;
  }
  .hero-col-left {
    order: 2;
  }
}

@media (min-width: 960px) {
  .hero-bottom-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .hero-col-left {
    order: 1;
  }
  .hero-col-right {
    order: 2;
  }
}

.hero-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero-col-right {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.hero-col-right h2 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 3.25rem);
  line-height: 1.16;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero-col-right p {
  margin-top: 1.25rem;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: rgba(27, 27, 31, 0.72);
  max-width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  animation: fadeUp 0.9s var(--ease) 0.3s both;
  width: 100%;
}

.hero-actions .btn {
  max-width: 100%;
}

.hero-trusted {
  margin-top: 2.25rem;
  animation: fadeUp 0.9s var(--ease) 0.4s both;
  width: 100%;
}

.hero-trusted .label {
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.55);
  font-weight: 600;
}

.hero-trusted .value {
  margin-top: 0.4rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--charcoal);
  line-height: 1.3;
}

.hero-scroll {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: fadeUp 0.9s var(--ease) 0.5s both;
}

.hero-scroll .line {
  width: 1.5px;
  height: 1.25rem;
  background: rgba(27, 27, 31, 0.4);
}

.hero-scroll span {
  font-family: var(--font-main);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.55);
  font-weight: 600;
}
/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid rgba(27, 27, 31, 0.15);
  background: var(--canvas);
  overflow: hidden;
  padding: 1.1rem 0;
  width: 100%;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  will-change: transform;
  animation: marquee 45s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-track span {
  font-family: var(--font-main);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal);
  white-space: nowrap;
  padding: 0 1.25rem;
}

.marquee-track .dot {
  color: var(--slate-blue);
  padding: 0;
}

/* ---------- Stats Section (Matches Reference) ---------- */
.stats-section {
  border-top: 1px solid rgba(27, 27, 31, 0.15);
  background: var(--canvas);
  width: 100%;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
}

.stat-item:first-child {
  padding-left: 0;
  padding-right: clamp(1rem, 2.5vw, 2.5rem);
}

.stat-item:not(:first-child) {
  border-left: 1px solid rgba(27, 27, 31, 0.15);
  padding-left: clamp(1.5rem, 3.2vw, 3.5rem);
  padding-right: clamp(0.75rem, 1.5vw, 1.5rem);
}

.stat-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 5.2vw, 4.75rem);
  font-weight: 500;
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
}

.stat-label {
  margin-top: 1.15rem;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.55);
  line-height: 1.4;
}

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
  .stat-item:nth-child(2),
  .stat-item:nth-child(4) {
    border-left: 1px solid rgba(27, 27, 31, 0.15);
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
  }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid rgba(27, 27, 31, 0.15);
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    padding-left: 0 !important;
    border-left: none !important;
  }
  .stat-item:not(:first-child) {
    border-top: 1px solid rgba(27, 27, 31, 0.15);
  }
}

/* ---------- Section chrome ---------- */
.section {
  border-bottom: 1px solid rgba(27, 27, 31, 0.15);
  padding: 5rem 0;
  background: var(--canvas);
}

@media (min-width: 768px) {
  .section {
    padding: 7.5rem 0;
  }
}



.section-label {
  font-family: var(--font-main);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--slate-blue);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  align-items: end;
}

@media (min-width: 768px) {
  .section-head {
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    margin-bottom: 5rem;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  font-weight: 400;
}

/* ---------- Services accordion ---------- */
.services-list {
  border-top: 1px solid rgba(27, 27, 31, 0.15);
}

.service-item {
  border-bottom: 1px solid rgba(27, 27, 31, 0.15);
}

.service-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.service-trigger .num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: rgba(27, 27, 31, 0.5);
}

.service-trigger .title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  color: var(--charcoal);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(27, 27, 31, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.service-item.is-open .service-icon {
  background: var(--charcoal);
  color: var(--canvas);
  border-color: var(--charcoal);
}

.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.service-item.is-open .service-panel {
  grid-template-rows: 1fr;
}

.service-panel-inner {
  overflow: hidden;
}

.service-body {
  padding: 0 0 2.25rem;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .service-body {
    grid-template-columns: 1.2fr 1fr;
    padding-left: 3.25rem;
    gap: 3rem;
  }
}

.service-body p {
  color: rgba(27, 27, 31, 0.8);
  max-width: 36rem;
}

.service-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .service-bullets {
    grid-template-columns: 1fr 1fr;
  }
}

.service-bullets li {
  position: relative;
  padding-left: 1rem;
  color: rgba(27, 27, 31, 0.8);
  font-size: 0.95rem;
}

.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--slate-blue);
}

/* ---------- Portfolio ---------- */
.work-cta-wrap {
  margin-top: 1.25rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 600px) and (max-width: 899px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }

  .work-card.card-1 {
    grid-column: 1 / 3;
    min-height: 380px;
  }

  .work-card.card-2 {
    grid-column: 1 / 2;
    min-height: 280px;
  }

  .work-card.card-4 {
    grid-column: 2 / 3;
    min-height: 280px;
  }

  .work-card.card-ai {
    grid-column: 1 / 3;
    min-height: 380px;
  }
}

@media (min-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, minmax(220px, 1fr));
    gap: 1.1rem;
  }

  .work-card.card-1 {
    grid-column: 1 / 9;
    grid-row: 1 / 3;
    min-height: 520px;
  }

  .work-card.card-2 {
    grid-column: 9 / 13;
    grid-row: 1 / 2;
    min-height: 250px;
  }

  .work-card.card-ai {
    grid-column: 9 / 13;
    grid-row: 2 / 4;
    min-height: 520px;
  }

  .work-card.card-4 {
    grid-column: 1 / 9;
    grid-row: 3 / 4;
    min-height: 250px;
  }
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  min-height: 260px;
  display: block;
  color: var(--canvas);
}

.work-card.tall,
.work-card.tall-right {
  min-height: 520px;
}

.work-card-cta {
  background: #141519;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.work-card-cta:hover {
  background: #1a1d24;
  border-color: rgba(255, 255, 255, 0.2);
}

.work-card-cta .arrow {
  background: var(--slate-blue);
  color: var(--canvas);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.work-card-cta:hover .arrow {
  background: var(--canvas);
  color: var(--charcoal);
  transform: translate(2px, -2px);
}

.card-action-hint {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--canvas);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.work-card:hover .card-action-hint {
  opacity: 1;
  transform: translateX(4px);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(27, 27, 31, 0.78) 100%);
  pointer-events: none;
}

.work-card .tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(245, 245, 240, 0.9);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.65rem;
  font-family: var(--font-main);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.work-card .meta {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.work-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.work-card p {
  font-size: 0.92rem;
  color: rgba(245, 245, 240, 0.85);
  max-width: 28rem;
}

.work-card .arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.work-card:hover .arrow {
  background: var(--slate-blue);
  color: var(--canvas);
}

/* ---------- Client logos ---------- */
.clients {
  padding: 4rem 0 5rem;
}

.clients .kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.clients .kicker .rule {
  width: 2.5rem;
  height: 1px;
  background: rgba(27, 27, 31, 0.4);
}

.clients h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.05;
  max-width: 40rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.logo-slider {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-row {
  display: flex;
  width: max-content;
  gap: 1rem;
  margin-bottom: 1rem;
  animation: logoScroll 55s linear infinite;
}

.logo-row.reverse {
  animation-direction: reverse;
  animation-duration: 60s;
}

.logo-pill {
  width: 11rem;
  height: 6rem;
  background: #fff;
  border: 1px solid rgba(27, 27, 31, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.4rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .logo-pill {
    width: 14rem;
    height: 8rem;
    padding: 1.5rem 1.75rem;
  }
}

.logo-pill img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- Process ---------- */
.process {
  background: var(--charcoal);
  color: var(--canvas);
  border-bottom: 1px solid rgba(245, 245, 240, 0.1);
  padding: 5rem 0 6rem;
}

@media (min-width: 768px) {
  .process {
    padding: 7.5rem 0;
  }
}

.process .section-label {
  color: rgba(245, 245, 240, 0.55);
}

.process .section-title {
  color: var(--canvas);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(245, 245, 240, 0.15);
}

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

.process-step {
  padding: 1.75rem 0 0;
}

@media (min-width: 900px) {
  .process-step {
    padding: 2rem 1.5rem 0;
    border-left: 1px solid rgba(245, 245, 240, 0.15);
  }

  .process-step:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

.process-step .num {
  font-family: var(--font-main);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: rgba(245, 245, 240, 0.45);
}

.process-step h3 {
  margin-top: 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 400;
}

.process-step p {
  margin-top: 0.85rem;
  color: rgba(245, 245, 240, 0.72);
  font-size: 0.95rem;
}

/* ---------- Industries ---------- */
.industry-tabs {
  display: flex;
  flex-direction: column;
  border-block: 1px solid rgba(27, 27, 31, 0.15);
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .industry-tabs {
    flex-direction: row;
  }
}

.industry-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: background 0.25s, color 0.25s;
}

@media (min-width: 640px) {
  .industry-tab:first-child {
    border-right: 1px solid rgba(27, 27, 31, 0.15);
  }
}

.industry-tab.is-active {
  background: var(--charcoal);
  color: var(--canvas);
}

.industry-tab svg {
  width: 20px;
  height: 20px;
}

.industry-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.industry-panel.is-active {
  display: grid;
}

@media (min-width: 900px) {
  .industry-panel.is-active {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: stretch;
  }
}

.industry-media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: var(--charcoal);
}

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

.industry-media .float-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 245, 240, 0.9);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.industry-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.industry-badge {
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate-blue);
}

.industry-content h3 {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}

.industry-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.25rem;
  margin-top: 1.25rem;
}

.industry-points li {
  font-size: 0.92rem;
  color: rgba(27, 27, 31, 0.8);
  padding-left: 0.9rem;
  position: relative;
}

.industry-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--slate-blue);
}

.industry-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(27, 27, 31, 0.15);
  margin-top: 1.5rem;
}

.industry-stats div {
  padding: 1.1rem 0.75rem 0;
}

.industry-stats div + div {
  border-left: 1px solid rgba(27, 27, 31, 0.15);
  padding-left: 1rem;
}

.industry-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
}

.industry-stats span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-main);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.6);
}

.industry-kicker {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 1.35rem;
  color: rgba(27, 27, 31, 0.85);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.about-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 400;
}

.about-copy p {
  margin-top: 1.5rem;
  color: rgba(27, 27, 31, 0.8);
  font-size: 1.05rem;
  max-width: 32rem;
}

.about-copy .btn {
  margin-top: 2rem;
}

.about-media {
  position: relative;
}

.about-media .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(245, 245, 240, 0.92);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-main);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(27, 27, 31, 0.15);
}

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

.about-stats div {
  padding: 1.5rem 0.75rem;
}

.about-stats div + div {
  border-left: 1px solid rgba(27, 27, 31, 0.15);
}

.about-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1;
}

.about-stats span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.6);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.6);
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(27, 27, 31, 0.4);
  padding: 0.75rem 0;
  outline: none;
  border-radius: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--charcoal);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-side {
  border: 1px solid rgba(27, 27, 31, 0.15);
  padding: 2rem;
}

@media (min-width: 768px) {
  .contact-side {
    padding: 2.5rem;
  }
}

.contact-side h3 {
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate-blue);
}

.contact-side p,
.contact-side a {
  margin-top: 1rem;
  color: rgba(27, 27, 31, 0.85);
  line-height: 1.6;
}

.contact-side .block + .block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(27, 27, 31, 0.15);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--slate-blue);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  color: var(--slate-blue);
  flex-shrink: 0;
}

.contact-quote {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(27, 27, 31, 0.15);
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 1.25rem;
  color: rgba(27, 27, 31, 0.85);
  line-height: 1.35;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--slate-blue);
  min-height: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--canvas);
  padding: 4.5rem 0 2rem;
}

.footer-brand {
  border-bottom: 1px solid rgba(245, 245, 240, 0.15);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .word {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
}

.footer-brand .word .dot {
  color: var(--slate-blue);
}

.footer-brand .tagline {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-style: normal;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: rgba(245, 245, 240, 0.85);
  max-width: 28rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .footer-cols {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-cols h4 {
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.55);
}

.footer-cols p,
.footer-cols a {
  margin-top: 1rem;
  color: rgba(245, 245, 240, 0.85);
  display: block;
}

.footer-cols a:hover {
  color: var(--canvas);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.footer-nav a {
  margin-top: 0;
  font-family: var(--font-main);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.85);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 240, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  transition: background 0.25s, color 0.25s;
}

.footer-social a:hover {
  background: var(--canvas);
  color: var(--charcoal);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 245, 240, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom p {
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.55);
}

/* ---------- Work / listing page heroes ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + 2.75rem);
  padding-bottom: 2.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-bottom: 1px solid rgba(27, 27, 31, 0.15);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: calc(var(--nav-h) + 4rem);
    padding-bottom: 3rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1.05;
  font-weight: 400;
  max-width: min(18ch, 100%);
  overflow-wrap: break-word;
}

.page-hero p {
  margin-top: 1.15rem;
  max-width: min(40rem, 100%);
  color: rgba(27, 27, 31, 0.75);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
}

.page-hero .detail-top {
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 4rem 0 6rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
}

.project-card {
  display: block;
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid rgba(27, 27, 31, 0.15);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

.project-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 27, 31, 0.15);
}

.project-thumb .play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 245, 240, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
}

.project-meta {
  margin-top: 1rem;
}

.project-meta .cat {
  font-family: var(--font-main);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate-blue);
}

.project-meta h3 {
  margin-top: 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 400;
}

.project-meta .role {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(27, 27, 31, 0.65);
}

.project-meta .more {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Shared close / ghost type ---------- */
.showcase-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(27, 27, 31, 0.35);
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.showcase-close:hover {
  background: var(--charcoal);
  color: var(--canvas);
  border-color: var(--charcoal);
}

.showcase-ghost {
  position: absolute;
  left: -0.15em;
  top: 42%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: rgba(27, 27, 31, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  max-width: 100%;
  overflow: hidden;
}

.showcase-cat {
  position: relative;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate-blue);
  margin-bottom: 1rem;
}

.showcase-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(27, 27, 31, 0.2);
  background: rgba(245, 245, 240, 0.92);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  box-shadow: 0 6px 20px rgba(27, 27, 31, 0.08);
  z-index: 4;
}

.showcase-btn:hover {
  background: var(--charcoal);
  color: var(--canvas);
  border-color: var(--charcoal);
}

.showcase-btn.prev {
  left: 0.75rem;
}

.showcase-btn.next {
  right: 0.75rem;
}

@media (min-width: 768px) {
  .showcase-btn {
    width: 52px;
    height: 52px;
  }

  .showcase-btn.prev {
    left: 1.25rem;
  }

  .showcase-btn.next {
    right: 1.25rem;
  }
}

.showcase-dots,
.detail-dots,
[data-detail-dots] {
  display: none !important;
}

/* ---------- Project detail page (reference layout) ---------- */
.project-detail {
  padding-top: var(--nav-h);
  min-height: 100vh;
  background: var(--canvas);
}

.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
}

.project-back {
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.project-back:hover {
  color: var(--slate-blue);
}

.detail-stage {
  position: relative;
  padding: 1rem 0 3.5rem;
}

/* Prev/next sit on the media panel edges (not the full stage / text column) */
.detail-media > .detail-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.detail-media > .detail-nav .showcase-btn {
  pointer-events: auto;
}

.detail-media > .detail-nav .showcase-btn.prev {
  left: 0.65rem;
}

.detail-media > .detail-nav .showcase-btn.next {
  right: 0.65rem;
}

@media (min-width: 768px) {
  .detail-media > .detail-nav .showcase-btn.prev {
    left: 0.85rem;
  }

  .detail-media > .detail-nav .showcase-btn.next {
    right: 0.85rem;
  }
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 520px;
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
    min-height: 620px;
  }
}

.detail-copy {
  position: relative;
  z-index: 1;
  padding: 0.5rem 0 0;
}

.detail-copy h1 {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.05;
  font-weight: 500;
  max-width: 12ch;
  color: var(--charcoal);
}

.detail-summary {
  position: relative;
  margin-top: 1.35rem;
  max-width: 28rem;
  color: rgba(27, 27, 31, 0.72);
  font-size: 1rem;
  line-height: 1.65;
}

.detail-meta {
  position: relative;
  margin-top: 1.1rem;
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.5);
}

.detail-actions {
  position: relative;
  margin-top: 2rem;
}

.detail-media {
  position: relative;
  background: #eceae3;
  border: 1px solid rgba(27, 27, 31, 0.08);
  min-height: 360px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.25rem 3.25rem;
  overflow: visible;
}

@media (min-width: 960px) {
  .detail-media {
    min-height: 520px;
    padding: 2rem 3.5rem;
  }
}

.detail-media:has(.detail-slide.is-active .is-horizontal) {
  justify-items: stretch;
}

@media (min-width: 960px) {
  .detail-layout:has(.detail-slide.is-active .is-horizontal) {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.detail-slide {
  display: none;
  width: 100%;
  height: 100%;
  animation: fadeUp 0.45s var(--ease);
}

.detail-slide.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-media-frame {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detail-media-frame .video-embed {
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(27, 27, 31, 0.14);
}

.detail-media-frame .video-embed.is-hidden {
  display: none;
}

.image-slide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 680px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(27, 27, 31, 0.14);
}

.image-slide.is-horizontal img {
  max-width: min(100%, 900px);
  max-height: min(62vh, 560px);
}

.image-slide.is-vertical img {
  max-width: min(100%, 420px);
  max-height: min(72vh, 680px);
}

.video-play-card {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(27, 27, 31, 0.16);
}

/* Poster keeps the source image’s natural aspect — no forced crop */
.video-play-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 520px);
  max-height: min(72vh, 680px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: none;
  transition: transform 0.55s var(--ease);
}

.video-play-card.is-horizontal img {
  width: 100%;
  max-width: min(100%, 860px);
  max-height: min(58vh, 520px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-play-card.is-vertical img {
  width: auto;
  max-width: min(100%, 380px);
  max-height: min(78vh, 700px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.video-play-card:hover img {
  transform: scale(1.02);
}

.video-play-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(27, 27, 31, 0.35) 100%);
  pointer-events: none;
  border-radius: 14px;
}

.video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245, 245, 240, 0.95);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(27, 27, 31, 0.2);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.video-play-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--canvas);
}

.video-play-card.is-playing {
  display: none;
}

.detail-media-frame.is-playing .video-embed {
  display: block;
}

.detail-caption {
  margin-top: 0.75rem;
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.5);
  text-align: center;
}

.video-embed {
  position: relative;
  width: 100%;
  background: #0d0d0f;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(27, 27, 31, 0.12);
  box-shadow: 0 18px 50px rgba(27, 27, 31, 0.16);
}

/* Match player frame strictly to native orientation without letterbox or cropping */
.video-embed.is-horizontal {
  aspect-ratio: 16 / 9;
  width: min(100%, 860px);
  margin: 0 auto;
}

.video-embed.is-vertical {
  aspect-ratio: 9 / 16;
  width: min(100%, 380px);
  max-height: min(78vh, 700px);
  margin: 0 auto;
}

/* Video controls must be fully visible and aligned inside the frame */
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-embed.is-vertical iframe {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245, 245, 240, 0.04);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes growLine {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes logoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

/* ---------- Service detail pages ---------- */
.service-page-hero {
  overflow: hidden;
}

.service-page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  max-width: min(18ch, 100%);
  color: var(--charcoal);
  overflow-wrap: break-word;
}

.service-tagline {
  margin-top: 1.25rem;
  max-width: min(36rem, 100%);
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  line-height: 1.55;
  color: rgba(27, 27, 31, 0.72);
  font-family: var(--font-heading);
  font-style: normal;
}

.service-detail {
  padding-top: 0;
  border-top: 1px solid rgba(27, 27, 31, 0.08);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .service-detail-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
  }
}

.service-copy p {
  margin-top: 1.15rem;
  max-width: 40rem;
  color: rgba(27, 27, 31, 0.75);
  font-size: 1.02rem;
  line-height: 1.7;
}

.service-deliverables {
  background: #eceae3;
  border: 1px solid rgba(27, 27, 31, 0.08);
  padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 768px) {
  .service-deliverables {
    padding: 2.25rem 2rem;
  }
}

.service-deliverable-list {
  margin-top: 1.25rem;
  list-style: none;
  padding: 0;
}

.service-deliverable-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.35rem;
  border-bottom: 1px solid rgba(27, 27, 31, 0.1);
  color: rgba(27, 27, 31, 0.82);
  line-height: 1.45;
}

.service-deliverable-list li:last-child {
  border-bottom: 0;
}

.service-deliverable-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--slate-blue);
}


/* ---------- Layout safety / responsive overflow ---------- */
.site-header,
.nav-inner,
.section,
.page-hero,
.detail-stage,
.detail-layout,
.work-grid,
.projects-grid,
.contact-grid,
.about-grid,
.industry-panel,
.footer-cols {
  max-width: 100%;
}

.hero-wordmark,
.showcase-ghost {
  overflow: hidden;
  max-width: 100%;
}

.page-hero h1,
.detail-copy h1,
.section-title,
.service-page-hero h1 {
  overflow-wrap: break-word;
  word-break: normal;
}

.work-card,
.project-card,
.project-thumb,
.detail-media,
.industry-media,
.about-media {
  max-width: 100%;
}

.work-card img,
.project-thumb img,
.industry-media img,
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .nav-inner {
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 0.75rem;
  }

  .nav-logo {
    font-size: 1.35rem;
  }

  .hero.container,
  .page-hero.container,
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .btn {
    padding: 0.9rem 1.15rem;
    letter-spacing: 0.18em;
  }

  .detail-layout {
    gap: 1.5rem;
  }

  .detail-media {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .detail-copy h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .showcase-ghost {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .showcase-btn {
    width: 40px;
    height: 40px;
  }

  .projects-grid {
    padding: 2.5rem 0 4rem;
    gap: 2rem;
  }

  .video-embed.is-horizontal {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .video-embed.is-vertical {
    width: min(100%, 330px);
    max-height: 72vh;
    aspect-ratio: 9 / 16;
  }

  .video-play-card.is-horizontal img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .video-play-card.is-vertical img {
    width: min(100%, 330px);
    max-height: 72vh;
    aspect-ratio: 9 / 16;
  }

  .video-play-btn {
    width: 52px;
    height: 52px;
  }
}
