/* Shared motion and fixed inverse navigation. */
:root{--nav-height:106px;--hover-duration:800ms;--hover-ease:ease-in-out;--hover-lime:#dbf24c}
body,body#top{padding-top:var(--nav-height);background:var(--page-surface,#fff);color:var(--page-ink,#111)}
.classic-header{position:fixed;inset:0 0 auto;z-index:100;background:transparent;mix-blend-mode:difference;border:0;color:#fff}
.classic-logo img{filter:invert(1)}
.classic-nav a,.other-front{background:none;color:#fff;-webkit-text-fill-color:#fff}
.classic-nav a[aria-current=page]{text-decoration-color:#fff}
.classic-header a:hover{opacity:1}
.classic-header a:focus-visible{outline-color:#fff}
.hero-interactive{min-height:calc(100svh - var(--nav-height))}
/* Complementary masks replace the inverse ink rather than painting over it. */
.nav-source-ink{display:inline-flex;align-items:center;gap:inherit;font:inherit!important;white-space:inherit;mask-image:linear-gradient(90deg,transparent 40%,#000 60%);mask-size:300% 100%;mask-position:100% 0;mask-repeat:no-repeat;transition:mask-position var(--hover-duration) var(--hover-ease)}
.classic-logo .nav-source-ink{display:block;width:100%}
.is-ink-active>.nav-source-ink{mask-position:0% 0}
.nav-highlight{position:fixed;z-index:101;margin:0;padding:0;border:0;display:inline-flex;pointer-events:none;mix-blend-mode:normal;white-space:nowrap;color:var(--hover-lime);-webkit-text-fill-color:var(--hover-lime);mask-image:linear-gradient(90deg,#000 40%,transparent 60%);mask-size:300% 100%;mask-position:100% 0;mask-repeat:no-repeat;transition:mask-position var(--hover-duration) var(--hover-ease)}
.nav-highlight.is-visible{mask-position:0% 0}
.nav-highlight[data-logo]{background:var(--hover-lime);mask-image:url('/assets/cage-logo-black.svg'),linear-gradient(90deg,#000 40%,transparent 60%);mask-size:contain,300% 100%;mask-position:center,100% 0;mask-composite:intersect}
.nav-highlight[data-logo].is-visible{mask-position:center,0% 0}
.nav-highlight[data-logo] img{visibility:hidden}
/* One ink layer per glyph: no duplicated text, masks or pseudo-content. */
.title-word{display:inline-block;--ink-rest:var(--page-ink,#111)}
.idea-cycle.title-word{display:inline-grid}
.title-word:not(.idea-cycle),.idea-variant,.gravity-letter,.gravity-sizer{background-image:linear-gradient(90deg,var(--hover-lime) 40%,var(--ink-rest) 60%);background-size:300% 100%;background-position:100% 0;background-repeat:no-repeat;background-clip:text;-webkit-background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;transition:background-position var(--hover-duration) var(--hover-ease)}
.title-word:not(.idea-cycle),.idea-variant{padding-inline:.08em;margin-inline:-.08em;padding-block:.16em;margin-block:-.16em}
.hero h1 em .title-word{--ink-rest:#7a7a72}
.contact .title-word,.contact .idea-variant{--ink-rest:var(--page-ink,#fff)}
.gravity-word{position:relative;transform:none!important;transform-origin:50% 50%}
.gravity-letter,.gravity-sizer{--ink-rest:#111}
.gravity-sizer{display:inline-block;pointer-events:none}
.gravity-section[data-falling=true] .gravity-sizer{visibility:hidden}
.gravity-section:not([data-falling=true]) .gravity-letter{visibility:hidden}
.gravity-letter{display:block;position:absolute;top:0;line-height:inherit;letter-spacing:0;white-space:pre;transform-origin:50% 50%;pointer-events:none;background-size:calc(var(--word-width)*3) 100%;background-position:calc(var(--word-width)*-2 - var(--letter-offset)) 0}
@media(hover:hover) and (pointer:fine){
 .title-word:hover,.title-word:hover .idea-variant{background-position:0% 0}
 .gravity-letter{pointer-events:auto}
 .gravity-word:hover .gravity-sizer{background-position:0% 0}
 .gravity-word:hover .gravity-letter{background-position:calc(var(--letter-offset)*-1) 0}
}
/* Open selectors use the same underline as the carousel controls. */
.filter,.view,.filter[aria-pressed=true],.view[aria-pressed=true],.filter:not([aria-pressed=true]),.view:not([aria-pressed=true]){border:0;border-bottom:1px solid transparent;border-radius:0;background:none;color:inherit;padding:9px 2px;min-height:36px}
.filter[aria-pressed=true],.view[aria-pressed=true]{border-bottom-color:currentColor}
.filters,.views{gap:18px}
/* Enclosed calls to action share one lime fill and readable dark ink. */
.gravity-section .studio-bottom .text-link{background:#000;color:#fff;border:1px solid #000;padding:16px 22px;gap:28px;font-size:14px}
.project-pagination a,.project-pagination button,.gravity-section .studio-bottom .text-link{background-image:linear-gradient(90deg,var(--hover-lime) 40%,transparent 60%);background-size:300% 100%;background-position:100% 0;background-repeat:no-repeat;transition:background-position var(--hover-duration) var(--hover-ease),color var(--hover-duration) var(--hover-ease),border-color var(--hover-duration) var(--hover-ease)}
@media(hover:hover) and (pointer:fine){
 .project-pagination a:hover,.project-pagination button:hover,.gravity-section .studio-bottom .text-link:hover{background-position:0% 0;color:#111;border-color:var(--hover-lime)}
}
.project-pagination a:focus-visible,.project-pagination button:focus-visible,.gravity-section .studio-bottom .text-link:focus-visible{background-position:0% 0;color:#111;border-color:var(--hover-lime)}
.gravity-section .studio-bottom .text-link{transition:background-position var(--hover-duration) var(--hover-ease),color var(--hover-duration) var(--hover-ease),border-color var(--hover-duration) var(--hover-ease),opacity 220ms var(--ease-out),transform 220ms var(--ease-out),visibility 0s 220ms}
/* Portfolio rows and scroll-driven editorial layout. */
.project-grid:not(.list){display:flex;flex-direction:column;gap:35px}
.project-row{display:flex;gap:20px;width:100%;min-width:0}
.project-row>.project-card{flex:var(--project-share,1) 1 0;min-width:0;transition:flex-grow 320ms var(--ease-in-out)}
.project-grid.list .project-row{display:contents}
.project-row .project-caption{min-height:57px}
.project-row .project-card a{display:block}
.project-grid.list .project-card a{display:grid}
.timeline-stop[aria-current=step]{color:var(--page-ink,#111)}
.timeline-progress i{background:var(--page-ink,#111)}
footer.contact,.furniture footer.contact{background:var(--page-surface,#000);color:var(--page-ink,#fff);border-top:0}
footer.contact a{color:inherit}
footer.contact .contact-brand img{filter:var(--footer-logo-filter,none)}
footer.contact .contact-line,footer.contact .footer-bottom,.furniture footer.contact .contact-line,.furniture footer.contact .footer-bottom{border-color:var(--footer-line,#444)}
footer.contact .text-link{border-color:currentColor}
@media(max-width:600px){
 .project-row{flex-direction:column;gap:28px}.project-row>.project-card{flex:none}.project-grid:not(.list){gap:28px}
 .classic-header{padding-block:20px}.timeline-sticky{padding-top:calc(var(--nav-height) + 16px);padding-bottom:24px;gap:18px}
 .timeline-card{min-height:230px}.timeline-intro>.eyebrow{font-size:9px}.timeline-intro .method-phases{font-size:clamp(22px,7vw,28px)}.timeline-intro p{font-size:10px}.timeline-card p{font-size:14px}
 .gravity-section .studio-statement>.eyebrow{top:calc(var(--nav-height) + 15px)}
 .filters,.views{gap:13px}
}
@media(min-width:601px){
 .timeline-sticky{padding-top:calc(var(--nav-height) + 20px);padding-bottom:30px;gap:18px}
 .gravity-section .studio-statement>.eyebrow{top:calc(var(--nav-height) + 18px)}
 .timeline-card{height:clamp(140px,22svh,260px);padding-block:12px 22px}.timeline-intro>.eyebrow{margin-bottom:18px}
}
@media(max-height:650px) and (min-width:601px){.timeline-intro .method-phases{font-size:30px}.timeline-intro>.eyebrow{margin-bottom:12px}.timeline-card p{font-size:15px}.timeline-sticky{gap:12px;padding-bottom:20px}}
@media(max-height:700px) and (max-width:600px){.timeline-intro .method-phases{font-size:20px}.timeline-intro p,.timeline-hint{display:none}.timeline-card{min-height:180px;padding-block:6px 16px}.timeline-card h3{font-size:30px;margin-bottom:12px}.timeline-card p{font-size:12px}.timeline-sticky{gap:10px;padding-bottom:16px}}
/* Sequential page dissolves. */
@view-transition{navigation:auto}
::view-transition-group(root){animation:none}
::view-transition-old(root){animation:cage-dissolve-out 260ms ease-in-out both;mix-blend-mode:normal}
::view-transition-new(root){animation:cage-dissolve-in 320ms ease-in-out 260ms both;mix-blend-mode:normal}
/* The old and new labels differ across branches/locales: never composite both. */
::view-transition-group(cage-header){animation:none}
::view-transition-old(cage-header){display:none;animation:none}
::view-transition-new(cage-header){animation:none;opacity:1;mix-blend-mode:normal}
@keyframes cage-dissolve-out{from{opacity:1;transform:none}to{opacity:0;transform:none}}
@keyframes cage-dissolve-in{from{opacity:0;transform:none}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
 .project-row>.project-card,.nav-source-ink,.nav-highlight,.title-word,.idea-variant,.gravity-letter,.project-pagination a,.project-pagination button,.gravity-section .studio-bottom .text-link{transition:none!important}
 .gravity-letter{transform:none!important}
 ::view-transition-old(root),::view-transition-new(root){animation:none!important}
}

.gravity-section .statement{letter-spacing:-.03em}

/* Methodology and footer share a white-to-black surface driven by scroll. */
.method-timeline{background:var(--page-surface,#fff);color:var(--page-ink,#111);border-top:0}
.method-timeline .method-phase{color:#666;color:color-mix(in srgb,var(--page-ink,#fff) 40%,var(--page-surface,#000))}
.method-timeline .method-phase[data-active=true]{color:var(--page-ink,#fff)}
.method-timeline .timeline-stop,.method-timeline .timeline-hint{color:#888}
.method-timeline .timeline-stop[aria-current=step]{color:var(--page-ink,#fff)}
.method-timeline .timeline-progress{background:#444}
/* A single masked paint fills the full-size logo without another visible image. */
footer.contact .contact-brand{position:relative}
footer.contact .contact-brand img{visibility:hidden}
footer.contact .contact-brand::after{content:'';position:absolute;inset:0;pointer-events:none;mask:url('/assets/cage-logo-black.svg') center/100% 100% no-repeat;background-image:linear-gradient(90deg,var(--hover-lime) 40%,var(--page-ink,#fff) 60%);background-size:300% 100%;background-position:100% 0;background-repeat:no-repeat;transition:background-position var(--hover-duration) var(--hover-ease)}

@media(hover:hover) and (pointer:fine){footer.contact .contact-brand:hover::after{background-position:0% 0}}

@media(prefers-reduced-motion:reduce){footer.contact .contact-brand::after,footer.contact .contact-line>.text-link{transition:none}}



.about-hero{min-height:calc(100svh - var(--nav-height));justify-content:flex-end;padding-bottom:clamp(32px,5svh,72px)}
.about-hero h1{margin-bottom:0}
/* Each image is anchored to a past pointer position and fades without drifting. */
.image-trail-section{position:relative;isolation:isolate}.image-trail-section>:not(.project-trail-layer){position:relative;z-index:3}
.project-trail-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:4}
.project-trail-image{filter:none;position:absolute;width:clamp(90px,12vw,175px);max-width:175px;max-height:175px;height:auto;aspect-ratio:1.4;object-fit:cover;pointer-events:none;user-select:none;opacity:0;will-change:opacity,transform}
@media(hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){.project-trail-layer{display:none}}

/* Grab a fallen word without selecting its text or moving the page. */
@media(hover:hover) and (pointer:fine){.gravity-section[data-falling=true] .gravity-letter{cursor:var(--cursor-grab,grab);user-select:none;touch-action:none}.gravity-section[data-dragging=true],.gravity-section[data-dragging=true] .gravity-letter{cursor:var(--cursor-grabbing,grabbing)}.gravity-section[data-dragging=true]{user-select:none}}

/* Underlined calls to action: one gradient for the complete label and arrow. */
.text-link.text-link:not(.gravity-section .text-link){--link-ink:var(--page-ink,#111);color:var(--link-ink);-webkit-text-fill-color:currentColor;background-image:none;background-clip:border-box;-webkit-background-clip:border-box;border-color:var(--link-ink);transition:border-color var(--hover-duration) var(--hover-ease)}
.text-link:not(.gravity-section .text-link)>.link-ink{display:inline-flex;align-items:inherit;justify-content:inherit;gap:inherit;width:100%;min-width:0;background-image:linear-gradient(90deg,var(--hover-lime) 40%,var(--link-ink) 60%);background-size:300% 100%;background-position:100% 0;background-repeat:no-repeat;background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;transition:background-position var(--hover-duration) var(--hover-ease)}
.text-link:not(.gravity-section .text-link)>.link-ink .arrow{color:inherit;-webkit-text-fill-color:inherit;background:none;transition:none}
.furniture-project-hero>.text-link{--link-ink:#111;background-color:#fff}
@media(hover:hover) and (pointer:fine){.text-link.text-link:not(.gravity-section .text-link):hover{border-color:var(--hover-lime);opacity:1}.text-link:not(.gravity-section .text-link):hover>.link-ink{background-position:0% 0}}
.text-link.text-link:not(.gravity-section .text-link):focus-visible{border-color:var(--hover-lime);opacity:1}
.text-link:not(.gravity-section .text-link):focus-visible>.link-ink{background-position:0% 0}
@media(prefers-reduced-motion:reduce){.text-link.text-link:not(.gravity-section .text-link),.text-link:not(.gravity-section .text-link)>.link-ink{transition:none}}

@media(hover:hover) and (pointer:fine){.segment-project-card:hover .text-link>.link-ink{background-position:0% 0}.segment-project-card:hover .text-link{border-color:var(--hover-lime);opacity:1}}
.segment-project-card:focus-visible .text-link>.link-ink{background-position:0% 0}

/* About: shared title ink and aligned portfolio previews. */
.about-hero h1 em .title-word{--ink-rest:#83837a}
.branch{display:flex;flex-direction:column;align-items:flex-start}
.branch>.branch-project{display:block;width:100%;margin-top:32px}
.branch>.text-link{margin-top:auto}
.branch-project img{width:100%;aspect-ratio:16/9;object-fit:cover}
.branch-project>span{display:flex;justify-content:space-between;margin-top:12px;font-size:16px}




.service-index .service-example{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;margin-bottom:20px}
.service-index>a{min-width:0}
.service-index h3{margin-top:0}

.service-hub-intro{max-width:850px;margin-bottom:36px}

/* Filled actions use the same gradient sweep across every page. */
.solid-button,.consent-actions button{background-color:#111;background-image:linear-gradient(90deg,var(--hover-lime) 40%,transparent 60%);background-size:300% 100%;background-position:100% 0;background-repeat:no-repeat;color:#fff;transition:background-position var(--hover-duration) var(--hover-ease),color var(--hover-duration) var(--hover-ease)}
@media(hover:hover) and (pointer:fine){.solid-button:hover,.consent-actions button:hover{background-color:#111;background-position:0% 0;color:#111;opacity:1}}
.solid-button:focus-visible,.consent-actions button:focus-visible{background-color:#111;background-position:0% 0;color:#111}
@media(prefers-reduced-motion:reduce){.solid-button,.consent-actions button{transition:none}}

/* Quiet footer and article links use the same text sweep without adding a border. */
.gradient-link{--link-ink:var(--page-ink,#111)}
.gradient-link>.link-ink{display:inline-block;background-image:linear-gradient(90deg,var(--hover-lime) 40%,var(--link-ink) 60%);background-size:300% 100%;background-position:100% 0;background-repeat:no-repeat;background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;transition:background-position var(--hover-duration) var(--hover-ease)}
@media(hover:hover) and (pointer:fine){.gradient-link:hover>.link-ink{background-position:0% 0}}
.gradient-link:focus-visible>.link-ink{background-position:0% 0}
@media(prefers-reduced-motion:reduce){.gradient-link>.link-ink{transition:none}}

.title-ink-group{display:block;min-width:0}

[data-cobogo-order-hidden][hidden]{display:none!important}
