/* ─────────────────────────────────────────────
   About: a personal archive, set as a Windows 2000 desktop in ARCUHN colours, built to be played with.
   Shapes are Windows 2000 (bevelled frames, title bars, small close/minimise/maximise buttons, desktop icons,
   Start menu, taskbar); colours are not: Oat desktop, Charcoal title bars, Oxblood only as a small accent
   (the active window, keyboard focus, the selection). System text = Anonymous Pro, headings and body = Inter.
   Builds on styles.css (tokens, header, menu, footer). Script: about.js.
   ───────────────────────────────────────────── */
.page-about {
  --brass: #b98a57;
  --brass-soft: #d4ae7c;
  --header-bg: rgb(36 36 36 / .92);
  background:
    radial-gradient(80% 560px at 14% 0%, rgb(74 4 4 / .42), transparent 70%),
    var(--charcoal);
  color: var(--oat);
}
.page-about .site-footer { background: #1c1c1c; }
html.is-arch-modal, html.is-arch-modal body { overflow: hidden; }   /* a full-screen window (phone) holds the page still */

.arch {
  /* the "Windows" palette, in ARCUHN colours */
  --a-desk: #DED8CC;      /* Oat: the desktop */
  --a-face: #E9E4D9;      /* window and button face */
  --a-paper: #F6F3EB;     /* the inside of a window */
  --a-hi: #FCFAF5;        /* bevel: lit edge */
  --a-mid: #B4AD9E;       /* bevel: soft shadow */
  --a-lo: #6B655A;        /* bevel: dark edge */
  --a-ink: #2E2E2E;       /* Charcoal */
  --a-ink-70: rgb(46 46 46 / .72);
  --a-ox: #4A0404;        /* Oxblood: accent only */
  --a-off: #5C5953;       /* title bar of a window that is not in front */
  --task-h: 38px;
  --bar-h: 26px;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(112px, 16vh, 150px) var(--gutter) clamp(70px, 10vh, 110px);
}

.arch__tag { margin: 0 0 clamp(14px, 2.4vh, 22px); display: flex; align-items: center; gap: 14px; font: 400 11px var(--font-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--brass-soft); }
.arch__tag::before { content: ""; width: 40px; height: 1px; background: rgb(212 174 124 / .45); }
.arch__hint { margin: 0 0 clamp(16px, 2.6vh, 24px); font: 400 13px/1.4 var(--font-mono); letter-spacing: .06em; color: rgb(222 216 204 / .72); }
.hint--touch { display: none; }
@media (hover: none), (max-width: 760px) { .hint--mouse { display: none; } .hint--touch { display: inline; } }

/* ── the desktop ── */
.desk {
  position: relative;
  height: clamp(600px, 82vh, 780px);
  overflow: hidden;
  background-color: var(--a-desk);
  background-image: radial-gradient(rgb(46 46 46 / .1) 1px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--a-ink);
  font-family: var(--font-sans);
  border: 2px solid;
  border-color: var(--a-lo) var(--a-hi) var(--a-hi) var(--a-lo);
  box-shadow: 0 0 0 1px #1c1c1c, 0 30px 70px -30px rgb(0 0 0 / .8);
  user-select: none;
  -webkit-user-select: none;
}
.desk :focus-visible { outline: 2px solid var(--a-ox); outline-offset: 2px; }
/* the wallpaper follows the pointer with a soft light */
.desk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 70%) var(--my, 30%), rgb(255 253 247 / .7), transparent 68%);
  opacity: 0;
  transition: opacity .5s;
}
.desk.is-hover::before { opacity: 1; }

/* ── desktop icons: a plain grid (no script, phone), or free placement on a grid you can drag them around ── */
.icons {
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 10px;
  bottom: calc(var(--task-h) + 6px);
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 104px);
  grid-auto-columns: 108px;
  align-content: start;
}
.icons.is-free { inset: 0 0 var(--task-h) 0; display: block; pointer-events: none; }
.ico { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px; text-align: center; cursor: pointer; color: var(--a-ink); -webkit-tap-highlight-color: transparent; }
.is-free .ico { position: absolute; left: calc(var(--cx, 0) * 1px); top: calc(var(--cy, 0) * 1px); width: 100px; pointer-events: auto; touch-action: none; transition: translate .2s var(--ease-out); }
.is-free .ico.is-snap { transition: left .24s var(--ease-out), top .24s var(--ease-out); }
.ico.is-drag { z-index: 30; opacity: .85; cursor: grabbing; translate: 0 -2px; }
.ico__i { width: 46px; height: 46px; flex: none; overflow: visible; filter: drop-shadow(2px 2px 0 rgb(46 46 46 / .2)); transition: transform .25s var(--ease-out), filter .25s; }
.ico__l { padding: 1px 4px; font: 400 12px/1.25 var(--font-mono); letter-spacing: .02em; overflow-wrap: anywhere; }
.ico:hover .ico__i, .ico:focus-visible .ico__i, .ico.is-drag .ico__i { transform: translateY(-3px) scale(1.06); filter: drop-shadow(3px 5px 0 rgb(46 46 46 / .22)); }
.ico:active .ico__i { transform: scale(.94); }
.ico:hover .ico__l { text-decoration: underline; }
.ico:focus-visible { outline: none; }
.ico:focus-visible .ico__l, .ico.is-sel .ico__l { background: var(--a-ox); color: var(--a-desk); outline: 1px dotted var(--a-desk); outline-offset: -3px; text-decoration: none; }

/* every icon is its own little drawing, and moves a little when you point at it */
.ico__i * { transform-box: fill-box; transform-origin: center; }
.k-ln { stroke-dasharray: 10; stroke-dashoffset: 0; }
@keyframes k-write { from { stroke-dashoffset: 10; } to { stroke-dashoffset: 0; } }
@keyframes k-bob { 0%, 100% { translate: 0 0; } 40% { translate: 0 -3px; } }
@keyframes k-march { to { stroke-dashoffset: -10.4; } }
@keyframes k-flash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes k-pop { 0% { scale: 0; } 60% { scale: 1.5; } 100% { scale: 1; } }
@keyframes k-wob { 0%, 100% { scale: 1 1; } 30% { scale: .94 1.07; } 60% { scale: 1.05 .96; } }
.k-sp { opacity: 0; }
.k-sp1, .k-sp2, .k-sp3 { scale: 1; }
.ico:hover .k-ln1, .ico:focus-visible .k-ln1 { animation: k-write .5s ease-out both; }
.ico:hover .k-ln2, .ico:focus-visible .k-ln2 { animation: k-write .5s .12s ease-out both; }
.ico:hover .k-ln3, .ico:focus-visible .k-ln3 { animation: k-write .5s .24s ease-out both; }
.k-pen, .k-pencil, .k-brush, .k-nib, .k-lid, .k-pp, .k-card, .k-drop { transition: translate .3s var(--ease-out), rotate .3s var(--ease-out), scale .3s var(--ease-out); }
.ico:hover .k-readme .k-pen, .ico:focus-visible .k-readme .k-pen { translate: -5px -4px; }
.ico:hover .k-d, .ico:focus-visible .k-d { animation: k-bob .5s ease-in-out; }
.ico:hover .k-d2, .ico:focus-visible .k-d2 { animation-delay: .06s; }
.ico:hover .k-d3, .ico:focus-visible .k-d3 { animation-delay: .12s; }
.ico:hover .k-d4, .ico:focus-visible .k-d4 { animation-delay: .18s; }
.ico:hover .k-brush, .ico:focus-visible .k-brush { rotate: -14deg; translate: -2px -2px; }
.k-scr { transition: fill .35s; }
.ico:hover .k-scr, .ico:focus-visible .k-scr { fill: #8095AA; }
.ico:hover .k-pencil, .ico:focus-visible .k-pencil { translate: 5px -6px; }
.ico:hover .k-bz, .ico:focus-visible .k-bz { animation: k-march .6s linear infinite; }
.ico:hover .k-nib, .ico:focus-visible .k-nib { translate: 0 -2px; rotate: 7deg; }
.k-an { transition: scale .25s var(--ease-out); }
.ico:hover .k-an, .ico:focus-visible .k-an { scale: 1.3; }
.ico:hover .k-sp, .ico:focus-visible .k-sp { animation: k-flash .6s ease-out; }
.ico:hover .k-gl, .ico:focus-visible .k-gl { translate: 2.5px 2px; }
.k-gl { transition: translate .3s; }
.ico:hover .k-drop, .ico:focus-visible .k-drop { animation: k-wob .55s ease-in-out; }
.ico:hover .k-sp1, .ico:focus-visible .k-sp1 { animation: k-pop .4s ease-out; }
.ico:hover .k-sp2, .ico:focus-visible .k-sp2 { animation: k-pop .4s .08s ease-out both; }
.ico:hover .k-sp3, .ico:focus-visible .k-sp3 { animation: k-pop .4s .16s ease-out both; }
.k-sq { stroke-dasharray: 10; stroke-dashoffset: 0; }
.ico:hover .k-draw .k-sq, .ico:focus-visible .k-draw .k-sq, .ico:hover .k-sketch .k-sq, .ico:focus-visible .k-sketch .k-sq { animation: k-write .7s ease-out both; }
.ico:hover .k-dot, .ico:focus-visible .k-dot { animation: k-bob .5s .4s ease-in-out; }
.ico:hover .k-card, .ico:focus-visible .k-card { rotate: -5deg; }
.k-about .k-ln { stroke-dasharray: 10; }
.ico:hover .k-lid, .ico:focus-visible .k-lid, .ico--bin.is-over .k-lid, .ico--bin.is-wink .k-lid { rotate: -24deg; translate: -3px -2px; }
.ico:hover .k-pp, .ico:focus-visible .k-pp, .ico--bin.is-over .k-pp, .ico--bin.is-wink .k-pp { translate: 1px -3px; rotate: 8deg; }
.ico--bin.is-over .ico__i { transform: scale(1.18); }
.ico--bin.is-over .ico__l { background: var(--a-ox); color: var(--a-desk); }

/* a sticky note: a line from one of the drawings; drag it around, or open the drawing */
.note { position: absolute; z-index: 1; left: 66%; top: 46px; width: 176px; padding: 24px 16px 14px; margin: 0; text-align: left; font: 500 1.05rem/1.35 var(--font-sans); letter-spacing: -.01em; color: var(--a-ink); background: linear-gradient(170deg, #ECD6A4, #E0C487); border: 0; box-shadow: 3px 5px 0 rgb(46 46 46 / .2); rotate: -3deg; cursor: grab; transition: rotate .3s var(--ease-out), translate .3s var(--ease-out), box-shadow .3s; }
.note:hover, .note:focus-visible { rotate: -1deg; translate: 0 -4px; box-shadow: 4px 9px 0 rgb(46 46 46 / .2); }
.note.is-drag { cursor: grabbing; rotate: 2deg; box-shadow: 6px 12px 0 rgb(46 46 46 / .18); }
.note__pin { position: absolute; top: 7px; left: 50%; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--a-ox); box-shadow: inset -2px -2px 0 rgb(0 0 0 / .3), 1px 3px 0 rgb(46 46 46 / .3); }
.note__t { display: block; }
.note__s { display: block; margin-top: 12px; font: 400 11px var(--font-mono); letter-spacing: .06em; opacity: .55; }

/* Maryam, stepping out of a window onto the desktop: leans towards the pointer, speaks when clicked, can be moved */
.me { position: absolute; right: 156px; bottom: calc(var(--task-h) - 2px); height: clamp(300px, 62%, 500px); aspect-ratio: 700 / 875; margin: 0; --tx: 0; --ty: 0; }
.me > img, .me__b img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.me__b { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; touch-action: none; transform-origin: 50% 92%; transform: perspective(1100px) rotateY(calc(var(--tx) * 7deg)) rotateX(calc(var(--ty) * -4deg)); transition: transform .35s var(--ease-out), translate .3s var(--ease-out); }
.me__b:hover, .me__b:focus-visible { translate: 0 -5px; }
.me.is-drag .me__b { cursor: grabbing; transition: none; transform: perspective(1100px) rotateZ(2.5deg) scale(1.02); translate: 0 -9px; }
@keyframes me-hop { 35% { translate: 0 -14px; scale: 1.025; } 70% { translate: 0 0; scale: .99; } }
.me.is-hop .me__b { animation: me-hop .5s var(--ease-out); }
.me__say { position: absolute; z-index: 4; right: 71%; top: 6%; width: 214px; padding: 10px 13px 9px; background: #FBF6E4; color: var(--a-ink); border: 1px solid var(--a-ink); box-shadow: 3px 3px 0 rgb(46 46 46 / .28); transform-origin: 100% 30%; animation: me-pop .3s var(--ease-out); }
.me__say[hidden] { display: none; }
.me__say::before { content: ""; position: absolute; top: 24px; right: -9px; width: 16px; height: 16px; background: #FBF6E4; border: solid var(--a-ink); border-width: 1px 1px 0 0; rotate: 45deg; }
.me__say.is-right { right: auto; left: 71%; transform-origin: 0 30%; }
.me__say.is-right::before { right: auto; left: -9px; border-width: 0 0 1px 1px; }
@keyframes me-pop { from { opacity: 0; scale: .85; } }
.me__t { margin: 0 0 8px; font: 500 1rem/1.35 var(--font-sans); letter-spacing: -.01em; }
.me__open { padding: 0; font: 400 12px/1.2 var(--font-mono); letter-spacing: .04em; color: var(--a-ox); background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.me__open:hover { background: rgb(74 4 4 / .1); }

/* BEFORE_ARCUHN: the early work, said plainly, with the folders inside; its thumbnails look a little aged */
.before__intro { margin: 0 0 8px; padding: 0; border: 0; font-size: 1.08rem; line-height: 1.4; }
.before__now { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--a-mid); font-size: .96rem; }
.before__now a { color: var(--a-ox); font-weight: 600; border-bottom: 1px solid currentColor; transition: background .2s; }
.before__now a:hover { background: rgb(74 4 4 / .1); }
.fold { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px 4px; align-content: start; }
.fold .ico { padding: 8px 4px; }
.era { color: var(--a-ox); }
.win--early .fig__a img { filter: saturate(.6) sepia(.22) contrast(.95); transition: filter .35s, transform .45s var(--ease-out); }
.win--early .fig__a:hover img, .win--early .fig__a:focus-visible img { filter: none; }
.k-rw { transition: translate .3s var(--ease-out); }
.ico:hover .k-rw, .ico:focus-visible .k-rw { translate: -2.5px 0; }

/* tooltip, selection frame, toast */
.tip { position: absolute; z-index: 60; max-width: 270px; padding: 4px 8px; font: 400 12px/1.35 var(--font-mono); letter-spacing: .02em; background: #FBF6E4; color: var(--a-ink); border: 1px solid var(--a-ink); box-shadow: 2px 2px 0 rgb(46 46 46 / .25); pointer-events: none; }
.tip[hidden] { display: none; }
.rb { position: absolute; z-index: 5; border: 1px dotted var(--a-ox); background: rgb(74 4 4 / .08); pointer-events: none; }
.toast { position: absolute; z-index: 70; right: 14px; bottom: calc(var(--task-h) + 14px); margin: 0; padding: 9px 14px; font: 400 13px/1.2 var(--font-mono); letter-spacing: .04em; color: var(--a-desk); background: var(--a-ink); border-left: 4px solid var(--a-ox); box-shadow: 3px 3px 0 rgb(46 46 46 / .3); opacity: 0; translate: 0 8px; transition: opacity .25s, translate .3s var(--ease-out); pointer-events: none; }
.toast.is-on { opacity: 1; translate: 0 0; }

/* ── windows ── */
.wins { position: absolute; z-index: 2; left: 0; right: 0; top: 0; bottom: var(--task-h); overflow: hidden; pointer-events: none; }
.win {
  position: absolute;
  display: none;
  flex-direction: column;
  min-width: 0;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
  background: var(--a-face);
  border: 1px solid;
  border-color: var(--a-hi) var(--a-ink) var(--a-ink) var(--a-hi);
  box-shadow: inset 1px 1px 0 var(--a-desk), inset -1px -1px 0 var(--a-mid), 3px 3px 0 rgb(46 46 46 / .3);
  padding: 2px;
}
.win.is-open { display: flex; }
.win.is-min { display: none; }
.win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.win:focus { outline: none; }
.win.is-active { outline: 2px solid var(--a-ox); outline-offset: 0; }   /* the window in front carries the small Oxblood accent */
.win.is-active:focus-visible { outline-width: 3px; }

.win__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--bar-h);
  flex: none;
  padding: 0 3px 0 6px;
  background: var(--a-off);
  color: rgb(222 216 204 / .72);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
}
.win.is-active .win__bar { background: var(--a-ink); color: var(--a-desk); box-shadow: inset 4px 0 0 var(--a-ox); padding-left: 10px; }
.win.is-max .win__bar, .win--dlg .win__bar { cursor: default; }
.win__bar.is-drag { cursor: grabbing; }
.win__ic { width: 18px; height: 18px; flex: none; overflow: visible; }
.win__title { margin: 0; flex: 1; min-width: 0; font: 400 14px/1 var(--font-mono); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__btn {
  flex: none;
  width: 20px;
  height: 18px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--a-ink);
  background: var(--a-face);
  border: 1px solid;
  border-color: var(--a-hi) var(--a-ink) var(--a-ink) var(--a-hi);
  box-shadow: inset -1px -1px 0 var(--a-mid);
  cursor: pointer;
}
.win__btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; }
.win__btn:active { border-color: var(--a-ink) var(--a-hi) var(--a-hi) var(--a-ink); box-shadow: inset 1px 1px 0 var(--a-mid); }
.win__btn:focus-visible { outline: 2px solid var(--a-ox); outline-offset: 1px; }
.win__btn--close:hover { background: var(--a-ox); color: var(--a-desk); }
.win__rs { position: absolute; z-index: 3; }
.win__rs--e { right: -4px; top: 14px; bottom: 14px; width: 8px; cursor: ew-resize; }
.win__rs--s { bottom: -4px; left: 14px; right: 14px; height: 8px; cursor: ns-resize; }
.win__rs--se { right: -4px; bottom: -4px; width: 18px; height: 18px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 52%, var(--a-lo) 52% 58%, transparent 58% 70%, var(--a-lo) 70% 76%, transparent 76%); background-position: -3px -3px; opacity: .55; }
.win.is-max .win__rs, .win--dlg .win__rs { display: none; }

.win__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 2px;
  padding: 16px 18px 20px;
  background: var(--a-paper);
  border: 1px solid;
  border-color: var(--a-lo) var(--a-hi) var(--a-hi) var(--a-lo);
  -webkit-overflow-scrolling: touch;
}
.win__intro { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--a-mid); font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.win__status { flex: none; margin: 2px 0 0; padding: 3px 8px 2px; display: flex; align-items: center; gap: 12px; font: 400 12px/1.2 var(--font-mono); letter-spacing: .04em; color: var(--a-ink-70); border: 1px solid; border-color: var(--a-lo) var(--a-hi) var(--a-hi) var(--a-lo); }

/* text files (README, ABOUT): README types itself in, ABOUT lights up the paragraph you read */
.txt { font-size: clamp(.98rem, 1.15vw, 1.06rem); line-height: 1.65; }
.txt p { margin: 0 0 1em; }
.txt__sign { margin-top: 1.4em; font-weight: 500; }
.txt__h { margin: 0 0 1em; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 400; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.txt__who { font-size: 1.12em; font-weight: 500; letter-spacing: -.01em; }
.txt em { font-style: normal; border-bottom: 1px solid var(--a-ox); transition: background .25s; }
.txt em:hover { background: rgb(74 4 4 / .1); }
@keyframes typeIn { from { opacity: 0; translate: 0 8px; } }
.win.is-open .txt--type p { animation: typeIn .5s both; animation-delay: calc(var(--i, 1) * .24s); }
.txt--type p:last-child::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: .3em; vertical-align: -.16em; background: currentColor; animation: blink 1s steps(1) infinite; }
.txt--focus p { transition: opacity .3s; }
@media (hover: hover) { .txt--focus:hover p { opacity: .5; } .txt--focus p:hover { opacity: 1; } }
.bin { display: grid; place-content: center; text-align: center; min-height: 100%; font-size: 1.05rem; line-height: 1.5; }
.bin p { margin: 0; }
.bin__t { font: 700 14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; color: var(--a-ox); }

/* image galleries: small previews, a file label under each, and a pane on the left that follows the pointer */
.win__body.has-side { display: grid; grid-template-columns: 196px minmax(0, 1fr); padding: 0; overflow: hidden; }
.gal-main { min-width: 0; min-height: 0; overflow: auto; padding: 16px 18px 20px; }
.side { min-height: 0; overflow: auto; padding: 16px 14px 18px; background: linear-gradient(var(--a-paper), var(--a-face)); border-right: 1px solid var(--a-mid); }
.side__f { margin: 0 0 12px; font: 700 15px/1.2 var(--font-mono); letter-spacing: .04em; overflow-wrap: anywhere; }
.side__ph { aspect-ratio: 4 / 3; background: #fff; border: 1px solid; border-color: var(--a-lo) var(--a-hi) var(--a-hi) var(--a-lo); }
.side__ph img { width: 100%; height: 100%; object-fit: contain; }
.side__n { margin: 10px 0 4px; font: 700 12.5px/1.3 var(--font-mono); overflow-wrap: anywhere; }
.side__m { margin: 0; font: 400 12px/1.5 var(--font-mono); color: var(--a-ink-70); white-space: pre-line; }
.win__tools { display: flex; gap: 6px; margin: -4px 0 14px; }

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; align-items: start; }
.fig { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.fig__a {
  display: block;
  overflow: hidden;
  padding: 3px;
  background: var(--a-face);
  border: 1px solid;
  border-color: var(--a-lo) var(--a-hi) var(--a-hi) var(--a-lo);
  cursor: zoom-in;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.fig__a:focus-visible { outline-offset: 3px; }
.fig__a img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; transition: transform .45s var(--ease-out); }
.fig__c { display: grid; gap: 1px; font: 400 11.5px/1.3 var(--font-mono); letter-spacing: .03em; color: var(--a-ink-70); }
.fig__c span { overflow-wrap: anywhere; }
.has-side .fig.is-cur .fig__a { box-shadow: 0 0 0 2px var(--a-ox); }
/* each folder handles its pictures its own way */
.gal--paint .fig__a img { image-rendering: pixelated; }
.gal--paint .fig__a:hover { transform: translateY(-3px); }
.gal--art .fig__a:hover img { transform: scale(1.1); }
.gal--photos .fig__a { padding: 6px 6px 22px; background: #fff; border-color: #d7d1c3; box-shadow: 0 3px 8px rgb(46 46 46 / .22); transform: rotate(var(--rot, 0deg)); }
.gal--photos .fig:nth-child(5n+1) { --rot: -2.4deg; }
.gal--photos .fig:nth-child(5n+2) { --rot: 1.8deg; }
.gal--photos .fig:nth-child(5n+3) { --rot: -1deg; }
.gal--photos .fig:nth-child(5n+4) { --rot: 2.5deg; }
.gal--photos .fig:nth-child(5n+5) { --rot: -1.8deg; }
.gal--photos .fig__a:hover { transform: rotate(0) scale(1.06) translateY(-3px); box-shadow: 0 10px 18px rgb(46 46 46 / .3); position: relative; z-index: 2; }
.gal.is-list { grid-template-columns: 1fr; gap: 8px; }
.gal.is-list .fig { flex-direction: row; align-items: center; gap: 14px; }
.gal.is-list .fig__a { flex: none; width: 86px; transform: none; box-shadow: none; padding: 3px; }
.gal.is-list .fig__c { grid-auto-flow: column; gap: 4px 22px; }

/* 02: each project as a sequence (this is what you get without script) */
.proj { margin: 0 0 26px; }
.proj:last-child { margin-bottom: 0; }
.proj__n { margin: 0 0 10px; padding: 3px 8px; display: inline-block; font: 400 12.5px/1.3 var(--font-mono); letter-spacing: .12em; color: var(--a-desk); background: var(--a-ink); }
.seq { display: flex; flex-wrap: wrap; gap: 14px 6px; align-items: flex-start; }
.seq li { display: flex; align-items: flex-start; gap: 6px; }
.seq li + li::before { content: "\2192"; align-self: center; padding-bottom: 46px; font: 400 20px/1 var(--font-mono); color: var(--a-ox); }
.seq .fig { width: max-content; min-width: 128px; max-width: 280px; }
.seq .fig__a img { width: auto; max-width: 100%; height: 150px; margin: 0 auto; }

/* 02 with script: pick a project, scrub (or play) from sketch to screen to final */
.is-rv .proj { display: none; }
.rv__tabs { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 12px; }
.rv__tab { padding: 3px 8px 2px; font: 400 12px/1.2 var(--font-mono); letter-spacing: .06em; color: var(--a-ink); background: var(--a-face); border: 1px solid; border-color: var(--a-hi) var(--a-ink) var(--a-ink) var(--a-hi); box-shadow: inset -1px -1px 0 var(--a-mid); cursor: pointer; transition: translate .2s var(--ease-out); }
.rv__tab:hover { translate: 0 -2px; }
.rv__tab.is-on { color: var(--a-desk); background: var(--a-ink); border-color: var(--a-ink); box-shadow: inset 0 -3px 0 var(--a-ox); }
.rv__row { display: grid; grid-template-columns: minmax(0, 430px) minmax(190px, 1fr); gap: 22px; align-items: start; }
.win.is-max .rv__row { grid-template-columns: minmax(0, 1fr) 260px; }
.rv__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border: 1px solid; border-color: var(--a-lo) var(--a-hi) var(--a-hi) var(--a-lo); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rv__stage.is-drag { cursor: grabbing; }
.rv__l { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.rv__h { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--a-ox); box-shadow: 0 0 0 1px rgb(255 255 255 / .7); pointer-events: none; }
.rv__h::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px; background: var(--a-ox); border: 2px solid #fff; border-radius: 50%; }
.rv__range { display: block; width: 100%; margin: 12px 0 0; accent-color: var(--a-ox); }
.rv__side { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.rv__name { margin: 0; font: 700 15px/1.2 var(--font-mono); letter-spacing: .05em; overflow-wrap: anywhere; }
.rv__steps { display: grid; gap: 4px; }
.rv__step { display: block; width: 100%; padding: 6px 10px 5px; text-align: left; font: 400 12.5px/1.2 var(--font-mono); letter-spacing: .08em; color: var(--a-ink); background: var(--a-face); border: 1px solid; border-color: var(--a-hi) var(--a-ink) var(--a-ink) var(--a-hi); box-shadow: inset -1px -1px 0 var(--a-mid); cursor: pointer; }
.rv__step.is-on { color: var(--a-desk); background: var(--a-ink); border-color: var(--a-ink); box-shadow: inset 4px 0 0 var(--a-ox); padding-left: 14px; }
.rv__cap { display: grid; gap: 1px; margin: 4px 0 0; font: 400 11.5px/1.3 var(--font-mono); letter-spacing: .03em; color: var(--a-ink-70); }
.rv__cap span { overflow-wrap: anywhere; }

/* the image viewer (built by about.js): click the picture to look closer */
.view { margin: 0; flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.view__stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #fff; border: 1px solid var(--a-mid); cursor: zoom-in; touch-action: none; }
.view__stage.is-zoom { cursor: zoom-out; }
.view__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform .22s var(--ease-out); }
.view__stage.is-zoom .view__img { transform: scale(2.6); }
.view .fig__c { width: 100%; grid-auto-flow: column; justify-content: start; gap: 4px 22px; }
.win--viewer .win__body { display: flex; flex-direction: column; padding: 12px; }
.win__status .nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.win__status .nav[hidden] { display: none; }
.view__hint { color: var(--a-ink-70); }
.nav__b { padding: 2px 10px 1px; min-height: 19px; font: 400 12px/1.2 var(--font-mono); color: var(--a-ink); background: var(--a-face); border: 1px solid; border-color: var(--a-hi) var(--a-ink) var(--a-ink) var(--a-hi); box-shadow: inset -1px -1px 0 var(--a-mid); cursor: pointer; }
.nav__b:active, .nav__b.is-on { border-color: var(--a-ink) var(--a-hi) var(--a-hi) var(--a-ink); box-shadow: inset 1px 1px 0 var(--a-mid); }
.nav__b.is-primary { outline: 1px solid var(--a-ink); outline-offset: 1px; }
.nav__b:focus-visible { outline: 2px solid var(--a-ox); outline-offset: 1px; }
.nav__b[hidden] { display: none; }

/* DRAW.exe */
.win__body.draw { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: var(--a-face); overflow: hidden; }
.draw__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.draw__tool { padding: 4px 11px 3px; font: 400 12.5px/1.2 var(--font-mono); letter-spacing: .04em; color: var(--a-ink); background: var(--a-face); border: 1px solid; border-color: var(--a-hi) var(--a-ink) var(--a-ink) var(--a-hi); box-shadow: inset -1px -1px 0 var(--a-mid); cursor: pointer; }
.draw__tool.is-on, .draw__tool:active { border-color: var(--a-ink) var(--a-hi) var(--a-hi) var(--a-ink); box-shadow: inset 1px 1px 0 var(--a-mid); background: var(--a-desk); font-weight: 700; }
.draw__tool:focus-visible, .draw__sw:focus-visible { outline: 2px solid var(--a-ox); outline-offset: 1px; }
.draw__sep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--a-mid); }
.draw__wrap { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: start center; padding: 10px; background: #8E887B; border: 1px solid; border-color: var(--a-lo) var(--a-hi) var(--a-hi) var(--a-lo); }
.draw__cv { display: block; width: 100%; max-width: 640px; height: auto; aspect-ratio: 4 / 3; background: #fff; box-shadow: 3px 3px 0 rgb(46 46 46 / .4); cursor: crosshair; touch-action: none; }
.draw__pal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.draw__now { width: 34px; height: 34px; margin-right: 8px; border: 1px solid; border-color: var(--a-lo) var(--a-hi) var(--a-hi) var(--a-lo); box-shadow: inset 0 0 0 3px var(--a-face); }
.draw__sw { width: 24px; height: 24px; padding: 0; border: 1px solid var(--a-ink); cursor: pointer; transition: translate .15s var(--ease-out); }
.draw__sw:hover { translate: 0 -3px; }
.draw__sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--a-face), 0 0 0 4px var(--a-ox); }

/* menus: Start and right-click */
.menu { position: absolute; z-index: 50; min-width: 214px; padding: 3px; background: var(--a-face); border: 1px solid; border-color: var(--a-hi) var(--a-ink) var(--a-ink) var(--a-hi); box-shadow: inset -1px -1px 0 var(--a-mid), 3px 3px 0 rgb(46 46 46 / .3); }
.menu[hidden] { display: none; }
.menu--start { left: 2px; bottom: calc(var(--task-h) - 2px); padding-left: 32px; min-width: 262px; }
.menu__banner { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 26px; display: grid; place-items: end center; padding-bottom: 10px; font: 700 15px var(--font-mono); letter-spacing: .24em; writing-mode: vertical-rl; rotate: 180deg; color: var(--a-desk); background: linear-gradient(0deg, var(--a-ox), var(--a-ink) 55%); }
.menu__i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 14px 5px 8px; font: 400 13px/1.3 var(--font-mono); letter-spacing: .02em; text-align: left; color: var(--a-ink); background: none; border: 0; cursor: pointer; }
.menu__i:hover, .menu__i:focus-visible { color: var(--a-desk); background: var(--a-ink); outline: none; }
.menu__i:not(:has(.menu__ic)) { padding-left: 38px; }
.menu__ic { width: 22px; height: 22px; flex: none; overflow: visible; }
.menu__sep { margin: 3px 2px; border: 0; border-top: 1px solid var(--a-mid); border-bottom: 1px solid var(--a-hi); }

/* dialogs (Shut Down, Properties) */
.win--dlg { background: var(--a-face); }
.win__body.dlg { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; background: var(--a-face); font-size: .98rem; }
.dlg__row { display: flex; align-items: center; gap: 16px; }
.dlg__row--col { flex-direction: column; align-items: stretch; gap: 10px; }
.dlg__row p { margin: 0 0 4px; }
.dlg__t { font-weight: 600; }
.dlg__m { font: 400 12px var(--font-mono); color: var(--a-ink-70); }
.dlg__ic { width: 44px; height: 44px; flex: none; }
.dlg__sel { padding: 5px 6px; font: 400 13px var(--font-mono); color: var(--a-ink); background: #fff; border: 1px solid; border-color: var(--a-lo) var(--a-hi) var(--a-hi) var(--a-lo); }
.dlg__btns { display: flex; justify-content: flex-end; gap: 8px; }
.dlg__btns .nav__b { min-width: 76px; padding: 4px 12px 3px; }

/* ── taskbar: Start, open and minimised windows, clock ── */
.task {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  height: var(--task-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 5px;
  background: var(--a-face);
  border-top: 1px solid var(--a-hi);
  box-shadow: 0 -1px 0 var(--a-mid);
}
.start { flex: none; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 14px 0 10px; font: 700 13px/1 var(--font-mono); letter-spacing: .08em; color: var(--a-ink); background: var(--a-face); border: 1px solid; border-color: var(--a-hi) var(--a-ink) var(--a-ink) var(--a-hi); box-shadow: inset -1px -1px 0 var(--a-mid); cursor: pointer; }
.start:hover { background: var(--a-hi); }
.start.is-on { border-color: var(--a-ink) var(--a-hi) var(--a-hi) var(--a-ink); box-shadow: inset 1px 1px 0 var(--a-mid); background: var(--a-desk); }
.start__mark { width: 12px; height: 19px; fill: var(--a-ox); }
.task__list { display: flex; gap: 4px; min-width: 0; flex: 1; padding-left: 6px; border-left: 1px solid var(--a-mid); }
.task__b {
  min-width: 0;
  max-width: 190px;
  flex: 0 1 190px;
  height: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 400 12.5px/1 var(--font-mono);
  color: var(--a-ink);
  background: var(--a-face);
  border: 1px solid;
  border-color: var(--a-hi) var(--a-ink) var(--a-ink) var(--a-hi);
  box-shadow: inset -1px -1px 0 var(--a-mid);
  cursor: pointer;
}
.task__b svg { width: 18px; height: 18px; flex: none; overflow: visible; }
.task__b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task__b.is-active { border-color: var(--a-ink) var(--a-hi) var(--a-hi) var(--a-ink); box-shadow: inset 1px 1px 0 var(--a-mid); background: var(--a-desk); font-weight: 700; }
.task__b.is-min { color: var(--a-ink-70); }
.task__b:focus-visible, .start:focus-visible { outline: 2px solid var(--a-ox); outline-offset: 1px; }
.task__clock { flex: none; margin-left: auto; padding: 5px 12px 4px; font: 400 12.5px/1 var(--font-mono); letter-spacing: .06em; color: var(--a-ink); border: 1px solid; border-color: var(--a-lo) var(--a-hi) var(--a-hi) var(--a-lo); }

/* ── the short opening: C:\MARYAM> open archive ── */
.boot {
  position: absolute;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--a-ink);
  color: var(--a-desk);
  cursor: pointer;
  transition: opacity .3s ease;
}
.boot.is-out { opacity: 0; pointer-events: none; }
.boot__line { margin: 0; font: 400 clamp(1rem, 2.4vw, 1.5rem)/1.4 var(--font-mono); letter-spacing: .04em; overflow-wrap: anywhere; }
.boot__p { color: rgb(222 216 204 / .6); }
.boot__cur { display: inline-block; width: .55em; height: 1em; margin-left: .15em; vertical-align: -.14em; background: var(--a-desk); animation: blink 1s steps(1) infinite; }
.boot__skip { position: absolute; right: 14px; bottom: 12px; padding: 4px 10px; font: 400 12px/1 var(--font-mono); letter-spacing: .1em; color: var(--a-desk); background: transparent; border: 1px solid rgb(222 216 204 / .45); cursor: pointer; }
.boot__skip:hover, .boot__skip:focus-visible { border-color: var(--a-desk); outline: 2px solid var(--a-ox); outline-offset: 2px; }

.arch__cta { margin: clamp(26px, 4vh, 40px) 0 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--oat); }
.arch__cta a { margin-left: .4em; color: var(--brass-soft); border-bottom: 1px solid rgb(212 174 124 / .55); transition: color .3s, border-color .3s; }
.arch__cta a:hover, .arch__cta a:focus-visible { color: var(--oat); border-color: var(--oat); }

@media (prefers-reduced-motion: reduce) {
  .boot, .toast, .fig__a, .fig__a img, .ico__i, .rv__tab, .draw__sw, .view__img, .note { transition: none; }
  .boot__cur, .txt--type p:last-child::after { animation: none; }
  .win.is-open .txt--type p { animation: none; }
  .ico:hover *, .ico:focus-visible *, .ico--bin.is-over *, .ico--bin.is-wink * { animation: none !important; }
  .k-pen, .k-pencil, .k-brush, .k-nib, .k-lid, .k-pp, .k-card, .k-drop, .k-an, .k-gl, .k-scr { transition: none; }
  .desk::before { transition: none; }
  .me__b, .win--early .fig__a img, .k-rw { transition: none; }
  .me.is-hop .me__b, .me__say { animation: none; }
}

/* ── phone: icons as a grid, every window full-screen, no dragging ── */
@media (max-width: 760px) {
  .desk { height: auto; overflow: visible; padding: 14px 8px calc(var(--task-h) + 18px); }
  .icons { position: static; display: grid; grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-columns: auto; gap: 4px; }
  .ico { padding: 10px 4px; }
  .ico__i { width: 52px; height: 52px; }
  .wins { position: static; }
  .win { position: fixed !important; z-index: 200 !important; inset: 0 !important; width: auto !important; height: auto !important; max-width: none; border-width: 0; box-shadow: none; padding: 0; outline: none !important; }
  .win__bar { height: 44px; cursor: default; padding: 0 6px 0 10px; }
  .win__title { font-size: 15px; }
  .win__btn { width: 36px; height: 32px; }
  .win__btn svg { width: 14px; height: 14px; }
  .win__btn--min, .win__btn--max, .win__rs { display: none; }
  .win__body { margin-top: 0; border-width: 0 0 1px; padding: 14px 14px 22px; }
  .win__body.has-side { display: block; padding: 0; overflow: auto; }
  .side { display: none; }
  .gal-main { padding: 14px 14px 22px; overflow: visible; }
  .gal { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px 10px; }
  .gal.is-list .fig { flex-direction: column; align-items: stretch; }
  .gal.is-list .fig__a { width: 100%; }
  .seq .fig { min-width: 112px; }
  .seq .fig__a img { height: 130px; }
  .rv__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }   /* 17 projects: one row you swipe along */
  .rv__tab { flex: none; padding: 7px 11px 6px; }
  .rv__row { grid-template-columns: 1fr; gap: 14px; }
  .rv__steps { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .task__list, .note { display: none; }
  .me { position: relative; right: auto; bottom: auto; height: auto; width: min(62vw, 250px); margin: 14px auto 0; }
  .me__b { touch-action: manipulation; transform: none; translate: none; }
  .me__say { right: auto; left: 50%; top: auto; bottom: 90%; translate: -50% 0; width: min(78vw, 290px); transform-origin: 50% 100%; }
  .me__say::before, .me__say.is-right::before { top: auto; bottom: -9px; right: auto; left: calc(50% - 8px); border-width: 0 1px 1px 0; }
  .menu--start { bottom: calc(var(--task-h) - 2px); }
  .boot { min-height: 320px; }
  .nav__b { min-height: 28px; padding: 0 12px; }
  .draw__sw { width: 30px; height: 30px; }
  .win--dlg { inset: auto 6vw auto 6vw !important; top: 38% !important; width: auto !important; border-width: 1px; padding: 2px; box-shadow: 3px 3px 0 rgb(46 46 46 / .35); }
  .win--dlg .win__body { padding: 16px; }
  .win--dlg .win__bar { height: 32px; }
}

/* ── without JavaScript the archive is a plain page: the icons are links, the files follow one after the other ── */
@media (scripting: none) {
  .js-only, .arch__hint { display: none !important; }
  .desk { height: auto; overflow: visible; padding: 18px 14px 26px; }
  .icons { position: static; grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-columns: auto; }
  .wins { position: static; pointer-events: auto; }
  .win { position: static; display: flex; max-width: 56rem; margin: 22px 0 0; }
  .win__title { margin: 4px 6px 8px; flex: none; font-size: 15px; }
  .win__body { overflow: visible; }
  .me { position: static; width: 240px; height: auto; margin: 18px auto 0; }
  .fig__a { cursor: pointer; }
  .gal--photos .fig__a { transform: none; }
}
