@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ahuramazda";
  src: url("assets/fonts/ahuramazda.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --header-height: 76px;
  --charcoal: #111827;
  --black: #111111;
  --off-white: #f6f5f2;
  --paper: #fffdfa;
  --deep-teal: #2e5f5b;
  --sage: #a6b1a6;
  --line: #d9d6ce;
  --muted: #4b5563;
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-persian: "Vazirmatn", "Noto Naskh Arabic", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--charcoal);
  color: white;
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.layout {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
  flex: 0 0 auto;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav-links a,
.text-link,
.contact-links a {
  text-decoration: none;
}

.nav-links a:hover,
.text-link:hover,
.contact-links a:hover {
  color: var(--deep-teal);
}

.language-tabs {
  justify-self: end;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 253, 250, 0.58);
}

.language-tabs button {
  min-width: 42px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.language-tabs button:first-child {
  border-left: 0;
}

.language-tabs button[aria-selected="true"] {
  background: var(--charcoal);
  color: var(--off-white);
}

.panel {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-height);
}

.panel-grid {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: stretch;
}

.hero-panel {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) 50%, transparent 50%),
    var(--off-white);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.62fr);
}

.panel-copy {
  align-self: center;
}

.hero-copy {
  --wordmark-optical-offset: 8px;
  display: grid;
  align-content: center;
  padding-right: 48px;
}

.hero-aside {
  display: grid;
  align-content: center;
  justify-items: start;
  border-left: 1px solid var(--line);
  padding-left: 72px;
}

.section-label {
  margin: 0 0 24px;
  color: var(--deep-teal);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-wordmark {
  display: flex;
  align-items: baseline;
  min-width: 0;
  margin: 0 0 28px;
  direction: ltr;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 11.2rem;
  font-weight: 500;
  line-height: 0.86;
}

.wordmark-dot {
  width: 30px;
  height: 30px;
  margin-left: 20px;
  transform: translateY(-16px) rotate(45deg);
  background: var(--deep-teal);
}

.tagline {
  max-width: 520px;
  margin: 0;
  padding-inline-start: var(--wordmark-optical-offset);
  color: var(--deep-teal);
  font-size: 1.05rem;
  font-weight: 800;
}

.persian-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  margin: 0 0 34px;
  color: var(--deep-teal);
  font-family: "Ahuramazda", "Noto Sans Avestan", var(--font-persian);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

.persian-mark::before,
.persian-mark::after {
  content: "";
  display: block;
  width: min(130px, 32%);
  height: 1px;
  background: var(--line);
}

.intro {
  max-width: 420px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  color: var(--deep-teal);
  font-size: 0.92rem;
  font-weight: 800;
}

.identity-panel {
  background: var(--paper);
}

.identity-grid {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
}

.symbol-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-height));
  border-right: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(217, 214, 206, 0.75) 1px, transparent 1px),
    linear-gradient(0deg, rgba(217, 214, 206, 0.58) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

.symbol-stage::before,
.symbol-stage::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(166, 177, 166, 0.42);
  pointer-events: none;
}

.symbol-stage::before {
  width: min(420px, 76%);
  aspect-ratio: 1;
  border-radius: 44% 56% 50% 50%;
  transform: rotate(18deg);
}

.symbol-stage::after {
  width: min(350px, 64%);
  aspect-ratio: 1;
  border-radius: 52% 48% 46% 54%;
  transform: rotate(-22deg);
}

.identity-symbol {
  position: relative;
  z-index: 1;
  width: min(340px, 58%);
  height: auto;
}

.identity-copy {
  display: grid;
  align-content: center;
  padding: 72px 0 72px 86px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
}

h2 {
  max-width: 830px;
  margin-bottom: 26px;
  font-size: 4.85rem;
}

h2 .title-en {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.42em;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  margin-right: 16px;
  white-space: nowrap;
  vertical-align: middle;
}

h3 {
  margin-bottom: 18px;
  font-size: 1.82rem;
}

.identity-copy > p:not(.section-label),
.focus-grid p,
.contact-copy p {
  color: var(--muted);
}

.identity-copy > p:not(.section-label) {
  max-width: 560px;
  margin-bottom: 42px;
  font-size: 1.08rem;
}

.concept-list {
  display: grid;
  max-width: 620px;
  border-top: 1px solid var(--line);
}

.concept-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.concept-list span {
  width: 13px;
  height: 13px;
  justify-self: center;
  transform: rotate(45deg);
  background: var(--deep-teal);
}

.concept-list div:nth-child(2) span {
  width: 18px;
  height: 2px;
  transform: none;
  background: var(--charcoal);
}

.concept-list div:nth-child(3) span {
  width: 28px;
  height: 1px;
  transform: none;
  background: var(--line);
}

.concept-list p {
  margin: 0;
  color: var(--muted);
}

.story-panel-white {
  background: var(--paper);
}

.story-panel-grey {
  background: var(--off-white);
}

/* SOBER ATMOSPHERE FOR THE PROBLEM SECTIONS */
.problem-panel {
  background: #edf0f2 !important; /* Premium, cool slate grey representing societal friction */
}

/* Bracketing timeline/hairline border to group problem sections visually */
.problem-panel .story-copy-col {
  border-left: 2px solid var(--line);
  padding-left: 56px;
}

[dir="rtl"] .problem-panel .story-copy-col {
  border-left: 0;
  border-right: 2px solid var(--line);
  padding-left: 0;
  padding-right: 56px;
}

/* Sober brick-red/terracotta label representing modern societal challenges */
.problem-panel .section-label {
  color: #9c5a4d !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Lighter, sharper typography for the problem headings */
.problem-panel h2 {
  color: var(--charcoal);
  font-weight: 450;
}

@media (max-width: 1040px) {
  .problem-panel .story-copy-col,
  [dir="rtl"] .problem-panel .story-copy-col {
    border-left: 0;
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.story-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
  gap: 86px;
}

.story-title-col {
  display: grid;
  align-content: center;
  padding: 72px 0;
  border-right: 1px solid var(--line);
  padding-right: 86px;
}

.story-copy-col {
  display: grid;
  align-content: center;
  padding: 72px 0 72px 86px;
}

.story-copy-col p {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.08rem;
  color: var(--muted);
}

.story-copy-col p:last-child {
  margin-bottom: 0;
}

.story-copy-col p strong {
  color: var(--black);
  font-weight: 600;
}

[dir="rtl"] .story-title-col {
  border-right: 0;
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 86px;
}

[dir="rtl"] .story-copy-col {
  padding-left: 0;
  padding-right: 86px;
}

.callout-panel {
  background: var(--paper);
  text-align: center;
}

.callout-layout {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 72px 0;
}

.callout-quote {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--deep-teal);
  max-width: 960px;
  margin: 0;
  padding: 0;
}

[dir="rtl"] .callout-quote {
  font-family: var(--font-persian);
  font-size: 2.85rem;
  font-weight: 500;
}

.research-panel {
  background:
    linear-gradient(90deg, transparent calc(33.333% - 1px), rgba(217, 214, 206, 0.78) calc(33.333% - 1px), rgba(217, 214, 206, 0.78) 33.333%, transparent 33.333%),
    linear-gradient(90deg, transparent calc(66.666% - 1px), rgba(217, 214, 206, 0.78) calc(66.666% - 1px), rgba(217, 214, 206, 0.78) 66.666%, transparent 66.666%),
    var(--off-white);
}

.research-layout {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-content: center;
  gap: 72px;
  padding: 72px 0;
}

.research-head {
  max-width: 820px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.focus-grid article {
  min-height: 270px;
  display: grid;
  align-content: space-between;
  padding: 28px 32px 32px;
}

.focus-grid article + article {
  border-left: 1px solid var(--line);
}

.focus-grid span {
  display: block;
  color: var(--deep-teal);
  font-size: 0.8rem;
  font-weight: 850;
}

.focus-grid p {
  margin-bottom: 0;
  max-width: 320px;
}

/* Research Page Grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 56px;
}

.contact-panel {
  min-height: calc(100svh - var(--header-height));
  background: var(--deep-teal);
  color: white;
}

.contact-layout {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 56px 80px;
  align-items: center;
  padding: 72px 0;
}

.contact-mark {
  align-self: start;
  padding-top: 10px;
}

.contact-mark img {
  width: min(290px, 100%);
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.contact-copy {
  align-self: center;
}

.contact-copy .section-label {
  color: rgba(255, 255, 255, 0.72);
}

.contact-copy h2 {
  max-width: 820px;
}

.contact-copy p:not(.section-label) {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-self: end;
  justify-self: start;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.site-footer {
  padding: 20px 0;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.84rem;
  font-weight: 700;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-links a,
.legal-home-link {
  text-decoration: none;
}

.legal-links a:hover,
.legal-home-link:hover {
  color: white;
}

.legal-home-link {
  justify-self: end;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.legal-page .site-header {
  position: sticky;
}

.progress-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.progress-page .legal-main {
  flex: 1;
}

.legal-page .nav-links a {
  color: var(--muted);
}

.legal-page .nav-links a:hover,
.legal-page .legal-home-link:hover {
  color: var(--deep-teal);
}

.legal-main {
  padding: 96px 0 110px;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: 84px;
  align-items: start;
}

.legal-intro {
  position: sticky;
  top: calc(var(--header-height) + 34px);
}

.legal-kicker {
  margin: 0 0 22px;
  color: var(--deep-teal);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.legal-title {
  max-width: none;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 4.1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.94;
}

.legal-updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-content {
  display: grid;
  gap: 34px;
}

.legal-card {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.legal-card h2 {
  max-width: 900px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.02;
}

.legal-card h3 {
  margin: 24px 0 10px;
  font-size: 1.2rem;
  line-height: 1.22;
}

.legal-card p,
.legal-card li {
  max-width: 820px;
  color: var(--muted);
}

.legal-card p,
.legal-card ul {
  margin: 0 0 14px;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-card a {
  color: var(--deep-teal);
  font-weight: 800;
  text-decoration: none;
}

.legal-card a:hover {
  color: var(--charcoal);
}

.legal-note {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 18px;
}

.placeholder {
  color: var(--deep-teal);
  font-weight: 850;
}

/* Kaavestan active-groups list */
.kaavestan-intro {
  padding: 32px 0;
}

.kaavestan-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kaavestan-item {
  overflow: hidden;
  border: 1px solid rgba(46, 95, 91, 0.16);
  border-radius: 16px;
  background: var(--paper);
  padding: 34px;
  box-shadow:
    0 18px 40px rgba(17, 24, 39, 0.04),
    0 4px 12px rgba(17, 24, 39, 0.025);
}

.kaavestan-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.kaavestan-eyebrow {
  margin: 0 0 10px;
  color: #b76618;
  font-size: 0.76rem;
  font-weight: 800;
}

.kaavestan-item h2 {
  max-width: 650px;
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
}

.kaavestan-date {
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 500;
  white-space: nowrap;
}

.kaavestan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.kaavestan-badges span {
  border: 1px solid rgba(46, 95, 91, 0.16);
  border-radius: 999px;
  background: rgba(46, 95, 91, 0.07);
  color: var(--deep-teal);
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 750;
}

.kaavestan-description {
  padding: 28px 0 12px;
}

.kaavestan-description p,
.kaavestan-description li,
.kaavestan-schedule p {
  color: var(--muted);
  line-height: 1.9;
}

.kaavestan-description p {
  margin: 0 0 18px;
}

.kaavestan-description ul {
  margin: 4px 0 22px;
  padding-inline-start: 24px;
}

.kaavestan-description li {
  margin-bottom: 6px;
}

.kaavestan-book {
  display: grid;
  gap: 5px;
  margin: 24px 0;
  border-left: 3px solid #ea9239;
  border-radius: 0 8px 8px 0;
  background: rgba(234, 146, 57, 0.08);
  padding: 18px 20px;
  color: var(--charcoal);
  text-align: left;
}

.kaavestan-book cite {
  font-weight: 700;
  line-height: 1.5;
}

.kaavestan-book span {
  color: var(--muted);
  font-size: 0.86rem;
}

.kaavestan-schedule {
  margin: 4px 0 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.kaavestan-schedule h3 {
  margin: 0 0 8px;
  color: var(--charcoal);
  font-size: 1rem;
}

.kaavestan-schedule p {
  margin: 0;
}

.kaavestan-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 8px;
  background: var(--deep-teal);
  color: white;
  padding: 10px 20px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.kaavestan-register:hover {
  background: #244e4b;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(46, 95, 91, 0.18);
}

.kaavestan-register:focus-visible {
  outline: 3px solid rgba(234, 146, 57, 0.5);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .kaavestan-item {
    border-radius: 12px;
    padding: 24px 20px;
  }

  .kaavestan-item-header {
    flex-direction: column;
    gap: 16px;
  }

  .kaavestan-register {
    width: 100%;
  }
}

[dir="rtl"] body {
  font-family: var(--font-persian);
}

[dir="rtl"] .brand,
[dir="rtl"] .language-tabs,
[dir="rtl"] .hero-wordmark,
[dir="rtl"] .contact-mark img {
  direction: ltr;
}

[dir="rtl"] .nav-links,
[dir="rtl"] .hero-aside,
[dir="rtl"] .identity-copy,
[dir="rtl"] .research-layout,
[dir="rtl"] .focus-grid,
[dir="rtl"] .contact-layout,
[dir="rtl"] .footer-inner {
  direction: rtl;
}

[dir="rtl"] .hero-copy {
  padding-right: 0;
  padding-left: 48px;
}

[dir="rtl"] .hero-aside {
  border-left: 0;
  border-right: 1px solid var(--line);
  padding-left: 0;
  padding-right: 72px;
}

[dir="rtl"] .symbol-stage {
  border-right: 0;
  border-left: 1px solid var(--line);
}

[dir="rtl"] .identity-copy {
  padding-left: 0;
  padding-right: 86px;
}

[dir="rtl"] .concept-list div {
  grid-template-columns: 1fr 42px;
}

[dir="rtl"] .concept-list span {
  grid-column: 2;
  grid-row: 1;
}

[dir="rtl"] .focus-grid article + article {
  border-left: 0;
  border-right: 1px solid var(--line);
}

[dir="rtl"] .contact-links {
  justify-self: end;
}

@media (max-width: 1040px) {
  :root {
    --header-height: 72px;
  }

  .nav-shell {
    padding: 0;
    gap: 16px;
  }

  .panel,
  .panel-grid,
  .symbol-stage,
  .research-layout,
  .contact-panel,
  .contact-layout {
    min-height: calc(100svh - var(--header-height));
  }

  .hero-panel {
    background: var(--off-white);
  }

  .hero-grid,
  .identity-grid,
  .story-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-content: center;
    padding: 64px 0;
    gap: 44px;
  }

  .hero-copy,
  [dir="rtl"] .hero-copy {
    padding: 0;
  }

  .hero-aside,
  [dir="rtl"] .hero-aside {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 36px 0 0;
  }

  .wordmark-text {
    font-size: 8.4rem;
  }

  .symbol-stage {
    min-height: 48svh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  [dir="rtl"] .symbol-stage {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-copy,
  [dir="rtl"] .identity-copy {
    padding: 56px 0 72px;
  }

  .story-title-col,
  [dir="rtl"] .story-title-col {
    border: 0;
    padding: 56px 0 0;
  }

  .story-copy-col,
  [dir="rtl"] .story-copy-col {
    padding: 24px 0 56px;
  }

  .callout-quote {
    font-size: 2.4rem;
  }

  [dir="rtl"] .callout-quote {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 4rem;
  }

  .research-layout {
    padding: 64px 0;
  }

  .contact-links {
    grid-column: 1;
  }

  .legal-shell {
    gap: 56px;
  }

  .legal-title {
    font-size: 3.6rem;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .layout {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    position: sticky;
  }

  .brand-logo {
    width: 96px;
  }

  .nav-right {
    gap: 12px;
  }

  .language-tabs button {
    min-width: 36px;
    height: 32px;
    font-size: 0.7rem;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.78rem;
  }

  .panel,
  .panel-grid,
  .research-layout,
  .contact-panel,
  .contact-layout {
    min-height: calc(100svh - var(--header-height));
  }

  .hero-grid {
    padding: 46px 0 54px;
    gap: 32px;
  }

  .hero-copy {
    --wordmark-optical-offset: 5px;
  }

  .section-label {
    margin-bottom: 18px;
  }

  .wordmark-text {
    font-size: 5.15rem;
  }

  .wordmark-dot {
    width: 18px;
    height: 18px;
    margin-left: 11px;
    transform: translateY(-9px) rotate(45deg);
  }

  .tagline {
    font-size: 1rem;
  }

  .persian-mark {
    justify-content: flex-start;
    margin-bottom: 26px;
    font-size: 2.25rem;
  }

  .persian-mark::before {
    display: none;
  }

  .persian-mark::after {
    width: 96px;
  }

  h2 {
    font-size: 2.42rem;
  }

  h3 {
    margin-bottom: 10px;
    font-size: 1.42rem;
  }

  .symbol-stage {
    min-height: 32svh;
    background-size: 44px 44px;
  }

  .identity-symbol {
    width: min(180px, 52%);
  }

  .symbol-stage::before {
    width: min(230px, 68%);
  }

  .symbol-stage::after {
    width: min(190px, 56%);
  }

  .identity-copy,
  [dir="rtl"] .identity-copy {
    padding: 32px 0 40px;
  }

  .story-title-col,
  [dir="rtl"] .story-title-col {
    padding: 32px 0 0;
  }

  .story-copy-col,
  [dir="rtl"] .story-copy-col {
    padding: 16px 0 32px;
  }

  .story-copy-col p {
    font-size: 1rem;
  }

  .callout-quote {
    font-size: 1.8rem;
    line-height: 1.35;
  }

  [dir="rtl"] .callout-quote {
    font-size: 1.62rem;
  }

  .identity-copy > p:not(.section-label) {
    margin-bottom: 22px;
    font-size: 1rem;
  }

  .concept-list div,
  [dir="rtl"] .concept-list div {
    grid-template-columns: 28px 1fr;
    gap: 14px;
    padding: 10px 0;
    font-size: 0.95rem;
  }

  [dir="rtl"] .concept-list div {
    grid-template-columns: 1fr 28px;
  }

  .research-panel {
    background: var(--off-white);
  }

  .research-layout {
    gap: 24px;
    padding: 40px 0;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .focus-grid article {
    min-height: 138px;
    padding: 14px 0 16px;
  }

  .focus-grid article + article,
  [dir="rtl"] .focus-grid article + article {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .research-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-layout {
    gap: 38px;
    padding: 54px 0;
  }

  .contact-mark img {
    width: 220px;
  }

  .contact-links {
    display: grid;
    gap: 12px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-page .nav-shell {
    grid-template-columns: auto auto;
  }

  .legal-page .nav-links {
    display: none;
  }

  .legal-main {
    padding: 58px 0 72px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .legal-intro {
    position: static;
  }

  .legal-title {
    max-width: none;
    font-size: 3.12rem;
  }

  .legal-card h2 {
    font-size: 1.68rem;
  }
}

@media (max-width: 390px) {
  .wordmark-text {
    font-size: 4.65rem;
  }

  .nav-links {
    font-size: 0.73rem;
  }

  .legal-title {
    font-size: 2.72rem;
  }
}

/* Dropdown Hanging Menu (State-of-the-art Premium Design) */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  background: rgba(2, 50, 36, 0.03);
  border: 1px solid rgba(2, 50, 36, 0.08);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-trigger:hover,
.dropdown.is-active .dropdown-trigger {
  color: var(--deep-teal);
  background: rgba(2, 50, 36, 0.06);
  border-color: rgba(2, 50, 36, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 50, 36, 0.04);
}

/* Animating Hamburger Menu Icon */
.hamburger-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 9px;
}

/* Transform to X when active */
.dropdown.is-active .hamburger-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.dropdown.is-active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.dropdown.is-active .hamburger-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 253, 250, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(2, 50, 36, 0.08);
  border-radius: 12px;
  box-shadow: 
    0 4px 6px -1px rgba(2, 50, 36, 0.02),
    0 10px 30px -5px rgba(2, 50, 36, 0.08);
  padding: 8px;
  min-width: 190px;
  z-index: 100;
  text-align: left;
  transition: 
    opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Align dropdown menu correctly in RTL */
[dir="rtl"] .dropdown-menu {
  text-align: right;
}

/* Open states */
.dropdown:hover .dropdown-menu,
.dropdown.is-active .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(8px) scale(1);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dropdown-menu a:hover {
  background-color: rgba(2, 50, 36, 0.04);
  color: var(--deep-teal);
  transform: translateX(4px);
}

[dir="rtl"] .dropdown-menu a:hover {
  transform: translateX(-4px);
}

/* Active indicator dot */
.active-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #ea9239; /* Brand Accent Warm Amber */
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: scale(0.5);
  flex-shrink: 0;
  margin-left: 8px;
}

[dir="rtl"] .active-indicator {
  margin-left: 0;
  margin-right: 8px;
}

.dropdown-menu a.is-active {
  color: var(--deep-teal);
  font-weight: 700;
  background-color: rgba(2, 50, 36, 0.02);
}

.dropdown-menu a.is-active .active-indicator {
  opacity: 1;
  transform: scale(1);
}

/* Consolidated challenge row */
.challenge-summary-panel .section-label,
.challenge-summary-grid > article > span {
  color: #9c5a4d;
}

.challenge-summary-grid h3 .title-en {
  display: block;
  margin-top: 0.25em;
  direction: ltr;
  font-family: var(--font-display);
  font-size: 0.62em;
  line-height: 1.1;
}

/* Active Kaavestans homepage feature */
.kaavestan-feature {
  border-bottom: 1px solid var(--line);
  padding: clamp(76px, 8vw, 112px) 0;
  background: var(--paper);
  scroll-margin-top: var(--header-height);
}

.kaavestan-feature-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
}

.kaavestan-feature-intro {
  max-width: 440px;
}

.kaavestan-feature-intro h2 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 4.1vw, 4.45rem);
  line-height: 0.98;
}

.kaavestan-feature-intro > p:not(.section-label) {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.kaavestan-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kaavestan-all-link [aria-hidden="true"],
.kaavestan-feature-cta [aria-hidden="true"] {
  transition: transform 180ms ease;
}

.kaavestan-all-link:hover [aria-hidden="true"],
.kaavestan-feature-cta:hover [aria-hidden="true"] {
  transform: translate(4px, -2px);
}

.kaavestan-feature-card {
  position: relative;
  display: grid;
  min-height: 480px;
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--deep-teal);
  background:
    linear-gradient(135deg, rgba(46, 95, 91, 0.055), transparent 54%),
    var(--off-white);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.06);
}

.kaavestan-feature-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -76px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(46, 95, 91, 0.14);
  transform: rotate(45deg);
  pointer-events: none;
}

.kaavestan-feature-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.kaavestan-feature-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--deep-teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kaavestan-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea9239;
  box-shadow: 0 0 0 5px rgba(234, 146, 57, 0.14);
}

.kaavestan-feature-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.kaavestan-feature-badges span {
  padding: 6px 10px;
  border: 1px solid rgba(46, 95, 91, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.72);
  color: var(--deep-teal);
  font-size: 0.72rem;
  font-weight: 700;
}

.kaavestan-feature-card-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 660px;
  padding: 56px 0 42px;
}

.kaavestan-feature-date {
  margin: 0 0 14px;
  color: var(--deep-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.kaavestan-feature-card h3 {
  max-width: 620px;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.kaavestan-feature-card-copy > p:last-child {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.kaavestan-feature-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--deep-teal);
  font-size: 0.92rem;
  font-weight: 800;
}

[dir="rtl"] .kaavestan-all-link [aria-hidden="true"],
[dir="rtl"] .kaavestan-feature-cta [aria-hidden="true"] {
  transform: rotate(180deg);
}

[dir="rtl"] .kaavestan-all-link:hover [aria-hidden="true"],
[dir="rtl"] .kaavestan-feature-cta:hover [aria-hidden="true"] {
  transform: translate(-4px, -2px) rotate(180deg);
}

@media (max-width: 1040px) {
  .kaavestan-feature-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .kaavestan-feature-intro {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  .kaavestan-feature {
    padding: 56px 0;
  }

  .kaavestan-feature-layout {
    gap: 36px;
  }

  .kaavestan-feature-intro h2 {
    font-size: 2.5rem;
  }

  .kaavestan-feature-card {
    min-height: 440px;
    padding: 26px 22px;
  }

  .kaavestan-feature-topline {
    display: grid;
    gap: 20px;
  }

  .kaavestan-feature-badges {
    justify-content: flex-start;
  }

  .kaavestan-feature-card-copy {
    padding: 42px 0 34px;
  }

  .kaavestan-feature-card h3 {
    font-size: 2.32rem;
  }

  .kaavestan-feature-card::after {
    opacity: 0.65;
  }
}
