/* 1947AD website, version 10. Tokens follow the brand book. */
:root {
  --black: #000000;
  --night: #0c0b0a;
  --white: #F7F5F0;
  --ash: #E4E0D8;
  --graphite: #5A554E;
  --red: #B3262B;
  --indigo: #263252; /* chapter one only */
  --sans: "Poppins", system-ui, sans-serif;
  --serif: "Noto Serif", "Noto Serif Tamil", Georgia, serif;
  --tamil: "Noto Serif Tamil", "Noto Serif", serif;
  --pad: clamp(20px, 3.2vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --chip: var(--graphite);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font: 300 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font: 400 clamp(34px, 4.4vw, 68px)/1.12 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; }
[lang="ta"] { font-family: var(--tamil); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--black); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--white); }

.kicker { font: 500 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; opacity: 0.86; }

/* Chips: one small, solid action per panel, coloured from the picture behind it */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; border-radius: 999px;
  background: var(--chip); color: #fff; font: 500 12px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  transition: transform 0.5s var(--ease), background 0.4s, box-shadow 0.5s var(--ease);
}
.chip:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,0.28); }
.chip:active { transform: scale(0.97); }
.chip-red { --chip: var(--red); }
.chip-ink { --chip: #1a1816; }

/* Nav: quiet, over the picture. White on dark panels, black on paper. */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--black);
  transition: color 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav.is-light { color: #fff; }
.nav.is-hidden { transform: translateY(-100%); }
.nav-left, .nav-right { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav-right { justify-content: flex-end; }
.nav-link, .nav-menu { font: 500 13px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; padding: 10px 0; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-menu { display: inline-flex; align-items: center; gap: 12px; }
.burger { width: 18px; height: 7px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: height 0.4s var(--ease); }
.nav-menu:hover .burger { height: 11px; }
.nav-logo { position: relative; display: block; width: 74px; }
.nav-logo img { width: 100%; height: auto; transition: opacity 0.5s var(--ease); }
.nav-logo .logo-dark { position: absolute; inset: 0; }
.nav .logo-light { opacity: 0; }
.nav.is-light .logo-light { opacity: 1; }
.nav.is-light .logo-dark { opacity: 0; }

/* 1–2. One shot. The land is the view through a window: scrolling pulls the camera back into the room.
   The window opening is measured from the room picture (--ol, --ot, --ow, --oh, as % of the room). */
.shot { position: relative; height: 340vh; }
.shot-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--white); }
.shot-stage {
  --ol: 29.1%; --ot: 30.844%; --ow: 41.55%; --oh: 39.022%; --plate: 16 / 9;
  position: absolute; left: 50%; top: 50%; width: max(100vw, 177.78vh); aspect-ratio: 16 / 9; translate: -50% -50%;
  transform-origin: calc(var(--ol) + var(--ow) / 2) calc(var(--ot) + var(--oh) / 2);
  container-type: inline-size; will-change: transform;
}
.shot-room img { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot-view { position: absolute; left: var(--ol); top: var(--ot); width: var(--ow); height: var(--oh); overflow: hidden; }
.shot-plate { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: var(--plate); translate: 0 -50%; container-type: inline-size; }
.shot-plate img { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(var(--tone, 0.84)); }
/* the words sit between the land and the cut-out foreground, so the palms and the temple pass in front of them */
.shot-copy { position: absolute; left: 0; right: 0; top: 35.4%; text-align: center; color: #fff; }
.shot-copy .kicker { font: 500 1.05cqw/1 var(--sans); letter-spacing: 0.2em; color: var(--indigo); opacity: 1; margin: 0; }
.shot-copy h1 { font-size: 7.4cqw; line-height: 1; margin-top: 1cqw; letter-spacing: -0.005em; }
/* the foreground layer is the same land picture, masked to the shape of the palms, temple, trees and fields */
.shot-cut { -webkit-mask: url("assets/web/land-mask.png") center / 100% 100% no-repeat; mask: url("assets/web/land-mask.png") center / 100% 100% no-repeat; }
.shot-leaves { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: none; }
.shot-grill { position: absolute; inset: 0; display: flex; justify-content: space-evenly; opacity: 0; pointer-events: none; }
.shot-grill i { width: 0.9%; height: 100%; background: linear-gradient(90deg, #1d1915, #4a4038 45%, #1d1915); box-shadow: 2px 0 3px rgba(0,0,0,0.25); }
.room-copy { position: absolute; left: 0; right: 0; top: 11.5%; height: 13%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; opacity: 0; }
.room-copy h2 { font-size: 2.7cqw; line-height: 1.1; }
.room-copy p { font: italic 400 1.05cqw/1.4 var(--serif); color: #4a4640; margin-top: 0.5cqw; }
.shot-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(120,115,110,0.55), rgba(120,115,110,0.18) 16%, rgba(120,115,110,0) 34%, rgba(247,245,240,0) 84%, var(--white) 100%); }
.shot .shot-chip { position: absolute; z-index: 2; left: 50%; bottom: clamp(28px, 6vh, 56px); translate: -50% 0; white-space: nowrap; }

/* Phones get their own portrait art: a tall land and a tall room with an upright window */
@media (max-aspect-ratio: 4/5) {
  .shot-stage { --ol: 22.222%; --ot: 36.953%; --ow: 52.222%; --oh: 37.188%; --plate: 9 / 16; width: max(100vw, 56.25vh); aspect-ratio: 9 / 16; }
  .shot-view { overflow: visible; }
  .shot-cut { -webkit-mask-image: url("assets/web/land-phone-mask.png"); mask-image: url("assets/web/land-phone-mask.png"); }
  .shot-grill i:nth-child(n+6) { display: none; }
  .shot-copy { top: 47.1%; }
  .shot-copy .kicker { font-size: 1.94cqw; letter-spacing: 0.16em; }
  .shot-copy h1 { font-size: 11.1cqw; font-weight: 600; line-height: 0.975; margin-top: 0; }
  .shot-copy h1 span:first-child { display: block; }
  .room-copy { top: 9%; height: 22%; }
  .room-copy h2 { font-size: 7.6cqw; }
  .room-copy p { font-size: 3.4cqw; margin-top: 1.6cqw; }
}

/* Chapter card: the title before the first act */
.chapter { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.chapter .kicker { color: var(--graphite); opacity: 1; margin: 0; }
.chapter-node { display: flex; align-items: center; width: min(280px, 60vw); margin: 28px auto; }
.chapter-node::before, .chapter-node::after { content: ""; flex: 1; height: 1px; background: var(--graphite); opacity: 0.5; }
.chapter-node i { width: 10px; height: 10px; background: var(--red); margin: 0 14px; }
.chapter-ta { font: 400 clamp(56px, 8vw, 112px)/1.2 "Kavivanar", var(--tamil); color: var(--red); }
.chapter-en { font: 400 clamp(20px, 2vw, 28px)/1.3 var(--serif); margin-top: 6px; }
.chapter-count { font-size: 13px; color: var(--graphite); margin-top: 18px; }

/* Panels: one picture, one line, one chip */
.panel { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); color: #fff; display: grid; place-items: center; }
.panel-media { position: absolute; inset: 0; overflow: hidden; }
.panel-media img { width: 100%; height: 116%; max-width: none; object-fit: cover; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0.12) 45%, rgba(0,0,0,0.28)); pointer-events: none; }
.panel-copy { position: relative; z-index: 1; text-align: center; padding: 0 var(--pad); max-width: 18em; font-size: clamp(34px, 4.4vw, 68px); }
.panel-copy h2 { font-size: 1em; }
.panel-copy .kicker { font-size: 12px; }
.ta { display: block; font: 400 0.5em/1.5 var(--tamil); margin-bottom: 0.35em; opacity: 0.92; }
.panel > .chip { position: absolute; z-index: 1; left: 50%; bottom: clamp(28px, 6vh, 56px); translate: -50% 0; }
/* when the subject fills the centre, the line sits low on the left */
.panel-left { place-items: end start; }
.panel-left .panel-copy { text-align: left; padding: 0 0 clamp(96px, 15vh, 150px) clamp(20px, 6.7vw, 96px); }
.panel-left > .chip { left: clamp(20px, 6.7vw, 96px); translate: none; }
/* Aval, as in the Figma: an even 40% shade, the line and the chip low on the left */
.panel-aval::after { background: rgba(12, 11, 10, 0.4); }
.panel-aval .panel-copy { font-size: clamp(38px, 4.2vw, 60px); max-width: none; padding-bottom: calc(clamp(28px, 6vh, 56px) + 72px); }
.panel-aval .panel-copy h2 { line-height: 1; }
.panel-aval .ta { font-size: 0.5em; line-height: 1.47; margin-bottom: 16px; opacity: 1; }
.panel-aval .kicker { margin-bottom: 16px; opacity: 1; }

/* 4. Stories two and three: a photo and a page, side by side, swapping sides */
.story-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 100vh; height: 100svh; min-height: 560px; background: var(--white); }
.story-media { position: relative; overflow: hidden; }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-media-dark::after { content: ""; position: absolute; inset: 0; background: rgba(12, 11, 10, 0.4); pointer-events: none; }
.story-row-flip .story-media { order: 2; }
.story-row-flip .story-media img { object-position: 50% 82%; }
.story-media .chip { position: absolute; z-index: 1; left: 50%; bottom: 48px; translate: -50% 0; white-space: nowrap; }
.story-copy { align-self: center; justify-self: center; width: min(513px, 100%); padding: 0 clamp(24px, 4vw, 48px); box-sizing: content-box; max-width: calc(100% - 2 * clamp(24px, 4vw, 48px)); }
.story-row-flip .story-copy { width: min(307px, 100%); }
.story-ta { font: 400 20px/32px var(--tamil); }
.story-copy h2 { font: 400 clamp(28px, 2.5vw, 36px)/1.11 var(--serif); margin-top: 16px; }

/* 5. The prints of chapter one */
.rail { background: var(--white); min-height: 800px; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 64px 0; }
.rail h2 { font: 400 30px/36px var(--serif); padding: 0 clamp(20px, 6.7vw, 96px); }
.rail-track { list-style: none; margin: 0; padding: 0 clamp(20px, 6.7vw, 96px) 12px; display: flex; gap: 48px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: clamp(20px, 6.7vw, 96px); scrollbar-width: none; cursor: grab; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail-track.is-drag button { pointer-events: none; }
.rail-track li { flex: none; width: 260px; scroll-snap-align: start; }
.rail-track button { display: grid; width: 100%; text-align: left; }
.rail-name { font: 500 12px/16px var(--sans); color: var(--black); }
.rail-spec { font: 400 12px/16px var(--sans); color: #86817a; margin-top: 4px; }
.rail-track img { width: 260px; height: 260px; object-fit: contain; mix-blend-mode: multiply; margin-top: 24px; transition: transform 0.9s var(--ease); -webkit-user-drag: none; user-select: none; }
.rail-track button:hover img { transform: translateY(-8px) scale(1.05); }

/* 6. Stay in touch, over the river engraving under a 40% shade */
.stay { position: relative; overflow: hidden; color: #fff; background: #3a3632; padding: clamp(120px, 31vh, 286px) clamp(20px, 6.7vw, 96px) 40px; }
.stay::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 1; }
.stay-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.stay-grid, .foot { position: relative; z-index: 2; }
.stay-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 318px) minmax(0, 318px); justify-content: space-between; gap: 48px; padding-bottom: clamp(56px, 10vh, 96px); }
.stay h2 { font: 400 30px/36px var(--serif); margin-bottom: 24px; }
.stay-form { display: grid; gap: 24px; max-width: 420px; }
.stay-form input { height: 58px; border: 1px solid var(--ash); border-radius: 8px; padding: 0 16px; font: 400 16px var(--sans); background: rgba(0, 0, 0, 0.18); color: #fff; transition: border-color 0.3s, background 0.3s; }
.stay-form input::placeholder { color: #d9d4cc; }
.stay-form input:focus { outline: none; border-color: #fff; background: rgba(0, 0, 0, 0.32); }
.stay-form button { height: 52px; border-radius: 8px; background: #181818; color: #fff; font: 500 14px var(--sans); transition: background 0.4s, transform 0.4s var(--ease); }
.stay-form button:hover { background: var(--red); }
.stay-form button:active { transform: scale(0.985); }
.form-msg { font-size: 12px; line-height: 16px; color: #d9d4cc; margin-top: 24px; min-height: 1.6em; max-width: 420px; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.stay-links { list-style: none; margin: 0; padding: 0; }
.stay-links li { border-bottom: 1px solid var(--ash); }
.stay-links li + li { margin-top: 16px; }
.stay-links a, .stay-links button { display: block; width: 100%; text-align: left; padding: 0 0 16px; font: 500 14px/20px var(--sans); text-decoration: none; transition: padding 0.5s var(--ease), color 0.3s; }
.stay-links a:hover, .stay-links button:hover { padding-left: 10px; color: #f2c9b0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; line-height: 16px; color: #d9d4cc; }
.foot img { width: 64px; height: auto; }

/* Sheets: the menu, the idea and each story slide in over the page */
.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px, 100vw); height: 100dvh; max-height: none; max-width: none;
  border: 0; padding: 0; background: var(--white); color: var(--black); overflow-y: auto; overscroll-behavior: contain;
}
.sheet-left { inset: 0 auto 0 0; width: min(520px, 100vw); padding: 96px clamp(24px, 4vw, 56px) 48px; }
.sheet::backdrop { background: rgba(8, 7, 6, 0.55); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in 0.7s var(--ease); }
.sheet[open]::backdrop { animation: fade-in 0.6s ease; }
.sheet-left[open] { animation-name: sheet-in-left; }
.sheet.is-closing { animation: sheet-out 0.45s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.sheet-left.is-closing { animation-name: sheet-out-left; }
.sheet.is-closing::backdrop { animation: fade-in 0.45s ease reverse forwards; }
@keyframes sheet-in { from { transform: translateX(100%); } }
@keyframes sheet-out { to { transform: translateX(100%); } }
@keyframes sheet-in-left { from { transform: translateX(-100%); } }
@keyframes sheet-out-left { to { transform: translateX(-100%); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-close { position: absolute; z-index: 3; top: 18px; right: 20px; height: 34px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--black); font: 500 12px/1 var(--sans); box-shadow: 0 2px 14px rgba(0,0,0,0.14); transition: transform 0.4s var(--ease); }
.sheet-close:hover { transform: scale(1.06); }
.sheet-left .sheet-close { box-shadow: none; border: 1px solid rgba(0,0,0,0.2); }
.sheet-strip { display: flex; gap: 2px; height: min(62vh, 560px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--ash); }
.sheet-strip::-webkit-scrollbar { display: none; }
.sheet-strip img { flex: none; width: 86%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.sheet-strip img.is-print { object-fit: contain; background: var(--white); padding: 8%; }
.sheet-body { padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px) 64px; }
.sheet-kicker { font: 500 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #86817a; margin-bottom: 18px; }
.sheet h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 22px; }
.sheet h2 [lang="ta"] { display: block; font-size: 0.72em; line-height: 1.5; margin-bottom: 6px; color: var(--indigo); }
.sheet-body p { color: var(--graphite); max-width: 30em; margin-bottom: 1em; }
.sheet-body .chip { margin-top: 18px; }
.sheet blockquote { margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--ash); }
.sheet blockquote p { color: var(--black); margin: 0; }
.sheet blockquote [lang="ta"] { font-size: 22px; line-height: 1.6; }
.sheet blockquote p:nth-child(2) { font: italic 400 17px/1.5 var(--serif); }
.sheet blockquote footer { font-size: 12px; color: #86817a; margin-top: 10px; }
.menu-list { list-style: none; margin: 0 0 44px; padding: 0; }
.menu-list li { border-bottom: 1px solid var(--ash); }
.menu-list button, .menu-list a { display: grid; gap: 4px; width: 100%; text-align: left; padding: 18px 0; font: 400 clamp(26px, 2.8vw, 36px)/1.3 var(--serif); text-decoration: none; transition: padding 0.6s var(--ease), color 0.3s; }
.menu-list small { font: 400 12px/1.4 var(--sans); color: #86817a; }
.menu-list button:hover, .menu-list a:hover { padding-left: 14px; color: var(--red); }
.menu-list-small button, .menu-list-small a { font-size: clamp(20px, 2vw, 24px); padding: 14px 0; }
.menu-peek { display: none; }

/* Motion */
.motion .shot-copy > *, .motion .shot .shot-chip { opacity: 0; transform: translateY(26px); transition: opacity 1.6s var(--ease), transform 1.8s var(--ease); }
.motion .shot-copy .kicker { transition-delay: 0.5s; }
.motion .shot-copy h1 { transition-delay: 0.8s; }
.motion .shot .shot-chip { transition-delay: 1.4s; }
.motion .shot.is-ready .shot-copy > *, .motion .shot.is-ready .shot-chip { opacity: 1; transform: none; }
.motion .shot-stage { opacity: 0; transition: opacity 2s ease; }
.motion .shot.is-ready .shot-stage { opacity: 1; }
/* A few leaves come down from the banyan, slowly */
.motion .shot-leaves { display: block; }
.shot-leaves svg { position: absolute; top: 4cqw; width: 0.85cqw; fill: #1b1a18; opacity: 0; animation: leaf 17s linear infinite; }
.shot-leaves svg:nth-child(1) { left: 62%; animation-delay: 1s; }
.shot-leaves svg:nth-child(2) { left: 71%; width: 0.6cqw; animation-delay: 6s; animation-duration: 21s; }
.shot-leaves svg:nth-child(3) { left: 80%; animation-delay: 3.5s; animation-duration: 19s; }
.shot-leaves svg:nth-child(4) { left: 67%; width: 0.65cqw; animation-delay: 11s; }
.shot-leaves svg:nth-child(5) { left: 88%; width: 0.7cqw; animation-delay: 14s; animation-duration: 23s; }
.shot-leaves svg:nth-child(6) { left: 75%; width: 0.55cqw; animation-delay: 9s; animation-duration: 20s; }
.shot-leaves svg:nth-child(7) { left: 58%; animation-delay: 17s; animation-duration: 22s; }
@media (max-aspect-ratio: 4/5) { .shot-leaves svg { width: 2.4cqw; top: 6cqw; } }
@keyframes leaf {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 6% { opacity: 0.8; }
  50% { transform: translate3d(-4cqw, 22cqw, 0) rotate(200deg); }
  92% { opacity: 0.8; } 100% { transform: translate3d(2cqw, 44cqw, 0) rotate(420deg); opacity: 0; }
}
.motion .chapter > div > * { opacity: 0; transform: translateY(24px); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.motion .chapter.is-in > div > * { opacity: 1; transform: none; }
.motion .chapter.is-in > div > :nth-child(2) { transition-delay: 0.2s; }
.motion .chapter.is-in > div > :nth-child(3) { transition-delay: 0.45s; }
.motion .chapter.is-in > div > :nth-child(4) { transition-delay: 0.6s; }
.motion .chapter.is-in > div > :nth-child(5) { transition-delay: 0.8s; }
.motion .panel-media img { transform: translateY(calc(var(--p, 0.5) * -13.8%)) scale(1.12); transition: scale 2.6s var(--ease); scale: 1.1; }
.motion .panel.is-in .panel-media img { scale: 1; }
.motion .panel-copy > *, .motion .panel > .chip { opacity: 0; transform: translateY(30px); transition: opacity 1.3s var(--ease), transform 1.5s var(--ease); }
.motion .panel-copy > :nth-child(2) { transition-delay: 0.15s; }
.motion .panel > .chip { transition-delay: 0.45s; }
.motion .panel.is-in .panel-copy > *, .motion .panel.is-in > .chip { opacity: 1; transform: none; }
.motion .rail-track li { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.motion .rail.is-in .rail-track li { opacity: 1; transform: none; }
.motion .sheet[open] .sheet-body > *, .motion .sheet[open] .menu-list li, .motion .sheet-left[open] > .sheet-kicker { animation: rise 0.9s var(--ease) both; animation-delay: calc(0.25s + var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@media (hover: hover) and (min-width: 1100px) {
  .menu-peek { display: block; position: fixed; left: min(520px, 100vw); top: 0; bottom: 0; right: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 0.6s var(--ease); }
  .menu-peek img { position: absolute; left: 50%; top: 50%; width: min(420px, 60%); aspect-ratio: 4 / 5; object-fit: cover; translate: -50% -50%; box-shadow: 0 30px 80px rgba(0,0,0,0.5); transform: scale(0.94); transition: transform 0.9s var(--ease); }
  .menu-peek.is-on { opacity: 1; }
  .menu-peek.is-on img { transform: none; }
}

@media (max-width: 760px) {
  .nav-left .nav-link { display: none; }
  .story-row { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .story-media { height: 72svh; }
  .story-row-flip .story-media { order: 0; }
  .story-copy, .story-row-flip .story-copy { width: auto; max-width: none; padding: 56px 24px 72px; justify-self: stretch; }
  .rail { min-height: 0; padding: 72px 0; gap: 28px; }
  .rail h2 { font-size: 24px; line-height: 30px; }
  .rail-track { gap: 28px; }
  .rail-track li { width: 62vw; }
  .rail-track img { width: 62vw; height: 62vw; }
  .stay { padding-top: 96px; }
  .stay-grid { grid-template-columns: 1fr; gap: 40px; }
  .sheet-strip { height: 52vh; }
}
