/* =========================================================
   Wesponsive 2026 — stylesheet
   Merges design-system tokens (colors_and_type.css) with
   the marketing UI kit (kit.css) and WordPress baseline.
   ========================================================= */

/* Fonts enqueued from functions.php so they don't block CSS parsing. */

:root {
  --background:            0 0% 100%;
  --foreground:            222 47% 11%;
  --primary:               24 90% 55%;
  --primary-foreground:    0 0% 100%;
  --secondary:             221 83% 53%;
  --secondary-foreground:  0 0% 100%;
  --muted:                 210 40% 96%;
  --muted-foreground:      215 16% 47%;
  --border:                214 32% 91%;
  --card:                  0 0% 100%;

  --bg:        hsl(var(--background));
  --fg:        hsl(var(--foreground));
  --fg-muted:  hsl(var(--muted-foreground));
  --brand:     hsl(var(--primary));
  --brand-hover: hsl(24 90% 48%);
  --blue:      hsl(var(--secondary));
  --blue-600:  #2563eb;
  --blue-500:  #3b82f6;
  --blue-700:  #1d4ed8;
  --surface:   hsl(var(--card));
  --surface-muted: hsl(var(--muted));
  --surface-raised: hsl(var(--background) / 0.92);
  --line:      hsl(var(--border));
  --slate-50:  #f8fafc;
  --slate-900: #0f172a;

  /* Tinted surfaces — 8% blue wash for icon chips, feature icons, etc. */
  --blue-tint: hsl(var(--secondary) / 0.08);
  --services-bg: hsl(215 25% 95% / 0.5);

  --grad-blue: linear-gradient(90deg, #2563eb, #3b82f6);
  --grad-hero-bg: radial-gradient(
    ellipse 1200px 520px at 50% -10%,
    rgba(37, 99, 235, 0.10) 0%,
    rgba(37, 99, 235, 0.04) 40%,
    rgba(255, 255, 255, 0) 70%
  );

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;
  --weight-black:   800;

  --leading-tight: 1.1;
  --leading-snug:  1.25;
  --leading-norm:  1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.08em;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius:       0.5rem;
  --radius-sm:    0.375rem;
  --radius-md:    0.5rem;
  --radius-lg:    0.75rem;
  --radius-xl:    1rem;
  --radius-pill:  9999px;

  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 10px 30px -4px rgba(0, 0, 0, 0.08);
  --shadow-ring: 0 0 0 3px rgba(37, 99, 235, 0.18);
  --shadow-cta:  0 6px 16px -4px rgba(245, 140, 40, 0.35);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 300ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-norm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fg);
  font-family: var(--font-sans);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin: 0;
}
h1 { font-size: var(--text-6xl); font-weight: var(--weight-black); }
h2 { font-size: var(--text-4xl); font-weight: var(--weight-bold); }
h3 { font-size: var(--text-2xl); font-weight: var(--weight-bold); }
h4 { font-size: var(--text-lg);  font-weight: var(--weight-semi); }
h5 { font-size: var(--text-base); font-weight: var(--weight-semi); }

p, li { color: var(--fg); line-height: var(--leading-relaxed); }
p { margin: 0 0 var(--space-4); }

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--blue-700); }

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

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; }

/* ---------- WP skip link (a11y) ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none;
  color: var(--blue-700); display: block; font-size: 14px; font-weight: 600;
  height: auto; left: 16px; line-height: normal; padding: 12px 20px;
  text-decoration: none; top: 16px; width: auto; z-index: 100000;
}

/* Admin-bar offset for sticky nav */
body.admin-bar .ws-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .ws-nav { top: 46px; }
}

/* ---------- Keyboard focus ring ---------- */
:focus { outline: none; }
.ws-btn:focus-visible,
.ws-nav__brand:focus-visible,
.ws-nav__links a:focus-visible,
.ws-nav__toggle:focus-visible,
.ws-mnav__links a:focus-visible,
.ws-mnav__close:focus-visible,
.ws-footer__col a:focus-visible,
.ws-footer__bar a:focus-visible,
.ws-footer__logo:focus-visible,
.ws-footer__contact a:focus-visible,
.ws-contact__row a:focus-visible,
.ws-content a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-ring);
  border-radius: 6px;
}
/* Re-apply the button shadow layer while focused so we don't lose the hero glow. */
.ws-btn--hero:focus-visible { box-shadow: var(--shadow-ring), var(--shadow-cta); }

/* ---------- Label utility (replaces <small> semantics) ---------- */
.ws-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}

/* =========================================================
   Signature utilities
   ========================================================= */
.ws-grad, .text-gradient-blue {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.ws-pill {
  display: inline-block; padding: 6px 14px;
  background: hsl(var(--muted)); color: var(--blue-600);
  border-radius: 9999px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}

.ws-eyebrow {
  display: inline-block;
  color: var(--fg-muted);
  font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.ws-eyebrow--blue { color: var(--blue-600); }

.ws-section__head {
  max-width: 640px; margin: 0 auto 56px; text-align: center;
}
.ws-section__head h2 { font-size: 40px; font-weight: 700; margin: 12px 0 16px; }
.ws-section__head p  { color: var(--fg-muted); font-size: 17px; margin: 0; }

/* =========================================================
   Nav
   ========================================================= */
.ws-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
}
.ws-nav__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 32px;
}
.ws-nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px;
  letter-spacing: -.02em; color: var(--fg);
}
.ws-nav__brand:hover { color: var(--fg); }
.ws-nav__brand img { width: 32px; height: 32px; }
.ws-nav__links {
  display: flex; gap: 28px; margin: 0 0 0 20px;
  padding: 0; list-style: none;
}
.ws-nav__links a {
  color: var(--fg); font-weight: 500; font-size: 15px;
  padding: 10px 4px; margin: -10px -4px; border-radius: 6px;
}
.ws-nav__links a.active,
.ws-nav__links a:hover { color: var(--blue-600); }
.ws-nav__cta { margin-left: auto; }

.ws-nav__toggle {
  display: none; background: none; border: 0; padding: 8px;
  cursor: pointer; color: var(--fg); margin-left: auto;
}
.ws-nav__toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .ws-nav__links, .ws-nav__cta { display: none; }
  .ws-nav__toggle { display: inline-flex; }
}

/* Mobile nav overlay */
.ws-mnav {
  position: fixed; inset: 0; z-index: 60;
  background: #fff;
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 24px;
}
.ws-mnav.is-open { transform: translateX(0); }
.ws-mnav__head {
  display: flex; justify-content: space-between; align-items: center;
}
.ws-mnav__close { background: none; border: 0; cursor: pointer; padding: 8px; color: var(--fg); }
.ws-mnav__close svg { width: 24px; height: 24px; }
.ws-mnav__links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.ws-mnav__links a {
  color: var(--fg); font-size: 18px; font-weight: 600;
  padding: 12px 4px; border-radius: 6px;
  min-height: 44px; display: flex; align-items: center;
}
.ws-mnav__links a.active { color: var(--blue-600); }

/* =========================================================
   Buttons
   ========================================================= */
.ws-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  padding: 12px 28px; border-radius: 8px;
  cursor: pointer; border: 0;
  text-decoration: none; line-height: 1;
  transition: background var(--dur-base) var(--ease-out),
              color      var(--dur-base) var(--ease-out),
              transform  var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.ws-btn:active { transform: translateY(1px); }
.ws-btn--hero:hover { box-shadow: var(--shadow-cta); transform: translateY(-1px); }
.ws-btn--sm     { padding: 12px 20px; font-size: 14px; }
.ws-btn--hero   { background: var(--brand); color: var(--fg); box-shadow: var(--shadow-sm); }
.ws-btn--hero:hover { background: var(--brand-hover); color: var(--fg); }
.ws-btn--outline{
  background: transparent; color: var(--blue-600);
  border: 2px solid var(--blue-600); padding: 10px 26px;
}
.ws-btn--outline:hover { background: rgba(37,99,235,.05); color: var(--blue-600); }
.ws-btn--white  { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.ws-btn--white:hover { background: #f8fafc; color: var(--blue-600); }

/* =========================================================
   Hero
   ========================================================= */
.ws-hero { position: relative; padding: 96px 24px 80px; text-align: center; overflow: hidden; }
.ws-hero__bg { position: absolute; inset: 0; background: var(--grad-hero-bg); pointer-events: none; }
.ws-hero__inner {
  position: relative; max-width: 920px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.ws-hero__title {
  font-size: 4.5rem; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.05; max-width: 900px; margin: 24px 0 24px;
}
.ws-hero__sub { color: var(--fg-muted); font-size: 1.25rem; line-height: 1.55; max-width: 640px; margin: 0 0 40px; }
.ws-hero__cta { display: flex; gap: 16px; margin-bottom: 72px; flex-wrap: wrap; justify-content: center; }
.ws-hero__stats {
  display: flex; gap: 0; border-top: 1px solid var(--line);
  padding-top: 40px; width: 100%; max-width: 760px;
  justify-content: space-around;
}
.ws-hero__stats > div {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 32px; border-right: 1px solid var(--line); flex: 1;
}
.ws-hero__stats > div:last-child { border-right: 0; }
.ws-hero__stats .ws-stat-num { color: var(--blue-600); font-size: 30px; font-weight: 700; }
.ws-hero__stats .ws-stat-lbl { color: var(--fg-muted); font-size: 13px; }

@media (max-width: 720px) {
  .ws-hero__title { font-size: 2.75rem; }
  .ws-hero__sub { font-size: 1.0625rem; }
  .ws-hero__stats { flex-direction: column; gap: 20px; }
  .ws-hero__stats > div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
}

/* =========================================================
   Services
   ========================================================= */
.ws-services { background: var(--services-bg); padding: 96px 24px; }
.ws-services__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.ws-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-soft); padding: 32px;
  transition: transform  var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.ws-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ws-card:hover .ws-card__chip { transform: scale(1.06) rotate(-3deg); }
.ws-card__chip { transition: transform var(--dur-base) var(--ease-out); }
.ws-card__chip {
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--blue-tint); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.ws-card h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.ws-card p  { color: var(--fg-muted); font-size: 15px; line-height: 1.6; margin: 0; }
@media (max-width: 960px) { .ws-services__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Why Us
   ========================================================= */
.ws-why { background: #fff; padding: 96px 24px; }
.ws-why__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 64px; align-items: start;
}
.ws-why__intro h2 { font-size: 40px; font-weight: 700; margin: 12px 0 16px; }
.ws-why__intro p  { color: var(--fg-muted); font-size: 17px; line-height: 1.6; margin: 0; }
.ws-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ws-feat { display: flex; gap: 16px; }
.ws-feat__ico {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--blue-tint); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ws-feat h4 { font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.ws-feat p  { color: var(--fg-muted); font-size: 14px; line-height: 1.55; margin: 0; }
@media (max-width: 960px) {
  .ws-why__inner { grid-template-columns: 1fr; gap: 40px; }
  .ws-why__grid  { grid-template-columns: 1fr; }
}

/* =========================================================
   Stats Banner (dark blue slab)
   ========================================================= */
.ws-stats { background: var(--blue); color: #fff; padding: 72px 24px; }
.ws-stats__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.ws-stats__num { font-size: 44px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.ws-stats__lbl { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
@media (max-width: 720px) { .ws-stats__grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   CTA (light)
   ========================================================= */
.ws-cta { background: #fff; padding: 96px 24px; text-align: center; }
.ws-cta__inner { max-width: 720px; margin: 0 auto; }
.ws-cta__inner h2 { font-size: 40px; font-weight: 700; margin: 0 0 16px; letter-spacing: -.02em; }
.ws-cta__inner p  { color: var(--fg-muted); font-size: 18px; line-height: 1.55; margin: 0 0 32px; }
.ws-cta__row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   CTA Dark (About)
   ========================================================= */
.ws-cta-dark { background: var(--blue); color: #fff; padding: 72px 24px; text-align: center; }
.ws-cta-dark__inner { max-width: 680px; margin: 0 auto; }
.ws-cta-dark h2 { font-size: 36px; font-weight: 700; color: #fff; margin: 0 0 14px; letter-spacing: -.02em; }
.ws-cta-dark p  { color: rgba(255,255,255,.85); font-size: 17px; margin: 0 0 28px; }

/* =========================================================
   Page Header (sub-pages)
   ========================================================= */
.ws-pagehead { position: relative; padding: 80px 24px 72px; text-align: center; overflow: hidden; }
.ws-pagehead__bg { position: absolute; inset: 0; background: var(--grad-hero-bg); pointer-events: none; }
.ws-pagehead__inner { position: relative; max-width: 780px; margin: 0 auto; }
.ws-pagehead h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 20px 0; }
.ws-pagehead p  { color: var(--fg-muted); font-size: 1.125rem; line-height: 1.55; max-width: 620px; margin: 0 auto; }
@media (max-width: 720px) { .ws-pagehead h1 { font-size: 2.25rem; } }

/* =========================================================
   Story (About)
   ========================================================= */
.ws-story { padding: 80px 24px 96px; background: #fff; }
.ws-story__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.ws-story__inner h2 { font-size: 36px; font-weight: 700; margin: 10px 0 28px; letter-spacing: -.02em; }
.ws-story__inner p  { color: var(--fg-muted); font-size: 17px; line-height: 1.7; margin: 0 0 18px; }

/* =========================================================
   Contact page
   ========================================================= */
.ws-contact { padding: 56px 24px 96px; background: #fff; }
.ws-contact__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start;
}
.ws-contact__info h2 { font-size: 32px; font-weight: 700; margin: 10px 0 14px; letter-spacing: -.02em; }
.ws-contact__info > p { color: var(--fg-muted); font-size: 16px; line-height: 1.6; margin: 0 0 32px; }
.ws-contact__details { display: flex; flex-direction: column; gap: 20px; }
.ws-contact__row { display: flex; gap: 14px; align-items: center; }
.ws-contact__ico {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--blue-tint); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ws-contact__row a,
.ws-contact__row > div > span:not(.ws-label) { color: var(--fg); font-size: 16px; font-weight: 500; }
.ws-contact__row a:hover { color: var(--blue-600); }

/* Single-column variant (no form) — center the info block. */
.ws-contact__inner--single { display: block; max-width: 640px; }

@media (max-width: 860px) { .ws-contact__inner { grid-template-columns: 1fr; } }

/* =========================================================
   Services page list
   ========================================================= */
.ws-svc__list {
  list-style: none; padding: 16px 0 0; margin: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.ws-svc__list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg); }
.ws-svc__list li svg { color: var(--blue-600); flex-shrink: 0; }

/* =========================================================
   Footer
   ========================================================= */
.ws-footer { background: var(--slate-50); border-top: 1px solid var(--line); padding: 64px 24px 32px; }
.ws-footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
}
.ws-footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--fg); }
.ws-footer__logo:hover { color: var(--fg); }
.ws-footer__logo img { width: 28px; height: 28px; }
.ws-footer__logo span { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.ws-footer__brand p { color: var(--fg-muted); font-size: 14px; line-height: 1.6; max-width: 340px; margin: 0; }
.ws-footer__col h5 { font-size: 14px; font-weight: 700; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .06em; }
.ws-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-footer__col a  {
  color: var(--fg-muted); font-size: 14px;
  display: inline-block; padding: 6px 0; line-height: 1.4;
}
.ws-footer__col a:hover { color: var(--brand); }
.ws-footer__contact > a,
.ws-footer__contact > div {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg-muted); font-size: 14px; margin-bottom: 10px;
}
.ws-footer__contact svg { color: var(--blue-600); flex-shrink: 0; }
.ws-footer__bar {
  max-width: 1200px; margin: 40px auto 0;
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between;
  color: var(--fg-muted); font-size: 13px;
}
.ws-footer__bar div { display: flex; gap: 20px; }
.ws-footer__bar a  { color: var(--fg-muted); }
.ws-footer__bar a:hover { color: var(--brand); }
.ws-footer__bar p  { margin: 0; }
@media (max-width: 960px) {
  .ws-footer__inner { grid-template-columns: 1fr 1fr; }
  .ws-footer__bar   { flex-direction: column; gap: 12px; }
}
@media (max-width: 560px) {
  .ws-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   WP content fallback (single posts, pages without a template)
   ========================================================= */
.ws-content {
  max-width: 760px; margin: 0 auto;
  padding: 80px 24px 96px;
}
.ws-content h1 { font-size: 48px; margin: 0 0 24px; }
.ws-content h2 { font-size: 32px; margin: 40px 0 16px; }
.ws-content h3 { font-size: 22px; margin: 28px 0 12px; }
.ws-content img { margin: 24px 0; border-radius: 12px; }
.ws-content ul, .ws-content ol { padding-left: 24px; }

/* =========================================================
   Motion: keyframes, hero stagger, scroll reveal, gradient
   ========================================================= */
@keyframes ws-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ws-grad-pan {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@keyframes ws-blob-float {
  0%,100% { transform: translate3d(0, 0, 0) scale(1); }
  50%     { transform: translate3d(0, -14px, 0) scale(1.04); }
}
@keyframes ws-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Animated gradient on the headline "Digital Experiences" phrase. */
.ws-grad, .text-gradient-blue {
  background: linear-gradient(
    90deg,
    #2563eb 0%,
    #3b82f6 25%,
    #60a5fa 50%,
    #3b82f6 75%,
    #2563eb 100%
  );
  background-size: 200% 100%;
  animation: ws-grad-pan 8s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Hero entrance — staggered rise on load. */
.ws-hero__inner > * { animation: ws-rise 700ms var(--ease-out) both; }
.ws-hero__inner > .ws-pill        { animation-delay:  50ms; }
.ws-hero__inner > .ws-hero__title { animation-delay: 150ms; }
.ws-hero__inner > .ws-hero__sub   { animation-delay: 300ms; }
.ws-hero__inner > .ws-hero__cta   { animation-delay: 450ms; }
.ws-hero__inner > .ws-hero__stats { animation-delay: 600ms; }

/* Floating radial glow behind the hero. */
.ws-hero__bg { animation: ws-blob-float 12s ease-in-out infinite; }
.ws-pagehead__bg { animation: ws-blob-float 14s ease-in-out infinite; }

/* Page header (sub-pages) entrance — staggered rise on load. */
.ws-pagehead__inner > * { animation: ws-rise 700ms var(--ease-out) both; }
.ws-pagehead__inner > .ws-pill { animation-delay:  50ms; }
.ws-pagehead__inner > h1       { animation-delay: 150ms; }
.ws-pagehead__inner > p        { animation-delay: 300ms; }

/* Scroll reveal — JS toggles .is-in via IntersectionObserver. */
.ws-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}
.ws-reveal.is-in { opacity: 1; transform: none; }

/* Stagger children of a revealed grid/cluster. */
.ws-reveal-group.is-in > * { animation: ws-rise 600ms var(--ease-out) both; }
.ws-reveal-group.is-in > *:nth-child(1) { animation-delay:  40ms; }
.ws-reveal-group.is-in > *:nth-child(2) { animation-delay: 140ms; }
.ws-reveal-group.is-in > *:nth-child(3) { animation-delay: 240ms; }
.ws-reveal-group.is-in > *:nth-child(4) { animation-delay: 340ms; }

/* Sticky nav picks up a shadow after the user scrolls past the hero. */
.ws-nav {
  transition: box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.ws-nav.is-scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 6px 24px -14px rgba(15, 23, 42, 0.18);
}

/* Stats number on dark banner — subtle fade while counting up. */
.ws-stats__num.is-counting { animation: ws-fade 400ms var(--ease-out); }

/* Respect user preference. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ws-reveal { opacity: 1; transform: none; }
  .ws-grad, .text-gradient-blue { animation: none; }
}
