@import "./fonts.css";
@import "./tokens.css";

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[lang="fa"] body {
  font-family: var(--font-fa);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.92;
}

:focus-visible {
  outline: 2px solid var(--accent-seo);
  outline-offset: 3px;
}

/* Skip link: fully clipped so it never widens the page (no off-screen -9999px). */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
  z-index: 10001;
  pointer-events: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  pointer-events: auto;
  width: auto;
  height: auto;
  clip-path: none;
  overflow: visible;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 1rem;
  background: #141414;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
}

html[dir="rtl"] .skip-link:focus,
html[dir="rtl"] .skip-link:focus-visible {
  left: auto;
  right: 0.75rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ----- Header (pixel-ref: EN/FA desktop + mobile bar + EN full-screen menu) ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-bar__center {
  min-width: 0;
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  justify-self: start;
  text-decoration: none;
  color: #ffffff;
  line-height: 1.2;
}

.brand:hover {
  opacity: 1;
}

html[lang="en"] .brand {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[lang="en"] .brand small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-subtitle-en);
}

html[lang="fa"] .brand {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0;
  text-transform: none;
}

html[lang="fa"] .brand small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-lang-inactive);
  letter-spacing: 0;
}

.nav-main {
  justify-self: center;
  display: none;
  align-items: center;
  gap: clamp(1.35rem, 2.8vw, 2.125rem);
}

@media (min-width: 960px) {
  .nav-main {
    display: flex;
  }
}

.nav-main a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-main a:hover {
  opacity: 0.78;
}

.header-util {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

@media (max-width: 959px) {
  .header-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    gap: 1rem;
    padding-inline: clamp(1rem, 4vw, 1.75rem);
  }

  .brand {
    justify-self: unset;
    flex: 0 1 auto;
    min-width: 0;
  }

  .header-bar__center {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Main bar: only brand + util → push controls to the far edge */
  .header-bar:not(:has(.header-bar__center)) .header-util {
    margin-inline-start: auto;
  }

  .header-util {
    justify-self: unset;
    flex: 0 0 auto;
    gap: clamp(1.75rem, 6vw, 2.75rem);
    flex-shrink: 0;
  }

  .lang-switch {
    gap: 0.52rem;
    padding-inline: 0.25rem;
  }

  .lang-switch__link {
    padding-block: 0.2rem;
  }

  .nav-toggle {
    margin-inline-start: 0;
  }

  .mobile-menu__top .header-util {
    gap: clamp(1.75rem, 6vw, 2.75rem);
  }
}

.lang-switch {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 0.8125rem;
  line-height: 1;
  user-select: none;
}

.lang-switch__slash {
  color: var(--color-lang-slash);
  font-weight: 400;
  margin-inline: 0.05em;
}

.lang-switch__link {
  color: var(--color-lang-inactive);
  font-weight: 400;
  text-decoration: none;
}

.lang-switch__link--inactive {
  color: var(--color-lang-inactive);
  font-weight: 400;
}

.lang-switch__link--active {
  color: #ffffff;
  font-weight: 700;
  cursor: default;
}

.lang-switch a.lang-switch__link--inactive:hover {
  color: #ffffff;
  opacity: 1;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.35rem;
  min-height: 2.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  color: #ffffff;
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-header:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.btn-header--desktop-only {
  display: none;
}

@media (min-width: 960px) {
  .btn-header--desktop-only {
    display: inline-flex;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.nav-toggle:hover {
  opacity: 0.85;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}

.hamburger__line {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}

.hamburger__line--short {
  width: 68%;
  align-self: flex-end;
}

html[dir="rtl"] .hamburger__line--short {
  align-self: flex-start;
}

/* Full-screen mobile menu (EN reference + mirrored for FA) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  flex-direction: column;
  background: #000000;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  direction: inherit;
}

.mobile-menu.is-open {
  display: flex;
}

@media (min-width: 960px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu__top {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.35rem, 4vh, 2rem);
  padding: 2rem var(--header-pad-x);
}

.mobile-menu__nav a:hover {
  opacity: 0.75;
}

.mobile-menu__bottom {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem var(--header-pad-x) max(2rem, env(safe-area-inset-bottom));
  gap: clamp(1.75rem, 5vh, 2.5rem);
}

.mobile-menu__bottom .btn-header {
  min-width: 11.5rem;
  padding: 0.65rem 1.5rem;
  font-weight: 400;
}

.mobile-menu__tel {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.mobile-menu__tel:hover {
  opacity: 0.85;
}

body.is-menu-open {
  overflow: hidden;
}

/* ----- Sections ----- */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head--row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .section-head--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-kicker {
  margin: 0 0 0.7rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

html[lang="fa"] .section-kicker {
  letter-spacing: 0.08em;
}

.section-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ----- Motion: reveal + subtle interactions ----- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.interactive-glow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.interactive-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    220px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0) 62%
  );
  opacity: var(--glow-opacity, 0);
  transition: opacity 180ms ease;
  z-index: 0;
}

.interactive-glow > * {
  position: relative;
  z-index: 1;
}

.dna-card,
.paradigm-card,
.skill-card,
.insights-display {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.dna-card:hover,
.paradigm-card:hover,
.skill-card:hover,
.insights-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.btn-header,
.work-view-btn {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.btn-header:hover,
.work-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .dna-card,
  .paradigm-card,
  .skill-card,
  .insights-display,
  .btn-header,
  .work-view-btn {
    transition: none !important;
  }
}

/* ----- Hero ----- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 10vw, 6.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html[dir="rtl"] .hero-grid {
    direction: rtl;
  }

  html[dir="ltr"] .hero-grid {
    direction: ltr;
  }
}

.hero-copy {
  max-width: 42rem;
}

.hero-title {
  margin: 0 0 1.875rem;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.3rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

html[lang="en"] .hero-title {
  text-transform: uppercase;
  letter-spacing: 0.012em;
  line-height: 1.28;
}

.hero-sub {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 34rem;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  line-height: 1.9;
}

.hero-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 0;
  aspect-ratio: 390 / 470;
  max-height: min(70vh, 470px);
  margin-inline: auto;
  width: clamp(250px, 28vw, 390px);
  max-width: 100%;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[lang="fa"] .hero-copy {
  max-width: 41rem;
  text-align: right;
}

html[lang="fa"] .hero-title {
  font-size: clamp(2.35rem, 1.6rem + 2.8vw, 3.9rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
}

html[lang="en"] .hero-copy {
  text-align: left;
}

@media (max-width: 899px) {
  .hero-copy {
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
  }
}

/* ----- DNA grid ----- */

.dna-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .dna-grid {
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: auto auto;
  }

  .dna-card--large {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .dna-card--s1 {
    grid-column: 2;
    grid-row: 1;
  }

  .dna-card--s2 {
    grid-column: 2;
    grid-row: 2;
  }

  html[dir="rtl"] .dna-grid {
    direction: rtl;
  }

  .dna-card--large {
    display: flex;
    flex-direction: column;
  }
}

.dna-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-lg);
}

.dna-card-kicker {
  margin: 0 0 0.65rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

html[lang="fa"] .dna-card-kicker {
  letter-spacing: 0.03em;
  text-transform: none;
}

.dna-card h3 {
  margin: 20px 0 0.75rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: 600;
}

.dna-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .dna-card--large h3 {
    margin-top: auto;
  }
}

/* ----- Works ----- */

.works-carousel {
  display: flex;
  gap: clamp(1rem, 2.4vw, 1.65rem);
  overflow-x: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
}

.works-hint {
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-muted);
  color: var(--color-text-muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.works-hint__icon {
  font-size: 0.88rem;
  opacity: 0.88;
}

.works-carousel::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .works-carousel {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect x='1' y='1' width='26' height='26' rx='13' fill='%23000000' stroke='%23454545'/%3E%3Cpath d='M6 14h16M6 14l3-3M6 14l3 3M22 14l-3-3M22 14l-3 3' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        14 14,
      ew-resize;
  }

  .works-carousel.is-dragging {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect x='1' y='1' width='26' height='26' rx='13' fill='%23000000' stroke='%23656565'/%3E%3Cpath d='M6 14h16M6 14l3-3M6 14l3 3M22 14l-3-3M22 14l-3 3' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        14 14,
      ew-resize;
    user-select: none;
  }
}

.work-card {
  flex: 0 0 min(88vw, 660px);
  scroll-snap-align: start;
}

.work-card__media {
  position: relative;
  margin-bottom: 24px;
}

.work-card__media img {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
}

.work-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.95rem;
}

.work-card__meta h3 {
  margin: 0;
  font-size: clamp(1.05rem, 0.98rem + 0.25vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}

.work-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.work-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #141414;
  padding: 0.42rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
}

.work-view-btn__icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}


html[lang="fa"] .work-card__meta h3 {
  text-align: right;
}

html[lang="fa"] .work-card__actions {
  justify-content: flex-start;
}

html[lang="fa"] .works-hint {
  direction: rtl;
}

@media (max-width: 899px) {
  .work-card {
    flex-basis: calc(100% - 3.25rem);
  }

  .work-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  html[lang="fa"] .work-card__meta {
    align-items: flex-end;
  }

  html[lang="fa"] .work-card__meta h3 {
    width: 100%;
    margin-inline-start: 0;
    text-align: right;
  }

  html[lang="fa"] .work-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .work-card {
    flex-basis: min(64vw, 760px);
  }
}

/* ----- Works modal ----- */

.works-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.works-modal.is-open {
  display: block;
}

.works-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.works-modal__dialog {
  position: relative;
  width: min(92vw, 1080px);
  max-height: min(88vh, 1000px);
  margin: 7.5vh auto;
  background: #050505;
  border: 1px solid var(--color-border-muted);
  border-radius: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}

@media (min-width: 900px) {
  .works-modal__dialog {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .works-modal__dialog::-webkit-scrollbar {
    display: none;
  }
}

.works-modal.works-modal--mobile .works-modal__dialog {
  width: min(92vw, 460px);
  max-height: min(88vh, 1000px);
}

.works-modal__close {
  position: fixed;
  top: clamp(0.85rem, 2.5vh, 1.35rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1202;
  min-height: 2.35rem;
  padding: 0.42rem 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  cursor: pointer;
}

.works-modal__close-icon {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.works-modal__close-label {
  white-space: nowrap;
}

 .works-modal__viewport {
  max-height: none;
  overflow: visible;
  border-radius: 16px;
}

.works-modal__viewport img {
  width: 100%;
  height: auto;
  display: block;
}

.works-modal.works-modal--mobile .works-modal__viewport img {
  width: 100%;
  margin-inline: 0;
}

/* Better desktop UX for viewing long mobile mockups */
.works-modal.works-modal--mobile .works-modal__dialog {
  background: transparent;
  border: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.works-modal.works-modal--mobile .works-modal__dialog::-webkit-scrollbar {
  display: none;
}

.works-modal.works-modal--mobile .works-modal__viewport {
  width: min(92vw, 380px);
  margin-inline: auto;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 0.7rem;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.works-modal.works-modal--mobile .works-modal__viewport img {
  border-radius: 20px;
}

@media (max-width: 640px) {
  .works-modal__close {
    top: max(0.6rem, env(safe-area-inset-top));
    min-height: 2.2rem;
    padding-inline: 0.84rem;
  }

  .works-modal.works-modal--mobile .works-modal__viewport {
    width: min(92vw, 420px);
    border-radius: 22px;
    padding: 0.5rem;
  }

  .works-modal.works-modal--mobile .works-modal__viewport img {
    border-radius: 16px;
  }
}

body.is-modal-open {
  overflow: hidden;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
}

.pill--solid {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

/* ----- ROI ----- */

.roi-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5.5rem);
}

@media (min-width: 900px) {
  .roi-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.42fr);
    align-items: start;
  }
}

.roi-sticky {
  position: relative;
}

.roi-head {
  margin-bottom: 0;
}

.roi-head .section-kicker {
  margin-bottom: 1rem;
}

.roi-head .section-title {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 3rem);
  letter-spacing: -0.02em;
}

.roi-head .section-lead {
  margin-top: 1.1rem;
  max-width: 33rem;
  font-size: 0.97rem;
  line-height: 1.8;
}

.roi-rail {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 8vh, 5.5rem);
}

.roi-block {
  color: rgba(255, 255, 255, var(--roi-alpha, 0.24));
  transition: color 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.roi-block--active {
  --roi-alpha: 0.98;
}

.roi-block h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 1.08rem + 0.55vw, 1.72rem);
  font-weight: 700;
  line-height: 1.35;
}

.roi-block p {
  margin: 0 0 1rem;
  max-width: none;
  font-size: clamp(0.93rem, 0.88rem + 0.2vw, 1.02rem);
  line-height: 1.78;
  color: currentColor;
}

.roi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.roi-block .pill {
  color: currentColor;
  border-color: rgba(255, 255, 255, 0.24);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.43rem 0.95rem;
}

@media (min-width: 900px) {
  .roi-sticky {
    position: sticky;
    top: clamp(5.5rem, 14vh, 8.75rem);
  }

  .roi-rail {
    padding-top: clamp(1rem, 4vh, 2.1rem);
  }
}

html[dir="rtl"] .roi-head .section-lead {
  margin-inline-start: auto;
}

html[dir="rtl"] .roi-block p {
  margin-inline-start: auto;
}

@media (max-width: 899px) {
  .roi-rail {
    gap: 2.1rem;
  }

  .roi-head .section-title {
    font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.1rem);
  }
}

/* ----- Paradigm ----- */

.paradigm-carousel {
  display: flex;
  gap: clamp(1rem, 2.4vw, 1.65rem);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
}

.paradigm-carousel::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .paradigm-carousel {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect x='1' y='1' width='26' height='26' rx='13' fill='%23000000' stroke='%23454545'/%3E%3Cpath d='M6 14h16M6 14l3-3M6 14l3 3M22 14l-3-3M22 14l-3 3' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      14 14,
    ew-resize;
  }

  .paradigm-carousel.is-dragging {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect x='1' y='1' width='26' height='26' rx='13' fill='%23000000' stroke='%23656565'/%3E%3Cpath d='M6 14h16M6 14l3-3M6 14l3 3M22 14l-3-3M22 14l-3 3' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      14 14,
    ew-resize;
    user-select: none;
  }
}

.paradigm-card {
  flex: 0 0 min(88vw, 760px);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-lg);
}

.paradigm-card h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.3rem, 1.18rem + 0.4vw, 1.7rem);
  font-weight: 600;
}

.paradigm-card h4 {
  margin: -0.25rem 0 0.95rem;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.paradigm-card p {
  margin: 0 0 1.25rem;
  font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1.03rem);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.paradigm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 899px) {
  .paradigm-card {
    flex-basis: calc(100% - 3.25rem);
  }
}

@media (min-width: 900px) {
  .paradigm-card {
    flex-basis: min(64vw, 760px);
  }
}

/* ----- Skills ----- */

.skills-grid {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.15rem);
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.skill-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.05rem, 2.2vw, 1.35rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 0;
  border-inline-start: 2px solid var(--color-border-muted);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.skill-card-icon {
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1.05rem;
  padding: 0.55rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.skill-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-card h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.12rem, 1.02rem + 0.2vw, 1.28rem);
  font-weight: 700;
  color: #ffffff;
}

.skill-card p {
  margin: 0;
  flex: 1;
  font-size: clamp(0.88rem, 0.84rem + 0.12vw, 0.96rem);
  color: var(--color-text-muted);
  line-height: 1.72;
}

.skill-card--marketing {
  border-inline-start-color: rgba(224, 47, 118, 0.75);
}

.skill-card--marketing .skill-card-icon {
  background: rgba(224, 47, 118, 0.14);
}

.skill-card--seo {
  border-inline-start-color: rgba(0, 184, 230, 0.75);
}

.skill-card--seo .skill-card-icon {
  background: rgba(0, 184, 230, 0.14);
}

.skill-card--business {
  border-inline-start-color: rgba(227, 167, 41, 0.75);
}

.skill-card--business .skill-card-icon {
  background: rgba(227, 167, 41, 0.14);
}

.skill-card--tech {
  border-inline-start-color: rgba(0, 187, 87, 0.75);
}

.skill-card--tech .skill-card-icon {
  background: rgba(0, 187, 87, 0.14);
}

/* ----- Insights ----- */

.insights-layout {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.8rem);
}

@media (min-width: 900px) {
  .insights-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    align-items: start;
  }
}

.insights-head {
  margin-bottom: 1.2rem;
}

.insights-head .section-title {
  font-size: clamp(1.78rem, 1.38rem + 1.45vw, 2.7rem);
}

.insights-list {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.insight-item {
  width: 100%;
  text-align: start;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  padding: 0.9rem 0;
  font: inherit;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  transition: color 220ms ease, padding-inline-start 220ms ease;
}

.insight-item:last-child {
  border-bottom: 0;
}

.insight-item:hover,
.insight-item.is-active {
  color: #ffffff;
}

html[dir="ltr"] .insight-item:hover,
html[dir="ltr"] .insight-item.is-active {
  padding-inline-start: 0.25rem;
}

.insights-display {
  position: relative;
  min-height: clamp(230px, 30vw, 300px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  overflow: hidden;
}

.insight-panel {
  position: absolute;
  inset: clamp(1.1rem, 2.4vw, 1.7rem);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.insight-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.insight-panel h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.22rem, 1.12rem + 0.4vw, 1.55rem);
  line-height: 1.35;
}

.insight-panel p {
  margin: 0 0 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
}

.insight-panel blockquote {
  margin: 0;
  padding-inline-start: 0.75rem;
  border-inline-start: 2px solid rgba(255, 255, 255, 0.72);
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.88rem, 0.83rem + 0.2vw, 0.98rem);
  line-height: 1.75;
}

@media (max-width: 899px) {
  .insights-display {
    min-height: 280px;
  }

  .insight-item {
    padding-block: 0.8rem;
    font-size: 1.04rem;
  }
}

/* ----- Footer ----- */

.site-footer {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--color-border-muted);
}

.footer-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    align-items: start;
    width: 100%;
  }

  html[dir="rtl"] .footer-grid {
    direction: rtl;
  }
}

@media (min-width: 768px) {
  html[dir="ltr"] .footer-grid > :nth-child(1) {
    justify-self: start;
  }

  html[dir="ltr"] .footer-grid > :nth-child(2) {
    justify-self: center;
  }

  html[dir="ltr"] .footer-grid > :nth-child(3) {
    justify-self: end;
  }

  html[dir="rtl"] .footer-grid > :nth-child(1) {
    justify-self: end;
  }

  html[dir="rtl"] .footer-grid > :nth-child(2) {
    justify-self: center;
  }

  html[dir="rtl"] .footer-grid > :nth-child(3) {
    justify-self: start;
  }
}

.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[lang="fa"] .footer-brand {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
}

.footer-tagline {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 30rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.footer-col p,
.footer-col a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.footer-col a:hover {
  color: var(--color-text);
}

.status-available {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.status-available .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-tech);
  box-shadow: 0 0 12px var(--accent-tech);
}

.footer-copy {
  margin: 2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-muted);
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

@media (max-width: 900px) {
  .footer-tagline {
    font-size: 0.9rem;
  }

  .footer-col p,
  .footer-col a {
    font-size: 1.02rem;
  }

  .status-available {
    font-size: 0.9rem;
  }
}

html[lang="fa"] .footer-copy {
  text-align: center;
}

@media (min-width: 768px) {
  html[lang="fa"] .footer-copy {
    text-align: start;
  }
}
