/* Shah Consultant: the quiet gallery. Gallery white, one accent (stamp-ink blue),
   Anek in all three scripts. Theme tokens feed the scrollcraft engine; the
   engine stylesheet itself is never edited. */
:root {
  --sc-canvas: #ffffff; --sc-surface: #f3f3f1;
  --sc-ink: #15171c; --sc-ink-soft: #5a5e68;
  --sc-accent: #1f3e9e; --sc-accent-ink: #ffffff;
  --sc-font-display: "Anek Latin", system-ui, sans-serif;
  --sc-font-text: "Anek Latin", system-ui, sans-serif;
  --line: #dedcd7;
  --bar-h: 68px;
  color-scheme: light;
}
:lang(gu) { --sc-font-display: "Anek Gujarati", "Anek Latin", sans-serif; --sc-font-text: "Anek Gujarati", "Anek Latin", sans-serif; }
:lang(hi) { --sc-font-display: "Anek Devanagari", "Anek Latin", sans-serif; --sc-font-text: "Anek Devanagari", "Anek Latin", sans-serif; }
html { -webkit-tap-highlight-color: transparent; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body { font-size: 17px; }
a, button { touch-action: manipulation; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--sc-accent); color: #fff; }

/* route rail */
.rail { position: fixed; z-index: 55; top: calc(var(--bar-h) + 10px); left: 50%; translate: -50% 0; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.rail li { display: flex; align-items: center; }
.rail li + li::before { content: ""; width: 28px; height: 1px; margin: 0 6px; background: var(--line); }
.rail a { display: flex; align-items: center; gap: 7px; text-decoration: none; font-size: 13px; font-weight: 500; color: #6b6f78; padding: 6px 2px; transition: color 200ms ease; }
.rail i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color 200ms ease, transform 300ms var(--sc-ease-out); }
.rail [aria-current="true"] a, .rail .is-past a { color: var(--sc-ink); }
.rail [aria-current="true"] i { background: var(--sc-accent); box-shadow: none; transform: scale(1.4); }
.rail .is-past i { background: currentColor; }
@media (hover: hover) and (pointer: fine) { .rail a:hover { color: var(--sc-ink); } }
@media (max-width: 1100px) { .rail { display: none; } }

/* --------------------------------------------------------------- stage -- */
.gallery { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 130; opacity: 0; transition: opacity 600ms var(--sc-ease-out); }
.gallery-ready .gallery { opacity: 1; }
.sc-world { background: #fff; }

/* --------------------------------------------------------- copy windows -- */
.gflight { --sc-gutter: clamp(1.25rem, 5vw, 5.5rem); }
.gcopy { max-width: min(36rem, 42vw); bottom: clamp(2.5rem, 10vh, 7rem); }
.gcopy::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -10vh -8vw -8vh -12vw;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.92), rgb(255 255 255 / 0.7) 60%, rgb(255 255 255 / 0)); }
.gh1 { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5rem); line-height: 1; letter-spacing: -0.035em; margin: 0; text-wrap: balance; max-width: 12ch; }
.gh2 { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(2rem, 1.35rem + 2.2vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0; text-wrap: balance; max-width: 15ch; }
:lang(gu) .gh1, :lang(hi) .gh1, :lang(gu) .gh2, :lang(hi) .gh2 { letter-spacing: -0.005em; line-height: 1.16; }
.glede { margin: 16px 0 0; font-size: clamp(1.06rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; color: var(--sc-ink-soft); max-width: 40ch; text-wrap: pretty; }
.gactions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.gtags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gtags li { padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--sc-surface); color: var(--sc-ink); }

/* the museum label: the recurring content unit */
.glabel { margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; font-size: 13.5px; line-height: 1.45; color: var(--sc-ink-soft); max-width: 30rem; }
.glabel b { color: var(--sc-ink); font-weight: 600; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip-dest { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 15px; background: #fff; color: var(--sc-ink);
  box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--sc-ease-out); }
.chip-dest:active { transform: scale(0.96); }
.chip-dest[aria-pressed="true"] { background: var(--sc-accent); color: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .chip-dest:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1.5px #b9b6ae; } }

.gdests { list-style: none; margin: 18px 0 0; padding: 0; display: grid; max-width: 32rem; }
.gdests a { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; padding: 12px 2px; text-decoration: none; border-bottom: 1px solid var(--line); }
.gdests a > * { min-width: 0; }
.gdests b { font-weight: 600; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); letter-spacing: -0.015em; }
.gdests span { color: var(--sc-ink-soft); font-size: 14px; }
.gdests i { font-style: normal; color: var(--sc-accent); transition: transform 200ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .gdests a:hover i { transform: translateX(4px); } }

.gquote { margin: 20px 0 0; }
.gquote blockquote { margin: 0; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem); line-height: 1.32; font-weight: 500; letter-spacing: -0.015em; }
.gquote figcaption { margin-top: 6px; font-size: 14px; color: var(--sc-ink-soft); }
.glink { display: inline-flex; margin-top: 20px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--sc-accent); }
.gaddr { margin-top: 24px; font-style: normal; font-size: 14px; line-height: 1.6; color: var(--sc-ink-soft); }
.gaddr br { display: none; }
.gaddr a, .gfoot a { color: var(--sc-ink); }
.gfoot { margin: 14px 0 0; font-size: 13px; color: #5a5e68; }
.gcopy--end { width: min(50rem, 92vw); max-width: none; top: 34%; bottom: auto; text-align: center; }
.gcopy--end .gh1, .gcopy--end .glede { margin-inline: auto; }
.gcopy--end .gactions { justify-content: center; }
.gcopy--end::before { inset: -14vh -12vw; }

@media (max-width: 860px) {
  .gcopy { max-width: none; bottom: max(1.25rem, env(safe-area-inset-bottom)); }
  .gcopy::before { inset: -6vh -10vw -4vh -10vw; background: linear-gradient(to top, rgb(255 255 255 / 0.96) 55%, rgb(255 255 255 / 0)); }
  .gh1 { font-size: 2.45rem; } .gh2 { font-size: 1.85rem; }
  .glede { font-size: 1rem; margin-top: 10px; }
  .gcopy--ask .glede, .gcopy--words .gquote:nth-of-type(2), .glabel span:last-child { display: none; }
  .glabel { margin-top: 16px; }
  .gactions { margin-top: 18px; }
  .chips { gap: 8px; margin-top: 14px; } .chip-dest { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .sc-copy.gcopy--end { inset-inline: auto; left: 50%; width: calc(100% - 2 * var(--sc-gutter)); top: auto; bottom: max(1.25rem, env(safe-area-inset-bottom)); translate: -50% 0; }
}
@media (max-width: 560px) {
  .gcopy--end .gactions { flex-direction: column; align-items: stretch; } .gcopy--end .gbtn { justify-content: center; }
  .gdests a { grid-template-columns: 1fr auto; padding: 9px 2px; } .gdests span { display: none; }
  .gtags li { font-size: 13px; }
}

/* ---------------------------------------------------------------- intro -- */
.progress { display: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--sc-ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.intro-screen { display: none; }
html.intro .intro-screen, html.intro-quick .intro-screen { display: flex; position: fixed; inset: 0; z-index: 200; background: #fff; color: var(--sc-ink); align-items: center; justify-content: center; animation: intro-out 520ms var(--sc-ease-out) 760ms forwards; }
html.intro-quick .intro-screen { animation-duration: 360ms; animation-delay: 120ms; }
html.intro-skip .intro-screen { animation-delay: 0ms !important; animation-duration: 260ms !important; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
html.intro .intro-inner { animation: intro-lift 520ms var(--sc-ease-out) 760ms forwards; }
@keyframes intro-lift { to { transform: translateY(-10px); } }
.intro-logo { width: 64px; height: 64px; }
.intro-logo .il-ring, .intro-logo .il-route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-logo .il-ring { stroke: var(--sc-accent); }
.intro-logo .il-route { stroke: var(--sc-ink); }
.intro-logo .il-head { stroke: var(--sc-accent); } .intro-logo .il-dot { fill: var(--sc-accent); }
html.intro .il-ring { animation: dash 520ms var(--sc-ease-out) 40ms forwards; }
html.intro .il-route { stroke-dasharray: .06 .08; animation: dash 520ms var(--sc-ease-out) 200ms forwards; }
html.intro .il-head, html.intro .il-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop 280ms var(--sc-ease-out) forwards; }
html.intro .il-dot { animation-delay: 160ms; } html.intro .il-head { animation-delay: 560ms; }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
html.intro-quick .intro-logo .il-ring, html.intro-quick .intro-logo .il-route { stroke-dashoffset: 0; }
.intro-word { font-weight: 600; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em .12em; margin: -.2em -.12em; }
.mw > span { display: inline-block; }
html.intro .intro-word .mw > span { transform: translateY(110%); animation: mw-up 600ms var(--sc-ease-out) forwards; animation-delay: calc(240ms + var(--w) * 70ms); }
@keyframes mw-up { to { transform: none; } }
.intro-sub { display: none; }
html.intro-quick .intro-word { display: none; }
html.intro, html.intro body { overflow: hidden; }
html.intro-done { overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  .gbtn, .chip-dest, .gdests i, .gallery { transition: none; }
}
