/* Meshkani.pro — site stylesheet */

:root {
  --ink: #262626;
  --ink-2: #444;
  --muted: #767676;
  --line: rgba(0, 0, 0, .08);
  --paper: #f3f3f1;
  --paper-2: #e9e9e6;
  --white: #fff;
  --night: #0a0f1d;
  --night-2: #141a2c;
  --lime: #bada55;
  --lime-deep: #8fb224;
  --sky: #b7d5ee;
  --sky-soft: #dbe8f4;
  --blue: #3d9be9;
  --green: #00970d;

  --font-display: "Aboreto", "Cinzel", serif;
  --font-head: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-madefor: "Wix Madefor Display", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif-italic: "Playfair Display", Georgia, serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .10);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
  --wrap: 1760px;
  --band: #e8e6e6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
.wrap-narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.9em; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 15px/1 var(--font-body); letter-spacing: .02em; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-lime { background: var(--lime); color: #1d2600; font-weight: 600; }
.btn-lime:hover { box-shadow: 0 10px 24px rgba(186,218,85,.45); }
.btn-sky { background: var(--sky); color: #0f2a44; font-weight: 600; }
.btn-sky:hover { box-shadow: 0 10px 24px rgba(183,213,238,.6); }
.btn-outline { background: rgba(255,255,255,.9); color: var(--ink); border-color: rgba(0,0,0,.18); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.link { color: var(--blue); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
  color: #fff;
}
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand {
  font-family: var(--font-display); font-size: 19px; letter-spacing: .22em; text-transform: uppercase;
  color: inherit; white-space: nowrap;
}
.nav { display: flex; justify-self: center; align-items: center; gap: 2px; padding: 4px;
  background: rgba(255,255,255,.92); border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.12);
  backdrop-filter: blur(10px); }
.nav a { font: 500 13px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  padding: 10px 16px; border-radius: 999px; transition: background .25s, color .25s; }
.nav a:hover { background: rgba(0,0,0,.06); }
.nav a.active { background: var(--ink); color: #fff; }
.header-cta { justify-self: end; }
.site-header.scrolled {
  background: rgba(243,243,241,.78); color: var(--ink);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.scrolled .nav { box-shadow: 0 2px 12px rgba(0,0,0,.08); background: rgba(255,255,255,.9); }
.site-header.on-light { color: var(--ink); }
.menu-btn { display: none; justify-self: end; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .3s, opacity .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .brand { font-size: 15px; letter-spacing: .18em; }
  .header-cta { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav { position: fixed; inset: var(--header-h) 16px auto 16px; flex-direction: column; align-items: stretch;
    padding: 10px; border-radius: 22px; opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .3s, transform .3s; }
  .nav a { padding: 14px 18px; text-align: center; }
  .nav .nav-cta { margin-top: 6px; background: var(--lime); color: #1d2600; }
  body.menu-open .nav { opacity: 1; pointer-events: auto; transform: none; }
}
@media (min-width: 1081px) { .nav .nav-cta { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; height: 100svh; min-height: 640px; max-height: 1100px; overflow: hidden;
  background: var(--night); color: #fff; isolation: isolate;
}
.hero-media { position: absolute; inset: -12% 0 0 0; z-index: 0; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transform: scale(1.08); animation: heroZoom 2.4s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 28%),
    radial-gradient(120% 80% at 50% 60%, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);
}
.hero-glow { position: absolute; left: 50%; top: 58%; width: 44vw; height: 11vw; z-index: 1; pointer-events: none;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(120,190,255,.28), rgba(120,190,255,0) 70%);
  filter: blur(26px); animation: ringPulse 5s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes ringPulse { 0%,100% { opacity: .25; transform: translate(-50%,-50%) scale(1); } 50% { opacity: .55; transform: translate(-50%,-50%) scale(1.05); } }

.hero-fog { position: absolute; left: 0; right: 0; bottom: -8%; height: 62%; z-index: 2; pointer-events: none; will-change: transform, opacity; transform-origin: 50% 100%; }
.fog { position: absolute; left: -50%; right: -50%; bottom: 0; height: 100%; background-repeat: repeat-x; background-position: bottom; background-size: auto 100%; opacity: .9; }
.fog-1 { background-image: url(../assets/img/fog-1.png); animation: fogDrift 70s linear infinite; }
.fog-2 { background-image: url(../assets/img/fog-2.png); height: 78%; animation: fogDrift 48s linear infinite reverse; opacity: .85; }
.fog-3 { background-image: url(../assets/img/fog-3.png); height: 56%; animation: fogDrift 34s linear infinite; opacity: .8; }
@keyframes fogDrift { from { background-position-x: 0; } to { background-position-x: 2048px; } }
.hero-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 40%, rgba(255,255,255,.85) 75%, #fff 100%); }

.hero-copy { position: absolute; left: 0; right: 0; bottom: 14%; z-index: 4; text-align: center; padding: 0 24px; }
.hero-copy .eyebrow {
  font: 300 clamp(17px, 2.1vw, 30px)/1.3 var(--font-head); letter-spacing: .02em; margin: 0 0 .25em;
  opacity: 0; animation: riseIn 1.2s .35s var(--ease) forwards; text-shadow: 0 2px 24px rgba(0,0,0,.6), 0 0 60px rgba(0,0,0,.35);
}
.hero-copy h1 {
  font: 400 clamp(42px, 7.2vw, 100px)/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; animation: riseIn 1.4s .55s var(--ease) forwards; text-shadow: 0 4px 40px rgba(0,0,0,.65), 0 0 90px rgba(0,0,0,.4);
}
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-scroll { position: absolute; left: 50%; bottom: 4%; z-index: 4; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 14px; opacity: 0; animation: riseIn 1s 1.4s forwards; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: #fff; animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-copy .eyebrow, .hero-copy h1, .hero-scroll { animation: none; opacity: 1; transform: none; }
  .fog, .hero-glow { animation: none; }
}

/* ---------- Generic section bits ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-title { font-size: clamp(34px, 5vw, 64px); font-weight: 300; letter-spacing: -.02em; }
.kicker { font: 300 clamp(16px, 1.6vw, 20px)/1.5 var(--font-head); color: var(--muted); margin-bottom: .6em; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .2s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .3s; }
.reveal-stagger.in > *:nth-child(n+5) { transition-delay: .4s; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---------- Mirror promo ---------- */
.mirror-promo { background: #fff; padding: clamp(40px, 5vw, 72px) 0; }
.mirror-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; align-items: stretch; background: #fff; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.14), 0 4px 14px rgba(0,0,0,.06); overflow: hidden; }
.mirror-text { padding: clamp(32px, 5vw, 72px); box-shadow: none; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
.mirror-text .wordmark { width: min(420px, 70%); margin-bottom: 8px; }
.mirror-promo .mirror-text > :not(.wordmark) { margin-inline-start: min(35px, 5.8%); }
html[dir="rtl"] .mirror-promo .mirror-text > :not(.wordmark) { margin-inline-start: min(17px, 2.7%); }
.mirror-text .serif { font: italic 400 clamp(18px, 1.9vw, 24px)/1.3 var(--font-serif-italic); color: var(--ink-2); margin-bottom: 1.4em; }
.mirror-text .lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 36em; }
.mirror-text .big { font: 300 clamp(28px, 3.4vw, 44px)/1.15 var(--font-head); margin: .15em 0 .9em; }
.mirror-actions { display: flex; flex-direction: column; gap: 14px; align-items: center; align-self: flex-start; margin-top: 28px; }
.mirror-actions .btn { width: 320px; max-width: 100%; padding-block: 1.05em; }
.mirror-actions .link { text-align: center; }
.mirror-emblem { display: grid; place-items: center; background: #fff; box-shadow: none; border-radius: 0; min-height: 420px; }
.mirror-emblem img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* ---------- About ---------- */
.about { background: #fff; padding: clamp(56px, 6.8vw, 140px) 0 clamp(40px, 2.7vw, 56px); }
.about-grid { display: grid; grid-template-columns: 26.9vw 1fr; gap: 1.65vw; align-items: stretch; width: auto; margin-inline: 7.4vw 4vw; max-width: none; }
.about-photo { border-radius: 50px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.5); min-height: calc(26.9vw * 866 / 553); }
.about-copy { align-self: start; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-copy { padding-top: 16px; font-family: var(--font-madefor); }
.about-copy h2 { font: 400 clamp(40px, 4.38vw, 96px)/1.25 var(--font-madefor); color: #000; letter-spacing: 0; margin: 0 0 clamp(18px, 2vw, 40px); white-space: nowrap; }
.about-body { max-width: min(766px, 37.3vw); margin-inline-start: 13px; text-align: justify; }
.about-body p { font: 400 clamp(16px, .975vw, 20px)/1.4 var(--font-madefor); color: #605e5e; margin: 0; max-width: none; }
.about-body p.dark { color: #363636; }
.about-body p.gap { margin-top: 1.4em; }
.about-body .strong { font: 400 clamp(22px, 1.56vw, 32px)/1.4 var(--font-madefor); color: #363636; margin: 1.25em 0 .1em; text-align: start; }
.about-btn { margin-top: clamp(24px, 1.8vw, 36px); margin-inline-start: 19px; width: 300px; max-width: 100%; height: 58px; padding: 0; border-radius: 30px;
  background: #b7d5ee; border: 1px solid #447f74; color: #fff; font: 700 20px/1 var(--font-madefor); }
.about-btn:hover { background: #a6cbea; color: #fff; }
.about-copy .next { font: 400 clamp(40px, 4.38vw, 96px)/1.25 var(--font-madefor); color: #605e5e; letter-spacing: 0; margin: clamp(56px, 6vw, 120px) 0 0; }

/* ---------- Services ---------- */
.services { position: relative; background: var(--night) url(../assets/img/starfield.jpg) center / cover; color: #fff; isolation: isolate; }
.services::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,29,.35), rgba(10,15,29,.65)); z-index: -1; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--sky-soft); color: #0f1f33; border-radius: var(--radius); padding: 30px 26px 26px; }
.plan h3 { font: 600 20px/1.25 var(--font-body); letter-spacing: -.01em; margin-bottom: 14px; }
.plan h3 .price { white-space: nowrap; }
.plan h3 .price::before { content: "\00B7 "; }
.plan .price-free { color: var(--green); } .plan .price-mid { color: var(--blue); } .plan .price-top { color: var(--lime-deep); }
.plan p { font-size: 14.5px; line-height: 1.6; color: #1e2f44; }
.plan p:first-of-type { font-weight: 600; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.forward { display: flex; flex-direction: column; justify-content: center; padding: 10px 0 10px 12px; }
.forward p { font: 300 clamp(24px, 2.4vw, 34px)/1.2 var(--font-head); margin: 0; }
.forward strong { display: block; font: 700 clamp(52px, 5.6vw, 84px)/1 var(--font-body); color: var(--lime); letter-spacing: -.03em; margin-top: .15em; }

/* ---------- Book promo ---------- */
.book-card { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.book-text { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.book-text h3 { font: 400 clamp(30px, 3.6vw, 48px)/1.1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; }
.book-text .serif { font: italic 400 clamp(18px, 1.8vw, 22px)/1.3 var(--font-serif-italic); color: var(--ink-2); margin: .6em 0 1.4em; }
.book-text .lead { color: var(--ink-2); max-width: 32em; font-size: 16.5px; }
.book-text .meta { font-size: 14px; color: var(--muted); margin: 1em 0 1.6em; }
.book-text .meta b { color: var(--ink); font-weight: 600; display: block; }
.book-cover { background: #fff; display: grid; place-items: center; padding: 32px; }
.sec-book { background: var(--band); }
.book-cover img { width: min(100%, 440px); filter: drop-shadow(0 30px 50px rgba(0,0,0,.22)); transition: transform .6s var(--ease); }
.book-card:hover .book-cover img { transform: translateY(-6px) rotate(-1deg); }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }

/* ---------- Portfolio ---------- */
.portfolio { position: relative; overflow: hidden; background: #d9dbe0; isolation: isolate; }
.portfolio-bg { position: absolute; inset: 0; z-index: -1; }
.portfolio-bg video, .portfolio-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(1.05); }
.portfolio-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(243,243,241,.9), rgba(243,243,241,.35) 30%, rgba(200,204,212,.55)); }
.portfolio-head { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.portfolio-head .kicker { color: var(--ink-2); }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.work { display: flex; flex-direction: column; border-radius: var(--radius-sm); overflow: hidden; background: #3a3a3a; color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.14); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.work:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0,0,0,.2); }
.work .thumb { aspect-ratio: 1 / .9; overflow: hidden; background: #ddd; }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .thumb img { transform: scale(1.05); }
.work .info { padding: 14px 16px 16px; }
.work .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.work h4 { font: 600 16px/1.25 var(--font-body); }
.work .year { font: 500 12.5px/1 var(--font-body); color: var(--lime); white-space: nowrap; }
.work p { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.78); margin: 8px 0 0; }

/* ---------- CTA / footer ---------- */
.assistant-cta { text-align: center; padding: clamp(24px, 3vw, 40px) 16px 0; }
.assistant-card { width: min(620px, 100%); margin: 0 auto; background: #fff; color: var(--ink); border-radius: 32px 32px 0 0; padding: 30px 24px 0; box-shadow: 0 -12px 40px rgba(0,0,0,.08); }
.assistant-dock { height: 104px; }
.assistant-cta h3 { font: 300 clamp(24px, 2.6vw, 34px)/1.2 var(--font-head); margin-bottom: 6px; }
.assistant-cta .chev { display: inline-block; margin-top: 6px; color: var(--muted); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.site-footer a { color: var(--ink-2); }
.site-footer nav { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: center; }
.footer-copy { font-size: 12.5px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; min-height: 62vh; display: grid; place-items: end center; padding: 0 24px 56px; color: #fff; overflow: hidden; isolation: isolate; background: var(--night); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: heroZoom 2.2s var(--ease) forwards; }
.page-hero.blur img { filter: blur(14px) brightness(.8); transform: scale(1.12); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.05) 40%, rgba(0,0,0,.55)); }
.page-hero h1 { font: 400 clamp(40px, 8vw, 112px)/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-align: center; text-shadow: 0 6px 40px rgba(0,0,0,.5); opacity: 0; animation: riseIn 1.2s .3s var(--ease) forwards; }
.page-hero .sub { font: 300 clamp(16px, 1.8vw, 22px)/1.3 var(--font-head); text-align: center; opacity: 0; animation: riseIn 1.2s .5s var(--ease) forwards; margin-top: 14px; }
.page-hero.compact { min-height: 46vh; }
.page-plain { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px)); }

/* ---------- Who am I ---------- */
.bio-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.bio-head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; }
.bio-head .role { color: var(--muted); font-family: var(--font-head); margin-top: 4px; }
.bio-text p { color: var(--ink-2); font-size: 17px; }
.bio-text .claim { font: 300 clamp(26px, 3.4vw, 44px)/1.15 var(--font-head); color: var(--ink); margin: 1em 0 .8em; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.skills { padding: 30px 30px 26px; }
.skills h3 { font: 600 17px/1.3 var(--font-body); margin-bottom: 14px; }
.skills ol { margin: 0; padding-left: 1.3em; color: var(--ink-2); font-size: 15px; }
.skills li { padding: 4px 0; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.hl { padding: 26px; }
.hl h4 { font: 600 16px/1.3 var(--font-body); margin-bottom: 8px; }
.hl p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-intro h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 300; margin-bottom: .4em; }
.socials { display: flex; gap: 14px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); font-size: 14px; font-weight: 600; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { font: 15px/1.4 var(--font-body); padding: 12px 14px; border: 1px solid rgba(0,0,0,.14); border-radius: 12px; background: #fff; color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sky); border-color: transparent; }

/* ---------- Books ---------- */
.books-list { display: grid; gap: 32px; }
.book-card.flip { grid-template-columns: 1fr 1.1fr; }
.book-card.flip .book-cover { order: -1; padding: 0; }
.book-card.flip .book-cover img { width: 100%; height: 100%; object-fit: cover; filter: none; }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post { overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #e2e2df; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .body { padding: 22px 24px 26px; }
.post .cat { font: 600 11.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--lime-deep); }
.post h3 { font: 600 20px/1.3 var(--font-body); margin: 10px 0; letter-spacing: -.01em; }
.post p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px; }
.post .meta { font-size: 12.5px; color: var(--muted); }
.article { padding-top: calc(var(--header-h) + 48px); }
.article h1 { font: 600 clamp(28px, 4vw, 46px)/1.15 var(--font-body); letter-spacing: -.02em; margin: 10px 0 14px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article .hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; aspect-ratio: 16/8; }
.article .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article h2 { font: 600 24px/1.3 var(--font-body); margin: 1.6em 0 .6em; }
.article p, .article li { font-size: 17px; color: var(--ink-2); }
.article ul { padding-left: 1.3em; }
.article li { margin: .35em 0; }
.article .cta-box { background: #fff; border-radius: var(--radius); padding: 26px 28px; margin-top: 40px; box-shadow: var(--shadow-soft); }

/* ---------- Book online ---------- */
.services-list { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 26px 30px; }
.service-row h3 { font: 600 19px/1.3 var(--font-body); }
.service-row p { font-size: 14.5px; color: var(--ink-2); margin: 6px 0 0; max-width: 42em; }
.service-row .price { font: 500 18px/1 var(--font-body); color: var(--ink); white-space: nowrap; }
.service-row .price small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Project page ---------- */
.project-hero { min-height: 72vh; align-content: end; }
.project-hero .sub { max-width: 46em; }
.project-meta { background: var(--night-2); color: #fff; }
.project-meta .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; }
.project-meta dt { font: 600 10.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.project-meta dd { margin: 0; font-size: 15px; }
.project-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); }
.project-body h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; margin-bottom: .5em; }
.project-body p { font-size: 17px; color: var(--ink-2); }
.block { margin-top: 36px; }
.block h3 { font: 600 11.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--lime-deep); margin-bottom: 10px; }
.tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech span { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-soft); color: var(--ink-2); }
.quote { background: var(--night); color: #fff; }
.quote .wrap-narrow { text-align: center; padding: clamp(56px, 8vw, 110px) 0; }
.quote blockquote { margin: 0; font: italic 400 clamp(22px, 3vw, 38px)/1.3 var(--font-serif-italic); }
.quote cite { display: block; margin-top: 22px; font: 500 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); font-style: normal; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story { padding: 30px 28px; }
.story h3 { font: 600 11.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--lime-deep); margin-bottom: 10px; }
.story h4 { font: 500 22px/1.3 var(--font-head); margin-bottom: 12px; }
.story p { font-size: 15px; color: var(--ink-2); margin: 0 0 .8em; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #fff; box-shadow: var(--shadow-soft); }
.project-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .forward { grid-column: 1 / -1; padding: 10px 0 0; text-align: center; }
}
@media (max-width: 860px) {
  .mirror-grid, .about-grid, .book-card, .book-card.flip, .contact-grid, .skills-grid, .project-body, .post-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; margin-inline: 16px; gap: 28px; }
  .about-photo { max-width: 420px; border-radius: 32px; aspect-ratio: 4 / 5; min-height: 0; }
  .about-copy h2, .about-copy .next { white-space: normal; font-size: clamp(36px, 9vw, 56px); }
  .about-body { margin-inline-start: 0; max-width: none; }
  .about-btn { margin-top: 36px; margin-inline-start: 0; }
  .mirror-emblem { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .book-cover { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .highlights, .story-grid, .gallery { grid-template-columns: 1fr; }
  .project-meta .wrap { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero-copy { bottom: 16%; padding: 40px 24px 28px; background: radial-gradient(ellipse 70% 100% at 50% 60%, rgba(0,0,0,.42), rgba(0,0,0,0) 72%); }
  .bio-head { grid-template-columns: 1fr; gap: 14px; }
  .bio-head .btn { justify-self: start; }
  .hero-glow { width: 80vw; height: 20vw; }
}
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
}

/* ---------- ElevenLabs widget spacing ---------- */
elevenlabs-convai { z-index: 60; }

/* ---------- Header extras: language switch ---------- */
.header-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 44px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font: 600 13px/1 var(--font-body); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.site-header.scrolled .lang-switch, .site-header.on-light .lang-switch { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
@media (max-width: 1080px) { .header-end { gap: 8px; } }
.form-note { margin-inline-start: 14px; font-size: 13px; color: var(--muted); }
.form-note.ok { color: var(--green); }
.form-note.err { color: #b3261e; }

/* ---------- Persian (RTL) ---------- */
html[dir="rtl"] body, html[dir="rtl"] .btn, html[dir="rtl"] .nav a, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-family: "IRANSans", "Vazirmatn", var(--font-body); }
html[dir="rtl"] { --font-head: "IRANSans", "Vazirmatn", sans-serif; --font-body: "IRANSans", "Vazirmatn", sans-serif; }
html[dir="rtl"] body { line-height: 1.9; }
html[dir="rtl"] .brand { font-family: "IRANSans", "Vazirmatn", sans-serif; letter-spacing: 0; text-transform: none; font-weight: 700; font-size: 20px; }
html[dir="rtl"] .nav a { letter-spacing: 0; text-transform: none; font-size: 14px; }
html[dir="rtl"] .hero-copy h1 { font-family: "IRANSans", "Vazirmatn", sans-serif; letter-spacing: 0; text-transform: none; font-weight: 700; font-size: clamp(36px, 6vw, 84px); line-height: 1.3; }
html[dir="rtl"] .hero-copy .eyebrow { letter-spacing: 0; font-weight: 400; }
html[dir="rtl"] .page-hero h1 { font-family: "IRANSans", "Vazirmatn", sans-serif; letter-spacing: 0; text-transform: none; font-weight: 700; line-height: 1.3; font-size: clamp(36px, 6vw, 84px); }
html[dir="rtl"] .section-title, html[dir="rtl"] .about-copy h2, html[dir="rtl"] .about-copy .next, html[dir="rtl"] .contact-intro h2, html[dir="rtl"] .project-body h2 { font-weight: 600; letter-spacing: 0; line-height: 1.35; }
html[dir="rtl"] .book-text h3, html[dir="rtl"] .mirror-text .big { font-family: "IRANSans", "Vazirmatn", sans-serif; letter-spacing: 0; text-transform: none; font-weight: 700; line-height: 1.35; }
html[dir="rtl"] .mirror-text .serif, html[dir="rtl"] .book-text .serif, html[dir="rtl"] .quote blockquote { font-family: "IRANSans", "Vazirmatn", sans-serif; font-style: normal; font-weight: 300; }
html[dir="rtl"] .kicker, html[dir="rtl"] .lead, html[dir="rtl"] .hero-copy .eyebrow { font-family: "IRANSans", "Vazirmatn", sans-serif; }
html[dir="rtl"] .forward { font-family: "IRANSans", "Vazirmatn", sans-serif; letter-spacing: 0; font-size: clamp(44px, 5vw, 72px); line-height: 1.3; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .block h3, html[dir="rtl"] .story h3, html[dir="rtl"] .project-meta dt, html[dir="rtl"] .post .cat, html[dir="rtl"] .quote cite { letter-spacing: 0; }
html[dir="rtl"] .plan p, html[dir="rtl"] .work p, html[dir="rtl"] .about-copy p, html[dir="rtl"] .bio-text p, html[dir="rtl"] .article p, html[dir="rtl"] .article li, html[dir="rtl"] .story p { line-height: 2; }
html[dir="rtl"] .work .year, html[dir="rtl"] .service-row .price, html[dir="rtl"] .plan .price { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .side a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--lime); }
html[dir="rtl"] .form input, html[dir="rtl"] .form textarea { text-align: right; }
html[dir="rtl"] .form input[type="email"] { direction: ltr; text-align: left; }

/* ---------- Project page (single template for every project) ---------- */
.pj-hero { position: relative; height: clamp(540px, 60vw, 820px); background: var(--night); overflow: hidden; color: #fff; }
.pj-hero-media { position: absolute; inset: 0; will-change: transform; }
.pj-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 2.6s var(--ease) forwards; }
.pj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,18,.38) 0%, rgba(5,8,18,0) 26%, rgba(5,8,18,.15) 52%, rgba(5,8,18,.96) 100%); }
.pj-hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(44px, 7vw, 84px); z-index: 1; margin: 0 auto; }
.pj-kicker { display: inline-flex; align-items: center; gap: 14px; font: 500 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 22px; }
.pj-kicker i { width: 28px; height: 1px; background: var(--lime); }
.pj-hero-copy h1 { font: 300 clamp(48px, 7.6vw, 112px)/.98 var(--font-head); letter-spacing: -.035em; max-width: 11em; opacity: 0; animation: riseIn 1.1s .25s var(--ease) forwards; }
.pj-hero-copy p { font: 300 clamp(16px, 1.5vw, 21px)/1.5 var(--font-body); max-width: 32em; margin: 22px 0 0; color: rgba(255,255,255,.82); opacity: 0; animation: riseIn 1.1s .45s var(--ease) forwards; }
.pj-scroll { position: absolute; inset-inline-end: clamp(24px, 4vw, 56px); bottom: clamp(44px, 7vw, 84px); z-index: 1; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 14px; }
.pj-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--lime); animation: pjScroll 1.8s ease-in-out infinite; }
@keyframes pjScroll { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(16px); opacity: 0 } 100% { opacity: 0 } }
.pj-meta { background: #000; color: #fff; margin-top: -1px; }
.pj-meta .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 0; margin-block: 0; }
.pj-meta .wrap > div { padding: 0 28px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.pj-meta .wrap > div:first-child { border: 0; padding-inline-start: 0; }
.pj-meta dt { font: 500 10px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 9px; }
.pj-meta dd { margin: 0; font: 400 16px/1.4 var(--font-head); color: #fff; display: flex; align-items: center; gap: 8px; }
.pj-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(186,218,85,.22); flex: none; }
.pj-label { display: block; font: 500 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.pj-idea { padding: clamp(64px, 9vw, 128px) 0; background: #fff; }
.pj-idea-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(48px, 8vw, 128px); width: min(1180px, calc(100% - 48px)); align-items: start; }
.pj-idea-main .pj-label::before { content: ""; display: inline-block; width: 34px; height: 2px; background: var(--lime); vertical-align: 3px; margin-inline-end: 12px; }
.pj-lead { font: 300 clamp(24px, 2.6vw, 36px)/1.35 var(--font-head); letter-spacing: -.015em; color: var(--ink); }
.pj-aside { background: var(--paper); border-radius: 18px; padding: 34px 36px 12px; position: sticky; top: 96px; }
.pj-block { padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.pj-block:last-of-type { border: 0; }
.pj-block h3 { font: 500 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pj-block p { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.pj-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-tech span { font-size: 12.5px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.pj-aside .btn { margin: 4px 0 24px; }
.pj-audio { display: flex; align-items: center; gap: 14px; margin-top: 44px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); max-width: 460px; }
.pj-audio img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.pj-audio-body { flex: 1; min-width: 0; }
.pj-audio-body b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-audio audio { width: 100%; height: 34px; }
.pj-quote { position: relative; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.pj-quote-bg { position: absolute; inset: 0; z-index: -1; }
.pj-quote-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(1.1); transform: scale(1.25); opacity: .32; }
.pj-quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(10,15,29,.96), rgba(20,26,44,.86)); }
.pj-quote .wrap-narrow { text-align: center; padding: clamp(80px, 11vw, 150px) 0; width: min(900px, calc(100% - 48px)); }
.pj-quote blockquote { margin: 0; font: italic 400 clamp(28px, 3.8vw, 52px)/1.25 var(--font-serif-italic); letter-spacing: -.01em; }
.pj-quote blockquote::before { content: "\201C"; display: block; font: 400 90px/0.6 var(--font-serif-italic); color: var(--lime); margin-bottom: 28px; opacity: .9; }
.pj-quote cite { display: block; margin-top: 36px; font: 400 10.5px/1 var(--font-display); letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.55); font-style: normal; }
.pj-story { background: var(--paper); padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 3vw, 44px); }
.pj-story .wrap { width: min(1180px, calc(100% - 48px)); }
.pj-chapter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.pj-chapter:first-child { border-top: 0; }
.pj-chapter:has(> .pj-chapter-text:only-child) { grid-template-columns: 1fr; }
.pj-chapter:has(> .pj-chapter-text:only-child) .pj-chapter-text { order: 0; max-width: 720px; }
.pj-chapter:nth-child(even) .pj-chapter-text { order: 2; }
.pj-chapter-text { position: relative; }
.pj-num { display: block; font: 300 clamp(72px, 8vw, 120px)/.85 var(--font-head); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(0,0,0,.16); margin: 0 0 18px -.04em; user-select: none; }
.pj-chapter h2 { font: 300 clamp(30px, 3.4vw, 46px)/1.12 var(--font-head); letter-spacing: -.025em; margin-bottom: .7em; }
.pj-chapter p { font-size: 15px; line-height: 1.8; color: var(--ink-2); margin-bottom: 1em; max-width: 36em; }
.pj-figure { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10,15,29,.45); background: #fff; }
.pj-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.pj-chapter:hover .pj-figure img { transform: scale(1.03); }
.pj-gallery { background: #fff; padding: 20px 0; }
.pj-gallery .wrap { width: min(1190px, calc(100% - 48px)); }
.pj-gallery-head { text-align: center; padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.pj-gallery-head .pj-label { display: inline-block; margin-bottom: 10px; }
.pj-gallery-head h2 { font: 600 clamp(28px, 2.6vw, 48px)/1.15 var(--font-head); letter-spacing: -.01em; color: #2b2b2b; }
.pj-mosaic { display: grid; gap: 6px; }
.pj-mz-band { position: relative; width: 100%; }
.pj-shot { position: absolute; margin: 0; overflow: hidden; background: var(--paper-2); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pj-shot img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.pj-nav { background: #000; padding: clamp(28px, 3vw, 40px) 0 clamp(28px, 3vw, 40px); }
.pj-nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: min(1190px, calc(100% - 48px)); }
.pj-nav-card { display: flex; align-items: center; gap: 14px; flex: 0 1 380px; min-width: 0; padding: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.04); color: #fff; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.pj-nav-card:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); box-shadow: none; transform: translateY(-2px); }
.pj-nav-card img { flex: none; width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.pj-nav-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pj-nav-body .pj-label { font-size: 10px; margin: 0; color: rgba(255,255,255,.55); }
.pj-nav-body strong { font: 500 16px/1.25 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-nav-card.next { justify-content: flex-end; }
.pj-nav-card.next .pj-nav-body { text-align: end; }
.pj-nav-arrow { flex: none; width: 34px; text-align: center; font-style: normal; font-size: 18px; color: rgba(255,255,255,.5); transition: transform .3s var(--ease), color .3s; }
.pj-nav-card.prev:hover .pj-nav-arrow { transform: translateX(-3px); color: #fff; }
.pj-nav-card.next:hover .pj-nav-arrow { transform: translateX(3px); color: #fff; }
html[dir="rtl"] .pj-nav-card.prev:hover .pj-nav-arrow { transform: translateX(3px); }
html[dir="rtl"] .pj-nav-card.next:hover .pj-nav-arrow { transform: translateX(-3px); }
.pj-nav-all { flex: none; text-align: center; }
.pj-nav-all .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.pj-nav-all .btn-outline:hover { background: #fff; color: #000; border-color: #fff; }
/* ---------- Résumé (who am I) ---------- */
.cv { background: var(--night); color: #fff; padding: clamp(64px, 8vw, 120px) 0; }
.cv .wrap { width: min(1180px, calc(100% - 48px)); }
.cv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 8px; }
.cv-head .pj-label { color: var(--lime); }
.cv-head .section-title { color: #fff; }
.cv-head .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cv-head .btn-outline:hover { background: #fff; color: var(--night); border-color: #fff; }
.cv-row { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 44px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.cv-row:last-child { border-bottom: 0; }
.cv-row h3 { font: 500 11.5px/1.5 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); padding-top: 6px; }
.cv-body p { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.72); margin-bottom: 1em; max-width: 62em; }
.cv-body p:last-child { margin-bottom: 0; }
.cv-lead { font: 300 clamp(20px, 2vw, 26px)/1.45 var(--font-head) !important; color: #fff !important; letter-spacing: -.01em; margin-bottom: 1.2em !important; }
.cv-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cv-chips li { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 13.5px; color: rgba(255,255,255,.88); }
.cv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cv-list li { position: relative; padding-inline-start: 26px; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.78); }
.cv-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 12px; height: 2px; background: var(--lime); }
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cv-grid.two { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
.cv-grid.three { grid-template-columns: repeat(3, 1fr); }
.cv-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 24px 24px 22px; transition: .4s var(--ease); }
.cv-card:hover { background: rgba(255,255,255,.08); border-color: rgba(186,218,85,.45); transform: translateY(-3px); }
.cv-card h4 { font: 500 16px/1.3 var(--font-body); color: #fff; margin-bottom: 8px; }
.cv-meta { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.cv-card p { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.68); margin: 0; }
.cv-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cv-card li { position: relative; padding-inline-start: 16px; font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.7); }
.cv-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); opacity: .8; }
.cv-timeline { display: grid; gap: 14px; }
.cv-timeline .cv-card { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 28px; }
.cv-timeline .cv-card h4 { font-size: 19px; font-weight: 400; font-family: var(--font-head); letter-spacing: -.01em; }
.cv-timeline .cv-meta { grid-row: 2; }
.cv-timeline .cv-card ul { grid-column: 2; grid-row: 1 / span 2; }
html[dir="rtl"] .cv-row h3, html[dir="rtl"] .cv-meta, html[dir="rtl"] .cv-head .pj-label { letter-spacing: 0; }
html[dir="rtl"] .cv-lead { font-weight: 400; line-height: 1.7; }
@media (max-width: 860px) {
  .cv-head { flex-direction: column; align-items: flex-start; }
  .cv-row { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }
  .cv-grid, .cv-grid.two, .cv-grid.three { grid-template-columns: 1fr; }
  .cv-timeline .cv-card { grid-template-columns: 1fr; }
  .cv-timeline .cv-card ul { grid-column: 1; grid-row: auto; }
}
/* Booking modal */
.btn.is-disabled { opacity: .35; pointer-events: none; cursor: default; }
.bk-modal { position: fixed; inset: 0; z-index: 200; background: rgba(5,8,18,.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .35s; }
.bk-modal.open { opacity: 1; pointer-events: auto; }
.bk-box { position: relative; width: min(1040px, 100%); height: min(760px, calc(100vh - 48px)); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.45); transform: translateY(16px); transition: transform .4s var(--ease); }
.bk-modal.open .bk-box { transform: none; }
.bk-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.bk-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font: 300 22px/38px var(--font-head); cursor: pointer; z-index: 1; }
html[dir="rtl"] .pj-lead, html[dir="rtl"] .pj-block p, html[dir="rtl"] .pj-chapter p { text-align: start; line-height: 1.9; }
html[dir="rtl"] .pj-hero-copy h1, html[dir="rtl"] .pj-chapter h2, html[dir="rtl"] .pj-gallery-head h2, html[dir="rtl"] .pj-nav-body strong { font-weight: 600; letter-spacing: 0; line-height: 1.3; }
html[dir="rtl"] .pj-lead { font-weight: 400; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.7; }
html[dir="rtl"] .pj-label, html[dir="rtl"] .pj-block h3, html[dir="rtl"] .pj-quote cite, html[dir="rtl"] .pj-meta dt, html[dir="rtl"] .pj-kicker, html[dir="rtl"] .pj-count { letter-spacing: 0; font-family: "IRANSans", "Vazirmatn", sans-serif; }
html[dir="rtl"] .pj-num { margin-inline: 0; }
@media (max-width: 860px) {
  .pj-hero { height: clamp(520px, 86vh, 720px); }
  .pj-scroll { display: none; }
  .pj-idea-grid, .pj-chapter { grid-template-columns: 1fr; }
  .pj-nav .wrap { width: calc(100% - 32px); gap: 10px; }
  .pj-nav-card { flex: 1 1 0; gap: 10px; }
  .pj-nav-card img { width: 44px; height: 44px; }
  .pj-nav-arrow { display: none; }
  .pj-aside { position: static; padding: 26px 24px 6px; }
  .pj-chapter:nth-child(even) .pj-chapter-text { order: 0; }
  .pj-meta .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .pj-meta dd { font-size: 14px; }
  .pj-meta .wrap > div { padding: 0 16px; }
  .pj-meta .wrap > div:nth-child(3) { border: 0; padding-inline-start: 0; }
  .pj-gallery .wrap { width: calc(100% - 32px); }
  .pj-mz-band { aspect-ratio: auto !important; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .pj-mz-band .pj-shot { position: relative; inset: auto !important; width: auto !important; height: auto !important; aspect-ratio: 1; }
  .pj-mz-band .pj-shot:nth-child(5n+1), .pj-mz-band .pj-shot:nth-child(5n+2):last-child, .pj-mz-band .pj-shot:nth-child(5n+4):last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
html[dir="rtl"] .about-copy, html[dir="rtl"] .about-copy h2, html[dir="rtl"] .about-copy .next, html[dir="rtl"] .about-body p, html[dir="rtl"] .about-btn { font-family: "IRANSans", "Vazirmatn", sans-serif; }
html[dir="rtl"] .about-copy h2:not(.next) { font-weight: 600; color: #000; }
html[dir="rtl"] .about-copy .next { font-weight: 600; color: #605e5e; }
html[dir="rtl"] .about-body p { line-height: 1.8; }
html[dir="rtl"] .about-body .strong { margin: .8em 0 .2em; }
html[dir="rtl"] .about-btn { margin-top: clamp(20px, 1.6vw, 32px); }
html[dir="rtl"] .about-copy h2 { line-height: 1.3; }

/* ---------- Connect page ---------- */
.cn-hero { background: #fff; padding: calc(var(--header-h) + clamp(40px, 6vw, 96px)) 0 clamp(48px, 6vw, 96px); }
.cn-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.cn-kicker { font: 500 13px/1 var(--font-madefor); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.cn-intro h1 { font: 400 clamp(48px, 6.4vw, 120px)/1 var(--font-madefor); letter-spacing: -.02em; color: #000; margin-bottom: clamp(24px, 2.4vw, 40px); }
.cn-name { font: 600 clamp(20px, 1.6vw, 26px)/1.3 var(--font-madefor); color: var(--ink); }
.cn-roles { font: 400 clamp(15px, 1.1vw, 18px)/1.5 var(--font-madefor); color: var(--muted); margin: 4px 0 18px; }
.cn-text { font: 400 clamp(17px, 1.3vw, 22px)/1.5 var(--font-madefor); color: #605e5e; max-width: 34em; }
.cn-direct { display: grid; gap: 12px; margin-top: clamp(28px, 3vw, 44px); max-width: 560px; }
.cn-chan { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; background: var(--paper); color: var(--ink); transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.cn-chan:hover { background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.10); transform: translateY(-2px); }
.cn-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.cn-ico svg { width: 22px; height: 22px; }
.cn-chan-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cn-chan-t b { font: 600 16px/1.2 var(--font-madefor); }
.cn-chan-t small { font: 400 14px/1.3 var(--font-madefor); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.cn-chan i { font-style: normal; color: var(--muted); transition: transform .25s var(--ease); }
.cn-chan:hover i { transform: translateX(4px); color: var(--ink); }
.cn-photo { border-radius: 40px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 70px rgba(0,0,0,.18); }
.cn-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.cn-hub { background: var(--paper); padding: clamp(48px, 6vw, 100px) 0; }
.cn-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cn-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 2.4vw, 40px); border-radius: 28px; background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); transition: transform .3s var(--ease), box-shadow .3s; overflow: hidden; }
.cn-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0,0,0,.12); }
.cn-tile-k { font: 500 12px/1.2 var(--font-madefor); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cn-tile h3 { font: 400 clamp(22px, 1.8vw, 32px)/1.2 var(--font-madefor); color: inherit; }
.cn-tile p { font: 400 15.5px/1.55 var(--font-madefor); color: #605e5e; }
.cn-more { margin-top: auto; padding-top: 14px; font: 600 15px/1 var(--font-madefor); }
.cn-more i { font-style: normal; display: inline-block; transition: transform .25s var(--ease); }
.cn-tile:hover .cn-more i { transform: translateX(4px); }
.cn-ava { grid-column: span 2; background: var(--night) url(../assets/img/starfield.jpg) center / cover; color: #fff; justify-content: flex-end; min-height: 380px; }
.cn-ava::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,29,.1), rgba(10,15,29,.75)); z-index: 0; }
.cn-ava > * { position: relative; z-index: 1; }
.cn-ava .cn-tile-k { color: var(--lime); }
.cn-ava h3 { font-size: clamp(32px, 3.2vw, 56px); }
.cn-ava p { color: rgba(255,255,255,.78); max-width: 30em; font-size: 17px; }
.cn-ava .btn { align-self: flex-start; margin-top: 12px; }
.cn-ava-pulse { position: absolute !important; top: clamp(24px, 2.4vw, 40px); inset-inline-end: clamp(24px, 2.4vw, 40px); width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(186,218,85,.6); animation: cnPulse 2s infinite; }
@keyframes cnPulse { 70% { box-shadow: 0 0 0 18px rgba(186,218,85,0); } 100% { box-shadow: 0 0 0 0 rgba(186,218,85,0); } }
.cn-cv { background: var(--sky-soft); }
.cn-book .cn-steps { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.cn-book .cn-steps li { display: flex; gap: 12px; align-items: baseline; font: 400 14.5px/1.4 var(--font-madefor); color: #605e5e; }
.cn-book .cn-steps b { flex: none; min-width: 34px; font-weight: 700; color: var(--ink); }
.cn-proj { grid-column: span 2; flex-direction: row; align-items: center; gap: 22px; }
.cn-proj img { flex: none; width: clamp(72px, 6vw, 104px); aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.cn-proj > div { flex: 1; display: grid; gap: 6px; }
.cn-proj > i { font-style: normal; font-size: 22px; color: var(--muted); align-self: flex-start; }

.cn-bottom { background: #fff; padding: clamp(56px, 7vw, 120px) 0; }
.cn-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.cn-social h2 { font: 400 clamp(36px, 4vw, 72px)/1.1 var(--font-madefor); color: #000; margin-bottom: 14px; }
.cn-social p { font: 400 18px/1.5 var(--font-madefor); color: #605e5e; max-width: 28em; }
.cn-soc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cn-soc a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); color: var(--ink); font: 500 15px/1 var(--font-madefor); transition: background .25s, color .25s, border-color .25s; }
.cn-soc a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cn-soc svg { width: 20px; height: 20px; }
.cn-form { background: var(--paper); border-radius: 28px; padding: clamp(24px, 3vw, 44px); }
.cn-form h3 { font: 400 clamp(24px, 2vw, 34px)/1.2 var(--font-madefor); margin-bottom: 4px; }

@media (max-width: 1100px) {
  .cn-bento { grid-template-columns: repeat(2, 1fr); }
  .cn-ava { min-height: 340px; }
}
@media (max-width: 860px) {
  .cn-hero-grid, .cn-bottom-grid { grid-template-columns: 1fr; }
  .cn-photo { order: -1; max-width: 420px; border-radius: 32px; }
  .cn-bento { grid-template-columns: 1fr; }
  .cn-ava, .cn-proj { grid-column: auto; grid-row: auto; }
  .cn-ava { min-height: 320px; }
}
html[dir="rtl"] .cn-intro h1, html[dir="rtl"] .cn-name, html[dir="rtl"] .cn-roles, html[dir="rtl"] .cn-text, html[dir="rtl"] .cn-kicker, html[dir="rtl"] .cn-chan-t b, html[dir="rtl"] .cn-tile h3, html[dir="rtl"] .cn-tile p, html[dir="rtl"] .cn-tile-k, html[dir="rtl"] .cn-more, html[dir="rtl"] .cn-steps li, html[dir="rtl"] .cn-social h2, html[dir="rtl"] .cn-social p, html[dir="rtl"] .cn-soc a, html[dir="rtl"] .cn-form h3 { font-family: "IRANSans", "Vazirmatn", sans-serif; letter-spacing: 0; }
html[dir="rtl"] .cn-intro h1, html[dir="rtl"] .cn-social h2 { font-weight: 700; line-height: 1.3; }
html[dir="rtl"] .cn-chan-t small { text-align: right; }
html[dir="rtl"] .cn-chan:hover i, html[dir="rtl"] .cn-tile:hover .cn-more i { transform: translateX(-4px); }
html[dir="rtl"] .cn-soc a { padding: 12px 14px 12px 20px; }
.nav a { white-space: nowrap; }
@media (min-width: 1081px) and (max-width: 1240px) {
  .site-header .wrap { gap: 12px; }
  .nav a { padding-inline: 11px; font-size: 12.5px; letter-spacing: .04em; }
  .brand { font-size: 15px; letter-spacing: .16em; }
  .header-cta { padding-inline: 18px; }
}

/* ---------- Uptodate (newsroom) ---------- */
.nw-mast { background: #fff; padding: calc(var(--header-h) + clamp(32px, 4vw, 64px)) 0 clamp(20px, 2vw, 32px); }
.nw-rule { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 2px solid #000; border-bottom: 1px solid rgba(0,0,0,.14); font: 500 12px/1.3 var(--font-madefor); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nw-word { font: 400 clamp(64px, 13.5vw, 260px)/.92 var(--font-display); letter-spacing: .04em; text-transform: uppercase; text-align: center; color: #000; margin: clamp(20px, 2.4vw, 40px) 0 clamp(10px, 1vw, 18px); }
.nw-tag { text-align: center; font: 400 clamp(18px, 1.6vw, 26px)/1.3 var(--font-madefor); color: #605e5e; padding-bottom: clamp(20px, 2vw, 32px); border-bottom: 1px solid rgba(0,0,0,.14); }

.nw-body { background: #fff; padding: 0 0 clamp(56px, 6vw, 110px); }
.nw-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 22px 0 clamp(32px, 3.4vw, 56px); }
.nw-chip { border: 1px solid rgba(0,0,0,.14); background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 18px; font: 500 14px/1 var(--font-madefor); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.nw-chip:hover { border-color: var(--ink); }
.nw-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.nw-top { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: clamp(24px, 3vw, 56px); align-items: start; }
.nw-lead { display: grid; gap: 22px; color: var(--ink); }
.nw-lead-img { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #e8e8e5; }
.nw-lead-img img, .nw-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.nw-lead:hover .nw-lead-img img, .nw-card:hover .nw-card-img img { transform: scale(1.04); }
.nw-flag { position: absolute; top: 18px; inset-inline-start: 18px; background: var(--lime); color: #1d2600; font: 700 11.5px/1 var(--font-madefor); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.nw-cat { display: inline-block; font: 600 12px/1.3 var(--font-madefor); letter-spacing: .14em; text-transform: uppercase; color: var(--lime-deep); }
.nw-lead h2 { font: 400 clamp(30px, 3.2vw, 56px)/1.12 var(--font-madefor); letter-spacing: -.01em; margin: 10px 0 14px; color: #000; }
.nw-lead p { font: 400 clamp(17px, 1.25vw, 20px)/1.55 var(--font-madefor); color: #605e5e; max-width: 46em; }
.nw-meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 14px; font: 400 13px/1.3 var(--font-madefor); color: var(--muted); }
.nw-meta span + span::before { content: "\00B7"; margin: 0 8px; }
.nw-read { display: inline-block; margin-top: 18px; font: 600 15px/1 var(--font-madefor); color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }
.nw-read i { font-style: normal; display: inline-block; transition: transform .25s var(--ease); }
.nw-lead:hover .nw-read i { transform: translateX(4px); }

.nw-latest { position: sticky; top: calc(var(--header-h) + 20px); border-top: 2px solid #000; padding-top: 16px; }
.nw-latest h3 { font: 600 13px/1 var(--font-madefor); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.nw-latest ol { list-style: none; padding: 0; margin: 0; }
.nw-latest li a { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,.1); color: var(--ink); }
.nw-latest li a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.nw-latest b { font: 300 34px/1 var(--font-madefor); color: rgba(0,0,0,.22); min-width: 44px; }
.nw-latest li span { display: grid; gap: 6px; }
.nw-latest .nw-cat { font-size: 10.5px; }
.nw-latest strong { font: 500 16px/1.35 var(--font-madefor); }
.nw-latest em { font: normal 400 12.5px/1 var(--font-madefor); color: var(--muted); }

.nw-section-head { display: flex; align-items: center; gap: 18px; margin: clamp(56px, 6vw, 100px) 0 28px; }
.nw-section-head h3 { font: 600 13px/1 var(--font-madefor); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.nw-section-head::after { content: ""; flex: 1; height: 1px; background: rgba(0,0,0,.14); }
.nw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 40px); }
.nw-card { display: flex; flex-direction: column; color: var(--ink); }
.nw-card-img { aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; background: #e8e8e5; margin-bottom: 18px; }
.nw-card h3 { font: 500 clamp(20px, 1.45vw, 24px)/1.3 var(--font-madefor); margin: 8px 0 10px; color: #000; }
.nw-card p { font: 400 15.5px/1.55 var(--font-madefor); color: #605e5e; }
.nw-card .nw-meta { margin-top: auto; padding-top: 14px; }
.nw-item.is-out { display: none; }
.nw-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.nw-body.is-filtered .nw-top { grid-template-columns: 1fr; }
.nw-body.is-filtered .nw-latest, .nw-body.is-filtered .nw-section-head { display: none; }
.nw-body.is-filtered .nw-lead { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; }
.nw-body.is-filtered .nw-lead.is-out { display: none; }
.nw-body.is-filtered .nw-grid { margin-top: 48px; }

.nw-cta { background: var(--night) url(../assets/img/starfield.jpg) center / cover; color: #fff; padding: clamp(56px, 7vw, 120px) 0; }
.nw-cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 80px); align-items: end; }
.nw-cta-k { font: 600 12px/1 var(--font-madefor); letter-spacing: .18em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.nw-cta h2 { font: 400 clamp(32px, 3.6vw, 64px)/1.1 var(--font-madefor); }
.nw-cta-r p { font: 400 17px/1.6 var(--font-madefor); color: rgba(255,255,255,.75); margin-bottom: 22px; }

@media (max-width: 1080px) {
  .nw-top { grid-template-columns: 1fr; }
  .nw-latest { position: static; }
  .nw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nw-grid, .nw-cta-grid, .nw-body.is-filtered .nw-lead { grid-template-columns: 1fr; }
  .nw-rule { font-size: 10.5px; letter-spacing: .1em; }
  .nw-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .nw-chip { flex: none; }
  .nw-lead-img { border-radius: 20px; }
  .nw-latest { display: none; }
}
html[dir="rtl"] .nw-rule, html[dir="rtl"] .nw-tag, html[dir="rtl"] .nw-chip, html[dir="rtl"] .nw-cat, html[dir="rtl"] .nw-lead h2, html[dir="rtl"] .nw-lead p, html[dir="rtl"] .nw-meta, html[dir="rtl"] .nw-read, html[dir="rtl"] .nw-latest h3, html[dir="rtl"] .nw-latest strong, html[dir="rtl"] .nw-latest em, html[dir="rtl"] .nw-section-head h3, html[dir="rtl"] .nw-card h3, html[dir="rtl"] .nw-card p, html[dir="rtl"] .nw-flag, html[dir="rtl"] .nw-cta-k, html[dir="rtl"] .nw-cta h2, html[dir="rtl"] .nw-cta-r p { font-family: "IRANSans", "Vazirmatn", sans-serif; letter-spacing: 0; }
html[dir="rtl"] .nw-word { font-family: "IRANSans", "Vazirmatn", sans-serif; font-weight: 800; letter-spacing: 0; line-height: 1.15; font-size: clamp(56px, 11vw, 200px); }
html[dir="rtl"] .nw-lead h2, html[dir="rtl"] .nw-cta h2 { font-weight: 700; line-height: 1.45; }
html[dir="rtl"] .nw-card h3 { font-weight: 600; line-height: 1.6; }
html[dir="rtl"] .nw-lead p, html[dir="rtl"] .nw-card p { line-height: 1.9; }
html[dir="rtl"] .nw-lead:hover .nw-read i { transform: translateX(-4px); }
.pj-shot img { transition: opacity .65s var(--ease), transform .9s var(--ease); }
.pj-shot img.mz-fade { opacity: 0; transform: scale(1.04); }

/* project pages: the black band continues through the assistant strip and the footer */
.assistant-cta { background: #000; }
.assistant-card { box-shadow: none; }
.site-footer { background: #000; color: rgba(255,255,255,.5); border-top-color: rgba(255,255,255,.12); }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
body:not(:has(.pj-nav)) .site-footer { border-top: 0; padding-top: clamp(36px, 4vw, 52px); }
@media (max-width: 860px) {
  .pj-nav .wrap { flex-wrap: wrap; }
  .pj-nav-all { order: 3; flex-basis: 100%; }
}

.pj-mz-band .pj-shot { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pj-mz-band .pj-shot:hover { transform: scale(1.06); z-index: 3; box-shadow: 0 18px 44px rgba(0,0,0,.28); }
@media (hover: none) { .pj-mz-band .pj-shot:hover { transform: none; box-shadow: none; } }

/* mobile / hamburger sizes: solid black top bar with the brand and menu */
@media (max-width: 1080px) {
  .site-header, .site-header.scrolled, .site-header.on-light { background: #000 !important; color: #fff !important; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header .brand { color: #fff; }
  .site-header .lang-switch { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
  .site-header .menu-btn { background: rgba(255,255,255,.12); color: #fff; }
  .page-plain, .cn-hero, .nw-mast { padding-top: calc(var(--header-h) + 28px); }
}
.page-hero.hero-face { min-height: 78vh; }
.page-hero.hero-face img { object-position: 50% 0%; }

/* project videos */
.pj-videos { background: #fff; padding: 20px 0 clamp(28px, 3vw, 44px); }
.pj-videos .wrap { width: min(1190px, calc(100% - 48px)); }
.pj-videos-head { text-align: center; margin-bottom: 16px; }
.pj-videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pj-videos.one .pj-videos-grid { grid-template-columns: minmax(0, 560px); justify-content: center; }
.pj-video { margin: 0; border-radius: 16px; overflow: hidden; background: #000; }
.pj-video video { display: block; width: 100%; max-height: 80vh; background: #000; }
@media (max-width: 860px) { .pj-videos-grid { grid-template-columns: 1fr; } .pj-videos .wrap { width: calc(100% - 32px); } }
