/* ==========================================================================
   Samia Studios — design system v3 "Modernist Comic Signal"
   Warm paper, ink lines, hard shadows, a sun wheel and a star. Heavy condensed
   headlines, calm body text, flat illustrated worlds. Human, professional, clean.
   Type: Archivo (display) · Figtree (body, UI) · Fraunces (Journal reading) · Amiri (Arabic)
   Shared by every Samia site. Light only. Motion is gentle and optional.
   ========================================================================== */

:root {
  /* paper and ink */
  --paper:   #FFF7E6;
  --paper-2: #FFFDF7;
  --sand:    #F3E9D2;
  --line:    #E4D9C2;
  --ink:     #15131A;
  --ink-2:   #3A3744;
  --muted:   #6F6A7A;
  /* signal colours */
  --red:     #F03D2E;
  --sun:     #FFD23F;
  --blue:    #2A5BFF;
  --blue-2:  #1E45CC;
  --green:   #2BB463;
  --pink:    #FF8AC4;
  --violet:  #7D5CFF;
  --orange:  #FF8A3D;
  /* tints */
  --sky:     #CFE4FF;
  --lemon:   #FFF0A8;
  --mint:    #CFF3DA;
  --lilac:   #E4DCFF;
  --peach:   #FFDCC2;
  --rose:    #FFD6EA;

  --bg: var(--paper); --surface: var(--paper-2); --text: var(--ink-2); --heading: var(--ink);

  --display: "Archivo", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif;
  --sans:    "Figtree", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --serif:   "Fraunces", "Iowan Old Style", Georgia, serif;
  --arabic:  "Amiri", "Noto Naskh Arabic", serif;

  --fs-display: clamp(3.4rem, 2rem + 7.5vw, 9rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.2vw, 5.4rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --fs-lead: clamp(1.08rem, 1rem + .4vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-small: .92rem;
  --fs-label: .74rem;

  /* spacing scale: every margin and gap on the sites comes from here */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --wrap: 1280px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(64px, 8vw, 112px);
  --r: 4px; --r-lg: 8px; --pill: 999px;
  --bw: 2px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: light;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; position: relative; }
/* paper grain, fixed, very light */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1000; opacity: .045; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sun); color: var(--ink); }
[hidden] { display: none !important; }
button { font: inherit; }
section[id], [id].anchor { scroll-margin-top: 92px; }

h1, h2, h3, h4 { color: var(--heading); margin: 0 0 .4em; text-wrap: balance; }
h1, h2, .display { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: -.025em; font-variation-settings: "wdth" 76; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -.01em; font-variation-settings: "wdth" 88; text-transform: uppercase; }
h4 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.display { font-size: var(--fs-display); line-height: .86; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 36em; }
.small { font-size: var(--fs-small); }
.muted { color: var(--muted); }
.measure { max-width: 34em; }
.center { text-align: center; } .center .lead, .center .measure { margin-inline: auto; }
.accent { color: var(--red); } .accent-blue { color: var(--blue); } .accent-sun { color: var(--sun); }
.arabic { font-family: var(--arabic); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Outlined comic headline: red fill, ink stroke, hard shadow */
.comic-title { color: var(--red); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.comic-title.sun { color: var(--sun); } .comic-title.paper { color: var(--paper); } .comic-title.blue { color: var(--blue); }
@media (max-width: 600px) { .comic-title { text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke-width: 1px; } }

/* Caption boxes and labels (comic captions) */
.caption { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-label); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--sun); border: var(--bw) solid var(--ink); padding: 6px 12px; box-shadow: 3px 3px 0 var(--ink); border-radius: 2px; line-height: 1.2; margin: 0 0 var(--s3); }
.caption.paper { background: var(--paper-2); } .caption.pink { background: var(--pink); } .caption.sky { background: var(--sky); } .caption.mint { background: var(--mint); } .caption.lilac { background: var(--lilac); } .caption.red { background: var(--red); color: var(--paper); } .caption.ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--red); }
.label { font-family: var(--sans); font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: .6em; margin: 0 0 var(--s2); }
.label::before { content: ""; width: 10px; height: 10px; background: currentColor; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.label.blue { color: var(--blue); } .label.ink { color: var(--ink); } .label.paper { color: var(--paper); } .label.sun { color: var(--sun); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--pill); border: 1.5px solid var(--ink); color: var(--ink); background: var(--paper-2); line-height: 1.2; }
.pill.sun { background: var(--sun); } .pill.mint { background: var(--mint); } .pill.sky { background: var(--sky); } .pill.rose { background: var(--rose); } .pill.lilac { background: var(--lilac); } .pill.ink { background: var(--ink); color: var(--paper); }

/* Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.section.tight { padding-block: calc(var(--section) * .6); }
.band { background: var(--sand); border-block: var(--bw) solid var(--ink); }
.band.sun { background: var(--sun); } .band.pink { background: var(--pink); } .band.sky { background: var(--sky); } .band.lilac { background: var(--lilac); } .band.mint { background: var(--mint); }
.band.ink { background: var(--ink); color: rgba(255,247,230,.82); --heading: var(--paper); --text: rgba(255,247,230,.82); --muted: rgba(255,247,230,.6); --line: rgba(255,247,230,.18); --surface: #221F2B; }
.band.ink a:not(.btn) { color: var(--sun); }
.band + .band { border-top: 0; }
.halftone { background-image: radial-gradient(rgba(21,19,26,.14) .8px, transparent .9px); background-size: 6px 6px; }

.grid { display: grid; gap: var(--s3); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(28px, 5vw, 72px); }
.grid.sidebar { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(24px, 4vw, 64px); }
@media (max-width: 980px) { .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.sidebar, .grid.split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .grid.two, .grid.three, .grid.four { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 1em; }
.mt-1 { margin-top: var(--s2); } .mt-2 { margin-top: var(--s4); } .mt-3 { margin-top: var(--s6); }
.mb-1 { margin-bottom: var(--s2); } .mb-2 { margin-bottom: var(--s4); } .mb-3 { margin-bottom: var(--s6); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .lead { margin-top: var(--s2); }
.section-head.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s3) clamp(24px, 4vw, 64px); align-items: end; }
.section-head.split .lead { margin-top: 0; }
@media (max-width: 980px) { .section-head.split { grid-template-columns: minmax(0, 1fr); align-items: start; } }
.actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); background: var(--paper); border-bottom: var(--bw) solid var(--ink); isolation: isolate; }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--paper); pointer-events: none; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand .mark.beam { width: auto; height: 50px; }
@media (max-width: 480px) { .brand .mark.beam { height: 42px; } }
.wordmark { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.05rem; line-height: .88; letter-spacing: -.02em; font-variation-settings: "wdth" 80; display: grid; }
.wordmark small { font-size: .78em; letter-spacing: .06em; font-weight: 800; }
.wordmark .desk { color: var(--red); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-weight: 600; font-size: .96rem; }
.nav a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { text-decoration: none; border-bottom-color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .btn { padding: .7em 1.1em; font-size: .92rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 2px; border: var(--bw) solid var(--ink); background: var(--paper-2); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 900px) {
  .site-header .wrap { height: 68px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: var(--bw) solid var(--ink); padding: var(--s1) var(--gutter) var(--s3); box-shadow: 0 20px 40px -20px rgba(21,19,26,.35); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1.5px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red); }
  .nav .btn { margin-top: var(--s2); justify-content: center; border-bottom: var(--bw) solid var(--ink); }
  .nav-toggle { display: inline-flex; }
}

/* Buttons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: .98rem; padding: .85em 1.4em; border-radius: var(--r); background: var(--ink); color: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; line-height: 1; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s; text-decoration: none !important; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.red { background: var(--red); color: var(--paper); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.blue { background: var(--blue); color: var(--paper); }
.btn.paper, .btn.ghost { background: var(--paper-2); color: var(--ink); }
.btn.lg { font-size: 1.08rem; padding: 1em 1.6em; }
.btn .arrow { transition: transform .2s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.link-arrow { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.link-arrow .arrow { color: var(--red); }

/* Panels ------------------------------------------------------------------ */
.panel { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.panel.lg { box-shadow: var(--shadow-lg); }
.panel.flat { box-shadow: none; }
.panel.pad { padding: clamp(22px, 3vw, 36px); }
.tile { --text: var(--ink-2); --heading: var(--ink); --muted: #6F6A7A; background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 12px; position: relative; color: var(--text); transition: transform .25s var(--ease), box-shadow .25s var(--ease); min-width: 0; }
.tile > * { margin: 0; }
.tile h3 { margin-top: 4px; }
.tile .foot { margin-top: auto; padding-top: 10px; }
a.tile:hover { text-decoration: none; transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.tile.paper { background: var(--paper-2); } .tile.sky { background: var(--sky); } .tile.rose { background: var(--rose); } .tile.lilac { background: var(--lilac); } .tile.mint { background: var(--mint); } .tile.peach { background: var(--peach); } .tile.lemon { background: var(--lemon); } .tile.sun { background: var(--sun); } .tile.pink { background: var(--pink); }
.tile.ink { background: var(--ink); --text: rgba(255,247,230,.85); --heading: var(--paper); --muted: rgba(255,247,230,.6); }
.tile.ink h3 { color: var(--paper); }
.tile.red { background: var(--red); --text: var(--paper); --heading: var(--paper); } .tile.red h3 { color: var(--paper); }
.tile.blue { background: var(--blue); --text: var(--paper); --heading: var(--paper); } .tile.blue h3 { color: var(--paper); }
.icon { width: 40px; height: 40px; display: block; color: currentColor; flex: none; }
.icon-tile { width: 60px; height: 60px; border-radius: var(--r); display: grid; place-items: center; background: var(--sun); color: var(--ink); flex: none; border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.icon-tile .icon { width: 34px; height: 34px; }
.icon-tile.sky { background: var(--sky); } .icon-tile.rose { background: var(--rose); } .icon-tile.mint { background: var(--mint); } .icon-tile.peach { background: var(--peach); } .icon-tile.lemon { background: var(--lemon); } .icon-tile.lilac { background: var(--lilac); } .icon-tile.pink { background: var(--pink); } .icon-tile.ink { background: var(--ink); color: var(--paper); } .icon-tile.red { background: var(--red); color: var(--paper); } .icon-tile.blue { background: var(--blue); color: var(--paper); }

/* Status chips for desks */
.status { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--green); } .status.soon { color: var(--blue); } .status.later { color: var(--muted); }
.tile .status { margin-bottom: 2px; }

/* Comic cover (home hero) ------------------------------------------------- */
.cover { padding-block: clamp(20px, 3vw, 36px) clamp(40px, 6vw, 72px); }
.edition { display: flex; justify-content: space-between; gap: var(--s2); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-block: 1.5px solid var(--ink); padding: 9px 2px; margin-bottom: var(--s3); }
.edition span:nth-child(2) { text-align: center; }
.edition span:last-child { text-align: right; }
.masthead { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-variation-settings: "wdth" 68; font-size: clamp(3.6rem, 12.5vw, 11.5rem); letter-spacing: -.045em; line-height: .84; color: var(--red); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin: 0 0 var(--s4); padding-top: .06em; }
.masthead .star { font-size: .42em; color: var(--blue); transform: translateY(-.9em); display: inline-block; animation: spin-slow 40s linear infinite; }
.cover-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); border: 3px solid var(--ink); box-shadow: var(--shadow-lg); border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.cover-copy { padding: clamp(26px, 3.6vw, 52px); display: flex; flex-direction: column; align-items: flex-start; border-right: 3px solid var(--ink); position: relative; }
.cover-copy h1 { font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5rem); margin: 0 0 var(--s3); font-variation-settings: "wdth" 70; }
.cover-copy .lead { margin-bottom: var(--s4); }
.cover-copy .actions { margin-bottom: var(--s4); }
.signature { margin-top: auto; display: flex; align-items: center; gap: 16px; font-size: .78rem; font-weight: 700; line-height: 1.4; color: var(--ink); padding-top: var(--s3); }
.signature .arabic { font-size: 2.6rem; line-height: 1; color: var(--blue); }
.city-panel { position: relative; background: var(--sun); overflow: hidden; min-height: 420px; }
.city-panel img, .city-panel svg { width: 100%; height: 100%; object-fit: cover; }
.city-panel .caption { position: absolute; top: 18px; left: 18px; margin: 0; background: var(--paper-2); }
.stamp { position: absolute; right: 18px; bottom: 20px; width: 104px; height: 104px; border: var(--bw) solid var(--ink); border-radius: 50%; background: var(--pink); display: grid; place-content: center; text-align: center; font-family: var(--display); font-weight: 900; font-size: 1.05rem; line-height: .95; text-transform: uppercase; color: var(--ink); transform: rotate(8deg); box-shadow: 3px 3px 0 var(--ink); animation: wobble 6s ease-in-out infinite; }
.cover-strip { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: var(--s4); padding: 14px 0; border-block: var(--bw) solid var(--ink); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(.82rem, 1.5vw, 1.15rem); font-variation-settings: "wdth" 86; letter-spacing: .02em; }
.cover-strip b { color: var(--red); font-size: 1.3em; line-height: 1; }
@media (max-width: 820px) {
  .edition span:nth-child(2) { display: none; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 0; text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke-width: 1px; font-size: clamp(3.6rem, 18vw, 7rem); }
  .masthead .star { transform: none; font-size: .5em; position: absolute; right: var(--gutter); top: 0; }
  .masthead { position: relative; }
  .cover-panels { grid-template-columns: minmax(0, 1fr); box-shadow: var(--shadow); }
  .cover-copy { border-right: 0; border-bottom: 3px solid var(--ink); }
  .city-panel { min-height: 0; aspect-ratio: 1 / 1; }
  .stamp { width: 84px; height: 84px; font-size: .9rem; }
}

/* Simple page hero (inner pages) */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); border-bottom: var(--bw) solid var(--ink); background: var(--paper); }
.hero.sun { background: var(--sun); } .hero.pink { background: var(--pink); } .hero.sky { background: var(--sky); } .hero.lilac { background: var(--lilac); } .hero.mint { background: var(--mint); } .hero.rose { background: var(--rose); } .hero.lemon { background: var(--lemon); }
.hero h1 { max-width: 12em; }
.hero .lead { margin-top: var(--s2); }
.hero .actions { margin-top: var(--s4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-grid .art { max-width: 420px; } }
.art { position: relative; width: 100%; }
.art.framed { border: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg); border-radius: var(--r); overflow: hidden; background: var(--sun); transform: rotate(1.5deg); }
.art.framed img, .art.framed svg { width: 100%; height: 100%; object-fit: cover; }

/* Marquee ----------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: var(--bw) solid var(--ink); background: var(--sun); color: var(--ink); padding-block: 12px; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; font-family: var(--display); font-weight: 900; font-size: clamp(1rem, .9rem + .8vw, 1.5rem); text-transform: uppercase; letter-spacing: .02em; font-variation-settings: "wdth" 82; }
.marquee-track span { padding-inline: 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 24px; }
.marquee-track span::after { content: "✦"; color: var(--red); }
.marquee.ink { background: var(--ink); color: var(--paper); } .marquee.red { background: var(--red); color: var(--paper); } .marquee.red .marquee-track span::after { color: var(--sun); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats ------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.stats > div { padding: clamp(20px, 2.4vw, 30px); border-right: var(--bw) solid var(--ink); }
.stats > div:last-child { border-right: 0; }
.stats > div:nth-child(even) { background: var(--lemon); }
.stats .num { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; color: var(--ink); letter-spacing: -.03em; font-variation-settings: "wdth" 80; }
.stats .l { font-size: var(--fs-small); color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: var(--bw) solid var(--ink); } .stats > div:nth-child(even) { background: var(--surface); } .stats > div:nth-child(2), .stats > div:nth-child(3) { background: var(--lemon); } }

/* Workflow strip: five slanted comic panels ------------------------------- */
.workflow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); counter-reset: wf; }
.workflow > div { position: relative; padding: clamp(22px, 2.4vw, 30px) clamp(18px, 2vw, 26px); background: var(--surface); border-right: var(--bw) solid var(--ink); display: grid; gap: 10px; align-content: start; counter-increment: wf; min-width: 0; }
.workflow > div:last-child { border-right: 0; }
.workflow > div::before { content: counter(wf, decimal-leading-zero); font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--red); letter-spacing: -.02em; font-variation-settings: "wdth" 80; }
.workflow .wf-art { height: 110px; display: grid; place-items: center; }
.workflow .wf-art svg { width: 96px; height: 96px; }
.workflow h3 { font-size: 1.1rem; margin: 0; }
.workflow p { font-size: var(--fs-small); margin: 0; }
.workflow > div:nth-child(1) { background: var(--lemon); } .workflow > div:nth-child(2) { background: var(--rose); } .workflow > div:nth-child(3) { background: var(--sky); } .workflow > div:nth-child(4) { background: var(--mint); } .workflow > div:nth-child(5) { background: var(--peach); }
@media (max-width: 980px) { .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workflow > div { border-bottom: var(--bw) solid var(--ink); } .workflow > div:nth-child(even) { border-right: 0; } .workflow > div:last-child { grid-column: 1 / -1; border-bottom: 0; } }
@media (max-width: 560px) { .workflow { grid-template-columns: minmax(0, 1fr); } .workflow > div { border-right: 0; } }

/* Cards and work ---------------------------------------------------------- */
.card { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); }
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.work-card { border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease); min-width: 0; }
.work-card:hover { text-decoration: none; transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.work-card .cover-art { aspect-ratio: 16 / 10; border-bottom: var(--bw) solid var(--ink); background: var(--sun); overflow: hidden; }
.work-card .cover-art img, .work-card .cover-art svg { width: 100%; height: 100%; object-fit: cover; }
.work-card .meta { padding: clamp(18px, 2.4vw, 26px); display: flex; justify-content: space-between; gap: var(--s2); align-items: center; }
.work-card .meta h3 { margin: 0 0 4px; }
.work-card .meta .kind { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 760px) { .work { grid-template-columns: minmax(0, 1fr); } .work-card .meta .btn { display: none; } }

/* Mini dashboard preview */
.mini-dash { background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 8px 8px 0 var(--sun), 8px 8px 0 2px var(--ink); }
.mini-dash .top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: var(--bw) solid var(--ink); font-size: .82rem; font-weight: 700; background: var(--sand); }
.mini-dash .dots { display: inline-flex; gap: 5px; } .mini-dash .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); } .mini-dash .dots i:nth-child(2) { background: var(--red); } .mini-dash .dots i:nth-child(3) { background: var(--sun); }
.mini-dash .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.mini-dash .kpi { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 10px 12px; background: var(--paper-2); min-width: 0; }
.mini-dash .kpi.sky { background: var(--sky); } .mini-dash .kpi.lemon { background: var(--lemon); } .mini-dash .kpi.mint { background: var(--mint); } .mini-dash .kpi.rose { background: var(--rose); }
.mini-dash .kpi .l { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mini-dash .kpi .v { font-family: var(--display); font-weight: 900; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); line-height: 1.1; color: var(--ink); font-variation-settings: "wdth" 80; }
.mini-dash .kpi .d { font-size: .74rem; font-weight: 700; color: var(--green); }
.mini-dash .chart { padding: 0 14px 14px; }
@media (max-width: 480px) { .mini-dash .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pricing ----------------------------------------------------------------- */
.tier { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.tier .price { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; color: var(--ink); letter-spacing: -.03em; font-variation-settings: "wdth" 80; }
.tier .price small { font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.tier .checks { margin-top: auto; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: var(--fs-small); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--sun); color: var(--ink); font-weight: 900; font-size: .75rem; display: grid; place-items: center; margin-top: 2px; }
.featured { outline: 3px solid var(--ink); outline-offset: 4px; }

/* Lists, FAQ -------------------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list li { display: flex; gap: 14px; align-items: flex-start; }
.list .n { flex: none; width: 32px; height: 32px; border: var(--bw) solid var(--ink); border-radius: 2px; background: var(--sun); display: grid; place-items: center; font-family: var(--display); font-weight: 900; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.faq details { border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--surface); padding: 0; margin-bottom: 12px; box-shadow: 3px 3px 0 var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 900; font-size: 1.4rem; color: var(--red); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; }

/* Forms ------------------------------------------------------------------- */
.form { display: grid; gap: var(--s2); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
@media (max-width: 600px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea, .inline-form input { font: inherit; width: 100%; padding: 12px 14px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus { outline: 3px solid var(--sun); outline-offset: 2px; }
.field textarea { min-height: 130px; resize: vertical; }
.inline-form { display: flex; gap: 12px; max-width: 540px; }
.inline-form input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .inline-form { flex-direction: column; } .inline-form .btn { width: 100%; } }
.form-note { font-size: .85rem; color: var(--muted); }
.form-msg { font-size: .95rem; padding: 12px 16px; border-radius: var(--r); border: var(--bw) solid var(--ink); background: var(--mint); color: var(--ink); margin-top: var(--s2); }
.form-msg.error { background: var(--rose); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(255,247,230,.78); padding-block: var(--s6) calc(var(--s4) + env(safe-area-inset-bottom, 0px)); border-top: 8px solid; border-image: linear-gradient(90deg, var(--red) 0 20%, var(--sun) 0 40%, var(--green) 0 60%, var(--blue) 0 80%, var(--pink) 0) 1; }
.site-footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--s4); }
.site-footer h4 { color: var(--paper); margin-bottom: 12px; font-family: var(--display); text-transform: uppercase; font-weight: 800; letter-spacing: .04em; font-size: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.site-footer a { color: rgba(255,247,230,.85); }
.site-footer a:hover { color: var(--sun); }
.site-footer .brand { color: var(--paper); }
.site-footer .brand .wordmark .desk { color: var(--sun); }
.site-footer .arabic { font-size: 1.5rem; color: var(--sun); margin-top: var(--s2); }
.site-footer .legal { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgba(255,247,230,.18); display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; font-size: .85rem; color: rgba(255,247,230,.6); }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: minmax(0, 1fr); } }

/* Motion ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.pop { opacity: 0; transform: scale(.94) rotate(-1deg); transition: opacity .5s var(--ease), transform .6s var(--spring); }
.pop.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
.spin-slow { animation: spin-slow 60s linear infinite; transform-box: fill-box; transform-origin: center; }
.float { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.float.late { animation-delay: -3s; }
.twinkle { animation: twinkle 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.beam { background: linear-gradient(90deg, var(--red) 0 16.6%, var(--orange) 0 33.3%, var(--sun) 0 50%, var(--green) 0 66.6%, var(--blue) 0 83.3%, var(--violet) 0); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(8deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(4deg); } }
@keyframes blink { 0%, 90%, 100% { opacity: 1; } 95% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .pop { opacity: 1 !important; transform: none !important; transition: none !important; }
  .spin-slow, .float, .twinkle, .marquee-track, .stamp, .masthead .star { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Prose and tables -------------------------------------------------------- */
.prose { max-width: 38em; } .prose h2 { margin-top: 1.4em; } .prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--line); vertical-align: top; }
table.data th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border-bottom: var(--bw) solid var(--ink); }

/* Services rows, chips, centred heads --------------------------------------- */
.center .label, .label.center { justify-content: center; }
.actions.center { justify-content: center; }
.service { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: var(--s3); padding-block: var(--s4); border-top: var(--bw) solid var(--ink); }
.service:last-child { border-bottom: var(--bw) solid var(--ink); }
.service h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s2); }
.inc span { font-size: .8rem; font-weight: 600; padding: 5px 10px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper-2); color: var(--ink); }
@media (max-width: 600px) { .service { grid-template-columns: minmax(0, 1fr); gap: var(--s2); } }
.tier-card { position: relative; }
.tier-card.featured { outline: 3px solid var(--ink); outline-offset: 4px; }
.tier-card .ribbon { position: absolute; top: -14px; right: 18px; }
.side-note { display: grid; gap: var(--s3); }
.side-note .n { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--red); line-height: 1; font-variation-settings: "wdth" 80; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: var(--bw) solid var(--ink); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 var(--s3) var(--s4); }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; background: var(--sun); border: var(--bw) solid var(--ink); border-radius: 50%; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { font-size: var(--fs-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 4px; }
.timeline b { color: var(--ink); }


/* Offers (pricing) ---------------------------------------------------------- */
.founding { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; background: var(--ink); color: rgba(255,247,230,.86); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 6px 6px 0 var(--red); padding: clamp(20px, 3vw, 30px); margin-bottom: var(--s5); }
.founding h3 { color: var(--paper); margin: 0 0 6px; }
.founding p { margin: 0; }
.founding strong { color: var(--sun); }
.founding .seal { width: 84px; height: 84px; border-radius: 50%; background: var(--sun); color: var(--ink); border: var(--bw) solid var(--paper); display: grid; place-content: center; text-align: center; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: .82rem; line-height: .95; transform: rotate(-8deg); font-variation-settings: "wdth" 80; }
@media (max-width: 760px) { .founding { grid-template-columns: minmax(0, 1fr); } .founding .seal { display: none; } }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: stretch; }
@media (max-width: 1040px) { .offers { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }
.offer { position: relative; display: flex; flex-direction: column; gap: var(--s2); background: var(--paper-2); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(24px, 2.8vw, 34px); min-width: 0; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.offer:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.offer > * { margin: 0; }
.offer-name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1rem; letter-spacing: .12em; color: var(--red); font-variation-settings: "wdth" 90; }
.offer h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1; }
.offer-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-block: var(--s2); border-block: var(--bw) solid var(--ink); }
.offer-price .amt { font-family: var(--display); font-weight: 900; font-size: clamp(2.8rem, 2rem + 2.6vw, 4rem); line-height: .9; letter-spacing: -.03em; color: var(--ink); font-variation-settings: "wdth" 78; }
.offer-price .per { font-weight: 700; color: var(--ink-2); }
.offer-anchor { font-size: var(--fs-small); color: var(--muted); }
.offer .checks { font-size: .95rem; }
.offer-promise { background: var(--mint); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 12px 14px; font-size: .9rem; color: var(--ink); }
.offer-promise b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-variation-settings: "wdth" 88; margin-bottom: 2px; }
.offer .btn { margin-top: auto; width: 100%; }
.offer-terms { font-size: .82rem; color: var(--muted); text-align: center; }
.offer.featured { background: var(--sun); box-shadow: var(--shadow-lg); }
.offer.featured .offer-promise { background: var(--paper-2); }
.offer.featured .offer-anchor, .offer.featured .offer-terms { color: var(--ink-2); }
.offer .ribbon { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg); margin: 0; white-space: nowrap; background: var(--red); color: var(--paper); }
@media (min-width: 1041px) { .offer.featured { transform: translateY(-14px); } .offer.featured:hover { transform: translate(-3px, -17px); } }
.signature-offer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s4); align-items: center; margin-top: var(--s5); background: var(--ink); color: rgba(255,247,230,.85); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--sun), 8px 8px 0 2px var(--ink); padding: clamp(24px, 3.4vw, 44px); }
.signature-offer h3 { color: var(--paper); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin: 0 0 var(--s1); }
.signature-offer .offer-name { color: var(--sun); }
.signature-offer .amt { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: .9; color: var(--paper); letter-spacing: -.03em; font-variation-settings: "wdth" 78; }
.signature-offer .per { color: var(--sun); font-weight: 700; }
.signature-offer .checks li::before { background: var(--sun); border-color: var(--paper); }
.signature-offer .side { display: grid; gap: var(--s2); justify-items: start; }
@media (max-width: 860px) { .signature-offer { grid-template-columns: minmax(0, 1fr); } }
.addons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s5); }
.addons > div { border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper-2); padding: 16px 18px; box-shadow: 3px 3px 0 var(--ink); }
.addons b { display: block; color: var(--ink); }
.addons .p { display: block; margin-top: 4px; font-family: var(--display); font-weight: 900; font-size: 1.35rem; color: var(--ink); font-variation-settings: "wdth" 80; }
.addons small { color: var(--muted); }
@media (max-width: 900px) { .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .addons { grid-template-columns: minmax(0, 1fr); } }
