/* Additions use the deployed site's palette, typography and control styles. */
.bar .header-create {
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 2rem;
  background: var(--ink);
  color: #fff3d6;
  box-shadow: 3px 4px 0 #0004;
  padding: .42rem .8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: 600 1rem/1 "Bricolage Grotesque", Arial, sans-serif;
  margin-left: 1rem;
}
.bar .header-create:hover { color: #fff3d6; box-shadow: 4px 5px 0 var(--tomato); }
.header-create svg, .order-actions svg { width: 1.16em; height: 1.16em; fill: currentColor; flex: none; }
.bar .new-mark { color: #fff3d6; font-size: .55em; vertical-align: super; text-decoration: none; }
@media (max-width: 950px) {
  .bar nav { gap: 0; }
  .bar nav a { font-size: 1rem; padding-inline: .42rem; }
}
@media (max-width: 700px) {
  .bar .header-create { margin-right: 58px; }
  .mnav nav a { font-size: clamp(34px, 10vw, 54px); }
}

.order-page { font-size: 1rem; }
.order-page .wrap { width: min(1200px, calc(100% - 48px)); }
.order-page .inner-page { padding-top: clamp(110px, 13vw, 165px); }
.order-home .bar { background: linear-gradient(var(--wall) 65%, transparent); }
.order-hero { background: var(--canvas); padding: clamp(108px, 14vw, 165px) 0 clamp(42px, 7vw, 100px); }
.order-home .order-hero { background: var(--wall); }
.order-hero-grid { display: grid; align-items: center; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 82px); }
.order-page .order-hero h1 { font-size: clamp(43px, 6.1vw, 94px) !important; }
.order-hero h1 span { display: block; }
.order-page h1 em, .order-page h2 em { font-family: inherit; font-weight: inherit; }
.order-lead { max-width: 34rem; margin-top: 1.15rem; font-size: clamp(1rem, 1.8vw, 1.25rem); }
.order-urdu { margin-top: .42rem; }
.order-price-line { margin-top: .9rem; color: var(--espresso); font-weight: 650; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 1.2rem; }
.order-actions .button { gap: .5rem; }
.order-hero .text-link, .order-wrap .text-link, .order-page .site-footer a:not(.brand) { font-size: .95rem; }
.order-hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.order-hero-art figure { min-width: 0; background: var(--canvas); padding: .48rem; box-shadow: 4px 6px 0 #15151535; }
.order-hero-art figure:first-child { transform: rotate(-4deg); }
.order-hero-art figure:last-child { transform: translateY(16px) rotate(4deg); }
.order-hero-art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.order-hero-art figcaption { color: var(--espresso); font-size: .85rem; line-height: 1.25; margin: .45rem .12rem .15rem; }
.order-hero-art .comic-cover { object-position: center; }
.order-wrap { padding-block: clamp(38px, 6vw, 86px); }
.order-wrap > p { margin-top: .7rem; }
.order-wrap > .eyebrow { margin-top: 0; margin-bottom: .7rem; }
.order-page .eyebrow { font-size: .85rem; }
.order-page :is(.order-wrap, .page-intro) h2 + p { font-size: 1.02rem; }
.order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.35rem; }
.order-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.order-card { min-width: 0; background: var(--ivory); border: 1px solid var(--line); box-shadow: 4px 5px 0 #15151516; padding: clamp(16px, 3vw, 30px); }
.order-card h3 { font-size: clamp(24px, 3vw, 35px); }
.order-card p { margin-top: .6rem; }
.order-card .order-actions { gap: .5rem 1rem; }
.order-pricing { background: var(--linen); }
.order-pricing .order-card { display: flex; flex-direction: column; }
.order-pricing .order-card .order-actions { margin-top: auto; padding-top: .9rem; }
.order-price { color: var(--espresso); font-weight: 700; font-size: 1.45rem; }

.order-review { background: var(--wall); }
.review-control { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .7rem; }
.review-control .arrow-button { width: 44px; height: 44px; }
.review-list, .comic-samples { position: relative; display: flex; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory; padding: .8rem .5rem 1.3rem 0; margin: .45rem 0 0; list-style: none; }
.review-list > li { flex: 0 0 max(31%, 252px); scroll-snap-align: start; background: var(--canvas); color: var(--espresso); border: 1px solid var(--line); padding: 1rem; box-shadow: 4px 5px 0 #15151516; }
.review-list blockquote { margin: 0; }
.review-list blockquote p { min-height: 3.3em; color: inherit; font-size: 1.05rem; }
.review-list img { margin-top: .8rem; width: 100%; max-height: 110px; object-fit: contain; object-position: left center; }
.review-list cite { display: block; margin-top: .8rem; color: var(--brown); font-size: .9rem; font-style: normal; }
.rewind-link { background: var(--wall); }
.rewind-link .order-actions { margin-top: .9rem; }

.comic-samples a { display: block; flex: 0 0 max(28%, 220px); scroll-snap-align: start; align-self: flex-start; border: 1px solid var(--line); padding: .5rem; background: var(--canvas); box-shadow: 4px 5px 0 #15151516; }
.comic-samples img { width: 100%; }
.comic-samples span { display: block; padding: .35rem .2rem .1rem; font-size: .9rem; }
.sample-lightbox img { max-height: min(72dvh, 800px); max-width: min(82vw, 710px); width: auto; }
.sample-lightbox .close-dialog { margin-left: auto; }
.order-compare figure img, .order-style img { max-height: 380px; width: 100%; object-fit: contain; object-position: left center; margin-top: 1rem; }
.order-chat { display: grid; align-content: center; gap: .65rem; min-height: 165px; }
.order-chat p { margin: 0; color: var(--ink); background: var(--wall); padding: .7rem 1rem; border-radius: .85rem; width: fit-content; }
.order-chat p + p { justify-self: end; }
.order-step-list { padding-left: 1.2rem; margin: 1rem 0 0; }
.order-step-list li { margin-bottom: .6rem; padding-left: .2rem; }

.quote-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.54fr); align-items: start; gap: clamp(20px, 5vw, 72px); }
.quote-layout .order-card { margin-top: .85rem; }
.quote-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
.quote-fields label { display: grid; align-content: start; gap: .25rem; font-weight: 600; }
.quote-fields .quote-wide { grid-column: 1/-1; }
.quote-fields input, .quote-fields select, .quote-fields textarea { width: 100%; min-width: 0; border: 1px solid var(--brown); border-radius: 4px; background: var(--canvas); color: var(--ink); padding: .58rem .55rem; min-height: 44px; font-weight: 400; }
.quote-fields textarea { resize: vertical; }
.quote-fields label small { font-weight: 400; color: var(--brown); }
.quote-form .button { margin-top: .9rem; }
.quote-form .quote-status:not(:empty), .quote-form .quote-package-price:not(:empty) { margin-top: .65rem; }
.quote-form .quote-status { min-height: 0; }
.quote-aside .order-actions { margin-top: .75rem; }
.order-page .site-footer p { font-size: .95rem; }
.order-page .site-footer .wrap { padding-bottom: env(safe-area-inset-bottom, 0px); }

.showcase-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.25rem 0 2rem; }
.showcase-tabs a { padding: .5rem .9rem; border: 1px solid var(--ink); border-radius: 2rem; min-height: 44px; }
.showcase-tabs a[aria-selected=true] { background: var(--ink); color: #fff3d6; }
.gallery-page .collection-intro .showcase-title { margin-bottom: 1.25rem; }
.gallery-page .order-wrap { padding-block: 24px 48px; }
.gallery-page .showcase-footer-link { margin-top: 2rem; }
.legacy-link { margin-top: 1rem; }

@media (max-width: 700px) {
  .order-page .wrap { width: calc(100% - 36px); }
  .order-hero-grid, .order-grid, .order-grid.two, .quote-layout { grid-template-columns: minmax(0, 1fr); }
  .order-hero-art { width: min(100%, 460px); padding-inline: 6px; }
  .order-hero-art img { aspect-ratio: 1 / 1.18; }
  .order-hero .button { padding-inline: 14px; }
  .order-hero .order-actions { gap: 12px; }
  .order-page .page-intro h1 { font-size: clamp(44px, 11vw, 62px) !important; }
  .order-page .quote-form .button { width: 100%; }
  .order-page .section { padding-block: 48px; }
}
@media (max-width: 400px) { .quote-fields { grid-template-columns: 1fr; } }

/* Match the fixed logo, tilted navigation strip and safe-area offsets on Rewind. */
.support-page.order-page > .bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: calc(env(safe-area-inset-top,0px) + 25px) max(32px,env(safe-area-inset-right,0px)) 18px 124px;
}
.support-page.order-page > .bar .me {
  position: fixed;
  left: max(32px,env(safe-area-inset-left,0px));
  top: calc(env(safe-area-inset-top,0px) + 25px);
  z-index: 31;
}
.support-page.order-page > .bar nav { display: flex; align-items: center; margin-block: 0; }
.order-home .order-hero h1 { font-size: clamp(43px, 5.5vw, 82px) !important; }
.gallery-page.order-page { font-family: var(--body); }
.gallery-page.order-page #books,
.gallery-page.order-page #comics,
.gallery-page.order-page #reviews { scroll-margin-top: 108px; }
.gallery-page.order-page .site-footer { background: var(--ink); color: #fff3d6; }
.gallery-page.order-page .site-footer a, .gallery-page.order-page .site-footer p,
.gallery-page.order-page .footer-wordmark { color: #fff3d6; }
.support-page.order-page .skip-link:focus { z-index: 120; }
@media (max-width: 700px) {
  .support-page.order-page > .bar {
    padding: calc(env(safe-area-inset-top,0px) + 23px) max(26px,env(safe-area-inset-right,0px)) 16px 82px;
  }
  .order-home .order-hero h1 { font-size: clamp(39px, 10.4vw, 60px) !important; }
  .gallery-page.order-page #books,
  .gallery-page.order-page #comics,
  .gallery-page.order-page #reviews { scroll-margin-top: 92px; }
}
.order-hero h1 span { text-wrap: balance; }

/* First-time visitor guidance uses the same type, colors and controls as the rest of the site. */
#start-here, #story-start, #quote-form, #memory-book-packages { scroll-margin-top: 110px; }
.first-visit .order-card .text-link, .quote-quick-links .text-link { min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: .2em; }
.first-visit .order-card { display: flex; flex-direction: column; align-items: flex-start; }
.first-visit .order-card .text-link { margin-top: auto; padding-top: .6rem; }
.first-visit .order-actions .text-link { min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: .2em; }
.story-guide { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding-inline: 18px; margin: 0 auto 1rem; }
.story-guide a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-size: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.story-guide a:focus-visible, .story-skip:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; }
.story-skip { position: fixed; top: .5rem; left: .5rem; z-index: 120; padding: .6rem; color: #fff3d6; background: var(--ink); transform: translateY(-150%); }
.story-skip:focus { transform: none; }
.quote-quick-links { display: flex; flex-wrap: wrap; column-gap: 1rem; margin-block: .35rem .25rem; }
.quote-fields #package-price { margin: 0; }
.quote-fields #package-price:empty { display: none; }
.quote-form #quote-help { margin-top: .6rem; }
@media (max-width: 700px) {
  #start-here, #story-start, #quote-form, #memory-book-packages { scroll-margin-top: 96px; }
}

/* Keep the navigation clear of the links at the top of each footer. */
body.footer-near > .bar, body.footer-near > .burger {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.site-footer { padding-bottom: clamp(22px, 4vw, 56px); }
.site-footer .footer-wordmark {
  font-size: clamp(3.9rem, 18vw, 14rem);
  line-height: 1.05;
  margin: clamp(24px, 5vw, 65px) 0 0;
  padding: 0 0 .08em;
}
.site-footer .footer-top h2 { font-size: .85rem; }
.site-footer .footer-bottom {
  color: var(--wall);
  font-size: .9rem;
  line-height: 1.45;
  align-items: baseline;
  gap: 12px 22px;
}
.site-footer .footer-bottom a { color: var(--wall); }
.site-footer .footer-bottom a:hover { text-decoration: underline; text-underline-offset: .2em; }

.scene-links .journey-next {
  border-radius: 2rem;
  padding: .4rem 1rem;
  background: var(--ink);
  color: #fff3d6;
  box-shadow: 3px 4px 0 #0003;
  text-decoration: none;
}
.scene-links .journey-next:hover, .scene-links .journey-next.is-next { box-shadow: 4px 5px 0 var(--tomato); }
.scene-links .journey-next:focus-visible { outline-offset: 4px; }
.next-story .eyebrow { margin-bottom: .6rem; }
.next-story .order-actions { margin-top: .85rem; }
.gallery-page .showcase-footer-link { margin-bottom: 2rem; }

@media (max-width: 820px) {
  .bar .header-create { margin-right: 58px; }
  .mnav { justify-content: flex-start; overflow-y: auto; }
  .mnav nav a { font-size: clamp(31px, 8.6vw, 49px); }
}
@media (max-width: 420px) {
  .site-footer .footer-bottom { gap: 8px 16px; }
  .scene-links .journey-next { flex-basis: 100%; max-width: max-content; }
}
@media (prefers-reduced-motion: no-preference) {
  .arrived { animation: lunora-arrive .58s cubic-bezier(.19,1,.22,1) backwards; }
  .order-grid > .arrived:nth-child(2n), .record-rack > .arrived:nth-child(2n),
  .comic-samples > .arrived:nth-child(2n) { animation-delay: .08s; }
  .order-grid > .arrived:nth-child(3n), .comic-samples > .arrived:nth-child(3n) { animation-delay: .15s; }
  .scene-links .journey-next.is-next { animation: lunora-next-cue .65s cubic-bezier(.23,1,.32,1); }
}
@keyframes lunora-arrive { from { opacity: .55; translate: 0 18px; } }
@keyframes lunora-next-cue { 42% { transform: translateY(-4px); } }

/* Keep the full introduction easy to scan on a long page. */
#home-samples, #home-process, #home-studio, #home-questions, #enquiry-checklist,
#plan-a-comic, #plan-your-book { scroll-margin-top: 105px; }

.scene-links [data-rewind-next].is-next { color: var(--ink); text-decoration-thickness: 2px; }
.guide-band { background: var(--linen); }
.guide-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-top: 1.6rem;
}
.guide-gallery figure { min-width: 0; background: var(--canvas); padding: .65rem; border: 1px solid var(--line); box-shadow: 4px 5px 0 var(--line); }
.guide-gallery a { display: block; position: relative; aspect-ratio: 1.12; background: var(--wall); overflow: hidden; }
.guide-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.guide-gallery figcaption, .guide-split figcaption { margin-top: .55rem; font-size: .9rem; }
.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 1.5rem 0;
  list-style: none;
  counter-reset: guide-step;
}
.guide-steps .order-card { counter-increment: guide-step; }
.guide-steps .order-card::before {
  content: counter(guide-step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: .7rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--wall);
  font-size: .92rem;
  font-weight: 650;
}
.guide-split { display: grid; align-items: center; grid-template-columns: minmax(0, 1.5fr) minmax(180px, .65fr); gap: clamp(24px, 7vw, 120px); }
.guide-split p { margin-top: .9rem; }
.guide-split figure { width: min(100%, 290px); justify-self: center; }
.guide-split img { box-shadow: 6px 7px 0 var(--line); }
.guide-faq details { border-bottom: 1px solid var(--line); padding: .2rem 0; }
.guide-faq details:first-of-type { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.guide-faq summary { min-height: 44px; padding: .7rem 0; cursor: pointer; font-weight: 650; font-size: 1.04rem; }
.guide-faq details p { max-width: 65ch; margin: .15rem 0 .85rem 1.1rem; }
.guide-faq a { text-decoration: underline; text-underline-offset: .2em; }
.guide-list { padding-left: 1.15rem; margin-bottom: 0; }
.guide-list li + li { margin-top: .5rem; }
.review-list.guide-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  padding: .8rem 0 0;
}
.guide-reviews > li { min-width: 0; }
.guide-reviews img { height: auto; }
@media (max-width: 860px) {
  .guide-gallery, .review-list.guide-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .guide-steps, .guide-split, .review-list.guide-reviews { grid-template-columns: minmax(0, 1fr); }
  .guide-split figure { width: min(70%, 265px); }
}
@media (prefers-reduced-motion: no-preference) {
  .guide-gallery img { transition: transform .24s ease-out; }
  .guide-gallery a:is(:hover, :focus-visible) img { transform: scale(1.04); }
  .guide-faq details[open] > p { animation: lunora-answer .27s ease-out; }
  .scene-links [data-rewind-next].is-next { animation: lunora-next-cue .65s cubic-bezier(.23,1,.32,1); }
}
@keyframes lunora-answer { from { opacity: .4; translate: 0 -4px; } }
.order-page.header-scrolled > .bar {
  background: var(--canvas);
  min-height: calc(108px + env(safe-area-inset-top, 0px));
}
.order-home.header-scrolled > .bar { background: var(--wall); }
@media (max-width: 820px) {
  .order-page.header-scrolled > .bar { min-height: calc(82px + env(safe-area-inset-top, 0px)); }
}
