@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;
}

: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;
  scroll-snap-type: y proximity;
}

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: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.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-snap-align: start;
  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: 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;
}

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);
}

.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;
}

.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);
  scroll-snap-align: end;
}

.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 {
  scroll-snap-type: none;
}

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

.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;
}

[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) {
  .nav-shell {
    grid-template-columns: auto auto;
    gap: 16px 22px;
    padding: 14px 0;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
    order: 3;
  }

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

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

  .hero-grid,
  .identity-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;
  }

  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: 66px;
  }

  html {
    scroll-snap-type: y proximity;
  }

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

  .site-header {
    position: sticky;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 1.22rem;
  }

  .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 - 100px);
  }

  .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;
  }

  .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);
  }

  .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;
  }
}
