/* PatternSouk design system (2026-10-15). One stylesheet for every page of patternsouk.shop.
   The language of our product films: a night stage where colour glows, glaze pages, Inter 700 with tight tracking
   and one italic Cormorant accent, expo-out landings, quint in-out moves, one-overshoot springs, geometry that
   draws itself. Calm, not flashy. Everything that moves stops under prefers-reduced-motion.
   Fonts: Inter and Cormorant (SIL OFL 1.1, /fonts/OFL.txt), self-hosted. */

@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant"; font-style: italic; src: url("/fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700; font-display: swap; }

:root {
  /* colour: the films' palette */
  --night: #0B1020; --night-2: #131A31; --glaze: #F4EFE6; --paper: #FBF8F2; --cream: #F4F1EA;
  --ink: #1E2A38; --ink-2: #3A4756; --muted: #5F6B78; --line: rgba(30, 42, 56, .12); --line-2: rgba(30, 42, 56, .2);
  --honey: #D9A441; --honey-ink: #8A5F12; --cobalt: #1F4E9C; --cobalt-2: #173F80; --emerald: #1F7A5A;
  --turquoise: #3AA7A3; --iznik: #B8352A;
  --accent: var(--cobalt); --link: var(--cobalt);
  /* type */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  /* space (4/8 rhythm) and shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --gutter: clamp(16px, 4vw, 40px); --max: 1200px; --prose: 760px;
  --shadow-1: 0 1px 2px rgba(30, 42, 56, .06), 0 0 0 1px rgba(30, 42, 56, .06);
  --shadow-2: 0 1px 2px rgba(30, 42, 56, .06), 0 0 0 1px rgba(30, 42, 56, .05), 0 28px 56px -24px rgba(30, 42, 56, .38);
  /* motion: the films' curves */
  --e-out: cubic-bezier(.16, 1, .3, 1);          /* expo out: landings */
  --e-quint: cubic-bezier(.83, 0, .17, 1);       /* quint in-out: moves */
  --e-in: cubic-bezier(.5, 0, .75, 0);
  --spring: cubic-bezier(.34, 1.36, .64, 1);     /* one soft overshoot */
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.8%, 1.067 23.1%, 1.078 25.3%,
    1.073 28.2%, 1.036 34.2%, 1.006 40.6%, .995 47.5%, 1); }
}

/* ── base ─────────────────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--glaze); color: var(--ink); font: 400 17px/1.65 var(--sans);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { max-width: 100%; }
img, video { height: auto; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(217, 164, 65, .35); }
p, li { text-wrap: pretty; }
ul, ol { padding-left: 1.3em; }
li { margin: .3em 0; }
b, strong { font-weight: 650; }
hr { border: 0; height: 1px; background: var(--line); margin: var(--s7) 0; }
figure { margin: var(--s6) 0; }
figcaption { font-size: .86rem; color: var(--muted); text-align: center; margin-top: var(--s3); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin: var(--s7) 0 var(--s4); letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); margin: 2em 0 .55em; }
h3 { font-size: 1.16rem; letter-spacing: -.018em; line-height: 1.3; margin: 1.6em 0 .4em; }
h1 em, h2 em, .display em { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.16em;
  letter-spacing: -.01em; color: var(--accent); padding-right: .04em; }
h2 small { display: block; margin-top: .5em; font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.prose, main.wrap.prose { max-width: calc(var(--prose) + 2 * var(--gutter)); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.6; color: var(--ink-2); max-width: 44em; }
.eyebrow { display: inline-block; font: 650 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--emerald); margin: 0 0 var(--s3); }
.muted, .note { color: var(--muted); }
.note { font-size: .9rem; line-height: 1.55; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--night); color: #fff;
  padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── header ───────────────────────────────────────────────────────────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; view-transition-name: site-head; }
.head-row { display: flex; align-items: center; gap: var(--s3); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 680 1.06rem/1 var(--sans); letter-spacing: -.025em; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font: 520 .93rem/1 var(--sans); letter-spacing: -.01em;
  padding: 10px 12px; border-radius: 999px; transition: background-color .25s, color .25s; }
.nav a:hover { color: var(--ink); background: rgba(30, 42, 56, .06); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(30, 42, 56, .08); }
.site-head .btn-sm { margin-left: var(--s2); }
.nav .dd { position: relative; }
.nav .dd summary { list-style: none; cursor: pointer; color: var(--ink-2); font: 520 .93rem/1 var(--sans); letter-spacing: -.01em;
  padding: 10px 12px; border-radius: 999px; transition: background-color .25s, color .25s; }
.nav .dd summary::-webkit-details-marker { display: none; }
.nav .dd summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: .6; }
.nav .dd summary:hover, .nav .dd[open] summary { color: var(--ink); background: rgba(30, 42, 56, .06); }
.nav .dd summary[aria-current] { color: var(--ink); background: rgba(30, 42, 56, .08); }
.dd-panel { position: absolute; left: 0; top: 46px; min-width: 220px; background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); padding: var(--s2); display: grid; z-index: 60; }
.dd-panel a { padding: 11px 14px !important; border-radius: 12px !important; white-space: nowrap; }

.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  cursor: pointer; color: var(--ink); transition: background-color .2s; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: rgba(30, 42, 56, .07); }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); background: var(--paper);
  border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s2); display: grid; transform-origin: top right; }
.menu-panel a { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 12px; font-weight: 520; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: rgba(30, 42, 56, .06); }
.menu-panel hr { margin: 6px 10px; }
/* the phone menu is grouped and scrolls inside the screen (2026-11-13: its last links were cut off below the fold) */
.menu-panel { max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.menu-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding-bottom: 6px; margin-bottom: 2px;
  border-bottom: 1px solid var(--line); }
.menu-top a { font-weight: 620; }
.menu-h { margin: 12px 14px 4px; font: 650 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--honey-ink); }
.menu-panel a { padding-block: 11px; }
@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: block; }
  .site-head .btn-sm { margin-left: auto; }
}
@media (max-width: 360px) { .brand span { display: none; } }

/* ── buttons ──────────────────────────────────────────────────────────────────────────────────────────────── */
.btn, .cta, .signup button { display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--cobalt); color: #fff;
  font: 620 .98rem/1.1 var(--sans); letter-spacing: -.012em; text-decoration: none; text-align: center; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 20px -10px rgba(31, 78, 156, .7);
  transition: transform .5s var(--spring), background-color .25s, box-shadow .35s var(--e-out); }
.btn:hover, .cta:hover, .signup button:hover { background: var(--cobalt-2); color: #fff; text-decoration: none;
  transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 28px -12px rgba(31, 78, 156, .75); }
.btn:active, .cta:active, .signup button:active { transform: scale(.965); transition-duration: .12s; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-honey, .cta.alt, .btn-free { background: var(--honey); color: var(--night);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px -10px rgba(217, 164, 65, .8); }
.btn-honey:hover, .cta.alt:hover, .btn-free:hover { background: #E3B356; color: var(--night); }
.btn-emerald, .btn.primary { background: var(--emerald); }
.btn-emerald:hover, .btn.primary:hover { background: #18664B; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: rgba(30, 42, 56, .05); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.night .btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(244, 241, 234, .35); }
.night .btn-ghost:hover { background: rgba(244, 241, 234, .08); color: #fff; box-shadow: inset 0 0 0 1.5px var(--cream); }
.btn .arr, .go .arr { display: inline-block; transition: transform .5s var(--spring); }
.btn:hover .arr, .card:hover .go .arr { transform: translateX(4px); }
.btns { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.cta { margin: 6px 10px 6px 0; }

/* ── night stage ──────────────────────────────────────────────────────────────────────────────────────────── */
.night { --accent: var(--honey); --link: #F2D08A; background: var(--night) url("/img/zellige-band.svg") center / 193px;
  color: var(--cream); }
.night h1, .night h2, .night h3 { color: #fff; }
.night .lede, .night p { color: rgba(244, 241, 234, .78); }
.night .eyebrow { color: var(--honey); }
.night .muted, .night .note, .night figcaption { color: rgba(244, 241, 234, .6); }
.night a:not(.btn) { color: var(--cream); }
.band { position: relative; padding-block: clamp(64px, 9vw, 120px); overflow: hidden; isolation: isolate; }

/* ── home hero: the zellige field draws itself, the headline rises through a mask ─────────────────────────── */
.hero { position: relative; overflow: hidden; isolation: isolate; display: grid; align-items: center;
  min-height: min(88vh, 780px); padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 112px); background-image: none; }
.hero .field { position: absolute; z-index: -2; top: 0; left: 24%; width: 100%; height: 100%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--night) 22%, rgba(11, 16, 32, .72) 46%, rgba(11, 16, 32, 0) 74%),
              linear-gradient(0deg, var(--night) 0%, rgba(11, 16, 32, 0) 22%); }
.hero h1 { margin: 0 0 var(--s5); font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: .98; max-width: 11.5em; }
.hero h1 .sub-h { display: block; margin-top: .45em; font-size: max(.34em, 1.12rem); line-height: 1.3; font-weight: 560;
  letter-spacing: -.012em; color: rgba(244, 241, 234, .8); }
.hero .lede { max-width: 33em; margin: 0 0 var(--s6); }
.hero .trust { margin-top: var(--s6); }
.field path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.field .f0 { stroke: var(--honey); stroke-width: 1.8; stroke-opacity: .95; }
.field .f1 { stroke: var(--cream); stroke-width: 1.3; stroke-opacity: .34; }
.field .f2 { stroke: var(--cream); stroke-width: 1.2; stroke-opacity: .13; }
.field .core { fill: var(--honey); }
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: start; padding-top: 40px; padding-bottom: 300px; }
  .hero .field { left: 0; top: auto; bottom: -40px; height: 420px; }
  .hero::before { background: linear-gradient(180deg, var(--night) 46%, rgba(11, 16, 32, .55) 66%, rgba(11, 16, 32, 0) 84%),
    linear-gradient(0deg, var(--night) 0%, rgba(11, 16, 32, 0) 14%); }
}

/* kinetic type: each line slides up through its own mask (the films' headline()) */
.kh .ln { display: block; overflow: hidden; padding: 0 .08em .12em; margin: 0 -.08em -.12em; }
.kh .ln > span { display: inline-block; }

/* trust line */
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: .9rem;
  color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.trust li::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--emerald);
  -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.night .trust { color: rgba(244, 241, 234, .74); }
.night .trust li::before { background: var(--honey); }
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ── sections ─────────────────────────────────────────────────────────────────────────────────────────────── */
.section { padding-top: clamp(56px, 8vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3) var(--s5);
  margin-bottom: clamp(20px, 3vw, 36px); }
.section-head h2 { margin: 0; }
.section-head p { margin: .5em 0 0; color: var(--muted); max-width: 40em; }
.section-head .more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

/* ── cards ────────────────────────────────────────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.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)); }
@media (max-width: 1000px) { .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); }
  .grid.four { gap: 12px; } }
.grid > img { width: 100%; border-radius: var(--r); display: block; box-shadow: var(--shadow-1); background: #fff; }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--paper);
  border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1);
  transition: transform .7s var(--spring), box-shadow .5s var(--e-out); }
.card:hover { color: var(--ink); }
.card .media, .card > img { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #ECE5D8; }
.card .media img, .card > img { display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--e-out); }
.card .body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; letter-spacing: -.02em; }
.card p { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.card .meta { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; font-size: .92rem; }
.price { font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.go { color: var(--cobalt); font-weight: 600; white-space: nowrap; }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
  .card:hover .media img, .card:hover > img { transform: scale(1.045); }
}
.card:active { transform: translateY(-2px) scale(.985); transition-duration: .15s; }
.tag { align-self: flex-start; font: 650 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; background: rgba(217, 164, 65, .18); color: var(--honey-ink); }
.tag.free { background: rgba(31, 122, 90, .12); color: var(--emerald); }
.tag.new { background: rgba(31, 78, 156, .1); color: var(--cobalt); }

/* the big "made for you" cards: image beside text on wide screens */
.card.feature .media { aspect-ratio: 16 / 11; }
.card.feature h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -.03em; }
.card.feature .body { padding: 22px 24px 24px; gap: 10px; }
/* compact cards: image beside the text */
.mini .card { flex-direction: row; }
.mini .card .media, .mini .card > img { width: 38%; aspect-ratio: auto; flex: none; }
@media (max-width: 480px) { .mini .card .media, .mini .card > img { width: 34%; } .mini .card .body { padding: 14px 16px; } }
/* the "see everything" card */
.card.all { background: var(--night) url("/img/zellige-band.svg") center / 193px; color: var(--cream);
  justify-content: center; align-items: flex-start; padding: 28px; min-height: 220px; }
.card.all h3 { color: #fff; font-size: 1.5rem; letter-spacing: -.03em; }
.card.all p { color: rgba(244, 241, 234, .74); margin: 8px 0 18px; }
.card.all .go { color: var(--honey); }

/* link tiles (free tools) */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  list-style: none; padding: 0; margin: 0; }
.tiles li { margin: 0; }
.tiles a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; border-radius: var(--r);
  background: var(--paper); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; font-size: .92rem;
  line-height: 1.45; transition: transform .6s var(--spring), box-shadow .4s var(--e-out); }
.tiles a b { font-size: 1.02rem; letter-spacing: -.015em; }
.tiles a span { color: var(--muted); }
@media (hover: hover) { .tiles a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); } }
.freelinks { line-height: 1.8; }

/* feature split (text + film or picture) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.split.flip > :first-child { order: 2; }
.split h2 { margin-top: 0; }
@media (max-width: 820px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; } }

/* how it's made: three points */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0;
  padding: 0; list-style: none; counter-reset: pt; }
.points li { margin: 0; padding-top: 22px; border-top: 1px solid rgba(244, 241, 234, .18); font-size: .96rem; }
.points li b { display: block; font-size: 1.2rem; letter-spacing: -.025em; color: #fff; margin-bottom: 8px; }
.points li::before { counter-increment: pt; content: "0" counter(pt); display: block; font: 600 .78rem var(--sans);
  letter-spacing: .14em; color: var(--honey); margin-bottom: 14px; }
@media (max-width: 760px) { .points { grid-template-columns: minmax(0, 1fr); } }
.about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* sign-up call band */
.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5) var(--s6); align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); }
.callout h2 { margin: 0 0 .35em; }
.callout p { margin: 0; }
@media (max-width: 720px) { .callout { grid-template-columns: minmax(0, 1fr); } }

/* ── article pages (learn, free, dates, crafts) ───────────────────────────────────────────────────────────── */
main.prose > h1:first-child, main.prose > h1:first-of-type { margin-top: clamp(32px, 6vw, 72px); }
main.prose p, main.prose li { font-size: 1.04rem; }
main.prose > h2 { margin-top: 1.9em; }
.crumbs { font-size: .84rem; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding-block: 8px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; margin-top: 20px; }
.step { background: var(--paper); border-radius: var(--r-lg); padding: 14px 14px 18px; box-shadow: var(--shadow-1); }
.step svg { width: 100%; height: auto; display: block; background: #fff; border-radius: 14px; }
.step h3 { font-size: 1.04rem; margin: 14px 4px 6px; }
.step p { margin: 0 4px; font-size: .92rem !important; color: var(--ink-2); line-height: 1.5; }
.box, .related { background: var(--paper); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); margin: 32px 0;
  box-shadow: var(--shadow-1); }
.box > h2:first-child, .related > h2:first-child { margin-top: 0; }
.box > :last-child, .related > :last-child { margin-bottom: 0; }
.related h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.related ul { margin: 8px 0 0; }
.answer { background: var(--paper); border-radius: var(--r); padding: 18px 22px; margin: 20px 0; font-size: 1.1rem;
  box-shadow: inset 4px 0 0 var(--honey), var(--shadow-1); }
.countdown { font-size: 1.05rem; color: var(--ink-2); }
.countdown b { font-size: 1.7rem; color: var(--cobalt); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.tablewrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow-1); margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--paper); font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #EFE8DC; font-weight: 650; }
tr:last-child td { border-bottom: 0; }
tr.mark td { background: #F6E7C4; }
.tool { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input[type=text], input[type=email], input[type=date], input[type=number], select {
  min-height: 48px; padding: 10px 14px; font: 400 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
input:focus-visible, select:focus-visible { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(31, 78, 156, .18); }
.big { font-size: 1.5rem; margin: 6px 0; letter-spacing: -.02em; }
.craft { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 20px 0; }
.craft img { width: 100%; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-1); }
.cap { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 720px) { .craft { grid-template-columns: minmax(0, 1fr); } }
.kufi { font-family: "Reem Kufi", serif; font-size: clamp(2.6rem, 9vw, 4.4rem); text-align: center; color: var(--cobalt);
  margin: 18px 0 4px; line-height: 1.4; }

/* ── shop ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.shop-hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.shop-hero h1 { margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  color: var(--cream); text-decoration: none; font-size: .9rem; font-weight: 560;
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .26); transition: background-color .25s, box-shadow .25s; }
.chips a:hover { background: rgba(244, 241, 234, .1); box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .6); }
.chips a span { margin-left: 8px; opacity: .55; font-variant-numeric: tabular-nums; }
.shop-sec { padding-top: clamp(40px, 6vw, 72px); scroll-margin-top: 72px; }
.shop-sec .section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pcard .body { padding: 14px 16px 16px; gap: 4px; }
.pcard h3 { font-size: .98rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.35; }
.pcard .meta { padding-top: 8px; }

.product { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 64px);
  padding: 20px 0 clamp(48px, 6vw, 80px); align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery img { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; box-shadow: var(--shadow-1); }
.gallery img:first-child { grid-column: 1 / -1; border-radius: var(--r-lg); }
.gallery { position: sticky; top: 88px; }
.buy h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 4px 0 10px; }
.buy .full { font-size: .9rem; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.buy .price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 18px; }
.buy .price-row .price { font-size: 1.9rem; letter-spacing: -.03em; }
.buy .price-row span { color: var(--muted); font-size: .92rem; }
.buy .btn { width: 100%; min-height: 54px; font-size: 1.03rem; }
.buy .trust { flex-direction: column; gap: 8px; margin: 18px 0 0; }
.desc { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--line); }
.desc h2 { font: 650 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--emerald);
  margin: 26px 0 8px; }
.desc p, .desc li { font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
.more-btn { margin-top: 18px; }
@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* phones: the buy button stays in reach */
.buybar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px;
  border-radius: 999px; background: rgba(11, 16, 32, .9); color: var(--cream);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(11, 16, 32, .6);
  transition: transform .6s var(--spring), opacity .3s; }
.buybar .price { font-size: 1.05rem; color: #fff; }
.buybar .btn { min-height: 44px; }
.buybar.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 860px) { .buybar { display: flex; } .has-buybar .site-foot { padding-bottom: 110px; } }

/* ── forms: the Ramadan sign-up ───────────────────────────────────────────────────────────────────────────── */
.signup { position: relative; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); margin: 40px 0;
  background: var(--night) url("/img/zellige-band.svg") center / 193px; color: var(--cream); --accent: var(--honey);
  --link: #F2D08A; overflow: hidden; }
.signup h2 { color: #fff; margin-top: 0; }
.signup p { color: rgba(244, 241, 234, .8); }
.signup form { display: grid; gap: 14px; margin-top: 10px; }
.signup label { font-size: .95rem; font-weight: 560; }
.signup input[type=email] { width: 100%; background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(244, 241, 234, .28); font-size: 1.05rem; }
.signup input[type=email]::placeholder { color: rgba(244, 241, 234, .45); }
.signup .consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; font-weight: 400; line-height: 1.5;
  color: rgba(244, 241, 234, .78); }
.signup .consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--honey); }
.signup button { justify-self: start; background: var(--honey); color: var(--night);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px -10px rgba(217, 164, 65, .8); }
.signup button:hover { background: #E3B356; color: var(--night); }
.signup .small { color: rgba(244, 241, 234, .6); font-size: .86rem; margin: 10px 0 0; }
.freebox { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--paper);
  border-radius: var(--r-xl); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-1); margin: 32px 0; }
.freebox img { width: 100%; border-radius: var(--r); display: block; }
@media (max-width: 600px) { .freebox { grid-template-columns: minmax(0, 1fr); } }

/* ── page header (tools and short pages) ──────────────────────────────────────────────────────────────────── */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); text-align: center; }
.page-head h1 { margin: 0 auto 14px; max-width: 16em; }
.page-head .lede { margin: 0 auto; }
.page-head.night { padding-bottom: clamp(40px, 6vw, 72px); }

/* ── product films ────────────────────────────────────────────────────────────────────────────────────────── */
.film { margin: 32px auto; max-width: 320px; }
.film-frame { position: relative; border-radius: 26px; overflow: hidden; background: var(--night); aspect-ratio: 9 / 16;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -28px rgba(11, 16, 32, .65); transform: translateZ(0); }
.film-v { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-sound { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 13px 0 11px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  background: rgba(11, 16, 32, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff;
  font: 600 .8rem/1 var(--sans); letter-spacing: -.005em; cursor: pointer; transition: background-color .25s, transform .5s var(--spring); }
.film-sound:hover { background: rgba(11, 16, 32, .72); }
.film-sound:active { transform: scale(.95); }
.film-sound .ico { width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--snd-off) center / contain no-repeat;
  mask: var(--snd-off) center / contain no-repeat; }
.film-sound[data-on="1"] .ico { -webkit-mask-image: var(--snd-on); mask-image: var(--snd-on); }
:root {
  --snd-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='black'/%3E%3Cpath d='M17 9l5 6M22 9l-5 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --snd-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='black'/%3E%3Cpath d='M16.5 8.5a5 5 0 010 7M19.5 5.5a9 9 0 010 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.film figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 12px; }
.night .film figcaption { color: rgba(244, 241, 234, .6); }
.film.film-side { margin: 28px 0; max-width: 280px; }
.films-two { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 40px; text-align: center; }
.films-two .film { margin: 16px auto; }
.films-two h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.hero.has-film { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: center; }
.hero.has-film .film { margin: 0; }
@media (max-width: 760px) {
  .film.film-side { margin: 28px auto; max-width: 260px; }
  .films-two { grid-template-columns: minmax(0, 300px); gap: 8px; }
  .hero.has-film { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero.has-film .film { max-width: 250px; margin: 6px auto 0; }
}

/* ── footer ───────────────────────────────────────────────────────────────────────────────────────────────── */
.site-foot { margin-top: clamp(72px, 10vw, 128px); padding-block: clamp(56px, 7vw, 88px) 40px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.foot-grid a:not(.btn):not(.brand) { color: rgba(244, 241, 234, .72); text-decoration: none; padding: 5px 0; }
.foot-grid a:not(.btn):not(.brand):hover { color: #fff; }
.site-foot .brand { color: #fff; margin-bottom: 14px; }
.foot-brand p { max-width: 30em; margin: 0 0 20px; line-height: 1.6; }
.foot-h { font: 650 .72rem/1 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--honey) !important;
  margin: 6px 0 12px; }
.foot-note { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid rgba(244, 241, 234, .14); font-size: .82rem;
  color: rgba(244, 241, 234, .55) !important; line-height: 1.6; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── motion ───────────────────────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* cross-page: the header stays, the page crossfades and lands (progressive enhancement) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .2s var(--e-in) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--e-out) both; }
  ::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--e-quint); }

  /* the hero: lines draw outward from the centre star, then the star lands with one overshoot */
  .field path { stroke-dasharray: var(--dash) var(--dash); stroke-dashoffset: var(--dash); animation: draw 2.4s cubic-bezier(.45, 0, .2, 1) forwards; }
  .field .f0 { animation-duration: 1.3s; }
  .field .f1 { animation-duration: 1.5s; }
  .field .f2 { animation-duration: 1.8s; }
  .field .core { transform-box: fill-box; transform-origin: center; opacity: 0;
    animation: land 1s var(--spring) 1.25s forwards; }
  .field .glow { opacity: 0; animation: glow 1.6s var(--e-out) 1s forwards, breathe 7s ease-in-out 2.6s infinite alternate; }
  .kh .ln > span { transform: translateY(108%); animation: rise 1.05s var(--e-out) forwards; }
  .kh .ln:nth-child(1) > span { animation-delay: .1s; }
  .kh .ln:nth-child(2) > span { animation-delay: .19s; }
  .kh .ln:nth-child(3) > span { animation-delay: .28s; }
  .kh .ln:nth-child(4) > span { animation-delay: .37s; }
  .up { opacity: 0; animation: up .9s var(--e-out) forwards; }
  .up.d1 { animation-delay: .45s; } .up.d2 { animation-delay: .58s; } .up.d3 { animation-delay: .72s; } .up.d4 { animation-delay: .86s; }
  main.prose > h1:first-of-type, .page-head h1, .buy h1, .shop-hero h1 { animation: up .9s var(--e-out) both; }
  .menu[open] .menu-panel { animation: pop .35s var(--e-out); }
  .buybar { animation: bar-in .8s var(--spring) .6s both; }

  /* scroll: the header gains its hairline, the hero field drifts slowly (scroll-driven, compositor only) */
  @supports (animation-timeline: scroll()) {
    .site-head { animation: head-shade linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    .hero .field { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }

  /* scroll reveals: scroll-driven where the browser has view timelines, else /js/ps.js adds .io + .in */
  @supports (animation-timeline: view()) {
    .rv, .card, .step, .tiles a, .film-frame, .freebox, .callout, .points li, .craft {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 72%; }
  }
  html.io :is(.rv, .card, .step, .tiles a, .film-frame, .freebox, .callout, .points li, .craft) {
    transition: opacity .9s var(--e-out), translate 1s var(--e-out), scale 1s var(--e-out),
                transform .7s var(--spring), box-shadow .5s var(--e-out); }
  html.io :is(.rv, .card, .step, .tiles a, .film-frame, .freebox, .callout, .points li, .craft):not(.in) {
    opacity: 0; translate: 0 28px; scale: .985; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes land { from { opacity: 0; transform: scale(.4) rotate(-22.5deg); } to { opacity: 1; transform: none; } }
@keyframes glow { to { opacity: 1; } }
@keyframes breathe { from { opacity: 1; } to { opacity: .62; } }
@keyframes rise { to { transform: none; } }
@keyframes up { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { from { opacity: 0; scale: .96; translate: 0 -6px; } }
@keyframes bar-in { from { translate: 0 140%; } }
@keyframes reveal { from { opacity: 0; translate: 0 36px; scale: .975; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes head-shade { to { border-bottom-color: var(--line); background: rgba(244, 239, 230, .78); } }
@keyframes drift { to { translate: 0 90px; scale: 1.06; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 14px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-head, .site-foot, .buybar, .film-sound, .menu { display: none !important; }
  body { background: #fff; }
}
.film-v[controls] + .film-sound { top: 12px; bottom: auto; }
.mini .card .meta { flex-wrap: wrap; gap: 4px 12px; }
.page-head .lede + .lede { margin-top: .7em; }
