@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root { --page: #F7F8F6; --ink: #252A27; --muted: #636B65; --line: #D6DBD5; --accent: #49664F; --panel: #EEF1ED; color-scheme: light; font-family: 'DM Sans', sans-serif; color: var(--ink); background: var(--page); }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 10; padding: 12px; background: var(--page); }
.skip-link:focus { top: 12px; }
.site { min-height: 100vh; background: var(--page); color: var(--ink); padding: 0 6vw; }
.header, main, footer { max-width: 1320px; margin-inline: auto; }
.header { min-height: 110px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.identity { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.identity small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 4px; }
nav { display: flex; gap: 30px; font-size: 12px; }
nav a { padding: 10px 0; }
nav a:hover, .text-link:hover { color: var(--accent); }
.introduction { grid-column: 1; grid-row: 1; padding: 52px 0 35px; }
h1, h2, h3, p { margin-top: 0; }
h1, .panel h2 { font-family: 'Manrope', sans-serif; letter-spacing: -2.5px; }
h1 { font-size: clamp(40px, 4.5vw, 64px); line-height: 1.1; font-weight: 500; margin-bottom: 0; }
h1 > span, .panel h2 > span { color: var(--accent); }
#weather-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.5; }
#weather-heading .weather-heading-icon { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 23px; line-height: 1; }
#weather-heading .weather-heading-condition { color: var(--ink); }
#weather-heading .weather-heading-detail { color: var(--muted); font-size: 14px; letter-spacing: 0; }
main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr); grid-template-rows: auto 1fr; align-items: start; }
.workspace-layout { display: contents; }
.workspace { grid-column: 1; grid-row: 2; min-width: 0; container-type: inline-size; }
.room-stage { height: 490px; position: relative; overflow: hidden; isolation: isolate; }
.world { --scale: .91; position: absolute; width: 400px; height: 400px; left: 50%; top: 62%; transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg) scale3d(var(--scale), var(--scale), var(--scale)); transform-style: preserve-3d; }
.room-shadow { width: 60%; max-width: 360px; height: 20%; position: absolute; top: 56%; left: 50%; transform: translateX(-50%); border-radius: 50%; background: #252A27; filter: blur(20px); opacity: .15; }
.box { position: absolute; width: var(--w); height: var(--h); transform: translate3d(var(--x), var(--y), var(--z)); transform-style: preserve-3d; --top: #e4c09b; --front: #d0aa85; --right: #b88c69; }
.face { position: absolute; display: block; overflow: hidden; transition: box-shadow .2s; }
.top { width: var(--w); height: var(--h); background: var(--top); transform: translateZ(var(--d)); }
.front { width: var(--w); height: var(--d); background: var(--front); top: var(--h); transform: translateZ(var(--d)) rotateX(-90deg); transform-origin: top left; }
.right { width: var(--d); height: var(--h); background: var(--right); left: var(--w); transform: translateZ(var(--d)) rotateY(90deg); transform-origin: top left; }
a.box { cursor: pointer; }
a.box:hover .face, a.box:focus-visible .face { box-shadow: inset 0 0 0 2px var(--accent); }
a.box:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.floor-material { --top: #d9c7ae; --front: #bba88d; --right: #a6937a; }
.floor .top { background: repeating-linear-gradient(90deg, transparent 0 49px, #ad997835 49px 50px), repeating-linear-gradient(0deg, #d9c7ae 0 79px, #cbb89e 79px 80px); }
.wall-material { --top: #f1e9d9; --front: #e5deca; --right: #c7cfbd; }
.wall-left .right { background: linear-gradient(90deg, #bcc8b5, #c7cfbd 70%); }
.wall-back .front { background: linear-gradient(110deg, #e9e1cf, #d9d2bd); }
.wall-print { position: absolute; left: 35px; top: 30px; width: 77px; height: 96px; border: 3px solid #424a3c; padding: 10px 7px; background: #f0ebdd; box-shadow: 3px 3px 0 #bdb9a4; color: #555e49; }
.wall-print > span { font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1.12; letter-spacing: -1px; font-weight: 800; }
.wall-print small { display: block; font-size: 3px; letter-spacing: .8px; margin-top: 9px; }
.window { position: absolute; left: 265px; top: 25px; width: 104px; height: 112px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; padding: 5px; background: #f8f3e9; border: 4px solid #acb29f; box-shadow: 4px 5px 0 #b7b9a750; }
.window i { background: linear-gradient(155deg, #b4d6d6, #deebd9); }
.window::after { content: ''; position: absolute; inset: 60% 4px 4px; background: linear-gradient(155deg, transparent 38%, #a8bbaa 39% 63%, #c4d1b7 64%); opacity: .6; }
.wood-material { --top: #ba8b5f; --front: #a7784f; --right: #8c603f; }
.desk .top { background: repeating-linear-gradient(90deg, #ba8b5f 0 30px, #b4875d 31px 32px); }
.desk .front { box-shadow: inset 0 2px #d0a778; }
.metal-material { --top: #555a52; --front: #40473e; --right: #30372e; }
.monitor-material { --top: #424a40; --front: #303a32; --right: #222e28; }
.monitor .front { padding: 4px; border-radius: 3px; }
.screen { display: block; width: 100%; height: 100%; border-radius: 1px; }
.code-editor { background: #2d353b; color: #d3c6aa; font: 4px/1.6 monospace; overflow: hidden; }
.editor-bar { display: flex; align-items: center; gap: 2px; height: 9px; padding: 0 3px; background: #232a2e; }
.editor-bar i { width: 2px; height: 2px; background: #859289; border-radius: 50%; }
.editor-bar i:first-child { background: #e67e80; }
.editor-bar i:nth-child(2) { background: #dbbc7f; }
.editor-bar i:nth-child(3) { background: #a7c080; }
.editor-bar > span { margin-left: 9px; font-size: 3px; }
.editor-layout { display: flex; height: calc(100% - 16px); }
.editor-sidebar { width: 24px; flex-shrink: 0; padding: 3px 2px; background: #232a2e; color: #859289; font-size: 3px; }
.editor-sidebar > span, .editor-sidebar > b { display: block; white-space: pre; font-weight: 400; }
.editor-code { padding-top: 2px; min-width: 0; }
.editor-code > span { display: block; white-space: pre; }
.editor-code em { display: inline-block; width: 8px; margin-right: 2px; text-align: right; color: #7a8478; font-style: normal; }
.editor-code b { font-weight: 400; }
.syntax-comment { color: #859289; }
.syntax-keyword { color: #e67e80; }
.syntax-string { color: #a7c080; }
.syntax-function { color: #dbbc7f; }
.editor-status { display: flex; justify-content: space-between; height: 7px; padding: 0 3px; background: #343f44; color: #9da9a0; font-size: 3px; }
.editor-cursor { color: #d3c6aa; }
.aluminium-material { --top: #d4d7d8; --front: #a4aaad; --right: #929a9d; }
.macbook-base .top { border-radius: 2px; border: 1px solid #b7bec0; }
.laptop-keys { position: absolute; inset: 3px 3px 12px; background: repeating-linear-gradient(90deg, transparent 0 3px, #bfc6c9 3px 4px), repeating-linear-gradient(0deg, #3c4448 0 3px, #bfc6c9 3px 4px); }
.trackpad { position: absolute; width: 15px; height: 8px; bottom: 2px; left: 13px; border: 1px solid #a6aeb1; border-radius: 1px; }
.macbook-display .front { border: 2px solid #353b3e; border-radius: 2px; background: linear-gradient(135deg, #7799a7, #c5d5d0 50%, #658a7f); }
.macbook-display .front::after { content: 'MacBook'; position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 3px; color: #eef0ee; background: #353b3e; }
.connection-cable { position: absolute; width: 58px; height: 25px; transform: translate3d(121px, 94px, 100px); border: 2px solid #40494b; border-top: 0; border-right: 0; border-radius: 0 0 0 10px; }
.cursor { animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.keyboard-material { --top: #ccc8b8; --front: #ada999; --right: #989586; }
.keys { position: absolute; inset: 3px; background: repeating-linear-gradient(90deg, transparent 0 5px, #ccc8b8 5px 7px), repeating-linear-gradient(0deg, #7a7e71 0 4px, #ccc8b8 4px 6px); border-bottom: 6px solid #b6b5a6; }
.paper-material { --top: #f4ead2; --front: #bfb69f; --right: #dbd1b8; }
.sampler-material { --top: #d5d3cb; --front: #a7a69f; --right: #969890; }
.sampler .top { border: 1px solid #9e9f99; border-radius: 2px; }
.sampler-display { position: absolute; left: 3px; top: 3px; width: 24px; height: 10px; background: #262b29; color: #e57442; font: 3px monospace; padding: 1px 2px; }
.sampler-display span { display: block; font-size: 5px; letter-spacing: 1px; }
.sampler-speaker { position: absolute; right: 3px; top: 3px; width: 13px; height: 10px; background: repeating-linear-gradient(0deg, #525851 0 1px, transparent 1px 2px); }
.sampler-knobs { position: absolute; left: 3px; right: 3px; top: 15px; display: flex; gap: 9px; }
.sampler-knobs i { width: 5px; height: 5px; border-radius: 50%; background: #e47745; box-shadow: 0 1px 0 #9c4629; }
.sampler-knobs i:last-child { background: #565a54; }
.sampler-fader { position: absolute; left: 5px; top: 23px; width: 2px; height: 16px; background: #696c63; }
.sampler-fader::after { content: ''; position: absolute; left: -2px; top: 6px; width: 6px; height: 3px; background: #f1efe6; border: 1px solid #95978d; }
.sampler-pads { position: absolute; left: 15px; right: 3px; top: 23px; bottom: 3px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.sampler-pads i { display: grid; place-items: center; background: #edece3; color: #454b44; border-bottom: 1px solid #9ca094; font: 3px monospace; }
.sampler-pads i:nth-child(3n) { background: #555c54; color: #f2eee2; }
.mug-material { --top: #5b594a; --front: #f0e5cc; --right: #d5cbb4; }
.mug .top { border: 3px solid #f0e5cc; border-radius: 4px; }
.lamp-material { --top: #e3e5df; --front: #c4cac3; --right: #aab4aa; }
.lamp-base .face { border-radius: 50%; }
.lamp-arm-lower { transform: translate3d(var(--x), var(--y), var(--z)) rotateY(27deg); }
.lamp-arm-upper { transform: translate3d(var(--x), var(--y), var(--z)) rotateY(-50deg); }
.lamp-arm .front { border-inline: 1px solid #929f95; }
.lamp-joint .face { border-radius: 50%; }
.lamp-shade .top { border-radius: 50%; }
.lamp-shade .front { clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); border-bottom: 3px solid #f4e6bc; border-radius: 0 0 4px 4px; }
.lamp-shade .right { clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 75%); }
.lamp-light, .lamp-beam { position: absolute; pointer-events: none; opacity: 0; transition: opacity .6s; }
.lamp-light { width: 70px; height: 60px; transform: translate3d(235px, 67px, 100px); background: radial-gradient(ellipse, #ffdfa660, #efbd6c20 45%, transparent 70%); }
.lamp-beam { width: 50px; height: 50px; transform-origin: top left; transform: translate3d(248px, 83px, 149px) rotateX(-90deg); clip-path: polygon(45% 0, 70% 0, 100% 100%, 0 100%); background: linear-gradient(#ffe7b32b, #ffe7b308); }
.chair-material { --top: #373e40; --front: #252b2e; --right: #1b2124; }
.chair-seat .top { border-radius: 9px; box-shadow: inset 0 0 0 3px #4a535540; }
.chair-back { transform: translate3d(var(--x), var(--y), var(--z)) rotateX(-8deg); }
.chair-back .front { border-radius: 12px 12px 9px 9px; border: 2px solid #20282b; background: repeating-linear-gradient(90deg, transparent 0 3px, #4a535550 3px 4px), repeating-linear-gradient(0deg, #303a3d 0 3px, #475153 3px 4px); }
.chair-back .top { border-radius: 4px; }
.chair-back .right { border-radius: 8px; }
.chair-arm .face { border-radius: 5px; }
.chair-pedestal, .chair-foot, .chair-arm-support { --top: #41494c; --front: #2b3336; --right: #1e2528; }
.cabinet-material { --top: #d4cbb4; --front: #d4cbb4; --right: #bbb59e; }
.cabinet .front i { display: block; height: 26px; border-bottom: 1px solid #b0aa94; position: relative; }
.cabinet .front i::after { content: ''; position: absolute; width: 12px; height: 2px; background: #8d937f; top: 10px; left: 18px; }
.rug-material { --top: #b8bfaa; --front: #a1aa92; --right: #99a58c; }
.rug .top { border: 5px solid #cbd0bd; background: repeating-linear-gradient(0deg, #b5bfa6 0 8px, #c2c8b1 8px 10px); outline: 1px solid #9ca98f; }
.book-green { --top: #73816c; --front: #65765e; --right: #eee5cd; }
.book-paper { --top: #eee5cd; --front: #dacaae; --right: #e5dcc6; }
.book-orange { --top: #c08762; --front: #af7654; --right: #e8dfca; }
.book-charcoal { --top: #596152; --front: #434b3e; --right: #ded7c1; }
.book .front { border-top: 2px solid #dcd2b5; border-bottom: 2px solid #dcd2b5; }
.pot-material { --top: #574f3d; --front: #c18f71; --right: #a9795e; }
.plant-pot .top { border: 4px solid #c89b7c; }
.stem-material { --top: #597249; --front: #597249; --right: #435d37; }
.leaf-material { --top: #819667; --front: #637d50; --right: #49673d; }
.plant-leaf .face { border-radius: 6px; }
.envelope .top { border: 1px solid #c4b99b; }
.envelope-fold { display: block; text-align: center; border-top: 10px solid #e4d9be; font-size: 8px; color: #8c9a75; line-height: 12px; }
.speaker-material { --top: #4b5347; --front: #333d32; --right: #263023; }
.speaker .front i { width: 15px; height: 15px; display: block; margin: 7px auto; border-radius: 50%; background: #212b21; border: 2px solid #626952; }
.speaker .front i + i { width: 19px; height: 19px; }
.profile { grid-column: 2; grid-row: 1 / 3; min-width: 0; margin: 52px 0 24px 48px; }
.panel { padding: 0; background: transparent; scroll-margin-top: 20px; }
@media screen {
  .profile:not([data-active]) .panel:not(#about) { display: none; }
  .profile:not([data-active]) .panel:not(#about):target { display: block; }
  .profile:not([data-active]):has(.panel:not(#about):target) #about { display: none; }
  .profile[data-active] .panel { display: none; }
  .profile[data-active] .panel.is-active { display: block; }
}
.panel:focus { outline: none; }
.panel h2 { font-size: 34px; letter-spacing: -1.2px; line-height: 1.25; font-weight: 500; margin-bottom: 23px; }
.panel > p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.panel strong { color: var(--ink); font-weight: 500; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 25px 0; }
.stack > span { font-size: 11px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.profile-links { display: flex; gap: 21px; }
.text-link { display: inline-block; font-size: 14px; margin-top: 12px; }
.project-link { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 22px 0; }
.project-number { font-family: monospace; color: var(--muted); font-size: 10px; }
.project-link strong { display: block; font-size: 16px; }
.project-link small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 1px solid var(--line); padding: 0 0 19px 16px; position: relative; }
.timeline li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; position: absolute; left: -3px; top: 3px; background: var(--accent); }
.timeline small { font-size: 11px; letter-spacing: .5px; color: var(--muted); }
.timeline h3 { font-size: 16px; font-weight: 500; margin: 7px 0 4px; }
.timeline h3 span { font-size: 13px; color: var(--muted); }
.timeline p, details p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
details { margin: 9px 0 14px; padding-top: 13px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-size: 14px; }
details p { margin-top: 12px; }
.contact-link { display: flex; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; padding: 18px 0; border-top: 1px solid var(--line); font-size: 14px; }
.contact-link:hover { color: var(--accent); }
footer { padding: 25px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 9px; }
.local-weather-control { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 450px; }
#use-weather { font: inherit; font-size: 11px; color: var(--muted); background: none; border: none; padding: 5px 0; cursor: pointer; }
#use-weather:hover { color: var(--accent); }
#use-weather:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#use-weather:disabled { opacity: .6; cursor: wait; }
.weather-picker { position: relative; margin: 0; padding: 0; border: 0; }
.weather-picker summary { color: var(--muted); font-size: 11px; }
.weather-picker-options { position: absolute; right: 0; bottom: calc(100% + 14px); width: 235px; padding: 18px; background: var(--page); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 8px 30px #252a2710; z-index: 10; display: grid; gap: 10px; font-size: 12px; }
.weather-picker select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--page); color: var(--ink); font: inherit; }
.weather-night { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.weather-night input { accent-color: var(--accent); }
#london-weather { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }
#london-weather:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.weather-picker select:focus-visible, .weather-night input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) { .weather-picker-options { right: auto; left: 0; } }
@media (min-width: 1500px) { .room-stage { height: 560px; } .world { --scale: 1.1; } }
@media (max-width: 1050px) { .site { padding-inline: 4vw; } .profile { margin-left: 24px; } }
@media (max-width: 760px) { .header { min-height: 95px; flex-wrap: wrap; padding-block: 20px; gap: 18px; } nav { gap: 23px; font-size: 11px; } .introduction { display: block; padding: 35px 0 28px; } h1 { font-size: 46px; } main { display: block; } .workspace-layout { display: contents; } .profile { margin: 32px 0 40px; } .panel h2 { font-size: 30px; } footer { flex-wrap: wrap; line-height: 1.7; } }
@container (max-width: 620px) { .world { --scale: .91; } .room-stage { height: 490px; } }
@container (max-width: 550px) { .world { --scale: .8; } .room-stage { height: 410px; } }
@container (max-width: 470px) { .world { --scale: .68; } .room-stage { height: 350px; } }
@container (max-width: 400px) { .world { --scale: .58; } .room-stage { height: 300px; } }
@container (max-width: 340px) { .world { --scale: .49; } .room-stage { height: 260px; } }
@container (max-width: 285px) { .world { --scale: .44; } .room-stage { height: 240px; } }
@media (max-width: 360px) { nav { gap: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { :root { --ink: #000; --muted: #444; --line: #ccc; --accent: #49664F; --page: #fff; color-scheme: light; } .site { padding: 0; background: white; color: black; } .workspace, .introduction, nav, .skip-link, footer { display: none; } main, .workspace-layout { display: block; } .profile { margin: 20px 0; } .profile .panel:not(#about), .profile #about, .profile:has(.panel:target) #about { display: block; break-inside: avoid; background: white; margin-bottom: 20px; } }

/* The CSS room remains available without WebGL or JavaScript. */
.room-renderer { position: absolute; inset: 0; width: 100%; height: 100%; }
.three-room > .world, .three-room > .room-shadow { display: none; }
.room-hotspot { position: absolute; z-index: 2; transform: translate(-50%, -50%); border-radius: 4px; }
.room-hotspot span { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding: 5px 9px; background: var(--ink); color: var(--page); font-size: 12px; opacity: 0; pointer-events: none; }
.room-hotspot:hover span, .room-hotspot:focus-visible span { opacity: 1; }
.room-hotspot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

button.room-hotspot, button.lamp-shade { appearance: none; -webkit-appearance: none; box-shadow: none; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }

.identity .identity-name { margin: 0; font: inherit; letter-spacing: inherit; line-height: inherit; }
#weather-heading { margin-bottom: 0; }
