/* ==========================================================================
   home.css — Homepage CSS entry bundle (generated)
   Single render-blocking stylesheet for /. Do not edit by hand.
   Regenerate: node scripts/build-home-css.mjs
   Sources (12): variables.css, yekan-bakh.css, base.css, cursor.css, loader.css, scrollbar.css, nav.css, sections.css, enhancements.css, print.css, modal.css, mobile-type.css
   Excluded from homepage: case-study.css, subpages.css (internal pages only)
   ========================================================================== */


/* --- variables.css --- */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-surface: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --accent: #d4af37;
  --accent-glow: rgba(212, 175, 55, 0.25);
  --accent-dim: rgba(212, 175, 55, 0.6);

  --font-en: "Inter", "Satoshi", system-ui, sans-serif;
  --font-en-display: "Inter", system-ui, sans-serif;
  --font-fa: "Yekan Bakh", "Tahoma", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.3s;
  --duration-normal: 0.6s;
  --duration-slow: 1.2s;

  --header-height: 72px;
  --cursor-pointer-w: 24px;
  --cursor-pointer-h: 24px;
  --cursor-hotspot-x: 12%;
  --cursor-hotspot-y: 10%;
  --cursor-ring: 40px;
  --scrollbar-width: 3px;

  --section-padding: clamp(4rem, 12vw, 10rem);
  --container-max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

[dir="ltr"] {
  --font-body: var(--font-en);
}

/* --- yekan-bakh.css --- */
@font-face {
  font-family: "Yekan Bakh";
  src: url("/assets/fonts/yekan-bakh/yekan-bakh-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("/assets/fonts/yekan-bakh/yekan-bakh-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("/assets/fonts/yekan-bakh/yekan-bakh-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yekan Bakh";
  src: url("/assets/fonts/yekan-bakh/yekan-bakh-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- base.css --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: url("/assets/images/bg.png");
  background-repeat: repeat;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 899px) {
  html,
  body,
  #main {
    overflow-anchor: none;
  }
}

html.is-viewport-locked {
  overflow: hidden;
  height: 100%;
}

html.is-viewport-locked body {
  overflow: hidden;
  min-height: 100%;
}

@media (max-width: 899px) {
  html.is-viewport-locked body {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
  }
}

body.is-loading #main,
body.is-loading .footer,
body.is-loading .scroll-progress {
  opacity: 0;
  visibility: hidden;
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: none;
  pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
  button,
  .menu-toggle,
  .lang-switcher__btn {
    cursor: pointer;
  }
}

ul,
ol {
  list-style: none;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--gutter);
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: 4px;
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: 1rem;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-label {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}

@media (min-width: 900px) {
  [dir="rtl"] .section-label {
    font-family: var(--font-fa);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.35;
  }
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-i18n] {
  transition: opacity 0.4s var(--ease-out-expo);
}

body.lang-transitioning [data-i18n] {
  opacity: 0;
}

::selection {
  background: var(--accent-glow);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* --- cursor.css --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10300;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

body.is-loading .cursor {
  opacity: 0;
}

.cursor__pointer {
  position: absolute;
  width: var(--cursor-pointer-w);
  height: var(--cursor-pointer-h);
  color: #ffffff;
  transform: translate(calc(-1 * var(--cursor-hotspot-x)), calc(-1 * var(--cursor-hotspot-y)));
  transition:
    transform 0.35s var(--ease-out-expo),
    color 0.3s,
    opacity 0.3s;
  will-change: transform, left, top;
}

.cursor__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cursor__ring {
  position: absolute;
  width: var(--cursor-ring);
  height: var(--cursor-ring);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s var(--ease-out-expo),
    height 0.4s var(--ease-out-expo),
    border-color 0.3s,
    opacity 0.3s,
    border-radius 0.35s var(--ease-out-expo);
}

.cursor__follow {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(15px, 15px) scale(0.88);
  transition:
    opacity 0.25s var(--ease-out-expo),
    transform 0.25s var(--ease-out-expo);
  will-change: transform, left, top;
}

.cursor.is-text .cursor__follow {
  opacity: 1;
  transform: translate(15px, 15px) scale(1);
}

.cursor.is-hover .cursor__pointer {
  transform:
    translate(calc(-1 * var(--cursor-hotspot-x)), calc(-1 * var(--cursor-hotspot-y)))
    scale(0.85);
}

.cursor.is-hover .cursor__ring {
  width: 56px;
  height: 56px;
  border-color: var(--accent-dim);
}

.cursor.is-text .cursor__ring {
  width: 72px;
  height: 72px;
  border-color: rgba(212, 175, 55, 0.45);
}

.cursor.is-drag .cursor__ring {
  width: 50px;
  height: 50px;
  border-color: var(--accent);
  opacity: 0.8;
}

.cursor.is-hidden {
  opacity: 0;
}

body.is-modal-open .cursor {
  opacity: 0;
  visibility: hidden;
}

@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }

  body {
    cursor: auto;
  }

  button,
  a,
  .menu-toggle {
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* --- loader.css --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10200;
  direction: ltr;
  background: var(--bg-primary);
  opacity: 1;
  will-change: opacity;
}

.loader.is-finishing {
  pointer-events: none;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: loaderProgress 5s var(--ease-in-out) forwards;
}

.loader__name {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1;
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(0.8rem, 3.6vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
  transform: translate(-50%, -50%);
  transform-origin: center center;
  padding-inline: var(--gutter);
}

.loader__name.is-frozen .loader__char {
  transition: none;
}

.loader__chars {
  display: inline;
  white-space: nowrap;
}

.loader__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition:
    opacity 0.22s var(--ease-out-expo),
    transform 0.22s var(--ease-out-expo);
}

.loader__char.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.loader__cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-inline-start: 0.12em;
  background: var(--accent);
  vertical-align: -0.1em;
  animation: loaderCursorBlink 0.75s step-end infinite;
}

@keyframes loaderCursorBlink {
  50% { opacity: 0; }
}

@keyframes loaderProgress {
  to { width: 100%; }
}

body.reduced-motion .loader {
  transition: opacity 0.45s var(--ease-out-expo), visibility 0.45s;
}

body.reduced-motion .loader__char {
  opacity: 1;
  transform: none;
  transition: none;
}

body.reduced-motion .loader__cursor {
  display: none;
}

/* --- scrollbar.css --- */
::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-dim), var(--accent));
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-primary);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  z-index: 9998;
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 12px var(--accent-glow);
}

[dir="rtl"] .scroll-progress {
  transform-origin: right;
  left: auto;
  right: 0;
}

@media (max-width: 899px) {
  * {
    scrollbar-width: none;
  }

  *::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .scroll-progress {
    display: none;
  }
}

/* --- nav.css --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  transition:
    opacity 0.6s var(--ease-out-expo),
    visibility 0.6s,
    transform 0.6s var(--ease-out-expo),
    background 0.4s,
    backdrop-filter 0.4s;
  pointer-events: auto;
}

body.is-loading .header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(-1 * var(--header-height)));
}

@media (min-width: 900px) {
  .header:not(.is-header-visible) {
    transform: translateY(calc(-1 * var(--header-height)));
    pointer-events: none;
  }

  .header.is-header-visible {
    transform: translateY(0);
    pointer-events: auto;
  }
}

.header.is-scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.header__brand {
  display: none;
  align-items: center;
  gap: 0.625rem;
  flex: 0 0 auto;
  min-width: 0;
}

.header.is-scrolled .header__brand {
  display: flex;
}

.header__logo {
  flex-shrink: 0;
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-dim);
  box-shadow: 0 0 0 1px var(--border);
  transition: transform 0.35s var(--ease-out-expo), border-color 0.35s;
}

.header__brand:hover .header__logo {
  transform: scale(1.05);
  border-color: var(--accent);
}

.header__logo picture,
.header__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1875rem;
  min-width: 0;
  max-width: 11rem;
  padding-block: 1px;
}

.header__name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
  color: var(--text-primary);
}

.header__title {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  transition: opacity 0.4s ease;
}

.header__nav {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  margin-inline-start: auto;
  pointer-events: auto;
}

/* HEADER CTAs */
.header__ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo),
    background 0.35s var(--ease-out-expo),
    color 0.35s var(--ease-out-expo);
}

.header-cta__icon {
  flex-shrink: 0;
  opacity: 0.9;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.35s;
}

.header-cta__label--short {
  display: none;
}

.header-cta--ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.header-cta--ghost:hover,
.header-cta--ghost:focus-visible {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.header-cta--ghost:hover .header-cta__icon,
.header-cta--ghost:focus-visible .header-cta__icon {
  color: var(--accent);
}

.header-cta--primary {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, #e0c04e 0%, #d4af37 45%, #b8942f 100%);
  color: #0a0a0a;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.2);
}

.header-cta--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-out-expo);
  pointer-events: none;
}

.header-cta--primary:hover::before,
.header-cta--primary:focus-visible::before {
  transform: translateX(120%);
}

.header-cta--primary:hover,
.header-cta--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35);
  border-color: rgba(212, 175, 55, 0.6);
}

.header-cta--primary:hover .header-cta__icon,
.header-cta--primary:focus-visible .header-cta__icon {
  transform: scale(1.08);
}

.header-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 899px) {
  .header.is-mobile-header:not(.is-header-visible) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(-1 * var(--header-height)));
  }

  .header.is-mobile-header.is-header-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* After first reveal, never replay the slide/fade (FA intro reflow was retriggering it). */
  .header.is-mobile-header.is-header-revealed {
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  }

  .header.is-mobile-header.is-header-revealed.is-header-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header.is-mobile-header.is-header-visible.is-scrolled {
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    isolation: isolate;
  }

  .header {
    padding-inline: 1rem;
  }

  .header__inner {
    gap: 0.75rem;
    justify-content: space-between;
  }

  .header.is-mobile-header .header__brand {
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    max-width: calc(100% - 7.5rem);
    justify-content: flex-start;
  }

  .header.is-mobile-header .header__actions {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin-inline-start: 0;
  }

  .header__ctas {
    display: none;
  }

  .header__logo {
    width: 2.625rem;
    height: 2.625rem;
    flex-shrink: 0;
    contain: strict;
    background: center / cover no-repeat url('/assets/optimized/images/peyman-poorebrahim.webp');
  }

  .header__logo picture {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .header__logo img {
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .header__identity {
    max-width: min(10.5rem, calc(100vw - 13.5rem));
    min-height: 2.75rem;
    justify-content: center;
    flex-shrink: 0;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    gap: 7px;
    padding: 11px;
  }

  .menu-toggle span {
    height: 2.5px;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .lang-switcher__btn {
    width: 3rem;
    height: 2.5rem;
    font-size: 0.78rem;
  }

  [dir="rtl"] .header__identity {
    max-width: min(12rem, calc(100vw - 14.5rem));
    min-height: 3rem;
  }

  [dir="rtl"] .header__name {
    font-size: 1.125rem;
    letter-spacing: 0;
    text-transform: none;
  }

  [dir="rtl"] .header__title {
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  [dir="rtl"] .lang-switcher__btn[data-lang="en"] {
    font-size: 0.82rem;
  }

  [dir="rtl"] .lang-switcher__btn[data-lang="fa"] {
    font-size: 0.88rem;
  }
}

@media (min-width: 900px) {
  .header {
    padding-inline: clamp(0.75rem, 1.75vw, 1.5rem);
  }

  .header__inner {
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
  }

  .header__actions {
    gap: 0.75rem;
  }

  .header__ctas {
    gap: 0.5rem;
  }

  .header-cta {
    min-height: 2.25rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.65rem;
    letter-spacing: 0.09em;
  }

  .header__brand {
    gap: 0.75rem;
  }

  .header__logo {
    width: 2.5rem;
    height: 2.5rem;
  }

  .header__identity {
    gap: 0.25rem;
    max-width: 13rem;
  }

  .header__name {
    font-size: 0.875rem;
    line-height: 1.2;
  }

  .header__title {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  .header__nav {
    display: flex;
  }

  .header.is-scrolled .header__nav {
    justify-content: center;
  }
}

.header__nav a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  position: relative;
  white-space: nowrap;
}

.header__nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-fast) var(--ease-out-expo);
}

[dir="rtl"] .header__nav a::after {
  left: auto;
  right: 0;
}

.header__nav a:hover,
.header__nav a.is-active {
  color: var(--text-primary);
}

.header__nav a:hover::after,
.header__nav a.is-active::after {
  width: 100%;
}

.lang-switcher__btn {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  unicode-bidi: isolate;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--text-primary);
  background: transparent;
  transition: color var(--duration-fast);
}

.lang-switcher__btn[data-lang="en"] {
  direction: ltr;
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-indent: 0.07em;
  padding-block: 0.0625rem 0;
}

.lang-switcher__btn[data-lang="fa"] {
  direction: rtl;
  font-family: var(--font-fa);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.lang-switcher__btn:hover {
  color: var(--accent);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  position: relative;
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
  pointer-events: none;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: calc(var(--header-height) + 1rem) var(--gutter) 2rem;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10049;
}

body.menu-open {
  overflow: hidden;
}

.mobile-nav__links a {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.mobile-nav__links a:hover {
  color: var(--accent);
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  /* Persian desktop header — midway between base EN sizes and previous FA bump */
  [dir="rtl"] .header__nav a {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  [dir="rtl"] .header__ctas {
    gap: 0.75rem;
  }

  [dir="rtl"] .header-cta {
    font-family: var(--font-fa);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    min-height: 2.75rem;
    padding: 0.625rem 1.4rem;
    gap: 0.625rem;
  }

  [dir="rtl"] .header-cta .header-cta__icon {
    width: 1.125rem;
    height: 1.125rem;
  }

  [dir="rtl"] .lang-switcher__btn {
    width: 3rem;
    height: 2.75rem;
  }

  [dir="rtl"] .lang-switcher__btn[data-lang="en"] {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-indent: 0.07em;
  }

  [dir="rtl"] .lang-switcher__btn[data-lang="fa"] {
    font-size: 0.95rem;
  }

  [dir="rtl"] .header__name {
    font-size: 1.2rem;
    letter-spacing: 0;
    text-transform: none;
  }

  [dir="rtl"] .header__title {
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: none;
  }

  [dir="rtl"] .header__identity {
    max-width: 14.5rem;
  }
}

/* --- sections.css --- */
/* INTRO */
.intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: clip;
  overflow-y: visible;
}

.intro__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro__grain::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0.6px, transparent 0.6px);
  background-size: auto, 5px 5px;
  animation: intro-grain-shift 0.6s steps(2) infinite;
}

@keyframes intro-grain-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-3%, -2%); }
}

.intro__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-block: calc(var(--header-height) + 2rem) 4rem;
  min-height: 100vh;
  align-content: center;
  overflow: visible;
}

.intro__content.container {
  max-width: 100%;
}

@media (min-width: 900px) {
  .intro__content {
    grid-template-columns: 1fr auto;
    align-items: end;
    overflow: visible;
  }

  .intro__name {
    font-size: clamp(2.75rem, 11cqi, 7.5rem);
    letter-spacing: -0.03em;
  }
}

.intro__portrait-anchor {
  width: clamp(112px, 22vw, 168px);
  aspect-ratio: 1;
  flex-shrink: 0;
  margin-bottom: var(--space-md);
}

.intro__portrait {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-dim);
  box-shadow: 0 0 0 1px var(--border), 0 0 40px var(--accent-glow);
  opacity: 1;
  transform: none;
}

.intro__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.intro__portrait picture,
.intro__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 899px) {
  .intro {
    justify-content: flex-start;
  }

  .intro__content {
    gap: var(--space-md);
    align-content: start;
    padding-block: calc(var(--header-height) + 0.75rem) 5rem;
    min-height: 100vh;
  }

  .intro__hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }

  .intro__portrait-anchor {
    align-self: flex-start;
    margin-inline: 0;
    margin-bottom: var(--space-sm);
  }

  [dir="ltr"] .intro__name,
  [dir="rtl"] .intro__name {
    text-align: start;
  }

  .intro__roles {
    text-align: start;
    width: 100%;
  }

  .intro__aside {
    align-items: flex-start;
    width: 100%;
    margin-top: 2rem;
  }

  .intro__meta {
    align-items: flex-start;
    text-align: start;
    width: 100%;
  }

  .intro__meta-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    text-align: start;
  }
}

@media (min-width: 900px) {
  .intro__portrait-anchor {
    margin-bottom: var(--space-md);
  }
}

.intro__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 900px) {
  .intro__aside {
    align-items: flex-end;
  }
}

.intro__hero {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  container-type: inline-size;
}

.intro__name {
  font-size: clamp(3.5rem, 10vw, 11rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 100%;
}

[dir="ltr"] .intro__name {
  text-align: left;
}

[dir="rtl"] .intro__name {
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-fa);
}

@media (max-width: 899px) {
  .intro__name {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.95;
  }
}

@media (max-width: 480px) {
  .intro__name {
    font-size: 3rem;
    letter-spacing: -0.025em;
  }

  [dir="ltr"] .intro__name {
    font-size: 2.65rem;
  }

  [dir="rtl"] .intro__name {
    font-size: 2.75rem;
  }
}

@media (max-width: 360px) {
  .intro__name {
    font-size: 2.65rem;
  }

  [dir="ltr"] .intro__name {
    font-size: 2.5rem;
  }

  [dir="rtl"] .intro__name {
    font-size: 2.5rem;
  }
}

.intro__name-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: visible;
  white-space: nowrap;
}

.intro__name-line .char {
  display: inline-block;
  white-space: nowrap;
  transform: translateY(110%);
  will-change: transform;
}

.intro__name-line--whole {
  transform: translateY(110%);
  will-change: transform;
}

.intro__roles {
  display: block;
  margin-top: var(--space-md);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-secondary);
  min-height: 1.5em;
  width: 100%;
  max-width: 100%;
}

[dir="ltr"] .intro__hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

[dir="ltr"] .intro__name .intro__roles {
  margin-top: 0.5rem;
  margin-inline: 0;
  padding-inline: 0;
  text-align: left;
}

[dir="rtl"] .intro__name .intro__roles {
  text-align: right;
}

[dir="rtl"] .intro__name-line--whole {
  transform: none;
}

@media (max-width: 899px) {
  .intro__hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.45rem;
    width: 100%;
  }

  body.is-loading .intro__portrait-anchor,
  body.is-loading .intro__hero-copy,
  body.is-loading .intro__aside,
  body.is-loading .intro__scroll {
    opacity: 0;
    visibility: hidden;
    transform: translateY(3rem);
    will-change: transform, opacity;
  }

  .intro__name {
    display: grid;
    gap: 0.65rem;
    line-height: 1.2;
    width: 100%;
  }

  [dir="ltr"] .intro__name {
    font-size: 2.75rem;
    gap: 0.35rem;
    line-height: 0.92;
  }

  .intro__name .intro__roles {
    margin-top: 0;
    min-height: 1.35em;
  }

  [dir="rtl"] .intro__name .intro__roles {
    min-height: 1.65em;
  }

  .intro__name-line,
  .intro__name-line .char {
    transform: none;
  }

  .intro__ctas {
    margin-top: 0;
  }
}

@media (min-width: 900px) {
  [dir="ltr"] .intro__name .intro__roles {
    margin-top: 0.35rem;
    padding-inline-start: 1rem;
  }

  [dir="ltr"] .intro__name .intro__role-text {
    display: block;
    margin: 0;
    padding: 0;
    text-align: left;
  }
}

.intro__ctas {
  display: none;
}

@media (max-width: 899px) {
  .intro__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0;
  }

  .intro__ctas .header-cta {
    flex: 0 0 auto;
    width: auto;
    min-height: 2.75rem;
    padding: 0.75rem 1.3rem;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    gap: 0.5rem;
  }

  [dir="rtl"] .intro__ctas .header-cta {
    padding-inline: 1.4rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .intro__ctas .header-cta__icon {
    width: 14px;
    height: 14px;
  }
}

.intro__role-text,
.header__title.intro__role-text {
  color: var(--accent);
  transition: opacity 0.4s ease;
}

.intro__meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.intro__meta-item strong {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

@media (min-width: 900px) {
  .intro__meta-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
  }

  .intro__meta-item span::after {
    content: "·";
    margin-inline-start: 0.65rem;
    color: var(--accent-dim);
  }

  .intro__meta-item strong {
    display: inline;
    margin-top: 0;
  }
}

.intro__scroll {
  position: absolute;
  bottom: 2rem;
  inset-inline: 0;
  width: fit-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
}

.intro__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* SLOGANS */
.slogan {
  position: relative;
  background: var(--bg-primary);
}

.slogan--alt {
  background: var(--bg-secondary);
}

.slogan__pin {
  position: relative;
}

@media (max-width: 899px) {
  .slogan,
  .slogan__pin,
  .slogan__sticky,
  .slogan__line,
  #contact,
  .contact__inner,
  .footer {
    overflow-anchor: none;
  }

  [dir="rtl"] .slogan__line {
    font-family: var(--font-fa);
    font-size: clamp(1.5rem, 5vw, 2.75rem);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.2;
    max-width: min(92vw, 50rem);
    text-align: center;
  }
}

.slogan__sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slogan__line {
  position: absolute;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 18ch;
  padding-inline: var(--gutter);
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.1s, transform 0.1s;
}

@media (min-width: 900px) {
  [dir="rtl"] .slogan__line {
    font-family: var(--font-fa);
    font-size: clamp(1.75rem, 5.5vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0;
    line-height: 1.15;
    max-width: min(92vw, 50rem);
    white-space: nowrap;
  }
}

.slogan__line.is-active {
  opacity: 1;
  transform: translateY(0);
}

body.reduced-motion .slogan__line {
  opacity: 1;
  transform: none;
  transition: none;
}

/* EXPERTISE */
.expertise {
  padding-block: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: visible;
}

.expertise::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.06) 0%,
    rgba(212, 175, 55, 0.025) 42%,
    transparent 72%
  );
  pointer-events: none;
}

.expertise__header {
  margin-bottom: 1rem;
}

.expertise__grid {
  --spot-x: 50%;
  --spot-y: 50%;
  --spot-opacity: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.expertise__grid::before {
  content: "";
  position: absolute;
  inset: -5rem -3rem;
  background: radial-gradient(
    circle 440px at var(--spot-x) var(--spot-y),
    rgba(212, 175, 55, 0.11) 0%,
    rgba(212, 175, 55, 0.055) 24%,
    rgba(212, 175, 55, 0.022) 42%,
    rgba(212, 175, 55, 0.008) 56%,
    transparent 72%
  );
  opacity: var(--spot-opacity);
  transition: opacity 0.55s var(--ease-out-expo);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.expertise__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 7.5rem;
  padding: 1rem 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.72);
  overflow: hidden;
  cursor: default;
  outline: none;
  transform-style: preserve-3d;
  transition:
    border-color 0.35s var(--ease-out-expo),
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo);
}

.expertise__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), rgba(212, 175, 55, 0.15));
  transform: scaleY(0.35);
  transform-origin: top;
  opacity: 0.45;
  transition: transform 0.45s var(--ease-out-expo), opacity 0.35s;
}

.expertise__item::after {
  content: "";
  position: absolute;
  inset-inline-end: 0.85rem;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.25);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), border-color 0.35s;
}

.expertise__item:hover,
.expertise__item:focus-within {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-3px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.06);
}

.expertise__item:hover::before,
.expertise__item:focus-within::before {
  transform: scaleY(1);
  opacity: 1;
}

.expertise__item:hover::after,
.expertise__item:focus-within::after {
  opacity: 1;
  transform: scale(1);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.expertise__index {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-dim);
  margin-bottom: 0.75rem;
  transition: color 0.35s var(--ease-out-expo);
}

.expertise__item:hover .expertise__index,
.expertise__item:focus-within .expertise__index {
  color: var(--accent);
}

.expertise__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.expertise__label {
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  transition: color 0.35s var(--ease-out-expo);
}

.expertise__item:hover .expertise__label,
.expertise__item:focus-within .expertise__label {
  color: var(--accent);
}

.expertise__services {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.55;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

[dir="rtl"] .expertise__index {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

[dir="rtl"] .expertise__label {
  font-family: var(--font-fa);
  font-size: clamp(0.925rem, 1.75vw, 1.075rem);
  font-weight: 500;
}

[dir="rtl"] .expertise__services {
  font-family: var(--font-fa);
  font-size: 0.845rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

@media (max-width: 899px) {
  .expertise__label {
    font-size: 1.125rem;
  }

  [dir="rtl"] .expertise__label {
    font-size: 1.25rem;
  }
}

@media (min-width: 640px) {
  .expertise__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .expertise__item {
    min-height: 8.5rem;
    padding: 1.15rem 1.15rem 1.25rem;
  }

  .expertise__services {
    font-size: 0.7rem;
  }

  [dir="rtl"] .expertise__services {
    font-size: 0.825rem;
  }
}

@media (min-width: 900px) {
  .expertise__item {
    min-height: 9rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .expertise__item::before {
    transform: scaleY(0.6);
    opacity: 0.35;
  }
}

/* WORK */
.work {
  padding-block: var(--section-padding);
}

.work__header {
  margin-bottom: 1rem;
}

@media (max-width: 899px) {
  .work__header,
  .process__header,
  .experience__header,
  .expertise__header,
  .testimonials__header {
    text-align: start;
  }
}

@media (min-width: 900px) {
  .work__header,
  .process__header,
  .experience__header,
  .expertise__header,
  .testimonials__header {
    text-align: center;
  }
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .work__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.work__card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: transform 0.5s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
  height: 100%;
}

.work__card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-dim);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.work__card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.work__card-media picture,
.work__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}

.work__card:hover .work__card-media img {
  transform: scale(1.05);
}

.work__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
  background: var(--bg-surface);
}

.work__card-year {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.work__card-title {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 500;
  margin-bottom: 0.35rem;
  line-height: 1.15;
  color: var(--text-primary);
}

.work__card-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  opacity: 0.88;
  margin-bottom: 0.4rem;
}

.work__card-cat {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.work__card-role {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 0.85rem;
}

.work__card-role-label {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* PROCESS */
.process {
  padding-block: var(--section-padding);
}

.process__header {
  margin-bottom: 1rem;
}

.process__steps {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .process__steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.process__step {
  background: var(--bg-surface);
  padding: 1.5rem 1.25rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease-out-expo), border-color 0.4s;
  cursor: default;
  border-inline-start: 2px solid transparent;
}

.process__step-copy {
  position: relative;
  z-index: 1;
}

.process__step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 1.25rem;
  color: rgba(212, 175, 55, 0.32);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo),
    color 0.45s var(--ease-out-expo);
}

.process__step-icon svg {
  width: 2.75rem;
  height: 2.75rem;
}

.process__step.is-complete .process__step-icon {
  color: rgba(212, 175, 55, 0.42);
}

.process__step.is-complete .process__step-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}

@media (min-width: 768px) {
  .process__step {
    padding: 2rem 1.5rem;
    min-height: 11rem;
  }
}

.process__step.is-active {
  background: var(--bg-secondary);
  border-inline-start-color: var(--accent);
}

@media (min-width: 768px) {
  .process__steps {
    display: flex;
    align-items: stretch;
  }

  .process__step {
    flex: 1 1 0;
    min-width: 0;
    min-height: 12rem;
    padding: 1.75rem 1.25rem;
    cursor: pointer;
    transition:
      flex 0.55s var(--ease-out-expo),
      background 0.45s var(--ease-out-expo),
      border-color 0.45s var(--ease-out-expo),
      box-shadow 0.45s var(--ease-out-expo);
  }

  .process__step.is-current {
    flex: 2.15 1 0;
    background: var(--bg-secondary);
    border-inline-start-color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.1);
  }

  .process__step.is-complete {
    border-inline-start-color: rgba(212, 175, 55, 0.4);
  }

  .process__step.is-complete .process__step-title {
    color: var(--text-secondary);
  }

  .process__step:not(.is-active) {
    opacity: 0.58;
  }

  .process__step.is-active:not(.is-current) .process__step-desc {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
  }

  .process__step.is-current .process__step-desc {
    transition-delay: 0.08s;
  }

  .process__step.is-current .process__step-icon {
    opacity: 0;
    transform: scale(0.5) translateY(12px);
    max-height: 0;
    padding-top: 0;
    margin-top: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .process__step:not(.is-active) .process__step-icon {
    color: rgba(212, 175, 55, 0.22);
  }

  .process__step:not(.is-active) .process__step-icon svg {
    width: 3rem;
    height: 3rem;
  }
}

.process__step-num {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.process__step-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.process__step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition:
    opacity 0.55s var(--ease-out-expo),
    max-height 0.55s var(--ease-out-expo),
    margin-top 0.4s var(--ease-out-expo);
}

.process__step.is-active .process__step-desc {
  opacity: 1;
  max-height: 12rem;
  margin-top: 0.25rem;
}

body.reduced-motion .process__step .process__step-desc {
  opacity: 1;
  max-height: 12rem;
  margin-top: 0.25rem;
}

body.reduced-motion .process__step {
  background: var(--bg-secondary);
  border-inline-start-color: var(--accent);
}

/* EXPERIENCE */
.experience {
  padding-block: var(--section-padding);
  background: var(--bg-secondary);
}

.experience__header {
  margin-bottom: 1rem;
}

.experience__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 820px;
  margin-inline: auto;
}

.experience-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.4s var(--ease-out-expo);
}

.experience-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.experience-card--current {
  border-color: rgba(212, 175, 55, 0.25);
  background: linear-gradient(135deg, rgba(17, 17, 17, 1) 0%, rgba(212, 175, 55, 0.04) 100%);
}

.experience-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.experience-card__logo {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-primary);
}

.experience-card__logo[data-company="mom"],
.experience-card__logo[data-company="listenmode"] {
  background: #ffffff;
}

.experience-card__logo picture,
.experience-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.experience-card__meta {
  flex: 1;
  min-width: 0;
}

.experience-card__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-card__company {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
}

.experience-card__company a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}

.experience-card__company a:hover {
  color: var(--accent);
}

.experience-card__badge {
  display: inline-block;
  padding: 0.15em 0.55em;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent);
  border-radius: 100px;
  flex-shrink: 0;
}

.experience-card__role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.experience-card__role-detail {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.experience-card__period {
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.experience-card__summary {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 400;
}

.experience-card__expandable {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease-out-expo), opacity 0.35s;
}

.experience-card__expandable.is-open {
  max-height: 56rem;
  opacity: 1;
}

.experience-card__detail {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.experience-card__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.25s;
}

.experience-card__link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.experience-card__list {
  margin: 0.5rem 0 0.75rem;
  padding-inline-start: 1.25rem;
  list-style: disc;
}

.experience-card__list li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

[dir="rtl"] .experience-card__list {
  padding-inline-start: 0;
  padding-inline-end: 1.25rem;
}

.experience-card__toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 0.25rem;
}

.experience-card__toggle:hover {
  opacity: 0.75;
}

.experience-card__toggle-icon {
  display: inline-block;
  transition: transform 0.35s var(--ease-out-expo);
}

.experience-card__toggle[aria-expanded="true"] .experience-card__toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .experience-card {
    padding: 1rem 0.875rem;
    gap: 0.75rem;
  }

  .experience-card__header {
    flex-wrap: wrap;
  }

  .experience-card__period {
    flex-basis: 100%;
    white-space: normal;
    padding-top: 0.35rem;
  }
}

@media (min-width: 1024px) {
  .experience-card {
    padding: 2rem;
    gap: 1.15rem;
  }
}

/* TESTIMONIALS */
.testimonials {
  padding-block: var(--section-padding);
}

.testimonials__header {
  margin-bottom: 1rem;
}

.testimonials__carousel {
  position: relative;
  overflow: visible;
}

.testimonials__stack {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 1.75rem;
  padding-bottom: 0.5rem;
}

.testimonials__stack-stage {
  position: relative;
  width: 100%;
}

.testimonials__card {
  position: absolute;
  inset-inline: 0;
  top: 0;
  width: 100%;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(20px);
  transform-origin: center top;
  transition:
    transform 0.55s var(--ease-out-expo),
    opacity 0.55s var(--ease-out-expo),
    filter 0.55s var(--ease-out-expo),
    box-shadow 0.55s var(--ease-out-expo);
  pointer-events: none;
}

.testimonials__card[data-stack="0"] {
  z-index: 30;
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.testimonials__card[data-stack="1"] {
  z-index: 20;
  transform: translateY(-14px) scale(0.975);
  opacity: 0.82;
  filter: brightness(0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.testimonials__card[data-stack="2"] {
  z-index: 10;
  transform: translateY(-28px) scale(0.95);
  opacity: 0.58;
  filter: brightness(0.68);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.testimonials__card.is-leaving {
  z-index: 40;
  transform: translateX(-108%) scale(0.94) rotate(-2deg);
  opacity: 0;
  pointer-events: none;
}

[dir="rtl"] .testimonials__card.is-leaving {
  transform: translateX(108%) scale(0.94) rotate(2deg);
}

body.reduced-motion .testimonials__card {
  transition: none;
}

.testimonials__quote-mark {
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-family: Georgia, serif;
}

[dir="rtl"] .testimonials__quote-mark {
  left: auto;
  right: 2rem;
}

.testimonials__quote {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonials__author-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.testimonials__avatar {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--accent-dim);
  box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.testimonials__avatar picture,
.testimonials__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonials__author-info {
  flex: 1;
  min-width: 0;
}

.testimonials__author {
  font-size: 1.05rem;
  font-weight: 500;
  font-style: normal;
  display: block;
}

.testimonials__title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.testimonials__date {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: 0.35rem;
}

.testimonials__linkedin {
  text-align: center;
  margin-top: 2rem;
}

.testimonials__linkedin a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.testimonials__linkedin a:hover {
  color: var(--accent);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.testimonials__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 899px) {
  .testimonials .container {
    padding-inline: 1rem;
  }

  .testimonials__stack {
    padding-inline: 0;
    padding-top: 1.25rem;
  }

  .testimonials__card {
    padding: 2rem 1.5rem;
  }

  .testimonials__card[data-stack="1"] {
    transform: translateY(-10px) scale(0.98);
  }

  .testimonials__card[data-stack="2"] {
    transform: translateY(-20px) scale(0.96);
  }

  .testimonials__quote-mark {
    top: 0.85rem;
    left: 1.15rem;
    font-size: 3.25rem;
  }

  [dir="rtl"] .testimonials__quote-mark {
    right: 1.15rem;
  }

  .testimonials__quote {
    margin-bottom: 1.5rem;
    padding-top: 0.35rem;
    line-height: 1.7;
  }

  .testimonials__author-row {
    gap: 1rem;
    padding-top: 0.25rem;
  }

  .testimonials__avatar {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* CONTACT */
.contact {
  padding-block: var(--section-padding);
  background: var(--bg-secondary);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

@media (max-width: 899px) {
  .contact {
    min-height: auto;
    align-items: flex-start;
    padding-top: clamp(2.5rem, 10vw, 4rem);
    padding-bottom: clamp(1.25rem, 5vw, 2rem);
  }

  .contact__brief {
    margin-bottom: calc(var(--space-lg) / 2);
  }

  .contact__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    width: min(100%, 20rem);
    margin-inline: auto;
  }

  .contact__links .contact__btn:first-child {
    grid-column: 1 / -1;
  }

  .contact__btn {
    width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
  }
}

.contact__inner {
  text-align: center;
  width: 100%;
}

.contact__headline {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact__subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.contact__email {
  display: inline-block;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--accent);
  margin-bottom: 1.25rem;
  position: relative;
}

.contact__brief {
  margin-bottom: var(--space-lg);
}

.contact__brief-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.35s var(--ease-out-expo),
    color 0.35s var(--ease-out-expo),
    background 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo);
}

.contact__brief-btn:hover,
.contact__brief-btn:focus-visible {
  transform: translateY(-1px);
  color: var(--text-primary);
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.16);
}

.contact__brief-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[dir="rtl"] .contact__brief-btn {
  font-family: var(--font-fa);
  letter-spacing: 0;
  text-transform: none;
}

.contact__email::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

[dir="rtl"] .contact__email::after {
  transform-origin: left;
}

.contact__email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

[dir="rtl"] .contact__email:hover::after {
  transform-origin: right;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: border-color 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.contact__btn[data-magnetic] {
  display: inline-flex;
}

@media (min-width: 900px) {
  .contact__btn {
    min-width: 11.5rem;
  }
}

.contact__btn span {
  line-height: 1;
  flex: 0 1 auto;
  text-align: center;
}

.contact__btn:hover {
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact__btn img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* FOOTER */
.footer {
  padding: 2rem var(--gutter);
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}


/* REVEAL ANIMATIONS */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* MAGNETIC — preserve element display for flex/grid children */
.contact__email[data-magnetic] {
  display: inline-block;
}

/* --- enhancements.css --- */
/* Phase 1–4 creative enhancements */

/* ── Gold text selection ── */
body.enhance-selection ::selection {
  background: rgba(212, 175, 55, 0.35);
  color: #fff;
}

body.enhance-selection ::-moz-selection {
  background: rgba(212, 175, 55, 0.35);
  color: #fff;
}

/* ── Brush link underline ── */
body.enhance-links a:not(.header-cta):not(.contact__btn):not(.work__card):not(.modal__download-btn):not(.skip-link) {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease-out-expo);
}

body.enhance-links a:not(.header-cta):not(.contact__btn):not(.work__card):not(.modal__download-btn):not(.skip-link):hover {
  background-size: 100% 1px;
}

/* ── Registration marks (intro) ── */
.intro__marks {
  position: absolute;
  inset: clamp(1rem, 4vw, 2.5rem);
  z-index: 1;
  pointer-events: none;
}

.intro__marks span {
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0.18;
}

.intro__marks span::before,
.intro__marks span::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.intro__marks span::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.intro__marks span::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.intro__marks span:nth-child(1) { top: 0; left: 0; }
.intro__marks span:nth-child(2) { top: 0; right: 0; }
.intro__marks span:nth-child(3) { bottom: 0; left: 0; }
.intro__marks span:nth-child(4) { bottom: 0; right: 0; }

/* ── Typography ghost ── */
.intro__typography-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.intro__typography-ghost span {
  font-size: clamp(4rem, 22vw, 14rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: rgba(255, 255, 255, 0.025);
  user-select: none;
  white-space: nowrap;
}

/* ── Section ghost numbers ── */
.section-block {
  position: relative;
}

.section-block__num {
  position: absolute;
  top: var(--section-padding);
  inset-inline-start: var(--gutter);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-block__act {
  position: absolute;
  top: calc(var(--section-padding) + 0.25rem);
  inset-inline-end: var(--gutter);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.35);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Manifesto line ── */
.intro__manifesto {
  margin: 0.75rem 0 0;
  max-width: 28ch;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 300;
  min-height: 2.5em;
  transition: opacity 0.5s var(--ease-out-expo);
}

.intro__manifesto.is-fading {
  opacity: 0;
}

/* ── Availability badge ── */
.intro__availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.06);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.intro__availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: availability-pulse 2.5s ease-in-out infinite;
}

@keyframes availability-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ── Enter scroll hint ── */
body.enhance-enter-hint .intro__scroll > span:first-child {
  letter-spacing: 0.35em;
}

.intro__scroll-enter {
  display: inline-block;
}

/* ── Frame counter (replaces progress bar visually) ── */
.scroll-progress--frames {
  transform: none !important;
  width: auto;
  height: auto;
  top: auto;
  bottom: 1.25rem;
  left: var(--gutter);
  right: auto;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

[dir="rtl"] .scroll-progress--frames {
  left: auto;
  right: var(--gutter);
}

.scroll-progress__count {
  color: var(--accent);
  font-weight: 500;
  min-width: 2.5em;
}

.scroll-progress__bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  z-index: 9997;
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 12px var(--accent-glow);
  pointer-events: none;
}

[dir="rtl"] .scroll-progress__bar {
  transform-origin: right;
  left: auto;
  right: 0;
}

.scroll-progress__sep,
.scroll-progress__total {
  opacity: 0.45;
}


/* ── Foil CTA ── */
body.enhance-foil .header-cta--primary {
  position: relative;
  overflow: hidden;
}

body.enhance-foil .header-cta--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-out-expo);
  pointer-events: none;
}

body.enhance-foil .header-cta--primary:hover::after {
  transform: translateX(120%);
}

/* ── Cursor section modes ── */
body[data-cursor-mode="work"] .cursor__ring {
  width: 52px;
  height: 52px;
  border-color: rgba(212, 175, 55, 0.45);
}

body[data-cursor-mode="process"] .cursor__pointer {
  transform:
    translate(calc(-1 * var(--cursor-hotspot-x)), calc(-1 * var(--cursor-hotspot-y)))
    rotate(-8deg)
    scale(0.92);
}

body[data-cursor-mode="contact"] .cursor__ring {
  border-radius: 4px;
}

/* ── Portrait easter egg toast ── */
.portrait-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  z-index: 10000;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.92);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease-out-expo),
    transform 0.4s var(--ease-out-expo);
}

.portrait-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Keyboard shortcuts overlay ── */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.shortcuts-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.shortcuts-panel {
  width: min(100%, 22rem);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.shortcuts-panel h2 {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.shortcuts-panel dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.shortcuts-panel div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.shortcuts-panel kbd {
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  font-family: inherit;
  font-size: 0.6875rem;
  color: var(--text-primary);
}

/* ── Footer credits ── */
.footer {
  align-items: center;
}

.footer__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem 1.5rem;
  width: 100%;
}

.footer__start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  min-width: 0;
  justify-self: start;
}

.footer__center {
  justify-self: center;
  text-align: center;
  min-width: 0;
}

.footer__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  justify-self: end;
}

.footer__credits {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

@media (max-width: 899px) {
  .footer__row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer__start,
  .footer__end {
    justify-self: center;
    justify-content: center;
  }
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--accent);
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.sound-toggle--header {
  min-height: 2.25rem;
  padding: 0.32rem 0.5rem;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  gap: 0.28rem;
  flex-shrink: 0;
  border: none;
  background: transparent;
}

.sound-toggle--header .sound-toggle__icon {
  width: 0.6875rem;
  height: 0.6875rem;
}

.sound-toggle--header .sound-toggle__dot {
  width: 0.25rem;
  height: 0.25rem;
  margin: -0.125rem 0 0 -0.125rem;
}

.sound-toggle:hover {
  color: var(--accent);
  border-color: rgba(212, 175, 55, 0.3);
}

.sound-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(212, 175, 55, 0.35);
}

.sound-toggle__icon {
  position: relative;
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
}

.sound-toggle__ring {
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.sound-toggle__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.3125rem;
  height: 0.3125rem;
  margin: -0.15625rem 0 0 -0.15625rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sound-toggle[aria-pressed="true"] .sound-toggle__dot {
  opacity: 1;
  transform: scale(1);
}

.sound-toggle.is-pulsing .sound-toggle__dot {
  animation: sound-dot-pulse 1.1s ease-in-out infinite;
}

.sound-toggle.is-pulsing .sound-toggle__ring {
  animation: sound-ring-pulse 1.1s ease-in-out infinite;
}

@keyframes sound-dot-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.75);
    opacity: 1;
  }
}

@keyframes sound-ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.22);
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sound-toggle.is-pulsing .sound-toggle__dot,
  .sound-toggle.is-pulsing .sound-toggle__ring {
    animation: none;
  }
}

/* ── Seasonal: Nowruz ── */
body.season-nowruz {
  --accent: #c9a227;
  --accent-glow: rgba(201, 162, 39, 0.3);
}

body.season-nowruz .intro__grain::before {
  opacity: 0.12;
}

body.season-nowruz .intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 20%, rgba(201, 162, 39, 0.04) 0%, transparent 50%);
  z-index: 0;
}


/* ── Testimonial waveform accent ── */
.testimonials__card::before {
  content: "";
  display: block;
  height: 24px;
  margin-bottom: 1rem;
  opacity: 0.25;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 2px,
    transparent 2px 4px,
    transparent 4px 6px,
    var(--accent) 6px 8px,
    transparent 8px 12px,
    var(--accent) 12px 14px,
    transparent 14px 18px,
    var(--accent) 18px 20px,
    transparent 20px 28px
  );
  mask-image: linear-gradient(90deg, #000 60%, transparent);
}

body.enhance-waveform .testimonials__card::before {
  animation: waveform-shift 3s steps(8) infinite;
}

@keyframes waveform-shift {
  0% { transform: scaleX(1); opacity: 0.2; }
  50% { transform: scaleX(1.02); opacity: 0.35; }
  100% { transform: scaleX(1); opacity: 0.2; }
}

/* ── Case study page transition ── */
body.is-page-exiting {
  opacity: 0;
  transition: opacity 0.35s var(--ease-out-expo);
}

@media (prefers-reduced-motion: reduce) {
  .intro__availability-dot,
  body.enhance-waveform .testimonials__card::before {
    animation: none !important;
  }

  body.enhance-foil .header-cta--primary::after {
    display: none;
  }
}

/* --- print.css --- */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.45;
  }

  .loader,
  .cursor,
  .scroll-progress,
  .scroll-progress__bar,
  .intro__grain,
  .intro__marks,
  .intro__typography-ghost,
  .intro__scroll,
  .section-block__num,
  .section-block__act,
  .header,
  .mobile-nav,
  .menu-toggle,
  .header__actions,
  .intro__manifesto,
  .intro__availability,
  .modal-overlay,
  .portrait-toast,
  .shortcuts-overlay,
  .testimonials__dots,
  .slogan {
    display: none !important;
  }

  .intro {
    min-height: auto;
    page-break-after: always;
  }

  .intro__name {
    font-size: 28pt;
  }

  .work__grid {
    display: block !important;
  }

  .work__card {
    page-break-inside: avoid;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
  }

  .work__card-media img {
    max-height: 120px;
    object-fit: cover;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555 !important;
  }

  a[href^="#"]::after,
  a[href^="mailto:"]::after {
    content: "";
  }

  .footer__credits {
    border-top: 1px solid #ccc;
    color: #555 !important;
  }
}

/* --- modal.css --- */
/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease-out-expo),
    visibility 0.4s var(--ease-out-expo);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 2.5rem);
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: translateY(1rem);
  transition: transform 0.45s var(--ease-out-expo);
}

.modal__tabs,
.modal__panel,
.modal__form,
.modal__brief-actions,
.modal__booking,
.booking-iframe-container {
  min-width: 0;
  max-width: 100%;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

body.reduced-motion .modal-overlay,
body.reduced-motion .modal {
  transition: none;
}

body.reduced-motion .modal-overlay.is-open .modal {
  transform: none;
}

.modal--contact {
  max-width: 640px;
}

.modal--brief {
  max-width: 560px;
}

.modal__close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.modal__close:hover,
.modal__close:focus-visible {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal__title {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
  padding-inline-end: 2.5rem;
}

.modal__subtitle {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.modal__tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
}

.modal__tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  overflow-wrap: anywhere;
  text-align: center;
  transition:
    color 0.25s var(--ease-out-expo),
    background 0.25s var(--ease-out-expo),
    box-shadow 0.25s var(--ease-out-expo);
}

.modal__tab:hover:not(.is-active) {
  color: var(--text-primary);
}

.modal__tab.is-active {
  color: var(--text-primary);
  background: var(--bg-surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.modal__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal__panel {
  display: none;
}

.modal__panel.is-visible {
  display: block;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: opacity 0.3s var(--ease-out-expo);
}

.modal__form.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.modal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.modal__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

.modal__input,
.modal__textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.modal__input::placeholder,
.modal__textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.42;
}

.modal__input:focus,
.modal__textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.modal__textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.modal__error {
  font-size: 0.8rem;
  color: #e57373;
  margin: 0.15rem 0 0;
}

.modal__error[hidden] {
  display: none;
}

.modal__submit {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  transition:
    transform 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo),
    opacity 0.3s;
}

.modal__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.modal__submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal__submit.is-loading,
.modal__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.modal__success {
  display: none;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.modal__success.is-visible {
  display: block;
  animation: modalSuccessIn 0.45s var(--ease-out-expo) forwards;
}

body.reduced-motion .modal__success.is-visible {
  animation: none;
}

@keyframes modalSuccessIn {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal__success-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.modal__success-headline {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.modal__success-subtext {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.modal__success-close {
  min-height: 2.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.25s, color 0.25s;
}

.modal__success-close:hover,
.modal__success-close:focus-visible {
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--accent);
}

/* Booking */
.modal__booking-iframe-panel {
  margin: 0;
}

.booking-iframe-container {
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
}

.modal__booking-iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 520px;
  border: 0;
}

.modal__booking-fallback {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.8rem;
}

.modal__booking-fallback[hidden] {
  display: none;
}

.modal__booking-fallback a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking-mobile-fallback {
  display: none;
}

.booking-embed.is-load-failed .booking-mobile-fallback {
  display: none;
}

.booking-embed.is-load-failed .booking-iframe-container {
  display: none;
}

.booking-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent);
  border-radius: 8px;
}

/* Brief */
.modal__brief-actions {
  display: flex;
  flex-direction: row;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.modal__download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.65rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-wrap: anywhere;
  transition: border-color 0.25s, color 0.25s;
}

.modal__download-btn span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal__download-btn:hover,
.modal__download-btn:focus-visible {
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--accent);
}

.modal__download-icon {
  flex-shrink: 0;
}

.modal__file-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  transition: border-color 0.25s, background 0.25s;
}

.modal__file-wrap.is-dragover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.04);
}

.modal__file-wrap.has-file {
  border-style: solid;
  border-color: rgba(212, 175, 55, 0.3);
}

.modal__file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.modal__file-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.modal__file-name {
  font-size: 0.8rem;
  color: var(--accent);
  word-break: break-all;
  pointer-events: none;
}

@media (max-width: 767px) {
  .modal-overlay {
    padding: 0.75rem;
    align-items: flex-start;
  }

  .modal {
    max-height: calc(100dvh - 1rem);
    padding: 0.75rem;
    transform: translateY(-1.25rem);
  }

  .modal-overlay.is-open .modal {
    transform: translateY(0);
  }

  .modal--contact {
    max-height: calc(100dvh - 1rem);
  }

  .booking-iframe-container {
    min-height: min(520px, calc(100dvh - 9.5rem));
  }

  .modal__booking-iframe {
    height: min(520px, calc(100dvh - 9.5rem));
    min-height: min(520px, calc(100dvh - 9.5rem));
  }

  .booking-embed.is-load-failed .booking-mobile-fallback {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
  }
}

@media (min-width: 768px) {
  .booking-mobile-fallback {
    display: none !important;
  }

  .booking-embed.is-load-failed .booking-iframe-container {
    display: block;
  }
}

/* Native cursor inside modals (custom cursor is hidden site-wide) */
body.is-modal-open {
  cursor: auto;
  overflow: hidden;
  overflow-x: hidden;
}

body.is-modal-open .modal input,
body.is-modal-open .modal textarea {
  cursor: text;
}

body.is-modal-open .modal button,
body.is-modal-open .modal a,
body.is-modal-open .modal__file-input {
  cursor: pointer;
}

/* --- mobile-type.css --- */
/* Mobile typography (+2 steps) — Persian only. Card interiors are excluded. */
@media (max-width: 899px) {
  [dir="ltr"] .section-label {
    font-size: 0.75rem;
  }

  [dir="rtl"] .section-label {
    font-size: 1.25rem;
  }

  [dir="rtl"] .section-title {
    font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  }

  [dir="rtl"] .intro__name {
    font-size: 3.25rem;
  }

  [dir="rtl"] .intro__roles {
    font-size: clamp(1.125rem, 2.25vw, 1.375rem);
  }

  [dir="rtl"] .intro__meta {
    font-size: 1.05rem;
  }

  [dir="rtl"] .intro__scroll {
    font-size: 0.9rem;
  }

  [dir="rtl"] .intro__ctas .header-cta {
    font-size: 0.9rem;
  }

  [dir="rtl"] .process__step-num {
    font-size: 0.95rem;
  }

  [dir="rtl"] .process__step-title {
    font-size: 1.5rem;
  }

  [dir="rtl"] .process__step-desc {
    font-size: 1.1rem;
  }

  [dir="rtl"] .contact__headline {
    font-size: clamp(2.25rem, 6.5vw, 4.75rem);
  }

  [dir="rtl"] .contact__subtitle {
    font-size: 1.05rem;
  }

  [dir="rtl"] .contact__email {
    font-size: clamp(1.375rem, 3.25vw, 2.125rem);
  }

  [dir="rtl"] .contact__brief-btn {
    font-size: 1.05rem;
  }

  [dir="rtl"] .contact__btn {
    font-size: 1.1rem;
  }

  [dir="rtl"] .testimonials__linkedin a {
    font-size: 1.05rem;
  }

  [dir="rtl"] .footer {
    font-size: 1.05rem;
  }

  [dir="rtl"] .header.is-scrolled .header-cta {
    font-size: 0.9rem;
  }

  [dir="rtl"] .lang-switcher__btn[data-lang="en"] {
    font-size: 0.8rem;
  }

  [dir="rtl"] .lang-switcher__btn[data-lang="fa"] {
    font-size: 0.85rem;
  }

  [dir="rtl"] .mobile-nav__links a {
    font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  }
}

@media (max-width: 480px) {
  [dir="rtl"] .intro__name {
    font-size: 3rem;
  }
}

@media (max-width: 360px) {
  [dir="rtl"] .intro__name {
    font-size: 2.75rem;
  }
}

@media (max-width: 767px) {
  [dir="rtl"] .modal__title {
    font-size: 1.5rem;
  }

  [dir="rtl"] .modal__subtitle {
    font-size: 1rem;
  }

  [dir="rtl"] .modal__tab {
    font-size: 0.95rem;
  }

  [dir="rtl"] .modal__label {
    font-size: 0.95rem;
  }

  [dir="rtl"] .modal__input,
  [dir="rtl"] .modal__textarea {
    font-size: 1rem;
  }

  [dir="rtl"] .modal__submit {
    font-size: 0.95rem;
  }

  [dir="rtl"] .modal__download-btn {
    font-size: 0.9rem;
  }

  [dir="rtl"] .modal__success-headline {
    font-size: 1.35rem;
  }

  [dir="rtl"] .modal__success-subtext {
    font-size: 1rem;
  }

  [dir="rtl"] .modal__success-close {
    font-size: 0.95rem;
  }

  [dir="rtl"] .modal__file-label,
  [dir="rtl"] .modal__file-name {
    font-size: 0.95rem;
  }
}
