:root {
  --ink: #121a2a;
  --black: #151616;
  --red: #b31217;
  --red-bright: #d20b18;
  --paper: #f7f8fa;
  --line: #dfe3e8;
  --muted: #697487;
  --display: "Outfit", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

@property --reveal-radius {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 0; margin: 0; overflow-x: hidden; color: var(--ink); background: #fff; font-family: var(--display); -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { color: #fff; background: var(--red); }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 15px; color: #fff; background: #111; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.portfolio-portal { position: fixed; right: 18px; bottom: 18px; z-index: 180; display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 8px 14px 8px 10px; border: 2px solid rgba(255,255,255,.22); border-radius: 14px; color: #fff; background: #111b2d; box-shadow: 0 8px 0 var(--red), 0 15px 30px rgba(8,13,24,.24); font-size: .78rem; font-weight: 800; letter-spacing: .04em; line-height: 1; text-decoration: none; text-transform: uppercase; transition: transform .2s, box-shadow .2s, background .2s; }
.portfolio-portal:hover { background: #1b2941; box-shadow: 0 11px 0 var(--red), 0 18px 34px rgba(8,13,24,.3); transform: translateY(-3px); }
.portfolio-portal svg { width: 35px; height: 35px; flex: none; color: #e21a24; }
.portfolio-portal span { white-space: nowrap; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: 52px; color: #949baa; border-bottom: 1px solid transparent; transition: color .3s, background .3s, border-color .3s, box-shadow .3s; }
.site-header.is-dark { color: #9fa5b1; background: rgba(20,21,21,.98); border-color: rgba(255,255,255,.08); box-shadow: 0 2px 15px rgba(0,0,0,.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(1200px, calc(100% - 100px)); height: 100%; margin: 0 auto; }
.brand { color: #f1f2f4; font-size: 1.2rem; font-style: italic; font-weight: 800; letter-spacing: -.06em; text-decoration: none; text-shadow: 0 0 18px rgba(210,11,24,.22); }
.site-header:not(.is-dark) .brand { color: #fff; }
.brand em { color: red; font-style: italic; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { position: relative; padding-block: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.site-header nav a::after { content: ""; position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; background: var(--red-bright); transform: scaleX(0); transition: transform .25s; }
.site-header nav a:hover::after, .site-header nav a.is-active::after { transform: scaleX(1); }
.nav-theme { display: flex; align-items: center; padding-left: 7px; border-left: 1px solid rgba(255,255,255,.18); }
.nav-theme-toggle { display: grid; place-items: center; height: 31px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #e8ecf2; background: rgba(17,24,39,.56); transition: color .2s,background .2s,transform .2s,box-shadow .2s; }
.nav-theme-toggle:hover { color: #111; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.28); transform: translateY(-2px); }
.nav-theme-toggle { grid-template-columns: 13px auto; gap: 5px; width: auto; padding: 0 9px; cursor: pointer; }
.nav-theme-toggle span { font-size: .8rem; }
.nav-theme-toggle small { font-family: var(--mono); font-size: .45rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.verse-transition { position: fixed; inset: 0; z-index: 25000; pointer-events: none; background: radial-gradient(circle at 76% 16%,#303638 0 4%,transparent 4.5%),repeating-conic-gradient(from 8deg at 88% 0,#010202 0 9deg,#121617 10deg 12deg,#010202 13deg 22deg); clip-path: circle(0 at 88% 0); animation: venom-takeover .9s cubic-bezier(.72,0,.2,1) both; }
.verse-transition.is-release { background: radial-gradient(circle at 76% 16%,#fff 0 3%,transparent 3.5%),repeating-conic-gradient(from 8deg at 88% 0,#f8f8f6 0 9deg,#d9dde0 10deg 11deg,#f8f8f6 12deg 22deg); }
@keyframes venom-takeover { 0% { clip-path: circle(0 at 88% 0); opacity: 1; } 58% { clip-path: circle(150vmax at 88% 0); opacity: 1; } 100% { clip-path: circle(150vmax at 88% 0); opacity: 0; } }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 8px; color: inherit; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }

.hero { --reveal-x: 50%; --reveal-y: 36%; --reveal-radius: 0px; position: relative; height: 100vh; min-height: 720px; overflow: hidden; background: #f8f8f6; isolation: isolate; cursor: crosshair; }
.hero-mask-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-real-layer { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: #f8f8f6; -webkit-mask-image: radial-gradient(circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y), #000 0 56%, rgba(0,0,0,.9) 68%, rgba(0,0,0,.38) 82%, transparent 100%); mask-image: radial-gradient(circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y), #000 0 56%, rgba(0,0,0,.9) 68%, rgba(0,0,0,.38) 82%, transparent 100%); transition: --reveal-radius .28s ease-out; }
.hero.is-revealing { --reveal-radius: clamp(92px, 7.2vw, 132px); }
.hero-real-layer img { position: absolute; bottom: 0; left: 50%; width: auto; height: 112%; transform: translateX(-50%); }
.hero-eye-response { --eye-x: 0px; --eye-y: 0px; --eye-squint: 1; position: absolute; top: 34%; left: 50%; z-index: 0; display: flex; justify-content: space-between; width: clamp(270px, 24vw, 350px); height: 118px; pointer-events: none; transform: translate(-50%, -50%) translate(var(--eye-x), var(--eye-y)); opacity: 0; filter: drop-shadow(0 0 12px rgba(210,11,24,.65)); transition: opacity .22s, transform .18s ease-out; }
.hero-eye-response i { width: 38%; height: 100%; background: radial-gradient(circle at 50% 40%, #fff 0 17%, #d9e5e8 31%, #eff5f6 48%, #d20b18 51% 56%, #111827 59% 100%); box-shadow: inset 0 0 0 4px rgba(9,16,29,.92), 0 0 20px rgba(210,11,24,.45); transform: scaleY(var(--eye-squint)) rotate(-7deg); clip-path: polygon(4% 15%, 97% 0, 77% 89%, 40% 100%, 13% 72%); transition: transform .18s ease-out, filter .18s; }
.hero-eye-response i:last-child { transform: scaleY(var(--eye-squint)) scaleX(-1) rotate(-7deg); }
.hero.spider-sense-active .hero-eye-response { opacity: .62; }
.hero.spider-sense-active .hero-eye-response i { filter: brightness(1.3); animation: eye-charge .55s ease-out both; }
@keyframes eye-charge { 0% { scale: .72; opacity: 0; } 55% { scale: 1.08; opacity: 1; } 100% { scale: 1; } }
.corner-web { position: absolute; z-index: 2; width: clamp(230px, 15vw, 290px); height: auto; opacity: .57; pointer-events: none; animation: web-pulse 7s ease-in-out infinite alternate; }
.corner-web-top { top: -36px; left: -36px; }
.corner-web-bottom { right: -45px; bottom: -58px; transform: rotate(180deg); animation-direction: alternate-reverse; }
@keyframes web-pulse { from { scale: .92; opacity: .48; } to { scale: 1.07; opacity: .64; } }
.hero-copy { position: absolute; top: 40%; left: 5%; z-index: 4; width: 410px; }
.hero-kicker { margin: 0 0 20px; color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(3.5rem, 4vw, 4.75rem); font-style: italic; font-weight: 800; letter-spacing: -.065em; line-height: .9; text-transform: uppercase; text-shadow: 5px 5px 0 var(--red-bright); }
.hero h1 span { display: block; }
.hero-socials { position: relative; display: flex; align-items: center; gap: 11px; width: max-content; margin-top: 30px; padding: 0 3px; }
.hero-socials::before { content: ""; position: absolute; right: 2px; left: 2px; top: 50%; z-index: -1; height: 1px; background: repeating-linear-gradient(90deg,rgba(179,18,23,.6) 0 5px,transparent 5px 9px); }
.hero-socials a { position: relative; display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid rgba(18,26,42,.17); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: 0 8px 18px rgba(14,22,37,.12); text-decoration: none; transition: color .22s,background .22s,border-color .22s,transform .22s,box-shadow .22s; }
.hero-socials a::after { content: attr(data-label); position: absolute; top: calc(100% + 9px); left: 50%; padding: 5px 7px; border-radius: 4px; color: #fff; background: #111827; font-family: var(--mono); font-size: .45rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transform: translate(-50%,-5px); visibility: hidden; opacity: 0; transition: opacity .18s,transform .18s,visibility .18s; }
.hero-socials a:hover, .hero-socials a:focus-visible { color: #fff; border-color: var(--red); background: var(--red); box-shadow: 0 10px 22px rgba(179,18,23,.26); transform: translateY(-4px) rotate(-2deg); }
.hero-socials a:hover::after, .hero-socials a:focus-visible::after { transform: translate(-50%,0); visibility: visible; opacity: 1; }
.hero-socials svg { width: 19px; height: 19px; fill: currentColor; }
.hover-note { position: absolute; top: 13%; left: 56%; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 0; color: rgba(18,26,42,.7); font-family: var(--mono); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; transform: translateX(-50%); opacity: 0; transition: opacity .3s; }
.hero:hover .hover-note { opacity: 1; }
.hover-note i { width: 34px; height: 1px; background: var(--red); }

.ticker-cross { position: relative; height: 320px; overflow: hidden; background: #fff; }
.ticker { position: absolute; left: -5%; top: 50%; width: 110%; height: 84px; overflow: hidden; border: 2px solid #161616; box-shadow: 0 11px 18px rgba(0,0,0,.2); transform-origin: center; }
.ticker-red { z-index: 2; color: #fff; background: var(--red); transform: translateY(-52%) rotate(4.3deg); }
.ticker-black { z-index: 1; color: var(--red-bright); background: #111; border-color: var(--red); transform: translateY(-48%) rotate(-4.3deg); }
.ticker-track { display: flex; width: max-content; height: 100%; will-change: transform; }
.ticker-forward { animation: ticker-move 24s linear infinite; }
.ticker-reverse { animation: ticker-move-reverse 28s linear infinite; }
.ticker-group { display: flex; flex: none; align-items: center; height: 100%; }
.ticker-group strong { flex: none; padding-inline: 43px; font-size: 1.15rem; font-style: italic; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.ticker-group img { flex: none; width: 62px; height: 62px; object-fit: contain; filter: invert(1); opacity: .78; }
.ticker-black .ticker-group img { filter: none; opacity: .22; }
.ticker-face { flex: none; width: 88px; height: 100%; border-inline: 2px solid rgba(19,19,19,.2); background: url("img/spydy/hero-mask.jpg") center 8% / 170px auto no-repeat, #cd1128; }
@keyframes ticker-move { to { transform: translateX(-50%); } }
@keyframes ticker-move-reverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.section { position: relative; overflow: hidden; border-top: 1px solid #edf0f3; background: var(--paper); isolation: isolate; }
.section::after { content: ""; position: absolute; inset: 0; z-index: 20; visibility: hidden; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 0 9%, rgba(179,18,23,.16) 9.2% 9.65%, transparent 9.9% 17%, rgba(18,26,42,.13) 17.2% 17.55%, transparent 17.8%), repeating-conic-gradient(from -8deg at 50% 50%, rgba(179,18,23,.18) 0 .55deg, rgba(247,248,250,.92) .7deg 18deg); clip-path: circle(130% at 50% 50%); opacity: 1; transition: clip-path .9s cubic-bezier(.75,0,.22,1), opacity .7s .18s, visibility 0s .9s; }
.fx-ready .section:not(.section-awake)::after { visibility: visible; }
.fx-ready .section.section-awake::after { visibility: hidden; clip-path: circle(0 at 50% 50%); opacity: 0; }
.section-inner { position: relative; width: min(1400px, calc(100% - 100px)); height: 100%; margin: 0 auto; }
.soft-web { position: absolute; z-index: -1; opacity: .065; pointer-events: none; }
.section-kicker { margin: 0 0 30px; color: var(--red); font-size: .68rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.section-kicker span { margin-right: 7px; }
.display-title { margin: 0; color: var(--ink); font-size: clamp(2.8rem, 3.55vw, 4.15rem); font-style: italic; font-weight: 800; letter-spacing: -.065em; line-height: .95; text-transform: uppercase; text-shadow: 3px 3px 0 rgba(210,11,24,.6); }
.section-heading { position: relative; z-index: 3; width: max-content; max-width: 80%; margin: 0 auto; text-align: center; }
.section-heading .section-kicker { margin-bottom: 14px; }
.section-heading .display-title { font-size: 3rem; }
.section-heading i { display: block; width: 50px; height: 4px; margin: 16px auto 0; background: var(--red); transform: skewX(-25deg); }

.about { height: 880px; }
.about-web-left { top: 190px; left: -80px; width: 520px; }
.about-web-right { top: 120px; right: 35px; width: 340px; }
.about-copy { position: absolute; top: 100px; left: 0; width: 640px; }
.about-copy .display-title { margin-bottom: 38px; }
.about-copy > p:not(.section-kicker) { width: 590px; margin: 0 0 25px; color: #384357; font-size: 1rem; line-height: 1.75; }
.about-copy strong { color: var(--ink); }
.stack { margin-top: 52px; }
.stack h3 { width: max-content; margin: 0 0 34px; padding-bottom: 10px; border-bottom: 1px solid #cbd1da; color: #657085; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.stack div { display: flex; flex-wrap: wrap; gap: 12px; width: 620px; }
.stack span { padding: 12px 21px; border: 1px solid rgba(179,18,23,.28); border-radius: 10px; color: var(--red); background: #fff; font-size: .72rem; font-weight: 700; box-shadow: 0 3px 4px rgba(20,28,43,.06); }
.about-portrait-wrap { position: absolute; top: 0; right: 175px; width: 350px; height: 100%; }
.portrait-string { position: absolute; top: 0; left: 50%; width: 1px; height: 53%; background: linear-gradient(#d9dde3, var(--red)); transform-origin: top; transition: transform 1s .25s cubic-bezier(.2,.8,.2,1); }
.fx-ready .about:not(.section-awake) .portrait-string { transform: scaleY(0); }
.about-portrait { position: absolute; top: 60%; left: 50%; width: 320px; height: 320px; overflow: hidden; border: 6px solid #fff; border-radius: 50%; box-shadow: 0 0 0 5px var(--red), 0 17px 32px rgba(179,18,23,.17); transform: translate(-50%,-20%); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .45s, transform .55s; }
.about-portrait:hover img { filter: grayscale(0); transform: scale(1.06); }

.skills { height: 690px; padding-top: 72px; background: #fff; }
.skills-web { top: -140px; left: 50%; width: 760px; transform: translateX(-50%); opacity: .055; }
.skill-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; width: 900px; margin: 65px auto 0; }
.skill-web-map { position: absolute; inset: -34px -42px; z-index: 0; width: calc(100% + 84px); height: calc(100% + 68px); overflow: visible; pointer-events: none; }
.skill-web-map path { fill: none; stroke: rgba(179,18,23,.38); stroke-width: 1.5; stroke-dasharray: 8 7; vector-effect: non-scaling-stroke; opacity: .65; transition: opacity .25s, stroke .25s, stroke-width .25s; animation: skill-web-flow 5s linear infinite; }
.skill-web-map path.web-cross { stroke: rgba(18,26,42,.17); stroke-dasharray: 2 8; }
.skill-web-map path.is-active { stroke: var(--red-bright); stroke-width: 2.6; opacity: 1; filter: drop-shadow(0 0 4px rgba(210,11,24,.7)); }
.fx-ready .skills:not(.section-awake) .skill-web-map path { stroke-dasharray: 900; stroke-dashoffset: 900; }
.skills.section-awake .skill-web-map path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.25s cubic-bezier(.2,.8,.2,1), opacity .25s, stroke .25s; }
@keyframes skill-web-flow { to { stroke-dashoffset: -45; } }
.skill-grid article { position: relative; z-index: 2; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 16px; height: 70px; padding: 0 20px; border: 1px solid #dfe2e7; border-radius: 12px; background: rgba(249,250,251,.94); box-shadow: 0 2px 4px rgba(20,28,43,.08); transition: transform .25s, border-color .25s, box-shadow .25s, opacity .25s; }
.skill-grid article:hover { border-color: rgba(179,18,23,.38); box-shadow: 0 9px 20px rgba(20,28,43,.11); transform: translateY(-3px); }
.skill-grid article.is-network-peer { border-color: rgba(179,18,23,.5); box-shadow: 0 0 0 2px rgba(179,18,23,.08), 0 10px 20px rgba(20,28,43,.1); }
.skill-grid.has-network-focus article:not(.is-network-peer):not(:hover) { opacity: .58; }
.skill-grid article > b { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(179,18,23,.5); }
.skill-grid article div { display: grid; gap: 3px; }
.skill-grid strong { font-size: .83rem; text-transform: uppercase; }
.skill-grid span { color: #929baa; font-size: .54rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.skill-grid em { padding: 5px 13px; border: 1px solid #e1e4e9; border-radius: 999px; color: #485368; background: #fff; font-size: .56rem; font-style: normal; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(20,28,43,.05); }
.skills-spider { position: absolute; top: 62px; right: 4.5%; z-index: 4; width: 155px; height: auto; filter: drop-shadow(0 12px 11px rgba(0,0,0,.13)); animation: hang-travel 5s ease-in-out infinite alternate; }
@keyframes hang-travel { 0% { transform: translate(-10px,-10px) rotate(-1.5deg); } 50% { transform: translate(8px,11px) rotate(1deg); } 100% { transform: translate(18px,-3px) rotate(2deg); } }

.projects { height: 720px; padding-top: 70px; background: #fff; }
.projects-web { top: -60px; right: -70px; width: 590px; opacity: .06; }
.project-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 900px; margin: 34px auto 0; }
.project-grid article { position: relative; min-height: 215px; overflow: hidden; padding: 30px 27px 24px; border: 1px solid #dce1e7; border-radius: 13px; background: rgba(249,250,251,.94); box-shadow: 0 2px 4px rgba(20,28,43,.08); cursor: pointer; transition: transform .28s, box-shadow .28s, border-color .28s, clip-path .75s cubic-bezier(.2,.8,.2,1); }
.project-grid article::before { content: ""; position: absolute; inset: -38%; z-index: 0; background: url("img/spydy/web.png") center / 75% no-repeat; opacity: 0; transform: scale(.45) rotate(-24deg); transition: opacity .35s, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.project-grid article::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 0 rgba(179,18,23,.7); pointer-events: none; transition: box-shadow .35s; }
.project-grid article > h3, .project-grid article > p, .project-grid article > div { position: relative; z-index: 2; }
.project-grid .project-open { position: absolute; z-index: 3; }
.project-grid article:hover::before, .project-grid article.is-web-revealed::before { opacity: .14; transform: scale(1.18) rotate(7deg); }
.project-grid article:hover::after, .project-grid article.is-web-revealed::after { box-shadow: inset 0 0 0 2px rgba(179,18,23,.55); }
.fx-ready .projects:not(.section-awake) .project-grid article { clip-path: polygon(0 0, 3% 0, 0 3%); }
.projects.section-awake .project-grid article { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.projects.section-awake .project-grid article:nth-child(2) { transition-delay: .08s; }
.projects.section-awake .project-grid article:nth-child(3) { transition-delay: .16s; }
.projects.section-awake .project-grid article:nth-child(4) { transition-delay: .24s; }
.project-grid article:hover { border-color: rgba(179,18,23,.34); box-shadow: 0 13px 28px rgba(20,28,43,.12); transform: translateY(-5px); }
.project-grid h3 { max-width: 80%; margin: 0 0 18px; color: var(--ink); font-size: 1.03rem; font-weight: 700; text-transform: uppercase; }
.project-grid p { min-height: 67px; margin: 0; padding-bottom: 20px; border-bottom: 1px solid #e2e5ea; color: #4b566a; font-size: .73rem; line-height: 1.65; }
.project-grid article > div { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.project-grid article > div span { padding: 5px 11px; border: 1px solid #dce1e7; border-radius: 5px; color: #536076; background: #fff; font-size: .52rem; font-weight: 700; text-transform: uppercase; }
.project-open { position: absolute; top: 24px; right: 24px; color: #8d98aa; font-size: 1.1rem; text-decoration: none; }
.project-open:hover { color: var(--red); }
.projects-spider { position: absolute; bottom: -12px; left: 10px; z-index: 4; width: 108px; height: auto; filter: drop-shadow(0 10px 11px rgba(0,0,0,.16)); animation: stand-bob 3.6s ease-in-out infinite; }
@keyframes stand-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-19px); } }

.contact { height: 655px; padding-top: 63px; background: #fff; }
.contact-web { bottom: -165px; left: -105px; width: 610px; opacity: .055; }
.contact-form { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 21px 18px; width: 680px; margin: 41px auto 0; padding: 34px; border: 1px solid #dce1e7; border-radius: 14px; background: #f8f9fa; box-shadow: 0 3px 7px rgba(20,28,43,.08); isolation: isolate; overflow: hidden; }
.contact-form::before { content: ""; position: absolute; inset: -48%; z-index: 5; background: url("img/spydy/web.png") center / 62% no-repeat; opacity: 0; transform: scale(.05) rotate(-35deg); pointer-events: none; }
.contact-form.is-web-captured::before { animation: capture-web .9s cubic-bezier(.2,.82,.2,1) both; }
@keyframes capture-web { 0% { opacity: 0; transform: scale(.05) rotate(-35deg); } 48% { opacity: .72; } 100% { opacity: 0; transform: scale(1.55) rotate(8deg); } }
.contact-form label { display: grid; gap: 8px; }
.contact-form label > span { color: #48546a; font-size: .58rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 15px; border: 1px solid #d7dce3; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font-size: .72rem; resize: none; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { height: 107px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,18,23,.08); }
.message-field { grid-column: 1 / -1; }
.contact-form button { position: relative; grid-column: 1 / -1; height: 45px; overflow: hidden; border: 0; border-radius: 9px; color: #fff; background: var(--red); font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 8px 16px rgba(179,18,23,.2); cursor: pointer; transition: background .2s, transform .2s; }
.contact-form button:hover { background: #d20b18; transform: translateY(-2px); }
.contact-form.is-web-captured button { background: #111827; box-shadow: 0 0 0 3px rgba(179,18,23,.14), 0 8px 18px rgba(17,24,39,.2); }
.form-status { position: absolute; right: 34px; bottom: 10px; margin: 0; color: #637087; font-family: var(--mono); font-size: .5rem; }
.contact-spider { position: absolute; top: 105px; right: 7.5%; z-index: 3; width: 255px; height: auto; filter: drop-shadow(0 15px 15px rgba(0,0,0,.13)); animation: contact-swing 5s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes contact-swing { from { transform: translate(-8px,-4px) rotate(-2deg); } to { transform: translate(12px,10px) rotate(2deg); } }

/* Interactive Spider-Verse effects */
.web-scroll-rail { --scroll-progress: 0; position: fixed; top: 73px; bottom: 22px; left: 12px; z-index: 88; width: 44px; pointer-events: none; opacity: .78; transition: opacity .25s; }
.web-scroll-track { position: absolute; top: 0; bottom: 0; left: 20px; width: 2px; overflow: hidden; background: repeating-linear-gradient(to bottom, rgba(18,26,42,.22) 0 3px, transparent 3px 7px); box-shadow: 0 0 6px rgba(179,18,23,.12); }
.web-scroll-track i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--red-bright), #111827); transform: scaleY(var(--scroll-progress)); transform-origin: top; }
.web-scroll-climber { position: absolute; top: calc(var(--scroll-progress) * (100% - 83px)); left: 0; width: 42px; height: auto; filter: drop-shadow(0 4px 4px rgba(0,0,0,.22)); transform: rotate(180deg); transition: top .1s linear; }

footer { height: 4px; overflow: hidden; padding: 0; color: transparent; background: #111; font-size: 0; }
footer a { color: transparent; }

[data-enter] { opacity: 1; transform: none; }
.js [data-enter].is-visible { animation: enter-up .75s cubic-bezier(.2,.8,.2,1) both; }
@keyframes enter-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 1280px) {
  .header-inner { width: calc(100% - 70px); }
  .hero-copy { left: 4.5%; }
  .about-portrait-wrap { right: 45px; }
  .skills-spider { right: 2%; }
  .projects-spider { left: 10px; }
  .contact-spider { right: 3%; }
}

/* Tablet and compact-laptop composition */
@media (max-width: 1099px) {
  .header-inner { width: calc(100% - 48px); }
  .hero { min-height: 680px; }
  .hero-mask-photo { object-position: 52% center; }
  .hero-copy { top: 41%; left: 4%; width: 340px; }
  .hero h1 { font-size: clamp(3rem, 6vw, 4rem); }
  .hero-socials { gap: 9px; }
  .corner-web { width: 220px; }

  .ticker-cross { height: 270px; }
  .ticker { height: 72px; }
  .ticker-group strong { padding-inline: 32px; font-size: 1rem; }
  .ticker-group img { width: 52px; height: 52px; }
  .ticker-face { width: 76px; background-size: 150px auto; }

  .section-inner { width: calc(100% - 64px); }
  .about { height: auto; min-height: 790px; padding: 80px 32px 60px; }
  .about-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 36px; width: min(960px, 100%); }
  .about-copy { position: relative; top: auto; left: auto; width: auto; }
  .about-copy > p:not(.section-kicker) { width: auto; }
  .stack div { width: auto; }
  .about-portrait-wrap { position: relative; top: auto; right: auto; width: 100%; height: 650px; }
  .portrait-string { height: 56%; }
  .about-portrait { width: 250px; height: 250px; }

  .skills { height: auto; min-height: 700px; padding: 70px 0 65px; }
  .skill-grid { width: min(760px, calc(100% - 200px)); margin: 58px 0 0 clamp(38px, 6vw, 72px); }
  .skills-spider { right: 2%; width: 130px; }

  .projects { height: auto; min-height: 760px; padding: 68px 0 68px; }
  .project-grid { width: min(960px, calc(100% - 70px)); margin: 34px auto 0; }
  .project-grid article { min-height: 400px; }
  .projects-spider { left: 12px; width: 110px; }

  .contact { height: auto; min-height: 650px; padding: 62px 0 70px; }
  .contact-form { width: min(620px, calc(100% - 300px)); margin: 41px 0 0 clamp(48px, 8vw, 90px); }
  .contact-spider { right: 2%; width: 210px; }
}

/* Portrait tablets and phones use a stacked hero scene and compact navigation. */
@media (max-width: 900px) {
  .hero { height: max(760px, 100svh); min-height: 0; cursor: default; }
  .hero-mask-photo { width: 100%; height: 65%; object-fit: cover; object-position: center 15%; }
  .hero-real-layer { right: 0; bottom: auto; height: 65%; }
  .hero-real-layer img { height: 108%; }
  .hero.is-revealing { --reveal-radius: clamp(78px, 18vw, 112px); }
  .corner-web { width: clamp(150px, 25vw, 220px); }
  .corner-web-top { top: 38px; left: -42px; }
  .corner-web-bottom { right: -48px; bottom: 29%; }
  .hero-copy { top: auto; right: max(24px, calc((100% - 620px) / 2)); bottom: 48px; left: max(24px, calc((100% - 620px) / 2)); width: auto; text-align: center; transform: none; }
  .hero-kicker { margin-bottom: 15px; }
  .hero h1 { font-size: clamp(3.2rem, 9vw, 4.7rem); line-height: .88; }
  .hero-socials { margin: 26px auto 0; }
  .hover-note { top: calc(65% - 34px); left: 50%; opacity: .85; }
  .hero:hover .hover-note { opacity: .85; }
  .hero-eye-response { top: 22%; width: clamp(190px, 31vw, 270px); height: 88px; }
  .hover-note::after { content: "Tap to reveal"; }
  .hover-note { font-size: 0; }
  .hover-note::after { font-family: var(--mono); font-size: .55rem; letter-spacing: .1em; }
}

@media (max-width: 860px) {
  .site-header { height: 62px; color: #f2f3f5; background: rgba(20,21,21,.96); border-bottom-color: rgba(255,255,255,.08); box-shadow: 0 3px 18px rgba(0,0,0,.12); }
  .site-header:not(.is-dark) .brand { color: #f1f2f4; }
  .header-inner { width: calc(100% - 36px); }
  .nav-toggle { position: absolute; top: 10px; right: 0; z-index: 2; display: block; color: #fff; }
  .site-header nav { position: absolute; top: 61px; right: 0; left: 0; display: grid; gap: 0; padding: 14px 22px 20px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(20,21,21,.98); box-shadow: 0 16px 25px rgba(0,0,0,.16); transform: translateY(-12px); visibility: hidden; opacity: 0; pointer-events: none; transition: transform .25s, opacity .2s, visibility .25s; }
  .site-header nav a { padding: 14px 8px; text-align: center; }
  .site-header nav a::after { right: 42%; bottom: 7px; left: 42%; }
  .nav-theme { justify-content: center; padding: 13px 0 0; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .nav-theme-toggle { height: 38px; }
  .site-header.nav-open nav { transform: none; visibility: visible; opacity: 1; pointer-events: auto; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .project-grid { grid-template-columns: 1fr 1fr; width: min(740px,calc(100% - 48px)); }
}

/* Phone composition */
@media (max-width: 760px) {
  .display-title { font-size: clamp(2.55rem, 11vw, 3.4rem); }
  .section-heading { max-width: calc(100% - 32px); }
  .section-heading .display-title { font-size: clamp(2.35rem, 10vw, 3rem); }

  .ticker-cross { height: 220px; }
  .ticker { left: -9%; width: 118%; height: 58px; }
  .ticker-red { transform: translateY(-55%) rotate(6.5deg); }
  .ticker-black { transform: translateY(-45%) rotate(-6.5deg); }
  .ticker-group strong { padding-inline: 24px; font-size: .78rem; }
  .ticker-group img { width: 42px; height: 42px; }
  .ticker-face { width: 60px; background-size: 124px auto; }

  .about { min-height: 0; padding: 72px 22px 58px; }
  .about-inner { display: block; width: 100%; }
  .about-copy .display-title { margin-bottom: 28px; }
  .about-copy > p:not(.section-kicker) { margin-bottom: 20px; font-size: .95rem; line-height: 1.68; }
  .stack { margin-top: 38px; }
  .stack h3 { margin-bottom: 24px; }
  .stack div { gap: 9px; }
  .stack span { padding: 10px 14px; }
  .about-portrait-wrap { height: 395px; margin-top: 20px; }
  .portrait-string { height: 185px; }
  .about-portrait { top: 185px; width: min(245px, 68vw); height: min(245px, 68vw); transform: translate(-50%, 0); }
  .about-web-left { top: 270px; left: -150px; width: 430px; }
  .about-web-right { top: auto; right: -100px; bottom: 0; width: 320px; }

  .skills { min-height: 0; padding: 66px 18px 345px; }
  .skills-web { top: 40px; width: 570px; }
  .skill-grid { grid-template-columns: 1fr; gap: 11px; width: 100%; margin: 45px 0 0; }
  .skill-grid article { height: 67px; padding-inline: 16px; }
  .skill-grid strong { font-size: .76rem; }
  .skill-grid em { padding-inline: 10px; }
  .skills-spider { top: auto; right: 50%; bottom: -10px; width: 120px; transform: translateX(50%); animation-name: hang-travel-mobile; }
  @keyframes hang-travel-mobile { 0% { transform: translate(50%, -8px) rotate(-1.5deg); } 50% { transform: translate(calc(50% - 12px), 8px) rotate(1deg); } 100% { transform: translate(calc(50% + 10px), -2px) rotate(2deg); } }

  .projects { min-height: 0; padding: 64px 18px 395px; }
  .project-grid { grid-template-columns: 1fr; gap: 16px; width: 100%; margin: 35px 0 0; }
  .project-grid article { min-height: 0; padding: 26px 22px 22px; }
  .project-grid p { min-height: 0; }
  .more-projects { width: min(100%,310px); text-align: center; }
  .projects-web { top: 20px; right: -220px; width: 520px; }
  .projects-spider { right: 50%; bottom: -10px; left: auto; width: 175px; transform: translateX(50%); animation-name: stand-bob-mobile; }
  @keyframes stand-bob-mobile { 0%,100% { transform: translate(50%, 0); } 50% { transform: translate(50%, -19px); } }

  .contact { min-height: 0; padding: 62px 18px 455px; }
  .contact-form { grid-template-columns: 1fr; gap: 18px; width: 100%; margin: 36px 0 0; padding: 24px 20px 29px; }
  .message-field, .contact-form button { grid-column: auto; }
  .form-status { right: 20px; bottom: 8px; }
  .contact-web { bottom: -30px; left: -240px; width: 590px; }
  .contact-spider { top: auto; right: 50%; bottom: -22px; width: 190px; animation-name: contact-swing-mobile; }
  @keyframes contact-swing-mobile { from { transform: translate(50%, -4px) rotate(-2deg); } to { transform: translate(calc(50% + 10px), 10px) rotate(2deg); } }
  .web-scroll-rail { top: 72px; bottom: 14px; left: 3px; width: 30px; opacity: .46; }
  .web-scroll-track { left: 13px; }
  .web-scroll-climber { top: calc(var(--scroll-progress) * (100% - 59px)); width: 28px; }
}

@media (max-width: 520px) {
  .portfolio-portal { right: 13px; bottom: 13px; width: 54px; height: 54px; min-height: 0; padding: 8px; border-radius: 50%; box-shadow: 0 5px 0 var(--red), 0 11px 25px rgba(8,13,24,.25); }
  .portfolio-portal span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .portfolio-portal svg { width: 34px; height: 34px; }
  .hero { height: max(735px, 100svh); }
  .hero-mask-photo, .hero-real-layer { height: 62%; }
  .hero-mask-photo { object-position: center top; }
  .hero-real-layer img { height: 105%; }
  .hero-copy { right: 15px; bottom: 34px; left: 15px; width: auto; transform: none; }
  .hero-kicker { font-size: .62rem; line-height: 1.5; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero-socials { margin-top: 22px; }
  .hero-socials a { width: 43px; height: 43px; }
  .hover-note { top: calc(62% - 31px); }
  .corner-web-bottom { bottom: 32%; }
  .hero-eye-response { top: 21%; width: 45vw; max-width: 205px; height: 69px; }
}

@media (max-width: 360px) {
  .header-inner { width: calc(100% - 24px); }
  .brand { font-size: 1.05rem; }
  .hero-copy { right: 11px; left: 11px; width: auto; }
  .hero-kicker { letter-spacing: .12em; }
  .hero h1 { font-size: 2.75rem; }
  .hero-socials a { width: 41px; height: 41px; }
  .skill-grid article { grid-template-columns: 8px 1fr auto; gap: 10px; padding-inline: 12px; }
  .skill-grid strong { font-size: .68rem; }
  .skill-grid em { padding-inline: 7px; font-size: .48rem; }
}

@media (max-width: 600px) and (max-height: 700px) {
  .hero { height: max(540px, 100svh); }
  .hero-mask-photo, .hero-real-layer { height: 56%; }
  .hero-copy { bottom: 17px; }
  .hero-kicker { margin-bottom: 8px; font-size: .55rem; }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 3.2rem); line-height: .85; }
  .hero-socials { margin-top: 13px; }
  .hero-socials a { width: 38px; height: 38px; }
  .hover-note { top: calc(56% - 27px); }
  .corner-web-bottom { bottom: 40%; width: 125px; }
}

@media (max-width: 900px) and (max-height: 600px) and (orientation: landscape) {
  .hero { height: 100svh; min-height: 360px; }
  .hero-mask-photo, .hero-real-layer { height: 100%; }
  .hero-mask-photo { object-position: 65% center; }
  .hero-real-layer img { bottom: -8%; left: 65%; height: 120%; }
  .hero-copy { top: 29%; right: auto; bottom: auto; left: 4%; width: min(330px, 43%); text-align: left; }
  .hero-kicker { margin-bottom: 10px; font-size: .53rem; line-height: 1.45; }
  .hero h1 { font-size: clamp(2.25rem, 6.5vw, 3.3rem); }
  .hero-socials { gap: 7px; margin: 14px 0 0; }
  .hero-socials a { width: 38px; height: 38px; }
  .hover-note { top: auto; bottom: 18px; left: 66%; }
  .corner-web-bottom { right: -36px; bottom: -46px; width: 150px; }
  .hero-eye-response { top: 34%; left: 65%; width: 24vw; max-width: 230px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .web-scroll-climber { transition: none; }
  .section::after, .hero-eye-response { display: none; }
  .fx-ready .projects:not(.section-awake) .project-grid article { clip-path: none; }
}

:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 4px; }

/* ================================================================
   Expanded Spider-Verse experience
   ================================================================ */

/* Cinematic loader */
.spider-loader { position: fixed; inset: 0; z-index: 30000; display: grid; place-content: center; justify-items: center; gap: 26px; color: #fff; background: radial-gradient(circle at 50% 42%, #2a1118 0, #0b0e15 42%, #05070b 100%); transition: opacity .65s, visibility .65s; animation: loader-failsafe 0s 7s forwards; }
.spider-loader::before { content: ""; position: absolute; inset: -40%; background: repeating-radial-gradient(circle at center, transparent 0 7vmin, rgba(255,255,255,.09) 7.1vmin 7.25vmin), repeating-conic-gradient(from 8deg at center, rgba(210,11,24,.25) 0 .7deg, transparent .85deg 18deg); animation: loader-web-turn 10s linear infinite; }
.spider-loader.is-loaded { visibility: hidden; opacity: 0; pointer-events: none; }
.loader-mask { position: relative; z-index: 1; display: flex; justify-content: space-between; width: 230px; height: 170px; padding: 53px 30px 0; border: 3px solid rgba(255,255,255,.08); border-radius: 48% 48% 44% 44%; background: repeating-radial-gradient(circle at 50% 42%, transparent 0 20px, rgba(10,13,21,.82) 21px 24px), repeating-conic-gradient(from 0deg at 50% 46%, #171b25 0 2deg, #a50c18 2.4deg 28deg); box-shadow: inset 0 -35px 65px #080a10, 0 0 60px rgba(179,18,23,.28); }
.loader-mask::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #10141e; transform: translateX(-50%); }
.loader-mask i { width: 68px; height: 70px; background: #fff; clip-path: polygon(0 6%, 100% 20%, 73% 95%, 23% 78%); filter: drop-shadow(0 0 15px #fff); animation: loader-eye 1.2s ease-in-out infinite alternate; }
.loader-mask i:last-child { transform: scaleX(-1); }
.spider-loader p { position: relative; z-index: 1; margin: 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.spider-loader p strong { color: #ff3442; }
.spider-loader > span { position: relative; z-index: 1; width: 260px; height: 4px; overflow: hidden; background: rgba(255,255,255,.12); }
.spider-loader > span i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--red), #fff); transform: scaleX(var(--loader-progress, 0)); transform-origin: left; transition: transform .18s; }
@keyframes loader-eye { from { scale: .82 1; opacity: .6; } to { scale: 1.03 1; opacity: 1; } }
@keyframes loader-web-turn { to { transform: rotate(360deg); } }
@keyframes loader-failsafe { to { visibility: hidden; } }

/* Three-dimensional hero layers */
.hero { --hero-zoom: 1; --p1x: 0px; --p1y: 0px; --p2x: 0px; --p2y: 0px; --p3x: 0px; --p3y: 0px; --p4x: 0px; --p4y: 0px; --p5x: 0px; --p5y: 0px; perspective: 1200px; }
.hero-mask-photo { transform: translate3d(var(--p1x), var(--p1y), 0) scale(var(--hero-zoom)); transition: transform .12s linear, filter .4s; }
.hero-real-layer img { transform: translateX(-50%) translate3d(var(--p2x), var(--p2y), 35px) scale(var(--hero-zoom)); transition: transform .12s linear; }
@media (min-width: 901px) {
  .hero-copy { transform: translate3d(var(--p5x), var(--p5y), 90px); transition: transform .16s ease-out; }
  .corner-web-top { translate: var(--p4x) var(--p4y); }
  .corner-web-bottom { translate: var(--p3x) var(--p3y); }
}

/* Web-swing navigation scene */
.web-swing-transition { --swing-x: 50vw; position: fixed; inset: 0; z-index: 19000; overflow: hidden; visibility: hidden; pointer-events: none; background: rgba(8,11,17,.08); backdrop-filter: blur(0); }
.web-swing-transition.is-swinging { visibility: visible; animation: swing-scene .92s ease-in-out both; }
.web-swing-transition i { position: absolute; top: -80px; left: var(--swing-x); width: 2px; height: 67vh; background: linear-gradient(#fff, #b9c0ca); transform-origin: top; animation: swing-line .9s cubic-bezier(.45,0,.2,1) both; }
.web-swing-transition img { position: absolute; top: 48vh; left: var(--swing-x); width: 80px; height: auto; filter: drop-shadow(0 12px 9px rgba(0,0,0,.28)); transform-origin: 50% -45vh; animation: nav-swing .9s cubic-bezier(.45,0,.2,1) both; }
@keyframes swing-scene { 0%,100% { background: rgba(8,11,17,0); backdrop-filter: blur(0); } 45%,60% { background: rgba(8,11,17,.12); backdrop-filter: blur(2px); } }
@keyframes swing-line { 0% { scale: 1 0; } 28%,100% { scale: 1 1; } }
@keyframes nav-swing { 0% { transform: translate(-50%,-50%) rotate(58deg); } 50% { transform: translate(-50%,-50%) rotate(-12deg); } 100% { transform: translate(-50%,-50%) rotate(-72deg); } }

/* Animated project previews and mission buttons */
.projects { height: auto; min-height: 760px; padding-bottom: 105px; }
.project-grid { grid-template-columns: repeat(3,minmax(0,1fr)); width: min(1180px,calc(100% - 170px)); }
.project-grid article { min-height: 400px; }
.project-demo { position: relative !important; z-index: 2; display: block !important; height: 118px; overflow: hidden; margin: -14px 0 22px !important; border: 1px solid rgba(179,18,23,.2); border-radius: 9px; color: #fff; background: #0e1523; }
.project-demo > span { position: absolute; right: 8px; bottom: 7px; z-index: 6; margin: 0 !important; padding: 4px 7px !important; border: 1px solid rgba(255,255,255,.2) !important; border-radius: 4px !important; color: #fff !important; background: rgba(9,14,23,.78) !important; font-family: var(--mono); font-size: .44rem !important; letter-spacing: .08em; text-transform: uppercase; }
.project-demo-images img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); animation: demo-frame 9s infinite; }
.project-demo-images img:nth-child(2) { animation-delay: 3s; }
.project-demo-images img:nth-child(3) { animation-delay: 6s; }
@keyframes demo-frame { 0% { opacity: 0; transform: scale(1.06); } 7%,28% { opacity: 1; } 33%,100% { opacity: 0; transform: scale(1); } }
.demo-radar { background: radial-gradient(circle at 50% 52%, rgba(210,11,24,.35), transparent 8%, transparent 20%, rgba(210,11,24,.18) 21%, transparent 22%, transparent 36%, rgba(210,11,24,.14) 37%, transparent 38%), #0b121d; }
.demo-radar::before { content: ""; position: absolute; top: 50%; left: 50%; width: 47%; height: 1px; background: linear-gradient(90deg,rgba(210,11,24,.9),transparent); transform-origin: left; animation: radar-sweep 2.8s linear infinite; }
.demo-radar i { position: absolute; top: 50%; left: 50%; width: 110px; height: 110px; border: 1px solid rgba(210,11,24,.18); border-radius: 50%; transform: translate(-50%,-50%); }
.demo-radar b { position: absolute; top: 32%; left: 34%; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 9px var(--red-bright); animation: radar-target 1.2s infinite alternate; }
.demo-radar b:nth-of-type(2) { top: 67%; left: 70%; animation-delay: .5s; }
.demo-radar code { position: absolute; top: 9px; left: 11px; color: #e5ecf4; font-family: var(--mono); font-size: .5rem; letter-spacing: .08em; }
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes radar-target { to { opacity: .25; scale: .55; } }
.project-grid h3 { margin-top: 0; }
.project-grid p { min-height: 75px; }
.mission-open { position: relative; z-index: 3; width: 100%; height: 36px; margin-top: 16px; border: 1px solid rgba(179,18,23,.36); border-radius: 7px; color: var(--red); background: rgba(255,255,255,.82); font-size: .55rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.mission-open:hover { color: #fff; background: var(--red); transform: translateY(-2px); }
.more-projects { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; width: max-content; min-height: 43px; margin: 31px auto 0; padding: 0 22px; border: 1px solid rgba(179,18,23,.36); border-radius: 8px; color: var(--red); background: rgba(255,255,255,.88); font-size: .61rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; box-shadow: 0 8px 18px rgba(20,28,43,.08); transition: color .2s,background .2s,transform .2s; }
.more-projects:hover { color: #fff; background: var(--red); transform: translateY(-3px); }

/* Full-screen project dossier */
.mission-dialog { width: min(1120px, calc(100% - 46px)); max-height: min(820px, calc(100vh - 42px)); padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; color: #eef3fa; background: #0b111c; box-shadow: 0 30px 100px rgba(0,0,0,.58); }
body.mission-is-open { overflow: hidden; }
.mission-dialog::backdrop { background: rgba(4,7,12,.82); backdrop-filter: blur(9px); }
.mission-dialog[open] { animation: dossier-open .48s cubic-bezier(.2,.85,.2,1) both; }
@keyframes dossier-open { from { opacity: 0; transform: scale(.88) rotateX(8deg); clip-path: circle(3% at 50% 50%); } to { opacity: 1; transform: none; clip-path: circle(100%); } }
.mission-close { position: absolute; top: 14px; right: 15px; z-index: 5; width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: rgba(8,12,20,.72); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mission-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 620px; }
.mission-reel { position: relative; overflow: hidden; background: radial-gradient(circle at center, rgba(179,18,23,.34), transparent 34%), repeating-radial-gradient(circle at center, transparent 0 45px, rgba(255,255,255,.06) 46px 47px), #070b12; }
.mission-reel::after { content: "LIVE MISSION RECON"; position: absolute; bottom: 19px; left: 22px; z-index: 4; padding: 6px 9px; border-left: 3px solid var(--red-bright); color: #fff; background: rgba(7,11,18,.72); font-family: var(--mono); font-size: .55rem; letter-spacing: .1em; }
.mission-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.08); animation: mission-frame 12s infinite; }
.mission-reel img:nth-child(2) { animation-delay: 4s; }
.mission-reel img:nth-child(3) { animation-delay: 8s; }
@keyframes mission-frame { 0% { opacity: 0; transform: scale(1.08); } 7%,28% { opacity: 1; } 34%,100% { opacity: 0; transform: scale(1); } }
.mission-reel .mission-visual-code { position: absolute; inset: 11%; display: grid; place-content: center; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; color: #e9eef7; background: linear-gradient(135deg,rgba(179,18,23,.18),rgba(8,14,24,.9)); font-family: var(--mono); font-size: clamp(.72rem,1.2vw,1rem); line-height: 2.2; text-align: center; }
.mission-copy { overflow: auto; padding: 55px 48px 42px; }
.mission-label { margin: 0 0 13px; color: #ff4350; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; }
.mission-copy h2 { margin: 0; color: #fff; font-size: clamp(2.3rem,4vw,4rem); font-style: italic; letter-spacing: -.06em; line-height: .9; text-transform: uppercase; text-shadow: 4px 4px 0 var(--red); }
.mission-summary { margin: 25px 0; color: #b7c1d0; font-size: .84rem; line-height: 1.7; }
.mission-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mission-facts article { padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: rgba(255,255,255,.04); }
.mission-facts strong { display: block; color: #fff; font-size: .78rem; }
.mission-facts span { color: #8591a3; font-size: .54rem; text-transform: uppercase; }
.mission-architecture { margin-top: 25px; }
.mission-architecture small { color: #ff4350; font-family: var(--mono); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; }
.mission-architecture > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.mission-architecture b { padding: 8px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 5px; color: #dce5f1; font-size: .55rem; }
.mission-architecture i { width: 22px; height: 1px; background: var(--red-bright); }
.mission-stack { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.mission-stack span { padding: 6px 9px; border: 1px solid rgba(255,67,80,.35); border-radius: 999px; color: #ff6a74; font-size: .52rem; font-weight: 700; text-transform: uppercase; }
.mission-link { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 7px; color: #fff; background: var(--red); font-size: .61rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }

/* Cinematic finale */
footer.finale { position: relative; z-index: 1; display: block; height: 510px; overflow: hidden; padding: 0; color: #fff; background: radial-gradient(circle at 25% 48%, #281018, transparent 32%), #080b12; font-size: 1rem; isolation: isolate; }
.finale::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg,transparent 0 46%,rgba(179,18,23,.11) 46.2% 46.6%,transparent 46.8%),repeating-linear-gradient(105deg,transparent 0 88px,rgba(255,255,255,.018) 89px 90px); }
.finale-web { position: absolute; right: -80px; bottom: -160px; z-index: -1; width: 630px; opacity: .18; filter: invert(1); }
.finale-copy { position: absolute; top: 50%; left: max(7%, calc((100% - 1220px)/2)); z-index: 3; transform: translateY(-50%); }
.finale-copy small { color: #ff4b57; font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; }
.finale-copy h2 { margin: 15px 0 25px; font-size: clamp(3.5rem,6vw,6rem); font-style: italic; letter-spacing: -.07em; line-height: .8; text-shadow: 5px 5px 0 var(--red); }
.finale-copy a { display: inline-flex; margin: 0 10px 10px 0; padding: 11px 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; color: #fff; font-size: .59rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.finale-flight { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .5s; }
.finale.is-final-act .finale-flight { opacity: 1; }
.finale-flight canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.web-sfx { position: absolute; z-index: 2; color: #fff; font-size: clamp(1.1rem,2vw,1.7rem); font-style: italic; font-weight: 900; letter-spacing: -.06em; text-shadow: 3px 3px 0 var(--red),0 0 18px rgba(255,255,255,.35); transform: scale(.4) rotate(-12deg); opacity: 0; }
.web-sfx-one { top: 8%; right: 5%; }
.web-sfx-two { top: 7%; left: 58%; }
.web-sfx-three { top: 9%; left: 26%; }
.finale.is-final-act .web-sfx-one { animation: finale-thwip 9.6s .25s infinite; }
.finale.is-final-act .web-sfx-two { animation: finale-thwip 9.6s 3.2s infinite; }
.finale.is-final-act .web-sfx-three { animation: finale-thwip 9.6s 6.15s infinite; }
@keyframes finale-thwip { 0%,7% { opacity: 0; transform: scale(.35) rotate(-12deg); } 2.5%,4.5% { opacity: 1; transform: scale(1) rotate(-7deg); } 9%,100% { opacity: 0; transform: scale(1.15) rotate(-4deg); } }
.finale > p { position: absolute; right: 24px; bottom: 18px; margin: 0; color: #697386; font-family: var(--mono); font-size: .48rem; letter-spacing: .08em; text-transform: uppercase; }

/* Secrets and celebratory web storm */
.easter-toast { position: fixed; bottom: 24px; left: 50%; z-index: 22000; max-width: calc(100% - 32px); padding: 12px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff; background: #111827; box-shadow: 0 10px 28px rgba(0,0,0,.3); font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; transform: translate(-50%,140%); opacity: 0; transition: transform .35s, opacity .35s; }
.easter-toast.is-visible { transform: translate(-50%,0); opacity: 1; }
.web-storm { position: fixed; inset: 0; z-index: 21000; overflow: hidden; pointer-events: none; }
.web-storm i { position: absolute; left: 50%; top: 50%; width: 3px; height: 110vmax; background: linear-gradient(transparent,#fff,rgba(179,18,23,.7),transparent); transform-origin: 50% 0; animation: storm-strand 1.25s ease-out both; }
@keyframes storm-strand { from { scale: 1 0; opacity: 1; } to { scale: 1 1; opacity: 0; } }
.symbiote-secret body { filter: saturate(.72) contrast(1.08); }
.symbiote-secret .site-header { background: #020306; }

/* Venom universe: every Spider visual becomes a living black symbiote. */
html[data-verse="venom"] { --ink: #f3f6f7; --paper: #050607; --line: #292d31; --muted: #a1a8ad; --red: #dce3e6; --red-bright: #fff; color-scheme: dark; }
html[data-verse="venom"] body { color: var(--ink); background: #020303; }
html[data-verse="venom"] .site-header.is-dark, html[data-verse="venom"] .site-header { color: #b8c0c4; border-color: rgba(255,255,255,.1); background: rgba(1,2,2,.96); box-shadow: 0 5px 24px rgba(0,0,0,.42); }
html[data-verse="venom"] .brand em { color: #fff; text-shadow: 0 0 13px rgba(255,255,255,.68); }
html[data-verse="venom"] .nav-theme-toggle { color: #080a0b; border-color: #fff; background: #fff; box-shadow: 0 0 20px rgba(255,255,255,.18); }
html[data-verse="venom"] .hero { background: #020303; }
html[data-verse="venom"] .hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 50% 40%,transparent 0 30%,rgba(0,0,0,.08) 50%,rgba(1,2,2,.72) 78%,#020303 100%),linear-gradient(90deg,#020303 0,rgba(2,3,3,.86) 18%,transparent 39% 62%,rgba(2,3,3,.86) 84%,#020303 100%); }
html[data-verse="venom"] .hero-mask-photo { opacity: .96; filter: grayscale(1) contrast(1.55) brightness(.9); }
html[data-verse="venom"] .hero-real-layer { background: #020303; }
html[data-verse="venom"] .hero-real-layer img { filter: grayscale(1) contrast(1.28) brightness(.58); }
html[data-verse="venom"] .hero-eye-response { z-index: 3; filter: drop-shadow(0 0 18px rgba(255,255,255,.8)); }
html[data-verse="venom"] .hero-eye-response i { background: radial-gradient(circle at 50% 42%,#fff 0 30%,#cdd5d7 48%,#070909 53% 100%); box-shadow: inset 0 0 0 5px #030404,0 0 24px rgba(255,255,255,.42); }
html[data-verse="venom"] .corner-web { z-index: 3; opacity: .45; filter: grayscale(1) invert(1) contrast(2.2) drop-shadow(0 0 10px rgba(255,255,255,.18)); animation-name: symbiote-web-breathe; animation-duration: 4.7s; }
@keyframes symbiote-web-breathe { 0% { scale: .86 1.08; rotate: -2deg; opacity: .28; } 42% { scale: 1.1 .92; rotate: 2deg; opacity: .56; } 100% { scale: .95 1.13; rotate: -1deg; opacity: .4; } }
html[data-verse="venom"] .hero-copy { z-index: 4; }
html[data-verse="venom"] .hero-kicker, html[data-verse="venom"] .section-kicker { color: #dce3e6; text-shadow: 0 0 10px rgba(255,255,255,.2); }
html[data-verse="venom"] .hero h1, html[data-verse="venom"] .display-title { color: #f7f9fa; text-shadow: 5px 5px 0 #252a2d,0 0 25px rgba(255,255,255,.16); }
html[data-verse="venom"] .hero-socials::before { background: repeating-linear-gradient(90deg,rgba(255,255,255,.5) 0 8px,transparent 8px 12px); }
html[data-verse="venom"] .hero-socials a { color: #f5f7f8; border-color: rgba(255,255,255,.22); background: rgba(5,7,8,.94); box-shadow: 0 9px 25px rgba(0,0,0,.4),inset 0 0 12px rgba(255,255,255,.03); }
html[data-verse="venom"] .hero-socials a:hover, html[data-verse="venom"] .hero-socials a:focus-visible { color: #050607; border-color: #fff; background: #fff; box-shadow: 0 0 23px rgba(255,255,255,.28); }
html[data-verse="venom"] .hover-note { color: rgba(255,255,255,.72); }
html[data-verse="venom"] .ticker-cross, html[data-verse="venom"] .section, html[data-verse="venom"] .skills, html[data-verse="venom"] .projects, html[data-verse="venom"] .contact { border-color: #202326; background: #050607; }
html[data-verse="venom"] .ticker-red { color: #050607; border-color: #fff; background: #eef2f3; box-shadow: 0 12px 26px rgba(0,0,0,.48); }
html[data-verse="venom"] .ticker-black { color: #f4f7f8; border-color: #c8cfd2; background: #030404; }
html[data-verse="venom"] .ticker-face { background-color: #050607; background-blend-mode: luminosity; filter: grayscale(1) contrast(3.4) brightness(.65); }
html[data-verse="venom"] .ticker-group img { filter: grayscale(1) contrast(2.8) !important; opacity: .34; }
html[data-verse="venom"] .ticker-forward { animation-duration: 16s; }
html[data-verse="venom"] .ticker-reverse { animation-duration: 19s; }
html[data-verse="venom"] .section::before { content: ""; position: absolute; inset: -30%; z-index: 0; pointer-events: none; background: repeating-conic-gradient(from 20deg at 50% 50%,transparent 0 16deg,rgba(255,255,255,.035) 16.4deg 16.8deg,transparent 17.2deg 28deg),radial-gradient(ellipse at 30% 55%,rgba(255,255,255,.04),transparent 42%); transform-origin: 50% 50%; animation: symbiote-crawl 18s ease-in-out infinite alternate; }
@keyframes symbiote-crawl { from { transform: translate3d(-3%,-2%,0) rotate(-2deg) scale(1); } to { transform: translate3d(4%,3%,0) rotate(3deg) scale(1.12); } }
html[data-verse="venom"] .section::after { background: radial-gradient(circle at 50% 50%,transparent 0 8%,rgba(255,255,255,.2) 8.2% 8.55%,transparent 8.8% 17%,rgba(255,255,255,.08) 17.2% 17.55%,transparent 17.8%),repeating-conic-gradient(from -8deg at 50% 50%,rgba(255,255,255,.12) 0 .55deg,rgba(2,3,3,.95) .7deg 18deg); }
html[data-verse="venom"] .soft-web { filter: grayscale(1) invert(1) contrast(2.6); opacity: .075; animation: symbiote-web-breathe 8s ease-in-out infinite alternate; }
html[data-verse="venom"] .about-copy > p:not(.section-kicker), html[data-verse="venom"] .project-grid p { color: #a9b0b4; }
html[data-verse="venom"] .stack h3 { color: #aeb5b9; border-color: #34383b; }
html[data-verse="venom"] .stack span, html[data-verse="venom"] .skill-grid article, html[data-verse="venom"] .project-grid article, html[data-verse="venom"] .contact-form { border-color: #303438; color: #eef2f3; background: rgba(8,10,11,.94); box-shadow: 0 8px 24px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.018); }
html[data-verse="venom"] .skill-grid article:hover, html[data-verse="venom"] .project-grid article:hover { border-color: rgba(255,255,255,.48); box-shadow: 0 0 0 1px rgba(255,255,255,.1),0 14px 30px rgba(0,0,0,.46); }
html[data-verse="venom"] .skill-grid article > b { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.75); }
html[data-verse="venom"] .skill-web-map path { stroke: rgba(255,255,255,.42); }
html[data-verse="venom"] .skill-grid em, html[data-verse="venom"] .project-grid article > div span, html[data-verse="venom"] .mission-open, html[data-verse="venom"] .contact-form input, html[data-verse="venom"] .contact-form textarea { border-color: #363b3f; color: #dce2e4; background: #090b0c; }
html[data-verse="venom"] .contact-form label > span, html[data-verse="venom"] .form-status { color: #b9c1c5; }
html[data-verse="venom"] .contact-form input::placeholder, html[data-verse="venom"] .contact-form textarea::placeholder { color: #747d82; opacity: 1; }
html[data-verse="venom"] .mission-open:hover, html[data-verse="venom"] .more-projects:hover, html[data-verse="venom"] .contact-form button { color: #050607; background: #f3f6f7; box-shadow: 0 0 22px rgba(255,255,255,.14); }
html[data-verse="venom"] .more-projects { color: #eef2f3; border-color: #43494d; background: #080a0b; }
html[data-verse="venom"] .about-portrait { border-color: #0a0c0d; box-shadow: 0 0 0 5px #e8edef,0 18px 36px rgba(0,0,0,.5); }
html[data-verse="venom"] .projects-spider, html[data-verse="venom"] .skills-spider, html[data-verse="venom"] .contact-spider, html[data-verse="venom"] .web-scroll-climber { filter: grayscale(1) contrast(4.5) brightness(.82) drop-shadow(0 0 9px rgba(255,255,255,.28)) drop-shadow(0 16px 15px rgba(0,0,0,.7)); }
html[data-verse="venom"] .web-swing-transition img { filter: grayscale(1) contrast(4.5) brightness(.82) drop-shadow(0 0 11px rgba(255,255,255,.3)); }
html[data-verse="venom"] .web-swing-transition i { width: 4px; background: linear-gradient(#fff,#090b0c 35% 76%,#dfe6e8); box-shadow: 0 0 10px rgba(255,255,255,.25); }
html[data-verse="venom"] .project-grid article::before, html[data-verse="venom"] .contact-form::before { filter: grayscale(1) invert(1) contrast(3); }
html[data-verse="venom"] .skills-spider { animation-name: venom-lurk; animation-duration: 3.8s; }
html[data-verse="venom"] .projects-spider { animation-name: venom-stalk; animation-duration: 2.8s; }
html[data-verse="venom"] .contact-spider { animation-name: venom-lurk; animation-duration: 4.1s; }
@keyframes venom-lurk { 0% { transform: translate(-14px,-14px) rotate(-3deg) scale(.97,1.04); } 38% { transform: translate(12px,8px) rotate(2deg) scale(1.04,.97); } 67% { transform: translate(-4px,16px) rotate(-1deg) scale(.99,1.03); } 100% { transform: translate(18px,-5px) rotate(3deg) scale(1.05,.96); } }
@keyframes venom-stalk { 0%,100% { transform: translateY(0) scale(1,.97); } 45% { transform: translateY(-24px) scale(1.06,.94); } 62% { transform: translateY(-15px) scale(.98,1.04); } }
html[data-verse="venom"] .web-scroll-track { background: repeating-linear-gradient(to bottom,rgba(255,255,255,.32) 0 7px,transparent 7px 11px); box-shadow: 0 0 10px rgba(255,255,255,.18); }
html[data-verse="venom"] .web-scroll-track i { background: linear-gradient(#fff,#24282b,#fff); }
html[data-verse="venom"] footer.finale { background: radial-gradient(circle at 28% 45%,#161a1c,transparent 34%),#010202; }
html[data-verse="venom"] .finale::before { background: linear-gradient(120deg,transparent 0 46%,rgba(255,255,255,.1) 46.2% 46.6%,transparent 46.8%),repeating-linear-gradient(105deg,transparent 0 88px,rgba(255,255,255,.025) 89px 90px); }
html[data-verse="venom"] .finale-web { opacity: .3; filter: grayscale(1) invert(1) contrast(3); }
html[data-verse="venom"] .finale-copy small { color: #dfe5e7; }
html[data-verse="venom"] .finale-copy h2 { text-shadow: 5px 5px 0 #2b3033,0 0 24px rgba(255,255,255,.12); }
html[data-verse="venom"] .web-sfx { color: #fff; text-shadow: 3px 3px 0 #252a2d,0 0 20px rgba(255,255,255,.48); }
html[data-verse="venom"] .portfolio-portal { color: #070909; border-color: #fff; background: #f5f7f8; box-shadow: 0 8px 0 #555d61,0 15px 30px rgba(0,0,0,.5); }
html[data-verse="venom"] .portfolio-portal svg { color: #080a0b; }
html[data-verse="venom"] .spider-loader { background: radial-gradient(circle at 50% 42%,#1b1f21 0,#060707 43%,#010202 100%); }
html[data-verse="venom"] .loader-mask { background: repeating-radial-gradient(circle at 50% 42%,transparent 0 20px,rgba(3,4,4,.9) 21px 24px),repeating-conic-gradient(from 0deg at 50% 46%,#070909 0 2deg,#30363a 2.4deg 28deg); box-shadow: inset 0 -35px 65px #000,0 0 60px rgba(255,255,255,.15); }
html[data-verse="venom"] .web-storm i { width: 5px; background: linear-gradient(transparent,#fff 14%,#050707 38% 72%,#dfe5e7 90%,transparent); box-shadow: 0 0 8px rgba(255,255,255,.22); }

/* Automatic low-power mode keeps the content while simplifying motion. */
.performance-lite .web-scroll-rail, .performance-lite .hero-eye-response { display: none; }
.performance-lite .ticker-track, .performance-lite .corner-web, .performance-lite .skills-spider, .performance-lite .projects-spider, .performance-lite .contact-spider, .performance-lite .project-demo img, .performance-lite .demo-radar::before { animation-play-state: paused !important; }
.performance-lite .soft-web { opacity: .025; }

/* Expanded responsive composition */
@media (max-width: 1099px) {
  .site-header nav { gap: 24px; }
  .project-grid { width: min(960px,calc(100% - 70px)); }
  .projects { min-height: 780px; }
  .mission-shell { grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 860px) {
  .site-header nav { gap: 0; }
  .project-grid { grid-template-columns: 1fr 1fr; width: min(740px,calc(100% - 48px)); }
}

@media (max-width: 760px) {
  .projects { padding-bottom: 390px; }
  .project-grid { grid-template-columns: 1fr; width: 100%; }
  .project-grid article { min-height: 390px; }
  .project-demo { height: 132px; }
  .mission-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 18px); }
  .mission-shell { display: block; overflow: auto; max-height: calc(100dvh - 18px); }
  .mission-reel { height: 250px; }
  .mission-copy { overflow: visible; padding: 35px 24px 30px; }
  .mission-facts { grid-template-columns: 1fr 1fr; }
  footer.finale { height: 570px; }
  .finale-copy { top: 42%; right: 22px; left: 22px; text-align: center; }
  .finale-copy h2 { font-size: clamp(3rem,14vw,4.6rem); }
  .finale > p { right: 0; left: 0; text-align: center; }
  .web-sfx { font-size: 1rem; }
  .web-sfx-one { right: 3%; }
  .web-sfx-two { left: 55%; }
  .web-sfx-three { left: 18%; }
}

@media (max-width: 520px) {
  .spider-loader > span, .spider-loader p { width: min(260px,calc(100vw - 50px)); }
  .loader-mask { width: 190px; height: 145px; padding: 45px 25px 0; }
  .loader-mask i { width: 57px; height: 59px; }
  .mission-facts { grid-template-columns: 1fr; }
  .mission-reel { height: 205px; }
  .finale-copy a { display: flex; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .spider-loader { display: none; }
  .finale-flight { display: none; }
  .web-swing-transition { display: none; }
  .project-demo-images img:first-child, .mission-reel img:first-child { opacity: 1; }
}
