:root{
 --bg:#ecebe7;--text:#111;--muted:#6b6b68;--line:rgba(0,0,0,.12);--accent:#5b5bf0;
 --dark-bg:#0b0b0b;--dark-text:#f2f2ef;--dark-muted:rgba(242,242,239,.62);--dark-line:rgba(255,255,255,.12)
}
html{scroll-behavior:auto;scroll-padding-top:90px}
body{background:var(--bg);color:var(--text);font-family:'Manrope','DM Sans',sans-serif;cursor:none}
body.dark{--bg:var(--dark-bg);--text:var(--dark-text);--muted:var(--dark-muted);--line:var(--dark-line);color-scheme:dark}
body:not(.dark){color-scheme:light}
:focus-visible{outline:2px solid var(--accent)!important;outline-offset:4px!important}
#particles{position:fixed;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;opacity:.72;transition:opacity .5s}
.particle-fallback{display:none;position:fixed;inset:0;pointer-events:none;z-index:1;opacity:.28;background-image:radial-gradient(circle,#f2f2ef 0.8px,transparent 1px);background-size:9px 9px;mask-image:url('/assets/barefox-symbol-display.svg');mask-repeat:no-repeat;mask-position:center 34%;mask-size:min(72vw,560px)}
body:not(.particle-ready) #particles{display:none}body:not(.particle-ready) .particle-fallback{display:block}
.site-layer{position:relative;z-index:2}
.header{background:color-mix(in srgb,var(--bg) 83%,transparent);backdrop-filter:blur(18px);border-color:var(--line)}
body.dark .header{background:rgba(11,11,11,.78)}
.nav{grid-template-columns:auto 1fr auto;gap:28px}.navlinks{justify-content:center}.brandmark{filter:drop-shadow(0 0 12px #b829ff2a)}
.navlinks a,.footerlinks a{position:relative}.navlinks a:after,.footerlinks a:after{content:'';position:absolute;left:0;bottom:-4px;width:100%;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .25s}.navlinks a:hover:after,.footerlinks a:hover:after{transform:scaleX(1)}
.btn{background:var(--accent);border-color:var(--accent);border-radius:999px;transition:transform .25s,background .25s,box-shadow .25s}.btn:hover{transform:scale(1.035);background:#4848dc;box-shadow:0 8px 30px #5b5bf03d}.btn span{display:inline-block;transition:transform .25s}.btn:hover span{transform:rotate(45deg)}
.iconbtn{border-color:var(--line)}.hero{min-height:min(780px,calc(100svh - 72px));padding:68px 0 55px;background:rgba(11,11,11,.82);color:#f2f2ef;position:relative;isolation:isolate}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 58%,#0b0b0b8c);pointer-events:none;z-index:-1}.hero .wrap{position:relative;z-index:2}.hero-grid{grid-template-columns:5fr 7fr;align-items:center}.hero h1{font:300 clamp(48px,7vw,120px)/.95 'Manrope',sans-serif;letter-spacing:-.06em}.hero h1 em{font-style:normal;color:#d3c9ff;font-weight:700}.hero p{color:rgba(242,242,239,.68);font-size:17px}.hero .eyebrow{color:#c6b9ff}.hero-art{border:1px solid rgba(255,255,255,.14);box-shadow:0 30px 110px #0008}.hero .pill{color:#f2f2ef}.hero .pill i{background:var(--accent);box-shadow:0 0 0 4px #5b5bf044}
.project-explorer{background:#0b0b0b!important}.explorer-feature{border-color:rgba(255,255,255,.2)}.project-chip:focus-visible{outline-offset:2px}
.stats{background:color-mix(in srgb,var(--bg) 87%,transparent);color:var(--text);position:relative;z-index:2}.statrow{border-color:var(--line)}.stat{border-color:var(--line)}
#work,#services,.career-content{background:color-mix(in srgb,var(--bg) 88%,transparent);color:var(--text)}.manifesto{background:rgba(236,235,231,.9);color:#111;position:relative;z-index:2}.dark .manifesto{background:rgba(23,23,23,.9);color:var(--dark-text)}.manifesto .eyebrow,.manifesto .principle span{color:var(--accent)}.manifesto h2 span{color:var(--accent)}.principles{border-color:var(--line)}
.project,.service,.moment,.admin-section,.career-content .empty,.career-content .candidateView{border-color:var(--line)}.project{background:color-mix(in srgb,var(--bg) 87%,transparent)}.service-list,.service{border-color:var(--line)}.career-box{background:linear-gradient(120deg,#5b5bf0,#9b8cff);color:#fff}.career-box .btn{background:#111;color:#fff;border-color:#111}
.footer{position:relative;z-index:2;background:#0b0b0b;color:#f2f2ef;border-color:var(--dark-line)}.footer .footer-inner{color:var(--dark-muted)}
/* Scroll-led reveal and navigation chrome */
.reveal{opacity:0;transform:translateY(24px);filter:none;transition:opacity .35s ease,transform .35s ease}.reveal.in-view{opacity:1;transform:none;filter:none}
#cursorDot{position:fixed;z-index:30;left:0;top:0;width:10px;height:10px;border-radius:50%;background:#fff;mix-blend-mode:difference;pointer-events:none;transform:translate(-50%,-50%);transition:width .2s,height .2s;display:none}#cursorDot.is-large{width:18px;height:18px}
#sectionTicks{position:fixed;z-index:20;right:20px;top:50%;transform:translateY(-50%);display:grid;gap:9px}#sectionTicks a{width:9px;height:2px;background:currentColor;opacity:.35;transition:width .25s,opacity .25s}#sectionTicks a.active{width:22px;opacity:1;background:var(--accent)}
#sectionName{position:fixed;z-index:20;left:24px;bottom:20px;color:var(--muted);font:600 10px 'DM Mono',monospace;letter-spacing:.16em;text-transform:uppercase;writing-mode:vertical-rl;transform:rotate(180deg);pointer-events:none}
#quickNav{position:fixed;z-index:21;right:24px;bottom:24px;width:54px;height:54px;border:0;border-radius:50%;background:var(--accent);color:white;display:grid;place-items:center;box-shadow:0 10px 35px #5b5bf044;opacity:0;transform:translateY(10px);pointer-events:none;transition:.3s}#quickNav.visible{opacity:1;transform:none;pointer-events:auto}#quickNav:after{content:'+';font-size:24px;line-height:1}
.quick-menu{position:fixed;z-index:21;right:24px;bottom:88px;padding:10px;background:rgba(15,15,17,.82);backdrop-filter:blur(14px);border:1px solid var(--dark-line);border-radius:18px;display:grid;gap:5px;opacity:0;transform:translateY(8px);pointer-events:none;transition:.25s}.quick-menu.open{opacity:1;transform:none;pointer-events:auto}.quick-menu a{color:#f2f2ef;padding:9px 13px;font-size:13px}
#siteProgress{position:fixed;z-index:22;top:0;left:0;width:100%;height:2px;pointer-events:none}#siteProgress span{display:block;height:100%;width:0;background:var(--accent)}
@media (hover:hover) and (pointer:fine){#cursorDot{display:block}}
@media(max-width:800px){body{cursor:auto}#cursorDot{display:none!important}#sectionTicks{right:10px}#sectionName{left:10px;bottom:13px;font-size:9px}.hero{min-height:auto;padding:56px 0}.hero-grid{grid-template-columns:1fr}.hero-art{height:430px}.hero h1{font-size:clamp(58px,14vw,90px)}}
@media(max-width:500px){.hero-art{height:490px}.wrap{width:min(100% - 36px,1200px)}#quickNav{width:48px;height:48px;right:14px;bottom:14px}.quick-menu{right:14px;bottom:72px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.reveal{opacity:1;transform:none;filter:none}#cursorDot{display:none!important}}
/* Keep the interactive motion crisp and lightweight. */
body{cursor:auto}
.header,.quick-menu,.explorer-feature{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.brandmark{filter:none!important}
.explorer-glow{filter:none!important;animation:none!important}
.project-explorer .explorer-orbit{animation:none!important}
.explorer-progress span{animation:none;transform:scaleX(0)}
.project-explorer:not(.paused) .explorer-progress span{animation:progressRun 7s linear infinite}
.reveal{opacity:0;transform:translateY(10px);filter:none!important;transition:opacity .35s ease,transform .35s ease}
.reveal.in-view{opacity:1;transform:none}
#particles{opacity:.46;transition:none}
#cursorDot{display:none!important}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}}
/* Keep the hero background solid so the light page canvas cannot tint it gray. */
.hero{background:#0b0b0b!important}
/* Let the hero follow the active theme; keep the project explorer as its dark panel. */
.hero{background:var(--bg)!important;color:var(--text)}
.hero h1 em{color:var(--accent)}
.hero p{color:var(--muted)}
.hero .eyebrow{color:var(--accent)}
.hero .pill{color:var(--text)}
.hero:after{background:none}
body.dark .hero{background:#0b0b0b!important;color:#f2f2ef}
body.dark .hero h1 em{color:#d3c9ff}
body.dark .hero p{color:rgba(242,242,239,.68)}
body.dark .hero .eyebrow{color:#c6b9ff}
body.dark .hero .pill{color:#f2f2ef}
body.dark .hero:after{background:linear-gradient(180deg,transparent 58%,#0b0b0b8c)}

/* Scroll choreography: one focused transition for the section label and project panel. */
#sectionName{opacity:1;filter:none;transform:rotate(180deg);transition:none}
#sectionName.scrolling{opacity:0;filter:blur(5px);transform:rotate(250deg) translateY(10px)}
.project-explorer{opacity:0;filter:blur(4px);transform:perspective(1000px) rotateY(4deg) translateY(18px);transition:opacity .55s ease,filter .55s ease,transform .65s cubic-bezier(.2,.8,.2,1)}
.project-explorer.is-visible{opacity:1;filter:none;transform:none}
.project-explorer .art-grid,.project-explorer .explorer-orbit{display:none!important}
@media(prefers-reduced-motion:reduce){#sectionName,.project-explorer{opacity:1;filter:none;transform:none;transition:none}}
/* Keep the section label legible throughout scrolling. */
#sectionName.scrolling{opacity:1;filter:blur(.35px);transform:rotate(172deg) translateY(0)}
@media(prefers-reduced-motion:reduce){#sectionName.scrolling{opacity:1;filter:none;transform:rotate(180deg)}}

/* The section label only fades when its text changes; scroll direction controls its tilt. */
#sectionName.scrolling{opacity:1;filter:none;transform:rotate(180deg)}
#sectionName.tilt-right{transform:rotate(194deg)}
#sectionName.tilt-left{transform:rotate(166deg)}
@media(prefers-reduced-motion:reduce){#sectionName.tilt-right,#sectionName.tilt-left{transform:rotate(180deg)}}

/* The section label remains fixed; blur is applied briefly by the content-change handler only. */
#sectionName.scrolling,#sectionName.tilt-right,#sectionName.tilt-left{opacity:1;filter:none;transform:rotate(180deg)}

/* Always show the section label; only soften it during a text replacement. */
#sectionName{opacity:1!important;visibility:visible;filter:none;transform:rotate(180deg);transition:opacity .18s ease,filter .18s ease}
#sectionName.label-changing{opacity:0!important;filter:blur(7px)}
@media(prefers-reduced-motion:reduce){#sectionName.label-changing{opacity:1!important;filter:none}}

/* Subtle ambient motion and project-specific color accents. */
.explorer-glow{background:radial-gradient(circle,color-mix(in srgb,var(--project-accent,#d12cff) 34%,transparent),transparent 68%)!important;animation:projectGlowDrift 11s ease-in-out infinite alternate!important;will-change:transform,opacity}
@keyframes projectGlowDrift{0%{transform:translate3d(0,0,0) scale(.94);opacity:.42}100%{transform:translate3d(-22px,17px,0) scale(1.08);opacity:.8}}
.explorer-kicker,.explorer-counter b,.feature-meta span:first-child,.explorer-feature a{color:var(--project-accent,#d12cff)!important;transition:color .45s ease}
.project-chip.active{background:color-mix(in srgb,var(--project-accent,#d12cff) 38%,#110c18)!important;border-color:var(--project-accent,#d12cff)!important;transition:background .45s ease,border-color .45s ease,color .25s}
.explorer-progress span{animation:none;transform:scaleX(0);transform-origin:left;transition:none}
.project-explorer.paused .explorer-progress span{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.explorer-glow{animation:none!important;will-change:auto}.project-explorer.changing .explorer-feature{animation:none}}

/* Official project artwork in the portfolio covers. */
.project-art{position:relative;overflow:hidden;isolation:isolate}
.project-cover-image{position:absolute;z-index:0;display:block;max-width:none;transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.project-cover-logo{left:50%;top:53%;width:min(46%,190px);height:min(78%,170px);object-fit:contain;transform:translate(-50%,-50%);padding:12px;border:1px solid #ffffffb8;border-radius:20px;background:#fff;box-shadow:0 18px 50px #10051d45}
.project-cover-landscape{inset:0;width:100%;height:100%;object-fit:cover;object-position:center 54%}
.proj-label{z-index:3}
.project-art:after{pointer-events:none}
.art-trip:after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(0deg,#120c1dcc,transparent 70%)}
.project:hover .project-cover-logo{transform:translate(-50%,-50%) scale(1.045)}
.project:hover .project-cover-landscape{transform:scale(1.035)}
@media(max-width:800px){.project-cover-logo{width:min(50%,190px);height:min(80%,170px)}}

/* Careers pagination: keep opportunity lists easy to scan and capped at seven cards. */
.job-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin:24px auto 0;color:var(--muted)}
.job-pagination[hidden]{display:none}
.page-numbers{display:flex;gap:6px}
.page-step,.page-number{min-width:38px;height:38px;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--text);font-size:12px}
.page-step:disabled{opacity:.4;cursor:not-allowed}
.page-number.active{background:#5b5bf0;border-color:#5b5bf0;color:#fff}
.page-count{font-size:11px;color:var(--muted);padding:0 4px}
@media(max-width:520px){.job-pagination{gap:6px;flex-wrap:wrap}.page-step,.page-number{min-width:34px;height:34px;padding:0 8px}.page-count{order:3;width:100%;text-align:center}}

/* Shared portfolio artwork treatment: every project image panel gets the same fine grid. */
:root{--project-grid-size:56px;--project-grid-line:rgba(255,255,255,.12)}
.project-art:before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.9;background-image:linear-gradient(to right,var(--project-grid-line) 1px,transparent 1px),linear-gradient(to bottom,var(--project-grid-line) 1px,transparent 1px);background-size:var(--project-grid-size) var(--project-grid-size)}
/* Keep project artwork and lettering crisp above the shared grid overlay. */
.project-cover-image,.project-glyph{z-index:3}
.proj-label{z-index:4}
/* Let the hero finish close to its content so the brand marquee follows naturally. */
.hero{min-height:0;padding-top:48px;padding-bottom:32px}
