/* ==========================================================================
   ZheTech — Homepage FX: layered composition, motion, interaction (2026)
   "Start hidden" states are gated behind body.fx-ready (added by JS only when
   motion is allowed) so no-JS / reduced-motion users see everything. SEO-safe.
   ========================================================================== */

/* Display face on homepage numerals / labels for a cohesive technical feel */
.svc-title, .svc-num, .statx-num, .pv-num, .intro-index span, .marquee-seg span, .hstat .num { font-family: var(--font-display); }

/* ----- Reveal utilities (JS-gated) ----- */
.fx-ready .js-reveal { opacity: 0; transform: translateY(18px); }
.js-reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal[data-delay="1"].in { transition-delay: .07s; }
.js-reveal[data-delay="2"].in { transition-delay: .14s; }
.js-reveal[data-delay="3"].in { transition-delay: .21s; }
.js-reveal[data-delay="4"].in { transition-delay: .28s; }
.js-reveal[data-delay="5"].in { transition-delay: .35s; }

/* ==================== HERO ==================== */
.page-home .hero {
    position: relative; min-height: 92vh; display: flex; align-items: center;
    padding: 104px 0 72px; overflow: hidden;
}
.page-home .hero::before { content: none; }
.page-home .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; width: 100%; }

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; will-change: transform; }
.blob-1 { width: 520px; height: 520px; top: -140px; right: -80px; background: radial-gradient(circle at 30% 30%, rgba(15,73,74,.16), transparent 70%); }
.blob-2 { width: 460px; height: 460px; bottom: -160px; left: -120px; background: radial-gradient(circle at 50% 50%, rgba(15,73,74,.12), transparent 70%); }
.hero-grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px; opacity: .35;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero-copy, .hero-visual { position: relative; z-index: 1; }

.hero-title { font-size: clamp(2.9rem, 1.1rem + 7vw, 6.2rem); line-height: 1.04; letter-spacing: -.045em; margin-top: var(--space-5); }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.08em; }
.hero-title .wd { display: inline-block; will-change: transform; padding-bottom: .02em; }
.fx-ready .hero-title .wd { transform: translateY(110%); }
.hero-title.in .wd { transform: translateY(0); transition: transform .85s cubic-bezier(.16,1,.3,1); }
.hero-title.in .ln:nth-child(1) .wd { transition-delay: .05s; }
.hero-title.in .ln:nth-child(2) .wd { transition-delay: .13s; }
.hero-title.in .ln:nth-child(3) .wd { transition-delay: .21s; }
.hero-title.in .ln:nth-child(4) .wd { transition-delay: .29s; }
.hero-title .wd-rotate { color: var(--brand); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.hero-title .wd-rotate.swap { opacity: 0; transform: translateY(-24%); }

.page-home .hero-sub { font-size: var(--fs-lg); color: var(--text-2); margin-top: var(--space-5); max-width: 44ch; }
.page-home .hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.hero-stats { display: flex; gap: var(--space-7); margin-top: var(--space-7); flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; }
.hstat .num { font-size: 1.9rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.hstat .lbl { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

.hero-visual { perspective: 1400px; }
.tilt-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; transform-style: preserve-3d; will-change: transform; }
.browser-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; will-change: transform; }
.card-back { width: 74%; top: 6%; left: 0; }
.card-front { width: 66%; bottom: 4%; right: 0; }
.bc-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.bc-bar.dark { background: var(--brand); border-color: var(--brand); }
.bc-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.bc-bar.dark i { background: rgba(248,245,239,.4); }
.bc-url { margin-left: 8px; font-size: 11px; color: var(--muted); font-weight: 600; }
.bc-bar.dark .bc-url { color: rgba(248,245,239,.85); }
.bc-body { padding: 18px; display: grid; gap: 10px; }
.sk { display: block; border-radius: 6px; background: var(--surface-2); }
.sk-title { height: 16px; width: 60%; background: var(--brand); opacity: .9; }
.sk-title.light { background: linear-gradient(90deg, var(--brand), var(--brand-500)); width: 70%; }
.sk-line { height: 9px; width: 100%; }
.sk-line.short { width: 72%; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.sk-grid span { height: 42px; border-radius: 8px; background: var(--brand-tint); }
.bc-hero { display: flex; align-items: center; gap: 10px; }
.bc-chip { font-size: 10px; font-weight: 700; color: var(--on-brand); background: var(--brand-500); padding: 3px 8px; border-radius: 999px; }
.bc-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 8px; }
.bc-bars span { flex: 1; height: var(--h); background: linear-gradient(var(--brand-500), var(--brand)); border-radius: 6px 6px 0 0; }
.float-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255, 253, 249, .55);
    -webkit-backdrop-filter: blur(12px) saturate(170%);
    backdrop-filter: blur(12px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 8px 24px rgba(15, 73, 74, .14);
    padding: 10px 14px; border-radius: 12px; font-size: var(--fs-sm); font-weight: 600; will-change: transform; z-index: 3;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .float-chip { background: var(--surface); }
}
.float-chip .icon { color: var(--brand); }
.float-chip strong { color: var(--brand); }
.chip-perf { top: 2%; right: 6%; }
.chip-seo { bottom: 12%; left: 2%; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fx-ready .card-back { animation: floaty 7s var(--ease) infinite; }
.fx-ready .card-front { animation: floaty 6s var(--ease) infinite .4s; }
.fx-ready .chip-perf { animation: floaty 5s var(--ease) infinite .2s; }
.fx-ready .chip-seo { animation: floaty 5.6s var(--ease) infinite .6s; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1.5px solid var(--border-strong); border-radius: 20px; display: grid; place-items: start center; padding-top: 7px; }
.scroll-dot { width: 5px; height: 8px; border-radius: 3px; background: var(--brand); }
.fx-ready .scroll-dot { animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ==================== MARQUEE BAND ==================== */
.marquee-band { background: var(--brand); color: var(--on-brand); overflow: hidden; padding: var(--space-5) 0; border-block: 1px solid var(--brand-700); }
.marquee-row { display: flex; width: max-content; }
.fx-ready .marquee-row { animation: marquee-x 32s linear infinite; }
.marquee-band:hover .marquee-row { animation-play-state: paused; }
.marquee-seg { display: flex; align-items: center; flex: none; }
.marquee-seg span { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; padding: 0 26px; }
.marquee-seg .dot { width: 9px; height: 9px; border-radius: 50%; background: #9FD5CF; flex: none; }
@keyframes marquee-x { to { transform: translateX(-50%); } }

/* ==================== INTRO (asymmetric) ==================== */
.intro-grid { display: grid; grid-template-columns: 160px 1fr; gap: var(--space-7); align-items: start; }
.intro-index { position: relative; }
.intro-index span { font-size: clamp(3rem, 2rem + 3vw, 5rem); font-weight: 800; color: var(--brand); opacity: .16; letter-spacing: -.04em; line-height: 1; }
.intro-index i { display: block; width: 56px; height: 2px; background: var(--brand); margin-top: 16px; }
.big-statement { font-size: var(--fs-3xl); letter-spacing: -.03em; margin: var(--space-4) 0; max-width: 20ch; }
.big-statement em { font-style: normal; color: var(--brand); }
.intro-body .lead { max-width: 56ch; }
.intro-body .btn { margin-top: var(--space-6); }

/* ==================== AI SOLUTIONS ==================== */
.ai-section { position: relative; isolation: isolate; overflow: clip; padding-block: var(--space-9); }
.ai-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ai-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.ai-glow-1 { width: 420px; height: 420px; top: -100px; left: -80px; background: radial-gradient(circle, rgba(15,73,74,.12), transparent 70%); }
.ai-glow-2 { width: 360px; height: 360px; bottom: -120px; right: -60px; background: radial-gradient(circle, rgba(15,73,74,.10), transparent 70%); }
.ai-grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px; opacity: .3;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 75% 50%, #000 20%, transparent 75%);
}
.ai-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-8); align-items: center; }
.ai-heading { font-size: var(--fs-2xl); margin-top: var(--space-3); max-width: 16ch; }
.ai-copy .lead { margin-top: var(--space-4); max-width: 50ch; }

.ai-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); margin-top: var(--space-6); }
.ai-pillar { display: flex; gap: 12px; align-items: flex-start; }
.ai-pillar-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); flex: none; }
.ai-pillar-label { display: block; font-weight: 700; font-size: var(--fs-sm); }
.ai-pillar-desc { display: block; color: var(--text-2); font-size: var(--fs-xs); margin-top: 3px; line-height: 1.5; }

.ai-visual { position: relative; max-width: 420px; margin-inline: auto; padding: 54px 10px 68px; }
.ai-chat-card { position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.ai-chat-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--brand); color: var(--on-brand); }
.ai-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9FD5CF; flex: none; }
.fx-ready .ai-status-dot { animation: ai-pulse-dot 2.2s ease-in-out infinite; }
@keyframes ai-pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(159,213,207,.55); } 50% { box-shadow: 0 0 0 6px rgba(159,213,207,0); } }
.ai-chat-title { font-weight: 700; font-size: var(--fs-sm); flex: 1; }
.ai-demo-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: rgba(255,255,255,.18); padding: 3px 9px; border-radius: 999px; }
.ai-chat-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.ai-bubble { max-width: 90%; padding: 10px 14px; border-radius: 14px; font-size: var(--fs-sm); line-height: 1.5; }
.ai-bubble-user { align-self: flex-end; background: var(--brand-tint); color: var(--brand-700); border-bottom-right-radius: 4px; }
.ai-bubble-bot { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; min-height: 1.6em; }
.ai-caret { display: inline-block; width: 2px; height: 1em; background: var(--brand); vertical-align: -3px; margin-left: 2px; }
.fx-ready .ai-caret { animation: ai-caret-blink 1s step-end infinite; }
.ai-caret.is-done { display: none; }
@keyframes ai-caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.ai-chat-note { margin: 0; padding: 10px 16px 16px; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.ai-flow { display: flex; align-items: center; margin-top: var(--space-5); padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.ai-flow-node { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); white-space: nowrap; }
.ai-flow-line { position: relative; flex: 1; height: 2px; background: var(--border-strong); margin: 0 10px; }
.ai-flow-pulse { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); transform: translate(-50%, -50%); opacity: 0; }
.fx-ready .ai-flow-pulse { animation: ai-flow-move 2.4s ease-in-out infinite; }
@keyframes ai-flow-move { 0% { left: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.ai-chip-1, .ai-chip-2 { position: absolute; z-index: 3; }
.ai-chip-1 { top: 0; right: 0; }
.ai-chip-2 { bottom: 0; left: 8px; }
.fx-ready .ai-chip-1 { animation: floaty 5.2s var(--ease) infinite .1s; }
.fx-ready .ai-chip-2 { animation: floaty 6s var(--ease) infinite .4s; }

@media (max-width: 1024px) {
    .ai-grid { grid-template-columns: 1fr; }
    .ai-visual { margin-top: var(--space-6); }
}
@media (max-width: 480px) {
    .ai-chip-1, .ai-chip-2 { display: none; } /* card is full-width here; chips would spill off-screen */
    .ai-visual { padding: 0; }
}
@media (max-width: 560px) {
    .ai-pillars { grid-template-columns: 1fr; }
    .ai-visual { max-width: 100%; }
}

/* ==================== SERVICES (interactive) ==================== */
.services-x { position: relative; }
.services-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-8); align-items: start; margin-top: var(--space-6); }
.services-list { display: grid; }
.svc-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--border); padding: var(--space-6) 8px; cursor: pointer; transition: padding var(--dur) var(--ease), background var(--dur) var(--ease); }
.services-list .svc-row:last-child { border-bottom: 1px solid var(--border); }
.svc-num { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; transition: color var(--dur) var(--ease); }
.svc-main { min-width: 0; }
.svc-title { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; color: var(--text-2); transition: color var(--dur) var(--ease); display: block; }
.svc-desc { color: var(--text-2); font-size: var(--fs-sm); }
.svc-arrow { color: var(--muted); transform: translateX(-4px); opacity: 0; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), color var(--dur) var(--ease); }
.svc-row:hover .svc-title, .svc-row.active .svc-title { color: var(--text); }
.svc-row:hover .svc-num, .svc-row.active .svc-num { color: var(--brand); }
.svc-row:hover .svc-arrow, .svc-row.active .svc-arrow { opacity: 1; transform: translateX(0); color: var(--brand); }
.svc-row.active { padding-left: 18px; }
.services-layout .svc-desc { display: none; }

.services-preview { position: sticky; top: 100px; background: var(--brand); color: var(--on-brand); border-radius: var(--radius-lg); padding: var(--space-7); min-height: 340px; box-shadow: var(--shadow-lg); overflow: hidden; }
.services-preview::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border: 1.5px solid rgba(248,245,239,.15); border-radius: 50%; }
.svc-panel { display: none; }
.svc-panel.active { display: block; animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.svc-panel-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px; background: rgba(248,245,239,.12); color: #9FD5CF; margin-bottom: var(--space-5); }
.svc-panel h3 { font-size: var(--fs-xl); color: var(--on-brand); }
.svc-panel p { color: rgba(248,245,239,.82); margin-top: var(--space-3); font-size: var(--fs-sm); }
.svc-panel-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.svc-panel-tags span { font-size: var(--fs-xs); color: rgba(248,245,239,.9); border: 1px solid rgba(248,245,239,.25); padding: 5px 11px; border-radius: 999px; }

/* ==================== PORTFOLIO (horizontal reel) ====================
   Homepage-only showcase, distinct from the /portfolio/ grid. Client assets
   are mostly square logos/product shots on padded canvases — uniform square
   contain-fit cards read as intentional "framed" tiles instead of the
   awkward crop/empty-space that a cover-fit asymmetric bento produced. */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-6); flex-wrap: wrap; }
.work-head h2 { font-size: var(--fs-2xl); margin-top: var(--space-3); }

.work-reel-wrap { position: relative; margin-inline: calc(var(--space-5) * -1); }
.work-reel {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--space-5);
    padding: 6px var(--space-5) 20px; cursor: grab; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.work-reel::-webkit-scrollbar { display: none; }
.work-reel:active { cursor: grabbing; }
.work-reel:focus-visible { outline: none; box-shadow: inset var(--ring); border-radius: var(--radius); }

.reel-card {
    flex: 0 0 260px; scroll-snap-align: start; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.reel-card:hover, .reel-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.reel-thumb { aspect-ratio: 1 / 1; background: #fff; display: block; overflow: hidden; }
.reel-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 26px; transition: transform .5s var(--ease); pointer-events: none; }
.reel-card:hover .reel-thumb img { transform: scale(1.05); }
.reel-info { padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid var(--border); }
.reel-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.reel-cats span { font-size: var(--fs-xs); color: var(--text-2); background: var(--surface-2); padding: 3px 9px; border-radius: 6px; }
.reel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: var(--fs-base); color: var(--text); }
.reel-arrow { color: var(--muted); flex: none; transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reel-card:hover .reel-arrow { color: var(--brand); transform: translate(2px, -2px); }

.reel-fade { position: absolute; top: 0; bottom: 20px; width: 56px; z-index: 2; pointer-events: none; }
.reel-fade-l { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.reel-fade-r { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.reel-nav { display: flex; justify-content: flex-end; gap: 10px; margin: var(--space-4) var(--space-5) 0; }
.reel-btn {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--text);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.reel-btn:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.reel-btn:disabled { opacity: .35; pointer-events: none; }
.reel-icon-l { transform: rotate(180deg); }

/* ==================== PROCESS (sticky) ==================== */
.process { padding-block: var(--space-9); background: var(--surface); border-block: 1px solid var(--border); overflow: clip; }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-8); align-items: start; }
.process-sticky { position: sticky; top: 96px; }
.process-sticky h2 { font-size: var(--fs-2xl); margin-top: var(--space-3); }
.process-sticky > p { color: var(--text-2); margin-top: var(--space-4); max-width: 34ch; }
.process-visual { position: relative; margin-top: var(--space-7); width: 200px; height: 200px; display: grid; place-items: center; }
.pv-ring { position: absolute; inset: 0; border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; transition: transform .6s var(--ease); }
.pv-num { font-size: 4rem; font-weight: 800; color: var(--brand); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pv-label { position: absolute; bottom: -34px; left: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .1em; }
.process-progress { margin-top: 64px; height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.process-progress span { display: block; height: 100%; width: 25%; background: var(--brand); border-radius: 3px; transition: width .5s var(--ease); }
.process-steps { display: grid; }
.pstep { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); padding: var(--space-7) 0; border-top: 1px solid var(--border); opacity: .4; transition: opacity .45s var(--ease); }
.process-steps .pstep:last-child { border-bottom: 1px solid var(--border); }
.pstep.active { opacity: 1; }
.pstep-num { font-size: var(--fs-lg); font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.pstep h3 { font-size: var(--fs-xl); }
.pstep p { color: var(--text-2); margin-top: 10px; font-size: var(--fs-base); max-width: 46ch; }

/* ==================== STATS BAND ==================== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.statx { padding: var(--space-7) var(--space-4); border-left: 1px solid var(--border); }
.statx:first-child { border-left: 0; padding-left: 0; }
.statx-num { display: block; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.statx-lbl { display: block; color: var(--text-2); font-size: var(--fs-sm); margin-top: 6px; }

/* ==================== WHY ZHETECH (dark + glass) ==================== */
.why-dark {
    position: relative; isolation: isolate; overflow: clip; color: var(--on-brand);
    background: linear-gradient(165deg, #0b3b3c 0%, var(--brand) 55%, #0e4344 100%);
    padding-block: var(--space-9); border-block: 1px solid #0b3b3c;
}
.why-dark-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.wd-ghost {
    position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
    font-family: var(--font-display); font-weight: 700; font-size: 52vh; line-height: 1;
    color: rgba(255, 255, 255, .035); user-select: none;
}
.wd-glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.wd-glow-1 { width: 420px; height: 420px; top: -90px; left: 6%; background: radial-gradient(circle, rgba(159,213,207,.22), transparent 70%); }
.wd-glow-2 { width: 380px; height: 380px; bottom: -110px; right: 12%; background: radial-gradient(circle, rgba(26,112,113,.45), transparent 70%); }
.wd-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%);
}
.why-dark .section-head h2 { color: var(--on-brand); font-size: var(--fs-2xl); }
.why-dark .section-head p { color: rgba(248,245,239,.8); }
.eyebrow-light { color: #9FD5CF; }
.eyebrow-light::before { background: #9FD5CF; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-7); }
.why-card { padding: var(--space-6); border-radius: var(--radius); transition: transform var(--dur) var(--ease); }
.why-card:hover { transform: translateY(-5px); }
.wc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(159,213,207,.14); color: #9FD5CF; margin-bottom: var(--space-4); }
.why-card h3 { color: var(--on-brand); font-size: var(--fs-lg); }
.why-card p { color: rgba(248,245,239,.76); font-size: var(--fs-sm); margin-top: 8px; }

.why-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-5); padding: var(--space-6) var(--space-7); border-radius: var(--radius-lg); }
.why-stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 700; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.why-stat-lbl { display: block; color: rgba(248,245,239,.7); font-size: var(--fs-sm); margin-top: 4px; }

/* ==========================================================================
   Responsive — homepage FX
   ========================================================================== */
@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .why-stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
    .wd-ghost { font-size: 40vh; }
}
@media (max-width: 560px) {
    .why-grid { grid-template-columns: 1fr; }
    .why-stats { grid-template-columns: 1fr 1fr; padding: var(--space-6); gap: var(--space-5); }
    .wd-ghost { font-size: 30vh; }
}
@media (max-width: 1024px) {
    .page-home .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
    .hero-visual { max-width: 460px; margin-top: var(--space-4); }
    .tilt-stage { max-width: 440px; }
    .services-layout { grid-template-columns: 1fr; }
    .services-preview { display: none; }
    .services-layout .svc-desc { display: block; max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height .4s var(--ease), opacity .3s var(--ease), margin-top .3s var(--ease); }
    .svc-row[aria-expanded="true"] .svc-desc { max-height: 220px; opacity: 1; margin-top: 10px; }
    .svc-row[aria-expanded="true"] .svc-title { color: var(--text); }
    .process-grid { grid-template-columns: 1fr; gap: var(--space-6); }
    .process-sticky { position: static; }
    .process-visual { display: none; }
    .process-progress { display: none; }
    .intro-grid { grid-template-columns: 90px 1fr; gap: var(--space-5); }
}

@media (max-width: 760px) {
    .page-home .hero { min-height: auto; padding-top: 92px; }
    .reel-card { flex-basis: 220px; }
    .stats-band { grid-template-columns: 1fr 1fr; }
    .statx { border-left: 0; padding-inline: 0; }
    .statx:nth-child(even) { padding-left: var(--space-4); border-left: 1px solid var(--border); }
    /* even 3-across stat row so RM450 isn't orphaned */
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
    .hstat .num { font-size: 1.6rem; }
    /* fill the visual so there's no dead space on the right */
    .hero-visual { max-width: none; }
    .tilt-stage { max-width: none; }
    .card-back { width: 82%; }
    .card-front { width: 74%; }
    .scroll-cue { display: none; }
    .work-head { align-items: flex-start; }
}

@media (max-width: 520px) {
    .work-reel-wrap { margin-inline: calc(var(--space-4) * -1); }
    .reel-card { flex-basis: 76vw; max-width: 280px; }
    .reel-nav { display: none; } /* native touch scroll + snap covers mobile */
    .reel-fade { width: 32px; }
    .intro-grid { grid-template-columns: 1fr; }
    .intro-index i { display: none; }
    .hero-visual { max-width: 340px; }
    .marquee-seg span { padding: 0 16px; }
}

/* ==========================================================================
   Reduced motion — homepage FX
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .fx-ready .js-reveal, .fx-ready .hero-title .wd { opacity: 1 !important; transform: none !important; }
    .fx-ready .card-back, .fx-ready .card-front, .fx-ready .chip-perf, .fx-ready .chip-seo,
    .fx-ready .marquee-row, .fx-ready .scroll-dot { animation: none !important; }
    .fx-ready .ai-status-dot, .fx-ready .ai-caret, .fx-ready .ai-flow-pulse,
    .fx-ready .ai-chip-1, .fx-ready .ai-chip-2 { animation: none !important; }
    .ai-flow-pulse { display: none; }
    .hero-bg .blob { display: none; }
    .marquee-row { flex-wrap: nowrap; }
    .work-reel { scroll-behavior: auto; }
}
