/* =========================================================
   DylanOS Classic
   ========================================================= */
/* Pixel UI font (Chicago-style): Tiny5, OFL licensed. */
@font-face { font-family: "Tiny5"; src: url("../fonts/tiny5-latin-400-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "VT323"; src: url("../fonts/vt323-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
	--px: "Tiny5", "Chicago", monospace;
	--body: "Geneva", "Verdana", "Tahoma", sans-serif;
	--mono: "VT323", "Monaco", monospace;
	--ink: #000;
	--paper: #fff;
	--grey: #8c8c8c;
	--bar-h: 28px;
	--shadow: 3px 3px 0 #000;
	/* 2x2 checker = classic 50% grey */
	--dither: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h2v2H0zM2 2h2v2H2z'/%3E%3C/svg%3E");
	--dither-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM2 2h1v1H2z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html, body.dos-body { margin: 0; height: 100%; overflow: hidden; background: #000; }

.dos {
	position: fixed; inset: 0; overflow: hidden;
	background: #000; color: var(--ink);
	font-family: var(--body); font-size: 14px; line-height: 1.5;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	user-select: none; -webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
	cursor: default;
}
.dos button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: default; }
.dos a { color: inherit; }
.dos [hidden] { display: none !important; }
.dos svg.px { display: block; image-rendering: pixelated; }
.screen { position: absolute; inset: 0; overflow: hidden; }

/* ---------- Desktop patterns ---------- */
.pattern { position: absolute; inset: 0; background-color: #fff; background-image: var(--dither); background-size: 4px 4px; image-rendering: pixelated; }
.dos[data-pattern="platinum"] .pattern { background-color: #b9b9d4; background-image: var(--dither-light); opacity: 1; }
.dos[data-pattern="platinum"] .pattern::after { content: ""; position: absolute; inset: 0; background: rgba(110, 110, 170, .25); }
.dos[data-pattern="lamb"] .pattern { background-color: #e8f3ec; background-image: var(--lamb-tile); background-size: 48px 48px; }
.dos[data-pattern="midnight"] .pattern {
	background-color: #000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M6 10h2v2H6zM40 4h2v2h-2zM22 30h2v2h-2zM54 26h2v2h-2zM12 50h2v2h-2zM44 46h2v2h-2zM30 58h2v2h-2z'/%3E%3C/svg%3E");
	background-size: 64px 64px;
}
.dos[data-pattern="midnight"] .icon span { background: #000; color: #fff; }

/* ---------- Stages ---------- */
.stage { position: absolute; inset: 0; display: none; z-index: 50; }
.dos[data-stage="power"] .stage-power,
.dos[data-stage="off"] .stage-power,
.dos[data-stage="boot"] .stage-boot,
.dos[data-stage="login"] .stage-login { display: flex; }

.dos:not([data-stage="desktop"]) .menubar,
.dos:not([data-stage="desktop"]) .desktop,
.dos:not([data-stage="desktop"]) .windows,
.dos:not([data-stage="desktop"]) .mobilebar { display: none; }

/* Power */
.stage-power { background: #000; color: #e8e8e8; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-family: var(--mono); cursor: pointer; }
.power-key { width: 84px; height: 84px; display: grid; place-items: center; color: #e8e8e8 !important; border: 3px solid #e8e8e8 !important; border-radius: 14px !important; cursor: pointer !important; animation: glowPulse 2s steps(2) infinite; }
.power-key svg { width: 44px; height: 44px; }
.power-key:hover { background: #e8e8e8 !important; color: #000 !important; }
.power-hint { margin: 0; font-size: 26px; letter-spacing: .04em; }
.power-sub { margin: -8px 0 0; font-size: 18px; color: #777; }
.power-skip { position: absolute; bottom: 24px; right: 26px; font-family: var(--mono) !important; font-size: 20px !important; color: #777 !important; cursor: pointer !important; }
.power-skip:hover { color: #fff !important; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes glowPulse { 50% { box-shadow: 0 0 22px rgba(255, 255, 255, .35); } }

/* Boot */
.stage-boot { background: transparent; align-items: center; justify-content: center; }
.boot-lamb { width: 128px; height: 128px; padding: 16px; background: #fff; border: 3px solid #000; box-shadow: var(--shadow); display: none; }
.boot-lamb svg { width: 100%; height: 100%; }
.stage-boot.ph-lamb .boot-lamb { display: block; animation: popIn .25s steps(3); }
.boot-welcome { display: none; width: min(420px, calc(100vw - 32px)); padding: 26px 30px 24px; text-align: center; }
.stage-boot.ph-welcome .boot-welcome { display: block; animation: popIn .2s steps(2); }
.boot-title { margin: 0 0 6px; font-family: var(--px); font-size: 28px; font-weight: 700; }
.boot-status { margin: 0 0 14px; font-family: var(--px); font-size: 16px; }
.boot-parade { position: absolute; left: 12px; bottom: 10px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.boot-parade svg { width: 32px; height: 32px; animation: popIn .12s steps(2); }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }

.progress { height: 18px; border: 2px solid #000; background: #fff; padding: 2px; }
.progress span { display: block; height: 100%; width: 0; background: #000; }
.progress--sm { height: 14px; }

/* Dialog */
.dialog {
	background: #fff; border: 2px solid #000;
	box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #000, var(--shadow);
}

/* Login */
.stage-login { align-items: center; justify-content: center; cursor: pointer; }
.login { display: flex; gap: 22px; padding: 28px 30px 24px; width: min(480px, calc(100vw - 24px)); animation: popIn .2s steps(2); }
.login-icon { width: 64px; height: 64px; flex: none; }
.login-icon svg { width: 100%; height: 100%; }
.login-main { flex: 1; min-width: 0; }
.login-title { margin: 0; font-family: var(--px); font-size: 22px; font-weight: 700; }
.login-text { margin: 2px 0 14px; }
.login-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--px); font-size: 16px; }
.login-row > span:first-child { width: 86px; text-align: right; }
.field { flex: 1; height: 28px; padding: 2px 8px; border: 2px solid #000; font-family: var(--body); font-size: 15px; line-height: 20px; letter-spacing: .1em; }
.login-btns { display: flex; justify-content: flex-end; gap: 14px; margin-top: 16px; }
.login-hint { margin: 12px 0 0; font-size: 12px; color: #555; text-align: right; }
.stage-login.is-go #dos-login-go { background: #000; color: #fff; }

/* ---------- Buttons ---------- */
.dos .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 32px; padding: 3px 16px;
	font-family: var(--px); font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
	background: #fff; color: #000;
	border: 2px solid #000; border-radius: 9px;
	cursor: pointer;
}
.dos .btn:hover { background-image: var(--dither-light); background-size: 4px 4px; }
.dos .btn:active, .dos .btn.is-press { background: #000; color: #fff; }
.dos .btn--default { box-shadow: 0 0 0 2px #fff, 0 0 0 5px #000; border-radius: 9px; margin: 3px; font-weight: 700; }
.dos .btn--lg { min-height: 42px; padding: 6px 22px; font-size: 18px; }
.dos .btn[disabled] { color: var(--grey); border-color: var(--grey); pointer-events: none; }
.dos .link { font-family: var(--px); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; }
.dos .link:hover { background: #000; color: #fff; text-decoration: none; }

/* ---------- Menu bar ---------- */
.menubar {
	position: absolute; top: 0; left: 0; right: 0; height: var(--bar-h); z-index: 9000;
	display: flex; justify-content: space-between; align-items: stretch;
	background: #fff; border-bottom: 2px solid #000;
	font-family: var(--px); font-size: 17px;
	animation: slideDown .25s steps(3);
}
@keyframes slideDown { from { transform: translateY(-100%); } }
.menus, .menu-right { display: flex; align-items: stretch; }
.menu { position: relative; }
.menu-btn { height: 100%; padding: 0 12px !important; display: flex; align-items: center; }
.menu-lamb { padding: 0 14px !important; }
.menu-lamb svg { width: 22px; height: 22px; }
.menu.is-open > .menu-btn { background: #000 !important; color: #fff !important; }
.menu.is-open > .menu-lamb svg { filter: invert(1); }
.dropdown {
	display: none; position: absolute; top: 100%; left: 0; z-index: 2;
	min-width: 240px; margin: 0; padding: 4px 0; list-style: none;
	background: #fff; border: 2px solid #000; box-shadow: var(--shadow);
	font-size: 17px;
}
.menu.is-open .dropdown { display: block; }
.dropdown li { display: flex; justify-content: space-between; gap: 24px; padding: 3px 18px; white-space: nowrap; }
.dropdown li:not(.sep):not(.off):hover { background: #000; color: #fff; }
.dropdown li.off { color: var(--grey); }
.dropdown li.sep { height: 2px; padding: 0; margin: 4px 0; background-image: var(--dither); background-size: 4px 4px; }
.dropdown kbd { font-family: inherit; }
.tick { visibility: hidden; }
.dos.crt-on-state .tick[data-tick="crt"], .dos.sound-on .tick[data-tick="sound"] { visibility: visible; }
.menu-right { gap: 10px; padding-right: 10px; align-items: center; }
.hire-btn { height: 22px; padding: 0 12px !important; background: #000 !important; color: #fff !important; border-radius: 6px !important; font-weight: 700; cursor: pointer !important; animation: nudge 6s steps(1) infinite 4s; }
.hire-btn:hover { background: #fff !important; color: #000 !important; box-shadow: inset 0 0 0 2px #000; }
@keyframes nudge { 0%, 92% { transform: none; } 94% { transform: translateY(-2px); } 96% { transform: none; } 98% { transform: translateY(-1px); } }
.clock { font-variant-numeric: tabular-nums; }

/* ---------- Desktop icons ---------- */
.desktop { position: absolute; inset: var(--bar-h) 0 0 0; z-index: 1; }
.icon { position: absolute; width: 100px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px !important; touch-action: none; cursor: pointer !important; }
.icon svg { width: 44px; height: 44px; }
.icon span { font-family: var(--px); font-size: 15px; line-height: 1.15; text-align: center; background: #fff; color: #000; padding: 1px 4px; max-width: 100%; }
.icon.is-sel svg { filter: invert(1); }
.icon.is-sel span { background: #000; color: #fff; }
.icon.is-drag { opacity: .6; z-index: 5; }
.icon.is-over svg { filter: invert(1); }
.desktop .icon { animation: popIn .2s steps(2) backwards; }

/* ---------- Windows ---------- */
.windows { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.win {
	position: absolute; display: flex; flex-direction: column;
	min-width: 280px; min-height: 160px;
	background: #fff; border: 2px solid #000; box-shadow: var(--shadow);
	pointer-events: auto;
}
.win.is-max { left: 0 !important; top: var(--bar-h) !important; width: 100% !important; height: calc(100% - var(--bar-h)) !important; }
.win.is-shade { height: auto !important; min-height: 0; }
.win.is-shade .win-body, .win.is-shade .win-info, .win.is-shade .win-grow { display: none; }
.win-bar {
	position: relative; flex: none; height: 26px;
	display: flex; align-items: center; justify-content: center;
	border-bottom: 2px solid #000;
	background: #fff;
	touch-action: none;
}
.win.is-front .win-bar::before {
	content: ""; position: absolute; inset: 4px 3px;
	background: repeating-linear-gradient(#000 0 2px, #fff 2px 4px);
}
.win-title { position: relative; z-index: 1; padding: 0 10px; background: #fff; font-family: var(--px); font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 110px); }
.win:not(.is-front) .win-title { color: var(--grey); font-weight: 400; }
.win-box { position: absolute; top: 4px; z-index: 1; width: 18px; height: 18px; background: #fff !important; border: 2px solid #000 !important; box-shadow: 0 0 0 3px #fff; cursor: pointer !important; }
.win:not(.is-front) .win-box { visibility: hidden; }
.win-close { left: 10px; }
.win-zoom { right: 36px; }
.win-zoom::after { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-right: 2px solid #000; border-bottom: 2px solid #000; }
.win-shade { right: 10px; }
.win-shade::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 2px solid #000; }
.win-close:active { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h1v2H3zM3 5h1v2H3zM0 3h2v1H0zM5 3h2v1H5zM1 1h1v1H1zM5 1h1v1H5zM1 5h1v1H1zM5 5h1v1H5z'/%3E%3C/svg%3E") center / 12px no-repeat !important; }
.win-info { flex: none; display: flex; justify-content: space-between; gap: 12px; padding: 3px 12px; font-family: var(--px); font-size: 14px; border-bottom: 2px solid #000; box-shadow: 0 2px 0 #fff, 0 4px 0 #000; margin-bottom: 4px; }
.win-body { flex: 1; min-height: 0; overflow: auto; user-select: text; -webkit-user-select: text; }
.win-grow { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; border-left: 2px solid #000; border-top: 2px solid #000; background: #fff; cursor: nwse-resize; touch-action: none; }
.win-grow::before, .win-grow::after { content: ""; position: absolute; border: 2px solid #000; background: #fff; }
.win-grow::before { left: 2px; top: 2px; width: 8px; height: 8px; }
.win-grow::after { left: 5px; top: 5px; width: 9px; height: 9px; }

/* Scrollbars, classic */
.win-body::-webkit-scrollbar { width: 18px; height: 18px; }
.win-body::-webkit-scrollbar-track { background: #fff var(--dither-light); background-size: 4px 4px; border-left: 2px solid #000; }
.win-body::-webkit-scrollbar-thumb { background: #fff; border: 2px solid #000; }
.win-body { scrollbar-color: #000 #ddd; }

/* Zoom rects (window open/close) */
.zoom-layer { position: absolute; inset: 0; z-index: 9500; pointer-events: none; }
.zoom-rect { position: absolute; border: 2px dotted #fff; mix-blend-mode: difference; }

/* ---------- Dither images ---------- */
.dither { filter: grayscale(1) contrast(1.35) brightness(1.05); transition: filter .2s steps(2); }
.file-img, .work-img, .about-photo { position: relative; overflow: hidden; }
.file-img::after, .work-img::after, .about-photo::after { content: ""; position: absolute; inset: 0; background-image: var(--dither-light); background-size: 4px 4px; opacity: .22; pointer-events: none; transition: opacity .2s steps(2); }
.file:hover .dither, .work-tile:hover .dither { filter: none; }
.file:hover .file-img::after, .work-tile:hover .work-img::after { opacity: 0; }

/* ---------- Read Me ---------- */
.readme { padding: 26px 30px 30px; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 3px 10px; border: 2px solid #000; border-radius: 20px; font-family: var(--px); font-size: 14px; }
.badge i { width: 10px; height: 10px; background: #000; animation: blink 1.2s steps(1) infinite; }
.readme-h { margin: 0 0 12px; font-family: var(--px); font-size: clamp(30px, 4.4vw, 44px); line-height: 1.02; letter-spacing: -.01em; font-weight: 700; }
.readme-sub { margin: 0 0 20px; font-size: 16px; max-width: 520px; }
.readme-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 26px; }
.proof-item { border: 2px solid #000; padding: 8px 10px; box-shadow: 2px 2px 0 #000; }
.proof-item b { display: block; font-family: var(--px); font-size: 24px; line-height: 1.1; }
.proof-item span { display: block; font-size: 12px; line-height: 1.3; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #000; margin: 0 0 12px; padding-bottom: 4px; }
.section-head h2 { margin: 0; font-family: var(--px); font-size: 18px; }
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.work-tile { display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer !important; }
.work-img { aspect-ratio: 16 / 10; border: 2px solid #000; display: grid; place-items: center; background: #fff; }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.work-img svg { width: 48px; height: 48px; }
.work-tile b { font-family: var(--px); font-size: 15px; line-height: 1.2; }
.work-tile small { font-size: 12px; color: #444; }
.work-tile:hover b { background: #000; color: #fff; }
.quotes { display: grid; gap: 10px; margin-bottom: 26px; }
.quotes blockquote { margin: 0; padding: 12px 14px; border: 2px solid #000; border-radius: 12px; }
.quotes p { margin: 0 0 6px; font-size: 15px; }
.quotes cite { font-family: var(--px); font-style: normal; font-size: 14px; }
.readme-foot p { margin: 0; }

/* ---------- Finder ---------- */
.finder { display: flex; flex-direction: column; min-height: 100%; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; }
.tab { padding: 2px 12px !important; border: 2px solid #000 !important; border-radius: 6px 6px 0 0 !important; font-family: var(--px) !important; font-size: 15px !important; cursor: pointer !important; }
.tab.is-on { background: #000 !important; color: #fff !important; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; padding: 16px; align-content: start; }
.grid--icons { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.grid--icons .icon { position: static; width: auto; }
.file { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; cursor: pointer !important; }
.file-img { width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; border: 2px solid #000; background: #fff; }
.file-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.file-img svg { width: 48px; height: 48px; }
.file--add .file-img { border-style: dashed; }
.file--add .file-img::after { display: none; }
.file-name { font-family: var(--px); font-size: 15px; text-align: center; padding: 0 4px; line-height: 1.2; }
.file.is-sel .file-name { background: #000; color: #fff; }
.file.is-sel .file-img { outline: 2px solid #000; outline-offset: 2px; }
.file.is-hidden { display: none; }
.empty { grid-column: 1 / -1; text-align: center; margin: 40px 0; font-family: var(--px); }

/* ---------- Project ---------- */
.project { display: flex; flex-direction: column; min-height: 100%; }
.browser { margin: 16px 16px 0; border: 2px solid #000; box-shadow: 2px 2px 0 #000; }
.browser-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-bottom: 2px solid #000; font-family: var(--px); font-size: 14px; }
.browser-bar i { width: 10px; height: 10px; border: 2px solid #000; border-radius: 50%; }
.browser-bar span { flex: 1; margin-left: 8px; padding: 0 8px; border: 2px solid #000; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 18px; line-height: 14px; }
.browser-view { max-height: 360px; overflow: hidden; background: #fff; }
.browser-view img { width: 100%; display: block; }
.project-body { padding: 18px 22px 10px; }
.kicker { margin: 0 0 4px; font-family: var(--px); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.project h2, .prose h1 { margin: 0 0 6px; font-family: var(--px); font-size: 30px; line-height: 1.1; }
.lede { margin: 0 0 10px; font-size: 16px; }
.result { display: inline-block; margin: 0 0 10px; padding: 2px 10px; background: #000; color: #fff; font-family: var(--px); font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 10px; }
.facts div { display: flex; gap: 8px; }
.facts dt { font-family: var(--px); font-weight: 700; }
.facts dd { margin: 0; }
.prose { font-size: 15px; }
.prose img { max-width: 100%; height: auto; border: 2px solid #000; }
.prose a { text-decoration: underline; }
.project-btns { display: flex; gap: 10px; margin: 8px 0 6px; }
.project-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 2px solid #000; background: #fff var(--dither-light); background-size: 4px 4px; }
.project-cta p { margin: 0; background: #fff; padding: 2px 6px; }

/* ---------- Services ---------- */
.services { padding: 8px 22px 20px; }
.service { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 2px dotted #000; }
.service h3 { margin: 0 0 2px; font-family: var(--px); font-size: 20px; }
.service p { margin: 0; font-size: 14px; }
.service-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.price { font-family: var(--px); font-size: 17px; font-weight: 700; }
.services-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.services-foot p { margin: 0; }

/* ---------- Hire wizard ---------- */
.hire { padding: 16px 22px 20px; }
.hire-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-family: var(--px); font-size: 14px; }
.hire-top .progress { flex: 1; }
.hire-pane { border: 0; padding: 0; margin: 0; min-width: 0; }
.hire-pane legend { padding: 0; margin: 12px 0 8px; font-family: var(--px); font-size: 19px; font-weight: 700; }
.hire-pane legend:first-child { margin-top: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks--row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.check { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 2px solid #000; border-radius: 8px; font-family: var(--px); font-size: 15px; line-height: 1.15; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { flex: none; width: 16px; height: 16px; border: 2px solid currentColor; background: #fff; position: relative; }
.check--radio i { border-radius: 50%; }
.check:hover { background-image: var(--dither-light); background-size: 4px 4px; }
.check:has(input:checked) { background: #000; color: #fff; }
.check input:checked + i { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1zM2 2h2v2H2zM4 1h1v1H4zM5 0h1v1H5zM1 4h1v1H1zM0 5h1v1H0zM4 4h1v1H4zM5 5h1v1H5z'/%3E%3C/svg%3E") center / 10px no-repeat; }
.check--radio input:checked + i { background: #fff radial-gradient(#000 40%, transparent 45%); }
.check input:focus-visible + i { outline: 2px dotted currentColor; outline-offset: 2px; }
.row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.row > span { width: 110px; flex: none; text-align: right; font-family: var(--px); font-size: 15px; }
.row--area { align-items: flex-start; }
.row--area > span { padding-top: 6px; }
.row input, .row textarea { flex: 1; min-width: 0; padding: 6px 8px; border: 2px solid #000; border-radius: 0; background: #fff; font-family: var(--body); font-size: 15px; color: #000; outline: none; resize: vertical; }
.row input:focus, .row textarea:focus { box-shadow: 2px 2px 0 #000; }
.row input.is-bad { background: #fff var(--dither-light); background-size: 4px 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.hire-btns { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.hire-btns--c { justify-content: center; }
.hire-note { font-size: 13px; color: #333; }
.hire-note--c { text-align: center; margin: 10px 0 0; }
.hire-status { margin: 6px 0 0; min-height: 20px; font-family: var(--px); font-size: 15px; }
.hire-done { text-align: center; padding: 20px 0; }
.done-lamb { width: 96px; height: 96px; margin: 0 auto 10px; animation: hop .5s steps(4) 3; }
.done-lamb svg { width: 100%; height: 100%; }
@keyframes hop { 50% { transform: translateY(-16px); } }
.hire-done h3 { margin: 0 0 6px; font-family: var(--px); font-size: 26px; }

/* ---------- About ---------- */
.about { padding: 20px 24px 22px; }
.about-head { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.about-photo { width: 96px; height: 96px; flex: none; border: 2px solid #000; display: grid; place-items: center; background: #fff; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo svg { width: 64px; height: 64px; }
.about-os { margin: 0; font-family: var(--px); font-size: 14px; }
.about-os small { color: var(--grey); }
.about-head h2 { margin: 0; font-family: var(--px); font-size: 28px; line-height: 1.1; }
.about-role { margin: 2px 0 0; }
.about-bio p { margin: 0 0 10px; }
.mem { border: 2px solid #000; margin: 14px 0 16px; }
.mem-head { display: flex; justify-content: space-between; padding: 3px 10px; border-bottom: 2px solid #000; font-family: var(--px); font-size: 14px; font-weight: 700; }
.mem-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: center; padding: 4px 10px; font-family: var(--px); font-size: 15px; }
.mem-bar { height: 14px; border: 2px solid #000; position: relative; background: #fff; }
.mem-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #000; }
.win.is-front .mem-bar i, .win:not([hidden]) .mem-bar i { width: var(--v); transition: width .9s steps(10); }
.about-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Player ---------- */
.win--player .win-body { background: #000; }
.player { position: relative; height: 100%; background: #000; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff; text-align: center; font-family: var(--px); font-size: 18px; }
.player-empty svg { width: 64px; height: 64px; filter: invert(1); }
.player-empty p { margin: 0; }

/* ---------- Terminal ---------- */
.win--term .win-body { background: #050805; }
.term { min-height: 100%; padding: 10px 14px 14px; font-family: var(--mono); font-size: 21px; line-height: 1.15; color: #39ff6a; text-shadow: 0 0 6px rgba(57, 255, 106, .55); cursor: text; }
.term-out { white-space: pre-wrap; word-break: break-word; }
.term-out .d { opacity: .6; }
.term-out .w { color: #fff; text-shadow: 0 0 6px rgba(255, 255, 255, .5); }
.term-out .e { color: #ff6b5e; text-shadow: 0 0 6px rgba(255, 107, 94, .5); }
.term-out a { color: #fff; }
.term-line { display: flex; gap: 8px; }
.term-line input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; text-shadow: inherit; caret-color: #39ff6a; }

/* ---------- Alerts ---------- */
.alerts { position: absolute; inset: 0; z-index: 9200; display: none; align-items: center; justify-content: center; padding: 16px; }
.alerts.is-on { display: flex; }
.alert { display: flex; gap: 18px; padding: 24px 24px 18px; width: min(440px, 100%); animation: popIn .15s steps(2); }
.alert-icon { width: 48px; height: 48px; flex: none; }
.alert-icon svg { width: 100%; height: 100%; }
.alert-main { flex: 1; }
.alert-main p { margin: 0 0 4px; font-size: 15px; }
.alert-main p b { font-family: var(--px); font-size: 18px; display: block; margin-bottom: 2px; }
.alert-btns { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.shake { animation: shake .3s steps(6); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Mobile CTA bar ---------- */
.mobilebar { display: none; }

/* ---------- CRT ---------- */
.crt { position: absolute; inset: 0; z-index: 9990; pointer-events: none; display: none;
	background:
		radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, .28) 100%),
		repeating-linear-gradient(to bottom, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px);
	animation: flicker 6s steps(1) infinite;
}
.dos.crt-on-state .crt { display: block; }
.dos.crt-on-state .screen { filter: contrast(1.05) brightness(1.02); }
@keyframes flicker { 0%, 97% { opacity: 1; } 98% { opacity: .85; } 99% { opacity: 1; } }
.crt-on { position: absolute; inset: 0; z-index: 9995; background: #fff; pointer-events: none; opacity: 0; }
.dos.is-crt-on .crt-on { animation: crtOn .6s ease-out forwards; }
.dos.is-crt-off .crt-on { animation: crtOff .55s ease-in forwards; }
@keyframes crtOn {
	0% { opacity: 1; transform: scale(0, .004); }
	30% { opacity: 1; transform: scale(1, .004); }
	60% { opacity: 1; transform: scale(1, 1); }
	100% { opacity: 0; transform: scale(1, 1); }
}
@keyframes crtOff {
	0% { opacity: 0; transform: scale(1, 1); background: #fff; }
	15% { opacity: 1; }
	55% { opacity: 1; transform: scale(1, .004); }
	90% { opacity: 1; transform: scale(.002, .004); }
	100% { opacity: 0; transform: scale(0, 0); }
}
.dos.is-blackout .screen { visibility: hidden; }
.corners { position: absolute; inset: 0; z-index: 9999; pointer-events: none; border-radius: 12px; box-shadow: 0 0 0 30px #000; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
	:root { --bar-h: 30px; }
	.hide-sm { display: none !important; }
	.menubar { font-size: 16px; }
	.menu-btn { padding: 0 8px !important; }
	.menu-right { padding-right: 6px; }
	.hire-btn { height: 24px; }
	.desktop { display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; gap: 10px 0; padding: 14px 6px; }
	.desktop .icon { position: static; width: auto; }
	.icon svg { width: 36px; height: 36px; }
	.icon span { font-size: 13px; }
	.win {
		left: 0 !important; top: var(--bar-h) !important;
		width: 100% !important; height: calc(100% - var(--bar-h) - 64px) !important;
		box-shadow: none; border-left: 0; border-right: 0; min-width: 0;
	}
	.win-zoom, .win-shade, .win-grow { display: none; }
	.readme { padding: 18px 16px 24px; }
	.work { grid-template-columns: 1fr 1fr; }
	.grid { grid-template-columns: 1fr 1fr; padding: 12px; }
	.checks { grid-template-columns: 1fr; }
	.checks--row { grid-template-columns: 1fr 1fr; }
	.dos:has(#win-hire:not([hidden])) .mobilebar { display: none; }
	.dos:has(#win-hire:not([hidden])) #win-hire { height: calc(100% - var(--bar-h)) !important; }
	.row { flex-direction: column; align-items: stretch; gap: 2px; }
	.row > span { width: auto; text-align: left; }
	.service { flex-direction: column; align-items: flex-start; }
	.service-side { flex-direction: row; align-items: center; }
	.services-foot, .project-cta { flex-direction: column; align-items: stretch; text-align: center; }
	.mem-row { grid-template-columns: 1fr 1fr; }
	.mobilebar {
		position: absolute; left: 0; right: 0; bottom: 0; z-index: 9100;
		display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: #fff; border-top: 2px solid #000;
	}
	.dos:not([data-stage="desktop"]) .mobilebar { display: none; }
	.mobilebar .btn { flex: 1; min-height: 40px; }
	.mobilebar .btn--default { flex: 2; }
	.login { flex-direction: column; align-items: center; text-align: center; }
	.login-row > span:first-child { width: 76px; }
	.login-btns, .login-hint { justify-content: center; text-align: center; }
	.corners { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.dos *, .dos *::before, .dos *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

.fallback { max-width: 640px; margin: 60px auto; padding: 0 20px; color: #eee; font-family: Verdana, sans-serif; line-height: 1.6; }
.fallback a { color: #fff; }
