:root {
  color-scheme: dark;
  --night: #10191c;
  --night-deep: #0c1417;
  --slate: #19282e;
  --paper: #edeae1;
  --ink: #162629;
  --white: #f2f2eb;
  --mist: #d0dedb;
  --mint: #bef7dc;
  --mint-deep: #235948;
  --rule: #bfd9d331;
  --paper-rule: #233f402e;
  --gutter: clamp(24px, 4.85vw, 90px);
  --head: 66px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", Arial, sans-serif;
}

:root[lang="fa"] {
  --display: "Vazirmatn", Tahoma, sans-serif;
  --body: "Vazirmatn", Tahoma, sans-serif;
  --portrait-display: "Noto Naskh Arabic", "Vazirmatn", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 14px); }
body { margin: 0; color: var(--white); background: var(--night); font: 400 1rem/1.65 var(--body); }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:is(a, button, input):focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.shell { width: min(1450px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: fixed; z-index: 30; inset: 8px auto auto 10px; padding: 9px 13px; transform: translateY(-185%); background: var(--mint); color: var(--night); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.masthead {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  background: #101a1cec;
  border-block-end: 1px solid var(--rule);
  backdrop-filter: blur(16px);
}
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--head);
  gap: 20px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 13px; font-weight: 620; }
.monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 39px;
  flex: 0 0 auto;
  border: 1px solid #a9ddc9a6;
  color: var(--mint);
  font: 700 23px/.9 "Barlow Condensed", Arial, sans-serif;
  letter-spacing: -.06em;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 76% 100%, 0 100%);
  background: linear-gradient(145deg, #74b6a520, #13313079);
}
.primary-nav { display: flex; align-items: center; gap: clamp(23px, 3.35vw, 56px); }
.primary-nav a {
  min-height: 41px;
  display: flex;
  align-items: center;
  position: relative;
  color: #dde7df;
  font-size: 13px;
  font-weight: 570;
  white-space: nowrap;
  transition: color .23s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 6px;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transition: transform .23s ease;
}
.primary-nav a:hover { color: var(--mint); }
.primary-nav a:hover::after { transform: scaleX(1); }
.masthead-actions { justify-self: end; display: flex; gap: 7px; align-items: center; }
.language { display: flex; border: 1px solid var(--rule); }
.language a { display: grid; place-items: center; min-width: 38px; min-height: 32px; color: #d6e4dc; }
.language [lang="en"] { font: 650 11px/1 "Instrument Sans", Arial, sans-serif; letter-spacing: .08em; }
.language [lang="fa"] { font: 550 12px/1 "Vazirmatn", Tahoma, sans-serif; }
.language [aria-current] { color: var(--night); background: var(--mint); }
.language a:hover:not([aria-current]) { background: #7db4a939; }
.menu-toggle { display: none; width: 36px; height: 34px; border: 1px solid var(--rule); background: none; place-content: center; gap: 5px; }
.menu-toggle span { width: 15px; height: 1px; background: var(--white); transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.hero {
  overflow: clip;
  background:
    radial-gradient(ellipse at 50% 37%, #385052 0%, #203537 29%, #152227 54%, #10191c 81%);
}
.hero-stage {
  --hero-height: clamp(660px, calc(100svh - var(--head)), 918px);
  --portrait-x: 0px;
  --portrait-y: 0px;
  position: relative;
  isolation: isolate;
  min-height: var(--hero-height);
  overflow: clip;
}
.hero-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, #8baea516 0 1px, transparent 1px 69px),
    repeating-linear-gradient(0deg, #8baea516 0 1px, transparent 1px 69px);
  mask-image: radial-gradient(ellipse 68% 72% at center, #000 10%, #000a 50%, #0000 99%);
}
.portrait-draft { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-plate { position: absolute; inset: clamp(14px, 3vh, 34px) calc(var(--gutter) * .52); border: 1px solid #c5e0d021; pointer-events: none; }
.hero-plate i, .model-corners i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid #c7edd8ab;
}
.hero-plate i:nth-child(1), .model-corners i:nth-child(1) { inset: -1px auto auto -1px; border-top-width: 1px; border-left-width: 1px; }
.hero-plate i:nth-child(2), .model-corners i:nth-child(2) { inset: -1px -1px auto auto; border-top-width: 1px; border-right-width: 1px; }
.hero-plate i:nth-child(3), .model-corners i:nth-child(3) { inset: auto -1px -1px auto; border-bottom-width: 1px; border-right-width: 1px; }
.hero-plate i:nth-child(4), .model-corners i:nth-child(4) { inset: auto auto -1px -1px; border-bottom-width: 1px; border-left-width: 1px; }
.hero-portrait {
  width: min(53.5vw, 760px);
  display: block;
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -7.8%;
  transform: translate3d(calc(-50% + var(--portrait-x)), var(--portrait-y), 0);
  transition: opacity .45s ease, transform .37s cubic-bezier(.22,.69,.27,1);
  mask-image: linear-gradient(0deg, #0000 4%, #000 31%);
  pointer-events: none;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  filter: saturate(.72) contrast(1.045);
  clip-path: polygon(
    23.2% 100%, 23.4% 90.6%, 22.6% 95.8%, 21.4% 97%, 18.7% 96.2%, 15.7% 94.8%,
    14.1% 91.2%, 14.5% 86.4%, 14.3% 85%, 15.9% 78.9%, 18.2% 67.5%, 20.1% 59.2%,
    21.7% 50.6%, 22.6% 44.6%, 23.5% 40.1%, 24.5% 37.3%, 26.2% 36.5%, 30% 35.3%,
    36.4% 33.1%, 37.6% 31.6%, 36.5% 29.2%, 35.1% 27.4%, 34% 25.9%, 33.1% 23.8%,
    33.4% 21.8%, 33.1% 19.5%, 33.6% 17.0%, 34.7% 15.1%, 36.5% 13.4%, 39% 12.3%,
    41.8% 11.3%, 44.4% 10.7%, 47.2% 10.8%, 49.4% 11.3%, 51% 12.6%, 52.4% 14.4%,
    53.1% 16.5%, 53.4% 20.3%, 55.1% 21.8%, 54.8% 24.3%, 54.1% 26.2%, 53.4% 30.1%,
    56.6% 31.8%, 60.5% 33.1%, 66.2% 34.4%, 69.6% 35.8%, 71.4% 37.8%, 72.8% 41.4%,
    74.3% 47.4%, 75.5% 55.1%, 76.3% 61.8%, 76.2% 66.2%, 75.4% 70.1%, 73.1% 75.9%,
    70.9% 80.4%, 67.0% 86%, 64.9% 89.2%, 63.1% 94.1%, 62% 100%
  );
}
.hero-stage[data-plan] .hero-portrait { opacity: .53; }
.hero-inset { min-height: var(--hero-height); position: relative; z-index: 1; pointer-events: none; }
.hero-topic { position: absolute; inset-block-start: clamp(32px, 6vh, 77px); inset-inline-start: 0; }
.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 21px; flex: 0 0 21px; height: 1px; background: currentColor; }
.hero-name {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 45.5%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--white);
  font: 700 clamp(104px, 15.6vw, 243px)/.75 var(--display);
  letter-spacing: -.041em;
  text-transform: uppercase;
  text-shadow: 0 4px 26px #06121870;
}
.name-start { position: relative; }
.honorific {
  position: absolute;
  inset-inline-start: .04em;
  inset-block-end: calc(100% + .37em);
  font: 650 clamp(16px, 2.3vw, 33px)/1 var(--body);
  letter-spacing: .045em;
}
.name-end { color: var(--mint); }
.hero-bottom {
  position: absolute;
  inset-inline: 0;
  inset-block-end: clamp(28px, 5.75vh, 65px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.hero-actions { display: inline-flex; align-items: center; gap: 10px; }
.hero-bottom :is(a, button) { pointer-events: auto; }
.primary-action, .draft-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  gap: 13px;
  border: 1px solid transparent;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 675;
  line-height: 1.35;
  transition: background .24s ease, color .24s ease;
}
.primary-action { background: var(--mint); color: #142623; }
.primary-action:hover { background: #e1fff0; }
.draft-toggle { border-color: #c0ddd184; background: #152326a3; color: var(--white); }
.draft-toggle:hover { background: #2d4947; }
.draft-toggle[aria-pressed="true"] { background: #d5f6e929; border-color: var(--mint); color: var(--mint); }
.hero-role { max-width: 270px; color: #e0ece4; font-size: 15px; line-height: 1.5; text-align: end; }
.hero-role strong { color: #fafff8; }

.arrow { --angle: 0deg; position: relative; display: inline-block; width: 16px; height: 16px; flex-shrink: 0; }
.arrow::before, .arrow::after { position: absolute; inset: 50% auto auto 50%; content: ""; }
.arrow::before { width: 13px; height: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(var(--angle)); }
.arrow::after {
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(3px) rotate(45deg);
}
.arrow-down { --angle: 90deg; }
.arrow-up { --angle: -90deg; }
.arrow-external { --angle: -45deg; }
:root[dir="rtl"] .arrow-external { --angle: -135deg; }

.journey { background: #18262a; padding-block: clamp(65px, 8.1vw, 140px); border-block-start: 1px solid var(--rule); }
.story-intro { display: flex; justify-content: space-between; align-items: end; gap: 25px; padding-block-end: clamp(32px, 4.1vw, 60px); }
.display { font: 700 clamp(70px, 8.2vw, 127px)/.86 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.story-intro .display { margin-block-start: 14px; }
.story-lead { color: var(--mist); max-width: 360px; font-size: 16px; line-height: 1.67; padding-block-end: 3px; }
.story-track { position: relative; --scroll-step: clamp(442px, 66svh, 740px); }
.model-bookmark { position: absolute; inset-block-start: 0; }
.story-track[data-scroll] .model-bookmark { inset-block-start: calc(var(--scroll-step) + 2px); }
.story-track[data-scroll]::after { content: ""; display: block; block-size: calc(2 * var(--scroll-step)); pointer-events: none; }
.story-track[data-scroll] .story-pinned { position: sticky; inset-block-start: calc(var(--head) + 12px); }
.story-articles { display: grid; gap: 24px; }
.story-chapter {
  min-width: 0;
  min-height: 305px;
  padding: clamp(24px, 3.2vw, 47px);
  border: 1px solid var(--rule);
  background: #132125;
}
.story-fallback { position: relative; overflow: hidden; max-width: 650px; aspect-ratio: 2.13; margin-block-end: 18px; }
.story-fallback img { width: 100%; height: 100%; object-fit: cover; }
.story-fallback figcaption { position: absolute; inset-inline-end: 9px; inset-block-end: 9px; background: #122126e0; padding: 3px 6px; font-size: 10px; color: var(--white); }
.chapter-location { display: flex; align-items: center; gap: 9px; color: var(--mist); font-size: 12px; line-height: 1.4; }
.chapter-location span { color: var(--mint); border: 1px solid #c0f9dc71; padding: 3px 6px; font-size: 10px; font-weight: 680; }
.story-chapter h3 { margin-block: 12px 9px; font: 700 clamp(48px, 5.6vw, 88px)/.88 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.chapter-category { color: var(--mint); font-size: 12px; font-weight: 680; line-height: 1.45; }
.chapter-description { max-width: 485px; margin-block-start: 8px; color: #e1ece6; font-size: 15px; line-height: 1.66; text-wrap: pretty; }

.story-track[data-story] .story-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(325px, .65fr);
  border: 1px solid #a9d5d36a;
  background: #132125;
}
.story-track[data-story] .story-articles { display: grid; min-width: 0; border-inline-start: 1px solid var(--rule); }
.story-track[data-story] .story-chapter { padding: clamp(22px, 3.05vw, 47px); align-self: center; border: 0; min-height: 0; background: transparent; }
.story-track[data-story] .story-fallback { display: none; }
.model-field {
  min-width: 0;
  position: relative;
  min-height: clamp(385px, calc(100svh - var(--head) - 170px), 660px);
  isolation: isolate;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, #96c5c619 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, #96c5c619 0 1px, transparent 1px 40px),
    radial-gradient(ellipse at 51% 47%, #304d54 0%, #23383e 39%, #172931 83%);
}
.model-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-stage[data-phase="2"] .model-canvas { cursor: crosshair; }
.model-corners { position: absolute; inset: 14px; border: 1px solid #b5d7d62f; pointer-events: none; }
.model-field figcaption {
  position: absolute;
  inset: auto 22px 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 7px;
  color: #d7e7e1;
  font-size: 11px;
  line-height: 1.4;
  pointer-events: none;
}
.story-controls { background: #122125; border-inline: 1px solid #a9d5d36a; border-block-end: 1px solid #a9d5d36a; }
.phase-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phase-button {
  min-height: 55px;
  background: #172b30;
  border: 0;
  border-block-end: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px clamp(9px, 1.55vw, 22px);
  color: #e3f1eb;
  text-align: start;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  transition: background .22s ease, color .22s ease;
}
.phase-button + .phase-button { border-inline-start: 1px solid var(--rule); }
.phase-button [aria-hidden] { color: var(--mint); font-size: 10px; font-weight: 670; }
.phase-button:hover { background: #24424a; }
.phase-button[aria-current] { color: #eafff2; background: #294951; }
.phase-button[aria-current]::after { content: ""; width: 5px; height: 5px; margin-inline-start: auto; background: var(--mint); flex: 0 0 5px; }
.scrub { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 4px 15px; gap: 13px; }
.scrub input { width: 100%; min-width: 0; height: 27px; accent-color: var(--mint); cursor: ew-resize; }
.story-track[data-scroll] .manual-hint, .story-track:not([data-scroll]) .scroll-hint { display: none; }
.scrub p { color: #d4e6df; font-size: 10px; line-height: 1.35; }
.city-index { margin-block-start: 15px; padding-block-start: 12px; border-block-start: 1px solid var(--rule); }
.city-index h4 { font-size: 12px; line-height: 1.4; font-weight: 680; color: #e4f7ed; }
.city-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-block: 8px 9px; }
.city-button {
  min-height: 35px;
  padding: 4px 6px;
  border: 1px solid #afd7d268;
  background: #14262a;
  color: #eff9f3;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 590;
  transition: background .2s ease, color .2s ease;
}
.city-button:hover { background: #2b4850; }
.city-button[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #132c26; }
.city-panel { color: #dfede5; font-size: 13px; line-height: 1.55; }
.city-country { color: var(--mint); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 680; margin-block-end: 3px; }

.profile, .contact { background: var(--paper); color: var(--ink); }
.profile :is(a, button):focus-visible, .contact a:focus-visible { outline-color: var(--mint-deep); }
.profile { padding-block: clamp(63px, 8.8vw, 138px); }
.profile-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(32px, 7.3vw, 115px); align-items: center; }
.profile .kicker, .contact .kicker { color: var(--mint-deep); }
.profile .display { margin-block: 15px 20px; font-size: clamp(57px, 6.75vw, 104px); }
.body-lead { max-width: 562px; color: #2b4342; font-size: clamp(16px, 1.43vw, 21px); line-height: 1.54; font-weight: 530; }
.body-text { max-width: 575px; color: #405350; font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.profile .body-text { margin-block-start: 12px; }
.profile-photo { position: relative; overflow: hidden; aspect-ratio: 1.35; background: #a0a29a; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 31%; filter: saturate(.83); }
.profile-photo::after { content: ""; position: absolute; inset: 13px; border: 1px solid #f8fff773; pointer-events: none; }
.contact { padding-block: clamp(57px, 7.2vw, 112px); border-block-start: 1px solid var(--paper-rule); }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(237px, .39fr); align-items: end; gap: 26px; }
.contact .display { margin-block: 11px 12px; font-size: clamp(55px, 7vw, 102px); }
.contact-link { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 10px 16px; background: #193b37; color: #f0fff5; font-size: 14px; line-height: 1.43; transition: background .22s ease; }
.contact-link:hover { background: #2c5a4f; }
.contact-link .arrow { color: var(--mint); }
.email-address { display: block; margin-block-start: 3px; color: #d8ebe1; font-size: 11px; }
.footer { border-block-start: 1px solid var(--rule); background: #101a1d; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 15px; }
.back-top { display: flex; align-items: center; gap: 8px; min-height: 38px; color: var(--mist); font-size: 12px; }
.back-top .arrow, .back-top:hover { color: var(--mint); }

:root[lang="fa"] :is(.kicker, .display, .chapter-location, .story-chapter h3, .city-country) { letter-spacing: 0; }
:root[lang="fa"] .hero-name { font-family: var(--portrait-display); font-size: clamp(108px, 15.8vw, 225px); line-height: .99; letter-spacing: 0; }
:root[lang="fa"] .honorific { font-size: clamp(15px, 2.25vw, 30px); inset-block-end: calc(100% + .35em); letter-spacing: 0; }
:root[lang="fa"] .hero-topic { font-size: 13px; }
:root[lang="fa"] .display { font-size: clamp(51px, 6.7vw, 101px); line-height: 1.15; }
:root[lang="fa"] .story-chapter h3 { font-size: clamp(35px, 4.15vw, 70px); line-height: 1.14; }
:root[lang="fa"] :is(.body-lead, .body-text, .chapter-description, .story-lead) { line-height: 1.89; }

@media (max-width: 1090px) {
  .hero-name { font-size: clamp(100px, 15.55vw, 182px); }
  .hero-portrait { width: min(61vw, 720px); }
  .story-track[data-story] .story-stage { grid-template-columns: minmax(0, 1.13fr) minmax(280px, .87fr); }
  .story-track[data-story] .story-chapter { padding: 26px; }
}

@media (max-width: 760px) {
  :root { --head: 58px; --gutter: 18px; }
  .masthead-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; position: relative; }
  .monogram { width: 35px; height: 34px; font-size: 21px; }
  .language a { min-width: 32px; min-height: 29px; }
  .menu-toggle { display: grid; }
  .primary-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .primary-nav a { font-size: 12px; min-height: 39px; }
  .masthead[data-nav-ready] .primary-nav { display: none; position: absolute; width: auto; inset: 100% calc(-1 * var(--gutter)) auto; padding: 8px var(--gutter) 13px; background: #16272a; border-block: 1px solid var(--rule); box-shadow: 0 10px 22px #050c0c74; }
  .masthead[data-nav-ready] .primary-nav.is-open { display: grid; }
  .primary-nav a { width: fit-content; }

  .hero-stage { --hero-height: clamp(570px, calc(94svh - var(--head)), 805px); }
  .hero-plate { inset: 12px 8px; }
  .hero-topic, :root[lang="fa"] .hero-topic { inset-block-start: 29px; font-size: 10px; }
  .hero-topic::before { flex-basis: 15px; width: 15px; }
  .hero-name { inset-block-start: 83px; justify-content: start; gap: .13em; font-size: clamp(64px, 16.5vw, 114px); }
  .honorific { position: static; display: block; margin-block-end: 5px; font-size: 11px; }
  .name-end { align-self: end; }
  .hero-portrait { width: min(114vw, 547px); bottom: 0; mask-image: linear-gradient(0deg, #0000 3%, #000 34%); }
  .hero-bottom { inset-block-end: 25px; flex-direction: column; align-items: start; gap: 10px; }
  .hero-role { order: -1; text-align: start; font-size: 13px; }
  .hero-actions { gap: 7px; }
  .primary-action, .draft-toggle { min-height: 42px; padding-inline: 9px; font-size: 11px; gap: 7px; }
  :root[lang="fa"] .hero-name { font-size: clamp(58px, 15.8vw, 106px); gap: .19em; inset-block-start: 64px; }
  :root[lang="fa"] .honorific { font-size: 12px; margin-block-end: 0; }

  .journey, .profile, .contact { padding-block: 56px; }
  .story-intro { flex-direction: column; align-items: start; gap: 13px; padding-block-end: 27px; }
  .display { font-size: clamp(53px, 13.2vw, 86px); }
  .story-intro .display { margin-block-start: 9px; }
  .story-lead { font-size: 14px; line-height: 1.6; }
  .story-track[data-story] .story-stage { grid-template-columns: 1fr; }
  .story-track[data-story] .story-articles { border-inline-start: 0; border-block-start: 1px solid var(--rule); }
  .story-track[data-story] .story-chapter { padding: 21px 15px; min-height: 190px; align-self: start; }
  .model-field { min-height: clamp(226px, 59vw, 360px); }
  .model-corners { inset: 10px; }
  .model-field figcaption { inset: auto 13px 12px; font-size: 9px; }
  .story-chapter h3 { font-size: clamp(44px, 11.1vw, 66px); }
  .chapter-description { font-size: 13px; }
  .phase-button { min-height: 49px; gap: 4px; padding-inline: 6px; font-size: 11px; }
  .phase-button [aria-hidden] { font-size: 9px; }
  .phase-button[aria-current]::after { width: 3px; height: 3px; flex-basis: 3px; }
  .scrub { gap: 5px; padding: 4px 8px; grid-template-columns: 1fr; align-items: start; }
  .scrub p { font-size: 9px; padding-inline: 3px; }
  .city-index { margin-block-start: 12px; }
  .city-buttons { margin-block: 7px; }
  .city-panel { font-size: 12px; }

  .profile-grid, .contact-grid { grid-template-columns: 1fr; gap: 23px; }
  .profile .display, .contact .display { margin-block: 11px 13px; font-size: clamp(46px, 11.5vw, 79px); }
  .profile-photo { aspect-ratio: 1.45; }
  .contact-link { max-width: 370px; }
  :root[lang="fa"] .display { font-size: clamp(39px, 10.3vw, 66px); }
  :root[lang="fa"] .story-chapter h3 { font-size: clamp(34px, 8.6vw, 53px); }
}
@media (max-width: 350px) {
  :root { --gutter: 14px; }
  .hero-name { font-size: 58px; }
  :root[lang="fa"] .hero-name { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.inline-action {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border-block-end: 1px solid #a0e5c76f;
  color: var(--mint);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  transition: color .2s ease, border-color .2s ease;
}
.inline-action:hover { color: #fffef5; border-color: currentColor; }
.story-lead .inline-action { margin-block-start: 10px; }
.model-field[data-inspecting] {
  background:
    repeating-linear-gradient(0deg, #c4d4c817 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, #c4d4c817 0 1px, transparent 1px 40px),
    radial-gradient(ellipse at 48% 39%, #4a6868 0%, #304950 35%, #172b34 81%);
}
.model-field[data-inspecting] .model-canvas { cursor: grab; touch-action: pan-y; }
.model-field[data-dragging] .model-canvas { cursor: grabbing; }
.model-tools {
  position: absolute;
  inset: 23px 23px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.model-turn { display: flex; gap: 4px; }
.model-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 5px 11px;
  background: #142a30ed;
  border: 1px solid #b7ebd57d;
  color: #e9fcf4;
  line-height: 1;
  font-size: 20px;
  pointer-events: auto;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.model-button:hover { background: #365b60; border-color: #b7ebd5; }
.model-button[aria-pressed="true"] { background: var(--mint); color: #162e2a; border-color: var(--mint); }
.model-layers { font-size: 12px; line-height: 1.4; font-weight: 680; }
.model-field figcaption [data-model-label] { max-width: 64%; }
.model-field figcaption #model-hint { text-align: end; }

.emiral {
  padding-block: clamp(45px, 6vw, 88px);
  background: #e0e9df;
  color: var(--ink);
  border-block-start: 1px solid var(--paper-rule);
}
.emiral-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(23px, 6vw, 88px);
}
.emiral .display {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(56px, 7.7vw, 111px);
  line-height: .9;
  margin-block-end: 15px;
}
.emiral-links { border-block-start: 1px solid #38565050; }
.emiral-links a {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-block-end: 1px solid #38565050;
  transition: background .2s ease;
}
.emiral-links a:hover { background: #b4d2c46b; }
.emiral-links a:focus-visible { outline-color: var(--mint-deep); }
.emiral-links strong { display: block; width: fit-content; font-size: clamp(22px, 2.7vw, 38px); line-height: 1.17; letter-spacing: -.055em; }
.emiral-links a span span { display: block; margin-block-start: 3px; color: #36534d; font-size: 13px; }
.emiral-links .arrow { color: var(--mint-deep); }
.emiral-links a > .arrow { margin-inline-end: 3px; }

.insights, .editorial { background: #172529; }
.insights { padding-block: clamp(66px, 8vw, 124px); }
.insights-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px 25px;
  margin-block-end: clamp(23px, 3.3vw, 47px);
}
.insights-intro p, .editorial-intro p {
  max-width: 510px;
  margin-block-start: 14px;
  color: var(--mist);
  font-size: clamp(14px, 1.37vw, 17px);
  line-height: 1.65;
}
.insights-archive { flex: 0 0 auto; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.45vw, 22px); }
.insight-card {
  min-width: 0;
  background: #142023;
  border: 1px solid var(--rule);
  transition: border-color .22s ease, background .22s ease;
}
.insight-card:hover { background: #1d3033; border-color: #93b4a888; }
.insight-card > a { display: flex; height: 100%; flex-direction: column; }
.insight-media { overflow: hidden; aspect-ratio: 1.87; background: #304343; }
.insight-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform .42s cubic-bezier(.2,.7,.19,1), filter .3s ease; }
.insight-card a:hover img, .insight-card a:focus-visible img { transform: scale(1.045); filter: saturate(.95); }
.insight-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: clamp(15px, 2vw, 28px);
}
.insight-kind { color: var(--mint); font-size: 12px; letter-spacing: .055em; font-weight: 670; }
.insight-card h3 {
  margin-block: 6px 8px;
  color: var(--white);
  font: 650 clamp(28px, 3.12vw, 46px)/.99 var(--display);
  letter-spacing: -.017em;
  text-wrap: balance;
}
.insight-summary { margin-block-end: 17px; color: var(--mist); font-size: clamp(13px, 1.05vw, 15px); line-height: 1.59; }
.insight-read { display: inline-flex; align-items: center; gap: 7px; margin-block-start: auto; color: var(--mint); font-size: 12px; font-weight: 630; }
.insight-read .arrow { transform: scale(.78) rotate(var(--angle)); }

.editorial { min-height: 75vh; padding-block: clamp(58px, 7vw, 115px); }
.editorial-intro { margin-block-end: clamp(45px, 6.5vw, 88px); }
.editorial-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-block-start: 21px; }
.editorial-nav a {
  display: inline-grid;
  min-height: 42px;
  min-width: 91px;
  place-items: center;
  padding-inline: 13px;
  border: 1px solid #92c6b480;
  color: var(--mint);
  font-size: 13px;
  font-weight: 620;
}
.editorial-nav a:hover { background: #31504d; }
.editorial-section + .editorial-section { margin-block-start: clamp(48px, 6vw, 95px); }
.editorial-section h2, .article-related h2 {
  margin-block-end: 15px;
  font: 650 clamp(34px, 4.6vw, 73px)/1.07 var(--display);
  letter-spacing: -.02em;
}
.article-heading { max-width: 900px; margin-inline: auto; margin-block-end: clamp(22px, 4vw, 48px); }
.article-back { margin-block-end: clamp(15px, 2vw, 30px); }
.arrow-back { --angle: 180deg; }
:root[dir="rtl"] .arrow-back { --angle: 0deg; }
.article-heading h1 {
  margin-block: 12px 16px;
  font: 650 clamp(46px, 7vw, 110px)/.96 var(--display);
  letter-spacing: -.019em;
  text-wrap: balance;
}
.article-summary { color: var(--mist); font-size: clamp(16px, 1.75vw, 23px); line-height: 1.55; max-width: 44ch; }
.article-figure { max-width: 1120px; margin-inline: auto; margin-block-end: clamp(26px, 4.9vw, 66px); }
.article-figure img { width: 100%; aspect-ratio: 2.45; object-fit: cover; border: 1px solid var(--rule); }
.article-figure figcaption { padding-block-start: 7px; color: #bdccc7; font-size: 11px; }
.article-copy { max-width: 720px; margin-inline: auto; color: #e0ebe4; font-size: clamp(16px, 1.55vw, 20px); line-height: 1.74; overflow-wrap: break-word; }
.article-copy p { margin-block-end: 1.08em; }
.article-copy h2 { margin-block: 1.6em .55em; color: var(--white); font-size: clamp(23px, 3vw, 38px); line-height: 1.24; }
.article-copy h2:first-child { margin-block-start: 0; }
.article-source { margin-block-start: 15px; }
.article-related { margin-block-start: clamp(48px, 7vw, 112px); padding-block-start: 24px; border-block-start: 1px solid var(--rule); }
.primary-nav a[aria-current] { color: var(--mint); }
:root[lang="fa"] :is(.insight-kind, .insight-card h3, .editorial-section h2, .article-heading h1, .article-related h2) { letter-spacing: 0; }
:root[lang="fa"] .insight-card h3 { font-size: clamp(19px, 2.2vw, 32px); line-height: 1.43; }
:root[lang="fa"] .article-heading h1 { font-size: clamp(37px, 6.2vw, 92px); line-height: 1.28; }
:root[lang="fa"] :is(.insight-summary, .article-summary, .article-copy, .insights-intro p, .editorial-intro p) { line-height: 1.88; }

@media (max-width: 975px) {
  .primary-nav { gap: clamp(12px, 2vw, 28px); }
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .model-field[data-inspecting] { min-height: clamp(285px, 72vw, 435px); }
  .model-tools { inset: 16px 15px auto; }
  .model-layers { font-size: 11px; }
  .emiral-layout { grid-template-columns: 1fr; }
  .emiral-links a { min-height: 66px; padding-inline: 0; }
  .insights-intro { flex-direction: column; align-items: start; }
  .insights-intro p { margin-block-start: 8px; }
  .article-figure img { aspect-ratio: 1.74; }
}
@media (max-width: 630px) {
  .insight-grid { grid-template-columns: 1fr; }
}
