/* YJY Digital V3 — "Hybrid Technology Ecosystem". Black / crimson / white.
   Mobile-first. System font stack, inline SVG, no external resources.
   Contrast: red text uses --redtext (>= 6:1 on black); white on the button gradient >= 5:1. */
:root{
  --bg:#05060A; --bg2:#0A0C13; --panel:#0E1119; --panel2:#141824; --head:#08070E;
  --line:rgba(255,255,255,.1); --text:#F4F5F9; --muted:#B5BBC9; --soft:#D7DBE5;
  --red:#C8102E; --red2:#E3213F; --redtext:#FF6477; --h1red:#FF3B57; --focus:#FFFFFF;
  --max:1240px; --radius:16px;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:5.5rem}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:1.0625rem;line-height:1.6;overflow-x:hidden}
img,svg{max-width:100%;height:auto;display:block}
h1,h2,h3{line-height:1.15;margin:0 0 .6rem;font-weight:750}
h1{font-size:2rem} h2{font-size:1.6rem} h3,.h3{font-size:1.15rem;font-weight:700;margin:0 0 .5rem}
p{margin:0 0 1rem} ul,ol{margin:0 0 1rem;padding-left:1.25rem} li{margin-bottom:.35rem}
a{color:var(--redtext);text-underline-offset:.2em}
a:hover{color:#fff}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:.5rem;top:-4rem;background:#fff;color:#05060A;padding:.6rem 1rem;border-radius:8px;z-index:200;font-weight:700}
.skip:focus{top:.5rem}
.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 1.1rem}
.narrow{max-width:760px}
main:focus{outline:none}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.muted{color:var(--muted)} .sub{color:var(--muted);max-width:46rem}

/* ================= header + navigation ================= */
.site-header{position:sticky;top:0;z-index:100;background:var(--head);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(200,16,46,.35)}
.bar{display:flex;flex-wrap:wrap;align-items:center;gap:0 .4rem;padding-top:.35rem;padding-bottom:.35rem}
.brand{display:inline-flex;align-items:center;min-height:48px;margin-right:auto;border-radius:6px}
.brand img{height:44px;width:auto}
.lang{display:flex;align-items:center;gap:.1rem;color:var(--muted)}
.lang a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:var(--text);font-weight:700;text-decoration:none;border-radius:8px}
.lang a[aria-current="true"]{background:var(--red);color:#fff}
.nav-toggle{display:none;width:44px;height:44px;align-items:center;justify-content:center;background:transparent;color:var(--text);border:1.5px solid var(--line);border-radius:10px;cursor:pointer}
.js .nav-toggle{display:inline-flex}
.nav-toggle .ic{width:24px;height:24px}
.nav-toggle .ic-close{display:none}
.nav-toggle[aria-expanded="true"] .ic-open{display:none}
.nav-toggle[aria-expanded="true"] .ic-close{display:block}
.main-nav{flex-basis:100%;border-top:1px solid var(--line);margin-top:.35rem}
.js .main-nav{display:none}
.js .main-nav.open{display:block}
.main-nav ul{list-style:none;margin:0;padding:0}
.main-nav li{margin:0}
.main-nav a{display:flex;align-items:center;min-height:44px;padding:.35rem .5rem;color:var(--text);text-decoration:none;font-weight:600;border-radius:8px}
.main-nav a:hover{background:rgba(255,255,255,.07)}
.main-nav a[aria-current="page"]{color:#fff;box-shadow:inset 3px 0 0 var(--red)}
.sub-row{display:flex;align-items:center}
.sub-row>a{flex:1}
.sub-toggle{display:none;width:44px;height:44px;align-items:center;justify-content:center;background:transparent;color:var(--text);border:0;border-radius:8px;cursor:pointer}
.js .sub-toggle{display:inline-flex}
.sub-toggle .ic{width:20px;height:20px;transition:transform .15s}
.sub-toggle[aria-expanded="true"] .ic{transform:rotate(180deg)}
.sub{list-style:none;margin:0 0 .4rem .5rem;padding:0 0 0 .6rem;border-left:2px solid rgba(200,16,46,.6)}
.sub a{font-weight:500;color:var(--soft)}
.js .sub{display:none}
.js .has-sub.open>.sub{display:block}

@media (min-width:1240px){
  .bar{flex-wrap:nowrap;gap:1rem;padding-top:.5rem;padding-bottom:.5rem}
  .brand{margin-right:0}
  .brand img{height:56px}
  .nav-toggle,.js .nav-toggle{display:none}
  .main-nav,.js .main-nav{display:block;flex:1;flex-basis:auto;border:0;margin:0 0 0 .5rem}
  .main-nav>ul{display:flex;align-items:center;justify-content:center;gap:.1rem}
  .main-nav a{padding:.35rem .7rem}
  .main-nav a[aria-current="page"]{box-shadow:inset 0 -3px 0 var(--red);border-radius:8px 8px 0 0}
  .lang{order:3}
  .has-sub{position:relative}
  .sub-toggle{width:44px;margin-left:0}
  .has-sub>.sub-row>a{padding-right:.15rem}
  .sub,.js .sub{display:none;position:absolute;top:100%;left:0;min-width:290px;margin:0;padding:.5rem;border:1px solid var(--line);border-radius:14px;background:#0B0D16;box-shadow:0 18px 50px rgba(0,0,0,.65),0 0 0 1px rgba(200,16,46,.25),0 0 40px rgba(200,16,46,.15)}
  .has-sub:hover>.sub,.js .has-sub.open>.sub,html:not(.js) .has-sub:focus-within>.sub{display:block}
  .sub a{padding:.4rem .8rem}
  .sub a:hover{background:rgba(200,16,46,.18)}
  .has-sub.is-current>.sub-row>a{box-shadow:inset 0 -3px 0 var(--red)}
}

/* ================= buttons ================= */
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1rem;margin:1.3rem 0 0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:52px;padding:.65rem 1.4rem;font:inherit;font-weight:700;text-decoration:none;border:2px solid transparent;border-radius:12px;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}
.btn .ic{width:20px;height:20px}
.btn-primary,.btn-visit{color:#fff;background:linear-gradient(180deg,#D4122F,#A60C25);box-shadow:0 8px 28px rgba(200,16,46,.45),inset 0 1px 0 rgba(255,255,255,.25)}
.btn-primary:hover,.btn-visit:hover{color:#fff;background:linear-gradient(180deg,#E3213F,#B90E29);transform:translateY(-1px);box-shadow:0 10px 34px rgba(227,33,63,.55),inset 0 1px 0 rgba(255,255,255,.3)}
.btn-outline{color:#fff;background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.6)}
.btn-outline:hover{color:#fff;background:rgba(255,255,255,.12);border-color:#fff}
.btn:disabled{background:var(--panel2);border-color:var(--line);color:#B5BBC9;cursor:not-allowed;box-shadow:none;transform:none}

/* ================= hero ================= */
.hero{position:relative;isolation:isolate;overflow:hidden;padding:1.6rem 0 1.4rem;
  background:radial-gradient(70% 90% at 88% 8%,rgba(200,16,46,.38),transparent 62%),radial-gradient(50% 60% at 0% 100%,rgba(200,16,46,.16),transparent 70%),linear-gradient(180deg,#05060A,#07080D)}
.hero::before{content:"";position:absolute;z-index:-1;top:-30%;right:-15%;width:75%;height:170%;transform:rotate(14deg);
  background:linear-gradient(90deg,transparent 40%,rgba(255,46,76,.0) 44%,rgba(255,59,87,.30) 50%,rgba(255,46,76,0) 56%,transparent 60%);filter:blur(10px);animation:sweep 9s ease-in-out infinite alternate}
@keyframes sweep{from{opacity:.55;transform:rotate(14deg) translateX(0)}to{opacity:1;transform:rotate(14deg) translateX(-3%)}}
.hero-grid{display:grid;gap:1.6rem;align-items:center}
.eyebrow{display:flex;align-items:center;gap:.7rem;margin:0 0 .9rem;font-size:.72rem;font-weight:700;letter-spacing:.2em;color:var(--soft)}
.eyebrow::before{content:"";flex:0 0 2.2rem;height:3px;background:var(--red);border-radius:2px}
.hero h1{font-size:clamp(2.6rem,12vw,3.9rem);font-weight:850;font-style:italic;letter-spacing:-.025em;line-height:.96;margin:0 0 1rem}
.h1-a{display:block;color:#fff}
.h1-b,.h1-c{white-space:nowrap}
.h1-b{color:var(--h1red);text-shadow:0 0 28px rgba(255,46,76,.5)}
.h1-c{color:#fff}
.lead{font-size:1.12rem;color:var(--soft);max-width:40rem}
.hero .lead{margin-bottom:0}

/* devices composition (HTML/CSS, decorative, fictional data) */
.devices-fig{margin:0}
.devices-fig figcaption{margin-top:.6rem;font-size:.82rem;color:var(--muted)}
.devices{container-type:inline-size;position:relative;width:100%;max-width:680px;margin:0 auto;aspect-ratio:1.5/1}
.lap{position:absolute;left:0;top:3%;width:85%;transform:perspective(1500px) rotateY(-9deg) rotateX(2deg);transform-origin:100% 50%}
.lap-screen{position:relative;aspect-ratio:16/10;background:#0A0C14;border:.8cqw solid #2B2E39;border-radius:1.5cqw;overflow:hidden;box-shadow:0 0 7cqw rgba(200,16,46,.4),0 2cqw 6cqw rgba(0,0,0,.75)}
.lap-base{height:1.7cqw;margin:0 -3%;background:linear-gradient(#D2D5DC,#6A6E7A);border-radius:0 0 3cqw 3cqw;box-shadow:0 1.4cqw 3cqw rgba(0,0,0,.6)}
.demo-ribbon{position:absolute;top:.5rem;right:.5rem;z-index:3;font-size:.66rem;font-weight:800;letter-spacing:.08em;line-height:1.3;background:#F4F5F9;color:#05060A;padding:.12rem .55rem;border-radius:99px}
.devices .demo-ribbon{top:1cqw;right:1cqw;font-size:max(6px,1.25cqw);padding:.1em .6em}
.dash{display:grid;grid-template-columns:25% 1fr;height:100%;color:var(--text)}
.dash-side{background:#0E1018;padding:3.2cqw 1.4cqw;display:flex;flex-direction:column;gap:1.1cqw;font-size:max(5px,1.3cqw);color:#B5BBC9}
.dash-side span{padding:.45cqw .8cqw;border-radius:.6cqw}
.dash-side .on{background:#B1122B;color:#fff}
.dash-logo{margin:0 0 1cqw;font-weight:800;color:#fff;font-size:max(5px,1.45cqw);letter-spacing:.04em}
.dash-main{padding:3.6cqw 2cqw 2cqw;display:flex;flex-direction:column;gap:1.8cqw;min-width:0}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1cqw}
.stats div{background:#12151F;border:1px solid rgba(255,255,255,.1);border-radius:.8cqw;padding:1cqw 1.2cqw;min-width:0}
.stats small{display:block;font-size:max(4.5px,1.05cqw);color:#B5BBC9;white-space:nowrap;overflow:hidden}
.stats b{font-size:max(6px,1.9cqw);color:#fff;white-space:nowrap}
.chart{flex:1;width:100%;min-height:0;background:linear-gradient(#10121B,#0A0B11);border-radius:.8cqw}
.chart rect{fill:#D3112E}
.phone{position:absolute;right:1%;bottom:0;width:24%;aspect-ratio:9/18.4;background:#0A0C14;border:.8cqw solid #9A9EAA;border-radius:3.4cqw;overflow:hidden;box-shadow:0 0 6cqw rgba(200,16,46,.5),0 2cqw 5cqw rgba(0,0,0,.7);transform:rotate(3deg)}
.phone-screen{position:relative;height:100%;display:grid;place-items:center;background:radial-gradient(circle at 50% 62%,rgba(200,16,46,.55),#07070C 72%)}
.phone-screen img{width:58%;height:auto;border-radius:22%;box-shadow:0 0 28px rgba(200,16,46,.55)}
.dash-wrap{container-type:inline-size;position:relative;aspect-ratio:16/10;background:#0A0C14;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:1rem}

/* ================= strip ================= */
.strip-sec{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:linear-gradient(180deg,#07080D,#05060A)}
.strip{list-style:none;margin:0;padding:.4rem 0;display:grid;grid-template-columns:repeat(2,1fr);gap:0 .6rem}
.strip li{margin:0}
.strip a{display:flex;align-items:center;gap:.75rem;min-height:68px;padding:.4rem .3rem;color:#fff;text-decoration:none;font-weight:600;font-size:.95rem;line-height:1.25;border-radius:10px}
.strip a:hover{background:rgba(255,255,255,.06)}
.strip .ic{flex:0 0 34px;width:34px;height:34px;color:var(--redtext)}

/* ================= sections / cards ================= */
.section{padding:2.2rem 0}
.alt{background:linear-gradient(180deg,#0A0C13,#080A10);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sec-head{margin-bottom:1.4rem}
.sec-head h2{position:relative;padding-left:0}
.sec-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1rem}
.cards{display:grid;gap:1rem}
.card{position:relative;background:linear-gradient(160deg,#131722,#0B0D14);border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem;transition:border-color .2s,box-shadow .2s,transform .2s}
.card:hover{border-color:rgba(255,59,87,.55);box-shadow:0 0 34px rgba(200,16,46,.22)}
.card-link{color:#fff;text-decoration:none}
.card-link::after{content:"";position:absolute;inset:0;border-radius:var(--radius)}
.card-link:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
.card:has(.card-link:focus-visible){outline:3px solid #fff;outline-offset:3px}
.card-ic{display:grid;place-items:center;width:48px;height:48px;margin-bottom:.8rem;border:1.5px solid rgba(255,59,87,.7);border-radius:50%;color:var(--redtext);background:rgba(200,16,46,.1);box-shadow:0 0 18px rgba(200,16,46,.3)}
.card-ic .ic{width:26px;height:26px}
.card-ic.big{width:64px;height:64px;margin:0;flex:0 0 64px}
.card-ic.big .ic{width:34px;height:34px}
.card p{color:var(--soft)}
.card .chip{margin-bottom:.7rem}
.chip{display:inline-block;padding:.12rem .65rem;border:1.5px solid currentColor;border-radius:999px;font-size:.78rem;font-weight:700;line-height:1.45;white-space:nowrap}
.chip-avail{color:#7DE3A6} .chip-consult{color:#9CCBFF} .chip-dev{color:#FFD27A}
.prod-more{border-style:dashed}
.prod-card .pos-demo{margin-bottom:1rem}

/* industries tiles (original gradient art, ready to receive licensed photos later) */
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem}
.tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:.6rem;min-height:150px;padding:1rem .6rem;text-align:center;color:#fff;text-decoration:none;font-weight:650;line-height:1.25;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#0B0D14;transition:transform .2s,border-color .2s,box-shadow .2s}
.tile::before{content:"";position:absolute;inset:0;background:radial-gradient(90% 80% at 50% 0%,var(--g,rgba(200,16,46,.4)),transparent 70%),repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 2px,transparent 2px 14px)}
.tile>*{position:relative}
.tone-amber{--g:rgba(255,150,60,.38)} .tone-rose{--g:rgba(255,80,110,.38)} .tone-blue{--g:rgba(80,140,255,.34)} .tone-slate{--g:rgba(150,165,200,.3)} .tone-green{--g:rgba(70,200,130,.3)}
.tile:hover{transform:translateY(-3px);border-color:rgba(255,59,87,.7);box-shadow:0 0 30px rgba(200,16,46,.3);color:#fff}
.tile-ic{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#B1122B;color:#fff;box-shadow:0 0 18px rgba(200,16,46,.6)}
.tile-ic .ic{width:24px;height:24px}
.tile-name{font-size:.95rem}

/* differentiators bar */
.why{list-style:none;margin:0;padding:1.1rem;display:grid;gap:1rem;background:linear-gradient(160deg,#141824,#0B0D14);border:1px solid var(--line);border-radius:var(--radius)}
.why li{display:flex;align-items:center;gap:.9rem;margin:0}
.why .ic{flex:0 0 40px;width:40px;height:40px;color:var(--redtext)}
.why strong{display:block}
.why span{display:block;color:var(--muted);font-size:.92rem;line-height:1.35}

.cta-band{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;padding:1.6rem;border:1px solid rgba(255,59,87,.45);border-radius:20px;background:radial-gradient(80% 140% at 100% 0%,rgba(200,16,46,.4),transparent 65%),linear-gradient(160deg,#141824,#0A0C13)}
.cta-band h2{margin-bottom:.3rem} .cta-band p{margin:0;color:var(--soft);max-width:38rem}
.cta-band .actions{margin:0}

/* ================= inner pages ================= */
.page-hero{padding:1.6rem 0 1rem;background:radial-gradient(60% 120% at 100% 0%,rgba(200,16,46,.22),transparent 65%)}
.ph-row{display:flex;align-items:center;gap:1rem;margin-bottom:.8rem}
.ph-row h1{margin:0 0 .4rem}
.crumbs{margin-bottom:.8rem;font-size:.9rem}
.crumbs ol{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0;gap:.2rem .5rem;color:var(--muted)}
.crumbs li{margin:0}
.crumbs li+li::before{content:"/";margin-right:.5rem;color:#7F8699}
.crumbs a{display:inline-block;padding:.25rem 0}
.two-col{display:grid;gap:1.6rem}
.checks{list-style:none;padding:0;margin:0}
.checks li{display:flex;gap:.7rem;align-items:flex-start;margin-bottom:.75rem}
.checks .ic{flex:0 0 22px;width:22px;height:22px;margin-top:.15rem;color:var(--redtext)}
.linklist{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.linklist a{display:flex;align-items:center;gap:.7rem;min-height:48px;padding:.5rem .8rem;color:#fff;text-decoration:none;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.02)}
.linklist a:hover{border-color:rgba(255,59,87,.6);background:rgba(200,16,46,.1)}
.linklist .ic{flex:0 0 24px;width:24px;height:24px;color:var(--redtext)}
.linklist li{margin:0}
.callout{display:flex;gap:.8rem;margin-top:1.2rem;padding:1rem 1.1rem;border-left:3px solid var(--red);border-radius:10px;background:rgba(200,16,46,.1)}
.callout .ic{flex:0 0 24px;width:24px;height:24px;color:var(--redtext);margin-top:.1rem}
.callout p{margin:0;color:var(--soft)}
.steps{padding-left:1.3rem} .steps li{margin-bottom:.6rem}

/* demos (fictional) */
.demo-grid{display:grid;gap:1rem}
.demo-card{overflow:hidden}
.pos-demo{position:relative;border-radius:12px;padding:2.2rem 1rem 1rem;margin-bottom:1rem;min-height:170px}
.pos-demo .demo-ribbon{background:#2B1B12;color:#FFF8EE}
.pos-demo{background:#10131C;border:1px solid var(--line);color:#fff}
.pos-demo .demo-ribbon{background:#F4F5F9;color:#05060A}
.pos-h{font-weight:800;margin:0 0 .6rem;color:#fff}
.pos-row{display:flex;justify-content:space-between;gap:1rem;padding:.4rem 0;border-bottom:1px dotted rgba(255,255,255,.2);font-size:.95rem}
.pos-total{border-bottom:0;font-weight:800;border-top:2px solid var(--red);margin-top:.3rem;padding-top:.6rem}
.pos-fig{margin:0} .pos-fig figcaption{margin-top:.5rem;font-size:.85rem;color:var(--muted)}
.pos-hero .pos-demo{min-height:230px}

/* ================= form ================= */
.field{margin-bottom:1.1rem}
label{display:block;font-weight:700;margin-bottom:.3rem}
input,select,textarea{width:100%;min-height:48px;padding:.6rem .75rem;font:inherit;color:var(--text);background:#0E1119;border:2px solid #6B7699;border-radius:10px}
textarea{min-height:110px;resize:vertical}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-color:#fff}
.hint{margin:.3rem 0 0;font-size:.9rem;color:var(--muted)}
.err{margin:.35rem 0 0;font-weight:700;color:#FFB3BD}
.err::before{content:"\26A0\00a0"}
[aria-invalid="true"]{border-color:#FFB3BD;border-width:3px}
.error-summary{background:#2A0B12;border:2px solid #FFB3BD;border-radius:12px;padding:1rem;margin-bottom:1.2rem;color:#fff}
.error-summary ul{margin:.4rem 0 0} .error-summary a{color:#fff}
.nojs{background:#2A220B;border:2px solid #FFD27A;border-radius:12px;padding:.9rem 1rem;color:#fff;margin-bottom:1.2rem}
.result{margin-top:1.4rem;background:var(--panel);border:2px solid #7DE3A6;border-radius:var(--radius);padding:1.2rem}
.result h2{color:#7DE3A6}
.result dl{margin:0} .result dt{font-weight:700;margin-top:.5rem} .result dd{margin:0;color:var(--muted);overflow-wrap:anywhere}
.form-cols>aside{align-self:start}

/* ================= footer ================= */
.site-footer{margin-top:2.2rem;border-top:1px solid var(--line);background:var(--bg);box-shadow:0 -1px 0 rgba(200,16,46,.3)}
.foot-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.6rem 1rem;padding-top:2rem;padding-bottom:1.4rem}
.foot-brand{grid-column:1/-1}
.foot-brand img{width:190px;height:auto;margin-bottom:.6rem}
.slogan{font-weight:800;font-style:italic;margin:0 0 .4rem}
.foot-h{font-size:.95rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 .5rem}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:0}
.site-footer li a{display:inline-flex;align-items:center;min-height:44px;color:var(--soft);text-decoration:none}
.site-footer li a:hover{color:#fff;text-decoration:underline}
.foot-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.4rem 2rem;padding-top:1rem;padding-bottom:2rem;border-top:1px solid var(--line);font-size:.9rem}
.foot-bottom p{margin:0}

/* ================= progressive reveal (only when JS is ready) ================= */
.reveal .rv{opacity:0;transform:translateY(16px);transition:opacity .55s ease,transform .55s ease}
.reveal .rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal .rv{opacity:1;transform:none}
}

/* ================= breakpoints ================= */
@media (min-width:640px){
  .strip{grid-template-columns:repeat(3,1fr)}
  .cards-4,.cards-2{grid-template-columns:repeat(2,1fr)}
  .tiles{grid-template-columns:repeat(4,1fr)}
  .why{grid-template-columns:repeat(2,1fr)}
  .demo-grid{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:repeat(3,1fr)}
  .foot-brand{grid-column:1/-1}
  .linklist.cols{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:860px){
  h1{font-size:2.6rem} h2{font-size:1.9rem}
  .two-col{grid-template-columns:1fr 1fr;gap:2.4rem}
  .form-cols{grid-template-columns:1.4fr 1fr}
  .demo-grid{grid-template-columns:repeat(3,1fr)}
  .hero{padding:2.6rem 0 2rem}
  .hero-grid{grid-template-columns:1.3fr 1fr}
  .eyebrow{font-size:.8rem;letter-spacing:.26em}
  .linklist.cols{grid-template-columns:repeat(4,1fr)}
}
@media (min-width:1100px){
  .cards-4{grid-template-columns:repeat(4,1fr)}
  .strip{grid-template-columns:repeat(6,1fr)}
  .strip li+li a{border-left:1px solid var(--line);border-radius:0 10px 10px 0}
  .why{grid-template-columns:repeat(4,1fr)}
  .foot-grid{grid-template-columns:1.5fr 1.2fr 1.2fr .8fr}
  .foot-brand{grid-column:auto}
}
@media (min-width:1280px){
  .tiles{grid-template-columns:repeat(8,1fr)}
  .tile{min-height:170px}
  .tile-name{font-size:.88rem}
}
@media (max-width:420px){
  .btn{width:100%}
  .actions .btn{width:100%}
  .cta-band .actions{width:100%}
}

/* V3 fixes: demo text colour inside cards, equal demo heights */
.demo-card .pos-h,.demo-card .pos-row{color:#fff}
.demo-card .pos-demo,.demo-card .dash-wrap{height:235px;min-height:0;aspect-ratio:auto}
.demo-card .dash-wrap{margin-bottom:1rem}
@media (max-width:380px){.hero h1{font-size:2.45rem}}

/* V3 QA fixes */
.crumbs a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 .2rem}
.crumbs{margin-bottom:.2rem}
@media (min-width:1240px){.has-sub.dismissed>.sub,.js .has-sub.dismissed>.sub{display:none!important}}
.stats small{text-overflow:ellipsis}
/* V3 visual QA fixes */
.crumbs li{display:flex;align-items:center;min-height:44px}
.dash-wrap .demo-ribbon{top:auto;bottom:.5rem}
.sub-toggle .ic{transition:none}
@media (min-width:1240px){.sub,.js .sub{min-width:330px}}

/* ================= V3-FINAL fixes ================= */
/* V3-01: the open mobile menu can never be taller than the screen; it scrolls inside itself.
   Without JavaScript the full menu is expanded, so on small screens the header is NOT sticky (it scrolls away with the page). */
@media (max-width:1239.98px){
  .js .main-nav.open{max-height:calc(100vh - 5rem);max-height:calc(100dvh - 5rem);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:.5rem}
  html:not(.js) .site-header{position:static}
}
@media (max-width:1239.98px) and (max-height:480px){
  .brand{min-height:44px}.brand img{height:36px}
  .js .main-nav.open{max-height:calc(100vh - 4.2rem);max-height:calc(100dvh - 4.2rem)}
}
/* V3-07: content that receives keyboard focus is never left hidden by the reveal animation */
.reveal .rv:focus-within{opacity:1;transform:none;transition:none}

/* industry cards with local illustrative images (shared by EN and ES) */
.tile{aspect-ratio:3/4;min-height:0;padding:0;align-items:stretch;justify-content:flex-end;gap:0;background:#0B0D14}
.tile::before{display:none}
.tile::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top,rgba(5,6,10,.95) 0%,rgba(5,6,10,.84) 28%,rgba(5,6,10,.4) 56%,rgba(5,6,10,0) 80%)}
.tile>.tile-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.tile:hover>.tile-img{transform:scale(1.045)}
.tile>.tile-body{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:.45rem;padding:.7rem .5rem .9rem}
.tile-name{text-shadow:0 1px 3px rgba(0,0,0,.8)}
.img-note{margin:1rem 0 0;color:var(--muted);font-size:.9rem}
@media (min-width:1240px){.tile{min-height:0}.tile-ic{width:40px;height:40px}.tile-ic .ic{width:21px;height:21px}.tile>.tile-body{padding:.6rem .35rem .8rem}}

/* cards: call to action instead of status labels */
.card-more{display:inline-flex;align-items:center;gap:.4rem;margin:.2rem 0 0;color:var(--redtext);font-weight:650}
.card-more .ic{width:18px;height:18px}
.card:hover .card-more{color:#fff}

/* own projects */
.proj-visual{display:grid;place-items:center;aspect-ratio:16/9;margin-bottom:1rem;border-radius:12px;border:1px solid var(--line);color:#fff;background:radial-gradient(80% 90% at 72% 18%,rgba(200,16,46,.5),transparent 70%),linear-gradient(160deg,#141824,#07080D)}
.proj-visual .ic{width:84px;height:84px;stroke-width:1.2}
.proj-sub{margin:-.2rem 0 .6rem;color:var(--redtext);font-weight:650}
.proj-card .pos-demo{margin-bottom:1rem}
.own-grid{align-items:start}

/* contact + footer details */
.aside-stack{display:grid;gap:1rem;align-content:start}
.contact-mail{display:inline-flex;align-items:center;min-height:44px;font-weight:700;overflow-wrap:anywhere}
.foot-contact{margin:.6rem 0 0;color:var(--muted)}
.foot-contact a{display:inline-flex;align-items:center;min-height:44px;color:var(--soft);overflow-wrap:anywhere}

/* industries hub: larger cards because the images are the point of the page */
@media (min-width:900px){.tiles-lg{grid-template-columns:repeat(4,1fr);gap:1rem}.tiles-lg .tile-name{font-size:1.02rem}.tiles-lg .tile-ic{width:46px;height:46px}.tiles-lg .tile-ic .ic{width:24px;height:24px}.tiles-lg>.tile>.tile-body{padding:.9rem .7rem 1.1rem}}

/* ===== V3 production-ready refinements ===== */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.foot-legal{list-style:none;margin:0;padding:0;display:flex;gap:1rem}
.foot-legal a{display:inline-flex;align-items:center;min-height:44px;color:var(--soft)}
.legal{line-height:1.7}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.muted a{color:var(--soft);text-decoration:underline}
/* industries: the icon sits at the same height in every card, whatever the number of title lines */
.tile>.tile-body{display:grid;grid-template-rows:auto 3.1em;justify-items:center;align-items:start;gap:.45rem}
.tile-name{display:block;line-height:1.28;max-width:100%;overflow-wrap:anywhere}
.img-note{margin:.9rem 0 0;color:var(--muted);font-size:.78rem;line-height:1.5;max-width:60ch}
/* own projects: equal cards */
.own-grid{align-items:stretch}
.proj-card{display:flex;flex-direction:column}
.proj-visual,.proj-visual-pos{aspect-ratio:16/10;min-height:230px;margin:0 0 1rem;border-radius:12px;overflow:hidden}
.proj-visual-pos .pos-demo{height:100%;min-height:0;margin:0}
.proj-visual{position:relative;flex-direction:column;gap:.8rem}
.exe-domain{font-weight:700;letter-spacing:.06em;color:#E8EAF0;font-size:1.05rem}
.proj-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .8rem;margin:0 0 .3rem}
.proj-head h3{margin:0}
.proj-card .chip{margin:0}
.proj-facts{list-style:none;margin:.3rem 0 0;padding:0;display:grid;gap:.4rem}
.proj-facts li{display:flex;gap:.55rem;align-items:flex-start}
.proj-facts .ic{width:20px;height:20px;flex:none;margin-top:.15rem;color:var(--redtext)}
.proj-cta{margin:auto 0 0;padding-top:1.2rem}
/* demos */
.dash-dot{display:inline-block;width:1.7cqw;height:1.7cqw;min-width:5px;min-height:5px;border-radius:50%;background:#E0213D;margin-right:.6cqw;vertical-align:middle;box-shadow:0 0 1.2cqw rgba(224,33,61,.8)}
.dash{grid-template-columns:23% 1fr;background:#0A0C14}
.dash-side{background:linear-gradient(#10131D,#0B0D15);border-right:1px solid rgba(255,255,255,.07);gap:.9cqw}
.dash-main{padding:2.6cqw 2cqw 1.8cqw;gap:1.4cqw}
.dash-top{display:flex;justify-content:space-between;align-items:center;font-size:max(6px,1.9cqw);color:#fff}
.dash-top .pill{font-size:max(5px,1.2cqw);color:#B5BBC9;border:1px solid rgba(255,255,255,.18);border-radius:99px;padding:.2cqw 1.1cqw;white-space:nowrap}
.stats div{position:relative;background:linear-gradient(160deg,#171B28,#10131D)}
.stats i{display:inline-block;font-style:normal;font-size:max(4.5px,1cqw);color:#7DE3A6;margin-left:.8cqw}
.dash-row{flex:1;display:grid;grid-template-columns:1.35fr 1fr;gap:1.2cqw;min-height:0}
.dash-row .chart{height:100%;min-height:0;background:#0F121B;border:1px solid rgba(255,255,255,.07);border-radius:.8cqw;padding:1cqw}
.orders{background:#0F121B;border:1px solid rgba(255,255,255,.07);border-radius:.8cqw;padding:1cqw 1.2cqw;font-size:max(4.5px,1.15cqw);color:#C7CCD8;display:flex;flex-direction:column;gap:.7cqw;min-width:0;overflow:hidden}
.orders small{font-size:max(4.5px,1.05cqw);color:#8F96A8}
.orders p{display:flex;gap:1cqw;margin:0;white-space:nowrap}.orders p span:nth-child(2){flex:1;overflow:hidden}.orders b{color:#fff}
.phone-screen{display:block;padding:12% 9% 6%;background:linear-gradient(170deg,#141827,#07080E);text-align:left;color:#fff}
.phone-screen .demo-ribbon{top:2%;right:6%;font-size:max(5px,1cqw)}
.ph-brand{margin:0 0 6%;font-size:max(5px,1.5cqw);font-weight:800;letter-spacing:.05em}
.ph-k{margin:0;font-size:max(4.5px,1.15cqw);color:#B5BBC9}
.ph-v{margin:.4cqw 0 2%;font-size:max(8px,2.9cqw);font-weight:800}
.ph-chart{display:block;width:100%;height:16%;margin-bottom:5%}
.ph-row{display:flex;justify-content:space-between;margin:0;padding:3% 0;border-top:1px solid rgba(255,255,255,.1);font-size:max(4.5px,1.2cqw);color:#C7CCD8}.ph-row b{color:#fff}
.demo-card .pos-demo,.demo-card .dash-wrap{height:270px}
.demo-card .dash-wrap{height:300px}
.proj-visual-pos .pos-demo{display:flex;flex-direction:column;justify-content:center;padding-top:2.4rem}
.foot-bottom{align-items:center}
.own-grid>*,.cards>*{min-width:0}
.proj-card{overflow:hidden}
.proj-card p,.proj-facts span,.proj-card h3{overflow-wrap:anywhere}
/* V3 release: authentic Executive capture */
.exe-shot{display:block;position:relative;padding:0;margin:0 0 1rem}
.exe-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.exe-shot figcaption{position:absolute;left:0;right:0;bottom:0;padding:.35rem .7rem;font-size:.74rem;background:rgba(5,5,10,.78);color:#E9E9F0}
/* V3 release 002 */
.legal-draft{border:1px solid var(--line);border-left:4px solid #E0213D;border-radius:8px;padding:.8rem 1rem;background:rgba(224,33,61,.08);font-size:.95rem}
.legal .back-link{margin-top:2rem}

/* YJY POS authentic screenshots (RELEASE-005) */
.demo-shot{display:flex;align-items:center;justify-content:center;margin-bottom:1rem;height:235px;border:1px solid var(--line);border-radius:12px;background:#05060A;overflow:hidden}
.demo-shot img{display:block;width:100%;height:auto;max-height:100%;object-fit:contain}
.prod-card .demo-shot{height:auto;min-height:0;aspect-ratio:auto}
.prod-card .demo-shot img{max-height:none}
.pos-shot{margin:1.4rem 0 0}
.pos-shot a{display:block;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#05060A}
.pos-shot a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.pos-shot img{display:block;width:100%;height:auto}
.pos-shot figcaption{margin-top:.5rem;font-size:.9rem;color:var(--muted)}
.shot-row{display:flex;flex-direction:column;gap:1rem}
.shot-row .pos-shot{margin:1.4rem 0 0;min-width:0}
.pos-notice{margin:0 0 2.2rem;padding:1.1rem 1.25rem;border:1px solid var(--line);border-left:3px solid var(--red);border-radius:12px;background:var(--panel)}
.pos-notice h2{font-size:1.2rem;margin:0 0 .6rem}
.pos-notice ul{margin:0;padding-left:1.2rem;color:var(--soft)}
.pos-notice li{margin-bottom:.4rem}
.pos-areas-h{margin:0 0 .4rem}
.pos-area{padding:1.8rem 0 .6rem;border-top:1px solid var(--line);margin-top:1.4rem}
.pos-area-head{display:flex;align-items:center;gap:.8rem;margin-bottom:.5rem}
.pos-area-head h3{margin:0;font-size:1.3rem}
.pos-area-n{flex:0 0 2.1rem;width:2.1rem;height:2.1rem;border-radius:50%;background:var(--red);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
.pos-area-p{max-width:60rem;color:var(--soft)}
.pos-state{margin-top:2.2rem}
@media (min-width:760px){
  .shot-row{flex-direction:row;align-items:flex-start}
  .shot-row .pos-shot{flex:var(--r) 1 0}
  .demo-card .demo-shot{height:270px}
}
@media (min-width:1100px){.prod-card .demo-shot{margin-bottom:1.2rem}}
.pos-title-row{justify-content:flex-start;padding:0;border-top:0;font-size:1rem;color:inherit;margin:0 0 .8rem}

/* RELEASE-006: project cards */
.proj-shot{margin:0 0 1rem}
.proj-shot-frame{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background:#05060A;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.proj-shot-frame img{display:block;width:100%;height:100%;object-fit:contain}
a.proj-shot-frame:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.proj-shot figcaption{margin-top:.55rem;font-size:.86rem;line-height:1.4;color:var(--muted)}
.proj-card .proj-head h3{font-size:1.4rem;line-height:1.2}
.proj-card .proj-sub{margin:0 0 .7rem;font-size:.98rem}
.proj-card .proj-desc{margin:0 0 .9rem;color:var(--soft);line-height:1.55}
.proj-card .proj-facts{margin:0 0 .4rem;gap:.45rem;color:var(--soft);font-size:.95rem}
.proj-cta .btn{min-height:46px}
.demo-solo{display:grid;gap:1.2rem;align-items:center}
.demo-card.demo-solo .dash-wrap{height:auto;aspect-ratio:16/10;margin:0}
.demo-solo h3{margin-top:0}
@media (min-width:860px){
  .demo-solo{grid-template-columns:1.15fr 1fr;gap:2rem;padding:1.4rem}
  .demo-solo .demo-solo-text h3{font-size:1.4rem}
  .demo-grid-2{grid-template-columns:repeat(2,1fr)}
  .demo-grid-2 .demo-shot,.demo-grid-2 .dash-wrap{height:280px}
}
@media (min-width:760px){.proj-shot figcaption{min-height:2.9em}}
