/* Hallmark · custom mode · "petrol manuscript" — paper + petrol, one display face (Vazirmatn), rust as a single accent.
   Critique: slides carry more than ~80 words by request (data-dense teaching deck); density handled by click-to-reveal.
   Waivers: stroke-dashoffset animated on SVG roadmap lines (paint-only, no layout). */

@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --paper: #F4F5F3;
  --paper-2: #EBEEEC;
  --paper-3: #E1E6E4;
  --ink: #0E1723;
  --ink-2: #44515C;
  --ink-3: #7A8690;
  --line: #CDD6D3;
  --petrol: #1E6E68;
  --petrol-deep: #0E3F3B;
  --petrol-night: #0A2B29;
  --teal: #52B2A8;
  --teal-soft: #D3EBE7;
  --teal-mist: #E6F3F1;
  --rust: #A94E1B;
  --rust-soft: #F4E3D9;
  --sand: #E9DFCF;
  --font: "Vazirmatn", "Tahoma", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --stage-w: 1920px;
  --stage-h: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--petrol-night); overflow-x: clip; overflow-y: hidden; }
body { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select { font-family: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

/* ---------- stage ---------- */
#viewport { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 50%; top: 50%; width: var(--stage-w); height: var(--stage-h); transform-origin: center center; transform: translate(-50%, -50%); }
.slide {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--paper); color: var(--ink);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.no-js .slide { position: relative; opacity: 1; visibility: visible; margin-bottom: 24px; }

.s-dark { background: var(--petrol-deep); color: var(--paper); }
.s-dark::before, .s-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.s-dark::before { opacity: 1; }

/* ---------- chrome: brand, page number, source, progress ---------- */
.brandbar { position: absolute; top: 40px; right: 120px; display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; opacity: .42; z-index: 5; direction: ltr; }
.brandbar img { width: 22px; height: 32px; }
.s-dark .brandbar { opacity: .5; }
.pageno { position: absolute; bottom: 40px; left: 320px; font-size: 20px; opacity: .4; z-index: 5; }
.presenter { position: absolute; top: 30px; left: 120px; display: flex; align-items: center; gap: 12px; z-index: 5; font-size: 22px; font-weight: 600; opacity: .85; }
.presenter img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--teal); }
.s-dark .presenter img { box-shadow: 0 0 0 3px var(--petrol-deep), 0 0 0 5px var(--teal); }
.source { position: absolute; bottom: 38px; right: 120px; left: 340px; font-size: 18px; color: var(--ink-3); z-index: 5; line-height: 1.6; }
.s-dark .source { color: rgba(244,245,243,.55); }
#progress { position: absolute; bottom: 0; right: 0; height: 6px; width: 100%; background: transparent; z-index: 20; }
#progress span { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: right center; transform: scaleX(0); transition: transform .5s var(--ease); }
#navbtns { position: absolute; bottom: 24px; left: 120px; z-index: 20; display: flex; gap: 10px; opacity: .25; transition: opacity .3s; }
#navbtns:hover, #navbtns:focus-within { opacity: 1; }
#navbtns button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: var(--ink-2); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
body.dark-now #navbtns button { color: var(--paper); }
#navbtns button:hover { background: var(--teal-soft); color: var(--petrol-deep); }

/* ---------- layout primitives ---------- */
.frame { position: absolute; top: 120px; right: 120px; bottom: 100px; left: 120px; display: flex; flex-direction: column; }
.title { font-size: 64px; font-weight: 700; line-height: 1.35; margin: 0 0 12px; letter-spacing: 0; }
.lead { font-size: 33px; line-height: 1.75; color: var(--ink-2); margin: 0 0 28px; max-width: 1400px; }
.s-dark .lead { color: rgba(244,245,243,.82); }
.row { display: flex; gap: 32px; }
.col { display: flex; flex-direction: column; gap: 24px; }
.grow { flex: 1 1 0; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mt-auto { margin-top: auto !important; }
.muted { color: var(--ink-3); }
.small { font-size: 22px; line-height: 1.7; }
.body { font-size: 27px; line-height: 1.8; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-weight: 900; color: var(--petrol); }
.rust { color: var(--rust); }
.petrol { color: var(--petrol); }

.panel { background: #fff; border: 1.5px solid var(--line); border-radius: 28px; padding: 32px 36px; }
.panel.tint { background: var(--teal-mist); border-color: transparent; }
.panel.warm { background: var(--rust-soft); border-color: transparent; }
.panel.dark { background: var(--petrol); color: var(--paper); border-color: transparent; }
.panel h3 { font-size: 34px; font-weight: 700; margin: 0 0 10px; line-height: 1.5; }
.panel p { margin: 0; font-size: 27px; line-height: 1.8; color: var(--ink-2); }
.panel.dark p { color: rgba(244,245,243,.85); }

.ic { width: 56px; height: 56px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-badge { width: 88px; height: 88px; border-radius: 26px; display: grid; place-items: center; background: var(--teal-soft); color: var(--petrol); flex: none; }
.ic-badge.warm { background: var(--rust-soft); color: var(--rust); }
.ic-badge.dark { background: var(--petrol); color: var(--paper); }

.tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 22px; border-radius: 999px; background: var(--teal-soft); color: var(--petrol-deep); font-size: 22px; font-weight: 600; }
.tag.warm { background: var(--rust-soft); color: var(--rust); }

/* clickable things */
.clickable { cursor: pointer; transition: transform .35s var(--ease), opacity .35s var(--ease), box-shadow .35s var(--ease); }
.clickable:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -22px rgba(14,63,59,.45); }
.hint { font-size: 20px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s infinite; }
.s-dark .hint { color: rgba(244,245,243,.6); }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.8); opacity: .3 } }

/* entrance animation */
.js .slide .rise { opacity: 0; }
.slide.active .rise { animation: rise .75s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.js .frag { opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .frag.on { opacity: 1; transform: none; }

/* ---------- art placeholders (replaced by assets/img/pN.jpg when present) ---------- */
.art { position: absolute; overflow: hidden; background: var(--petrol); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.art svg.fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide.active .art svg.fallback .orb { animation: drift 14s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.slide.active .art svg.fallback .orb:nth-child(2n) { animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -30px) scale(1.08); } }

/* ---------- cover ---------- */
.cover .art { top: 0; bottom: 0; left: 0; width: 46%; }
.cover .art::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(to left, var(--petrol-deep) 0%, rgba(14,63,59,0) 40%); }
.cover .frame { right: 120px; left: 46%; top: 170px; }
.cover .free { font-size: 30px; font-weight: 600; color: var(--teal); margin-bottom: 8px; }
.cover h1 { font-size: 150px; font-weight: 900; line-height: 1.15; margin: 0; }
.cover h1 span { display: block; font-size: 84px; font-weight: 700; color: rgba(244,245,243,.9); }
.cover .sub { font-size: 34px; line-height: 1.7; color: rgba(244,245,243,.8); margin: 26px 0 0; max-width: 820px; }
.cover .who { margin-top: auto; display: flex; gap: 64px; font-size: 26px; }
.cover .who b { display: block; font-size: 32px; font-weight: 700; margin-top: 4px; }
.cover .who small { color: var(--teal); font-size: 22px; }

/* roadmap */
.roadmap { width: 100%; height: 170px; }
.roadmap .track { stroke: rgba(244,245,243,.25); stroke-width: 3; }
.roadmap .draw { stroke: var(--teal); stroke-width: 4; stroke-dasharray: 1700; stroke-dashoffset: 1700; }
.slide.active .roadmap .draw { transition: stroke-dashoffset 2.6s var(--ease) .5s; stroke-dashoffset: 0; }
.roadmap circle { fill: var(--petrol-deep); stroke: var(--teal); stroke-width: 3; }
.roadmap circle.last { stroke: var(--rust); fill: var(--rust); }
.roadmap text { fill: rgba(244,245,243,.85); font-size: 22px; font-family: var(--font); text-anchor: middle; }

/* ---------- section divider ---------- */
.divider .art { top: 0; bottom: 0; left: 0; width: 52%; }
.divider .frame { right: 120px; left: 56%; justify-content: center; }
.divider .secno { font-size: 300px; font-weight: 900; line-height: 1; color: var(--teal); opacity: .9; margin-bottom: 10px; }
.divider h2 { font-size: 92px; font-weight: 900; line-height: 1.3; margin: 0; }
.divider p { font-size: 32px; color: rgba(244,245,243,.75); line-height: 1.7; margin: 24px 0 0; }

/* ---------- slide 2 question ---------- */
.frame.question { justify-content: center; align-items: flex-start; }
.question .q { font-size: 120px; font-weight: 900; line-height: 1.35; margin: 0; position: relative; }
.question .strike { position: relative; display: inline-block; }
.question .strike::after { content: ""; position: absolute; right: -10px; left: -10px; top: 54%; height: 14px; background: var(--rust); border-radius: 8px; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.question.struck .strike::after { transform: scaleX(1); }
.question .answer { font-size: 72px; font-weight: 700; color: var(--petrol); margin-top: 30px; }

/* ---------- metro agenda ---------- */
.metro { position: relative; margin-top: 80px; height: 520px; }
.metro .line { position: absolute; top: 120px; right: 60px; left: 60px; height: 10px; border-radius: 6px; background: var(--paper-3); }
.metro .line i { position: absolute; inset: 0; border-radius: 6px; background: var(--petrol); transform-origin: right; transform: scaleX(0); }
.slide.active .metro .line i { transition: transform 2.2s var(--ease) .3s; transform: scaleX(1); }
.metro .stations { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.metro .st { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
.metro .st .dot { width: 96px; height: 96px; border-radius: 50%; background: var(--paper); border: 8px solid var(--petrol); display: grid; place-items: center; margin-top: 76px; font-size: 34px; font-weight: 900; color: var(--petrol); transition: transform .3s var(--ease), background .3s; }
.metro .st:hover .dot { transform: scale(1.12); background: var(--teal-soft); }
.metro .st:last-child .dot { border-color: var(--rust); color: var(--rust); }
.metro .st b { font-size: 30px; font-weight: 700; line-height: 1.5; }
.metro .st span { font-size: 22px; color: var(--ink-3); line-height: 1.6; padding: 0 10px; }

/* ---------- dimension cards ---------- */
.dim { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 36px; border-radius: 30px; background: #fff; border: 1.5px solid var(--line); }
.dim .head { display: flex; align-items: center; gap: 20px; }
.dim h3 { font-size: 36px; margin: 0; line-height: 1.4; }
.dim h3 small { display: block; font-size: 20px; font-weight: 500; color: var(--ink-3); direction: ltr; text-align: right; }
.dim dl { margin: 0; display: grid; gap: 14px; }
.dim dt { font-size: 22px; font-weight: 700; color: var(--petrol); }
.dim dd { margin: 0; font-size: 25px; line-height: 1.75; color: var(--ink-2); }
.dim .out { margin-top: auto; background: var(--petrol); color: var(--paper); border-radius: 20px; padding: 20px 24px; font-size: 25px; line-height: 1.7; opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.dim .out b { color: var(--teal); }
.dim.open .out, .no-js .dim .out { opacity: 1; transform: none; }
.dims.has-focus .dim:not(.open) { opacity: .45; }

/* chain */
.chain { display: flex; align-items: stretch; gap: 0; margin-top: 40px; }
.chain .link { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: 0 14px; }
.chain .link p { font-size: 28px; line-height: 1.6; margin: 0; font-weight: 600; }
.chain .arrow { flex: none; width: 70px; display: grid; place-items: center; color: var(--teal); padding-top: 30px; }
.chain .arrow svg { width: 50px; height: 50px; }
.quote { font-size: 38px; line-height: 1.8; font-weight: 500; border-right: 8px solid var(--rust); padding: 8px 36px 8px 0; margin: 0; max-width: 1500px; }

/* venn */
.venn { position: relative; width: 760px; height: 700px; flex: none; }
.venn .c { position: absolute; width: 420px; height: 420px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 30px; font-weight: 700; padding: 70px; cursor: pointer; border: 0; color: var(--ink); transition: transform .35s var(--ease), opacity .35s; mix-blend-mode: multiply; }
.venn .c:hover, .venn .c.sel { transform: scale(1.05); }
.venn .c1 { top: 0; right: 170px; background: rgba(82,178,168,.55); }
.venn .c2 { bottom: 0; right: 0; background: rgba(30,110,104,.42); align-items: end; }
.venn .c3 { bottom: 0; left: 0; background: rgba(169,78,27,.32); align-items: end; }
.venn .core { position: absolute; top: 400px; left: 380px; transform: translate(-50%, -50%); padding: 10px 20px; border-radius: 16px; background: rgba(244,245,243,.92); text-align: center; font-size: 26px; font-weight: 900; color: var(--petrol-deep); pointer-events: none; z-index: 2; line-height: 1.4; white-space: nowrap; }
.vinfo { min-height: 220px; }

/* pyramid */
.pyr { width: 900px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pyr button { border: 0; color: var(--paper); font-size: 26px; font-weight: 700; height: 92px; border-radius: 14px; cursor: pointer; transition: transform .3s var(--ease), filter .3s; }
.pyr button:hover, .pyr button.sel { transform: scale(1.04); filter: brightness(1.1); }
.pyr button.sel { outline: 4px solid var(--rust); outline-offset: 3px; }

/* cycle */
.cycle { position: relative; width: 760px; height: 760px; flex: none; }
.cycle .ring { position: absolute; inset: 70px; border-radius: 50%; border: 6px dashed var(--teal); }
.slide.active .cycle .ring { animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
.cycle .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.cycle .center div { width: 260px; height: 260px; border-radius: 50%; background: var(--petrol); color: var(--paper); display: grid; place-items: center; font-size: 30px; font-weight: 700; line-height: 1.5; }
.cycle .node { position: absolute; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; background: #fff; border: 4px solid var(--petrol); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: transform .3s var(--ease), background .3s; color: var(--ink); }
.cycle .node b { font-size: 30px; direction: ltr; }
.cycle .node span { font-size: 21px; color: var(--ink-2); }
.cycle .node:hover, .cycle .node.sel { transform: scale(1.1); background: var(--teal-soft); }
.cycle .node.sel { border-color: var(--rust); }

/* routes */
.route { display: flex; flex-direction: column; gap: 18px; padding: 40px 36px; border-radius: 30px; background: #fff; border: 1.5px solid var(--line); text-align: right; font: inherit; color: inherit; cursor: pointer; }
.route h3 { font-size: 34px; margin: 0; line-height: 1.45; }
.route p { margin: 0; font-size: 24px; line-height: 1.75; color: var(--ink-2); }
.route .go { margin-top: auto; font-size: 21px; color: var(--petrol); font-weight: 700; }

/* tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 24px; }
.tbl th, .tbl td { padding: 16px 18px; text-align: center; border-bottom: 1.5px solid var(--line); line-height: 1.5; }
.tbl th { font-weight: 700; color: var(--petrol-deep); background: var(--teal-mist); }
.tbl th:first-child { border-radius: 0 16px 0 0; }
.tbl th:last-child { border-radius: 16px 0 0 0; }
.tbl td:first-child, .tbl th:first-child { text-align: right; }
.tbl tr.hl td { background: var(--rust-soft); }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: 76px; font-weight: 900; color: var(--petrol); line-height: 1.1; }
.stat span { font-size: 23px; color: var(--ink-2); line-height: 1.6; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 30px; font-size: 24px; }
.calc label { display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 20px; font-size: 22px; cursor: pointer; color: var(--ink-2); transition: background .25s, color .25s; }
.seg button.on { background: var(--petrol); border-color: var(--petrol); color: var(--paper); }
.calc input[type=range] { width: 100%; accent-color: var(--petrol); height: 30px; }
.toggle { display: flex !important; flex-direction: row !important; align-items: center; gap: 14px; cursor: pointer; }
.toggle input { width: 28px; height: 28px; accent-color: var(--petrol); }
.meter { position: relative; height: 34px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.meter i { position: absolute; inset: 0; background: var(--petrol); transform-origin: right; transform: scaleX(0); transition: transform .6s var(--ease); border-radius: 999px; }
.meter.full i { background: var(--rust); }
.result { font-size: 30px; line-height: 1.6; }
.result b { font-size: 92px; font-weight: 900; color: var(--petrol); line-height: 1; }
.formula { font-size: 24px; color: var(--ink-2); direction: rtl; }

/* bars (NRMP) */
.bars { display: flex; flex-direction: column; gap: 20px; }
.bar-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: center; gap: 24px; cursor: default; }
.bar-row .lbl { font-size: 26px; font-weight: 700; line-height: 1.3; }
.bar-row .lbl small { display: block; font-size: 18px; font-weight: 500; color: var(--ink-3); }
.bar-row .tracks { display: flex; flex-direction: column; gap: 8px; }
.bar { position: relative; height: 34px; }
.bar i { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 0 10px 10px 0; transform-origin: right; transform: scaleX(0); width: var(--w); }
.bar.bm i { background: var(--petrol); }
.bar.bu i { background: var(--ink-3); opacity: .45; }
.bar i.range { opacity: .35; }
.slide.active .bar i { transition: transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 300ms); transform: scaleX(1); }
.bar em { position: absolute; top: 50%; transform: translateY(-50%); right: calc(var(--w) + 14px); font-style: normal; font-size: 22px; font-weight: 700; white-space: nowrap; }
.bar.bm em { color: var(--petrol); }
.bar.bu em { color: var(--ink-3); }
.legend { display: flex; gap: 32px; font-size: 22px; }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.legend i { width: 26px; height: 18px; border-radius: 5px; background: var(--petrol); }
.legend i.u { background: var(--ink-3); opacity: .45; }

/* flip cases */
.case { position: relative; border-radius: 28px; padding: 30px 34px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; overflow: hidden; }
.case h3 { font-size: 30px; margin: 0 0 12px; }
.case p { font-size: 24px; line-height: 1.8; margin: 0; color: var(--ink-2); }
.case .stamp { position: absolute; top: 26px; left: 30px; font-size: 34px; font-weight: 900; padding: 6px 26px; border: 5px solid; border-radius: 14px; transform: rotate(-12deg) scale(2.2); opacity: 0; transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .3s; }
.case .stamp.ok { color: var(--petrol); }
.case .stamp.no { color: var(--rust); }
.case.on .stamp { opacity: 1; transform: rotate(-12deg) scale(1); }

/* expandable rows */
.xrow { border-radius: 22px; background: #fff; border: 1.5px solid var(--line); padding: 26px 30px; cursor: pointer; transition: background .3s; }
.xrow:hover { background: var(--teal-mist); }
.xrow .top { display: grid; grid-template-columns: 340px repeat(3, minmax(0, 1fr)); gap: 20px; align-items: center; font-size: 25px; line-height: 1.6; }
.xrow .top b { font-size: 28px; }
.xrow .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.xrow .more > div { overflow: hidden; font-size: 25px; color: var(--petrol-deep); line-height: 1.7; }
.xrow.open .more { grid-template-rows: 1fr; }
.xrow.open .more > div { padding-top: 14px; }
.xhead { display: grid; grid-template-columns: 340px repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0 30px; font-size: 20px; font-weight: 700; color: var(--ink-3); }

/* hardship cards */
.hard { border-radius: 30px; padding: 34px; background: #fff; border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.hard .big { font-size: 56px; white-space: nowrap; font-weight: 900; color: var(--rust); line-height: 1.15; }
.hard .big small { font-size: 24px; display: block; font-weight: 700; }
.hard h3 { font-size: 30px; margin: 0; line-height: 1.45; }
.hard p { font-size: 25px; line-height: 1.85; margin: 0; color: var(--ink-2); }
.hard.open p, .no-js .hard p { display: block; }

/* road stages */
.road { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 20px; }
.road::before { content: ""; position: absolute; top: 60px; right: 6%; left: 6%; height: 8px; border-radius: 6px; background: repeating-linear-gradient(to left, var(--teal) 0 40px, transparent 40px 64px); }
.stage-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.stage-card .pin { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol); color: var(--paper); font-size: 32px; font-weight: 900; line-height: 1.2; z-index: 1; box-shadow: 0 0 0 12px var(--paper); }
.stage-card:nth-child(3) .pin { background: var(--rust); }
.stage-card h3 { font-size: 32px; margin: 8px 0 0; }
.stage-card p { font-size: 24px; line-height: 1.8; color: var(--ink-2); margin: 0; }

/* lifecycle stepper */
.life { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 0; position: relative; margin-top: 30px; }
.life::before { content: ""; position: absolute; top: 53px; right: 4%; left: 4%; height: 6px; background: var(--paper-3); border-radius: 4px; }
.life .fill { position: absolute; top: 53px; right: 4%; height: 6px; background: var(--petrol); border-radius: 4px; width: calc(var(--p, 0) * 92%); transition: width .5s var(--ease); }
.life button { position: relative; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; cursor: pointer; color: inherit; font: inherit; }
.life .dot { width: 112px; height: 112px; border-radius: 50%; background: var(--paper); border: 5px solid var(--line); display: grid; place-items: center; color: var(--ink-3); transition: border-color .3s, background .3s, color .3s, transform .3s var(--ease); }
.life .dot svg { width: 42px; height: 42px; }
.life button.done .dot { border-color: var(--petrol); color: var(--petrol); }
.life button.sel .dot { background: var(--petrol); color: var(--paper); transform: scale(1.12); border-color: var(--petrol); }
.life button span { font-size: 23px; font-weight: 700; line-height: 1.4; text-align: center; }
.life-info { margin-top: 70px; display: grid; grid-template-columns: 140px minmax(0, 1fr) 360px; gap: 36px; align-items: center; background: #fff; border-radius: 30px; border: 1.5px solid var(--line); padding: 36px 44px; min-height: 300px; }
.life-info .n { font-size: 110px; font-weight: 900; color: var(--teal); line-height: 1; }
.life-info h3 { font-size: 46px; margin: 0 0 8px; }
.life-info p { font-size: 30px; line-height: 1.8; margin: 0; color: var(--ink-2); }
.life-info .time { font-size: 26px; font-weight: 700; color: var(--rust); text-align: center; }

/* congress */
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 26px; font-size: 23px; cursor: pointer; color: var(--ink-2); }
.chips button.on { background: var(--petrol); color: var(--paper); border-color: var(--petrol); }
.cong { border-radius: 26px; padding: 30px 28px; min-height: 250px; background: #fff; border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.cong.dim-out { opacity: .18; transform: scale(.97); }
.cong .f { font-size: 20px; font-weight: 700; color: var(--petrol); }
.cong.ai .f { color: var(--rust); }
.cong h3 { font-size: 30px; margin: 0; direction: ltr; text-align: right; line-height: 1.4; }
.cong p { font-size: 21px; margin: 0; color: var(--ink-3); direction: ltr; text-align: right; line-height: 1.5; }

/* puzzle */
.gaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.gap { display: flex; gap: 26px; align-items: flex-start; padding: 40px; border-radius: 28px; background: #fff; border: 1.5px solid var(--line); }
.gap p { font-size: 32px; line-height: 1.75; margin: 0; }
.gap .k { font-size: 48px; font-weight: 900; color: var(--rust); line-height: 1; }
.slide.active .gap { animation: snap .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }
@keyframes snap { from { opacity: 0; transform: translate(calc(var(--dx, 0) * 1px), calc(var(--dy, 0) * 1px)) rotate(calc(var(--r, 0) * 1deg)); } to { opacity: 1; transform: none; } }

/* flow with moving dot */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.flow .track { position: absolute; top: 74px; right: 8%; left: 8%; height: 6px; background: var(--teal-soft); border-radius: 4px; }
.flow .runner { position: absolute; top: 64px; right: 8%; width: 26px; height: 26px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 8px rgba(169,78,27,.18); }
.slide.active .flow .runner { animation: run 7s var(--ease) infinite; }
@keyframes run { 0% { transform: translateX(0); opacity: 0 } 6% { opacity: 1 } 90% { opacity: 1 } 100% { transform: translateX(calc(-1 * var(--run, 1300px))); opacity: 0 } }
.flow .stop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.flow .stop .ic-badge { width: 150px; height: 150px; border-radius: 50%; background: var(--paper); border: 6px solid var(--petrol); color: var(--petrol); }
.flow .stop .ic-badge .ic { width: 64px; height: 64px; }
.flow .stop h3 { font-size: 30px; margin: 0; line-height: 1.45; }
.flow .stop p { font-size: 22px; margin: 0; line-height: 1.7; color: var(--ink-2); }
.flow .stop.last .ic-badge { border-color: var(--rust); color: var(--rust); }

/* weekly loop */
.loop { position: relative; width: 740px; height: 740px; flex: none; }
.loop .orbit { position: absolute; inset: 100px; border-radius: 50%; border: 5px solid var(--teal-soft); }
.loop .sat { position: absolute; inset: 100px; }
.slide.active .loop .sat { animation: spin 9s linear infinite; }
.loop .sat i { position: absolute; top: -16px; left: 50%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--rust); }
.loop .step { position: absolute; width: 210px; margin: -80px 0 0 -105px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.loop .step .ic-badge { width: 112px; height: 112px; border-radius: 50%; background: #fff; border: 4px solid var(--petrol); }
.loop .step b { font-size: 25px; line-height: 1.4; }
.loop .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.loop .mid div { font-size: 34px; font-weight: 900; color: var(--petrol); line-height: 1.5; }

/* weeks */
.week { border-radius: 26px; padding: 28px; background: #fff; border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.week .wk { font-size: 22px; font-weight: 700; color: var(--teal); }
.week h3 { font-size: 30px; margin: 0; line-height: 1.45; }
.week ol { margin: 6px 0 0; padding: 0 24px 0 0; font-size: 21px; line-height: 1.7; color: var(--ink-2); }
.week.open { background: var(--teal-mist); border-color: var(--teal); }
.week.w7 { background: var(--petrol); color: var(--paper); border-color: var(--petrol); }
.week.w7 .wk { color: var(--teal); }
.week.w7 p { font-size: 22px; line-height: 1.75; margin: 0; color: rgba(244,245,243,.85); }

/* checklist */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.check { display: flex; align-items: center; gap: 22px; font-size: 32px; font-weight: 600; padding: 22px 28px; border-radius: 24px; background: #fff; border: 1.5px solid var(--line); }
.check .box { width: 58px; height: 58px; border-radius: 16px; border: 4px solid var(--petrol); display: grid; place-items: center; flex: none; color: var(--paper); transition: background .35s; }
.check .box svg { width: 34px; height: 34px; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .5s var(--ease) .15s; }
.check.on .box, .no-js .check .box { background: var(--petrol); }
.check.on .box svg, .no-js .check .box svg { stroke-dashoffset: 0; }

/* coin */
.coin { width: 300px; height: 300px; border-radius: 50%; background: var(--petrol); color: var(--paper); display: grid; place-items: center; font-size: 54px; font-weight: 900; direction: ltr; box-shadow: inset 0 0 0 16px rgba(82,178,168,.35), 0 30px 60px -30px rgba(14,63,59,.6); flex: none; }
.slide.active .coin { animation: coin 4s ease-in-out infinite; }
@keyframes coin { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-18px) } }

/* phone */
.phone { width: 360px; height: 680px; border-radius: 60px; background: var(--ink); padding: 18px; flex: none; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.phone .scr { height: 100%; border-radius: 44px; background: var(--paper-2); display: flex; flex-direction: column; overflow: hidden; }
.phone .bar-top { background: var(--petrol); color: var(--paper); padding: 34px 26px 20px; display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 700; direction: ltr; }
.phone .bar-top img { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); padding: 6px; }
.phone .msgs { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.phone .msg { background: #fff; border-radius: 18px 18px 18px 6px; padding: 14px 18px; font-size: 19px; line-height: 1.7; max-width: 92%; }
.phone .msg.me { align-self: flex-end; background: var(--teal-soft); border-radius: 18px 18px 6px 18px; direction: ltr; }
.phone .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .btns span { background: #fff; border-radius: 12px; padding: 10px; font-size: 17px; text-align: center; color: var(--petrol-deep); font-weight: 600; }
.qr { background: #fff; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr img { width: 170px; height: 170px; }
.qr span { font-size: 22px; font-weight: 700; direction: ltr; }

/* mentors */
.mentors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 30px; }
.mentors-wrap { display: flex; flex-direction: column; gap: 14px; }
.mrow { display: flex; justify-content: center; gap: 30px; }
.mentor { width: 400px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.mentor .ph { position: relative; width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: var(--teal-soft); box-shadow: 0 0 0 6px var(--paper), 0 0 0 10px var(--teal); display: grid; place-items: center; color: var(--petrol); flex: none; }
.mentor .ph img { width: 100%; height: 100%; object-fit: cover; }
.mentor .ph svg { width: 80px; height: 80px; }
.mentor h3 { font-size: 26px; margin: 8px 0 0; line-height: 1.4; }
.mentor .role { font-size: 20px; color: var(--petrol); font-weight: 600; }
.mentor ul { margin: 2px 0 0; padding: 0 20px 0 0; text-align: right; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.editing .mentor [contenteditable] { outline: 2px dashed var(--teal); outline-offset: 4px; border-radius: 6px; }
.editing .mentor .ph { cursor: pointer; }
.editing .mentor .ph::after { content: "عکس"; position: absolute; inset: auto 0 0 0; background: rgba(14,63,59,.75); color: #fff; font-size: 18px; padding: 6px 0 10px; }
.mtools { position: absolute; bottom: 30px; left: 420px; display: flex; gap: 12px; z-index: 6; }
.mtools button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 22px; font-size: 19px; cursor: pointer; color: var(--ink-2); }
.mtools button.primary { background: var(--petrol); color: var(--paper); border-color: var(--petrol); }
.mtools .x { display: none; }
.editing .mtools .x { display: inline-block; }

/* closing */
.closing .art { inset: 0; }
.closing .art::after { content: ""; position: absolute; inset: 0; z-index: 3; background: rgba(10,43,41,.72); }
.closing .frame { z-index: 4; align-items: center; justify-content: center; text-align: center; }
.closing h2 { font-size: 84px; font-weight: 900; line-height: 1.4; margin: 0; }
.closing p { font-size: 38px; margin: 18px 0 0; color: rgba(244,245,243,.8); }

/* overview mode */
body.overview #stage { transform: none !important; width: 100vw; height: auto; }
body.overview #viewport { position: static; display: block; overflow-y: auto; height: 100vh; }
body.overview #stage { position: static; }
body.overview { overflow-y: auto; }
body.overview #stage { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; padding: 24px; }
body.overview .slide { position: relative; inset: auto; width: 1920px; height: 1080px; opacity: 1; visibility: visible; zoom: .2; cursor: pointer; border-radius: 40px; }
body.overview .slide .rise, body.overview .slide .frag { opacity: 1 !important; transform: none !important; animation: none !important; }
body.overview #progress, body.overview #navbtns { display: none; }

#help { position: fixed; bottom: 16px; right: 16px; z-index: 50; background: rgba(10,43,41,.92); color: var(--paper); border-radius: 18px; padding: 16px 22px; font-size: 15px; line-height: 1.9; display: none; }
body.show-help #help { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .slide .rise { opacity: 1; }
  .roadmap .draw { stroke-dashoffset: 0; }
  .bar i, .metro .line i { transform: none !important; }
}

.vcenter { margin-top: auto !important; margin-bottom: auto !important; }
.grid-2.vcenter .panel p { font-size: 32px; }
.grid-2.vcenter .panel h3 { font-size: 40px; }
.grid-3.vcenter .panel { padding: 44px; }
.grid-3.vcenter .panel p { font-size: 29px; }
.grid-2.big .panel p { font-size: 30px; } .grid-2.big .panel h3 { font-size: 38px; } .grid-2.big .panel { padding: 40px; }
.week ol { list-style-type: persian; font-size: 19.5px !important; }
.result b { font-size: 80px; }
#calc ~ .col .panel p, .slide .col .panel.tint p { }
.panel.ex p { font-size: 22px; line-height: 1.75; }
#forty .panel { padding: 24px 28px; } #forty .stat b { font-size: 60px; } #forty .case p { font-size: 22.5px; } #forty .case { padding: 24px 30px; }
#sayad .case { padding: 22px 30px; } #sayad .case p { font-size: 23px; line-height: 1.7; } #sayad .lead { font-size: 30px; margin-bottom: 12px !important; }
.us-side .panel p { font-size: 23px; } .us-side .stat span { font-size: 21px; } .us-side .stat b { font-size: 64px; }

/* pre-show */
.preshow { background: #0A2B29; }
.preshow .bgvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preshow::after { content: ""; position: absolute; inset: auto 0 0 0; height: 260px; background: linear-gradient(to top, rgba(10,43,41,.75), rgba(10,43,41,0)); pointer-events: none; }
.ps-cap { position: absolute; right: 120px; bottom: 70px; z-index: 3; display: flex; align-items: center; gap: 22px; color: var(--paper); }
.ps-cap img { width: 40px; height: 58px; }
.ps-cap b { display: block; font-size: 38px; font-weight: 700; line-height: 1.4; }
.ps-cap span { font-size: 26px; opacity: .8; }
.music-start { position: absolute; left: 120px; bottom: 80px; z-index: 3; border: 1.5px solid rgba(244,245,243,.6); background: rgba(10,43,41,.55); color: var(--paper); border-radius: 999px; padding: 14px 32px; font-size: 24px; cursor: pointer; transition: opacity .4s; }
body.music-on .music-start { opacity: 0; pointer-events: none; }
#bMusic { position: relative; }
body.music-on #bMusic { background: var(--teal); color: var(--petrol-night); border-color: var(--teal); }
.mentor .ph { width: 170px; height: 170px; }
.mentor h3 { font-size: 29px; margin-top: 14px; }
.mentor .role { font-size: 21px; }
.mentor ul { font-size: 20.5px; line-height: 1.6; }
.mentors-wrap { gap: 34px; }

/* about me */
.me { position: relative; width: 560px; height: 560px; flex: none; }
.me img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; }
.me .ring { position: absolute; inset: -22px; border-radius: 50%; border: 4px dashed var(--teal); }
.slide.active .me .ring { animation: spin 50s linear infinite; }
.me::after { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--rust); left: 40px; bottom: 50px; z-index: 2; box-shadow: 0 0 0 10px var(--paper); }
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.about-stats .stat { background: #fff; border: 1.5px solid var(--line); border-radius: 24px; padding: 20px 24px; }
.about-stats .stat b { font-size: 72px; }
.about-stats .stat span { font-size: 22px; }
.chips-static { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.chips-static span { background: var(--teal-soft); color: var(--petrol-deep); border-radius: 999px; padding: 10px 24px; font-size: 23px; font-weight: 600; }
.founder { display: flex; align-items: center; gap: 18px; }
.founder img { width: 34px; height: 50px; }
.founder p { margin: 0; font-size: 28px; font-weight: 600; }
.sub-h { font-size: 30px; font-weight: 700; color: var(--petrol); margin: 0; }
.pub { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 14px 22px; transition: transform .3s var(--ease); }
.pub:hover { transform: translateX(-8px); }
.pub b { font-size: 23px; direction: ltr; unicode-bidi: isolate; }
.pub p { margin: 2px 0 0; font-size: 21px; color: var(--ink-2); line-height: 1.6; }
.pub .q { flex: none; width: 58px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; font-weight: 700; background: var(--paper-3); color: var(--ink-3); margin-top: 2px; }
.pub .q.q1 { background: var(--petrol); color: var(--paper); }
.pub .q.q2 { background: var(--teal-soft); color: var(--petrol-deep); }
.pub .fa1 { font-size: 17px; font-weight: 700; color: var(--rust); background: var(--rust-soft); border-radius: 999px; padding: 2px 12px; margin-right: 6px; white-space: nowrap; }
.tl { list-style: none; margin: 0; padding: 0 34px 0 0; position: relative; }
.tl::before { content: ""; position: absolute; right: 9px; top: 12px; bottom: 12px; width: 3px; background: var(--teal-soft); border-radius: 3px; }
.tl li { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 0 0 22px; }
.tl li::before { content: ""; position: absolute; right: -32px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--petrol); box-shadow: 0 0 0 5px var(--paper); }
.tl li:last-child::before { background: var(--rust); }
.tl .y { font-size: 21px; font-weight: 700; color: var(--teal); padding-top: 2px; }
.tl b { font-size: 24px; line-height: 1.5; }
.tl p { margin: 2px 0 0; font-size: 20.5px; color: var(--ink-2); line-height: 1.6; }

.mtools { display: none; } body.show-tools .mtools { display: flex; }
#mentors-slide .frame { top: 110px; }
#mentors-slide .title { margin-bottom: 4px; }
.mentor { width: 410px; }
.mrow:nth-child(2) .mentor { width: 500px; }
.mentor .ph { width: 150px; height: 150px; }
.mentor h3 { font-size: 27px; margin-top: 10px; }
.mentor ul { font-size: 18.5px; line-height: 1.55; }
.mentors-wrap { gap: 22px; }
