/* ODK card motion + scroll choreography + 3-tier status bar (26 Nov 2026).
   Additive over grid.css; every rule is gated on .odk-motion (set by motion.js), so without JS the section is unchanged.
   Transform + opacity + clip-path only, plus tag colour.
   NEVER transform/position .odk-caption, h3 or .destination: .destination::after is the whole-card click area and
   must keep the card as its containing block. The title lift moves .odk-lift inside the link.
   Images use independent `translate` for scroll-linked window parallax and `transform: scale(...)` for hover/focus zoom. */
#odk{--odk-in:cubic-bezier(.23,1,.32,1);--odk-move:cubic-bezier(.77,0,.175,1);position:relative;z-index:2;border-top:1px solid #9dd4ec2b;box-shadow:0 -26px 64px #04070cb8}

/* Architectural coordinate rail + live scroll progress hairline (injected by motion.js) */
#odk .odk-top{position:relative;padding-bottom:14px}
#odk .odk-rail{position:absolute;left:0;right:0;bottom:0;height:1px;background:#ffffff1a;overflow:hidden;pointer-events:none}
#odk .odk-rail i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#d8b879,#9dd4ec);transform:scaleX(var(--odk-p,0));transform-origin:left;will-change:transform}
#odk .odk-hud{display:inline-flex;align-items:center;gap:10px;font:500 10px/1 'DM Sans',sans-serif;letter-spacing:1.6px;text-transform:uppercase;color:#9dd4ecbf;font-variant-numeric:tabular-nums;white-space:nowrap}
#odk .odk-hud b{color:#d8b879;font-weight:600}
@media(max-width:960px){#odk .odk-hud{display:none}}

/* 3-tier filter + colour legend bar (sharp architectural tabs matching #work, 44px tap height, defaults to All) */
#odk .odk-tiers{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;flex-wrap:wrap}
#odk .odk-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#odk .odk-tab{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 13px;border:1px solid #ffffff1c;border-radius:0;background:#141a24;color:#b8c5cc;font:600 11px/1 'DM Sans',sans-serif;letter-spacing:.9px;text-transform:uppercase;font-variant-numeric:tabular-nums;cursor:pointer;transition:background-color .2s var(--odk-in),border-color .2s var(--odk-in),color .2s var(--odk-in),transform .11s var(--odk-in)}
#odk .odk-tab i{width:7px;height:7px;display:inline-block;flex:none}
#odk .odk-tab[data-tier="all"] i{background:linear-gradient(135deg,#b7e6f3 50%,#d8b879 50%)}
#odk .odk-tab[data-tier="open"] i{background:#b7e6f3}
#odk .odk-tab[data-tier="upcoming"] i{background:#d8b879}
#odk .odk-tab[data-tier="archive"] i{background:#7e8e9b}
#odk .odk-tab b{font-weight:700;opacity:.72}
#odk .odk-tab[aria-pressed="true"]{background:#eeece4;border-color:#eeece4;color:#0e141c}
#odk .odk-tab[aria-pressed="true"] b{opacity:1}
#odk .odk-tab[data-tier="open"][aria-pressed="true"]{background:#b7e6f3;border-color:#b7e6f3;color:#091b23}
#odk .odk-tab[data-tier="upcoming"][aria-pressed="true"]{background:#d8b879;border-color:#d8b879;color:#14110b}
#odk .odk-tab[data-tier="open"][aria-pressed="true"] i,#odk .odk-tab[data-tier="upcoming"][aria-pressed="true"] i,#odk .odk-tab[data-tier="archive"][aria-pressed="true"] i{background:currentColor}
#odk .odk-tab:focus-visible{outline:2px solid #9dd4ec;outline-offset:2px}
#odk .odk-tab:active{transform:scale(.97)}
#odk .odk-order-note{font:500 10px/1.3 'DM Sans',sans-serif;letter-spacing:1.3px;text-transform:uppercase;color:#8fa0ac}
@media(hover:hover) and (pointer:fine){
  #odk .odk-tab:not([aria-pressed="true"]):hover{border-color:#9dd4ec77;color:#f5f5ef;background:#1a2230}
}
@media(max-width:700px){
  #odk .odk-tiers{margin-bottom:10px}
  #odk .odk-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px}
  #odk .odk-tab{min-height:44px;padding:0 12px;font-size:10.5px;gap:7px;justify-content:space-between}
  #odk .odk-tab span{margin-right:auto}
  #odk .odk-order-note{display:none}
}

/* Hairline corner crosshairs framing the 16-world grid */
.world-grid.odk-motion{position:relative}
.world-grid.odk-motion::before,.world-grid.odk-motion::after{content:'';position:absolute;width:10px;height:10px;pointer-events:none;z-index:2;opacity:.55}
.world-grid.odk-motion::before{top:-6px;left:-6px;border-top:1px solid #d8b879;border-left:1px solid #d8b879}
.world-grid.odk-motion::after{bottom:-6px;right:-6px;border-bottom:1px solid #9dd4ec;border-right:1px solid #9dd4ec}

/* Colour layer + scroll-linked window parallax (scale 1.14 gives >=10px vertical bleed so translate never exposes card edges) */
.odk-motion .odk-card img{transform:scale(1.14);translate:0 var(--odk-py,0px);transition:transform .7s var(--odk-in)}
.odk-motion .odk-card img.odk-wake,.odk-motion .odk-card.upcoming img.odk-wake,.odk-motion .odk-card.archive img.odk-wake,.odk-motion .odk-card.muted img.odk-wake,.odk-motion .odk-card.partial img.odk-wake{filter:none;opacity:var(--odk-wake,0);transition:opacity .42s var(--odk-in),transform .7s var(--odk-in)}
.odk-motion .odk-card.open img.odk-wake,.odk-motion .odk-card.color img.odk-wake{opacity:1}
/* Archive stays respectfully quieter on passive scroll wake than upcoming, but wakes full colour on hover/focus */
.odk-motion .odk-card.archive img.odk-wake{opacity:calc(var(--odk-wake,0) * .45)}

/* grid.css styles every caption span (12px, block, margin); the lift span must inherit the title instead. */
.world-grid.odk-motion .odk-caption .odk-lift{display:inline-block;margin:0;font:inherit;color:inherit;letter-spacing:inherit;transition:transform .5s var(--odk-in)}
/* Tag: text flips colour at the wipe's midpoint in both directions so it never sits dark-on-dark or light-on-light. */
.odk-motion .odk-out{overflow:hidden;isolation:isolate;transition:color .08s linear .1s}
.odk-motion .odk-out:before{content:'';position:absolute;inset:0;z-index:-1;background:#b7e6f3;transform:scaleX(0);transform-origin:left;transition:transform .22s var(--odk-move)}
.odk-motion .odk-card.open .odk-out:before{background:#fff}
.odk-motion .odk-card.upcoming .odk-out:before{background:#d8b879}
.odk-motion .odk-card.archive .odk-out:before{background:#d4e2ec}
/* Un-dim waits 180 ms so crossing the 10 px gap between cards does not flash the grid. */
.odk-motion .odk-card{transition:opacity .3s var(--odk-in) .18s,transform .14s var(--odk-in)}
.odk-motion .odk-card.odk-swap{animation:odkFilterIn .38s var(--odk-in) both}
@keyframes odkFilterIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* The old ungated underline stuck after a tap on phones; the lift replaces it. */
.odk-motion .odk-card:hover h3{text-decoration:none}

/* Press: every device. 140 ms, no overshoot. */
.odk-motion .odk-card:active{transform:scale(.975);transition-duration:.3s,.1s}
.odk-motion .odk-card:active img.odk-wake{opacity:1}

/* Desktop hover + keyboard focus. Hovering the X handle does not play the "enter world" state. */
@media (hover:hover) and (pointer:fine){
  .odk-motion .odk-card:hover:not(:has(.social:hover)) img{transform:scale(1.21)}
  .odk-motion .odk-card:hover:not(:has(.social:hover)) img.odk-wake{opacity:1}
  .odk-motion .odk-card:hover:not(:has(.social:hover)) .odk-lift{transform:translateY(-4px);transition-delay:.08s}
  .odk-motion .odk-card:hover:not(:has(.social:hover)) .odk-out{color:#091b23;transition-delay:.22s}
  .odk-motion .odk-card:hover:not(:has(.social:hover)) .odk-out:before{transform:scaleX(1);transition:transform .3s var(--odk-move) .1s}
  .world-grid.odk-motion:has(.odk-card:hover) .odk-card:not(:hover){opacity:.48;transition-delay:0s,0s}
  .odk-motion .odk-caption .social:hover{text-decoration:underline}
}
.odk-motion .odk-card:has(.destination:focus-visible) img{transform:scale(1.21)}
.odk-motion .odk-card:has(.destination:focus-visible) img.odk-wake{opacity:1}
.odk-motion .odk-card:has(.destination:focus-visible) .odk-lift{transform:translateY(-4px)}
.odk-motion .odk-card:has(.destination:focus-visible) .odk-out{color:#091b23;transition-delay:.22s}
.odk-motion .odk-card:has(.destination:focus-visible) .odk-out:before{transform:scaleX(1);transition:transform .3s var(--odk-move) .1s}
.world-grid.odk-motion:has(.destination:focus-visible) .odk-card:not(:has(.destination:focus-visible)){opacity:.48;transition-delay:0s,0s}

/* Touch: smooth continuous scroll-linked colour wake + subtle scale push in the reading band */
@media (hover:none){
  .odk-motion:not(.odk-armed):not(.odk-play) .odk-card.in-focus img{transform:scale(1.18)}
}

/* Editorial shutter aperture entrance: slices open diagonally without horizontal overflow.
   .odk-armed holds the start frame (paused) while off-screen so the top row never flashes. */
@keyframes odkShutter{from{opacity:0;clip-path:inset(20% 0 0 0);transform:scale(1.26)}to{opacity:1;clip-path:inset(0 0 0 0);transform:scale(1.14)}}
@keyframes odkCaption{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.odk-armed .odk-card>img:not(.odk-wake),.odk-play .odk-card>img:not(.odk-wake){animation:odkShutter .82s var(--odk-in) backwards;animation-delay:calc(var(--i,0) * 46ms)}
.odk-armed .odk-caption,.odk-armed .odk-out,.odk-play .odk-caption,.odk-play .odk-out{animation:odkCaption .48s var(--odk-in) backwards;animation-delay:calc(var(--i,0) * 46ms + .2s)}
.odk-armed .odk-card>img:not(.odk-wake),.odk-armed .odk-caption,.odk-armed .odk-out{animation-play-state:paused}

/* Quiet editorial footer strip linking whitelisted creators to /odk/portal/ */
#odk .odk-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;padding-top:10px;border-top:1px solid #ffffff14}
#odk .odk-foot-meta{font:500 10px/1.3 'DM Sans',sans-serif;letter-spacing:1.4px;text-transform:uppercase;color:#8fa0ac}
#odk .odk-portal-link{display:inline-flex;align-items:center;min-height:44px;padding:0 2px;font:600 11px/1.2 'DM Sans',sans-serif;letter-spacing:1.1px;text-transform:uppercase;color:#d8b879;text-decoration:none;border-bottom:1px solid #d8b87955;transition:color .2s var(--odk-in),border-color .2s var(--odk-in)}
@media(hover:hover) and (pointer:fine){
  #odk .odk-portal-link:hover{color:#b7e6f3;border-color:#b7e6f3}
}
#odk .odk-portal-link:focus-visible{outline:2px solid #9dd4ec;outline-offset:4px}
@media(max-width:700px){
  #odk .odk-foot{margin-top:12px;padding-top:6px;gap:6px}
  #odk .odk-foot-meta{display:none}
  #odk .odk-portal-link{font-size:10.5px;letter-spacing:.9px}
}

@media (prefers-reduced-motion:reduce){
  .odk-motion .odk-card img,.odk-motion .odk-lift,.odk-motion .odk-card,.odk-motion .odk-out:before,#odk .odk-tab{transition:none!important}
  .odk-motion .odk-card img,.odk-motion .odk-lift{transform:none!important;translate:none!important}
  .odk-motion .odk-card:active,#odk .odk-tab:active{transform:none}
  .odk-armed .odk-card>img,.odk-armed .odk-caption,.odk-armed .odk-out,.odk-play .odk-card>img,.odk-play .odk-caption,.odk-play .odk-out,.odk-motion .odk-card.odk-swap{animation:none;clip-path:none}
  #odk .odk-rail i{transform:scaleX(1)}
}
