
/* ============ 2. THEME: change colors, fonts, widths here ============ */
:root{
  --bg:#141210; --ink:#ece7dc; --mute:#9a948a; --line:#3a3631; --accent:#e8321e; --accent-ink:#fff;
  --serif:"Times New Roman",Times,serif; --pixel:"Pixelify Sans","Courier New",monospace; --hand:"Caveat",cursive;
  --max:1180px; --grain:.16;
  box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
:root[data-theme="light"]{--bg:#ece7dc;--ink:#141210;--mute:#6b665d;--line:#c9c3b6}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--bg:#ece7dc;--ink:#141210;--mute:#6b665d;--line:#c9c3b6}}
*,*::before,*::after{box-sizing:inherit}
html{scroll-behavior:smooth;scroll-padding-top:70px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--serif);font-size:19px;line-height:1.5;overflow-x:hidden}
body::after{content:"";position:fixed;inset:0;pointer-events:none;opacity:var(--grain);mix-blend-mode:overlay;z-index:60;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
a{color:inherit}.px{font-family:var(--pixel);font-weight:700}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.btn{display:inline-block;border:2px solid var(--ink);padding:11px 22px;text-decoration:none;background:var(--ink);color:var(--bg);cursor:pointer;font:inherit;font-weight:700;transition:transform .15s,background .15s,box-shadow .15s}
.btn:hover{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);transform:translate(-3px,-3px);box-shadow:4px 4px 0 var(--ink)}
.btn.ghost{background:transparent;color:var(--ink)}.btn.ghost:hover{color:var(--accent-ink)}
header{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
header .wrap{display:flex;align-items:center;justify-content:space-between;height:62px}
.logo{font-size:26px;text-decoration:none;display:flex;gap:10px;align-items:center}
.logo i{width:18px;height:18px;background:var(--accent);display:block;animation:spin 8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
nav{display:flex;gap:24px;align-items:center;font-size:17px}nav a{text-decoration:none}nav a:not(.btn):hover{color:var(--accent)}
.hero{padding:60px 0 20px}
.stat{display:inline-flex;gap:10px;align-items:center;border:1px dashed var(--mute);padding:4px 14px;font-size:16px;transform:rotate(-1.5deg);margin-bottom:26px}.stat b{color:var(--accent)}
h1{font-weight:400;font-size:clamp(52px,11.6vw,176px);line-height:.9;letter-spacing:-.04em;margin:0}
h1 .w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em}
h1 .w>span{display:inline-block;transform:translateY(105%) rotateX(-60deg);animation:rise .9s cubic-bezier(.2,.8,.2,1) forwards;animation-delay:calc(var(--i)*.09s)}
h1 .px{color:var(--accent);letter-spacing:-.02em}
@keyframes rise{to{transform:none}}
.sub{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:40px;align-items:end}
.sub p{margin:0;max-width:40ch;font-size:22px}.note{font-size:15px;color:var(--mute);margin-top:10px}
.btnrow{display:flex;gap:14px;flex-wrap:wrap;justify-self:end}
.rigbox{perspective:1400px;height:min(520px,70vw);display:grid;place-items:center;margin-top:30px}
.rig{position:relative;width:min(560px,84vw);height:min(340px,52vw);transform-style:preserve-3d;--spread:14px}
.ly{position:absolute;inset:0;transform:translateZ(calc(var(--z)*var(--spread)));transform-style:preserve-3d}
.pane{position:absolute;border:2px solid var(--ink);background:var(--bg);padding:8px;font-size:14px;color:var(--mute);display:flex;flex-direction:column;justify-content:space-between}
.pane.red{background:var(--accent);border-color:var(--accent);color:#fff}.pane b{color:var(--ink);font-size:20px;letter-spacing:-.02em}.pane.red b{color:#fff}
.wire{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.chip{position:absolute;font-family:var(--hand);font-size:26px;background:var(--ink);color:var(--bg);padding:0 14px;white-space:nowrap}
.tick{border-block:1px solid var(--line);overflow:hidden;white-space:nowrap;padding:14px 0;margin-top:30px}
.tick div{display:inline-block;animation:mq 30s linear infinite;font-size:30px;letter-spacing:-.02em}.tick span{margin:0 26px}.tick i{color:var(--accent);font-style:normal}
@keyframes mq{to{transform:translateX(-50%)}}
.seq{position:relative}.stage{position:sticky;top:62px;height:calc(100vh - 62px);perspective:1300px;overflow:hidden;display:grid;place-items:center}
.stage h2{position:absolute;top:3vh;left:24px;margin:0;font-weight:400;font-size:clamp(34px,5vw,72px);line-height:.95;letter-spacing:-.03em;max-width:12ch;z-index:5}
.hand{position:absolute;font-family:var(--hand);font-size:28px;color:var(--accent);z-index:5}
.scene{position:relative;width:min(760px,86vw);height:min(440px,50vh);transform-style:preserve-3d}
.card3{position:absolute;inset:0;border:2px solid var(--ink);background:var(--bg);padding:18px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:10px 10px 0 var(--accent);will-change:transform,opacity}
.card3 h3{margin:0;font-size:clamp(26px,3.6vw,48px);font-weight:400;letter-spacing:-.02em}.card3 svg{width:100%;height:42%}
.card3 p{margin:6px 0 0;color:var(--mute);font-size:17px;max-width:46ch}
.card3 .meta{display:flex;justify-content:space-between;font-size:15px;color:var(--mute)}
section.s{padding:110px 0;border-top:1px solid var(--line)}
h2.big{font-weight:400;font-size:clamp(44px,8vw,120px);line-height:.92;letter-spacing:-.035em;margin:0 0 20px;max-width:13ch}
.lead{max-width:48ch;color:var(--mute);font-size:21px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:60px}.grid3.g4{grid-template-columns:repeat(4,1fr)}
[data-tilt]{transform:perspective(900px) rotate(var(--r,0deg)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .2s ease-out;position:relative}
[data-tilt]::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(240px circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.12),transparent 60%);opacity:0;transition:opacity .2s}
[data-tilt]:hover::after{opacity:1}
.fc{border:2px solid var(--ink);padding:24px;background:var(--bg);min-height:250px;display:flex;flex-direction:column;justify-content:space-between;text-decoration:none}
.fc.sm{min-height:200px}.fc h3{font-size:30px;font-weight:400;margin:0 0 10px;line-height:1.02}.fc p{color:var(--mute);font-size:17px;margin:0}.fc .px{font-size:15px;color:var(--accent)}.fc small{display:block;margin-top:10px;font-size:14px;color:var(--mute);border-top:1px dashed var(--mute);padding-top:8px}
.proof{display:flex;flex-wrap:wrap;gap:12px 56px;margin-top:80px;padding-top:30px;border-top:1px dashed var(--mute);font-size:44px;letter-spacing:-.02em}.proof small{display:block;font-size:15px;color:var(--mute);letter-spacing:0}
.quote{border:2px solid var(--ink);padding:26px;background:var(--bg);margin:0}.quote p{font-size:24px;line-height:1.25;margin:0 0 16px}.quote footer{font-size:16px;color:var(--mute)}
.quote.rule{background:var(--accent);border-color:var(--accent);color:#fff}.quote.rule footer{color:#fff}
details{border-bottom:1px solid var(--line);padding:20px 0}summary{cursor:pointer;font-size:28px;letter-spacing:-.02em;list-style:none;display:flex;justify-content:space-between}
summary::after{content:"+";font-family:var(--pixel);color:var(--accent);transition:transform .25s}details[open] summary::after{transform:rotate(45deg)}
details p{color:var(--mute);max-width:62ch;margin:12px 0 0}
.cta{padding:110px 0 30px;border-top:1px solid var(--line)}.cta h2{font-weight:400;font-size:clamp(60px,14vw,230px);line-height:.85;letter-spacing:-.05em;margin:0 0 20px}.cta p{max-width:50ch;color:var(--mute);font-size:21px;margin:0 0 30px}
.foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:40px 0;color:var(--mute);font-size:16px}.foot nav{gap:18px;font-size:16px;flex-wrap:wrap}
.tog{background:none;border:1px solid var(--line);color:var(--ink);padding:4px 10px;cursor:pointer;font:inherit;font-size:15px}
.cur{position:fixed;left:0;top:0;z-index:70;pointer-events:none;font-family:var(--pixel);font-weight:700;font-size:15px;padding:2px 10px;color:#fff;background:#2a7f6f;margin:14px 0 0 12px}.cur.m{background:#7a6a1a}
@media(pointer:coarse){.cur{display:none}}
@media(max-width:980px){nav a.h{display:none}}
@media(max-width:820px){.sub{grid-template-columns:1fr}.btnrow{justify-self:start}.grid3,.grid3.g4{grid-template-columns:1fr}.stage h2{font-size:34px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}h1 .w>span{animation:none;transform:none}.tick div,.logo i{animation:none}.cur{display:none}[data-tilt]{transition:none}}


/* CodeProven adaptation: the source template's exploded build stays central, while the first screen stays compact. */
.cpx-home .site-header{position:sticky;top:0;height:auto;min-height:62px}
.cpx-home .site-header .wrap{height:auto;min-height:62px;padding:8px 0;gap:18px}
.cpx-home .site-logo-image{display:block;width:174px;height:auto;max-height:36px;object-fit:contain;filter:none!important}
:root[data-theme="light"] .cpx-home .site-logo-image{filter:brightness(0)!important}
.cpx-home .primary-nav{gap:clamp(2px,.55vw,10px);flex-wrap:wrap;justify-content:flex-end;font:700 12px/1.1 var(--pixel)}
.cpx-home .primary-nav a:not(.btn){padding:7px 6px}
.cpx-home .primary-nav .btn{padding:8px 12px}
.cpx-home .hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(270px,.9fr);grid-template-rows:auto auto 1fr;align-items:center;column-gap:clamp(24px,5vw,66px);padding:42px 0 18px}
.cpx-home .hero .stat{grid-column:1/-1;grid-row:1;justify-self:start;margin-bottom:18px}
.cpx-home .hero h1{grid-column:1;grid-row:2;font-size:clamp(54px,8.3vw,112px);line-height:.88;max-width:9ch}
.cpx-home .hero .sub{grid-column:1;grid-row:3;grid-template-columns:1fr;gap:22px;margin-top:28px;align-items:start}
.cpx-home .hero .sub p{max-width:38ch;font-size:clamp(18px,1.65vw,22px)}
.cpx-home .hero .btnrow{justify-self:start}
.cpx-home .hero .rigbox{grid-column:2;grid-row:2/4;height:min(410px,36vw);min-height:300px;margin:0}
.cpx-home .hero .rig{width:min(520px,100%);height:min(330px,80%)}
.cpx-home .hero .pane{font-size:12px}.cpx-home .hero .pane b{font-size:17px}
.cpx-home .hero .chip{font-size:22px}
.cpx-home .tick{margin-top:14px}
.cpx-home .stage h2{max-width:10ch}
.cpx-home .grid3{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.cpx-home .grid3.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cpx-home .fc{min-width:0}
.cpx-home .foot{border-top:1px solid var(--line);padding-inline:0}
.cpx-home .foot nav{max-width:850px}
.cpx-home .rule-note{max-width:780px;border-left:4px solid var(--accent);padding:22px 26px;background:color-mix(in srgb,var(--bg) 94%,var(--ink) 6%)}
.cpx-home .rule-note p{margin:0;font-size:clamp(20px,2.3vw,30px);line-height:1.18}
.cpx-home .rule-note small{display:block;margin-top:12px;color:var(--mute);font:14px/1.4 var(--pixel)}
.cpx-home :is(.fc,.quote){border-radius:0}
@media(max-width:980px){.cpx-home .site-header .wrap{width:calc(100% - 32px);flex-wrap:wrap}.cpx-home .primary-nav{gap:2px}.cpx-home .primary-nav a.h{display:inline-flex}.cpx-home .primary-nav a{font-size:11px;padding:6px 4px}}
@media(max-width:820px){
  .cpx-home .site-header{position:relative}
  .cpx-home .site-header .wrap{display:grid!important;grid-template-columns:1fr;gap:8px;padding:10px 0}
  .cpx-home .primary-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:5px;justify-content:stretch}
  .cpx-home .primary-nav a.h{display:flex;justify-content:center;text-align:center;white-space:normal}
  .cpx-home .primary-nav .btn{grid-column:auto!important}
  .cpx-home .hero{width:calc(100% - 32px);grid-template-columns:1fr;grid-template-rows:auto auto auto auto;padding:26px 0 12px;column-gap:0}
  .cpx-home .hero .stat{grid-column:1;grid-row:1}
  .cpx-home .hero h1{grid-column:1;grid-row:2;font-size:clamp(52px,10vw,84px);max-width:10ch}
  .cpx-home .hero .sub{grid-column:1;grid-row:3;margin-top:18px}
  .cpx-home .hero .rigbox{grid-column:1;grid-row:4;width:100%;height:min(330px,70vw);min-height:240px;margin:10px auto 0}
  .cpx-home .hero .rig{width:min(510px,94vw);height:min(300px,66vw)}
  .cpx-home .grid3,.cpx-home .grid3.g4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cpx-home section.s{padding:72px 0}
}
@media(max-width:560px){
  .cpx-home .site-header .wrap{width:calc(100% - 24px)}
  .cpx-home .site-logo-image{width:158px;max-height:34px}
  .cpx-home .primary-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cpx-home .primary-nav a{font-size:10px;padding:7px 3px}
  .cpx-home .primary-nav .btn{grid-column:auto!important}
  .cpx-home .hero{width:calc(100% - 28px);padding-top:22px}
  .cpx-home .hero h1{font-size:clamp(46px,12vw,64px);line-height:.9}
  .cpx-home .hero .sub p{font-size:18px}
  .cpx-home .hero .btnrow{gap:8px}
  .cpx-home .hero .btn{padding:9px 12px;font-size:15px}
  .cpx-home .hero .rigbox{height:270px;min-height:220px}
  .cpx-home .hero .rig{height:220px;--spread:9px}
  .cpx-home .hero .chip{font-size:18px;padding-inline:9px}
  .cpx-home .grid3,.cpx-home .grid3.g4{grid-template-columns:1fr}
  .cpx-home .fc{min-height:190px;padding:20px}
  .cpx-home .stage{height:calc(100svh - 20px);top:0}
  .cpx-home .stage h2{top:4vh;left:18px;font-size:32px}
  .cpx-home .scene{width:88vw;height:min(360px,52vh)}
  .cpx-home .foot{gap:14px;align-items:flex-start}
  .cpx-home .foot nav{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.cpx-home [data-tilt]{transform:none!important}}

/* Keep the supplied dark art direction as the default; light is an explicit user choice. */
:root:not([data-theme="light"]){--bg:#141210;--ink:#ece7dc;--mute:#9a948a;--line:#3a3631;color-scheme:dark}
@media(max-width:560px){.cpx-home .site-header .main-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}.cpx-home .primary-nav .btn{grid-column:auto!important}.cpx-home .hero h1{max-width:none;font-size:clamp(42px,11vw,50px)}.cpx-home .hero h1 .px{font-size:clamp(32px,9vw,42px)}}
