/* ---------- Comvera Trading: Theme ---------- */
:root {
  --bg: #faf8f5; --bg-alt: #f3eee8; --surface: #ffffff;
  --text: #1a1530; --muted: #625c72;
  --primary: #e2472b; --primary-dark: #bf371f; --accent: #ffb627;
  --border: #e8e1d8; --dark: #1a1530; --dark-text: #f6f3fb;
  --radius: 14px; --shadow: 0 12px 36px rgba(26,21,48,.09); --shadow-lg: 0 24px 60px rgba(26,21,48,.17);
  --font-head: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif; --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
p { color: var(--muted); }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.15em; flex-shrink: 0; }
.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--dark-text); padding-top: 8rem; }
.section-dark p { color: #c9c4d8; }
.section-dark h2 { color: var(--dark-text); }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.eyebrow { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--primary); margin-bottom: .8rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-dark .eyebrow { color: var(--accent); }
h2.line { position: relative; padding-bottom: .7rem; }
h2.line::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease) .25s; }
.visible h2.line::after { transform: scaleX(1); }
.text-link { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Progress bar ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 100; transition: width .1s linear; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body); }
.btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(226,71,43,.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(226,71,43,.3); }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: #fff; transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--accent); color: var(--dark); transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,245, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 40px; height: 40px; display: block; border-radius: 11px; overflow: hidden; box-shadow: 0 6px 14px rgba(226,71,43,.25); transition: transform .4s var(--ease), box-shadow .4s; }
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text span { color: var(--primary); }
.nav { display: flex; gap: 1.8rem; align-items: center; font-weight: 600; font-size: .94rem; }
.nav a { position: relative; transition: color .2s; }
.nav a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--primary); border-radius: 2px; transition: width .3s var(--ease); }
.nav a:not(.nav-cta):hover::after, .nav a.active::after { width: 100%; }
.nav-cta { background: var(--primary); color: #fff; padding: .6rem 1.25rem; border-radius: 999px; transition: background .3s, transform .3s; }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--text); margin-inline: auto; transition: .3s; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 6rem 0 5rem; overflow: hidden; min-height: calc(100vh - 74px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%; filter: blur(50px); opacity: .6; animation: morph 16s ease-in-out infinite alternate; }
.blob-1 { width: 560px; height: 560px; background: radial-gradient(circle, #ffd2c6, transparent 70%); top: -140px; right: -100px; }
.blob-2 { width: 460px; height: 460px; background: radial-gradient(circle, #ffe9b0, transparent 70%); bottom: -160px; left: -140px; animation-delay: -7s; }
@keyframes morph { 0% { border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%; transform: translate(0,0) rotate(0); } 50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 100% { border-radius: 30% 70% 50% 50% / 50% 60% 40% 50%; transform: translate(40px,-30px) rotate(12deg); } }
.stitch { position: absolute; inset: 0; width: 100%; height: 100%; }
.stitch-path { fill: none; stroke: var(--primary); stroke-width: 2; stroke-dasharray: 10 14; opacity: .22; animation: dash 30s linear infinite; }
.stitch-path-2 { stroke: var(--accent); animation-duration: 42s; animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -1200; } }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; position: relative; }
.hero-content .reveal { transition-delay: calc(var(--i, 0) * 120ms); }
.rotator { display: inline-block; color: var(--primary); position: relative; z-index: 0; transform-style: preserve-3d; }
.rotator::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .32em; background: var(--accent); opacity: .35; z-index: -1; border-radius: 3px; }
.rotator.out { animation: wordOut .35s var(--ease) forwards; }
.rotator.in { animation: wordIn .5s var(--ease) forwards; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-18px) rotateX(70deg); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(18px) rotateX(-70deg); } to { opacity: 1; transform: none; } }
.lead { font-size: 1.12rem; margin: 1.4rem 0 2.2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 2.5rem; margin-top: 3.2rem; flex-wrap: wrap; }
.hero-stats strong { font-family: var(--font-head); font-size: 2.1rem; color: var(--primary); display: block; line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-visual { position: relative; height: 520px; perspective: 1000px; }
@keyframes float { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.hero-badge { position: absolute; left: 44%; top: 46%; background: var(--surface); border-radius: 14px; padding: .75rem 1rem; display: flex; align-items: center; gap: .6rem; box-shadow: var(--shadow-lg); font-size: .78rem; font-weight: 700; line-height: 1.2; color: var(--text); z-index: 2; transform: translate(var(--tx,0), var(--ty,0)); transition: transform .25s ease-out; animation: pulse 3s ease-in-out infinite; }
.hero-badge .icon { font-size: 1.6rem; color: var(--primary); }
@keyframes pulse { 0%, 100% { box-shadow: var(--shadow-lg); } 50% { box-shadow: 0 24px 60px rgba(226,71,43,.3); } }
.ring { position: absolute; fill: none; stroke: var(--accent); stroke-width: 1; opacity: .5; transform: translate(var(--tx,0), var(--ty,0)); transition: transform .25s ease-out; }
.ring-1 { width: 140px; height: 140px; top: -40px; right: 20%; animation: spin 40s linear infinite; }
.ring-2 { width: 220px; height: 220px; bottom: -70px; left: -40px; animation: spin 60s linear infinite reverse; }
@keyframes spin { to { rotate: 360deg; } }
.scroll-hint { position: absolute; bottom: 1.4rem; left: 50%; translate: -50% 0; width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 12px; opacity: .6; }
.scroll-hint span { position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 4px; height: 8px; border-radius: 2px; background: var(--primary); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; translate: -50% 0; } 40% { opacity: 1; } 100% { opacity: 0; translate: -50% 14px; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); background: var(--surface); overflow: hidden; padding: 1rem 0; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: scroll 26s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: 1.25rem; font-style: italic; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: '✦'; color: var(--accent); font-size: .8rem; font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4.5rem; align-items: center; }
.about-grid p + p { margin-top: 1rem; }
.about-card { position: relative; }
.about-art { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow-lg); display: block; object-fit: cover; }
.draw * { stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 2.4s var(--ease) .3s; }
.visible .draw * { stroke-dashoffset: 0; }
.about-float { position: absolute; right: -1.5rem; bottom: -1.5rem; background: var(--surface); border-radius: 14px; padding: 1.1rem 1.4rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .8rem; font-size: .8rem; font-weight: 600; line-height: 1.25; color: var(--muted); animation: float 6s ease-in-out infinite; }
.about-float strong { font-family: var(--font-head); font-size: 2.4rem; color: var(--primary); line-height: 1; }
.checklist { list-style: none; margin-top: 1.5rem; display: grid; gap: .7rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; color: var(--text); font-weight: 600; }
.checklist .icon { color: #fff; background: var(--primary); border-radius: 50%; padding: 4px; width: 22px; height: 22px; stroke-width: 2.4; margin-top: 2px; }

/* ---------- Cards (products / industries) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.industry { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem; transition: box-shadow .4s var(--ease), border-color .4s; display: grid; gap: .3rem; align-content: start; }
.product { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 0; display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), border-color .4s, transform .35s var(--ease); }
.product::before, .industry::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(226,71,43,.05), rgba(255,182,39,.08)); opacity: 0; transition: opacity .4s; pointer-events: none; }
.product::after, .industry::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); transform: translateX(-130%); transition: transform .8s var(--ease); pointer-events: none; }
.product:hover, .industry:hover { box-shadow: var(--shadow-lg); border-color: rgba(226,71,43,.25); }
.product:hover::before, .industry:hover::before { opacity: 1; }
.product:hover::after, .industry:hover::after { transform: translateX(130%); }

.product-thumb { position: relative; height: 190px; overflow: hidden; background: #1a1530; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.product:hover .product-thumb img { transform: scale(1.08); }
.product-icon-badge { position: absolute; bottom: 12px; right: 12px; width: 40px; height: 40px; border-radius: 12px; background: rgba(26,21,48, 0.88); color: var(--accent); display: grid; place-items: center; font-size: 1.25rem; backdrop-filter: blur(8px); border: 1px solid rgba(255,182,39, 0.4); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.product-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-body h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.product-body p { font-size: .92rem; margin-bottom: auto; }
.product-body .card-link { margin-top: 1rem; }

.industry-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(226,71,43,.1), rgba(255,182,39,.18)); color: var(--primary); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.2rem; transition: transform .4s var(--ease), background .4s, color .4s; }
.industry:hover .industry-icon { transform: rotate(-8deg) scale(1.1); background: var(--primary); color: #fff; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 700; color: var(--primary); font-size: .9rem; }
.card-link .icon { transition: transform .3s var(--ease); }
.product:hover .card-link .icon { transform: translateX(4px); }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .35s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ---------- Process ---------- */
.steps-wrap { position: relative; }
.steps-line { position: absolute; top: 34px; left: 0; width: 100%; height: 2px; overflow: visible; }
.steps-line path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2s var(--ease) .2s; }
.steps-wrap.visible .steps-line path { stroke-dashoffset: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; position: relative; }
.step-no { width: 68px; height: 68px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.4rem; color: var(--primary); margin-bottom: 1.1rem; position: relative; transition: transform .4s var(--ease), background .4s, color .4s; }
.step-no::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed var(--accent); opacity: 0; transition: opacity .4s; animation: spin 20s linear infinite; }
.steps li:hover .step-no { transform: scale(1.08); background: var(--primary); color: #fff; border-color: var(--primary); }
.steps li:hover .step-no::before { opacity: .7; }

/* ---------- Capabilities ---------- */
.capability-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.capability-grid > div > p { margin-bottom: 1rem; }
.capability-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cap-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.2rem; text-align: center; transition: box-shadow .4s, transform .4s var(--ease); }
.cap-stat:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cap-stat strong { font-family: var(--font-head); font-size: 2rem; color: var(--primary); display: block; line-height: 1; margin-bottom: .3rem; }
.cap-stat span { font-size: .8rem; color: var(--muted); }
.ring-stat { width: 100px; height: 100px; margin: 0 auto .8rem; rotate: -90deg; }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 6; }
.ring-fg { fill: none; stroke: url(#g-primary); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.visible .ring-fg { stroke-dashoffset: calc(339.3 * (1 - var(--p, 1))); }

/* ---------- Why Us (dark) ---------- */
.wave { position: absolute; left: 0; width: 100%; height: 80px; }
.wave-top { top: -1px; fill: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.feature { position: relative; padding: 2rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: background .4s, transform .4s var(--ease), border-color .4s; overflow: hidden; }
.feature::before { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,182,39,.35), transparent 70%); top: -60px; right: -60px; opacity: 0; transition: opacity .5s; }
.feature:hover { background: rgba(255,255,255,.07); transform: translateY(-6px); border-color: rgba(255,182,39,.4); }
.feature:hover::before { opacity: 1; }
.feature .icon { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; transition: transform .4s var(--ease); }
.feature:hover .icon { transform: scale(1.15) rotate(-6deg); }
.feature h3 { color: var(--accent); }

/* ---------- Testimonials ---------- */
.slider { position: relative; max-width: 820px; margin-inline: auto; text-align: center; padding: 3rem 2rem; background: var(--surface); border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.quote-mark { position: absolute; top: -1.4rem; left: 50%; translate: -50% 0; font-size: 3rem; color: var(--accent); background: var(--bg); padding: .3rem; border-radius: 50%; }
.slider-track { position: relative; min-height: 200px; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateX(30px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
.slide.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.slide p { font-family: var(--font-head); font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--text); line-height: 1.5; font-style: italic; }
.slide footer { margin-top: 1.5rem; display: grid; gap: .2rem; }
.slide footer strong { color: var(--primary); }
.slide footer span { font-size: .88rem; color: var(--muted); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2rem; }
.slider-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1.4rem; cursor: pointer; transition: all .3s var(--ease); line-height: 1; }
.slider-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.08); }
.slider-dots { display: flex; gap: .5rem; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; transition: all .3s var(--ease); padding: 0; }
.slider-dots button.active { background: var(--primary); width: 26px; border-radius: 5px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 1.4rem; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); font-size: 1.2rem; color: var(--primary); transition: transform .3s var(--ease), background .3s, color .3s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq details p { padding-bottom: 1.2rem; animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; padding: 4.5rem 0; }
.cta-art { position: absolute; right: -80px; top: 50%; translate: 0 -50%; width: 380px; height: 380px; animation: spin 50s linear infinite; }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.8); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info { font-style: normal; margin-top: 1.5rem; display: grid; gap: .75rem; }
.contact-info a { color: var(--primary); font-weight: 600; }
.form { background: var(--surface); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); display: grid; gap: 1rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 700; }
.form input, .form textarea { font: inherit; padding: .8rem .95rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); transition: border-color .2s, box-shadow .2s, transform .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(226,71,43,.12); }
.form input.invalid, .form textarea.invalid { border-color: #c0392b; animation: shake .4s; }
@keyframes shake { 0%, 100% { translate: 0; } 25% { translate: -4px; } 75% { translate: 4px; } }
.form-note { font-size: .9rem; min-height: 1.2em; }
.form-note.ok { color: #2e7d4f; }
.form-note.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 4.5rem 0 1.5rem; position: relative; }
.site-footer p { color: #aaa5bd; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { color: var(--dark-text); margin-bottom: 1rem; }
.footer-brand .brand-text span { color: var(--accent); }
.footer-brand p { font-size: .92rem; max-width: 300px; }
.footer-col h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 1.1rem; color: var(--accent); }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col ul a { font-size: .92rem; color: #c9c4d8; transition: color .2s, padding-left .2s; }
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
.footer-contact address { font-style: normal; display: grid; gap: .6rem; font-size: .92rem; }
.footer-contact a { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; padding-top: 1.5rem; font-size: .85rem; }
.footer-bottom-links { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a { color: #c9c4d8; }
.footer-bottom-links a:hover { color: #fff; }
.back-top { color: var(--accent) !important; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 1.5rem; bottom: 1.5rem; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); border: 0; box-shadow: var(--shadow-lg); display: grid; place-items: center; cursor: pointer; opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .4s, translate .4s var(--ease), background .3s; z-index: 60; color: var(--primary); }
.back-to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.back-to-top:hover { background: var(--primary); color: #fff; }
.back-to-top > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.btt-ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 132; stroke-dashoffset: var(--off, 132); transition: stroke-dashoffset .1s linear; }
.back-to-top .icon { font-size: 1.3rem; stroke-width: 2.2; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--bg-alt); padding: 4rem 0 3rem; border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-meta { font-size: .85rem; margin-top: .75rem; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 4rem; align-items: start; }
.legal-sidebar { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.legal-sidebar h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 1rem; }
.legal-sidebar ul { list-style: none; display: grid; gap: .5rem; }
.legal-sidebar a { font-size: .9rem; color: var(--muted); display: block; padding: .3rem 0; border-left: 2px solid transparent; padding-left: .75rem; transition: all .2s; }
.legal-sidebar a:hover, .legal-sidebar a.active { color: var(--primary); border-left-color: var(--primary); }
.legal-content { max-width: 760px; }
.legal-intro { font-size: 1.08rem; color: var(--text); margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.45rem; margin: 2.25rem 0 .75rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.25rem; color: var(--muted); display: grid; gap: .5rem; }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-contact { margin-top: 3rem; padding: 1.75rem; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border); }
.legal-contact h2 { margin-top: 0; }
.legal-contact p:last-child { margin-bottom: 0; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal-left { translate: -36px 0; }
.reveal-right { translate: 36px 0; }
.reveal-scale { translate: 0 0; scale: .94; }
.reveal.visible { opacity: 1; translate: 0 0; scale: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-visual { height: 340px; margin-top: 1rem; }
  .about-float { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid, .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .legal-grid { grid-template-columns: 1fr; gap: 2rem; }
  .legal-sidebar { position: static; }
  .steps-line { display: none; }
  .cta-art { display: none; }
}
@media (max-width: 720px) {
  .nav { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem 1rem 1rem; display: none; }
  .nav.open { display: flex; animation: fadeDown .3s var(--ease); }
  .nav a { padding: .8rem 0; }
  .nav-cta { text-align: center; margin-top: .5rem; justify-content: center; display: flex; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .section-dark { padding-top: 6rem; }
  .hero { padding: 3rem 0 4rem; }
  .scroll-hint { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .slider { padding: 2.5rem 1.25rem; }
}
/* ---------- Comvera: type refinements ---------- */
h1 { letter-spacing: -.035em; }
h2 { letter-spacing: -.028em; }
h3 { font-weight: 700; letter-spacing: -.012em; }
.marquee-track span { font-weight: 700; font-style: normal; text-transform: uppercase; font-size: .92rem; letter-spacing: .16em; }
.slide p { font-weight: 600; font-style: normal; letter-spacing: -.012em; }
.hero-stats strong, .cap-stat strong, .about-float strong, .step-no { font-weight: 800; letter-spacing: -.02em; }

/* ---------- Hero photo collage ---------- */
.shot { position: absolute; margin: 0; overflow: hidden; border-radius: 22px; background: var(--dark); box-shadow: var(--shadow-lg); border: 4px solid var(--surface); transform: translate(var(--tx,0), var(--ty,0)); transition: transform .25s ease-out; will-change: transform; }
.shot img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 20s ease-in-out infinite alternate; }
.shot::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,21,48,.7), rgba(26,21,48,0) 55%); z-index: 1; pointer-events: none; }
.shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.3) 50%, rgba(255,255,255,0) 60%); transform: translateX(-120%); animation: shine 7s ease-in-out infinite; z-index: 2; pointer-events: none; }
.shot figcaption { position: absolute; left: 1rem; bottom: .85rem; z-index: 3; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: .01em; display: flex; align-items: center; gap: .45rem; }
.shot figcaption::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,182,39,.3); }
.shot-1 { width: 60%; height: 64%; top: 0; left: 0; animation: float 8s ease-in-out infinite; }
.shot-2 { width: 37%; height: 42%; top: 7%; right: 0; animation: float 8s ease-in-out -2.6s infinite; }
.shot-2 img { animation-delay: -6s; }
.shot-2::after { animation-delay: 2s; }
.shot-3 { width: 56%; height: 42%; top: 55%; left: 33%; z-index: 2; animation: float 8s ease-in-out -5.2s infinite; }
.shot-3 img { animation-delay: -12s; }
.shot-3::after { animation-delay: 4s; }
@keyframes kenburns { from { scale: 1; translate: 0 0; } to { scale: 1.14; translate: -2% -2%; } }
.hero-badge { left: 2%; top: 72%; z-index: 3; }
.hero-chip { position: absolute; right: 0; top: 45%; z-index: 3; background: var(--dark); color: #fff; border-radius: 999px; padding: .55rem 1rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em; display: flex; align-items: center; gap: .5rem; box-shadow: var(--shadow-lg); transform: translate(var(--tx,0), var(--ty,0)); transition: transform .25s ease-out; }
.hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: ping 2s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(61,220,151,0); } }
.hero-dots { position: absolute; right: -18px; bottom: -6px; width: 150px; height: 150px; background-image: radial-gradient(var(--primary) 1.6px, transparent 1.7px); background-size: 16px 16px; opacity: .28; z-index: 0; transform: translate(var(--tx,0), var(--ty,0)); }

/* ---------- About photo ---------- */
.about-visual { position: relative; z-index: 0; }
.about-art { aspect-ratio: 4 / 3.4; }
.about-card::before { content: ''; position: absolute; left: -18px; top: -18px; width: 44%; height: 44%; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: .9; z-index: -1; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.pill-list li { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: .4rem .95rem; font-size: .8rem; font-weight: 700; color: var(--text); transition: border-color .3s, color .3s, translate .3s; }
.pill-list li:hover { border-color: var(--primary); color: var(--primary); translate: 0 -2px; }

/* ---------- Product cards (photo) ---------- */
.product-grid { grid-template-columns: repeat(4, 1fr); }
.product-thumb { height: auto; aspect-ratio: 4 / 3; }
.product-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,21,48,.45), transparent 55%); pointer-events: none; }
.product-icon-badge { z-index: 1; }
.product-body { padding: 1.3rem 1.3rem 1.5rem; }
.product-body h3 { font-size: 1.1rem; }

/* ---------- Channels ---------- */
.industry-grid { grid-template-columns: repeat(3, 1fr); }
.industry-tag { position: absolute; top: 1.4rem; right: 1.4rem; font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .1em; color: var(--primary); background: rgba(226,71,43,.08); border-radius: 999px; padding: .25rem .7rem; }

/* ---------- Services (accordion) ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4.5rem; align-items: center; }
.services-photo { position: relative; margin-top: 2rem; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.services-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.services-photo:hover img { transform: scale(1.06); }
.services-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.services-photo .draw path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 8 9; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.2s var(--ease) .4s; animation: dash 40s linear infinite; }
.visible .services-photo .draw path { opacity: .9; }
.services-photo .draw circle { fill: var(--accent); stroke: #fff; stroke-width: 2; stroke-dasharray: none; stroke-dashoffset: 0; }
.accordion { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem 1.6rem; box-shadow: var(--shadow); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: 0; }
.acc-btn { width: 100%; background: none; border: 0; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; text-align: left; padding: 1.15rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; transition: color .3s; }
.acc-btn:hover, .acc-item.open .acc-btn { color: var(--primary); }
.acc-title { display: flex; align-items: center; gap: .85rem; }
.acc-title .icon { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: rgba(226,71,43,.09); color: var(--primary); transition: background .3s, color .3s, transform .4s var(--ease); }
.acc-item.open .acc-title .icon { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.acc-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; background: currentColor; border-radius: 2px; transition: transform .3s; }
.acc-icon::before { width: 14px; height: 2px; top: 6px; }
.acc-icon::after { width: 2px; height: 14px; left: 6px; }
.acc-item.open .acc-icon::after { transform: rotate(90deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc-panel p { padding: 0 0 1.25rem 3.4rem; font-size: .96rem; }
.acc-item.open .acc-panel { max-height: 240px; }

/* ---------- Photo bands ---------- */
.photo-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 6rem 0; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 32s ease-in-out infinite alternate; }
.photo-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(26,21,48,.95) 0%, rgba(26,21,48,.84) 50%, rgba(226,71,43,.6) 100%); }
.photo-band h2 { color: #fff; }
.photo-band p { color: rgba(255,255,255,.8); }
.photo-band .eyebrow { color: var(--accent); }
.cta-band.photo-band { background: none; padding: 5.5rem 0; }
.cta-band.photo-band::before { background: linear-gradient(110deg, rgba(191,55,31,.96) 0%, rgba(226,71,43,.9) 45%, rgba(26,21,48,.72) 100%); }
.cta-band.photo-band p { max-width: 560px; }

/* ---------- Stat strip (photo band) ---------- */
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 4rem; flex-wrap: wrap; margin-bottom: 3rem; }
.band-head h2 { max-width: 640px; margin-bottom: 0; }
.band-head > p { max-width: 340px; font-size: .98rem; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.2); }
.stat-cell { position: relative; padding: 1.9rem 1.8rem 2.1rem; transition: background .4s; }
.stat-cell + .stat-cell { border-left: 1px solid rgba(255,255,255,.12); }
.stat-cell:hover { background: rgba(255,255,255,.07); }
.stat-cell::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); transition-delay: calc(.3s + var(--n, 0) * .15s); }
.visible .stat-cell::before { transform: scaleX(1); }
.stat-kicker { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.stat-kicker .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: var(--accent); transition: transform .4s var(--ease), background .3s, color .3s; }
.stat-cell:hover .stat-kicker .icon { transform: rotate(-10deg) scale(1.08); background: var(--accent); color: var(--dark); }
.stat-figure { display: flex; align-items: center; gap: .6rem; margin: 1.5rem 0 .6rem; font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 5.6vw, 4.4rem); line-height: 1; letter-spacing: -.05em; color: #fff; }
.stat-figure span { padding-right: .05em; background: linear-gradient(180deg, #fff 35%, rgba(255,255,255,.55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-figure small { font-family: var(--font-body); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1; color: var(--dark); background: var(--accent); border-radius: 999px; padding: .42rem .7rem; }
.stat-cell p { font-size: .93rem; max-width: 24ch; color: rgba(255,255,255,.78); }
@media (max-width: 900px) {
  .stat-strip { grid-template-columns: 1fr 1fr; border-radius: 22px; }
  .stat-cell:nth-child(odd) { border-left: 0; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .band-head { margin-bottom: 2.25rem; }
}
@media (max-width: 520px) {
  .stat-cell { padding: 1.3rem 1.1rem 1.4rem; }
  .stat-kicker .icon { width: 32px; height: 32px; padding: 7px; }
  .stat-figure { margin: 1rem 0 .4rem; font-size: 2.6rem; }
  .stat-figure small { font-size: .62rem; padding: .34rem .55rem; }
  .stat-cell p { font-size: .84rem; }
}

/* ---------- Form select and contact points ---------- */
.form select { font: inherit; padding: .8rem .95rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(226,71,43,.12); }
.form select.invalid { border-color: #c0392b; animation: shake .4s; }
.contact-points { list-style: none; margin-top: 1.75rem; display: grid; gap: .9rem; }
.contact-points li { display: flex; gap: .85rem; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.contact-points .icon { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: rgba(226,71,43,.09); color: var(--primary); }
.contact-points strong { display: block; color: var(--text); }
.cap-stat strong span { font-size: inherit; color: inherit; }

/* ---------- Comvera responsive ---------- */
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { height: 420px; }
  .about-card::before { left: -10px; top: -10px; }
}
@media (max-width: 720px) {
  .industry-grid { grid-template-columns: 1fr; }
  .photo-band { padding: 4rem 0; }
  .hero-visual { height: 360px; }
  .hero-dots { display: none; }
  .acc-panel p { padding-left: 0; }
  .accordion { padding: .25rem 1.1rem; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-chip { font-size: .68rem; padding: .45rem .8rem; }
  .hero-stats { gap: 1.25rem; margin-top: 2.4rem; }
  .hero-stats span { font-size: .78rem; }
}

/* ---------- Bento stats ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bento-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; min-height: 236px; padding: 1.4rem 1.5rem 1.5rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(26,21,48,.04); }
.bento-card.reveal { transition: opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s; }
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(226,71,43,.3); }
.bento-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.bento-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; background: rgba(226,71,43,.1); color: var(--primary); transition: transform .4s var(--ease); }
.bento-card:hover .bento-ico { transform: rotate(-8deg) scale(1.08); }
.bento-tag { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .28rem .7rem; }
.bento-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 4.4vw, 3.4rem); letter-spacing: -.045em; line-height: 1; color: var(--text); display: flex; align-items: baseline; gap: .2rem; }
.bento-num small { font-size: .42em; font-weight: 700; letter-spacing: -.01em; color: var(--primary); }
.bento-label { margin-top: .45rem; font-size: .93rem; color: var(--muted); }
.bento-viz { margin-top: auto; padding-top: 1.25rem; }
/* dark and accent variants */
.bento-dark { background: var(--dark); border-color: transparent; }
.bento-dark::before { content: ''; position: absolute; z-index: -1; width: 240px; height: 240px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(226,71,43,.55), transparent 68%); animation: glow 7s ease-in-out infinite alternate; }
.bento-dark::after { content: ''; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 18px 18px; mask-image: linear-gradient(to top, #000, transparent 70%); -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); }
@keyframes glow { to { scale: 1.25; opacity: .7; } }
.bento-dark .bento-num { color: #fff; }
.bento-dark .bento-num small { color: var(--accent); }
.bento-dark .bento-label { color: rgba(255,255,255,.72); }
.bento-dark .bento-ico { background: rgba(255,255,255,.1); color: var(--accent); }
.bento-dark .bento-tag { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }
.bento-accent { background: linear-gradient(140deg, var(--primary) 0%, #ff7a3d 100%); border-color: transparent; }
.bento-accent::before { content: ''; position: absolute; z-index: -1; width: 220px; height: 220px; right: -70px; bottom: -90px; border-radius: 50%; border: 34px solid rgba(255,255,255,.12); animation: spin 40s linear infinite; }
.bento-accent .bento-num, .bento-accent .bento-num small { color: #fff; }
.bento-accent .bento-label { color: rgba(255,255,255,.86); }
.bento-accent .bento-ico { background: rgba(255,255,255,.2); color: #fff; }
.bento-accent .bento-tag { color: #fff; border-color: rgba(255,255,255,.4); }
.bento-accent:hover, .bento-dark:hover { border-color: transparent; }
/* mini visuals */
.meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 1.6s var(--ease) .45s; }
.visible .meter i { width: calc(var(--p, 1) * 100%); }
.meter-scale { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.55); }
.track { position: relative; height: 2px; margin: .5rem 6px 0; background: rgba(255,255,255,.35); border-radius: 2px; }
.track::before, .track::after { content: ''; position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; translate: -50% -50%; }
.track::before { left: 0; background: #fff; }
.track::after { left: 100%; background: var(--dark); border: 2px solid #fff; }
.track i { position: absolute; top: 50%; left: 0; width: 26px; height: 8px; border-radius: 999px; background: #fff; translate: -50% -50%; box-shadow: 0 0 0 5px rgba(255,255,255,.22); animation: travel 3.2s var(--ease) infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.track-labels { display: flex; justify-content: space-between; margin-top: .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-row li { display: inline-flex; align-items: center; gap: .35rem; padding: .34rem .7rem .34rem .5rem; border-radius: 999px; background: var(--bg-alt); font-size: .78rem; font-weight: 700; color: var(--text); opacity: 0; translate: 0 8px; transition: opacity .5s var(--ease), translate .5s var(--ease); transition-delay: calc(.5s + var(--n, 0) * .14s); }
.chip-row .icon { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: var(--primary); color: #fff; stroke-width: 3; }
.visible .chip-row li { opacity: 1; translate: 0 0; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.week i { font-style: normal; display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; font-size: .72rem; font-weight: 700; color: var(--muted); background: transparent; border: 1px dashed var(--border); scale: .6; opacity: 0; transition: scale .5s var(--ease), opacity .5s var(--ease); transition-delay: calc(.45s + var(--n, 0) * .08s); }
.week i.on { background: rgba(226,71,43,.1); border: 1px solid rgba(226,71,43,.22); color: var(--primary); }
.visible .week i { scale: 1; opacity: 1; }
@media (max-width: 520px) {
  .bento { gap: .75rem; }
  .bento-card { min-height: 0; padding: 1.1rem 1.1rem 1.2rem; border-radius: 18px; }
  .bento-tag { display: none; }
  .bento-viz { padding-top: 1rem; }
  .week { gap: .2rem; } .week i { border-radius: 7px; font-size: .62rem; }
}
@media (max-width: 380px) { .bento { grid-template-columns: 1fr; } }

/* tilt + reveal on the same element: keep the reveal stagger but give the tilt and hover its own quick transition */
.tilt.reveal { transition: opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease), transform .35s var(--ease), box-shadow .4s var(--ease), border-color .4s; transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: 0 0; scale: 1; }
  .chip-row li, .week i { opacity: 1; translate: 0 0; scale: 1; }
  .track i { left: 50%; }
}
