/* Homepage. Builds on site.css tokens (--plate, --surface, --ink, --maroon = brand blue, --cobalt,
   --pei = warm accent), so light and dark mode follow the rest of the site. Layout is logical
   (inline-start/end), so the Arabic page mirrors without overrides. */

.home main > section { padding-block: clamp(64px, 9vw, 120px); }
.hm-head { display: grid; gap: 10px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.hm-head h2 { margin: 0; }
.hm-head p { margin: 0; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; }
.hm-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hm-more::after { content: "→"; text-decoration: none; display: inline-block; }
:root[dir="rtl"] .hm-more::after { content: "←"; }
.hm-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* 1. first screen */
.home .hm-hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); background: var(--plate); }
.hm-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hm-kicker { margin: 0 0 18px; font-size: 14px; font-weight: 650; letter-spacing: .02em; color: var(--maroon); }
.hm-hero .hm-big { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; margin-bottom: 22px; }
:root[dir="rtl"] .hm-hero .hm-big { line-height: 1.3; letter-spacing: 0; font-size: clamp(34px, 4.6vw, 64px); }
.hm-lead { margin: 0; max-width: 36rem; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hm-btn-lg { min-height: 56px; padding-inline: 28px; font-size: 17px; }
.hm-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 44px; font-weight: 650; color: var(--ink); text-decoration: none; }
.hm-wa svg { width: 22px; height: 22px; fill: #1FAF54; flex: none; }
.hm-wa span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hm-proof { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; max-width: 36rem; }
.hm-proof li { position: relative; padding-inline-start: 26px; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.hm-proof li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 14px; height: 8px; border-left: 2.5px solid var(--maroon); border-bottom: 2.5px solid var(--maroon); transform: rotate(-45deg); }

.hm-hero__art { margin: 0; }
.hm-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-mosaic a { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--photo); }
.hm-mosaic img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.hm-mosaic a:hover img { transform: scale(1.04); }
.hm-mosaic span { position: absolute; inset-inline-start: 8px; bottom: 8px; padding: 5px 10px; border-radius: 999px; background: var(--tag-bg); color: var(--ink); font-size: 13px; font-weight: 650; }
.hm-hero__art figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* 2. three ways in */
.home .hm-paths { background: var(--surface); border-block: 1px solid var(--line); }
.hm-paths__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-path { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(24px, 2.6vw, 34px); background: var(--plate); border: 1px solid var(--line); border-top: 4px solid var(--maroon); }
.hm-path__tag { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--maroon); color: #fff; font-weight: 800; font-size: 17px; }
.hm-path h3 { margin: 4px 0 0; font-size: clamp(22px, 2vw, 26px); line-height: 1.15; }
:root[dir="rtl"] .hm-path h3 { line-height: 1.45; }
.hm-path p { margin: 0 0 6px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.hm-path .btn { margin-top: auto; }

/* 3. what can we make */
.hm-make__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.hm-make__grid a { display: block; height: 100%; color: inherit; text-decoration: none; }
.hm-make__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--photo); transition: transform .4s ease; }
.hm-make__grid a:hover img { transform: translateY(-3px); }
.hm-make__grid h3 { margin: 16px 0 6px; font-size: 21px; line-height: 1.2; }
:root[dir="rtl"] .hm-make__grid h3 { line-height: 1.5; }
.hm-make__grid p { margin: 0; color: var(--ink-2); line-height: 1.5; font-size: 16px; }
.hm-make__grid a:hover h3, .hm-make__grid a:focus-visible h3 { color: var(--maroon); }

/* 4. services */
.home .hm-svc { background: var(--cobalt); color: #FFFFFF; }
.hm-svc h2, .hm-svc h3 { color: #FFFFFF; }
.hm-svc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(245, 245, 241, .3); }
.hm-svc__item { display: flex; flex-direction: column; gap: 10px; padding: 28px clamp(0px, 2vw, 28px) 30px; color: inherit; text-decoration: none; border-inline-end: 1px solid rgba(245, 245, 241, .3); }
.hm-svc__item:first-child { padding-inline-start: 0; }
.hm-svc__item:last-child { border-inline-end: 0; }
.hm-svc__item h3 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); }
.hm-svc__item p { margin: 0; flex: 1; color: #D7DEEC; line-height: 1.6; }
.hm-svc .hm-more { color: #F2C46B; }
.hm-svc__item:hover .hm-more { color: #fff; }
.hm-diff { margin: 28px 0 0; padding: 20px 24px; max-width: 52rem; border-inline-start: 4px solid #F2C46B; background: rgba(0, 0, 0, .18); color: #E6EBF4; line-height: 1.6; }
.hm-diff b { color: #fff; }

/* 5. recent work */
.hm-work__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hm-work__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.hm-work__grid h3 { margin: 14px 0 6px; font-size: 20px; }
.hm-work__grid p { margin: 4px 0 0; color: var(--ink-2); }

/* 6. how it works + upload */
.home .hm-how { background: var(--surface); border-top: 1px solid var(--line); }
.hm-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.hm-steps li { counter-increment: step; padding-top: 18px; border-top: 3px solid var(--ink); }
.hm-steps li::before { content: counter(step); display: block; font: 800 15px/1 var(--font); color: var(--maroon); margin-bottom: 10px; }
:root[dir="rtl"] .hm-steps li::before { content: counter(step, arabic-indic); }
.hm-steps h3 { font-size: 20px; margin: 0 0 6px; line-height: 1.2; }
:root[dir="rtl"] .hm-steps h3 { line-height: 1.5; }
.hm-steps p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.hm-upload { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); align-items: start; }
.hm-nofile h3, .hm-file h3 { font-size: clamp(22px, 2vw, 28px); margin: 0 0 10px; line-height: 1.2; }
.hm-nofile p { color: var(--ink-2); line-height: 1.55; }
.hm-file .drop { margin-top: 0; width: 100%; }

/* 9. close */
.hm-close .facts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (max-width: 960px) {
  .hm-hero__grid { grid-template-columns: 1fr; }
  .hm-hero__art { max-width: 560px; }
  .hm-paths__grid, .hm-make__grid { grid-template-columns: 1fr 1fr; }
  .hm-paths__grid > :last-child { grid-column: 1 / -1; }
  .hm-svc__grid { grid-template-columns: 1fr; }
  .hm-svc__item { padding-inline: 0; border-inline-end: 0; border-bottom: 1px solid rgba(245, 245, 241, .3); }
  .hm-steps { grid-template-columns: 1fr 1fr; }
  .hm-upload { grid-template-columns: 1fr; }
  .hm-work__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hm-proof { grid-template-columns: 1fr; }
  .hm-actions .btn { flex: 1 1 100%; }
  .hm-paths__grid, .hm-make__grid, .hm-steps, .hm-work__grid { grid-template-columns: 1fr; }
  .hm-path .btn { width: 100%; }
  .hm-make__grid img { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-mosaic img, .hm-make__grid img { transition: none; }
}

/* images keep their frame whatever site.css says about img */
.hm-make__grid img, .hm-work__grid img { display: block; height: auto; max-height: none; }
.hm-more { display: inline; }
.hm-more::after { display: inline; margin-inline-start: 6px; }
.hm-path__tag { color: var(--plate); }

/* ============================ v2: "Print your dreams" ============================ */
/* The hero is a night scene whatever the theme: big type above, a crowd of printed things below. */
.home .hm-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) 0; background: #070A12; color: #F4F7FB; }
.hm-hero__bg { position: absolute; z-index: -1; inset-inline: 0; bottom: 96px; width: 100%; height: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
.hm-hero__grid { display: block; padding-bottom: clamp(210px, 25vw, 440px); }
.hm-hero .hm-kicker { color: #F2C46B; }
.hm-hero .hm-big { font-size: clamp(60px, 10.4vw, 150px); line-height: .9; letter-spacing: -0.045em; font-stretch: 122%; margin: 0 0 clamp(16px, 2vw, 28px); color: #F4F7FB; }
.hm-gold { color: #F2C46B; }
:root[dir="rtl"] .hm-hero .hm-big { font-size: clamp(56px, 10vw, 150px); line-height: 1.2; letter-spacing: 0; }
.hm-sub { margin: 0; max-width: 40rem; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.4; font-weight: 550; color: #E6ECF5; }
.hm-hero .btn-primary, .hm-hero .btn-primary:hover { background: #F2C46B; border-color: #F2C46B; color: #0B1322; }
.hm-hero .btn-primary:hover { background: #FFD98A; border-color: #FFD98A; }
.hm-hero .btn:not(.btn-primary) { color: #F4F7FB; border-color: rgba(244, 247, 251, .65); background: rgba(7, 10, 18, .35); }
.hm-hero .btn:not(.btn-primary):hover { background: #F4F7FB; color: #0B1322; border-color: #F4F7FB; }
.hm-hero .hm-wa { color: #F4F7FB; }
.hm-hero :focus-visible { outline-color: #F2C46B; }
.hm-hero__note { position: absolute; inset-inline-end: var(--gut); bottom: 106px; margin: 0; font-size: 12px; color: #AEB9CC; }
.hm-hero .hm-proof { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; margin: 0; padding-block: 18px; border-top: 1px solid rgba(244, 247, 251, .16); background: #070A12; }
.hm-hero .hm-proof li { color: #F4F7FB; font-size: 14.5px; }
.hm-hero .hm-proof li::before { border-color: #F2C46B; }
.hm-ticker { overflow: hidden; background: #F2C46B; color: #0B1322; font: 750 15px/1 var(--font); letter-spacing: .02em; padding-block: 12px; white-space: nowrap; }
.hm-ticker__run { display: inline-flex; gap: 0; animation: hm-tick 46s linear infinite; }
.hm-ticker__run span { padding-inline-end: .45em; }
@keyframes hm-tick { to { transform: translateX(-50%); } }
:root[dir="rtl"] .hm-ticker__run { animation-name: hm-tick-rtl; }
@keyframes hm-tick-rtl { to { transform: translateX(50%); } }

/* "What can we make?" is a dark gallery of photo tiles */
.home .hm-make { background: #0B1322; color: #F4F7FB; }
.hm-make .hm-head h2 { color: #F4F7FB; font-size: clamp(40px, 6vw, 88px); }
.hm-make .hm-head p { color: #C3CDDD; }
.hm-make .hm-note { color: #94A0B3; }
.hm-make__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-tile { position: relative; min-height: clamp(280px, 30vw, 440px); overflow: hidden; border-radius: 6px; background: #111C30; }
.hm-tile--wide { grid-column: span 2; min-height: clamp(240px, 24vw, 360px); }
.hm-tile a { position: absolute; inset: 0; display: block; color: #fff; }
.hm-make__grid .hm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; border-radius: 0; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.hm-make__grid .hm-tile a:hover img { transform: scale(1.05); }
.hm-tile__txt { position: absolute; inset-inline: 0; bottom: 0; padding: 56px 20px 18px; background: linear-gradient(to top, rgba(5, 10, 28, .94) 0, rgba(5, 10, 28, .78) 48%, transparent 100%); }
.hm-make__grid .hm-tile h3 { margin: 0 0 4px; font-size: clamp(20px, 1.8vw, 26px); color: #fff; }
.hm-make__grid .hm-tile p { margin: 0; color: #DCE3EE; font-size: 15px; line-height: 1.45; }
.hm-make__grid .hm-tile a:hover h3, .hm-make__grid .hm-tile a:focus-visible h3 { color: #F2C46B; }
.hm-tile a:focus-visible { outline: 3px solid #F2C46B; outline-offset: -3px; }
.hm-tile--cta { background: #F2C46B; }
.hm-tile--cta .hm-tile__txt { position: static; background: none; padding: clamp(24px, 3vw, 40px); display: grid; align-content: center; gap: 8px; height: 100%; }
.hm-make__grid .hm-tile--cta h3 { color: #0B1322; font-size: clamp(26px, 3vw, 44px); }
.hm-make__grid .hm-tile--cta p { color: #2A2412; font-size: 17px; max-width: 30rem; }
.hm-make__grid .hm-tile--cta a:hover h3, .hm-make__grid .hm-tile--cta a:focus-visible h3 { color: #0B1322; }
.hm-tile__go { justify-self: start; margin-top: 10px; padding: 12px 20px; background: #0B1322; color: #F4F7FB; font-weight: 700; border-radius: 2px; }
.hm-tile--cta a:focus-visible { outline-color: #0B1322; }

/* services: the printing loop stands beside the three explanations */
.hm-svc__lay { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 22vw, 300px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.hm-svc__lay .hm-svc__grid { grid-template-columns: 1fr; border-top: 0; }
.hm-svc__lay .hm-svc__item { padding: 22px 0; border-inline-end: 0; border-top: 1px solid rgba(245, 245, 241, .3); }
.hm-svc__loop { margin: 0; }
.hm-loop { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: #050A1C; }
.hm-svc__loop figcaption { margin-top: 8px; font-size: 12px; color: #B9C6DE; }

@media (max-width: 960px) {
  .hm-hero .hm-proof { grid-template-columns: 1fr 1fr; }
  .hm-make__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hm-hero__bg { width: 190%; inset-inline: auto; left: -42%; bottom: 150px; }
  .hm-hero__grid { padding-bottom: 62vw; }
  .hm-hero__note { bottom: 158px; }
  .hm-hero .hm-proof { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .hm-hero .hm-proof li { font-size: 13px; }
  .hm-make__grid { grid-template-columns: 1fr; }
  .hm-tile--wide { grid-column: auto; }
  .hm-tile { min-height: 320px; }
  .hm-svc__lay { grid-template-columns: 1fr; }
  .hm-svc__loop { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) { .hm-ticker__run { animation: none; } .hm-make__grid .hm-tile img { transition: none; } }
.hm-make > .wrap.hm-head { max-width: var(--wrap); }
.hm-make > .wrap.hm-head p { max-width: 40rem; }

/* v3: shorter page */
.home main > section { padding-block: clamp(48px, 6vw, 84px); }
.home .hm-hero { padding-block: clamp(40px, 6vw, 88px) 0; }
.hm-shoplinks { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.home .hm-make { background: #2E3338; }       /* brand charcoal */
.hm-tile { background: #23272B; }

/* v4: flow */
.hm-svcline { margin: 28px 0 0; color: var(--ink-2); max-width: 52rem; line-height: 1.6; }
.hm-rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.hm-rise.is-in { opacity: 1; transform: none; }

/* v5: full-width figurine tile and a quiet "something else" strip */
.hm-tile--full { grid-column: 1 / -1; min-height: clamp(240px, 26vw, 380px); }
.hm-make__grid .hm-tile--full img { object-position: 50% 28%; }
.hm-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 12px; padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, .18); border-inline-start: 4px solid #F2C46B; border-radius: 6px; }
.hm-ask h3 { margin: 0 0 4px; color: #fff; font-size: clamp(22px, 2.2vw, 30px); }
.hm-ask p { margin: 0; color: #C3CDDD; max-width: 44rem; }
.hm-ask .btn-primary, .hm-ask .btn-primary:hover { background: #F2C46B; border-color: #F2C46B; color: #0B1322; flex: none; }
@media (max-width: 600px) { .hm-ask .btn { width: 100%; } }

/* The hero's keyword line is the page heading for search engines; the big slogan under it is a styled paragraph. */
.hm-hero .hm-big { font-family: var(--font-cond); font-weight: 800; text-wrap: balance; }
.hm-hero h1.hm-kicker { font-family: inherit; font-size: 14px; font-weight: 650; font-stretch: normal; line-height: 1.5; letter-spacing: .02em; text-wrap: wrap; }

/* Google reviews, near the bottom of the home page */
.hm-reviews { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.rev-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin: 0 0 24px; font-size: 18px; color: var(--ink-2); }
.rev-sum strong { font-family: var(--font-cond); font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--ink); }
.rev-stars { color: #E8A317; font-size: 26px; letter-spacing: 2px; }
.rev-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-bottom: 28px; }
.rev-card { margin: 0; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; display: grid; gap: 10px; align-content: start; }
.rev-card p { margin: 0; line-height: 1.6; } .rev-card cite { font-style: normal; font-weight: 650; } .rev-card .rev-stars { font-size: 16px; }
