/* Local IRANYekanXFaNum Webfonts */
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/iranyekanx/woff2/IRANYekanXFaNum-Thin.woff2') format('woff2'),
       url('fonts/iranyekanx/woff/IRANYekanXFaNum-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/iranyekanx/woff2/IRANYekanXFaNum-UltraLight.woff2') format('woff2'),
       url('fonts/iranyekanx/woff/IRANYekanXFaNum-UltraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/iranyekanx/woff2/IRANYekanXFaNum-Light.woff2') format('woff2'),
       url('fonts/iranyekanx/woff/IRANYekanXFaNum-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/iranyekanx/woff2/IRANYekanXFaNum-Regular.woff2') format('woff2'),
       url('fonts/iranyekanx/woff/IRANYekanXFaNum-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/iranyekanx/woff2/IRANYekanXFaNum-Medium.woff2') format('woff2'),
       url('fonts/iranyekanx/woff/IRANYekanXFaNum-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/iranyekanx/woff2/IRANYekanXFaNum-DemiBold.woff2') format('woff2'),
       url('fonts/iranyekanx/woff/IRANYekanXFaNum-DemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/iranyekanx/woff2/IRANYekanXFaNum-Bold.woff2') format('woff2'),
       url('fonts/iranyekanx/woff/IRANYekanXFaNum-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/iranyekanx/woff2/IRANYekanXFaNum-ExtraBold.woff2') format('woff2'),
       url('fonts/iranyekanx/woff/IRANYekanXFaNum-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/iranyekanx/woff2/IRANYekanXFaNum-Black.woff2') format('woff2'),
       url('fonts/iranyekanx/woff/IRANYekanXFaNum-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('fonts/iranyekanx/woff2/IRANYekanXFaNum-ExtraBlack.woff2') format('woff2'),
       url('fonts/iranyekanx/woff/IRANYekanXFaNum-ExtraBlack.woff') format('woff');
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --bg-elevated: #fbf9f4;
  --ink: #16221d;
  --ink-soft: #435049;
  --muted: #6c7770;
  --line: rgba(22, 34, 29, 0.11);
  --emerald: #1e3a2f;
  --emerald-mid: #2f5747;
  --emerald-deep: #111d18;
  --gold: #b88d46;
  --gold-light: #e2c58a;
  --clay: #b86754;
  --glass: rgba(251, 249, 244, 0.82);
  --glass-dark: rgba(17, 29, 24, 0.86);
  --shadow-sm: 0 10px 30px rgba(17, 29, 24, 0.06);
  --shadow-lg: 0 28px 70px rgba(17, 29, 24, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IRANYekanX', system-ui, -apple-system, sans-serif;
  line-height: 1.9;
  overflow-x: hidden;
  padding-bottom: 0;
}

/* Subtle organic grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: radial-gradient(#000 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--clay), var(--emerald-mid));
  transition: width 0.08s linear;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(243, 239, 230, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.topbar.scrolled {
  background: rgba(251, 249, 244, 0.94);
  box-shadow: 0 8px 30px rgba(17, 29, 24, 0.06);
}
.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.monogram {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--emerald-deep), var(--emerald-mid));
  color: #f6efe2;
  display: grid;
  place-items: center;
  font: 700 16px 'DM Sans', sans-serif;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 20px rgba(17, 29, 24, 0.18);
  position: relative;
  overflow: hidden;
}
.monogram::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 12px;
  border: 1px solid rgba(226, 197, 138, 0.35);
}
.brand strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
}
.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.navlinks a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}
.navlinks a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.navlinks a:hover { color: var(--emerald); }
.navlinks a:hover::after { width: 100%; }

.navright {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-pill {
  font: 700 12px 'DM Sans', sans-serif;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: all 0.2s ease;
}
.lang-pill:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* Buttons with shimmer & tactile press */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 28px rgba(30, 58, 47, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1), box-shadow 0.22s ease;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::before { left: 150%; }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(30, 58, 47, 0.3);
}
.btn:active { transform: scale(0.97); }

.btn.gold {
  background: linear-gradient(135deg, #c69a50, #9d7330);
  box-shadow: 0 12px 28px rgba(184, 141, 70, 0.28);
}
.btn.ghost {
  background: rgba(251, 249, 244, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover {
  background: #fff;
  border-color: var(--gold);
}

/* Hero Section - Editorial + Ambient Glow */
.hero {
  position: relative;
  padding: 56px 0 88px;
  overflow: hidden;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate;
}
.orb-1 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(184, 141, 70, 0.22), transparent 70%);
  top: -120px;
  left: -100px;
}
.orb-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(47, 87, 71, 0.16), transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-delay: -5s;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, 18px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--emerald);
  box-shadow: var(--shadow-sm);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e8b57;
  box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.55);
  animation: pulseRing 2.2s infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(46, 139, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 139, 87, 0); }
}

.hero h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.38;
  letter-spacing: -1.4px;
  margin: 18px 0 18px;
  font-weight: 900;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--emerald) 15%, var(--gold) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero p.lead {
  font-size: 16.5px;
  line-height: 2.05;
  color: var(--ink-soft);
  max-width: 630px;
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Signature Quote Pill inside Hero */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.metric-box {
  background: rgba(251, 249, 244, 0.65);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.metric-box strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--emerald);
}
.metric-box span {
  font-size: 11px;
  color: var(--muted);
}

/* Portrait Showcase with Halo & Interactive Tilt */
.portrait-wrap {
  position: relative;
  max-width: 415px;
  width: 100%;
  margin-inline: auto;
  perspective: 1000px;
}
.portrait-halo {
  position: absolute;
  inset: -14px;
  border-radius: 210px 210px 36px 36px;
  border: 1px dashed rgba(184, 141, 70, 0.45);
  pointer-events: none;
  animation: slowSpin 38s linear infinite;
}
@keyframes slowSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(3deg); }
}
.portrait-frame {
  position: relative;
  z-index: 1;
  border-radius: 195px 195px 30px 30px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #e9e3d5;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait-card-float {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  right: -20px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.en .portrait-card-float { right: auto; left: -20px; }
.portrait-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--emerald);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.portrait-card-float b {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
}
.portrait-card-float span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 84px 0;
  position: relative;
}
.section.soft {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}
.section.dark {
  background: radial-gradient(circle at top right, #233f33, var(--emerald-deep) 70%);
  color: #f5f0e7;
}
.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.8px;
  color: var(--clay);
  font-weight: 800;
}
.dark .eyebrow { color: var(--gold-light); }
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.45;
  margin: 10px 0 12px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.section-head p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}
.dark .section-head p { color: #c7d1ca; }

/* Manifesto Statement */
.manifesto-box {
  background: linear-gradient(135deg, rgba(30, 58, 47, 0.04), rgba(184, 141, 70, 0.08));
  border: 1px solid var(--line);
  border-right: 4px solid var(--gold);
  border-radius: 24px;
  padding: 32px 34px;
}
.en .manifesto-box { border-right: 1px solid var(--line); border-left: 4px solid var(--gold); }
.statement {
  font-size: clamp(20px, 2.8vw, 32px);
  line-height: 1.85;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.statement span {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-color: rgba(184, 103, 84, 0.35);
  text-underline-offset: 8px;
}

/* Interactive Self-Reflection Compass (High Engagement Feature!) */
.compass-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.compass-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.compass-tabs::-webkit-scrollbar { display: none; }
.compass-tab {
  flex: 0 0 auto;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.22s ease;
}
.compass-tab.active {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
  box-shadow: 0 8px 20px rgba(30, 58, 47, 0.22);
}
.compass-panel {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  animation: fadeSlide 0.35s ease;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.compass-insight {
  background: var(--bg);
  border-radius: 20px;
  padding: 26px;
  border: 1px solid var(--line);
}
.compass-insight h3 {
  margin: 6px 0 10px;
  font-size: 21px;
  color: var(--emerald);
}
.compass-insight p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.compass-question {
  background: #fff;
  border-right: 3px solid var(--gold);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.en .compass-question { border-right: none; border-left: 3px solid var(--gold); }
.compass-protocol {
  background: linear-gradient(155deg, var(--emerald), var(--emerald-deep));
  color: #f6efe2;
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.compass-protocol small {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.6px;
}
.compass-protocol ul {
  margin: 14px 0 20px;
  padding-right: 18px;
  font-size: 13.5px;
  line-height: 1.95;
  color: #dce4de;
}
.en .compass-protocol ul { padding-right: 0; padding-left: 18px; }

/* Pillar Cards with Spotlight Hover */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 141, 70, 0.55);
}
.card .num {
  font: 700 11px 'DM Sans', sans-serif;
  color: var(--gold);
  letter-spacing: 1px;
}
.card h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 10px 0 8px;
  font-weight: 800;
}
.card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}
.dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.dark .card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--gold-light);
}
.dark .card p { color: #cfd8d1; }
.dark .card h3 { color: #fff; }

/* Interactive Radio Agah Mini-Player inside Dark Section */
.radio-player {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(226, 197, 138, 0.3);
  border-radius: 24px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.radio-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--emerald-deep);
  font-size: 18px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(184, 141, 70, 0.35);
  transition: transform 0.2s;
}
.play-circle:hover { transform: scale(1.06); }
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-inline-start: 8px;
}
.equalizer span {
  width: 3px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 3px;
  transition: height 0.2s;
}
.radio-player.playing .equalizer span {
  animation: eqBounce 0.7s infinite ease-in-out alternate;
}
.radio-player.playing .equalizer span:nth-child(2) { animation-delay: 0.15s; }
.radio-player.playing .equalizer span:nth-child(3) { animation-delay: 0.3s; }
.radio-player.playing .equalizer span:nth-child(4) { animation-delay: 0.45s; }
@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* Book Showcase */
.book {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 28px;
  align-items: center;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 26px;
  padding: 26px;
}
.bookcover {
  aspect-ratio: 3/4;
  background: linear-gradient(155deg, #172720, #3f5c4b);
  border-radius: 12px;
  box-shadow: 12px 16px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f8f0df;
  padding: 18px;
  position: relative;
}
.bookcover::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(226, 197, 138, 0.5);
  border-radius: 6px;
}
.bookcover b { font-size: 17px; line-height: 1.85; position: relative; }
.bookmeta { color: var(--gold-light); font-size: 11.5px; font-weight: 700; }
.book h3 { font-size: 23px; margin: 8px 0; }
.book p { color: #d0d9d1; font-size: 14px; margin-bottom: 18px; }

/* Article Cards */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.article-link {
  display: block;
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: all 0.25s ease;
}
.article-link:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.article-link small { color: var(--clay); font-weight: 800; font-size: 11.5px; }
.article-link h3 { font-size: 19px; margin: 8px 0; font-weight: 800; }
.article-link p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Timeline & Notice */
.timeline {
  border-right: 2px solid var(--line);
  padding-right: 24px;
  display: grid;
  gap: 22px;
}
.en .timeline { border-right: 0; border-left: 2px solid var(--line); padding-right: 0; padding-left: 24px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  right: -31px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--bg);
}
.en .timeline-item::before { right: auto; left: -31px; }
.timeline-item h3 { font-size: 16.5px; margin: 0 0 4px; font-weight: 800; }
.timeline-item p { font-size: 13.5px; color: var(--muted); margin: 0; }

.notice {
  background: #ece4d3;
  border: 1px solid #d8cbb2;
  padding: 20px 22px;
  border-radius: 18px;
  font-size: 12.5px;
  line-height: 1.95;
  color: #4f5950;
  margin-top: 24px;
}

/* Contact CTA */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  color: #f6efe2;
  border-radius: 28px;
  padding: 38px 40px;
  box-shadow: var(--shadow-lg);
}
.contact-card h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.contact-card p { font-size: 14px; color: #cfd8d1; margin: 0; max-width: 560px; }

/* Footer */
.footer {
  padding: 36px 0;
  background: #101b16;
  color: #d9e0d9;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer small { font-size: 11.5px; color: #9ea9a0; }
.footer a { font-size: 12.5px; color: var(--gold-light); }

/* Mobile Bottom App-Style Navigation Dock + Drawer */
.mobile-dock {
  display: none;
}
.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 27, 22, 0.55);
  backdrop-filter: blur(6px);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-sheet {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 150;
  background: var(--bg-elevated);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 16px 22px calc(26px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(105%);
  transition: transform 0.32s cubic-bezier(.2,.85,.25,1);
}
.mobile-sheet.open {
  transform: translateY(0);
}
.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(22, 34, 29, 0.2);
  margin: 0 auto 18px;
}
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.sheet-link {
  padding: 14px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(.2,.8,.2,1), transform 0.65s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Article Pages Styling */
.article-hero { padding: 58px 0 32px; }
.article-hero h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.5; max-width: 900px; margin: 12px 0; }
.article-hero .intro { font-size: 16.5px; color: var(--muted); max-width: 820px; }
.article-body { max-width: 820px; margin: 0 auto; padding: 26px 0 90px; }
.article-body h2 { font-size: 24px; margin: 40px 0 10px; line-height: 1.6; }
.article-body h3 { font-size: 18px; margin: 26px 0 8px; }
.article-body p, .article-body li { font-size: 15.5px; line-height: 2.15; color: var(--ink-soft); }
.article-body ul { padding-right: 22px; }
.article-body blockquote { border-right: 3px solid var(--gold); margin: 28px 0; padding: 12px 20px; color: var(--emerald); font-size: 18.5px; background: var(--bg-elevated); border-radius: 12px; }
.breadcrumbs { font-size: 12px; color: var(--muted); padding-top: 20px; }
.en { font-family: 'DM Sans', 'IRANYekanX', sans-serif; }
.en .article-body ul { padding-right: 0; padding-left: 22px; }
.en .article-body blockquote { border-right: 0; border-left: 3px solid var(--gold); }

/* Responsive Breakpoints - Mobile-First Polish */
@media (max-width: 960px) {
  .navlinks { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .portrait-wrap { order: -1; max-width: 280px; }
  .portrait-card-float { right: 50%; transform: translateX(50%); bottom: -16px; width: max-content; max-width: 92vw; }
  .en .portrait-card-float { left: 50%; right: auto; transform: translateX(-50%); }
  .compass-panel { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .wrap { width: min(100% - 28px, 1180px); }
  .nav { height: 64px; }
  .brand small { display: none; }
  .navright .btn { display: none; }

  .hero { padding: 28px 0 64px; }
  .portrait-wrap { max-width: 235px; margin-bottom: 14px; }
  .portrait-frame { border-radius: 140px 140px 24px 24px; }
  .portrait-halo { inset: -10px; border-radius: 150px 150px 30px 30px; }
  .portrait-card-float { padding: 10px 14px; border-radius: 14px; }
  .portrait-badge-icon { width: 32px; height: 32px; font-size: 15px; }
  .portrait-card-float b { font-size: 12.5px; }
  .portrait-card-float span { font-size: 10px; }

  .hero h1 { font-size: 32px; letter-spacing: -0.8px; margin-top: 14px; }
  .hero p.lead { font-size: 14.5px; line-height: 1.95; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; padding: 14px 20px; }

  .hero-metrics {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scrollbar-width: none;
    text-align: start;
  }
  .hero-metrics::-webkit-scrollbar { display: none; }
  .metric-box { flex: 0 0 72%; }

  .section { padding: 56px 0; }
  .manifesto-box { padding: 22px 20px; }
  .compass-shell { padding: 20px 16px; border-radius: 22px; }
  .compass-insight, .compass-protocol { padding: 20px 18px; }

  /* Horizontal Snap Carousel on Mobile for Pillar Cards */
  .grid3 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .grid3::-webkit-scrollbar { display: none; }
  .grid3 .card {
    flex: 0 0 84%;
    scroll-snap-align: center;
    padding: 22px;
  }

  .grid2, .article-list { grid-template-columns: 1fr; }
  .radio-player { flex-direction: column; align-items: flex-start; padding: 20px; }
  .book { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .bookcover { max-width: 150px; margin-inline: auto; }
  .contact-card { flex-direction: column; text-align: center; padding: 28px 20px; }
  .contact-card .btn { width: 100%; }
  .footer { padding-bottom: 44px; }
  .footer-row { flex-direction: column; align-items: flex-start; }

  /* Thumb-Zone Floating App Dock on Mobile */
  .mobile-dock {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 130;
    height: 62px;
    background: rgba(17, 29, 24, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 197, 138, 0.28);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    padding-inline: 6px;
  }
  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #cfd8d1;
    font-size: 10.5px;
    font-weight: 600;
    background: none;
    border: none;
    padding: 6px 10px;
    border-radius: 14px;
    transition: color 0.2s, transform 0.15s;
  }
  .dock-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; }
  .dock-item.active, .dock-item:active {
    color: var(--gold-light);
    transform: scale(0.95);
  }
  .dock-cta {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--emerald-deep);
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(184, 141, 70, 0.35);
  }
  .dock-cta svg { stroke: var(--emerald-deep); }
}