/* Molded v3 — colors taken from Malik's own frames:
   green #10312C (wordmark), kraft #C6A27E (boxes), lilac #9A9BE6 (tissue),
   orange #F57548 (M sticker, used only for focus/accents), paper #F2F2F2.
   Fonts (free, Google Fonts): Alexandria, IBM Plex Sans Arabic, Archivo. */
:root {
  --green: #10312C; --green-2: #0E6450; --kraft: #C6A27E; --kraft-d: #8A6440;
  --kraft-l: #E9DCCB; --lilac: #9A9BE6; --lilac-l: #DCDCF6; --paper: #F2F2F2;
  --paper-2: #F7F7F5; --ink: #1A1D1C; --muted: #545B59; --orange: #F57548;
  --asis: repeating-linear-gradient(45deg, #fff 0 4px, #ddd 4px 8px);
  --f-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --f-disp-ar: 'Alexandria', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --f-disp-en: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(1rem, 4vw, 3rem);
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
html.is-locked, html.is-locked body { overflow: hidden; }
body { font-family: var(--f-body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100; background: var(--orange); color: #000; padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 1rem; }
.img-missing { background: repeating-linear-gradient(135deg, #e6e6e6 0 10px, #eee 10px 20px); }

/* display type: Arabic is designed first */
.display, .hero__title, .weare__title, .just__title, .maker__title {
  font-family: var(--f-disp-ar); font-weight: 900; line-height: 1.15; letter-spacing: 0; margin: 0;
}
:lang(en) .display, :lang(en) .hero__title, :lang(en) .weare__title, :lang(en) .just__title, :lang(en) .maker__title {
  font-family: var(--f-disp-en); font-stretch: 62%; font-weight: 900; line-height: .95; letter-spacing: -.005em; text-transform: none;
}
.display { font-size: clamp(2.2rem, 8vw, 5.5rem); }
.kicker { margin: 0 0 .5rem; font-weight: 600; font-size: .85rem; letter-spacing: .02em; color: var(--green-2); }
:lang(en) .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px;
  padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--kraft { background: var(--kraft); color: var(--green); }
.btn--green { background: var(--green); color: var(--paper); }
.btn--ghost { border-color: currentColor; color: var(--paper); background: transparent; }
.btn--ghost-dark { border-color: var(--green); color: var(--green); background: transparent; }
.btn--plain { color: var(--green); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.btn--plain:hover { box-shadow: none; }
.btn--sm { min-height: 46px; padding: .5em 1em; font-size: .95rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4em 1em; border-radius: 999px;
  border: 1.5px solid #c9cccb; background: #fff; cursor: pointer; font-weight: 600; text-decoration: none; font-size: .95rem;
  transition: background .15s, border-color .15s, transform .15s;
}
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); color: var(--paper); border-color: var(--green); }
.round { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--green); background: transparent; color: var(--green); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.round:hover { background: var(--green); color: var(--paper); }
[dir="rtl"] .round { transform: scaleX(-1); }
.count { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em; border-radius: 999px; background: var(--orange); color: #000; font-size: .78em; font-weight: 700; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: .6rem var(--pad); background: rgba(242,242,242,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16,49,44,.1);
}
.top__logo { flex: none; display: block; width: 110px; }
.top__logo img { width: 100%; }
.top__nav { display: flex; gap: .25rem; margin-inline-start: auto; }
.top__nav a { text-decoration: none; font-weight: 600; padding: .5rem .7rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; }
.top__nav a:hover { background: rgba(16,49,44,.08); }
.top__nav a:not(.top__draft) { display: none; }
.lang { min-height: 44px; padding: .3rem .9rem; border-radius: 999px; border: 2px solid var(--green); background: transparent; font-weight: 700; cursor: pointer; color: var(--green); }
.lang:hover { background: var(--green); color: var(--paper); }
@media (min-width: 760px) { .top__nav a:not(.top__draft) { display: inline-flex; } .top__logo { width: 132px; } }

/* hero */
.hero { display: grid; background: var(--green); color: var(--paper); overflow: clip; }
.hero__copy { padding: clamp(2.5rem, 8vw, 6rem) var(--pad) clamp(2rem, 6vw, 4rem); align-self: center; }
.hero .kicker { color: var(--kraft); }
.hero__title { font-size: clamp(2.6rem, 11vw, 6.6rem); text-wrap: balance; }
:lang(en) .hero__title { font-size: clamp(3rem, 13vw, 8rem); }
.hero__sub { max-width: 34ch; font-size: clamp(1.05rem, 2.4vw, 1.3rem); margin: 1.2rem 0 1.8rem; color: #dfe7e4; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__art { position: relative; background: #F5F5F7; aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate; }
.hero__mono { position: absolute; width: 150%; inset-inline-end: -62%; bottom: -46%; z-index: 0; opacity: .11; }
.hero__mono img { width: 100%; height: auto; }
.hero__shot { position: absolute; margin: 0; z-index: 1; mix-blend-mode: multiply; }
.hero__shot img { width: 100%; filter: brightness(1.035) contrast(1.02); } /* lifts the frame's #F7 background to white so multiply drops it */
.hero__shot--a { width: 72%; inset-inline-end: -4%; top: 4%; }
.hero__shot--b { width: 52%; inset-inline-start: 4%; bottom: -2%; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr 1fr; min-height: min(88vh, 860px); }
  .hero__art { aspect-ratio: auto; }
}

/* product rail */
.rail { padding: clamp(3rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem); }
.rail__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding: 0 var(--pad) 1.6rem; }
.rail__ctrl { display: flex; align-items: center; gap: .5rem; }
.rail__hint { font-size: .85rem; color: var(--muted); margin-inline-end: .5rem; }
.rail__track {
  list-style: none; margin: 0; padding: .5rem var(--pad) 1.5rem; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(78vw, 340px); gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: thin;
}
.tile { scroll-snap-align: start; }
.tile__link {
  display: flex; flex-direction: column; height: 100%; border-radius: 26px; text-decoration: none; padding: 12px;
  background: var(--tone, var(--kraft)); color: var(--tone-ink, var(--green));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile--kraft { --tone: var(--kraft); --tone-ink: var(--green); }
.tile--paper { --tone: #fff; --tone-ink: var(--green); }
.tile--green { --tone: var(--green); --tone-ink: var(--paper); }
.tile--lilac { --tone: var(--lilac); --tone-ink: var(--green); }
.tile__link:hover { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 14px 0 rgba(16,49,44,.18); }
[dir="rtl"] .tile__link:hover { transform: translateY(-6px) rotate(1.2deg); }
.tile__media { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #F1F1F1; }
.tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile__link:hover .tile__img { transform: scale(1.05); }
.tile__typo { display: none; }
.tile--typo .tile__media, .tile--missing .tile__media { display: grid; place-items: center; background: rgba(255,255,255,.14); border: 2px dashed currentColor; }
.tile--typo .tile__typo, .tile--missing .tile__typo {
  display: block; padding: 1rem; font-family: var(--f-disp-ar); font-weight: 900; font-size: clamp(2rem, 9vw, 3rem); line-height: 1.1; text-align: center;
}
:lang(en) .tile__typo { font-family: var(--f-disp-en); font-stretch: 62%; font-size: clamp(2.4rem, 10vw, 3.6rem); line-height: .95; }
.tile--missing .tile__img { display: none; }
.tile__nophoto { position: absolute; bottom: 12px; inset-inline: 0; text-align: center; font-size: .8rem; font-weight: 600; opacity: .8; }
.tile__meta { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: baseline; padding: .9rem .4rem .3rem; }
.tile__n { font-family: var(--f-disp-en); font-stretch: 62%; font-weight: 800; font-size: 1rem; opacity: .7; }
.tile__name { font-family: var(--f-disp-ar); font-weight: 800; font-size: 1.35rem; line-height: 1.25; }
:lang(en) .tile__name { font-family: var(--f-disp-en); font-stretch: 70%; font-size: 1.6rem; line-height: 1.05; }
.tile__go { grid-column: 2; font-weight: 700; font-size: .9rem; opacity: .85; transition: transform .3s var(--ease); }
.tile__link:hover .tile__go { transform: translateX(4px); }
[dir="rtl"] .tile__link:hover .tile__go { transform: translateX(-4px); }

/* we are molded */
.weare { background: var(--green); color: var(--paper); overflow: clip; }
.weare__inner { padding: clamp(3.5rem, 10vw, 8rem) var(--pad) clamp(2rem, 6vw, 4rem); }
.weare__title { font-size: clamp(3.2rem, 16vw, 12rem); }
:lang(en) .weare__title { display: none; }               /* EN: the phrase PNG is the headline */
.phrase--weare { width: min(100%, 1100px); margin-top: clamp(1rem, 3vw, 2rem); }
:lang(ar) .phrase--weare { width: min(70%, 640px); opacity: .9; }
.weare__body { max-width: 46ch; font-size: clamp(1.05rem, 2.4vw, 1.35rem); margin: 1.6rem 0 0; color: #dfe7e4; }
.weare__crop { background: var(--kraft); height: clamp(110px, 24vw, 300px); overflow: hidden; display: flex; align-items: flex-start; justify-content: center; }
.weare__crop img { width: 118%; max-width: none; flex: none; transform: translateY(14%); }

/* how it works */
.how { padding: clamp(3.5rem, 9vw, 7rem) var(--pad); }
.how__head { margin-bottom: 2rem; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.step { display: grid; gap: 1rem; background: #fff; border-radius: 28px; padding: 14px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.step:nth-child(2) { background: var(--kraft-l); }
.step:nth-child(3) { background: var(--lilac-l); }
.step:nth-child(4) { background: var(--green); color: var(--paper); }
.step figure { margin: 0; border-radius: 18px; overflow: hidden; background: #DFDEE3; aspect-ratio: 978 / 811; }
.step figure img { width: 100%; height: 100%; object-fit: cover; }
.step__txt { padding: .2rem .6rem .8rem; }
.step__n { font-family: var(--f-disp-en); font-stretch: 62%; font-weight: 900; font-size: clamp(3.5rem, 12vw, 7rem); line-height: .9; display: block; color: var(--green-2); }
.step:nth-child(4) .step__n { color: var(--kraft); }
.step h3 { font-family: var(--f-disp-ar); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1.25; margin: .4rem 0 .4rem; }
:lang(en) .step h3 { font-family: var(--f-disp-en); font-stretch: 70%; line-height: 1.05; }
.step p { margin: 0; max-width: 40ch; font-size: 1.05rem; }
@media (min-width: 900px) {
  .step { grid-template-columns: 1.1fr 1fr; align-items: center; position: sticky; top: calc(84px + var(--i, 0) * 18px); min-height: 60vh; }
  .step:nth-child(1) { --i: 0; } .step:nth-child(2) { --i: 1; } .step:nth-child(3) { --i: 2; } .step:nth-child(4) { --i: 3; }
  .how__steps { gap: 3rem; }
}

/* just for you */
.just { background: var(--lilac); color: var(--green); padding: clamp(3.5rem, 10vw, 8rem) var(--pad); overflow: clip; }
.phrase--just { width: min(100%, 1000px); }
.just__title { font-size: clamp(2.2rem, 9vw, 6rem); margin-top: 1.4rem; text-wrap: balance; }
.just__cta { margin-top: 2rem; }

/* honest band */
.honest { padding: clamp(2rem, 6vw, 3.5rem) var(--pad); border-top: 2px dashed var(--kraft); border-bottom: 2px dashed var(--kraft); display: grid; gap: .3rem; }
.honest h2 { margin: 0; font-family: var(--f-disp-ar); font-weight: 800; font-size: 1.5rem; }
:lang(en) .honest h2 { font-family: var(--f-disp-en); font-stretch: 70%; font-size: 1.8rem; }
.honest p { margin: 0; max-width: 60ch; color: var(--muted); }
@media (min-width: 760px) { .honest { grid-template-columns: 1fr 2fr; align-items: center; } }

/* footer */
.foot { background: var(--kraft); color: var(--green); padding: clamp(2.5rem, 7vw, 4rem) var(--pad) 2rem; }
.foot__logo { width: min(100%, 520px); margin-bottom: 1.5rem; }
.foot p { margin: .3rem 0; }
.foot__social a { font-weight: 700; }
.foot__copy { font-size: .85rem; opacity: .8; margin-top: 1.4rem !important; }

/* reveals (scroll) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@supports (animation-timeline: scroll()) {
  .hero__mono img { animation: mono linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  .weare__crop img { animation: crop linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes mono { to { transform: translateY(12%) scale(1.08); } }
  @keyframes crop { from { transform: translateY(40%); } to { transform: translateY(8%); } }
}

/* ---------- full-screen views ---------- */
.view { position: fixed; inset: 0; z-index: 50; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.maker__bar {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem;
  padding: .55rem var(--pad); background: var(--green); color: var(--paper);
}
.back { min-height: 44px; padding: .3rem .9rem; border-radius: 999px; border: 2px solid rgba(255,255,255,.5); background: transparent; color: var(--paper); font-weight: 700; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.back:hover { background: rgba(255,255,255,.12); }
[dir="rtl"] .back > span[aria-hidden] { transform: scaleX(-1); display: inline-block; }
.maker__title { font-size: clamp(1.3rem, 5vw, 2.2rem); line-height: 1.2; overflow-wrap: anywhere; }
.maker__draftlink { color: var(--paper); font-weight: 700; text-decoration: none; display: none; gap: .3rem; align-items: center; min-height: 44px; }
@media (min-width: 900px) { .maker__draftlink { display: inline-flex; } }

.maker__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding: 1rem var(--pad) 7.5rem; }
.maker__body > * { min-width: 0; }
@media (max-width: 899px) {
  .stagewrap { position: sticky; top: 58px; z-index: 3; background: var(--paper); margin-inline: calc(var(--pad) * -1); padding: .5rem var(--pad) .3rem; box-shadow: 0 8px 12px -10px rgba(0,0,0,.2); }
  .stage { max-height: 40vh; }
  .honest-tag { font-size: .78rem; margin-bottom: .4rem; }
  .strip { margin-top: .45rem; }
  .stage__note { font-size: .78rem; margin-top: .35rem; }
  .thumbs { padding-top: .45rem; }
  .thumb { width: 48px; height: 48px; }
}
@media (max-width: 899px) { #maker { scroll-padding-top: calc(40vh + 200px); scroll-padding-bottom: 96px; } }
@media (max-width: 899px) and (max-height: 640px) { .stage { max-height: 30vh; } #maker { scroll-padding-top: calc(30vh + 200px); } }
@media (min-width: 900px) {
  .maker__body { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); align-items: start; gap: 2.5rem; padding-bottom: 3rem; }
  .stagewrap { position: sticky; top: 78px; }
}
.honest-tag { margin: 0 0 .6rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 700; color: var(--green); background: var(--kraft-l); border-radius: 999px; padding: .3rem .8rem; }
.honest-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }

.stage { position: relative; aspect-ratio: var(--ar, 1 / 1); width: 100%; max-height: 74vh; margin-inline: auto; background: #F1F1F1; border-radius: var(--r); overflow: hidden; isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none; }
@media (min-width: 900px) { .stage { max-width: min(100%, 74vh); } }
.stage__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 0; }
.stage__typo { position: absolute; inset: 0; display: none; place-items: center; background: var(--kraft); color: var(--green); padding: 8%; }
.stage[data-tone="green"] .stage__typo { background: var(--green); color: var(--paper); }
.stage[data-tone="lilac"] .stage__typo { background: var(--lilac); }
.stage[data-tone="paper"] .stage__typo { background: #fff; }
.stage__typo.is-dark { color: var(--paper); }
.stage__typoname { font-family: var(--f-disp-ar); font-weight: 900; font-size: clamp(2rem, 9vw, 4.5rem); line-height: 1.1; text-align: center; opacity: .22; }
:lang(en) .stage__typoname { font-family: var(--f-disp-en); font-stretch: 62%; line-height: .95; }
.stage.is-typo .stage__typo, .stage.is-missing .stage__typo { display: grid; }
.stage.is-typo .stage__photo, .stage.is-missing .stage__photo { visibility: hidden; }
.stage__missing { display: none; position: absolute; bottom: 8px; inset-inline: 8px; font: 600 .7rem/1.3 ui-monospace, monospace; color: var(--green); opacity: .7; text-align: center; direction: ltr; }
.stage.is-missing .stage__missing { display: block; }
.plane { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; z-index: 1; }
.plane--tint { opacity: 0; transition: opacity .25s, background-color .25s; }
.plane--print { z-index: 2; }
.zone { position: absolute; inset: 0; border: 2px dashed rgba(16,49,44,.55); border-radius: 6px; background: rgba(255,255,255,.12); }
.stage.is-typo .zone, .stage.is-missing .zone { border-color: currentColor; color: rgba(16,49,44,.5); }
.logo { position: absolute; pointer-events: auto; cursor: grab; touch-action: none; }
.logo:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.stage.is-dragging .logo { cursor: grabbing; }
.line { position: absolute; inset-inline: 6%; bottom: 7%; text-align: center; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-body); }
.callayer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.stage.is-cal { cursor: crosshair; }
.stage.is-cal .plane { opacity: .35; }
.calpt { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--orange); color: #000; font: 700 .8rem/26px sans-serif; text-align: center; }
.strip { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.strip__c { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .7rem .2rem .25rem; border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 600; }
[dir="rtl"] .strip__c { padding: .2rem .25rem .2rem .7rem; }
.strip__c i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.stage__note { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .7rem 2px .4rem; scrollbar-width: thin; }
.thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; padding: 0; border: 2px solid transparent; background: #F1F1F1; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--green); }
.cal { margin-top: .8rem; padding: 1rem; border: 2px dashed var(--orange); border-radius: 14px; background: #fff; font-size: .9rem; }
.cal output { display: block; font: .8rem/1.4 ui-monospace, monospace; white-space: pre-wrap; margin: .5rem 0; }
.cal__btns { display: flex; gap: .5rem; flex-wrap: wrap; }

.panel { display: grid; gap: 1rem; }
.sec { border: 0; margin: 0; padding: 1rem; background: #fff; border-radius: var(--r); min-width: 0; }
.sec legend { float: inline-start; width: 100%; padding: 0; margin-bottom: .7rem; font-family: var(--f-disp-ar); font-weight: 800; font-size: 1.15rem; }
:lang(en) .sec legend { font-family: var(--f-disp-en); font-stretch: 75%; font-size: 1.35rem; }
.sec legend + * { clear: both; }
.chips, .swatches, .row { display: flex; flex-wrap: wrap; gap: .5rem; }
.row--qty { align-items: end; }
.sw { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; width: 74px; padding: .35rem .2rem; border: 2px solid transparent; border-radius: 14px; background: transparent; cursor: pointer; font-size: .75rem; font-weight: 600; text-align: center; line-height: 1.2; position: relative; }
.sw__dot { width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.15); transition: transform .2s var(--ease); }
.sw:hover .sw__dot { transform: scale(1.08); }
.sw[aria-pressed="true"], .sw--custom[data-on] { border-color: var(--green); background: var(--paper); }
.sw--custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.sw--custom:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.swatches--sm .sw { width: 64px; }
.swatches--sm .sw__dot { width: 32px; height: 32px; }
.pcolor { margin-top: .9rem; }
.pcolor__lbl { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .8rem; }
.dims label, .field { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; }
.field { margin-top: .8rem; }
.row--qty .field { margin-top: 0; flex: 1 1 160px; }
input[type="text"], input[type="number"], textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1.5px solid #c9cccb; border-radius: 12px; background: var(--paper-2); font-size: 1rem;
}
textarea { resize: vertical; min-height: 96px; }
input:disabled { opacity: .5; }
input[type="range"] { width: 100%; accent-color: var(--green); min-height: 44px; }
.check { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--green); }
.upload { display: grid; gap: .3rem; justify-items: start; position: relative; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload__btn { display: inline-flex; align-items: center; min-height: 48px; padding: .5rem 1.2rem; border-radius: 999px; background: var(--kraft); color: var(--green); font-weight: 700; cursor: pointer; }
.upload:focus-within .upload__btn { outline: 3px solid var(--orange); outline-offset: 3px; }
.upload__hint, .hint { font-size: .82rem; color: var(--muted); margin: 0; }
.logoctl .row { margin: .4rem 0; }
.panel__actions { display: none; gap: .7rem; flex-wrap: wrap; }
.live { margin: 0; font-weight: 600; color: var(--green-2); min-height: 1.6em; }
@media (min-width: 900px) { .panel__actions { display: flex; } }

.dock {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 6; display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; align-items: center;
  padding: .6rem var(--pad) calc(.6rem + env(safe-area-inset-bottom)); background: var(--green); color: var(--paper);
  box-shadow: 0 -6px 20px rgba(0,0,0,.12);
}
.dock__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dock .btn--ghost-dark { border-color: rgba(255,255,255,.6); color: var(--paper); }
@media (max-width: 400px) { .dock { grid-template-columns: 1fr 1fr; } .dock__name { display: none; } }
@media (min-width: 900px) { .dock { display: none; } }

/* draft */
.draft__body { max-width: 980px; margin: 0 auto; padding: 1.2rem var(--pad) 4rem; display: grid; gap: 1.2rem; }
.notice { border-radius: var(--r); background: var(--lilac-l); border-inline-start: 6px solid var(--lilac); padding: 1rem 1.2rem; display: grid; gap: .5rem; }
.notice p { margin: 0; font-weight: 600; }
.notice p[lang="en"] { font-family: var(--f-body); text-align: left; }
.notice p[lang="ar"] { text-align: right; }
.draft__who { display: grid; gap: .8rem; }
.draft__who .field { margin: 0; }
@media (min-width: 700px) { .draft__who { grid-template-columns: 1fr 1fr; } }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: it; }
.item { display: grid; gap: 1rem; background: #fff; border-radius: var(--r); padding: 12px; }
.item__fig { margin: 0; max-width: 220px; }
.item__fig figcaption { font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.item__media { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #F1F1F1; max-width: 220px; }
.item__img { width: 100%; height: 100%; object-fit: cover; }
.item__typo { display: grid; place-items: center; width: 100%; height: 100%; padding: .8rem; text-align: center; font-family: var(--f-disp-ar); font-weight: 900; font-size: 1.4rem; background: var(--tone); color: var(--tone-ink); }
.item h3 { margin: 0 0 .5rem; font-family: var(--f-disp-ar); font-weight: 800; font-size: 1.4rem; }
:lang(en) .item h3 { font-family: var(--f-disp-en); font-stretch: 70%; font-size: 1.7rem; }
.item dl { margin: 0 0 .8rem; display: grid; gap: .25rem; }
.item dl div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: .5rem; font-size: .95rem; }
.item dt { color: var(--muted); }
.item dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 640px) { .item { grid-template-columns: 180px 1fr; } }
.draft__actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.empty { font-size: 1.1rem; color: var(--muted); }
.sumtext { white-space: pre-wrap; background: #fff; padding: 1rem; border-radius: 12px; font-size: .85rem; user-select: all; }

/* motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .tile__link:hover, [dir="rtl"] .tile__link:hover, .btn:hover { transform: none; }
}

/* print: the draft only */
@media print {
  body > *:not(#draft) { display: none !important; }
  html.is-locked, html.is-locked body { overflow: visible; }
  #draft { position: static; overflow: visible; display: block !important; background: #fff; }
  #draft .maker__bar, .draft__actions, .live, .item .row, .sumtext { display: none !important; }
  .draft__who input { border: 0; padding: 0; min-height: 0; background: none; }
  .item { break-inside: avoid; border: 1px solid #ddd; }
  .notice { border: 1px solid #999; }
}

/* v3.1 */
.plane--tint.is-solid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(0,0,0,.14)); pointer-events: none; }
.item__media .snap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.item__media .snap > .stage { position: absolute; left: 0; top: 0; max-width: none; max-height: none; margin: 0; border-radius: 0; transform-origin: 0 0; pointer-events: none; }
