/* ==========================================================================
   SELLSVIBE — SHARED DESIGN SYSTEM
   Bold colour-coded sonic branding studio. Glass panels float over warm
   brown/beige ground with bright colour light spilling from behind —
   the visual idea of sound "bleeding" colour into a room.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root{
  /* ---- neutrals ---- */
  --ink:#2B2013;
  --brown:#6E4321;
  --brown-dark:#3E2712;
  --beige:#EAD9B7;
  --cream:#FBF3E2;
  --paper:#FFFCF5;
  --white:#FFFFFF;

  /* ---- bold colour set (each carries a meaning across the site) ---- */
  --yellow:#F4B400;
  --orange:#EE7130;
  --red:#DF3E2C;
  --blue:#2C56D6;
  --lightblue:#4FC3E8;
  --green:#2E9E63;

  /* ---- glass ----
     Reworked to read as actual clear glass — like Apple's "Liquid
     Glass" material — rather than a frosted, tinted card: much lower
     fill opacity, stronger blur+saturation so what's behind it still
     reads through, and a bright top rim + soft dark underside instead
     of a flat border, to fake the thickness/refraction of real glass. */
  --glass-bg: rgba(255,255,255,0.05);
  --glass-bg-strong: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.32);
  --glass-blur: blur(18px) saturate(180%);
  --glass-shadow: 0 24px 60px -18px rgba(62,39,18,0.3),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(43,32,19,0.06);

  --line: rgba(62,39,18,0.12);
  --line-strong: rgba(62,39,18,0.22);

  --f-display:'Fraunces', serif;
  --f-body:'Plus Jakarta Sans', sans-serif;
  --f-mono:'Space Mono', monospace;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  color:var(--ink);
  font-family:var(--f-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  background-color:var(--white);
  background-image:
    radial-gradient(640px circle at 4% 8%, rgba(154,52,20,0.10), transparent 60%),
    radial-gradient(600px circle at 98% 6%, rgba(14,45,110,0.10), transparent 60%),
    radial-gradient(700px circle at 8% 94%, rgba(14,45,110,0.08), transparent 60%),
    radial-gradient(640px circle at 96% 92%, rgba(20,92,52,0.08), transparent 60%),
    radial-gradient(820px circle at 52% 48%, rgba(154,52,20,0.05), transparent 65%);
  background-attachment:fixed;
  background-repeat:no-repeat;
  overflow-x:hidden;
}
img,video{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3,h4{font-family:var(--f-mono);font-weight:600;letter-spacing:-0.01em;margin:0;color:var(--brown-dark);}
p{margin:0;}
button{font-family:var(--f-body);cursor:pointer;}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px;}

.wrap{max-width:1180px;margin:0 auto;padding:0 28px;}
section{padding:104px 0;position:relative;}
.eyebrow{
  font-family:var(--f-mono);
  font-size:0.72rem;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--red);
  display:flex;align-items:center;gap:0.6em;
  font-weight:700;
}
.eyebrow::before{content:"";width:24px;height:2px;background:var(--red);display:inline-block;border-radius:2px;}
.eyebrow.c-blue{color:var(--blue);}
.eyebrow.c-blue::before{background:var(--blue);}
.eyebrow.c-green{color:var(--green);}
.eyebrow.c-green::before{background:var(--green);}
.eyebrow.c-orange{color:var(--orange);}
.eyebrow.c-orange::before{background:var(--orange);}

/* ============ GLASS PANELS ============ */
.glass{
  background:var(--glass-bg);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-border);
  border-radius:22px;
  box-shadow:var(--glass-shadow);
}
.glass-strong{background:var(--glass-bg-strong);}

/* ============ NAV ============ */
header.nav{
  position:sticky;top:10px;z-index:80;
  padding:20px 0 0;
  transition:transform .3s ease;
}
header.nav.nav-hidden{
  transform:translateY(-130%);
}
.nav-inner{
  max-width:1180px;margin:0 auto 0;padding:18px 28px;
  display:flex;align-items:center;justify-content:space-between;
  position:relative;
  /* Clear glass: more see-through than the .glass panels below, with a
     crisp bright edge and a slow specular sheen instead of a flat tint —
     reads as an actual pane of glass rather than a frosted card. */
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border:1px solid rgba(255,255,255,0.35);
  border-radius:25px;
  box-shadow:0 12px 30px -14px rgba(62,39,18,0.24),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(43,32,19,0.05);
}
/* Slow diagonal light sweep, confined to the pseudo-element's own
   background (never needs overflow:hidden on .nav-inner itself, which
   would otherwise clip the mobile nav-links dropdown). */
.nav-inner::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.4) 50%, transparent 65%);
  background-size:260% 260%;
  background-position:-80% -80%;
  pointer-events:none;
  animation:sv-glass-sheen 8s ease-in-out infinite;
}
@keyframes sv-glass-sheen{
  0%,100%{ background-position:-80% -80%; }
  50%{ background-position:120% 120%; }
}

/* Same shine sweep as the nav, applied to the crate panel on the
   homepage. Lives on its own pseudo-element so it can't collide with
   the crate's own hover/breathing (both of those only ever touch
   `transform`/`box-shadow`, never `background-position`). */
.crate{ position:relative; }
.crate::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(180px 140px at 30% 30%, rgba(255,255,255,0.32), transparent 65%);
  background-size:220% 220%;
  background-position:0% 0%;
  pointer-events:none;
  animation:sv-crate-glow 22s ease-in-out infinite;
}
@keyframes sv-crate-glow{
  0%,100%{ background-position:0% 0%; }
  50%{ background-position:100% 100%; }
}
@media (prefers-reduced-motion: reduce){
  .crate::after{ animation:none; }
}

/* Same shine sweep as the nav/footer/crate, packaged as a reusable class
   for any other stand-alone glass panel that should get it (e.g. the CTA
   panel on the why-we-do page, or the timeline panel on the about page).
   Just add class="sweep-panel" alongside "glass" on the target element —
   position:relative is included here so the target doesn't need it. */
.sweep-panel{ position:relative; }
.sweep-panel::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.4) 50%, transparent 65%);
  background-size:260% 260%;
  background-position:-80% -80%;
  pointer-events:none;
  animation:sv-glass-sheen 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .sweep-panel::after{ animation:none; }
}

@media (prefers-reduced-motion: reduce){
  .nav-inner::after{ animation:none; }
}
.nav-shell{max-width:1180px;margin:0 auto;padding:0 28px;}
.brand{
  display:flex;align-items:center;gap:10px;
  font-family:var(--f-mono);font-size:1.9rem;font-weight:700;letter-spacing:0.05em;
  text-decoration:none;color:#ff8000;
}
nav.links{display:flex;gap:30px;font-family:var(--f-mono);font-size:0.78rem;letter-spacing:0.03em;text-transform:uppercase;}
nav.links a{
  text-decoration:none;color:var(--brown-dark);opacity:0.75;
  padding:9px 14px;border-radius:10px;font-weight:700;
  transition:opacity .15s ease, background .15s ease, color .15s ease;
}
nav.links a:hover{opacity:1;background:rgba(62,39,18,0.06);}
nav.links a.active{opacity:1;background:var(--brown);color:var(--beige);}
.nav-cta{
  font-family:var(--f-mono);font-size:0.76rem;letter-spacing:0.04em;text-transform:uppercase;
  background:var(--blue);color:var(--white);border:none;padding:11px 18px;border-radius:10px;font-weight:700;
  text-decoration:none;box-shadow:0 6px 14px -4px var(--beige);
  transition:transform .15s ease, box-shadow .15s ease;
  white-space:nowrap;
}
.nav-cta:hover{transform:translateY(-2px);box-shadow:0 10px 20px -4px var(--beige);}
.nav-cta-menu{display:none;}
.nav-toggle{
  display:none;align-items:center;justify-content:center;gap:8px;background:var(--brown);border:1px solid var(--beige);color:var(--paper);
  min-width:45px;min-height:35px;padding:08px 16px;border-radius:14px;
}
.toggle-star{
  font-family:var(--f-mono);font-weight:700;font-size:1.4rem;line-height:1;color:var(--paper);
  transition:transform .25s cubic-bezier(.2,.8,.2,1);
}
.nav-toggle.open .toggle-star{transform:rotate(90deg);}

@media (max-width:820px){
  nav.links{
    display:flex;position:absolute;top:calc(100% + 10px);left:20px;right:20px;
    flex-direction:column;gap:2px;padding:14px;
    background:rgba(255,252,245,0.94);
    backdrop-filter:blur(24px) saturate(180%);-webkit-backdrop-filter:blur(24px) saturate(180%);
    border:1px solid var(--glass-border);border-radius:16px;box-shadow:var(--glass-shadow);
    opacity:0;visibility:hidden;pointer-events:none;
    transform:translateY(-10px) scale(0.97);transform-origin:top right;
    transition:opacity .22s ease, transform .25s cubic-bezier(.2,.8,.2,1), visibility .22s;
  }
  nav.links.open{
    opacity:1;visibility:visible;pointer-events:auto;
    transform:translateY(0) scale(1);
  }
  nav.links a{padding:12px 14px;}
  .nav-toggle{display:flex;}

  .nav-cta-bar{display:none;}
  .nav-cta-menu{display:inline-flex;justify-content:center;margin-top:8px;}
}
@media (max-width:820px) and (prefers-reduced-motion: reduce){
  nav.links{transition:opacity .01s linear;transform:none;}
  nav.links.open{transform:none;}
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;align-items:center;gap:10px;justify-content:center;
  font-family:var(--f-mono);font-size:0.8rem;letter-spacing:0.05em;text-transform:uppercase;font-weight:700;
  padding:14px 24px;border-radius:12px;text-decoration:none;border:none;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--red);color:var(--paper);box-shadow:0 10px 22px -8px rgba(223,62,44,0.55);}
.btn-primary:hover{filter:brightness(1.06);}
.btn-dark{background:var(--ink);color:var(--cream);box-shadow:0 10px 22px -8px rgba(43,32,19,0.5);}
.btn-outline{background:transparent;border:2px solid var(--brown-dark);color:var(--brown-dark);}
.btn-outline:hover{background:var(--brown-dark);color:var(--cream);}
.btn-blue{background:var(--blue);color:var(--paper);box-shadow:0 10px 22px -8px rgba(44,86,214,0.5);}
.btn-green{background:var(--green);color:var(--paper);box-shadow:0 10px 22px -8px rgba(46,158,99,0.5);}

/* ============ SECTION HEADS ============ */
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:44px;flex-wrap:wrap;}
.sec-head h2{font-size:clamp(2rem,4.4vw,3.1rem);margin-top:14px;}
.sec-head p{max-width:460px;color:rgba(43,32,19,0.72);font-size:1rem;}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero{padding:64px 0 20px;}
.page-hero .glass{padding:52px 44px;}
.page-hero h1{font-size:clamp(2.4rem,5.4vw,4rem);line-height:1.02;margin-top:16px;}
.page-hero p.lead{margin-top:18px;max-width:600px;font-size:1.08rem;color:rgba(43,32,19,0.75);}
.chip-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;}
.chip{
  font-family:var(--f-mono);font-size:0.72rem;letter-spacing:0.05em;text-transform:uppercase;font-weight:700;
  padding:8px 14px;border-radius:999px;color:var(--paper);
}
.chip.y{background:var(--yellow);color:var(--brown-dark);}
.chip.o{background:var(--orange);}
.chip.r{background:var(--red);}
.chip.b{background:var(--blue);}
.chip.lb{background:var(--lightblue);color:var(--brown-dark);}
.chip.g{background:var(--green);}

/* ============ CARD GRIDS ============ */
.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.jcard{
  padding:28px 24px;position:relative;overflow:hidden;
}
.jcard::before{
  content:"";position:absolute;top:0;left:0;right:0;height:6px;background:var(--tint,var(--orange));
  border-radius:22px 22px 0 0;
}
.jcard-num{font-family:var(--f-mono);font-size:0.7rem;letter-spacing:0.1em;color:var(--tint,var(--orange));font-weight:700;}
.jcard h3{font-size:1.4rem;margin-top:10px;}
.jcard p{margin-top:10px;font-size:0.93rem;color:rgba(43,32,19,0.72);}
.jcard:nth-child(4n+1){--tint:var(--blue);}
.jcard:nth-child(4n+2){--tint:var(--orange);}
.jcard:nth-child(4n+3){--tint:var(--red);}
.jcard:nth-child(4n+4){--tint:var(--green);}

@media (max-width:980px){ .card-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:640px){
  .card-grid{grid-template-columns:1fr;}
  .mini-services .card-grid{grid-template-columns:1fr 1fr;gap:12px;}
  .mini-services .jcard{padding:18px 14px;}
  .mini-services .jcard-num{font-size:0.6rem;}
  .mini-services .jcard h3{font-size:1.05rem;margin-top:6px;}
  .mini-services .jcard p{font-size:0.82rem;margin-top:6px;}
}

/* ============ FOOTER ============ */
footer{padding:50px 0 30px;}
.footer-shell{
  padding:34px;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;
  position:relative;
}
/* Same shine sweep as the top nav, on its own pseudo-element so it
   can't collide with the footer's breathing animation (that one only
   ever touches box-shadow/scale, never background-position). */
.footer-shell::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  border-radius:inherit;
  background:linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  background-size:260% 260%;
  background-position:-80% -80%;
  pointer-events:none;
  animation:sv-glass-sheen 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){
  .footer-shell::after{ animation:none; }
}
.footer-brand{display:flex;flex-direction:column;gap:6px;}
.footer-brand .brand{font-size:1.15rem;}
.footer-tag{font-family:var(--f-mono);font-size:0.72rem;color:rgba(43,32,19,0.6);letter-spacing:0.04em;}

/* ---- careers CTA + mail + social (footer) ---- */
.footer-careers-link{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--f-mono);font-size:0.76rem;font-weight:700;letter-spacing:0.03em;text-transform:uppercase;
  color:var(--paper);background:var(--brown);padding:11px 18px;border-radius:999px;text-decoration:none;
  box-shadow:0 8px 18px -6px var(--brown);
  transition:transform .15s ease, box-shadow .15s ease;
  white-space:nowrap;
}
.footer-careers-link:hover{transform:translateY(-2px);box-shadow:0 12px 22px -6px var(--brown-dark);}
.footer-careers-dot{
  width:8px;height:8px;border-radius:50%;background:var(--green);display:inline-block;flex-shrink:0;
  animation:footerPulse 1.7s ease-in-out infinite;
}
@keyframes footerPulse{0%,100%{opacity:1;}50%{opacity:0.3;}}

.footer-right{display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
.footer-mail{
  font-family:var(--f-mono);font-size:0.76rem;font-weight:700;letter-spacing:0.02em;
  color:var(--brown-dark);text-decoration:none;opacity:0.78;
}
.footer-mail:hover{opacity:1;text-decoration:underline;}
.footer-social{display:flex;gap:9px;}
.footer-social a{
  width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  background:var(--paper);border:1px solid var(--line-strong);color:var(--brown-dark);
  transition:background .15s ease, color .15s ease, transform .15s ease;
}
.footer-social a svg{width:16px;height:16px;display:block;}
.footer-social a:hover{background:var(--ink);color:var(--cream);transform:translateY(-2px);}
.footer-note{
  max-width:1180px;margin:16px auto 0;padding:0 28px;
  font-family:var(--f-mono);font-size:0.68rem;color:rgba(43,32,19,0.5);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
}

/* ============ RESPONSIVE ============ */
@media (max-width:980px){
  .card-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:640px){
  section{padding:70px 0;}
  .page-hero .glass{padding:34px 24px;}
  .footer-shell{padding:24px;flex-direction:column;align-items:flex-start;}
  .footer-right{width:100%;justify-content:space-between;}
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important;transition-duration:0.01ms !important;}
}

/* ==========================================================================
   ENTRANCE + PANEL REVEAL ANIMATIONS
   - Whole page fades/slides in on load.
   - Glass panels and cards animate up into place as they scroll into view.
   - Gated behind .reveal-ready (added by animations.js) so content stays
     fully visible if JavaScript is unavailable or reduced-motion is set.
   ========================================================================== */

@keyframes sv-page-in{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}
body{
  animation: sv-page-in .6s cubic-bezier(.2,.7,.3,1) both;
}

/* ---- gentle breathing for headings ----
   A very small, slow scale pulse on the display type, so the site's
   typography feels as alive as the panels/cards/tapes. Uses the
   standalone `scale` property rather than `transform` — the same fix
   applied to panels and cassettes earlier, so this can never collide
   with a hover or reveal animation that happens to also touch
   `transform` on the same element. Scoped to h1/h2 (page and section
   titles) rather than every heading, so it reads as a subtle accent
   rather than a busy effect across dozens of small card titles. */
@keyframes sv-text-breathe{
  0%,100%{ scale:1; }
  50%{ scale:1.012; }
}
h1, h2{
  animation:sv-text-breathe 5.5s ease-in-out infinite;
}
h2{ animation-duration:6.2s; animation-delay:-2s; }

@media (prefers-reduced-motion: reduce){
  h1, h2{ animation:none; }
}

.reveal-ready .glass,
.reveal-ready .tape,
.reveal-ready .role-card,
.reveal-ready .jcard,
.reveal-ready .value-card,
.reveal-ready .perk-card,
.reveal-ready .rule-card,
.reveal-ready .next-card,
.reveal-ready .faq-card,
.reveal-ready .p-step,
.reveal-ready .hire-step{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .75s cubic-bezier(.16,.84,.44,1), transform .75s cubic-bezier(.16,.84,.44,1);
  will-change:opacity, transform;
}
.reveal-ready .glass.in-view,
.reveal-ready .tape.in-view,
.reveal-ready .role-card.in-view,
.reveal-ready .jcard.in-view,
.reveal-ready .value-card.in-view,
.reveal-ready .perk-card.in-view,
.reveal-ready .rule-card.in-view,
.reveal-ready .next-card.in-view,
.reveal-ready .faq-card.in-view,
.reveal-ready .p-step.in-view,
.reveal-ready .hire-step.in-view{
  opacity:1;
  transform:translateY(0);
  /* Faster, simpler transition than the entrance rule above — this is
     the one actually used for hover once a panel has settled in, so it
     needs to feel snappy rather than reusing the slow reveal easing. */
  transition:opacity .5s cubic-bezier(.16,.84,.44,1),
    transform .35s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s ease;
}

/* The cassette shown inside the deck's tape slot is inserted dynamically
   when a track is loaded, so the scroll-reveal observer never sees it and
   it would otherwise stay stuck at opacity:0 forever. Always show it. */
.loaded-tape .tape{
  opacity:1 !important;
  transform:none !important;
  translate:0 0 !important;
  rotate:0deg !important;
  scale:1 !important;
  transition:none !important;
  animation:none !important;
}

/* ---- gentle "breathing" idle animation once a panel has revealed ----
   Pulses box-shadow only (never transform) so it can never collide with
   the directional hover movement below — a shared "transform" property
   between an animation and a hover state is what caused panels to jump
   the wrong way before correcting on hover. Durations/delays are varied
   by position so panels don't all pulse in unison. */
@keyframes sv-breathe{
  0%,100%{ box-shadow:var(--glass-shadow); }
  50%{ box-shadow:0 30px 70px -16px rgba(62,39,18,0.42), inset 0 1px 0 rgba(255,255,255,0.85), inset 0 -1px 0 rgba(43,32,19,0.06); }
}
.reveal-ready .glass.in-view,
.reveal-ready .role-card.in-view,
.reveal-ready .jcard.in-view,
.reveal-ready .value-card.in-view,
.reveal-ready .perk-card.in-view,
.reveal-ready .rule-card.in-view,
.reveal-ready .next-card.in-view,
.reveal-ready .faq-card.in-view,
.reveal-ready .p-step.in-view,
.reveal-ready .hire-step.in-view{
  animation:sv-breathe 6.2s ease-in-out infinite;
}
.reveal-ready .in-view:nth-child(2n){ animation-duration:7s; animation-delay:-2.3s; }
.reveal-ready .in-view:nth-child(3n){ animation-duration:5.4s; animation-delay:-3.8s; }
.reveal-ready .in-view:nth-child(5n){ animation-duration:6.8s; animation-delay:-1.1s; }

/* ---- breathing animation for the top nav and footer bar ----
   These are always on screen (not scroll-revealed cards), so they get
   their own always-running version of the sv-breathe pulse rather than
   waiting on .reveal-ready/.in-view like the cards above. */
.nav-inner,
.footer-shell{
  animation:sv-breathe 6.5s ease-in-out infinite;
}
.footer-shell{ animation-duration:7.2s; animation-delay:-2.4s; }

/* ---- breathing animation for the cassette deck ----
   The deck also carries the .glass class, which makes it a target of
   the `.reveal-ready .glass.in-view` rule above (higher specificity:
   3 classes vs. 1) — that rule was silently winning and overriding any
   plain `.deck` animation rule with its own subtler timing. Dedicated
   keyframes + !important guarantee the deck's breathing always shows,
   regardless of reveal-system state. Adds a hair of scale (a standalone
   property, not `transform`) on top of the shadow pulse so the effect
   reads clearly rather than blending into the deck's already-heavy
   drop shadow. */
@keyframes sv-deck-breathe{
  0%,100%{ box-shadow:var(--glass-shadow); scale:1; }
  50%{ box-shadow:0 34px 76px -14px rgba(62,39,18,0.48), inset 0 1px 0 rgba(255,255,255,0.85), inset 0 -1px 0 rgba(43,32,19,0.06); scale:1.012; }
}
.deck{
  animation:sv-deck-breathe 5.8s ease-in-out infinite !important;
}
.deck:hover{ animation-play-state:paused !important; }

@media (prefers-reduced-motion: reduce){
  .nav-inner,
  .footer-shell,
  .deck{ animation:none !important; }
}

/* A touch of lift on hover so panels feel alive, matching the hover
   language already used on .tape and .btn elsewhere in the site.
   This is the default for one-off panels (hero, footer, forms, etc). */
.glass:hover{
  animation-play-state:paused;
  transform:translateY(-3px);
  box-shadow:0 30px 66px -20px rgba(62,39,18,0.4);
}

/* ---- directional hover for grid cards ----
   Cards in a repeating grid alternate which way they move on hover —
   up, right, down, left — so a row of cards feels playful rather than
   every card doing the exact same lift. Cycles every 4 cards; higher
   specificity than .glass:hover above so it wins for `transform`. */
.jcard:nth-child(4n+1):hover,
.service-detail:nth-child(4n+1):hover,
.why-card:nth-child(4n+1):hover,
.issue-card:nth-child(4n+1):hover,
.impact-card:nth-child(4n+1):hover,
.role-card:nth-child(4n+1):hover,
.value-card:nth-child(4n+1):hover,
.perk-card:nth-child(4n+1):hover,
.rule-card:nth-child(4n+1):hover,
.next-card:nth-child(4n+1):hover,
.faq-card:nth-child(4n+1):hover,
.p-step:nth-child(4n+1):hover,
.hire-step:nth-child(4n+1):hover{
  animation-play-state:paused;
  transform:translateY(-10px);
  box-shadow:0 30px 66px -20px rgba(62,39,18,0.4);
}
.jcard:nth-child(4n+2):hover,
.service-detail:nth-child(4n+2):hover,
.why-card:nth-child(4n+2):hover,
.issue-card:nth-child(4n+2):hover,
.impact-card:nth-child(4n+2):hover,
.role-card:nth-child(4n+2):hover,
.value-card:nth-child(4n+2):hover,
.perk-card:nth-child(4n+2):hover,
.rule-card:nth-child(4n+2):hover,
.next-card:nth-child(4n+2):hover,
.faq-card:nth-child(4n+2):hover,
.p-step:nth-child(4n+2):hover,
.hire-step:nth-child(4n+2):hover{
  animation-play-state:paused;
  transform:translate(8px, -2px);
  box-shadow:0 30px 66px -20px rgba(62,39,18,0.4);
}
.jcard:nth-child(4n+3):hover,
.service-detail:nth-child(4n+3):hover,
.why-card:nth-child(4n+3):hover,
.issue-card:nth-child(4n+3):hover,
.impact-card:nth-child(4n+3):hover,
.role-card:nth-child(4n+3):hover,
.value-card:nth-child(4n+3):hover,
.perk-card:nth-child(4n+3):hover,
.rule-card:nth-child(4n+3):hover,
.next-card:nth-child(4n+3):hover,
.faq-card:nth-child(4n+3):hover,
.p-step:nth-child(4n+3):hover,
.hire-step:nth-child(4n+3):hover{
  animation-play-state:paused;
  transform:translateY(8px);
  box-shadow:0 30px 66px -20px rgba(62,39,18,0.4);
}
.jcard:nth-child(4n+4):hover,
.service-detail:nth-child(4n+4):hover,
.why-card:nth-child(4n+4):hover,
.issue-card:nth-child(4n+4):hover,
.impact-card:nth-child(4n+4):hover,
.role-card:nth-child(4n+4):hover,
.value-card:nth-child(4n+4):hover,
.perk-card:nth-child(4n+4):hover,
.rule-card:nth-child(4n+4):hover,
.next-card:nth-child(4n+4):hover,
.faq-card:nth-child(4n+4):hover,
.p-step:nth-child(4n+4):hover,
.hire-step:nth-child(4n+4):hover{
  animation-play-state:paused;
  transform:translate(-8px, -2px);
  box-shadow:0 30px 66px -20px rgba(62,39,18,0.4);
}

@media (prefers-reduced-motion: reduce){
  body{ animation:none; }
  .glass:hover,
  .jcard:hover, .role-card:hover, .value-card:hover, .perk-card:hover,
  .rule-card:hover, .next-card:hover, .faq-card:hover, .p-step:hover,
  .hire-step:hover, .service-detail:hover, .why-card:hover, .impact-card:hover,
  .issue-card:hover{ transform:none; }
  .reveal-ready .glass.in-view,
  .reveal-ready .role-card.in-view,
  .reveal-ready .jcard.in-view,
  .reveal-ready .value-card.in-view,
  .reveal-ready .perk-card.in-view,
  .reveal-ready .rule-card.in-view,
  .reveal-ready .next-card.in-view,
  .reveal-ready .faq-card.in-view,
  .reveal-ready .p-step.in-view,
  .reveal-ready .hire-step.in-view{ animation:none; }
  .reveal-ready .glass,
  .reveal-ready .tape,
  .reveal-ready .role-card,
  .reveal-ready .jcard,
  .reveal-ready .value-card,
  .reveal-ready .perk-card,
  .reveal-ready .rule-card,
  .reveal-ready .next-card,
  .reveal-ready .faq-card,
  .reveal-ready .p-step,
  .reveal-ready .hire-step{
    opacity:1;
    transform:none;
    transition:none;
  }
}