
/* Route-specific visual fidelity: the source has an immersive, tinted hero on
   every page, not a repeated green gradient. 3D punctuation is layered above
   ambient light but behind accessible copy and navigation. */
body[data-page] .route-hero {
 isolation:isolate;
 display:flex;flex-direction:column;justify-content:center;align-items:center;
 height:calc(100dvh - 96px);min-height:calc(100dvh - 96px);
 padding:72px 55px 80px;text-align:center;
 overflow:hidden;background:#080a0d;
}
body[data-page] .route-hero::before{
 content:"";position:absolute;z-index:-1;inset:0;opacity:1;
 pointer-events:none;filter:none;
}
body[data-page="about"] .route-hero::before{
 background:
 radial-gradient(ellipse 50% 60% at 98% 11%,rgba(48,61,132,.58),transparent 77%),
 radial-gradient(ellipse 48% 59% at 0% 101%,rgba(44,55,125,.58),transparent 78%),
 #090a0d;
}
body[data-page="work"] .route-hero::before{
 background:
 radial-gradient(ellipse 49% 64% at 100% 10%,rgba(142,52,64,.58),transparent 76%),
 radial-gradient(ellipse 53% 67% at 0% 96%,rgba(145,54,74,.57),transparent 77%),
 #0c090a;
}
body[data-page="contact"] .route-hero::before{
 background:
 radial-gradient(ellipse 54% 65% at 100% 5%,rgba(58,93,124,.55),transparent 78%),
 radial-gradient(ellipse 52% 57% at 0% 98%,rgba(56,96,124,.49),transparent 75%),
 #090c0f;
}
body[data-page="achievements"] .route-hero::before{
 background:
 radial-gradient(ellipse 52% 59% at 100% 10%,rgba(149,112,52,.52),transparent 76%),
 radial-gradient(ellipse 51% 56% at 0% 95%,rgba(126,95,40,.45),transparent 78%),
 #0c0c0a;
}
body[data-page] .route-hero .route-eyebrow,
body[data-page] .route-hero h1,
body[data-page] .route-hero p,
body[data-page] .route-hero .route-line{position:relative;z-index:4}
body[data-page] .route-hero h1{
 width:min(1040px,100%);max-width:1040px;margin:21px auto 17px;
 font-size:clamp(50px,6.6667vw,96px);
 font-weight:400;letter-spacing:-.055em;line-height:1;
}
body[data-page] .route-hero p{
 font-size:16px;line-height:1.55;max-width:660px;color:#b9bdbc;
 margin:0 auto;
}
body[data-page] .route-hero .route-line{position:absolute;bottom:35px;left:50%}
body[data-page="about"] .route-hero h1 em{color:#a39aef}
body[data-page="work"] .route-hero h1 em{color:#ed8a9c}
body[data-page="contact"] .route-hero h1 em{color:#97c5df}
body[data-page="achievements"] .route-hero h1 em{color:#e0bd83}
body[data-page] .route-scene-layer{
 position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden;
}
.route-scene-layer canvas{
 display:block;position:absolute;width:100%;height:100%;inset:0;opacity:0;
 transition:opacity .75s ease;
}
.route-scene-layer .scene-object-fallback{
 position:absolute;inset:0;opacity:1;transition:opacity .75s ease;
}
.route-scene-layer.is-ready canvas{opacity:1}
.route-scene-layer.is-ready .scene-object-fallback{opacity:0}
.scene-object-fallback span{
 position:absolute;display:block;
 font:900 clamp(85px,13vw,210px)/1 Arial,sans-serif;
 color:#171a1c;opacity:.85;
 -webkit-text-stroke:2px #30343c;
 text-shadow:3px 3px 0 #292e35,7px 8px 0 #181b20,
  11px 15px 9px rgba(0,0,0,.7);
 transform-style:preserve-3d;
 animation:route-punctuation-drift 9s ease-in-out infinite alternate;
}
.route-scene-layer .scene-object-fallback span:nth-child(1){left:12%;top:16%;transform:rotate(-26deg) rotateY(23deg)}
.route-scene-layer .scene-object-fallback span:nth-child(2){right:22%;top:16%;font-size:clamp(80px,11vw,150px);transform:rotate(17deg) rotateY(-18deg);animation-delay:-3s}
.route-scene-layer .scene-object-fallback span:nth-child(3){right:12%;bottom:10%;transform:rotate(-21deg) rotateX(20deg);animation-delay:-6s}
@keyframes route-punctuation-drift{from{translate:0 -10px}to{translate:0 13px}}
body[data-page="work"] .route-hero h1,
body[data-page="contact"] .route-hero h1{max-width:1040px}
body[data-page="work"] .route-hero .route-eyebrow,
body[data-page="contact"] .route-hero .route-eyebrow{font-size:11px}

/* Work: source rhythm is full hero, seven tall project rows, notes carousel,
   collaboration and sparse footer. The introductory "Selected" heading was
   an invented element and put the first row ~136 px too low. */
body[data-page="work"] #work-page{
 height:2310px;min-height:2310px;
 padding:208px 45px 50px;display:flex;flex-direction:column;
 justify-content:flex-start;overflow:hidden;
}
body[data-page="work"] #work-page>.section-heading{display:none}
body[data-page="work"] #work-page .work-rows{
 width:min(1040px,100%);max-width:1040px;margin:0 auto;
 display:flex;flex-direction:column;align-items:center;gap:29px;
 border:0;
}
body[data-page="work"] #work-page .work-row{
 flex:none;position:relative;
 height:244px;min-height:244px;
 width:calc(100% - 52px);max-width:988px;
 margin:0;padding:32px 30px;
 background:rgba(14,12,15,.38);border:1px solid rgba(167,103,112,.31);
 transition:background .3s,border-color .3s,transform .3s,box-shadow .3s;
}
body[data-page="work"] #work-page .work-row:hover{
 background:rgba(46,25,33,.61);border-color:rgba(231,142,161,.62);
 box-shadow:0 18px 50px rgba(0,0,0,.25)
}
body[data-page="work"] #work-page .work-name strong{
 font-weight:400;font-size:clamp(33px,3.4vw,50px);letter-spacing:-.055em;
}
body[data-page="work"] #work-page .work-row .chips span{font-size:10px}
body[data-page="work"] #work-page .work-row time{font-size:11px}
body[data-page="work"] .route-testimonials{
 height:835px;min-height:835px;padding:110px 35px 75px;
 display:flex;align-items:center;flex-direction:column;overflow:hidden;
 background:radial-gradient(ellipse 55% 70% at 0 60%,rgba(66,124,75,.34),transparent 75%),#0c0f0d;
}
body[data-page="work"] .route-testimonials .section-heading h2{
 font-size:clamp(43px,4.7vw,65px);line-height:1.13;
}
body[data-page="work"] .route-testimonials .section-heading h2 em{color:#e9f0ea}
body[data-page="work"] .route-testimonials .notes-carousel{
 width:min(1000px,100%);margin:77px auto 0;position:relative;z-index:4;
}
body[data-page="work"] .route-testimonials .note-card{background:#101713;border-color:#527057}
body[data-page="work"] .route-collaboration{
 min-height:624px!important;height:624px;padding:80px 20px;
 display:flex;align-items:center;justify-content:center;
 background:radial-gradient(ellipse at 0 70%,rgba(63,119,68,.36),transparent 77%),#0b0e0b;
}
body[data-page="work"] .route-collaboration h2{
 font-size:clamp(44px,5.2vw,73px);line-height:1.08;
}
body[data-page="work"] .route-collaboration h2 em{color:#88db89}
body[data-page="work"] .route-collaboration .wave{display:block;margin:16px 0;font-size:33px}
body[data-page="work"] .route-collaboration .contact-cta{margin-top:38px}

/* Contact: original hero 804, form area 1514, footer 588 at 1440×900. */
body[data-page="contact"] #frame-content .route-contact-intro{
 height:calc(100dvh - 96px);min-height:calc(100dvh - 96px);
 padding:76px 44px 80px;
}
body[data-page="contact"] #frame-content .route-contact-intro h1{
 font-size:clamp(50px,6.6667vw,96px);line-height:1;max-width:1040px;
}
body[data-page="contact"] #contact-page{
 height:1514px;min-height:1514px;
 display:flex;justify-content:flex-start;align-items:center;
 flex-direction:column;padding:272px 30px 110px;
 background:radial-gradient(ellipse 55% 68% at 97% 55%,rgba(67,111,142,.34),transparent 79%),#0a0d0f;
}
body[data-page="contact"] #contact-page .route-contact-window{
 width:min(576px,100%);margin:0 auto;max-width:576px;
 background:#0d1215;border-color:#495a60;
}
body[data-page="contact"] #contact-page .window-header{background:#151d21;color:#cdd4d8}
body[data-page="contact"] #contact-page .contact-form{
 gap:28px;padding:28px 28px 35px;min-height:780px;
}
body[data-page="contact"] #contact-page .contact-form label small{
 font-size:12px;color:#ced6d8;margin-bottom:12px
}
body[data-page="contact"] #contact-page .contact-form input:not([type="checkbox"]),
body[data-page="contact"] #contact-page .contact-form textarea{
 padding:16px 14px;border-color:#405259;background:#0b1013;
}
body[data-page="contact"] #contact-page .contact-form button{
 padding:14px 21px;color:#d8eef1;border-color:#5a8792
}
body[data-page="contact"] #contact-page .contact-form button:hover{background:#9cdbec;color:#102025}
body[data-page="work"] .home-document-footer,
body[data-page="contact"] .home-document-footer{
 height:588px;min-height:588px
}

@media(max-width:600px){
 body[data-page] .route-hero{
  min-height:calc(100dvh - 96px);height:calc(100dvh - 96px);
  padding:70px 18px 70px;
 }
 body[data-page] .route-hero h1{
  font-size:clamp(41px,12vw,49px);width:100%;line-height:1.03;
 }
 body[data-page] .route-hero p{font-size:12px;max-width:320px}
 .scene-object-fallback span{font-size:77px}
 .route-scene-layer .scene-object-fallback span:nth-child(1){left:0%;top:17%}
 .route-scene-layer .scene-object-fallback span:nth-child(2){right:0;top:17%}
 .route-scene-layer .scene-object-fallback span:nth-child(3){right:3%;bottom:13%}
 body[data-page="work"] #work-page{
  height:auto;min-height:2620px;
  padding:115px 18px 85px;
 }
 body[data-page="work"] #work-page .work-rows{width:100%;gap:23px}
 body[data-page="work"] #work-page .work-row{
  width:100%;height:313px;min-height:313px;
  padding:35px 22px;
 }
 body[data-page="work"] #work-page .work-name strong{font-size:30px}
 body[data-page="work"] .route-testimonials{
  height:890px;min-height:890px;padding:93px 17px 60px;
 }
 body[data-page="work"] .route-testimonials .section-heading h2{font-size:36px}
 body[data-page="work"] .route-testimonials .notes-carousel{margin-top:65px}
 body[data-page="work"] .route-collaboration{
  height:657px;min-height:657px!important;
 }
 body[data-page="work"] .route-collaboration h2{font-size:38px}
 body[data-page="contact"] #frame-content .route-contact-intro{
  height:calc(100dvh - 96px);min-height:calc(100dvh - 96px);
  padding:72px 17px;
 }
 body[data-page="contact"] #frame-content .route-contact-intro h1{
  font-size:clamp(40px,11.4vw,49px);
 }
 body[data-page="contact"] #contact-page{
  height:auto;min-height:1480px;padding:120px 18px 110px;
 }
 body[data-page="contact"] #contact-page .route-contact-window{width:100%;max-width:100%}
 body[data-page="contact"] #contact-page .contact-form{padding:23px 19px;gap:24px}
 body[data-page="work"] .home-document-footer,
 body[data-page="contact"] .home-document-footer{height:509px;min-height:509px}
}
@media(prefers-reduced-motion:reduce){
 .route-scene-layer .scene-object-fallback span{animation:none}
}

/* Final geometry reconciliation from 1440px reference screenshots. */
body[data-page="work"] #frame-content .route-testimonials{
 height:835px!important;min-height:835px!important;max-height:835px;
 padding:118px 35px 0!important;
 overflow:hidden;
}
body[data-page="about"] .route-hero::before{
 background:
 radial-gradient(ellipse 50% 60% at 98% 11%,rgba(49,65,138,.63),transparent 77%),
 radial-gradient(ellipse 48% 59% at 0% 101%,rgba(52,64,139,.65),transparent 78%),
 #090a0d;
}
body[data-page="contact"] .route-hero::before{
 background:
 radial-gradient(ellipse 54% 65% at 100% 5%,rgba(66,103,130,.61),transparent 78%),
 radial-gradient(ellipse 52% 57% at 0% 98%,rgba(69,119,142,.59),transparent 75%),
 #090c0f;
}
@media(max-width:600px){
 body[data-page="work"] #frame-content .route-testimonials{
  height:890px!important;min-height:890px!important;max-height:890px;
  padding:100px 18px 0!important;
 }
}
