/* INDIA, CURATED. — stylesheet
   Palette: forest #14281F, charcoal #1B1F1C, ivory #F3EBDD, copper #B8763E, muted gold #C9A45C */

:root {
  --forest: #14281F;
  --forest-2: #1D3A2C;
  --night: #0D1611;
  --charcoal: #1B1F1C;
  --ivory: #F3EBDD;
  --ivory-2: #E8DDC9;
  --ivory-3: #D9CCB4;
  --copper: #B8763E;
  --copper-deep: #8F5726;
  --gold: #C9A45C;
  --ink: #1B1F1C;
  --on-dark: rgba(243, 235, 221, .86);
  --on-dark-dim: rgba(243, 235, 221, .62);
  --line-dark: rgba(243, 235, 221, .16);
  --line-light: rgba(20, 40, 31, .16);
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--ivory-2); -webkit-font-smoothing: antialiased;
}
body[data-theme='ivory'] { background: var(--ivory-2); color: var(--ink); }
body[data-theme='dark'] { background: var(--night); color: var(--on-dark); }
body[data-theme='wall'] { background: #D6CCBA; color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
#app:focus { outline: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ivory); color: var(--ink); padding: .6rem 1rem; z-index: 99; }
.skip-link:focus { left: 8px; top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wordmark { font-family: var(--serif); font-weight: 600; font-size: .78rem; letter-spacing: .2em; white-space: nowrap; }
.wm-lg { font-size: 1.05rem; }
.lotus { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px;
  padding: .75rem 1.5rem; border-radius: 3px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); font-weight: 500; font-size: .95rem; letter-spacing: .01em; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-solid { background: var(--forest); color: var(--ivory); }
.btn-solid:hover { background: var(--forest-2); }
.btn-line { border-color: currentColor; background: transparent; }
body[data-theme='ivory'] .btn-line:hover, body[data-theme='wall'] .btn-line:hover { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
body[data-theme='dark'] .btn-line:hover { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: #D8B46E; }
.btn-wide { width: 100%; }
.text-link { font-family: var(--sans); font-size: .9rem; color: var(--gold); text-underline-offset: 4px; }
.back { font-family: var(--sans); font-size: .85rem; text-underline-offset: 4px; }

/* ---------- Launcher ---------- */
.launcher { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 48px) 64px; }
.l-brand { display: flex; align-items: center; gap: 14px; color: var(--forest); }
.l-head h1 { font-weight: 400; font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.02; letter-spacing: -.015em; margin: 28px 0 20px; color: var(--forest); max-width: none; white-space: nowrap; }
.l-lede { max-width: 56ch; font-size: 1.15rem; line-height: 1.6; color: #3b463f; }
@media (min-width: 900px) {
  .l-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); align-items: end; }
  .l-brand { grid-column: 1 / -1; }
  .l-head h1 { max-width: none; font-size: clamp(2.2rem, 4vw, 3.1rem); margin: 34px 0 0; }
  .l-lede { margin-bottom: .6rem; padding-left: 28px; border-left: 1px solid var(--line-light); font-size: 1.2rem; }
}
.l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 44px 32px; margin-top: 56px; }
.l-arch { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 2px 2px; background: var(--ivory-3); }
.l-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.l-arch:hover img { transform: scale(1.04); }
.l-meta { padding-top: 18px; }
.l-meta h2 { font-weight: 500; font-size: 1.5rem; color: var(--forest); }
.l-who { font-family: var(--sans); font-size: .88rem; color: #57615a; margin-top: 2px; }
.l-gets { margin-top: 12px; font-size: 1.02rem; line-height: 1.4; }
.l-gets span { font-family: var(--sans); font-size: .85rem; color: #57615a; }
.l-tier { font-family: var(--sans); font-size: .82rem; color: var(--copper-deep); margin-top: 8px; }
.l-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-family: var(--sans); font-size: .9rem; }
.l-links a { color: var(--forest); text-underline-offset: 4px; }
.l-foot { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.l-foot p { flex-basis: 100%; font-family: var(--sans); font-size: .82rem; color: #57615a; margin-top: 8px; }
.l-foot .btn-line { color: var(--forest); }

/* ---------- Invitation ---------- */
.invite { min-height: 100dvh; display: flex; justify-content: center; background: var(--ivory-2); }
.invite-sheet { position: relative; width: 100%; max-width: 480px; min-height: 100dvh; background: var(--ivory); display: flex; flex-direction: column; padding: 0 0 22px; }
@media (min-width: 560px) { .invite { padding: 28px 0; } .invite-sheet { min-height: min(920px, calc(100dvh - 56px)); box-shadow: 0 30px 60px -30px rgba(20, 40, 31, .45); } }
.invite-top { padding: 22px 26px 8px; color: var(--forest); }
.company { display: inline-flex; align-items: center; gap: 10px; }
.company-text { display: flex; flex-direction: column; line-height: 1.15; }
.company-text b { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .04em; font-weight: 600; }
.company-text small { font-family: var(--sans); font-size: .62rem; color: #57615a; }
.invite-arch { position: relative; margin: 14px 12% 0; height: min(40dvh, 330px); min-height: 250px; clip-path: url(#ogee); overflow: hidden; color: #0F2219;
  background: linear-gradient(180deg, #1D3A2C 0%, #4B5B3F 38%, #B8763E 78%, #E3B676 100%); }
.invite-sun { position: absolute; left: 50%; bottom: 26%; width: 34%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #F6E2B4 0%, rgba(246, 226, 180, .0) 70%); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; }
.invite-lotus { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); opacity: .9; }
.invite-copy { padding: 26px 30px 6px; }
.invite-dear { font-style: italic; font-size: 1.2rem; color: #4a554e; }
.invite-copy h1 { font-weight: 400; font-size: clamp(2.15rem, 9vw, 2.7rem); line-height: 1.04; letter-spacing: -.012em; color: var(--forest); margin: 6px 0 16px; text-wrap: balance; }
.invite-body { font-size: 1.06rem; color: #3b463f; max-width: 34ch; margin-bottom: 24px; }
.invite-foot { margin-top: auto; text-align: center; padding-top: 30px; color: var(--copper-deep); }
.demo-back { position: fixed; left: 16px; bottom: 14px; font-family: var(--sans); font-size: .78rem; color: #57615a; text-underline-offset: 4px; }
@media (max-width: 559px) { .demo-back { display: none; } }

/* ---------- Reveal ---------- */
.reveal { position: fixed; inset: 0; overflow: hidden; background: color-mix(in srgb, var(--tint) 14%, #070d0a); }
.reveal-window { position: absolute; inset: 0; }
.reveal-window img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 45%; }
.reveal-window .rw-back { display: none; position: absolute; inset: 0; filter: blur(30px) brightness(.62) saturate(1.15); transform: scale(1.15); }
.reveal.contain .rw-back, .reveal.contain-art .rw-back { display: block; }
.reveal.contain-art .rw-main { object-fit: contain; object-position: 50% 42%; }
.reveal.contain .rw-main { position: absolute; left: 0; top: 9%; height: auto; aspect-ratio: var(--ar); object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); }
.reveal-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.reveal-line path { stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 13, 10, .35) 0%, rgba(7, 13, 10, 0) 26%, rgba(7, 13, 10, 0) 40%, rgba(7, 13, 10, .88) 100%); opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.reveal.done .reveal-shade { opacity: 1; }
.reveal-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 28px max(36px, env(safe-area-inset-bottom)); max-width: 720px; color: var(--ivory); }
.reveal-text > * { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-text.on > * { opacity: 1; transform: none; }
.reveal-text.on .rt-title { transition-delay: .25s; }
.reveal-text.on .rt-place { transition-delay: .5s; }
.reveal-text.on .rt-rule { transition-delay: .7s; }
.reveal-text.on .rt-tag { transition-delay: .85s; }
.reveal-text .rt-cta { transition-delay: 0s; opacity: 0; pointer-events: none; }
.reveal-text.on-cta .rt-cta { opacity: 1; transform: none; pointer-events: auto; transition-delay: .1s; }
.rt-for { font-style: italic; font-size: 1.1rem; color: var(--on-dark); }
.rt-title { font-weight: 400; font-size: clamp(2.4rem, 9vw, 4.2rem); line-height: 1; letter-spacing: -.015em; margin: 6px 0 8px; text-wrap: balance; }
.rt-place { font-family: var(--sans); font-size: .95rem; color: var(--on-dark); }
.rt-rule { display: block; width: 44px; height: 1px; background: var(--gold); margin: 16px 0; }
.rt-tag { font-style: italic; font-size: 1.1rem; color: var(--on-dark); margin-bottom: 22px; }
.reveal-skip { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 18px; background: none; border: 0; color: var(--on-dark-dim); font-family: var(--sans); font-size: .85rem; padding: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Story ---------- */
.story { min-height: 100dvh; }
.story-bar { position: sticky; top: 0; z-index: 1200; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px;
  background: rgba(13, 22, 17, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); }
.bar-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); flex: none; }
.bar-mark .wordmark { color: var(--ivory); }
.story-index { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-right: -8px; }
.story-index::-webkit-scrollbar { display: none; }
.story-index button { background: none; border: 0; cursor: pointer; padding: 8px 9px; font-family: var(--sans); font-size: .82rem; color: var(--on-dark-dim); position: relative; white-space: nowrap; }
.story-index button::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.story-index button:hover { color: var(--ivory); }
.story-index button.on { color: var(--ivory); }
.story-index button.on::after { transform: scaleX(1); }
@media (max-width: 560px) { .bar-mark .wordmark { display: none; } .story-bar { padding: 10px 12px; gap: 6px; } .story-index button { padding: 8px 6px; font-size: .78rem; } .story-index button::after { left: 6px; right: 6px; } }

.story-hero { position: relative; margin: 0; height: 62svh; min-height: 380px; background: #000; }
.story-hero img { width: 100%; height: 100%; object-fit: cover; }
.story-hero.art { height: auto; min-height: 0; aspect-ratio: var(--ar); max-height: 78svh; background: #0A120E; }
.story-hero.art img { object-fit: contain; }
.story-hero.land { height: auto; min-height: 0; aspect-ratio: var(--ar); max-height: 70svh; }
.story-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--night)); }
.story-hero figcaption { position: absolute; left: 20px; bottom: 14px; z-index: 1; font-family: var(--sans); font-size: .74rem; color: var(--on-dark-dim); }

.story-body { padding: 8px 22px 40px; max-width: 700px; margin: 0 auto; }
/* scroll-margin-top is sized so (margin + this section's own top padding) is constant across
   sections: otherwise a section with more top padding than the next lands visibly lower when
   the nav jumps to it, even though both are "flush under the bar" by the scroll math alone. */
.sec { padding: 44px 0 8px; scroll-margin-top: 20px; }
.sec-first { padding-top: 6px; scroll-margin-top: 58px; }
.kicker { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.05rem; margin-bottom: 4px; }
.story-body h1 { font-weight: 400; font-size: clamp(2.5rem, 8vw, 3.9rem); line-height: 1; letter-spacing: -.015em; color: var(--ivory); text-wrap: balance; }
.place-line { font-family: var(--sans); font-size: .98rem; color: var(--on-dark); margin-top: 12px; }
.why { margin: 26px 0 0; padding-left: 18px; border-left: 2px solid var(--copper); font-style: italic; font-size: 1.14rem; line-height: 1.5; color: var(--on-dark); }
.why-for { display: block; font-style: normal; font-family: var(--sans); font-size: .8rem; color: var(--gold); margin-bottom: 4px; }
.prose { margin-top: 28px; }
.prose p { font-size: 1.2rem; line-height: 1.68; color: var(--on-dark); max-width: 60ch; }
.didyou { margin-top: 30px; padding: 20px 22px; background: rgba(243, 235, 221, .06); border-top: 1px solid var(--gold); }
.didyou h3 { font-family: var(--sans); font-weight: 500; font-size: .85rem; color: var(--gold); margin-bottom: 6px; }
.didyou p { font-size: 1.05rem; color: var(--on-dark); }
.facts { margin-top: 30px; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-dark); }
.facts dt { font-family: var(--sans); font-size: .82rem; color: var(--on-dark-dim); padding-top: 3px; }
.facts dd { font-size: 1.04rem; color: var(--on-dark); }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: .92rem; }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.crit { color: #E79A6B; } .status.warn { color: #E2C283; } .status.ok { color: #A9C79B; } .status.muted { color: var(--on-dark-dim); }

.story-body h2 { font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.3rem); line-height: 1.1; letter-spacing: -.01em; color: var(--ivory); }
.sec-lede { margin-top: 8px; font-size: 1.05rem; color: var(--on-dark-dim); max-width: 52ch; }
.map { position: relative; z-index: 0; isolation: isolate; height: 320px; margin-top: 20px; background: #16231C; border: 1px solid var(--line-dark); }
.map-off { display: grid; place-items: center; font-family: var(--sans); font-size: .9rem; color: var(--on-dark-dim); }
.map-note { font-family: var(--sans); font-size: .85rem; color: var(--on-dark-dim); margin-top: 10px; }
.sec .text-link { display: inline-block; margin-top: 12px; }
.pin span { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--copper); border: 3px solid var(--ivory); box-shadow: 0 0 0 6px rgba(184, 118, 62, .35); }
.leaflet-container { background: #16231C; font-family: var(--sans); }

.gallery { columns: 2; column-gap: 12px; margin-top: 20px; }
.gallery li { break-inside: avoid; margin-bottom: 12px; }
.gallery button { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: #16231C; text-align: left; }
.gallery img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-family: var(--sans); font-size: .8rem; color: var(--ivory); background: linear-gradient(180deg, transparent, rgba(7, 13, 10, .85)); }

.stories { margin-top: 18px; }
.stories li + li { border-top: 1px solid var(--line-dark); }
.stories button { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; width: 100%; padding: 16px 0; background: none; border: 0; cursor: pointer; text-align: left; }
.stories img { width: 84px; height: 104px; object-fit: cover; border-radius: 999px 999px 2px 2px; }
.st-text b { display: block; font-weight: 500; font-size: 1.15rem; color: var(--ivory); }
.st-text span { display: block; margin-top: 4px; font-size: .98rem; line-height: 1.45; color: var(--on-dark-dim); }
.stories button:hover .st-text b { color: var(--gold); }

.dls { display: grid; grid-template-columns: auto 1.6fr 1.2fr; gap: 14px; margin-top: 20px; align-items: end; }
.dl { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.dl-thumb { display: block; height: 180px; background: #16231C; overflow: hidden; border: 1px solid var(--line-dark); }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dl:hover .dl-thumb img { transform: scale(1.05); }
.dl-phone .dl-thumb { height: 220px; width: calc(220px * 9 / 19.5); }
.dl-art .dl-thumb { height: 220px; }
.dl-label { font-family: var(--sans); font-size: .9rem; color: var(--ivory); }
.dl-label small { display: block; font-size: .76rem; color: var(--on-dark-dim); margin-top: 2px; }
.dl:hover .dl-label { color: var(--gold); }
@media (max-width: 520px) { .dls { grid-template-columns: auto 1fr; align-items: start; } .dl-desk { grid-column: 1 / -1; order: 3; } }

.shares { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.shares .btn { min-width: 118px; }
.copy-note { font-family: var(--sans); font-size: .85rem; color: var(--gold); margin-top: 10px; min-height: 1.4em; word-break: break-all; }

.story-foot { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.behind summary, .lb-text summary { cursor: pointer; font-family: var(--sans); font-size: .9rem; color: var(--gold); }
.behind p { margin-top: 12px; font-size: .95rem; color: var(--on-dark-dim); }
.behind .quote { font-style: italic; border-left: 2px solid var(--line-dark); padding-left: 14px; }
.behind a { color: var(--on-dark); }
.foot-line { display: flex; flex-direction: column; gap: 6px; margin-top: 34px; color: var(--gold); }
.foot-line span:last-child { font-family: var(--sans); font-size: .8rem; color: var(--on-dark-dim); letter-spacing: 0; }

.lightbox { width: min(94vw, 880px); max-height: 92svh; padding: 0; border: 0; background: var(--night); color: var(--on-dark); overflow: auto; }
.lightbox::backdrop { background: rgba(4, 8, 6, .82); }
.lightbox img { width: 100%; max-height: 58svh; object-fit: contain; background: #000; }
.lb-text { padding: 20px 24px 28px; }
.lb-text h3 { font-weight: 400; font-size: 1.7rem; color: var(--ivory); }
.lb-place { font-family: var(--sans); font-size: .88rem; color: var(--gold); margin: 4px 0 12px; }
.lb-text p { font-size: 1.05rem; }
.lb-text details { margin-top: 14px; }
.lb-fact { margin-top: 10px; color: var(--on-dark-dim); }
.lb-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(13, 22, 17, .85); border: 1px solid var(--line-dark); color: var(--ivory); font-family: var(--sans); font-size: .82rem; padding: 8px 14px; cursor: pointer; }

@media (min-width: 1000px) {
  .story-grid { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: start; }
  .story-hero, .story-hero.land, .story-hero.art { position: sticky; top: 55px; height: calc(100svh - 55px); min-height: 0; aspect-ratio: auto; max-height: none; }
  .story-hero::after { inset: 0 0 0 auto; width: 22%; height: auto; background: linear-gradient(90deg, transparent, var(--night)); }
  .story-body { padding: 56px clamp(32px, 5vw, 80px) 72px 12px; max-width: 760px; margin: 0; }
  .sec-first { padding-top: 0; scroll-margin-top: 64px; }
  .gallery { columns: 3; }
}

/* ---------- Shared card ---------- */
.shared { position: fixed; inset: 0; overflow: auto; }
.shared-img { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shared-shade { position: fixed; inset: 0; background: linear-gradient(180deg, rgba(7, 13, 10, .4), rgba(7, 13, 10, 0) 25%, rgba(7, 13, 10, .92) 100%); }
.shared-text { position: relative; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 96px 28px 36px; max-width: 640px; color: var(--ivory); }
.shared-kicker { font-style: italic; color: var(--gold); }
.shared-text h1 { font-weight: 400; font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1; margin: 4px 0 8px; letter-spacing: -.015em; }
.shared-place { font-family: var(--sans); font-size: .95rem; }
.shared-story { margin: 18px 0 22px; font-size: 1.1rem; color: var(--on-dark); max-width: 52ch; }
.shared-credit { margin-top: 18px; font-family: var(--sans); font-size: .75rem; color: var(--on-dark-dim); }
.shared-brand { position: fixed; top: 18px; left: 22px; color: var(--ivory); }

/* ---------- Dashboard ---------- */
.dash { max-width: 1040px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 40px) 64px; color: var(--forest); }
.dash-head h1 { font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.012em; margin: 18px 0 10px; }
.dash-note { max-width: 62ch; font-size: 1rem; color: #4a554e; padding: 12px 16px; background: rgba(184, 118, 62, .12); border-left: 2px solid var(--copper); }
.dash-sec { margin-top: 48px; }
.dash-sec h2 { font-weight: 500; font-size: 1.4rem; margin-bottom: 16px; }
.dash-cols { display: grid; grid-template-columns: 1fr; gap: 0 48px; }
@media (min-width: 860px) { .dash-cols { grid-template-columns: 1fr 1.15fr; } }
.funnel li { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 96px; gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-light); }
.f-label { font-family: var(--sans); font-size: .92rem; }
.f-bar { height: 12px; background: rgba(20, 40, 31, .1); position: relative; }
.f-bar i { position: absolute; inset: 0 auto 0 0; background: var(--forest); }
.f-bar i.cu { background: var(--copper); }
.f-val { text-align: right; font-family: var(--sans); font-size: .95rem; }
.f-val small { display: block; font-size: .75rem; color: #57615a; }
.split li { display: grid; grid-template-columns: 96px 1fr 44px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-light); font-family: var(--sans); font-size: .92rem; }
.split b { text-align: right; font-weight: 500; }
.geo { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .92rem; }
.geo th, .geo td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line-light); text-align: left; vertical-align: top; font-weight: 400; }
.geo thead th { border-top: 0; font-size: .78rem; color: #57615a; padding-bottom: 8px; }
.geo tbody th { font-weight: 500; }
.geo small { display: block; font-size: .78rem; color: #57615a; margin-top: 2px; }
.pill { display: inline-block; padding: 3px 10px; font-size: .8rem; border: 1px solid var(--line-light); color: #57615a; }
.pill.on { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.feed li { display: flex; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line-light); font-family: var(--sans); font-size: .92rem; }
.feed time { color: #57615a; min-width: 4.5em; }
.empty { font-size: 1rem; color: #4a554e; max-width: 56ch; margin-bottom: 14px; }
.dash .btn-line { margin-top: 18px; color: var(--forest); }
.dash-foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 6px; color: var(--copper-deep); }
.dash-foot span:last-child { font-family: var(--sans); font-size: .82rem; color: #57615a; }
@media (max-width: 560px) { .funnel li { grid-template-columns: 1fr 76px; } .funnel .f-bar { grid-column: 1 / -1; grid-row: 2; } .funnel .f-label { grid-column: 1; } .funnel .f-val { grid-column: 2; grid-row: 1; } }

/* ---------- Print + packaging mock-ups ---------- */
body[data-theme='wall'] { background: radial-gradient(120% 90% at 50% 20%, #E2D9C8 0%, #CFC4B0 70%, #C2B6A0 100%); }
.print-page, .pack { max-width: 1040px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 64px; color: var(--forest); }
.print-head h1 { font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); margin: 16px 0 6px; letter-spacing: -.012em; }
.print-head p { max-width: 58ch; color: #3b463f; }
.size-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.size-pick a { display: flex; flex-direction: column; padding: 10px 16px; font-family: var(--sans); font-size: .92rem; text-decoration: none; border: 1px solid var(--line-light); background: rgba(243, 235, 221, .5); }
.size-pick a small { font-size: .76rem; color: #57615a; }
.size-pick a.on { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.size-pick a.on small { color: var(--on-dark-dim); }
.print-stage { display: grid; place-items: center; padding: clamp(28px, 6vw, 64px) 0; overflow-x: auto; }
.bare { padding: 0; max-width: none; } .bare .print-stage { padding: 72px 96px; } .bare .pack-stage { padding: 72px 96px 96px; }

.frame {
  --k: 1; position: relative; width: calc(var(--w) * var(--k)); max-width: 100%; aspect-ratio: var(--ar); container-type: inline-size; flex: none;
  box-shadow: 0 40px 60px -28px rgba(30, 18, 8, .6), 0 12px 20px -8px rgba(30, 18, 8, .4);
}
.wood { position: relative; height: 100%; padding: 4.2cqw;
  background: repeating-linear-gradient(91deg, rgba(0, 0, 0, .07) 0 .25cqw, transparent .25cqw .7cqw), repeating-linear-gradient(88deg, rgba(255, 220, 170, .05) 0 .4cqw, transparent .4cqw 1.3cqw), linear-gradient(135deg, #6E4829 0%, #4A2E18 40%, #5E3C21 70%, #3A2312 100%);
  box-shadow: inset 0 0 0 .3cqw rgba(0, 0, 0, .35), inset .5cqw .5cqw .9cqw rgba(255, 225, 180, .16), inset -.5cqw -.5cqw .9cqw rgba(0, 0, 0, .3); }
.wood::after { content: ''; position: absolute; inset: 4.2cqw; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .17) 0 16%, transparent 16% 40%, rgba(255, 255, 255, .07) 40% 47%, transparent 47%); }
.mat { position: relative; height: 100%; display: flex; flex-direction: column; padding: 7cqw 7cqw 5.2cqw; background: #F5EEE0;
  box-shadow: inset 0 0 0 .5cqw rgba(60, 40, 20, .18), inset 0 1cqw 2cqw rgba(60, 40, 20, .12); }
.art { flex: 1; min-height: 0; position: relative; box-shadow: 0 0 0 .5cqw rgba(60, 40, 20, .3), inset 0 0 1.2cqw rgba(0, 0, 0, .25); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.label { flex: none; height: 19cqw; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 3cqw; padding-top: 2.6cqw; color: #2a2a22; }
.frame.land .label { height: 14cqw; grid-template-columns: 1fr 1fr auto; grid-template-rows: 1fr; padding-top: 2cqw; }
.lb-title { display: flex; flex-direction: column; grid-column: 1; }
.lb-title b { font-family: var(--serif); font-weight: 500; font-size: 3.5cqw; line-height: 1.1; color: #14281F; }
.lb-title span { font-family: var(--sans); font-size: 1.9cqw; color: #4a4a40; margin-top: .5cqw; }
.lb-mid { grid-column: 1; display: flex; flex-direction: column; margin-top: 1.6cqw; font-family: var(--sans); font-size: 1.55cqw; color: #4a4a40; line-height: 1.35; }
.lb-collection { border-top: .2cqw solid #B8763E; padding-top: 1cqw; }
.lb-for { font-style: italic; font-family: var(--serif); font-size: 1.9cqw; margin-top: .8cqw; }
.lb-name { font-family: var(--serif); font-weight: 500; font-size: 3.1cqw; color: #14281F; line-height: 1.1; }
.lb-by { display: none; }
.lb-qr { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: flex; flex-direction: column; align-items: center; gap: .8cqw; font-family: var(--sans); font-size: 1.3cqw; text-align: center; color: #4a4a40; line-height: 1.25; }
.lb-qr img { width: 11.5cqw; height: 11.5cqw; background: #fff; padding: .5cqw; }
.qr-ph { display: grid; place-items: center; width: 11.5cqw; height: 11.5cqw; border: .3cqw dashed #B8763E; color: #B8763E; font-family: var(--sans); font-size: 2cqw; letter-spacing: .1em; }
.frame.land .qr-ph { width: 8.5cqw; height: 8.5cqw; }
.pack-sec .size-pick { margin-top: 18px; }
.lb-lotus { position: absolute; left: 7cqw; bottom: 2cqw; display: none; }
.frame.land .lb-mid { grid-column: 2; margin-top: 0; }
.frame.land .lb-qr { grid-column: 3; grid-row: 1; }
.frame.land .lb-collection { font-size: 1.2cqw; }
.frame.land .lb-title b { font-size: 2.5cqw; }
.frame.land .lb-title span { font-size: 1.5cqw; }
.frame.land .lb-for { font-size: 1.5cqw; }
.frame.land .lb-name { font-size: 2.3cqw; }
.frame.land .lb-qr img { width: 8.5cqw; height: 8.5cqw; }
.frame.land .lb-qr { font-size: 1cqw; }

.print-spec { margin-top: 12px; display: grid; gap: 0; max-width: 720px; font-family: var(--sans); }
.print-spec > div { display: grid; grid-template-columns: 8rem 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-light); font-size: .92rem; }
.print-spec dt { color: #57615a; }

.pack-stage { position: relative; display: grid; place-items: center; padding: clamp(28px, 6vw, 64px) 0 clamp(48px, 8vw, 96px); }
.box { position: relative; width: min(600px, 92%); aspect-ratio: 5 / 4; }
.box-lid {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #D9A566;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 30% 10%, #234A38 0%, #14281F 55%, #0E1D16 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 50px 60px -30px rgba(10, 20, 14, .7), 0 14px 18px -8px rgba(10, 20, 14, .5);
}
.foil-frame { position: absolute; inset: 5%; border: 1px solid rgba(201, 164, 92, .7); }
.foil-frame::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(201, 164, 92, .35); }
.box-lotus { margin-bottom: 14px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .4)); }
.box-name { font-weight: 600; font-size: clamp(1.3rem, 4.4vw, 2rem); letter-spacing: .24em; background: linear-gradient(135deg, #E9CB8C, #B8763E 55%, #E0B074); -webkit-background-clip: text; background-clip: text; color: transparent; }
.box-rule { display: block; width: 46px; height: 1px; background: #C9A45C; margin: 14px 0; }
.box-tag { font-style: italic; font-size: clamp(.95rem, 2.6vw, 1.15rem); color: #D9C79E; }
.box { transform: translateX(-120px); }
.note { position: absolute; left: calc(50% + 150px); bottom: clamp(0px, 3vw, 24px); width: 270px; aspect-ratio: 4 / 5; transform: rotate(-4deg); padding: 34px 28px 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, #F7F0E2, #EADFC8); box-shadow: 0 24px 30px -16px rgba(40, 25, 10, .55), 0 2px 4px rgba(40, 25, 10, .2); color: #33402F; text-align: center; }
.note p { font-style: italic; font-size: clamp(.95rem, 2.6vw, 1.15rem); line-height: 1.4; }
.note-lotus { display: grid; place-items: center; }
.note-mark { font-weight: 600; font-size: .62rem; letter-spacing: .22em; color: #8F5726; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; max-width: 720px; margin: 8px 0 32px; }
.swatches i { display: block; height: 64px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatches b { display: block; font-family: var(--sans); font-weight: 500; font-size: .9rem; margin-top: 8px; }
.swatches span { font-family: var(--sans); font-size: .78rem; color: #57615a; }
@media (max-width: 760px) { .note { position: relative; left: auto; bottom: auto; margin: 22px 0 0 auto; width: min(240px, 66%); } .pack-stage { display: block; } .box { margin: 0 auto; transform: none; } }

.notfound { max-width: 560px; margin: 20vh auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ---------- Frame scene (portrait + landscape on a picture ledge) ---------- */
.pack-sec { margin-top: clamp(28px, 5vw, 56px); }
.pack-sec h2 { font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.01em; }
.pack-sec > p { max-width: 62ch; margin-top: 8px; color: #3b463f; }
.scene { position: relative; margin-top: 26px; padding: clamp(48px, 7vw, 92px) clamp(16px, 5vw, 72px) 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(85% 75% at 22% -10%, rgba(255, 248, 232, .95), rgba(255, 248, 232, 0) 62%), linear-gradient(180deg, #E8DFCD 0%, #DDD1BB 72%, #D3C6AE 100%); }
.scene::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
.scene-row { display: flex; align-items: flex-end; justify-content: center; gap: 24px; container-type: inline-size; }
.scene .frame { width: min(var(--w), calc((100cqw - 24px) * var(--share))); box-shadow: 22px 28px 34px -22px rgba(40, 24, 10, .55), 6px 8px 12px -6px rgba(40, 24, 10, .35); }
.scene .frame::after { content: ''; position: absolute; left: 3%; right: -2%; bottom: -7px; height: 12px; z-index: -1; background: radial-gradient(ellipse at 50% 30%, rgba(30, 18, 8, .5), transparent 70%); filter: blur(4px); }
.ledge { position: relative; height: 34px; margin: 0 calc(-1 * clamp(16px, 5vw, 72px)); background: linear-gradient(180deg, #8A5C36 0 9px, #5B3B21 9px 100%); box-shadow: 0 -1px 0 rgba(255, 230, 190, .35) inset, 0 22px 26px -10px rgba(40, 24, 10, .55); }
.ledge::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 9px; background: linear-gradient(180deg, #A06F42, #8A5C36); }
.scene-caps { display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 5vw, 64px); justify-content: center; text-align: center; padding: 20px 0 4px; font-family: var(--sans); font-size: .88rem; color: #3b463f; }
.scene-caps b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--forest); }
.bare-frames { padding: 0; max-width: none; } .bare-frames .scene { margin: 0; padding-top: 96px; }

.story-scene { margin-top: 20px; padding-top: 44px; }
.print-cap { margin-top: 12px; font-family: var(--sans); font-size: .88rem; color: var(--on-dark-dim); }
.print-cap .text-link { margin: 0 0 0 6px; }

/* Landscape caption: three columns centred on one line, middle block set off by a copper hairline */
.frame.land .label { height: 15.5cqw; grid-template-columns: 1.15fr 1fr auto; grid-template-rows: 1fr; align-items: center; column-gap: 3.2cqw; padding-top: 1.4cqw; }
.frame.land .lb-title { grid-column: 1; grid-row: 1; }
.frame.land .lb-mid { grid-column: 2; grid-row: 1; margin-top: 0; padding-left: 3.2cqw; border-left: .25cqw solid #B8763E; }
.frame.land .lb-collection { border-top: 0; padding-top: 0; }
.frame.land .lb-qr { grid-column: 3; grid-row: 1; align-self: center; }

/* Portrait caption: equal margin on all four sides of the mount, title at the top, details and QR sharing one bottom line */
.frame.port .mat { padding-bottom: 7cqw; }
.frame.port .label { height: 22.5cqw; padding-top: 3cqw; row-gap: 0; }
.frame.port .lb-title { align-self: start; }
.frame.port .lb-title span { margin-top: .7cqw; }
.frame.port .lb-mid { align-self: end; margin-top: 0; }
.frame.port .lb-collection { padding-top: 1.6cqw; }
.frame.port .lb-name { margin-top: .1cqw; }
.frame.port .lb-qr { align-self: end; }

/* ---------- Never crop the photograph ---------- */
/* Framed print: the mat window takes the image's own shape; the block (image + caption) is centred in the mount */
.mat { padding: 6cqw; align-items: center; justify-content: center; }
.frame.port .mat { padding-bottom: 6cqw; }
.art { flex: none; width: var(--aw); min-height: 0; aspect-ratio: var(--iar); }
.label { width: var(--aw); }

/* Story hero: whole photograph, blurred colour-matched backdrop behind it */
.story-hero { background: color-mix(in srgb, var(--tint, #0d1611) 22%, #070d0a); overflow: hidden; }
.story-hero .hero-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.55) saturate(1.1); transform: scale(1.2); }
.story-hero .hero-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.story-hero, .story-hero.land, .story-hero.art { height: auto; aspect-ratio: var(--ar); min-height: 46svh; max-height: 78svh; }
@media (min-width: 1000px) {
  .story-hero, .story-hero.land, .story-hero.art { position: sticky; top: 55px; height: calc(100svh - 55px); aspect-ratio: auto; min-height: 0; max-height: none; }
}

/* Download previews: each shown whole, at its true shape */
.dls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 20px; }
.dl { flex: none; }
.dl-thumb, .dl-phone .dl-thumb, .dl-art .dl-thumb { height: auto; width: min(100%, calc(200px * var(--arn))); aspect-ratio: var(--arn); background: color-mix(in srgb, var(--tint, #0d1611) 22%, #070d0a); }
.dl-thumb img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 520px) { .dls { display: flex; } .dl-desk { grid-column: auto; order: 0; } }

/* Reveal and share card: fit-whole mode */
.reveal.contain-fit .rw-back { display: block; }
.reveal.contain-fit .rw-main { object-fit: contain; object-position: 50% 42%; }
.shared-back { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.5); transform: scale(1.15); }
.shared.fit .shared-img { object-fit: contain; object-position: 50% 30%; }


/* ---------- Fit-whole photos: calm tinted ground, photo edge dissolves into it ---------- */
.fit-img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: unset; }
[data-bars='v'] > .fit-img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); }
[data-bars='h'] > .fit-img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.story-hero { background: color-mix(in srgb, var(--tint, #0d1611) 30%, #070d0a); }
.story-hero .hero-main { position: absolute; inset: 0; width: auto; height: auto; object-fit: unset; }
.story-hero .hero-back, .reveal .rw-back, .shared-back { display: none !important; }
.reveal.contain, .reveal.contain-fit { background: color-mix(in srgb, var(--tint) 30%, #070d0a); }
/* inset reserves room above and below so a tall portrait image (bound by max-height) still gets a
   visible top margin instead of sitting flush against the screen edge; margin:auto then centres it
   within what's left. */
.reveal.contain-fit .rw-main { position: absolute; inset: 7% 0 12% 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 81%; object-fit: unset; }
.reveal.contain-fit .reveal-window[data-bars='v'] .rw-main { -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); }
.reveal.contain-fit .reveal-window[data-bars='h'] .rw-main { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.shared.fit { background: color-mix(in srgb, var(--tint) 30%, #070d0a); }
.shared.fit .shared-img { position: fixed; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: unset; }
.shared.fit[data-bars='v'] .shared-img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); }
.shared.fit[data-bars='h'] .shared-img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.shared.fit .shared-shade { z-index: 0; }
.shared.fit .shared-text, .shared.fit .shared-brand { z-index: 1; }
.dl-thumb, .dl-phone .dl-thumb, .dl-art .dl-thumb { width: min(100%, calc(170px * var(--arn))); background: color-mix(in srgb, var(--tint, #0d1611) 30%, #070d0a); }

/* Landscape photographs get a full-width hero with the story beneath; portraits keep the side-by-side split */
@media (min-width: 1000px) {
  .story-grid.is-land { display: block; }
  .story-grid.is-land .story-hero { position: relative; top: 0; width: 100%; height: min(72svh, 780px); }
  .story-grid.is-land .story-hero::after { inset: auto 0 0 0; width: auto; height: 24%; background: linear-gradient(180deg, transparent, var(--night)); }
  .story-grid.is-land .story-body { margin: 0 auto; padding: 36px 32px 80px; max-width: 780px; }
  .story-grid.is-land .gallery { columns: 3; }
}

/* Photograph stays completely intact: clean edges on the tinted ground, no fades or overlays over the picture */
.fit-img, [data-bars] > .fit-img, .reveal .rw-main, .reveal-window[data-bars] .rw-main, .shared-img, .shared.fit[data-bars] .shared-img { -webkit-mask-image: none !important; mask-image: none !important; }
.story-hero::after, .story-grid.is-land .story-hero::after { display: none !important; }
.story-hero figcaption { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); color: rgba(243, 235, 221, .8); }
.story-hero .hero-main { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }

/* Keep everything inside the phone screen: explicit widths, so aspect-ratio + min-height can never widen a box */
.story-hero, .story-hero.land, .story-hero.art { width: 100%; min-width: 0; max-width: 100%; }
.dl-thumb, .dl-phone .dl-thumb, .dl-art .dl-thumb { width: min(calc(170px * var(--arn)), calc(100vw - 44px)); max-width: 100%; }
.dl { max-width: 100%; min-width: 0; }

/* Frame metrics come from frame.js per orientation (--wood, --mat, --lab) */
.frame .wood { padding: var(--wood); }
.frame .wood::after { inset: var(--wood); }
.frame.port .mat, .frame.land .mat { padding: var(--mat); }
.frame.port .label, .frame.land .label { height: var(--lab); }
.frame.land .label { padding-top: 0; column-gap: 3cqw; }
.frame.land .lb-qr img, .frame.land .qr-ph { width: 6.4cqw; height: 6.4cqw; }
.frame.land .lb-qr { font-size: .85cqw; gap: .5cqw; }
.frame.land .lb-title b { font-size: 2.2cqw; }
.frame.land .lb-title span, .frame.land .lb-for { font-size: 1.35cqw; }
.frame.land .lb-collection { font-size: 1.1cqw; }
.frame.land .lb-name { font-size: 2cqw; }
.frame.land .lb-mid { padding-left: 3cqw; }
.guide-h { margin: 34px 0 -8px; font-weight: 400; font-size: 1.25rem; color: var(--forest); }

/* Landscape caption: a slim strip under the photograph */
.frame.land .lb-qr img, .frame.land .qr-ph { width: 5.4cqw; height: 5.4cqw; }
.frame.land .lb-qr { font-size: .78cqw; gap: .35cqw; }
.frame.land .lb-title b { font-size: 1.9cqw; line-height: 1.12; }
.frame.land .lb-title span, .frame.land .lb-for { font-size: 1.2cqw; }
.frame.land .lb-collection { font-size: .98cqw; }
.frame.land .lb-name { font-size: 1.75cqw; }
.frame.land .lb-mid { padding-left: 2.4cqw; }
.frame.land .label { column-gap: 2.4cqw; }

/* Landscape caption strip: one shared top line for title, recipient block and QR; equal margin above the photo and below the strip */
.frame.land .label { display: grid; grid-template-columns: 1.1fr 1fr auto; grid-template-rows: auto; align-items: start; column-gap: 2.2cqw; padding-top: 1.7cqw; }
.frame.land .lb-title { grid-column: 1; grid-row: 1; align-self: start; margin: 0; }
.frame.land .lb-title b { font-size: 1.7cqw; line-height: 1.15; }
.frame.land .lb-title span { font-size: 1.15cqw; margin-top: .5cqw; }
.frame.land .lb-mid { grid-column: 2; grid-row: 1; align-self: start; margin: 0; padding: 0 0 0 2.2cqw; border-left: .22cqw solid #B8763E; min-height: 5.6cqw; justify-content: space-between; }
.frame.land .lb-collection { font-size: .95cqw; line-height: 1.3; }
.frame.land .lb-for { font-size: 1.15cqw; margin-top: .5cqw; line-height: 1.1; }
.frame.land .lb-name { font-size: 1.7cqw; line-height: 1.1; margin-top: .1cqw; }
.frame.land .lb-qr { grid-column: 3; grid-row: 1; align-self: start; flex-direction: row-reverse; align-items: flex-start; gap: 1.2cqw; text-align: right; font-size: .8cqw; line-height: 1.3; }
.frame.land .lb-qr span:not(.qr-ph) { padding-top: .2cqw; }
.frame.land .lb-qr img, .frame.land .qr-ph { width: 5.6cqw; height: 5.6cqw; padding: .3cqw; }
.frame.land .label { grid-template-columns: 1.45fr 1fr auto; }
.frame.land .lb-title b { font-size: 1.6cqw; }
.frame.land .lb-collection { font-size: .9cqw; white-space: nowrap; }
.frame.land .lb-title b, .frame.land .lb-name { text-wrap: balance; }

/* ---------- Personalised box: name on the lid and on the note card ---------- */
.box-for { margin-top: 18px; font-style: italic; letter-spacing: .05em; font-size: clamp(.95rem, 2.6vw, 1.15rem);
  background: linear-gradient(135deg, #E9CB8C, #B8763E 60%, #E0B074); -webkit-background-clip: text; background-clip: text; color: transparent; }
.note .note-for { font-style: normal; font-weight: 500; font-size: .95rem; color: #8F5726; margin-bottom: -4px; }
.sub-h { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-top: 40px; color: var(--ivory); }
.sec .sub-h + .scene { margin-top: 14px; }

/* the smaller version inside a recipient's story */
.pack-stage.compact { padding: 8px 0 34px; }
.pack-stage.compact .box { transform: translateX(-72px); width: min(400px, 84%); }
.pack-stage.compact .box-lotus svg { width: 74px; height: auto; }
.pack-stage.compact .box-lotus { margin-bottom: 8px; }
.pack-stage.compact .box-name { font-size: clamp(1rem, 3.4vw, 1.35rem); }
.pack-stage.compact .box-rule { margin: 8px 0; width: 36px; }
.pack-stage.compact .box-tag { font-size: clamp(.78rem, 2.4vw, .95rem); }
.pack-stage.compact .box-for { margin-top: 10px; font-size: clamp(.82rem, 2.4vw, .98rem); }
.pack-stage.compact .note { left: auto; right: max(0px, calc(50% - 336px)); bottom: 10px; width: 176px; padding: 22px 18px 18px; gap: 8px; }
.pack-stage.compact .note p { font-size: .82rem; line-height: 1.35; }
.pack-stage.compact .note .note-for { font-size: .82rem; }
.pack-stage.compact .note-lotus svg { width: 24px; height: auto; }
@media (max-width: 760px) {
  .pack-stage.compact { display: block; padding-bottom: 8px; }
  .pack-stage.compact .box { margin: 0 auto; width: min(360px, 100%); transform: none; }
  .pack-stage.compact .note { position: relative; right: auto; bottom: auto; margin: -34px 0 0 auto; width: min(200px, 60%); }
}

.perso-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 22px 0 4px; font-family: var(--sans); }
.perso-bar .lab { font-size: .85rem; color: #57615a; margin-right: 4px; }
.perso-bar .check { text-decoration: none; color: var(--forest); background: rgba(243, 235, 221, .6); }
.perso-bar .check.on { background: var(--forest); color: var(--ivory); }
.perso-bar .small { flex-basis: 100%; }
.l-person { margin-top: 14px; }
.l-person + .l-person { border-top: 1px solid rgba(20, 40, 31, .12); padding-top: 14px; }
