/* All alternate styling is gated. No normal-page selectors are overridden. */
html[data-theme="retro"] { --bg:#070b19; --text:#edf5ed; --muted:#abbad0; --accent:#70edf0; --navy:#131b39; color-scheme:dark; }
html[data-theme="retro"] body { font-family:'Courier New',ui-monospace,monospace; background-color:var(--bg); background-image:linear-gradient(#708cdb08 1px,transparent 1px),linear-gradient(90deg,#708cdb08 1px,transparent 1px); background-size:48px 48px; }
html[data-theme="retro"] :is(h1,h2,h3) { font-family:'Courier New',monospace; font-weight:700; letter-spacing:-.045em; }
html[data-theme="retro"] :is(h1,h2,.hero-role) { text-transform:uppercase; }
html[data-theme="retro"] header { background:#080e23f5; border-bottom:1px solid #70edf070; box-shadow:0 4px 0 #1c2545; }
html[data-theme="retro"] nav { gap:22px; }
html[data-theme="retro"] nav a { font-size:12px; letter-spacing:.04em; padding:6px 4px; }
html[data-theme="retro"] nav a::before { content:'[ '; color:#ef7cbb; }
html[data-theme="retro"] nav a::after { content:' ]'; position:static; background:none; color:#ef7cbb; }
html[data-theme="retro"] nav a:is(:hover,[aria-current]) { background:#70edf0; color:#071225; }
html[data-theme="retro"] nav a:is(:hover,[aria-current])::before,html[data-theme="retro"] nav a:is(:hover,[aria-current])::after { color:#071225; }
html[data-theme="retro"] .hero-top { border-bottom:1px dashed #557098; padding-bottom:16px; color:#70edf0; }
html[data-theme="retro"] .hero-intro { border-left:3px solid #ee71bd; padding-left:22px; }
html[data-theme="retro"] .hero h1 { font-size:clamp(32px,4.9vw,74px); text-shadow:2px 2px 0 #354682; }
html[data-theme="retro"] .hero h1 span:first-child { color:#70edf0; }
html[data-theme="retro"] .hero-position .hero-role { color:#ffcf91; font-size:clamp(20px,2.1vw,29px); font-weight:700; letter-spacing:.02em; }
html[data-theme="retro"] .hero-role::after { content:'_'; color:#70edf0; animation:retro-cursor 1.4s steps(1) 6; }
html[data-theme="retro"] .hero-bottom { color:#b5c6e5; }
html[data-theme="retro"] .light-bloom { background:radial-gradient(ellipse,#254ca94d, #48266829 40%,transparent 70%); }
html[data-theme="retro"] .bloom-two { background:radial-gradient(ellipse,#892b8033,transparent 65%); }
html[data-theme="retro"] .section-heading { border-top:1px solid #5f78a7; padding-top:20px; }
html[data-theme="retro"] .eyebrow { color:#70edf0; letter-spacing:.12em; }
html[data-theme="retro"] .section-heading h2::before { content:'> '; color:#ee71bd; }
html[data-theme="retro"] :is(.reel,.project-card,.portrait,.detail-media) { border:1px solid #6886b9; box-shadow:4px 4px 0 #263a62; border-radius:2px; }
html[data-theme="retro"] .project-card { background:#0c142a; }
html[data-theme="retro"] .project-caption { padding:18px; border-top:3px double #6886b9; }
html[data-theme="retro"] .project-caption h3 { color:#f0f6ee; }
html[data-theme="retro"] .project-caption>span { color:#70edf0; text-transform:uppercase; letter-spacing:.05em; }
html[data-theme="retro"] .project-number { background:#09112aed; color:#70edf0!important; padding:5px 9px; border:1px solid #70edf070; text-shadow:none!important; }
html[data-theme="retro"] .project-number::before { content:'PROJECT_'; }
html[data-theme="retro"] .project-open { background:#09112a; padding:3px 10px; color:#70edf0!important; }
html[data-theme="retro"] .project-button:is(:hover,:focus-visible) .project-caption { border-top-color:#ee71bd; background:#17203c; }
html[data-theme="retro"] .project-button:hover .project-caption h3 { animation:retro-tracking .3s 1; }
html[data-theme="retro"] :is(.project-channel,.showreel-play,.preview-toggle,.channel-cta,#brand-toggle,.close,.menu,.send) { border:1px solid #70edf09c; border-radius:0; background:#111c35; color:#70edf0; box-shadow:2px 2px 0 #304664; }
html[data-theme="retro"] .showreel-open { font-family:'Courier New',monospace; }
html[data-theme="retro"] .current { background:#0c1328ed; border-block:1px solid #6886b9; }
html[data-theme="retro"] .current h2 { color:#d7e5ff; }
html[data-theme="retro"] .brand-lane { border-block:1px dotted #38516e; }
html[data-theme="retro"] .client-campaign { font-family:inherit; color:#b1c5e5; }
html[data-theme="retro"] .portrait figcaption { background:#0b142cef; border-top:1px solid #70edf0; }
html[data-theme="retro"] .skills { padding:20px; border:1px solid #53698c; background:#10192d; box-shadow:4px 4px 0 #263a62; }
html[data-theme="retro"] .skills h3 { color:#70edf0; }
html[data-theme="retro"] .experience-row { border-color:#496080; padding-inline:14px; }
html[data-theme="retro"] .experience-row:nth-child(odd) { background:#12203b66; }
html[data-theme="retro"] .experience-row h3 { color:#d8e8ff; }
html[data-theme="retro"] .credentials>div { border-top:3px double #6886b9; padding-top:22px; }
html[data-theme="retro"] .recognition-badge { border-radius:0; color:#ffdc93; background:#34281080; border-color:#bc954b; }
html[data-theme="retro"] .contact h2 { color:#70edf0; text-shadow:3px 3px 0 #303966; }
html[data-theme="retro"] .period { color:#ee71bd; }
html[data-theme="retro"] :is(.email,.text-link) { overflow-wrap:anywhere; }
html[data-theme="retro"] .text-link:hover { color:#70edf0; text-decoration:underline; text-underline-offset:5px; }
html[data-theme="retro"] :is(input,textarea) { padding:12px; border:1px solid #53698c; background:#0b1428; caret-color:#70edf0; }
html[data-theme="retro"] label { color:#b9cbea; }
html[data-theme="retro"] .send { padding:15px; }
html[data-theme="retro"] footer { border-color:#53698c; padding-bottom:70px; background:#091024; }
html[data-theme="retro"] dialog { background:#080e20; font-family:'Courier New',monospace; border:1px solid #53698c; }
html[data-theme="retro"] .detail-title { color:#70edf0; }
html[data-theme="retro"] .detail-meta { padding-top:22px; border-top:3px double #53698c; }
html[data-theme="retro"] .detail-meta h3 { color:#ee95ca; }
html[data-theme="retro"] :is(a,button,input,textarea):focus-visible { outline-color:#ffcf91; }
.retro-status { position:fixed; bottom:16px; right:20px; z-index:30; padding:10px 13px; background:#0b1529; color:#70edf0; border:1px solid #70edf0; box-shadow:3px 3px 0 #283c60; font:11px/1.4 'Courier New',monospace; letter-spacing:.06em; cursor:pointer; }
.retro-status:hover { background:#70edf0; color:#081024; }
/* Display-only reboot. View Transition snapshots include the current viewport and dialog. */
html[data-retro-transition]::view-transition { background:#000; pointer-events:none; }
html[data-retro-transition]::view-transition-group(root) { animation:none; }
html[data-retro-transition]::view-transition-image-pair(root) { isolation:isolate; }
html[data-retro-transition]::view-transition-old(root),
html[data-retro-transition]::view-transition-new(root) { mix-blend-mode:normal; object-fit:cover; transform-origin:center; }
html[data-retro-transition="boot"]::view-transition-old(root) { animation:crt-off 450ms linear both; }
html[data-retro-transition="boot"]::view-transition-new(root) { animation:none; opacity:0; }
html[data-retro-transition="exit"]::view-transition-old(root) { animation:crt-off 380ms linear both; }
html[data-retro-transition="exit"]::view-transition-new(root) { animation:none; opacity:0; }
html[data-retro-transition="fade"]::view-transition-old(root) { animation:signal-fade-out 280ms both; }
html[data-retro-transition="fade"]::view-transition-new(root) { animation:signal-fade-in 280ms both; }
@keyframes crt-off {
 0%,25% { transform:scale(1); filter:none; opacity:1; }
 29% { transform:translateX(1px); filter:drop-shadow(2px 0 #ef71a9) drop-shadow(-2px 0 #67e9ef); }
 34% { transform:scale(1); filter:none; }
 70% { transform:scale(1,.006); filter:brightness(4); }
 80% { transform:scale(.98,.003); filter:brightness(8) drop-shadow(0 0 8px #a3f4ff); opacity:1; }
 96% { transform:scale(.003,.003); filter:brightness(12); opacity:1; }
 100% { transform:scale(0); opacity:0; }
}
@keyframes crt-on {
 0% { transform:scale(.003,.003); filter:brightness(8); opacity:0; }
 12% { transform:scale(.8,.004); filter:brightness(5); opacity:1; }
 26% { transform:scale(1,.007); filter:brightness(3); }
 75% { transform:scale(1,1); filter:brightness(1.12) drop-shadow(1px 0 #67e9ef); }
 88% { filter:brightness(.97); }
 100% { transform:none; filter:none; opacity:1; }
}
@keyframes signal-fade-out { to { opacity:0; } }
@keyframes signal-fade-in { from { opacity:0; } to { opacity:1; } }
.retro-transmission { position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0; border:0; z-index:2147483647; display:grid; place-items:center; pointer-events:auto; background:transparent; color:#d6eee3; }
.retro-transmission::before,.retro-transmission::after { content:''; position:absolute; inset:0; pointer-events:none; opacity:0; }
.retro-transmission[data-phase="black"],.retro-transmission[data-phase="signal"] { background:#000; }
.retro-system { display:none; width:min(360px,calc(100vw - 48px)); white-space:pre-line; font:12px/1.9 'Courier New',monospace; letter-spacing:.06em; }
.retro-transmission[data-phase="black"] .retro-system,.retro-transmission[data-phase="signal"] .retro-system { display:block; }
.retro-transmission[data-phase="signal"]::before,.retro-transmission[data-phase="reveal"]::before { background:repeating-linear-gradient(0deg,transparent 0 3px,#97d5dd22 3px 4px); animation:signal-static 200ms steps(2) both; }
.retro-transmission[data-phase="signal"]::after { background:linear-gradient(transparent 24%,#62ccd522 24% 25%,transparent 25% 71%,#e176ad1c 71% 73%,transparent 73%); animation:signal-static 180ms steps(2) both; }
@keyframes signal-static { 0% { opacity:.6; transform:translateX(-2px); } 40% { opacity:.35; transform:translate(2px,3px); } 80% { opacity:.5; transform:translateY(-2px); } 100% { opacity:0; transform:none; } }
/* Older browsers retain a quick full-screen shutter instead of an abrupt theme swap. */
@supports not (view-transition-name:root) {
 .retro-transmission[data-phase="collapse"] { animation:shutter-close 300ms both; background:#000; }
 .retro-transmission[data-phase="reveal"] { animation:shutter-open 350ms both; background:#000; }
 .retro-transmission[data-phase="fade"] { background:#000; animation:signal-fade-in 120ms both; }
}
@keyframes shutter-close { from { clip-path:inset(50% 0); } to { clip-path:inset(0); } }
@keyframes shutter-open { from { clip-path:inset(0); } to { clip-path:inset(50% 0); } }
@keyframes retro-tracking { 35% { text-shadow:1px 0 #70edf0,-1px 0 #ee71bd; } 100% { text-shadow:none; } }
@keyframes retro-cursor { 50% { opacity:0; } }
@media(max-width:760px) {
 html[data-theme="retro"] nav { background:#080e23; }
 html[data-theme="retro"] .hero-intro { padding-left:12px; }
 html[data-theme="retro"] .hero h1 { font-size:clamp(23px,6.1vw,44px); letter-spacing:-.055em; }
 html[data-theme="retro"] .hero-position { flex-wrap:wrap; gap:12px; }
 html[data-theme="retro"] .project-caption { padding:12px; }
 html[data-theme="retro"] .skills { padding:14px; gap:14px; }
 html[data-theme="retro"] .current h2 { font-size:29px; overflow-wrap:anywhere; }
 .retro-status { right:12px; bottom:12px; font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
 .retro-transmission::before { display:none; }
 .retro-transmission,.retro-system { animation:none; transition:none; }
 html[data-theme="retro"] *,html[data-theme="retro"] *::after { animation:none!important; }
}

@media(prefers-reduced-motion:reduce) {
 html[data-retro-transition]::view-transition-old(root) { animation:signal-fade-out 280ms both!important; }
 html[data-retro-transition]::view-transition-new(root) { animation:signal-fade-in 280ms both!important; }
 .retro-transmission::before,.retro-transmission::after { display:none; }
}

html[data-crt-blank] { background:#000; }
html[data-crt-blank] body { visibility:hidden; }
html[data-crt-blank] .retro-transmission { visibility:visible; }
html[data-retro-transition="reveal"]::view-transition-old(root) { animation:none; opacity:0; }
html[data-retro-transition="reveal"]::view-transition-new(root) { animation:crt-on 350ms cubic-bezier(.16,.8,.25,1) both; }

html[data-retro-transition] { background:#000; }
html[data-retro-transition] body * { animation-play-state:paused!important; }
html[data-retro-transition] .retro-transmission::before,html[data-retro-transition] .retro-transmission::after { animation-play-state:running!important; }
