:root{
  --bg:#faf9f5;
  --ink:#141414;
  --orchid:#7a2443;      /* purple orchid petal colour: bullets, pills, selection */
  --orchid-ink:#f7e8ee;
  --cream:#fdfcf4;
  --cream-edge:#e3decb;
  --term-ink:#cfcdbd;
  --term-accent:#d47c9c; /* same orchid hue, lightened to read on the dark terminal */
  --stitch:#000;
}
*{margin:0;padding:0;box-sizing:border-box;}
html,body{height:100%;}
body{
  background:#0e0e0e;
  font-family:'Instrument Serif',serif;
  color:var(--ink);
  overflow:hidden;
}
::selection{background:var(--orchid);color:#fff;}

/* ============ scaled stage: 1920 x 1010 design canvas ============ */
.viewport{
  position:fixed;inset:0;
  overflow-x:hidden;overflow-y:auto;
}
#stage{
  width:1920px;height:1010px;
  background:var(--bg) url("assets/snowleopard.png") center/cover no-repeat;
  position:absolute;
  left:50%;top:0;
  transform-origin:top center;
  box-shadow:0 0 80px rgba(0,0,0,.5);
}
/* film grain over everything */
#stage::after{
  content:"";position:absolute;inset:0;z-index:50;pointer-events:none;
  opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.abs{position:absolute;}
/* all page content lives here; blurred while a popup/lightbox is open */
#content{position:absolute;inset:0;transition:filter .3s ease;}
body.modal-open #content{filter:blur(8px);}
/* cross-stitch bunny hopping behind the page (drawn in script.js) */
#bunnyBg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
/* the words the bunny "spews out" when it stops: loose letters, no bubble, that shake
   (rotate left/right) in a short burst every 2 seconds. left/top are set in script.js. */
#bunnySay{
  position:absolute;z-index:5;pointer-events:none;
  transform:translateY(-50%);
  font-size:24px;line-height:1;white-space:nowrap;color:var(--ink);
  opacity:0;transition:opacity .2s ease;
}
#bunnySay.show{opacity:1;}
#bunnySay .ch{
  display:inline-block;white-space:pre;
  margin-right:.14em; /* letter spacing (inline-blocks ignore letter-spacing on the parent) */
  animation:spew .22s ease-out both, wobble 2s ease-in-out infinite;
  animation-delay:0s, var(--d,0s);
}
/* pops out of the mouth (translate/scale, so it doesn't fight the wobble's rotate) */
@keyframes spew{from{opacity:0;translate:-14px 6px;scale:.4;}to{opacity:1;translate:0 0;scale:1;}}
/* a short left/right shake (~.6s), then still for the rest of the 2s cycle.
   --s is +1/-1 per letter so neighbours tip opposite ways. */
@keyframes wobble{
  0%,30%,100%{rotate:0deg;}
  5%{rotate:calc(var(--s,1)*-10deg);}
  10%{rotate:calc(var(--s,1)*10deg);}
  15%{rotate:calc(var(--s,1)*-10deg);}
  20%{rotate:calc(var(--s,1)*10deg);}
  25%{rotate:calc(var(--s,1)*-5deg);}
}
@media (prefers-reduced-motion:reduce){ #bunnySay .ch{animation:none;} }

/* entrance */
.rise{opacity:0;transform:translateY(14px);animation:rise .7s ease forwards;}
@keyframes rise{to{opacity:1;transform:none;}}
/* same entrance but preserves the 180° flip on the gallery label */
.riseflip{opacity:0;transform:rotate(180deg) translateY(-14px);animation:riseflip .7s ease forwards;}
@keyframes riseflip{to{opacity:1;transform:rotate(180deg);}}

h2.sec{
  font-weight:400;
  font-size:38px;
  letter-spacing:.5px;
  line-height:1;
  white-space:nowrap;
}
h2.sec em{font-style:normal;}

/* ============ headshot + name ============ */
#headshot{
  left:60px;top:56px;width:196px;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
/* every clickable thing uses the vinyl pins' hover (grow to 1.2x), except the headshot,
   which has no hover. (paper uses `scale`, since its .rise entrance holds `transform`) */
/* the name is custom lettering (inline SVG), one path per letter */
#name{left:255px;top:90px;font-weight:400;cursor:default;line-height:0;user-select:none;-webkit-user-select:none;}
#name svg{display:block;overflow:visible;}
#nameTag{
  left:262px;top:50px;
  font-size:22px; /* same look as the about me text: upright, ink, 22px */
  white-space:nowrap;
}
#nameTag [lang=th]{font-family:'Noto Serif Thai',serif;font-style:normal;font-size:20px;}
#nameTag .hcaret{font-style:normal;margin-left:1px;animation:blink 1.05s steps(1) infinite;}
#name .ch{fill:currentColor;}

/* ============ media links (vertical stack) ============ */
#media{
  left:900px;top:64px;width:120px; /* centered on x=960, same axis as the greeting */
  display:flex;flex-direction:column;align-items:center;gap:26px;
}
.cv-btn{
  display:inline-block;
  font-family:'Instrument Serif',serif;
  font-size:20px;
  background:#000;color:#fff;
  border:1.5px solid #000;
  padding:9px 26px;
  border-radius:999px;
  text-decoration:none;
  white-space:nowrap;
  transition:transform .2s ease;
}
.cv-btn:hover{transform:scale(1.2);}
.icon-link{
  color:#000;line-height:0;
  transition:transform .2s ease;
}
.icon-link:hover{transform:scale(1.2);}
.icon-link svg{width:38px;height:38px;fill:currentColor;}

/* ============ about ============ */
#aboutHead{left:76px;top:308px;}
#aboutText{
  left:76px;top:376px;width:754px; /* right edge at x830 */
  font-size:22px;line-height:1.45;
}
#aboutText p+p{margin-top:12px;}

/* ============ gallery ============ */
#galleryHead{
  left:1076px;top:125px;
  writing-mode:vertical-rl;
  transform:rotate(180deg); /* reads bottom-to-top */
}
#terminal{
  left:1146px;top:64px;width:614px;height:240px; /* top = tech stack top, right edge = paper's right edge (x1760) */
  background:#191919;
  border:1px solid #2e2e2e;
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  overflow:hidden;
  font-family:'SF Mono','Menlo','Consolas',monospace;
  font-size:15px;
  display:flex;flex-direction:column;
}
.term-bar{
  background:#262626;
  padding:8px 12px;
  display:flex;align-items:center;gap:7px;
  border-bottom:1px solid #333;
  flex:none;
}
.dot{width:11px;height:11px;border-radius:50%;}
.dot.r{background:#ff5f57;}.dot.y{background:#febc2e;}.dot.g{background:#28c840;}
.term-title{flex:1;text-align:center;color:#9a9a9a;font-size:11.5px;}
.term-body{
  flex:1;padding:11px 14px;
  overflow-y:auto;
  color:var(--term-ink);
  line-height:1.6;
  cursor:text;
}
.term-body::-webkit-scrollbar{width:6px;}
.term-body::-webkit-scrollbar-thumb{background:#3a3a3a;border-radius:3px;}
.term-body .muted{color:#6f6d60;}
.term-body .accent{color:var(--term-accent);font-weight:bold;}
.term-body .err{color:#ff6b66;}
.term-body .dir{color:var(--term-accent);font-weight:bold;}
.term-line{white-space:pre-wrap;word-break:break-all;}
.term-input-line{display:flex;flex-wrap:wrap;align-items:baseline;}
#termInput{
  width:1ch; /* JS grows it with typed text so the caret hugs the % */
  background:transparent;border:none;outline:none;
  font:inherit;color:var(--term-ink);
  caret-color:transparent;
}
.caret{
  /* the line aligns on baseline; an empty box would sit its bottom on the baseline (too high),
     so the zero-width char below gives it a real text baseline and the font's exact ascent+descent height */
  display:inline-block;width:1ch;line-height:normal;
  background:var(--term-accent);
}
/* the caret sits solid until the terminal is clicked (input focused), then blinks */
#terminal:focus-within .caret{animation:blink 1.05s steps(1) infinite;}
.caret::before{content:'\200b';}
@keyframes blink{50%{opacity:0;}}
#albums{
  left:1146px;top:324px;width:614px;
  display:flex;gap:18px;justify-content:center;
}
.album-tab{
  font-family:'Instrument Serif',serif;
  font-size:17px;
  background:transparent;
  border:1.5px solid #000;
  border-radius:999px;
  padding:5px 20px;
  cursor:pointer;
  color:#000;
  transition:transform .2s ease;
}
.album-tab:hover{transform:scale(1.2);}

/* ============ projects: mac folders ============ */
#projectsHead{left:76px;top:527px;}
#projects{
  left:76px;top:570px;width:754px; /* right edge at x830, like the about text */
  display:flex;justify-content:space-around;align-items:flex-end;
}
.folder{
  width:210px;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  background:none;border:none;padding:0;cursor:pointer;
  font:inherit;color:var(--ink);
  -webkit-tap-highlight-color:transparent;
  transition:transform .2s ease;
}
.folder-icon{
  display:block;width:100%;height:auto;
  padding:10px;border-radius:16px;
  filter:drop-shadow(0 10px 14px rgba(0,0,0,.28));
  transition:transform .25s cubic-bezier(.2,.9,.3,1.3),background .2s ease,filter .2s ease,opacity .25s ease;
}
.folder-label{
  font-size:18px;line-height:1.2;
  padding:2px 12px;border-radius:7px;
  transition:background .2s ease,color .2s ease;
}
/* hover only where there's a real pointer, so a tapped folder doesn't stay big on phones */
@media (hover:hover){
  .folder:hover{transform:scale(1.2);}
}
.folder:focus-visible{transform:scale(1.2);}
.folder:active .folder-icon{filter:drop-shadow(0 6px 8px rgba(0,0,0,.28)) brightness(.78);transform:translateY(-1px) scale(.98);}
.folder:focus-visible{outline:none;}
/* while its window is open the icon dims, like an open folder in the Finder */
.folder.is-open .folder-icon{opacity:.45;}

/* ============ project Finder window ============ */
#finder{
  position:absolute;inset:0;z-index:60;
  background:rgba(10,10,10,.35);
  /* no backdrop-filter: it smears inside the scaled stage; #content is blurred instead */
  display:none;align-items:center;justify-content:center;
}
#finder.open{display:flex;}
.fwin{
  width:920px;height:600px;
  display:flex;flex-direction:column;
  background:#191919;
  border:1px solid #2e2e2e;
  border-radius:12px;
  box-shadow:0 0 0 .5px rgba(255,255,255,.08) inset,0 40px 100px rgba(0,0,0,.6);
  overflow:hidden;
  transform-origin:0 0; /* the zoom animation maps the window's corner onto the icon's */
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',Arial,sans-serif;
}
.fw-bar{
  position:relative;flex:none;
  height:44px;display:flex;align-items:center;justify-content:center;
  background:#262626;
}
.fw-lights{position:absolute;left:16px;top:0;bottom:0;display:flex;align-items:center;gap:8px;}
.fw-light{width:13px;height:13px;border-radius:50%;border:.5px solid rgba(0,0,0,.35);padding:0;}
.fw-light.r{background:#ff5f57;cursor:pointer;position:relative;}
.fw-light.y{background:#febc2e;}
.fw-light.g{background:#28c840;}
/* the × appears on hover, like macOS */
.fw-light.r::after{
  content:"×";position:absolute;inset:0;
  font:700 12px/12px -apple-system,Arial,sans-serif;color:rgba(80,0,0,.75);
  opacity:0;transition:opacity .12s ease;
}
.fw-lights:hover .fw-light.r::after,.fw-light.r:focus-visible::after{opacity:1;}
.fw-title{font-size:14px;font-weight:600;color:#9a9a9a;}
.fw-tabs{
  flex:none;display:flex;
  background:#202020;
  border-top:1px solid #2e2e2e;border-bottom:1px solid #2e2e2e;
}
.fw-tab{
  flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
  height:34px;padding:0 14px;
  background:none;border:none;border-left:1px solid #2e2e2e;
  font:inherit;font-size:13px;color:#8a897f;cursor:pointer;
  transition:background .15s ease,color .15s ease;
}
.fw-tab:first-child{border-left:none;}
.fw-tab span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.fw-tab{min-width:0;}
.fwin:focus{outline:none;}
.fw-tab img{width:20px;height:auto;}
.fw-tab:hover{background:#2a2a2a;color:var(--term-ink);}
.fw-tab.active{background:#191919;color:#f0efe6;font-weight:600;}
.fw-tab:focus-visible{outline:2px solid var(--orchid);outline-offset:-2px;}
.fw-body{
  flex:1;overflow-y:auto;
  padding:38px 56px 30px;
  font-family:'Instrument Serif',serif;color:#e8e6da;
}
.fw-body::-webkit-scrollbar{width:6px;}
.fw-body::-webkit-scrollbar-thumb{background:#3a3a3a;border-radius:3px;}
.fw-head{display:flex;justify-content:space-between;align-items:baseline;gap:24px;flex-wrap:wrap;}
.fw-name{font-weight:400;font-size:52px;line-height:1;}
.fw-meta{font-size:19px;color:#9a988c;}
.fw-pills{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 26px;}
.fw-pill{
  background:var(--orchid);color:var(--orchid-ink);
  border-radius:999px;padding:5px 16px;font-size:16px;
}
.fw-points{list-style:none;display:flex;flex-direction:column;gap:14px;}
.fw-points li{position:relative;padding-left:22px;font-size:20.5px;line-height:1.42;}
.fw-points li::before{
  content:"";position:absolute;left:2px;top:.6em;
  width:7px;height:7px;border-radius:50%;background:var(--term-accent);
}
.fw-path{
  flex:none;padding:7px 16px;
  font-size:12px;color:#7d7b70;
  background:#202020;border-top:1px solid #2e2e2e;
  white-space:pre;
}

/* ============ photo album window (opened by `cd <album>`) ============ */
#album{
  position:absolute;inset:0;z-index:60;
  background:rgba(10,10,10,.35);
  display:none;align-items:center;justify-content:center;
}
#album.open{display:flex;}
/* .awin reuses the dark .fwin window (bar, lights, path bar) */
.aw-body{
  flex:1;min-height:0;overflow-y:auto;
  padding:28px 40px 36px;color:#e8e6da;
}
.aw-body::-webkit-scrollbar{width:6px;}
.aw-body::-webkit-scrollbar-thumb{background:#3a3a3a;border-radius:3px;}
.post-avatar{
  border-radius:50%;object-fit:cover;object-position:center 15%;
  background:var(--bg);flex:none;
}
.aw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;}
.aw-tile{
  position:relative;padding:0;border:none;border-radius:2px;overflow:hidden;
  aspect-ratio:1/1;background:#222;cursor:pointer;
}
.aw-tile img,.aw-tile video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;}
.aw-badge{position:absolute;top:8px;right:8px;z-index:1;width:22px;height:22px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5));}
.aw-badge svg{width:100%;height:100%;fill:#fff;display:block;}
.aw-tile::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,0);transition:background .15s ease;}
.aw-tile:hover::after,.aw-tile:focus-visible::after{background:rgba(0,0,0,.3);}
.aw-tile:focus-visible{outline:2px solid var(--term-accent);outline-offset:-2px;}

/* instagram-style post over the album */
#post{
  position:absolute;inset:0;z-index:2;
  background:rgba(0,0,0,.6);
  display:none;align-items:center;justify-content:center;
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',Arial,sans-serif;
}
#post.open{display:flex;}
#post:focus{outline:none;}
.post-x{
  position:absolute;top:18px;right:26px;
  background:none;border:none;color:#fff;font-size:26px;cursor:pointer;padding:6px;
}
.post-win{position:relative;display:flex;flex-direction:column;} /* width follows the photo; caption panel sits underneath */
.post-media{
  flex:none;background:#000;border-radius:6px 6px 0 0;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.post-media img,.post-media video{height:600px;width:auto;max-width:960px;object-fit:contain;display:block;}
.post-media [hidden]{display:none;}
.post-side{
  width:0;min-width:100%; /* match the photo's width without stretching it */
  flex:none;display:flex;flex-direction:column;
  background:#191919;border-top:1px solid #2e2e2e;border-radius:0 0 6px 6px;
  color:#f0efe6;font-size:14px;
}
.post-avatar{width:32px;height:32px;}
.post-user{font-weight:600;}
.post-caption{max-height:110px;overflow-y:auto;display:flex;gap:12px;align-items:flex-start;padding:16px;line-height:1.45;}
.post-caption p{margin:5px 0 0;}
#postCaption{color:#cfcdbd;}
.post-date{padding:0 16px 16px;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#8a897f;}
.post-nav{
  position:absolute;top:300px;translate:0 -50%; /* centered on the photo */
  width:32px;height:32px;border-radius:50%;border:none;
  background:rgba(255,255,255,.9);color:#222;
  font-size:24px;line-height:28px;cursor:pointer;padding:0;
}
.post-nav.prev{left:-50px;}
.post-nav.next{right:-50px;}
.post-nav[hidden]{display:none;}

/* ============ typing greeting (curved over the vinyl) ============ */

/* ============ pinned vinyl ============ */
#pinnedHead{left:1076px;top:402px;} /* same row as /learn/ */
#vinylBox{left:984px;top:520px;width:300px;height:300px;} /* disc centered under /pinned/ (heading center x≈1134) */
#vinyl{
  width:100%;height:100%;
  position:relative;
  animation:spin 80s linear infinite; /* seconds per full turn (bigger = slower) */
  will-change:transform;
}
#vinyl.stopped{animation-play-state:paused;}
#vinyl>img.disc{
  width:100%;height:100%;display:block;
  filter:drop-shadow(0 12px 24px rgba(0,0,0,.22));
  cursor:pointer;
}
@keyframes spin{to{transform:rotate(360deg);}}
.pin{
  position:absolute;
  width:68px;height:68px;
  border-radius:50%;
  top:50%;left:50%;
  margin:-34px 0 0 -34px;
  /* -140px puts pin centers at the rim so items hang off the record */
  transform:rotate(var(--a)) translateY(-140px);
  overflow:hidden;
  background:rgba(255,255,255,.55);
  border:1.5px dashed rgba(60,60,60,.5);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;color:rgba(60,60,60,.5);
  box-shadow:0 3px 8px rgba(0,0,0,.18);
  transition:transform .2s ease;
}
.pin:hover{
  transform:rotate(var(--a)) translateY(-140px) scale(1.2);
  z-index:5;
}
.pin.big{width:100px;height:100px;margin:-50px 0 0 -50px;}
.pin.square{
  border-radius:0;border:none;background:none;
  box-shadow:0 4px 10px rgba(0,0,0,.3);
}
.pin img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
.pin.square img{border-radius:0;}
/* natural-shape pins: keep the item's original silhouette */
.pin.natural{
  background:none;border:none;box-shadow:none;
  border-radius:0;overflow:visible;
}
.pin.natural img{
  width:auto;height:100%;max-width:none;
  object-fit:contain;border-radius:0;
  margin:0 auto;display:block;
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.35));
}

/* ============ learn ============ */
#learnHead{left:1520px;top:402px;}
#learnList{
  left:1520px;top:470px;
  list-style:none;
  font-size:22px;line-height:1.85;letter-spacing:.4px;
}
#learnList li{transition:transform .18s ease;cursor:default;}
#learnList li::before{content:"·  ";color:var(--orchid);font-weight:bold;}
#learnList li:hover{transform:translateX(6px);}

/* ============ LILLIAN.md ============ */
#mdTitle{
  left:1520px;top:640px;
  font-family:'Playfair Display',serif;
  font-weight:400;font-size:34px;
}
#paper{
  left:1520px;top:710px;width:200px;
  filter:drop-shadow(3px 6px 10px rgba(0,0,0,.2));
  transition:scale .2s ease;
  rotate:-.5deg; /* `rotate`, not transform: the .rise entrance holds transform */
}
#paper:hover{scale:1.2;z-index:5;}

/* ============ tech stack (vertical right rail) ============ */
#techHead{
  left:1806px;top:64px; /* starts where the terminal starts */
  writing-mode:vertical-rl; /* rotated 90° clockwise, reads downward */
}
#marquee{
  left:1782px;top:272px;bottom:24px;width:110px;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(to bottom,transparent,#000 6%,#000 94%,transparent);
}
.marquee-track{
  display:flex;flex-direction:column;gap:42px;
  height:max-content;width:100%;
  align-items:center;
  animation:slide-down 150s linear infinite;
}
#marquee:hover .marquee-track{animation-play-state:paused;}
@keyframes slide-down{from{transform:translateY(-50%);}to{transform:translateY(0);}}
.tech-item{
  display:flex;flex-direction:column;align-items:center;gap:7px;flex:none;
}
.tech-item img{
  width:44px;height:44px;object-fit:contain;display:block;
  filter:url(#orchidTone); /* orchid duotone (svg filter in index.html); real colours on hover */
  transition:filter .25s ease,transform .25s ease;
}
.tech-item:hover img{filter:none;transform:translateY(-4px);}
.tech-item span{font-size:13px;color:var(--orchid);}

/* ============ image lightbox (headshot, pins, paper) ============ */
#lightbox{
  position:absolute;inset:0;z-index:70;
  background:rgba(10,10,10,.45);
  display:none;align-items:center;justify-content:center;
}
#lightbox.open{display:flex;}
#lightbox img{
  max-width:62%;max-height:78%;
  object-fit:contain;
  filter:drop-shadow(0 24px 60px rgba(0,0,0,.5));
  animation:pop .25s cubic-bezier(.2,.9,.3,1.2);
}
#lightbox .lb-close{
  position:absolute;top:22px;right:30px;
  border:none;background:transparent;
  font-size:30px;line-height:1;cursor:pointer;color:#fff;
  transition:transform .2s ease;
}
#lightbox .lb-close:hover{transform:scale(1.2);}
#headshot,#paper,.pin{cursor:pointer;}
@keyframes pop{from{transform:scale(.92);opacity:0;}to{transform:scale(1);opacity:1;}}

/* ============ mobile stacked layout ============ */
@media (max-width:900px){
  body{overflow-y:auto;}
  .viewport{position:static;overflow:visible;}
  #stage{
    position:static;width:100%;height:auto;
    left:auto;top:auto;
    transform:none !important;
    box-shadow:none;
  }
  #content{
    position:relative;z-index:0; /* stacking context so the canvas can sit behind the content but above the fabric */
    display:flex;flex-direction:column;align-items:center;
    gap:24px;
    padding:32px 20px 56px;
  }
  .abs{position:static;left:auto;top:auto;}
  /* the page scrolls here, so pin the bunny to the viewport */
  #bunnyBg{position:fixed;inset:0;width:100vw;height:100vh;z-index:-1;}
  #bunnySay{position:fixed;font-size:19px;}
  /* #content's blur filter would re-anchor the fixed canvas, so hide it behind modals */
  body.modal-open #bunnyBg{visibility:hidden;}

  /* header: headshot + name, kept tight */
  #headshot{order:1;width:140px;display:block;margin:0 auto;}
  #nameTag{order:2;text-align:center;font-size:19px;margin-bottom:-14px;}
  #name{order:2;margin-top:-10px;width:100%;max-width:640px;}
  #name svg{width:100%;height:auto;}

  /* about */
  #aboutHead{order:3;font-size:28px;}
  #aboutText{order:4;width:100%;max-width:560px;font-size:19px;}

  /* projects */
  #projectsHead{order:5;writing-mode:horizontal-tb;transform:none !important;font-size:28px;}
  #projects{order:6;width:100%;max-width:560px;padding:0;gap:12px;}
  .folder{width:auto;flex:1;}
  .folder-icon{max-width:170px;}
  .folder-label{font-size:17px;}

  /* gallery */
  #galleryHead{order:8;writing-mode:horizontal-tb;transform:none !important;font-size:28px;}
  #terminal{order:9;width:100%;max-width:560px;}
  #albums{order:10;width:100%;max-width:560px;flex-wrap:wrap;}

  /* pinned: heading, curved greeting, vinyl, hint */
  #pinnedHead{order:11;writing-mode:horizontal-tb;transform:none !important;font-size:28px;}
  #vinylBox{order:13;margin:0 auto;}

  /* learn */
  #learnHead{order:15;font-size:28px;}
  #learnList{order:16;width:100%;max-width:400px;}

  /* LILLIAN.md */
  #mdTitle{order:17;text-align:center;font-size:28px;}
  #paper{order:18;display:block;margin:0 auto;}

  /* media links: cv button + socials, near the bottom */
  #media{order:19;width:auto;flex-direction:row;flex-wrap:wrap;justify-content:center;margin:0 auto;}

  /* tech stack: horizontal scroll at the very bottom */
  #techHead{order:20;writing-mode:horizontal-tb;transform:none;font-size:28px;}
  #marquee{
    order:21;
    width:100%;height:auto;
    -webkit-mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);
    mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);
  }
  .marquee-track{
    flex-direction:row;
    height:auto;width:max-content;
    gap:32px;
    animation:slide-left 150s linear infinite;
  }
  @keyframes slide-left{from{transform:translateX(0);}to{transform:translateX(-50%);}}

  /* project window: fill the phone screen */
  #finder{position:fixed;padding:16px;}
  #album{position:fixed;padding:16px;}
  .aw-body{padding:18px 14px 24px;}
  #post{position:fixed;padding:12px;}
  .post-x{top:6px;right:10px;}
  .post-win{flex-direction:column;width:100%;height:auto;max-height:88vh;margin-top:28px;}
  .post-media{height:52vh;border-radius:6px 6px 0 0;}
  .post-media img,.post-media video{width:100%;height:100%;max-width:none;}
  .post-side{min-height:0;}
  .post-caption{max-height:18vh;}
  .post-nav{top:26vh;}
  .post-nav.prev{left:8px;}
  .post-nav.next{right:8px;}
  .fwin{width:100%;height:auto;max-height:86vh;}
  .fw-tab{padding:0 6px;font-size:12px;gap:5px;}
  .fw-tab img{width:16px;}
  .fw-body{padding:24px 20px 20px;}
  .fw-name{font-size:36px;}
  .fw-meta{font-size:16px;}
  .fw-pill{font-size:14px;padding:4px 12px;}
  .fw-points li{font-size:18px;}

}
