/* ============================================================
   The client's gallery: cover, grid, full-screen viewer.
   ============================================================ */

/* ---- top bar ---- */
.g-top {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 4px;
  padding: 8px 10px; color: #fff; transition: background .25s, color .25s, box-shadow .25s;
}
.g-top .studio { flex: 1; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.g-top .logo { height: 24px; transition: filter .25s; }
.g-top:not(.solid) .logo { filter: brightness(0) invert(1); }
.g-top:not(.solid) .wordmark { color: #fff; }
.g-top.solid { background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.g-top .lang { font-size: 14px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.badge-wrap { position: relative; }
.badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--heart); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }

/* ---- cover ---- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: #2a2622; color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease), transform 8s linear; transform: scale(1.04); }
.hero img.in { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.55) 100%); }
.hero-text { position: absolute; inset: auto 0 0; z-index: 1; padding: 0 22px calc(46px + var(--safe-b)); text-align: center; }
.hero-text .date { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; opacity: .92; margin: 0 0 12px; }
html[lang="ar"] .hero-text .date { letter-spacing: 0; font-size: 15px; }
.hero-text h1 { font-size: clamp(36px, 9vw, 78px); font-weight: 300; margin: 0 0 26px; text-wrap: balance; text-transform: uppercase; letter-spacing: .12em; color: #fff; }
html[lang="ar"] .hero-text h1 { text-transform: none; letter-spacing: 0; font-weight: 400; }
.btn.light-line { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn.light-line:hover { background: rgba(255,255,255,.12); }

/* ---- bar above the grid ---- */
.g-bar {
  position: sticky; top: 60px; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.g-bar .grow { flex: 1; }
.g-bar .actions { display: flex; gap: 8px; }
.g-bar .actions .btn .short { display: none; }
@media (max-width: 640px) {
  /* on a phone: the icon with one small word under it, so nobody has to guess */
  .g-bar .actions .btn .full { display: none; }
  .g-bar .actions .btn { flex-direction: column; gap: 3px; height: auto; min-height: 52px; padding: 7px 12px 6px; border-radius: 14px; }
  .g-bar .actions .btn .short { display: block; font-size: 10px; line-height: 1; letter-spacing: .08em; font-weight: 400; }
  html[lang="ar"] .g-bar .actions .btn .short { font-size: 11.5px; letter-spacing: 0; }
}

/* ---- the grid: rows of photos at their own shapes ---- */
#grid { padding: 4px 8px 40px; min-height: 50vh; }
.row { display: flex; gap: 6px; margin-bottom: 6px; }
.tile { position: relative; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; overflow: hidden; flex: none; -webkit-tap-highlight-color: transparent; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .6s var(--ease); }
.tile img.in { opacity: 1; }
@media (hover: hover) { .tile:hover img { transform: scale(1.025); } }
.tile .heart {
  position: absolute; inset-inline-end: 4px; bottom: 4px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: transparent; color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
}
.tile .heart svg { width: 22px; height: 22px; }
.tile:hover .heart, .tile .heart.on { opacity: 1; }
@media (hover: none) { .tile .heart { opacity: 1; } .tile .heart:not(.on) { opacity: .7; } .tile .heart svg { width: 19px; height: 19px; } }
.g-dock .btn { letter-spacing: .12em; }
.heart.on svg { fill: var(--heart); stroke: var(--heart); }
.tile .heart.on { color: var(--heart); }
.g-empty { padding: 60px 20px; text-align: center; color: var(--muted); max-width: 420px; margin: 0 auto; }
.g-empty svg { width: 40px; height: 40px; margin: 0 auto 12px; stroke-width: 1.2; }

.g-review { max-width: 560px; margin: 0 auto; padding: 50px 20px 46px; text-align: center; }
.g-review .sec-head { margin-bottom: 14px; }
.g-review p { margin: 0 0 18px; }
.modal .center > svg { width: 34px; height: 34px; margin: 0 auto; color: var(--heart); fill: var(--heart); }
.g-foot { background: #F4F1EB; padding-bottom: calc(76px + var(--safe-b)); }   /* room for the order bar */

/* ---- the order bar that floats at the bottom ---- */
.g-dock {
  position: fixed; inset: auto 0 0; z-index: 25; display: flex; justify-content: center; gap: 10px;
  padding: 12px 14px calc(12px + var(--safe-b)); pointer-events: none;
  transform: translateY(120%); transition: transform .35s var(--ease);
}
.g-dock.show { transform: none; }
.g-dock .btn { pointer-events: auto; box-shadow: var(--shadow); }

/* ---- lock and closed screens ---- */
.lock { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; color: #fff; background: #2a2622; overflow: hidden; }
.lock img { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(18px) brightness(.55); }
.lock-card { position: relative; width: min(380px, 100%); text-align: center; }
.lock-card h1 { font-size: 40px; margin: 10px 0 20px; }
.lock-card svg { width: 30px; height: 30px; margin: 0 auto; }
.lock-card .input { background: rgba(255,255,255,.95); color: var(--ink); text-align: center; }
.lock-card .btn { margin-top: 10px; }

/* ============ full-screen viewer ============ */
.lb { position: fixed; inset: 0; z-index: 50; background: #0d0c0b; color: #fff; display: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.lb.open { display: block; }
.lb-track { position: absolute; inset: 0; will-change: transform; }
.lb-slide { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.lb-slide img { position: absolute; max-width: 100%; max-height: 100%; width: auto; height: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); -webkit-user-drag: none; }
.lb-slide .hi { opacity: 0; transition: opacity .35s; }
.lb-slide .hi.in { opacity: 1; }
.lb-slide .zoomer { position: absolute; inset: 0; transform-origin: 0 0; }
.lb-top, .lb-bottom { position: absolute; inset-inline: 0; z-index: 2; display: flex; align-items: center; padding: 8px 10px; transition: opacity .25s; }
.lb-top { top: 0; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.lb-bottom { bottom: 0; justify-content: center; gap: 6px; padding-bottom: calc(10px + var(--safe-b)); background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.lb-top .count { flex: 1; font-size: 14px; opacity: .85; padding: 0 10px; font-variant-numeric: tabular-nums; }
.lb .icon-btn { color: #fff; width: 48px; height: 48px; }
.lb .icon-btn:hover { background: rgba(255,255,255,.1); }
.lb .tool { display: grid; justify-items: center; gap: 0; color: #fff; background: none; border: 0; cursor: pointer; font-size: 11px; letter-spacing: .04em; padding: 6px 12px; min-width: 64px; text-decoration: none; }
.lb .tool svg { width: 24px; height: 24px; margin-bottom: 2px; }
.lb .tool.on svg { fill: var(--heart); stroke: var(--heart); }
.lb-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); }
.lb-nav.prev { inset-inline-start: 8px; } .lb-nav.next { inset-inline-end: 8px; }
html[dir="rtl"] .lb-nav svg { transform: scaleX(-1); }
@media (hover: none) { .lb-nav { display: none; } }
.lb.chrome-off .lb-top, .lb.chrome-off .lb-bottom, .lb.chrome-off .lb-nav { opacity: 0; pointer-events: none; }

/* ============ the journey: before the photos are ready ============ */
.jr-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.jr-top .logo { height: 20px; }
.jr-top .lang, .g-top .lang { font-size: 13px; letter-spacing: .08em; }
.jr-hero { padding: 18px 18px 46px; text-align: center; }
.jr-photo { margin: 0 auto 30px; max-width: 520px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.jr-photo img { width: 100%; height: 100%; object-fit: cover; animation: jrIn 1.4s var(--ease) both; }
@keyframes jrIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.jr-intro .eyebrow { font-size: 12px; color: var(--gold-deep); margin: 0 0 12px; letter-spacing: .24em; }
html[lang="ar"] .jr-intro .eyebrow { font-size: 15px; letter-spacing: 0; }
.jr-intro h1 { font-size: clamp(38px, 10vw, 64px); font-weight: 300; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 22px; }
html[lang="ar"] .jr-intro h1 { text-transform: none; letter-spacing: 0; font-weight: 400; }
.jr-count { display: grid; justify-items: center; margin: 0 0 14px; }
.jr-count .n { font-family: var(--display); font-weight: 300; font-size: clamp(88px, 26vw, 132px); line-height: .9; color: var(--ink); }
.jr-count .l { font-size: 12px; color: var(--gold-deep); letter-spacing: .26em; margin-top: 8px; }
html[lang="ar"] .jr-count .l { font-size: 16px; letter-spacing: 0; }
.jr-count.word { font-family: var(--display); font-size: clamp(44px, 12vw, 64px); font-weight: 300; color: var(--gold-deep); }
.jr-when { color: var(--muted); margin: 0 0 24px; }
.jr-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.jr-sec { padding: 56px 18px; }
.jr-in { max-width: 560px; margin: 0 auto; }
.jr-steps { list-style: none; margin: 0 auto 22px; padding: 0; max-width: 300px; display: grid; }
.jr-steps li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding-bottom: 18px; color: var(--faint); }
.jr-steps li::before { content: ''; position: absolute; top: 24px; bottom: -2px; inset-inline-start: 12px; width: 1px; background: var(--line); }
.jr-steps li:last-child::before { display: none; }
.jr-steps .dot { width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--faint); background: var(--soft); display: grid; place-items: center; z-index: 1; }
.jr-steps .dot svg { width: 13px; height: 13px; stroke-width: 2.4; color: #fff; }
.jr-steps .lbl { padding-top: 1px; }
.jr-steps small { display: block; font-size: 13px; color: var(--muted); }
.jr-steps li.done { color: var(--muted); } .jr-steps li.done .dot { background: var(--gold); border-color: var(--gold); }
.jr-steps li.done::before { background: var(--gold); }
.jr-steps li.now { color: var(--ink); font-weight: 400; } .jr-steps li.now .dot { border: 1.5px solid var(--gold-deep); background: #fff; box-shadow: 0 0 0 5px rgba(182,164,128,.22); }
.jr-msg { text-align: center; font-family: var(--display); font-size: 22px; line-height: 1.4; color: var(--ink); margin: 0; }
html[lang="ar"] .jr-msg { font-size: 21px; }
.jr-kv { display: grid; grid-template-columns: auto 1fr; gap: 14px 22px; margin: 0 auto; max-width: 420px; align-items: baseline; }
.jr-kv dt { font-size: 11.5px; color: var(--gold-deep); letter-spacing: .2em; }
html[lang="ar"] .jr-kv dt { font-size: 14px; letter-spacing: 0; }
.jr-kv dd { margin: 0; color: var(--ink); }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.jr-note { margin: 30px auto 0; max-width: 460px; padding: 0 0 0 20px; border-inline-start: 1px solid var(--gold); font-family: var(--display); font-size: 21px; line-height: 1.45; color: var(--ink); font-style: italic; }
html[lang="ar"] .jr-note { font-style: normal; font-size: 19px; }
.jr-note cite { display: block; margin-top: 10px; font-family: var(--ui); font-size: 13px; font-style: normal; color: var(--muted); letter-spacing: .06em; }
.lead-in { text-align: center; color: var(--muted); margin: 0 0 8px; }
.jr-sec h3 { font-family: var(--ui); font-size: 11.5px; font-weight: 400; letter-spacing: .22em; color: var(--gold-deep); margin: 30px 0 14px; text-align: center; }
html[lang="ar"] .jr-sec h3 { font-size: 15px; letter-spacing: 0; }
/* colours as pieces of linen laid on a pale board, in window light */
.fabric-board { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 12px; padding: 22px 14px 18px; border-radius: 4px; overflow: hidden;
  background: #ECE7DF; box-shadow: inset 0 0 0 1px rgba(60,45,25,.05); }
.fabric-board::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(118deg, transparent 32%, rgba(255,255,255,.34) 44%, transparent 56%, transparent 64%, rgba(255,255,255,.22) 72%, transparent 82%); }
.fabric-board.avoid { grid-template-columns: repeat(3, 1fr); max-width: 460px; margin: 0 auto; background: #EFEBE5; }
.fab { margin: 0; display: grid; justify-items: center; align-content: start; gap: 9px; text-align: center; }
.fab canvas { display: block; width: 100%; max-width: 124px; aspect-ratio: 5 / 6; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 3px 4px rgba(60,45,25,.22)); }
.fab figcaption { font-size: 12px; line-height: 1.3; color: #6C6960; position: relative; z-index: 2; }
.fab.no { position: relative; }
.fab.no canvas { max-width: 76px; opacity: .92; }
.fab.no::after { content: ''; position: absolute; top: 0; left: 50%; width: min(100%, 76px); aspect-ratio: 5 / 6; transform: translateX(-50%); z-index: 2;
  background: linear-gradient(to top right, transparent calc(50% - .8px), var(--ink) calc(50% - .8px), var(--ink) calc(50% + .8px), transparent calc(50% + .8px)); }
@media (min-width: 620px) { .fabric-board { gap: 26px 20px; padding: 30px 28px 24px; } .fabric-board.avoid { grid-template-columns: repeat(6, 1fr); max-width: 620px; } }
/* outfit ideas: the family dressed in one palette, a little different each */
.outfits { display: grid; gap: 18px; margin: 6px auto 0; max-width: 820px; }
@media (min-width: 620px) { .outfits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .outfits > .outfit-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); } }
.outfit-card { min-width: 0; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 22px 12px 18px; background: #ECE7DF; border-radius: 4px; position: relative; overflow: hidden; }
.outfit-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, transparent 38%, rgba(255,255,255,.3) 50%, transparent 62%); }
.outfit-card canvas.outfit { display: block; width: 100%; max-width: 380px; min-width: 0; }
.palette-dots { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
.palette-dots canvas { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 1px 3px rgba(60,45,25,.25); }
.outfit-card p { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.35; color: #26251F; position: relative; }
/* real clothes: product photos on a plain light board; multiply makes their white backgrounds disappear into it */
.outfit-card.real { background: #F8F5F0; }
.outfit-card.real::before { display: none; }
.looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; width: 100%; }
.look { margin: 0; display: grid; gap: 8px; justify-items: center; min-width: 0; }
.looks > .look:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
.pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; aspect-ratio: 4 / 5; }
.pieces .pc { display: block; min-width: 0; min-height: 0; }
.pieces img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.pieces a.pc:hover img { transform: scale(1.03); }
.look figcaption { font-family: var(--ui); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; color: #8F7E5C; }
html[lang="ar"] .look figcaption { font-size: 13px; letter-spacing: 0; }
.shop-note { text-align: center; margin: 12px auto 0; max-width: 420px; }
.guide-send { display: grid; justify-items: center; gap: 8px; margin: 34px 0 6px; text-align: center; }
.guide-send .btn svg { width: 17px; height: 17px; }
.guide-send p { margin: 0; max-width: 340px; }
.guide-img { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #F4F1EB; border: 1px solid var(--line); margin-top: 12px; }
.jr-tips { margin: 0 auto; padding: 0; list-style: none; max-width: 440px; display: grid; gap: 12px; text-align: center; color: var(--ink); }
.jr-tips li::after { content: ''; display: block; width: 18px; height: 1px; background: var(--gold); margin: 12px auto 0; }
.jr-tips li:last-child::after { display: none; }
.ideas, .bts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ideas button, .bts button { aspect-ratio: 4 / 5; border: 0; padding: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; }
.ideas img, .bts img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ideas button:hover img, .bts button:hover img { transform: scale(1.03); }
.bts { grid-template-columns: repeat(2, 1fr); }
.bts video { width: 100%; grid-column: 1 / -1; aspect-ratio: 16 / 10; object-fit: cover; background: #111; }
.bts.one { grid-template-columns: 1fr; }
.jr-ask h2 { font-size: clamp(24px, 6vw, 30px); font-weight: 400; margin: 0 0 20px; }
.jr-foot { display: grid; justify-items: center; gap: 10px; padding: 36px 18px calc(40px + var(--safe-b)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.jr-foot .logo { height: 18px; opacity: .85; }
.g-bts { max-width: 900px; margin: 0 auto; padding: 50px 14px 0; }
.g-bts:empty { display: none; }
.home-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.jr-top .logo { height: 26px; }
.lang { border: 0; background: none; cursor: pointer; padding: 10px 6px; font: inherit; font-size: 13px; letter-spacing: .06em; color: inherit; }

.jr-change { margin: -12px 0 22px; }
.jr-change button { border: 0; background: none; padding: 6px; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; cursor: pointer; }
.lead-in.small { font-size: 14px; max-width: 420px; margin-inline: auto; }

/* may the studio share the photos: three answers, one line above the footer to change it */
.share-opts { display: grid; gap: 8px; }
.share-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.share-opt:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.share-opt input { margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.share-opt span { display: grid; gap: 2px; }
.share-opt b { font-weight: 500; }
.share-opt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.share-line { text-align: center; color: var(--muted); font-size: 13.5px; margin: 26px auto 0; padding: 0 16px; max-width: 520px; }
.share-line .link { border: 0; background: none; padding: 2px 0; font: inherit; color: var(--ink); cursor: pointer; }
.g-sync { margin: 0 14px 10px; padding: 10px 14px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.g-sync p { margin: 0 auto; max-width: 460px; }
.g-sync .link { border: 0; background: none; padding: 2px 0; font: inherit; color: var(--ink); cursor: pointer; }
.g-closing { margin: 0 14px 10px; padding: 12px 16px; background: var(--soft); border-inline-start: 2px solid var(--gold); color: var(--ink); font-size: 15px; }

/* the session page in tabs */
.jr-top { display: block; padding: 0; }
.jr-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; }
.jr-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; border-top: 1px solid var(--line); }
.jr-tabs::-webkit-scrollbar { display: none; }
.jr-tabs button:first-child { margin-inline-start: auto; } .jr-tabs button:last-child { margin-inline-end: auto; }
.jr-tabs button { flex: none; border: 0; background: none; cursor: pointer; padding: 13px 12px 11px; font: inherit; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid transparent; white-space: nowrap; }
html[lang="ar"] .jr-tabs button { font-size: 14.5px; letter-spacing: 0; text-transform: none; }
.jr-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.jr-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.jr-panel .jr-hero { padding-top: 22px; }
.jr-photo { aspect-ratio: 4 / 3; max-width: 520px; }
.jr-panel > .jr-sec:first-child:not(.band) { padding-top: 38px; }
.jr-tabs { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); }
.jr-tabs button { padding: 13px 9px 11px; letter-spacing: .1em; font-size: 11px; }

/* ---- their own photos as a book, a few rows into the gallery ---- */
.bi { margin: 30px -8px 36px; padding: 48px 20px; background: var(--soft); display: grid; grid-template-columns: auto minmax(0, 400px); justify-content: center; align-items: center; gap: 56px; }
.bi[hidden] { display: none; }
.bi-book { position: relative; border: 0; padding: 0; background: none; cursor: pointer; transform: perspective(1400px) rotateY(-16deg) rotateX(3deg); transform-origin: left center;
  box-shadow: 3px 3px 0 #EDE7DC, 6px 6px 0 #E0D8CA, 22px 26px 44px rgba(38,37,31,.24); transition: transform .7s var(--ease); }
.bi-book:hover, .bi-book:focus-visible { transform: perspective(1400px) rotateY(-6deg) rotateX(1deg); }
.bi-book:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.bi-book::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(255,255,255,.22) 45%, rgba(0,0,0,.04) 70%, rgba(0,0,0,0)); }
.bi-book .bk-page { box-shadow: none; cursor: pointer; }
.bi-text h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 300; margin: 0 0 12px; text-wrap: balance; }
.bi-kicker { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
html[lang="ar"] .bi-kicker { letter-spacing: 0; text-transform: none; font-size: 14px; }
.bi-text p.muted { margin: 0 0 14px; line-height: 1.7; }
.bi-price { margin: 0 0 22px; font-size: 14px; color: var(--ink); }
.bi-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bi-another { margin: 12px 0 0; }
.bi-another .link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.bi-another svg { width: 15px; height: 15px; }
@media (max-width: 720px) {
  .bi { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 34px; padding: 42px 18px 40px; }
  .bi-book { transform: perspective(1400px) rotateY(-12deg) rotateX(2deg); }
  .bi-actions { justify-content: center; }
}

/* ---- where they are: a horizontal progress bar under the menu ---- */
.jr-progress { background: var(--soft); border-bottom: 1px solid var(--line); padding: 18px 10px 16px; }
.jr-track { list-style: none; margin: 0 auto; padding: 0; max-width: 580px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jr-track li { position: relative; display: grid; justify-items: center; align-content: start; gap: 7px; text-align: center; color: var(--faint); font-size: 12px; line-height: 1.3; }
.jr-track li::before { content: ''; position: absolute; top: 9px; height: 1.5px; inset-inline-start: calc(-50% + 13px); inset-inline-end: calc(50% + 13px); background: var(--line); }
.jr-track li:first-child::before { display: none; }
.jr-track .dot { width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--faint); background: #fff; display: grid; place-items: center; position: relative; z-index: 1; }
.jr-track .dot svg { width: 11px; height: 11px; stroke-width: 2.6; color: #fff; }
.jr-track .lbl { display: grid; gap: 2px; padding: 0 2px; }
.jr-track small { font-size: 10.5px; color: var(--muted); }
.jr-track li.done { color: var(--muted); }
.jr-track li.done .dot { background: var(--gold); border-color: var(--gold); }
.jr-track li.done::before, .jr-track li.now::before { background: var(--gold); }
.jr-track li.now { color: var(--ink); font-weight: 400; }
.jr-track li.now .dot { border: 1.5px solid var(--gold-deep); box-shadow: 0 0 0 4px rgba(182,164,128,.25); }
html[lang="ar"] .jr-track li { font-size: 13px; }
.jr-progress .jr-msg { max-width: 560px; margin: 14px auto 0; padding: 0 8px; font-family: var(--ui); font-size: 14px; line-height: 1.6; color: var(--muted); }
html[lang="ar"] .jr-progress .jr-msg { font-size: 14.5px; }

.jr-home-note { max-width: 330px; margin: 12px auto 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* the front door: email, then a code, then their session or gallery */
.fd-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.fd-top .logo { height: 26px; }
.fd { min-height: calc(100vh - 260px); min-height: calc(100dvh - 260px); display: grid; place-items: center; padding: 30px 20px 50px; text-align: center; }
.fd-in { width: 100%; max-width: 400px; }
.fd h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 9vw, 48px); line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
html[lang="ar"] .fd h1 { font-size: clamp(32px, 8vw, 42px); }
.fd-lead { color: var(--muted); margin: 0 auto 26px; max-width: 360px; line-height: 1.6; }
.fd form { text-align: start; }
.fd-code { letter-spacing: .3em; font-size: 22px !important; text-align: center; }
.fd-note { color: var(--muted); font-size: 13.5px; margin: 22px auto 0; max-width: 340px; line-height: 1.5; }
.fd-actions { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.fd-actions .link { border: 0; background: none; padding: 4px 2px; font: inherit; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.fd-list { display: grid; gap: 10px; text-align: start; }
.fd-card { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.fd-card:hover { border-color: var(--ink); }
.fd-cv { flex: none; width: 64px; height: 64px; border-radius: 10px; background: var(--soft) center / cover; display: grid; place-items: center; color: var(--muted); }
.fd-cv svg { width: 22px; height: 22px; }
.fd-tx { flex: 1; display: grid; gap: 3px; min-width: 0; }
.fd-tx b { font-weight: 500; }
.fd-card > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.fd-studio { text-align: center; margin: 0; padding: 0 0 28px; }
.fd-studio a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
