/* The Digital Key: homepage-only compositions (the hero stage and the audience line).
   Shared pieces (glass cards, tabs, steps, scorecard, closing panel) come from lux.css. */

/* ---------- Hero ---------- */
.home .hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:center;gap:clamp(2rem,4.5vw,4.5rem);max-width:1232px;margin:0 auto;padding:clamp(6.5rem,5rem + 3vw,8.25rem) var(--gutter) clamp(2.25rem,4vw,3.25rem)}
/* warm light and the card's own contactless rings, centred behind the phone */
.home .hero::before{content:"";position:absolute;z-index:0;inset:-10% -30% 0 30%;pointer-events:none;background:radial-gradient(50% 46% at 62% 46%,rgba(200,169,126,.2),rgba(200,169,126,.05) 55%,transparent 75%)}
.home .hero::after{content:"";position:absolute;z-index:0;top:50%;right:calc(11.4rem - min(32rem,41vw));width:min(64rem,82vw);aspect-ratio:1;pointer-events:none;border-radius:50%;transform:translateY(-50%);background:repeating-radial-gradient(circle,transparent 0 46px,rgba(200,169,126,.08) 46px 47px);-webkit-mask-image:radial-gradient(circle,#000 16%,transparent 64%);mask-image:radial-gradient(circle,#000 16%,transparent 64%);translate:0 calc(var(--drift,0)*5rem)}
.home .hero>*{position:relative;z-index:1;min-width:0}
.home .hero-copy{container-type:inline-size}
.home .hero h1{max-width:none;margin:0 0 clamp(1.1rem,2.4vh,1.6rem);font-size:clamp(2.75rem,min(11.3cqi,10.4vh),5.5rem);line-height:1.01}
.home .hero h1>*{display:block}
.home .hero .lead{max-width:35rem;margin:0 0 1.4rem;font-size:clamp(1.0625rem,.96rem + .42vw,1.25rem);line-height:1.6;color:var(--slate)}
.home .hero-checks{display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;margin:0 0 clamp(1.6rem,3.4vh,2.2rem);padding:0;list-style:none;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--ivory)}
.home .hero-checks li{display:inline-flex;align-items:center;gap:.55rem}
.home .hero-checks .ic{box-sizing:content-box;width:.8rem;height:.8rem;padding:.25rem;border-radius:50%;background:var(--gold-wash);border:1px solid var(--gold-line);color:var(--gold-bright);stroke-width:2.5}
.home .hero .tv-actions{margin:0}

/* the interactive stage: valet card beside a phone browser */
.home .hero-stage{display:flex;flex-direction:column;align-items:center;gap:1.1rem;scroll-margin-top:5.5rem}
.home .demo-caption{order:2;display:flex;flex-wrap:wrap;justify-content:center;gap:.15rem .6rem;margin:0;font-size:.8125rem;line-height:1.6;color:var(--slate);text-align:center}
.home .demo-caption .tap-hint{display:inline;min-height:0;max-width:none;font-size:inherit;letter-spacing:0;text-transform:none;color:var(--ivory);transition:none}
.home .demo-stage{--phone-w:clamp(220px,min(21vw,34vh),284px);--card-w:clamp(200px,min(21vw,34vh),300px);position:relative;display:block;width:min(100%,28.5rem);gap:0}
.home .phone-mask{margin-left:auto;width:var(--phone-w);border-radius:46px;padding:9px;background:linear-gradient(150deg,#39404D,#10141B 45%,#232A36);border:1px solid rgba(255,255,255,.14);box-shadow:0 50px 90px -40px rgba(0,0,0,.95),0 0 0 1px rgba(0,0,0,.55),inset 0 0 2px rgba(255,255,255,.3);translate:0 calc(var(--drift,0)*1.5rem);transition:box-shadow .6s var(--ease-soft),translate .45s var(--ease-out)}
.home .demo-stage.lit .phone-mask{box-shadow:0 50px 90px -40px rgba(0,0,0,.95),0 34px 80px -24px rgba(200,169,126,.3),0 0 0 1px rgba(0,0,0,.55),inset 0 0 2px rgba(255,255,255,.3)}
.home .screen-stack{border-radius:37px;container-type:inline-size}
.home .screen-dark::after{content:none}
/* the card overlaps only the phone's bezel and reaches out toward the copy */
.home .card-side{position:absolute;left:auto;right:calc(var(--phone-w) - 1.4rem);bottom:9%;z-index:3;display:block;translate:0 calc(var(--drift,0)*-3.5rem);transition:translate .45s var(--ease-out)}
.home .tap-card{container-type:inline-size;display:block;width:var(--card-w);aspect-ratio:856/540;padding:0;border:0;border-radius:18px;background:none;box-shadow:none;perspective:900px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.home .tap-card:focus-visible{outline-offset:8px}
.home .kc{position:absolute;inset:0;display:block;overflow:hidden;border-radius:inherit;color:var(--gold);border:1px solid rgba(230,208,171,.62);background:radial-gradient(120% 95% at 100% 0%,rgba(200,169,126,.36),transparent 58%),linear-gradient(135deg,#2B3447 0%,#141A26 50%,#212A3B 100%);box-shadow:0 40px 60px -24px rgba(0,0,0,.95),0 22px 50px -22px rgba(200,169,126,.4),0 0 0 1px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.22);transform:rotateX(calc(9deg + var(--rx,0deg) + var(--drift,0)*9deg)) rotateY(calc(-17deg + var(--ry,0deg) + var(--drift,0)*13deg)) rotateZ(calc(-5deg + var(--drift,0)*4deg));transition:transform .45s var(--ease-out)}
.home .kc::before{content:"";position:absolute;right:-18%;bottom:-62%;width:86%;aspect-ratio:1;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 9px,rgba(230,208,171,.2) 9px 10px);-webkit-mask-image:radial-gradient(circle,#000 30%,transparent 70%);mask-image:radial-gradient(circle,#000 30%,transparent 70%)}
.home .kc-brand{position:absolute;left:7.5cqi;top:8.5cqi;font-family:var(--font-sans);font-size:3.6cqi;font-weight:600;letter-spacing:.24em;line-height:1;text-transform:uppercase;color:var(--gold-bright)}
.home .kc-nfc{position:absolute;right:7cqi;top:6cqi;width:11cqi;height:11cqi;fill:none;stroke:var(--gold-bright);stroke-width:1.6;stroke-linecap:round}
.home .kc-num{position:absolute;left:7cqi;bottom:12cqi;font-family:var(--font-display);font-size:21cqi;font-weight:600;font-variant-numeric:lining-nums;line-height:.8;letter-spacing:.01em;color:var(--gold-bright);text-shadow:0 1px 0 rgba(0,0,0,.65)}
.home .kc-tag{position:absolute;left:7.5cqi;bottom:5.4cqi;font-family:var(--font-sans);font-size:3.7cqi;font-weight:500;line-height:1;letter-spacing:.03em;color:rgba(248,246,240,.8)}
.home .kc-glare{position:absolute;inset:-60%;pointer-events:none;background:radial-gradient(closest-side,rgba(255,255,255,.34),transparent 70%);opacity:.6;transform:translate(calc(-22% + var(--gx,0%) + var(--drift,0)*58%),calc(-26% + var(--gy,0%) + var(--drift,0)*22%));transition:transform .45s var(--ease-out),opacity .45s var(--ease-soft)}
.home .demo-stage.is-flying .kc{transform:rotateX(0deg) rotateY(0deg) rotateZ(0deg)}
.home .tap-card:active .kc{box-shadow:0 18px 30px -16px rgba(0,0,0,.9),0 0 0 1px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.22)}
.home .contact-ring{border-color:var(--gold-bright)}

/* guest page inside the phone: mirrors the real guest page, in the site faces */
.home .g-screen,.home .g-btn,.home .g-item,.home .g-statusbar,.home .nb-text,.home .g-urlbar{font-family:var(--font-sans)}
.home .g-urlbar{position:absolute;top:39px;left:12px;right:12px;z-index:5;display:flex;align-items:center;justify-content:center;gap:5px;height:25px;border-radius:13px;background:rgba(255,255,255,.09);color:#DAD5C8;font-size:10.5px;font-weight:500;line-height:1;pointer-events:none}
.home .g-urlbar .ic{width:10px;height:10px;stroke-width:2.2}
.home .nfc-banner{top:36px;transition:transform .5s var(--ease-out),opacity .35s var(--ease-soft)}
.home .nfc-banner.open{transition:transform .3s var(--ease-soft),opacity .28s var(--ease-soft)}
.home .g-inner{padding-top:76px}
.home .g-brand{color:#C8A97E}
.home .g-head{font-family:var(--font-display);font-size:clamp(17px,8.6cqi,22px);font-weight:600;line-height:1.08;margin:2px 0 10px}
.home .g-head em{font-style:italic}
.home .g-chip{width:fit-content;max-width:100%;font-size:clamp(9.5px,4.7cqi,11px);line-height:1.3;text-align:center}
.home .g-chip .ic{flex:none;width:13px;height:13px;stroke:#9C7B45;stroke-width:2}
.home .gs{font-size:9.5px;color:#6F6878}
.home .gs.active{color:#1D1B2C;font-weight:700}
.home .g-btn{padding:0 8px;background:linear-gradient(120deg,#B9975F,#DFC393);font-size:12.5px;line-height:1.2}
.home .g-btn:active{transform:scale(.98)}
.home .g-btn-quiet{margin-top:8px;background:#fff;border:1px solid #E4DCCB;color:#1D1B2C;font-size:12px;font-weight:600}
.home .g-btn-quiet[aria-pressed="true"]{background:#F6F1E4;border-color:#D8C9A6}
.home .g-schedule{margin:8px 0 0;font-size:11px;font-weight:600;color:#7B6233;text-align:center}
.home .g-schedule[hidden]{display:none}
.home .g-label{color:#C8A97E}
.home .g-services{padding:4px 2px}
.home .g-item{grid-template-columns:minmax(0,1fr) auto;min-height:44px;border-radius:12px;font-size:12.5px;font-weight:600;color:#1D1B2C;cursor:pointer}
.home .g-item b{padding:5px 10px;border-radius:999px;background:#F6F1E4;color:#7B6233;font-size:10.5px;font-weight:700}
.home .g-item[aria-pressed="true"] b{background:#1D1B2C;color:#F3E6CC}
.home .g-foot{color:rgba(245,239,226,.6)}
.home .replay-btn{background:rgba(9,12,16,.72);border-color:rgba(248,246,240,.4);color:#F8F6F0}

/* ---------- Three steps on one stage ----------
   Without motion (or below 1001px) the steps are three cards with their own drawings and the stage is not shown.
   With motion, ui.js adds .stage-on: the stage stays in view beside the steps while the card,
   the light on it, the phone and the staff handheld follow the scroll position. */
.home .stage{display:none}
.stage-on .home .stagewrap{display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr);align-items:start;gap:clamp(2rem,5vw,5rem);margin:0 0 2rem}
.stage-on .home .stage{display:block;position:sticky;top:max(5.75rem,calc(50vh - 15.5rem))}
.home .stage-scene{position:relative;container-type:inline-size;aspect-ratio:100/84;overflow:hidden;border:1px solid var(--line);border-radius:28px;background:radial-gradient(80% 70% at 26% 16%,rgba(200,169,126,.17),transparent 62%),linear-gradient(160deg,#151B28,#0A0D13 62%);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 40px 80px -44px rgba(0,0,0,.95)}
.home .st-rings{position:absolute;left:30%;top:46%;width:124cqi;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 5.6cqi,rgba(200,169,126,.075) 5.6cqi calc(5.6cqi + 1px));-webkit-mask-image:radial-gradient(circle,#000 10%,transparent 58%);mask-image:radial-gradient(circle,#000 10%,transparent 58%)}
.home .st-chip{position:absolute;right:3.2cqi;bottom:3.2cqi;z-index:4}
.home .st-set1{position:absolute;inset:0}
.home .st-hook{position:absolute;left:67%;top:5%;width:20cqi}
.home .st-hook svg{display:block;width:100%;height:auto;overflow:visible}
.home .st-hook .l{fill:none;stroke:#C8A97E;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.home .st-hook .d{fill:#0A0D13;stroke:#C8A97E;stroke-width:1.5}
.home .st-hook .g{fill:#C8A97E}
.home .st-hook text{font-family:var(--font-display);font-weight:600;font-variant-numeric:lining-nums;fill:#E6D0AB}
.home .st-shots{position:absolute;left:8%;top:71%;display:flex;gap:2cqi}
.home .st-shot{display:grid;gap:1cqi;width:13.5cqi}
.home .st-shot svg{display:block;width:100%;height:auto;border:1px solid var(--gold-line);border-radius:1.8cqi;background:#0A0D13}
.home .st-shot svg path,.home .st-shot svg circle{fill:none;stroke:#C8A97E;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.home .st-shot b{font-size:max(11px,2.05cqi);font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--gold-bright);text-align:center}
.home .st-phone{position:absolute;left:61%;top:7%;width:31cqi;aspect-ratio:9/18.4;padding:1.5cqi;border-radius:5.6cqi;background:linear-gradient(150deg,#39404D,#10141B 45%,#232A36);border:1px solid rgba(255,255,255,.14);box-shadow:0 6cqi 10cqi -5cqi rgba(0,0,0,.95),0 4cqi 9cqi -4cqi rgba(200,169,126,.22),inset 0 0 2px rgba(255,255,255,.3)}
.home .st-screen{position:relative;height:100%;overflow:hidden;border-radius:4.3cqi;background:#11151D}
.home .st-phone .st-screen::before{content:"";position:absolute;top:2.7cqi;left:50%;width:46%;height:2.7cqi;translate:-50% 0;border-radius:999px;background:rgba(255,255,255,.09)}
.home .st-view{position:absolute;inset:0;display:flex;flex-direction:column;gap:1.7cqi;padding:9.5cqi 2.2cqi 3cqi}
.home .st-ghost{height:4.6cqi;border-radius:1.7cqi;background:rgba(255,255,255,.055)}
.home .st-ghost+.st-ghost{width:72%}
.home .st-brand{font-size:max(10px,1.75cqi);font-weight:600;letter-spacing:.16em;line-height:1.2;text-transform:uppercase;color:var(--gold);text-align:center}
.home .st-pane{display:grid;gap:1.9cqi;padding:3cqi 2.2cqi;border-radius:2.8cqi;background:#FBF8F1;color:#1D1B2C;text-align:center}
.home .st-pane b{font-family:var(--font-display);font-size:max(15px,3.5cqi);font-weight:600;line-height:1.08}
.home .st-pane b em{display:block;font-style:italic;color:#8A6B36}
.home .st-btn{display:block;padding:1.5cqi .5cqi;border-radius:999px;background:linear-gradient(120deg,#B9975F,#DFC393);font-size:max(10px,1.72cqi);font-weight:700;line-height:1.2;white-space:nowrap;color:#1D1B2C}
.home .st-dots{display:flex;justify-content:center;gap:1.4cqi;padding:.7cqi 0}
.home .st-dots i{width:1.8cqi;height:1.8cqi;border-radius:50%;background:#B9975F;opacity:.25}
.home .st-hand{position:absolute;left:58%;top:19%;width:33cqi;aspect-ratio:10/13.2;padding:1.6cqi;border-radius:4.6cqi;background:linear-gradient(160deg,#2C333F,#0E1218 50%,#1C222C);border:1px solid rgba(255,255,255,.13);box-shadow:0 6cqi 10cqi -5cqi rgba(0,0,0,.95),inset 0 0 2px rgba(255,255,255,.28)}
.home .st-hand .st-screen{display:grid;place-content:center;justify-items:center;gap:1.6cqi;border-radius:3.2cqi;background:#0B0F15;text-align:center}
.home .st-check{display:block;width:11.5cqi;height:11.5cqi}
.home .st-check circle{fill:rgba(200,169,126,.12);stroke:rgba(200,169,126,.5);stroke-width:1.5}
.home .st-check path{fill:none;stroke:#E6D0AB;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1}
.home .st-ok{display:grid;gap:.6cqi}
/* the car a runner brings back, drawn in the same line as the other drawings */
.home .st-car{position:absolute;left:5%;top:69%;width:42cqi;visibility:hidden}
.home .st-car svg{display:block;width:100%;height:auto}
.home .st-car .d{fill:#0A0D13;stroke:#C8A97E;stroke-width:2.2;stroke-linejoin:round}
.home .st-car .q{fill:none;stroke:rgba(200,169,126,.5);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.home .st-car .g{fill:#C8A97E}
.home .st-ok b{font-family:var(--font-display);font-size:max(17px,4.4cqi);font-weight:600;line-height:1;font-variant-numeric:lining-nums;color:var(--ivory)}
.home .st-ok span{font-size:max(11px,2.05cqi);font-weight:500;line-height:1.3;color:var(--slate)}
.home .st-card{position:absolute;left:8%;top:27%;z-index:3;container-type:inline-size;width:44cqi;aspect-ratio:856/540;border-radius:18px;perspective:900px}
.home .st-card .kc{transform:rotateX(var(--crx,9deg)) rotateY(var(--cry,-17deg)) rotateZ(var(--crz,-5deg));transition:none}
.home .st-card .kc-glare{transform:translate(calc(-22% + var(--cgx,0%)),calc(-26% + var(--cgy,0%)));transition:none}
.home .st-ring{position:absolute;left:64%;top:22%;z-index:4;width:9cqi;aspect-ratio:1;margin:-4.5cqi 0 0 -4.5cqi;border:1.5px solid var(--gold-bright);border-radius:50%;visibility:hidden}
/* beside the stage the steps are plain type on a rail: one is read at a time */
.stage-on .home .flow-steps{display:block;margin:0}
.stage-on .home .flow-steps::before,.stage-on .home .flow-steps::after{display:none}
.stage-on .home .flow-step{justify-content:center;min-height:clamp(19rem,50vh,30rem);padding:0 0 0 clamp(1.5rem,3vw,2.5rem);background:none;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:none;transform:none;opacity:.4;transition:opacity .6s var(--ease-out),border-color .6s var(--ease-out)}
.stage-on .home .flow-step.is-now{opacity:1;border-left-color:var(--gold)}
.stage-on .home .flow-step::before{display:none}
.stage-on .home .flow-step::after{position:static;order:-1;margin:0 0 .9rem;font-size:3.25rem;color:var(--gold)}
.stage-on .home .flow-step .flow-art{display:none}
.stage-on .home .flow-step h3{margin:0 0 .7rem;font-size:clamp(2rem,1.3rem + 1.7vw,2.75rem);line-height:1.1}
.stage-on .home .flow-step p{max-width:25rem;font-size:1.125rem}

/* ---------- Built for: a plain line of audiences, on the content edges ---------- */
.home .segments{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.6rem 2rem;width:min(1152px,100% - 2*var(--gutter));margin:0 auto;padding:1.35rem 0;border-block:1px solid var(--line)}
.home .segments-label{margin:0;font-size:.875rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--slate)}
.home .segments-list{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.9rem;margin:0;padding:0;list-style:none}
.home .segments-list li{display:inline-flex;align-items:center;gap:.5rem;font-size:.9375rem;font-weight:500;line-height:1.5;color:var(--ivory)}
.home .segments-list .ic{color:var(--gold)}

/* ---------- Motion ---------- */
@media(prefers-reduced-motion:no-preference){
  .home .hero-copy>:not(h1){animation:hx-rise .9s var(--ease-out) both}
  .home .hero h1>*{animation:tv-line 1s var(--ease-out) both}
  .home .hero h1>:nth-child(2){animation-delay:.09s}
  .home .hero h1>:nth-child(3){animation-delay:.18s}
  .home .hero-copy>:nth-child(2){animation-delay:.3s}
  .home .hero-copy>:nth-child(3){animation-delay:.38s}
  .home .hero-copy>:nth-child(4){animation-delay:.46s}
  .home .hero-stage{animation:hx-stage 1.1s var(--ease-out) .12s both}
}
@media(prefers-reduced-motion:reduce){.home .kc,.home .kc-glare{transition:none}}

/* ---------- Responsive ---------- */
@media(max-width:1000px){
  .home .hero{grid-template-columns:1fr;gap:2.5rem;padding-top:clamp(6.5rem,5rem + 6vw,8.5rem)}
  .home .hero::before{inset:35% -30% 0 -30%}
  .home .hero::after{top:auto;bottom:-8%;right:auto;left:50%;transform:translateX(-42%);width:min(46rem,150vw)}
  .home .hero h1{font-size:clamp(2.75rem,11.6cqi,5.5rem)}
  .home .demo-stage{--phone-w:clamp(220px,34vw,270px);--card-w:clamp(190px,32vw,260px);width:min(100%,26rem)}
}
@media(max-width:600px){
  .home .hero{padding-bottom:2rem}
  .home .hero .tv-actions{gap:.7rem}
  /* on phones the card sits beside the top of the phone, where it would tap */
  .home .demo-stage{--phone-w:min(236px,62vw);--card-w:min(150px,40vw)}
  .home .card-side{right:auto;left:0;top:11%;bottom:auto}
  .home .segments{justify-content:flex-start}
  .home .segments-list{justify-content:flex-start}
}
