/* samdyatt.com — plain CSS, no build step */
:root {
  --paper: #fafaf8;
  --paper-2: #f1efea;
  --card: #ffffff;
  --ink: #121212;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e2e0da;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --night: #0f1012;
  --on-night: #f1efe9;
  --on-night-2: #c9c4b8;
  --term-bg: #0d0f12;
  --term-fg: #b9f6ca;
  --term-prompt: #ff9e64;
  --radius: 16px;
  --max: 1200px;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131416; --paper-2: #1a1b1e; --card: #1e1f23; --ink: #f1efe9; --ink-2: #d6d2c8; --muted: #9c9a94; --line: #2c2d31;
    --accent: #ff7a45; --accent-ink: #121212; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131416; --paper-2: #1a1b1e; --card: #1e1f23; --ink: #f1efe9; --ink-2: #d6d2c8; --muted: #9c9a94; --line: #2c2d31;
  --accent: #ff7a45; --accent-ink: #121212; color-scheme: dark;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden }
img { max-width: 100%; height: auto; display: block }
a { color: inherit }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.02; font-weight: 500 }
p { margin: 0 0 1em }
code, kbd { font-family: var(--mono); font-size: .9em }
kbd { padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px; opacity: .85 }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto }
.skip { position: absolute; left: -9999px }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 8px }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px }
.kicker { display: block; font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px }
section { padding: 96px 0 }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 40px; align-items: end; margin-bottom: 40px }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem) }
.section-head p { color: var(--muted); margin: 0 }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 .95rem/1 var(--sans); text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; transition: transform .18s }
.btn:hover { transform: translateY(-2px) }
.btn.ghost { background: transparent; color: var(--ink) }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.12rem/1 var(--sans); letter-spacing: -.02em; text-decoration: none; color: inherit }
.logo svg { width: 26px; height: 32px; flex: none; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1) }
.site-header:not(.stuck) .logo svg { filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 0 6px rgba(255,255,255,.12)) }
.logo:hover svg { transform: translateY(-3px) rotate(-6deg) }

/* ---------- header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 40; color: var(--on-night) }
.site-header.stuck { position: fixed; background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); animation: drop .3s ease }
@keyframes drop { from { transform: translateY(-100%) } }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: .93rem }
.nav-links a { text-decoration: none; opacity: .8 } .nav-links a:hover { opacity: 1; color: var(--accent) }
.nav-tools { display: flex; align-items: center; gap: 8px }
.tbtn { height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font: 600 .82rem/1 var(--mono); cursor: pointer; opacity: .85 }
.tbtn:hover { opacity: 1; color: var(--accent) }
.menu-btn { display: none }

/* ---------- desk hero ----------
   Everything on the desk is sized in real millimeters. --mm is how many
   pixels one millimeter gets; the desk itself is 840 × 540 mm. */
.desk-hero { --mm: min(calc(100vw / 840), calc((100svh - 40px) / 540)); position: relative; color: var(--on-night); overflow: hidden; background: #5a3a24;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0025 .06' numOctaves='5' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .1 0 0 0 0 .05 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='1200' height='600' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #6a4429, #5d3b23);
  background-size: 1200px 600px, 300px 300px, auto }
.desk-scroll { position: relative }
.scene { position: relative; width: calc(840 * var(--mm)); height: calc(540 * var(--mm)); margin: 0 auto }
.dim { position: absolute; inset: -1500px; z-index: 10; pointer-events: none; background: radial-gradient(circle var(--r, calc(140 * var(--mm))) at calc(var(--x, 590px) + 1500px) calc(var(--y, 260px) + 1500px), rgba(12, 9, 6, 0) 0, rgba(12, 9, 6, .12) 45%, rgba(12, 9, 6, .93) 100%); transition: opacity .7s ease }
.lit .dim { opacity: 0 }
.desk-hero:not(.lit) .scene::after { content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none; background: radial-gradient(circle var(--r, calc(140 * var(--mm))) at var(--x, 590px) var(--y, 260px), rgba(255, 200, 120, .12), transparent 70%) }
.lampglow { position: absolute; z-index: 11; pointer-events: none; left: var(--x, 590px); top: var(--y, 260px); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #ffe9b0; box-shadow: 0 0 40px 14px rgba(255, 214, 130, .28); transition: opacity .4s }
.lit .lampglow { opacity: 0 }
.swap { color: var(--accent); border: 0; border-bottom: .12em solid var(--accent); cursor: pointer; display: inline-block; background: none; padding: 0; font: inherit; letter-spacing: inherit; line-height: inherit }
.when-lit { display: none } .lit .when-lit { display: inline } .lit .when-dark { display: none }
.hero-under { display: none }
.switch { position: relative; display: flex; align-items: center }
.toggle { width: 24px; height: 38px; border-radius: 6px; background: #e9e4d8; border: 0; position: relative; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 0, 0, .5) }
.toggle::after { content: ""; position: absolute; left: 5px; right: 5px; height: 15px; top: 4px; border-radius: 4px; background: #cfc8b8; box-shadow: 0 3px 0 #b3ab99; transition: top .2s }
.lit .toggle::after, .lights-on .toggle::after { top: 19px; box-shadow: 0 -3px 0 #b3ab99 }
.switch-note { position: absolute; right: 0; top: calc(100% + 10px); white-space: nowrap; background: rgba(0,0,0,.75); color: #f1efe9; padding: 6px 9px; border-radius: 6px; font: 500 .75rem var(--mono); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none }
.switch-note.show { opacity: 1; transform: none }
.desk-hero:not(.lit) .scene { touch-action: none }

/* every object: --x --y --w (and optional --h) in millimeters, --r rotation */
.o { position: absolute; left: calc(var(--x) * var(--mm)); top: calc(var(--y) * var(--mm)); width: calc(var(--w) * var(--mm)); transform: rotate(var(--r, 0deg)); cursor: pointer; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), filter .3s;
  filter: drop-shadow(calc(.4 * var(--mm)) calc(.7 * var(--mm)) calc(.5 * var(--mm)) rgba(0, 0, 0, .5)) drop-shadow(calc(3 * var(--mm)) calc(5 * var(--mm)) calc(6 * var(--mm)) rgba(20, 10, 0, .35)) }
.o:hover, .o:focus-visible { transform: rotate(var(--r, 0deg)) translate(calc(-1 * var(--mm)), calc(-2.5 * var(--mm))); filter: drop-shadow(calc(.4 * var(--mm)) calc(.7 * var(--mm)) calc(.5 * var(--mm)) rgba(0, 0, 0, .4)) drop-shadow(calc(6 * var(--mm)) calc(10 * var(--mm)) calc(10 * var(--mm)) rgba(20, 10, 0, .3)); outline: none }
.o:hover, .o:focus-visible { z-index: 14 }
.o:focus-visible { outline: 2px dashed var(--accent); outline-offset: 6px }
.o svg { width: 100%; height: auto; display: block; overflow: visible }
.tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); background: #121212; color: #fff; font: 500 12px/1 var(--mono); padding: 7px 9px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 3 }
.lit .o:hover .tip, .o:focus-visible .tip { opacity: 1; transform: translate(-50%, 0) }
.scr { display: block; width: 100%; height: 100%; overflow: hidden; position: relative; background: #000 }
.scr img { width: 100%; height: 100%; object-fit: cover; object-position: top }
.scr::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.03) 30%, rgba(255,255,255,0) 31%) }

/* MacBook Neo: 297.5 × 206.4 mm, keyboard colour-matched to the case */
.macbook { position: absolute; left: calc(271 * var(--mm)); top: calc(66 * var(--mm)); width: calc(297.5 * var(--mm));
  --case-1: #dfe1e4; --case-2: #c6c9cd; --case-edge: #a9adb2; --key: #f4f4f2; --key-edge: #d2d4d7; --legend: #6d7075; --pad: #d5d8dc }
.macbook[data-finish="blush"] { --case-1: #efd9d5; --case-2: #dcbcb7; --case-edge: #c39e98; --key: #f7e6e3; --key-edge: #e0c5c1; --legend: #8a6863; --pad: #e6cdc9 }
.macbook[data-finish="citrus"] { --case-1: #eee6b8; --case-2: #d9cf93; --case-edge: #bfb373; --key: #f6f0cc; --key-edge: #ddd3a3; --legend: #7a7146; --pad: #e4dcaa }
.macbook[data-finish="indigo"] { --case-1: #47557a; --case-2: #323d5b; --case-edge: #232b42; --key: #56658d; --key-edge: #3a4563; --legend: #d3daf0; --pad: #3d4868 }
.macbook .lid { position: relative; height: calc(194 * var(--mm)); border-radius: calc(7 * var(--mm)) calc(7 * var(--mm)) calc(1 * var(--mm)) calc(1 * var(--mm)); background: linear-gradient(180deg, #2a2b2e, #1a1b1d); padding: calc(5 * var(--mm)) calc(5 * var(--mm)) calc(4 * var(--mm)); box-shadow: inset 0 0 0 calc(.6 * var(--mm)) #3b3d41, calc(1 * var(--mm)) calc(3 * var(--mm)) calc(5 * var(--mm)) rgba(0,0,0,.45) }
.display { position: relative; z-index: 12; height: 100%; border-radius: calc(3 * var(--mm)); overflow: hidden; background: radial-gradient(ellipse at 20% 0%, #2c3e6b, transparent 60%), radial-gradient(ellipse at 90% 100%, #5a2d4f, transparent 55%), linear-gradient(160deg, #141a2e, #0b0e18); color: #f1efe9; box-shadow: 0 0 calc(40 * var(--mm)) rgba(120, 150, 255, .12) }
.desk-hero:not(.lit) .display { box-shadow: 0 0 calc(60 * var(--mm)) rgba(120, 150, 255, .22) }
.display::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 32%) }
.menubar { position: absolute; top: 0; left: 0; right: 0; height: calc(5 * var(--mm)); padding: 0 calc(4 * var(--mm)); display: flex; justify-content: space-between; align-items: center; font: 600 max(8px, calc(2.6 * var(--mm)))/1 var(--sans); background: rgba(0,0,0,.25); color: rgba(255,255,255,.8) }
.window { position: absolute; left: 7%; right: 7%; top: 13%; bottom: 9%; border-radius: calc(3 * var(--mm)); background: rgba(22, 24, 30, .82); box-shadow: 0 calc(4 * var(--mm)) calc(14 * var(--mm)) rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); padding: calc(9 * var(--mm)) calc(10 * var(--mm)) calc(8 * var(--mm)); display: flex; flex-direction: column; justify-content: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px) }
.window .lights3 { position: absolute; top: calc(3 * var(--mm)); left: calc(3.5 * var(--mm)); display: flex; gap: calc(1.4 * var(--mm)) }
.window .lights3 i { width: calc(2.2 * var(--mm)); height: calc(2.2 * var(--mm)); border-radius: 50%; background: #ff5f57 } .window .lights3 i:nth-child(2) { background: #febc2e } .window .lights3 i:nth-child(3) { background: #28c840 }
.window h1 { font-size: max(22px, calc(17 * var(--mm))); line-height: .98; letter-spacing: -.045em; margin-bottom: calc(5 * var(--mm)) }
.window p { font-size: max(12px, calc(5.6 * var(--mm))); color: #c9c4b8; margin: 0 0 calc(6 * var(--mm)); max-width: 46em }
.window .hero-actions { display: flex; flex-wrap: wrap; gap: calc(3 * var(--mm)) }
.window .btn { padding: max(8px, calc(3.4 * var(--mm))) max(12px, calc(6 * var(--mm))); font-size: max(12px, calc(4.6 * var(--mm))); background: var(--on-night); color: #121212; border-color: var(--on-night) }
.window .btn.ghost { background: transparent; color: var(--on-night) }
.window .hint { margin: calc(5 * var(--mm)) 0 0; font: 400 max(10px, calc(3.6 * var(--mm)))/1.4 var(--mono); color: #9aa0ab }
.macbook .deck { position: relative; height: calc(206.4 * var(--mm)); margin-top: calc(-1 * var(--mm)); border-radius: calc(2 * var(--mm)) calc(2 * var(--mm)) calc(10 * var(--mm)) calc(10 * var(--mm)); background: linear-gradient(180deg, #3a3c40 0 calc(3.5 * var(--mm)), var(--case-1) calc(3.5 * var(--mm)), var(--case-2)); box-shadow: inset 0 calc(-1.2 * var(--mm)) 0 var(--case-edge), inset 0 0 0 calc(.4 * var(--mm)) rgba(255,255,255,.35), calc(2 * var(--mm)) calc(5 * var(--mm)) calc(8 * var(--mm)) rgba(20,10,0,.45); cursor: pointer }
.macbook .keys { position: absolute; left: calc(16.7 * var(--mm)); width: calc(264 * var(--mm)); top: calc(10 * var(--mm)); height: calc(109 * var(--mm)) }
.macbook .keys svg { width: 100%; height: 100%; display: block }
.macbook .keys .k { fill: var(--key); stroke: var(--key-edge); stroke-width: .25 }
.macbook .keys .kl { fill: var(--legend); font: 500 2.1px/1 var(--sans); text-anchor: middle; dominant-baseline: central }
.macbook .keys .kl.sm { font-size: 1.55px }
.macbook .pad { position: absolute; left: calc(91 * var(--mm)); width: calc(115 * var(--mm)); top: calc(127 * var(--mm)); height: calc(72 * var(--mm)); border-radius: calc(4 * var(--mm)); background: linear-gradient(180deg, var(--pad), var(--case-2)); box-shadow: inset 0 0 0 calc(.3 * var(--mm)) rgba(0,0,0,.08), inset 0 calc(.4 * var(--mm)) calc(.6 * var(--mm)) rgba(255,255,255,.25) }
.macbook .cam { position: absolute; top: calc(1.8 * var(--mm)); left: 50%; width: calc(1.6 * var(--mm)); height: calc(1.6 * var(--mm)); margin-left: calc(-.8 * var(--mm)); border-radius: 50%; background: #121318; box-shadow: 0 0 0 calc(.3 * var(--mm)) #26272b; z-index: 3 }
/* terminal docked on the laptop screen */
.term.docked { position: absolute; left: 12%; right: 4%; top: 20%; bottom: 5%; width: auto; transform: none; z-index: 5; font-size: max(11px, calc(4.2 * var(--mm))); display: flex; flex-direction: column }
.term.docked .term-out { flex: 1; max-height: none }
.term.docked.zoom { left: 2%; right: 2%; top: 9%; bottom: 3% }
.term.zoom:not(.docked) .term-out { max-height: 70vh }
.term.docked, .term.docked.open { transform: none }

/* iPhone Duo, unfolded: about 166 × 118 mm */
.duo { aspect-ratio: 166 / 118; border-radius: calc(9 * var(--mm)); padding: calc(3 * var(--mm)); background: linear-gradient(135deg, #55565b, #1d1d20 30%, #2c2d31 70%, #141416); box-shadow: inset 0 0 0 calc(.5 * var(--mm)) rgba(255,255,255,.16), inset 0 calc(.6 * var(--mm)) 0 rgba(255,255,255,.22) }
.duo .scr { border-radius: calc(6.5 * var(--mm)) }
.o.duo { z-index: 12 }
.desk-hero:not(.lit) .o.duo { filter: drop-shadow(0 0 calc(18 * var(--mm)) rgba(70, 200, 190, .35)) drop-shadow(calc(.4 * var(--mm)) calc(.7 * var(--mm)) calc(.5 * var(--mm)) rgba(0,0,0,.5)) }

/* A5 notebook: 148 × 210 mm */
.notebook { aspect-ratio: 148 / 210 }
.notebook .pages { position: absolute; inset: calc(1.5 * var(--mm)) calc(-2.2 * var(--mm)) calc(-2 * var(--mm)) calc(1.5 * var(--mm)); border-radius: calc(2 * var(--mm)) calc(5 * var(--mm)) calc(5 * var(--mm)) calc(2 * var(--mm)); background: repeating-linear-gradient(90deg, #f3ecdc 0 calc(.35 * var(--mm)), #e2d9c5 calc(.35 * var(--mm)) calc(.6 * var(--mm))) }
.notebook .cover { position: absolute; inset: 0; border-radius: calc(2 * var(--mm)) calc(5 * var(--mm)) calc(5 * var(--mm)) calc(2 * var(--mm)); background-color: #20375a; background-image: linear-gradient(90deg, rgba(0,0,0,.28) 0 calc(6 * var(--mm)), rgba(255,255,255,.06) calc(6 * var(--mm)) calc(7 * var(--mm)), transparent calc(7 * var(--mm))), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='l'%3E%3CfeTurbulence baseFrequency='1.2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23l)'/%3E%3C/svg%3E"); box-shadow: inset 0 0 0 calc(.5 * var(--mm)) rgba(255,255,255,.06) }
.notebook .band { position: absolute; top: 0; bottom: 0; right: calc(16 * var(--mm)); width: calc(4 * var(--mm)); background: linear-gradient(90deg, #0f1a2a, #1b2a40 50%, #0f1a2a) }
.notebook .label { position: absolute; left: calc(24 * var(--mm)); right: calc(30 * var(--mm)); top: calc(62 * var(--mm)); background: #fbf7ec; border-radius: calc(1.5 * var(--mm)); padding: calc(3 * var(--mm)); box-shadow: 0 calc(.4 * var(--mm)) calc(1 * var(--mm)) rgba(0,0,0,.35) }
.notebook .label img { width: 100% }
.notebook .ribbon { position: absolute; bottom: calc(-16 * var(--mm)); left: calc(58 * var(--mm)); width: calc(4.5 * var(--mm)); height: calc(40 * var(--mm)); background: linear-gradient(90deg, #8f3320, #b5462b 50%, #8f3320); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0 100%) }

/* sticky note 76 mm */
.sticky { aspect-ratio: 1; background: #ffd23f linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 60%); padding: calc(7 * var(--mm)); font: 600 max(12px, calc(8.5 * var(--mm)))/1.1 var(--hand); color: #3a2e05 }
.d20.rolling svg { animation: roll .7s cubic-bezier(.3, 1.3, .5, 1) }
@keyframes roll { to { transform: rotate(540deg) } }
.sd.eject { transform: rotate(var(--r, 0deg)) translateY(-40%) }

/* the Tinsel pile: changes with the seasons */
.seasonal .bulb { transition: opacity .3s }
.seasonal .leaf { transform-box: fill-box; transform-origin: center; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1) }
.seasonal.scatter .leaf { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) }
.seasonal.bounce svg { animation: bounce .8s cubic-bezier(.3, 1.6, .5, 1) }
.phone.ring svg { animation: ring .5s ease-in-out 2 }
@keyframes ring { 0%, 100% { transform: rotate(0) } 20% { transform: rotate(-3deg) } 40% { transform: rotate(3deg) } 60% { transform: rotate(-2deg) } 80% { transform: rotate(2deg) } }
@keyframes bounce { 40% { transform: translate(calc(6 * var(--mm)), calc(-8 * var(--mm))) rotate(40deg) } }
.info { position: absolute; z-index: 14; right: 24px; bottom: 96px; width: min(340px, calc(100% - 32px)); background: var(--card); color: var(--ink); border-radius: 14px; padding: 16px 18px 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s }
.info.show { opacity: 1; transform: none; pointer-events: auto }
.info small { font: 600 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent) }
.info h3 { margin: 4px 0 6px; font-size: 1.25rem; font-weight: 700 }
.info p { margin: 0 0 10px; font-size: .94rem; color: var(--ink-2) }
.info a { font-weight: 700 }
.info .x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--muted) }


/* screen light spilling onto the desk when the lamp is off */
.spill { position: absolute; z-index: 11; pointer-events: none; left: calc((var(--x) - var(--sw) / 2) * var(--mm)); top: calc((var(--y) - var(--sh) / 2) * var(--mm)); width: calc(var(--sw) * var(--mm)); height: calc(var(--sh) * var(--mm)); border-radius: 50%; opacity: 0; transition: opacity .7s; mix-blend-mode: screen }
.sp-laptop { background: radial-gradient(closest-side, rgba(120, 140, 255, .22), rgba(150, 90, 200, .08) 60%, transparent) }
.sp-duo { background: radial-gradient(closest-side, rgba(60, 210, 190, .26), rgba(255, 210, 60, .06) 60%, transparent) }
.desk-hero:not(.lit) .spill { opacity: 1 }
.desk-hero:not(.lit) .display { box-shadow: 0 0 calc(30 * var(--mm)) rgba(130, 150, 255, .35), 0 0 calc(90 * var(--mm)) rgba(130, 150, 255, .18) }

/* the letter */
.letter svg { filter: none }

/* macOS-style traffic lights that actually work */
.tl { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; position: relative; flex: none; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25) }
.tl.red { background: #ff5f57 } .tl.yellow { background: #febc2e } .tl.green { background: #28c840 }
.tl::after { position: absolute; inset: 0; display: grid; place-items: center; font: 700 9px/1 var(--sans); color: rgba(0,0,0,.55); opacity: 0 }
.tl.red::after { content: "×" } .tl.yellow::after { content: "–" } .tl.green::after { content: "+" }
.lights3:hover .tl::after, .term-bar:hover .tl::after { opacity: 1 }
.window .lights3 { position: absolute; top: max(6px, calc(3 * var(--mm))); left: max(8px, calc(3.5 * var(--mm))); display: flex; gap: max(6px, calc(1.6 * var(--mm))); z-index: 2 }
.window .tl { width: max(10px, calc(3 * var(--mm))); height: max(10px, calc(3 * var(--mm))) }
.window { z-index: 2; padding-top: max(28px, calc(12 * var(--mm))) !important; transition: transform .35s cubic-bezier(.3, 1.1, .4, 1), opacity .3s; transform-origin: 50% 110% }
.window.min { transform: scale(.08) translateY(40%); opacity: 0; pointer-events: none }
.window.zoom { left: 2%; right: 2%; top: calc(7 * var(--mm)); bottom: 3% }
.window[hidden] { display: none }

/* desktop icons */
.desk-icons { position: absolute; right: 3.5%; top: 14%; display: grid; gap: calc(4 * var(--mm)); justify-items: center; z-index: 1 }
.icon { display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 4px; color: #f1efe9; cursor: pointer; border-radius: 6px; font: 500 max(10px, calc(3.2 * var(--mm)))/1.1 var(--sans) }
.icon .ic { width: max(26px, calc(13 * var(--mm))); height: max(26px, calc(13 * var(--mm))); display: block }
.icon .nm { padding: 1px 5px; border-radius: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.6) }
.icon.sel .ic { filter: drop-shadow(0 0 0 rgba(0,0,0,0)); outline: 2px solid rgba(255,255,255,.35); outline-offset: 2px; border-radius: 6px }
.icon.sel .nm { background: #2f6fe4; text-shadow: none }
.ic-txt, .ic-doc { position: relative; background: #fafafa; clip-path: polygon(14% 0, 72% 0, 86% 16%, 86% 100%, 14% 100%) }
.ic-txt::before, .ic-doc::before { content: ""; position: absolute; left: 24%; right: 24%; top: 30%; height: 46%; background: repeating-linear-gradient(180deg, #9ea3ab 0 1.5px, transparent 1.5px 5px) }
.ic-doc { background: linear-gradient(180deg, #2f6fe4 0 22%, #fafafa 22%) }
.ic-txt::after, .ic-doc::after { content: ""; position: absolute; right: 14%; top: 0; width: 14%; height: 16%; background: #c9cdd3 }

/* resume.doc */
.window.doc { background: #fbfbfa; color: #1d1d1f; padding-top: max(22px, calc(9 * var(--mm))); justify-content: flex-start; overflow: auto; -webkit-backdrop-filter: none; backdrop-filter: none }
.doc-title { position: absolute; top: max(5px, calc(2.6 * var(--mm))); left: 0; right: 0; text-align: center; font: 600 max(10px, calc(3 * var(--mm))) var(--sans); color: #6e6e73 }
.doc-body h2 { font: 700 max(16px, calc(9 * var(--mm)))/1 var(--sans); margin: 0 0 4px }
.doc-body p { margin: 0 0 max(4px, calc(1.6 * var(--mm))); font-size: max(11px, calc(4.3 * var(--mm))); color: #3a3a3c }
.doc-body .meta { color: #6e6e73; margin-bottom: max(8px, calc(3 * var(--mm))) }
.doc-body b { display: inline-block; min-width: 5.4em; color: #1d1d1f }
.doc-body a { color: #2f6fe4; font-weight: 600 }

/* tinsel.app: lights along the menu bar and snow on the laptop screen */
.xmas { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; z-index: 0 }
.display.xmas-on .xmas { opacity: 1 }
.xmas-lights { position: absolute; left: 0; right: 0; top: max(10px, calc(5 * var(--mm))); height: max(14px, calc(6 * var(--mm))) }
.xmas-lights svg { width: 100%; height: 100%; display: block; overflow: visible }
.xmas-lights .xb { animation: twinkle 1.8s ease-in-out infinite }
@keyframes twinkle { 50% { opacity: .45 } }
.xmas-snow i { position: absolute; top: -6px; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .85; animation: fall linear infinite }
@keyframes fall { to { transform: translate(var(--drift, 10px), calc(110 * var(--mm) + 200px)) } }

/* ===== round 6 ===== */
/* icons sit on the desktop, partly behind the intro window */
.desk-icons { right: 2.5%; top: 13% }
#herowin { right: 13% }
/* the lid (screen + bezel) stays above the dark, and glows outward so the frame reads */
.macbook .lid { z-index: 12 }
.desk-hero:not(.lit) .display { box-shadow: none }
.desk-hero:not(.lit) .macbook .lid { box-shadow: inset 0 0 0 calc(.6 * var(--mm)) #3b3d41, 0 0 calc(14 * var(--mm)) rgba(140, 155, 255, .45), 0 0 calc(60 * var(--mm)) rgba(130, 150, 255, .25), 0 0 calc(120 * var(--mm)) rgba(130, 150, 255, .12) }
.desk-hero:not(.lit) .o.duo { filter: drop-shadow(0 0 calc(6 * var(--mm)) rgba(70, 210, 195, .55)) drop-shadow(0 0 calc(30 * var(--mm)) rgba(70, 210, 195, .3)) }

/* résumé window with the real document + share button */
.window.doc { padding: max(28px, calc(12 * var(--mm))) 0 0 !important; overflow: hidden }
.doc-frame { width: 100%; height: 100%; border: 0; background: #fafaf8; display: block }
.share { position: absolute; top: max(4px, calc(2 * var(--mm))); right: max(8px, calc(3 * var(--mm))); width: max(20px, calc(6 * var(--mm))); height: max(20px, calc(6 * var(--mm))); border: 0; background: none; color: #2f6fe4; cursor: pointer; padding: 2px; border-radius: 5px }
.share:hover { background: rgba(47, 111, 228, .1) }
.share svg { width: 100%; height: 100%; display: block }

/* AirDrop sheet */
.airdrop { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px) }
.airdrop[hidden] { display: none }
.ad-sheet { width: min(86%, 300px); background: rgba(246, 246, 248, .96); color: #1d1d1f; border-radius: 14px; padding: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.4); text-align: center; font-family: var(--sans); animation: sheet .3s cubic-bezier(.3, 1.3, .5, 1) }
@keyframes sheet { from { transform: translateY(20px); opacity: 0 } }
.ad-file { display: flex; gap: 10px; align-items: center; text-align: left; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid #ddd; font-size: 12px }
.ad-file small { display: block; color: #6e6e73 }
.ad-pdf { width: 30px; height: 38px; display: grid; place-items: end center; padding-bottom: 4px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px #d0d0d4; font: 700 8px var(--sans); color: #e0331c; flex: none }
.ad-head { margin: 0 0 8px; font: 600 11px var(--sans); color: #6e6e73; text-transform: uppercase; letter-spacing: .06em }
.ad-device { display: grid; justify-items: center; gap: 4px; margin: 0 auto 10px; border: 0; background: none; cursor: pointer; color: inherit; font: inherit }
.ad-ring { position: relative; width: 56px; height: 56px; display: grid; place-items: center }
.ad-ring svg { position: absolute; inset: 0; transform: rotate(-90deg) }
.ad-track { fill: none; stroke: transparent; stroke-width: 3 }
.ad-prog { fill: none; stroke: #2f6fe4; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 1.3s ease-in-out }
.sending .ad-prog { stroke-dashoffset: 0 }
.ad-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #e9a5b4, #b55d7a); color: #fff; font: 700 12px var(--sans); animation: pulse 1.6s ease-in-out infinite }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 111, 228, .18) } }
.ad-name { font-size: 12px; font-weight: 600 }
.ad-status { font-size: 11px; color: #6e6e73 }
.sent .ad-status { color: #2f9e44 }
.ad-cancel { border: 0; background: #e5e5ea; border-radius: 8px; padding: 6px 14px; font: 600 12px var(--sans); cursor: pointer }

/* keyboard keys you can press */
.macbook .keys svg .key { cursor: pointer }
.macbook .keys svg .key:hover .k { fill: color-mix(in srgb, var(--key) 85%, #fff) }
.macbook .keys svg .key.down { transform: translateY(.6px) }
.macbook .keys svg .key.down .k { fill: color-mix(in srgb, var(--key) 80%, #000) }
.macbook .keys svg .key[data-key="~"] .kl { fill: var(--accent) }
.deck { pointer-events: auto }

/* on-screen effects */
.fx { position: absolute; inset: 0; z-index: 7; pointer-events: none; display: grid; place-items: center; overflow: hidden; border-radius: inherit }
.fx > * { pointer-events: auto }
.fx .gif { max-width: 78%; max-height: 72%; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: pop .35s cubic-bezier(.3, 1.5, .5, 1) }
.fx .gif-wrap { position: relative; display: grid; justify-items: center; gap: 4px }
.fx .gif-wrap small { font: 500 9px var(--mono); color: rgba(255,255,255,.7) }
@keyframes pop { from { transform: scale(.6); opacity: 0 } }
.fx .panic { font: 900 max(28px, calc(26 * var(--mm)))/1 Nunito, var(--sans); color: #ffd23f; text-align: center; letter-spacing: .02em; text-shadow: 0 4px 0 #b8860b, 0 10px 30px rgba(0,0,0,.6); animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) }
.fx .quit { position: absolute; inset: 0; background: #000; display: grid; place-items: center; color: #ff9b2f; font: 600 max(12px, calc(6 * var(--mm)))/1.3 var(--mono); text-align: center; padding: 10% }
.fx canvas { position: absolute; inset: 0; width: 100%; height: 100% }
.fx .toast { position: absolute; bottom: 8%; background: rgba(0,0,0,.75); color: #fff; padding: 6px 10px; border-radius: 8px; font: 500 max(10px, calc(3.6 * var(--mm))) var(--mono); animation: pop .3s }
.display.flipped .window, .display.flipped .desk-icons, .display.flipped .menubar { transform: rotate(180deg); transition: transform .6s cubic-bezier(.3, 1.3, .5, 1) }
.window.shake { animation: shake .5s }
@keyframes shake { 20% { translate: -6px 0 } 40% { translate: 6px 0 } 60% { translate: -4px 0 } 80% { translate: 3px 0 } }
.keycast { position: absolute; z-index: 8; left: 50%; bottom: 6%; transform: translateX(-50%); display: flex; gap: 4px; pointer-events: none }
.keycast span { min-width: 22px; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font: 600 max(11px, calc(4 * var(--mm)))/1.2 var(--sans); text-align: center; animation: kc 1.2s forwards }
@keyframes kc { 0% { opacity: 0; transform: translateY(6px) } 12%, 70% { opacity: 1; transform: none } 100% { opacity: 0 } }

/* the rave (Konami code) */
.rave-layer { position: absolute; inset: 0; z-index: 13; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .4s }
.rave .rave-layer { opacity: 1; animation: rave 1.6s steps(8) infinite;
  background: radial-gradient(circle at 18% 30%, rgba(255, 0, 170, .5), transparent 28%), radial-gradient(circle at 78% 22%, rgba(0, 220, 255, .45), transparent 30%), radial-gradient(circle at 55% 80%, rgba(140, 255, 0, .4), transparent 30%), radial-gradient(circle at 35% 70%, rgba(255, 200, 0, .35), transparent 25%) }
@keyframes rave { 0% { filter: hue-rotate(0) } 25% { filter: hue-rotate(90deg); background-position: 40px 20px } 50% { filter: hue-rotate(180deg); background-position: -30px 10px } 75% { filter: hue-rotate(270deg); background-position: 20px -30px } 100% { filter: hue-rotate(360deg) } }
.rave .seasonal .bulb { filter: drop-shadow(0 0 1.5px currentColor) drop-shadow(0 0 4px currentColor); animation: bulbs .45s steps(2) infinite }
.rave .seasonal .bulb:nth-of-type(odd) { animation-delay: .22s }
@keyframes bulbs { 50% { opacity: .35 } }
.rave .o { animation: bob .42s ease-in-out infinite alternate }
.rave .o:nth-of-type(even) { animation-delay: .21s }
@keyframes bob { to { translate: 0 calc(-3 * var(--mm)) } }
.rave .seasonal { z-index: 12 }

/* the foldable Duo and the mini Guide */
.duo-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; align-content: center; gap: 18px; background: rgba(10, 8, 6, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 16px }
.duo-modal[hidden] { display: none }
.duo-wrap { perspective: 2200px }
.duo3d { --dw: min(92vw, 940px, calc((100svh - 140px) * 1.42)); width: var(--dw); aspect-ratio: 1.42; display: flex; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.4, .1, .2, 1); animation: duo-in .5s cubic-bezier(.3, 1.2, .5, 1) }
@keyframes duo-in { from { transform: scale(.4) rotate(8deg); opacity: 0 } }
.dhalf { position: relative; width: 50%; height: 100%; transform-style: preserve-3d }
.dleft { background: #1c1c1f; border-radius: calc(var(--dw) * .05) 0 0 calc(var(--dw) * .05); padding: calc(var(--dw) * .016) 0 calc(var(--dw) * .016) calc(var(--dw) * .016); box-shadow: inset 0 0 0 1.5px #3a3a3f }
.dright { transform-origin: left center; transition: transform .9s cubic-bezier(.4, .1, .2, 1) }
.dface { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden }
.dfront { background: #1c1c1f; border-radius: 0 calc(var(--dw) * .05) calc(var(--dw) * .05) 0; padding: calc(var(--dw) * .016) calc(var(--dw) * .016) calc(var(--dw) * .016) 0; box-shadow: inset 0 0 0 1.5px #3a3a3f }
.dback { transform: rotateY(180deg); background: linear-gradient(135deg, #3a3b40, #1a1a1d); border-radius: calc(var(--dw) * .05) 0 0 calc(var(--dw) * .05); padding: calc(var(--dw) * .02) }
.dscreen { width: 100%; height: 100%; overflow: hidden; position: relative; background: #f7d82e }
.dleft .dscreen { border-radius: calc(var(--dw) * .035) 0 0 calc(var(--dw) * .035) }
.dfront .dscreen { border-radius: 0 calc(var(--dw) * .035) calc(var(--dw) * .035) 0 }
.gview { position: absolute; top: 0; bottom: 0; width: 200% }
.gview[data-half="l"] { left: 0 } .gview[data-half="r"] { left: -100% }
.folded .dright { transform: rotateY(-180deg) }
.folded .duo3d { transform: translateX(25%) }
.cover { width: 100%; height: 100%; border-radius: calc(var(--dw) * .035); background: #f7d82e; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; cursor: pointer; font-family: Nunito, var(--sans); color: #1a1d3b; padding: 10% }
.cover img { width: 38%; border-radius: 22% }
.cover b { font-size: calc(var(--dw) * .028); font-weight: 900 }
.cover span { font-style: italic; font-size: calc(var(--dw) * .02) }
.cover small { font: 500 calc(var(--dw) * .014) var(--mono); opacity: .6 }
.duo-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center }
.dbtn { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #f1efe9; border-radius: 999px; padding: 10px 16px; font: 600 .9rem var(--sans); cursor: pointer; text-decoration: none }
.dbtn:hover { background: rgba(255,255,255,.18) }

/* Guide app UI (same markup rendered into both halves) */
.g { position: absolute; inset: 0; font-family: Nunito, var(--sans); color: #fff; --u: calc(var(--dw) / 100) }
.g-home { background: #f7d82e; padding: calc(var(--u) * 6) 0 }
.g-pill { display: flex; align-items: center; height: calc(var(--u) * 5.2); border: 0; padding: 0 calc(var(--u) * 2.6); margin: 0 0 1px; color: #fff; font: 800 calc(var(--u) * 1.75) Nunito, var(--sans); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; border-radius: 0 999px 999px 0; text-align: right; justify-content: flex-end; position: relative }
.g-pill::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,.18) }
.g-pill span { margin-right: calc(var(--u) * 6) }
.g-home .g-pill { width: calc(var(--u) * 26) }
.g-home .g-pill.wide { width: calc(var(--u) * 48) }
.g-home .g-note { position: absolute; right: calc(var(--u) * 5); bottom: calc(var(--u) * 5); width: calc(var(--u) * 38); color: #1a1d3b; font: italic 500 calc(var(--u) * 1.9)/1.35 Nunito, var(--sans) }
.g-bar { height: calc(var(--u) * 6.2); background: #f7d82e; display: flex; align-items: center; padding-left: 0 }
.g-bar .g-pill { height: calc(var(--u) * 3.6); margin: 0; border-radius: 999px; margin-left: calc(var(--u) * -2.4); padding: 0 calc(var(--u) * 3.4) 0 calc(var(--u) * 4.2); font-size: calc(var(--u) * 1.35) }
.g-bar .g-pill:first-child { margin-left: 0; border-radius: 0 999px 999px 0; padding-left: calc(var(--u) * 3.4) }
.g-bar .g-pill::after { display: none }
.g-body { position: absolute; top: calc(var(--u) * 6.2); bottom: 0; left: 0; right: 0; overflow: auto; padding: calc(var(--u) * 1.6) calc(var(--u) * 8) calc(var(--u) * 4) calc(var(--u) * 2) }
.g-body img { width: 100%; aspect-ratio: 3.8; object-fit: cover; border-radius: calc(var(--u) * 1.2); display: block }
.g-credit { font: 500 calc(var(--u) * 1.05) var(--mono); opacity: .6; margin: calc(var(--u) * .8) 0 calc(var(--u) * 1.6) }
.g-title { font: 900 calc(var(--u) * 1.7) Nunito, var(--sans); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 calc(var(--u) * .6) }
.g-title::after { content: ""; display: block; width: calc(var(--u) * 4); height: 2px; background: rgba(255,255,255,.7); margin-top: calc(var(--u) * .6) }
.g-hat { border-left: 2px solid rgba(255,255,255,.5); padding-left: calc(var(--u) * 1.2); font: italic 500 calc(var(--u) * 1.5) Nunito, var(--sans); opacity: .9; margin: calc(var(--u) * 1.4) 0 }
.g-text { font: italic 500 calc(var(--u) * 1.95)/1.6 Nunito, var(--sans) }
.g-text a, .g-hat a { color: #fff; text-decoration: underline; cursor: pointer }
.g-maps { display: flex; justify-content: space-between; align-items: center; border: 1.5px solid rgba(255,255,255,.55); border-radius: calc(var(--u) * 1); padding: calc(var(--u) * .9) calc(var(--u) * 1.4); margin: 0 0 calc(var(--u) * 1.4); font: 800 calc(var(--u) * 1.3) Nunito, var(--sans); text-transform: uppercase; letter-spacing: .05em; background: rgba(255,255,255,.08) }
.g-maps span:last-child { font: 500 calc(var(--u) * 1.1) var(--mono); opacity: .8 }
.g-fab { position: absolute; right: calc(var(--u) * 1.8); bottom: calc(var(--u) * 2); display: grid; gap: calc(var(--u) * .9) }
.g-fab button { width: calc(var(--u) * 4.8); height: calc(var(--u) * 4.8); border-radius: 50%; border: 0; color: #fff; display: grid; place-items: center; cursor: pointer; font-size: calc(var(--u) * 2); box-shadow: 0 2px 6px rgba(0,0,0,.25) }
.g-fab button.on { outline: 2px solid #fff }
.g-toast { position: absolute; left: 50%; bottom: calc(var(--u) * 3); transform: translateX(-50%); background: rgba(26, 29, 59, .9); color: #fff; padding: calc(var(--u) * 1) calc(var(--u) * 1.8); border-radius: 999px; font: 700 calc(var(--u) * 1.4) Nunito, var(--sans); white-space: nowrap; animation: pop .3s }
@media (max-width: 760px) {
  .desk-icons { right: 1.5% }
  #herowin { right: 16% }
  .duo-modal { align-content: center }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line) }
.stats div { padding: 26px 22px; border-right: 1px solid var(--line) }
.stats div:last-child { border-right: 0 }
.stats b { display: block; font: 500 2.2rem/1 var(--sans); letter-spacing: -.04em; margin-bottom: 6px }
.stats span { color: var(--muted); font-size: .9rem }

/* ---------- work ---------- */
.projects { display: grid; gap: 26px }
.project { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); transition: transform .25s, box-shadow .25s }
.project:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .35) }
.project:nth-child(even) .media { order: 2 }
.media { border-radius: 14px; overflow: hidden; aspect-ratio: 1.9 / 1; background: var(--paper-2); display: block }
.media img { width: 100%; height: 100%; object-fit: cover }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px }
.tags span { font: 500 .72rem/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted) }
.tags span.on { color: var(--accent); border-color: currentColor }
.project h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; margin-bottom: 10px }
.project p { color: var(--ink-2) }
.project ul { margin: 0 0 16px; padding-left: 18px; color: var(--ink-2); font-size: .95rem }
.project li { margin: 4px 0 }
.stack { font: 400 .8rem var(--mono); color: var(--muted); margin-bottom: 14px }
.links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-weight: 700 }
.links a { text-underline-offset: 5px; text-decoration-color: var(--accent); text-decoration-thickness: 2px }

/* ---------- experience ---------- */
.exp { background: var(--paper-2) }
.exp-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 50px }
.jobs { list-style: none; margin: 0; padding: 0 }
.job { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line) }
.job:first-child { border-top: 0; padding-top: 0 }
.job .when { font: 500 .82rem var(--mono); color: var(--muted); padding-top: 4px }
.job h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 2px }
.job .role { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: 8px; display: block }
.job ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem }
.job li { margin: 3px 0 }
.side h3 { font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px }
.side .block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chips span { font: 500 .8rem/1 var(--mono); padding: 7px 10px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line) }
.side ul { margin: 0; padding-left: 18px; font-size: .93rem; color: var(--ink-2) }
.side li { margin: 4px 0 }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.svc { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: var(--card) }
.svc .num { font: 500 .8rem var(--mono); color: var(--accent) }
.svc h3 { font-size: 1.45rem; font-weight: 700; margin: 18px 0 10px }
.svc p { color: var(--ink-2); font-size: .97rem }
.svc ul { margin: 0; padding: 0; list-style: none; font-size: .93rem }
.svc li { padding: 8px 0 8px 22px; border-top: 1px solid var(--line); position: relative }
.svc li::before { content: "→"; position: absolute; left: 0; color: var(--accent) }
.svc-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 22px 26px; border-radius: 18px; background: var(--paper-2) }
.svc-foot p { margin: 0; max-width: 620px }

/* ---------- side quests ---------- */
.quests-sec { background: var(--paper-2) }
.quests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px }
.quest { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--card); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1) }
.quest:hover { transform: translateY(-4px) rotate(-.6deg) }
.quest .status { font: 600 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent) }
.quest h3 { font-size: 1.2rem; font-weight: 700; margin: 10px 0 8px }
.quest p { color: var(--muted); font-size: .92rem }
.quest a { font-weight: 700; font-size: .92rem }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: center }
.about h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 22px }
.about p { color: var(--ink-2); font-size: 1.06rem }
.polaroid { background: #fff; padding: 12px 12px 52px; transform: rotate(2.5deg); box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .5); position: relative; margin: 0; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1) }
.polaroid:hover { transform: rotate(-1deg) }
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100% }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 600 1.4rem var(--hand); color: #333 }

/* ---------- contact + footer ---------- */
.contact { text-align: center; background: var(--night); color: var(--on-night) }
.contact h2 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin-bottom: 18px }
.contact p { color: var(--on-night-2); max-width: 560px; margin: 0 auto 30px; font-size: 1.1rem }
.contact .btn { background: var(--on-night); color: #121212; border-color: var(--on-night) }
.contact .btn.ghost { background: transparent; color: var(--on-night) }
.contact .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center }
.contact .small { margin-top: 26px; font: 400 .85rem var(--mono); color: #8d897f }
.site-footer { background: var(--night); color: #8d897f; border-top: 1px solid #24252a; padding: 26px 0; font-size: .86rem }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px }

/* ---------- terminal ---------- */
.term { position: fixed; left: 50%; bottom: 20px; z-index: 120; width: min(720px, calc(100% - 24px)); transform: translate(-50%, 30px); opacity: 0; visibility: hidden; background: var(--term-bg); color: var(--term-fg); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); font: 400 .9rem/1.55 var(--mono); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.3, .5, 1), visibility 0s .25s; border: 1px solid #23262b }
.term.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.3, .5, 1) }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-bottom: 1px solid #23262b; color: #7d838c; font-size: .75rem }
.term-bar span { margin-left: 8px; flex: 1 }
.term-out { max-height: min(46vh, 380px); overflow-y: auto; padding: 12px 14px 0; white-space: pre-wrap; word-break: break-word; margin: 0; font: inherit }
.term .p { color: var(--term-prompt) }
.term-out a { color: #8ec5ff }
.term-in { display: flex; gap: 8px; padding: 8px 14px 14px; margin: 0 }
.term-in input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--term-fg); font: inherit; outline: none; caret-color: var(--term-fg) }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s }
.reveal.in { opacity: 1; transform: none }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .section-head, .exp-grid, .about { grid-template-columns: 1fr; gap: 28px }
  .project { grid-template-columns: 1fr; gap: 20px }
  .project:nth-child(even) .media { order: 0 }
  .svc-grid { grid-template-columns: 1fr }
  .quests, .stats { grid-template-columns: 1fr 1fr }
  .stats div:nth-child(2) { border-right: 0 }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line) }
  .about .polaroid { max-width: 320px }
}
@media (max-width: 760px) {
  /* phones: the laptop on top, the rest of the desk below it, same real-world scale */
  .desk-hero { --mm: calc(100vw / 333) }
  .scene { width: calc(333 * var(--mm)); height: calc(1110 * var(--mm)); margin: 0 }
  .macbook { left: calc(18 * var(--mm)); top: calc(70 * var(--mm)) }
  .o { left: calc(var(--px, var(--x)) * var(--mm)); top: calc(var(--py, var(--y)) * var(--mm)); width: calc(var(--pw, var(--w)) * var(--mm)); transform: rotate(var(--pr, var(--r, 0deg))) }
  .o:hover, .o:focus-visible { transform: rotate(var(--pr, var(--r, 0deg))) }
  .switch { left: calc(var(--px) * var(--mm)); top: calc(var(--py) * var(--mm)) }
  .window p:not(.hint) { display: none }
  .window { padding: calc(7 * var(--mm)) calc(8 * var(--mm)) calc(6 * var(--mm)) }
  .hero-under { display: block; padding: 0 16px 28px }
  .hero-under .sub { margin: 0; font: 400 1rem/1.5 var(--sans); color: var(--on-night-2) }
  .info { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto }
}
@media (max-width: 760px) {
  .wrap { width: min(var(--max), 100% - 32px) }
  section { padding: 68px 0 }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line) }
  .nav-links.open { display: flex }
  .nav-links a { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line); opacity: 1 }
  .menu-btn { display: inline-block }
  .quests, .stats { grid-template-columns: 1fr }
  .stats div { border-right: 0 !important; border-bottom: 1px solid var(--line) }
  .job { grid-template-columns: 1fr; gap: 6px }
  .term { bottom: 10px }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
  .reveal { opacity: 1; transform: none }
}
.desk-icons { transition: opacity .3s }
#herowin.zoom { right: 2% }
.fx .gif-wrap { width: 74% }
.fx .gif { width: 100%; max-width: none; max-height: none }
.dleft, .dfront { box-shadow: none }

/* ===== round 7 ===== */
/* intro window: text scales with the laptop screen so it never overflows */
#herowin { left: 6%; right: 14%; top: 10%; bottom: 6%; justify-content: center; overflow: hidden; padding: calc(10 * var(--mm)) calc(9 * var(--mm)) calc(7 * var(--mm)) !important }
#herowin.zoom { left: 2%; right: 2%; top: calc(7 * var(--mm)); bottom: 3% }
#herowin h1 { font-size: calc(14.5 * var(--mm)); margin-bottom: calc(4 * var(--mm)) }
#herowin p { font-size: calc(4.9 * var(--mm)); margin-bottom: calc(5 * var(--mm)); line-height: 1.5 }
#herowin .btn { font-size: calc(4.2 * var(--mm)); padding: calc(3 * var(--mm)) calc(5.5 * var(--mm)) }
#herowin .hint { font-size: calc(3.3 * var(--mm)); margin-top: calc(4.5 * var(--mm)) }
.window .lights3 { top: calc(3.2 * var(--mm)); left: calc(3.6 * var(--mm)) }
.window .tl { width: calc(3.2 * var(--mm)); height: calc(3.2 * var(--mm)); min-width: 9px; min-height: 9px }

/* modern desk: dark walnut, long straight grain, a little sheen */
.desk-hero { background-color: #34261d;
  background-image:
    linear-gradient(100deg, rgba(255,255,255,.035), transparent 30%, rgba(255,255,255,.025) 60%, transparent 80%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='700'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0009 .05' numOctaves='4' seed='19'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .06 0 0 0 0 .03 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='1600' height='700' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='400'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0015 .4' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .32 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='900' height='400' filter='url(%23s)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #3b2b21, #2f2219) !important;
  background-size: auto, 1600px 700px, 900px 400px, auto !important }
/* felt desk mat */
.mat { position: absolute; left: calc(40 * var(--mm)); top: calc(36 * var(--mm)); width: calc(760 * var(--mm)); height: calc(470 * var(--mm)); border-radius: calc(10 * var(--mm)); background-color: #2b2d31;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23f)'/%3E%3C/svg%3E"), linear-gradient(160deg, rgba(255,255,255,.04), transparent 50%);
  box-shadow: inset 0 0 0 calc(2.5 * var(--mm)) #2b2d31, inset 0 0 0 calc(3 * var(--mm)) rgba(255,255,255,.08), 0 calc(1 * var(--mm)) calc(3 * var(--mm)) rgba(0,0,0,.35) }

/* Konami: snow day. lamp off, the strand lights up, snow falls over the desk */
.rave-layer { display: none }
.snowday .seasonal { z-index: 12 }
.snowday .seasonal .bulb { fill-opacity: 1; filter: drop-shadow(0 0 1px currentColor) drop-shadow(0 0 3.5px currentColor) drop-shadow(0 0 8px currentColor); animation: glow 2.6s ease-in-out infinite }
.snowday .seasonal .bulb:nth-of-type(3n) { animation-delay: -.9s } .snowday .seasonal .bulb:nth-of-type(3n+1) { animation-delay: -1.7s }
@keyframes glow { 50% { opacity: .7 } }
.snowfall { position: absolute; inset: 0; z-index: 13; pointer-events: none; width: 100%; height: 100% }
.rave .o { animation: none }

/* keyboard extras */
.fx .about { width: 70%; background: rgba(240, 240, 242, .97); color: #1d1d1f; border-radius: 10px; padding: 5% 6%; text-align: center; font: 500 max(9px, calc(3.4 * var(--mm)))/1.5 var(--sans); box-shadow: 0 10px 30px rgba(0,0,0,.4) }
.fx .about b { display: block; font-size: 1.6em; margin: 4px 0 6px }
.fx .about .sd { width: 18%; margin: 0 auto 4px; display: block }
.fx .about dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; text-align: left; margin: 0 auto; width: fit-content }
.fx .about dt { color: #6e6e73; text-align: right }
.fx .about dd { margin: 0 }
.fx .bsod { position: absolute; inset: 0; background: #0078d7; color: #fff; padding: 9% 10%; font: 400 max(9px, calc(4 * var(--mm)))/1.45 "Segoe UI", var(--sans); text-align: left }
.fx .bsod .big { font-size: 3.4em; line-height: 1; margin-bottom: 4% }
.fx .sleep { position: absolute; inset: 0; background: #000; display: grid; place-items: center; color: rgba(255,255,255,.5); font: 600 max(12px, calc(6 * var(--mm))) var(--mono); cursor: pointer }
.fx .sleep span { animation: breathe 3s ease-in-out infinite }
@keyframes breathe { 50% { opacity: .2 } }
.fx .vacation { position: absolute; inset: 0; background: linear-gradient(180deg, #ff9a5a 0%, #ffcf7a 45%, #4fb3c9 46%, #2a7f9e 100%); display: grid; place-items: center; text-align: center; color: #fff; font: 700 max(12px, calc(6 * var(--mm)))/1.2 var(--sans); text-shadow: 0 2px 8px rgba(0,0,0,.35) }
.fx .vacation small { display: block; font: 500 .55em var(--mono); margin-top: 6px }
.fx .notif { position: absolute; top: calc(8 * var(--mm)); right: 3%; width: 46%; background: rgba(245, 245, 247, .96); color: #1d1d1f; border-radius: 10px; padding: 8px 10px; font: 400 max(9px, calc(3.4 * var(--mm)))/1.35 var(--sans); box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: slidein .4s cubic-bezier(.3, 1.3, .5, 1) }
.fx .notif b { display: block; font-size: .85em; color: #6e6e73; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px }
@keyframes slidein { from { transform: translateX(120%) } }
.fx .plane { position: absolute; top: 30%; left: 0; display: flex; align-items: center; gap: 0; white-space: nowrap; font: 700 max(10px, calc(4.4 * var(--mm))) var(--sans); animation: fly 4.5s linear forwards }
.fx .plane .banner { background: #fff7e0; color: #b3261e; padding: 3px 10px; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.3) }
.fx .plane .rope { width: 22px; height: 1px; background: #ddd }
.fx .plane .craft { font-size: 1.8em; transform: scaleX(-1) }
@keyframes fly { from { transform: translateX(-100%) } to { transform: translateX(calc(300 * var(--mm))) } }
.fx .rainbow { position: absolute; left: 0; top: 40%; height: 12%; width: 40%; background: linear-gradient(180deg, #ff3b30 0 16%, #ff9500 16% 33%, #ffcc00 33% 50%, #34c759 50% 66%, #007aff 66% 83%, #af52de 83%); border-radius: 0 999px 999px 0; animation: streak 2.2s cubic-bezier(.3, .1, .3, 1) forwards }
@keyframes streak { 0% { width: 0 } 60% { width: 100% ; opacity: 1 } 100% { width: 100%; opacity: 0 } }
.display.off > *:not(.fx) { visibility: hidden }
.display.off { background: #050506 !important }
.display { transition: filter .3s }
.caps h1 { text-transform: uppercase }
.o.hop { animation: hop .6s cubic-bezier(.3, 1.6, .5, 1) }
@keyframes hop { 40% { translate: 0 calc(-8 * var(--mm)) } }

@media (max-width: 760px) {
  .mat { left: calc(8 * var(--mm)); top: calc(56 * var(--mm)); width: calc(317 * var(--mm)); height: calc(430 * var(--mm)) }
  #herowin h1 { font-size: max(20px, calc(15 * var(--mm))) }
  #herowin .btn { font-size: max(12px, calc(4.6 * var(--mm))); padding: 8px 12px }
  #herowin .hint { font-size: max(10px, calc(3.4 * var(--mm))) }
  .window .tl { min-width: 10px; min-height: 10px }
}
/* intro text sized to its own window, so it fills it the same way on every screen */
#herowin { container-type: inline-size; padding: 6.5cqw 5.5cqw 4.5cqw !important }
#herowin h1 { font-size: 7.6cqw; margin-bottom: 2.6cqw }
#herowin p { font-size: 2.75cqw; margin-bottom: 3.2cqw }
#herowin .btn { font-size: 2.45cqw; padding: 1.8cqw 3.4cqw }
#herowin .hero-actions { gap: 1.6cqw }
#herowin .hint { font-size: 1.95cqw; margin-top: 3cqw }
@media (max-width: 760px) {
  #herowin h1 { font-size: max(20px, 8cqw) }
  #herowin .btn { font-size: max(12px, 3.2cqw); padding: 8px 12px }
  #herowin .hint { font-size: max(10px, 2.6cqw) }
}
#herowin { padding: 5.6cqw 5.5cqw 4cqw !important }
#herowin h1 { font-size: 7.1cqw; margin-bottom: 2.2cqw }
#herowin p { font-size: 2.6cqw; margin-bottom: 2.8cqw; line-height: 1.45 }
#herowin .hint { margin-top: 2.4cqw }
#herowin { padding: 5.5% 5.5% 4% !important }
@media (max-width: 760px) { #herowin h1 { font-size: max(19px, 8cqw) } #herowin .btn { font-size: max(12px, 3.2cqw); padding: 7px 12px } #herowin .hint { font-size: max(10px, 2.6cqw) } }

/* ===== round 8: Owala, dock, Safari, folding Duo ===== */
.bottle svg { overflow: visible }

/* the Duo: two halves of one screenshot; the left half folds over the right */
.o.duo { display: block; padding: 0; background: none; box-shadow: none; aspect-ratio: 166 / 118 }
.duo-half { position: absolute; top: 0; bottom: 0; width: 50%; padding: calc(3 * var(--mm)); background: linear-gradient(135deg, #4d4e53, #1d1d20 35%, #2c2d31 70%, #141416) }
.duo-r { right: 0; border-radius: 0 calc(9 * var(--mm)) calc(9 * var(--mm)) 0; padding-left: 0 }
.duo-l { left: 0; border-radius: calc(9 * var(--mm)) 0 0 calc(9 * var(--mm)); padding-right: 0; z-index: 2; transform-origin: right center; transition: transform .75s cubic-bezier(.55, .05, .25, 1), box-shadow .75s }
.duo .dscr { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #000 }
.duo-l .dscr { border-radius: calc(6.5 * var(--mm)) 0 0 calc(6.5 * var(--mm)) }
.duo-r .dscr { border-radius: 0 calc(6.5 * var(--mm)) calc(6.5 * var(--mm)) 0 }
.duo .dscr img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: cover }
.duo-l .dscr img { left: 0 } .duo-r .dscr img { left: -100% }
.duo .dscr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.14), rgba(255,255,255,0) 35%) }
/* the cover display on the back of the left half (pre-mirrored so it reads right once flipped) */
.duo .cover { position: absolute; inset: 0; display: block; padding: calc(2.6 * var(--mm)); border-radius: calc(9 * var(--mm)) 0 0 calc(9 * var(--mm)); background: linear-gradient(135deg, #3a3b40, #1b1b1e 45%, #29292d); transform: scaleX(-1); opacity: 0; transition: opacity 0s .37s }
.duo .cover::before { content: ""; position: absolute; left: calc(-.4 * var(--mm)); top: 18%; bottom: 18%; width: calc(1.6 * var(--mm)); border-radius: 2px; background: linear-gradient(90deg, #2a2a2d, #6a6b70, #2a2a2d) }
.cover-scr { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: calc(6.5 * var(--mm)); background: linear-gradient(180deg, #2a3cf2, #1420a8); overflow: hidden; box-shadow: inset 0 0 0 calc(.6 * var(--mm)) #050608 }
.cover-scr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.16), rgba(255,255,255,0) 38%) }
.cover .dp { font: 700 calc(15.5 * var(--mm))/.92 Fredoka, Nunito, var(--sans); color: #ff2a1f; text-align: center; letter-spacing: .01em; -webkit-text-stroke: calc(1 * var(--mm)) #ffb10a; paint-order: stroke fill; text-shadow: 0 calc(.6 * var(--mm)) 0 rgba(0,0,0,.25) }
.cover .cam { position: absolute; top: calc(4 * var(--mm)); right: calc(5 * var(--mm)); width: calc(6 * var(--mm)); height: calc(6 * var(--mm)); border-radius: 50%; background: #030407; box-shadow: 0 0 0 calc(.5 * var(--mm)) #15161a }
.duo .front { transition: opacity 0s .37s }
.duo.folded .duo-l { transform: scaleX(-1); box-shadow: none }
.duo.folding .duo-l { box-shadow: calc(-6 * var(--mm)) 0 calc(10 * var(--mm)) rgba(0,0,0,.35) }
.duo.folded .cover { opacity: 1 }
.duo.folded .front { opacity: 0 }
.duo.folded .duo-r .dscr { visibility: hidden; transition: visibility 0s .75s }
.desk-hero:not(.lit) .o.duo.folded { filter: drop-shadow(0 0 calc(6 * var(--mm)) rgba(60, 90, 255, .55)) drop-shadow(0 0 calc(26 * var(--mm)) rgba(60, 90, 255, .3)) }
@media (prefers-reduced-motion: reduce) { .duo-l { transition: none } }

/* the Dock */
#herowin { bottom: 13% }
.dock { position: absolute; z-index: 4; left: 50%; bottom: 2.2%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: calc(2 * var(--mm)); padding: calc(1.6 * var(--mm)) calc(2.2 * var(--mm)); border-radius: calc(4.5 * var(--mm)); background: rgba(235, 238, 248, .22); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 4px 14px rgba(0, 0, 0, .3) }
.dock-icon { position: relative; width: calc(11 * var(--mm)); height: calc(11 * var(--mm)); min-width: 22px; min-height: 22px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); transform-origin: bottom center }
.dock-icon svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)) }
.dock-icon:hover, .dock-icon:focus-visible { transform: scale(1.3) translateY(-2px) }
.dock-icon .dot { position: absolute; left: 50%; bottom: calc(-1.6 * var(--mm)); width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: rgba(255,255,255,.85) }
.dock-icon.bounce { animation: dockbounce .9s ease-in-out 2 }
@keyframes dockbounce { 0%, 100% { translate: 0 0 } 35% { translate: 0 calc(-6 * var(--mm)) } 60% { translate: 0 0 } }
.dock-divider { align-self: stretch; width: 1px; margin: 0 calc(.6 * var(--mm)); background: rgba(255, 255, 255, .45) }
.stack-fan { position: absolute; z-index: 5; left: 50%; bottom: 17%; display: grid; gap: 6px; justify-items: start; font: 600 max(10px, calc(3.2 * var(--mm))) var(--sans) }
.stack-fan[hidden] { display: none }
.stack-fan button { display: flex; align-items: center; gap: 6px; border: 0; background: rgba(30, 30, 34, .78); color: #fff; padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.35); animation: fan .3s cubic-bezier(.3, 1.4, .5, 1) backwards }
.stack-fan button:nth-child(1) { animation-delay: .08s; transform: translateX(10px) } .stack-fan button:nth-child(2) { animation-delay: .04s; transform: translateX(4px) }
.stack-fan .ic { width: max(18px, calc(6 * var(--mm))); height: max(18px, calc(6 * var(--mm))) }
@keyframes fan { from { opacity: 0; translate: 0 20px } }

/* Safari window */
.window.safari { background: #f5f5f7; color: #1d1d1f; padding: 0 !important; justify-content: flex-start; overflow: hidden; left: 8%; right: 8%; top: 9%; bottom: 14% }
.sf-bar { height: max(26px, calc(9 * var(--mm))); display: flex; align-items: center; justify-content: center; background: #e9e9ec; border-bottom: 1px solid #d4d4d8 }
.sf-url { font: 500 max(9px, calc(3 * var(--mm))) var(--sans); color: #3a3a3c; background: #fff; padding: 2px 12px; border-radius: 6px; min-width: 50% ; text-align: center }
.sf-body { flex: 1; overflow: auto; background: #f3f2ef; padding: 4% }
.sf-card { position: relative; display: grid; justify-items: start; gap: 2px; background: #fff; border-radius: 8px; overflow: hidden; padding: 0 5% 5%; box-shadow: 0 1px 2px rgba(0,0,0,.12); font: 400 max(9px, calc(3.2 * var(--mm)))/1.35 var(--sans) }
.sf-banner { display: block; width: 110%; margin: 0 -5%; height: max(40px, calc(18 * var(--mm))); background: linear-gradient(120deg, #3a2618, #6b4a2f 50%, #2b2d31) }
.sf-avatar { width: max(36px, calc(14 * var(--mm))); height: auto; margin-top: calc(-8 * var(--mm)); background: #fff; border-radius: 10px; padding: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.2) }
.sf-card b { font-size: 1.5em; margin-top: 4px }
.sf-card > span { color: #555 }
.sf-btn { margin-top: 8px; background: #0a66c2; color: #fff; text-decoration: none; padding: 5px 14px; border-radius: 999px; font-weight: 700 }
.sf-card small { color: #777; margin-top: 4px }
.cover .dp { font-size: calc(19.5 * var(--mm)); letter-spacing: -.01em }
