:root{--route-green:#8be27b}
body[data-page] #frame-content{inset:35px 1px 33px 36px;scroll-behavior:smooth;scrollbar-width:thin}
body[data-page] .scene{min-height:calc(100dvh - 68px);height:auto}
body[data-page] .side-nav a.active{color:#f4f4ed}
body[data-page] .route-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100dvh - 68px);padding:90px 50px 120px;position:relative;text-align:center;overflow:hidden;background:#0b0d0b}
.route-hero:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.72;background:radial-gradient(ellipse 39% 35% at 12% 68%,rgba(57,129,67,.45),transparent 80%),radial-gradient(ellipse 38% 42% at 91% 26%,rgba(51,106,58,.4),transparent 80%)}
.route-hero.route-work:before{background:radial-gradient(ellipse 39% 39% at 3% 70%,rgba(167,53,72,.38),transparent 76%),radial-gradient(ellipse 30% 43% at 93% 39%,rgba(77,37,45,.27),transparent 80%)}
.route-hero.route-achievements:before{background:radial-gradient(ellipse 45% 43% at 6% 66%,rgba(172,122,47,.35),transparent 75%),radial-gradient(ellipse 36% 42% at 93% 35%,rgba(96,78,47,.25),transparent 80%)}
.route-hero.route-contact-intro:before{background:radial-gradient(ellipse 38% 48% at 6% 62%,rgba(49,90,134,.34),transparent 76%),radial-gradient(ellipse 42% 47% at 92% 33%,rgba(70,107,126,.25),transparent 76%)}
.route-eyebrow{font:11px var(--mono);color:#a0a9a0;letter-spacing:.075em;text-transform:lowercase}
.route-hero h1{font:400 clamp(48px,6.5vw,106px)/1.03 var(--font);letter-spacing:-.075em;margin:23px auto 20px;max-width:1150px}
.route-hero h1 em{font-style:normal;color:var(--green)}
.route-hero.route-work h1 em{color:#d77c87}
.route-hero.route-achievements h1 em{color:#d6b268}
.route-hero.route-contact-intro h1 em{color:#a8d1de}
.route-hero p{font-size:14px;line-height:1.8;max-width:600px;color:#b3bab4;margin:0 auto}
.route-line{position:absolute;bottom:60px;left:50%;height:84px;width:1px;background:linear-gradient(#768477,transparent)}
body[data-page] .route-bio{min-height:990px}
body[data-page] .route-techs{min-height:740px}
body[data-page] .route-projects{min-height:820px}
body[data-page] .route-projects .work-rows{margin-top:100px}
.route-next{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:580px!important;background:#0d100e}
.route-next .section-heading h2{font-size:clamp(45px,6vw,85px)}
.route-next .section-heading h2 em{color:var(--green)}
.route-next .contact-cta{margin-top:50px}
body[data-page] .route-achievements-list{min-height:780px;display:flex;flex-direction:column;align-items:center;padding-top:120px;padding-bottom:95px;background:radial-gradient(ellipse at 7% 48%,#201c14,#0a0d0a 55%)}
.route-archive{width:min(850px,92%);margin-top:85px;border-top:1px solid #4a463c}
.route-archive>div{display:grid;grid-template-columns:40px 1fr 190px;gap:24px;align-items:center;padding:27px 14px;border-bottom:1px solid #46453d}
.route-archive>div>span{font:11px var(--mono);color:#96856a}
.route-archive strong{font-size:27px;font-weight:400;letter-spacing:-.06em}
.route-archive p{grid-column:2;font-size:12px;color:#a8a79e;margin:3px 0}
.route-archive small{grid-column:3;grid-row:1/3;text-align:right;color:#a59d8b;font:10px var(--mono);line-height:1.8}
body[data-page] .route-contact{min-height:830px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 20% 55%,#172833,#0c0d0d 50%,#121f26)}
.route-contact-window{position:relative;z-index:4;width:min(570px,95%);margin:20px auto;background:#0b0e0e}
.contact-form{display:flex;flex-direction:column;gap:14px;padding:28px 32px 33px}
.contact-form label{display:block}
.contact-form label small{display:block;color:#bbc5c0;font:11px var(--mono);margin:0 0 10px}
.contact-form label small span{color:#d07987}
.contact-form input,.contact-form textarea{display:block;width:100%;border:1px solid #344039;background:#090b0a;color:#e2e9e3;font:12px var(--mono);outline:none;padding:13px 15px;resize:vertical;border-radius:0;transition:border-color .2s,box-shadow .2s}
.contact-form input:focus,.contact-form textarea:focus{border-color:#89c79b;box-shadow:0 0 0 1px rgba(139,205,158,.11)}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:#536456}
.contact-form textarea{min-height:120px}
.contact-form button{align-self:flex-start;background:#101513;border:1px solid #56695a;color:#b6e1bd;padding:12px 16px;font:11px var(--mono);transition:background .2s,color .2s}
.contact-form button:hover{background:#80d98b;color:#0c180d}
.contact-form p{font:9px/1.65 var(--mono);color:#8c9c90;margin:0}
.contact-form>a{font:11px var(--mono);color:#bddfc2;padding-top:8px}
.contact-form>a:hover{text-decoration:underline}
.route-about .route-eyebrow,.route-about h1 em{color:#80d193}
body[data-page] .about-portrait .portrait-art{background:radial-gradient(ellipse at 55% 50%,rgba(46,117,70,.42),rgba(8,18,12,.8) 75%)}
@media(max-width:900px){.route-hero h1{font-size:clamp(43px,8vw,80px)}.route-archive>div{grid-template-columns:30px 1fr 140px}}
@media(max-width:600px){
 body[data-page] #frame-content{inset:36px 1px 31px 1px}
 body[data-page] .route-hero{padding:95px 18px 100px;min-height:calc(100dvh - 67px)}
 .route-hero h1{font-size:clamp(39px,10vw,57px);line-height:1.12}
 .route-hero p{font-size:12px;max-width:320px}
 .route-line{bottom:30px;height:60px}
 body[data-page] .route-bio{min-height:1260px}
 body[data-page] .route-techs{min-height:670px}
 body[data-page] .route-projects{min-height:700px}
 body[data-page] .route-projects .work-rows{margin-top:55px}
 body[data-page] .route-achievements-list{padding:100px 22px 70px}
 .route-archive{margin-top:60px;width:100%}
 .route-archive>div{grid-template-columns:28px 1fr;gap:8px 15px;padding:23px 3px}
 .route-archive strong{font-size:21px}
 .route-archive p{grid-column:2;font-size:11px}
 .route-archive small{grid-column:2;grid-row:3;text-align:left;font-size:9px}
 .route-next{min-height:530px!important}
 body[data-page] .route-contact{min-height:780px;padding:65px 17px 95px}
 .route-contact-window{width:100%}
 .contact-form{padding:22px 18px}
}
@media(prefers-reduced-motion:reduce){body[data-page] *{scroll-behavior:auto!important}}


/* Contact route places the actual desktop-window form immediately after the intro. */
body[data-page="contact"] .route-contact-intro{
 min-height:390px;height:auto;padding:58px 28px 55px
}
body[data-page="contact"] .route-contact-intro h1{
 font-size:clamp(37px,4.6vw,67px);line-height:1.12;margin:15px auto 12px
}
body[data-page="contact"] .route-contact-intro p{
 font-size:12px;max-width:500px;line-height:1.55
}
body[data-page="contact"] .route-contact-intro .route-line{display:none}
body[data-page="contact"] .route-contact{min-height:700px;padding:35px 40px 90px}
body[data-page="contact"] .route-contact-window{margin:0 auto}
.contact-form .contact-consent{
 display:flex;gap:10px;align-items:start;font:10px/1.6 var(--mono);color:#aab8ac
}
.contact-consent input[type="checkbox"]{
 width:13px;height:13px;margin:2px 0 0;flex:none;accent-color:#7de18a
}
.contact-consent span{flex:1}
@media(max-width:600px){
 body[data-page="contact"] .route-contact-intro{min-height:320px;padding:61px 23px 38px}
 body[data-page="contact"] .route-contact-intro h1{font-size:clamp(33px,8.3vw,48px)}
 body[data-page="contact"] .route-contact{padding:12px 18px 95px;min-height:750px}
 body[data-page="contact"] .route-contact-window{margin:0 auto}
}

/* The same precise frame geometry is shared by every route. */
body[data-page] #frame-content{inset:49px 8px 49px 48px}
body[data-page] .scene{min-height:calc(100dvh - 98px)}
body[data-page] .route-hero{min-height:calc(100dvh - 98px);padding-top:85px;padding-bottom:90px}
body[data-page] .route-hero h1{font-size:clamp(46px,6.6667vw,96px);letter-spacing:-.05em;line-height:1;width:min(1040px,100%);max-width:1040px}
body[data-page] .route-hero p{font-size:16px;line-height:1.5;max-width:580px}
body[data-page="contact"] .route-contact-intro{min-height:390px}
body[data-page="contact"] .route-contact-intro h1{font-size:clamp(40px,4.75vw,68px)}
@media(max-width:600px){
 body[data-page] #frame-content{inset:49px 9px 49px 9px}
 body[data-page] .scene{min-height:calc(100dvh - 98px)}
 body[data-page] .route-hero{min-height:calc(100dvh - 98px);padding:75px 16px 90px}
 body[data-page] .route-hero h1{font-size:clamp(39px,12.45vw,49px);letter-spacing:-.05em;line-height:1;width:100%}
 body[data-page] .route-hero p{font-size:12px;max-width:310px}
 body[data-page="contact"] .route-contact-intro{min-height:320px}
 body[data-page="contact"] .route-contact-intro h1{font-size:clamp(32px,8.4vw,47px)}
}

/* The About route shares the exact floating-window choreography and geometry
 * with the Home about section; on mobile it becomes a readable vertical stack. */
body[data-page="about"] .route-bio{min-height:1330px}
body[data-page="about"] #frame-content .about .section-heading h2{white-space:nowrap}
@media(max-width:600px){
 body[data-page="about"] .route-bio{min-height:1450px}
 body[data-page="about"] #frame-content .about .section-heading h2{white-space:normal}
}

/* Gallery presentation tracks the reference's image-led achievement tiles,
 * while keeping each milestone accurate to the portfolio owner.
 */
body[data-page] .route-achievements-list{display:block;min-height:1300px;padding:125px 7vw 130px}
body[data-page] .route-achievements-list .section-heading{text-align:center}
body[data-page] .route-achievements-list .section-heading h2{font-size:clamp(50px,6vw,84px)}
.achievements-gallery{width:min(1120px,100%);margin:91px auto 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:52px 25px}
.achievement-tile{display:block;min-width:0;position:relative;text-decoration:none;color:var(--white);transition:transform .32s ease}
a.achievement-tile:hover{transform:translateY(-8px)}
.achievement-art{height:220px;position:relative;overflow:hidden;isolation:isolate;border:1px solid #364339;background:radial-gradient(ellipse at 53% 60%,#34593e,#121a16 64%,#0d130f)}
.achievement-art::before{content:"";position:absolute;inset:0;opacity:.3;background-image:linear-gradient(90deg,transparent 97%,rgba(206,234,193,.15)),linear-gradient(0deg,transparent 97%,rgba(206,234,193,.15));background-size:26px 26px}
.achievement-corner{position:absolute;top:14px;left:16px;font:9px var(--mono);color:#a9c8a9;letter-spacing:.11em}
.achievement-glyph{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-8deg);font-size:clamp(54px,6vw,95px);font-family:var(--mono);font-weight:500;letter-spacing:-.11em;white-space:nowrap;color:#a6e3aa;filter:drop-shadow(0 11px 10px rgba(0,0,0,.35));transition:transform .4s ease,text-shadow .4s ease}
a.achievement-tile:hover .achievement-glyph{transform:translate(-50%,-50%) rotate(1deg) scale(1.11);text-shadow:0 0 35px rgba(133,230,133,.3)}
.achievement-scanline{position:absolute;inset:0;pointer-events:none;background:linear-gradient(transparent 50%,rgba(9,18,11,.07) 50%);background-size:100% 4px}
.achievement-art-label{position:absolute;bottom:13px;right:13px;color:#9bb49a;letter-spacing:.1em;font:8px var(--mono)}
.achievement-tile.research .achievement-art{background:radial-gradient(ellipse at 58% 60%,#324b5a,#0c171d 62%,#0e1214);border-color:#304752}
.achievement-tile.research .achievement-glyph,.achievement-tile.forensics .achievement-glyph{color:#8bc5d7}
.achievement-tile.ctf .achievement-art{background:radial-gradient(ellipse at 55% 57%,#62452f,#1e1510 65%,#140f0d);border-color:#534332}
.achievement-tile.ctf .achievement-glyph,.achievement-tile.linux .achievement-glyph{color:#e9bc81}
.achievement-tile.soc .achievement-art{background:radial-gradient(ellipse at 57% 54%,#4f385f,#1a1420 66%,#100e13);border-color:#494053}
.achievement-tile.soc .achievement-glyph{color:#c9ade3}
.achievement-tile.forensics .achievement-art{background:radial-gradient(ellipse at 44% 53%,#285558,#0e1819 66%,#0d1113);border-color:#34585a}
.achievement-tile.linux .achievement-art{background:radial-gradient(ellipse at 55% 54%,#594b2d,#1c180d 66%,#15120c);border-color:#5c5138}
.achievement-meta{display:flex;justify-content:space-between;align-items:center;margin-top:19px;font:10px var(--mono);color:#9bada0}
.achievement-tile h3{font-size:clamp(22px,2.25vw,34px);font-weight:400;letter-spacing:-.055em;margin:10px 0 5px}
.achievement-tile p{font-size:11px;color:#8d988d;line-height:1.7;margin:0}
@media(max-width:900px){.achievements-gallery{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){
 body[data-page] .route-achievements-list{min-height:0;padding:90px 22px 120px}
 body[data-page] .route-achievements-list .section-heading h2{font-size:46px}
 .achievements-gallery{display:grid;grid-template-columns:1fr;gap:35px;margin-top:55px}
 .achievement-art{height:220px}
 .achievement-glyph{font-size:85px}
 .achievement-tile h3{font-size:30px}
}
