/* JEGSPLUS SOLUTIONS - Design v4 "Editorial Motion" (Skiper UI x Animmaster inspired) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #F3F2ED;
  --bg-elevated: #FFFFFF;
  --ink: #101014;
  --surface: #FFFFFF;
  --surface-hover: #ECEBE4;
  --border: rgba(16, 16, 20, 0.10);
  --border-strong: rgba(16, 16, 20, 0.22);
  --text: #101014;
  --text-muted: #55555E;
  --text-faint: #8A8A93;
  --accent: #3B4FFF;
  --accent-2: #7C3AED;
  --gradient: linear-gradient(120deg, #3B4FFF, #7C3AED);
  --gradient-soft: linear-gradient(120deg, rgba(59,79,255,.08), rgba(124,58,237,.08));
  --pill-bg: rgba(255, 255, 255, 0.72);
  --panel-bg: rgba(255, 255, 255, 0.97);
  --stroke-text: rgba(16, 16, 20, 0.14);
  --shadow-card: 0 2px 10px rgba(16, 16, 20, 0.05);
  --shadow-lift: 0 24px 60px rgba(16, 16, 20, 0.16);
  --g1: linear-gradient(160deg, #3B4FFF, #24308F);
  --g2: linear-gradient(160deg, #7C3AED, #3B1A78);
  --g3: linear-gradient(160deg, #0EA5E9, #075A80);
  --g4: linear-gradient(160deg, #F97316, #93400B);
  --g5: linear-gradient(160deg, #10B981, #065F46);
  --g6: linear-gradient(160deg, #EC4899, #831848);
  --radius: 20px;
  --radius-sm: 12px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;
  --container: 1240px;
  --header-h: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B0B0E;
  --bg-elevated: #121218;
  --ink: #F2F2EF;
  --surface: #15151C;
  --surface-hover: #1D1D26;
  --border: rgba(242, 242, 239, 0.10);
  --border-strong: rgba(242, 242, 239, 0.22);
  --text: #F2F2EF;
  --text-muted: #A6A6B0;
  --text-faint: #6E6E78;
  --accent: #6E7BFF;
  --accent-2: #A78BFA;
  --gradient: linear-gradient(120deg, #6E7BFF, #A78BFA);
  --gradient-soft: linear-gradient(120deg, rgba(110,123,255,.12), rgba(167,139,250,.12));
  --pill-bg: rgba(18, 18, 24, 0.72);
  --panel-bg: rgba(16, 16, 22, 0.97);
  --stroke-text: rgba(242, 242, 239, 0.14);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 24px 60px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 16px; overflow-x: hidden;
  transition: background .4s, color .4s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; letter-spacing: -0.03em; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: rgba(59,79,255,.22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gradient); z-index: 2000; }

/* Buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
  min-height: 48px;
}
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59,79,255,.35); }
.btn-ghost { border: 1.5px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 14px; min-height: 40px; }

/* ---------- Floating pill header ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 1000; pointer-events: none; }
.header-inner {
  pointer-events: auto;
  max-width: 1200px; margin: 0 auto; padding: 10px 12px 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--pill-bg);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 1281px) { .header-inner { margin: 0 auto; } }
@media (max-width: 1280px) { .site-header { padding: 0 14px; } }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  transition: background .3s, transform .4s var(--ease);
}
.logo:hover .logo-mark { background: var(--accent); color: #fff; transform: rotate(-12deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--font-head); font-size: 16px; letter-spacing: .01em; }
.logo-text span { font-size: 9px; letter-spacing: .18em; color: var(--text-faint); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-trigger:hover, .nav-item.open .nav-trigger,
.nav-link.active, .nav-item.active .nav-trigger { color: var(--text); background: var(--surface-hover); }
.nav-trigger .chev { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.nav-item.open .nav-trigger .chev { transform: rotate(180deg); }

/* Rolling label (Skiper text roll) */
.roll { display: inline-block; overflow: hidden; height: 1.5em; line-height: 1.5em; }
.roll i { display: block; font-style: normal; transition: transform .35s var(--ease); }
.nav-link:hover .roll i, .nav-trigger:hover .roll i { transform: translateY(-1.5em); }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--text-muted);
  transition: color .2s, border-color .2s, transform .45s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(40deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* ---------- Mega menu (floating panel) ---------- */
.nav-item { position: static; }
.mega {
  position: absolute; left: 50%; top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-8px);
  width: min(1080px, calc(100vw - 40px));
  background: var(--panel-bg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  pointer-events: none;
}
.site-header { }
.header-inner { position: relative; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega-inner { padding: 34px; display: grid; grid-template-columns: 1fr 1fr 300px; gap: 36px; }
.mega-col h5 {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px; font-family: var(--font-body);
}
.mega-link { display: flex; gap: 14px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; margin: 0 -12px; transition: background .2s; }
.mega-link:hover { background: var(--surface-hover); }
.mega-link:hover .mega-link-title { color: var(--accent); }
.mega-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  background: var(--gradient-soft); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--accent);
}
.mega-icon svg { width: 19px; height: 19px; }
.mega-link-title { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; transition: color .2s; }
.mega-link-desc { font-size: 12.8px; color: var(--text-muted); margin-top: 1px; }
.mega-feature {
  border-radius: 18px; background: var(--ink); color: var(--bg);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; align-self: stretch;
  position: relative; overflow: hidden;
}
.mega-feature::after {
  content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: var(--gradient); opacity: .5; filter: blur(40px);
}
.mega-feature .eyebrow { color: var(--bg); opacity: .6; }
.mega-feature h4 { font-size: 19px; position: relative; z-index: 1; }
.mega-feature p { font-size: 13.5px; opacity: .7; position: relative; z-index: 1; }
.mega-feature .arrow-link { margin-top: auto; color: var(--bg); position: relative; z-index: 1; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 14px;
  border-bottom: 1.5px solid var(--border-strong); padding-bottom: 3px;
  transition: gap .25s var(--ease), border-color .25s, color .25s;
  width: fit-content;
}
.arrow-link:hover { gap: 14px; border-color: var(--accent); color: var(--accent); }
.arrow-link svg { width: 15px; height: 15px; }
.header-cta { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; border: 1px solid var(--border-strong); }
.nav-toggle svg { width: 21px; height: 21px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1024px) {
  .nav-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: 0; padding: calc(var(--header-h) + 10px) 24px 48px;
    background: var(--bg);
    overflow-y: auto;
    transform: translateY(-100%); transition: transform .45s var(--ease);
    display: block; z-index: -1;
  }
  body.nav-open .main-nav { transform: translateY(0); }
  body.nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; padding: 16px 12px; font-size: 20px; border-radius: 14px; }
  .mega {
    position: static; width: auto; opacity: 1; visibility: hidden;
    transform: none; background: none; border: none; box-shadow: none; backdrop-filter: none;
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), visibility .4s;
    pointer-events: auto;
  }
  .nav-item.open .mega { max-height: 1400px; visibility: visible; }
  .mega-inner { grid-template-columns: 1fr; gap: 18px; padding: 8px 10px 22px; }
  .mega-feature { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 0; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent;
  font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 34px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.slider { position: relative; min-height: 380px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.slide.active { position: relative; opacity: 1; visibility: visible; }
.slide-idx { font-family: var(--font-head); font-size: 13px; letter-spacing: .2em; color: var(--text-faint); margin-bottom: 18px; }
.slide h1 { font-size: clamp(46px, 8.2vw, 108px); font-weight: 600; max-width: 1050px; margin-bottom: 26px; text-transform: none; }
.slide h1 .serif { font-size: 1.02em; }
.slide .hero-sub { font-size: clamp(16px, 1.9vw, 19px); color: var(--text-muted); max-width: 560px; margin-bottom: 38px; }
.slide.active .s-up { animation: sUp .8s var(--ease) both; }
.slide.active .s-up:nth-child(2) { animation-delay: .08s; }
.slide.active .s-up:nth-child(3) { animation-delay: .16s; }
.slide.active .s-up:nth-child(4) { animation-delay: .24s; }
@keyframes sUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.slider-nav { display: flex; align-items: center; gap: 10px; margin: 52px 0 0; }
.slider-dot { position: relative; width: 44px; height: 3px; background: var(--border-strong); overflow: hidden; transition: width .3s var(--ease); }
.slider-dot.active { width: 84px; }
.slider-dot .fill { position: absolute; inset: 0; width: 0; background: var(--ink); }
.slider-dot.active .fill { animation: fillBar var(--slide-ms, 6000ms) linear forwards; }
@keyframes fillBar { from { width: 0; } to { width: 100%; } }

.hero-stats {
  margin-top: 64px; border-top: 1px solid var(--border-strong);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-stat { padding: 28px 24px 34px 0; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: none; }
.hero-stat b { display: block; font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; letter-spacing: -0.02em; }
.hero-stat small { color: var(--text-faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 768px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } .hero-stat { padding-left: 12px; } }

/* ---------- Giant outlined marquee ---------- */
.big-marquee { overflow: hidden; padding: 54px 0; border-block: 1px solid var(--border); }
.big-marquee .track { display: flex; gap: 0; width: max-content; animation: scroll 30s linear infinite; }
.big-marquee span {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(56px, 9vw, 130px); line-height: 1; white-space: nowrap; padding-right: 40px;
  color: transparent; -webkit-text-stroke: 1.5px var(--stroke-text);
}
.big-marquee span.fill-word { color: var(--text); -webkit-text-stroke: 0; }
.big-marquee .track:hover { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections (editorial) ---------- */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-elevated); border-block: 1px solid var(--border); }
.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; max-width: 780px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 20px; font-family: var(--font-body);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--text); }
.section-head.center .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--text); }
.section-head h2 { font-size: clamp(34px, 4.8vw, 60px); font-weight: 600; margin-bottom: 20px; }
.section-head h2 .serif { font-size: 1.04em; }
.section-head p { color: var(--text-muted); font-size: 17px; max-width: 640px; }
.section-head.center p { margin-inline: auto; }

/* ---------- ExpandOnHover gallery (skiper52) ---------- */
.xpand { display: flex; gap: 12px; height: 480px; }
.xpand-item {
  position: relative; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: flex .65s var(--ease), filter .65s;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.xpand:hover .xpand-item { filter: saturate(.7) brightness(.85); }
.xpand .xpand-item:hover { flex: 4.2; filter: none; }
.xpand-item::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.xpand-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%); }
.xpand-item .x-in { position: relative; z-index: 1; padding: 26px; }
.x-code { position: absolute; top: 22px; left: 24px; z-index: 1; font-family: var(--font-head); font-size: 13px; letter-spacing: .14em; opacity: .85; }
.x-icon { position: absolute; top: 48px; left: 24px; z-index: 1; width: 34px; height: 34px; opacity: .9; }
.x-icon svg { width: 100%; height: 100%; }
.x-title { font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.15; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xpand-item:hover .x-title { white-space: normal; }
.x-desc { font-size: 14px; opacity: 0; max-width: 340px; transform: translateY(12px); transition: opacity .5s .15s, transform .5s .15s var(--ease); margin-bottom: 14px; }
.x-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; opacity: 0; transform: translateY(12px); transition: opacity .5s .22s, transform .5s .22s var(--ease); border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.x-more svg { width: 14px; height: 14px; }
.xpand-item:hover .x-desc, .xpand-item:hover .x-more { opacity: 1; transform: none; }
.bg-g1 { background: var(--g1); } .bg-g2 { background: var(--g2); } .bg-g3 { background: var(--g3); }
.bg-g4 { background: var(--g4); } .bg-g5 { background: var(--g5); } .bg-g6 { background: var(--g6); }
@media (max-width: 900px) {
  .xpand { flex-direction: column; height: auto; }
  .xpand-item { flex: none; height: 88px; transition: height .55s var(--ease); }
  .xpand .xpand-item:hover, .xpand .xpand-item.tapped { height: 300px; flex: none; }
  .x-icon { display: none; }
}

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 14px; }
.bento-tile {
  position: relative; border-radius: var(--radius); padding: 30px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.bento-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.bento-tile.wide { grid-column: span 2; }
.bento-tile.tall { grid-row: span 2; }
.bento-tile.inkbox { background: var(--ink); color: var(--bg); border-color: transparent; }
.bento-tile.inkbox p { color: var(--bg); opacity: .65; }
.bento-tile.inkbox::after { content: ''; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; border-radius: 50%; background: var(--gradient); filter: blur(52px); opacity: .55; }
.bento-tile .card-icon { margin-bottom: auto; }
.bento-tile h3 { font-size: 21px; margin-bottom: 8px; position: relative; z-index: 1; }
.bento-tile p { color: var(--text-muted); font-size: 14.3px; position: relative; z-index: 1; }
.bento-num { position: absolute; top: 20px; right: 26px; font-family: var(--font-head); font-size: 15px; color: var(--text-faint); letter-spacing: .1em; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento-tile.wide { grid-column: span 2; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento-tile.wide { grid-column: span 1; } .bento-tile.tall { grid-row: span 1; } }

/* ---------- Cards (inner pages) ---------- */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  position: relative; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  padding: 36px 30px;
  transition: transform .35s var(--ease), box-shadow .35s, background .35s;
  overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(59,79,255,.07), transparent 65%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; margin-bottom: 24px;
  transition: transform .35s var(--ease), background .35s;
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.06); background: var(--accent); color: #fff; }
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14.6px; margin-bottom: 20px; }
.card .arrow-link { font-size: 13.5px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 44px; } }
.feature-list { display: flex; flex-direction: column; }
.feature-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.feature-item:first-child { border-top: 1px solid var(--border); }
.feature-item .card-icon { width: 46px; height: 46px; flex-shrink: 0; margin: 0; border-radius: 12px; }
.feature-item .card-icon svg { width: 20px; height: 20px; }
.feature-item h4 { font-size: 18px; margin-bottom: 5px; }
.feature-item p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Sticky stacking process cards ---------- */
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-card {
  position: sticky;
  border-radius: var(--radius); border: 1px solid var(--border-strong);
  padding: 46px 44px; min-height: 260px;
  display: grid; grid-template-columns: 120px 1fr; gap: 30px; align-items: start;
  background: var(--bg-elevated);
}
.stack-card:nth-child(1) { top: calc(var(--header-h) + 10px); }
.stack-card:nth-child(2) { top: calc(var(--header-h) + 28px); }
.stack-card:nth-child(3) { top: calc(var(--header-h) + 46px); }
.stack-card:nth-child(4) { top: calc(var(--header-h) + 64px); }
.stack-card.ink { background: var(--ink); color: var(--bg); }
.stack-card.ink p { color: var(--bg); opacity: .65; }
.stack-card .num {
  font-family: var(--font-head); font-size: clamp(44px, 6vw, 76px); font-weight: 700; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px currentColor; opacity: .5;
}
.stack-card h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.stack-card p { color: var(--text-muted); font-size: 15.5px; max-width: 640px; }
@media (max-width: 640px) { .stack-card { grid-template-columns: 1fr; padding: 30px 24px; gap: 10px; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 90px 56px; text-align: center;
  background: var(--ink); color: var(--bg);
}
.cta-band::before {
  content: ''; position: absolute; left: 50%; bottom: -180px; transform: translateX(-50%);
  width: 560px; height: 380px; border-radius: 50%;
  background: var(--gradient); filter: blur(90px); opacity: .55;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(32px, 5vw, 58px); margin-bottom: 18px; }
.cta-band p { opacity: .65; max-width: 560px; margin: 0 auto 40px; font-size: 16.5px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--accent); color: #fff; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.35); color: var(--bg); }
[data-theme="dark"] .cta-band .btn-ghost { border-color: rgba(16,16,20,.4); }
.cta-band .btn-ghost:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 640px) { .cta-band { padding: 60px 24px; } }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 60px) 0 70px; border-bottom: 1px solid var(--border); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs svg { width: 12px; height: 12px; }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 600; max-width: 900px; margin-bottom: 24px; }
.page-hero .hero-sub { font-size: clamp(16px, 1.9vw, 19px); color: var(--text-muted); max-width: 620px; margin-bottom: 36px; }

/* ---------- Checklist ---------- */
.check-list { display: grid; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-muted); font-size: 15px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.check-list li:first-child { border-top: 1px solid var(--border); }
.check-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.check-list b { color: var(--text); font-weight: 600; font-family: var(--font-head); }

/* ---------- Stats ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-strong); }
@media (max-width: 900px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { padding: 32px 24px 36px 0; border-right: 1px solid var(--border); background: none; }
.stat-tile:last-child { border-right: none; }
.stat-tile b { display: block; font-family: var(--font-head); font-size: clamp(32px, 4vw, 48px); font-weight: 600; color: var(--text); }
.stat-tile small { color: var(--text-faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.form-field label span { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
  background: transparent; border: none; border-bottom: 1.5px solid var(--border-strong);
  border-radius: 0; padding: 12px 2px;
  color: var(--text); font: inherit; font-size: 16px;
  transition: border-color .25s; min-height: 48px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8A93' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; }

/* ---------- Info card / tags ---------- */
.info-card { border-radius: var(--radius); background: var(--ink); color: var(--bg); padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .card-icon { width: 44px; height: 44px; margin: 0; flex-shrink: 0; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--bg); }
[data-theme="dark"] .info-row .card-icon { background: rgba(16,16,20,.25); }
.info-row .card-icon svg { width: 20px; height: 20px; }
.info-row b { display: block; font-size: 15px; margin-bottom: 2px; font-family: var(--font-head); }
.info-row a, .info-row span { opacity: .7; font-size: 14.5px; color: var(--bg); }
.info-row a:hover { opacity: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; font-family: var(--font-head); border: 1px solid var(--border-strong); color: var(--text-muted); transition: all .25s; }
.tag:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Marquee band (small) ---------- */
.marquee-band { border-block: 1px solid var(--border); padding: 22px 0; overflow: hidden; }
.marquee { display: flex; gap: 60px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; color: var(--text-muted); font-family: var(--font-head); font-size: 15px; font-weight: 500; white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
.marquee span svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elevated); padding: 80px 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 60px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; margin: 18px 0 24px; max-width: 300px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text-muted);
  transition: all .25s;
}
.social-row a:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }
.footer-col h5 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; font-family: var(--font-body); }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 14.3px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint);
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--accent); }
.foot-giant {
  font-family: var(--font-head); font-weight: 700; text-align: center;
  font-size: clamp(70px, 14.5vw, 218px); line-height: .82; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--stroke-text);
  user-select: none; padding-top: 30px; margin-bottom: -10px;
  transition: color .5s;
}
.foot-giant:hover { color: var(--text); -webkit-text-stroke: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .big-marquee .track { animation: none; flex-wrap: wrap; width: auto; }
  .reveal, .slide.active .s-up { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  .slider-dot.active .fill { animation: none; width: 100%; }
}

/* ---------- Utility ---------- */
.mt-60 { margin-top: 64px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------- Imagery (v4.1) ---------- */
.slide-grid { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center; }
.slide-grid h1 { font-size: clamp(42px, 5.6vw, 84px); }
.slide-media { border-radius: 24px; overflow: hidden; height: 430px; border: 1px solid var(--border); }
.slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 6s var(--ease); }
.slide.active .slide-media img { transform: scale(1.1); }
.slide.active .slide-media { animation: sUp .9s .12s var(--ease) both; }
@media (max-width: 1024px) { .slide-grid { grid-template-columns: 1fr; } .slide-media { display: none; } }

.page-img { padding: 48px 0 0; }
.page-img img { width: 100%; height: clamp(240px, 40vw, 440px); object-fit: cover; border-radius: 24px; border: 1px solid var(--border); display: block; }

.split-img { border-radius: 20px; overflow: hidden; margin-bottom: 28px; border: 1px solid var(--border); }
.split-img img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.split-img:hover img { transform: scale(1.05); }

/* ---------- v4.2: eyebrow dots, panel imagery, certificate ---------- */
.eyebrow::before, .section-head.center .eyebrow::after { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.xpand-item .x-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .45; }
.xpand-item::after { z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 80%); }
.xpand-item .x-in, .xpand-item .x-code, .xpand-item .x-icon { z-index: 2; }
.xpand-item:hover .x-img { opacity: .6; }
.cert-frame { margin: 0; border: 1px solid var(--border-strong); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lift); background: #fff; }
.cert-frame img { width: 100%; display: block; }

/* ---------- v4.4: editorial labels, process imagery, legal pages ---------- */
.eyebrow::before, .section-head.center .eyebrow::after {
  width: auto; height: auto; border-radius: 0; background: none;
  color: var(--text-faint); font-weight: 600;
}
.eyebrow::before { content: '['; }
.eyebrow::after { content: ']'; width: auto; height: auto; background: none; color: var(--text-faint); font-weight: 600; }
.stack-card { grid-template-columns: 96px 1fr 300px; }
.stack-img { border-radius: 14px; overflow: hidden; height: 190px; border: 1px solid var(--border); }
.stack-card.ink .stack-img { border-color: rgba(255,255,255,.15); }
.stack-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .stack-card { grid-template-columns: 80px 1fr; } .stack-img { display: none; } }
@media (max-width: 640px) { .stack-card { grid-template-columns: 1fr; } }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); font-size: 15.5px; margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; }
.prose a { color: var(--accent); }
.prose .updated { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 34px; }

/* ---------- v4.4b: mobile menu fix ---------- */
@media (max-width: 1024px) {
  .header-inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--panel-bg); position: relative; z-index: 10; }
  .main-nav { z-index: 5; }
}
