/* The home: Focus. Photos drift at their own depth; hovering a menu word keeps its own photos lit.
   Tokens and wall come from /shared. */
*{box-sizing:border-box}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
body{margin:0;color:var(--ink);font-family:var(--body);-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
a,button{color:inherit;text-decoration:none;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
button{font:inherit;background:none;border:0;padding:0;cursor:pointer;text-transform:inherit;letter-spacing:inherit}
:focus-visible{outline:1px solid var(--accent);outline-offset:4px}
.mono{font-family:var(--mono);font-size:10px;letter-spacing:.2em;text-transform:uppercase}

/* ---------- the field of photos ---------- */
.stage{position:fixed;inset:0;z-index:1;touch-action:none}
.fig{position:absolute;left:0;top:0;margin:0;will-change:transform;transition:opacity 250ms ease}
.fig img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;background:#1f1e1c;filter:saturate(.85) brightness(.92)}
.fig figcaption{display:flex;justify-content:space-between;gap:10px;margin-top:10px;font-size:9.5px;letter-spacing:.1em;color:var(--ink-2);transition:color 250ms ease}
.fig figcaption span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Focus: the dim spreads from the words to the photos */
.focus-on .fig{opacity:.2}
.focus-on .fig.hit{opacity:1}
.focus-on .fig.hit figcaption{color:var(--accent)}

/* ---------- menu ---------- */
.logo{position:fixed;z-index:5;left:18px;top:calc(14px + var(--safe-t));width:60px;height:60px;display:block;transition:transform 160ms var(--ease-out)}
.logo img{width:100%;height:100%;object-fit:contain;filter:invert(1) sepia(.2) brightness(.86)}
.logo:active{transform:scale(.95)}

.menu{--ws:clamp(54px,6vw,88px);position:fixed;z-index:4;left:36%;top:37%;margin:0;padding:0;list-style:none}
.menu a{position:relative;display:flex;align-items:flex-start;gap:18px;padding:1px 0;transform-origin:0 50%;transition:transform 160ms var(--ease-out)}
.menu a:active{transform:scale(.98)}
/* number → drawn arrow, both at the live size (10px mono / 15px arrow) */
.num{position:relative;width:16px;height:15px;flex:none;margin-top:calc(var(--ws) * .1)}
.num .n{position:absolute;left:0;top:3px;color:var(--accent);font-size:10px;letter-spacing:.2em;transition:opacity 150ms ease}
.num svg{position:absolute;left:-2px;top:1px;width:15px;height:15px;overflow:visible;opacity:0;transform:translateX(-4px);transition:opacity 150ms ease,transform 200ms var(--ease-out)}
.num path{fill:none;stroke:var(--accent);stroke-width:1.7;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 220ms var(--ease-out)}
.word{font-family:var(--display);font-weight:700;text-transform:uppercase;font-size:var(--ws);line-height:.92;letter-spacing:-.01em;color:var(--ink);transition:transform 200ms var(--ease-out),opacity 200ms ease}
.menu .soon{cursor:default}
@media (hover:hover) and (pointer:fine){
  .menu:has(a:hover) a:not(:hover) .word{opacity:.32}
  .menu a:hover .word{transform:translateX(6px)}
  .menu a:hover .n{opacity:0}
  .menu a:hover svg{opacity:1;transform:none}
  .menu a:hover path{stroke-dashoffset:0}
}
.menu a:focus-visible .n{opacity:0}
.menu a:focus-visible svg{opacity:1;transform:none}
.menu a:focus-visible path{stroke-dashoffset:0}

/* ---------- BOOK: an accent copy of the word revealed with clip-path ---------- */
.book{position:fixed;z-index:4;left:18px;bottom:calc(8px + var(--safe-b));display:block;font-family:var(--display);font-weight:700;font-size:clamp(92px,11.4vw,168px);line-height:.8;letter-spacing:-.015em;color:var(--ink);transform-origin:0 100%;transition:transform 160ms var(--ease-out)}
.book .fill{position:absolute;inset:0;color:var(--accent);clip-path:inset(0 100% 0 0);transition:clip-path 200ms var(--ease-out)}
.book:active{transform:scale(.98)}
.book:active .fill{clip-path:inset(0 0 0 0);transition-duration:280ms}
@media (hover:hover) and (pointer:fine){ .book:hover .fill{clip-path:inset(0 0 0 0);transition-duration:280ms} }

.links{position:fixed;z-index:4;right:10px;bottom:calc(4px + var(--safe-b));display:flex;flex-direction:column;align-items:flex-end}
.links a,.links button{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:30px;padding:0 8px;color:var(--ink);transition:color 150ms ease}
.links .ar{display:inline-block;transition:transform 160ms var(--ease-out)}
@media (hover:hover) and (pointer:fine){ .links a:hover,.links button:hover{color:var(--accent)} .links a:hover .ar,.links button:hover .ar{transform:translateX(3px)} }

/* ---------- itinerary: popover from its button on desktop, a sheet on phones ---------- */
.scrim{position:fixed;inset:0;z-index:30;background:rgba(10,10,9,.55);opacity:0;pointer-events:none;transition:opacity 300ms var(--ease-out)}
.itin{position:fixed;z-index:31;right:14px;bottom:calc(112px + var(--safe-b));width:min(380px,calc(100vw - 28px));background:var(--surface);border:1px solid var(--line);padding:6px 18px 10px;
  transform-origin:100% 100%;opacity:0;transform:translateY(6px) scale(.96);visibility:hidden;pointer-events:none;
  transition:opacity 150ms var(--ease-out),transform 150ms var(--ease-out),visibility 0s 150ms}
.open .itin{opacity:1;transform:none;visibility:visible;pointer-events:auto;transition:opacity 200ms var(--ease-out),transform 200ms var(--ease-out),visibility 0s}
.instant .itin,.instant .scrim{transition:none!important}
.itin-head{display:flex;justify-content:space-between;align-items:center;min-height:44px;color:var(--ink-2);border-bottom:1px solid var(--line)}
.itin-head button{min-height:44px;padding:0 4px;color:var(--ink)}
.rows{list-style:none;margin:0;padding:0}
.rows li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.rows li:last-child{border-bottom:0}
.city{font-family:var(--display);font-weight:700;font-size:26px;line-height:1;text-transform:uppercase}
.when{text-align:right;color:var(--ink-2);line-height:1.7}
.when b{font-weight:400;color:var(--ink)}
.when .op{color:var(--accent)}
.handle{display:none}

/* ---------- first visit: one short entrance, then never again this session ---------- */
@keyframes rise{from{opacity:0;transform:translateY(10px)}}
@keyframes fadein{from{opacity:0}}
.intro .menu li{animation:rise 520ms var(--ease-out) both}
.intro .menu li:nth-child(2){animation-delay:50ms}.intro .menu li:nth-child(3){animation-delay:85ms}
.intro .stage{animation:fadein 700ms var(--ease-out) 120ms both}
.intro .book,.intro .links,.intro .logo{animation:fadein 500ms var(--ease-out) 220ms both}

/* ---------- phone ---------- */
@media (max-width:720px){
  .logo{left:12px;width:48px;height:48px}
  .menu{--ws:clamp(48px,14vw,64px);left:18px;top:34%}
  .menu a{gap:12px}
  .book{left:14px;font-size:clamp(84px,27vw,120px)}
  .links a,.links button{min-height:44px}
  .fig figcaption{font-size:8.5px;margin-top:7px}
  /* Phones: while a photo passes under the words it darkens toward the wall, frame by frame. A veil, not
     transparency: the photo stays opaque, so photos that overlap never show through each other. */
  .fig::after{content:"";position:absolute;inset:0;background:var(--wall-seen);opacity:var(--veil,0);pointer-events:none}
  .fig figcaption{transition:opacity 180ms ease,color 250ms ease}
  .menu::before,.book::before{display:none}     /* the fading lanes replace the shade on phones */
  .scrim{transition-duration:350ms}
  .open .scrim{opacity:1;pointer-events:auto;transition-duration:500ms}
  .itin{left:0;right:0;bottom:0;width:auto;border:0;border-top:1px solid var(--line);padding:0 18px calc(14px + var(--safe-b));
    transform:translateY(100%);opacity:1;transition:transform 350ms var(--ease-drawer),visibility 0s 350ms}
  .open .itin{transform:none;transition:transform 500ms var(--ease-drawer),visibility 0s}
  .handle{display:block;height:22px;margin:0 -18px;position:relative;touch-action:none}
  .handle::after{content:"";position:absolute;left:50%;top:9px;width:38px;height:4px;margin-left:-19px;border-radius:2px;background:var(--line)}
  .itin-head{touch-action:none}
}
@media (prefers-reduced-motion:reduce){
  .intro .menu li,.intro .stage,.intro .book,.intro .links,.intro .logo{animation-name:fadein}
  .menu a:hover .word{transform:none}
  .itin,.open .itin{transform:none!important}
}

/* page-to-page motion (the shop rises over the home): /shared/transitions.css */

/* ---------- legibility over photos ----------
   Big words: a soft shade of wall behind them, so photos darken where they pass under and the ink stays true.
   Small corner links: difference blending, as on the live site (ink on wall, dark over light paper). */
.menu::before{content:"";position:absolute;z-index:-1;inset:-18% -22% -18% -14%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(17,17,16,.72),rgba(17,17,16,.5) 45%,rgba(17,17,16,.18) 75%,rgba(17,17,16,0))}
.book::before{content:"";position:absolute;z-index:-1;inset:-30% -18% -10% -10%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(17,17,16,.65),rgba(17,17,16,.4) 50%,rgba(17,17,16,0))}
.links{mix-blend-mode:difference}
.links a,.links button{color:#DED9CA}
@media (hover:hover) and (pointer:fine){ .links a:hover,.links button:hover{color:#E9845E} }
