/* The name stays visible beside the original logo at every screen size. */
.header-inner{gap:20px;padding-block:8px}
.brand{flex:1 1 auto;min-width:0;gap:14px}
.brand>img{flex:0 0 auto}
.brand-text{display:block!important;flex:1 1 0;min-width:0}
.brand .brand-wordmark{display:block;width:100%;height:auto;max-width:none;object-fit:contain}
.nav-links{flex:0 0 auto}
.site-header{z-index:5!important}
@media(max-width:1280px){
 .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;width:calc(100% - 32px);min-height:92px;gap:12px}
 .brand{gap:10px}
 .brand>img{width:64px;height:64px}
 .menu-toggle{display:block;margin-left:auto;flex:0 0 auto;font-size:14px;padding:9px 11px}
 /* The menu occupies its own row, so opening it moves page content down. */
 .nav-links{display:none;position:static;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;padding:8px;background:#080f20;border:1px solid #35476c;gap:4px 12px}
 .nav-links.open{display:grid}
 .nav-links a{display:flex;align-items:center;min-width:0;min-height:44px;padding:10px 12px;line-height:1.5}
 .nav-links a[aria-current=page]:after{left:12px;right:12px;bottom:4px}
}
@media(max-width:500px){.nav-links{grid-template-columns:minmax(0,1fr)}}
@media(max-width:360px){
 .header-inner{width:calc(100% - 24px);gap:8px;min-height:80px}
 .brand{gap:8px}
 .brand>img{width:50px;height:56px}
 .menu-toggle{font-size:12px;padding:8px 9px}
}
/* Keep image corners clear; the Malachi logo remains part of each image. */
.image-kind{display:none!important}

/* Complete Good Times RG artwork for fixed titles and folder names. */
.fixed-type-run{--type-w:var(--type-wide-w);--type-h:var(--type-wide-h);display:inline-block;vertical-align:baseline;width:calc(var(--type-w)*1em);max-width:100%;min-width:0;line-height:0}
.fixed-type-art{display:block;width:100%;aspect-ratio:var(--type-w)/var(--type-h)}
.fixed-type-art>svg{display:block;width:100%;height:100%;overflow:visible}
.fixed-type-art>.type-narrow{display:none}
.home-intro>div,.page-heading>div,.category-title-line,.section-head h2{min-width:0}
.filter{max-width:100%}
@media(max-width:780px){.fixed-type-run{--type-w:var(--type-narrow-w);--type-h:var(--type-narrow-h)}.fixed-type-art>.type-wide{display:none}.fixed-type-art>.type-narrow{display:block}}

/* Readable supporting text, including phone-sized screens. */
.eyebrow{font-size:20px;letter-spacing:.08em;line-height:1.45;align-items:center}
.eyebrow:before{flex:0 0 25px}
.label{font-size:18px;letter-spacing:.08em;line-height:1.5}
.home-intro{align-items:flex-start}
.home-intro>div{flex:1 1 auto}
.home-intro p{font-size:24px;line-height:1.55;max-width:440px;flex:0 1 440px}
.home-about p,.prose p,.page-heading p,.project-filter-detail p,.project-filter-detail li,.project-context p,.career p,.education p,.fashion-story p{font-size:22px;line-height:1.6}
.principle p,.fashion-story-grid p,.privacy-copy p{font-size:20px;line-height:1.65}
.principle h3,.fashion-story-grid h3{font-size:23px}
.project-context h3{font-size:20px}
.home-bottom,.page-meta,.section-head p,.category-bottom a{font-size:18px;line-height:1.5}
.home-bottom{flex-wrap:wrap;gap:14px 24px}
.search-box{max-width:330px}
.search-box input,.contact-form input,.contact-form select,.contact-form textarea,.contact-form label,.button,.fashion-heading-link{font-size:18px}
.form-help,.notice{font-size:17px;line-height:1.5}
.skills span,.education span{font-size:18px}
.render-card figcaption .project-label{font-size:20px;line-height:1.5}
.render-card figcaption .image-caption{font-size:17px;line-height:1.5;color:#b4bfd3}
.about-profile-caption strong{font-size:26px}
.about-profile-caption span{font-size:18px;line-height:1.5}
.about-profile-caption small{font-size:17px;line-height:1.5;color:#b4bfd3}
.footer-inner{font-size:18px;line-height:1.6;flex-wrap:wrap;gap:24px}
.footer-inner strong{font-size:22px}
.footer-inner .footer-links{flex-wrap:wrap;gap:16px 24px}
.nav-links{font-size:14px}
.world-counter{font-size:16px!important;letter-spacing:.05em}
.lightbox-toolbar h2{font-size:22px!important}
.lightbox-toolbar .label{font-size:16px!important}
.lightbox-bottom .image-caption,.lightbox-bottom .button{font-size:17px!important}
.lightbox-bottom p{font-size:16px!important;overflow-wrap:anywhere}
@media(max-width:780px){.home-intro p{font-size:22px;max-width:none}.home-about p,.prose p,.page-heading p,.project-filter-detail p,.project-filter-detail li,.project-context p,.career p,.education p,.fashion-story p{font-size:21px}.page-meta{align-items:flex-start}.search-box{max-width:none}.section-head{gap:16px;flex-wrap:wrap}}

/* Keep a preview visible while the gallery image is loading. */
.render-button[data-load-state="loading"],.render-button[data-load-state="error"]{background:var(--image-preview,linear-gradient(135deg,#101b35,#060a13)) center/contain no-repeat!important}
.image-load-status{display:none;position:absolute;left:12px;right:12px;bottom:12px;z-index:5;width:fit-content;max-width:calc(100% - 24px);padding:7px 10px;font-size:16px;line-height:1.4;color:#f1dfaf;background:#050a16dc;border:1px solid #354667;pointer-events:none}
.render-button[data-load-state="loading"] .image-load-status,.render-button[data-load-state="error"] .image-load-status{display:block}
.render-button[data-load-state="error"] .render-image{visibility:hidden}

/* Calm motion and opaque text areas keep the homepage easy to read. */
#malachi-world-canvas{opacity:.72!important}
.ambient .ambient-logo{opacity:.035!important;animation-duration:70s!important}
.ambient-line:after{opacity:.48;animation-duration:35s!important}
.edge-light{opacity:.35;animation-duration:20s!important}
.world-content h2{background:transparent!important;box-shadow:none!important}
.motion-off #malachi-world-canvas{display:none!important}
@media(prefers-reduced-motion:reduce){
 #malachi-world-canvas{display:none!important}
 .ambient .ambient-logo,.ambient-line:after,.edge-light{animation:none!important}
}

/* One opaque base color lets text protection blend into the surrounding page. */
:root{--reading-background:#04070e}
html,body{background:var(--reading-background)}
.site-header,.site-footer{background:transparent!important;backdrop-filter:none!important}
.home-intro,.home-bottom,.home-about{background:transparent!important;box-shadow:none}
.text-backing{background:var(--reading-background);box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:.08em 2px}
.home-intro .fixed-type-art path,.home-about .fixed-type-art path,
.site-header .fixed-type-art path,.site-footer .fixed-type-art path{
 stroke:var(--reading-background);stroke-width:130px;stroke-linejoin:round;paint-order:stroke fill;
}
.brand-wordmark{background:var(--reading-background)}

/* Homepage portfolio history, directly below the main brand header. */
.home-legacy{padding:22px 0 0;text-align:center;color:var(--gold-light,#fff0bd);font-family:var(--head);font-size:clamp(20px,1.5vw,24px);font-weight:600;line-height:1.6;letter-spacing:.015em;text-wrap:balance}
.home-legacy-copy{background:var(--reading-background,#04070e);box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:.08em 2px}
.home-legacy+.home-intro{padding-top:26px}
@media(max-width:500px){.home-legacy{padding-top:18px;font-size:20px;line-height:1.55}.home-legacy+.home-intro{padding-top:22px}}

/* Complete Good Times RG artwork matches the other fixed site headings. */
.home-legacy-copy{--legacy-w:var(--legacy-wide-w);--legacy-h:var(--legacy-wide-h);display:inline-block;width:calc(var(--legacy-w)*1em);max-width:100%;padding:0;line-height:0;vertical-align:middle;background:transparent}
.home-legacy-art{display:block;width:100%;aspect-ratio:var(--legacy-w)/var(--legacy-h)}
.home-legacy-art svg{display:block;width:100%;height:100%;overflow:visible}
.home-legacy-art path{stroke:var(--reading-background,#04070e);stroke-width:110px;stroke-linejoin:round;paint-order:stroke fill}
.home-legacy-art .legacy-medium,.home-legacy-art .legacy-narrow{display:none}
@media(max-width:1000px){.home-legacy-copy{--legacy-w:var(--legacy-medium-w);--legacy-h:var(--legacy-medium-h)}.home-legacy-art .legacy-wide{display:none}.home-legacy-art .legacy-medium{display:block}}
@media(max-width:500px){.home-legacy-copy{--legacy-w:var(--legacy-narrow-w);--legacy-h:var(--legacy-narrow-h)}.home-legacy-art .legacy-medium{display:none}.home-legacy-art .legacy-narrow{display:block}}

/* Apple devices use composited inline video, with the same framing and labels. */
.apple-motion .world-video{z-index:1;pointer-events:none}
.apple-motion .world-video::-webkit-media-controls{display:none!important}
@media(hover:none){
 .apple-motion .world:hover,.apple-motion .world:focus-visible{transform:none!important}
 .apple-motion .world:hover .world-image,.apple-motion .world:focus-visible .world-image{transform:none!important}
 .apple-motion .world:hover::before{filter:none!important}
}
