:root{
  --ground:#EEF1F4;--ink:#0E1A24;--field:#1F4FFF;--on-field:#F4F7FF;
  --soft:#DCE2EA;--accent:#FF5B1F;--gap:clamp(16px,2vw,28px);
  --ease-out:cubic-bezier(.23,1,.32,1);
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{font:400 16px/1.5 "Inter Tight",system-ui,sans-serif;background:var(--ground);color:var(--ink)}
a{color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

.page{display:grid;grid-template-columns:5fr 7fr;min-height:100svh}

.stage{position:sticky;top:0;height:100svh;color:var(--ink);padding:var(--gap);display:flex;flex-direction:column;justify-content:space-between;isolation:isolate;overflow:hidden;
  background:
    radial-gradient(60% 50% at 12% 8%,#FFD9C7 0%,transparent 70%),
    radial-gradient(55% 55% at 90% 22%,#D9CCFF 0%,transparent 70%),
    radial-gradient(60% 50% at 18% 92%,#C8EFE0 0%,transparent 70%),
    radial-gradient(55% 50% at 92% 95%,#FFF0BF 0%,transparent 70%),
    #E9E4FA}
.stage::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.55;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .5 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.stage nav{display:flex;gap:24px;font-weight:600}
.stage nav a{text-decoration:none;transition:opacity .16s ease-out}
.stage nav a:hover{opacity:.7}
h1{font-weight:800;font-size:clamp(60px,10vw,168px);line-height:.82;letter-spacing:-.06em}
.stage p{max-width:30ch;margin-top:24px;font-size:20px;line-height:1.4}

.col{padding:var(--gap);display:flex;flex-direction:column;gap:calc(var(--gap)*3.5)}
.info{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
.info a{font-weight:600;text-decoration:none;transition:color .16s ease-out}
.info a:hover{color:var(--field)}
.info a{display:inline-flex;align-items:center;gap:8px;line-height:1.7}
.info .ico{flex:none}

h2{font-size:clamp(32px,3.6vw,52px);line-height:.95;letter-spacing:-.04em;font-weight:800;margin-bottom:var(--gap)}

.run{margin-bottom:calc(var(--gap)*1.5)}
.run h3{font-size:18px;font-weight:600}
.run h3 a{text-decoration:none;transition:color .16s ease-out}
.run h3 a:hover{color:var(--field)}
.run h3 .url{margin-left:10px;font-size:14px;font-weight:400;opacity:.65;white-space:nowrap}
.run h3 .url:hover{opacity:1}
.run p{margin:2px 0 10px;max-width:56ch}
.run p a{font-weight:600}
.frames{display:flex;flex-wrap:wrap;gap:8px}
.f{height:110px;background:var(--soft);display:flex;align-items:flex-end;padding:8px;font-weight:600;font-size:13px}
.f.ink{background:var(--ink);color:var(--ground)}
.f.org{background:var(--accent);color:var(--ink)}

.f.shot{position:relative;padding:0;background:var(--soft);text-decoration:none;color:var(--ground)}
.f.shot img{display:block;height:110px;width:auto}
.f.shot span{position:absolute;left:0;bottom:0;background:var(--ink);padding:3px 8px}
#lightbox{border:0;padding:0;background:transparent;max-width:94vw;max-height:94vh;overflow:visible}
#lightbox::backdrop{background:rgba(14,26,36,.88)}
#lightbox img{display:block;max-width:94vw;max-height:86vh;width:auto;height:auto}
#lightbox .close{display:block;margin:12px 0 0 auto;background:var(--ground);color:var(--ink);border:0;padding:12px 20px;font:600 16px "Inter Tight",system-ui,sans-serif;cursor:pointer}
.now li{list-style:none;font-size:clamp(20px,2vw,28px);line-height:1.2;letter-spacing:-.02em;font-weight:600;padding:10px 0}
.updated{margin-top:8px;font-size:14px}

.btn{display:inline-block;background:var(--ink);color:var(--ground);padding:18px 28px;font-weight:600;text-decoration:none;transition:transform .16s var(--ease-out)}
.btn:active{transform:scale(.97)}
footer{font-size:clamp(56px,10vw,160px);font-weight:800;letter-spacing:-.06em;line-height:.82}

/* Entrance: only hidden when JS is running, so content never depends on it */
.js .reveal{opacity:0;transform:translateY(20px);transition:opacity .5s var(--ease-out),transform .5s var(--ease-out)}
.js .reveal.in{opacity:1;transform:none}

@media (hover:hover) and (pointer:fine){
  .run:hover .f{transform:translateY(-3px)}
}
.f{transition:transform .2s var(--ease-out)}

@media(max-width:800px){
  .page{grid-template-columns:minmax(0,1fr)}
  .stage{position:relative;height:auto;min-height:70svh}
  .info{grid-template-columns:1fr}

  /* Screenshots: one swipeable strip per project, bigger thumbnails */
  .frames{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-x:contain;
    margin-inline:calc(var(--gap)*-1);padding:0 var(--gap) 10px;scroll-padding-inline:var(--gap);scrollbar-width:thin}
  .f{flex:none;height:170px;scroll-snap-align:start}
  .f.shot img{height:170px}
  .f.shot span{font-size:14px;padding:5px 10px}

  /* Full-size view: fills the screen, pans and pinch-zooms instead of shrinking */
  #lightbox{width:100vw;height:100dvh;max-width:none;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}
  #lightbox img{max-width:none;max-height:none;width:220vw}
  #lightbox img.portrait{width:100vw}
  #lightbox .close{position:fixed;top:12px;right:12px;margin:0;z-index:2;min-height:48px;box-shadow:0 2px 12px rgba(14,26,36,.35)}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{transform:none;transition:opacity .2s ease}
  .f,.btn{transition:none}
}

.ai-note{margin:-6px 0 calc(var(--gap)*1.5);max-width:56ch;font-size:15px;border-left:3px solid var(--accent);padding-left:12px}
.info .seek{margin-top:12px;font-weight:600}
