/* Lazy Syntax — homepage experience layer (ribbon-sculpture hero, idea → product threshold, selected work).
   Loaded only by index.html, after home.css, and reuses its Cobalt Sky tokens — the other pages are unaffected.
   Progressive enhancement: the sculpture and threshold scripts add .lsx-live / .lsx-th-ready once they are
   running. Until then (no JS, a script error, no canvas) the headline, phrases, product preview and links render
   as ordinary content and the interactive controls stay hidden. */
[hidden]{display:none!important}
@media (min-width:1025px){.home-v2 .nav-links{font-size:16px;gap:34px}}   /* desktop bar only — not the mobile menu */
.home-v2 .site-header{background:rgba(246,249,252,.9)}

/* ---------- 1 · Hero ----------
   The sculpture has its own row between the two headline lines, so it can never overlap them. Each line is a
   single 1.05-line row (no wrapping) of size --h1; the canvas fills the space between them with --gap clear above
   and below, and sculpture.js scales the shape to its largest outline across every stage so nothing leaves it.
   Desktop (≥1025px): the whole opening screen fits the viewport below the 73px header — the headline responds
   to width and height, and the sculpture row takes whatever height is left. Smaller screens stack and scroll. */
.lsx-hero{--header:73px;--h1:clamp(31px,10vw,84px);--gap:18px;--art:clamp(220px,60vw,400px);position:relative;padding:0;overflow:clip;background:radial-gradient(58% 52% at 50% 46%,rgba(130,200,229,.24),transparent 72%),var(--bg-soft)}
.lsx-hero-in{display:flex;flex-direction:column;padding-top:28px}
.lsx-kicker{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;font-size:16px;font-weight:650;line-height:1.4;color:var(--ink-navy)}
.lsx-kicker-main{display:inline-flex;align-items:center;gap:10px}
.lsx-kicker-side{font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-secondary)}
.lsx-dot{flex-shrink:0;width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,var(--cobalt),var(--sky))}
.lsx-stage{--art-top:calc(var(--h1) * 1.05 + var(--gap));position:relative;display:flex;flex:1 0 auto;margin-top:20px}
.lsx-stage h1{display:flex;flex-direction:column;justify-content:space-between;flex:1 0 auto;min-height:calc(var(--art-top) * 2 + var(--art));font-size:var(--h1);font-weight:640;letter-spacing:-.035em;line-height:1.05;color:var(--ink-navy)}
.lsx-stage h1 span{display:block;white-space:nowrap}
.lsx-stage h1 span+span{text-align:right;color:var(--cobalt)}
.lsx-canvas{position:absolute;left:0;top:var(--art-top);display:block;width:100%;height:calc(100% - var(--art-top) * 2);touch-action:pan-y;cursor:grab;opacity:0;transition:opacity .6s var(--ease)}
.lsx-canvas:active{cursor:grabbing}
/* Original vector logo: a static fallback until the sculpture runs, then the final "Useful software" state —
   sculpture.js sets its box (same aspect ratio as the SVG) and opacity. It never takes pointer input. */
.lsx-mark{position:absolute;left:50%;top:50%;width:auto;height:min(calc(100% - var(--art-top) * 2 - 24px),220px);transform:translate(-50%,-50%);pointer-events:none}
.lsx-live .lsx-canvas{opacity:1}
.lsx-live .lsx-mark{transform:none;opacity:0}
.lsx-lower{display:grid;grid-template-columns:minmax(0,1fr);gap:36px;align-items:end;margin-top:32px}
.lsx-copy{margin-bottom:24px;font-size:clamp(21px,2.4vw,26px);font-weight:620;line-height:1.28;letter-spacing:-.018em;color:var(--ink-navy)}
.lsx-controls{max-width:560px}
.lsx-control-label{margin-bottom:10px;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text-secondary)}
.lsx-states{display:flex;flex-wrap:wrap;gap:8px}
/* Stage selectors: layout only — liquid-glass look and the blue selected state come from buttons.css */
.lsx-states button{flex:1 1 auto;min-height:44px;padding:8px 16px;border-radius:999px;font:inherit;font-size:15px;font-weight:620;white-space:nowrap}
.lsx-range{display:block;width:100%;min-height:36px;margin:10px 0 2px;accent-color:var(--cobalt);cursor:pointer}
.lsx-caption{min-height:3.1em;font-size:15.5px;line-height:1.55;color:var(--text-secondary)}
.lsx-strip{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin-top:40px;padding:20px 0 26px;border-top:1px solid var(--border);font-size:12.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text-secondary)}
@media (min-width:1025px){
  .lsx-hero{--h1:clamp(44px,min(6.4vw,9vh),100px);--gap:clamp(10px,1.8vh,20px);--art:150px}
  .lsx-hero-in{min-height:calc(100vh - var(--header));min-height:calc(100svh - var(--header));padding-top:clamp(14px,2.6vh,30px)}
  .lsx-stage{margin-top:clamp(8px,1.6vh,20px)}
  .lsx-lower{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 80px;margin-top:clamp(10px,2vh,28px)}
  .lsx-copy{margin-bottom:clamp(12px,2vh,22px);font-size:clamp(19px,min(1.7vw,2.9vh),27px)}
  .lsx-controls{max-width:none}
  .lsx-range{min-height:30px;margin:8px 0 0}
  .lsx-caption{min-height:1.55em}
  .lsx-strip{margin-top:clamp(10px,2vh,28px);padding:clamp(10px,1.7vh,18px) 0}
}

/* ---------- 2 · Threshold (navy) ----------
   --open (0 closed → 1 open) is set by threshold.js; without JS it stays 1, so phrases sit at the edges and the
   preview is fully visible. --shift-a / --shift-b (px, measured by JS) pull the phrases in to meet at the seam. */
.lsx-threshold{padding:120px 0;background:var(--ink-navy);color:var(--on-dark)}
.lsx-threshold .kicker{color:var(--sky)}
.lsx-th-stage{--o:var(--open,1);position:relative;isolation:isolate;display:grid;grid-template-rows:auto 1fr auto;gap:28px;min-height:clamp(560px,52vw,720px);padding:40px 48px;border-radius:var(--r-xl);overflow:hidden;background:radial-gradient(55% 60% at 50% 52%,rgba(0,71,171,.5),transparent 72%),#081827;box-shadow:inset 0 0 0 1px var(--line-dark)}
.lsx-th-title{display:contents}
.lsx-th-a,.lsx-th-b{position:relative;z-index:3;display:block;max-width:82%;pointer-events:none;font-size:clamp(34px,5.8vw,84px);font-weight:640;letter-spacing:-.05em;line-height:1}
.lsx-th-a{grid-row:1;justify-self:start;color:#fff;transform:translateX(calc((1 - var(--o)) * var(--shift-a,0px)))}
.lsx-th-b{grid-row:3;justify-self:end;text-align:right;color:var(--sky);transform:translateX(calc((1 - var(--o)) * var(--shift-b,0px)))}
.lsx-th-preview{grid-row:2;align-self:center;justify-self:center;z-index:1;width:min(680px,100%);margin:0;opacity:calc(.3 + var(--o) * .7);transform:scale(calc(.9 + var(--o) * .1))}
.lsx-th-window{overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 40px 80px -30px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.12)}
.lsx-th-bar{display:flex;align-items:center;gap:12px;height:34px;padding:0 14px;background:#EEF2F6;color:#516176;font-size:12px;font-weight:650}
.lsx-th-dots{display:flex;gap:6px}
.lsx-th-dots i{width:9px;height:9px;border-radius:50%;background:#C9D3DD}
.lsx-th-window img{width:100%;height:auto}
.lsx-th-preview figcaption{margin-top:16px;font-size:15.5px;line-height:1.55;color:var(--on-dark-muted);text-align:center}
.lsx-th-preview figcaption strong{color:#fff}
.lsx-th-preview figcaption a{color:var(--sky);font-weight:700;white-space:nowrap;border-bottom:1px solid rgba(130,200,229,.4)}
.lsx-th-preview figcaption a:hover{border-bottom-color:var(--sky)}
.lsx-th-shutter{display:none;position:absolute;z-index:2;top:0;bottom:0;width:calc(50% + 1px);overflow:hidden;background-color:var(--panel-navy);touch-action:pan-y;cursor:grab}
.lsx-th-left{left:0;transform:translateX(calc(var(--o) * -100%));background-image:linear-gradient(90deg,transparent 55%,rgba(130,200,229,.1)),radial-gradient(rgba(130,200,229,.2) 1.2px,transparent 1.6px);background-size:100% 100%,22px 22px;box-shadow:inset -1px 0 0 rgba(130,200,229,.55)}
.lsx-th-right{right:0;transform:translateX(calc(var(--o) * 100%));background-image:linear-gradient(270deg,transparent 55%,rgba(130,200,229,.1)),linear-gradient(rgba(130,200,229,.07) 1px,transparent 1px);background-size:100% 100%,100% 26px}
.lsx-th-sketch{position:absolute;right:14%;top:50%;width:min(46%,300px);aspect-ratio:1.5;transform:translateY(-50%) rotate(-8deg);border:2px dashed rgba(130,200,229,.38);border-radius:50%}
.lsx-th-sketch::after{content:"";position:absolute;left:58%;top:30%;width:22%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(130,200,229,.55),rgba(130,200,229,0) 70%)}
.lsx-th-code{position:absolute;left:14%;top:50%;display:grid;gap:14px;transform:translateY(-50%);font-family:var(--mono);font-size:clamp(12px,1.2vw,15px);color:rgba(130,200,229,.6)}
.lsx-th-code i{font-style:normal;white-space:nowrap}
.lsx-th-code i::before{content:"› ";color:var(--sky)}
.lsx-th-handle{position:absolute;z-index:4;top:50%;left:calc(50% + var(--o) * (50% - 34px));display:grid;place-items:center;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:#fff;color:var(--ink-navy);font-size:20px;font-weight:800;letter-spacing:.04em;box-shadow:0 0 0 6px rgba(130,200,229,.25),0 12px 30px -8px rgba(0,0,0,.6);touch-action:none;cursor:grab;user-select:none}
.lsx-th-handle:active{cursor:grabbing}
.lsx-th-handle:focus-visible{outline:3px solid var(--sky);outline-offset:4px}
.lsx-th-ready .lsx-th-shutter{display:block}
/* Settle smoothly after a click, key press or release; follow the pointer exactly while dragging */
.lsx-th-ready:not(.is-dragging) .lsx-th-shutter,.lsx-th-ready:not(.is-dragging) .lsx-th-a,.lsx-th-ready:not(.is-dragging) .lsx-th-b,.lsx-th-ready:not(.is-dragging) .lsx-th-preview{transition:transform .7s var(--ease),opacity .7s var(--ease)}
.lsx-th-ready:not(.is-dragging) .lsx-th-handle{transition:left .7s var(--ease)}
/* A one-off nudge the first time the closed stage comes into view, to show that it opens */
@media (prefers-reduced-motion:no-preference){
  @keyframes lsx-nudge{0%,100%{transform:translateX(0)}40%{transform:translateX(10px)}70%{transform:translateX(-3px)}}
  .lsx-th-ready.nudge .lsx-th-handle{animation:lsx-nudge 1.1s var(--ease) .3s 2}
}
.lsx-th-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px 40px;margin-top:32px}
.lsx-th-note{max-width:640px;font-size:clamp(17px,1.5vw,20px);line-height:1.55;color:var(--on-dark-muted)}
.lsx-th-toggle{font-family:inherit}            /* tinted liquid glass on navy: buttons.css */

/* ---------- 3 · Selected work ---------- */
.lsx-work{padding:128px 0}
.lsx-work-head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:20px 64px;margin-bottom:56px}
.lsx-work-head h2{font-size:clamp(36px,5vw,68px);font-weight:700;letter-spacing:-.045em}
.lsx-work-head .section-intro{margin:0;max-width:420px}
.lsx-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.lsx-card{position:relative;padding:20px 20px 30px;border-radius:var(--r-xl);background:var(--bg-soft);border:1px solid var(--border);transition:border-color .25s}
.lsx-card>:not(.project-visual),.lsx-card-link>:not(img){margin-inline:8px}
.lsx-card .project-visual{aspect-ratio:16/10;min-height:0;margin-bottom:26px}
.lsx-card .status{margin-bottom:10px}
.lsx-card h3{margin-bottom:10px;font-size:clamp(24px,2.2vw,30px);font-weight:720;color:var(--ink-navy)}
.lsx-card p{font-size:16.5px;line-height:1.6;color:var(--text-secondary)}
.lsx-note{display:flex;gap:8px;margin-top:14px;font-size:14.5px!important;color:var(--text)!important}
.lsx-note span{color:var(--cobalt)}
.lsx-card-link{display:block}
.lsx-card-product img{width:100%;height:auto;aspect-ratio:16/10;margin-bottom:26px;border-radius:var(--r-lg);object-fit:cover;background:#fff}
.lsx-shot-gds{object-position:left top}
.lsx-card-product .text-link{margin-top:18px}
.lsx-card-product:hover{border-color:var(--cobalt)}
.lsx-card-product:hover .text-link{border-bottom-color:currentColor}
.lsx-card-product:hover .arrow{transform:translateX(4px)}
.lsx-work .actions{margin-top:48px}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .lsx-threshold{padding:88px 0}
  .lsx-th-stage{min-height:0;padding:32px 24px;gap:24px}
  .lsx-th-a,.lsx-th-b{max-width:92%}
}
@media (max-width:768px){
  .lsx-work{padding:96px 0}
  .lsx-work-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .home-v2 .site-header{background:rgba(246,249,252,.94)}
  .lsx-hero-in{padding-top:22px}
  .lsx-kicker{font-size:15px}
  .lsx-kicker-side{display:none}
  .lsx-intro .actions{flex-direction:column;align-items:stretch}
  /* Phones: copy → shape controls → buttons (the intro wrapper dissolves so its children join the grid) */
  .lsx-intro{display:contents}
  .lsx-copy{order:1;margin-bottom:0}
  .lsx-controls{order:2}
  .lsx-intro .actions{order:3;margin-top:-20px}
  .lsx-states button{font-size:14px;padding:8px 12px}
  .lsx-strip{flex-direction:column;margin-top:36px;font-size:11.5px;line-height:1.6}
  .lsx-threshold{padding:72px 0}
  /* Full-bleed stage on phones so the product preview stays as large as possible */
  .lsx-threshold .wrap{width:100%}
  .lsx-threshold .kicker,.lsx-th-foot{padding-inline:16px}
  .lsx-th-stage{padding:28px 20px;border-radius:0;box-shadow:none}
  .lsx-th-a,.lsx-th-b{font-size:clamp(30px,10vw,44px)}
  .lsx-th-preview figcaption{font-size:14.5px}
  /* Fully open, the handle tucks half off the edge so it barely covers the screenshot */
  .lsx-th-handle{width:46px;height:46px;margin:-23px 0 0 -23px;left:calc(50% + var(--o) * (50% - 12px))}
  .lsx-th-code{left:12%;top:68%;font-size:11px}
  .lsx-th-foot{margin-top:24px}
  .lsx-th-toggle{width:100%}
  .lsx-work{padding:80px 0}
  .lsx-work-head{margin-bottom:36px}
  .lsx-card{padding:14px 14px 24px;border-radius:24px}
  .lsx-card>:not(.project-visual),.lsx-card-link>:not(img){margin-inline:6px}
  .lsx-card .project-visual{aspect-ratio:auto;padding:16px}
}
@media (max-width:360px){
  .lsx-states button{flex-basis:100%}
}
