/* ESENPE — layout extras + motion. Built on the Industry tokens in styles.css */
:root { --ease-out: cubic-bezier(.16,1,.3,1); --ease-io: cubic-bezier(.65,0,.35,1); }
body { overflow-x: clip; }
::selection { background: var(--color-accent-200); }

/* ── Nav ───────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .35s, box-shadow .35s, padding .35s; }
.nav.scrolled { background: color-mix(in srgb, var(--color-bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--color-divider); }
.nav-links > a:not(.btn) { position: relative; padding: 4px 0; }
.nav-links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--color-accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-links > a:not(.btn):hover::after, .nav-links > a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links > a.active { color: var(--color-accent-700); }
@media (max-width: 720px) { .nav-links > a:not(.btn)::after { display: none; } }

/* ── Buttons ───────────────────────────────────────── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; transition: background-color .25s, color .25s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s; will-change: transform; }
.btn .arrow { transition: transform .4s var(--ease-out); flex: none; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease-out); pointer-events: none; }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 10px 24px -12px var(--color-accent-700); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-light { background: var(--color-bg); color: var(--color-accent-900) !important; border: 1px solid var(--color-bg); text-decoration: none; padding: 14px 22px; font-weight: 600; }
.btn-light:hover { background: #fff; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }

/* ── Hero ──────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; }
.hero-grid { position: absolute; inset: -40px calc(50% - 50vw) -20px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--color-divider) 1px, transparent 1px), linear-gradient(90deg, var(--color-divider) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 70% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 65% at 70% 45%, #000 20%, transparent 75%);
  animation: grid-pan 40s linear infinite; }
@keyframes grid-pan { to { background-position: 48px 48px, 48px 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); border: 1px solid var(--color-divider); padding: 7px 12px; margin-bottom: 28px; background: color-mix(in srgb, var(--color-bg) 70%, transparent); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 60%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-photo { transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.callout { position: absolute; display: flex; align-items: center; z-index: 2; pointer-events: none; }
.callout .dot { width: 11px; height: 11px; border: 1.5px solid #fff; background: var(--color-accent); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 35%, transparent); flex: none; }
.callout .lead { height: 1px; width: 48px; background: var(--color-text); flex: none; }
.callout .lbl { background: var(--color-bg); border: 1px solid var(--color-divider); padding: 7px 11px; font-size: 12px; line-height: 15px; color: color-mix(in srgb, var(--color-text) 75%, transparent); box-shadow: 0 10px 24px -14px rgba(29,31,32,.45); white-space: nowrap; }
.callout .lbl b { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text); }
.callout.c1 { top: 24%; left: 42%; }
.callout.c2 { top: 56%; left: -9%; flex-direction: row-reverse; }
.callout.c2 .lead { width: 36px; }
.callout.c3 { bottom: 9%; right: -6%; }
.callout { animation: bob 6s ease-in-out infinite; }
.callout.c2 { animation-delay: -2s; } .callout.c3 { animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -6px; } }
@media (max-width: 900px) { .callout.c2 { left: 2%; } .callout.c3 { right: 2%; } .callout.c1 { left: 30%; } }
@media (max-width: 480px) { .callout .lbl { font-size: 11px; padding: 5px 8px; } .callout .lead { width: 22px !important; } }

/* ── Stats ─────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); margin: 8px 0 0; }
.stat { padding: 24px 24px 22px 0; display: grid; gap: 6px; position: relative; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--color-divider); }
@media (max-width: 880px) { .stat + .stat { border-left: 0; padding-left: 0; } .stat { border-bottom: 1px solid var(--color-divider); } .stat:last-child { border-bottom: 0; } }
.stat .num { font-family: var(--font-heading); font-weight: 600; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.stat .cap { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-text) 70%, transparent); }

/* ── Marquee ───────────────────────────────────────── */
.marquee { margin: 0 calc(50% - 50vw); overflow: hidden; border-bottom: 1px solid var(--color-divider); background: var(--color-accent-900); color: var(--color-accent-100); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-heading); font-weight: 600; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; padding: 16px 28px; display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; }
.marquee-track span::after { content: "+"; color: var(--color-accent-400); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sectors ───────────────────────────────────────── */
.sector-cell { position: relative; transition: background-color .4s; }
.sector-cell::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.sector-cell:hover { background: color-mix(in srgb, var(--color-accent-100) 70%, transparent); }
.sector-cell:hover::before { transform: scaleX(1); }
.sector-cell > div:first-child { transition: transform .5s var(--ease-out), color .3s; transform-origin: left; }
.sector-cell:hover > div:first-child { transform: scale(1.6); color: var(--color-accent); }

/* ── Solution cards: spotlight, lift, drawn icons ──── */
.sol-card { overflow: visible; transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out); background: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), color-mix(in srgb, var(--color-accent) 14%, transparent), transparent 70%); }
.sol-card:hover { transform: translateY(-6px); border-color: var(--color-accent-400); box-shadow: 0 22px 40px -28px var(--color-accent-800); }
.sol-card > .corner { transition: transform .45s var(--ease-out), color .3s; }
.sol-card:hover > .corner { color: var(--color-accent); }
.sol-card:hover > .corner.tl { transform: translate(-5px,-5px); } .sol-card:hover > .corner.tr { transform: translate(5px,-5px); }
.sol-card:hover > .corner.bl { transform: translate(-5px,5px); } .sol-card:hover > .corner.br { transform: translate(5px,5px); }
.card-idx { position: absolute; top: 20px; right: 22px; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: color-mix(in srgb, var(--color-text) 40%, transparent); transition: color .3s; }
.sol-card:hover .card-idx { color: var(--color-accent); }
.sol-card svg { width: 32px; height: 32px; padding: 8px; box-sizing: content-box; border: 1px solid var(--color-divider); transition: transform .5s var(--ease-out), background-color .3s, border-color .3s; }
.sol-card:hover svg { transform: rotate(-6deg); background: var(--color-accent-100); border-color: var(--color-accent-300); }

/* ── Process timeline ──────────────────────────────── */
.timeline { position: relative; }
.timeline .rail { position: absolute; left: 11px; top: 26px; bottom: 26px; width: 1px; background: var(--color-divider); }
.timeline .rail-fill { position: absolute; inset: 0; background: var(--color-accent); transform: scaleY(var(--fill, 0)); transform-origin: top; }
.timeline td:first-child { position: relative; }
.timeline td:first-child::before { content: ""; position: absolute; left: 6px; top: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--color-bg); border: 1px solid color-mix(in srgb, var(--color-text) 35%, transparent); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.timeline tr.done td:first-child::before { background: var(--color-accent); border-color: var(--color-accent); }
.timeline tr.active td:first-child::before { background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-accent) 22%, transparent); }
.timeline tr { transition: background-color .4s; }
.timeline tr.active { background: color-mix(in srgb, var(--color-accent-100) 60%, transparent); }
.timeline tr.active td:first-child { color: var(--color-accent) !important; }

/* ── CTA band ──────────────────────────────────────── */
.cta-band { margin: 40px calc(50% - 50vw) 0; background: var(--color-accent-900); color: var(--color-bg); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(color-mix(in srgb, #fff 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, #fff 7%, transparent) 1px, transparent 1px); background-size: 48px 48px; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; right: -160px; top: -300px; background: radial-gradient(circle, color-mix(in srgb, var(--color-accent-400) 55%, transparent), transparent 65%); animation: sun 14s ease-in-out infinite alternate; }
@keyframes sun { to { transform: translate(-220px, 120px); } }
.cta-inner { max-width: 1200px; margin: 0 auto; padding: clamp(48px,7vw,88px) clamp(20px,5vw,72px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.cta-kicker { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-300); margin-bottom: 14px; }
.cta-title { margin: 0; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; color: var(--color-bg); }

/* ── Form ──────────────────────────────────────────── */
.input { transition: border-color .25s, box-shadow .25s, background-color .25s; }
.input:hover { border-color: var(--color-accent-400); }
.input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent); border-color: var(--color-accent); }
#form-sent:not([hidden]) { animation: pop .8s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
#form-sent .tick { width: 48px; height: 48px; margin-bottom: 16px; }
#form-sent .tick path, #form-sent .tick circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-out) .2s forwards; }
#form-sent .tick path { animation-delay: .75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Footer ────────────────────────────────────────── */
.site-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px 48px; padding: 56px 0 32px; border-top: 1px solid var(--color-divider); font-size: 14px; line-height: 22px; }
@media (max-width: 720px) { .site-footer { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
.f-logo { font-family: var(--font-heading); font-weight: 600; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text) !important; text-decoration: none; }
.f-logo span { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .28em; color: var(--color-accent-700); margin-left: 6px; }
.f-brand p { margin: 12px 0 0; max-width: 40ch; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.f-col { display: grid; gap: 8px; align-content: start; }
.f-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-text) 55%, transparent); margin-bottom: 4px; }
.f-col a { color: var(--color-text); text-decoration: none; width: fit-content; background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out), color .2s; }
.f-col a:hover { color: var(--color-accent-700); background-size: 100% 1px; }
.f-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--color-divider); font-size: 13px; color: color-mix(in srgb, var(--color-text) 65%, transparent); }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: inherit !important; text-decoration: none; }
.to-top svg { transition: transform .4s var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }

/* ── Scroll progress ───────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--color-accent); transform: scaleX(var(--p, 0)); transform-origin: left; z-index: 60; pointer-events: none; }

/* ── Figures ───────────────────────────────────────── */
figure.duotone.blueprint { overflow: visible; }
figure.duotone .imgwrap { overflow: hidden; position: relative; }
figure.duotone img { transform: translate3d(0, var(--py, 0px), 0) scale(1.1); transition: transform .9s var(--ease-out); will-change: transform; }
figure.duotone:hover img { transform: translate3d(0, var(--py, 0px), 0) scale(1.15); }

/* ════════ Reveal system (only when JS + motion allowed) ════════ */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .sol-card.reveal.in { transition: opacity .9s var(--ease-out), transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out); transition-delay: var(--d, 0s), 0s, 0s, 0s; }
.motion .sol-card.reveal.in:hover { transform: translateY(-6px); }
.motion .reveal-line { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-io); transition-delay: var(--d, 0s); }
.motion .reveal-line.in { transform: scaleX(1); }

/* words rise from a mask */
.motion .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.motion .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 45ms); }
.motion .split.in .w > span { transform: none; }

/* figures: curtain wipe */
.motion figure.reveal { opacity: 1; transform: none; }
.motion figure.reveal .imgwrap::after { content: ""; position: absolute; inset: 0; background: var(--color-accent-800); transform-origin: top; transition: transform 1.1s var(--ease-io); transition-delay: var(--d, 0s); z-index: 1; }
.motion figure.reveal.in .imgwrap::after { transform: scaleY(0); }
.motion figure.reveal img { opacity: 0; transition: opacity .01s linear calc(var(--d, 0s) + .3s), transform 1.6s var(--ease-out); }
.motion figure.reveal.in img { opacity: 1; }
.motion .callout { opacity: 0; transition: opacity .7s var(--ease-out); }
.motion .hero-photo.in .callout { opacity: 1; }
.motion .hero-photo.in .callout.c1 { transition-delay: 1.3s; } .motion .hero-photo.in .callout.c2 { transition-delay: 1.5s; } .motion .hero-photo.in .callout.c3 { transition-delay: 1.7s; }
.motion .callout .lead { transform: scaleX(0); transition: transform .6s var(--ease-out); transform-origin: left; }
.motion .callout.c2 .lead { transform-origin: right; }
.motion .hero-photo.in .callout .lead { transform: none; transition-delay: inherit; }

/* registration marks fly in */
.motion .reveal > .corner { opacity: 0; transition: transform 1s var(--ease-out), opacity 1s; transition-delay: calc(var(--d, 0s) + .3s); }
.motion .reveal > .corner.tl { transform: translate(-16px,-16px); } .motion .reveal > .corner.tr { transform: translate(16px,-16px); }
.motion .reveal > .corner.bl { transform: translate(-16px,16px); } .motion .reveal > .corner.br { transform: translate(16px,16px); }
.motion .reveal.in > .corner { opacity: 1; transform: none; }
.motion .sol-card.reveal.in > .corner { transition-delay: 0s; }

/* drawn icons */
.motion .sol-card svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out); transition-delay: calc(var(--d, 0s) + .35s); }
.motion .sol-card.in svg * { stroke-dashoffset: 0; }

.motion #process tr.reveal { transform: translateX(-18px); }
.motion #process tr.reveal.in { transform: none; }
.motion li.reveal { transform: translateX(-14px); }
.motion li.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  figure.duotone img { transform: none !important; }
}
@media (max-width: 480px) { .eyebrow { font-size: 10.5px; letter-spacing: .08em; padding: 6px 10px; gap: 8px; } }

/* ── Phone contact ─────────────────────────────────── */
.call-card { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 20px 14px 14px; border: 1px solid var(--color-divider); color: var(--color-text) !important; text-decoration: none; transition: border-color .3s, background-color .3s, transform .4s var(--ease-out); }
.call-card:hover { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent-100) 60%, transparent); transform: translateY(-2px); }
.call-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--color-accent); color: var(--color-bg); flex: none; position: relative; }
.call-icon::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--color-accent); animation: ring 2.4s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.call-card:hover .call-icon svg { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 20%, 60% { transform: rotate(-12deg); } 40%, 80% { transform: rotate(12deg); } }
.call-text { display: grid; gap: 2px; }
.call-k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-text) 65%, transparent); }
.call-n { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.1; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-call { display: inline-flex; align-items: center; gap: 10px; color: var(--color-bg) !important; text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 22px; letter-spacing: .04em; border-bottom: 1px solid color-mix(in srgb, var(--color-bg) 35%, transparent); padding-bottom: 4px; transition: border-color .3s; }
.cta-call:hover { border-color: var(--color-bg); }
#enquiry-form { align-content: start; align-self: start; } #form-submit { align-self: flex-start; }
