  :root{
    --bg:#E6E8EC;
    --ink:#010101;
    --blue:#123655;
    --blue-mid:#3D719D;
    --blue-deep:#0d2740;
    --blue-lift:#1d537f;
    --blue-glow:#2f6da0;
    --light:#7EB7DE;
    --ease:cubic-bezier(.22,1,.36,1);
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html{-webkit-text-size-adjust:100%}
  body{
    font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    color:var(--ink);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased;
  }
  .font-recepts{font-family:'Recepts NF W01 Regular',system-ui,sans-serif}

  /* entrance animations (load only) */
  @keyframes rise-in{from{opacity:0;transform:translateY(24px)}}
  @keyframes fade-in{from{opacity:0}}
  @keyframes zoom-in{from{opacity:0;transform:scale(1.05)}}
  .animate-rise{animation:rise-in .8s var(--ease) backwards}
  .animate-fade{animation:fade-in .8s ease-out backwards}
  .animate-zoom{animation:zoom-in 1.2s var(--ease) backwards}
  @media (prefers-reduced-motion:reduce){
    .animate-rise,.animate-fade,.animate-zoom{animation:none}
  }

  .hero{position:relative;height:100vh;overflow:hidden}

  /* ---------- TOP BAR ---------- */
  /* the bar itself passes clicks through; only its controls catch them */
  .topbar{position:absolute;top:16px;left:0;right:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 16px;pointer-events:none}
  .topbar #homeBtn,.topbar .rightcluster{pointer-events:auto}
  .rightcluster{display:flex;align-items:center}
  .inquire{font-family:system-ui,sans-serif;font-weight:600;background:var(--blue);color:#fff;padding:16px 32px;font-size:12px;letter-spacing:.08em;text-decoration:none;transition:background .2s,color .2s;white-space:nowrap;cursor:pointer;border:none}
  .inquire:hover{background:var(--blue-mid)}
  /* chip: rounded rectangle with one cropped corner, echoing the panel */
  .chip{border-radius:0}
  body[data-state="contact"] .inquire{background:var(--blue);color:#fff}

  /* ---------- CENTER PANEL (morphing) ---------- */
  .panel{position:absolute;top:20px;bottom:20px;left:31%;right:31%;border-radius:0;overflow:hidden;background:var(--blue-deep);
    transition:top .8s var(--ease),bottom .8s var(--ease),left .8s var(--ease),right .8s var(--ease)}
  /* clip-path is intentionally NOT transitioned: it is recomputed every frame during the
     morph from the panel's live size, so the notch stays true while the box resizes */
  .panel .field{position:absolute;inset:0;background:
     radial-gradient(120% 80% at 50% 8%, var(--blue-glow) 0%, var(--blue-lift) 34%, var(--blue) 62%, var(--blue-deep) 100%);}
  .panel .grid{position:absolute;inset:0;opacity:.5}
  .panel .plabel{position:absolute;top:26px;left:28px;z-index:6;font-family:system-ui,sans-serif;font-weight:600;font-size:11px;letter-spacing:.18em;color:rgba(255,255,255,.7)}
  .panel .pfoot{position:absolute;bottom:26px;right:28px;z-index:6;font-family:system-ui,sans-serif;font-weight:600;font-size:11px;letter-spacing:.18em;color:rgba(255,255,255,.7);transition:opacity .3s}
  /* per-state safe positions: keep label, close and caption inside whichever corner is not cut */
  body[data-state="machine"] .plabel, body[data-state="cost"] .plabel{left:auto;right:72px}
  body[data-state="data"] .plabel{left:72px}
  body[data-state="data"] .pclose{right:auto;left:20px}
  body[data-state="contact"] .pfoot{right:auto;left:28px}

  /* close (returns to hero) */
  .pclose{position:absolute;top:20px;right:20px;z-index:7;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:transparent;color:rgba(255,255,255,.8);cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .3s, background .2s}
  .pclose::after{content:'';position:absolute;inset:-8px} /* square hit zone: the whole box is clickable, not just the circle */
  .pclose:hover{background:rgba(255,255,255,.12)}
  body:not([data-state="hero"]) .pclose{opacity:1;pointer-events:auto}

  /* ---------- PANEL SCENE (25s cycle: scatter ~4s, land, hold ~20s) ---------- */
  .scene{position:absolute;inset:0;z-index:6;pointer-events:none;transition:opacity .4s ease}
  body[data-state="machine"] .scene{opacity:0}
  body[data-state="data"] .fliers, body[data-state="cost"] .fliers, body[data-state="contact"] .fliers,
  body[data-state="data"] .hint, body[data-state="cost"] .hint, body[data-state="contact"] .hint{visibility:hidden}
  .fliers{position:absolute;inset:0;z-index:1;overflow:hidden}
  .fq{position:absolute;background:var(--light);border-radius:2px;opacity:0;box-shadow:0 0 10px rgba(126,183,222,.55);animation:fly 17s cubic-bezier(.3,.1,.7,.9) infinite;animation-delay:var(--d)}
  @keyframes fly{
    0%{opacity:0;transform:translate(0,0) rotate(0deg)}
    1.5%{opacity:.85}
    10%{opacity:.85}
    14.2%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--r))}
    100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--r))}
  }
  .monolith{position:absolute;z-index:2;left:50%;top:50%;width:46%;max-width:230px;height:auto;display:block;transform:translate(-50%,-50%);cursor:pointer;pointer-events:auto;transition:transform .8s var(--ease),width .8s var(--ease),max-width .8s var(--ease)}
  .monolith:hover{transform:translate(-50%,-50%) scale(1.04)}
  body[data-state="data"] .monolith, body[data-state="cost"] .monolith, body[data-state="contact"] .monolith{width:var(--ow,160px);max-width:none;transform:translate(var(--mx,0px),var(--my,0px))}
  body[data-state="data"] .monolith:hover, body[data-state="cost"] .monolith:hover, body[data-state="contact"] .monolith:hover{transform:translate(var(--mx,0px),var(--my,0px)) scale(1.05)}
  .oq{transform-box:fill-box;transform-origin:center;opacity:0;animation:land 17s ease infinite}
  @keyframes land{
    0%,26.5%{opacity:0;transform:scale(2.6)}
    27.6%{opacity:1;transform:scale(1)}
    28.8%{opacity:.3}
    30%{opacity:1}
    31.2%{opacity:.3}
    32.4%{opacity:1;transform:scale(1)}
    98%{opacity:1;transform:scale(1)}
    100%{opacity:0;transform:scale(1)}
  }
  /* the invite: small CLICK with an up arrow, centred under the O glyph, appearing at 10s */
  .hint{position:absolute;left:calc(50% + 10px);top:calc(50% + 62px);transform:translateX(-50%);z-index:3;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9px;font-weight:600;letter-spacing:.18em;color:var(--blue-mid);opacity:0;animation:hintcycle 17s ease infinite}
  .hint svg{display:block;opacity:.85}
  @keyframes hintcycle{
    0%,58.8%{opacity:0}
    62%{opacity:1}
    97%{opacity:1}
    100%{opacity:0}
  }
  @media (prefers-reduced-motion:reduce){
    .fq{display:none}
    .oq{animation:none;opacity:1}
    .hint{animation:none;opacity:1}
  }

  /* ---------- PANEL CONTENT (sections inside the blue box) ---------- */
  .pbody{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;justify-content:center;justify-content:safe center;overflow-y:auto;padding:80px 48px;opacity:0;pointer-events:none;transition:opacity .35s ease}
  /* hard boundary: content may never enter a cut corner. Top padding clears each state's
     top chamfer (machine TL 300, cost TL 160, data TR 160) at the content's left/right edge */
  .pbody[data-body="machine"]{padding-top:320px}
  .pbody[data-body="data"],.pbody[data-body="cost"]{padding-top:180px}
  .pbody.active{opacity:1;pointer-events:auto}
  .pbody h2{font-family:'Recepts NF W01 Regular',system-ui,sans-serif;font-size:clamp(22px,2.2vw,32px);letter-spacing:.08em;color:#fff;margin-bottom:28px}
  .pbody .item{display:flex;gap:16px;align-items:baseline;padding:13px 0;border-top:1px solid rgba(255,255,255,.14);opacity:0;transform:translateY(18px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
  .pbody.active .item{opacity:1;transform:none;transition-delay:calc(var(--i)*.13s + .5s)}
  .pbody .item .k{flex:0 0 132px;font-size:10.5px;font-weight:700;letter-spacing:.14em;color:var(--light)}
  .pbody .item .v{font-size:14px;color:rgba(255,255,255,.92);line-height:1.5}
  .pbody .pcta{margin-top:30px;opacity:0;transform:translateY(18px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
  .pbody.active .pcta{opacity:1;transform:none;transition-delay:calc(var(--n)*.13s + .65s)}
  .pcta button{font-family:system-ui,sans-serif;font-weight:600;font-size:12px;letter-spacing:.08em;background:#fff;color:var(--ink);border:none;border-radius:0;padding:14px 28px;cursor:pointer;transition:background .2s,color .2s}
  .pcta button:hover{background:var(--light)}

  /* ---------- HEADLINE / TAGLINE (left gutter) ---------- */
  .headline{position:absolute;left:32px;top:38%;transform:translateY(-50%);z-index:30;max-width:22%;transition:opacity .45s ease,transform .6s var(--ease)}
  .eyebrow{font-family:system-ui,sans-serif;font-weight:600;font-size:11px;letter-spacing:.22em;color:var(--blue-mid);margin-bottom:14px}
  .headline h1{font-family:'Recepts NF W01 Regular',sans-serif;font-size:clamp(30px,3.6vw,54px);line-height:1.08;letter-spacing:.06em;color:var(--ink)}
  .headline h1 .l2{letter-spacing:.24em;display:block}
  .tagline{position:absolute;left:32px;bottom:24px;z-index:30;max-width:22%;transition:opacity .45s ease,transform .6s var(--ease)}
  .tagline .lead{font-family:system-ui,sans-serif;font-weight:700;font-size:13px;letter-spacing:.04em;margin-bottom:10px}
  .tagline p{font-size:12.5px;line-height:1.55;color:#333;max-width:270px}
  body[data-state="machine"] .headline, body[data-state="machine"] .tagline,
  body[data-state="contact"] .headline, body[data-state="contact"] .tagline{opacity:0;transform:translateX(-28px);pointer-events:none}

  /* ---------- CARDS (right gutter) ---------- */
  .cards{position:absolute;right:32px;top:50%;transform:translateY(-50%);z-index:30;display:flex;flex-direction:column;gap:16px;width:19%;min-width:170px;max-width:200px;transition:opacity .45s ease,transform .6s var(--ease)}
  body[data-state="contact"] .cards{opacity:0;transform:translateY(-50%) translateX(28px);pointer-events:none}
  .card{background:#fff;border:1px solid #D0D0D2;border-radius:24px;padding:8px;cursor:pointer;transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease}
  .card:hover{transform:translateY(-4px)}
  .card.active{border-color:var(--blue-mid);box-shadow:0 0 0 2px rgba(61,113,157,.25)}
  .card .thumb{border-radius:16px;overflow:hidden;height:120px;background:linear-gradient(160deg,var(--blue-lift),var(--blue-deep));display:flex;align-items:center;justify-content:center}
  .card .crow{display:flex;align-items:center;justify-content:space-between;padding:10px 8px 8px}
  .card .crow .lbl{font-size:11px;font-weight:600;line-height:1.25;max-width:110px}
  .card .abtn{width:32px;height:32px;border-radius:50%;background:var(--blue-mid);display:flex;align-items:center;justify-content:center;flex:0 0 auto;transition:transform .3s ease}
  .card:hover .abtn{transform:rotate(45deg)}

  /* ---------- CONTACT (outside the blue box, left field) ---------- */
  .contact{position:absolute;left:32px;top:50%;transform:translateY(-50%) translateX(-32px);z-index:30;width:calc(48% - 64px);max-width:520px;opacity:0;pointer-events:none;transition:opacity .5s ease .25s,transform .7s var(--ease) .25s}
  body[data-state="contact"] .contact{opacity:1;transform:translateY(-50%);pointer-events:auto}
  .contact h2{font-family:'Recepts NF W01 Regular',sans-serif;font-size:clamp(26px,2.6vw,40px);letter-spacing:.08em;margin-bottom:12px;color:var(--ink)}
  .contact .sub{font-size:14px;color:#333;max-width:420px;margin-bottom:18px}
  /* The questionnaire inside [data-lead-form] is rendered and styled by
     /site.js; it takes its look from these --lf-* hooks, so the widget picks up
     the On Premise palette instead of shipping its own. */
  .contact [data-lead-form]{
    --lf-accent:var(--blue);
    --lf-accent-ink:#fff;
    --lf-ink:var(--ink);
    --lf-ink-soft:#333;
    --lf-ink-faint:#5b6b7a;
    --lf-surface:#fff;
    --lf-line:#c9ced6;
    --lf-font:inherit;
    --lf-radius:10px;
  }
  .contact [data-lead-form] a{color:var(--blue-mid)}

  /* ---------- DOMAIN STAMP ---------- */
  .socials{position:absolute;bottom:32px;right:32px;z-index:30;display:flex;gap:24px;transition:opacity .4s ease}
  .socials span{font-family:system-ui,sans-serif;font-weight:600;font-size:11px;letter-spacing:.14em;color:#5b6b7a}
  body[data-state="contact"] .socials{opacity:0}

  /* ---------- MOBILE ---------- */
  @media (max-width:900px){
    .hero{height:auto;overflow:visible;padding-bottom:32px}
    .topbar{position:static;padding:16px 16px 0;}
    .topbar svg{width:160px;height:auto}
    .inquire{padding:12px 20px;font-size:11px}
    .panel{position:relative;top:auto;bottom:auto;left:0 !important;right:0 !important;height:72vh;margin:20px 16px 0}
    .monolith{width:62%}
    .pbody{padding:70px 24px;overflow-y:auto;justify-content:flex-start;padding-top:90px}
    .pbody[data-body="machine"],.pbody[data-body="data"],.pbody[data-body="cost"]{padding-top:120px} /* chamfers clamp to 110 below 900px */
    .pbody .item .k{flex-basis:96px}
    .headline{position:relative;left:auto;top:auto;transform:none;max-width:none;margin:26px 16px 0}
    .tagline{position:relative;left:auto;bottom:auto;max-width:none;margin:26px 16px 0}
    .tagline p{max-width:none}
    body[data-state="machine"] .headline,body[data-state="contact"] .headline,
    body[data-state="machine"] .tagline,body[data-state="contact"] .tagline{display:none}
    .cards{position:relative;right:auto;top:auto;transform:none;flex-direction:row;width:auto;max-width:none;margin:22px 16px 0}
    body[data-state="contact"] .cards{display:none}
    .card{flex:1}
    .contact{position:relative;left:auto;top:auto;transform:none;width:auto;max-width:none;margin:26px 16px 0}
    body[data-state="contact"] .contact{transform:none}
    .socials{display:none}
  }
