/* Lexcut site. General Sans (Indian Type Foundry, ITF Free Font License, see /fonts/GeneralSans-LICENSE.txt). */
@font-face{font-family:"General Sans";src:url("/fonts/GeneralSans-Variable.woff2") format("woff2");font-weight:200 700;font-style:normal;font-display:swap}

:root{
  --bg:#0b0c0a;--rule:rgba(237,239,232,.1);--rule-2:rgba(237,239,232,.18);
  --text:#edefe8;--muted:#9a9f92;--fade:#7a7f73;
  --lime:#c6e85b;--on-lime:#151a05;--lime-rule:rgba(21,26,5,.18);--teal:#2ec4b6;
  --font:"General Sans",ui-sans-serif,system-ui,sans-serif;
  --max:76rem;--pad:clamp(1.25rem,4vw,3rem);
  --ease:cubic-bezier(.16,.84,.24,1);
}
*{box-sizing:border-box}
html{color-scheme:dark;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 1rem/1.6 var(--font);-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column;overflow-x:clip}
main{flex:1}
img,video{display:block;max-width:100%;height:auto}
h1,h2,h3,p,ul,figure{margin:0}
ul{padding:0;list-style:none}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.22em}
:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.skip{position:absolute;left:-999px;top:.5rem;background:var(--lime);color:var(--on-lime);padding:.5rem .9rem;z-index:10;font-weight:600;text-decoration:none}
.skip:focus{left:.5rem}

/* Lenis */
html.lenis,html.lenis body{height:auto}
.lenis:not(.lenis-autoToggle).lenis-stopped{overflow:clip}
.lenis.lenis-smooth iframe{pointer-events:none}

/* The editorial frame: every band has the same inner column, ruled left and right. */
.in{max-width:var(--max);margin-inline:auto;padding-inline:var(--pad);position:relative}
section,header.site,footer.site,.scrub{border-bottom:1px solid var(--rule)}
@media (min-width:760px){.in{border-inline:1px solid var(--rule)}}

/* Type */
.eyebrow,.num,.f-h,.d-label,.status-line span{font-size:.75rem;line-height:1.2;font-weight:600;letter-spacing:.09em;text-transform:uppercase}
.eyebrow{color:var(--text);margin-bottom:1.25rem}
h1,h2{font-weight:600;letter-spacing:-.035em;line-height:1.02;text-wrap:balance}
h1{font-size:clamp(2.8rem,7.4vw,6.2rem);max-width:11ch}
h2{font-size:clamp(2rem,4.4vw,3.6rem);max-width:13ch}
.row h2{font-size:clamp(1.9rem,3.6vw,3rem);line-height:1.04;max-width:12ch}
h1 em,h2 em{font-style:normal;color:var(--lime)}
.fade{color:var(--fade)}
.big{font-size:clamp(1.25rem,2vw,1.6rem);line-height:1.3;font-weight:500;letter-spacing:-.015em}

/* Links: an underline that draws in from the left */
a.u{text-decoration:none;position:relative;display:inline-block}
a.u::after{content:"";position:absolute;left:0;right:0;bottom:-.1em;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease)}
a.u:hover::after,a.u:focus-visible::after{transform:scaleX(1);transform-origin:left}
a.u:active{transform:translateY(1px)}

/* Header */
header.site{background:var(--bg);position:relative;z-index:3}
header.site .in{display:flex;align-items:center;justify-content:space-between;height:4rem}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:600;font-size:1.1rem;letter-spacing:-.02em;text-decoration:none}
.brand img{width:28px;height:28px;border-radius:7px}
header.site nav{display:flex;gap:clamp(1rem,3vw,2.25rem);font-size:.9rem;font-weight:500}
header.site nav a{color:var(--muted);transition:color .3s}
header.site nav a:hover{color:var(--text)}
@media (max-width:520px){header.site nav a:not(:last-child){display:none}}

/* Hero: a slow, dim reel of the demo project's footage behind the headline */
.hero{position:relative;overflow:hidden;isolation:isolate}
.reel{position:absolute;left:0;right:0;top:clamp(1.5rem,5vw,4rem);z-index:-1;pointer-events:none;opacity:.2}
.reel::after{content:"";position:absolute;inset:-1px 0;background:linear-gradient(180deg,var(--bg) 0,rgba(11,12,10,0) 22%,rgba(11,12,10,0) 78%,var(--bg) 100%),linear-gradient(90deg,var(--bg) 0,rgba(11,12,10,.35) 30%,rgba(11,12,10,.35) 70%,var(--bg) 100%)}
.reel-track{display:flex;width:max-content;animation:reel 90s linear infinite}
.reel-track img{height:clamp(14rem,32vw,24rem);width:auto;max-width:none}
@keyframes reel{to{transform:translate3d(-50%,0,0)}}
.hero .in{display:grid;gap:3rem;padding-top:clamp(3rem,8vw,6.5rem)}
.hero-copy{display:flex;flex-direction:column}
.lede{margin-top:1.75rem;font-size:clamp(1.15rem,1.8vw,1.45rem);line-height:1.35;font-weight:500;letter-spacing:-.015em}
.status-line{margin-top:2.25rem;padding-top:1rem;border-top:1px solid var(--rule);color:var(--muted);max-width:30rem;display:flex;gap:1.25rem;align-items:baseline;flex-wrap:wrap}
.status-line span{color:var(--lime)}
.hero-device{justify-self:center;width:min(100%,21rem);height:clamp(27rem,64vw,36rem);overflow:hidden}
.hero-device .phone{margin:.5rem .5rem 0}
@media (min-width:900px){
  .hero .in{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:2rem;padding-bottom:0}
  .hero-copy{padding-bottom:clamp(3rem,6vw,5rem);justify-content:space-between}
  .hero-device{align-self:end;height:35rem;width:100%;max-width:21rem}
}

/* Device frames: the phone keeps its own corners; nothing else on the page is rounded. */
.phone{background:#000;border:1px solid var(--rule-2);border-radius:2.6rem;padding:.55rem;box-shadow:0 0 0 .4rem #050505,0 0 0 calc(.4rem + 1px) var(--rule)}
.phone img,.phone video{border-radius:2.1rem;width:100%}
.phone.md{max-width:19rem;margin-inline:auto;width:100%;overflow:hidden}

/* Scrub: a timecode ruler under the hero that slides as the page scrolls, under a fixed playhead */
.scrub{position:relative;height:3rem;overflow:hidden;background:var(--bg)}
.scrub-track{position:absolute;left:0;top:0;bottom:0;width:max-content;display:flex;padding-left:50vw;
  background:repeating-linear-gradient(90deg,var(--rule-2) 0 1px,transparent 1px 24px) 0 100%/auto 8px repeat-x}
.scrub-track span{width:120px;flex:none;padding:.7rem 0 0 4px;font-size:.7rem;font-variant-numeric:tabular-nums;color:var(--fade);border-left:1px solid var(--rule-2)}
.scrub-head{position:absolute;left:50%;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--lime)}
.scrub-head::before{content:"";position:absolute;top:0;left:-4px;width:10px;height:10px;background:var(--lime)}
html:not(.js) .scrub,html.still .scrub{display:none}

/* Numbered rows */
.row .row-grid{display:grid;gap:2.5rem;padding-block:clamp(3rem,7vw,5.5rem)}
.row-text{display:flex;flex-direction:column;justify-content:center}
.num{display:flex;gap:1.25rem;align-items:baseline;color:var(--text);margin-bottom:1.5rem}
.num span{color:var(--lime);font-variant-numeric:tabular-nums;letter-spacing:0;font-size:.85rem}
.row-text p:not(.num){color:var(--muted);margin-top:1.1rem;font-size:1.05rem}
.tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1.75rem}
.tags li{font-size:.8rem;font-weight:500;line-height:1;padding:.55rem .65rem;border:1px solid var(--rule-2);color:var(--text);cursor:default;
  transition:translate .25s var(--ease),border-color .25s,background-color .25s,color .25s}
.tags li:hover{translate:0 -2px;border-color:var(--lime);color:var(--lime)}
.tags li:active{translate:0 0}
.panel{border:1px solid var(--rule-2);background:#000;padding:.5rem;overflow:hidden}
@media (min-width:900px){
  .row .row-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;padding-block:0}
  .row-text{padding:clamp(3.5rem,6vw,5.5rem) 3rem clamp(3.5rem,6vw,5.5rem) 0;border-right:1px solid var(--rule)}
  .row .row-grid>.px,.row .row-grid>.pair{margin:clamp(3rem,5vw,4.5rem) 0 clamp(3rem,5vw,4.5rem) 3rem;align-self:center}
  .row .row-grid>.px:has(.phone.md){justify-self:start;width:100%;max-width:19rem}
}

/* Full-bleed lime band */
.band{position:relative;background:var(--lime);color:var(--on-lime);border-bottom-color:var(--lime);isolation:isolate}
.band::before{content:"";position:absolute;inset:0;background:var(--lime);z-index:-1}
.band .in{border-color:var(--lime-rule)}
.band .num,.band .num span{color:var(--on-lime)}
.band .row-text p:not(.num){color:#3a4416}
.band .tags li{border-color:rgba(21,26,5,.35);color:var(--on-lime)}
.band .tags li:hover{border-color:var(--on-lime);background:var(--on-lime);color:var(--lime)}
@media (min-width:900px){.band .row-text{border-right-color:var(--lime-rule)}}
.pair{display:grid;grid-template-columns:1.25fr 1fr;gap:1rem;align-items:start;min-width:0}
.band .panel{border-color:#000}
.frame{background:#000;padding:.5rem;overflow:hidden}
.pair>.px+.px{margin-top:2.5rem}

/* On-device diagram */
.split{display:grid;gap:2rem;padding-block:clamp(3.5rem,8vw,7rem)}
.side{display:flex;flex-direction:column;gap:1.25rem;color:var(--muted);max-width:30rem}
.side .big{color:var(--text)}
@media (min-width:900px){.split{grid-template-columns:1fr 1fr;gap:3rem;align-items:end}}
.more a,.closing a{color:var(--lime);font-weight:500}
.diagram-wrap{padding-bottom:clamp(3.5rem,8vw,7rem)}
.diagram{display:grid;grid-template-columns:1fr;border:1px solid var(--rule-2)}
.d-phone,.d-cloud{padding:1.5rem}
.d-label{color:var(--muted);margin-bottom:1.25rem}
.diagram ul{display:flex;flex-wrap:wrap;gap:.4rem}
.diagram li{font-weight:500;font-size:.95rem;padding:.55rem .75rem;border:1px solid var(--rule-2)}
.d-phone li{background:var(--lime);color:var(--on-lime);border-color:var(--lime)}
.d-cloud li{border-style:dashed;border-color:rgba(46,196,182,.55);color:var(--teal)}
.d-link{display:flex;align-items:center;justify-content:center;padding:1rem;border-block:1px solid var(--rule);
  background:repeating-linear-gradient(180deg,transparent 0 6px,var(--rule) 6px 7px) center/1px 100% no-repeat}
.d-link span{background:var(--bg);padding:.35rem .6rem;font-size:.75rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--teal)}
@media (min-width:760px){
  .diagram{grid-template-columns:1.3fr .8fr 1fr}
  .d-phone,.d-cloud{padding:2rem}
  .d-link{border-block:0;border-inline:1px solid var(--rule);
    background:repeating-linear-gradient(90deg,transparent 0 6px,rgba(46,196,182,.6) 6px 12px) center/100% 1px no-repeat}
}
.closing .split{align-items:start}

/* Footer */
footer.site{border-bottom:0;color:var(--muted);font-size:.95rem}
.f-grid{display:grid;gap:2rem;padding-block:3rem 2.5rem}
.f-grid nav,.f-grid>div{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}
.f-grid a{color:var(--text)}
.f-h{color:var(--muted);margin-bottom:.4rem}
.word{font-size:clamp(2.5rem,7vw,4.5rem);font-weight:600;letter-spacing:-.05em;line-height:.9;color:var(--text);margin-bottom:1rem}
.copy{border-top:1px solid var(--rule);padding-block:1.25rem 1.75rem;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase}
@media (min-width:760px){.f-grid{grid-template-columns:2fr 1fr 1fr}}

/* Legal pages */
.doc-head .in{padding-block:clamp(3rem,7vw,5.5rem) clamp(2rem,4vw,3rem)}
.doc-head h1{font-size:clamp(2.4rem,6vw,4.4rem);max-width:none}
.doc-head .updated{margin-top:1rem;color:var(--muted)}
.doc .in{padding-bottom:clamp(3rem,7vw,5rem)}
.doc section{display:grid;gap:.75rem;padding-block:2rem;border-bottom:1px solid var(--rule)}
.doc section:last-child{border-bottom:0}
.doc h2{font-size:1.15rem;line-height:1.3;letter-spacing:-.01em;max-width:none}
.doc p,.doc li{color:#c9ccc2;max-width:42rem}
.doc p+p,.doc p+ul,.doc ul+p{margin-top:.9rem}
.doc ul{display:flex;flex-direction:column;gap:.6rem}
.doc li{padding-left:1.25rem;position:relative}
.doc li::before{content:"";position:absolute;left:0;top:.75em;width:.55rem;height:1px;background:var(--lime)}
.doc a{color:var(--lime)}
.doc strong{color:var(--text);font-weight:600}
@media (min-width:900px){.doc section{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:3rem}}

/* 404 */
.nf .in{padding-block:clamp(5rem,16vh,10rem)}
.nf .code{font-size:clamp(5rem,18vw,12rem);font-weight:600;letter-spacing:-.06em;line-height:.85;color:var(--lime)}
.nf p:not(.eyebrow){margin-top:1.5rem;font-size:1.25rem;color:var(--muted)}
.btn{display:inline-block;margin-top:2rem;padding:.85rem 1.25rem;background:var(--lime);color:var(--on-lime);font-weight:600;text-decoration:none;transition:background-color .25s,transform .15s}
.btn:hover{background:#d6f27a}
.btn:active{transform:scale(.98)}

/* ---- Glow accents: static gradients only, never animated per frame ---- */
.hero .in{isolation:isolate}
.hero-glow{position:absolute;z-index:-1;pointer-events:none;right:calc(var(--pad) - 6rem);bottom:-8rem;width:34rem;height:40rem;max-width:120vw;
  background:radial-gradient(closest-side,rgba(198,232,91,.26),rgba(198,232,91,.09) 45%,rgba(198,232,91,0) 100%),
             radial-gradient(closest-side at 30% 70%,rgba(46,196,182,.12),rgba(46,196,182,0) 100%)}
@media (max-width:899px){.hero-glow{right:50%;transform:translateX(50%);bottom:-6rem;width:30rem;height:34rem}}
.scrub-head{box-shadow:0 0 10px 1px rgba(198,232,91,.7),0 0 28px 4px rgba(198,232,91,.25)}
.scrub-head::after{content:"";position:absolute;top:0;bottom:0;right:2px;width:9rem;pointer-events:none;
  background:linear-gradient(90deg,rgba(198,232,91,0),rgba(198,232,91,.14))}
.band::after{content:"";position:absolute;left:0;right:0;top:-7rem;height:7rem;pointer-events:none;z-index:-1;
  background:radial-gradient(60% 100% at 50% 100%,rgba(198,232,91,.16),rgba(198,232,91,0) 100%)}
.band{z-index:1}
.d-link{position:relative}
.d-link::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(closest-side,rgba(46,196,182,.14),rgba(46,196,182,0))}
.d-link span{position:relative}
html.js:not(.still) .band::after{opacity:0;transition:opacity 1.2s var(--ease) .5s}
html.js:not(.still) .band.seen::after{opacity:1}

/* ---- Reveal motion (only with JS, and only when motion is allowed) ----
   Everything animates transform, opacity or clip-path. */
.w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.12em;margin-bottom:-.12em}
.w>span{display:inline-block}
html.js:not(.still) .w>span{transform:translate3d(0,108%,0);transition:transform 1s var(--ease);transition-delay:calc(var(--i,0) * 55ms)}
html.js:not(.still) .seen .w>span{transform:none}

html.js:not(.still) .rv{opacity:0;transform:translate3d(0,14px,0);transition:opacity .8s var(--ease) .15s,transform .9s var(--ease) .15s}
html.js:not(.still) .seen .rv{opacity:1;transform:none}

html.js:not(.still) .tags li{opacity:0;transform:translate3d(0,10px,0);transition:opacity .5s var(--ease),transform .6s var(--ease),translate .25s var(--ease),border-color .25s,background-color .25s,color .25s;transition-delay:calc(var(--i,0) * 70ms + .35s),calc(var(--i,0) * 70ms + .35s),0s,0s,0s,0s}
html.js:not(.still) .seen .tags li{opacity:1;transform:none}

html.js:not(.still) .rv-media{opacity:0;transform:translate3d(0,48px,0) scale(.95);transition:opacity 1s var(--ease) .1s,transform 1.3s var(--ease) .1s}
html.js:not(.still) .seen .rv-media{opacity:1;transform:none}
html.js:not(.still) .pair .rv-media+.rv-media{transition-delay:.3s}

/* The lime band sweeps in from the left; its contents follow. */
html.js:not(.still) .band{background:var(--bg)}
html.js:not(.still) .band::before{clip-path:inset(0 100% 0 0);transition:clip-path 1.1s var(--ease)}
html.js:not(.still) .band.seen::before{clip-path:inset(0 0 0 0)}
html.js:not(.still) .band .in{transition:border-color .6s .6s}
html.js:not(.still) .band:not(.seen) .in{border-color:var(--rule)}
html.js:not(.still) .band .w>span{transition-delay:calc(var(--i,0) * 55ms + .45s)}
html.js:not(.still) .band .rv{transition-delay:.6s}
html.js:not(.still) .band .rv-media{transition-delay:.55s}
html.js:not(.still) .band .pair .rv-media+.rv-media{transition-delay:.8s}

/* Parallax targets get their own layer. */
html.js:not(.still) [data-depth],html.js:not(.still) [data-depth-x]{will-change:transform}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
  .tags li:hover{translate:none}
}
