/* ==========================================================================
   Caspian Pharmaceuticals — Design System
   Display: Space Grotesk · Body: IBM Plex Sans · Data/Spec: IBM Plex Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* --- Brand (from existing logo — do not alter) --- */
  --navy:        #113449;
  --navy-deep:   #0A2029;
  --navy-soft:   #1C4A63;
  --gold:        #D7A11A;
  --gold-soft:   #E9C363;
  --gold-dim:    #B8860F;

  /* --- Paper / surfaces --- */
  --paper:       #FAF7F0;
  --paper-dim:   #F1EADA;
  --paper-line:  rgba(17,52,73,0.14);
  --card:        #FFFFFF;

  /* --- Ink --- */
  --ink:         #142A34;
  --ink-soft:    #56666E;
  --ink-faint:   #8B9AA0;
  --on-navy:     #EDEFEF;
  --on-navy-dim: #A9BAC2;

  /* --- Status --- */
  --verified:    #3F7A5C;

  /* --- Type --- */
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'IBM Plex Sans', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* --- Scale --- */
  --step-1: clamp(0.8rem, 0.77rem + 0.15vw, 0.9rem);
  --step0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step1:  clamp(1.25rem, 1.18rem + 0.35vw, 1.5rem);
  --step2:  clamp(1.6rem, 1.45rem + 0.75vw, 2.15rem);
  --step3:  clamp(2.1rem, 1.8rem + 1.5vw, 3.2rem);
  --step4:  clamp(2.8rem, 2.2rem + 3vw, 5rem);

  --radius-pill: 999px;
  --radius-md: 14px;
  --ease: cubic-bezier(.16,.84,.32,1);

  --container: 1240px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--f-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p{ margin: 0 0 1em; }
.on-navy p, .on-navy h1, .on-navy h2, .on-navy h3{ color: var(--on-navy); }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section{ position: relative; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-mono);
  font-size: var(--step-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1em;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.on-navy .eyebrow{ color: var(--gold-soft); }

/* ---------- Buttons (capsule shape — the literal product) ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn svg{ width: 1em; height: 1em; transition: transform .3s var(--ease); }
.btn:hover svg{ transform: translateX(3px); }

.btn-gold{ background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover{ background: var(--gold-soft); box-shadow: 0 10px 30px -10px rgba(215,161,26,.55); }

.btn-outline{ background: transparent; border-color: rgba(255,255,255,0.35); color: var(--on-navy); }
.btn-outline:hover{ border-color: var(--gold-soft); color: var(--gold-soft); }

.btn-line{ background: transparent; border-color: var(--paper-line); color: var(--navy); }
.btn-line:hover{ border-color: var(--gold); color: var(--gold-dim); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,247,240,0.85);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--paper-line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand{ display: flex; align-items: center; gap: 0.7em; }
.brand img{ height: 34px; width: auto; }
.brand .word{ height: 22px; width: auto; }

.main-nav{ display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.main-nav a{
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3em 0;
}
.main-nav a::after{
  content:"";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--gold);
  transition: right .35s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ color: var(--navy); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 1rem; }
.nav-toggle{ display: none; }

/* header downloads dropdown */
.nav-dd{ position: relative; }
.nav-dd-toggle{
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: var(--step-1); font-weight: 500; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .35em; padding: .3em 0;
}
.nav-dd-toggle:hover, .nav-dd-toggle[aria-expanded="true"]{ color: var(--navy); }
.nav-dd-toggle .caret{ width: 13px; height: 13px; transition: transform .25s var(--ease); }
.nav-dd-toggle[aria-expanded="true"] .caret{ transform: rotate(180deg); }
.nav-dd-menu{
  position: absolute; top: calc(100% + .7rem); right: 0; min-width: 258px;
  background: var(--card); border: 1px solid var(--paper-line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: .4rem; display: none; z-index: 70;
}
.nav-dd-menu.open{ display: block; }
.nav-dd-menu a{
  display: block; padding: .6rem .8rem; border-radius: 8px;
  font-size: var(--step-1); font-weight: 500; color: var(--navy);
}
.nav-dd-menu a::after{ display: none; }
.nav-dd-menu a:hover{ background: var(--paper); color: var(--navy); }

@media (max-width: 880px){
  .main-nav{
    position: fixed; inset: 84px 0 0 0; height: calc(100dvh - 84px);
    background: var(--paper); flex-direction: column; justify-content: flex-start;
    padding: 2rem clamp(1.25rem,4vw,2.5rem); gap: 1.4rem;
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ font-size: var(--step1); }
  .nav-toggle{
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer; z-index: 60;
  }
  .nav-toggle span{ width: 100%; height: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .header-actions .btn-gold{ display: none; }
  /* dropdown becomes an inline stacked group inside the mobile menu */
  .nav-dd{ width: 100%; }
  .nav-dd-toggle{ font-size: var(--step1); pointer-events: none; }
  .nav-dd-toggle .caret{ display: none; }
  .nav-dd-menu{
    position: static; display: block; min-width: 0;
    background: none; border: none; box-shadow: none; padding: .4rem 0 0;
  }
  .nav-dd-menu a{ padding: .4rem 0; font-size: var(--step0); color: var(--ink-soft); font-weight: 500; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  perspective: 1700px;
  background:
    radial-gradient(120% 140% at 15% -10%, rgba(28,74,99,.94), rgba(17,52,73,.96) 45%, rgba(10,32,41,.98) 100%),
    url('../img/photos/capsules-macro.jpg');
  background-size: cover;
  background-position: center 30%;
  color: var(--on-navy);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
  overflow: hidden;
}
.page-hero.has-photo{
  background:
    radial-gradient(120% 140% at 15% -10%, rgba(28,74,99,.94), rgba(17,52,73,.96) 45%, rgba(10,32,41,.98) 100%),
    url('../img/photos/capsules-macro.jpg');
  background-size: cover;
  background-position: center 35%;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
@media (max-width: 940px){ .hero-grid{ grid-template-columns: 1fr; } }

.hero h1{
  font-size: var(--step4);
  color: #fff;
  max-width: 13ch;
}
.hero h1 em{ font-style: normal; color: var(--gold-soft); }
.hero .lede{
  font-size: var(--step1);
  color: var(--on-navy-dim);
  max-width: 42ch;
  margin-bottom: 1.6em;
}
.hero-ctas{ display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5em; }

/* ---------- Capsule orbit — 3D revolving, drag + pointer reactive ---------- */
.capsule-orbit{
  position: relative;
  height: clamp(280px, 34vw, 420px);
  perspective: 1400px;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.capsule-orbit.dragging{ cursor: grabbing; }
@media (max-width: 600px){ .capsule-orbit{ height: 200px; } }
.orbit-stage{
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.orbit-cap{
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(120px, 15vw, 180px);
  height: clamp(44px, 5.6vw, 64px);
  margin-left: calc(clamp(120px, 15vw, 180px) * -0.5);
  margin-top: calc(clamp(44px, 5.6vw, 64px) * -0.5);
  border-radius: var(--radius-pill);
  backface-visibility: hidden;
  box-shadow: 0 20px 46px -16px rgba(0,0,0,.55), inset 0 2px 3px rgba(255,255,255,.25);
  transform: translate(-50%,-50%) rotateY(var(--a, 0deg)) translateZ(clamp(120px, 15vw, 190px));
}
.orbit-cap.gold{ background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, var(--gold-dim)); }
.orbit-cap.cream{ background: linear-gradient(100deg, #fff, #E7E2D2 55%, #cfc9b6); }
.orbit-cap.navy{ background: linear-gradient(100deg, var(--navy-soft), var(--navy) 60%, var(--navy-deep)); border: 1px solid rgba(255,255,255,.15); }

.orbit-floor{
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: 62%; height: 28px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.4), transparent 72%);
  filter: blur(2px);
}

.orbit-hint{
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--f-mono); font-size: var(--step-1);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-navy-dim); white-space: nowrap;
  opacity: 0.85; pointer-events: none;
}
.orbit-hint svg{ width: 15px; height: 15px; animation: orbit-hint-scroll 1.8s ease-in-out infinite; }
@keyframes orbit-hint-scroll{
  0%, 100%{ transform: translateY(-3px); opacity: .6; }
  50%{ transform: translateY(3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){ .orbit-hint svg{ animation: none; } }

/* ==========================================================================
   Hero video background — 2 videos autoplay-crossfade on a timer.
   Identical behaviour on mobile and desktop: no scroll-pinning, so there's
   nothing to gate behind viewport width. Sits behind the existing .hero
   gradient+photo background, which stays as the always-safe fallback.
   ========================================================================== */
.hero-video-bg{
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-bg-video{
  position: absolute; inset: 0;
  width: 112%; height: 112%; margin: -6%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity 1.4s var(--ease);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  pointer-events: none;
}
.hero-bg-video.active{ opacity: 1; }

.hero-scrim{
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(10,32,41,.92) 0%, rgba(10,32,41,.78) 28%, rgba(10,32,41,.3) 55%, rgba(10,32,41,.4) 100%),
    linear-gradient(180deg, rgba(10,32,41,.1) 0%, rgba(10,32,41,0) 30%, rgba(10,32,41,.28) 100%);
}

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

/* capsule-diagram hosts a smaller orbit on a navy card */
.capsule-diagram .capsule-orbit{ position: absolute; inset: 0; height: 100%; }
.capsule-diagram{ position: relative; }
.capsule-diagram .orbit-cap{
  width: 128px; height: 46px; margin-left: -64px; margin-top: -23px;
  transform: translate(-50%,-50%) rotateY(var(--a, 0deg)) translateZ(112px);
}
.capsule-diagram .orbit-hint{ display: none; }

/* spec strip */
.spec-strip{
  border-top: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,32,41,0.55);
}
.spec-strip ul{
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
}
.spec-strip li{
  padding: 1.3rem clamp(1.25rem,4vw,2.5rem);
  border-left: 1px solid rgba(255,255,255,0.1);
  font-family: var(--f-mono);
}
.spec-strip li:first-child{ border-left: none; }
.spec-strip .n{ display:block; font-size: var(--step2); color: var(--gold-soft); font-weight: 500; }
.spec-strip .l{ display:block; font-size: var(--step-1); color: var(--on-navy-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2em; }
@media (max-width: 600px){
  .spec-strip ul{ grid-template-columns: repeat(2, 1fr); }
  .spec-strip li{ padding: 1rem 1.1rem; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .spec-strip li:first-child, .spec-strip li:nth-child(2){ border-top: none; }
  .spec-strip li:nth-child(odd){ border-right: 1px solid rgba(255,255,255,0.1); }
}

/* ---------- Sections generic ---------- */
.section{ padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt{ background: var(--paper-dim); }
.section-navy{ background: var(--navy); color: var(--on-navy); }
.section-head{ max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2{ font-size: var(--step3); }
.section-head .lede{ color: var(--ink-soft); font-size: var(--step1); }
.on-navy .section-head .lede{ color: var(--on-navy-dim); }

/* pillars */
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 880px){ .grid-3{ grid-template-columns: 1fr; } }

.pillar{
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pillar:hover{ transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(17,52,73,.25); border-color: transparent; }
.pillar .mark{
  width: 46px; height: 46px; border-radius: var(--radius-pill);
  background: var(--paper-dim); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; color: var(--gold-dim);
}
.pillar .mark svg{ width: 22px; height: 22px; }
.pillar h3{ font-size: var(--step1); }
.pillar p{ color: var(--ink-soft); margin-bottom: 0; }

/* services list */
.service-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.service-list li{
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--paper-line);
  font-size: var(--step0);
}
.service-list li svg{ width: 20px; height: 20px; flex: none; margin-top: 0.25em; color: var(--verified); }

/* process */
.process{ counter-reset: step; display: grid; gap: 0; }
.process-row{
  counter-increment: step;
  display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem;
  padding: 1.8rem 0; border-top: 1px solid var(--paper-line);
  align-items: baseline;
}
.process-row:last-child{ border-bottom: 1px solid var(--paper-line); }
.process-row::before{
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: var(--step1); color: var(--gold-dim);
}
.process-row h4{ font-size: var(--step1); margin-bottom: 0.3em; }
.process-row p{ color: var(--ink-soft); margin: 0; max-width: 62ch; }

/* capability split */
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 880px){ .split{ grid-template-columns: 1fr; } }
.capsule-diagram{
  aspect-ratio: 4/3; border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
}

/* real product photography, same footprint as capsule-diagram */
.photo-card{
  aspect-ratio: 4/3; border-radius: var(--radius-md);
  overflow: hidden; position: relative;
  box-shadow: 0 30px 60px -28px rgba(17,52,73,.4);
}
.photo-card img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card img[data-parallax], .video-frame video[data-parallax]{ transform: scale(1.18); will-change: transform; }
.photo-card figcaption{
  position: absolute; left: 1.1rem; bottom: 1.1rem;
  background: rgba(10,32,41,.72); backdrop-filter: blur(6px);
  color: var(--on-navy); font-family: var(--f-mono); font-size: var(--step-1);
  padding: 0.5em 0.9em; border-radius: var(--radius-pill);
}

/* full-bleed photo banner — divider strip between sections */
.photo-banner{
  position: relative; overflow: hidden;
  height: clamp(240px, 40vw, 420px);
}
.photo-banner img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.15); will-change: transform;
}
.photo-banner .scrim{
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,32,41,.82) 0%, rgba(10,32,41,.5) 40%, rgba(10,32,41,.15) 75%);
  pointer-events: none;
}
.photo-banner .banner-copy{
  position: absolute; left: 0; bottom: 0; padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--on-navy); max-width: 44ch;
}
.photo-banner .banner-copy .eyebrow{ color: var(--gold-soft); }
.photo-banner .banner-copy p{ color: var(--on-navy-dim); margin: 0; font-size: var(--step0); }

[data-tilt-scroll]{ will-change: transform; }

/* facility video section */
.video-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 780px){ .video-grid{ grid-template-columns: 1fr; } }

.video-frame{
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16/9; background: var(--navy-deep);
  box-shadow: 0 30px 60px -28px rgba(17,52,73,.45);
}
.video-frame video{ width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame .video-tag{
  position: absolute; left: 1.2rem; top: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.5em;
  background: rgba(10,32,41,.72); backdrop-filter: blur(6px);
  color: var(--on-navy); font-family: var(--f-mono); font-size: var(--step-1);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5em 0.9em; border-radius: var(--radius-pill);
  z-index: 1;
}
.video-frame .video-tag .dot{
  width: 7px; height: 7px; border-radius: 50%; background: #ff5f57;
  box-shadow: 0 0 0 3px rgba(255,95,87,.25);
}
.video-frame .video-caption{
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  color: var(--on-navy); font-size: var(--step-1);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* stats */
.stats{ display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 700px){ .stats{ grid-template-columns: 1fr; } }
.stat .n{ font-family: var(--f-display); font-size: var(--step4); color: var(--gold-soft); display: block; }
.stat .l{ font-family: var(--f-mono); font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-navy-dim); }

/* CTA band */
.cta-band{
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: var(--radius-md);
  padding: clamp(2rem,5vw,3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band h2{ color: var(--navy-deep); font-size: var(--step2); margin: 0; max-width: 20ch; }
.cta-band .btn-line{ background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }

.cta-band.has-texture{ position: relative; overflow: hidden; }
.cta-band.has-texture .texture-bg{
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.15);
  mix-blend-mode: multiply;
  opacity: 0.6;
  transform: scale(1.25); will-change: transform;
}
.cta-band.has-texture > *{ position: relative; z-index: 1; }
.cta-band .btn-line:hover{ background: var(--navy); }

/* general section texture — decorative pill/capsule imagery behind a section,
   never claiming to be Caspian's own product line, purely visual variety */
.section-textured{ position: relative; overflow: hidden; }
.section-textured .texture-bg{
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.15); will-change: transform;
}
.section-textured > .wrap{ position: relative; z-index: 1; }
.section-textured.on-light .texture-bg{
  filter: grayscale(1) contrast(1.05) brightness(1.2);
  mix-blend-mode: multiply;
  opacity: 0.14;
}
.section-textured.on-dark .texture-bg{
  opacity: 0.16;
}
.section-textured.on-dark::before{
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(10,32,41,.75), rgba(10,32,41,.9));
}

/* ---------- Product catalog ---------- */
.catalog-tools{
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 2rem; position: sticky; top: 84px; z-index: 10;
  background: var(--paper); padding: 1rem 0; border-bottom: 1px solid var(--paper-line);
}
.search-field{
  flex: 1 1 280px; position: relative;
}
.search-field input{
  width: 100%; padding: 0.85em 1.3em 0.85em 2.8em;
  border-radius: var(--radius-pill); border: 1.5px solid var(--paper-line);
  background: var(--card); font-family: var(--f-body); font-size: var(--step0); color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.search-field input:focus{ border-color: var(--gold); box-shadow: 0 0 0 4px rgba(215,161,26,.15); outline: none; }
.search-field svg{ position: absolute; left: 1em; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-faint); }
.result-count{ font-family: var(--f-mono); font-size: var(--step-1); color: var(--ink-soft); white-space: nowrap; }

.cat-chips{ display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cat-chip{
  font-family: var(--f-mono); font-size: var(--step-1);
  padding: 0.5em 1.1em; border-radius: var(--radius-pill);
  border: 1.5px solid var(--paper-line); background: var(--card); color: var(--ink-soft);
  cursor: pointer; transition: all .25s ease;
}
.cat-chip:hover{ border-color: var(--gold); color: var(--navy); }
.cat-chip.active{ background: var(--navy); border-color: var(--navy); color: #fff; }

.cat-group{ margin-bottom: 3rem; scroll-margin-top: 150px; }
.cat-group h3{
  display: flex; align-items: center; gap: 0.8em;
  font-size: var(--step1); padding-bottom: 0.7em; border-bottom: 2px solid var(--navy);
  margin-bottom: 1.2rem;
}
.cat-group h3 .count{
  font-family: var(--f-mono); font-size: var(--step-1); font-weight: 400;
  color: var(--gold-dim); background: var(--paper-dim); padding: 0.2em 0.7em; border-radius: var(--radius-pill);
}
.product-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(212px,1fr)); gap: 1rem; }
.product-card{
  display: flex; flex-direction: column; align-items: stretch; gap: 0; text-align: left;
  background: var(--card); border: 1px solid var(--paper-line); border-radius: var(--radius-md);
  padding: 0; overflow: hidden;
  transition: border-color .25s ease, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover{ border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card .thumb{
  width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; overflow: hidden;
  background: #f2efe8; border: none; padding: 0; cursor: pointer;
  position: relative; display: block;
}
.product-card .thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.product-card .thumb:hover img{ transform: scale(1.06); }
.product-card .thumb::after{
  content: "\2795"; /* subtle zoom hint */
  position: absolute; right: .55rem; bottom: .55rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(10,32,41,.7); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.product-card .thumb:hover::after{ opacity: 1; transform: scale(1); }
.product-card span{ font-size: var(--step-1); line-height: 1.35; color: var(--ink); font-weight: 600; padding: .75rem .9rem 1rem; }
@media (max-width: 520px){ .product-grid{ grid-template-columns: repeat(2, 1fr); gap: .7rem; } .product-card span{ padding: .55rem .65rem .8rem; } }
.no-results{ display:none; padding: 3rem 0; text-align: center; color: var(--ink-soft); font-family: var(--f-mono); }

/* leadership / team */
.team-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; margin-top: 2.2rem; }
.team-card{
  background: var(--card); border: 1px solid var(--paper-line); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.team-photo{ aspect-ratio: 4 / 3; overflow: hidden; background: #e9e6df; }
.team-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.team-body{ padding: 1.4rem 1.5rem 1.6rem; }
.team-role{ margin: 0 0 .25em; font-size: var(--step-1); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-dim); }
.team-body h3{ margin: 0 0 .55em; font-size: var(--step2); color: var(--navy); }
.team-body p:last-child{ margin: 0; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 600px){ .team-photo{ aspect-ratio: 3 / 2; } }

/* dosage-form chips */
.form-chips{ list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; padding: 0; }
.form-chips li{
  font-size: var(--step-1); font-weight: 600; color: var(--navy);
  background: rgba(215,161,26,.12); border: 1px solid rgba(215,161,26,.38);
  border-radius: 999px; padding: .42em .95em;
}

/* key documents band (on every page) */
.docs-band{
  background: linear-gradient(180deg, rgba(215,161,26,.07), rgba(215,161,26,.02));
  border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line);
}
.docs-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; margin-top: 2.2rem;
}
.doc-card{
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--paper-line); border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s ease;
}
.doc-card::before{ content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.doc-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.doc-ic{
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(215,161,26,.14); color: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
}
.doc-ic svg{ width: 24px; height: 24px; }
.doc-meta{ flex: 1; min-width: 0; }
.doc-title{ display: block; font-weight: 700; color: var(--navy); font-size: var(--step0); line-height: 1.2; }
.doc-sub{ display: block; font-size: var(--step-1); color: var(--ink-soft); margin-top: .2em; }
.doc-dl{ flex: none; color: var(--gold-dim); display: flex; align-items: center; }
.doc-dl svg{ width: 22px; height: 22px; }
.doc-card:hover .doc-dl{ color: var(--navy); transform: translateY(2px); transition: transform .3s var(--ease); }

/* inside-the-facility machine gallery */
.facility-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 2.2rem;
}
.facility-card{
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius-md); border: 1px solid var(--paper-line);
  background: #0a2029; box-shadow: var(--shadow-md);
}
.facility-card img{
  width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.facility-card:hover img{ transform: scale(1.05); }
.facility-card figcaption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .95rem .85rem;
  background: linear-gradient(to top, rgba(6,22,30,.92), rgba(6,22,30,.55) 55%, rgba(6,22,30,0));
  color: #fff;
}
.fc-name{ display: block; font-weight: 700; font-size: var(--step0); line-height: 1.2; }
.fc-sub{ display: block; font-size: var(--step-1); color: rgba(255,255,255,.82); margin-top: .2em; }
@media (max-width: 520px){ .facility-grid{ grid-template-columns: repeat(2, 1fr); gap: .6rem; } }

/* full product-list PDF search */
.pdf-search{ position: relative; z-index: 40; max-width: 760px; margin: 2rem auto 0; }
.pdf-search-field{
  display: flex; align-items: center; gap: .7rem;
  background: var(--card); border: 1px solid var(--paper-line);
  border-radius: 999px; padding: .55rem 1.1rem;
  box-shadow: var(--shadow-sm); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.pdf-search-field:focus-within{ border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,161,26,.15); }
.pdf-search-field svg{ width: 20px; height: 20px; color: var(--ink-soft); flex: none; }
.pdf-search-field input{
  flex: 1; border: none; background: none; outline: none;
  font: inherit; font-size: var(--step0); color: var(--ink); padding: .35rem 0;
}
.pdf-clear{
  border: none; background: none; cursor: pointer; font-size: 22px; line-height: 1;
  color: var(--ink-soft); padding: 0 .2rem; flex: none;
}
.pdf-clear:hover{ color: var(--navy); }
.pdf-suggest{
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + .5rem);
  list-style: none; margin: 0; padding: .4rem;
  background: var(--card); border: 1px solid var(--paper-line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  max-height: 340px; overflow-y: auto;
}
.pdf-suggest li{
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: .2rem 1rem; padding: .6rem .8rem; border-radius: 8px; cursor: pointer;
}
.pdf-suggest li:hover, .pdf-suggest li.active{ background: var(--paper); }
.pdf-suggest .ps-name{ font-weight: 600; color: var(--navy); font-size: var(--step0); }
.pdf-suggest .ps-cat{ grid-column: 1; font-size: var(--step-1); color: var(--ink-soft); }
.pdf-suggest .ps-page{
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-family: var(--f-mono); font-size: var(--step-1); color: var(--gold-dim);
  background: rgba(215,161,26,.12); padding: .2em .6em; border-radius: 999px; white-space: nowrap;
}
.pdf-jumpnote{ text-align: center; margin: 1rem 0 0; font-size: var(--step-1); color: var(--verified); min-height: 1.2em; }
/* highlightable PDF.js viewer */
.pdf-viewer{
  position: relative; z-index: 1; margin-top: 1.4rem;
  border: 1px solid var(--paper-line); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-md); background: var(--card);
}
.pdf-toolbar{ display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--navy-deep); color: #fff; }
.pdf-nav{
  width: 34px; height: 34px; border-radius: 8px; border: none; flex: none;
  background: rgba(255,255,255,.15); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .2s ease;
}
.pdf-nav:hover{ background: rgba(255,255,255,.3); }
.pdf-nav:disabled{ opacity: .4; cursor: default; }
.pdf-pageinfo{ font-family: var(--f-mono); font-size: var(--step-1); min-width: 118px; text-align: center; }
.pdf-hits{ font-size: var(--step-1); color: var(--gold); font-family: var(--f-mono); }
.pdf-open{ margin-left: auto; color: #fff; font-size: var(--step-1); text-decoration: underline; white-space: nowrap; }
.pdf-stage{ position: relative; height: min(78vh, 780px); overflow: auto; background: #e9e6df; }
.pdf-canvas-wrap{ position: relative; margin: 1rem auto; }
.pdf-canvas-wrap canvas{ display: block; box-shadow: var(--shadow-md); background: #fff; }
.pdf-hl{ position: absolute; inset: 0; pointer-events: none; }
.pdf-hl .hl{ position: absolute; background: rgba(215,161,26,.38); border-radius: 2px; }
.pdf-hl .hl.primary{ background: rgba(215,161,26,.5); box-shadow: 0 0 0 2px rgba(215,161,26,.85); }
.pdf-loading{ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); color: var(--ink-soft); background: #e9e6df; }
.pdf-loading[hidden]{ display: none; }

/* illustrated brochure embed (browse) */
.brochure-embed{ margin-top: 2.2rem; }
.brochure-label{ margin: 0 0 .8rem; font-size: var(--step0); color: var(--ink); }
.brochure-label .eyebrow{ display: block; margin-bottom: .2em; }
.pdf-frame{
  border: 1px solid var(--paper-line); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-md); background: #f2efe8;
  height: min(72vh, 720px);
}
.pdf-frame iframe{ width: 100%; height: 100%; border: 0; display: block; }
.pdf-fallback{ text-align: center; margin: .9rem 0 0; font-size: var(--step-1); color: var(--ink-soft); }
.pdf-fallback a{ color: var(--navy); font-weight: 600; text-decoration: underline; }
@media (max-width: 600px){ .pdf-stage{ height: 70vh; } .pdf-open{ display: none; } .pdf-frame{ height: 64vh; } }

/* branded product showcase */
.brand-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 2.2rem;
}
.brand-card{
  display: flex; flex-direction: column; text-align: left;
  border: 1px solid var(--paper-line); border-radius: var(--radius-md);
  background: var(--card); overflow: hidden; cursor: pointer; padding: 0;
  font: inherit; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.brand-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.brand-card:focus-visible{ outline: 2px solid var(--gold); outline-offset: 2px; }
.brand-card .brand-img{
  position: relative; display: block;
  aspect-ratio: 1 / 1; overflow: hidden; background: #f2efe8;
}
.brand-card .brand-img img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.brand-card:hover .brand-img img{ transform: scale(1.05); }
.brand-card .brand-img::after{
  content: "\2795"; position: absolute; right: .6rem; bottom: .6rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(10,32,41,.72); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; opacity: 0; transform: scale(.8);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.brand-card:hover .brand-img::after{ opacity: 1; transform: scale(1); }
.brand-meta{ display: block; padding: .85rem 1rem 1.05rem; }
.brand-name{ display: block; font-size: var(--step0); font-weight: 700; color: var(--navy); line-height: 1.25; }
.brand-sub{ display: block; font-size: var(--step-1); color: var(--ink-soft); margin-top: .25em; line-height: 1.35; }
@media (max-width: 520px){
  .brand-grid{ grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .brand-meta{ padding: .6rem .7rem .8rem; }
}

/* product image lightbox */
.lightbox{
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,32,41,.92);
  display: none; align-items: center; justify-content: center;
  padding: 2rem; overflow-y: auto;
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.open{ display: flex; opacity: 1; }
.lightbox-inner{
  position: relative; max-width: min(640px, 90vw); width: 100%;
  max-height: calc(100vh - 4rem); margin: auto;
  background: var(--card); border-radius: var(--radius-md); overflow: hidden;
  transform: scale(0.96); transition: transform .25s var(--ease);
}
.lightbox.open .lightbox-inner{ transform: scale(1); }
.lightbox-inner img{ width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; display: block; background: #fff; }
.lightbox-caption{
  padding: 1.2rem 1.4rem; font-size: var(--step0); color: var(--navy); font-weight: 600;
}
.lightbox-close{
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(10,32,41,.7); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover{ background: var(--navy-deep); }

/* ---------- Contact ---------- */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
@media (max-width: 880px){ .contact-grid{ grid-template-columns: 1fr; } }
.info-row{ display: flex; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--paper-line); }
.info-row .mark{ width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--paper-dim); display:flex; align-items:center; justify-content:center; flex: none; color: var(--gold-dim); }
.info-row .mark svg{ width: 18px; height: 18px; }
.info-row h4{ font-size: var(--step0); margin-bottom: 0.2em; font-family: var(--f-body); font-weight: 600; }
.info-row a, .info-row p{ color: var(--ink-soft); margin: 0; font-size: var(--step-1); }
.info-row a:hover{ color: var(--gold-dim); }

.social-row{ display:flex; gap: 0.7rem; margin-top: 1.5rem; }
.social-row a{
  width: 42px; height: 42px; border-radius: var(--radius-pill); border: 1.5px solid var(--paper-line);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  transition: all .25s ease;
}
.social-row a:hover{ background: var(--navy); border-color: var(--navy); color: #fff; }
.social-row svg{ width: 18px; height: 18px; }

form.card-form{
  background: var(--card); border: 1px solid var(--paper-line); border-radius: var(--radius-md);
  padding: clamp(1.5rem,4vw,2.5rem); display: grid; gap: 1.1rem;
}
.field{ display: grid; gap: 0.4em; }
.field label{ font-size: var(--step-1); font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select{
  font-family: var(--f-body); font-size: var(--step0); padding: 0.85em 1em;
  border-radius: 10px; border: 1.5px solid var(--paper-line); background: var(--paper);
  resize: vertical; transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--gold); box-shadow: 0 0 0 4px rgba(215,161,26,.15); outline: none; }
.field input[type="file"]{ padding: 0.6em 1em; font-size: var(--step-1); color: var(--ink-soft); }
.file-hint{ font-size: var(--step-1); color: var(--ink-soft); margin: -0.2em 0 0; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px){ .field-row{ grid-template-columns: 1fr; } }

.map-frame{ border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--paper-line); margin-top: 2rem; height: 280px; }
.map-frame iframe{ width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-deep); color: var(--on-navy-dim); padding: clamp(3rem,6vw,4.5rem) 0 0; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 880px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h5{ font-family: var(--f-mono); font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-soft); margin-bottom: 1.1em; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:grid; gap:0.7em; }
.footer-grid a:hover{ color: #fff; }
.footer-grid p{ color: var(--on-navy-dim); font-size: var(--step-1); max-width: 34ch; }
.footer-brand img{ height: 30px; margin-bottom: 1rem; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--step-1); color: var(--on-navy-dim);
}
.footer-bottom a:hover{ color: var(--gold-soft); }

/* ---------- Reveal animation hook (JS toggles .in) ---------- */
[data-reveal]{ opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in{ opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > *{ opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal-stagger].in > *{ opacity: 1; transform: translateY(0); }

/* WhatsApp float */
.wa-float{
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
  transition: transform .3s var(--ease);
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width: 26px; height: 26px; fill: #fff; }

/* page hero (inner pages) */
.page-hero{
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy); padding: clamp(3rem,7vw,5rem) 0 clamp(2.5rem,5vw,3.5rem);
}
.page-hero h1{ color: #fff; font-size: var(--step3); max-width: 20ch; }
.page-hero .lede{ color: var(--on-navy-dim); font-size: var(--step1); max-width: 60ch; }
.breadcrumb{ font-family: var(--f-mono); font-size: var(--step-1); color: var(--gold-soft); margin-bottom: 1em; text-transform: uppercase; letter-spacing: .08em; }

/* Product photo ticker (products page) */
.photo-ticker-section{
  overflow: hidden; background: var(--paper);
  border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line);
  padding: 0.9rem 0;
}
.ticker-track{
  display: flex; width: max-content;
  animation: ticker-scroll 100s linear infinite;
}
.photo-ticker-section:hover .ticker-track{ animation-play-state: paused; }
.ticker-track ul{
  display: flex; gap: 14px; list-style: none;
  margin: 0; padding: 0 14px;
}
.ticker-track img{
  display: block; width: auto; height: clamp(150px, 24vw, 200px);
  filter: drop-shadow(0 6px 14px rgba(20, 24, 35, 0.18));
}
@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation: none; }
  .photo-ticker-section{ overflow-x: auto; }
}

/* YouTube video facade (home page capabilities section) */
.video-card{
  aspect-ratio: 16/9; border-radius: var(--radius-md);
  overflow: hidden; position: relative;
  box-shadow: 0 30px 60px -28px rgba(17,52,73,.4);
  background: var(--navy-deep);
}
.video-facade{
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.video-facade img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.video-facade:hover img{ transform: scale(1.04); }
.video-facade .play-badge{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 7vw, 74px); height: clamp(56px, 7vw, 74px);
  border-radius: 999px; display: grid; place-items: center;
  background: rgba(10,32,41,.82); color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(10,32,41,.45);
  transition: background .25s ease, transform .25s ease;
}
.video-facade .play-badge svg{ width: 44%; height: 44%; margin-left: 7%; }
.video-facade:hover .play-badge{ background: var(--gold-soft); transform: translate(-50%, -50%) scale(1.07); }
.video-card .video-frame-iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption{
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 1;
  background: rgba(10,32,41,.72); backdrop-filter: blur(6px);
  color: var(--on-navy); font-family: var(--f-mono); font-size: var(--step-1);
  padding: 0.5em 0.9em; border-radius: var(--radius-pill);
}
.video-card .video-frame-iframe ~ figcaption{ display: none; }
