/* ============================================================
   Ayu Pulz — design tokens
   ============================================================ */
:root{
  --ink: #102419;          /* deep forest-pine, primary dark text & panels */
  --ink-soft: #193826;     /* deep pine */
  --violet: #27a86c;       /* brand primary emerald green */
  --violet-light: #a7f3d0; /* soft mint */
  --pulse: #27a86c;        /* brand vibrant green — unified accent */
  --pulse-dim: #1e8754;    /* deeper rich emerald green */
  --coral: #FF6F5E;        /* warm accent, used sparingly */
  --paper: #FFFFFF;
  --mist: #f3f8f5;         /* pale herbal sage mist background */
  --mist-line: #dfece3;    /* subtle herbal sage border */
  --slate: #233b2c;        /* dark forest-slate body text */
  --slate-soft: #536b5c;   /* muted sage secondary text */
  --hero-bg: #d5eed9;      /* editorial hero canvas — soft sage green */

  --display: 'Barlow Condensed', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1200px;
  --radius: 14px;
}

*{ box-sizing: border-box; }
html{ /* scroll-behavior: smooth; removed for JS smooth scrolling */ }

body{
  margin:0;
  font-family: var(--body);
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }

h1,h2,h3,h4{
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 400;
}

p{ margin: 0 0 1em; color: var(--slate-soft); line-height: 1.65; }

a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow{
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pulse-dim);
  font-weight: 500;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px;
  border-radius:50%;
  background: var(--pulse);
  box-shadow: 0 0 0 4px rgba(39,168,108,0.2);
}
.on-dark .eyebrow{ color: var(--pulse); }

.section{
  padding: 108px 0;
  scroll-margin-top: 80px;
}
.section-head{
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2{
  font-size: clamp(28px, 3.6vw, 40px);
}
.section-head p{ font-size: 17px; margin-bottom:0; }
.section--mist{ background: var(--mist); }

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--pulse);
  color: #fff;
}
.btn--primary:hover{
  box-shadow: 0 10px 24px -8px rgba(39,168,108,0.55);
  transform: translateY(-1px);
}

.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn--ghost:hover{ border-color: rgba(255,255,255,0.6); }

.btn--dark{
  background: var(--pulse-dim);
  color: #fff;
}
.btn--dark:hover{ box-shadow: 0 10px 24px -8px rgba(39,168,108,0.45); transform: translateY(-1px); }

/* ============================================================
   Nav
   ============================================================ */
.nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  padding: 18px 0;
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav.is-scrolled{
  background: rgba(16,36,25,0.88);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 6px 24px -12px rgba(0,0,0,0.4);
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}
.brand img{
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 34px;
  list-style:none;
  margin:0; padding:0;
}
.nav-links a{
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover{ color: #fff; }

.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width: 34px; height:34px;
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{
  content:"";
  position:absolute; left:7px; right:7px; height:2px;
  background:#1a1a1a; border-radius:2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle::before{ top:11px; }
.nav-toggle span{ top:17px; }
.nav-toggle::after{ top:23px; }
.nav-toggle.is-open::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open::after{ transform: translateY(-6px) rotate(-45deg); }
.nav-toggle.is-open span{ opacity:0; }

/* ============================================================
   Editorial Nav (overlaid on editorial hero)
   ============================================================ */
.nav--editorial{
  background: transparent;
  padding: 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .25s ease, box-shadow .25s ease;
}
.nav--editorial.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 0;
}
.nav-editorial-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  width: 100%;
  box-sizing: border-box;
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.nav-editorial-left,
.nav-editorial-right{
  display: flex;
  align-items: center;
}
.nav-ed-link{
  font-family: 'Barlow Condensed', var(--display), sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  text-decoration: none;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-ed-link:hover{ color: #000; }
.nav-ed-link--active{
  border-bottom: 2px solid #27a86c;
  padding-bottom: 1px;
}
.nav-ed-logo{
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-ed-logo img{
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: opacity .15s ease;
}
.nav-ed-logo:hover img{ opacity: 0.75; }
.nav-ed-sep{
  color: rgba(0,0,0,0.3);
  margin: 0 10px;
  font-size: 12px;
}
.nav-mobile-bar{ display: none; }
.nav-links--mobile{ display: none; }
.nav--editorial.is-scrolled .nav-editorial-inner{
  background: transparent;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 4px 24px -8px rgba(0,0,0,0.14);
  padding: 14px 40px;
}

/* ============================================================
   Hero — editorial layout (NESH-style replica)
   ============================================================ */
@keyframes heroFlyUp {
  0% { transform: translate(-50%, 100%); opacity: 0; }
  100% { transform: translate(-50%, 24%); opacity: 1; }
}
@keyframes heroFadeUpCenter {
  0% { transform: translateX(-50%) translateY(30px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}
@keyframes heroFadeUpNormal {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes floatBobNormal {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.hero-ed{
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--hero-bg);
  overflow: hidden;
}

/* Giant wordmark — pinned to the top of the hero */
.hero-ed__wordmark{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 24%);
  font-family: 'Barlow Condensed', 'Sora', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: clamp(160px, 22vw, 280px);
  line-height: 0.88;
  color: #27a86c;
  letter-spacing: -0.02em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  text-align: center;
  width: 100%;
  
  /* Fix for Safari/WebKit font switching during animations */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  
  opacity: 0;
  animation: heroFlyUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes letterIdleFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* Individual letter hover effects */
.hero-ed__wordmark span {
  display: inline-block;
  pointer-events: auto; /* re-enable pointer events for the letters themselves */
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease, text-shadow 0.25s ease;
  will-change: transform, translate;
  animation: letterIdleFloat 4s ease-in-out infinite;
}
.hero-ed__wordmark span:nth-child(1) { animation-delay: 0s; }
.hero-ed__wordmark span:nth-child(2) { animation-delay: -0.2s; }
.hero-ed__wordmark span:nth-child(3) { animation-delay: -0.4s; }
.hero-ed__wordmark span:nth-child(4) { animation-delay: -0.6s; }
.hero-ed__wordmark span:nth-child(5) { animation-delay: -0.8s; }
.hero-ed__wordmark span:nth-child(6) { animation-delay: -1.0s; }
.hero-ed__wordmark span:nth-child(7) { animation-delay: -1.2s; }
.hero-ed__wordmark span:nth-child(8) { animation-delay: -1.4s; }

.hero-ed__wordmark span:hover {
  transform: translateY(-24px) scale(1.05);
  color: #52d68f; /* brighter vibrant green on hover */
  text-shadow: 0 14px 24px rgba(39, 168, 108, 0.35);
  cursor: default;
}

/* Center photo layered above wordmark */
.hero-ed__photo{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(750px, 54vw, 1050px);
  z-index: 2;
  pointer-events: none;
  
  opacity: 0;
  animation: heroFadeUpCenter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
.hero-ed__photo img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Tagline above wordmark — centered */
.hero-ed__intro{
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: #2a2a2a;
  line-height: 1.55;
  white-space: nowrap;
  text-align: center;
  
  opacity: 0;
  animation: heroFadeUpCenter 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* Stat card — Liquid Glass */
.hero-ed__stat-card{
  background: rgba(39,168,108,0.07);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 22px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 185px;
  box-shadow: none;
  border: none;
  transition: transform .22s ease;
  position: absolute;
  z-index: 10;
  will-change: transform;
  
  opacity: 0;
  animation: heroFadeUpNormal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards, floatBobNormal 8s ease-in-out 1.9s infinite;
}
.hero-ed__stat-card:hover{
  transform: translateY(-3px) scale(1.02);
}

/* Card 1 — Connected Modules (left side) */
.hero-ed__stat-card--1{
  left: 120px;
  top: 50%;
}

/* Card 2 — Years of Experience (more to the right) */
.hero-ed__stat-card--2{
  left: 220px;
  top: 63%;
}
.hero-ed__stat-icon{
  background: #27a86c;
  border-radius: 12px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.hero-ed__stat-num{
  font-family: 'Barlow Condensed', var(--display), sans-serif;
  font-weight: 900;
  font-size: 33px;
  line-height: 1;
  color: #111;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
.hero-ed__stat-label{
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(30,30,30,0.75);
  line-height: 1.35;
  margin-top: 3px;
}

/* Center copy — headline + buttons, sits at hero base */
.hero-ed__copy{
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  width: clamp(260px, 30%, 400px);
  
  opacity: 0;
  animation: heroFadeUpCenter 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}
.hero-ed__headline{
  font-family: 'Barlow Condensed', var(--display), sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 5.5vw, 66px);
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.2);
  
  /* Fix for Safari/WebKit font switching during animations */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}
.hero-ed__ctas{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-ed__btn-primary{
  background: #27a86c;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-ed__btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(39,168,108,0.55);
}
.hero-ed__btn-secondary{
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  transition: background .18s ease, border-color .18s ease;
}
.hero-ed__btn-secondary:hover{
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.7);
}

/* Right tags column */
@keyframes heroFadeUpTags {
  0% { transform: translateY(34%); opacity: 0; }
  100% { transform: translateY(4%); opacity: 1; }
}
@keyframes floatBobTags {
  0% { transform: translate3d(0, 4%, 0); }
  50% { transform: translate3d(0, calc(4% - 12px), 0); }
  100% { transform: translate3d(0, 4%, 0); }
}

.hero-ed__tags-col{
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(4%);
  z-index: 10;
  max-width: 210px;
  will-change: transform;
  
  opacity: 0;
  animation: heroFadeUpTags 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards, floatBobTags 8.5s ease-in-out 1.9s infinite;
}
.hero-ed__tags{
  list-style: none;
  margin: 0 0 18px -85px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-ed__tags li{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
}
.hero-ed__tag-icon{
  color: #27a86c;
  font-size: 13px;
  flex-shrink: 0;
}
.hero-ed__desc{
  font-size: 13.5px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ============================================================
   About / benefits
   ============================================================ */
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-copy .eyebrow{ }
.about-copy h2{ font-size: clamp(26px,3.4vw,36px); }

.benefit-list{
  list-style:none;
  margin: 28px 0 0;
  padding:0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.benefit-list li{
  display:flex;
  align-items:flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mist-line);
}
.benefit-list li:nth-last-child(-n+2){ border-bottom:none; }
.benefit-list .ic{
  flex: none;
  width: 36px; height:36px;
  border-radius: 10px;
  background: var(--mist);
  display:flex; align-items:center; justify-content:center;
  color: var(--pulse-dim);
}
.benefit-list b{ color: var(--ink); font-size: 15.5px; display:block; }
.benefit-list small{ color: var(--slate-soft); font-size: 13.5px; }

.about-panel{
  background: var(--ink);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 30px 60px -30px rgba(16,36,25,0.45);
}
.about-panel img{ border-radius: 14px; }
.about-illustration svg{ display:block; width:100%; height:auto; border-radius:14px; }
.about-caption{
  margin: 16px 4px 0;
  font-size: 13.5px;
  color: var(--slate-soft);
}
.about-caption strong{ color: var(--ink); font-weight: 600; }

/* ============================================================
   Feature spotlights (alternating rows)
   ============================================================ */
.spotlight{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items:center;
  padding: 64px 0;
}
.spotlight + .spotlight{ border-top: 1px solid var(--mist-line); }
.spotlight.reverse .spotlight-media{ order: 2; }
.spotlight.reverse .spotlight-copy{ order: 1; }

.spotlight-copy h2{ font-size: clamp(32px, 3.5vw, 40px); }
.spotlight-copy h3{ font-size: clamp(22px,2.6vw,28px); }
.feature-points{
  list-style:none; margin: 22px 0 0; padding:0;
  display:flex; flex-direction:column; gap:14px;
}
.feature-points li{
  display:flex; gap:12px; align-items:flex-start;
  font-size: 15px; color: var(--slate);
}
.feature-points b{ color: var(--ink); }
.feature-points .mark{
  flex:none; width:20px; height:20px; margin-top:2px;
  border-radius:50%;
  background: rgba(39,168,108,0.16);
  display:flex; align-items:center; justify-content:center;
}
.feature-points .mark svg{ width:11px; height:11px; }

.spotlight-media{
  position: relative;
}
@keyframes tabletIdleFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.media-frame{
  background: var(--ink);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 40px 70px -36px rgba(16,36,25,0.45);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  animation: tabletIdleFloat 6s ease-in-out infinite;
  will-change: transform, translate;
}
.media-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 50px 85px -30px rgba(39,168,108,0.45);
}
.media-frame img{ border-radius: 11px; }
.media-frame.duo{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.media-frame.duo img{ height:100%; object-fit:cover; }

/* ============================================================
   More features grid
   ============================================================ */
.grid-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card{
  background: var(--paper);
  border: 1px solid var(--mist-line);
  border-radius: var(--radius);
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 46px -28px rgba(16,36,25,0.25);
  border-color: transparent;
}
.card-media{ aspect-ratio: 16/10; overflow:hidden; background:var(--mist); }
.card-media img{ width:100%; height:100%; object-fit:cover; object-position: top; }
.card-body{ padding: 22px 22px 26px; }
.card-body .tag{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pulse-dim);
}
.card-body h4{ font-size: 17.5px; margin: 8px 0 8px; }
.card-body p{ font-size: 14.5px; margin:0; }

/* ============================================================
   Logo Carousel
   ============================================================ */
.logo-carousel-section {
  background: #FFFFFF;
  padding: 120px 0 150px;
  overflow: hidden;
  position: relative;
  /* Centers the expanded section vertically in the viewport */
  scroll-margin-top: calc(50vh - 280px);
}
.logo-carousel-title {
  text-align: center;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--slate-soft);
  text-transform: uppercase;
  margin-bottom: 70px;
}
.logo-carousel-container {
  display: flex;
  overflow: hidden;
  gap: 200px;
  padding: 60px 0;
  margin: -60px 0;
  /* Soft fade on edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-carousel-container:has(.carousel-item:hover) .logo-track {
  animation-play-state: paused;
}
.logo-track {
  display: flex;
  gap: 200px;
  align-items: center;
  flex-shrink: 0;
  width: max-content;
  animation: scroll-left 60s linear infinite;
}
.carousel-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.carousel-item img {
  height: 160px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.carousel-item:hover img {
  transform: scale(1.05);
}
.carousel-item:hover {
  z-index: 10;
}
.carousel-tooltip {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  z-index: 100;
}
.carousel-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: var(--ink) transparent transparent transparent;
}
.carousel-item:hover .carousel-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.logo-track .carousel-logo[src*="client-2"] {
  height: 200px;
}
.logo-track .carousel-logo:hover {
  transform: scale(1.05);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 120px)); }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-info h2{ font-size: clamp(26px,3.2vw,34px); }
.contact-list{ list-style:none; margin: 26px 0 0; padding:0; display:flex; flex-direction:column; gap:18px; }
.contact-list li{ display:flex; gap:14px; align-items:flex-start; font-size:15px; }
.contact-list .ic{
  flex:none; width:34px; height:34px; border-radius:9px;
  background: var(--mist); display:flex; align-items:center; justify-content:center;
  color: var(--pulse-dim);
}
.contact-list b{ display:block; color: var(--ink); font-size:14.5px; margin-bottom:2px; }
.contact-list span{ color: var(--slate-soft); font-size: 13.8px; line-height:1.5; }
.contact-list a{ color: var(--slate-soft); text-decoration: underline; text-decoration-color: var(--mist-line); text-underline-offset: 2px; }
.contact-list a:hover{ color: var(--pulse-dim); }

.social-row{
  display:flex; gap:12px; margin-top: 28px;
}
.social-row a{
  width: 38px; height:38px; border-radius:50%;
  background: var(--mist);
  color: var(--ink);
  display:flex; align-items:center; justify-content:center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.social-row a:hover{ background: var(--pulse); color: #fff; transform: translateY(-2px); }

.form-card{
  background: var(--mist);
  border-radius: 20px;
  padding: 36px;
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-bottom:16px; }
.field{ display:flex; flex-direction:column; gap:7px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size: 13px; font-weight:600; color: var(--ink); }
.field input, .field textarea, .field select{
  font-family: var(--body);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--mist-line);
  background: #fff;
  color: var(--slate);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color: var(--pulse);
  box-shadow: 0 0 0 3px rgba(39,168,108,0.2);
}
.field textarea{ resize: vertical; min-height: 96px; font-family: var(--body); }
.form-note{ font-size: 12.5px; color: var(--slate-soft); margin-top: 14px; }
.form-success{
  display:none;
  align-items:center; gap:10px;
  background: rgba(39,168,108,0.12);
  color: var(--pulse-dim);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}
.form-success.is-visible{ display:flex; }
.form-error{
  display:none;
  background: rgba(255,111,94,0.12);
  color: #C4432F;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}
.form-error.is-visible{ display:block; }

/* ============================================================
   Footer
   ============================================================ */
footer{
  background: #ffffff;
  border-top: 1px solid var(--mist-line);
  color: var(--slate);
  padding: 56px 0 28px;
  margin-top: 108px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--mist-line);
}
.footer-brand{ max-width: 320px; }
.footer-brand .brand{
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-brand p{
  color: var(--slate-soft);
  font-size: 14px;
  line-height: 1.6;
}
.footer-cols{ display:flex; gap: 64px; flex-wrap:wrap; }
.footer-col b{
  display:block;
  color: var(--pulse-dim);
  font-size: 13.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-col a{
  font-size: 14px;
  color: var(--slate);
  transition: color .15s ease;
}
.footer-col a:hover{ color: var(--pulse); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--slate-soft);
}
.footer-bottom span:last-child{
  color: var(--pulse-dim);
  font-weight: 500;
}
.footer-legal {
  display: flex; gap: 24px; align-items: center;
}
.footer-legal a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-legal a:hover {
  color: var(--pulse);
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .pulse-track{ animation:none; transform:none; }
  .pulse-dot{ animation:none; opacity:1; }
  .hero-illustration-frame{ animation:none !important; }
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .about-grid{ grid-template-columns:1fr; }
  .spotlight{ grid-template-columns:1fr; gap:36px; }
  .spotlight.reverse .spotlight-media{ order:1; }
  .spotlight.reverse .spotlight-copy{ order:2; }
  .grid-cards{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
  /* Editorial hero tablet tweaks */
  .hero-ed__stat-card--1{ left: 22px; }
  .hero-ed__tags-col{ right: 22px; max-width: 170px; }
  .hero-ed__headline{ font-size: clamp(32px, 5vw, 54px); }
  .hero-ed__photo{ width: clamp(580px, 74vw, 840px); }
}

@media (max-width: 720px){
  .wrap{ padding: 0 22px; }
  .section{ padding: 76px 0; }
  .benefit-list{ grid-template-columns: 1fr; }
  .benefit-list li{ border-bottom: 1px solid var(--mist-line); }
  .benefit-list li:last-child{ border-bottom:none; }
  .grid-cards{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .cta-band{ margin:0 16px; padding: 52px 26px; }
  .footer-top{ flex-direction:column; }

  /* Editorial hero mobile */
  .nav-editorial-inner{ display: none; }
  .nav-mobile-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  }
  .nav--editorial.is-scrolled .nav-mobile-bar {
    background: transparent;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 4px 24px -8px rgba(0,0,0,0.14);
  }
  .nav-mobile-bar .brand{ color: #1a1a1a; }
  .nav-mobile-bar .brand img{ background: transparent; filter: none; }
  .nav-toggle{ display: flex; align-items: center; justify-content: center; }
  .nav--editorial.is-open .nav-links--mobile{
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    padding: 20px 22px 26px;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 24px 34px -14px rgba(0,0,0,0.15);
  }
  .nav-links--mobile a{ color: #1a1a1a; font-size: 15px; font-weight: 600; }
  .hero-ed__stat-card,
  .hero-ed__tags-col{ display: none; }
  .hero-ed__intro{ top: 170px; }
  .hero-ed__copy{ bottom: 60px; top: auto; width: 100%; left: 50%; transform: translateX(-50%); text-align: center; }
  .hero-ed__headline{ font-size: clamp(32px, 9vw, 48px); }
  .hero-ed__wordmark{ font-size: clamp(72px, 22vw, 140px); top: 180px; }
  .hero-ed__wordmark span{ pointer-events: none; } /* prevent swipe blocking */
  .hero-ed__photo{ width: 125%; max-width: 560px; }
  
  /* Scale down the carousel for mobile */
  .logo-track { gap: 120px; }
  .logo-track .carousel-logo { height: 110px; }
  .logo-track .carousel-logo[src*="client-2"] { height: 140px; }
  .logo-carousel-section { padding: 80px 0; }
  .logo-carousel-title { font-size: 24px; margin-bottom: 40px; }
  
  .qr-download-wrapper { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .qr-download-flex { justify-content: center !important; }
}

/* ============================================================
   Large Screen (Ultrawide / 4K) Constraints
   ============================================================ */
@media (min-width: 1441px) {
  .nav-editorial-inner {
    max-width: 1440px;
    margin: 0 auto;
  }
  .hero-ed__stat-card--1 {
    left: calc(50% - 600px); 
  }
  .hero-ed__stat-card--2 {
    left: calc(50% - 500px);
  }
  .hero-ed__tags-col {
    right: calc(50% - 640px);
  }
}

/* Phone Mockup Styling */
.phone-mockup {
  border: 12px solid #1a1a1c;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  max-height: 550px;
  display: inline-block;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  animation: floatBobNormal 6s ease-in-out infinite;
}
.phone-mockup:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 40px 70px rgba(0,0,0,0.25);
  animation-play-state: paused;
}

/* Center the Pet Pulz section in the viewport when jumping back from pet-pulz.html */
#pet-pulz {
  scroll-margin-top: 20px;
}




/* ==========================================================================
   FLOATING BACK BUTTON (PET PULZ APP)
   ========================================================================== */
.floating-back-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}
.floating-back-btn:hover {
  transform: scale(1.05);
  background: var(--pulse);
  color: #ffffff;
}

/* ==========================================================================
   PET PULZ HERO RESPONSIVE STYLES
   ========================================================================== */
.pet-hero-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}
.pet-hero-left {
  flex: 1 1 40%;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: heroFadeUpNormal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  padding-bottom: 40px;
}
.pet-hero-right {
  flex: 1 1 60%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
}
.pet-hero-img {
  height: auto;
  width: 130%;
  max-width: 1000px;
  object-fit: contain;
  object-position: right center;
  display: block;
  animation: heroFadeUpNormal 1s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
  margin-right: -25%;
  mix-blend-mode: darken;
}

@media (max-width: 900px) {
  .pet-hero-wrap {
    flex-direction: column;
    gap: 0px;
    align-items: center;
    padding-top: 60px;
  }
  .pet-hero-left {
    flex: 1 1 auto;
    max-width: 100%;
    text-align: center;
    align-items: center;
    padding-bottom: 20px;
  }
  .pet-hero-right {
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
  }
  .pet-hero-img {
    width: 100%;
    max-width: 500px;
    margin-right: 0;
  }
}


/* ==========================================================================
   PRICING TOGGLE SWITCH
   ========================================================================== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.toggle-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--slate-soft);
  transition: .4s;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .toggle-slider {
  background-color: var(--pulse);
}
input:checked + .toggle-slider:before {
  transform: translateX(22px);
}
.toggle-slider.round {
  border-radius: 34px;
}
.toggle-slider.round:before {
  border-radius: 50%;
}
input:disabled + .toggle-slider {
  background-color: #d3d3d3;
  cursor: not-allowed;
}

/* ==========================================================================
   ADD-ONS ACCORDION
   ========================================================================== */
.addons-accordion summary::-webkit-details-marker {
  display: none;
}
.addons-accordion {
  transition: all 0.3s ease;
}
.addons-accordion summary {
  user-select: none;
}
.addons-accordion .accordion-icon {
  transition: transform 0.3s ease;
  color: var(--pulse);
}
.addons-accordion[open] .accordion-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   BIG DYNAMIC NEWS CAROUSEL
   ========================================================================== */
.news-nav-btn {
  background: var(--pulse) !important;
  border: none !important;
}
.news-nav-btn:hover {
  background: var(--ink) !important;
}
.news-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}
.news-slide {
  flex: 0 0 100%; /* Fixes the bug where multiple slides shrink */
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: 20px;
}
.news-slide-content {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-slide-eyebrow {
  color: var(--pulse);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.news-slide-title {
  color: var(--ink);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 24px 0;
}
.news-slide-desc {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.news-slide-images {
  position: relative;
  background: var(--mist);
  overflow: hidden;
  min-height: 480px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}
.news-slide-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.news-slide-image.is-active {
  opacity: 1;
}

@media (max-width: 768px) {
  .news-slide {
    grid-template-columns: 1fr;
  }
  .news-slide-content {
    padding: 32px 24px;
  }
  .news-slide-images {
    min-height: 250px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 20px;
  }
  .news-nav-btn {
    display: none !important;
  }
}
