/* =========================================================
   ADRANIN — Premium Design System (Webflow-Optimized v3)
   Core Architecture, Utility Tokens, and Micro-Interactions
   ========================================================= */

:root {
  /* Brand color tokens */
  --orange: #EA5C1F;       /* Signal orange — Accent highlight */
  --black:  #0A0A0A;       /* Cover/closer deep black */
  --white:  #FFFFFF;       /* Pure white */
  --cream:  #F5F2EE;       /* Warm cream background */
  --ink:    #1A1A1A;       /* Text on cream */

  /* Adaptive color roles (Webflow-style CSS variables for theming) */
  --surface-1: #FFFFFF;    /* Primary background */
  --surface-2: #F5F2EE;    /* Secondary background */
  --surface-card: #FFFFFF; /* Interactive cards background */
  --text-1: #1A1A1A;       /* Primary text */
  --text-2: #6A6A6A;       /* Secondary text */
  --line: rgba(10, 10, 10, 0.08); /* Borders & dividers */
  --nav-pill-bg: #0A0A0A;
  --nav-pill-fg: #FFFFFF;

  /* Fonts */
  --display: 'Poppins', sans-serif;
  --mono: 'JetBrains Mono', 'DejaVu Sans Mono', monospace;

  /* Layout Constants */
  --margin: 72px;
  --nav-h: 104px;
  --radius: 24px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* Custom modern Webflow spring-like ease */
}

/* Dark mode token overrides */
[data-theme="dark"] {
  --surface-1: #0A0A0A;
  --surface-2: #141414;
  --surface-card: #1C1C1C;
  --text-1: #F5F2EE;
  --text-2: #9A9A9A;
  --line: rgba(255, 255, 255, 0.08);
  --nav-pill-bg: #F5F2EE;
  --nav-pill-fg: #0A0A0A;
}

@media (max-width: 900px) {
  :root {
    --margin: 24px;
    --nav-h: 80px;
  }
}

/* =========================================================
   RESET AND UTILITIES (Webflow-like global setup)
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  background: var(--surface-1);
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
  color: var(--text-1);
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

video {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* Premium Selection */
::selection {
   color: #ec5a1c !important;
    background: #ea5c1fb5 !important;

}

/* Layout Utilities */
.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--margin);
}

.section-padding {
  padding: 120px 0;
}
@media (max-width: 900px) {
  .section-padding {
    padding: 72px 0;
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.eyebrow:hover::before {
  transform: scaleX(1.5);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.h-xl {
  font-size: clamp(30px, 6.8vw, 96px);
  line-height: 1.05;
}

.h-lg {
  font-size: clamp(24px, 4.2vw, 60px);
  line-height: 1.1;
}

.h-md {
  font-size: clamp(19px, 2.6vw, 36px);
  line-height: 1.15;
}

.accent {
  color: var(--orange);
}

/* Reusable Underline Stroke Effect */
.stroke {
  position: relative;
  display: inline-block;
}

.stroke svg {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
}

.lede {
  font-weight: 300;
  font-size: clamp(15.5px, 1.8vw, 22px);
  color: var(--text-1);
  opacity: 0.8;
  max-width: 680px;
  line-height: 1.6;
}

.on-dark {
  color: var(--white);
}

.on-dark .lede, .lede.on-dark {
  color: var(--cream);
  opacity: 0.8;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 18px 36px;
  border-radius: 40px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-solid {
  background: var(--orange);
  color: var(--white);
}

.btn-solid:hover {
  transform: translateY(-4px);
  background: #d6501a;
  box-shadow: 0 16px 32px rgba(234, 92, 31, 0.25);
}

.btn-line {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-line:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.btn-ink {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--line);
}

.btn-ink:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   COMPONENTS — NAV PILL
   ========================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 24px var(--margin) 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  header {
    padding: 16px 16px 0;
  }
}

.nav-pill {
  pointer-events: auto;
  width: 100%;
  max-width: 1180px;
  background: var(--nav-pill-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 12px 12px 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: padding 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

[data-theme="dark"] .nav-pill {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled .nav-pill {
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.28);
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.logo .logo-black {
  display: none;
}

[data-theme="dark"] .logo .logo-white {
  display: none;
}

[data-theme="dark"] .logo .logo-black {
  display: block;
}

nav.links {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.links a {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nav-pill-fg);
  opacity: 0.65;
  position: relative;
  padding-bottom: 4px;
}

nav.links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}

nav.links a:hover {
  opacity: 1;
}

nav.links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: #d6501a;
  box-shadow: 0 10px 20px rgba(234, 92, 31, 0.2);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-pill-fg);
  font-size: 14px;
  margin-right: 6px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.theme-toggle:hover {
  background: rgba(128, 128, 128, 0.25);
  transform: rotate(20deg) scale(1.05);
}

.theme-toggle .fa-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(128, 128, 128, 0.15);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1200;
}

.hamburger span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--nav-pill-fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger span:nth-child(1) {
  transform: translateY(-5px);
}

.hamburger span:nth-child(3) {
  transform: translateY(5px);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-pill {
    padding: 8px 8px 8px 24px;
  }

  nav.links {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100%;
    background: var(--surface-2);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 0 40px;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
  }

  nav.links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav.links a {
    font-size: 32px;
    font-family: var(--display);
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.02em;
    color: var(--text-1);
    opacity: 1;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }

  nav.links a::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  background: var(--black);
  color: var(--white);
  padding: calc(var(--nav-h) + 120px) 0 120px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero {
    padding: calc(var(--nav-h) + 60px) 0 60px;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}

.hero-video-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.9) 70%, var(--black) 100%);
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 80px;
  align-items: end;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero h1 {
  color: var(--white);
}

.hero .lede {
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 8px;
}

.hero-meta .row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}

.hero-meta .row span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

.hero-meta .row span:last-child {
  font-family: var(--mono);
  font-size: 12.5px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 32px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
}

/* Trust Strip Section */
.trust-strip {
  background: var(--black);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.trust-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.45;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

.trust-row .trust-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: trust-tick 15s linear infinite;
  white-space: nowrap;
  flex-grow: 1;
}

.trust-track span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--white);
  opacity: 0.7;
  text-transform: none;
  white-space: nowrap;
}

@keyframes trust-tick {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .trust-strip {
    padding: 20px 0;
  }
  .trust-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .trust-row .trust-track {
    animation-duration: 12s;
  }
}

/* Ticker Strip (Webflow-Style Marquee) */
.ticker-wrap {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 24px 0;
}

.ticker {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: tick 28s linear infinite;
}

.ticker span {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
}

.ticker span::after {
  content: '—';
  color: var(--orange);
  opacity: 1;
}

@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   PORTFOLIO MARQUEE SECTION
   ========================================================= */
#work-teaser {
  padding-bottom: 120px;
}

.work-marquee {
  overflow: hidden;
  margin-top: 48px;
}

.work-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: track 45s linear infinite;
}

.work-card {
  width: 340px;
  height: 425px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.work-card img{
  width: 240px:
  height: 325px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}


.work-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
}

 .work-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

@keyframes track {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .work-card {
    width: 260px;
    height: 325px;
  }
}

/* =========================================================
   STAT BANNER SECTION
   ========================================================= */
.stat-banner {
  background: var(--black);
  color: var(--white);
}

.stat-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .stat-banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-banner-cell {
  padding: 64px var(--margin);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: background 0.3s var(--ease);
}

.stat-banner-cell:hover {
  background: rgba(255, 255, 255, 0.03);
}

.stat-banner-cell:first-child {
  border-left: none;
}

@media (max-width: 900px) {
  .stat-banner-cell:nth-child(odd) {
    border-left: none;
  }
  .stat-banner-cell {
    padding: 48px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .stat-banner-cell:nth-child(-n+2) {
    border-top: none;
  }
}

.stat-banner-cell .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.2vw, 58px);
  color: var(--orange);
}

.stat-banner-cell .label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 12px;
}

.stat-banner-cell .src {
  display: block;
  font-size: 10px;
  opacity: 0.4;
  margin-top: 8px;
}

/* =========================================================
   SERVICES SECTION (Premium Card Grid)
   ========================================================= */
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 900px) {
  .block-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--surface-card);
  padding: 56px 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.08);
}

.service-tag {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.service-card h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-top: 24px;
  line-height: 1.2;
}

.service-card p {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}

/* =========================================================
   INSTAGRAM / DAILY PULSE
   ========================================================= */
.pulse-stage {
  border-radius: 36px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .pulse-stage {
    grid-template-columns: 1fr;]
  }
}

.pulse-copy {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 600px) {
  .pulse-copy {
    padding: 32px;
  }
}

.pulse-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 20px;
  border-radius: 40px;
  width: fit-content;
  margin-bottom: 28px;
}

.pulse-embed {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
@media (max-width: 900px) {
 .pulse-embed {
  padding: 0px;
 }
}


/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.about-figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--line);
}

.about-list {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
}

.about-list .row {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
}

.about-list .row:last-child {
  border-bottom: 1px solid var(--line);
}

.about-list .row span:first-child {
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
}

.about-list .row span:last-child {
  color: var(--text-1);
  font-weight: 500;
}

/* TEAM GIRD */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: left;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.08);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 28px;
}

[data-theme="dark"] .team-avatar {
  background: var(--white);
  color: var(--black);
}

.team-card h4 {
  font-size: 18px;
  color: var(--text-1);
}

.team-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 8px;
  font-weight: 700;
}

.team-card p {
  font-size: 14.5px;
  color: var(--text-2);
  margin-top: 16px;
  line-height: 1.6;
}

/* =========================================================
   TESTIMONIALS SECTION
   ========================================================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

@media (max-width: 900px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .testi-grid {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 16px var(--margin) 32px !important;
    margin-left: calc(-1 * var(--margin)) !important;
    margin-right: calc(-1 * var(--margin)) !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important; /* Firefox */
  }

  .testi-grid::-webkit-scrollbar {
    display: none !important; /* Safari and Chrome */
  }
}

.testi-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

@media (max-width: 640px) {
  .testi-card {
    scroll-snap-align: center !important;
    flex: 0 0 82vw !important;
    max-width: 82vw !important;
    padding: 36px 28px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
  }
}

.testi-card:hover {
  border-color: var(--orange);
  transform: scale(1.01);
}

.testi-card .stars {
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.testi-card p {
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-1);
}

.testi-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

[data-theme="dark"] .testi-avatar {
  background: var(--white);
  color: var(--black);
}

.testi-foot .who {
  font-family: var(--mono);
  font-size: 12px;
}

.testi-foot .who span {
  display: block;
  opacity: 0.55;
  font-size: 10.5px;
  margin-top: 4px;
  font-weight: 700;
}

/* =========================================================
   CLOSING SIGNATURE
   ========================================================= */
.closer {
  background: var(--black);
  color: var(--white);
  padding: 120px 0 96px;
  text-align: center;
  overflow: hidden;
}

.closer .eyebrow {
  justify-content: center;
}

.closer-word {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-size: clamp(60px, 14vw, 180px);
  margin-top: 16px;
}

.closer-word .lm-orange {
  color: var(--orange);
}

.closer-sub {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 32px;
}

.closer .btn {
  margin-top: 48px;
}

/* =========================================================
   CONTACT OVERLAY COMPONENT
   ========================================================= */
#contact-overlay {
  position: fixed;
  inset: 0;
  background: var(--surface-1);
  z-index: 4000;
  display: none;
  overflow-y: auto;
  padding: 120px 0 80px;
}

#contact-overlay.show {
  display: block;
  animation: overlayReveal 0.6s var(--ease);
}

@keyframes overlayReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#contact-close {
  position: absolute;
  top: 40px;
  right: var(--margin);
  font-size: 2.8rem;
  cursor: pointer;
  font-weight: 200;
  z-index: 10;
  color: var(--text-1);
  transition: transform 0.3s var(--ease);
}

#contact-close:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--orange);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}

/* Reveal elements inside contact overlay are injected dynamically
   — force them visible since IntersectionObserver has already run */
#contact-overlay .reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.contact-list .row {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
}

.contact-list .row:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list .row span:first-child {
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
}

form.card-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

form.card-form input, form.card-form textarea {
  width: 100%;
  padding: 18px 8px;
  border: none;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  color: var(--text-1);
  font-family: var(--display);
  font-size: 16.5px;
  outline: none;
  transition: border-color 0.4s var(--ease);
}

form.card-form input::placeholder, form.card-form textarea::placeholder {
  color: var(--text-2);
  opacity: 0.6;
}

form.card-form input:focus, form.card-form textarea:focus {
  border-color: var(--orange);
}

/* Custom dropdown */
.dd {
  position: relative;
}

.dd-trigger {
  width: 100%;
  padding: 18px 8px;
  border: none;
  border-bottom: 1.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16.5px;
  color: var(--text-1);
  opacity: 0.7;
}

.dd.active .dd-trigger {
  border-color: var(--orange);
  opacity: 1;
}

.dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--line);
  overflow: hidden;
  z-index: 5;
  animation: dropdownReveal 0.3s var(--ease);
}

@keyframes dropdownReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dd.active .dd-menu {
  display: block;
}

.dd-menu .opt {
  padding: 18px 24px;
  font-size: 15.5px;
  color: var(--text-1);
  cursor: pointer;
  transition: background 0.2s;
}

.dd-menu .opt:hover {
  background: var(--surface-2);
}

.submit-btn {
  margin-top: 12px;
  width: 100%;
  padding: 22px;
  border: none;
  border-radius: 44px;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

[data-theme="dark"] .submit-btn {
  background: var(--white);
  color: var(--black);
}

.submit-btn:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(234, 92, 31, 0.2);
}

.submit-btn:disabled {
  opacity: 0.5;
  transform: none;
}

#form-resp {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
}

/* =========================================================
   LIGHTBOX COMPONENT
   ========================================================= */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

#lightbox.show {
  display: flex;
  animation: lightboxFade 0.4s var(--ease);
}

@keyframes lightboxFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#lightbox img, #lightbox video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

#lightbox-close {
  position: absolute;
  top: 32px;
  right: 40px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  font-weight: 200;
  transition: transform 0.3s var(--ease);
}

#lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* =========================================================
   FOOTER COMPONENT
   ========================================================= */
footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 48px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top .logo img {
  height: 32px;
}

.footer-links {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 8px;
  font-weight: 700;
}

.footer-col a {
  font-size: 14.5px;
  opacity: 0.75;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.signoff {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.footer-bottom .legal {
  display: flex;
  gap: 32px;
}

.footer-bottom .legal a {
  font-size: 13px;
  opacity: 0.55;
}

.footer-bottom .legal a:hover {
  opacity: 1;
}

/* =========================================================
   SUBPAGES — GENERAL STYLING (work.html / case studies)
   ========================================================= */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: calc(var(--nav-h) + 96px) 0 80px;
}

.page-hero .lede {
  margin-top: 24px;
}

.crumb {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.crumb a {
  opacity: 1;
}

.crumb a:hover {
  color: var(--orange);
}

/* Case study listings */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }
}

.cs-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/3.1;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.05);
}

.cs-card.hidden {
  display: none;
}

.cs-card img, .cs-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.cs-card:hover img, .cs-card:hover video {
  transform: scale(1.04);
}

.cs-card-overlay {
  position: absolute;
  inset: 0;
  padding: 36px;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  transition: background 0.3s var(--ease);
}

.cs-card:hover .cs-card-overlay {
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.2) 60%);
}

.cs-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  font-weight: 700;
}

.cs-card h3 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.cs-result {
  font-family: var(--mono);
  font-size: 12.5px;
  opacity: 0.8;
  margin-top: 10px;
}

.cs-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.cs-card:hover .cs-arrow {
  background: var(--orange);
  transform: rotate(45deg) scale(1.05);
}

/* Filter components */
.lib-tools {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.lib-search {
  font-family: var(--display);
  font-size: 15.5px;
  padding: 18px 26px;
  border-radius: 40px;
  border: 1.5px solid var(--line);
  background: var(--surface-card);
  color: var(--text-1);
  min-width: 320px;
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.lib-search:focus {
  border-color: var(--orange);
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: var(--surface-card);
  color: var(--text-1);
  opacity: 0.7;
  transition: all 0.3s var(--ease);
}

.filter.active, .filter:hover {
  opacity: 1;
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 8px 16px rgba(234, 92, 31, 0.15);
}

/* Loose Grid Masonry for non-case studies */
.lib-grid {
  column-count: 3;
  column-gap: 24px;
}

@media (max-width: 1100px) {
  .lib-grid {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .lib-grid {
    column-count: 1;
  }
}

.lib-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
  box-shadow: 0 12px 24px rgba(0,0,0,0.03);
}

.lib-item img, .lib-item video {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease);
}

.lib-item:hover img, .lib-item:hover video {
  transform: scale(1.04);
}

.lib-item.hidden {
  display: none;
}

/* =========================================================
   CASE STUDY TEMPLATE REFINEMENTS
   ========================================================= */
.cs-hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-hero-media img, .cs-hero-media video {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  display: block;
}

.cs-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .cs-meta-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cs-meta-strip .cell {
  padding: 32px var(--margin);
  border-left: 1px solid var(--line);
}

.cs-meta-strip .cell:first-child {
  border-left: none;
  padding-left: 0;
}

@media (max-width: 900px) {
  .cs-meta-strip .cell:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }
}

.cs-meta-strip .cell span {
  display: block;
}

.cs-meta-strip .cell span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 10px;
}

.cs-meta-strip .cell span:last-child {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 500;
}

.cs-narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

@media (max-width: 900px) {
  .cs-narrative {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.cs-narrative p {
  opacity: 0.8;
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-1);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--surface-card);
  padding: 48px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

@media (max-width: 640px) {
  .stat-card {
    padding: 24px 20px;
  }
}

.stat-card .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 3.8vw, 54px);
  color: var(--orange);
}

.stat-card .label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 12px;
}

.cs-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .cs-gallery {
    grid-template-columns: 1fr;
  }
}

.cs-gallery img, .cs-gallery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.pull-quote {
  border-left: 4px solid var(--orange);
  padding-left: 40px;
}

.pull-quote p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.pull-quote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 13px;
  opacity: 0.6;
}

.cs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .cs-nav {
    grid-template-columns: 1fr;
  }
}

.cs-nav a {
  padding: 56px var(--margin);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s;
}

.cs-nav a:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cs-nav a:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.cs-nav a:last-child {
  text-align: right;
  align-items: flex-end;
}

@media (max-width: 640px) {
  .cs-nav a:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

.cs-nav .cs-nav-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.cs-nav .cs-nav-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
}

/* =========================================================
   REVEALS & ACCESSIBILITY (Reduced Motion)
   ========================================================= */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}


.reveal.active {
  opacity: 1;
  transform: none;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ticker, .work-track {
    animation: none !important;
  }
}
