:root {
	--bg: #050d0a;
	--surface: #0b1814;
	--surface-2: #10221c;
	--text: #eaf3ee;
	--muted: #8da399;
	--line: rgba(255, 255, 255, 0.09);
	--sun: #ffc21a;
	--mint: #2ee6a0;
	--radius: 22px;
}
.pe, .pe *, .pe *::before, .pe *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.pe :where(a) { color: inherit; }
.pe :where(h1, h2, h3) { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.pe :where(h1) { font-size: clamp(1.75rem, 4.4vw, 3.5rem); }
.pe :where(h2) { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
.pe :where(h3) { font-size: 1.3rem; letter-spacing: -0.01em; font-weight: 700; }
.pe :where(p) { margin: 0; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.pe:where(section) { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.kicker { color: var(--mint); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.sub { color: var(--muted); max-width: 44rem; margin-top: 1.25rem; font-size: 1.125rem; }
.todo { color: var(--sun); }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sun), var(--mint)); }

/* header */
.pe-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.pe-header.scrolled { background: rgba(5, 13, 10, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.pe-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.02em; }
.brand i { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 18px 4px rgba(255, 194, 26, 0.55); animation: pulse 2.6s ease-in-out infinite; }
.pe-header nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.95rem; }
.pe-header nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.pe-header nav a:hover { color: var(--text); }
.pe-header nav .pill { color: var(--bg); background: var(--text); padding: 0.55rem 1.1rem; border-radius: 99px; font-weight: 600; }
.pe-header nav .pill:hover { color: var(--bg); background: var(--sun); }
@media (max-width: 720px) { .pe-header nav a:not(.pill) { display: none; } }

/* hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 7rem 0 5rem; overflow: hidden; }
#flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.orb { position: absolute; width: 60vmax; height: 60vmax; right: -22vmax; top: -26vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255, 194, 26, 0.32), rgba(255, 194, 26, 0.06) 45%, transparent 68%); pointer-events: none; will-change: transform; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { margin-top: 1.5rem; max-width: 22ch; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(3deg); animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
.hero .sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); opacity: 0; animation: fade 1s 0.9s forwards; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; opacity: 0; animation: fade 1s 1.1s forwards; }
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 1rem 1.75rem; border-radius: 99px; font-weight: 700; text-decoration: none; background: var(--sun); color: #1a1400; will-change: transform; transition: box-shadow 0.3s; }
.btn:hover { box-shadow: 0 0 0 6px rgba(255, 194, 26, 0.18), 0 12px 40px rgba(255, 194, 26, 0.35); }
.btn svg { transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { box-shadow: none; border-color: var(--mint); color: var(--mint); }
.scroll-hint { position: absolute; left: 50%; bottom: 1.75rem; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line); border-radius: 99px; }
.scroll-hint::before { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--mint); animation: wheel 1.8s ease-in-out infinite; }

/* ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; white-space: nowrap; }
.ticker div { display: inline-block; animation: ticker 28s linear infinite; font-weight: 700; font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: -0.01em; color: var(--muted); }
.ticker span { margin: 0 1.5rem; }
.ticker b { color: var(--sun); font-weight: 700; }

/* reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal.in { opacity: 1; transform: none; }

/* simulator */
.sim { margin-top: 3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.scene { position: relative; aspect-ratio: 16 / 7; min-height: 400px; background: linear-gradient(#070b1c, #0b1814); overflow: hidden; }
.scene .day { position: absolute; inset: 0; background: linear-gradient(#1c6a8c, #164c3a 70%, #0b1814); opacity: var(--day, 0); }
.scene .stars { position: absolute; inset: 0; opacity: calc(1 - var(--day, 0) * 1.6); background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 9%, #fff, transparent), radial-gradient(1.5px 1.5px at 44% 22%, #fff, transparent), radial-gradient(1px 1px at 61% 12%, #fff, transparent), radial-gradient(1px 1px at 73% 26%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 15%, #fff, transparent), radial-gradient(1px 1px at 36% 33%, #fff, transparent), radial-gradient(1px 1px at 93% 38%, #fff, transparent), radial-gradient(1px 1px at 6% 40%, #fff, transparent); }
.orbiter { position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; left: 50%; top: 20%; transition: background 0.4s, box-shadow 0.4s; }
.orbiter.sun { background: var(--sun); box-shadow: 0 0 60px 20px rgba(255, 194, 26, 0.55); }
.orbiter.moon { background: #dfe7f5; box-shadow: 0 0 30px 6px rgba(223, 231, 245, 0.25); transform: scale(0.6); }
.scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pulse { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 18; vector-effect: non-scaling-stroke; transition: opacity 0.3s; filter: drop-shadow(0 0 6px currentColor); }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem 0.7rem 0.7rem; border-radius: 16px; background: rgba(5, 13, 10, 0.72); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; }
.node .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--c, var(--mint)); flex: none; }
.node small { display: block; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
.node strong { display: block; font-size: 1.05rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.node.hub { padding: 0; width: 64px; height: 64px; border-radius: 50%; justify-content: center; border-color: rgba(46, 230, 160, 0.5); box-shadow: 0 0 0 8px rgba(46, 230, 160, 0.08), 0 0 40px rgba(46, 230, 160, 0.35); color: var(--mint); }
.cell { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); position: relative; overflow: hidden; flex: none; }
.cell i { position: absolute; inset: auto 0 0 0; height: var(--soc, 50%); background: linear-gradient(var(--mint), #12a56f); transition: height 0.2s linear; }
.panel { padding: 1.5rem clamp(1rem, 3vw, 2rem) 1.75rem; }
.clock { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.clock button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; flex: none; transition: border-color 0.2s, color 0.2s; }
.clock button:hover { border-color: var(--mint); color: var(--mint); }
.clock time { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; min-width: 5ch; }
.clock span { color: var(--muted); font-size: 0.95rem; }
.chart { position: relative; height: 150px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .cursor { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--text); left: 0; pointer-events: none; }
.chart .cursor::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text); }
.sim input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0.25rem 0 0; cursor: pointer; }
.sim input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--line); }
.sim input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.sim input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--sun); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--sun); }
.sim input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--sun); }
.hours { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; color: var(--muted); font-size: 0.85rem; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; vertical-align: middle; margin-right: 0.5rem; }
.legend .note { margin-left: auto; }
@media (max-width: 720px) {
	.scene { aspect-ratio: auto; height: 460px; }
	.node { padding: 0.5rem 0.7rem 0.5rem 0.5rem; gap: 0.5rem; border-radius: 12px; }
	.node .ico, .cell { width: 30px; height: 30px; border-radius: 9px; }
	.node .ico svg { width: 18px; height: 18px; }
	.node small { font-size: 0.6875rem; letter-spacing: 0; text-transform: none; }
	.node strong { font-size: 0.85rem; }
	.node.hub { width: 48px; height: 48px; }
	.node[style*="left:20%"] { left: 28% !important; }
	.node[style*="left:80%"] { left: 72% !important; }
	.legend .note { margin-left: 0; }
}

/* services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3.5rem; perspective: 1200px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; padding: 2rem 1.75rem 2.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: transform 0.25s ease-out, border-color 0.3s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(46, 230, 160, 0.16), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.card.reveal { transform: none; transition: transform 0.25s ease-out, border-color 0.3s; transition-delay: 0s; }
.card.reveal.in { animation: card-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(var(--d, 0) * 110ms); }
.card:hover { border-color: rgba(46, 230, 160, 0.4); }
.card:hover::before { opacity: 1; }
.card .num { display: block; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.14em; }
.card .art { width: 64px; height: 64px; margin: 1.5rem 0 1.75rem; color: var(--sun); }
.card .art path, .card .art circle, .card .art rect, .card .art line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease 0.3s; }
.card.in .art path, .card.in .art circle, .card.in .art rect, .card.in .art line { stroke-dashoffset: 0; }
.card p { color: var(--muted); margin-top: 0.75rem; font-size: 0.98rem; }

/* process */
.steps { position: relative; margin-top: 4rem; display: grid; gap: 3.5rem; padding-left: 3.5rem; }
.rail { position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.rail i { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(var(--sun), var(--mint)); }
.step { position: relative; max-width: 40rem; }
.step::before { content: ""; position: absolute; left: calc(-3.5rem + 7px); top: 0.4rem; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: border-color 0.4s, box-shadow 0.4s, background 0.4s; }
.step.on::before { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 0 6px rgba(46, 230, 160, 0.15), 0 0 24px rgba(46, 230, 160, 0.6); }
.step h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.step p { color: var(--muted); margin-top: 0.6rem; }

/* statement */
.statement { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.45; letter-spacing: -0.015em; max-width: min(100%, 30em); }
.statement span { color: rgba(234, 243, 238, 0.16); transition: color 0.35s; }
.statement span.lit { color: var(--text); }
.statement span.lit.hl { color: var(--sun); }
.about-note { margin-top: 2.5rem; color: var(--muted); }

/* contact */
.contact { text-align: center; overflow: hidden; }
.ring { position: absolute; left: 50%; top: 50%; width: 80vmin; height: 80vmin; margin: -40vmin 0 0 -40vmin; border-radius: 50%; border: 1px solid rgba(255, 194, 26, 0.18); animation: ring 6s linear infinite; pointer-events: none; }
.ring:nth-child(2) { animation-delay: -2s; }
.ring:nth-child(3) { animation-delay: -4s; }
.contact .wrap { position: relative; }
.contact .sub { margin-inline: auto; }
.contact .lines { margin-top: 2.5rem; color: var(--muted); }

.pe-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: 0.9rem; }
.pe-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }

@keyframes card-in { from { opacity: 0; translate: 0 36px; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 50% { transform: scale(0.72); box-shadow: 0 0 8px 1px rgba(255, 194, 26, 0.4); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ring { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.reveal { opacity: 1; transform: none; }
}

/* WordPress integration */
.wp-site-blocks > * { margin-block-start: 0; }
body:not(.home) .pe-header { background: rgba(5, 13, 10, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
body:not(.home) .wp-site-blocks { padding-top: 72px; }
.admin-bar .pe-header, .admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .pe-header, .admin-bar .progress { top: 46px; } }
