/* Melissa's Photography Paris - the photo shop.
   Generated from the shop prototype; edit freely. */
/* Layout: one screen at a time, like walking through a 1970s photo shop:
   storefront → welcome counter → two doors → shelf of albums / about me → order form.
   Deliberate single look (warm 70s shop), so no dark-mode variant. */
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.noscript { margin: 0; padding: 40px 20px; text-align: center; font-size: 18px; }
:root {
  color-scheme: light;
  --sky: #7ab8cb;         /* Melissa's blue, the shop wall */
  --sky-2: #6aaabf;       /* darker blue for stripes and rays */
  --sky-3: #9ccbd9;
  --navy: #1f3a4d;        /* ink on blue, sign board */
  --navy-2: #2c4d63;
  --pink: #f6c3cf;        /* rose bébé */
  --pink-deep: #e58aa2;
  --rose-ink: #a83a5a;    /* pink that reads on cream */
  --butter: #f5d67f;
  --butter-deep: #c99a2e;
  --mint: #bfe2cf;
  --cream: #fdf6ea;
  --paper: #fffaf1;
  --ink: #1f3a4d;
  --ink-soft: #4b6474;
  --sheet: #f4e7cf;       /* 70s magnetic album sheet */
  --sheet-stripe: #ecd9b9;
  --pen: #4a2a17;         /* ballpoint on the album page */
  --display: 'Shrikhand', 'Cooper Black', Georgia, serif;
  --body: 'Fraunces', 'Cooper Std', Georgia, serif;
  --hand: 'Caveat', 'Bradley Hand', 'Comic Sans MS', cursive;
  --pw: 360px;            /* album page width, set by script */
  --ph: 500px;
}

html, body { height: 100%; }
body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-variation-settings: "SOFT" 100;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--sky);
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

/* 70s rainbow stripes, reused as a motif */
.stripes {
  height: 28px;
  background: linear-gradient(180deg,
    var(--pink) 0 25%, var(--butter) 25% 50%, var(--mint) 50% 75%, var(--cream) 75% 100%);
}

/* ---------- Screens ---------- */
.screen {
  min-height: 100%;
  box-sizing: border-box;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
  animation: screen-in .6s ease both;
}
@keyframes screen-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--pink); color: var(--navy);
  font-family: var(--display); font-size: 22px; letter-spacing: .5px;
  box-shadow: 0 5px 0 var(--pink-deep), 0 10px 22px rgba(31,58,77,.25);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--pink-deep), 0 14px 26px rgba(31,58,77,.25); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-deep), 0 6px 12px rgba(31,58,77,.25); }
.btn.orange { background: var(--navy); color: var(--cream); box-shadow: 0 5px 0 #0f2230, 0 10px 22px rgba(31,58,77,.3); }
.btn.orange:hover { box-shadow: 0 7px 0 #0f2230, 0 14px 26px rgba(31,58,77,.3); }
.btn svg { width: 20px; height: 20px; }
.link-btn {
  background: none; border: 0; cursor: pointer; padding: 10px 4px; min-height: 44px;
  font-family: var(--body); font-style: italic; font-size: 17px;
  color: var(--navy); text-decoration: underline; text-decoration-color: var(--pink-deep); text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* ---------- Top bar (inside the shop) ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--sky);
  border-bottom: 2px solid var(--sky-3);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.topbar .brand {
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  font-family: var(--display); font-size: 24px; color: var(--navy); text-shadow: 2px 2px 0 var(--pink);
}
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav button {
  background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 12px;
  font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: .3px;
  color: var(--navy); border-radius: 999px;
}
.topbar nav button[aria-current="page"] { background: var(--pink); color: var(--navy); }
.topbar nav button:not([aria-current]):hover { background: var(--sky-3); }
@media (max-width: 520px) {
  .topbar .brand { font-size: 20px; }
  .topbar nav button { padding: 0 9px; font-size: 14px; }
}

/* ======================================================================
   1. STOREFRONT
   ====================================================================== */
#shop { padding-left: 0; padding-right: 0; padding-bottom: 0; display: flex; flex-direction: column; }
.awning {
  position: relative; height: 92px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 56px, var(--cream) 56px 112px);
}
.awning::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 28px;
  background:
    radial-gradient(circle at 28px 0, var(--pink) 27px, transparent 28px) 0 0 / 112px 28px repeat-x,
    radial-gradient(circle at 84px 0, var(--cream) 27px, transparent 28px) 0 0 / 112px 28px repeat-x;
  filter: drop-shadow(0 8px 6px rgba(31,58,77,.25));
}
.facade {
  flex: 1;
  background:
    repeating-linear-gradient(0deg, var(--sky-2) 0 3px, var(--sky) 3px 46px);
  padding: 58px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; align-items: center;
}
.signboard {
  text-align: center;
  background: var(--navy);
  border: 4px solid var(--butter);
  border-radius: 18px;
  padding: 16px 34px 18px;
  box-shadow: inset 0 0 0 6px var(--navy), inset 0 0 0 8px rgba(245,214,127,.55), 0 18px 36px rgba(31,58,77,.35);
  max-width: 100%;
}
.signboard h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 7vw, 68px); line-height: 1.05;
  color: var(--pink);
  text-shadow: 0 0 18px rgba(246,195,207,.75), 3px 3px 0 var(--pink-deep);
  animation: neon 4s ease-in-out infinite;
}
@keyframes neon { 0%,100% { opacity: 1; } 92% { opacity: 1; } 94% { opacity: .55; } 96% { opacity: 1; } }
.signboard p {
  margin-top: 6px; font-size: 14px; letter-spacing: 5px; text-transform: uppercase; color: var(--cream);
}
.storefront {
  margin-top: 40px; width: 100%; max-width: 1040px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: end;
}
/* shop window: frame, gold-lettered transom, lit display, glass glare, wooden kickplate */
.shop-window {
  position: relative; height: 360px; display: flex; flex-direction: column;
  background: var(--butter); border-radius: 10px 10px 0 0; padding: 10px 10px 0;
  box-shadow: 0 14px 30px rgba(31,58,77,.3), inset 0 0 0 3px #e6c062;
}
.transom {
  flex: none; height: 46px; margin-bottom: 8px; border-radius: 4px;
  background: linear-gradient(180deg, #2a3e52, var(--navy));
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
.transom span {
  font-family: var(--display); font-size: 21px; letter-spacing: 1px; white-space: nowrap;
  background: linear-gradient(180deg, #fff2c2 0%, #f1cf75 45%, #b88a2c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.35));
}
.pane {
  flex: 1; position: relative; overflow: hidden; border-radius: 3px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,247,222,.95), rgba(244,221,170,.9) 55%, rgba(205,170,110,.95) 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.18), inset 0 10px 24px rgba(120,80,30,.25);
  display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding: 0 16px 26px;
}
/* lamp light spilling from above */
.pane::before {
  content: ""; position: absolute; left: 50%; top: -6px; width: 70%; height: 80%; translate: -50% 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,240,.7), transparent 70%); pointer-events: none;
}
/* the glass: two diagonal reflections over everything */
.pane::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    linear-gradient(120deg, transparent 18%, rgba(255,255,255,.38) 22%, rgba(255,255,255,.08) 30%, transparent 33%),
    linear-gradient(120deg, transparent 52%, rgba(255,255,255,.22) 55%, transparent 59%),
    linear-gradient(180deg, rgba(122,184,203,.18), rgba(122,184,203,0) 40%);
}
.ledge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 20px; z-index: 1;
  background: linear-gradient(180deg, #a8754a, #7d5233); box-shadow: 0 -3px 6px rgba(80,50,20,.25);
}
.framed {
  position: relative; z-index: 2; background: #c9a258;
  padding: 7px; border-radius: 2px;
  box-shadow: inset 0 0 0 2px #8a6a2c, 0 8px 14px rgba(80,50,20,.4);
}
.framed img { display: block; width: 104px; height: 136px; object-fit: cover; border: 8px solid #fbf6ea; }
.framed.small img { width: 86px; height: 112px; }
.framed.tilt { transform: rotate(-4deg); }
/* little easel legs */
.framed.easel::before, .framed.easel::after {
  content: ""; position: absolute; bottom: -22px; width: 5px; height: 40px; background: #6e4626; border-radius: 2px; z-index: -1;
}
.framed.easel::before { left: 22%; transform: rotate(12deg); }
.framed.easel::after { right: 22%; transform: rotate(-12deg); }
.ptag {
  position: absolute; top: -10px; right: -16px; z-index: 3; transform: rotate(10deg);
  background: var(--paper); color: var(--rose-ink); font-weight: 800; font-size: 12px; line-height: 1;
  padding: 5px 8px 5px 12px; border-radius: 3px; clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%);
  box-shadow: 0 2px 4px rgba(0,0,0,.25); white-space: nowrap;
}
.kickplate {
  flex: none; height: 46px; margin: 8px -10px 0; border-radius: 0;
  background: var(--navy); display: flex; gap: 8px; padding: 8px 12px; box-sizing: border-box;
}
.kickplate i { flex: 1; border: 2px solid rgba(245,214,127,.55); border-radius: 3px; }
.door-frame {
  width: 230px; height: 360px; background: var(--butter); padding: 12px 12px 0;
  border-radius: 120px 120px 0 0; perspective: 900px; position: relative;
}
.door {
  width: 100%; height: 100%; border-radius: 108px 108px 0 0;
  background: linear-gradient(90deg, #e9a9b8, var(--pink) 50%, #e9a9b8);
  transform-origin: left center; transition: transform 1s cubic-bezier(.5,0,.2,1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  position: relative; box-shadow: inset 0 0 0 6px rgba(168,58,90,.18);
}
.door.open { transform: rotateY(-100deg); }
.door .glass {
  width: 130px; height: 120px; border-radius: 65px 65px 6px 6px;
  background: radial-gradient(circle at 50% 40%, var(--sky-3), var(--navy-2) 75%);
  border: 6px solid var(--cream);
}
.open-sign {
  position: absolute; top: 74px; left: 50%; translate: -50% 0;
  transform-origin: 50% -22px; animation: swing 3s ease-in-out infinite;
  background: var(--cream); color: var(--rose-ink);
  font-family: var(--display); font-size: 18px; padding: 4px 14px; border-radius: 8px;
  border: 3px solid var(--rose-ink);
}
.open-sign::before { /* string */
  content: ""; position: absolute; left: 50%; top: -22px; width: 30px; height: 22px; translate: -50% 0;
  border: 2px solid var(--navy); border-bottom: 0; border-radius: 30px 30px 0 0;
}
@keyframes swing { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.door .btn { font-size: 26px; min-height: 58px; padding: 0 34px; background: var(--navy); color: var(--cream); box-shadow: 0 5px 0 #0f2230, 0 10px 22px rgba(31,58,77,.3); }
.knob { position: absolute; right: 22px; top: 58%; width: 16px; height: 16px; border-radius: 50%; background: var(--butter-deep); }
.step { width: 100%; max-width: 1040px; height: 20px; background: var(--navy); border-top: 4px solid var(--butter); }
.sidewalk {
  width: 100%; height: 70px;
  background: repeating-linear-gradient(90deg, var(--cream) 0 80px, #e8dccb 80px 82px);
}
.shop-note { text-align: center; padding: 18px 16px 26px; color: var(--navy); font-style: italic; }
@media (max-width: 820px) {
  .storefront { grid-template-columns: 1fr; justify-items: center; }
  .shop-window { display: none; }
}

/* ======================================================================
   2. WELCOME (sparkles + sunburst)
   ====================================================================== */
#welcome {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding-block: 48px;
}
.sunburst {
  position: absolute; left: 50%; top: 50%; width: 1800px; height: 1800px; margin: -900px 0 0 -900px;
  background: repeating-conic-gradient(from 0deg, var(--sky) 0 7.5deg, var(--sky-3) 7.5deg 15deg);
  animation: spin 90s linear infinite; z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
#sparkles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.welcome-card { position: relative; z-index: 2; max-width: 680px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.groovy {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(54px, 12vw, 120px); line-height: .95;
  color: var(--pink);
  text-shadow: 4px 4px 0 var(--butter), 8px 8px 0 var(--pink-deep), 12px 12px 0 var(--navy);
}
.groovy span { display: inline-block; animation: bounce 2.4s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.welcome-card .lede { font-size: clamp(18px, 2.6vw, 22px); max-width: 34ch; color: var(--navy); background: rgba(253,246,234,.85); padding: 14px 20px; border-radius: 18px; }
.welcome-card .lede em { color: var(--rose-ink); }
.tagline-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tag {
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); background: var(--cream);
}

/* ======================================================================
   3. TWO DOORS
   ====================================================================== */
.inner { max-width: 1100px; margin: 0 auto; }
.screen-head { text-align: center; padding-top: 44px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.screen-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 58px); color: var(--navy); line-height: 1.05; text-shadow: 3px 3px 0 var(--pink); }
.screen-head p { color: var(--navy); font-style: italic; max-width: 46ch; }
.doors { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.choice {
  border: 0; cursor: pointer; text-align: center;
  border-radius: 220px 220px 24px 24px;
  padding: 44px 28px 34px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 12px 0 rgba(31,58,77,.22), 0 22px 36px rgba(31,58,77,.25);
  transition: transform .25s ease;
}
.choice:hover { transform: translateY(-6px) rotate(-1deg); }
.choice:nth-child(2):hover { transform: translateY(-6px) rotate(1deg); }
.choice.me { background: var(--pink); color: var(--navy); }
.choice.cat { background: var(--butter); color: var(--navy); }
.choice .art { width: 170px; height: 170px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; overflow: hidden; }
.choice .q { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
.choice .sub { font-size: 16px; opacity: .92; max-width: 30ch; }
.choice .go { margin-top: 4px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.mini-albums { position: relative; width: 120px; height: 120px; }
.mini-albums i { position: absolute; width: 74px; height: 96px; border-radius: 4px 8px 8px 4px; box-shadow: 0 6px 10px rgba(0,0,0,.35); }
.mini-albums i:nth-child(1) { background: var(--sky); left: 6px; top: 16px; transform: rotate(-12deg); }
.mini-albums i:nth-child(2) { background: var(--pink-deep); left: 24px; top: 10px; transform: rotate(-2deg); }
.mini-albums i:nth-child(3) { background: var(--cream); left: 42px; top: 14px; transform: rotate(9deg); border-left: 8px solid var(--butter-deep); }
.below-doors { margin-top: 36px; text-align: center; }
@media (max-width: 720px) {
  .doors { grid-template-columns: 1fr; gap: 26px; }
  .choice { border-radius: 160px 160px 22px 22px; padding-top: 34px; }
  .choice .art { width: 130px; height: 130px; }
}

/* ======================================================================
   4. CATALOGUE SHELF
   ====================================================================== */
.shelf-wrap { margin-top: 46px; }
.shelf {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 210px)); justify-content: center; gap: 26px; align-items: end;
  padding: 0 16px; text-align: left;
}
.album-btn {
  position: relative; border: 0; cursor: pointer; background: none; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  transition: transform .25s ease;
}
.album-btn:hover { transform: translateY(-10px) rotate(-1.5deg); }
.cover {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 4px 12px 12px 4px; position: relative;
  box-shadow: inset 10px 0 0 rgba(0,0,0,.22), inset 12px 0 0 rgba(255,255,255,.08), 0 10px 18px rgba(0,0,0,.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 12px 14px 22px;
  box-sizing: border-box; overflow: hidden;
}
.cover .label {
  background: var(--paper); color: var(--ink); width: 100%; box-sizing: border-box;
  border-radius: 4px; padding: 8px 6px; text-align: center;
  font-family: var(--hand); font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1;
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.cover .thumb { width: 72%; aspect-ratio: 1; object-fit: cover; border: 5px solid var(--paper); transform: rotate(-3deg); }
.price-tag {
  position: absolute; top: -14px; right: -6px; transform: rotate(8deg);
  background: var(--butter); color: var(--ink); font-weight: 800; font-size: 13px; line-height: 1.15;
  padding: 6px 10px 6px 16px; border-radius: 4px 10px 10px 4px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  text-align: center; box-shadow: 0 3px 6px rgba(0,0,0,.35);
}
.price-tag small { display: block; font-weight: 600; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.plank {
  height: 26px; margin-top: 0;
  background: linear-gradient(180deg, var(--cream) 0 40%, #e9dcc6 40% 100%);
  border-radius: 4px; box-shadow: 0 14px 20px rgba(31,58,77,.3);
}
.shelf-hint { text-align: center; margin-top: 26px; font-style: italic; }
@media (max-width: 860px) {
  .shelf { grid-template-columns: repeat(auto-fit, minmax(0, 180px)); row-gap: 52px; }
}
@media (max-width: 480px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; row-gap: 46px; padding: 0 6px; }
  .shelf-label { font-size: 19px; }
  #shelf-love { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  #shelf-love .cover { padding: 10px 6px 10px 14px; }
  #shelf-love .cover .label { font-size: 17px; padding: 6px 2px; }
  #shelf-love .price-tag { font-size: 11px; padding: 5px 7px 5px 13px; right: -4px; }
}

/* ======================================================================
   5. THE ALBUM (page turning)
   ====================================================================== */
.album-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; }
.album-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4.4vw, 42px); color: var(--navy); text-shadow: 3px 3px 0 var(--pink); }
.album-stage { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.book-viewport { width: calc(var(--pw) * 2); max-width: 100%; display: flex; justify-content: center; }
.book {
  position: relative; width: calc(var(--pw) * 2); height: var(--ph); flex: none;
  perspective: 2400px; transition: transform .8s cubic-bezier(.3,.1,.2,1);
}
.book.closed-front { transform: translateX(calc(var(--pw) * -0.5)); }
.book.closed-back { transform: translateX(calc(var(--pw) * 0.5)); }
.leaf {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.3,.1,.2,1);
}
.leaf.flipped { transform: rotateY(-180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden; box-sizing: border-box;
}
.face.back { transform: rotateY(180deg); }
/* 1970s magnetic album page: cream sheet with fine diagonal stripes */
.pg {
  background:
    linear-gradient(115deg, rgba(255,255,255,.22), transparent 38%),
    repeating-linear-gradient(-45deg, var(--sheet) 0 5px, var(--sheet-stripe) 5px 7px);
  color: var(--pen);
  border-radius: 0 8px 8px 0;
  box-shadow: inset 16px 0 18px -12px rgba(60,35,15,.55), inset 0 0 0 1px rgba(120,80,40,.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 7% 7%; gap: 5%;
}
.face.back.pg { border-radius: 8px 0 0 8px; box-shadow: inset -16px 0 18px -12px rgba(60,35,15,.55), inset 0 0 0 1px rgba(120,80,40,.12); }
.leaf .face { filter: none; }
.book::after { /* soft shadow of the whole book on the table */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -18px; height: 30px;
  background: radial-gradient(ellipse at center, rgba(31,58,77,.45), transparent 70%); z-index: -1;
}
.pg.side { flex-direction: row; align-items: center; justify-content: center; gap: 5%; }
.pg.side figure:nth-child(1) { margin-bottom: 12%; }
.pg.side figure:nth-child(2) { margin-top: 12%; }
.pg figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
/* a print: white border, a bit of tape */
.print { position: relative; background: #fbf7ee; padding: 7px; box-shadow: 0 3px 8px rgba(70,45,20,.35); }
.print img { display: block; object-fit: cover; filter: sepia(.16) saturate(.92) contrast(.97); }
.tape {
  position: absolute; left: 24%; width: 52%; height: 15px; top: -8px;
  background: rgba(222,186,118,.6); box-shadow: 0 1px 1px rgba(90,60,20,.12);
  transform: rotate(-2.5deg); z-index: 2;
}
.tape.b { top: auto; bottom: -8px; transform: rotate(2deg); left: 30%; width: 40%; }
/* deckle-edged print (scalloped border) */
.deckle-wrap { filter: drop-shadow(0 3px 5px rgba(70,45,20,.4)); }
.print.deckle {
  --r: 3.5px; background: #efe4cc; padding: 11px; box-shadow: none;
  -webkit-mask:
    radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask:
    radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}
.print.deckle img { filter: sepia(.55) saturate(.8) contrast(.95); }
/* sizes by layout */
.pg.side .print img { width: calc(var(--pw) * .39); aspect-ratio: 2 / 3; }
.pg.stack .print.l img { width: calc(var(--pw) * .70); aspect-ratio: 3 / 2; }
.pg.stack .print.p img { height: calc(var(--ph) * .32); aspect-ratio: 2 / 3; }
.pg.single .print.p img { width: calc(var(--pw) * .62); aspect-ratio: 2 / 3; }
.pg.single .print.l img { width: calc(var(--pw) * .80); aspect-ratio: 3 / 2; }
.pg figcaption { font-family: var(--hand); font-size: clamp(17px, calc(var(--pw) / 18), 26px); line-height: 1.05; text-align: center; color: var(--pen); }
/* covers */
.pg.cover-face {
  border-radius: 6px 14px 14px 6px; padding: 10%;
  box-shadow: inset 12px 0 0 rgba(0,0,0,.25), inset 0 0 0 10px rgba(0,0,0,.08), inset 0 0 60px rgba(0,0,0,.35), 0 16px 34px rgba(0,0,0,.5);
  justify-content: center; text-align: center; gap: 18px;
}
.cover-face .emboss {
  font-family: var(--display); font-weight: 400; font-size: calc(var(--pw) / 7.5); line-height: 1;
  color: var(--cream); text-shadow: 0 1px 0 rgba(255,255,255,.25), 0 -1px 0 rgba(0,0,0,.35);
}
.cover-face .ornament { width: 60%; height: 2px; background: var(--cream); opacity: .8; }
.cover-face .small { font-size: calc(var(--pw) / 24); letter-spacing: 4px; text-transform: uppercase; color: var(--cream); opacity: .95; }
/* opener: a stack of old deckled prints held by a paper clip */
.opener { gap: 7%; }
.pile { position: relative; width: calc(var(--pw) * .5); aspect-ratio: 3 / 4; margin-bottom: calc(var(--ph) * .03); }
.pile .deckle-wrap { position: absolute; inset: 0; }
.pile .deckle-wrap:nth-child(1) { transform: rotate(-9deg) translate(-4%, 2%); }
.pile .deckle-wrap:nth-child(2) { transform: rotate(6deg) translate(4%, -1%); }
.pile .deckle-wrap:nth-child(3) { transform: rotate(-1.5deg); }
.pile .print.deckle { width: 100%; height: 100%; box-sizing: border-box; }
.pile .print.deckle img { width: 100%; height: 100%; }
.pile .clip { position: absolute; left: -9%; top: 46%; width: 26%; z-index: 3; transform: rotate(-12deg); }
.opener .handnote, .end-page .handnote, .waiting .handnote {
  font-family: var(--hand); font-size: clamp(21px, calc(var(--pw) / 14), 32px); line-height: 1.15; color: var(--pen); max-width: 16ch; text-align: center;
}
.opener .sig { font-family: var(--hand); font-size: clamp(22px, calc(var(--pw) / 12), 34px); color: var(--rose-ink); }
.end-page { text-align: center; gap: 22px; }
.end-page .btn { font-size: clamp(16px, calc(var(--pw) / 20), 20px); min-height: 48px; padding: 0 22px; }
.waiting .slot {
  position: relative; width: calc(var(--pw) * .6); aspect-ratio: 3 / 2;
  border: 2px dashed rgba(120,80,40,.45); display: grid; place-items: center;
  font-family: var(--hand); font-size: clamp(18px, calc(var(--pw) / 17), 26px); color: rgba(90,60,30,.75);
}
.waiting .slot .tape { top: -8px; }
.album-controls { display: flex; align-items: center; gap: 16px; }
.round {
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--sky-2);
}
.round:disabled { opacity: .35; cursor: default; }
.round svg { width: 24px; height: 24px; }
.page-count { min-width: 120px; text-align: center; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; }
.album-tip { font-style: italic; font-size: 15px; text-align: center; }
/* phone: one page at a time; turned pages slide off to the left */
@media (max-width: 720px) {
  .book-viewport { width: var(--pw); overflow: hidden; justify-content: flex-start; border-radius: 0 10px 10px 0; }
  .book { transform: translateX(calc(var(--pw) * -1)) !important; }
}

/* ======================================================================
   6. ABOUT ME
   ====================================================================== */
.me-grid { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.avatar-wrap { position: relative; display: flex; justify-content: center; }
.avatar-wrap .halo {
  position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; top: 4%;
  background: repeating-radial-gradient(circle, var(--pink) 0 18px, var(--butter) 18px 36px, var(--cream) 36px 54px, var(--mint) 54px 72px);
}
.avatar { position: relative; width: min(340px, 80vw); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.avatar .lid { animation: blink 4.5s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }
.bubble {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: 28px; padding: 22px 26px; box-shadow: 0 8px 0 var(--pink);
}
.bubble::before {
  content: ""; position: absolute; left: -16px; top: 40px; border: 12px solid transparent; border-right: 18px solid var(--paper); border-left: 0;
}
.bubble h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.6vw, 48px); color: var(--navy); text-shadow: 3px 3px 0 var(--pink); line-height: 1.05; }
.bubble p { margin-top: 10px; font-size: 18px; }
.facts { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fact { background: var(--cream); border-radius: 18px; padding: 18px 20px; border: 2px solid var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.fact h3 { font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--rose-ink); }
.fact p { margin-top: 6px; font-size: 16px; color: var(--ink); }
.lang-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.lang-row span { background: var(--pink); color: var(--ink); border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 14px; }
.me-cta { margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .me-grid { grid-template-columns: 1fr; gap: 26px; }
  .bubble::before { left: 50%; top: -16px; translate: -50% 0; border: 12px solid transparent; border-bottom: 18px solid var(--paper); border-top: 0; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ======================================================================
   7. BOOKING (photo-lab order envelope)
   ====================================================================== */
.order {
  margin: 34px auto 0; max-width: 820px;
  background: var(--paper); color: var(--ink);
  border-radius: 10px; position: relative;
  box-shadow: 0 18px 36px rgba(31,58,77,.3);
}
.order-top {
  background: var(--pink); border-radius: 10px 10px 0 0; padding: 18px 26px 22px;
  display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}
.order-top h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); color: var(--ink); line-height: 1; }
.order-top .stamp { font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; border: 2px solid var(--ink); padding: 4px 10px; border-radius: 4px; transform: rotate(-4deg); }
.order form { padding: 18px 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.order fieldset { border: 0; padding: 0; margin: 0; }
.order legend, .order label.lbl {
  font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; display: block;
}
.sessions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sess { position: relative; }
.sess input { position: absolute; opacity: 0; pointer-events: none; }
.sess label {
  display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box;
  border: 2px dashed var(--sky-2); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: #fffdf8;
  transition: background .15s, border-color .15s, transform .15s;
}
.sess label b { font-size: 17px; }
.sess label span { font-size: 14px; color: var(--ink-soft); }
.sess label em { font-style: normal; font-weight: 800; color: var(--rose-ink); margin-top: auto; padding-top: 6px; }
.sess label { position: relative; }
.sess input:checked + label { border: 2px solid var(--navy); background: var(--pink); transform: rotate(-1deg); }
.sess input:checked + label em { color: var(--navy); }
.sess input:checked + label::after {
  content: ""; position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdf6ea' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.sess input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.order input[type="text"], .order input[type="email"], .order input[type="date"], .order textarea, .order select {
  font: inherit; font-size: 17px; color: var(--ink); background: #f3f9fb;
  border: 0; border-bottom: 2px solid var(--sky-2); border-radius: 6px 6px 0 0; padding: 10px 12px; min-height: 44px;
  box-sizing: border-box; width: 100%;
}
.order textarea { min-height: 96px; resize: vertical; font-family: var(--hand); font-size: 24px; line-height: 1.2; }
.order input:focus, .order textarea:focus, .order select:focus { outline: none; border-bottom-color: var(--navy); background: #e6f2f6; }
.langs { display: flex; gap: 10px; flex-wrap: wrap; }
.langs label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--sky-2); cursor: pointer; font-weight: 700; }
.langs input { accent-color: var(--navy); width: 18px; height: 18px; }
.order .submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.order .fine { font-size: 14px; color: var(--ink-soft); font-style: italic; }
.ticket {
  margin: 0 26px 28px; padding: 22px; border-radius: 12px; background: #fff0f3; border: 2px dashed var(--rose-ink);
  display: flex; flex-direction: column; gap: 8px;
}
.ticket h3 { font-family: var(--display); font-weight: 400; color: var(--rose-ink); font-size: 28px; }
.ticket p { font-size: 16px; }
.err { color: var(--rose-ink); font-weight: 700; font-size: 15px; }
@media (max-width: 720px) {
  .sessions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2 { grid-template-columns: 1fr; }
  .order form, .order-top { padding-left: 18px; padding-right: 18px; }
  .ticket { margin-left: 18px; margin-right: 18px; }
}
@media (max-width: 400px) { .sessions { grid-template-columns: 1fr; } }

/* ---------- ArtyDrop: Melissa x ArtyDrop sponsorship, retro print ad ---------- */
.ad {
  position: relative; box-sizing: border-box; max-width: 860px; margin: 44px auto 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(229,138,162,.35) 1.4px, transparent 1.8px);
  background-size: 11px 11px;
  color: var(--navy); border: 3px solid var(--navy); border-radius: 8px;
  box-shadow: 9px 9px 0 var(--navy); padding: 20px 26px 24px;
}
.ad-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 120px; }
.ad-chip { background: var(--navy); color: var(--cream); font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.ad-top .ad-partner { font-size: 12px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }
.lockup { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 3px double var(--navy); border-bottom: 3px double var(--navy); padding: 12px 0; }
.lk-m { font-family: var(--display); font-size: clamp(30px, 4.6vw, 44px); color: var(--pink-deep); text-shadow: 2px 2px 0 var(--navy); line-height: 1; }
.lk-x { font-family: var(--body); font-size: 30px; font-weight: 300; line-height: 1; }
.lk-a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 800; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.5px; line-height: 1; }
.lk-a svg { width: 34px; height: 34px; flex: none; }
.ad-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 26px; align-items: center; }
.ad h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.6vw, 46px); line-height: 1; color: var(--navy); text-shadow: 3px 3px 0 var(--pink); max-width: 14ch; }
.ad .ad-sub { margin-top: 12px; font-size: 18px; font-style: italic; max-width: 36ch; }
.ad ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ad li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 16px; }
.ad li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--pink-deep); }
.burst {
  position: absolute; top: -36px; right: -18px; width: 138px; height: 138px; z-index: 3;
  display: grid; place-items: center; text-align: center; background: var(--pink-deep); color: var(--cream);
  clip-path: polygon(50% 0%, 57% 12%, 69% 4%, 72% 18%, 85% 15%, 82% 29%, 96% 31%, 88% 43%, 100% 50%, 88% 57%, 96% 69%, 82% 71%, 85% 85%, 72% 82%, 69% 96%, 57% 88%, 50% 100%, 43% 88%, 31% 96%, 28% 82%, 15% 85%, 18% 71%, 4% 69%, 12% 57%, 0% 50%, 12% 43%, 4% 31%, 18% 29%, 15% 15%, 28% 18%, 31% 4%, 43% 12%);
  animation: wobble 3s ease-in-out infinite;
}
.burst b { display: block; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.burst small { display: block; max-width: 74px; margin: 0 auto; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; line-height: 1.25; }
@keyframes wobble { 0%,100% { transform: rotate(10deg) scale(1); } 50% { transform: rotate(16deg) scale(1.06); } }
.mock { background: var(--paper); border: 3px solid var(--navy); border-radius: 14px; padding: 12px; transform: rotate(2.5deg); box-shadow: 5px 5px 0 var(--pink-deep); }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; }
.mock-head b { font-family: var(--display); font-weight: 400; font-size: 17px; }
.mock-grid { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.mock-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; }
.mock-foot { margin-top: 9px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.mock-foot span:last-child { background: var(--navy); color: var(--cream); border-radius: 999px; padding: 4px 10px; }
.coupon {
  margin-top: 22px; position: relative; border: 3px dashed var(--navy); border-radius: 6px; background: var(--pink);
  padding: 14px 18px 14px 46px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.coupon .scissors { position: absolute; left: 10px; top: -15px; width: 28px; height: 28px; background: var(--cream); }
.coupon p { font-size: 15px; max-width: 40ch; }
.coupon p b { font-family: var(--display); font-weight: 400; font-size: 22px; display: block; line-height: 1.1; margin-bottom: 2px; }
.coupon .btn { font-size: 18px; min-height: 48px; padding: 0 22px; }
.ad-fine { margin-top: 12px; font-size: 13px; font-style: italic; }
@media (max-width: 720px) {
  .ad { padding: 18px 16px 20px; box-shadow: 6px 6px 0 var(--navy); margin-right: 6px; }
  .ad-top { padding-right: 86px; }
  .ad-grid { grid-template-columns: 1fr; }
  .mock { max-width: 300px; margin: 4px auto 0; }
  .burst { width: 108px; height: 108px; top: -30px; right: -10px; }
  .burst b { font-size: 30px; }
  .ad-top .ad-partner { font-size: 10px; letter-spacing: 1.5px; }
  .lockup { gap: 8px; flex-wrap: nowrap; }
  .lk-m { font-size: 28px; }
  .lk-x { font-size: 22px; }
  .lk-a { font-size: 24px; gap: 6px; }
  .lk-a svg { width: 26px; height: 26px; }
  .coupon .btn { width: 100%; font-size: 16px; padding: 0 14px; }
}
/* catalogue: two shelves */
.shelf-label {
  display: inline-block; margin: 0 auto 30px; font-family: var(--display); font-weight: 400; font-size: 22px;
  background: var(--navy); color: var(--pink); padding: 6px 18px; border-radius: 8px; transform: rotate(-2deg);
}
.shelf-wrap { text-align: center; }
.shelf-wrap + .shelf-wrap { margin-top: 64px; }
.shelf-wrap p.shelf-sub { margin: -18px auto 26px; font-style: italic; max-width: 44ch; }

footer.shopfoot { text-align: center; padding: 34px 16px 10px; font-size: 14px; }
footer.shopfoot a { color: var(--navy); font-weight: 700; }


/* ---------- Photo zoom (lightbox) ---------- */
.zoom {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(31,58,77,.92);
  padding: calc(env(safe-area-inset-top, 0px) + 64px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) max(16px, env(safe-area-inset-left, 0px));
  animation: screen-in .25s ease both;
}
.zoom figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; min-height: 0; }
.zoom img { max-width: min(900px, 100%); max-height: calc(100vh - 190px); object-fit: contain; border: 8px solid var(--paper); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.zoom figcaption { font-family: var(--hand); font-size: 28px; color: var(--cream); text-align: center; }
.zoom .close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: max(12px, env(safe-area-inset-right, 0px));
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: var(--pink); color: var(--navy);
  display: grid; place-items: center;
}
.zoom .close svg { width: 22px; height: 22px; }
.print { cursor: zoom-in; }

/* ---------- Phone polish ---------- */
@media (max-width: 520px) {
  .topbar-inner { flex-wrap: nowrap; min-height: 56px; }
  .topbar .brand { font-size: 19px; flex: none; }
  .topbar nav { flex-wrap: nowrap; gap: 0; }
  .topbar nav button { font-size: 13.5px; padding: 0 8px; }
  .groovy { font-size: clamp(40px, 12.5vw, 64px); white-space: normal; max-width: 100%; text-shadow: 2px 2px 0 var(--butter), 4px 4px 0 var(--pink-deep), 6px 6px 0 var(--navy); }
  #welcome { padding-block: 32px; }
  .welcome-card { gap: 18px; }
  .welcome-card .lede { font-size: 17px; padding: 12px 16px; }
  .screen-head { padding-top: 28px; }
  .album-head { padding-top: 14px; }
  .album-head h2 { order: -1; width: 100%; text-align: center; }
  .album-head .link-btn { font-size: 15px; }
  .album-head .btn { font-size: 16px !important; min-height: 44px !important; padding: 0 18px !important; }
  .album-tip { font-size: 14px; }
}
@media (max-width: 360px) {
  .topbar .brand { font-size: 17px; }
  .topbar nav button { font-size: 12.5px; padding: 0 6px; }
}


/* ---------- welcome: a fan of prints + proof, no reading needed ---------- */
.skyline { width: min(620px, 92vw); height: auto; display: block; overflow: visible; }
.sk-sunrise { animation: sk-rise 1.4s cubic-bezier(.2,.8,.2,1) .2s both; }
.sk-rays { transform-origin: 300px 262px; animation: sk-spin 40s linear infinite; }
.sk-mon { animation: sk-up .9s cubic-bezier(.2,.9,.25,1.1) both; }
.sk-arc { animation-delay: .7s; }
.sk-tower { animation-delay: .85s; }
.sk-couple { animation: sk-fade .7s ease 1.3s both; }
.sk-ring { transform-box: fill-box; transform-origin: center; animation: sk-twinkle 1.6s ease-in-out 2s infinite; }
.sk-heart { transform-box: fill-box; transform-origin: center; animation: sk-float 3.2s ease-in 2.2s infinite; opacity: 0; }
@keyframes sk-rise { from { transform: translateY(150px); } to { transform: none; } }
@keyframes sk-spin { to { transform: rotate(360deg); } }
@keyframes sk-up { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes sk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sk-twinkle { 0%, 100% { transform: scale(.6); opacity: .6; } 50% { transform: scale(1.4); opacity: 1; } }
@keyframes sk-float { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1.1); } }
.proofs { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.stars { display: flex; gap: 4px; background: var(--cream); padding: 10px 14px; border-radius: 999px; border: 2px solid var(--navy); }
.star svg { width: 26px; height: 26px; display: block; fill: var(--butter); stroke: var(--navy); stroke-width: 1.4; }
.star { animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.s1 { animation-delay: 1.1s; } .s2 { animation-delay: 1.22s; } .s3 { animation-delay: 1.34s; }
.s4 { animation-delay: 1.46s; } .s5 { animation-delay: 1.58s; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.bubble-hi {
  position: relative; width: 132px; height: 50px; background: var(--paper); border: 2px solid var(--navy);
  border-radius: 24px 24px 24px 6px; animation: pop .5s cubic-bezier(.3,1.6,.5,1) 1.7s both;
}
.bubble-hi .hi {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--rose-ink); opacity: 0;
  animation: say 6s ease-in-out infinite;
}
.bubble-hi .h3 { font-family: 'Amiri', var(--body); font-size: 24px; }
.bubble-hi .h1 { animation-delay: 1.8s; } .bubble-hi .h2 { animation-delay: 3.8s; } .bubble-hi .h3 { animation-delay: 5.8s; }
@keyframes say { 0% { opacity: 0; transform: translateY(8px); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 520px) {
  .star svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-heart { opacity: 0; }
  .bubble-hi .h1 { opacity: 1; }
}


/* ---------- the order goes into a real envelope ---------- */
.mail { padding: 120px 20px 10px; display: flex; justify-content: center; }
.env { position: relative; width: min(440px, 80vw); aspect-ratio: 440 / 270; perspective: 1100px; }
.env-back { position: absolute; inset: 0; background: #e9a9b8; border-radius: 8px; box-shadow: 0 18px 30px rgba(31,58,77,.3); }
.letter {
  position: absolute; left: 6%; right: 6%; top: 5%; height: 90%; z-index: 2; box-sizing: border-box;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 25px, #cfe2ea 25px 26px);
  padding: 14px 18px; border-radius: 3px; box-shadow: 0 2px 6px rgba(31,58,77,.2);
  transform: translateY(-62%);
  font-family: var(--hand); color: var(--navy); font-size: 21px; line-height: 26px; overflow: hidden;
}
.letter p { margin: 0; }
.letter .l-sign { margin-top: 4px; color: var(--rose-ink); font-weight: 700; }
.env-front {
  position: absolute; inset: 0; z-index: 3; border-radius: 8px;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(31,58,77,.16) 50%, transparent calc(50% + 1px)),
    linear-gradient(to top left, transparent calc(50% - 1px), rgba(31,58,77,.16) 50%, transparent calc(50% + 1px)),
    #f6c3cf;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}
.env-to { position: absolute; left: 0; right: 0; bottom: 16%; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 30px; color: var(--navy); }
.stamp { position: absolute; right: 5%; bottom: 10%; width: 46px; height: 54px; background: var(--paper); display: grid; place-items: center; outline: 3px dotted var(--paper); outline-offset: 2px; transform: rotate(4deg); }
.stamp svg { width: 34px; }
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 1;
  background: #f2b5c3; clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0; transform: rotateX(180deg); backface-visibility: visible;
}
.seal {
  position: absolute; left: 50%; top: calc(58% - 32px); width: 64px; height: 64px; margin-left: -32px; z-index: 5;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9587c, #8f2e4c 70%);
  box-shadow: 0 3px 6px rgba(0,0,0,.3), inset 0 0 0 4px rgba(255,255,255,.12);
  display: grid; place-items: center; transform: scale(0);
}
.seal svg { width: 38px; }
.mail.go .letter { animation: l-in .85s cubic-bezier(.6,0,.3,1) .35s forwards; }
.mail.go .env-flap { animation: flap 0.6s cubic-bezier(.5,0,.3,1) 1.25s forwards; }
.mail.go .seal { animation: seal .45s cubic-bezier(.3,1.7,.5,1) 1.85s forwards; }
.mail.go .env { animation: send .7s ease 2.35s forwards; }
@keyframes l-in { to { transform: translateY(4%); } }
@keyframes flap { 0% { transform: rotateX(180deg); z-index: 1; } 49% { z-index: 1; } 50% { z-index: 4; } 100% { transform: rotateX(0deg); z-index: 4; } }
@keyframes seal { to { transform: scale(1); } }
@keyframes send { 0% { transform: none; } 40% { transform: translateY(6px) rotate(0deg); } 100% { transform: translateY(-10px) rotate(-3deg); } }
@media (max-width: 520px) {
  .mail { padding-top: 90px; }
  .letter { font-size: 17px; line-height: 21px; padding: 10px 12px; background-image: repeating-linear-gradient(180deg, transparent 0 20px, #cfe2ea 20px 21px); }
  .env-to { font-size: 22px; }
  .seal { width: 52px; height: 52px; margin-left: -26px; top: calc(58% - 26px); }
}

@media (prefers-reduced-motion: reduce) {
  .mail.go .letter { transform: translateY(4%); }
  .mail.go .env-flap { transform: none; z-index: 4; }
  .mail.go .seal { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- language switch ---------- */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(253,246,234,.55); border: 2px solid var(--navy); direction: ltr; }
.lang-switch button {
  min-width: 38px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 999px; cursor: pointer; background: none;
  font-family: var(--body); font-weight: 800; font-size: 13px; letter-spacing: 1px; color: var(--navy);
}
.lang-switch button[lang="ar"] { font-family: 'Tajawal', 'Amiri', var(--body); font-size: 16px; letter-spacing: 0; }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.lang-switch button:not([aria-pressed="true"]):hover { background: var(--pink); }
.shop-lang { display: flex; justify-content: flex-end; max-width: 1100px; margin: 0 auto; padding-top: max(12px, env(safe-area-inset-top, 0px)); }
.shop-lang + .awning { margin-top: 10px; }
.topbar .lang-switch { flex: none; }
@media (max-width: 600px) { .topbar .lang-switch { display: none; } }

/* ---------- footer ---------- */
footer.shopfoot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; }
footer.shopfoot .lang-switch { flex-basis: auto; }

/* ---------- order: spam trap, failure note ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ticket.oops h3 { color: var(--navy); }
.oops-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.oops-row .btn { font-size: 18px; min-height: 46px; padding: 0 22px; }

/* ---------- Arabic: right-to-left, Arabic typefaces, no letter-spacing ---------- */
/* Latin letters (names, the brand, prices) keep the shop's fonts; Arabic letters fall through to the Arabic faces */
:root[lang="ar"] {
  --display: 'Shrikhand', 'Lalezar', 'Cooper Black', Georgia, serif;
  --body: 'Fraunces', 'Tajawal', Georgia, sans-serif;
  --hand: 'Caveat', 'Aref Ruqaa', cursive;
}
[dir="rtl"] .btn svg { transform: scaleX(-1); }
:root[lang="ar"] body { font-size: 18px; }
[dir="rtl"] *:not(.lang-switch button) { letter-spacing: 0 !important; }
[dir="rtl"] .groovy, [dir="rtl"] .emboss { font-style: normal; }
/* the album, the envelope and the photo pages keep their physical layout */
[dir="rtl"] .album-stage, [dir="rtl"] .book-viewport, [dir="rtl"] .album-controls, [dir="rtl"] .mail, [dir="rtl"] .storefront, [dir="rtl"] .burst, [dir="rtl"] .mock { direction: ltr; }
[dir="rtl"] .album-stage .handnote, [dir="rtl"] .album-stage figcaption, [dir="rtl"] .album-stage .slot, [dir="rtl"] .album-stage .btn, [dir="rtl"] .letter, [dir="rtl"] .storefront .transom, [dir="rtl"] .storefront .ptag { direction: rtl; }
[dir="rtl"] .sess input:checked + label::after { right: auto; left: -10px; }
[dir="rtl"] .burst { right: auto; left: -18px; }
[dir="rtl"] .ad-top { padding-right: 0; padding-left: 120px; }
[dir="rtl"] .coupon { padding: 14px 46px 14px 18px; }
[dir="rtl"] .coupon .scissors { left: auto; right: 10px; transform: scaleX(-1); }
@media (max-width: 720px) {
  [dir="rtl"] .burst { left: -10px; }
  [dir="rtl"] .ad-top { padding-left: 86px; }
  [dir="rtl"] .ad { margin-right: 0; margin-left: 6px; }
}
@media (min-width: 861px) {
  [dir="rtl"] .bubble::before { left: auto; right: -16px; border: 12px solid transparent; border-left: 18px solid var(--paper); border-right: 0; }
}
/* long welcome titles (FR "Bienvenue chez moi !") break between words on a phone, never mid-word */
.groovy span { white-space: nowrap; }
