:root {
  --ink: #171612;
  --paper: #f4f1ea;
  --line: #c9c3b7;
  --accent: #e54b2f;
  --muted: #69665f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", system-ui, sans-serif;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.topbar {
  height: 78px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; width: max-content; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.topbar nav { display: flex; gap: 34px; font-size: 14px; }
.topbar nav a { position: relative; }
.topbar nav a.active::after { content: ""; position: absolute; right: 0; left: 0; bottom: -10px; height: 2px; background: var(--accent); }
.language { justify-self: end; background: transparent; border: 1px solid var(--ink); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: 12px; }

.intro {
  min-height: 650px;
  padding: clamp(78px, 10vw, 140px) clamp(20px, 8vw, 130px) 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.intro::before {
  content: "ف";
  position: absolute;
  left: 4vw;
  top: -18vw;
  font-size: clamp(420px, 62vw, 950px);
  line-height: 1;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px #d8d3ca;
  z-index: -1;
  transform: rotate(-8deg);
}
.eyebrow, .kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 36px; height: 1px; background: var(--accent); }
h1 { font-size: clamp(58px, 9vw, 124px); line-height: .97; letter-spacing: -.05em; margin: 28px 0; max-width: 820px; }
h1 em { color: var(--accent); font-style: normal; }
.intro > p { max-width: 520px; color: var(--muted); line-height: 2; font-size: clamp(16px, 2vw, 20px); }
.primary-cta { margin-top: 26px; display: inline-flex; align-items: center; gap: 28px; background: var(--ink); color: white; padding: 16px 24px; border-radius: 3px; font-weight: 600; transition: transform .2s, background .2s; }
.primary-cta:hover { transform: translateY(-2px); background: var(--accent); }
.intro-note { position: absolute; left: clamp(20px, 7vw, 100px); bottom: 50px; color: var(--muted); font-size: 12px; writing-mode: vertical-rl; }

.feed { padding: 100px clamp(20px, 5vw, 76px) 120px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.section-head h2, .creator-callout h2 { font-size: clamp(42px, 6vw, 72px); line-height: 1.15; margin: 7px 0 0; letter-spacing: -.04em; }
.shuffle { background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; cursor: pointer; }
.topics { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 28px; scrollbar-width: none; }
.topics button { white-space: nowrap; background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 9px 18px; cursor: pointer; }
.topics button.selected { background: var(--ink); color: white; border-color: var(--ink); }
.reel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.reel { min-height: 560px; border: 1px solid var(--ink); display: flex; flex-direction: column; position: relative; transition: transform .25s, opacity .2s; }
.reel:hover { transform: translateY(-5px); }
.reel[hidden] { display: none; }
.reel-top { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-bottom: 1px solid currentColor; }
.reel-top button { border: 0; background: transparent; font-size: 21px; cursor: pointer; }
.source { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.reel-art { flex: 1; min-height: 270px; display: grid; place-items: center; position: relative; overflow: hidden; }
.reel-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,8,.03) 20%, rgba(10,10,8,.56) 100%); }
.reel-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.03); transition: transform .35s ease; }
.reel-art:hover img { transform: scale(1.035); }
.reel-art:hover .play { background: var(--ink); color: white; transform: scale(1.06); }
.play { position: absolute; z-index: 3; width: 58px; height: 58px; border-radius: 50%; border: 1px solid white; background: rgba(0,0,0,.28); color: white; display: grid; place-items: center; font-size: 14px; padding-right: 3px; opacity: .96; backdrop-filter: blur(5px); }
.large-word, .dish, .signal, .mapline { position: relative; z-index: 2; color: white; text-shadow: 0 2px 22px rgba(0,0,0,.5); }
.large-word { font-size: clamp(68px, 7vw, 110px); font-weight: 800; transform: rotate(-90deg); opacity: .88; }
.dish { font-size: 44px; font-weight: 800; line-height: 1.1; text-align: center; opacity: .9; }
.signal { font-size: 58px; font-weight: 800; opacity: .9; direction: rtl; }
.mapline { font-size: 38px; line-height: 1.1; text-align: center; font-weight: 800; opacity: .9; }
.reel-copy { padding: 18px; background: var(--paper); color: var(--ink); border-top: 1px solid var(--ink); }
.duration { float: left; font-size: 11px; }
.reel-copy h3 { font-size: 20px; line-height: 1.55; margin: 0 0 6px; padding-left: 40px; }
.reel-copy p { color: var(--muted); font-size: 13px; line-height: 1.7; min-height: 45px; }
.creator { display: flex; align-items: center; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.creator span:last-child { display: flex; flex-direction: column; }
.creator strong { font-size: 12px; }
.creator small { direction: ltr; color: var(--muted); font-size: 10px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-weight: 700; }
.reel-plum { background: #6c365d; color: #f8dcf0; }
.reel-saffron { background: #f4b73b; color: #37250b; }
.reel-cobalt { background: #2855bc; color: #dce7ff; }
.reel-mint { background: #8bcbb1; color: #183b2e; }
.reel-rose { background: #eaa6a1; color: #471d1b; }
.reel-sky { background: #a9cce3; color: #183448; }
.reel-olive { background: #b9bf74; color: #29300f; }

.creator-callout { margin: 0 clamp(20px, 5vw, 76px) 100px; padding: clamp(38px, 7vw, 84px); background: var(--ink); color: white; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 5vw, 80px); align-items: center; position: relative; overflow: hidden; }
.creator-callout .outline-number { font-size: 110px; color: transparent; -webkit-text-stroke: 1px #6d6b66; font-weight: 800; }
.creator-callout h2 { max-width: 720px; }
.creator-callout p { color: #bdbab2; line-height: 1.9; max-width: 640px; }
.creator-callout > a { border-bottom: 1px solid white; padding: 10px 0; white-space: nowrap; }

footer { border-top: 1px solid var(--line); padding: 54px clamp(20px, 5vw, 76px); display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; color: var(--muted); }
footer .brand { color: var(--ink); }

@media (max-width: 1050px) {
  .reel-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-callout { grid-template-columns: auto 1fr; }
  .creator-callout > a { grid-column: 2; width: max-content; }
}
@media (max-width: 700px) {
  .topbar { height: 66px; grid-template-columns: 1fr auto; }
  .topbar nav { position: fixed; bottom: 0; right: 0; left: 0; height: 62px; background: var(--paper); border-top: 1px solid var(--line); justify-content: space-around; align-items: center; z-index: 30; }
  .topbar nav a.active::after { bottom: -18px; }
  .intro { min-height: 610px; padding-top: 90px; }
  .intro-note { display: none; }
  .feed { padding-top: 72px; }
  .section-head { align-items: center; }
  .reel-grid { grid-template-columns: 1fr; }
  .reel { min-height: 650px; }
  .creator-callout { grid-template-columns: 1fr; }
  .creator-callout .outline-number { font-size: 72px; }
  .creator-callout > a { grid-column: 1; }
  footer { grid-template-columns: 1fr; gap: 18px; margin-bottom: 62px; }
}
