/* ==========================================================================
   The Clever Clown — Global Stylesheet  (v2 — bold refresh)
   Display: Bricolage Grotesque · Labels: Space Mono · Body: Inter
   Palette: ink + warm paper, brand gold, with coral & electric accents
   ========================================================================== */

:root {
  /* ---- Core palette ---- */
  --ink:        #0E1726;   /* primary text + dark surfaces */
  --ink-900:    #080D15;   /* deepest */
  --ink-700:    #16263B;   /* raised dark surface */
  --paper:      #F7F4EC;   /* warm page background */
  --paper-2:    #FFFFFF;   /* cards / raised light */
  --paper-3:    #EFE9DC;   /* sunken warm */
  --white:      #FFFFFF;

  --gold:       #F5A623;   /* brand gold */
  --gold-deep:  #D9860E;
  --gold-light: #FFD27A;
  --gold-soft:  #FBE7C2;
  --coral:      #FF5A3C;   /* playful pop */
  --coral-soft: #FFE1D9;
  --electric:   #4B5BF0;   /* tech / AI accent */
  --electric-soft:#E3E6FF;
  --mint:       #18B89A;   /* data accent */
  --mint-soft:  #D5F3EC;

  --muted:      #566270;   /* body grey */
  --line:       #E7E0D2;   /* warm hairline on paper */
  --line-2:     rgba(14,23,38,.09);

  /* ---- Legacy aliases (keep older markup + blog.js working) ---- */
  --navy: var(--ink);        --navy-deep: var(--ink-900);  --navy-light: #1B3A5B;
  --cream: var(--paper);     --ink-soft: var(--muted);     --blue: var(--electric);
  --gold-deep-legacy: var(--gold-deep);

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", "Georgia", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-serif:   var(--font-display);   /* legacy alias */

  /* ---- Layout ---- */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-xl: 38px; --pill: 999px;
  --radius: 14px; --radius-lg: 22px;   /* legacy aliases */

  --shadow-sm: 0 1px 2px rgba(12,20,33,.05), 0 6px 16px rgba(12,20,33,.06);
  --shadow-md: 0 14px 36px rgba(12,20,33,.12);
  --shadow-lg: 0 36px 80px rgba(12,20,33,.24);
  --shadow-gold: 0 16px 34px rgba(245,166,35,.36);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--gold-deep); }
::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.04;
  margin: 0 0 .4em;
  font-weight: 800;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.5rem, 5.2vw + 1rem, 4.6rem); }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem); }
h3 { font-size: 1.4rem; letter-spacing: -.01em; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }
strong { font-weight: 700; }
small { color: var(--muted); }

.wrap, .container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: 92px 0; }
@media (max-width: 700px){ section { padding: 64px 0; } }

/* ---- Shared bits ---- */
.eyebrow, .section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 700;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 18px;
}
.eyebrow::before, .section-eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--gold); display: inline-block;
}
.section-eyebrow { display: block; text-align: center; }
.section-eyebrow::before { margin: 0 auto 8px; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { text-align: center; margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.15rem; max-width: 640px; }
.section-head.center .section-lead { margin: 0 auto; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.accent { color: var(--gold-deep); }
.divider { width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: 16px auto 28px; }
.text-center { text-align: center; }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:40px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:40px}

/* tags / pills */
.pill, .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--pill);
  background: var(--ink); color: var(--white);
}
.tag--gold{ background: var(--gold); color: var(--ink); }
.tag--coral{ background: var(--coral); color: var(--white); }
.tag--electric{ background: var(--electric); color: var(--white); }
.tag--soft{ background: var(--gold-soft); color: var(--gold-deep); }
.tag--ghost{ background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--pill);
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  letter-spacing: .005em; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary, .btn--primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover, .btn--primary:hover { background: var(--gold-light); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-700); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary, .btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover, .btn--outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-ghost, .btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover, .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 17px 30px; font-size: 1.06rem; }

/* arrow text link */
.arrow-link, .read-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--ink);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.arrow-link:hover { color: var(--gold-deep); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; }
.nav {
  background: rgba(247,244,236,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease), background .25s;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 26px;
  transition: padding .25s var(--ease);
}
.site-header.is-condensed .nav__inner { padding-top: 9px; padding-bottom: 9px; }
.site-header.is-condensed .nav { box-shadow: var(--shadow-sm); }

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 44px; height: 44px; object-fit: contain; }
.nav__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.nav__name i { font-style: italic; color: var(--gold-deep); }

.nav__menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__menu > a, .nav__trigger {
  font-size: .96rem; font-weight: 500; color: var(--ink);
  padding: 9px 12px; border-radius: var(--pill); background: none; border: none;
  font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav__menu > a:hover, .nav__trigger:hover { color: var(--gold-deep); background: rgba(14,23,38,.04); }
.nav__menu > a.active { color: var(--gold-deep); }
.nav__trigger svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__item { position: relative; }
.nav__item:hover .nav__trigger svg, .nav__item:focus-within .nav__trigger svg { transform: rotate(180deg); }

.nav__cta {
  background: var(--ink); color: var(--white) !important;
  padding: 11px 20px !important; border-radius: var(--pill); font-weight: 600;
}
.nav__cta:hover { background: var(--gold); color: var(--ink) !important; }

/* mega dropdown */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 560px; max-width: 90vw;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-sm); align-items: flex-start; }
.mega a:hover { background: var(--paper); }
.mega .mi { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--white); }
.mega .mi svg { width: 18px; height: 18px; }
.mega b { display: block; font-size: .95rem; color: var(--ink); }
.mega span { font-size: .82rem; color: var(--muted); line-height: 1.4; }

.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper-2); border-radius: 12px; cursor: pointer; padding: 11px; }
.nav__burger span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .25s var(--ease), opacity .2s; }

@media (max-width: 940px){
  .nav__burger { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px 18px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
  }
  .nav__menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu > a, .nav__trigger { padding: 13px 10px; width: 100%; justify-content: flex-start; border-radius: 10px; }
  .nav__cta { text-align: center; justify-content: center; margin-top: 8px; }
  .nav__item { width: 100%; }
  .mega {
    position: static; transform: none; width: 100%; max-width: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: none; background: transparent; padding: 4px 0 4px 8px; grid-template-columns: 1fr;
  }
  .mega a { padding: 10px 8px; }
}

.skip-link { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 60% at 82% 6%, rgba(245,166,35,.20), transparent 60%),
    radial-gradient(55% 55% at 6% 96%, rgba(75,91,240,.20), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink));
  color: var(--white);
  padding: 96px 0 86px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 30px 30px; mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: var(--white); }
.hero h1 .pop { color: var(--gold); font-style: italic; }
.hero__lead { font-size: 1.24rem; color: rgba(255,255,255,.82); max-width: 560px; margin: 22px 0 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.66); font-size: .9rem; }
.hero__trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(24,184,154,.18); }

.hero__art { position: relative; display: grid; place-items: center; }
.hero__disc {
  position: relative; width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; padding: 34px;
}
.hero__disc::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from 200deg, transparent, rgba(245,166,35,.6), transparent 40%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__disc img { width: 100%; height: auto; filter: drop-shadow(0 16px 30px rgba(0,0,0,.4)); }
.chip {
  position: absolute; background: var(--paper-2); color: var(--ink);
  border-radius: var(--pill); padding: 10px 15px; box-shadow: var(--shadow-md);
  font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 8px;
  animation: float 5s var(--ease) infinite;
}
.chip b { font-family: var(--font-display); }
.chip i { font-style: normal; width: 9px; height: 9px; border-radius: 50%; }
.chip--1 { top: 6%; left: -6%; }
.chip--2 { bottom: 12%; left: -10%; animation-delay: 1.2s; }
.chip--3 { bottom: 2%; right: -4%; animation-delay: 2.1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 900px){
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__art { order: -1; }
  .hero__disc { width: 280px; }
  .chip--1{ left: 2%; } .chip--2{ left: 0; } .chip--3{ right: 2%; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { background: var(--ink); color: var(--white); padding: 18px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marq 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 18px; padding: 0 26px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: rgba(255,255,255,.92); }
.marquee__item::after { content: "✸"; color: var(--gold); font-size: .9rem; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ==========================================================================
   Generic grids & cards
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px){ .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.card .icon { width: 52px; height: 52px; background: var(--ink); color: var(--gold); border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ==========================================================================
   Bento services
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.svc {
  position: relative; grid-column: span 2; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.svc--wide { grid-column: span 3; }
.svc--dark { background: var(--ink); border-color: transparent; color: var(--white); }
.svc--dark h3 { color: var(--white); } .svc--dark p { color: rgba(255,255,255,.78); }
.svc__num { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .1em; }
.svc--dark .svc__num { color: rgba(255,255,255,.5); }
.svc__ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin: 14px 0 16px; color: var(--white); }
.svc__ico svg { width: 24px; height: 24px; }
.svc h3 { margin-bottom: 8px; font-size: 1.3rem; }
.svc p { color: var(--muted); margin: 0; font-size: .98rem; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.svc__tags span { font-size: .76rem; color: var(--muted); background: var(--paper-3); border-radius: var(--pill); padding: 4px 10px; }
.svc--dark .svc__tags span { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.bg-gold{ background: var(--gold); } .bg-coral{ background: var(--coral); } .bg-electric{ background: var(--electric); }
.bg-mint{ background: var(--mint); } .bg-ink{ background: var(--ink); }
@media (max-width: 980px){ .bento { grid-template-columns: repeat(2,1fr); } .svc, .svc--wide { grid-column: span 1; } }
@media (max-width: 560px){ .bento { grid-template-columns: 1fr; } }

/* ==========================================================================
   Split feature rows (services detail)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .split__media { order: 2; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 32px; } .split.flip .split__media { order: 0; } }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--ink); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D9860E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.media-card {
  border-radius: var(--r-lg); padding: 38px; color: var(--white);
  background: linear-gradient(150deg, var(--ink), var(--ink-700)); box-shadow: var(--shadow-md);
}
.media-card h3 { color: var(--gold); }
.media-card p { color: rgba(255,255,255,.82); }
.media-card.gold { background: linear-gradient(150deg, var(--gold), var(--gold-light)); }
.media-card.gold h3, .media-card.gold p { color: var(--ink); }
.media-card.gold p { color: rgba(14,23,38,.78); }
.media-card .big { font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 620px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem,4vw,3.4rem); color: var(--gold); display: block; line-height: 1; letter-spacing: -.02em; }
.stat__label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 10px; display: block; }
.feature-strip { background: var(--ink); color: var(--white); padding: 64px 0; }
.feature-strip .stat .num { font-family: var(--font-display); font-size: 3rem; color: var(--gold); display: block; line-height: 1; }
.feature-strip .stat .label { letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 8px; display: block; font-family: var(--font-mono); }

/* ==========================================================================
   Logos / trust strip
   ========================================================================== */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.logos__item { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--muted); opacity: .8; letter-spacing: -.01em; }
.logos__item .mk { color: var(--gold-deep); }

/* ==========================================================================
   Steps / process
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; } .step p { color: var(--muted); margin: 0; }

/* ==========================================================================
   Quotes / testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media (max-width: 760px){ .quotes { grid-template-columns: 1fr; } }
.quote, .testimonial { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; }
.quote__mark, .testimonial::before { content: "“"; font-family: var(--font-display); font-size: 4.2rem; line-height: 1; color: var(--gold); position: absolute; top: 6px; left: 22px; }
.testimonial::before { position: absolute; }
.quote blockquote, .testimonial blockquote { margin: 26px 0 22px; font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.quote__who, .testimonial .who { display: flex; align-items: center; gap: 14px; }
.quote__avatar, .testimonial .avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.quote__name, .testimonial .name { font-weight: 700; color: var(--ink); }
.quote__role, .testimonial .role { color: var(--muted); font-size: .9rem; }
.quote--feature { grid-column: 1 / -1; background: var(--ink); color: var(--white); border: none; }
.quote--feature blockquote { color: var(--white); font-size: 1.45rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.quote--feature .quote__name { color: var(--white); }
.quote--feature .quote__role { color: rgba(255,255,255,.7); }
.quote--feature .quote__mark { color: var(--gold); }

/* ==========================================================================
   Pricing tiers
   ========================================================================== */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
@media (max-width: 920px){ .tiers { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.tier { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; }
.tier--featured { background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: var(--shadow-lg); position: relative; }
.tier--featured h3 { color: var(--white); }
.tier__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink); }
.tier__name { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.tier--featured .tier__name { color: var(--gold-light); }
.tier__price { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.02em; margin: 8px 0 2px; }
.tier__price span { font-family: var(--font-sans); font-size: .95rem; font-weight: 500; color: var(--muted); }
.tier--featured .tier__price span { color: rgba(255,255,255,.7); }
.tier__desc { color: var(--muted); min-height: 48px; }
.tier--featured .tier__desc { color: rgba(255,255,255,.78); }
.tier__list { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 11px; flex: 1; }
.tier__list li { position: relative; padding-left: 28px; font-size: .96rem; }
.tier__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D9860E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.tier--featured .tier__list li::before { background: rgba(245,166,35,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFD27A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq__item[open] { border-color: var(--gold-light); box-shadow: var(--shadow-sm); }
.faq__q { cursor: pointer; list-style: none; padding: 22px 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-family: var(--font-sans); font-weight: 400; font-size: 1.6rem; color: var(--gold-deep); transition: transform .2s var(--ease); line-height: 1; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 24px 24px; color: var(--muted); }
.faq__a p { margin: 0; }

/* ==========================================================================
   Case studies
   ========================================================================== */
.cases { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media (max-width: 760px){ .cases { grid-template-columns: 1fr; } }
.case { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case__top { padding: 28px 28px 0; }
.case__metric { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.02em; color: var(--gold-deep); line-height: 1; }
.case__body { padding: 16px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.case__sector { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.case__body p { color: var(--muted); }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.case__tags span { font-size: .74rem; background: var(--paper-3); border-radius: var(--pill); padding: 4px 10px; color: var(--muted); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-banner, .cta {
  position: relative; overflow: hidden; text-align: center; color: var(--white);
  background: linear-gradient(140deg, var(--ink), var(--ink-700));
  border-radius: var(--r-xl); padding: 70px 50px; margin: 0 auto;
}
.cta-banner::before, .cta::before { content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(245,166,35,.34), transparent 70%); }
.cta-banner::after, .cta::after { content: ""; position: absolute; left: -70px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(75,91,240,.30), transparent 70%); }
.cta-banner > *, .cta > * { position: relative; z-index: 1; }
.cta-banner h2, .cta h2 { color: var(--white); font-size: clamp(1.9rem,3vw,2.8rem); }
.cta-banner p, .cta p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 26px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Page header (interior)
   ========================================================================== */
.page-header {
  position: relative; overflow: hidden; color: var(--white); text-align: center;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(245,166,35,.18), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(75,91,240,.20), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink));
  padding: 84px 0 72px;
}
.page-header::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0); background-size: 30px 30px; mask-image: linear-gradient(180deg,#000,transparent); }
.page-header .container, .page-header .wrap { position: relative; z-index: 1; }
.page-header .eyebrow { color: var(--gold-light); justify-content: center; }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto; font-size: 1.15rem; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px){ .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper-2); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,166,35,.18); }
.field textarea { resize: vertical; min-height: 150px; }

/* ==========================================================================
   Blog (consumed by blog.js — keep class names)
   ========================================================================== */
.post-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .post-body { padding: 26px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.post-tag { display: inline-block; align-self: flex-start; background: var(--gold-soft); color: var(--gold-deep); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 4px 11px; border-radius: var(--pill); margin-bottom: 14px; }
.post-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); } .post-card h3 a:hover { color: var(--gold-deep); }
.post-card .post-meta { color: var(--muted); font-size: .85rem; margin-bottom: 10px; font-family: var(--font-mono); }
.post-card .post-excerpt { color: var(--muted); flex: 1; }
.post-card .read-more { margin-top: 14px; }
.post-article { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 50px clamp(24px,5vw,60px); margin: 40px auto; box-shadow: var(--shadow-sm); }
.post-article header { margin-bottom: 32px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.post-article h1 { font-size: clamp(1.9rem,2.5vw + 1rem,3rem); }
.post-article .post-meta { color: var(--muted); font-family: var(--font-mono); font-size: .9rem; }
.post-content { font-size: 1.08rem; line-height: 1.75; }
.post-content h2 { margin-top: 1.5em; } .post-content h3 { margin-top: 1.4em; }
.post-content blockquote { border-left: 4px solid var(--gold); padding: 4px 20px; margin: 1.4em 0; color: var(--muted); font-style: italic; background: var(--gold-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.post-content code { background: rgba(14,23,38,.07); padding: 2px 6px; border-radius: 4px; font-size: .92em; font-family: var(--font-mono); }
.post-content pre { background: var(--ink-900); color: var(--paper); padding: 18px 22px; border-radius: var(--r-sm); overflow-x: auto; font-size: .92rem; }
.post-content pre code { background: transparent; padding: 0; color: inherit; }
.post-content a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: var(--r-sm); margin: 1.5em 0; }
.post-content ul, .post-content ol { padding-left: 1.4em; } .post-content li { margin-bottom: .5em; }

.loading { text-align: center; padding: 60px 0; color: var(--muted); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* ----- Pagination ----- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.page-btn {
  min-width: 44px; height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--paper-2); color: var(--ink);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .15s var(--ease);
}
.page-btn:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.page-btn.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.page-btn.is-active:hover { transform: none; color: var(--white); }
.page-btn.is-disabled { opacity: .4; pointer-events: none; }
.page-btn.is-ellipsis { border: none; background: transparent; pointer-events: none; min-width: auto; padding: 0 2px; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.72); padding: 72px 0 30px; }
.site-footer h4 { color: var(--white); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.72); } .site-footer a:hover { color: var(--gold); }
.foot-wordmark { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem,7vw,5rem); letter-spacing: -.03em; color: var(--white); line-height: .9; margin-bottom: 36px; }
.foot-wordmark i { font-style: italic; color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 24px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .nav__name { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 320px; color: rgba(255,255,255,.6); }
.footer-list { list-style: none; padding: 0; margin: 0; } .footer-list li { margin-bottom: 10px; }
.footer-copy { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.5); font-family: var(--font-mono); }
.footer-copy .accent { color: var(--gold); }
.social-row { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.social-icon { width: 40px; height: 40px; display: grid; place-items: center; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; transition: background .2s var(--ease), color .2s, border-color .2s, transform .15s var(--ease); }
.social-icon:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }
.social-row.on-light .social-icon { color: var(--ink); border-color: var(--line); }
.social-row.on-light .social-icon:hover { background: var(--ink); color: var(--gold); border-color: var(--ink); }

/* ==========================================================================
   Scroll reveal + motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }

@media (prefers-reduced-motion: reduce){
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---- Accessibility ---- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
