/* ═══════════════════════════════════════════════════════════
   COCOTECH GLOBAL V12.5 — PREMIUM MOTION & MEDIA ENGINE
   Apple refinement × Linear smoothness × Stripe polish
   ═══════════════════════════════════════════════════════════ */

/* ── MOTION VARIABLES ── */
:root {
  --m-fast: 120ms;
  --m-normal: 220ms;
  --m-premium: 420ms;
  --m-hero: 900ms;
  --m-zoom: 8000ms;
  --m-ease: cubic-bezier(.22, .61, .36, 1);
  --m-ease-out: cubic-bezier(.16, 1, .3, 1);
  --m-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ── SECTION TRANSITIONS ── */
.sec {
  position: relative;
}
.sec::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}
.sec:first-of-type::before { display: none; }
.sec--alt::before {
  background: linear-gradient(to bottom, var(--bg2), transparent);
}

/* ── FLOATING AMBIENT ORBS ── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.035;
  will-change: transform;
}
.ambient__orb--copper {
  width: 500px; height: 500px;
  background: var(--copper);
  top: 10%; right: -5%;
  animation: ambientDrift1 25s ease-in-out infinite;
}
.ambient__orb--blue {
  width: 350px; height: 350px;
  background: var(--blue);
  bottom: 20%; left: -8%;
  animation: ambientDrift2 30s ease-in-out infinite;
}
.ambient__orb--green {
  width: 280px; height: 280px;
  background: var(--green);
  top: 55%; left: 40%;
  animation: ambientDrift3 22s ease-in-out infinite;
}
@keyframes ambientDrift1 {
  0%, 100% { transform: translate(0, 0) }
  33% { transform: translate(-25px, 15px) }
  66% { transform: translate(15px, -20px) }
}
@keyframes ambientDrift2 {
  0%, 100% { transform: translate(0, 0) }
  33% { transform: translate(20px, -18px) }
  66% { transform: translate(-12px, 22px) }
}
@keyframes ambientDrift3 {
  0%, 100% { transform: translate(0, 0) }
  33% { transform: translate(-18px, -12px) }
  66% { transform: translate(22px, 10px) }
}

/* ── UNIVERSAL MEDIA COMPONENT ── */
.media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg2);
  isolation: isolate;
}
.media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,.5) 0%, rgba(26,26,26,.15) 35%, transparent 70%);
  z-index: 2;
  opacity: 0;
  transition: opacity var(--m-premium) var(--m-ease);
  pointer-events: none;
}
.media:hover::before { opacity: 1; }

/* Media skeleton loader */
.media__skeleton {
  position: absolute;
  inset: 0;
  background: var(--bg2);
  z-index: 1;
  transition: opacity var(--m-premium) var(--m-ease);
}
.media__skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.06) 37%, transparent 63%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}
.media--loaded .media__skeleton { opacity: 0; pointer-events: none; }

/* Media image */
.media__img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity var(--m-premium) var(--m-ease), transform 20s linear;
  will-change: transform, opacity;
}
.media--loaded .media__img {
  opacity: 1;
  transform: scale(1);
}
.media:hover .media__img {
  transform: scale(1.06);
  transition: transform 8s linear;
}

/* Media video */
.media__video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity var(--m-premium) var(--m-ease), transform 20s linear;
}
.media--loaded .media__video {
  opacity: 1;
}
.media:hover .media__video {
  filter: brightness(1.05);
  transform: scale(1.04);
  transition: transform 20s linear, filter var(--m-normal) var(--m-ease);
}

/* Video hero slow zoom */
.media--hero .media__video,
.media--hero .media__img {
  animation: heroZoom 20s linear infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1) }
  100% { transform: scale(1.04) }
}

/* Media glass overlay */
.media__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--m-premium) var(--m-ease), opacity var(--m-normal) var(--m-ease);
}
.media:hover .media__overlay {
  transform: translateY(0);
  opacity: 1;
}
.media__overlay-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.media__overlay-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.media__overlay-cta {
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.media__overlay-cta .arrow {
  display: inline-block;
  transition: transform var(--m-fast) var(--m-ease);
}
.media:hover .media__overlay-cta .arrow {
  transform: translateX(4px);
}

/* Light sweep on media */
.media::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.06), transparent);
  z-index: 4;
  pointer-events: none;
  animation: lightSweep 10s ease-in-out infinite;
  animation-delay: var(--sweep-delay, 0s);
}
@keyframes lightSweep {
  0%, 85% { left: -100% }
  100% { left: 200% }
}

/* Media gallery */
.media-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
}
.media-gallery .media:first-child { grid-row: span 2; }
@media(max-width:768px) {
  .media-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .media-gallery .media:first-child { grid-row: span 1; }
}

/* ── PREMIUM CARD HOVER SYSTEM ── */
.prem-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform var(--m-premium) var(--m-ease),
    box-shadow var(--m-premium) var(--m-ease),
    border-color var(--m-normal) var(--m-ease);
  will-change: transform;
}
.prem-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--copper), var(--green), var(--blue), var(--copper));
  opacity: 0;
  transition: opacity var(--m-premium) var(--m-ease);
  z-index: -1;
  animation: borderRotate 6s linear infinite;
}
@keyframes borderRotate {
  to { background: conic-gradient(from 360deg, var(--copper), var(--green), var(--blue), var(--copper)); }
}
.prem-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--m-premium) var(--m-ease);
}
.prem-card:hover {
  transform: translateY(-8px) scale(1.005);
  box-shadow: 0 24px 64px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.04);
  border-color: transparent;
}
.prem-card:hover::before { opacity: .15; }
.prem-card:hover::after { transform: scaleX(1); }

/* Card specular highlight */
.prem-card__spec {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.04), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--m-fast) var(--m-ease);
  z-index: 5;
  transform: translate(-50%, -50%);
}
.prem-card:hover .prem-card__spec { opacity: 1; }

/* Card glow underneath */
.prem-card__glow {
  position: absolute;
  bottom: -20px; left: 10%; right: 10%;
  height: 40px;
  border-radius: 50%;
  background: var(--copper);
  filter: blur(30px);
  opacity: 0;
  transition: opacity var(--m-premium) var(--m-ease);
  z-index: -2;
}
.prem-card:hover .prem-card__glow { opacity: .06; }

/* ── REVEAL ENGINE ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--m-hero) var(--m-ease), transform var(--m-hero) var(--m-ease);
  will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].revealed { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="scale"].revealed { transform: scale(1); }

/* Cascade children */
[data-cascade] > * {
  opacity: 0;
  transform: translateY(36px) scale(.98);
  transition: opacity var(--m-premium) var(--m-ease), transform var(--m-premium) var(--m-ease);
  will-change: opacity, transform;
}
[data-cascade].revealed > * { opacity: 1; transform: translateY(0) scale(1); }
[data-cascade].revealed > *:nth-child(1) { transition-delay: 50ms; }
[data-cascade].revealed > *:nth-child(2) { transition-delay: 100ms; }
[data-cascade].revealed > *:nth-child(3) { transition-delay: 150ms; }
[data-cascade].revealed > *:nth-child(4) { transition-delay: 200ms; }
[data-cascade].revealed > *:nth-child(5) { transition-delay: 250ms; }
[data-cascade].revealed > *:nth-child(6) { transition-delay: 300ms; }
[data-cascade].revealed > *:nth-child(7) { transition-delay: 350ms; }
[data-cascade].revealed > *:nth-child(8) { transition-delay: 400ms; }
[data-cascade].revealed > *:nth-child(9) { transition-delay: 450ms; }
[data-cascade].revealed > *:nth-child(10) { transition-delay: 500ms; }

/* ── PARALLAX LAYERS ── */
[data-depth] {
  will-change: transform;
  transition: transform 0s linear;
}

/* ── 3D CARD TILT ── */
.tilt3d {
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}
.tilt3d__inner {
  transition: transform var(--m-fast) ease-out;
  transform-style: preserve-3d;
}

/* ── TEXT SHIMMER (Premium Headlines) ── */
.text-shimmer {
  background: linear-gradient(
    110deg,
    var(--text) 0%,
    var(--text) 40%,
    var(--copper) 50%,
    var(--text) 60%,
    var(--text) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s ease-in-out infinite;
}
@keyframes textShimmer {
  0% { background-position: 150% center }
  100% { background-position: -50% center }
}

/* ── NAV MODAL HIDE ── */
body.modal-open .nav {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1), opacity 0.3s;
}
/* On mobile, also hide the mobile nav when a modal is open */
@media (max-width: 1024px) {
  body.modal-open .mob {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
/* Safety: if body gets stuck with overflow:hidden but no modal/mob is open, clear it */
body:not(.modal-open):not(.mob-open) {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--green));
  z-index: 500;
  transform-origin: left;
  will-change: transform;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .ambient__orb,
  .media::after,
  .media--hero .media__video,
  .media--hero .media__img,
  .text-shimmer,
  .media__skeleton::after {
    animation: none !important;
  }
  [data-reveal],
  [data-cascade] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .prem-card::before { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   V13 ENHANCEMENTS — ENGINEERING PARTICLES & BLUEPRINT GRID
   ═══════════════════════════════════════════════════════════ */

/* ── ENGINEERING PARTICLES ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.particles__dot {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0;
  will-change: transform, opacity;
}
.particles__dot--1 { top: 15%; left: 20%; animation: particleFloat 18s ease-in-out infinite 0s; }
.particles__dot--2 { top: 35%; left: 70%; animation: particleFloat 22s ease-in-out infinite 3s; }
.particles__dot--3 { top: 60%; left: 15%; animation: particleFloat 20s ease-in-out infinite 6s; }
.particles__dot--4 { top: 80%; left: 55%; animation: particleFloat 24s ease-in-out infinite 9s; }
.particles__dot--5 { top: 25%; left: 85%; animation: particleFloat 19s ease-in-out infinite 12s; }
.particles__dot--6 { top: 70%; left: 40%; animation: particleFloat 21s ease-in-out infinite 4s; }
.particles__dot--7 { top: 45%; left: 92%; animation: particleFloat 23s ease-in-out infinite 7s; }
.particles__dot--8 { top: 90%; left: 25%; animation: particleFloat 17s ease-in-out infinite 2s; }

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translate(0, 0) scale(1); }
  10% { opacity: .15; }
  50% { opacity: .08; transform: translate(20px, -30px) scale(1.5); }
  90% { opacity: .12; }
}

/* ── BLUEPRINT GRID (for research/engineering sections) ── */
.blueprint-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .025;
  z-index: 0;
}
.blueprint-grid::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(var(--copper) 1px, transparent 1px),
    linear-gradient(90deg, var(--copper) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: blueprintShift 60s linear infinite;
}
.blueprint-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 80%);
}
@keyframes blueprintShift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(60px, 60px) rotate(.5deg); }
}

/* ── PRODUCT CARD VIDEO SWITCH ── */
.prod--media {
  position: relative;
  overflow: hidden;
}
.prod__media-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg2);
}
.prod__media-img,
.prod__media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--m-premium) var(--m-ease);
}
.prod__media-video {
  opacity: 0;
}
.prod--media:hover .prod__media-img {
  opacity: 0;
}
.prod--media:hover .prod__media-video {
  opacity: 1;
}
.prod__media-img {
  transform: scale(1);
  transition: opacity var(--m-premium) var(--m-ease), transform 8s linear;
}
.prod--media:hover .prod__media-img {
  transform: scale(1.06);
}

/* ── SYNCHRONIZED HOVER SEQUENCE ── */
/* Everything animates together with staggered timing */
.sync-hover {
  --hover-progress: 0;
}
.sync-hover__media {
  transition: transform 7s linear;
}
.sync-hover:hover .sync-hover__media {
  transform: scale(1.06);
}
.sync-hover__content {
  transition: transform var(--m-premium) var(--m-ease);
}
.sync-hover:hover .sync-hover__content {
  transform: translateY(-4px);
}
.sync-hover__cta {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--m-normal) var(--m-ease) 100ms, transform var(--m-normal) var(--m-ease) 100ms;
}
.sync-hover:hover .sync-hover__cta {
  opacity: 1;
  transform: translateY(0);
}
.sync-hover__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--m-premium) var(--m-ease) 50ms;
}
.sync-hover:hover .sync-hover__line {
  transform: scaleX(1);
}

/* ── ENHANCED REVEAL DIRECTIONS ── */
[data-reveal="rotate"] {
  opacity: 0;
  transform: translateY(24px) rotate(1.5deg);
  transition: opacity var(--m-hero) var(--m-ease), transform var(--m-hero) var(--m-ease);
}
[data-reveal="rotate"].revealed {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

[data-reveal="scale-up"] {
  opacity: 0;
  transform: scale(.92);
  transition: opacity var(--m-hero) var(--m-ease), transform var(--m-hero) var(--m-ease);
}
[data-reveal="scale-up"].revealed {
  opacity: 1;
  transform: scale(1);
}

[data-reveal="fade"] {
  opacity: 0;
  transition: opacity var(--m-hero) var(--m-ease);
}
[data-reveal="fade"].revealed {
  opacity: 1;
}

/* ── RESEARCH SECTION SPECIAL EFFECTS ── */
.research-ambient {
  position: relative;
}
.research-ambient::before {
  content: '';
  position: absolute;
  top: 20%; left: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,107,45,.03), transparent 70%);
  filter: blur(60px);
  animation: researchGlow 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes researchGlow {
  0%, 100% { transform: translate(0, 0); opacity: .4; }
  50% { transform: translate(20px, -15px); opacity: .7; }
}

/* ── CLIENT WORK IMMERSIVE PREVIEW ── */
.work-card--immersive {
  position: relative;
}
.work-card--immersive .work-card__img {
  height: 280px;
}
.work-card--immersive:hover .work-card__img img {
  transform: scale(1.08);
  transition: transform 8s linear;
}
.work-card__stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.work-card__stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  color: var(--text3);
  letter-spacing: .04em;
}
.work-card__stat strong {
  color: var(--copper);
  font-weight: 600;
}

/* ── CASE STUDY PREMIUM PANELS ── */
.case-panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform var(--m-premium) var(--m-ease),
    box-shadow var(--m-premium) var(--m-ease);
}
.case-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.04);
}
.case-panel__media {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}
.case-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s linear;
}
.case-panel:hover .case-panel__media img {
  transform: scale(1.06);
}
.case-panel__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--m-premium) var(--m-ease);
}
.case-panel:hover .case-panel__media::after { opacity: 1; }
.case-panel__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .5rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
.case-panel__body {
  padding: 24px;
}
.case-panel__industry {
  font-family: 'JetBrains Mono', monospace;
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}
.case-panel__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.case-panel__desc {
  font-size: .76rem;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 14px;
}
.case-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.case-panel__chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: .55rem;
  color: var(--text3);
  background: var(--bg2);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .02em;
}
.case-panel__cta {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--m-normal) var(--m-ease) 150ms, transform var(--m-normal) var(--m-ease) 150ms, color var(--m-fast) var(--m-ease);
}
.case-panel:hover .case-panel__cta {
  opacity: 1;
  transform: translateY(0);
  color: var(--copper);
}
.case-panel__cta .arrow {
  transition: transform var(--m-fast) var(--m-ease);
}
.case-panel:hover .case-panel__cta .arrow {
  transform: translateX(4px);
}

/* ── V13 REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .particles__dot,
  .blueprint-grid::before,
  .research-ambient::before {
    animation: none !important;
  }
  .particles__dot { opacity: .05; }
}

/* ═══════════════════════════════════════════════════════════
   V14 — FINAL PREMIUM REFINEMENTS
   Calm. Deliberate. Expensive. Engineered.
   ═══════════════════════════════════════════════════════════ */

/* ── BUTTON PRESS PHYSICS ── */
.btn {
  transition:
    transform var(--m-normal) var(--m-ease),
    opacity var(--m-fast) var(--m-ease),
    box-shadow var(--m-normal) var(--m-ease),
    border-color var(--m-fast) var(--m-ease);
}
.btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.btn:active {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition-duration: var(--m-fast);
}
.btn--dark:hover {
  box-shadow: 0 8px 24px rgba(26,26,26,.15);
}
.btn--dark:active {
  transform: translateY(1px) scale(.97);
  opacity: .9;
}

/* ── SECTION LIGHTING TRANSITIONS ── */
.sec {
  position: relative;
  isolation: isolate;
}
.sec::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: .6;
  pointer-events: none;
}
.sec:last-of-type::after { display: none; }
.sec + .sec { border-top: none; }

/* ── MAGNETIC CURSOR ATTRACTION ── */
.magnetic {
  transition: transform var(--m-fast) var(--m-ease-out);
  will-change: transform;
}

/* ── KEN BURNS SLIDESHOW ── */
.ken-burns {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.ken-burns__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--m-ease);
}
.ken-burns__slide.active {
  opacity: 1;
}
.ken-burns__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurnsZoom 12s linear infinite alternate;
}
.ken-burns__slide:nth-child(2) img {
  animation-direction: alternate-reverse;
  transform-origin: top right;
}
.ken-burns__slide:nth-child(3) img {
  transform-origin: bottom left;
}
@keyframes kenBurnsZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* ── COUNTER COMPLETION POP ── */
.counter-pop {
  animation: counterComplete .4s var(--m-ease-spring);
}
@keyframes counterComplete {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ── PREMIUM HOVER ZOOM TIMING (7-10s cinematic) ── */
.media:hover .media__img {
  transform: scale(1.06);
  transition: transform var(--m-zoom) linear;
}
.work-card:hover .work-card__img img {
  transform: scale(1.06);
  transition: transform var(--m-zoom) linear;
}
.home-client:hover .home-client__vis img {
  transform: scale(1.06);
  transition: transform var(--m-zoom) linear;
}

/* ── GLASS BADGES ── */
.glass-badge {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}

/* ── MEDIA POSTER-TO-VIDEO TRANSITION (refined) ── */
.media--switchable .media__img {
  transition: opacity var(--m-premium) var(--m-ease);
  z-index: 2;
}
.media--switchable .media__video {
  z-index: 1;
  opacity: 1;
}
.media--switchable:hover .media__img {
  opacity: 0;
}

/* ── V14 REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .ken-burns__slide img { animation: none !important; }
  .counter-pop { animation: none !important; }
  .magnetic { transition: none !important; }
}

/* ── INDUSTRY SCROLL CARDS ── */
.ind-scroll {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 20px 0;
}
.ind-scroll__track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
/* Blur/fade masks on both sides */
.ind-scroll__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}
.ind-scroll__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg2, #F4F2ED) 20%, transparent);
}
.ind-scroll__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg2, #F4F2ED) 20%, transparent);
}
.ind-scroll__fade.active { opacity: 1; }
/* Arrow buttons — positioned on left/right over the blur */
.ind-scroll__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text2);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
}
.ind-scroll__btn.active {
  opacity: 1;
  pointer-events: auto;
}
.ind-scroll__btn:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-50%) scale(1.08);
}
.ind-scroll__btn--left { left: 16px; }
.ind-scroll__btn--right { right: 16px; }
/* Cards */
.ind-card {
  min-width: calc((100% - 60px) / 4);
  max-width: calc((100% - 60px) / 4);
  flex-shrink: 0;
  padding: 32px 24px;
  border-radius: var(--r, 12px);
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.ind-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ind-bg, var(--border));
  opacity: 0;
  transition: opacity 0.3s;
}
.ind-card:hover::before { opacity: 1; }
.ind-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,.06), 0 8px 20px rgba(0,0,0,.03);
}
.ind-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
  filter: grayscale(.3);
  transition: filter 0.3s, transform 0.3s;
}
.ind-card:hover .ind-card__icon {
  filter: grayscale(0);
  transform: scale(1.1);
}
.ind-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.ind-card__desc {
  font-size: 0.76rem;
  color: var(--text2);
  line-height: 1.75;
}
@media (max-width: 1024px) {
  .ind-card { min-width: calc((100% - 40px) / 3); max-width: calc((100% - 40px) / 3); }
}
@media (max-width: 768px) {
  .ind-card { min-width: 220px; max-width: 220px; padding: 24px 18px; }
  .ind-card__icon { font-size: 1.8rem; margin-bottom: 12px; }
  .ind-card__title { font-size: 0.92rem; }
  .ind-card__desc { font-size: 0.72rem; }
  .ind-scroll__fade { width: 40px; }
  .ind-scroll { padding: 20px 0 60px; }
  .ind-scroll__btn {
    top: auto;
    bottom: 0;
    transform: none;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  .ind-scroll__btn:hover {
    transform: scale(1.08);
  }
  .ind-scroll__btn--left { left: calc(50% - 44px); }
  .ind-scroll__btn--right { right: calc(50% - 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .ind-scroll__track { transition: none; }
  .ind-card { transition: none; }
  .ind-card__icon { transition: none; }
  .ind-scroll__btn { transition: none; }
  .ind-scroll__fade { transition: none; }
}

/* ── TECHNOLOGY WALL — Expanding Cards ── */
.tech-wall {
  display: flex;
  gap: 8px;
  margin-top: 48px;
  height: 420px;
}
.tech-tile {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s, transform 0.4s;
}
.tech-tile__bg {
  position: absolute;
  inset: 0;
  background: var(--tile-bg, #333);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tech-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
  transition: opacity 0.5s cubic-bezier(.22,.61,.36,1), transform 8s linear;
  z-index: 0;
}
.tech-tile:hover .tech-tile__img {
  opacity: .15;
  transform: scale(1.06);
}
.tech-tile__icon {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.8rem;
  opacity: 0.2;
  z-index: 1;
  transition: opacity 0.4s;
}
/* Gradient at bottom for name */
.tech-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
/* Name — always visible at bottom */
.tech-tile__name {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  z-index: 3;
  white-space: nowrap;
}
/* Expanded content — hidden by default */
.tech-tile__expand {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 60px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.tech-tile__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tech-tile__item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.tech-tile__item-desc {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ── HOVER STATE ── */
/* Blur + shrink siblings */
.tech-wall:hover .tech-tile {
  filter: blur(3px) brightness(0.5);
  flex: 0.6;
}
/* Expand hovered card */
.tech-wall:hover .tech-tile:hover {
  filter: none;
  flex: 2.5;
}
.tech-tile:hover .tech-tile__bg {
  transform: scale(1.05);
}
.tech-tile:hover .tech-tile__icon {
  opacity: 0.06;
}
.tech-tile:hover::after {
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}
.tech-tile:hover .tech-tile__expand {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.15s;
}

@media (max-width: 768px) {
  .tech-wall {
    flex-direction: column;
    height: auto;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
  }
  .tech-tile {
    height: auto;
    min-height: 56px;
    flex: none !important;
    min-width: 0;
    width: 100%;
    border-radius: 10px;
    transition: none;
    filter: none !important;
    position: relative;
  }
  .tech-tile__img {
    opacity: 0.12;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .tech-tile__icon {
    position: relative;
    display: inline-block;
    top: auto;
    left: auto;
    transform: none;
    font-size: 1.4rem;
    opacity: 0.8;
    margin-right: 10px;
    vertical-align: middle;
  }
  .tech-tile__name {
    position: relative;
    display: inline-block;
    bottom: auto;
    top: auto;
    left: auto;
    transform: none;
    font-size: 0.92rem;
    white-space: normal;
    vertical-align: middle;
    padding: 16px 0;
  }
  .tech-tile__bg {
    position: absolute;
    inset: 0;
    border-radius: 10px;
  }
  .tech-tile::after {
    display: none;
  }
  /* Collapsed header area */
  .tech-tile {
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  /* Expanded content — hidden by default, flows in document */
  .tech-tile__expand {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0;
    transform: none;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    gap: 6px;
    display: flex;
    flex-direction: column;
  }
  .tech-tile.touched .tech-tile__expand,
  .tech-tile:hover .tech-tile__expand {
    opacity: 1;
    max-height: 400px;
    padding: 0 0 16px;
    transform: none;
  }
  /* Remove hover effects that cause overlap */
  .tech-wall:hover .tech-tile {
    filter: none;
    height: auto;
  }
  .tech-wall:hover .tech-tile:hover {
    filter: none;
    flex: none;
  }
  .tech-tile:hover .tech-tile__bg {
    transform: none;
  }
  .tech-tile:hover .tech-tile__icon,
  .tech-tile.touched .tech-tile__icon {
    opacity: 0.8;
    top: auto;
    left: auto;
    transform: none;
    font-size: 1.4rem;
  }
  .tech-tile:hover .tech-tile__name,
  .tech-tile.touched .tech-tile__name {
    top: auto;
    left: auto;
    transform: none;
    font-size: 0.92rem;
  }
  .tech-tile__item-name {
    font-size: 0.8rem;
  }
  .tech-tile__item-desc {
    font-size: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tech-tile { transition: none; filter: none !important; }
  .tech-tile__bg { transition: none; }
  .tech-tile__icon { transition: none; }
  .tech-tile__expand { transition: none; opacity: 0; }
  .tech-tile:hover .tech-tile__expand { opacity: 1; }
  .tech-wall:hover .tech-tile { filter: none; }
}

/* ── PIPELINE — Vertical Stepping Process ── */
.pipeline {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pipeline__step {
  display: flex;
  align-items: stretch;
  gap: 20px;
}
.pipeline__indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}
.pipeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border, #E8E5E0);
  border: 2px solid var(--border, #E8E5E0);
  flex-shrink: 0;
  margin-top: 20px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pipeline__line {
  width: 2px;
  flex: 1;
  background: var(--border, #E8E5E0);
  margin: 4px 0;
}
.pipeline__bar {
  flex: 1;
  background: var(--card, #fff);
  border: 1px solid var(--border, #E8E5E0);
  border-radius: 10px;
  margin: 6px 0;
  overflow: hidden;
  transition: box-shadow 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.pipeline__bar-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
}
.pipeline__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text3, #8a8a8a);
}
.pipeline__icon {
  font-size: 1.3rem;
  transition: transform 0.3s;
}
.pipeline__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  flex: 1;
}
.pipeline__dur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--copper, #A86B2D);
  letter-spacing: 0.04em;
  padding: 3px 8px;
  background: rgba(168,107,45,0.06);
  border-radius: 4px;
}
/* Panel — collapsed by default */
.pipeline__panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, padding 0.4s;
}
.pipeline__desc {
  font-size: 0.82rem;
  color: var(--text2, #555);
  line-height: 1.7;
  margin-bottom: 16px;
}
.pipeline__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 4px;
}
.pipeline__meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pipeline__meta-t {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3, #8a8a8a);
  margin-bottom: 4px;
}
.pipeline__meta-v {
  font-size: 0.72rem;
  color: var(--text2, #555);
  line-height: 1.65;
}

/* ── HOVER: expand panel, glow dot, lift bar ── */
.pipeline__step:hover .pipeline__dot {
  background: var(--copper, #A86B2D);
  border-color: var(--copper, #A86B2D);
  box-shadow: 0 0 12px rgba(168,107,45,0.35);
}
.pipeline__step:hover .pipeline__bar {
  border-color: rgba(168,107,45,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateX(8px);
}
.pipeline__step:hover .pipeline__icon {
  transform: scale(1.2);
}
.pipeline__step:hover .pipeline__panel {
  max-height: 500px;
  opacity: 1;
  padding: 0 24px 20px;
}
/* Fade non-hovered steps */
.pipeline:hover .pipeline__step {
  opacity: 0.4;
  transition: opacity 0.3s;
}
.pipeline:hover .pipeline__step:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .pipeline__bar-head { padding: 14px 16px; gap: 10px; }
  .pipeline__meta { grid-template-columns: 1fr; }
  .pipeline__step:hover .pipeline__bar { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline__bar { transition: none; }
  .pipeline__panel { transition: none; }
  .pipeline__dot { transition: none; }
  .pipeline__icon { transition: none; }
  .pipeline__step { opacity: 1 !important; }
}

/* ── HARDWARE BLUEPRINT GRID — Node Constellation ── */
.hw-blueprint {
  position: relative;
  margin-top: 48px;
  padding: 40px 0 100px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  min-height: 400px;
  overflow: visible;
}
/* Background grid pattern */
.hw-blueprint__grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--text3, #8a8a8a) 39px, var(--text3) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--text3, #8a8a8a) 39px, var(--text3) 40px);
  background-size: 40px 40px;
  border-radius: 12px;
  pointer-events: none;
}
/* Each node */
.hw-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  z-index: 1;
  animation: nodeFloat 4s ease-in-out infinite;
  animation-delay: var(--node-delay, 0s);
}
@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
/* The dot/circle */
.hw-node__dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card, #fff);
  border: 2px solid var(--border, #E8E5E0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 2;
}
.hw-node__icon {
  font-size: 2.4rem;
  transition: transform 0.3s;
}
.hw-node__label {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text2, #555);
  letter-spacing: 0.02em;
  transition: opacity 0.3s, transform 0.3s;
}
/* Hidden card — appears on hover */
.hw-node__card {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.9);
  width: 240px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  z-index: 100;
  text-align: left;
  pointer-events: none;
}
.hw-node__badge {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper, #A86B2D);
  background: rgba(168,107,45,0.07);
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 8px;
}
.hw-node__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 5px;
}
.hw-node__desc {
  font-size: 0.68rem;
  color: var(--text2, #555);
  line-height: 1.6;
}

/* ── HOVER STATES ── */
.hw-node:hover .hw-node__dot {
  transform: scale(1.2);
  border-color: var(--copper, #A86B2D);
  box-shadow: 0 0 20px rgba(168,107,45,0.2), 0 4px 12px rgba(0,0,0,0.08);
}
.hw-node:hover .hw-node__icon {
  transform: scale(1.15);
}
.hw-node:hover .hw-node__label {
  opacity: 0;
  transform: translateY(-4px);
}
.hw-node:hover .hw-node__card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px) scale(1);
  pointer-events: auto;
}
/* Fade siblings when one is hovered */
.hw-blueprint:hover .hw-node {
  opacity: 0.35;
}
.hw-blueprint:hover .hw-node:hover {
  opacity: 1;
  animation-play-state: paused;
  z-index: 50;
}

@media (max-width: 1024px) {
  .hw-blueprint { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .hw-blueprint { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hw-node__card { width: 180px; }
}
@media (max-width: 480px) {
  .hw-blueprint { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hw-node { animation: none; }
  .hw-node__dot { transition: none; }
  .hw-node__card { transition: none; }
  .hw-node__label { transition: none; }
  .hw-node__icon { transition: none; }
  .hw-blueprint:hover .hw-node { opacity: 1; }
}

/* ── EXPERIENCE LAB PORTAL — Pulsing Gateway ── */
.lab-portal {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 280px;
}
.lab-portal__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lab-portal__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border, #E8E5E0);
  animation: portalPulse 3s ease-in-out infinite;
}
.lab-portal__ring--1 { width: 160px; height: 160px; animation-delay: 0s; }
.lab-portal__ring--2 { width: 220px; height: 220px; animation-delay: 0.5s; opacity: 0.6; }
.lab-portal__ring--3 { width: 280px; height: 280px; animation-delay: 1s; opacity: 0.3; }
@keyframes portalPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.8; }
}
.lab-portal__enter {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--text, #1a1a1a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.lab-portal__enter:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.lab-portal__icon { font-size: 1.4rem; }
.lab-portal__text { font-size: 0.6rem; font-weight: 600; color: #fff; letter-spacing: 0.04em; }

/* ── RESEARCH HEX GRID — Honeycomb Tiles ── */
.research-hex {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hex-cell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  cursor: pointer;
  animation: hexPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--hex-delay, 0s);
  transition: min-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes hexPop {
  from { opacity: 0; transform: scale(0.85) rotate(-2deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}
.hex-cell__inner {
  background: var(--hex-bg, #1a1a2a);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
  min-height: 220px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hex-cell__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
}
.hex-cell:hover .hex-cell__icon {
  opacity: 0.9;
  transform: scale(1.1);
}
.hex-cell__badge {
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
}
.hex-cell__badge--research { background: rgba(168,107,45,0.15); color: #D4A05A; }
.hex-cell__badge--prototype { background: rgba(45,122,79,0.15); color: #5CBC8A; }
.hex-cell__badge--pilot { background: rgba(43,94,167,0.15); color: #6BA3E0; }
.hex-cell__badge--production { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.hex-cell__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.hex-cell__desc {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  margin-top: 8px;
}
.hex-cell:hover .hex-cell__desc {
  max-height: 300px;
  opacity: 1;
}
.hex-cell:hover {
  z-index: 10;
  min-height: 280px;
}
.hex-cell:hover .hex-cell__inner {
  transform: scale(1.02);
}
/* Fade siblings */
.research-hex:hover .hex-cell {
  opacity: 0.5;
  transition: opacity 0.3s;
}
.research-hex:hover .hex-cell:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .research-hex { grid-template-columns: repeat(2, 1fr); }
  .hex-cell {
    aspect-ratio: auto;
    background: var(--hex-bg, #1a1a2a);
    border-radius: 16px;
    overflow: hidden;
  }
  .hex-cell__inner {
    position: relative;
    inset: auto;
    padding: 24px 20px;
    background: transparent;
  }
  .hex-cell__desc {
    max-height: none;
    opacity: 1;
  }
  .research-hex:hover .hex-cell {
    opacity: 1;
  }
}
@media (max-width: 480px) {
  .research-hex { grid-template-columns: 1fr; }
}

/* ── ROADMAP TRACK — Horizontal Milestone Line ── */
.roadmap-track {
  position: relative;
  margin-top: 56px;
  display: flex;
  gap: 0;
  align-items: flex-start;
  padding-top: 40px;
}
.roadmap-track__line {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border, #E8E5E0);
  border-radius: 2px;
  z-index: 0;
}
.roadmap-milestone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.roadmap-milestone__marker {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card, #fff);
  border: 3px solid var(--border, #E8E5E0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 2;
}
.roadmap-milestone--done .roadmap-milestone__marker { border-color: var(--green, #2D7A4F); color: var(--green); }
.roadmap-milestone--active .roadmap-milestone__marker { border-color: var(--blue, #2B5EA7); color: var(--blue); }
.roadmap-milestone--planned .roadmap-milestone__marker { border-color: var(--copper, #A86B2D); color: var(--copper); }
.roadmap-milestone--research .roadmap-milestone__marker { border-color: var(--text3, #8a8a8a); color: var(--text3); }
.roadmap-milestone__content {
  margin-top: 20px;
  text-align: center;
  max-width: 180px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.roadmap-milestone__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 4px;
}
.roadmap-milestone__desc {
  font-size: 0.65rem;
  color: var(--text2, #555);
  line-height: 1.6;
}
/* Hover — marker pops, content reveals */
.roadmap-milestone:hover .roadmap-milestone__marker {
  transform: scale(1.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.roadmap-milestone:hover .roadmap-milestone__content {
  opacity: 1;
  transform: translateY(0);
}
/* Fade siblings */
.roadmap-track:hover .roadmap-milestone {
  opacity: 0.4;
  transition: opacity 0.3s;
}
.roadmap-track:hover .roadmap-milestone:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .roadmap-track { flex-direction: column; padding-top: 0; padding-left: 30px; }
  .roadmap-track__line { top: 0; bottom: 0; left: 18px; right: auto; width: 3px; height: auto; }
  .roadmap-milestone { flex-direction: row; align-items: center; gap: 16px; padding: 12px 0; }
  .roadmap-milestone__content { margin-top: 0; text-align: left; max-width: none; opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-portal__ring { animation: none; }
  .hex-cell { animation: none; }
  .hex-cell__inner { transition: none; }
  .hex-cell__desc { max-height: none; opacity: 1; }
  .roadmap-milestone__marker { transition: none; }
  .roadmap-milestone__content { opacity: 1; transform: none; }
  .research-hex:hover .hex-cell { opacity: 1; }
  .roadmap-track:hover .roadmap-milestone { opacity: 1; }
}

/* ── PRODUCT SHOWCASE — 3D Flip Cards ── */
.prod-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.prod-flip {
  perspective: 1000px;
}
.prod-flip--lg {
  grid-column: span 1;
}
.prod-flip__inner {
  position: relative;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}
.prod-flip.flipped .prod-flip__inner {
  transform: rotateY(180deg);
}
.prod-flip__front,
.prod-flip__back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #E8E5E0);
  overflow: hidden;
}
.prod-flip__front {
  background: var(--card, #fff);
  position: relative;
}
.prod-flip__back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: var(--text, #1a1a1a);
}
.prod-flip__img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 14px;
  background: var(--bg2, #F4F2ED);
}
.prod-flip--lg .prod-flip__img {
  height: 200px;
}
.prod-flip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s linear;
}
.prod-flip__front:hover .prod-flip__img img {
  transform: scale(1.06);
}
.prod-flip__status {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 12px;
}
.prod-flip__status--dev { background: rgba(43,94,167,0.08); color: var(--blue, #2B5EA7); }
.prod-flip__status--research { background: rgba(168,107,45,0.08); color: var(--copper, #A86B2D); }
.prod-flip__status--prototype { background: rgba(45,122,79,0.08); color: var(--green, #2D7A4F); }
.prod-flip__status--internal { background: rgba(0,0,0,0.04); color: var(--text3, #8a8a8a); }
.prod-flip__back .prod-flip__status--dev { background: rgba(107,163,224,0.15); color: #6BA3E0; }
.prod-flip__back .prod-flip__status--research { background: rgba(212,160,90,0.15); color: #D4A05A; }
.prod-flip__back .prod-flip__status--prototype { background: rgba(92,188,138,0.15); color: #5CBC8A; }
.prod-flip__back .prod-flip__status--internal { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.prod-flip__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.prod-flip__desc {
  font-size: 0.82rem;
  color: var(--text2, #555);
  font-weight: 500;
  line-height: 1.7;
  flex: 1;
}
.prod-flip__hint {
  font-size: 0.58rem;
  color: var(--copper, #A86B2D);
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(168,107,45,0.2);
  border-radius: 5px;
  background: rgba(168,107,45,0.04);
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
  font-weight: 600;
}
.prod-flip__hint:hover {
  background: rgba(168,107,45,0.1);
  transform: translateY(-1px);
}
.prod-flip__back-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.prod-flip__back-detail {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  flex: 1;
}
.prod-flip__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
}
.prod-flip__stack span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52rem;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
}
@media (max-width: 768px) {
  .prod-showcase { grid-template-columns: 1fr; }
  .prod-flip--lg { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  .prod-flip__inner { transition: none; }
  .prod-flip:hover .prod-flip__inner { transform: none; }
  .prod-flip__back { display: none; }
}

/* ── EXPERIENCE LAB — Under Construction Popup ── */
.lab-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lab-popup.open { opacity: 1; visibility: visible; }
.lab-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.lab-popup__box {
  position: relative;
  background: var(--card, #fff);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lab-popup.open .lab-popup__box {
  transform: scale(1) translateY(0);
}
.lab-popup__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.4rem;
  color: var(--text3, #8a8a8a);
  cursor: pointer;
  transition: color 0.2s;
}
.lab-popup__close:hover { color: var(--text, #1a1a1a); }
.lab-construction__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: constructBounce 2s ease-in-out infinite;
}
@keyframes constructBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-3deg); }
  75% { transform: translateY(-4px) rotate(3deg); }
}
.lab-construction__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 8px;
}
.lab-construction__desc {
  font-size: 0.82rem;
  color: var(--text2, #555);
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto 24px;
}
.lab-construction__bar {
  width: 180px;
  height: 4px;
  background: var(--bg2, #F3F1EC);
  border-radius: 2px;
  margin: 0 auto 12px;
  overflow: hidden;
}
.lab-construction__progress {
  width: 35%;
  height: 100%;
  background: var(--copper, #A86B2D);
  border-radius: 2px;
  animation: constructProgress 3s ease-in-out infinite;
}
@keyframes constructProgress {
  0% { width: 25%; }
  50% { width: 45%; }
  100% { width: 25%; }
}
.lab-construction__status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--text3, #8a8a8a);
  letter-spacing: 0.04em;
}

/* ── MEDIA PREVIEW LIGHTBOX ── */
.preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--copper, #A86B2D);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid rgba(168,107,45,0.2);
  background: rgba(168,107,45,0.04);
  transition: background 0.2s, transform 0.2s;
  margin-top: 12px;
}
.preview-btn:hover {
  background: rgba(168,107,45,0.1);
  transform: translateY(-1px);
}
.preview-btn__icon { font-size: 0.8rem; }

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.media-lightbox.open { opacity: 1; visibility: visible; }
.media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
}
.media-lightbox__content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.media-lightbox.open .media-lightbox__content {
  transform: scale(1);
}
.media-lightbox__content img,
.media-lightbox__content video {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
}
.media-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 1.1rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.media-lightbox__close:hover { transform: scale(1.1); }
.media-lightbox__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3;
  border-radius: 0 0 12px 12px;
}

/* ── CAREERS: CULTURE STACKING CARDS ── */
/* Cards start stacked on top of each other, fan out as you scroll/view them */
.culture-stack {
  position: relative;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.culture-card {
  position: relative;
  padding: 32px 24px;
  border-radius: 14px;
  background: var(--card-bg, #1a1a2a);
  overflow: hidden;
  transform: translateY(calc(var(--card-i) * 8px)) rotate(calc(var(--card-i) * -0.5deg));
  opacity: 0;
  animation: cardDeal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--card-i) * 0.12s);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
@keyframes cardDeal {
  from { opacity: 0; transform: translateY(40px) rotate(-2deg) scale(0.92); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
.culture-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  z-index: 5;
}
.culture-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
  opacity: 0.8;
}
.culture-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.culture-card__desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .culture-stack { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .culture-card { animation: none; opacity: 1; transform: none; }
}

/* ── SUCCESS STORIES: SLIDING REVEAL PANELS ── */
/* Client cards slide in from alternating sides — uses data-slide attribute */
[data-slide] {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-slide="left"] { transform: translateX(-70px); }
[data-slide="right"] { transform: translateX(70px); }
[data-slide].visible { opacity: 1; transform: translateX(0); }

/* Work cards — staggered grid entrance with scale */
.work-grid .work-card[data-v] {
  opacity: 0;
  transform: translateY(40px) scale(0.93) !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.work-grid .work-card[data-v].on { opacity: 1; transform: translateY(0) scale(1) !important; }
.work-grid .work-card[data-v]:nth-child(1) { transition-delay: 0s !important; }
.work-grid .work-card[data-v]:nth-child(2) { transition-delay: 0.12s !important; }
.work-grid .work-card[data-v]:nth-child(3) { transition-delay: 0.24s !important; }
.work-grid .work-card[data-v]:nth-child(4) { transition-delay: 0.36s !important; }

/* Testimonial cards — fade up with rotation */
.testimonial-card {
  opacity: 0;
  transform: translateY(20px) rotate(-1deg);
  animation: testiReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background: var(--card, #fff);
  border: 1px solid var(--border, #E8E5E0);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}
@keyframes testiReveal {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.testimonial-card__text {
  font-size: 0.85rem;
  color: var(--text2, #555);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 16px;
}
.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-card__author strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
}
.testimonial-card__author span {
  font-size: 0.65rem;
  color: var(--text3, #8a8a8a);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* ── ABOUT PAGE: TRUST SECTION — Rotating marquee ── */
.trust-marquee {
  margin-top: 48px;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}
.trust-marquee::before,
.trust-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.trust-marquee::before { left: 0; background: linear-gradient(to right, var(--bg2, #F4F2ED), transparent); }
.trust-marquee::after { right: 0; background: linear-gradient(to left, var(--bg2, #F4F2ED), transparent); }
.trust-marquee__track {
  display: flex;
  gap: 16px;
  animation: trustScroll 40s linear infinite;
  width: max-content;
}
.trust-marquee__track:hover { animation-play-state: paused; }
@keyframes trustScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.trust-item {
  flex-shrink: 0;
  width: 280px;
  padding: 24px 20px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #E8E5E0);
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.trust-item__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 6px;
}
.trust-item__desc {
  font-size: 0.68rem;
  color: var(--text2, #555);
  line-height: 1.7;
}
@media (prefers-reduced-motion: reduce) {
  .trust-marquee__track { animation: none; flex-wrap: wrap; }
  .cl[data-v] { opacity: 1; transform: none; }
  .work-card[data-v] { opacity: 1; transform: none; }
  .testimonial-card { animation: none; opacity: 1; transform: none; }
}

/* ── ABOUT: PRINCIPLES — Premium card grid ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.about-card {
  position: relative;
  padding: 36px 28px;
  border-radius: 14px;
  overflow: hidden;
}
.about-card__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}
.about-card:hover .about-card__accent { opacity: 1; }
.about-card__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--border, #E8E5E0);
  line-height: 1;
  opacity: 0.5;
}
.about-card__icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.about-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 8px;
}
.about-card__desc {
  font-size: 0.76rem;
  color: var(--text2, #555);
  line-height: 1.75;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

/* ── ABOUT: VISION PILLARS — Premium light cards with tilt ── */
.vision-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.vision-pill {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  border-radius: 14px;
  position: relative;
}
.vision-pill__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.vision-pill__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 5px;
}
.vision-pill__desc {
  font-size: 0.7rem;
  color: var(--text2, #555);
  line-height: 1.7;
}
@media (max-width: 900px) { .vision-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .vision-pillars { grid-template-columns: 1fr; } }

/* ── ABOUT: TRUST — Premium tile grid ── */
.trust-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 48px;
}
.trust-tile {
  padding: 24px 20px;
  border-radius: 12px;
  position: relative;
}
.trust-tile__icon { font-size: 1.4rem; margin-bottom: 12px; display: block; }
.trust-tile__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 5px;
}
.trust-tile__desc {
  font-size: 0.68rem;
  color: var(--text2, #555);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   HOMEPAGE PREMIUM — Unique effects not used elsewhere
   ══════════════════════════════════════════════════════ */

/* ── HERO: Line-by-line text clip reveal ── */
.hero__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text, #1a1a1a);
}
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__line--accent {
  color: var(--copper, #A86B2D);
  position: relative;
}

/* ── HERO: Word rotation ── */
#heroRotate {
  display: inline-block;
  animation: heroWordCycle 8s ease-in-out infinite;
}
@keyframes heroWordCycle {
  0%, 20% { opacity: 1; transform: translateY(0); }
  25%, 30% { opacity: 0; transform: translateY(-10px); }
  35%, 55% { opacity: 1; transform: translateY(0); }
  60%, 65% { opacity: 0; transform: translateY(-10px); }
  70%, 90% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(-10px); }
}

/* ── HOME CAPABILITIES: Magnetic inner glow cards ── */
.home-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.home-cap {
  position: relative;
  padding: 32px 24px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #E8E5E0);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s;
}
.home-cap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(168,107,45,0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.home-cap:hover::before { transform: translate(-50%, -50%) scale(1.5); }
.home-cap:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
  border-color: rgba(168,107,45,0.2);
}
.home-cap__icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.home-cap__t {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 6px;
}
.home-cap__d {
  font-size: 0.72rem;
  color: var(--text2, #555);
  line-height: 1.75;
}
@media (max-width: 900px) { .home-caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .home-caps { grid-template-columns: 1fr; } }

/* ── HOME PRODUCTS: Glass cards with status pulse ── */
.home-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.home-prod {
  position: relative;
  padding: 28px 24px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border, #E8E5E0);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s;
}
/* Inner light sweep on hover */
.home-prod::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.home-prod:hover::after { left: 150%; }
.home-prod:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 56px rgba(0,0,0,0.08);
  border-color: rgba(168,107,45,0.15);
}
.home-prod--featured { grid-column: span 2; }
.home-prod__img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.home-prod__img img {
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-prod:hover .home-prod__img img { transform: scale(1.04); }
/* Status badge with pulse dot */
.home-prod .prod__st {
  position: relative;
  padding-left: 16px;
}
.home-prod .prod__st::before {
  content: '';
  position: absolute;
  left: 4px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: statusPing 2s ease-in-out infinite;
}
.home-prod .prod__st--dev::before { background: var(--blue, #2B5EA7); }
.home-prod .prod__st--proto::before { background: var(--green, #2D7A4F); }
.home-prod .prod__st--research::before { background: var(--copper, #A86B2D); }
.home-prod .prod__st--internal::before { background: var(--text3, #8a8a8a); }
@keyframes statusPing {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.4; transform: translateY(-50%) scale(1.6); }
}
.home-prod__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin: 8px 0 6px;
}
.home-prod__desc {
  font-size: 0.74rem;
  color: var(--text2, #555);
  line-height: 1.75;
}
.home-prod__phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--text3, #8a8a8a);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #E8E5E0);
}
@media (max-width: 768px) {
  .home-products { grid-template-columns: 1fr; }
  .home-prod--featured { grid-column: span 1; }
}

/* ── HOME CLIENTS: Image zoom + slide overlay ── */
.home-clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.home-client {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border, #E8E5E0);
  background: var(--card, #fff);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.home-client:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.home-client__vis {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg2, #F3F1EC);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.home-client__vis img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-client:hover .home-client__vis img { transform: scale(1.08); }
.home-client__vis span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--border, #E8E5E0);
}
.home-client__body { padding: 20px; }
.home-client__ind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper, #A86B2D);
  margin-bottom: 4px;
}
.home-client__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 5px;
}
.home-client__desc {
  font-size: 0.68rem;
  color: var(--text2, #555);
  line-height: 1.7;
}
@media (max-width: 768px) { .home-clients { grid-template-columns: 1fr; } }

/* ── HOME STATS: Pop counter animation ── */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 20px 0;
}
.home-stat { padding: 24px 0; }
.home-stat__n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  line-height: 1;
  display: inline-block;
}
.home-stat__suffix {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--copper, #A86B2D);
}
.home-stat__label {
  font-size: 0.65rem;
  color: var(--text3, #8a8a8a);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) { .home-stats { grid-template-columns: repeat(2, 1fr); } }

/* ── HOME TESTIMONIALS ── */
.home-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.home-testi {
  background: var(--card, #fff);
  border: 1px solid var(--border, #E8E5E0);
  border-radius: 12px;
  padding: 24px 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.home-testi:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.home-testi__msg {
  font-size: 0.82rem;
  color: var(--text2, #555);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 14px;
}
.home-testi__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
}
.home-testi__co {
  font-size: 0.62rem;
  color: var(--text3, #8a8a8a);
  margin-top: 2px;
}

/* ── HOME CTA: Gradient text + breathing button ── */
.home-cta .t-d {
  background: linear-gradient(135deg, var(--text, #1a1a1a) 0%, var(--copper, #A86B2D) 50%, var(--text, #1a1a1a) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.btn--lg {
  padding: 16px 40px;
  font-size: 0.85rem;
}

/* ── HERO SCROLL INDICATOR ── */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll span {
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text3, #8a8a8a);
}
.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--copper, #A86B2D), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  #heroRotate { animation: none; }
  .home-cta .t-d { animation: none; -webkit-text-fill-color: var(--text); }
  .hero__scroll-line { animation: none; }
  .home-cap::before { display: none; }
}

/* ══════════════════════════════════════════════════════
   GLOBAL TEXT ALIGNMENT & CONSISTENCY
   ══════════════════════════════════════════════════════ */

/* ── DEFAULT: Left-aligned content ── */
.sec, .sec--alt, .shdr, .hero, .hero__in { text-align: left; }

/* ── CENTERED: Section headers (label + heading only, not body text) ── */
.shdr { text-align: center; }
.shdr .t-l { text-align: center; }
.shdr .t-h { text-align: center; margin-left: auto; margin-right: auto; }
.shdr .t-b { text-align: center; margin-left: auto; margin-right: auto; }

/* ── HERO: Left-aligned (editorial style) ── */
.hero__in { text-align: left; }
.hero__sub { text-align: left; }
.hero__btns { justify-content: flex-start; }
.hero__headline { text-align: left; }
.hero__eye { text-align: left; }

/* ── CARDS: Always left-aligned content ── */
.phil__card, .about-card, .trust-tile, .home-cap,
.home-prod, .home-client__body, .home-testi,
.prod, .prod-flip__front, .prod-flip__back,
.cl__body, .work-card__body, .eng-card,
.rlab, .res, .hw-node__card, .pipeline__bar-head,
.ind-card, .culture-card, .vision-pill__text,
.hex-cell__inner, .process-step, .cap {
  text-align: left;
}

/* ── STATS: Centered ── */
.home-stats { text-align: center; }
.home-stat { text-align: center; }

/* ── CTA SECTIONS: Centered ── */
.home-cta { text-align: center; }
.home-cta .t-d, .home-cta .t-b, .home-cta .t-l { text-align: center; margin-left: auto; margin-right: auto; }

/* ── FOOTER: Left-aligned ── */
.foot__col, .foot__col a { text-align: left; }
.foot__bot { text-align: left; }

/* ── FOOTER: Mobile responsive ── */
@media (max-width: 480px) {
  .foot__columns {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .foot__brand-section .foot__logo img {
    height: 40px;
  }
  .foot__brand {
    font-size: 1.05rem;
  }
  .foot__tagline {
    font-size: 0.8rem;
  }
  .foot__col-t {
    font-size: 0.58rem;
    margin-bottom: 6px;
  }
  .foot__col a {
    font-size: 0.76rem;
    padding: 1.5px 0;
  }
  .foot__bot {
    font-size: 0.66rem;
    gap: 8px;
  }
  .foot__links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 6px;
  }
  .foot__links span {
    font-size: 0.5rem;
  }
  .foot {
    padding: 36px 0 20px;
  }
  .foot__top {
    margin-bottom: 24px;
  }
}

@media (max-width: 360px) {
  .foot__columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .foot__links span {
    display: none;
  }
  .foot__links {
    flex-direction: column;
    gap: 4px;
  }
  .foot__bot {
    font-size: 0.62rem;
  }
}

/* ── FORMS: Left-aligned ── */
.ff, .ff label { text-align: left; }
.contact__form { text-align: left; }

/* ── NAVIGATION: Centered items ── */
.nav__menu { align-items: center; }

/* ── CONSISTENT LINE-HEIGHT ── */
.t-b, .phil__card-d, .about-card__desc, .trust-tile__desc,
.home-cap__d, .home-prod__desc, .prod__desc, .cl__desc,
.eng-card__desc, .rlab__desc, .ind-card__desc,
.culture-card__desc, .hw-node__desc, .pipeline__desc,
.prod-flip__desc, .prod-flip__back-detail, .res__d,
.vision-pill__desc, .hex-cell__desc, .work-card__desc {
  line-height: 1.75;
}

/* ── CONSISTENT HEADING SPACING ── */
.shdr .t-l { margin-bottom: 12px; }
.shdr .t-h { margin-bottom: 10px; }
.shdr .t-b { margin-top: 0; }

/* ── CASE STUDY MODAL ── */
.cs-clickable {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.16,1,.3,1), box-shadow 0.25s;
}
.cs-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}
.cs-clickable:active {
  transform: translateY(-2px);
}
.cl__read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--copper);
  transition: color 0.2s;
}
.cs-clickable:hover .cl__read-more {
  color: var(--text);
}

.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(.16,1,.3,1), visibility 0.3s;
}
.cs-modal.open {
  opacity: 1;
  visibility: visible;
}
.cs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cs-modal__container {
  position: relative;
  width: 92%;
  max-width: 820px;
  background: var(--card, #fff);
  border-radius: 20px;
  overflow: clip;
  box-shadow: 0 40px 100px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}
.cs-modal.open .cs-modal__container {
  transform: translateY(0) scale(1);
}
.cs-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--text, #1a1a1a);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.cs-modal__close:hover {
  background: #fff;
  transform: scale(1.1);
}
.cs-modal__scroll {
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}
.cs-modal__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  min-height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}
.cs-modal__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.cs-modal__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,.85) 0%, rgba(26,26,26,.3) 50%, transparent 100%);
}
.cs-modal__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px;
}
.cs-modal__industry {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 8px;
}
.cs-modal__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.cs-modal__client {
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.cs-modal__body {
  padding: 32px;
}
.cs-modal__section {
  margin-bottom: 28px;
}
.cs-modal__section:last-child {
  margin-bottom: 0;
}
.cs-modal__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.cs-modal__section p {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--text2, #555);
}
.cs-modal__footer {
  padding: 20px 32px 28px;
  border-top: 1px solid var(--border, #e8e5e0);
  display: flex;
  gap: 12px;
  align-items: center;
}
.cs-modal__dismiss {
  cursor: pointer;
}

@media (max-width: 768px) {
  .cs-modal {
    align-items: center;
    padding: 16px;
  }
  .cs-modal__container {
    width: 92%;
    max-width: none;
    max-height: none;
    border-radius: 14px;
  }
  .cs-modal__scroll {
    max-height: 75vh;
  }
  .cs-modal__hero {
    aspect-ratio: 16/9;
    min-height: 160px;
  }
  .cs-modal__hero-content {
    padding: 16px 20px;
  }
  .cs-modal__title {
    font-size: 1.2rem;
  }
  .cs-modal__body {
    padding: 20px;
  }
  .cs-modal__section p {
    font-size: .85rem;
  }
  .cs-modal__footer {
    padding: 16px 20px 20px;
    flex-direction: column;
    gap: 10px;
  }
  .cs-modal__footer .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .cs-modal__close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-modal__container {
    transform: none;
  }
  .cs-clickable:hover {
    transform: none;
  }
}

/* ── PROJECT MODAL EXTRAS ── */
.proj-clickable {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.16,1,.3,1), box-shadow 0.25s;
}
.proj-clickable:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}
.proj-clickable:active {
  transform: translateY(-3px);
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.proj-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 500;
  background: var(--bg2, #f4f2ed);
  border: 1px solid var(--border, #e8e5e0);
  border-radius: 6px;
  color: var(--text2, #555);
  letter-spacing: .01em;
}

@media (prefers-reduced-motion: reduce) {
  .proj-clickable:hover {
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   TOUCH DEVICE — Make hover animations work on tap
   Adds .touched class via JS so tap = hover on mobile
   ═══════════════════════════════════════════════════════════ */

/* Pipeline: tap to expand */
.pipeline__step.touched .pipeline__dot {
  background: var(--copper, #A86B2D);
  border-color: var(--copper, #A86B2D);
  box-shadow: 0 0 12px rgba(168,107,45,0.35);
}
.pipeline__step.touched .pipeline__bar {
  border-color: rgba(168,107,45,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateX(8px);
}
.pipeline__step.touched .pipeline__icon {
  transform: scale(1.2);
}
.pipeline__step.touched .pipeline__panel {
  max-height: 500px;
  opacity: 1;
  padding: 0 22px 18px;
}

/* Tech tiles: tap to reveal */
.tech-tile.touched {
  flex: 2.5 !important;
}
.tech-tile.touched .tech-tile__expand {
  opacity: 1;
  transform: translateX(0);
}
.tech-tile.touched .tech-tile__bg {
  opacity: 1;
}

/* Hardware nodes: tap to show card */
.hw-node.touched {
  opacity: 1 !important;
  z-index: 50;
}
.hw-node.touched .hw-node__card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}
.hw-node.touched .hw-node__dot {
  background: var(--copper, #A86B2D);
  border-color: var(--copper, #A86B2D);
  box-shadow: 0 0 10px rgba(168,107,45,0.4);
  transform: scale(1.3);
}

/* Industry cards: tap highlight */
.ind-card.touched {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Hex cells: tap to reveal */
.hex-cell.touched .hex-cell__inner {
  transform: scale(1.05);
  overflow-y: auto;
}
.hex-cell.touched .hex-cell__desc {
  opacity: 1;
  max-height: 200px;
  overflow-y: auto;
}
.hex-cell.touched {
  overflow: visible;
  z-index: 10;
}
