/* Compact screen layout. Print/PDF keeps its existing A4 formatting. */
@media screen {
  html{scroll-padding-top:96px}
  .site-header{width:calc(100% - 32px);max-width:1248px;margin:10px auto;top:10px;padding:12px 22px;gap:20px;border:1px solid #ffffffa6;border-radius:999px;background:linear-gradient(145deg,#ffffff75,#ffffff26 55%,#e9effa40);-webkit-backdrop-filter:blur(28px) saturate(180%);backdrop-filter:blur(28px) saturate(180%);box-shadow:inset 0 1px 0 #ffffffed,inset 0 -1px 0 #ffffff52,0 8px 26px #2d354212,0 1px 4px #2d35420a}
  .brand{gap:14px}
  .brand-logo{width:84px;height:42px;object-fit:contain;flex-shrink:0}
  .site-header nav{gap:4px;align-items:center}
  .site-header nav a{padding:7px 11px;border:1px solid transparent;border-radius:999px;transition:background .18s,box-shadow .18s,color .18s}
  .site-header nav a:hover,.site-header nav a:focus-visible{background:#ffffff66;border-color:#ffffff9c;box-shadow:inset 0 1px 0 #ffffffc9,0 3px 10px #2d35420a;color:#3d5073}
  .site-header .button.small{border:1px solid #ffffffa6;border-radius:999px;background:linear-gradient(145deg,#ffffff88,#ffffff30);box-shadow:inset 0 1px 0 #ffffffc9,0 2px 6px #2d354208}
  .section,.video-section,.admin-section{padding-top:40px;padding-bottom:40px}
  .admin-section{background:#fff}
  .work-section{background:#fff}
  .eyebrow{margin-bottom:12px}
  h2{font-size:32px;letter-spacing:-1px}
  .section-heading{margin-bottom:22px;gap:24px}
  .section-heading>p{line-height:1.7}
  .profile-section{padding-block:28px}
  .profile-label{margin-bottom:14px}
  .profile-grid{grid-template-columns:235px minmax(0,1fr);gap:28px;align-items:center}
  .profile-portrait{max-width:235px}
  .portrait-frame{aspect-ratio:1086/1124;background:transparent;border:0;-webkit-mask-image:linear-gradient(to top,transparent 0%,transparent 4%,rgba(0,0,0,.08) 6%,rgba(0,0,0,.32) 9%,rgba(0,0,0,.7) 12%,#000 16%,#000 100%);mask-image:linear-gradient(to top,transparent 0%,transparent 4%,rgba(0,0,0,.08) 6%,rgba(0,0,0,.32) 9%,rgba(0,0,0,.7) 12%,#000 16%,#000 100%)}
  .portrait-frame img{position:absolute;top:-16.014%;left:0;width:100%;height:auto;max-width:none;object-fit:initial}
  .profile-portrait figcaption{margin-top:7px;gap:4px;justify-content:center;text-align:center}
  .profile-intro h1{font-size:38px;font-weight:700;letter-spacing:-1.4px;margin-bottom:9px}
  .profile-intro>p:not(.eyebrow){font-size:12px;line-height:1.7;margin-bottom:9px}
  .profile-intro>p.profile-role{margin-bottom:12px;font-size:10px}
  .profile-meta{display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px 18px;margin:0 0 12px}
  .profile-meta p{display:flex;align-items:flex-start;gap:6px;font-size:10px;line-height:1.7;margin:0;color:#60708e}
  .profile-meta svg{width:14px;height:14px;flex-shrink:0;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .profile-location{white-space:nowrap}
  .profile-meta .profile-location{color:#6a6e75}
  .profile-meta .profile-role{flex:1 1 330px;min-width:0}
  .profile-actions{gap:20px;margin-top:14px}
  .profile-actions .button{padding:11px 16px}
  .profile-history{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}
  .profile-history article{padding-top:0;border-top:0}
  .profile-history .history-date{display:inline-block;border:1px solid #000;border-radius:999px;padding:4px 9px;background:transparent;line-height:1.5;letter-spacing:.5px}
  .profile-history,.profile-history h3,.profile-history p,.profile-history small,.profile-history .history-date{color:#000}
  .profile-history h3{font-size:14px;line-height:1.4;margin:6px 0}
  .profile-history p{line-height:1.6;margin-bottom:5px}
  .profile-section .software-header{margin-top:20px;padding:14px 0 8px}
  .profile-section .software-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}
  .profile-section .software-row{padding:10px 0;gap:10px}
  .software-row h4{margin-bottom:3px}
  .software-identity{display:flex;align-items:center;gap:10px;min-width:0}
  .software-identity>div{min-width:0}
  .software-icon{display:block;width:24px;height:24px;flex-shrink:0;object-fit:contain;filter:brightness(0)}
  .profile-section .print-row{margin-top:12px}
  .profile-bottom-spacer{height:31.15px;margin-top:12px}
  .hero{padding-top:32px;padding-bottom:32px;gap:30px}
  .hero h1{font-size:66px;letter-spacing:-3px;line-height:1;margin-bottom:16px}
  .hero h1>span{letter-spacing:-3px}
  .hero-intro{line-height:1.7;margin-block:10px}
  .hero-actions{margin-top:16px;gap:20px}
  .hero-location{margin-top:16px}
  .hero-collage{height:300px;max-width:450px;width:100%;margin:auto}
  .collage-main{bottom:40px;right:30px;top:5px}
  .collage-mini{height:130px;bottom:15px;right:0;border-width:4px}
  .collage-stamp{font-size:65px;right:0;top:-6px}
  .collage-note{bottom:0;font-size:6px}
  .facts{padding-block:18px}
  .facts strong{font-size:28px}
  .gallery-toolbar{padding:12px 0 18px}
  .work-grid[hidden],.work-empty[hidden]{display:none}
  .work-empty{margin:0;padding:30px 20px;border:1px dashed #c1c8d5;border-radius:8px;text-align:center;font-size:12px;line-height:1.7;color:#677081}
  .filters [role=tab]:focus-visible{outline:2px solid #57709e;outline-offset:3px}
  #work-panel:focus-visible{outline:2px solid #57709e;outline-offset:5px}
  .branding-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:18px 20px;align-items:start}
  .branding-grid[hidden]{display:none}
  .branding-item{margin:0;min-width:0}
  .branding-item:first-child{grid-row:1 / span 2}
  .branding-image{position:relative;display:block;width:100%;padding:0;border:0;background:transparent;overflow:hidden;border-radius:3px;cursor:zoom-in}
  .branding-image img{display:block;width:100%;height:auto}
  .branding-image>span{position:absolute;right:9px;bottom:9px;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#ffffffe6;color:#222;font-size:18px}
  .lightbox-viewport{flex:1;min-width:0;height:66vh;max-height:720px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;background:#0f1218}
  .lightbox-canvas{display:flex;align-items:center;justify-content:center;min-width:100%;min-height:100%}
  .lightbox-viewport img{display:block;flex:none;max-width:none;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none}
  .lightbox-viewport.is-zoomed{cursor:grab}
  .lightbox-viewport.is-panning{cursor:grabbing}
  .image-tools{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:12px}
  .image-tools button{min-height:32px;min-width:32px;border:1px solid #6f7a8e;background:transparent;color:#f5f1fb;border-radius:999px;padding:5px 10px;font-size:12px}
  .image-tools button:disabled{opacity:.35;cursor:default}
  .image-tools output{min-width:45px;text-align:center;font-size:11px}
  .image-tools>span{font-size:9px;color:#a9b3c6;margin-left:4px}
  .portfolio-band{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:86px;padding:16px 25px;margin-bottom:24px;border:1px solid #2e343f;border-radius:4px;overflow:hidden;background:#1c1e22;color:#fff}
  .portfolio-band::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,transparent 25%,#4e7ed53d 43%,#9bb4e35c 50%,#4e7ed53d 57%,transparent 75%);animation:portfolio-light 9s linear infinite}
  .portfolio-band::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(#ffffff24 1px,transparent 1px);background-size:16px 16px;mask-image:linear-gradient(90deg,transparent 30%,#000);animation:portfolio-grid 24s linear infinite}
  .portfolio-band p{margin:0;font-size:35px;line-height:1.2;font-weight:700;letter-spacing:-1.3px}
  .portfolio-band-star{color:#9ab5e6;font-size:43px;line-height:1;animation:portfolio-turn 22s linear infinite}
  .portfolio-band[data-motion=playing]::before{animation:portfolio-light 9s linear -4.5s infinite!important}
  .portfolio-band[data-motion=playing]::after{animation:portfolio-grid 24s linear infinite!important}
  .portfolio-band[data-motion=playing] .portfolio-band-star{animation:portfolio-turn 22s linear infinite!important}
  .work-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}
  .work-card:nth-child(n){grid-column:auto}
  .work-meta{padding-top:10px;gap:10px}
  .work-meta h3{font-size:16px;line-height:1.35}
  .gallery-bottom{padding-top:20px}
  .attribution{padding:10px 14px;margin-bottom:22px}
  .video-grid{gap:24px 18px}
  .video-poster{aspect-ratio:3/4}
  .video-bottom{margin-top:20px}
  .admin-duties{gap:12px 30px}
  .admin-duties article{padding:15px 0 9px}
  .duty-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .duty-icon{display:block;width:24px;height:24px;flex-shrink:0;fill:none;stroke:#000;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .admin-duties h3{font-size:16px;margin:10px 0 8px}
  .admin-duties p{line-height:1.7}
  .admin-summary{margin-top:15px;padding-top:14px}
  .app-visual,.resi-graphic{height:240px}
  .app-card button.app-image-link{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;text-align:left}
  .app-visual.ui-visual{background:#16191f}
  .app-visual.ui-visual>img{width:100%;height:100%;object-fit:contain;object-position:center}
  .app-project-cover .app-visual.ui-visual{height:auto;aspect-ratio:16/9}
  .app-demo-video{display:block;width:100%;max-height:620px;background:#08090b;object-fit:contain;border-radius:3px}
  .app-ui-gallery{padding-top:28px}
  .resi-paper{top:27px;width:112px;height:156px;left:calc(50% - 56px);padding:10px;gap:8px}
  .resi-label{gap:7px;padding:4px}
  .resi-label>span{height:9px}
  .resi-steps{bottom:15px}
  .app-copy{padding-top:15px;text-align:center}
  .app-copy>.eyebrow{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:4px 9px;border:1px solid #bbc5d7;border-radius:999px;line-height:1.4;letter-spacing:.6px}
  .app-copy>div{justify-content:center;flex-wrap:wrap;gap:8px}
  .app-copy .status-dot,.app-copy .text-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:5px 9px;border:1px solid #bbc5d7;border-radius:999px;line-height:1.4;text-decoration:none;white-space:nowrap}
  .app-copy .text-link:hover{border-color:#6c7e9f;color:#354561}
  .app-card .app-label{left:50%;transform:translateX(-50%);border-radius:999px;white-space:nowrap}
  .video-source[hidden]{display:none}
  .app-copy h3{font-size:23px;margin-bottom:8px}
  .app-copy>p:not(.eyebrow){margin:0 auto 10px;line-height:1.7}
  .dev-note{padding:16px 20px;margin-top:22px;gap:18px}
  .site-footer{padding-top:36px}
  .footer-top{gap:40px}
  .footer-top h2{font-size:36px}
  .footer-bottom{margin-top:28px;padding-top:16px}
  .project-head{padding-top:28px;padding-bottom:26px}
  .project-story{padding-top:36px;padding-bottom:36px;gap:36px}
  .gallery-section{padding-bottom:36px}
  .next-project{padding-block:28px 34px}
  .admin-jobs{padding-bottom:36px}
}
@media screen and (max-width:1050px){
  .profile-grid{grid-template-columns:200px minmax(0,1fr);gap:24px}
  .profile-history{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .profile-intro h1{font-size:34px}
  .profile-history h3{font-size:13px}
  .hero h1{font-size:58px}
  .hero-collage{height:270px}
  .admin-section .section-heading>p{margin-top:12px}
}
@media screen and (max-width:720px){
  html{scroll-padding-top:84px}
  .site-header{width:calc(100% - 20px);margin:8px auto;top:8px;padding:10px 14px;gap:12px}
  .brand{gap:10px}
  .brand-logo{width:68px;height:34px}
  .site-header nav{top:calc(100% + 8px);padding:12px;gap:4px;border:1px solid #ffffffa6;border-radius:22px;background:linear-gradient(145deg,#ffffffe0,#f1edf7c4);-webkit-backdrop-filter:blur(28px) saturate(180%);backdrop-filter:blur(28px) saturate(180%);box-shadow:inset 0 1px 0 #ffffffed,0 8px 24px #2d354214}
  .site-header nav a{padding:8px 11px;font-size:11px}
  .menu-toggle{border-radius:50%;background:#ffffff42}
  .wrap{padding-inline:20px}
  .section,.video-section,.admin-section{padding-block:28px}
  h2{font-size:28px}
  .section-heading{margin-bottom:18px}
  .section-heading .eyebrow{margin-bottom:10px}
  .section-heading>p{margin-top:12px;line-height:1.7}
  .profile-section{padding-block:20px}
  .profile-label{margin-bottom:12px}
  .profile-grid{grid-template-columns:1fr;gap:14px}
  .branding-grid{gap:12px 10px}
  .branding-image>span{width:22px;height:22px;right:5px;bottom:5px;font-size:15px}
  .lightbox-viewport{height:62vh}
  .image-tools{gap:6px}
  .image-tools>span{flex-basis:100%;text-align:center;margin-left:0}
  .profile-portrait{width:170px;margin-inline:auto}
  .profile-portrait figcaption{font-size:6px;line-height:1.5}
  .profile-intro h1{font-size:31px;margin-bottom:7px}
  .profile-intro>p.profile-role{font-size:9px;margin-bottom:11px}
  .profile-intro>p:not(.eyebrow){line-height:1.65;font-size:12px;margin-bottom:8px}
  .profile-actions{gap:20px;margin-top:13px}
  .profile-actions .button{padding:10px 14px}
  .profile-history{grid-template-columns:1fr;gap:12px;margin-top:20px}
  .profile-history article{padding-top:0;border-top:0}
  .profile-history .history-date{font-size:8px}
  .profile-history h3{font-size:16px;margin:5px 0}
  .profile-history p{font-size:11px;margin-bottom:4px}
  .profile-history small{font-size:9px}
  .profile-section .software-header{margin-top:18px;padding:12px 0 7px}
  .software-header h3{font-size:16px}
  .software-header>p{margin-top:4px;font-size:8px}
  .profile-section .software-grid{grid-template-columns:1fr 1fr;gap:0 18px}
  .profile-section .software-row{display:block;padding:9px 0}
  .software-row h4{font-size:11px;line-height:1.4}
  .software-row p{font-size:8px;line-height:1.5}
  .software-row .level{display:inline-block;margin-top:5px;font-size:7px;padding:2px 6px}
  .software-identity{gap:8px}
  .software-row .level{margin-left:32px}
  .print-row p{font-size:9px;max-width:160px}
  .print-row button{font-size:9px}
  .profile-bottom-spacer{height:29.7px}
  .hero{grid-template-columns:1fr 1fr;gap:14px;padding-block:26px}
  .hero h1{font-size:40px;letter-spacing:-1.8px;line-height:1.04;margin-bottom:12px}
  .hero h1>span{letter-spacing:-1.8px}
  .hero-copy .eyebrow{font-size:6px;letter-spacing:.6px;gap:5px;margin-bottom:11px}
  .hero-intro{font-size:10px;line-height:1.7}
  .hero-actions{display:block;margin-top:12px}
  .hero-actions .button{font-size:9px;padding:10px 9px;gap:8px;max-width:100%}
  .hero-contact{display:inline-block;font-size:9px;margin-top:10px}
  .hero-location{font-size:6px;line-height:1.8;letter-spacing:.3px;margin-top:12px}
  .hero-location span{margin:0 4px}
  .hero-collage{height:210px;margin-top:0}
  .collage-main{left:0;right:7px;bottom:36px}
  .collage-mini{height:80px;bottom:20px;width:65%;right:-3px;border-width:3px}
  .collage-caption{font-size:4px;left:6px;bottom:6px;padding:3px 4px;letter-spacing:.3px}
  .collage-stamp{font-size:42px;right:-2px}
  .collage-note{font-size:4px;letter-spacing:.6px;left:0;bottom:2px}
  .facts{padding-block:15px}
  .facts strong{font-size:23px}
  .facts p{margin-top:6px}
  .work-grid{grid-template-columns:1fr 1fr;gap:20px 14px}
  .work-meta .eyebrow{font-size:6px;letter-spacing:.5px;margin-bottom:4px}
  .work-meta h3{font-size:13px;letter-spacing:-.3px}
  .work-detail{font-size:17px}
  .work-index{font-size:6px;top:8px;left:8px}
  .image-open{width:25px;height:25px;line-height:24px;font-size:16px;right:8px;bottom:8px}
  .gallery-toolbar{padding:10px 0 15px;gap:10px}
  .portfolio-band{min-height:66px;padding:12px 18px;margin-bottom:18px}
  .portfolio-band p{font-size:28px;letter-spacing:-.8px}
  .portfolio-band-star{font-size:33px}
  .filters button{font-size:8px;padding:6px 9px}
  .gallery-result{font-size:7px}
  .gallery-bottom{padding-top:16px}
  .gallery-bottom>span{margin-top:9px}
  .video-grid{gap:20px 14px}
  .video-meta h3{min-height:0}
  .attribution{margin-bottom:18px}
  .admin-duties{gap:0}
  .admin-duties article{padding:13px 0}
  .admin-duties h3{font-size:16px;margin:8px 0 6px}
  .admin-duties p{font-size:11px;line-height:1.75}
  .duty-number{font-size:18px}
  .app-grid{gap:20px}
  .app-card{display:block}
  .app-card .app-visual,.app-card .resi-graphic{height:auto;aspect-ratio:16/9}
  .app-card .app-copy{padding-top:12px}
  .app-card .app-label{font-size:5px;left:50%;bottom:7px;padding:3px 4px;letter-spacing:.2px}
  .app-card .app-icon{width:22px;height:22px;left:7px;top:7px}
  .app-card .timbrelis-visual>img:not(.app-icon){padding:9px}
  .app-copy{padding-top:0}
  .app-copy .eyebrow{font-size:7px;margin-bottom:6px}
  .app-copy h3{font-size:20px;letter-spacing:-.6px;margin-bottom:6px}
  .app-copy>p:not(.eyebrow){font-size:11px;line-height:1.65;margin-bottom:9px}
  .app-copy>div{flex-wrap:wrap;gap:6px}
  .app-copy .text-link{font-size:9px}
  .app-card .diagram-label{font-size:5px;top:8px;left:7px;letter-spacing:.5px}
  .app-card .resi-paper{width:62px;height:88px;left:calc(50% - 31px);top:26px;padding:6px;gap:4px}
  .app-card .resi-label{padding:2px;gap:4px}
  .app-card .resi-label strong{font-size:6px}
  .app-card .resi-label i{height:7px}
  .app-card .resi-label>span{height:7px}
  .app-card .resi-steps{left:4px;right:4px;bottom:10px;font-size:5px;gap:4px}
  .app-card .resi-steps b{font-size:9px}
  .dev-note{padding:13px 15px;margin-top:18px;gap:13px}
  .footer-top h2{font-size:30px}
  .footer-top{gap:20px}
  .site-footer{padding-top:28px}
  .footer-bottom{margin-top:22px}
  .project-story{padding-block:26px;gap:15px}
}
@keyframes portfolio-light{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@keyframes portfolio-grid{from{background-position:0 0}to{background-position:48px 16px}}
@keyframes portfolio-turn{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@media screen{
  .rail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
  .rail-heading h3{font-size:18px;letter-spacing:-.4px;margin:0}
  .rail-heading h3 span{display:inline-block;font-size:10px;font-weight:400;padding:3px 7px;border:1px solid #c3c9d4;border-radius:999px;margin-left:7px;vertical-align:middle}
  .rail-heading p{font-size:9px;color:#677081;margin:0}
  .feed-heading{margin-top:26px}
  .video-playback-note{margin:8px 0 0;font-size:9px;line-height:1.6;color:#677081}
  #konten .video-bottom{justify-content:flex-end}
  .media-rail{display:grid;grid-auto-flow:column;grid-auto-columns:190px;gap:18px 14px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-behavior:auto;scrollbar-width:thin;scrollbar-color:#9eaecd transparent;padding-bottom:12px;cursor:grab;touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none}
  .media-rail:focus-visible{outline:2px solid #57709e;outline-offset:5px}
  .media-rail.is-dragging,.media-rail[data-held=true]{cursor:grabbing}
  .media-rail.is-dragging button,.media-rail.is-dragging a{cursor:grabbing}
  .media-rail img{-webkit-user-drag:none;pointer-events:none}
  .video-rails{display:grid;gap:18px;min-width:0}
  .video-rail{grid-template-rows:auto}
  .media-rail{scrollbar-width:none}
  .media-rail::-webkit-scrollbar{display:none}
  .media-rail .video-poster{aspect-ratio:4/5}
  .media-rail .video-meta{text-align:center}
  .media-rail .video-meta h3{font-size:13px;min-height:0;line-height:1.35;margin:5px 0 7px;text-align:center}
  .media-rail .video-meta>p{font-size:7px;margin:0}
  .media-rail .video-meta>div{font-size:8px;justify-content:center;gap:6px;flex-wrap:wrap}
  .media-rail .video-watch{font-size:7px}
  .feed-card{margin:0;min-width:0}
  .feed-card .gallery-image{width:100%;aspect-ratio:4/5;display:block;background:transparent;position:relative;overflow:hidden;padding:0;border:0;cursor:pointer}
  .feed-card .gallery-image img{width:100%;height:100%;object-fit:contain}
  .feed-card .gallery-image>span{position:absolute;bottom:10px;right:10px;display:grid;place-items:center;width:26px;height:26px;background:transparent;border-radius:50%;font-size:17px;color:#222}
  .feed-card figcaption{padding-top:9px;text-align:center}
  .feed-card figcaption>strong{display:block;font-size:13px;line-height:1.4}
  .feed-card figcaption>div{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;font-size:8px;margin-top:6px;color:#6a6e75}
  .media-rail .video-meta time,.media-rail .video-meta .source-link,.feed-card figcaption time,.feed-card figcaption .source-link{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 7px;border:1px solid #bbc5d7;border-radius:999px;font-size:8px;line-height:1.3;white-space:nowrap;text-decoration:none;color:#6a6e75}
  .media-rail .source-link:hover,.feed-card figcaption .source-link:hover{border-color:#6c7e9f;color:#354561}
}
@media screen and (max-width:720px){
  .rail-heading{align-items:flex-start;gap:10px}
  .rail-heading h3{font-size:16px;white-space:nowrap}
  .rail-heading p{font-size:8px;text-align:right;max-width:155px;line-height:1.5}
  .media-rail{grid-auto-columns:148px;gap:16px 12px}
  .media-rail .video-poster{aspect-ratio:4/5}
  .media-rail .video-meta h3{font-size:11px}
  .feed-heading{margin-top:22px}
}
@media(prefers-reduced-motion:reduce){.portfolio-band::before,.portfolio-band::after,.portfolio-band-star{animation:none!important}.portfolio-band::before{transform:none}}

/* Nauval's blue and navy brand palette. */
@media screen{
  .profile-section{background:#f1f5fa}
  .video-section,.app-section{background:#edf3ff}
  .portfolio-band{background:linear-gradient(110deg,#030c21,#052760);border-color:#153d76}
  .portfolio-band-star{color:#65a3ff}
  .attribution{background:#dce9ffbb;border-left-color:#005bff}
  .attribution p{color:#405775}
  .attribution strong{color:#17345d}
  .profile-meta .profile-role,.duty-number{color:#2857a0}
  .site-header nav a:hover,.site-header nav a:focus-visible{color:#0047c9}
  .site-header nav a[aria-current]{color:#0047c9}
  .button.filled{background:#005bff;border-color:#005bff;color:#fff}
  .button.filled:hover{background:#0047cc;border-color:#0047cc}
  .filters button.active{background:#005bff;border-color:#005bff}
  .status-dot{color:#405775}
  .status-dot:before{background:#005bff}
  .site-footer{background:#071633}
}

@media screen{
  :root{--brand-gradient:linear-gradient(110deg,#02050d 0%,#002775 48%,#005bff 100%)}
  .filters button.active,.profile-actions .button.filled,.site-header .button.small{background:var(--brand-gradient);border-color:#164ca8;color:#fff}
  .filters button.active:hover,.profile-actions .button.filled:hover,.site-header .button.small:hover{background:linear-gradient(110deg,#061126 0%,#003597 48%,#1970ff 100%);border-color:#2871e0;color:#fff}
}

/* Shared SVG icons replace decorative text glyphs. */
.ui-icon{display:inline-block;width:1em;height:1em;flex-shrink:0;vertical-align:-.12em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.button .ui-icon,.text-link .ui-icon,.back-link .ui-icon{width:14px;height:14px}
.back-link{display:inline-flex;align-items:center;gap:6px}
.menu-toggle,.modal-close,.image-prev,.image-next{align-items:center;justify-content:center}
.menu-toggle .ui-icon{width:20px;height:20px}
.modal-close{display:flex}
.modal-close .ui-icon{width:18px;height:18px}
.lightbox-stage>button{display:flex}
.lightbox-stage>button .ui-icon{width:16px;height:16px}
.image-tools button .ui-icon{width:15px;height:15px;vertical-align:middle}
.play-mark{padding-left:2px}
.play-mark .ui-icon{width:18px;height:18px;fill:currentColor;stroke:none}
.video-watch{display:inline-flex;align-items:center;gap:4px}
.video-watch .ui-icon{width:10px;height:10px}
.image-open{display:grid;place-items:center}
.image-open .ui-icon{width:18px;height:18px}
.work-detail .ui-icon{display:block;width:20px;height:20px}
.gallery-image>span .ui-icon,.branding-image>span .ui-icon{width:16px;height:16px;vertical-align:middle}
.portfolio-band-star{display:block}
.portfolio-band-star .ui-icon{display:block;width:43px;height:43px}
.dev-note>span .ui-icon{display:block;width:34px;height:34px}
.rail-heading p .ui-icon{width:13px;height:13px;margin-left:3px}
.footer-contact>a .ui-icon{width:12px;height:12px;margin-left:4px}
.footer-top h2>span{display:inline-block}
.footer-top h2>span .ui-icon{width:1em;height:1em}
.footer-bottom .ui-icon{width:11px;height:11px;vertical-align:-2px}
.next-project>a>span .ui-icon{display:block;width:32px;height:32px}
@media screen and (max-width:720px){
  .portfolio-band-star .ui-icon{width:33px;height:33px}
  .media-rail .source-link .ui-icon,.feed-card .source-link .ui-icon{width:9px;height:9px}
}

/* Experience beside two compact education cards. */
@media screen{
  .profile-history{grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr);align-items:stretch;gap:12px}
  .profile-history article{min-width:0;padding:14px 16px;border:1px solid #d2dce9;border-radius:12px;background:#ffffffb3}
  .profile-history .history-date{font-size:7px;max-width:100%;white-space:nowrap}
  .profile-history h3{max-width:none;text-wrap:balance}
  .history-experience h3{font-size:18px;line-height:1.35;margin:8px 0 4px}
  .history-experience p{font-size:11px;line-height:1.5;margin:0}
  .history-period{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid #dce3ed}
  .history-period small{font-size:9px;line-height:1.5}
  .history-period strong{font-size:10px;font-weight:600;white-space:nowrap}
  .history-education{display:grid;grid-template-rows:1fr 1fr;gap:10px;min-width:0}
  .history-education article{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:12px;padding:12px 14px}
  .history-education h3{font-size:13px;line-height:1.4;margin:0}
  .history-education p{font-size:10px;line-height:1.5;margin:4px 0 0}
}
@media screen and (max-width:1050px){
  .history-education article{grid-template-columns:1fr;gap:6px}
  .history-education .history-date{justify-self:start}
}
@media screen and (max-width:720px){
  .profile-history{grid-template-columns:1fr;gap:10px}
  .profile-history article{padding:13px 14px}
  .history-education{gap:10px}
  .history-education article{grid-template-columns:max-content minmax(0,1fr);gap:10px}
  .history-education h3{font-size:12px}
  .profile-history .history-date{font-size:6px;letter-spacing:.3px;padding:4px 7px}
}
@media screen and (max-width:370px){
  .history-education article{grid-template-columns:1fr;gap:6px}
}

/* Plain icon labels and dates, without history capsules. */
@media screen{
  .profile-meta .profile-role{flex-basis:100%}
  .profile-meta .profile-birth{color:#4b5563;white-space:nowrap}
  .profile-history .history-date{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:0;background:none;padding:0;font-size:8px;letter-spacing:.8px;font-weight:600;text-transform:uppercase}
  .profile-history .history-date .ui-icon{width:14px;height:14px;color:#000}
  .history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:7px;margin-bottom:8px;border-bottom:1px solid #dce3ed}
  .profile-history .history-year{font-size:9px;line-height:1.5;white-space:nowrap}
  .history-experience{display:flex;flex-direction:column}
  .history-experience h3{margin-top:0}
  .history-experience .history-period{margin-top:auto;padding-top:10px}
  .history-education article{grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:center}
  .history-education-icon{color:#005bff}
  .history-education-icon .ui-icon{display:block;width:24px;height:24px}
  .history-education .history-heading{padding-bottom:0;margin-bottom:4px;border:0}
}
@media screen and (max-width:720px){
  .profile-meta{gap:6px 14px}
  .profile-history .history-date{font-size:8px;letter-spacing:.6px;padding:0}
  .history-education article{grid-template-columns:22px minmax(0,1fr);gap:10px}
  .history-education-icon .ui-icon{width:22px;height:22px}
}

/* Center the CV label and SVG without inline baseline spacing. */
.site-header .button.small{display:inline-flex;align-items:center;justify-content:center;line-height:1;white-space:nowrap;flex-shrink:0}
.site-header .button-label{display:block;line-height:1}
.site-header .button-icon{display:flex;align-items:center;justify-content:center;line-height:0}
.site-header .button-icon .ui-icon{display:block;vertical-align:initial}
@media screen and (max-width:720px){
  .site-header .button.small{min-height:36px;padding:9px 12px;gap:9px}
  .site-header .button-icon .ui-icon{width:12px;height:12px}
}

.feature-groups{display:grid;gap:18px;margin:18px 0 24px}
.feature-group{padding-top:14px;border-top:1px solid var(--line)}
.feature-group h4{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:13px;line-height:1.5;font-weight:600}
.feature-group h4 .ui-icon{width:18px;height:18px;color:var(--brand)}
.feature-group .feature-list{margin:0;line-height:1.7}
.feature-group .feature-list li+li{margin-top:5px}

/* Supporting documents have their own page; only a small link appears in the profile. */
.support-documents-link{display:flex;align-items:center;justify-content:center;gap:8px;width:fit-content;max-width:100%;min-height:44px;margin:14px auto 0;padding:11px 19px;border:1px solid #9aa8bc;border-radius:999px;background:transparent;color:#17263c;font-size:11px;font-weight:500;line-height:1.5;text-align:center;transition:background .18s,border-color .18s}
.support-documents-link .ui-icon{width:15px;height:15px;flex-shrink:0}
.support-documents-link:hover{background:#ffffff70;border-color:#506582}
.documents-page{padding-top:35px;padding-bottom:65px}
.documents-page .back-link{display:inline-flex;align-items:center;gap:7px;margin-bottom:24px}
.documents-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:35px;align-items:end;padding-bottom:27px;border-bottom:1px solid var(--line)}
.documents-heading .eyebrow{margin-bottom:14px}
.documents-heading h1{font-size:clamp(30px,3.5vw,46px);font-weight:500;line-height:1.12;letter-spacing:-1.7px;margin:0 0 16px}
.documents-heading p:not(.eyebrow){margin:0;color:var(--muted);font-size:12px;line-height:1.8}
.documents-download{display:flex;align-items:center;flex-direction:column;gap:13px;padding-bottom:3px}
.documents-download .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:11px;white-space:nowrap;border-radius:999px;background:var(--brand-gradient);color:#fff}
.documents-download .text-link{font-size:11px}
.documents-download>span{font-size:10px;color:var(--muted)}
.documents-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 0}
.document-filters{display:flex;flex-wrap:wrap;gap:8px}
.document-filters button{min-height:44px;border:1px solid #b9c6d8;border-radius:999px;background:#fff;color:#17263c;font:inherit;font-size:11px;font-weight:500;padding:10px 17px;cursor:pointer}
.document-filters button[aria-selected=true]{color:#fff;background:var(--brand-gradient);border-color:#164ca8;box-shadow:0 3px 9px #005bff25}
.document-filters button:hover:not([aria-selected=true]){background:#edf3ff;border-color:#005bff}
.document-filters button:focus-visible,.document-preview:focus-visible,.support-documents-link:focus-visible{outline:3px solid #005bff;outline-offset:4px}
.document-result{font-size:10px;color:var(--muted);white-space:nowrap}
.documents-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px}
.document-card{min-width:0}
.document-card[hidden]{display:none}
.document-preview{position:relative;display:block;width:100%;aspect-ratio:595/842;border:1px solid #d6deea;border-radius:8px;background:#fff;padding:9px;cursor:zoom-in;overflow:hidden;transition:border-color .18s,box-shadow .18s}
.document-preview:hover{border-color:#005bff;box-shadow:0 5px 18px #005bff16}
.document-preview img{display:block;width:100%;height:100%;object-fit:contain}
.document-preview>span{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#071633;color:#fff;box-shadow:0 2px 6px #0002}
.document-preview .ui-icon{width:16px;height:16px}
.document-meta{padding-top:13px}
.document-meta>p{display:flex;justify-content:space-between;gap:10px;color:#5d6776;font-size:9px;margin:0 0 7px}
.document-meta h2{font-size:16px;font-weight:500;line-height:1.4;letter-spacing:-.3px;margin:0 0 10px}
.document-meta .text-link{font-size:10px}
@media screen and (max-width:900px){
  .documents-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .documents-heading{gap:25px}
}
@media screen and (max-width:720px){
  .documents-page{padding-top:22px;padding-bottom:40px}
  .documents-heading{grid-template-columns:1fr;gap:20px;padding-bottom:22px}
  .documents-heading h1{font-size:30px;letter-spacing:-1px}
  .documents-heading p:not(.eyebrow){font-size:11px}
  .documents-download{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:12px 18px}
  .documents-download>span{width:100%;font-size:9px}
  .documents-toolbar{align-items:flex-start;flex-direction:column;gap:10px;padding:20px 0}
  .document-filters{gap:7px}
  .document-filters button{font-size:10px;padding:10px 13px}
  .documents-grid{grid-template-columns:1fr;gap:27px}
  .document-meta h2{font-size:16px}
}

/* Make the work category switch clearly look interactive. */
@media screen{
  .work-section .gallery-toolbar{align-items:center;gap:16px;padding-top:16px;padding-bottom:22px}
  .work-section .filters{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:8px;padding:6px;border:1px solid #b6c8e5;border-radius:999px;background:#eaf1fc;box-shadow:0 3px 12px #0e2b5710}
  .work-section .filters button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border:1px solid #9db4d8;border-radius:999px;background:#fff;color:#152b4c;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;box-shadow:0 1px 3px #0e2b5714;transition:background .18s,border-color .18s,box-shadow .18s}
  .work-section .filters button>span{font:inherit;letter-spacing:0;margin:0;opacity:1}
  .work-section .filters button .ui-icon{width:18px;height:18px}
  .work-section .filters button[aria-selected=true]{background:var(--brand-gradient);border-color:#164ca8;color:#fff;box-shadow:0 3px 9px #005bff30}
  .work-section .filters button:not([aria-selected=true]):hover{background:#f3f7ff;border-color:#005bff;box-shadow:0 2px 8px #005bff1c}
  .work-section .filters button:focus-visible{outline:3px solid #005bff;outline-offset:3px}
}
@media screen and (max-width:720px){
  .work-section .gallery-toolbar{gap:10px;padding-top:12px;padding-bottom:18px}
  .work-section .filters{gap:6px;padding:5px}
  .work-section .filters button{min-height:44px;padding:10px 13px;gap:6px;font-size:11px}
  .work-section .filters button .ui-icon{width:17px;height:17px}
}
