:root {
  --amber: #ffb000;
  --amber-hi: #ffd27a;
  --amber-dim: #a86f00;
  --amber-low: #5a3c00;
  --phos-bg: #120b02;
  --bezel: #23211d;
  --bezel-hi: #3a3731;
  --bezel-lo: #0e0d0b;
  --mono: "VT323", "Share Tech Mono", "Lucida Console", monospace;
  --label: "Share Tech Mono", "Lucida Console", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 30%, #1d1a15, #050404 75%);
  color: var(--amber);
  font-family: var(--mono);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- rig / bezel ---------- */
#rig {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  padding: 14px;
  gap: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, var(--bezel-hi), var(--bezel) 12%, var(--bezel) 88%, var(--bezel-lo));
  box-shadow: inset 0 0 0 1px #000, inset 0 2px 0 #4a463e, inset 0 -3px 0 #000;
}

/* ---------- CRT ---------- */
#screen {
  position: relative;
  flex: 1; min-height: 0;
  border-radius: 28px / 22px;
  background: #000;
  padding: 6px;
  box-shadow: 0 0 0 2px #000, 0 0 0 5px #15130f, inset 0 0 0 2px #2b2822, 0 0 30px rgba(255,170,0,.05);
}
#crt {
  position: absolute; inset: 6px;
  border-radius: 24px / 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #1c1103 0%, var(--phos-bg) 60%, #060300 100%);
  padding: 22px 28px 18px;
  font-size: 26px; line-height: 1.15;
  text-shadow: 0 0 2px var(--amber), 0 0 9px rgba(255,160,0,.55);
  animation: flicker 6s infinite steps(1);
}
#crt.off { background: #050300; }
#crt.warm { animation: warm 1.1s ease-out both; }
@keyframes warm {
  0% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(4) blur(1px); }
  35% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(3); }
  70% { clip-path: inset(0 0 0 0); filter: brightness(1.8) blur(.6px); }
  100% { clip-path: inset(0 0 0 0); filter: none; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: .96; }
  42% { opacity: 1; }
  77% { opacity: .98; }
}
.scan, .glass { position: absolute; inset: 6px; border-radius: 24px / 18px; pointer-events: none; }
.scan {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.32) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(255,190,80,.05), transparent);
  animation: roll 7s linear infinite;
}
@keyframes roll { from { top: -120px; } to { top: 100%; } }
.glass {
  box-shadow: inset 0 0 90px rgba(0,0,0,.85), inset 0 0 18px rgba(0,0,0,.9);
  background: radial-gradient(ellipse at 28% 12%, rgba(255,255,255,.07), transparent 40%);
}

/* ---------- standby + boot ---------- */
#standby {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  cursor: pointer; color: var(--amber-dim);
  text-shadow: none;
}
.sb-line { font-size: 22px; letter-spacing: 4px; opacity: .6; }
.sb-blink { animation: blink 1.2s steps(1) infinite; font-size: 24px; }
@keyframes blink { 50% { opacity: 0; } }
#bootlog { margin: 0; font: inherit; white-space: pre-wrap; }

/* ---------- interface ---------- */
#ui { position: absolute; inset: 22px 28px 18px; display: flex; flex-direction: column; gap: 8px; }
.hdr, .ftr {
  display: flex; justify-content: space-between; gap: 12px;
  background: var(--amber); color: var(--phos-bg);
  padding: 1px 10px; text-shadow: none;
  box-shadow: 0 0 10px rgba(255,170,0,.45);
  white-space: nowrap; overflow: hidden;
}
.ftr { background: transparent; color: var(--amber-dim); box-shadow: none; border-top: 1px solid var(--amber-low); padding: 4px 2px 0; font-size: 22px; }
.pathline { font-size: 29px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prompt { color: var(--amber-hi); }
.cursor { animation: blink 1s steps(1) infinite; margin-left: 2px; }

.main { flex: 1; min-height: 0; display: flex; gap: 18px; }
#drives { flex: none; display: flex; gap: 8px; overflow-x: auto; }
.drv {
  flex: 1 0 130px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: left; background: none;
  border: 1px solid var(--amber-low);
  padding: 6px 10px 8px;
  text-shadow: inherit;
}
.drv:hover { border-color: var(--amber-dim); }
.drv.on { border-color: var(--amber); box-shadow: inset 0 0 14px rgba(255,170,0,.25), 0 0 8px rgba(255,170,0,.3); }
.drv b { font-weight: normal; color: var(--amber-hi); }
.drv .cap { height: 6px; margin-top: 5px; background: repeating-linear-gradient(90deg, var(--amber-low) 0 3px, transparent 3px 5px); position: relative; }
.drv .cap i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--amber) 0 3px, transparent 3px 5px); }
.drv small { display: none; color: var(--amber-dim); font-size: 19px; margin-top: 3px; }

.dir { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--amber-low); }
.dir-head, .row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 80px; gap: 10px; padding: 1px 10px; }
.dir-head { color: var(--amber-dim); border-bottom: 1px solid var(--amber-low); font-size: 22px; padding-top: 3px; }
#list { flex: 1; overflow: auto; outline: none; padding: 4px 0; }
.row { cursor: pointer; white-space: nowrap; }
.row span { overflow: hidden; text-overflow: ellipsis; }
.row .sz { text-align: right; }
.row:hover { background: rgba(255,176,0,.08); }
.row.sel { background: var(--amber); color: var(--phos-bg); text-shadow: none; box-shadow: 0 0 10px rgba(255,170,0,.5); }
.empty { color: var(--amber-dim); padding: 6px 10px; }
#info { min-height: 2.3em; color: var(--amber-dim); font-size: 23px; border-left: 3px solid var(--amber-low); padding-left: 10px; }
#info b { color: var(--amber); font-weight: normal; }

#list::-webkit-scrollbar, #v-body::-webkit-scrollbar, #drives::-webkit-scrollbar { width: 10px; }
#list::-webkit-scrollbar-thumb, #v-body::-webkit-scrollbar-thumb, #drives::-webkit-scrollbar-thumb { background: var(--amber-low); }

/* ---------- viewer ---------- */
#viewer {
  position: absolute; inset: 34px 0 30px;
  display: flex; flex-direction: column;
  background: rgba(14,8,1,.97);
  border: 1px solid var(--amber);
  box-shadow: 0 0 18px rgba(255,170,0,.35);
}
#viewer[hidden] { display: none; }
.v-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 2px 4px 2px 10px; background: var(--amber); color: var(--phos-bg); text-shadow: none; }
#v-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-tools { display: flex; gap: 4px; flex: none; }
.v-tools button { background: var(--phos-bg); color: var(--amber); border: 0; padding: 0 8px; font-size: 22px; }
.v-tools button:hover { background: #2a1a03; }
.v-tools button[hidden] { display: none; }
#v-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px; user-select: text; }
#v-body pre { margin: 0; font: inherit; white-space: pre-wrap; }
.img-stage { height: 100%; display: flex; align-items: center; justify-content: center; }
.img-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--amber-low);
  filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(-12deg) contrast(1.15) brightness(.95); }
.img-stage.raw img { filter: none; }
.img-cap { text-align: center; color: var(--amber-dim); margin-top: 6px; }
.media { width: 100%; height: 100%; border: 0; background: #000; }
.page { font-family: var(--label); font-size: 19px; line-height: 1.55; max-width: 760px; }
.page h1, .page h2 { font-family: var(--mono); font-weight: normal; color: var(--amber-hi); margin: 0 0 10px; }
.page h1 { font-size: 43px; } .page h2 { font-size: 31px; margin-top: 20px; }
.page a { color: var(--amber-hi); }
.page img { max-width: 100%; filter: grayscale(1) sepia(1) saturate(3) hue-rotate(-12deg); }
.page table { border-collapse: collapse; } .page td, .page th { border: 1px solid var(--amber-low); padding: 4px 10px; text-align: left; }
.page .placeholder { border: 1px dashed var(--amber-dim); padding: 6px 10px; color: var(--amber-dim); }

/* ---------- control panel ---------- */
#panel {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px;
  font-family: var(--label);
  color: #a9a18f;
}
.plate {
  display: flex; flex-direction: column;
  padding: 4px 10px;
  background: linear-gradient(180deg, #2f2c26, #1a1814);
  border: 1px solid #000; box-shadow: inset 0 1px 0 #48443b;
  letter-spacing: 2px; font-size: 10px;
}
.plate b { font-size: 19px; color: #d9cfb8; letter-spacing: 4px; }
.keys-hw { display: flex; gap: 10px; }
.hwkey {
  position: relative;
  width: 70px; height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px;
  padding: 0 0 6px;
  border: 1px solid #000; border-radius: 4px;
  background: linear-gradient(180deg, #4a463e, #2b2924 60%, #222);
  color: #d8cfb9;
  box-shadow: inset 0 1px 0 #6a655a, 0 4px 0 #0b0a08, 0 5px 6px rgba(0,0,0,.6);
  transition: transform .05s, box-shadow .05s;
}
.hwkey span { font-size: 14px; }
.hwkey small { font-size: 10px; letter-spacing: 2px; }
.hwkey:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 #6a655a, 0 1px 0 #0b0a08, 0 1px 2px rgba(0,0,0,.6); }
.hwkey .led { position: absolute; top: 7px; width: 14px; height: 4px; border-radius: 1px; background: #3a2600; box-shadow: inset 0 0 0 1px #000; }
.hwkey:not(:disabled) .led { background: var(--amber); box-shadow: 0 0 6px var(--amber), inset 0 0 0 1px rgba(0,0,0,.4); }
.hwkey:disabled { cursor: default; color: #6d675b; }
.aux { display: flex; align-items: center; gap: 18px; }
.toggle { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 10px; letter-spacing: 2px; }
.toggle input { display: none; }
.lever {
  width: 22px; height: 34px; border-radius: 11px;
  background: radial-gradient(circle at 50% 50%, #111 0 6px, #2e2b26 7px);
  border: 1px solid #000; position: relative; box-shadow: inset 0 1px 0 #555;
}
.lever::before {
  content: ""; position: absolute; left: 7px; width: 6px; height: 18px; border-radius: 3px;
  background: linear-gradient(90deg, #888, #eee, #888);
  top: 15px; transform-origin: 50% 2px; transition: transform .12s;
  transform: rotate(180deg);
}
.toggle input:checked + .lever::before { transform: rotate(0deg); top: 1px; transform-origin: 50% 16px; }
.pwr { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 2px; }
#pwr-led { width: 12px; height: 12px; border-radius: 50%; background: #3a0d00; border: 1px solid #000; }
#pwr-led.on { background: #ff5a1f; box-shadow: 0 0 8px #ff5a1f; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  #rig { padding: 8px; gap: 8px; }
  #crt { padding: 12px 14px; font-size: 23px; }
  #ui { inset: 12px 14px 10px; }
  .main { flex-direction: column; gap: 8px; }
  #drives { width: auto; flex-direction: row; overflow-x: auto; flex: none; }
  .drv { flex: none; min-width: 150px; }
  .drv small { display: none; }
  .dir-head, .row { grid-template-columns: minmax(0, 1fr) 60px; }
  .dir-head span:last-child, .row .sz { display: none; }
  .ftr .keys, .plate { display: none; }
  .hwkey { width: 58px; height: 50px; }
  #panel { padding: 0 2px; }
}

/* ==========================================================
   v3 additions: views, about, festivals/globe, grid, projects
   ========================================================== */
.views { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; display: flex; gap: 22px; }
.view > .dir { flex: 1; }
.split > .left { flex: 1 1 55%; min-width: 0; overflow: auto; padding-right: 6px; }
.split > .right { flex: 1 1 45%; min-width: 0; position: relative; }

/* logo (black-on-white PNG converted to glowing amber) */
.logo { position: relative; display: inline-block; isolation: isolate; }
.logo img { display: block; height: 100%; width: auto; mix-blend-mode: screen;
  filter: invert(1) sepia(1) saturate(7) hue-rotate(-16deg) brightness(1.05) contrast(1.2); }
.logo img.glow { position: absolute; inset: 0; filter: invert(1) sepia(1) saturate(7) hue-rotate(-16deg) blur(5px) brightness(1.6); opacity: .75; }
.plate .logo { height: 30px; }
.plate .logo img { mix-blend-mode: lighten; }
.logo-dim { height: 90px; opacity: .45; }
.logo-big { height: min(30vh, 220px); }
#boot { position: absolute; inset: 22px 28px 18px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
#boot .logo { animation: logoin 1.6s ease-out both; }
@keyframes logoin { 0% { opacity: 0; filter: brightness(3) blur(3px); } 60% { opacity: 1; } 100% { opacity: 1; filter: none; } }
#bootlog { align-self: stretch; flex: 1; min-height: 0; overflow: hidden; }

/* about */
.ab-name { font-size: 55px; line-height: 1; margin: 2px 0 10px; color: var(--amber-hi); font-weight: normal; letter-spacing: 1px; }
.ab-fields { display: grid; grid-template-columns: max-content 1fr; gap: 3px 18px; margin: 0 0 14px; font-size: 26px; }
.ab-fields dt { color: var(--amber-dim); }
.ab-fields dd { margin: 0; }
.ct-btn { background: none; border: 0; padding: 0; font-size: inherit; text-shadow: inherit; color: var(--amber-hi); letter-spacing: 1px; }
.ct-btn:hover { text-decoration: underline; }
.ct-list { grid-column: 1 / -1; max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.ct-list.open { max-height: 200px; }
.ct-list a { display: grid; grid-template-columns: 130px 1fr; color: var(--amber); text-decoration: none; padding: 1px 0 1px 18px; }
.ct-list a span { color: var(--amber-dim); }
.ct-list a:hover { background: rgba(255,176,0,.1); color: var(--amber-hi); }
.ab-bio { font-size: 24px; line-height: 1.25; margin-bottom: 16px; min-height: 5em; }
.ab-bio p { margin: 0 0 8px; }
.sec-title { color: var(--amber-dim); border-bottom: 1px solid var(--amber-low); margin: 6px 0 6px; font-size: 22px; letter-spacing: 2px; }
.ab-nav button { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 2px 6px; font-size: 25px; text-shadow: inherit; }
.ab-nav button:hover { background: var(--amber); color: var(--phos-bg); text-shadow: none; }
.ab-nav button em { font-style: normal; color: var(--amber-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-nav button:hover em { color: var(--phos-bg); }
.ab-proto { margin-top: 18px; font-size: 18px; letter-spacing: 1.5px; color: #8a5f12; text-shadow: none; }

.photo-frame { position: absolute; inset: 0; border: 1px solid var(--amber-low); overflow: hidden; background: #000; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
  filter: grayscale(1) contrast(1.45) brightness(1.05); }
.photo-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--amber); mix-blend-mode: multiply; }
.photo-frame::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.45) 0 1px, transparent 1px 3px),
              radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0,0,0,.75)); }
.photo-hud { position: absolute; inset: 10px; z-index: 3; pointer-events: none; font-size: 19px; color: var(--amber-hi); }
.photo-hud i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--amber); }
.photo-hud i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.photo-hud i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.photo-hud i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.photo-hud i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.photo-hud span { position: absolute; left: 30px; bottom: 2px; background: rgba(0,0,0,.6); padding: 0 6px; }
.photo-hud b { position: absolute; right: 30px; top: 2px; font-weight: normal; background: rgba(0,0,0,.6); padding: 0 6px; animation: blink 1.4s steps(1) infinite; }

/* festivals */
.fest-list { outline: none; }
.yr { color: var(--amber-dim); margin: 10px 0 3px; letter-spacing: 3px; font-size: 24px; }
.yr:first-child { margin-top: 0; }
.frow { display: block; padding: 1px 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 25px; }
.frow em { font-style: normal; color: var(--amber-dim); }
.frow:hover { background: rgba(255,176,0,.08); }
.frow.sel { background: var(--amber); color: var(--phos-bg); text-shadow: none; box-shadow: 0 0 10px rgba(255,170,0,.5); }
.frow.sel em { color: #4a2f00; }
.globe-wrap { overflow: hidden; border: 1px solid var(--amber-low); }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#globe:active { cursor: grabbing; }
.globe-hud { position: absolute; font-size: 18px; color: var(--amber-dim); pointer-events: none; letter-spacing: 1px; }
.globe-hud.tl { top: 6px; left: 10px; } .globe-hud.br { bottom: 6px; right: 10px; }
.pop { position: absolute; width: 280px; max-width: calc(100% - 20px); padding: 8px 12px 10px; font-size: 22px; line-height: 1.2;
  background: rgba(14,8,1,.93); border: 1px solid var(--amber); box-shadow: 0 0 14px rgba(255,170,0,.35); animation: popin .25s ease-out; }
@keyframes popin { from { opacity: 0; transform: scaleY(.1); } to { opacity: 1; transform: none; } }
.pop h4 { margin: 0 0 6px; font-weight: normal; font-size: 28px; color: var(--amber-hi); padding-right: 24px; }
.pop .k { color: var(--amber-dim); }
.pop a { display: inline-block; margin-top: 8px; color: var(--phos-bg); background: var(--amber); text-shadow: none; padding: 0 8px; text-decoration: none; }
.pop .x { position: absolute; top: 4px; right: 6px; background: none; border: 0; font-size: 22px; text-shadow: inherit; }

/* grid (apps / misc) */
.grid { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 18px; padding: 12px; overflow: auto; outline: none; border: 1px solid var(--amber-low); }
.gitem { width: 128px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 6px; cursor: pointer; text-align: center; border: 1px solid transparent; }
.gitem svg, .gitem img { width: 72px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(255,170,0,.6)); }
.gitem .gname { padding: 0 4px; font-size: 24px; line-height: 1.05; }
.gitem:hover { border-color: var(--amber-low); }
.gitem.sel { border-color: var(--amber); box-shadow: inset 0 0 14px rgba(255,170,0,.2); }
.gitem.sel .gname { background: var(--amber); color: var(--phos-bg); text-shadow: none; }

/* project detail */
.pj-title { font-size: 53px; line-height: 1; margin: 2px 0 4px; color: var(--amber-hi); font-weight: normal; }
.pj-tag { color: var(--amber-dim); margin-bottom: 12px; font-size: 24px; }
.pj-specs { display: grid; grid-template-columns: max-content 1fr; gap: 2px 18px; margin-bottom: 12px; font-size: 24px; }
.pj-specs dt { color: var(--amber-dim); } .pj-specs dd { margin: 0; }
.pj-desc { font-family: var(--label); font-size: 18px; line-height: 1.55; margin-bottom: 14px; }
.pj-desc p { margin: 0 0 8px; }
.pj-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btn { display: inline-block; padding: 3px 16px; font-size: 26px; text-decoration: none; color: var(--amber); border: 2px solid var(--amber); box-shadow: 0 0 10px rgba(255,170,0,.35), inset 0 0 10px rgba(255,170,0,.15); }
.dl-btn:hover { background: var(--amber); color: var(--phos-bg); text-shadow: none; }
.dl-btn.ghost { border-width: 1px; border-color: var(--amber-dim); box-shadow: none; font-size: 23px; }
.right.media-col { overflow: auto; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.shot { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--amber-low); overflow: hidden; cursor: pointer; background: #000; padding: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(-12deg) contrast(1.15) brightness(.9); }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.7); font-size: 19px; padding: 0 6px; text-align: left; }
.shot:hover { border-color: var(--amber); }
.vid-row { display: block; width: 100%; text-align: left; background: none; border: 1px solid var(--amber-low); padding: 4px 10px; margin-bottom: 6px; font-size: 24px; text-shadow: inherit; }
.vid-row:hover { background: var(--amber); color: var(--phos-bg); text-shadow: none; }
.none { color: var(--amber-dim); }

@media (max-width: 760px) {
  .split { flex-direction: column; overflow: auto; gap: 12px; }
  .split > .left { flex: none; overflow: visible; }
  .split > .right { flex: none; height: 60vh; }
  .ab-name, .pj-title { font-size: 41px; }
  .plate div { display: none; }
}
.plate { flex-direction: row; align-items: center; gap: 10px; }
.plate > div { display: flex; flex-direction: column; }

/* v3 fixes */
#crt { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
.split > .left::-webkit-scrollbar, .media-col::-webkit-scrollbar, .grid::-webkit-scrollbar { width: 10px; }
.split > .left::-webkit-scrollbar-thumb, .media-col::-webkit-scrollbar-thumb, .grid::-webkit-scrollbar-thumb { background: var(--amber-low); }
.split > .left::-webkit-scrollbar-track, .media-col::-webkit-scrollbar-track, .grid::-webkit-scrollbar-track { background: transparent; }
#v-about .left { display: flex; flex-direction: column; }
.ab-name { font-size: 46px; margin-bottom: 6px; }
.ab-fields { font-size: 23px; gap: 0 18px; margin-bottom: 8px; line-height: 1.1; }
.ab-bio { font-size: 22px; line-height: 1.12; min-height: 0; margin-bottom: 8px; }
.ab-bio p { margin-bottom: 5px; }
.ab-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ab-nav button { font-size: 22px; grid-template-columns: 26px minmax(0,1fr) auto; padding: 0 4px; }
.ab-proto { margin-top: auto; padding-top: 8px; }
.photo-frame img { object-position: 50% 62%; }
.photo-frame img { object-position: 50% 74%; }
.gitem svg.sym { height: 72px; }
.gitem { width: 150px; }
.pj-credits { font-size: 22px; line-height: 1.1; }
.pj-credits dd { min-width: 0; }

/* drives back in a left column */
#drives { width: 176px; flex-direction: column; overflow-x: hidden; overflow-y: auto; }
.drv { flex: none; width: 100%; }
.views { flex: 1; min-width: 0; }
.split > .left { flex: 1 1 62%; }
.split > .right { flex: 1 1 38%; }
.view { gap: 16px; }
@media (max-width: 760px) {
  #drives { width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .drv { flex: none; width: auto; min-width: 130px; }
}

/* Designs: text left, full photos stacked on the right */
#v-project .left { flex: 1 1 52%; }
#v-project .photo-col { flex: 1 1 48%; padding-right: 6px; }
.photo-col .shots { grid-template-columns: 1fr; }
.photo-col .shot { aspect-ratio: auto; display: block; width: 100%; }
.photo-col .shot img { display: block; height: auto; }
.pj-credits { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 3px 14px; }
.photo-col .shot img { filter: grayscale(1) sepia(1) saturate(3) hue-rotate(-12deg) brightness(1.3); }
.photo-col .shot img { filter: none; }
.img-stage img { cursor: pointer; }

/* Designs photos: everything fits, no scrolling */
#v-project .photo-col { display: flex; flex-direction: column; overflow: hidden; padding-right: 0; }
.photo-col .shots { flex: 1; min-height: 0; margin: 0; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 6px; }
.photo-col .shot { height: 100%; min-height: 0; }
.photo-col .shot img { height: 100%; object-fit: contain; }
.photo-col .shot span { display: none; }
.photo-col::after { content: attr(data-credit); color: var(--amber-dim); font-size: 19px; margin-top: 4px; }

.photo-col[data-credit='']::after { display: none; }

#drives { width: 214px; }
.ct-list a { grid-template-columns: 160px 1fr; }
.photo-col .shot { aspect-ratio: var(--ar, auto); }
:root {
  --amber: #ffb000;
  --amber-hi: #ffd27a;
  --amber-dim: #a86f00;
  --amber-low: #5a3c00;
  --phos-bg: #120b02;
  --bezel: #23211d;
  --bezel-hi: #3a3731;
  --bezel-lo: #0e0d0b;
  --mono: "VT323", "Share Tech Mono", "Lucida Console", monospace;
  --label: "Share Tech Mono", "Lucida Console", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 30%, #1d1a15, #050404 75%);
  color: var(--amber);
  font-family: var(--mono);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- rig / bezel ---------- */
#rig {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  padding: 14px;
  gap: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, var(--bezel-hi), var(--bezel) 12%, var(--bezel) 88%, var(--bezel-lo));
  box-shadow: inset 0 0 0 1px #000, inset 0 2px 0 #4a463e, inset 0 -3px 0 #000;
}

/* ---------- CRT ---------- */
#screen {
  position: relative;
  flex: 1; min-height: 0;
  border-radius: 28px / 22px;
  background: #000;
  padding: 6px;
  box-shadow: 0 0 0 2px #000, 0 0 0 5px #15130f, inset 0 0 0 2px #2b2822, 0 0 30px rgba(255,170,0,.05);
}
#crt {
  position: absolute; inset: 6px;
  border-radius: 24px / 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #1c1103 0%, var(--phos-bg) 60%, #060300 100%);
  padding: 22px 28px 18px;
  font-size: 26px; line-height: 1.15;
  text-shadow: 0 0 2px var(--amber), 0 0 9px rgba(255,160,0,.55);
  animation: flicker 6s infinite steps(1);
}
#crt.off { background: #050300; }
#crt.warm { animation: warm 1.1s ease-out both; }
@keyframes warm {
  0% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(4) blur(1px); }
  35% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(3); }
  70% { clip-path: inset(0 0 0 0); filter: brightness(1.8) blur(.6px); }
  100% { clip-path: inset(0 0 0 0); filter: none; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: .96; }
  42% { opacity: 1; }
  77% { opacity: .98; }
}
.scan, .glass { position: absolute; inset: 6px; border-radius: 24px / 18px; pointer-events: none; }
.scan {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.32) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(255,190,80,.05), transparent);
  animation: roll 7s linear infinite;
}
@keyframes roll { from { top: -120px; } to { top: 100%; } }
.glass {
  box-shadow: inset 0 0 90px rgba(0,0,0,.85), inset 0 0 18px rgba(0,0,0,.9);
  background: radial-gradient(ellipse at 28% 12%, rgba(255,255,255,.07), transparent 40%);
}

/* ---------- standby + boot ---------- */
#standby {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  cursor: pointer; color: var(--amber-dim);
  text-shadow: none;
}
.sb-line { font-size: 22px; letter-spacing: 4px; opacity: .6; }
.sb-blink { animation: blink 1.2s steps(1) infinite; font-size: 24px; }
@keyframes blink { 50% { opacity: 0; } }
#bootlog { margin: 0; font: inherit; white-space: pre-wrap; }

/* ---------- interface ---------- */
#ui { position: absolute; inset: 22px 28px 18px; display: flex; flex-direction: column; gap: 8px; }
.hdr, .ftr {
  display: flex; justify-content: space-between; gap: 12px;
  background: var(--amber); color: var(--phos-bg);
  padding: 1px 10px; text-shadow: none;
  box-shadow: 0 0 10px rgba(255,170,0,.45);
  white-space: nowrap; overflow: hidden;
}
.ftr { background: transparent; color: var(--amber-dim); box-shadow: none; border-top: 1px solid var(--amber-low); padding: 4px 2px 0; font-size: 22px; }
.pathline { font-size: 29px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prompt { color: var(--amber-hi); }
.cursor { animation: blink 1s steps(1) infinite; margin-left: 2px; }

.main { flex: 1; min-height: 0; display: flex; gap: 18px; }
#drives { flex: none; display: flex; gap: 8px; overflow-x: auto; }
.drv {
  flex: 1 0 130px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: left; background: none;
  border: 1px solid var(--amber-low);
  padding: 6px 10px 8px;
  text-shadow: inherit;
}
.drv:hover { border-color: var(--amber-dim); }
.drv.on { border-color: var(--amber); box-shadow: inset 0 0 14px rgba(255,170,0,.25), 0 0 8px rgba(255,170,0,.3); }
.drv b { font-weight: normal; color: var(--amber-hi); }
.drv .cap { height: 6px; margin-top: 5px; background: repeating-linear-gradient(90deg, var(--amber-low) 0 3px, transparent 3px 5px); position: relative; }
.drv .cap i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--amber) 0 3px, transparent 3px 5px); }
.drv small { display: none; color: var(--amber-dim); font-size: 19px; margin-top: 3px; }

.dir { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--amber-low); }
.dir-head, .row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 80px; gap: 10px; padding: 1px 10px; }
.dir-head { color: var(--amber-dim); border-bottom: 1px solid var(--amber-low); font-size: 22px; padding-top: 3px; }
#list { flex: 1; overflow: auto; outline: none; padding: 4px 0; }
.row { cursor: pointer; white-space: nowrap; }
.row span { overflow: hidden; text-overflow: ellipsis; }
.row .sz { text-align: right; }
.row:hover { background: rgba(255,176,0,.08); }
.row.sel { background: var(--amber); color: var(--phos-bg); text-shadow: none; box-shadow: 0 0 10px rgba(255,170,0,.5); }
.empty { color: var(--amber-dim); padding: 6px 10px; }
#info { min-height: 2.3em; color: var(--amber-dim); font-size: 23px; border-left: 3px solid var(--amber-low); padding-left: 10px; }
#info b { color: var(--amber); font-weight: normal; }

#list::-webkit-scrollbar, #v-body::-webkit-scrollbar, #drives::-webkit-scrollbar { width: 10px; }
#list::-webkit-scrollbar-thumb, #v-body::-webkit-scrollbar-thumb, #drives::-webkit-scrollbar-thumb { background: var(--amber-low); }

/* ---------- viewer ---------- */
#viewer {
  position: absolute; inset: 34px 0 30px;
  display: flex; flex-direction: column;
  background: rgba(14,8,1,.97);
  border: 1px solid var(--amber);
  box-shadow: 0 0 18px rgba(255,170,0,.35);
}
#viewer[hidden] { display: none; }
.v-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 2px 4px 2px 10px; background: var(--amber); color: var(--phos-bg); text-shadow: none; }
#v-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-tools { display: flex; gap: 4px; flex: none; }
.v-tools button { background: var(--phos-bg); color: var(--amber); border: 0; padding: 0 8px; font-size: 22px; }
.v-tools button:hover { background: #2a1a03; }
.v-tools button[hidden] { display: none; }
#v-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px; user-select: text; }
#v-body pre { margin: 0; font: inherit; white-space: pre-wrap; }
.img-stage { height: 100%; display: flex; align-items: center; justify-content: center; }
.img-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--amber-low);
  filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(-12deg) contrast(1.15) brightness(.95); }
.img-stage.raw img { filter: none; }
.img-cap { text-align: center; color: var(--amber-dim); margin-top: 6px; }
.media { width: 100%; height: 100%; border: 0; background: #000; }
.page { font-family: var(--label); font-size: 19px; line-height: 1.55; max-width: 760px; }
.page h1, .page h2 { font-family: var(--mono); font-weight: normal; color: var(--amber-hi); margin: 0 0 10px; }
.page h1 { font-size: 43px; } .page h2 { font-size: 31px; margin-top: 20px; }
.page a { color: var(--amber-hi); }
.page img { max-width: 100%; filter: grayscale(1) sepia(1) saturate(3) hue-rotate(-12deg); }
.page table { border-collapse: collapse; } .page td, .page th { border: 1px solid var(--amber-low); padding: 4px 10px; text-align: left; }
.page .placeholder { border: 1px dashed var(--amber-dim); padding: 6px 10px; color: var(--amber-dim); }

/* ---------- control panel ---------- */
#panel {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px;
  font-family: var(--label);
  color: #a9a18f;
}
.plate {
  display: flex; flex-direction: column;
  padding: 4px 10px;
  background: linear-gradient(180deg, #2f2c26, #1a1814);
  border: 1px solid #000; box-shadow: inset 0 1px 0 #48443b;
  letter-spacing: 2px; font-size: 10px;
}
.plate b { font-size: 19px; color: #d9cfb8; letter-spacing: 4px; }
.keys-hw { display: flex; gap: 10px; }
.hwkey {
  position: relative;
  width: 70px; height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px;
  padding: 0 0 6px;
  border: 1px solid #000; border-radius: 4px;
  background: linear-gradient(180deg, #4a463e, #2b2924 60%, #222);
  color: #d8cfb9;
  box-shadow: inset 0 1px 0 #6a655a, 0 4px 0 #0b0a08, 0 5px 6px rgba(0,0,0,.6);
  transition: transform .05s, box-shadow .05s;
}
.hwkey span { font-size: 14px; }
.hwkey small { font-size: 10px; letter-spacing: 2px; }
.hwkey:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 #6a655a, 0 1px 0 #0b0a08, 0 1px 2px rgba(0,0,0,.6); }
.hwkey .led { position: absolute; top: 7px; width: 14px; height: 4px; border-radius: 1px; background: #3a2600; box-shadow: inset 0 0 0 1px #000; }
.hwkey:not(:disabled) .led { background: var(--amber); box-shadow: 0 0 6px var(--amber), inset 0 0 0 1px rgba(0,0,0,.4); }
.hwkey:disabled { cursor: default; color: #6d675b; }
.aux { display: flex; align-items: center; gap: 18px; }
.toggle { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 10px; letter-spacing: 2px; }
.toggle input { display: none; }
.lever {
  width: 22px; height: 34px; border-radius: 11px;
  background: radial-gradient(circle at 50% 50%, #111 0 6px, #2e2b26 7px);
  border: 1px solid #000; position: relative; box-shadow: inset 0 1px 0 #555;
}
.lever::before {
  content: ""; position: absolute; left: 7px; width: 6px; height: 18px; border-radius: 3px;
  background: linear-gradient(90deg, #888, #eee, #888);
  top: 15px; transform-origin: 50% 2px; transition: transform .12s;
  transform: rotate(180deg);
}
.toggle input:checked + .lever::before { transform: rotate(0deg); top: 1px; transform-origin: 50% 16px; }
.pwr { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 2px; }
#pwr-led { width: 12px; height: 12px; border-radius: 50%; background: #3a0d00; border: 1px solid #000; }
#pwr-led.on { background: #ff5a1f; box-shadow: 0 0 8px #ff5a1f; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  #rig { padding: 8px; gap: 8px; }
  #crt { padding: 12px 14px; font-size: 23px; }
  #ui { inset: 12px 14px 10px; }
  .main { flex-direction: column; gap: 8px; }
  #drives { width: auto; flex-direction: row; overflow-x: auto; flex: none; }
  .drv { flex: none; min-width: 150px; }
  .drv small { display: none; }
  .dir-head, .row { grid-template-columns: minmax(0, 1fr) 60px; }
  .dir-head span:last-child, .row .sz { display: none; }
  .ftr .keys, .plate { display: none; }
  .hwkey { width: 58px; height: 50px; }
  #panel { padding: 0 2px; }
}

/* ==========================================================
   v3 additions: views, about, festivals/globe, grid, projects
   ========================================================== */
.views { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; display: flex; gap: 22px; }
.view > .dir { flex: 1; }
.split > .left { flex: 1 1 55%; min-width: 0; overflow: auto; padding-right: 6px; }
.split > .right { flex: 1 1 45%; min-width: 0; position: relative; }

/* logo (black-on-white PNG converted to glowing amber) */
.logo { position: relative; display: inline-block; isolation: isolate; }
.logo img { display: block; height: 100%; width: auto; mix-blend-mode: screen;
  filter: invert(1) sepia(1) saturate(7) hue-rotate(-16deg) brightness(1.05) contrast(1.2); }
.logo img.glow { position: absolute; inset: 0; filter: invert(1) sepia(1) saturate(7) hue-rotate(-16deg) blur(5px) brightness(1.6); opacity: .75; }
.plate .logo { height: 30px; }
.plate .logo img { mix-blend-mode: lighten; }
.logo-dim { height: 90px; opacity: .45; }
.logo-big { height: min(30vh, 220px); }
#boot { position: absolute; inset: 22px 28px 18px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
#boot .logo { animation: logoin 1.6s ease-out both; }
@keyframes logoin { 0% { opacity: 0; filter: brightness(3) blur(3px); } 60% { opacity: 1; } 100% { opacity: 1; filter: none; } }
#bootlog { align-self: stretch; flex: 1; min-height: 0; overflow: hidden; }

/* about */
.ab-name { font-size: 55px; line-height: 1; margin: 2px 0 10px; color: var(--amber-hi); font-weight: normal; letter-spacing: 1px; }
.ab-fields { display: grid; grid-template-columns: max-content 1fr; gap: 3px 18px; margin: 0 0 14px; font-size: 26px; }
.ab-fields dt { color: var(--amber-dim); }
.ab-fields dd { margin: 0; }
.ct-btn { background: none; border: 0; padding: 0; font-size: inherit; text-shadow: inherit; color: var(--amber-hi); letter-spacing: 1px; }
.ct-btn:hover { text-decoration: underline; }
.ct-list { grid-column: 1 / -1; max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.ct-list.open { max-height: 200px; }
.ct-list a { display: grid; grid-template-columns: 130px 1fr; color: var(--amber); text-decoration: none; padding: 1px 0 1px 18px; }
.ct-list a span { color: var(--amber-dim); }
.ct-list a:hover { background: rgba(255,176,0,.1); color: var(--amber-hi); }
.ab-bio { font-size: 24px; line-height: 1.25; margin-bottom: 16px; min-height: 5em; }
.ab-bio p { margin: 0 0 8px; }
.sec-title { color: var(--amber-dim); border-bottom: 1px solid var(--amber-low); margin: 6px 0 6px; font-size: 22px; letter-spacing: 2px; }
.ab-nav button { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 2px 6px; font-size: 25px; text-shadow: inherit; }
.ab-nav button:hover { background: var(--amber); color: var(--phos-bg); text-shadow: none; }
.ab-nav button em { font-style: normal; color: var(--amber-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-nav button:hover em { color: var(--phos-bg); }
.ab-proto { margin-top: 18px; font-size: 18px; letter-spacing: 1.5px; color: #8a5f12; text-shadow: none; }

.photo-frame { position: absolute; inset: 0; border: 1px solid var(--amber-low); overflow: hidden; background: #000; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
  filter: grayscale(1) contrast(1.45) brightness(1.05); }
.photo-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--amber); mix-blend-mode: multiply; }
.photo-frame::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.45) 0 1px, transparent 1px 3px),
              radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0,0,0,.75)); }
.photo-hud { position: absolute; inset: 10px; z-index: 3; pointer-events: none; font-size: 19px; color: var(--amber-hi); }
.photo-hud i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--amber); }
.photo-hud i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.photo-hud i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.photo-hud i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.photo-hud i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.photo-hud span { position: absolute; left: 30px; bottom: 2px; background: rgba(0,0,0,.6); padding: 0 6px; }
.photo-hud b { position: absolute; right: 30px; top: 2px; font-weight: normal; background: rgba(0,0,0,.6); padding: 0 6px; animation: blink 1.4s steps(1) infinite; }

/* festivals */
.fest-list { outline: none; }
.yr { color: var(--amber-dim); margin: 10px 0 3px; letter-spacing: 3px; font-size: 24px; }
.yr:first-child { margin-top: 0; }
.frow { display: block; padding: 1px 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 25px; }
.frow em { font-style: normal; color: var(--amber-dim); }
.frow:hover { background: rgba(255,176,0,.08); }
.frow.sel { background: var(--amber); color: var(--phos-bg); text-shadow: none; box-shadow: 0 0 10px rgba(255,170,0,.5); }
.frow.sel em { color: #4a2f00; }
.globe-wrap { overflow: hidden; border: 1px solid var(--amber-low); }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#globe:active { cursor: grabbing; }
.globe-hud { position: absolute; font-size: 18px; color: var(--amber-dim); pointer-events: none; letter-spacing: 1px; }
.globe-hud.tl { top: 6px; left: 10px; } .globe-hud.br { bottom: 6px; right: 10px; }
.pop { position: absolute; width: 280px; max-width: calc(100% - 20px); padding: 8px 12px 10px; font-size: 22px; line-height: 1.2;
  background: rgba(14,8,1,.93); border: 1px solid var(--amber); box-shadow: 0 0 14px rgba(255,170,0,.35); animation: popin .25s ease-out; }
@keyframes popin { from { opacity: 0; transform: scaleY(.1); } to { opacity: 1; transform: none; } }
.pop h4 { margin: 0 0 6px; font-weight: normal; font-size: 28px; color: var(--amber-hi); padding-right: 24px; }
.pop .k { color: var(--amber-dim); }
.pop a { display: inline-block; margin-top: 8px; color: var(--phos-bg); background: var(--amber); text-shadow: none; padding: 0 8px; text-decoration: none; }
.pop .x { position: absolute; top: 4px; right: 6px; background: none; border: 0; font-size: 22px; text-shadow: inherit; }

/* grid (apps / misc) */
.grid { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 18px; padding: 12px; overflow: auto; outline: none; border: 1px solid var(--amber-low); }
.gitem { width: 128px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 6px; cursor: pointer; text-align: center; border: 1px solid transparent; }
.gitem svg, .gitem img { width: 72px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(255,170,0,.6)); }
.gitem .gname { padding: 0 4px; font-size: 24px; line-height: 1.05; }
.gitem:hover { border-color: var(--amber-low); }
.gitem.sel { border-color: var(--amber); box-shadow: inset 0 0 14px rgba(255,170,0,.2); }
.gitem.sel .gname { background: var(--amber); color: var(--phos-bg); text-shadow: none; }

/* project detail */
.pj-title { font-size: 53px; line-height: 1; margin: 2px 0 4px; color: var(--amber-hi); font-weight: normal; }
.pj-tag { color: var(--amber-dim); margin-bottom: 12px; font-size: 24px; }
.pj-specs { display: grid; grid-template-columns: max-content 1fr; gap: 2px 18px; margin-bottom: 12px; font-size: 24px; }
.pj-specs dt { color: var(--amber-dim); } .pj-specs dd { margin: 0; }
.pj-desc { font-family: var(--label); font-size: 18px; line-height: 1.55; margin-bottom: 14px; }
.pj-desc p { margin: 0 0 8px; }
.pj-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btn { display: inline-block; padding: 3px 16px; font-size: 26px; text-decoration: none; color: var(--amber); border: 2px solid var(--amber); box-shadow: 0 0 10px rgba(255,170,0,.35), inset 0 0 10px rgba(255,170,0,.15); }
.dl-btn:hover { background: var(--amber); color: var(--phos-bg); text-shadow: none; }
.dl-btn.ghost { border-width: 1px; border-color: var(--amber-dim); box-shadow: none; font-size: 23px; }
.right.media-col { overflow: auto; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.shot { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--amber-low); overflow: hidden; cursor: pointer; background: #000; padding: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(-12deg) contrast(1.15) brightness(.9); }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.7); font-size: 19px; padding: 0 6px; text-align: left; }
.shot:hover { border-color: var(--amber); }
.vid-row { display: block; width: 100%; text-align: left; background: none; border: 1px solid var(--amber-low); padding: 4px 10px; margin-bottom: 6px; font-size: 24px; text-shadow: inherit; }
.vid-row:hover { background: var(--amber); color: var(--phos-bg); text-shadow: none; }
.none { color: var(--amber-dim); }

@media (max-width: 760px) {
  .split { flex-direction: column; overflow: auto; gap: 12px; }
  .split > .left { flex: none; overflow: visible; }
  .split > .right { flex: none; height: 60vh; }
  .ab-name, .pj-title { font-size: 41px; }
  .plate div { display: none; }
}
.plate { flex-direction: row; align-items: center; gap: 10px; }
.plate > div { display: flex; flex-direction: column; }

/* v3 fixes */
#crt { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
.split > .left::-webkit-scrollbar, .media-col::-webkit-scrollbar, .grid::-webkit-scrollbar { width: 10px; }
.split > .left::-webkit-scrollbar-thumb, .media-col::-webkit-scrollbar-thumb, .grid::-webkit-scrollbar-thumb { background: var(--amber-low); }
.split > .left::-webkit-scrollbar-track, .media-col::-webkit-scrollbar-track, .grid::-webkit-scrollbar-track { background: transparent; }
#v-about .left { display: flex; flex-direction: column; }
.ab-name { font-size: 46px; margin-bottom: 6px; }
.ab-fields { font-size: 23px; gap: 0 18px; margin-bottom: 8px; line-height: 1.1; }
.ab-bio { font-size: 22px; line-height: 1.12; min-height: 0; margin-bottom: 8px; }
.ab-bio p { margin-bottom: 5px; }
.ab-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ab-nav button { font-size: 22px; grid-template-columns: 26px minmax(0,1fr) auto; padding: 0 4px; }
.ab-proto { margin-top: auto; padding-top: 8px; }
.photo-frame img { object-position: 50% 62%; }
.photo-frame img { object-position: 50% 74%; }
.gitem svg.sym { height: 72px; }
.gitem { width: 150px; }
.pj-credits { font-size: 22px; line-height: 1.1; }
.pj-credits dd { min-width: 0; }

/* drives back in a left column */
#drives { width: 176px; flex-direction: column; overflow-x: hidden; overflow-y: auto; }
.drv { flex: none; width: 100%; }
.views { flex: 1; min-width: 0; }
.split > .left { flex: 1 1 62%; }
.split > .right { flex: 1 1 38%; }
.view { gap: 16px; }
@media (max-width: 760px) {
  #drives { width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .drv { flex: none; width: auto; min-width: 130px; }
}

/* Designs: text left, full photos stacked on the right */
#v-project .left { flex: 1 1 52%; }
#v-project .photo-col { flex: 1 1 48%; padding-right: 6px; }
.photo-col .shots { grid-template-columns: 1fr; }
.photo-col .shot { aspect-ratio: auto; display: block; width: 100%; }
.photo-col .shot img { display: block; height: auto; }
.pj-credits { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 3px 14px; }
.photo-col .shot img { filter: grayscale(1) sepia(1) saturate(3) hue-rotate(-12deg) brightness(1.3); }
.photo-col .shot img { filter: none; }
.img-stage img { cursor: pointer; }

/* Designs photos: everything fits, no scrolling */
#v-project .photo-col { display: flex; flex-direction: column; overflow: hidden; padding-right: 0; }
.photo-col .shots { flex: 1; min-height: 0; margin: 0; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 6px; }
.photo-col .shot { height: 100%; min-height: 0; }
.photo-col .shot img { height: 100%; object-fit: contain; }
.photo-col .shot span { display: none; }
.photo-col::after { content: attr(data-credit); color: var(--amber-dim); font-size: 19px; margin-top: 4px; }

.photo-col[data-credit='']::after { display: none; }

#drives { width: 214px; }
.ct-list a { grid-template-columns: 160px 1fr; }
.photo-col .shot { aspect-ratio: var(--ar, auto); }

/* app images: no forced row height, cell = image proportions */
.photo-col .shots.by-ratio { flex: none; grid-auto-rows: auto; align-content: start; }
.photo-col .shots.by-ratio .shot { height: auto; aspect-ratio: var(--ar); }
.photo-col .shots.by-ratio .shot img { object-fit: cover; }
#drives { font-size: 22px; }

/* ---------- v: nav keys in the terminal, italic shows, small screens ---------- */
.pathline { display: flex; align-items: center; gap: 12px; }
.pathline #path { overflow: hidden; text-overflow: ellipsis; }
.navkeys { flex: none; display: flex; gap: 6px; }
.nk {
  font: inherit; font-size: 17px; letter-spacing: 1px; line-height: 1;
  padding: 4px 9px; cursor: pointer;
  color: var(--amber); background: rgba(255,176,0,.06);
  border: 1px solid var(--amber-low, #7a5400); border-radius: 2px;
  box-shadow: inset 0 0 6px rgba(255,176,0,.12);
}
.nk:hover:not(:disabled) { background: var(--amber); color: var(--phos-bg); text-shadow: none; box-shadow: 0 0 10px rgba(255,170,0,.5); }
.nk:active:not(:disabled) { transform: translateY(1px); }
.nk:disabled { opacity: .3; cursor: default; box-shadow: none; }
.frow em { font-style: italic; }
@media (max-width: 1280px), (max-height: 760px) {
  #drives { width: 150px; font-size: 18px; }
  .drv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .frow { font-size: 21px; }
  .nk { font-size: 15px; padding: 3px 6px; }
  .pathline { font-size: 24px; }
}
@media (max-width: 760px) {
  #drives { width: auto; }
  .navkeys { gap: 4px; }
  .nk { font-size: 13px; padding: 3px 5px; }
}

/* ---------- toplocentrala page ---------- */
#v-venue .left { display: flex; flex-direction: column; }
.vn-sub { color: var(--amber-dim); font-size: 22px; letter-spacing: 2px; margin-bottom: 10px; }
.vn-items { font-size: 21px; line-height: 1.15; margin-bottom: 8px; padding-left: 10px; }
.vn-empty { color: var(--amber-dim); opacity: .7; }
.vn-link { color: var(--amber); text-decoration: none; }
.vn-link:hover { color: var(--amber-hi); text-decoration: underline; }
.vn-right { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.vn-logo { flex: none; display: flex; align-items: center; justify-content: center; padding: 14px; border: 1px solid var(--amber-low); background: rgba(255,176,0,.04); }
.vn-logo img { width: 70%; max-height: 120px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,200,0,.45)); }
.vn-photos { flex: 1; min-height: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.vn-photo { margin: 0; position: relative; min-height: 0; border: 1px solid var(--amber-low); overflow: hidden; background: #000; }
.vn-photo img, .vn-photo .ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: var(--amber-dim); font-size: 22px; letter-spacing: 3px; }
.vn-photo figcaption { position: absolute; left: 8px; bottom: 6px; font-size: 17px; background: rgba(0,0,0,.65); padding: 0 6px; }
#v-venue .left > * { flex: none; }
#v-venue .left .ab-proto { margin-top: auto; }

/* ---------- grouped grid, enhance ---------- */
.ghead { flex: 0 0 100%; color: var(--amber-dim); font-size: 22px; letter-spacing: 3px; border-bottom: 1px solid var(--amber-low); margin: 4px 0 0; padding-bottom: 2px; }
.ghead:first-child { margin-top: 0; }
.enh { position: absolute; inset: 0; z-index: 4; border: 0; background: rgba(0,0,0,0); color: var(--amber-hi); cursor: pointer; display: grid; place-items: center; font: inherit; opacity: 0; transition: opacity .2s, background .2s; }
.enh span { font-size: 26px; letter-spacing: 4px; padding: 8px 16px; border: 1px solid var(--amber); background: rgba(0,0,0,.7); box-shadow: 0 0 14px rgba(255,170,0,.4); }
.photo-frame:hover .enh, .enh:focus-visible { opacity: 1; background: rgba(0,0,0,.25); }
.photo-frame.busy .enh { opacity: 1; background: rgba(0,0,0,.82); cursor: progress; }
.enh-box { width: 82%; text-align: left; }
.enh-title { font-size: 22px; letter-spacing: 2px; margin-bottom: 8px; }
.enh-grid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 1px; height: 34vh; max-height: 340px; margin-bottom: 8px; }
.enh-grid i { background: rgba(255,176,0,.1); }
.enh-grid i.on { background: var(--amber); box-shadow: 0 0 3px var(--amber); }
.enh-bar { height: 12px; border: 1px solid var(--amber); }
.enh-bar b { display: block; height: 100%; width: 0; background: var(--amber); }
.enh-pct { text-align: right; font-size: 20px; margin-top: 4px; }
.photo-frame.color img { filter: none; }
.photo-frame.color::before { display: none; }
.photo-frame.color::after { background: radial-gradient(ellipse at 50% 45%, transparent 65%, rgba(0,0,0,.6)); }
.photo-frame.flash::before { display: block; animation: enhflash .9s ease-out forwards; }
@keyframes enhflash { from { background: #fff; mix-blend-mode: normal; opacity: .9; } to { background: #fff; mix-blend-mode: normal; opacity: 0; } }

/* ---------- technical direction + recalibration ---------- */
.frow.td { color: var(--amber-dim); border-left: 2px dashed var(--amber-low); padding-left: 10px; }
.frow.td.sel { color: var(--phos-bg); }
.tdtag { font-size: .72em; letter-spacing: 2px; border: 1px dashed currentColor; padding: 0 6px; margin-left: 6px; vertical-align: 2px; }
.tdbadge { display: inline-block; margin: 2px 0 6px; font-size: .8em; letter-spacing: 2px; border: 1px dashed var(--amber); padding: 0 8px; color: var(--amber-hi); }
.photo-frame.busy .enh { background: transparent; place-items: end center; }
.photo-frame.busy .enh-box { width: 86%; background: rgba(0,0,0,.72); padding: 8px 12px; margin-bottom: 14px; border: 1px solid var(--amber); }
.photo-frame.busy::after { background: repeating-linear-gradient(0deg, rgba(0,0,0,.5) 0 1px, transparent 1px 3px), linear-gradient(transparent calc(var(--tear, 50%) - 3%), rgba(255,200,80,.5) var(--tear, 50%), transparent calc(var(--tear, 50%) + 3%)); }

.enh-cv { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.tdtag { padding: 0 5px; letter-spacing: 0; }

/* ---------- toplocentrala show grid ---------- */
.vn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.vt { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--amber); border: 1px solid var(--amber-low); cursor: pointer; }
.vt img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.35) brightness(1.1); }
.vt:hover { border-color: var(--amber-hi); box-shadow: 0 0 12px rgba(255,170,0,.55); }
.vt:hover img { filter: grayscale(1) contrast(1.5) brightness(1.35); }
.vt.arch { cursor: default; }
.vt.arch img { filter: grayscale(1) blur(7px) brightness(.9); transform: scale(1.25); opacity: .6; }
.vt.arch:hover { border-color: var(--amber-dim); box-shadow: none; }
.vt.arch:hover img { filter: grayscale(1) blur(9px) brightness(.8); }
#v-venue ~ #info, .views #info { display: block; }
.vt.arch img { filter: grayscale(1) contrast(1.7) brightness(1.15) blur(5px); opacity: 1; transform: scale(1.2); }
.vt.arch:hover img { filter: grayscale(1) contrast(1.7) brightness(1.3) blur(6px); }

.vn-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.vt { aspect-ratio: 4 / 3; }

.ab-att { display: grid; gap: 0; margin-bottom: 4px; }
.ab-att a { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; color: var(--amber); text-decoration: none; padding: 0 4px; font-size: 22px; }
.ab-att a em { font-style: normal; color: var(--amber-dim); }
.ab-att a i { font-style: normal; color: var(--amber-hi); }
.ab-att a:hover { background: var(--amber); color: var(--phos-bg); text-shadow: none; }
.ab-att a:hover em, .ab-att a:hover i { color: var(--phos-bg); }

/* ---------- About me on small screens: no overlap ---------- */
#v-about .left > * { flex: none; }
#v-about .left .ab-proto { margin-top: auto; }
.ab-nav { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.ab-nav button span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1280px), (max-height: 760px) {
  .ab-name { font-size: 36px; }
  .ab-fields { font-size: 19px; }
  .ab-bio { font-size: 19px; }
  .ab-nav button { font-size: 18px; }
  .ab-att a { font-size: 18px; }
  .ab-proto { font-size: 15px; }
  .sec-title { font-size: 18px; }
  .photo-hud { font-size: 15px; }
}
