/* In-Kareh: inkareh.io. The logo's navy and bright blue on white and ice blue, with neon yellow as a third colour (5 Dec 2026). */

/* Fonts (self-hosted, OFL) */
@font-face { font-family: "Vazirmatn Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/vazirmatn-arabic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/vazirmatn-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Vazirmatn Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/vazirmatn-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo Variable"; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-standard-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* Tokens: the logo's navy and bright blue on white and ice blue (Amir's choice, 5 Dec 2026, 18:35) */
:root {
  --c-navy: #041957;        /* the logo's navy: headings, footer, navy bands */
  --c-navy-deep: #020C33;   /* footer */
  --c-accent: #0163FC;      /* the logo's bright blue: buttons, links, lines */
  --c-accent-dark: #0049C2;
  --c-neon: #F4FF2E;        /* neon yellow (Amir, 19:17): on navy, or as a fill behind navy text; never as text on white */
  --c-neon-pale: #FAFFD1;   /* pale neon, for the stripes behind the video wall */
  --c-ink: #0B1330;         /* body text */
  --c-mute: #4A5578;        /* secondary text */
  --c-ice: #EEF4FF;         /* light bands */
  --c-line: #D5DFF2;        /* hairlines on white and ice */
  --c-paper: #FFFFFF;
  --c-on-dark: #FFFFFF;
  --c-on-dark-mute: #B9C5E8;
  --c-line-dark: #24346C;
  --c-error: #C62828;
  --f-fa: "Vazirmatn Variable", "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --f-en: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: var(--f-en);
  --f-head: var(--f-en);
  --w: 1200px;
  --gut: clamp(20px, 5vw, 56px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --r-media: 16px;
  --r-big: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="fa"], html[lang="ar"] { --f-body: var(--f-fa); --f-head: var(--f-fa); }

/* Base */
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; color: var(--c-ink); background: var(--c-paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[dir="rtl"] body { font-size: 1.125rem; line-height: 1.95; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--c-accent); }
p { margin: 0; text-wrap: pretty; }
bdi, .ltr { unicode-bidi: isolate; }
.wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--gut); }
main { display: block; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.band--navy :focus-visible, .site-footer :focus-visible { outline-color: var(--c-neon); }
::selection { background: var(--c-neon); color: var(--c-navy); }
.band--navy a, .site-footer a { text-decoration-color: var(--c-neon); }
.skip { position: absolute; inset-inline-start: var(--s2); top: -200px; z-index: 50; background: var(--c-navy); color: var(--c-on-dark); padding: var(--s1) var(--s2); font-weight: 700; }
.skip:focus { top: var(--s2); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Platform icons (YouTube, TikTok, Instagram): one flat colour, linking to our own profiles */
.si { display: block; flex: none; width: 1.25em; height: 1.25em; fill: currentColor; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--c-ink); text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease, translate 0.3s var(--ease); }
.socials a:hover { background: var(--c-ice); color: var(--c-accent); }
.socials .si { width: 22px; height: 22px; }
html[lang="en"] [lang="fa"], html[lang="en"] [lang="ar"] { font-family: var(--f-fa); }

/* Headings */
h1, h2, h3 { margin: 0; font-family: var(--f-head); color: var(--c-navy); overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
html[lang="en"] :is(h1, h2) { font-weight: 800; font-style: italic; font-stretch: 75%; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.005em; }
html[dir="rtl"] :is(h1, h2) { font-weight: 900; line-height: 1.3; }
h3 { font-weight: 800; line-height: 1.3; }
html[dir="rtl"] h3 { font-weight: 900; line-height: 1.55; }
.display { font-size: clamp(3rem, 6.4vw, 5.5rem); }
html[dir="rtl"] .display { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.28; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
html[dir="rtl"] h2 { font-size: clamp(1.85rem, 3.8vw, 3.1rem); }
.h-sm { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
html[dir="rtl"] .h-sm { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.lead { text-wrap: balance; margin-top: var(--s3); font-size: clamp(1.15rem, 1.6vw, 1.4rem); max-width: 34ch; }
html[dir="rtl"] .lead { max-width: 36ch; }

/* Header: logo | menu and languages */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--c-paper); color: var(--c-navy); border-bottom: 1px solid var(--c-line); }
html { scroll-padding-top: 130px; }
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s3); max-width: var(--w); margin-inline: auto; padding: var(--s1) var(--gut); min-height: 104px; box-sizing: border-box; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--s3); }
.site-header li { white-space: nowrap; }
.site-header a { text-decoration: none; }
.brand { display: flex; align-items: center; padding-block: 4px; }
.brand img { width: auto; height: 52px; }
.nav { position: relative; margin-inline-start: auto; }
.nav a, .langs a { display: inline-block; padding-block: 6px; font-weight: 700; font-size: 0.9375rem; }
.nav a:hover, .langs a:hover { color: var(--c-accent); }
.nav a[aria-current], .langs a[aria-current] { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.nav-glide { position: absolute; top: 0; left: 0; width: 1px; height: 3px; border-radius: 2px; background: var(--c-accent); transform-origin: 0 0; opacity: 0; pointer-events: none; }
.nav-glide.is-ready { transition: transform 0.45s var(--ease), opacity 0.25s ease; }
.nav.has-glide a[aria-current] { text-decoration: none; }
.header-socials { display: none; }
@media (min-width: 1200px) {
  .header-socials { display: block; padding-inline-start: var(--s2); border-inline-start: 1px solid var(--c-line); }
  .header-socials .socials { gap: 0; }
  .header-socials + .langs { margin-inline-start: 0; }
}
.langs { padding-inline-start: var(--s3); border-inline-start: 1px solid var(--c-line); }
.langs ul { gap: 4px var(--s2); }
.langs a[lang="en"] { font-family: var(--f-en); }
.langs a[lang="fa"], .langs a[lang="ar"] { font-family: var(--f-fa); }
@media (max-width: 1059px) {
  .header-row { padding-block: var(--s2); }
  .nav { order: 3; flex-basis: 100%; margin-inline-start: 0; }
  .langs { margin-inline-start: auto; padding-inline-start: 0; border-inline-start: 0; }
  .header-row { column-gap: var(--s2); }
  .brand img { height: max(20px, min(48px, calc((100vw - 228px) / 6))); }
  .langs ul { flex-wrap: nowrap; gap: 4px 12px; }
  .nav a { padding-block: 2px; }
}
@media (max-width: 359px) {
  .langs a { font-size: 0.875rem; }
  .langs ul { gap: 4px 10px; }
}

/* Bands */
.band { padding-block: var(--s6); }
.band--ice { background: var(--c-ice); }
.band--stripes { background: repeating-linear-gradient(90deg, var(--c-ice) 0 96px, var(--c-neon-pale) 96px 192px); }
.band--white { background: var(--c-paper); }
.band--navy { background: var(--c-navy); color: var(--c-on-dark); }
.band--navy :is(h1, h2, h3) { color: var(--c-on-dark); }
.band p + p { margin-top: var(--s2); }
.band-copy > p, .band-copy > .ticks { max-width: 46rem; }
.band-copy > h2 { max-width: 22ch; }
.band-copy > p { margin-top: var(--s3); font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

/* Buttons and actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 var(--s4); border: 2px solid var(--c-accent); border-radius: 999px; background: var(--c-accent); color: var(--c-paper); font-weight: 800; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, translate 0.3s var(--ease); }
html[lang="en"] .btn { font-stretch: 90%; }
.btn:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--line { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--line:hover { background: var(--c-neon); border-color: var(--c-navy); color: var(--c-navy); }
.btn--light { background: var(--c-neon); color: var(--c-navy); border-color: var(--c-neon); }
.btn--light:hover { background: var(--c-paper); border-color: var(--c-paper); }
.motion .btn, .motion .film-toggle, .motion .socials a { translate: var(--mx, 0px) var(--my, 0px); }
.text-link { font-weight: 700; }
.also { margin-top: var(--s3); color: var(--c-mute); }
.hero-follow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin-top: var(--s3); }
.hero-handle { font-weight: 700; color: var(--c-navy); font-family: var(--f-en); }
.hero-follow .socials { gap: var(--s1); }
.hero-follow .socials a { width: 48px; height: 48px; background: var(--c-navy); color: var(--c-paper); }
.hero-follow .socials a:hover { background: var(--c-accent); color: var(--c-paper); }
.also a { font-weight: 700; color: var(--c-navy); }

/* Hero: headline beside a framed, silent loop of Amir */
.hero { padding-block: var(--s5) var(--s6); background: var(--c-paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s5); align-items: center; }
.hero-media { position: relative; }
.hero-shape { position: absolute; z-index: 0; width: 72%; height: auto; inset-inline-end: -8%; bottom: -16%; fill: var(--c-neon); pointer-events: none; }
html[dir="rtl"] .hero-shape { scale: -1 1; }
.motion .hero-media { transform: perspective(1200px) rotateX(var(--hx, 0deg)) rotateY(var(--hy, 0deg)); transition: transform 0.6s var(--ease); }
.hero-badge { position: absolute; z-index: 3; top: -40px; inset-inline-start: -40px; display: grid; place-items: center; width: 132px; height: 132px; box-sizing: border-box; padding: 26px; border-radius: 32px; background: var(--c-navy); color: var(--c-paper); box-shadow: 0 0 0 6px var(--c-neon), 0 18px 40px -16px rgb(4 25 87 / .55); }
.hero-badge .mark { width: 100%; color: var(--c-paper); }
.hero-clip { position: relative; z-index: 1; aspect-ratio: 4 / 3.3; overflow: hidden; border-radius: var(--r-big); background: var(--c-ice); }
.hero-zoom { position: absolute; inset: 0; }
.hero-clip img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 30%; transform: translate3d(0, calc(var(--p, 0) * 7%), 0) scale(calc(1.02 + var(--p, 0) * 0.08)); }
.hero-video { opacity: 0; transition: opacity 0.5s ease; }
.hero-video.is-on { opacity: 1; }
.film-toggle { position: absolute; inset-inline-end: var(--s2); bottom: var(--s2); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--c-neon); color: var(--c-navy); cursor: pointer; box-shadow: 0 2px 10px rgb(4 25 87 / .18); transition: transform 0.2s var(--ease), background-color 0.2s ease, color 0.2s ease, translate 0.3s var(--ease); }
.film-toggle:hover { background: var(--c-navy); color: var(--c-neon); transform: scale(1.06); }
.film-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.film-toggle .i-play, .film-toggle.is-paused .i-pause { display: none; }
.film-toggle.is-paused .i-play { display: block; }
@media (max-width: 859px) {
  .hero { padding-block: var(--s3) var(--s5); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .hero-media { order: -1; margin-top: 18px; }
  .hero-clip { aspect-ratio: 4 / 3; }
  .hero-badge { top: -18px; inset-inline-start: 14px; width: 84px; height: 84px; padding: 16px; border-radius: 22px; box-shadow: 0 0 0 4px var(--c-neon), 0 12px 28px -12px rgb(4 25 87 / .55); }
}

/* Brand band: the line in three languages, moved sideways by scrolling (motion.js) */
/* Ideas from a @pierredelcourr reel Amir sent (5 Dec 2026, 20:46): two tapes run diagonally
   (instead of a rigid grid), a flowing shape behind the hero video, video cards set like a
   stack rather than a line-up, stripes behind the video wall, and the giant word with Amir in
   front of it, big at the bottom of the creators and brands section. */
.brand-band { position: relative; overflow: hidden; padding-block: clamp(56px, 7vw, 104px); background: var(--c-paper); }
.tape { width: 112%; margin-inline-start: -6%; padding-block: var(--s2); }
.tape--front { position: relative; z-index: 1; background: var(--c-navy); color: var(--c-neon); rotate: -4deg; }
.tape--back { position: absolute; top: 50%; inset-inline-start: 0; translate: 0 -50%; background: var(--c-neon); color: var(--c-navy); rotate: 4.5deg; padding-block: 12px; }
.tape--back .mark { color: var(--c-navy); }
.band-track { display: flex; width: max-content; will-change: transform; }
.band-set { display: flex; align-items: center; gap: var(--s4); padding-inline-end: var(--s4); }
.bb-item { white-space: nowrap; font-size: clamp(1.75rem, 4.2vw, 3.5rem); line-height: 1.25; }
.bb-item[lang="en"] { font-family: var(--f-en); font-weight: 800; font-style: italic; font-stretch: 75%; text-transform: uppercase; line-height: 1.1; }
.bb-item[lang="fa"], .bb-item[lang="ar"] { font-family: var(--f-fa); font-weight: 900; }
.brand-band .mark { width: clamp(2.25rem, 4vw, 3.25rem); flex: none; color: var(--c-paper); }
.bb-item.bb-item--small { font-size: clamp(1.15rem, 2.2vw, 1.75rem); }
.tape--back .mark { width: clamp(1.5rem, 2.4vw, 2rem); color: var(--c-navy); }
.si--tape { width: clamp(1.35rem, 2.2vw, 1.85rem); height: auto; aspect-ratio: 1; margin-inline-end: calc(-1 * var(--s4) + 12px); }

/* The play symbol from the logo */
.mark { display: block; height: auto; color: var(--c-navy); }
.mark path { fill: currentColor; }
.mark .mark-accent { fill: var(--c-accent); }
.band--navy .mark { color: var(--c-on-dark); }

/* Video on the news post */
.clip { margin: 0; width: clamp(230px, 22vw, 290px); }
.clip video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--c-navy); border-radius: var(--r-media); }
.clip figcaption { margin-top: var(--s2); font-size: 0.9375rem; line-height: 1.5; }
.clip-title { display: block; font-weight: 700; color: var(--c-navy); }
.watch { display: flex; flex-wrap: wrap; gap: 2px var(--s2); margin-top: 6px; }
.watch a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.watch .si { width: 16px; height: 16px; }
@media (max-width: 860px) { .clip { width: min(100%, 300px); } }

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s3); margin-bottom: var(--s4); }
.vids-note { margin-top: var(--s1); color: var(--c-mute); }

/* Video wall: vertical cards like a channel page */
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
@media (max-width: 1023px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s2); } }
.vid { min-width: 0; }
.wall > .vid:nth-child(even) { margin-top: 56px; }
.wall > .vid:nth-child(odd) .vid-media { rotate: -1.5deg; }
.wall > .vid:nth-child(even) .vid-media { rotate: 1.5deg; }
.vid-link:hover .vid-media, .vid-link:focus-visible .vid-media { rotate: 0deg; }
@media (min-width: 640px) and (max-width: 1023px) {
  .wall > .vid:nth-child(even) { margin-top: 0; }
  .wall > .vid:nth-child(3n+2) { margin-top: 56px; }
}
.vid-link { display: block; color: var(--c-navy); text-decoration: none; transition: opacity 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  .wall:has(.vid-link:hover) .vid-link:not(:hover) { opacity: 0.55; }
}
.wall:has(.vid-link:focus-visible) .vid-link:not(:focus-visible) { opacity: 0.55; }
.vid-media { position: relative; display: block; overflow: hidden; border-radius: var(--r-media); background: var(--c-navy); box-shadow: 0 1px 0 var(--c-line); transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.3s var(--ease), box-shadow 0.3s ease, rotate 0.4s var(--ease); }
.vid-link:hover .vid-media { box-shadow: 0 18px 40px -18px rgb(4 25 87 / .45); }
.vid-media img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; transition: transform 0.6s var(--ease); }
.vid-link:hover .vid-media img, .vid-link:focus-visible .vid-media img { transform: scale(1.05); }
.vid-play { position: absolute; inset-inline-start: var(--s2); bottom: var(--s2); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-neon); color: var(--c-navy); opacity: 0; transform: scale(.6); transition: opacity 0.25s ease, transform 0.35s var(--ease); }
.vid-play svg { width: 22px; height: 22px; fill: currentColor; }
.vid-link:hover .vid-play, .vid-link:focus-visible .vid-play { opacity: 1; transform: scale(1); }
@media (hover: none) { .vid-play { opacity: 1; transform: scale(.8); } }
.vid-title { display: block; margin-top: var(--s2); font-weight: 700; font-size: 1.0625rem; line-height: 1.4; overflow-wrap: break-word; }
html[dir="rtl"] .vid-title { line-height: 1.75; }
.vid-link:hover .vid-title { color: var(--c-accent); }
.vid-meta { margin-top: 6px; font-size: 0.9375rem; color: var(--c-mute); }

/* News and the email sign-up, side by side */
.news-signup { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.signup-card { padding: var(--s4); border-radius: var(--r-big); background: var(--c-ice); }
.signup-card .signup { margin-top: var(--s3); }
@media (max-width: 900px) { .news-signup { grid-template-columns: minmax(0, 1fr); } .signup-card { padding: var(--s4) var(--s3); } }

/* Stories */
.stories { position: relative; list-style: none; margin: 0; padding: 3px 0 0; }
.stories::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--c-accent); transform-origin: left center; }
html[dir="rtl"] .stories::before { transform-origin: right center; }
.story { display: grid; gap: var(--s2); padding-block: var(--s4); border-bottom: 1px solid var(--c-line); }
.story-title { font-size: clamp(1.45rem, 2.6vw, 2.15rem); max-width: 30ch; }
html[dir="rtl"] .story-title { max-width: 34ch; }
.story-title a { text-decoration: none; }
.story-title a:hover { color: var(--c-accent); }
.story-dek { font-size: 1.125rem; color: var(--c-mute); max-width: 52ch; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: 0.9375rem; color: var(--c-mute); }
.tag { background: var(--c-neon); color: var(--c-navy); padding: 2px 12px; border-radius: 999px; font-weight: 700; }

/* Creators and brands, on navy: the giant word with Amir in front of it */
.stage { padding-bottom: 0; overflow: hidden; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s4); align-items: end; }
.stage-word { grid-column: 1 / -1; grid-row: 1; margin: 0; text-align: center; color: var(--c-neon); white-space: nowrap; }
.stage-word span { display: inline-block; transform: scaleY(1.22); transform-origin: 50% 100%; }
.stage-word[lang="en"] { font-family: var(--f-en); font-weight: 800; font-style: italic; font-stretch: 75%; font-size: clamp(3.5rem, 23vw, 19.5rem); line-height: 0.8; }
.stage-word[lang="fa"] { font-family: var(--f-fa); font-weight: 900; font-size: clamp(3.5rem, 18.5vw, 15.5rem); line-height: 0.82; }
.stage-word[lang="fa"] { margin-bottom: 0.2em; }

.stage-amir { grid-column: 2; grid-row: 1 / 3; position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.stage-block { min-width: 0; grid-row: 2; margin-top: var(--s4); margin-bottom: var(--s5); padding-top: var(--s3); border-top: 3px solid var(--c-neon); }
.stage-block--a { grid-column: 1; }
.stage-block--b { grid-column: 3; }
.stage-block p { margin-top: var(--s2); color: var(--c-on-dark-mute); max-width: 32ch; }
.stage-block .actions { margin-top: var(--s3); }
@media (max-width: 899px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .stage-block, .stage-block--a, .stage-block--b { grid-column: 1; grid-row: auto; margin-top: 0; margin-bottom: var(--s5); }
  .stage-word { grid-row: auto; }
  .stage-amir { grid-column: 1; grid-row: auto; justify-self: center; width: min(80%, 400px); margin-top: -9%; }
}

/* Creators and brands, on navy (earlier layout, kept for reference) */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.duo > section { min-width: 0; padding-top: var(--s3); border-top: 3px solid var(--c-neon); }
.duo p { margin-top: var(--s2); color: var(--c-on-dark-mute); max-width: 36ch; }
.duo .actions { margin-top: var(--s3); }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* Lists */
.ticks { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s2); max-width: 46rem; }
.ticks li { position: relative; padding-inline-start: 38px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.68em; width: 22px; height: 6px; border-radius: 3px; background: var(--c-accent); }
html[dir="rtl"] .ticks li::before { top: 0.85em; }
.band--navy .ticks li::before { background: var(--c-neon); }
.steps { list-style: none; counter-reset: step; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s4); max-width: 46rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--s3); align-items: start; font-size: 1.15rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--c-accent); color: var(--c-paper); font-family: var(--f-head); font-weight: 900; font-size: 1.2rem; line-height: 1; }
html[lang="fa"] .steps li::before { content: counter(step, persian); }

/* Email sign-up (Netlify Forms, no script) */
.signup { margin-top: var(--s3); max-width: 40rem; }
.band-copy > .signup { margin-top: var(--s4); }
.signup-label { display: block; margin-bottom: var(--s1); font-weight: 700; color: var(--c-navy); }
.signup-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.signup-input { flex: 1 1 14rem; min-width: 0; min-height: 54px; box-sizing: border-box; padding: 0 var(--s3); border: 2px solid var(--c-line); border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font-family: var(--f-en); font-size: 1.0625rem; }
.signup-input:hover { border-color: var(--c-mute); }
.signup-input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-color: var(--c-accent); }
.signup-input:user-invalid { border-color: var(--c-error); box-shadow: inset 0 0 0 1px var(--c-error); }
.signup .btn { flex: 0 0 auto; font-family: inherit; cursor: pointer; }
.signup-note { margin-top: var(--s2); font-size: 0.9375rem; color: var(--c-mute); }
.signup-note a { font-weight: 700; color: var(--c-navy); }
.hp { display: none; }
@media (max-width: 480px) { .signup .btn { width: 100%; } }

/* Inner pages */
.page-hero { padding-block: var(--s5); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: center; }
.page-hero { overflow: hidden; }
.mark--big { width: clamp(200px, 27vw, 400px); margin: 0; margin-inline-end: var(--s4); align-self: end; margin-bottom: calc(-1 * var(--s5) - 22%); }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } .mark--big { display: none; } }
.page-hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.25rem); max-width: 18ch; }
html[dir="rtl"] .page-hero h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); max-width: 20ch; }
.article-hero h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); max-width: 22ch; }
html[dir="rtl"] .article-hero h1 { font-size: clamp(1.9rem, 3.9vw, 3.4rem); max-width: 26ch; }
.article-hero .story-meta { margin-top: var(--s3); }
.prose { max-width: 42rem; }
.prose > p { margin-top: var(--s3); }
.prose > p:first-child { margin-top: 0; }
.prose h2 { margin-top: var(--s5); font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
html[dir="rtl"] .prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.prose h2 + p { margin-top: var(--s2); }
.prose .intro { font-size: clamp(1.15rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--c-navy); }
.note { margin-top: var(--s5); padding: var(--s3); border-radius: var(--r-media); background: var(--c-ice); font-weight: 600; }
.sources { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s1); }
.back { margin-top: var(--s5); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s5); align-items: start; }
.article-grid > aside { grid-column: 2; grid-row: 1; position: sticky; top: 110px; }
.article-grid > .prose { grid-column: 1; grid-row: 1; }
.aside-title { font-weight: 700; margin-bottom: var(--s2); color: var(--c-navy); }
.article-grid .clip { width: 100%; max-width: 300px; }
@media (max-width: 900px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-grid > aside, .article-grid > .prose { grid-column: 1; grid-row: auto; position: static; }
}
.updated { margin-top: var(--s5); color: var(--c-mute); font-size: 0.9375rem; }

/* Footer */
.site-footer { background: var(--c-navy-deep); color: var(--c-on-dark); padding-block: var(--s5) var(--s4); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.footer-logo { display: block; margin-top: var(--s5); }
.footer-logo img { width: 100%; height: auto; transition: transform 0.45s var(--ease); }
.footer-logo:hover img { transform: translateY(-6px); }
.footer-text { margin-top: var(--s2); color: var(--c-on-dark-mute); max-width: 34ch; }
.footer-text.footer-lead { margin-top: 0; font-size: 1.15rem; color: var(--c-on-dark); }
.footer-text a { color: var(--c-on-dark); }
html .site-footer h2 { font-family: var(--f-body); font-size: 0.9375rem; font-weight: 600; font-style: normal; font-stretch: 100%; text-transform: none; line-height: 1.5; letter-spacing: 0; color: var(--c-on-dark-mute); margin-bottom: var(--s2); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-list a { display: inline-block; min-height: 28px; text-decoration: none; }
.footer-list a.footer-social { display: inline-flex; align-items: center; gap: 10px; }
.footer-social .si { width: 20px; height: 20px; }
.footer-list a:hover, .footer-text a:hover { color: var(--c-neon); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--c-line-dark); font-size: 0.9375rem; color: var(--c-on-dark-mute); }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer-bottom a { color: var(--c-on-dark); text-decoration: none; display: inline-block; min-height: 28px; }
.footer-bottom a:hover { color: var(--c-neon); text-decoration: underline; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.nf { min-height: 70vh; display: grid; align-content: center; }
.mark--nf { width: 120px; }
.nf-lines { display: grid; gap: var(--s4); margin-top: var(--s4); }
.nf-lines h1 { font-size: clamp(2rem, 4vw, 3.25rem); }

/* Motion (motion.js adds .motion to <html>; pages are complete without it) */
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 0.55em, 0); } }
@keyframes settle { from { transform: scale(1.14); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85); } }
@keyframes frame-in { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(.94); } }
.hero h1 .w { display: inline-block; animation: rise-in 0.9s var(--ease) both; }
.hero h1 .w:nth-child(2) { animation-delay: 0.07s; }
.hero h1 .w:nth-child(3) { animation-delay: 0.14s; }
.hero h1 .w:nth-child(4) { animation-delay: 0.21s; }
.hero h1 .w:nth-child(5) { animation-delay: 0.28s; }
.hero h1 .w:nth-child(n+6) { animation-delay: 0.35s; }
.hero .lead { animation: rise-in 0.9s var(--ease) 0.32s both; }
.hero .actions { animation: rise-in 0.9s var(--ease) 0.44s both; }
.hero .also, .hero .hero-follow { animation: rise-in 0.9s var(--ease) 0.54s both; }
.hero-clip { animation: frame-in 1.1s var(--ease) 0.1s both; }
.hero-zoom { animation: settle 1.8s var(--ease) both; }
.page-hero h1 { animation: rise-in 0.9s var(--ease) both; }
.page-hero .lead, .page-hero .story-meta { animation: rise-in 0.9s var(--ease) 0.15s both; }
.page-hero .actions { animation: rise-in 0.9s var(--ease) 0.28s both; }
.mark--big, .hero-badge { animation: pop-in 1s var(--ease) 0.5s both; }

.readline { position: fixed; top: 0; inset-inline: 0; z-index: 40; height: 3px; background: var(--c-accent); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
html[dir="rtl"] .readline { transform-origin: right center; }
.motion .site-header { transition: transform 0.35s var(--ease), box-shadow 0.35s ease; }
.motion .site-header.is-small { box-shadow: 0 8px 24px -16px rgb(4 25 87 / .35); }
@media (min-width: 1060px) {
  .motion .header-row { transition: transform 0.35s var(--ease); }
  .motion .site-header.is-small { transform: translateY(-18px); box-shadow: 0 8px 24px -16px rgb(4 25 87 / .35); }
  .motion .site-header.is-small .header-row { transform: translateY(9px) scale(.9); }
}

.motion [data-rv].pending { transition: transform 0.9s var(--ease) calc(var(--i, 0) * 90ms); }
.motion [data-rv="rise"].pending:not(.in) { transform: translate3d(0, 28px, 0) scale(.97); }
.motion [data-rv="grow"].pending:not(.in) { transform: scale(.86); }
.motion [data-rv="grow"] { transform-origin: left center; }
html[dir="rtl"].motion [data-rv="grow"] { transform-origin: right center; }
.motion [data-rv].pending::before { transition: transform 1s var(--ease) calc(var(--i, 0) * 90ms + 0.15s); }
.motion .stories.pending:not(.in)::before, .motion .ticks li.pending:not(.in)::before { transform: scaleX(0); }
.motion .ticks li::before { transform-origin: left center; }
html[dir="rtl"].motion .ticks li::before { transform-origin: right center; }
.motion .steps li.pending:not(.in)::before { transform: scale(.3) rotate(-20deg); }
.motion .mark { transform: translate(var(--gx, 0px), var(--gy, 0px)) rotate(var(--gr, 0deg)); transition: transform 0.6s var(--ease), opacity 0.7s var(--ease); }
.motion .mark .mark-accent { transform-box: fill-box; transform-origin: center; transform: translate(calc(var(--gx, 0px) * 2), calc(var(--gy, 0px) * 2)) rotate(calc(var(--gr, 0deg) * 4)); transition: transform 0.45s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .btn:active, .vid-link:hover .vid-media img, .vid-link:focus-visible .vid-media img, .film-toggle:hover { transform: none; }
  .hero-clip img, .hero-video { transform: none; }
  .hero-video { display: none; }
  .vid-media, .hero-media { transform: none; }
  .btn, .film-toggle, .socials a { translate: none; }
  .readline { display: none; }
}
