:root {

  color-scheme: dark;
  --card: #1b1915;
  --line: rgba(234, 214, 174, 0.16);
  --text: #f7f1e7;
  --muted: #bdb2a0;
  --gold: #d9b66f;
  --gold-2: #fff0be;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 28px;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  line-height: 1.6;
}
body.nav-open {
  overflow: hidden;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #111;
  padding: 0.7rem 1rem;
  border-radius: 99px;
  z-index: 1000;
}
.skip-link:focus {
  top: 1rem;
}
.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(13, 13, 11, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(217, 182, 111, 0.18),
    rgba(255, 255, 255, 0.04)
  );
  color: var(--gold-2);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.site-nav a {
  transition: 0.2s;
}
.site-nav a:hover {
  color: var(--text);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px auto;
  transition: 0.2s;
}
.section {
  padding: 112px 0;
}
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 76px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(32, 12, 184, 0.04), transparent 45%),
    radial-gradient(
      circle at 76% 30%,
      rgba(217, 182, 111, 0.16),
      transparent 23rem
    );
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.88fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}
.hero h1,
.section-copy h2,
.section-head h2,
.contact-panel h2 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.hero h1 {
  font-size: clamp(1rem, 8vw, 4rem);
  max-width: 820px;
}
.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 1.5rem 0 2rem;
}
.hero-actions,
.contact-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: 0.22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1b160d;
  border-color: transparent;
  font-weight: 800;
}
.btn-soft {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.btn:hover {
  transform: translateY(-2px);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 2.8rem 0 0;
  padding: 0;
  max-width: 680px;
}
.stats div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}
.stats dt {
  font-size: 1.35rem;
  color: var(--gold-2);
  font-weight: 800;
}
.stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.portrait-card {
  position: relative;
  border-radius: var(--radius);
  padding: 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(217, 182, 111, 0.35),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: var(--shadow);
}
.portrait-card img {
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: calc(var(--radius) - 10px);
  filter: saturate(0.92) contrast(1.03);
}
.floating-card {
  position: absolute;
  max-width: 190px;
  padding: 0.9rem 1rem;
  background: rgba(20, 18, 15, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  font-size: 0.82rem;
  box-shadow: var(--shadow);
}
.card-one {
  left: -1rem;
  bottom: 12%;
}
.card-two {
  right: -1rem;
  top: 10%;
}
.split-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.image-frame img {
  aspect-ratio: 4/5;
  object-fit: cover;
}
.section-copy h2,
.section-head h2,
.contact-panel h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}
.section-copy p,
.contact-panel p {
  color: var(--muted);
  max-width: 650px;
}
.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.feature-list div,
.service-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 22px;
  padding: 1.15rem;
}
.feature-list strong {
  display: block;
  color: var(--gold-2);
  margin-bottom: 0.25rem;
}
.feature-list span {
  color: var(--muted);
}
.section-muted {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.015)
  );
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  max-width: 760px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.service-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.22s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 182, 111, 0.45);
}
.service-card span {
  color: var(--gold);
  font-weight: 600;
}
.service-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  margin: 2rem 0 0.7rem;
}
.service-card p {
  color: var(--muted);
  margin: 0;
}
.filter-tabs {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.filter-tabs button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
}
.filter-tabs button.active {
  background: var(--gold);
  color: #19150e;
  border-color: transparent;
  font-weight: 800;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.project-card {
  position: relative;
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.project-card img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  transition: 0.35s;
}
.project-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
  z-index: 1;
}
.project-card div {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
}
.project-card p {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}
.project-card h3 {
  margin: 0.25rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}
.project-card:hover img {
  transform: scale(1.06);
}
.project-card.is-hidden {
  display: none;
}
.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 5vw, 3rem);
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(217, 182, 111, 0.14),
      transparent 18rem
    ),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}
.site-footer {
  padding: 1.5rem 0;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner p {
  margin: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1024px) {
  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    max-width: 620px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-panel {
    grid-template-columns: 1fr;
  }
  .section-head {
    display: block;
  }
  .section {
    padding: 88px 0;
  }
  .hero {
    padding-top: 120px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 68px;
  }
  .brand-text {
    letter-spacing: 0.12em;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    background: rgba(18, 17, 14, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }
  .nav-open .site-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .nav-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  .site-nav a {
    padding: 0.85rem;
    border-radius: 14px;
  }
  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.8rem);
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .cards-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .project-card,
  .project-card img {
    min-height: 420px;
  }
  .floating-card {
    position: static;
    margin-top: 0.7rem;
    max-width: none;
  }
  .card-one,
  .card-two {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .portrait-card {
    padding: 0.6rem;
  }
  .hero-actions,
  .contact-actions {
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .footer-inner {
    display: grid;
  }
  .section {
    padding: 72px 0;
  }
}
@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }
  .project-card,
  .project-card img {
    min-height: 340px;
  }
  .service-card {
    min-height: auto;
  }
  .section-copy h2,
  .section-head h2,
  .contact-panel h2 {
    font-size: 2.15rem;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.68rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.lang-switch button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1b160d;
}
.section-intro {
  max-width: 680px;
  color: var(--muted);
  margin: -0.8rem 0 2rem;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.timeline-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.2rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.02)
  );
  transition: 0.22s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}
.timeline-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 182, 111, 0.52);
}
.timeline-card span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1b160d;
  font-weight: 900;
}
.timeline-card small {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.timeline-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.05;
  margin: 1.2rem 0 0.45rem;
}
.timeline-card p {
  margin: 0;
  color: var(--muted);
}
.detail-main {
  min-height: 100svh;
  padding-top: 76px;
}
.detail-shell {
  max-width: 900px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 5vw, 3.3rem);
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(217, 182, 111, 0.13),
      transparent 18rem
    ),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}
.back-link {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--gold);
  font-weight: 800;
}
.detail-shell h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
}
.detail-company {
  font-size: 1.1rem;
  color: var(--gold-2);
  margin: 1rem 0 2rem;
}
.detail-body {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1.04rem;
}
.detail-body p {
  margin: 0;
}
.detail-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
html[dir="rtl"] body {
  font-family: Tahoma, Arial, system-ui, sans-serif;
  letter-spacing: 0;
}
html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-copy h2,
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .contact-panel h2,
html[dir="rtl"] .timeline-card h3,
html[dir="rtl"] .detail-shell h1 {
  font-family: Georgia, Tahoma, serif;
  letter-spacing: -0.02em;
}
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .timeline-card small {
  text-transform: none;
  letter-spacing: 0.04em;
}
html[dir="rtl"] .site-nav {
  direction: rtl;
}
html[dir="rtl"] .brand {
  direction: ltr;
}
html[dir="rtl"] .footer-inner,
html[dir="rtl"] .section-head {
  text-align: right;
}
html[dir="rtl"] .back-link {
  direction: rtl;
}
@media (max-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .header-actions {
    gap: 0.35rem;
  }
  .lang-switch button {
    padding: 0.38rem 0.55rem;
  }
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  .timeline-card {
    min-height: 190px;
  }
  .detail-main {
    padding-top: 68px;
  }
  .detail-actions .btn {
    width: 100%;
  }
}

/* v3 refinements */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.lang-switch {
  order: -1;
  gap: 0.15rem;
  padding: 0.16rem;
  background: rgba(255, 255, 255, 0.028);
}
.lang-switch button {
  padding: 0.32rem 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.site-nav {
  margin-left: auto;
}
.section-head {
  align-items: flex-start;
}
.section-head h2 {
  text-align: left;
}
.timeline-card {
  min-height: 190px;
  justify-content: flex-start;
  gap: 0.75rem;
}
.timeline-card span {
  display: none !important;
}
.timeline-card small {
  margin-bottom: 0.35rem;
}
.timeline-card h3 {
  margin: 0.4rem 0 0.35rem;
}
.section-intro {
  display: none !important;
}
html[dir="rtl"] .section-head h2 {
  text-align: right;
}
html[dir="rtl"] .header-actions {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] .site-nav {
  margin-left: 0;
  margin-right: auto;
}
@media (max-width: 760px) {
  .site-header {
    padding-inline: 12px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-text {
    font-size: 0.82rem;
  }
  .lang-switch {
    position: static;
  }
  .lang-switch button {
    padding: 0.3rem 0.44rem;
    font-size: 0.64rem;
  }
  .header-actions {
    gap: 0.25rem;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
  }
  .site-nav {
    margin-left: 0;
  }
}
.lang-switch {
  position: fixed;
  left: max(12px, calc((100vw - var(--max)) / 2));
  top: 86px;
  z-index: 120;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}
html[dir="rtl"] .lang-switch {
  left: max(12px, calc((100vw - var(--max)) / 2));
  right: auto;
}
.header-actions {
  margin-left: 0;
}
.site-nav {
  margin-left: auto;
}
@media (max-width: 760px) {
  .lang-switch {
    top: 76px;
    left: 12px;
  }
}

/* v4 refinements */
.brand-area {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  z-index: 130;
}
.brand-mark {
  display: none !important;
}
.brand {
  gap: 0;
}
.brand-text {
  font-size: 0.9rem;
}
.lang-switch {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: auto;
  box-shadow: none;
  backdrop-filter: blur(12px);
  margin: 0;
  order: 0;
}
.header-actions {
  margin-left: auto !important;
  margin-right: 0 !important;
}
.site-nav {
  margin-left: auto !important;
  margin-right: 0 !important;
}
main:not(.detail-main) section:not(.hero) .eyebrow {
  display: none !important;
}
html[dir="rtl"] .brand-area {
  direction: ltr;
}
html[dir="rtl"] .header-actions {
  margin-left: 0 !important;
  margin-right: auto !important;
}
html[dir="rtl"] .site-nav {
  margin-left: 0 !important;
  margin-right: auto !important;
}
@media (max-width: 760px) {
  .brand-area {
    gap: 0.45rem;
  }
  .brand-text {
    font-size: 0.78rem;
  }
  .lang-switch button {
    padding: 0.28rem 0.42rem;
    font-size: 0.62rem;
  }
  .site-nav {
    inset: 68px 12px auto 12px;
  }
}

/* v5 premium glass navigation + resume detail art */
.site-header {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  height: 72px;
  padding: 0 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.105),
    rgba(255, 255, 255, 0.045)
  );
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  transition:
    height 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.site-header.is-scrolled {
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(18, 17, 14, 0.72),
    rgba(255, 255, 255, 0.055)
  );
  border-color: rgba(217, 182, 111, 0.24);
  box-shadow:
    0 18px 62px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.brand-area {
  gap: 0.8rem !important;
}
.brand-text {
  letter-spacing: 0.18em !important;
}
.lang-switch {
  border-color: rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.site-nav a {
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after {
  width: 58%;
}
.site-nav a.active {
  color: var(--gold-2);
}
body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.detail-layout {
  max-width: 1120px !important;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: stretch;
  gap: clamp(1.2rem, 4vw, 3rem);
  overflow: hidden;
}
.detail-content {
  position: relative;
  z-index: 2;
}
.detail-art {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(217, 182, 111, 0.24),
      transparent 10rem
    ),
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.025)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 70px rgba(0, 0, 0, 0.26);
}
.detail-art::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(217, 182, 111, 0.22);
  border-radius: 42% 58% 48% 52%;
  filter: blur(0.1px);
}
.detail-art::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -70px;
  background: radial-gradient(
    circle,
    rgba(217, 182, 111, 0.22),
    transparent 65%
  );
}
.gold-orbit {
  position: absolute;
  inset: 76px 34px auto auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(217, 182, 111, 0.48);
  box-shadow: 0 0 70px rgba(217, 182, 111, 0.12);
}
.gold-orbit::before,
.gold-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  inset: 24px;
  transform: rotate(28deg) scaleX(0.72);
}
.gold-orbit::after {
  inset: 58px;
  background: rgba(217, 182, 111, 0.11);
  border-color: rgba(217, 182, 111, 0.18);
  transform: none;
}
.line-art {
  position: absolute;
  width: min(86%, 340px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%);
  fill: none;
  stroke: rgba(245, 226, 176, 0.72);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 16px rgba(217, 182, 111, 0.18));
}
.glass-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(10, 10, 9, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glass-note span {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.glass-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
}
.glass-note small {
  color: var(--muted);
}
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-art {
    min-height: 320px;
    order: -1;
  }
  .gold-orbit {
    inset: 36px 28px auto auto;
  }
  .line-art {
    width: min(70%, 300px);
  }
}
@media (max-width: 760px) {
  .site-header {
    top: max(10px, env(safe-area-inset-top));
    width: calc(100% - 22px);
    height: 62px;
    border-radius: 26px;
    padding-inline: 0.75rem;
  }
  .site-header.is-scrolled {
    height: 56px;
  }
  .site-nav {
    top: 82px;
    inset: 82px 11px auto 11px !important;
    border-radius: 28px !important;
    background: linear-gradient(
      150deg,
      rgba(18, 17, 14, 0.88),
      rgba(255, 255, 255, 0.07)
    ) !important;
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    z-index: 130;
  }
  .detail-main {
    padding-top: 82px !important;
  }
  .detail-art {
    min-height: 280px;
  }
  .glass-note {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .site-header,
  .site-nav,
  .glass-note {
    background: rgba(18, 17, 14, 0.94) !important;
  }
}

/* v6: keep glass menu visually centered in both EN and FA */
.site-header {
  direction: ltr !important;
  justify-content: initial !important;
}
.site-header .brand-area {
  order: 1;
  flex: 0 0 auto;
}
.site-header .site-nav {
  order: 2;
  position: absolute;
  left: 50% !important;
  right: auto !important;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
  direction: ltr !important;
  justify-content: center;
  white-space: nowrap;
}
.site-header .header-actions {
  order: 3;
  margin-left: auto !important;
  margin-right: 0 !important;
}
html[dir="rtl"] .site-header .site-nav,
html[dir="rtl"] .site-header .header-actions,
html[dir="rtl"] .site-header .brand-area {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html[dir="rtl"] .site-header .header-actions {
  margin-left: auto !important;
}
@media (max-width: 760px) {
  .site-header .site-nav {
    position: fixed !important;
    left: 11px !important;
    right: 11px !important;
    top: 82px !important;
    transform: translateY(-8px) !important;
    direction: inherit !important;
    white-space: normal;
  }
  .nav-open .site-nav {
    transform: none !important;
  }
}

/* v8 final polish: readable Persian typography, stable centered header, safer image crops */
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea {
  font-family:
    Vazirmatn, IRANSansX, Peyda, Tahoma, Arial, system-ui, sans-serif !important;
}
html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-copy h2,
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .contact-panel h2,
html[dir="rtl"] .timeline-card h3,
html[dir="rtl"] .detail-shell h1,
html[dir="rtl"] .service-card h3,
html[dir="rtl"] .project-card h3 {
  font-family:
    Vazirmatn, IRANSansX, Peyda, Tahoma, Arial, system-ui, sans-serif !important;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
html[dir="rtl"] .hero-text,
html[dir="rtl"] p,
html[dir="rtl"] .detail-body {
  line-height: 2;
}

@media (min-width: 761px) {
  .site-header {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) auto minmax(140px, 1fr) !important;
    align-items: center !important;
  }
  .site-header .brand-area {
    grid-column: 1;
    justify-self: start;
    margin: 0 !important;
  }
  .site-header .site-nav {
    grid-column: 2;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    justify-self: center;
    margin: 0 !important;
    direction: ltr !important;
  }
  .site-header .header-actions {
    grid-column: 3;
    justify-self: end;
    margin: 0 !important;
  }
  html[dir="rtl"] .site-header .site-nav,
  html[dir="rtl"] .site-header .brand-area,
  html[dir="rtl"] .site-header .header-actions {
    margin: 0 !important;
  }
}

.project-card {
  min-height: auto !important;
  aspect-ratio: 4 / 5;
}
.project-card img {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover;
  object-position: center;
}
.project-card[data-category="web"] img,
.project-card[data-category="brand"] img {
  object-position: center top;
}
@media (max-width: 760px) {
  .project-card {
    aspect-ratio: 3 / 4;
  }
  .project-card,
  .project-card img {
    min-height: 0 !important;
  }
}

.detail-art {
  min-height: 480px;
}
.detail-art .glass-note strong {
  letter-spacing: 0.12em;
}
html[dir="rtl"] .back-link {
  direction: rtl;
}

/* v9: navy luxury theme + premium resume redesign */
:root {
  --card: #0f2237;
  --line: rgba(218, 189, 128, 0.18);
  --text: #f7f3ea;
  --muted: #b9c2cf;
  --gold: #d7b36a;
  --gold-2: #fff0bf;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}
body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) !important;
}
.site-header,
.site-nav,
.nav-open .site-nav {
  background: rgba(7, 17, 31, 0.68) !important;
  border-color: rgba(255, 255, 255, 0.13) !important;
}
.section#resume {
  position: relative;
  overflow: hidden;
}
.section#resume::before {
  content: "";
  position: absolute;
  inset: 8% 5% auto auto;
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(215, 179, 106, 0.12),
    transparent 66%
  );
  pointer-events: none;
}
.timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}
.timeline-card {
  position: relative;
  min-height: 190px;
  padding: 1.45rem;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.025)
    ),
    linear-gradient(180deg, rgba(15, 34, 55, 0.92), rgba(7, 17, 31, 0.88));
  border: 1px solid rgba(218, 189, 128, 0.16);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}
.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.72;
}
html[dir="rtl"] .timeline-card::before {
  left: auto;
  right: 0;
}
.timeline-card::after {
  content: "View details →";
  position: absolute;
  left: 1.45rem;
  bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
}
html[dir="rtl"] .timeline-card::after {
  content: "مشاهده جزئیات ←";
  left: auto;
  right: 1.45rem;
  letter-spacing: 0;
}
.timeline-card:hover {
  transform: translateY(-7px);
  border-color: rgba(215, 179, 106, 0.5);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}
.timeline-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.timeline-card small {
  width: max-content;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(215, 179, 106, 0.1);
  border: 1px solid rgba(215, 179, 106, 0.18);
  color: var(--gold-2);
}
.timeline-card h3 {
  max-width: 84%;
  margin-top: 1.45rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}
.timeline-card p {
  max-width: 86%;
  margin-bottom: 1.75rem;
}
.detail-shell {
  max-width: 1120px;
  background:
    radial-gradient(
      circle at 90% 8%,
      rgba(215, 179, 106, 0.14),
      transparent 22rem
    ),
    radial-gradient(
      circle at 8% 90%,
      rgba(82, 125, 185, 0.13),
      transparent 24rem
    ),
    rgba(7, 17, 31, 0.72) !important;
  border-color: rgba(218, 189, 128, 0.2) !important;
}
.detail-content {
  position: relative;
  z-index: 2;
}
.detail-company {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(218, 189, 128, 0.18);
  background: rgba(215, 179, 106, 0.08);
}
.detail-body {
  max-width: 680px;
  color: #d5deea;
}
.detail-body p {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}
.detail-art {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(15, 34, 55, 0.58);
  border-color: rgba(218, 189, 128, 0.2);
}
.detail-art::before {
  background: radial-gradient(
    circle,
    rgba(215, 179, 106, 0.2),
    transparent 62%
  );
}
.line-art path {
  stroke-width: 1.25;
}
.glass-note {
  background: rgba(7, 17, 31, 0.54);
}
@media (max-width: 900px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  .timeline-card {
    min-height: 170px;
  }
}
@media (max-width: 760px) {
  .timeline-card h3,
  .timeline-card p {
    max-width: 100%;
  }
  .timeline-card::after {
    opacity: 1;
    transform: none;
  }
}

.resume-cinema {
  position: relative;
  overflow: visible;
  padding-top: clamp(3.75rem, 6vw, 6.5rem);
}

.resume-cinema::before {
  display: none;
}

.resume-cinema::after {
  display: none;
}

.resume-head {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.resume-head h2 {
  max-width: 900px;
  margin-inline: auto;
  letter-spacing: -0.055em;
  font-size: clamp(2.55rem, 7vw, 6.2rem);
  line-height: 0.95;
  background: linear-gradient(105deg, #fffaf0 5%, #d7b36a 48%, #88a4c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  max-width: 760px;
  margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.85;
}

.resume-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  margin-top: clamp(2.4rem, 5vw, 4.5rem);
  padding: clamp(1rem, 2vw, 1.2rem);
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 6px 18px rgba(3, 12, 30, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(26px);
  isolation: isolate;
}

.resume-orbit {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.resume-orbit span {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(215, 179, 106, 0.16);
  transform: rotate(-18deg);
}

.resume-orbit span:nth-child(1) {
  width: 44rem;
  height: 18rem;
  left: -12rem;
  top: 18%;
}

.resume-orbit span:nth-child(2) {
  width: 34rem;
  height: 12rem;
  right: -9rem;
  bottom: 8%;
  border-color: rgba(144, 170, 207, 0.16);
}

.resume-orbit span:nth-child(3) {
  width: 22rem;
  height: 22rem;
  left: 32%;
  top: -12rem;
  border-color: rgba(255, 255, 255, 0.07);
}

.resume-feature-card {
  position: sticky;
  top: 9rem;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 28% 42%,
      rgba(103, 138, 196, 0.2),
      transparent 13rem
    ),
    linear-gradient(155deg, rgba(17, 36, 61, 0.98), rgba(11, 27, 50, 0.98));
  border: 1px solid rgba(215, 179, 106, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.resume-feature-card::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(215, 179, 106, 0.14);
  box-shadow: 0 0 0 54px rgba(255, 255, 255, 0.018);
}

@keyframes sorielFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateX(-50%) translateY(-16px) rotate(5deg);
  }
}

.feature-kicker,
.resume-node em {
  color: var(--gold-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resume-feature-card h3 {
  position: relative;
  z-index: 2;
  margin: 0.8rem 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.resume-feature-card p {
  position: relative;
  z-index: 2;
  color: #d6dfeb;
  line-height: 1.8;
}

.resume-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.resume-metrics span {
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.resume-metrics strong,
.resume-metrics small {
  display: block;
}

.resume-metrics strong {
  color: #fff4cc;
  font-size: 1.4rem;
  margin-top: 0.08rem;
}

.resume-metrics small {
  color: var(--muted);
  margin-top: 2rem;
  font-size: 0.9rem;
}

.resume-path {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 0.25rem;
}

.resume-path::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  left: 2.1rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(215, 179, 106, 0.55),
    rgba(137, 166, 212, 0.2),
    transparent
  );
}

html[dir="rtl"] .resume-path::before {
  left: auto;
  right: 2.1rem;
}

.resume-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 118px;
  padding: 1.1rem 1.2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  overflow: hidden;
}

.resume-node::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    115deg,
    rgba(215, 179, 106, 0.18),
    transparent 34%,
    rgba(133, 164, 209, 0.12)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.resume-node > * {
  position: relative;
  z-index: 1;
}

.resume-node:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(215, 179, 106, 0.36);
  background: rgba(255, 255, 255, 0.072);
}

.resume-node:hover::before {
  opacity: 1;
}

.resume-node.is-featured {
  min-height: 148px;
  background:
    linear-gradient(
      135deg,
      rgba(215, 179, 106, 0.16),
      rgba(255, 255, 255, 0.045)
    ),
    rgba(255, 255, 255, 0.055);
  border-color: rgba(215, 179, 106, 0.28);
}

.node-year {
  min-width: 7.4rem;
  color: var(--gold-2);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.node-index {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  color: #fff7d7;
  font-weight: 900;
  background:
    radial-gradient(
      circle at 35% 28%,
      rgba(255, 255, 255, 0.28),
      transparent 38%
    ),
    rgba(215, 179, 106, 0.18);
  border: 1px solid rgba(215, 179, 106, 0.28);
  box-shadow: 0 0 0 8px rgba(215, 179, 106, 0.045);
}

.resume-node h3 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.05rem, 1.7vw, 1.52rem);
  letter-spacing: -0.035em;
}

.resume-node p {
  margin: 0.35rem 0 0;
  max-width: none;
  color: var(--muted);
}

.resume-node em {
  white-space: nowrap;
  font-style: normal;
  opacity: 0.8;
}

html[dir="rtl"] .resume-head,
html[dir="rtl"] .resume-feature-card,
html[dir="rtl"] .resume-node {
  text-align: right;
}

html[dir="rtl"] .resume-node {
  grid-template-columns: auto 4.5rem minmax(0, 1fr) auto;
}

html[dir="rtl"] .feature-kicker,
html[dir="rtl"] .resume-node em {
  letter-spacing: 0;
}

/* v10 detail page: cinematic Apple-style case page */
.detail-cinema-section {
  padding-top: 9rem;
}

.detail-cinema {
  position: relative;
}

.detail-back {
  display: inline-flex;
  margin-bottom: 1.1rem;
}

.detail-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  min-height: 660px;
  padding: clamp(1.15rem, 2.4vw, 1.8rem);
  border-radius: 44px;
  background:
    radial-gradient(
      circle at 78% 22%,
      rgba(215, 179, 106, 0.15),
      transparent 24rem
    ),
    radial-gradient(
      circle at 16% 82%,
      rgba(99, 138, 199, 0.15),
      transparent 25rem
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(6, 16, 30, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 42px 130px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(28px);
  overflow: hidden;
}

.detail-hero-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.12),
    transparent 28%,
    rgba(215, 179, 106, 0.08) 70%,
    transparent
  );
  pointer-events: none;
}

.detail-copy {
  align-self: end;
  padding: clamp(1rem, 3vw, 2.2rem);
}

.detail-copy h1 {
  max-width: 780px;
  margin: 0.9rem 0 1rem;
  font-size: clamp(2.7rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  background: linear-gradient(105deg, #fffaf0 5%, #d7b36a 56%, #87a7d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.detail-copy .detail-company {
  margin-bottom: 1.4rem;
}

.detail-copy .detail-body {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.detail-copy .detail-body p {
  margin: 0;
  padding: 1.05rem 1.1rem;
  border-radius: 22px;
  color: #dce5f1;
  background: rgba(255, 255, 255, 0.048);
  border: 1px solid rgba(255, 255, 255, 0.085);
}

.detail-apple-art {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 44% 30%,
      rgba(255, 224, 156, 0.26),
      transparent 12rem
    ),
    radial-gradient(
      circle at 60% 72%,
      rgba(92, 134, 201, 0.19),
      transparent 15rem
    ),
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.026)
    );
  border: 1px solid rgba(215, 179, 106, 0.18);
}

.detail-device {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  width: min(19rem, 75%);
  padding: 1.2rem;
  border-radius: 28px;
  background: rgba(5, 13, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.detail-device span,
.detail-device strong,
.detail-device small {
  display: block;
}

.detail-device span {
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-device strong {
  margin-top: 0.3rem;
  letter-spacing: 0.12em;
}

.detail-device small {
  margin-top: 0.45rem;
  color: var(--muted);
}

.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(215, 179, 106, 0.18);
  transform: rotate(-22deg);
}

.ring-one {
  width: 25rem;
  height: 13rem;
}

.ring-two {
  width: 18rem;
  height: 18rem;
  border-color: rgba(136, 166, 207, 0.16);
  transform: rotate(28deg);
}

.premium-line {
  position: relative;
  z-index: 2;
  width: min(23rem, 84%);
  opacity: 0.92;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.premium-line path {
  fill: none;
  stroke: url(#goldGradient);
  stroke: #d7b36a;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1020px) {
  .resume-stage,
  .detail-hero-panel {
    grid-template-columns: 1fr;
  }

  .resume-feature-card {
    position: relative;
    top: auto;
    min-height: 430px;
  }

  .detail-apple-art {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .resume-head {
    text-align: start;
  }

  .resume-head h2 {
    letter-spacing: -0.045em;
  }

  .resume-stage {
    border-radius: 30px;
    padding: 0.7rem;
  }

  .resume-feature-card {
    min-height: 390px;
    border-radius: 26px;
  }

  .resume-feature-card::before {
    width: 14rem;
    height: 14rem;
  }

  .resume-metrics {
    grid-template-columns: 1fr;
  }

  .resume-path::before {
    display: none;
  }

  .resume-node,
  html[dir="rtl"] .resume-node {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    min-height: auto;
    padding: 1.1rem;
  }

  .node-year {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .node-index {
    grid-row: 2;
    grid-column: 2;
    width: 2.9rem;
    height: 2.9rem;
  }

  .resume-node div {
    grid-row: 2;
    grid-column: 1;
  }

  .resume-node em {
    grid-column: 1 / -1;
  }

  .detail-cinema-section {
    padding-top: 7rem;
  }

  .detail-hero-panel {
    min-height: auto;
    border-radius: 30px;
    padding: 0.75rem;
  }

  .detail-copy h1 {
    font-size: clamp(2.25rem, 13vw, 4rem);
  }

  .detail-apple-art {
    min-height: 360px;
    border-radius: 26px;
  }
}

/* v11: multi-page polish + cleaner resume details */
.inner-page {
  padding-top: 7.75rem;
}

.detail-copy h1 {
  font-size: clamp(2rem, 5.2vw, 4.6rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.052em !important;
  overflow-wrap: anywhere;
}

html[dir="rtl"] .detail-copy h1 {
  letter-spacing: -0.025em !important;
  line-height: 1.18 !important;
}

.detail-actions {
  display: none !important;
}

@media (max-width: 720px) {
  .inner-page {
    padding-top: 6.5rem;
  }

  .detail-copy h1 {
    font-size: clamp(1.95rem, 10vw, 3.25rem) !important;
    line-height: 1.05 !important;
  }
}

/* ===== SORIEL Premium v13 additions ===== */
.brand-manifesto {
  padding-top: clamp(3rem, 7vw, 7rem);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.manifesto-grid h2 {
  margin-top: -0.22rem;
  font-size: clamp(2.3rem, 6.2vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  max-width: 980px;
  background: linear-gradient(105deg, #fff8e7 0%, #d9b86f 48%, #8ea9ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto-text {
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
  line-height: 1.9;
}
.section-head-left {
  text-align: left;
  align-items: flex-start;
}
.section-head-left h2 {
  max-width: 850px;
  margin-top: -0.2rem;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}
.capability-card {
  min-height: 260px;
  padding: clamp(1.2rem, 2vw, 1.65rem);
  border-radius: 30px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.capability-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% -30%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(216, 179, 105, 0.25),
    transparent 65%
  );
  opacity: 0;
  transition: 0.45s ease;
}
.capability-card:hover::after {
  opacity: 1;
  transform: translateY(-12%);
}
.capability-card span {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}
.capability-card h3 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.35rem, 2.3vw, 2.2rem);
  line-height: 1.05;
  margin-top: auto;
}
.capability-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.75;
  margin: 1rem 0 0;
}
.split-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}
.inline-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 179, 105, 0.35);
  padding-bottom: 0.4rem;
  white-space: nowrap;
}
.home-work-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.home-work-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
}
.home-work-card.large {
  grid-row: span 2;
  min-height: 500px;
}
.home-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 0.75s ease;
}
.home-work-card:hover img {
  transform: scale(1.045);
}
.home-work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 8, 17, 0.85));
}
.home-work-card span {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.25rem;
  z-index: 1;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 600;
}
.journey-preview {
  position: relative;
  min-height: 420px;
  border-radius: 42px;
  padding: clamp(2rem, 5vw, 4.5rem);
  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(216, 179, 105, 0.22),
      transparent 28rem
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.025)
    );
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.journey-preview::after {
  content: "";
  position: absolute;
  width: 42rem;
  height: 42rem;
  border: 1px solid rgba(216, 179, 105, 0.12);
  border-radius: 50%;
  right: -18rem;
  top: -18rem;
  box-shadow:
    0 0 0 6rem rgba(255, 255, 255, 0.015),
    0 0 0 12rem rgba(255, 255, 255, 0.01);
}
.journey-preview h2 {
  position: relative;
  z-index: 1;
  max-width: 920px;
  font-size: clamp(2.3rem, 5.5vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.journey-preview p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.05rem;
  margin: 1.2rem 0 1.5rem;
}
.journey-preview .btn {
  position: relative;
  z-index: 1;
}
html[dir="rtl"] .section-head-left {
  text-align: right;
  align-items: flex-end;
}
html[dir="rtl"] .manifesto-text {
  text-align: right;
}
html[dir="rtl"] .home-work-card span {
  left: 1.4rem;
  right: 1.4rem;
  text-align: right;
}
@media (max-width: 900px) {
  .manifesto-grid,
  .capability-grid,
  .home-work-grid {
    grid-template-columns: 1fr;
  }
  .home-work-card.large {
    min-height: 360px;
  }
  .split-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v13 Crystal Edition — sculpted motion object */
.resume-orbit {
  display: none;
}
.resume-feature-card {
  min-height: 620px;
  justify-content: flex-end;
}
.resume-feature-card::before {
  content: "";
  position: absolute;
  width: min(74%, 360px);
  aspect-ratio: 1 / 1.06;
  left: 50%;
  top: 8%;
  transform: translateX(-50%) rotate(-10deg);
  border-radius: 34% 66% 46% 54% / 44% 38% 62% 56%;
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.92),
      rgba(255, 255, 255, 0.22) 13%,
      transparent 23%
    ),
    radial-gradient(
      circle at 65% 38%,
      rgba(217, 184, 111, 0.7),
      transparent 31%
    ),
    radial-gradient(
      circle at 36% 72%,
      rgba(105, 140, 197, 0.55),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22),
      rgba(13, 34, 60, 0.42) 42%,
      rgba(216, 179, 105, 0.28)
    );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 20px 18px 50px rgba(255, 255, 255, 0.08),
    inset -30px -30px 60px rgba(1, 7, 17, 0.55),
    0 45px 120px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(216, 179, 105, 0.12);
  backdrop-filter: blur(10px);
  animation: crystalFloat 9s ease-in-out infinite;
}
.resume-feature-card::after {
  content: "";
  position: absolute;
  width: min(62%, 300px);
  aspect-ratio: 1 / 0.42;
  left: 50%;
  top: 27%;
  transform: translateX(-50%) rotate(-10deg);
  border-radius: 50%;
  border: 1px solid rgba(216, 179, 105, 0.28);
  box-shadow:
    0 0 0 2.6rem rgba(216, 179, 105, 0.025),
    0 0 0 5.2rem rgba(144, 170, 207, 0.018);
  animation: ringDrift 12s linear infinite;
}
@keyframes crystalFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-10deg) scale(1);
    border-radius: 34% 66% 46% 54% / 44% 38% 62% 56%;
  }
  50% {
    transform: translateX(-50%) translateY(-18px) rotate(7deg) scale(1.035);
    border-radius: 58% 42% 62% 38% / 38% 58% 42% 62%;
  }
}
@keyframes ringDrift {
  to {
    transform: translateX(-50%) rotate(350deg);
  }
}
.resume-feature-card > * {
  position: relative;
  z-index: 2;
}

/* ===== SORIEL Signature Crystal v14 refinements ===== */
:root {
  --card: rgba(255, 255, 255, 0.055);
  --line: rgba(232, 200, 126, 0.16);
  --gold: #d9b66f;
  --gold-2: #fff1c7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 78%,
    rgba(0, 0, 0, 0.36) 100%
  );
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 75%);
}
.site-header {
  background: rgba(63, 84, 109, 0.16) !important;
  -webkit-backdrop-filter: blur(24px) saturate(135%) !important;
  backdrop-filter: blur(24px) saturate(135%) !important;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  border-radius: 999px !important;
  width: min(calc(100% - 32px), 1180px) !important;
  left: 50% !important;
  right: auto !important;
  top: 18px !important;
  transform: translateX(-50%) !important;
  padding-inline: 18px !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 70px rgba(0, 0, 0, 0.12) !important;
}
.hero {
  padding-top: 110px;
}
.hero-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.72fr) !important;
}
.hero-media {
  min-height: 560px;
  display: grid;
  place-items: center;
}
.signature-crystal {
  position: relative;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 45px 90px rgba(0, 0, 0, 0.35));
}
.crystal-core {
  position: absolute;
  width: 58%;
  aspect-ratio: 0.9/1;
  clip-path: polygon(
    50% 0,
    82% 16%,
    100% 48%,
    72% 100%,
    28% 100%,
    0 48%,
    18% 16%
  );
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(144, 180, 222, 0.34) 26%,
    rgba(9, 32, 58, 0.55) 58%,
    rgba(218, 182, 105, 0.42)
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 18px 16px 40px rgba(255, 255, 255, 0.14),
    inset -24px -28px 60px rgba(0, 0, 0, 0.45),
    0 0 90px rgba(216, 179, 105, 0.16);
  animation: crystalBreath 9s ease-in-out infinite;
}
.crystal-core::before {
  content: "";
  position: absolute;
  inset: 12%;
  clip-path: polygon(
    50% 0,
    78% 18%,
    91% 52%,
    64% 88%,
    34% 90%,
    9% 52%,
    22% 18%
  );
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.38),
    transparent 34%,
    rgba(217, 182, 111, 0.18) 68%,
    transparent
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.crystal-facet {
  position: absolute;
  width: 34%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 241, 199, 0.75),
    transparent
  );
  transform-origin: center;
}
.facet-one {
  transform: rotate(33deg) translateY(-92px);
}
.facet-two {
  transform: rotate(-41deg) translateY(84px);
}
.crystal-ring {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 182, 111, 0.23);
  border-radius: 50%;
  transform: rotateX(70deg) rotateZ(-18deg);
  animation: crystalRing 14s linear infinite;
}
.ring-b {
  width: 70%;
  border-color: rgba(135, 170, 215, 0.2);
  animation-duration: 18s;
  animation-direction: reverse;
}
.crystal-spark {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fff1c7;
  box-shadow: 0 0 30px rgba(255, 241, 199, 0.8);
}
.spark-one {
  top: 24%;
  right: 22%;
  animation: sparkDrift 5s ease-in-out infinite;
}
.spark-two {
  bottom: 26%;
  left: 24%;
  animation: sparkDrift 6.8s ease-in-out infinite reverse;
}
@keyframes crystalBreath {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg) scale(1);
  }
  50% {
    transform: translateY(-18px) rotate(4deg) scale(1.025);
  }
}
@keyframes crystalRing {
  to {
    transform: rotateX(70deg) rotateZ(342deg);
  }
}
@keyframes sparkDrift {
  50% {
    transform: translate3d(12px, -18px, 0);
    opacity: 0.55;
  }
}
.manifesto-grid {
  align-items: center;
}
.manifesto-side {
  position: relative;
  display: grid;
  gap: 1.6rem;
}
.micro-sculpture {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1.7;
  justify-self: end;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.11);
  overflow: hidden;
}
.micro-sculpture::before {
  content: "";
  position: absolute;
  width: 12rem;
  aspect-ratio: 1;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  clip-path: polygon(
    50% 0,
    85% 20%,
    100% 55%,
    68% 100%,
    28% 94%,
    0 52%,
    17% 18%
  );
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5),
    rgba(111, 151, 204, 0.18),
    rgba(217, 182, 111, 0.35)
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: crystalBreath 11s ease-in-out infinite;
}
.micro-sculpture span {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 182, 111, 0.55),
    transparent
  );
  left: 12%;
  right: 12%;
}
.micro-sculpture span:nth-child(1) {
  top: 30%;
  transform: rotate(-12deg);
}
.micro-sculpture span:nth-child(2) {
  top: 55%;
  transform: rotate(8deg);
}
.micro-sculpture span:nth-child(3) {
  top: 72%;
  transform: rotate(-4deg);
}
.capability-card {
  transition:
    transform 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    background 0.45s ease;
}
.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(255, 241, 199, 0.18),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      rgba(217, 182, 111, 0.18),
      rgba(103, 139, 191, 0.08) 45%,
      rgba(255, 255, 255, 0.04)
    );
  opacity: 0;
  transition: opacity 0.45s ease;
}
.capability-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 182, 111, 0.34);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}
.capability-card:hover::before {
  opacity: 1;
}
.capability-card > span {
  display: none !important;
}
.reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.9s ease,
    filter 0.9s ease,
    transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}
.about-story-block p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.02rem;
  margin: 0 0 1rem;
}
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 15% 0%,
    rgba(217, 182, 111, 0.14),
    transparent 38%
  );
  opacity: 0;
  transition: 0.4s ease;
}
.service-card:hover::after {
  opacity: 1;
}
.resume-ornament {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  opacity: 0.9;
}
.resume-ornament span:nth-child(1),
.resume-ornament span:nth-child(3) {
  width: 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 182, 111, 0.55));
}
.resume-ornament span:nth-child(2) {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(217, 182, 111, 0.72);
  transform: rotate(45deg);
  background: rgba(217, 182, 111, 0.08);
}
html[dir="rtl"] .resume-ornament {
  justify-content: flex-end;
}
.career-crystal {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: min(75%, 340px);
  aspect-ratio: 1;
  z-index: 1;
}
.career-crystal span:nth-child(1) {
  position: absolute;
  inset: 13%;
  clip-path: polygon(
    50% 0,
    88% 23%,
    96% 60%,
    61% 100%,
    25% 88%,
    0 48%,
    22% 14%
  );
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72),
    rgba(134, 172, 218, 0.26) 36%,
    rgba(217, 182, 111, 0.36)
  );
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 16px 18px 36px rgba(255, 255, 255, 0.11),
    inset -22px -26px 55px rgba(0, 0, 0, 0.35),
    0 26px 90px rgba(0, 0, 0, 0.28);
  animation: careerCrystal 10s ease-in-out infinite;
}
.career-crystal span:nth-child(2),
.career-crystal span:nth-child(3) {
  position: absolute;
  height: 1px;
  left: 18%;
  right: 18%;
  top: 42%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 241, 199, 0.7),
    transparent
  );
  transform: rotate(28deg);
}
.career-crystal span:nth-child(3) {
  top: 57%;
  transform: rotate(-34deg);
  opacity: 0.65;
}
.career-crystal i {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(217, 182, 111, 0.17);
  border-radius: 50%;
  transform: rotateX(66deg) rotateZ(-20deg);
  animation: crystalRing 16s linear infinite;
}
.resume-feature-card {
  overflow: hidden;
}
.resume-feature-card::before,
.resume-feature-card::after {
  display: none !important;
}
.resume-feature-card > :not(.career-crystal) {
  position: relative;
  z-index: 2;
}
@keyframes careerCrystal {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-16px) rotate(5deg);
  }
}
.resume-node {
  position: relative;
  overflow: hidden;
}
.resume-node::before {
  content: "GUARDIAN";
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: rgba(255, 241, 199, 0);
  transform: translateY(-8px);
  transition: 0.42s ease;
}
.resume-node::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(217, 182, 111, 0.1),
    rgba(255, 255, 255, 0.04),
    transparent
  );
  transform: translateX(-110%);
  transition: transform 0.75s ease;
}
.resume-node:hover::before {
  color: rgba(255, 241, 199, 0.72);
  transform: translateY(0);
}
.resume-node:hover::after {
  transform: translateX(110%);
}
.resume-node > * {
  position: relative;
  z-index: 1;
}
html[dir="rtl"] .resume-node::before {
  right: auto;
  left: 1.2rem;
}
.workTitle,
[data-i18n="workTitle"] {
  background: linear-gradient(105deg, #fff8e7, #e4c579 42%, #7fa4d5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.contact-panel {
  display: grid;
  gap: 2rem;
}
.contact-form {
  grid-column: 1 / -1;
  padding: clamp(1.1rem, 3vw, 2rem);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  outline: none;
  transition: 0.25s ease;
}
.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}
.message-field {
  margin: 1rem 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(217, 182, 111, 0.55);
  box-shadow: 0 0 0 4px rgba(217, 182, 111, 0.08);
}
.signature-footer {
  padding: 0 0 2rem;
  background: transparent;
  border: 0;
}
.footer-signature {
  border-radius: 42px;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(217, 182, 111, 0.18),
      transparent 26rem
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.025)
    );
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-call {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}
.footer-call h2 {
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-top: clamp(2rem, 6vw, 5rem);
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.footer-links a {
  color: var(--gold);
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .site-header {
    top: 10px !important;
    width: min(calc(100% - 20px), 1180px) !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-media {
    min-height: 380px;
  }
  .signature-crystal {
    width: min(78vw, 420px);
  }
  .form-grid,
  .footer-meta {
    grid-template-columns: 1fr;
    display: grid;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.3rem;
  }
}
/* Remove the dark capsule behind nav items; keep glass header only. */
.site-nav,
.nav-open .site-nav {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.site-nav a {
  background: transparent !important;
}

.hero-media {
  position: relative;
  isolation: isolate;
}

.hero-media::before {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(217, 182, 111, 0.16), transparent 57%),
    radial-gradient(
      circle at 68% 32%,
      rgba(92, 140, 202, 0.18),
      transparent 42%
    );
  filter: blur(18px);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.5s ease;
  z-index: -1;
}

.signature-crystal {
  width: min(39vw, 500px) !important;
  aspect-ratio: 1 / 1.04 !important;
  filter: drop-shadow(0 44px 90px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 44px rgba(217, 182, 111, 0.1)) !important;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.5s ease;
}

.crystal-core {
  width: 72% !important;
  aspect-ratio: 0.86 / 1 !important;
  clip-path: none !important;
  border-radius: 36% 64% 43% 57% / 48% 34% 66% 52% !important;
  background:
    radial-gradient(
      circle at 27% 21%,
      rgba(255, 255, 255, 0.72),
      transparent 18%
    ),
    radial-gradient(
      circle at 69% 33%,
      rgba(226, 193, 117, 0.56),
      transparent 28%
    ),
    radial-gradient(
      circle at 36% 77%,
      rgba(83, 124, 187, 0.45),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22),
      rgba(10, 31, 55, 0.58) 46%,
      rgba(217, 182, 111, 0.24)
    ) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 24px 18px 58px rgba(255, 255, 255, 0.11),
    inset -38px -42px 86px rgba(0, 0, 0, 0.42),
    0 38px 118px rgba(0, 0, 0, 0.42),
    0 0 70px rgba(217, 182, 111, 0.12) !important;
  backdrop-filter: blur(16px) saturate(1.25);
  animation: sorielSignatureFloat 12s ease-in-out infinite !important;
}

.crystal-core::before {
  inset: 10% 16% 12% 13% !important;
  clip-path: none !important;
  border-radius: 50% 50% 42% 58% / 38% 45% 55% 62% !important;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.42),
    transparent 28%,
    rgba(217, 182, 111, 0.16) 58%,
    transparent 78%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.crystal-facet {
  width: 52% !important;
  opacity: 0.68;
}

.facet-one {
  transform: rotate(24deg) translateY(-118px) !important;
}
.facet-two {
  transform: rotate(-31deg) translateY(105px) !important;
}

.crystal-ring {
  width: 88% !important;
  border-color: rgba(217, 182, 111, 0.18) !important;
  transform: rotateX(68deg) rotateZ(-26deg) !important;
}

.ring-b {
  width: 64% !important;
  border-color: rgba(134, 169, 213, 0.16) !important;
}

@keyframes sorielSignatureFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg) scale(1);
    border-radius: 36% 64% 43% 57% / 48% 34% 66% 52%;
  }
  50% {
    transform: translateY(-20px) rotate(5deg) scale(1.018);
    border-radius: 58% 42% 62% 38% / 36% 58% 42% 64%;
  }
}

.manifesto-grid h2 {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: var(--text) !important;
}

.manifesto-side {
  min-height: 360px;
  place-items: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(217, 182, 111, 0.13),
      transparent 17rem
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.018)
    );
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.manifesto-side .manifesto-text {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 0;
}

.micro-sculpture {
  position: absolute !important;
  inset: 50% auto auto 50%;
  width: min(72%, 310px) !important;
  aspect-ratio: 1.45 !important;
  transform: translate(-50%, -50%);
  justify-self: center !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 0 !important;
  opacity: 0.72;
}

.micro-sculpture::before {
  width: 14rem !important;
  right: auto !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) rotate(-12deg) !important;
  clip-path: none !important;
  border-radius: 44% 56% 62% 38% / 42% 44% 56% 58% !important;
  background:
    radial-gradient(
      circle at 28% 24%,
      rgba(255, 255, 255, 0.42),
      transparent 20%
    ),
    radial-gradient(
      circle at 70% 42%,
      rgba(217, 182, 111, 0.3),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      rgba(92, 135, 196, 0.16),
      rgba(217, 182, 111, 0.12)
    ) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  filter: blur(0.2px);
  animation: sorielMicroFloat 13s ease-in-out infinite !important;
}

@keyframes sorielMicroFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-12deg) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotate(8deg) translateY(-10px);
  }
}

/* Capability cards: gradient over the whole card, not just text. */
.capability-card::before {
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(255, 241, 199, 0.2),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      rgba(217, 182, 111, 0.2),
      rgba(103, 139, 191, 0.12) 48%,
      rgba(255, 255, 255, 0.05)
    ) !important;
}

/* Selected works: reduce crop, let the whole artwork breathe. */
.home-work-card {
  display: grid;
  place-items: center;
  padding: clamp(0.8rem, 2vw, 1.25rem);
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 255, 255, 0.06),
      transparent 15rem
    ),
    rgba(255, 255, 255, 0.035) !important;
}

.home-work-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 22px;
  transform: scale(0.96);
}

.home-work-card:hover img {
  transform: scale(0.99) !important;
}

.home-work-card::after {
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(3, 8, 17, 0.78)
  ) !important;
}

/* Home footer: keep only the call and a clean bottom signature. */
.signature-footer .footer-meta,
.signature-footer .footer-links {
  display: none !important;
}

.footer-bottom-clean {
  margin-top: clamp(2rem, 5vw, 4rem) !important;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .signature-crystal {
    width: min(78vw, 400px) !important;
  }
  .manifesto-side {
    min-height: 300px;
  }
  .home-work-card img {
    transform: scale(0.93);
  }
}

/* bg main */
body.crystal-edition {
  background:
    radial-gradient(
      circle at 14% 8%,
      rgba(217, 182, 111, 0.08),
      transparent 30rem
    ),
    radial-gradient(
      circle at 82% 4%,
      rgba(157, 175, 184, 0.08),
      transparent 32rem
    ),
    radial-gradient(
      circle at 50% 105%,
      rgba(95, 92, 179, 0.04),
      transparent 30rem
    ),
    linear-gradient(145deg, #122134 35%, #152a48 45%, #071222 80%) !important;

  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: scroll !important;
}

.hero-bg {
  background:
    radial-gradient(
      circle at 72% 35%,
      rgba(216, 179, 105, 0.12),
      transparent 23rem
    ),
    radial-gradient(
      circle at 60% 25%,
      rgba(95, 139, 198, 0.09),
      transparent 31rem
    ),
    linear-gradient(
      135deg,
      transparent,
      rgba(255, 255, 255, 0.018) 52%,
      transparent
    ) !important;
}

.signature-crystal,
.crystal-core,
.crystal-facet,
.crystal-ring,
.crystal-spark {
  display: none !important;
}

.snowflake-system {
  position: relative;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.55s ease;
  filter: drop-shadow(0 48px 100px rgba(0, 0, 0, 0.42));
}

.luxury-snowflake {
  width: 76%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: snowflakeBreath 14s ease-in-out infinite;
  opacity: 0.95;
}

.luxury-snowflake .snowflake-arms {
  stroke-width: 2.1;
}

.luxury-snowflake .arm path:nth-child(1) {
  stroke-width: 2.25;
}

.luxury-snowflake .arm path:not(:first-child) {
  stroke-width: 1.45;
  opacity: 0.82;
}

.orbit {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 179, 105, 0.24);
  border-radius: 50%;
  transform: rotateX(69deg) rotateZ(-18deg);
  animation: orbitDrift 22s linear infinite;
}

.orbit-soft {
  width: 68%;
  border-color: rgba(112, 151, 203, 0.18);
  animation-duration: 28s;
  animation-direction: reverse;
}

.orbit i {
  position: absolute;
  width: 0.68rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff1c7;
  box-shadow:
    0 0 18px rgba(255, 241, 199, 0.82),
    0 0 40px rgba(216, 179, 105, 0.28);
}

.orbit-main i:nth-child(1) {
  top: 9%;
  left: 19%;
}
.orbit-main i:nth-child(2) {
  right: 8%;
  bottom: 23%;
  width: 0.86rem;
}
.orbit-soft i {
  left: 7%;
  bottom: 28%;
  width: 0.48rem;
  opacity: 0.72;
}

.storm-halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: conic-gradient(
    from 120deg,
    transparent,
    rgba(216, 179, 105, 0.18),
    transparent 34%,
    rgba(255, 255, 255, 0.05),
    transparent 68%
  );
  filter: blur(10px);
  opacity: 0.75;
  animation: haloSweep 18s linear infinite;
  z-index: -1;
}

.halo-two {
  inset: 2%;
  opacity: 0.34;
  animation-duration: 30s;
  animation-direction: reverse;
}

.hero-media::after {
  content: "";
  position: absolute;
  width: min(52vw, 720px);
  height: 7rem;
  right: -12%;
  top: 48%;
  transform: rotate(-20deg);
  background: linear-gradient(
    60deg,
    transparent,
    rgba(216, 179, 105, 0.18),
    rgba(255, 255, 255, 0.06)
  );
  filter: blur(22px);
  opacity: 0.48;
  pointer-events: none;
  z-index: -1;
  left: 35%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
}

@keyframes snowflakeBreath {
  0%,
  100% {
    transform: translateY(0) rotateZ(-2deg) rotateX(0deg) scale(1);
  }
  50% {
    transform: translateY(-15px) rotateZ(4deg) rotateX(7deg) scale(1.018);
  }
}

@keyframes orbitDrift {
  to {
    transform: rotateX(69deg) rotateZ(342deg);
  }
}

@keyframes haloSweep {
  to {
    transform: rotate(360deg);
  }
}

/* Manifesto correction: no gradient on the P; graphic centered with it. */
.manifesto-grid h2 {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: var(--text) !important;
}

.manifesto-side {
  min-height: 360px;
  place-items: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(217, 182, 111, 0.13),
      transparent 17rem
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.018)
    );
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.micro-sculpture {
  position: absolute !important;
  inset: 50% auto auto 50%;
  width: min(70%, 290px) !important;
  aspect-ratio: 1.45 !important;
  transform: translate(-50%, -50%);
  justify-self: center !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 0 !important;
  opacity: 0.68;
}

.micro-sculpture::before {
  width: 13rem !important;
  right: auto !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) rotate(-12deg) !important;
  clip-path: none !important;
  border-radius: 44% 56% 62% 38% / 42% 44% 56% 58% !important;
  background:
    radial-gradient(
      circle at 28% 24%,
      rgba(255, 255, 255, 0.34),
      transparent 20%
    ),
    radial-gradient(
      circle at 70% 42%,
      rgba(217, 182, 111, 0.24),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.09),
      rgba(92, 135, 196, 0.14),
      rgba(217, 182, 111, 0.1)
    ) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  animation: sorielMicroFloat 13s ease-in-out infinite !important;
}

/* Project images should breathe and show more of the artwork. */
.home-work-card img {
  object-fit: contain !important;
  transform: scale(0.94) !important;
}
.home-work-card:hover img {
  transform: scale(0.98) !important;
}

@media (max-width: 900px) {
  .snowflake-system {
    width: min(82vw, 430px);
  }
  .luxury-snowflake {
    width: 78%;
  }
  .orbit {
    width: 88%;
  }
  .hero-media::after {
    width: 100vw;
    right: -35%;
    opacity: 0.35;
  }
}

/* ===== SORIEL Home v15.1 exact direction pass ===== */
@media (min-width: 761px) {
  .site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.4rem !important;
  }
  .site-header .brand-area {
    flex: 0 0 auto !important;
    order: 1 !important;
  }
  .site-header .site-nav {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    justify-content: flex-end !important;
    order: 2 !important;
    gap: clamp(0.9rem, 1.6vw, 1.55rem) !important;
  }
  .site-header .header-actions {
    order: 3 !important;
    flex: 0 0 auto !important;
  }
}

/* Snowflake: more dimensional, closer to the generated visual with gold/navy refraction and orbiting points. */
.snowflake-system {
  width: min(43vw, 570px) !important;
  filter: drop-shadow(0 54px 110px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 52px rgba(216, 179, 105, 0.16)) !important;
}
.luxury-snowflake {
  width: 78% !important;
  opacity: 0.98 !important;
  overflow: visible;
  animation: snowflakeBreath 15s ease-in-out infinite !important;
}
.flake-core path,
.flake-core polygon {
  stroke-width: 1.08;
  vector-effect: non-scaling-stroke;
}
.orbit {
  width: 89% !important;
  border-color: rgba(216, 179, 105, 0.27) !important;
  box-shadow: 0 0 34px rgba(216, 179, 105, 0.07);
}
.orbit-soft {
  width: 70% !important;
  border-color: rgba(136, 169, 213, 0.2) !important;
}
.orbit-main i:nth-child(1) {
  top: 8% !important;
  left: 18% !important;
}
.orbit-main i:nth-child(2) {
  right: 7% !important;
  bottom: 22% !important;
}
.storm-halo {
  opacity: 0.62 !important;
}

/* Add a subtle gradient only to the manifesto sentence. */
.manifesto-grid h2 {
  background: linear-gradient(
    105deg,
    #fff8e7 0%,
    #e2c16f 36%,
    #a9c2e2 76%,
    #fff7df 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: 0 0 42px rgba(216, 179, 105, 0.08);
}

/* Remove gradients from card titles; keep the card hover gradient only. */
.capability-card h3,
.capability-card h3 span,
.capability-card [data-i18n] {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}
.capability-card h3 {
  color: var(--text) !important;
}

/* More elegant selected-work framing: smaller visual frames and less crop. */
.home-work-grid {
  max-width: 1060px;
  margin-inline: auto;
  grid-template-columns: 1fr 0.82fr !important;
  gap: clamp(0.9rem, 1.7vw, 1.25rem) !important;
}
.home-work-card {
  min-height: 210px !important;
  padding: clamp(1.05rem, 2.2vw, 1.55rem) !important;
  border-radius: 30px !important;
}
.home-work-card.large {
  min-height: 445px !important;
}
.home-work-card img {
  object-fit: contain !important;
  transform: scale(0.9) !important;
  max-width: 100%;
  max-height: 100%;
}
.home-work-card:hover img {
  transform: scale(0.935) !important;
}
.home-work-card::after {
  background: linear-gradient(
    180deg,
    transparent 66%,
    rgba(3, 8, 17, 0.8)
  ) !important;
}

/* Detach copyright line from the Let's Create card. */
.signature-footer {
  padding-bottom: 2.2rem !important;
}
.footer-signature {
  margin-bottom: clamp(1.3rem, 3vw, 2.2rem) !important;
}
.footer-detached {
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
  padding-top: 1rem !important;
  margin-top: 0 !important;
  color: var(--muted) !important;
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .home-work-grid {
    grid-template-columns: 1fr !important;
  }
  .home-work-card.large {
    min-height: 360px !important;
  }
  .snowflake-system {
    width: min(84vw, 420px) !important;
  }
}

/* ===== v15.2 — exact uploaded snowflake reference on Home ===== */
.exact-snowflake-system {
  width: min(47vw, 660px) !important;
  aspect-ratio: 677 / 511 !important;
  display: block !important;
  position: relative !important;
  filter: drop-shadow(0 46px 105px rgba(0, 0, 0, 0.48)) !important;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) !important;
  transition: transform 0.55s ease !important;
}

.snowflake-reference {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  background: transparent !important;
  mix-blend-mode: screen;
  opacity: 0.98;
  -webkit-mask-image: radial-gradient(
    ellipse at 51% 50%,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.86) 72%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse at 51% 50%,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.86) 72%,
    transparent 100%
  );
}

.exact-snowflake-system .storm-halo,
.exact-snowflake-system .orbit,
.exact-snowflake-system .luxury-snowflake {
  display: none !important;
}

/* Keep the selected-work image frame equal to the actual artwork proportions. */
.home-work-grid {
  align-items: start !important;
}

.home-work-card {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.home-work-card.large {
  min-height: 0 !important;
  grid-row: auto !important;
}

.home-work-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  transform: none !important;
}

.home-work-card:hover img {
  transform: scale(1.035) !important;
}

.home-work-card:nth-child(1) {
  aspect-ratio: 1122 / 1402;
}
.home-work-card:nth-child(2) {
  aspect-ratio: 941 / 1672;
}
.home-work-card:nth-child(3) {
  aspect-ratio: 1195 / 1400;
}

.home-work-card:nth-child(1) img,
.home-work-card:nth-child(2) img,
.home-work-card:nth-child(3) img {
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 900px) {
  .exact-snowflake-system {
    width: min(92vw, 520px) !important;
  }
  .home-work-card:nth-child(1),
  .home-work-card:nth-child(2),
  .home-work-card:nth-child(3) {
    aspect-ratio: auto !important;
  }
  .home-work-card:nth-child(1) img,
  .home-work-card:nth-child(2) img,
  .home-work-card:nth-child(3) img {
    height: auto !important;
    object-fit: contain !important;
  }
}

.hero h1 {
  font-size: clamp(3.15rem, 8.9vw, 5.2rem) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.052em !important;
}

/* Cleaner selected works placement: balanced three-item editorial row. */
.home-showcase {
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem) !important;
}

.home-work-grid {
  max-width: 1180px !important;
  margin: clamp(1.6rem, 3vw, 2.4rem) auto 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.84fr) minmax(0, 1.03fr) !important;
  grid-template-rows: none !important;
  align-items: start !important;
  gap: clamp(1rem, 2vw, 1.45rem) !important;
}

.home-work-card,
.home-work-card.large {
  grid-row: auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

.home-work-card:nth-child(1) {
  aspect-ratio: 1122 / 1402 !important;
}
.home-work-card:nth-child(2) {
  aspect-ratio: 941 / 1672 !important;
}
.home-work-card:nth-child(3) {
  aspect-ratio: 1195 / 1400 !important;
}

.home-work-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transform: scale(1) !important;
  transition:
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.75s ease !important;
}

.home-work-card:hover img {
  transform: scale(1.045) !important;
}

.home-work-card span {
  font-size: clamp(0.98rem, 1.45vw, 1.28rem) !important;
  bottom: 1.05rem !important;
}

/* Bring the journey preview closer to the selected visuals. */
.home-journey {
  padding-top: clamp(2rem, 4vw, 3.6rem) !important;
}

.journey-preview {
  min-height: 390px !important;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(3rem, 14.5vw, 5rem) !important;
    line-height: 0.98 !important;
  }

  .home-work-grid {
    grid-template-columns: 1fr !important;
    max-width: min(520px, 100%) !important;
  }

  .home-work-card:nth-child(1),
  .home-work-card:nth-child(2),
  .home-work-card:nth-child(3) {
    aspect-ratio: auto !important;
  }

  .home-work-card img {
    height: auto !important;
    object-fit: contain !important;
  }

  .home-journey {
    padding-top: 2.2rem !important;
  }
}

/* Replace the temporary snowflake image with a soft glass signature object. */
.exact-snowflake-system,
.snowflake-system,
.snowflake-reference {
  display: none !important;
}

.glass-signature-system {
  width: min(42vw, 520px) !important;
  aspect-ratio: 1 / 1 !important;
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  isolation: isolate !important;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) !important;
  transition: transform 0.55s ease !important;
}

.glass-signature-system::before {
  content: "";
  position: absolute;
  width: 112%;
  height: 112%;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 50% 55%,
      rgba(232, 199, 122, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(115, 154, 205, 0.12),
      transparent 52%
    );
  filter: blur(28px);
  opacity: 0.82;
  z-index: -2;
}

.glass-signature-system::after {
  content: "";
  position: absolute;
  width: 78%;
  height: 15%;
  bottom: 9%;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(232, 199, 122, 0.3),
    rgba(80, 115, 160, 0.1) 46%,
    transparent 72%
  );
  filter: blur(18px);
  opacity: 0.34;
  z-index: -1;
}

.glass-signature-shape {
  width: 72%;
  height: 72%;
  position: relative;
  transform-style: preserve-3d;
  animation: glassFloat 13s ease-in-out infinite;
}

.glass-signature-shape::before,
.glass-signature-shape::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 52% 48% 55% 45% / 42% 58% 44% 56%;
  border: 1px solid rgba(232, 199, 122, 0.24);
  transform: rotate(-18deg);
  opacity: 0.78;
}

.glass-signature-shape::after {
  inset: 5%;
  border-color: rgba(255, 255, 255, 0.14);
  transform: rotate(21deg) scale(0.96);
  opacity: 0.52;
}

.glass-layer,
.glass-core {
  position: absolute;
  inset: 0;
  border-radius: 56% 44% 50% 50% / 45% 52% 48% 55%;
  display: block;
}

.glass-layer-one {
  background:
    radial-gradient(
      circle at 30% 24%,
      rgba(255, 255, 255, 0.86),
      transparent 12%
    ),
    radial-gradient(
      circle at 69% 30%,
      rgba(232, 199, 122, 0.45),
      transparent 19%
    ),
    radial-gradient(
      circle at 44% 70%,
      rgba(85, 126, 180, 0.42),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.05) 36%,
      rgba(232, 199, 122, 0.16) 64%,
      rgba(255, 255, 255, 0.18)
    );
  box-shadow:
    inset 18px 18px 50px rgba(255, 255, 255, 0.12),
    inset -24px -22px 65px rgba(2, 9, 19, 0.62),
    0 42px 100px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-layer-two {
  inset: 12%;
  border-radius: 43% 57% 45% 55% / 58% 40% 60% 42%;
  background:
    linear-gradient(145deg, rgba(232, 199, 122, 0.16), transparent 35%),
    radial-gradient(
      circle at 62% 34%,
      rgba(255, 255, 255, 0.38),
      transparent 17%
    ),
    radial-gradient(
      circle at 35% 70%,
      rgba(79, 123, 179, 0.35),
      transparent 30%
    );
  mix-blend-mode: screen;
  opacity: 0.76;
  transform: rotate(26deg);
}

.glass-core {
  inset: 29%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 42% 36%,
      rgba(255, 255, 255, 0.74),
      transparent 20%
    ),
    radial-gradient(
      circle at 60% 64%,
      rgba(232, 199, 122, 0.42),
      transparent 32%
    ),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  filter: blur(0.1px);
  opacity: 0.72;
}

@keyframes glassFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-5deg) scale(1);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(4deg) scale(1.018);
  }
}

/* Make the selected-work previews uniform, slightly larger, and balanced. */
.home-work-grid {
  max-width: 1280px !important;
  margin: clamp(1.8rem, 3.2vw, 2.8rem) auto 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(1.05rem, 2vw, 1.6rem) !important;
}

.home-work-card,
.home-work-card.large,
.home-work-card:nth-child(1),
.home-work-card:nth-child(2),
.home-work-card:nth-child(3) {
  aspect-ratio: auto !important;
  height: clamp(360px, 34vw, 470px) !important;
  min-height: 0 !important;
  width: 100% !important;
  grid-row: auto !important;
  border-radius: 30px !important;
}

.home-work-card img,
.home-work-card:nth-child(1) img,
.home-work-card:nth-child(2) img,
.home-work-card:nth-child(3) img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1) !important;
}

.home-work-card:hover img {
  transform: scale(1.045) !important;
}

@media (max-width: 900px) {
  .glass-signature-system {
    width: min(82vw, 420px) !important;
  }

  .home-work-grid {
    grid-template-columns: 1fr !important;
    max-width: min(560px, 100%) !important;
  }

  .home-work-card,
  .home-work-card.large,
  .home-work-card:nth-child(1),
  .home-work-card:nth-child(2),
  .home-work-card:nth-child(3) {
    height: clamp(360px, 92vw, 500px) !important;
  }
}

/* About page golden title emphasis */
.about-gradient-title {
  background: linear-gradient(
    110deg,
    #f8e7b0 0%,
    #d9b66f 42%,
    #fff5c8 70%,
    #b8893d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 50px rgba(217, 182, 111, 0.12);
}

/* About chapter storytelling */
.about-chapters {
  display: grid;
  gap: clamp(1.35rem, 2.8vw, 2.4rem);
}

.about-chapter {
  padding-top: clamp(1.1rem, 2vw, 1.6rem);
  border-top: 1px solid rgba(232, 199, 122, 0.18);
}

.chapter-kicker {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about-chapter h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-family: var(--display-font);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.about-signature-line {
  margin-top: 1.3rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-family: var(--display-font);
}

.about-intro {
  max-width: 980px;
  margin-top: -1rem;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}
.about-split {
  align-items: start;
}
.about-gradient-title {
  background: linear-gradient(
    110deg,
    #fff8dc 0%,
    #d9b66f 42%,
    #fff2bd 68%,
    #b7833d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[dir="rtl"] .about-intro {
  text-align: right;
}

/* Keep Let's Create only on Home; all inner pages use the same clean footer signature. */
.inner-page + .site-footer .footer-bottom-clean,
.signature-footer .footer-bottom-clean.footer-detached {
  margin-top: clamp(2rem, 5vw, 4rem) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 231, 214, 0.62);
}

#services .section-head h2,
#services .about-gradient-title {
  background: linear-gradient(
    110deg,
    #fff8dc 0%,
    #d9b66f 42%,
    #fff2bd 68%,
    #b7833d 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: 0 18px 50px rgba(217, 182, 111, 0.12);
}

/* Core Skills headline: balanced, premium and readable while keeping the gradient. */
.resume-head h2 {
  max-width: 860px !important;
  text-wrap: balance;
  line-height: 0.98 !important;
}

/* Core Skills cards: gradient should cover the full card on hover/focus, not only the text. */
.resume-node {
  isolation: isolate;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.026)
  ) !important;
  transition:
    transform 0.38s ease,
    border-color 0.38s ease,
    background 0.38s ease,
    box-shadow 0.38s ease !important;
}

.resume-node:hover,
.resume-node:focus-visible {
  transform: translateY(-5px) scale(1.012) !important;
  border-color: rgba(217, 182, 111, 0.42) !important;
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(255, 246, 211, 0.16),
      transparent 14rem
    ),
    radial-gradient(
      circle at 88% 100%,
      rgba(116, 150, 202, 0.14),
      transparent 13rem
    ),
    linear-gradient(
      125deg,
      rgba(217, 182, 111, 0.18),
      rgba(255, 255, 255, 0.07) 45%,
      rgba(77, 112, 166, 0.15)
    ) !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.resume-node.is-featured:hover,
.resume-node.is-featured:focus-visible {
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(255, 246, 211, 0.2),
      transparent 15rem
    ),
    linear-gradient(
      130deg,
      rgba(217, 182, 111, 0.24),
      rgba(255, 255, 255, 0.08),
      rgba(93, 126, 184, 0.17)
    ) !important;
}

.resume-node:hover h3,
.resume-node:focus-visible h3 {
  color: #fff9e8;
}

.resume-node:hover p,
.resume-node:focus-visible p {
  color: rgba(238, 231, 214, 0.82);
}

@media (max-width: 700px) {
  .inner-page + .site-footer .footer-bottom-clean,
  .signature-footer .footer-bottom-clean.footer-detached {
    justify-content: center;
    text-align: center;
  }
}

.resume-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.resume-head h2 {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.resume-head .section-lead {
  width: 100% !important;
  max-width: min(760px, 92vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  text-wrap: balance;
}
/* Make the resume hover feel like one premium glass card, not a partial text effect. */
.resume-node {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.052),
    rgba(255, 255, 255, 0.025)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.095) !important;
}

.resume-node::before {
  inset: 0 !important;
  border-radius: inherit !important;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(255, 238, 184, 0.22),
      transparent 15rem
    ),
    radial-gradient(
      circle at 88% 92%,
      rgba(113, 149, 207, 0.17),
      transparent 16rem
    ),
    linear-gradient(
      118deg,
      rgba(217, 182, 111, 0.24) 0%,
      rgba(255, 255, 255, 0.08) 48%,
      rgba(80, 116, 178, 0.18) 100%
    ) !important;
  opacity: 0 !important;
  z-index: 0 !important;
  transition: opacity 0.42s ease !important;
}

.resume-node:hover::before,
.resume-node:focus-visible::before {
  opacity: 1 !important;
}

.resume-node:hover,
.resume-node:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.028)
  ) !important;
  border-color: rgba(217, 182, 111, 0.46) !important;
  box-shadow:
    0 32px 95px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 0 0 1px rgba(217, 182, 111, 0.12) !important;
}

.resume-node.is-featured {
  background:
    linear-gradient(
      135deg,
      rgba(217, 182, 111, 0.14),
      rgba(255, 255, 255, 0.052)
    ),
    rgba(255, 255, 255, 0.055) !important;
}

.resume-node.is-featured:hover,
.resume-node.is-featured:focus-visible {
  background:
    linear-gradient(
      135deg,
      rgba(217, 182, 111, 0.16),
      rgba(255, 255, 255, 0.055)
    ),
    rgba(255, 255, 255, 0.06) !important;
}

#services .about-gradient-title,
#services .section-head h2 {
  background: linear-gradient(
    112deg,
    #fff9df 0%,
    #d9b66f 38%,
    #fff0be 62%,
    #8aa7cf 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* ===== v15.12 — Core Skills luxury polish + selected-work image tuning ===== */
/* Remove repeated GUARDIAN label from resume items. */
.resume-node::before,
.resume-node:hover::before,
html[dir="rtl"] .resume-node::before {
  content: "" !important;
  display: none !important;
}

/* Make the resume subtitle sit centered under the H1 while keeping its gold-highlight feel. */
.resume-head {
  text-align: center !important;
  align-items: center !important;
}
.resume-head h2,
.resume-head .section-lead {
  margin-left: auto !important;
  margin-right: auto !important;
}
.resume-head .section-lead {
  max-width: 760px !important;
  text-align: center !important;
  background: linear-gradient(105deg, #fff8e7 0%, #e7c77a 42%, #8fb2df 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
html[dir="rtl"] .resume-head,
html[dir="rtl"] .resume-head .section-lead {
  text-align: center !important;
}

/* Premium full-card gradient hover for resume timeline items. */
.resume-node {
  isolation: isolate;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.052),
    rgba(255, 255, 255, 0.026)
  ) !important;
  border-color: rgba(255, 255, 255, 0.105) !important;
  transition:
    transform 0.42s ease,
    border-color 0.42s ease,
    box-shadow 0.42s ease,
    background 0.42s ease !important;
}
.resume-node::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(
      circle at 18% 10%,
      rgba(255, 241, 199, 0.22),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      rgba(217, 182, 111, 0.2),
      rgba(104, 137, 190, 0.09) 52%,
      rgba(255, 255, 255, 0.045)
    );
  opacity: 0 !important;
  transform: none !important;
  transition: opacity 0.42s ease !important;
}
.resume-node:hover,
.resume-node:focus-visible {
  transform: translateY(-5px) scale(1.012) !important;
  border-color: rgba(217, 182, 111, 0.46) !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(217, 182, 111, 0.08) inset !important;
}
.resume-node:hover::after,
.resume-node:focus-visible::after {
  opacity: 1 !important;
}
.resume-node > * {
  position: relative !important;
  z-index: 1 !important;
}

/* More sculptural glass shape for the Core Skills feature card. */
.career-crystal {
  top: 4% !important;
  width: min(82%, 380px) !important;
  filter: drop-shadow(0 34px 80px rgba(0, 0, 0, 0.34));
}
.career-crystal span:nth-child(1) {
  inset: 12% !important;
  clip-path: polygon(
    50% 0%,
    76% 11%,
    96% 38%,
    88% 68%,
    61% 100%,
    30% 92%,
    3% 61%,
    10% 26%
  ) !important;
  background:
    radial-gradient(
      circle at 35% 22%,
      rgba(255, 255, 255, 0.62),
      transparent 24%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.46),
      rgba(128, 166, 222, 0.22) 38%,
      rgba(217, 182, 111, 0.34) 78%,
      rgba(255, 255, 255, 0.18)
    ) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    inset 18px 16px 42px rgba(255, 255, 255, 0.13),
    inset -28px -30px 60px rgba(0, 0, 0, 0.38),
    0 32px 100px rgba(0, 0, 0, 0.32),
    0 0 60px rgba(217, 182, 111, 0.1) !important;
  animation: careerCrystal 12s ease-in-out infinite !important;
}
.career-crystal span:nth-child(2),
.career-crystal span:nth-child(3) {
  left: 12% !important;
  right: 12% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 241, 199, 0.82),
    rgba(138, 166, 209, 0.26),
    transparent
  ) !important;
}
.career-crystal i {
  inset: 0 !important;
  border-color: rgba(217, 182, 111, 0.22) !important;
  box-shadow: 0 0 34px rgba(217, 182, 111, 0.06) !important;
}
.career-crystal::before,
.career-crystal::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 236, 184, 0.9);
  box-shadow:
    38px 24px 0 rgba(255, 236, 184, 0.38),
    96px 66px 0 rgba(255, 236, 184, 0.34),
    142px 18px 0 rgba(255, 236, 184, 0.42),
    205px 94px 0 rgba(255, 236, 184, 0.3),
    252px 42px 0 rgba(255, 236, 184, 0.36),
    286px 128px 0 rgba(255, 236, 184, 0.26);
  opacity: 0.62;
  animation: crystalStardust 6.5s ease-in-out infinite;
}
.career-crystal::before {
  left: 7%;
  top: 16%;
}
.career-crystal::after {
  left: 14%;
  top: 38%;
  transform: scale(0.75);
  opacity: 0.42;
  animation-delay: -2.8s;
}
@keyframes crystalStardust {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.85);
    opacity: 0.18;
  }
  40% {
    opacity: 0.72;
  }
  68% {
    transform: translate3d(10px, 28px, 0) scale(1);
    opacity: 0.48;
  }
}
@keyframes careerCrystal {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg) scale(1);
  }
  50% {
    transform: translateY(-18px) rotate(5deg) scale(1.025);
  }
}
/* Selected Works: tune only the blue artwork image so the composition reads better without changing the card. */
.portfolio-grid .project-card:nth-child(5) img,
.portfolio-grid .project-card img[src$="p1.webp"] {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 1.15rem !important;
  background: radial-gradient(
    circle at 50% 38%,
    rgba(23, 78, 166, 0.2),
    rgba(2, 9, 22, 0.74) 72%
  ) !important;
}
.portfolio-grid .project-card:nth-child(5):hover img,
.portfolio-grid .project-card:hover img[src$="p1.webp"] {
  transform: scale(1.025) !important;
}
/* Only the blue artwork is adjusted; frames and other artworks stay unchanged. */
.home-work-card img[src$="p1.webp"],
.portfolio-grid .project-card img[src$="p1.webp"] {
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center 44% !important;
  background: transparent !important;
}

.home-work-card:hover img[src$="p1.webp"] {
  transform: scale(1.045) !important;
}

.portfolio-grid .project-card:hover img[src$="p1.webp"] {
  transform: scale(1.045) !important;
}

/* Core Skills crystal dust: more visible falling micro-stars with a slightly faster premium motion. */
.career-crystal::before,
.career-crystal::after {
  width: 2.5px !important;
  height: 2.5px !important;
  background: rgba(255, 236, 184, 0.95) !important;
  box-shadow:
    22px 8px 0 rgba(255, 236, 184, 0.46),
    44px 34px 0 rgba(255, 236, 184, 0.34),
    74px 14px 0 rgba(255, 236, 184, 0.42),
    102px 58px 0 rgba(255, 236, 184, 0.3),
    132px 26px 0 rgba(255, 236, 184, 0.38),
    164px 82px 0 rgba(255, 236, 184, 0.28),
    198px 38px 0 rgba(255, 236, 184, 0.34),
    232px 104px 0 rgba(255, 236, 184, 0.24),
    266px 62px 0 rgba(255, 236, 184, 0.28),
    298px 126px 0 rgba(255, 236, 184, 0.2) !important;
  animation: crystalStardust 3.85s cubic-bezier(0.42, 0, 0.28, 1) infinite !important;
}

.career-crystal::before {
  left: 6% !important;
  top: 8% !important;
}

.career-crystal::after {
  left: 18% !important;
  top: 24% !important;
  transform: scale(0.72) !important;
  opacity: 0.48 !important;
  animation-duration: 4.35s !important;
  animation-delay: -1.65s !important;
}

@keyframes crystalStardust {
  0% {
    transform: translate3d(-4px, -12px, 0) scale(0.62);
    opacity: 0;
  }
  18% {
    opacity: 0.78;
  }
  58% {
    opacity: 0.62;
  }
  100% {
    transform: translate3d(14px, 92px, 0) scale(1.04);
    opacity: 0;
  }
}
body::before {
  opacity: 0.18 !important;
}

/* Persian titles: two visual steps smaller for better balance and readability. */
html[dir="rtl"] .hero h1 {
  font-size: clamp(2.65rem, 7.1vw, 4.25rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
}
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .section-copy h2,
html[dir="rtl"] .contact-panel h2,
html[dir="rtl"] .resume-head h2,
html[dir="rtl"] .detail-copy h1 {
  font-size: clamp(1.9rem, 4.15vw, 3.35rem) !important;
  line-height: 1.13 !important;
  letter-spacing: -0.025em !important;
}
html[dir="rtl"] .resume-node h3,
html[dir="rtl"] .service-card h3,
html[dir="rtl"] .project-card h3,
html[dir="rtl"] .home-work-card span {
  font-size: 1.5em !important;
  line-height: 1.55 !important;
}

/* Persian navigation should visually start from خانه, not تماس. */
html[dir="rtl"] .site-header .site-nav {
  direction: ltr !important;
  flex-direction: row !important;
}
html[dir="rtl"] .site-header .site-nav a {
  direction: rtl !important;
}
@media (max-width: 760px) {
  html[dir="rtl"] .site-header .site-nav {
    align-items: flex-end !important;
  }
}

/* Selected works: clickable image experience. */
.home-work-card,
.project-card {
  cursor: zoom-in;
}
.home-work-card img,
.project-card img {
  transition:
    transform 0.65s cubic-bezier(0.2, 0.65, 0.16, 1),
    filter 0.65s ease;
}

.soriel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(215, 179, 106, 0.12),
      transparent 34rem
    ),
    rgba(3, 9, 17, 0.88);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.soriel-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.soriel-lightbox__inner {
  position: relative;
  width: min(1120px, 94vw);
  max-height: 88vh;
  display: grid;
  place-items: center;
}
.soriel-lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow:
    0 30px 110px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}
.soriel-lightbox__close {
  position: absolute;
  top: -1.1rem;
  right: -1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 17, 31, 0.72);
  color: #fff3cf;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
html[dir="rtl"] .soriel-lightbox__close {
  right: auto;
  left: -1.1rem;
}
@media (max-width: 640px) {
  .soriel-lightbox__close {
    top: 0.65rem;
    right: 0.65rem;
  }
  html[dir="rtl"] .soriel-lightbox__close {
    left: 0.65rem;
  }
}

.career-crystal::before,
.career-crystal::after {
  box-shadow:
    16px 8px 0 rgba(255, 236, 184, 0.58),
    30px 30px 0 rgba(255, 236, 184, 0.34),
    48px 12px 0 rgba(255, 236, 184, 0.5),
    66px 48px 0 rgba(255, 236, 184, 0.32),
    84px 20px 0 rgba(255, 236, 184, 0.44),
    104px 66px 0 rgba(255, 236, 184, 0.3),
    126px 36px 0 rgba(255, 236, 184, 0.42),
    148px 88px 0 rgba(255, 236, 184, 0.26),
    170px 52px 0 rgba(255, 236, 184, 0.38),
    196px 108px 0 rgba(255, 236, 184, 0.22),
    222px 70px 0 rgba(255, 236, 184, 0.34),
    252px 132px 0 rgba(255, 236, 184, 0.2),
    280px 92px 0 rgba(255, 236, 184, 0.28),
    306px 154px 0 rgba(255, 236, 184, 0.17),
    336px 116px 0 rgba(255, 236, 184, 0.22) !important;
  animation-duration: 2.85s !important;
}
.career-crystal::after {
  animation-duration: 3.15s !important;
  opacity: 0.6 !important;
}
@keyframes crystalStardust {
  0% {
    transform: translate3d(-8px, -18px, 0) scale(0.55);
    opacity: 0;
  }
  12% {
    opacity: 0.88;
  }
  56% {
    opacity: 0.72;
  }
  100% {
    transform: translate3d(20px, 118px, 0) scale(1.08);
    opacity: 0;
  }
}
/* Equal language buttons so EN / فارسی never jump or look different. */
.lang-switch {
  display: inline-grid !important;
  grid-template-columns: 1fr 1fr !important;
  min-width: 118px !important;
  height: 34px !important;
  align-items: center !important;
}
.lang-switch button {
  width: 56px !important;
  height: 28px !important;
  min-width: 56px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.lang-switch button[data-lang="fa"] {
  font-family: Vazirmatn, Tahoma, Arial, system-ui, sans-serif !important;
  font-size: 0.62rem !important;
  letter-spacing: 0 !important;
}
.lang-switch button[data-lang="en"] {
  font-size: 0.64rem !important;
  letter-spacing: 0.08em !important;
}

/* Better Persian reading rhythm across the full site. */
html[dir="rtl"] body {
  font-family: Vazirmatn, Tahoma, Arial, system-ui, sans-serif !important;
  line-height: 1.95 !important;
}
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] .section-lead,
html[dir="rtl"] .hero-text,
html[dir="rtl"] .manifesto-text,
html[dir="rtl"] .contactText {
  line-height: 2 !important;
  letter-spacing: 0 !important;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .resume-node h3,
html[dir="rtl"] .service-card h3,
html[dir="rtl"] .project-card h3 {
  font-family: Vazirmatn, Tahoma, Arial, system-ui, sans-serif !important;
  font-weight: 500 !important;
}
html[dir="rtl"] .hero h1 {
  font-size: clamp(2.45rem, 6.6vw, 4rem) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.055em !important;
}
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .section-copy h2,
html[dir="rtl"] .about-gradient-title,
html[dir="rtl"] .resume-head h2,
html[dir="rtl"] .contact-panel h2,
html[dir="rtl"] .detail-copy h1 {
  font-size: clamp(1.65rem, 3.55vw, 2.95rem) !important;
  line-height: 1.28 !important;
  letter-spacing: -0.045em !important;
}
html[dir="rtl"] .site-header .site-nav {
  direction: ltr !important;
  flex-direction: row !important;
}
html[dir="rtl"] .site-header .site-nav a {
  direction: rtl !important;
  font-size: 0.66rem !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

/* Signature shape direction: a breathing glass emblem with subtle orbit + stardust. */
.glass-signature-system {
  width: min(44vw, 550px) !important;
  filter: drop-shadow(0 40px 105px rgba(0, 0, 0, 0.42));
}
.glass-signature-system::before {
  width: 118% !important;
  height: 118% !important;
  background:
    radial-gradient(
      circle at 50% 52%,
      rgba(255, 241, 199, 0.25),
      transparent 20%
    ),
    radial-gradient(
      circle at 46% 54%,
      rgba(116, 151, 204, 0.16),
      transparent 50%
    ),
    conic-gradient(
      from 138deg at 50% 50%,
      transparent 0 16%,
      rgba(217, 182, 111, 0.28) 18%,
      transparent 24% 55%,
      rgba(139, 170, 214, 0.16) 59%,
      transparent 66% 100%
    ) !important;
  filter: blur(30px) !important;
  opacity: 0.88 !important;
}
.glass-signature-system::after {
  bottom: 6% !important;
  width: 86% !important;
  height: 18% !important;
  background: radial-gradient(
    ellipse at center,
    rgba(232, 199, 122, 0.36),
    rgba(98, 130, 181, 0.12) 45%,
    transparent 75%
  ) !important;
  filter: blur(20px) !important;
}
.glass-signature-shape {
  width: 74% !important;
  height: 74% !important;
  animation: sorielSignatureBreath 12.5s ease-in-out infinite !important;
}
.glass-signature-shape::before {
  inset: 8% !important;
  border-radius: 48% 52% 56% 44% / 44% 52% 48% 56% !important;
  border-color: rgba(232, 199, 122, 0.31) !important;
  transform: rotate(-22deg) scale(1.05) !important;
  box-shadow: 0 0 42px rgba(217, 182, 111, 0.07) !important;
}
.glass-signature-shape::after {
  inset: 0 !important;
  border-radius: 42% 58% 46% 54% / 58% 42% 58% 42% !important;
  border-color: rgba(255, 255, 255, 0.17) !important;
  transform: rotate(28deg) scale(0.98) !important;
}
.glass-layer-one {
  clip-path: polygon(
    52% 0%,
    74% 9%,
    96% 34%,
    91% 62%,
    70% 88%,
    42% 100%,
    17% 82%,
    0% 54%,
    10% 24%,
    31% 7%
  ) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(
      circle at 31% 21%,
      rgba(255, 255, 255, 0.82),
      transparent 12%
    ),
    radial-gradient(
      circle at 67% 32%,
      rgba(232, 199, 122, 0.48),
      transparent 18%
    ),
    radial-gradient(
      circle at 42% 71%,
      rgba(88, 126, 184, 0.44),
      transparent 34%
    ),
    linear-gradient(
      138deg,
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0.06) 32%,
      rgba(232, 199, 122, 0.18) 62%,
      rgba(139, 171, 216, 0.2) 100%
    ) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.glass-layer-two {
  inset: 10% !important;
  clip-path: polygon(
    50% 4%,
    83% 18%,
    93% 48%,
    76% 82%,
    43% 95%,
    14% 74%,
    7% 36%
  ) !important;
  border-radius: 0 !important;
  opacity: 0.72 !important;
  transform: rotate(23deg) !important;
}
.glass-core {
  inset: 32% !important;
  opacity: 0.78 !important;
  box-shadow: 0 0 54px rgba(232, 199, 122, 0.16) !important;
}
.glass-signature-shape .glass-core::before,
.glass-signature-shape .glass-core::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 236, 184, 0.95);
  box-shadow:
    28px -48px 0 rgba(255, 236, 184, 0.45),
    64px -20px 0 rgba(255, 236, 184, 0.28),
    96px 18px 0 rgba(255, 236, 184, 0.38),
    -26px 38px 0 rgba(255, 236, 184, 0.32),
    -70px 4px 0 rgba(255, 236, 184, 0.22),
    18px 82px 0 rgba(255, 236, 184, 0.2);
  opacity: 0.55;
  animation: sorielHeroDust 4.4s ease-in-out infinite;
}
.glass-signature-shape .glass-core::before {
  left: 8%;
  top: 0;
}
.glass-signature-shape .glass-core::after {
  right: 6%;
  top: 28%;
  animation-delay: -2.1s;
  transform: scale(0.78);
}
@keyframes sorielSignatureBreath {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(5deg) scale(1.018);
  }
}
@keyframes sorielHeroDust {
  0% {
    transform: translate3d(-6px, -12px, 0) scale(0.55);
    opacity: 0;
  }
  18% {
    opacity: 0.72;
  }
  100% {
    transform: translate3d(14px, 74px, 0) scale(1);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .lang-switch {
    min-width: 104px !important;
    height: 32px !important;
  }
  .lang-switch button {
    width: 49px !important;
    min-width: 49px !important;
    height: 26px !important;
  }
  html[dir="rtl"] .hero h1 {
    font-size: clamp(2.15rem, 10.8vw, 3.4rem) !important;
  }
  html[dir="rtl"] .section-head h2,
  html[dir="rtl"] .about-gradient-title,
  html[dir="rtl"] .resume-head h2 {
    font-size: clamp(1.55rem, 8.4vw, 2.55rem) !important;
  }
  .glass-signature-system {
    width: min(86vw, 430px) !important;
  }
}

/* Persian menu: same visual size as English and true RTL order: خانه starts from the right. */
html[dir="rtl"] .site-header .site-nav {
  direction: rtl !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
}
html[dir="rtl"] .site-header .site-nav a {
  direction: rtl !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Persian headings: calmer and more balanced, while nav remains the same size as EN. */
html[dir="rtl"] .hero h1 {
  font-size: clamp(2.25rem, 6.1vw, 3.7rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.045em !important;
}
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .section-copy h2,
html[dir="rtl"] .about-gradient-title,
html[dir="rtl"] .resume-head h2,
html[dir="rtl"] .contact-panel h2,
html[dir="rtl"] .detail-copy h1,
html[dir="rtl"] .services-hero h1,
html[dir="rtl"] .work-hero h1 {
  font-size: clamp(1.52rem, 3.15vw, 2.68rem) !important;
  line-height: 1.32 !important;
  letter-spacing: -0.035em !important;
}
html[dir="rtl"] .section-lead,
html[dir="rtl"] .resume-lead,
html[dir="rtl"] .hero-text,
html[dir="rtl"] .manifesto-text {
  font-size: clamp(0.94rem, 1.32vw, 1.03rem) !important;
  line-height: 2 !important;
}

/* Language toggle: exact equal visual rhythm for EN / فارسی. */
.lang-switch {
  min-width: 122px !important;
}
.lang-switch button {
  width: 58px !important;
  min-width: 58px !important;
  font-size: 0.66rem !important;
}
.lang-switch button[data-lang="fa"] {
  font-size: 0.66rem !important;
  font-weight: 500 !important;
}

/* Restore the refined soft glass object; remove the v15.15 sharp / egg-like polygon feeling. */
.glass-signature-system {
  width: min(42vw, 520px) !important;
  filter: drop-shadow(0 40px 105px rgba(0, 0, 0, 0.4)) !important;
}
.glass-signature-system::before {
  width: 112% !important;
  height: 112% !important;
  border-radius: 999px !important;
  background:
    radial-gradient(
      circle at 50% 55%,
      rgba(232, 199, 122, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(115, 154, 205, 0.12),
      transparent 52%
    ) !important;
  filter: blur(28px) !important;
  opacity: 0.82 !important;
}
.glass-signature-system::after {
  width: 78% !important;
  height: 15% !important;
  bottom: 9% !important;
  border-radius: 999px !important;
  background: radial-gradient(
    ellipse at center,
    rgba(232, 199, 122, 0.3),
    rgba(80, 115, 160, 0.1) 46%,
    transparent 72%
  ) !important;
  filter: blur(18px) !important;
  opacity: 0.78 !important;
}
.glass-signature-shape {
  width: 72% !important;
  height: 72% !important;
  animation: glassFloat 13s ease-in-out infinite !important;
}
.glass-signature-shape::before,
.glass-signature-shape::after {
  inset: 12% !important;
  border-radius: 52% 48% 55% 45% / 42% 58% 44% 56% !important;
  border: 1px solid rgba(232, 199, 122, 0.24) !important;
  transform: rotate(-18deg) !important;
  opacity: 0.78 !important;
  box-shadow: none !important;
}
.glass-signature-shape::after {
  inset: 5% !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  transform: rotate(21deg) scale(0.96) !important;
  opacity: 0.52 !important;
}
.glass-layer,
.glass-core {
  border-radius: 56% 44% 50% 50% / 45% 52% 48% 55% !important;
  clip-path: none !important;
}
.glass-layer-one {
  background:
    radial-gradient(
      circle at 30% 24%,
      rgba(255, 255, 255, 0.86),
      transparent 12%
    ),
    radial-gradient(
      circle at 69% 30%,
      rgba(232, 199, 122, 0.45),
      transparent 19%
    ),
    radial-gradient(
      circle at 44% 70%,
      rgba(85, 126, 180, 0.42),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.05) 36%,
      rgba(232, 199, 122, 0.16) 64%,
      rgba(255, 255, 255, 0.18)
    ) !important;
  box-shadow:
    inset 18px 18px 50px rgba(255, 255, 255, 0.12),
    inset -24px -22px 65px rgba(2, 9, 19, 0.62),
    0 42px 100px rgba(0, 0, 0, 0.46) !important;
  border: 0 !important;
}
.glass-layer-two {
  inset: 12% !important;
  border-radius: 43% 57% 45% 55% / 58% 40% 60% 42% !important;
  clip-path: none !important;
  background:
    linear-gradient(145deg, rgba(232, 199, 122, 0.16), transparent 35%),
    radial-gradient(
      circle at 62% 34%,
      rgba(255, 255, 255, 0.38),
      transparent 17%
    ),
    radial-gradient(
      circle at 35% 70%,
      rgba(79, 123, 179, 0.35),
      transparent 30%
    ) !important;
  mix-blend-mode: screen !important;
  opacity: 0.76 !important;
  transform: rotate(26deg) !important;
}
.glass-core {
  inset: 29% !important;
  border-radius: 50% !important;
  background:
    radial-gradient(
      circle at 42% 36%,
      rgba(255, 255, 255, 0.74),
      transparent 20%
    ),
    radial-gradient(
      circle at 60% 64%,
      rgba(232, 199, 122, 0.42),
      transparent 32%
    ),
    rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  opacity: 0.72 !important;
}

@media (max-width: 760px) {
  html[dir="rtl"] .site-header .site-nav {
    direction: rtl !important;
    align-items: flex-start !important;
  }
  html[dir="rtl"] .hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem) !important;
  }
  html[dir="rtl"] .section-head h2,
  html[dir="rtl"] .about-gradient-title,
  html[dir="rtl"] .resume-head h2 {
    font-size: clamp(1.38rem, 7.4vw, 2.28rem) !important;
  }
}

html[dir="rtl"] .site-header .site-nav {
  direction: rtl !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: 0.95rem !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="rtl"] .site-header .site-nav a {
  direction: rtl !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

/* Keep Persian headlines calmer than English so they look premium, not bulky. */
html[dir="rtl"] .hero h1 {
  font-size: clamp(2.05rem, 5.65vw, 3.45rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.04em !important;
}

html[dir="rtl"] .section-head h2,
html[dir="rtl"] .section-copy h2,
html[dir="rtl"] .about-gradient-title,
html[dir="rtl"] .resume-head h2,
html[dir="rtl"] .contact-panel h2,
html[dir="rtl"] .detail-copy h1,
html[dir="rtl"] .services-hero h1,
html[dir="rtl"] .work-hero h1 {
  font-size: clamp(1.42rem, 2.9vw, 2.48rem) !important;
  line-height: 1.36 !important;
  letter-spacing: -0.028em !important;
}

/* Make Persian copy feel written in Persian, not squeezed into English rhythm. */
html[dir="rtl"] .section-lead,
html[dir="rtl"] .resume-lead,
html[dir="rtl"] .hero-text,
html[dir="rtl"] .manifesto-text,
html[dir="rtl"] .about-chapter p,
html[dir="rtl"] .service-card p,
html[dir="rtl"] .contact-panel p,
html[dir="rtl"] .detail-body p {
  font-size: clamp(0.96rem, 1.35vw, 1.06rem) !important;
  line-height: 2.05 !important;
  letter-spacing: 0 !important;
}

/* Language switch: equal visual weight for EN / فارسی. */
.lang-switch button[data-lang="fa"],
.lang-switch button[data-lang="en"] {
  font-size: 0.68rem !important;
}

.lang-switch button[data-lang="fa"] {
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.career-crystal::before,
.career-crystal::after {
  width: 3px !important;
  height: 3px !important;
  box-shadow:
    10px 6px 0 rgba(255, 236, 184, 0.68),
    24px 28px 0 rgba(255, 236, 184, 0.46),
    40px 12px 0 rgba(255, 236, 184, 0.6),
    58px 44px 0 rgba(255, 236, 184, 0.42),
    76px 18px 0 rgba(255, 236, 184, 0.56),
    96px 64px 0 rgba(255, 236, 184, 0.38),
    118px 34px 0 rgba(255, 236, 184, 0.52),
    140px 82px 0 rgba(255, 236, 184, 0.34),
    164px 48px 0 rgba(255, 236, 184, 0.48),
    188px 104px 0 rgba(255, 236, 184, 0.3),
    214px 68px 0 rgba(255, 236, 184, 0.44),
    240px 126px 0 rgba(255, 236, 184, 0.28),
    270px 90px 0 rgba(255, 236, 184, 0.38),
    298px 148px 0 rgba(255, 236, 184, 0.25),
    328px 112px 0 rgba(255, 236, 184, 0.34),
    356px 172px 0 rgba(255, 236, 184, 0.22),
    386px 134px 0 rgba(255, 236, 184, 0.3),
    416px 192px 0 rgba(255, 236, 184, 0.18),
    448px 154px 0 rgba(255, 236, 184, 0.25) !important;
  animation-duration: 2.35s !important;
}

.career-crystal::after {
  transform: scale(0.72);
  opacity: 0.74 !important;
  animation-duration: 2.65s !important;
  animation-delay: -1.15s !important;
}

@keyframes crystalStardust {
  0% {
    transform: translate3d(-10px, -24px, 0) scale(0.46);
    opacity: 0;
  }
  10% {
    opacity: 0.92;
  }
  52% {
    opacity: 0.74;
  }
  100% {
    transform: translate3d(24px, 178px, 0) scale(1.1);
    opacity: 0;
  }
}

/* Keep the blue selected-work image composed cleanly without changing its card. */
.home-work-card img[src$="p1.webp"],
.project-card img[src$="p1.webp"] {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 1rem !important;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(24, 75, 154, 0.2),
    rgba(2, 9, 22, 0.74) 74%
  ) !important;
}

@media (max-width: 980px) {
  html[dir="rtl"] .site-header .site-nav {
    gap: 0.72rem !important;
  }

  html[dir="rtl"] .site-header .site-nav a {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 760px) {
  html[dir="rtl"] .site-header .site-nav {
    direction: rtl !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }

  html[dir="rtl"] .site-header .site-nav a {
    font-size: 1rem !important;
  }

  html[dir="rtl"] .hero h1 {
    font-size: clamp(1.88rem, 9.4vw, 3rem) !important;
  }

  html[dir="rtl"] .section-head h2,
  html[dir="rtl"] .about-gradient-title,
  html[dir="rtl"] .resume-head h2,
  html[dir="rtl"] .contact-panel h2 {
    font-size: clamp(1.32rem, 6.9vw, 2.12rem) !important;
  }
}

/* Persian desktop nav sits on the right side of the header and starts with خانه. */
@media (min-width: 761px) {
  html[dir="rtl"] .site-header .site-nav {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    order: 2 !important;
    direction: rtl !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    gap: 1.05rem !important;
    text-align: right !important;
  }

  html[dir="rtl"] .site-header .header-actions {
    order: 3 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

html[dir="rtl"] .site-header .site-nav a {
  text-align: right !important;
  font-size: 0.96rem !important;
}

/* Keep the blue artwork uncropped: the frame stays the same, only the image fit changes. */
.home-work-card img[src$="p1.webp"],
.project-card img[src$="p1.webp"],
.portfolio-grid .project-card img[src$="p1.webp"] {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0.55rem !important;
  transform: none !important;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(24, 75, 154, 0.16),
    rgba(2, 9, 22, 0.72) 76%
  ) !important;
}

.home-work-card:hover img[src$="p1.webp"],
.project-card:hover img[src$="p1.webp"],
.portfolio-grid .project-card:hover img[src$="p1.webp"] {
  transform: none !important;
}

/* Persian section titles that felt heavy: reduce them by about two visual steps. */
html[dir="rtl"] [data-i18n="journeyTitle"],
html[dir="rtl"] [data-i18n="footerTitle"] {
  font-size: clamp(1.28rem, 2.35vw, 2.05rem) !important;
  line-height: 1.48 !important;
  letter-spacing: -0.018em !important;
}

@media (max-width: 760px) {
  html[dir="rtl"] [data-i18n="journeyTitle"],
  html[dir="rtl"] [data-i18n="footerTitle"] {
    font-size: clamp(1.2rem, 6.4vw, 1.85rem) !important;
  }
}

/* ===== SORIEL Final Review Polish ===== */
/* Semantic H1 support for inner pages after SEO cleanup. */
.section-head h1,
.contact-panel h1 {
  margin: 0;
  max-width: 820px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}
.section-head h1.about-gradient-title,
#services .section-head h1,
#services .about-gradient-title {
  background: linear-gradient(
    110deg,
    #fff8dc 0%,
    #d9b66f 42%,
    #fff2bd 68%,
    #b7833d 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: 0 18px 50px rgba(217, 182, 111, 0.12);
}
.resume-head h1 {
  max-width: 860px !important;
  margin: 0 auto;
  text-wrap: balance;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98 !important;
  font-size: clamp(2.7rem, 7vw, 6.3rem);
  background: linear-gradient(90deg, #fff8ec 0%, #e4c27a 45%, #8fb6e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
html[dir="rtl"] .section-head h1,
html[dir="rtl"] .contact-panel h1,
html[dir="rtl"] .resume-head h1 {
  font-family:
    Vazirmatn, IRANSansX, Peyda, Tahoma, Arial, system-ui, sans-serif !important;
  font-size: clamp(1.34rem, 2.65vw, 2.3rem) !important;
  line-height: 1.45 !important;
  letter-spacing: -0.015em !important;
  text-wrap: balance;
}
html[dir="rtl"] .resume-head h1 {
  max-width: 760px !important;
}
/* Persian nav: keep the visual size equal to English and place the menu on the right. */
@media (min-width: 761px) {
  html[dir="rtl"] .site-header {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 0.35fr) minmax(
        520px,
        auto
      ) !important;
  }
  html[dir="rtl"] .site-header .brand-area {
    grid-column: 1 !important;
    justify-self: start !important;
  }
  html[dir="rtl"] .site-header .site-nav {
    grid-column: 3 !important;
    justify-self: end !important;
    direction: rtl !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 1.05rem !important;
    text-align: right !important;
  }
  html[dir="rtl"] .site-header .site-nav a {
    font-size: 0.96rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
  }
}
/* Refined Persian copy rhythm. */
html[dir="rtl"] .section-lead,
html[dir="rtl"] .hero-text,
html[dir="rtl"] .manifesto-text,
html[dir="rtl"] .about-chapter p,
html[dir="rtl"] .service-card p,
html[dir="rtl"] .contact-panel p,
html[dir="rtl"] .detail-body p {
  font-size: clamp(0.96rem, 1.28vw, 1.05rem) !important;
  line-height: 2.05 !important;
  letter-spacing: 0 !important;
}
/* Blue work image: prevent awkward crop while keeping the frame untouched. */
.home-work-card img[src$="p1.webp"],
.project-card img[src$="p1.webp"],
.portfolio-grid .project-card img[src$="p1.webp"] {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0.42rem !important;
  transform: none !important;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(24, 75, 154, 0.15),
    rgba(2, 9, 22, 0.72) 76%
  ) !important;
}
.home-work-card:hover img[src$="p1.webp"],
.project-card:hover img[src$="p1.webp"] {
  transform: none !important;
}
/* Core Skills stardust: slightly richer but still restrained. */
.career-crystal::before,
.career-crystal::after {
  box-shadow:
    6px 4px 0 rgba(255, 236, 184, 0.72),
    18px 18px 0 rgba(255, 236, 184, 0.48),
    34px 8px 0 rgba(255, 236, 184, 0.64),
    48px 36px 0 rgba(255, 236, 184, 0.45),
    66px 16px 0 rgba(255, 236, 184, 0.58),
    84px 54px 0 rgba(255, 236, 184, 0.4),
    106px 28px 0 rgba(255, 236, 184, 0.55),
    126px 74px 0 rgba(255, 236, 184, 0.36),
    150px 42px 0 rgba(255, 236, 184, 0.5),
    172px 96px 0 rgba(255, 236, 184, 0.32),
    198px 58px 0 rgba(255, 236, 184, 0.46),
    224px 120px 0 rgba(255, 236, 184, 0.28),
    252px 78px 0 rgba(255, 236, 184, 0.42),
    282px 142px 0 rgba(255, 236, 184, 0.24),
    312px 102px 0 rgba(255, 236, 184, 0.38),
    342px 164px 0 rgba(255, 236, 184, 0.22),
    374px 124px 0 rgba(255, 236, 184, 0.34),
    404px 188px 0 rgba(255, 236, 184, 0.2),
    438px 148px 0 rgba(255, 236, 184, 0.3),
    470px 214px 0 rgba(255, 236, 184, 0.18) !important;
  animation-duration: 2.2s !important;
}
.career-crystal::after {
  animation-duration: 2.5s !important;
  animation-delay: -1.05s !important;
}
@media (max-width: 760px) {
  html[dir="rtl"] .site-header .site-nav a {
    font-size: 1rem !important;
  }
  html[dir="rtl"] .section-head h1,
  html[dir="rtl"] .about-gradient-title,
  html[dir="rtl"] .resume-head h1,
  html[dir="rtl"] .contact-panel h1 {
    font-size: clamp(1.24rem, 6.4vw, 1.95rem) !important;
  }
}

/* Persian navigation: readable, same visual weight as English, and right aligned. */
html[dir="rtl"] .site-header .site-nav {
  direction: rtl !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  text-align: right !important;
}
html[dir="rtl"] .site-header .site-nav a {
  direction: rtl !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  text-align: right !important;
}

/* Persian H1/H2 sizing: calmer than English, less bulky, more premium. */
html[dir="rtl"] .hero h1 {
  font-size: clamp(2.05rem, 5.35vw, 3.28rem) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.035em !important;
}
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .section-copy h2,
html[dir="rtl"] .about-gradient-title,
html[dir="rtl"] .resume-head h2,
html[dir="rtl"] .contact-panel h2,
html[dir="rtl"] .detail-copy h1,
html[dir="rtl"] .services-hero h1,
html[dir="rtl"] .work-hero h1 {
  font-size: clamp(1.36rem, 2.75vw, 2.36rem) !important;
  line-height: 1.38 !important;
  letter-spacing: -0.025em !important;
}
html[dir="rtl"] .section-lead,
html[dir="rtl"] .resume-lead,
html[dir="rtl"] .hero-text,
html[dir="rtl"] .manifesto-text,
html[dir="rtl"] .contactText {
  font-size: clamp(0.9rem, 1.18vw, 0.98rem) !important;
  line-height: 2.05 !important;
}

/* Keep mobile Persian titles elegant and not oversized. */
@media (max-width: 760px) {
  html[dir="rtl"] .site-header .site-nav {
    align-items: flex-end !important;
    text-align: right !important;
  }
  html[dir="rtl"] .site-header .site-nav a {
    font-size: 1rem !important;
  }
  html[dir="rtl"] .hero h1 {
    font-size: clamp(1.92rem, 9.4vw, 2.85rem) !important;
  }
  html[dir="rtl"] .section-head h2,
  html[dir="rtl"] .about-gradient-title,
  html[dir="rtl"] .resume-head h2,
  html[dir="rtl"] .contact-panel h2,
  html[dir="rtl"] .detail-copy h1 {
    font-size: clamp(1.32rem, 7.2vw, 2.12rem) !important;
  }
}

@media (min-width: 761px) {
  html[dir="rtl"] .site-header {
    direction: ltr !important;
  }

  html[dir="rtl"] .site-header .brand-area {
    order: 1 !important;
    flex: 0 0 auto !important;
  }

  html[dir="rtl"] .site-header .site-nav {
    order: 2 !important;
    direction: rtl !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: right !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    transform: none !important;
    position: static !important;
    width: auto !important;
  }

  html[dir="rtl"] .site-header .header-actions {
    order: 3 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  html[dir="rtl"] .site-header .site-nav a {
    text-align: right !important;
    font-size: 0.96rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 760px) {
  html[dir="rtl"] .site-header .site-nav {
    direction: rtl !important;
    text-align: right !important;
    align-items: flex-start !important;
  }

  html[dir="rtl"] .site-header .site-nav a {
    width: 100% !important;
    text-align: right !important;
  }
}

/* Persian key titles: calmer and more balanced. */
html[dir="rtl"] [data-i18n="manifestoTitle"] {
  font-size: clamp(1.18rem, 2.18vw, 1.92rem) !important;
  line-height: 1.58 !important;
  letter-spacing: -0.015em !important;
  max-width: 720px !important;
}

html[dir="rtl"] [data-i18n="journeyTitle"],
html[dir="rtl"] [data-i18n="footerTitle"] {
  font-size: clamp(1.08rem, 2vw, 1.72rem) !important;
  line-height: 1.56 !important;
  letter-spacing: -0.012em !important;
}

html[dir="rtl"] [data-i18n="capTitle"] {
  font-size: clamp(1.28rem, 2.55vw, 2.12rem) !important;
  line-height: 1.42 !important;
  max-width: 980px !important;
}

html[dir="rtl"] .capability-card h3 {
  min-height: 2.2em !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1.35 !important;
  font-size: clamp(1rem, 1.3vw, 1.12rem) !important;
}

@media (min-width: 901px) {
  html[dir="rtl"] .capability-card h3 {
    white-space: nowrap !important;
  }
}

.home-work-card img[src$="p1.webp"],
.project-card img[src$="p1.webp"],
.portfolio-grid .project-card img[src$="p1.webp"] {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0.85rem !important;
  transform: none !important;
  background: rgba(2, 9, 22, 0.64) !important;
}

.home-work-card:hover img[src$="p1.webp"],
.project-card:hover img[src$="p1.webp"],
.portfolio-grid .project-card:hover img[src$="p1.webp"] {
  transform: none !important;
}

/* ===== Targeted fix — RTL nav, Persian title sizing, capability cards, blue artwork ===== */
@media (min-width: 761px) {
  html[dir="rtl"] .site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    direction: ltr !important;
  }

  html[dir="rtl"] .site-header .brand-area {
    flex: 0 0 auto !important;
    order: 1 !important;
    margin: 0 !important;
  }

  html[dir="rtl"] .site-header .site-nav {
    position: static !important;
    transform: none !important;
    order: 2 !important;
    margin-left: auto !important;
    margin-right: 1.05rem !important;
    width: auto !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    direction: rtl !important;
    text-align: right !important;
    gap: 1.05rem !important;
  }

  html[dir="rtl"] .site-header .site-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    font-size: 0.96rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-align: right !important;
  }

  html[dir="rtl"] .site-header .header-actions {
    flex: 0 0 auto !important;
    order: 3 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* The manifesto sentence was reduced too far; bring it back up gently. */
html[dir="rtl"] [data-i18n="manifestoTitle"] {
  font-size: clamp(1.34rem, 2.55vw, 2.18rem) !important;
  line-height: 1.5 !important;
  max-width: 760px !important;
}

html[dir="rtl"] .capability-card h3 {
  font-size: clamp(1.12rem, 1.45vw, 1.28rem) !important;
  line-height: 1.35 !important;
  min-height: 2.7em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-top: auto !important;
  white-space: normal !important;
}

@media (min-width: 901px) {
  html[dir="rtl"] .capability-card h3 {
    min-height: 2.7em !important;
  }
}

/* Blue artwork in Home/Works: keep the card, do not crop the actual artwork. */
.home-work-card:nth-child(2) img[src$="p1.webp"],
.home-work-card img[src$="p1.webp"],
.project-card img[src$="p1.webp"],
.portfolio-grid .project-card img[src$="p1.webp"] {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0.58rem !important;
  transform: none !important;
  background: rgba(2, 9, 22, 0.64) !important;
}

.home-work-card:nth-child(2):hover img[src$="p1.webp"],
.home-work-card:hover img[src$="p1.webp"],
.project-card:hover img[src$="p1.webp"],
.portfolio-grid .project-card:hover img[src$="p1.webp"] {
  transform: scale(1.018) !important;
}

@media (max-width: 760px) {
  html[dir="rtl"] .site-header .site-nav {
    direction: rtl !important;
    align-items: flex-end !important;
    text-align: right !important;
  }

  html[dir="rtl"] .site-header .site-nav a {
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: right !important;
  }

  html[dir="rtl"] [data-i18n="manifestoTitle"] {
    font-size: clamp(1.32rem, 6.1vw, 2rem) !important;
  }
}
.manifesto-side {
  max-width: 390px !important;
  min-height: auto !important;
  padding: clamp(1.05rem, 2vw, 1.45rem) !important;
  justify-self: end !important;
  place-items: center !important;
}

.manifesto-side .manifesto-text {
  max-width: 330px !important;
  font-size: clamp(0.94rem, 1.15vw, 1.05rem) !important;
  line-height: 1.85 !important;
}

.micro-sculpture {
  display: none !important;
}

html[dir="rtl"] .manifesto-side {
  justify-self: start !important;
}

.capability-card h3 {
  min-height: 1.55em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  line-height: 1.18 !important;
  font-size: clamp(1.28rem, 1.8vw, 1.55rem) !important;
  white-space: nowrap !important;
}

html[dir="rtl"] .capability-card h3 {
  min-height: 1.55em !important;
  font-size: clamp(1.16rem, 1.52vw, 1.34rem) !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  justify-content: flex-start !important;
  text-align: right !important;
}

@media (max-width: 760px) {
  .manifesto-side,
  html[dir="rtl"] .manifesto-side {
    max-width: 100% !important;
    justify-self: stretch !important;
  }

  .manifesto-side .manifesto-text {
    max-width: 100% !important;
  }

  .capability-card h3,
  html[dir="rtl"] .capability-card h3 {
    white-space: normal !important;
    min-height: auto !important;
  }
}

/* ===== Final fix: Home capability card title alignment ===== */
.capability-grid {
  align-items: stretch !important;
}

.capability-card {
  height: 100% !important;
  min-height: 260px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.capability-card h3,
html[dir="rtl"] .capability-card h3 {
  margin: 0 !important;
  min-height: 3.1rem !important;
  height: 3.1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  font-size: clamp(1.18rem, 1.45vw, 1.38rem) !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[dir="rtl"] .capability-card h3 {
  justify-content: flex-end !important;
  text-align: right !important;
}

.capability-card p,
html[dir="rtl"] .capability-card p {
  margin-top: 1rem !important;
}

@media (max-width: 760px) {
  .capability-card h3,
  html[dir="rtl"] .capability-card h3 {
    height: auto !important;
    min-height: 2.6rem !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
}

html[dir="rtl"] .capability-card h3 {
  text-align: right !important;
  justify-content: flex-end !important;
  direction: rtl !important;
  width: 100% !important;
}

.capability-card::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
}

/* ===== FINAL LOCK: Persian Home capability titles right aligned only ===== */
html[dir="rtl"] .capability-grid .capability-card {
  direction: rtl !important;
  text-align: right !important;
  align-items: stretch !important;
}

html[dir="rtl"] .capability-grid .capability-card h3 {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 3.1rem !important;
  margin: 0 !important;
  direction: rtl !important;
  text-align: right !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[dir="rtl"] .capability-grid .capability-card p {
  width: 100% !important;
  direction: rtl !important;
  text-align: right !important;
}

.capability-card::after,
.capability-card:hover::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

.hero-media .snowflake-scene {
  width: min(43vw, 540px) !important;
  aspect-ratio: 1 !important;
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  perspective: 1100px !important;
  isolation: isolate !important;
  filter: drop-shadow(0 36px 92px rgba(0, 0, 0, 0.48)) !important;
}

.hero-media .snow-orbit {
  position: absolute !important;
  inset: 10% -6% !important;
  border: 1px solid rgba(232, 199, 122, 0.58) !important;
  border-left-color: rgba(255, 255, 255, 0.1) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 50% !important;
  transform: rotate(-17deg) rotateX(67deg) !important;
  box-shadow:
    0 0 28px rgba(232, 199, 122, 0.18),
    inset 0 0 18px rgba(232, 199, 122, 0.08) !important;
  animation: orbitSpin 18s linear infinite !important;
  z-index: 3 !important;
}

.hero-media .snow-dust span {
  position: absolute !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.62) !important;
  opacity: 0.45 !important;
  animation: codedSnowFall 7s linear infinite !important;
}
.hero-media .snow-dust span:nth-child(1) {
  left: 14%;
  top: 20%;
  animation-delay: -1s !important;
}
.hero-media .snow-dust span:nth-child(2) {
  left: 34%;
  top: 9%;
  animation-delay: -3s !important;
}
.hero-media .snow-dust span:nth-child(3) {
  left: 66%;
  top: 16%;
  animation-delay: -5s !important;
}
.hero-media .snow-dust span:nth-child(4) {
  left: 82%;
  top: 38%;
  animation-delay: -2s !important;
}
.hero-media .snow-dust span:nth-child(5) {
  left: 22%;
  top: 62%;
  animation-delay: -4s !important;
}
.hero-media .snow-dust span:nth-child(6) {
  left: 74%;
  top: 74%;
  animation-delay: -6s !important;
}

@keyframes orbitSpin {
  from {
    transform: rotate(-17deg) rotateX(67deg) rotateZ(0deg);
  }
  to {
    transform: rotate(-17deg) rotateX(67deg) rotateZ(360deg);
  }
}
@keyframes codedSnowFall {
  0% {
    transform: translate3d(0, -22px, 0) scale(0.55);
    opacity: 0;
  }
  18% {
    opacity: 0.5;
  }
  100% {
    transform: translate3d(18px, 150px, 0) scale(1);
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .hero-media .snowflake-scene {
    width: min(82vw, 360px) !important;
  }
}

.hero-media .soriel-snow-dust span {
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.85),
    0 0 18px rgba(236, 201, 126, 0.55) !important;
  opacity: 0.88 !important;
  animation: sorielCrystalDustFall 6s linear infinite !important;
}

.hero-media .soriel-snow-dust span:nth-child(1) {
  left: 18%;
  top: 12%;
  animation-delay: -0.6s !important;
}
.hero-media .soriel-snow-dust span:nth-child(2) {
  left: 31%;
  top: 8%;
  animation-delay: -2.1s !important;
}
.hero-media .soriel-snow-dust span:nth-child(3) {
  left: 48%;
  top: 5%;
  animation-delay: -3.4s !important;
}
.hero-media .soriel-snow-dust span:nth-child(4) {
  left: 64%;
  top: 11%;
  animation-delay: -1.5s !important;
}
.hero-media .soriel-snow-dust span:nth-child(5) {
  left: 78%;
  top: 25%;
  animation-delay: -4.2s !important;
}
.hero-media .soriel-snow-dust span:nth-child(6) {
  left: 24%;
  top: 48%;
  animation-delay: -5.1s !important;
}
.hero-media .soriel-snow-dust span:nth-child(7) {
  left: 58%;
  top: 44%;
  animation-delay: -2.8s !important;
}
.hero-media .soriel-snow-dust span:nth-child(8) {
  left: 72%;
  top: 60%;
  animation-delay: -0.9s !important;
}
.hero-media .soriel-snow-dust span:nth-child(9) {
  left: 39%;
  top: 70%;
  animation-delay: -3.8s !important;
}
.hero-media .soriel-snow-dust span:nth-child(10) {
  left: 52%;
  top: 82%;
  animation-delay: -4.8s !important;
}

@keyframes sorielSnowflake3DSpin {
  0% {
    transform: rotateX(0deg) rotateY(-15deg) rotateZ(0deg) scale(1)
      translateZ(0);
  }
  25% {
    transform: rotateX(3deg) rotateY(0deg) rotateZ(90deg) scale(1.018)
      translateZ(12px);
  }
  50% {
    transform: rotateX(0deg) rotateY(15deg) rotateZ(180deg) scale(1.042)
      translateZ(24px);
  }
  75% {
    transform: rotateX(-3deg) rotateY(0deg) rotateZ(270deg) scale(1.018)
      translateZ(12px);
  }
  100% {
    transform: rotateX(0deg) rotateY(-15deg) rotateZ(360deg) scale(1)
      translateZ(0);
  }
}

@keyframes sorielCrystalDustFall {
  0% {
    transform: translate3d(0, -12px, 0) scale(0.55);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  70% {
    opacity: 0.88;
  }
  100% {
    transform: translate3d(-18px, 150px, 0) scale(0.18);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .hero-media .soriel-crystal-scene {
    width: min(82vw, 360px) !important;
  }
  .hero-media .soriel-crystal-snowflake {
    width: 82% !important;
    height: 82% !important;
  }
}

.hero-media .soriel-crystal-scene .snow-orbit,
.hero-media .snow-orbit {
  inset: 5% 5% !important;
  transform-origin: center center !important;
}

.hero-media .soriel-crystal-snowflake {
  width: 72% !important;
  height: 72% !important;
}

.hero-media .soriel-crystal-snowflake .hero-crystal {
  object-position: center center;
  filter: brightness(1.16) saturate(0.72) contrast(1.08)
    drop-shadow(0 18px 26px rgba(210, 232, 255, 0.26))
    drop-shadow(0 0 24px rgba(245, 250, 255, 0.48));
}

/*spiiiiin*/
.hero-media .soriel-crystal-snowflake {
  animation: sorielSnowflake3DSpin 115s linear infinite;
}

.career-crystal::before,
.career-crystal::after,
.resume-feature-card .crystal-spark,
.resume-feature-card .spark-one,
.resume-feature-card .spark-two,
.signature-crystal .crystal-spark,
.resume-ornament span {
  display: none !important;
  content: none !important;
  animation: none !important;
  box-shadow: none !important;
}

.resume-orbit,
.career-crystal,
.career-crystal::before,
.career-crystal::after,
.career-crystal *,
.resume-particles,
.resume-stars,
.resume-sparkles {
  display: none !important;
  animation: none !important;
  filter: none !important;
  opacity: 0 !important;
}

.resume-feature-card > * {
  position: relative;
  overflow: hidden;
  z-index: 2;
   position: relative;
  overflow: hidden;
}

.resume-static-crystal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(58%, 260px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
  opacity: 0.24;
  z-index: 0;
}

.resume-static-crystal img {
  width: 100%;
  height: auto;
  display: block;
  transform: none !important;
  animation: none !important;
  filter: brightness(1.08) saturate(0.72) contrast(1.02)
    drop-shadow(0 0 14px rgba(245, 250, 255, 0.14));
}

.resume-static-crystal::before,
.resume-static-crystal::after {
  content: none !important;
  display: none !important;
}

.resume-feature-card > :not(.resume-static-crystal) {
  position: relative;
  z-index: 2;
}

.resume-feature-card *,
.resume-static-crystal,
.resume-static-crystal * {
  animation-play-state: paused;
}

.resume-static-crystal,
.resume-static-crystal img {
  animation: none !important;
}

/* Core Skills: no moving shape, no star/dust animations. Static crystal image only. */
.career-crystal,
.career-crystal::before,
.career-crystal::after,
.career-crystal *,
.resume-stars,
.resume-sparkles,
.resume-particles,
.resume-dust,
.resume-ornament,
.resume-ornament *,
.resume-feature-card .crystal-spark,
.resume-feature-card .spark-one,
.resume-feature-card .spark-two {
  display: none !important;
  animation: none !important;
  filter: none !important;
  box-shadow: none !important;
}

.resume-static-crystal,
.resume-static-crystal *,
.resume-static-crystal img {
  animation: none !important;
  transform: translate(-50%, -50%) !important;
  will-change: auto !important;
}

.resume-static-crystal img {
  transform: none !important;
  filter: brightness(1.06) saturate(0.72) contrast(1.02)
    drop-shadow(0 0 10px rgba(245, 250, 255, 0.12)) !important;
}

/* General safety for decorative infinite motion that was used during experimentation. */
.glass-blob,
.floating-card,
.signature-crystal,
.crystal-spark,
[class*="spark"],
[class*="stardust"] {
  animation: none !important;
  will-change: auto !important;
}

.resume-feature-card {
  position: relative !important;
  overflow: hidden !important;
}

.resume-feature-card .resume-static-crystal {
  display: grid !important;
  position: absolute !important;
  right: 28px !important;
  left: auto !important;
  top: 50% !important;
  width: min(42%, 230px) !important;
  aspect-ratio: 1 / 1 !important;
  transform: translateY(-50%) !important;
  place-items: center !important;
  opacity: 0.34 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  user-select: none !important;
  animation: none !important;
  will-change: auto !important;
  filter: none !important;
}

html[dir="rtl"] .resume-feature-card .resume-static-crystal {
  left: 28px !important;
  right: auto !important;
}

.resume-feature-card .resume-static-crystal img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
  filter: brightness(1.08) saturate(0.78) contrast(1.03)
    drop-shadow(0 0 12px rgba(245, 250, 255, 0.14)) !important;
}

.resume-feature-card > :not(.resume-static-crystal) {
  position: relative !important;
  z-index: 2 !important;
}

.resume-feature-card .resume-static-crystal::before,
.resume-feature-card .resume-static-crystal::after,
.resume-stars,
.resume-sparkles,
.resume-particles,
.resume-dust,
.career-crystal,
.career-crystal::before,
.career-crystal::after,
.career-crystal * {
  display: none !important;
  content: none !important;
  animation: none !important;
  filter: none !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .resume-feature-card .resume-static-crystal {
    width: 190px !important;
    right: -20px !important;
    top: 30px !important;
    transform: none !important;
    opacity: 0.18 !important;
  }

  html[dir="rtl"] .resume-feature-card .resume-static-crystal {
    left: -20px !important;
    right: auto !important;
  }
}

.resume-stage .resume-feature-card {
  position: sticky !important;
  top: 9rem !important;
  align-self: start !important;
}

@media (max-width: 980px) {
  .resume-stage .resume-feature-card {
    position: relative !important;
    top: auto !important;
  }
}

.resume-stage .resume-feature-card {
  position: sticky !important;
  top: 9rem !important;
  align-self: stretch !important;
  height: 100% !important;
  min-height: 100% !important;
}

.resume-stage .resume-feature-card .resume-static-crystal {
  display: grid !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: clamp(1.4rem, 4vw, 2.4rem) !important;
  width: min(58%, 280px) !important;
  aspect-ratio: 1 / 1 !important;
  transform: translateX(-50%) !important;
  place-items: center !important;
  opacity: 0.78 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  user-select: none !important;
  animation: none !important;
  will-change: auto !important;
  filter: none !important;
}

html[dir="rtl"] .resume-stage .resume-feature-card .resume-static-crystal {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.resume-stage .resume-feature-card .resume-static-crystal img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
  filter: brightness(1.14) saturate(0.86) contrast(1.05)
    drop-shadow(0 0 16px rgba(245, 250, 255, 0.22)) !important;
}

.resume-stage .resume-feature-card > :not(.resume-static-crystal) {
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 980px) {
  .resume-stage .resume-feature-card {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 480px !important;
    align-self: stretch !important;
  }
}

@media (max-width: 900px) {
  #mobileMenuPanel {
    position: fixed !important;
    top: 86px !important;
    left: 18px !important;
    right: 18px !important;
    width: auto !important;
    height: auto !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;

    padding: 24px 20px !important;
    border-radius: 26px !important;

    background: rgba(6, 10, 18, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6) !important;

    z-index: 999999 !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: none !important;
  }

  #mobileMenuPanel.nav-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #mobileMenuPanel a {
    position: static !important;
    display: block !important;
    width: 100% !important;

    text-align: center !important;
    color: #fff !important;
    padding: 8px 0 !important;
    font-size: 15px !important;

    transform: none !important;
  }
}

/* Home capability cards: keep all card copy white. */
.capability-card h3,
.capability-card h3 span,
.capability-card p,
.capability-card p span,
html[dir="rtl"] .capability-card h3,
html[dir="rtl"] .capability-card h3 span,
html[dir="rtl"] .capability-card p,
html[dir="rtl"] .capability-card p span {
  color: #ffffff !important;
}

/* About page: three feature box titles should stay gold. */
.about-page .feature-list strong,
.feature-list strong {
  color: var(--gold) !important;
}

#services .service-card h3,
#services .service-card h3 span,
.service-card h3,
.service-card h3 span {
  color: var(--gold) !important;
}

#services .service-card p,
#services .service-card p span,
.service-card p,
.service-card p span {
  color: #ffffff !important;
}

.resume-feature-card .resume-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  align-items: stretch !important;
  margin-top: 1.55rem !important;
}

.resume-feature-card .resume-metrics > span {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  padding: 0.9rem 0.75rem !important;
  gap: 0.18rem !important;
  text-align: center !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: none !important;
}

.resume-feature-card .resume-metrics strong,
.resume-feature-card .resume-metrics small {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  line-height: 1.15 !important;
  overflow: visible !important;
}

.resume-feature-card .resume-metrics strong {
  color: #fff4cc !important;
}

.resume-feature-card .resume-metrics small {
  margin-top: 0.18rem !important;
  white-space: nowrap !important;
}

.resume-feature-card .resume-metrics [hidden],
html[lang="en"] .resume-feature-card .resume-metrics [data-lang-text="fa"],
html[lang="fa"] .resume-feature-card .resume-metrics [data-lang-text="en"] {
  display: none !important;
}

html[dir="rtl"] .home-work-card span {
  font-size: clamp(0.78rem, 1.05vw, 1rem) !important;
  line-height: 1.35 !important;
}
/* --------------------------------------------------------------------------
   SORIEL Portfolio Upgrade: Product Visuals + Website Templates
   -------------------------------------------------------------------------- */
.portfolio-hub-section {
  position: relative;
  overflow: hidden;
}

.portfolio-entry-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(217, 182, 111, 0.15),
      transparent 18rem
    ),
    radial-gradient(
      circle at 80% 90%,
      rgba(130, 174, 255, 0.1),
      transparent 18rem
    ),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

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

.portfolio-dust span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 247, 220, 0.86);
  box-shadow: 0 0 10px rgba(217, 182, 111, 0.7);
  opacity: 0;
  animation: portfolioDustFall 7.5s linear infinite;
}

.portfolio-dust span:nth-child(1) {
  left: 9%;
  top: 8%;
  animation-delay: 0s;
}
.portfolio-dust span:nth-child(2) {
  left: 17%;
  top: 28%;
  animation-delay: 1.1s;
}
.portfolio-dust span:nth-child(3) {
  left: 28%;
  top: 14%;
  animation-delay: 2.2s;
}
.portfolio-dust span:nth-child(4) {
  left: 38%;
  top: 34%;
  animation-delay: 0.6s;
}
.portfolio-dust span:nth-child(5) {
  left: 48%;
  top: 10%;
  animation-delay: 3s;
}
.portfolio-dust span:nth-child(6) {
  left: 55%;
  top: 30%;
  animation-delay: 1.8s;
}
.portfolio-dust span:nth-child(7) {
  left: 66%;
  top: 18%;
  animation-delay: 2.8s;
}
.portfolio-dust span:nth-child(8) {
  left: 73%;
  top: 38%;
  animation-delay: 0.9s;
}
.portfolio-dust span:nth-child(9) {
  left: 82%;
  top: 13%;
  animation-delay: 3.6s;
}
.portfolio-dust span:nth-child(10) {
  left: 89%;
  top: 42%;
  animation-delay: 1.4s;
}
.portfolio-dust span:nth-child(11) {
  left: 23%;
  top: 50%;
  animation-delay: 4.2s;
}
.portfolio-dust span:nth-child(12) {
  left: 61%;
  top: 55%;
  animation-delay: 2.4s;
}

@keyframes portfolioDustFall {
  0% {
    transform: translate3d(0, -12px, 0) scale(0.55);
    opacity: 0;
  }
  12% {
    opacity: 0.75;
  }
  100% {
    transform: translate3d(24px, 140px, 0) scale(0.2);
    opacity: 0;
  }
}

.portfolio-entry-card {
  position: relative;
  z-index: 1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.028)
    ),
    rgba(7, 17, 31, 0.55);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.portfolio-entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 15%,
    rgba(217, 182, 111, 0.18),
    transparent 15rem
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-entry-card:hover {
  transform: translateY(-7px);
  border-color: rgba(217, 182, 111, 0.42);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.035)
    ),
    rgba(7, 17, 31, 0.68);
}

.portfolio-entry-card:hover::before {
  opacity: 1;
}

.portfolio-entry-card .entry-kicker,
.portfolio-entry-card small,
.portfolio-entry-card strong {
  position: relative;
  z-index: 1;
}

.portfolio-entry-card .entry-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.portfolio-entry-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 0.98;
}

.portfolio-entry-card small {
  color: rgba(255, 255, 255, 0.74);
  max-width: 26rem;
  line-height: 1.7;
}

.portfolio-section-block {
  margin-top: clamp(3rem, 7vw, 6rem);
  scroll-margin-top: 110px;
}

.portfolio-block-head {
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.portfolio-block-head h2 {
  margin: 0.45rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.before-after-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.compare-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, 0.035);
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.compare-before {
  clip-path: inset(0 calc(100% - var(--position, 50%)) 0 0);
  z-index: 2;
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position, 50%);
  z-index: 3;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(217, 182, 111, 0.95),
    transparent
  );
  box-shadow: 0 0 24px rgba(217, 182, 111, 0.55);
  pointer-events: none;
}

.compare-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 238, 190, 0.78);
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.48),
      transparent 42%
    ),
    rgba(217, 182, 111, 0.18);
  box-shadow:
    0 0 0 8px rgba(217, 182, 111, 0.08),
    0 14px 40px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(217, 182, 111, 0.35);
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff2c8;
  border-left: 2px solid #fff2c8;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 10px -10px 0 -8px #fff2c8;
}

.compare-caption {
  padding: 1.1rem 1.2rem 1.25rem;
}

.compare-caption span,
.template-code {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.compare-caption h3 {
  margin: 0.35rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.template-showcase {
  position: relative;
  height: min(62vw, 560px);
  min-height: 440px;
  margin-bottom: 1.3rem;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.template-slide,
.template-showcase-item {
  position: absolute;
  inset: 0;
}

.template-showcase-item {
  width: 210px;
  height: 290px;
  top: 50%;
  left: calc(58% + 230px);
  transform: translateY(-50%);
  border-radius: 24px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  transition: 0.55s ease;
}

.template-showcase-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 7, 14, 0.86),
    rgba(2, 7, 14, 0.16)
  );
}

.template-showcase-item:nth-child(1),
.template-showcase-item:nth-child(2) {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 30px;
}

.template-showcase-item:nth-child(3) {
  left: 58%;
}
.template-showcase-item:nth-child(4) {
  left: calc(58% + 230px);
}
.template-showcase-item:nth-child(n + 5) {
  left: calc(58% + 460px);
  opacity: 0;
}

.template-showcase-content {
  position: absolute;
  z-index: 1;
  left: clamp(1.4rem, 5vw, 4rem);
  top: 50%;
  width: min(390px, 70%);
  transform: translateY(-50%);
  color: #fff;
  display: none;
}

.template-showcase-item:nth-child(2) .template-showcase-content {
  display: block;
}

.template-showcase-content span {
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 800;
}

.template-showcase-content h3 {
  margin: 0.55rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.template-showcase-content p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.template-showcase-content a {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: #19150e;
  background: var(--gold);
  text-decoration: none;
  font-weight: 800;
}

.template-slider-actions {
  position: absolute;
  z-index: 5;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  gap: 0.65rem;
}

.template-slider-actions button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff4cc;
  cursor: pointer;
  font-size: 1.45rem;
  transition: 0.25s ease;
}

.template-slider-actions button:hover {
  background: rgba(217, 182, 111, 0.2);
  border-color: rgba(217, 182, 111, 0.55);
}

.template-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 1.2rem;
}

.template-filter-tabs button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
}

.template-filter-tabs button.active {
  background: var(--gold);
  color: #19150e;
  border-color: transparent;
  font-weight: 800;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.template-card {
  position: relative;
  display: block;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.template-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  opacity: 0.82;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.template-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.86));
}

.template-card > span,
.template-card h3,
.template-card small {
  position: absolute;
  left: 1rem;
  right: 1rem;
  z-index: 2;
}

.template-card > span {
  bottom: 4.6rem;
}
.template-card h3 {
  bottom: 2.3rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}
.template-card small {
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.template-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(7, 17, 31, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.template-overlay strong {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  color: #fff4cc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 182, 111, 0.35);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.template-card:hover img {
  transform: scale(1.06);
  opacity: 1;
}
.template-card:hover .template-overlay {
  opacity: 1;
}
.template-card.is-hidden {
  display: none;
}

/* Portfolio final polish: align entry-card text and template library placement */
.portfolio-entry-card small {
  min-height: 3.4em;
}

.compare-frame {
  cursor: zoom-in;
}

.template-library-block {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  scroll-margin-top: 110px;
}

.template-preview-shell {
  padding-top: clamp(7rem, 12vw, 10rem);
}

.template-preview-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.045);
  margin-bottom: 1.2rem;
}

.template-preview-card img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.template-preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.template-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #19150e;
  background: var(--gold);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 980px) {
  .portfolio-entry-panel,
  .before-after-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }

  /* Keep the semi-ready template showcase identical in Persian and English: all cards stay available. */
  .template-showcase-item:nth-child(3),
  .template-showcase-item:nth-child(4) {
    display: block;
  }
}

@media (max-width: 720px) {
  .portfolio-entry-card {
    min-height: 220px;
  }
  .template-showcase {
    min-height: 420px;
    height: 520px;
  }
  .template-showcase-content {
    width: calc(100% - 2.4rem);
    left: 1.2rem;
  }
  .template-slider-actions {
    left: 1.2rem;
    right: auto;
  }
}

/* SORIEL Portfolio final polish: aligned entry cards and white See More */
.portfolio-entry-card .entry-kicker {
  min-height: 1rem;
}

.portfolio-entry-card strong {
  min-height: clamp(3.9rem, 7vw, 6.8rem);
  display: flex;
  align-items: flex-end;
}

.portfolio-entry-card small {
  min-height: 3.4rem;
  display: block;
}

.template-showcase-content a,
.template-showcase-content a span {
  color: #fff !important;
}

.template-preview-card {
  display: block;
  cursor: default;
}

.template-preview-card.is-highlighted {
  border-color: rgba(217, 182, 111, 0.48);
  box-shadow:
    0 28px 80px rgba(217, 182, 111, 0.12),
    0 28px 90px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
  .portfolio-entry-card strong {
    min-height: auto;
  }

  .portfolio-entry-card small {
    min-height: auto;
  }
}

/* SORIEL language safety for portfolio/template bilingual text */
html[lang="en"] .portfolio-hub-section [data-lang-text="fa"],
html[lang="en"] .template-preview-shell [data-lang-text="fa"],
html[lang="fa"] .portfolio-hub-section [data-lang-text="en"],
html[lang="fa"] .template-preview-shell [data-lang-text="en"] {
  display: none !important;
}

/* SORIEL FIX: keep semi-ready template showcase identical in Persian and English */
.template-showcase,
.template-slide {
  direction: ltr !important;
}

.template-showcase-item {
  display: block !important;
}

.template-showcase-item:nth-child(1) {
  z-index: 1;
}
.template-showcase-item:nth-child(2) {
  z-index: 2;
}
.template-showcase-item:nth-child(3) {
  z-index: 3;
}
.template-showcase-item:nth-child(4) {
  z-index: 4;
}
.template-showcase-item:nth-child(n + 5) {
  z-index: 0;
}

html[dir="rtl"] .template-showcase-content {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] .template-showcase-content a {
  direction: rtl !important;
}

/* SORIEL Product Works page + portfolio See More button */
.portfolio-block-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
}

.portfolio-see-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 182, 111, 0.34);
  background: rgba(255, 255, 255, 0.055);
  color: #fff4cc;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.portfolio-see-more:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 182, 111, 0.65);
  background: rgba(217, 182, 111, 0.14);
}

.product-works-head {
  max-width: 880px;
}

.product-works-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.product-scroll-progress {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 24px rgba(217, 182, 111, 0.35);
  animation: sorielProductProgress auto linear both;
  animation-timeline: scroll(root);
}

.product-scroll-showcase {
  width: 100%;
  max-width: 980px;
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.4rem);
}

.product-scroll-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: clamp(1rem, 2vw, 1.25rem);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(217, 182, 111, 0.18);
  background:
    linear-gradient( 125deg,
      rgba(#7fa4d5),
     rgba(dark blue)),
    rgba(29, 25, 21, 0.58);
  box-shadow: var(--shadow);
  animation: sorielProductFade linear both;
  animation-timeline: view();
  animation-range: entry 8% entry 82%;
}

.product-scroll-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at 18% 10%,
      rgba(217, 182, 111, 0.13),
      transparent 18rem
    ),
    linear-gradient(180deg, transparent 48%, rgba(2, 7, 14, 0.72));
  pointer-events: none;
}

.product-scroll-copy {
  position: relative;
  z-index: 2;
  min-height: 142px;
}

.product-scroll-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(217, 182, 111, 0.32);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(217, 182, 111, 0.1);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.product-scroll-card h2 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.product-scroll-card p {
  max-width: 92%;
  margin: 0;
  color: rgba(247, 241, 231, 0.72);
  font-size: 0.94rem;
  line-height: 1.8;
}

.product-scroll-card img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 270px;
  margin-top: auto;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.36);
  transform-origin: center;
  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
}

.product-scroll-card:hover img {
  transform: scale(1.025);
  opacity: 0.96;
}

html[lang="en"] .product-works-page [data-lang-text="fa"],
html[lang="fa"] .product-works-page [data-lang-text="en"] {
  display: none !important;
}

@keyframes sorielProductProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes sorielProductFade {
  from {
    opacity: 0.28;
    transform: scale(0.92) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-scroll-progress,
  .product-scroll-card {
    animation: none;
  }
  .product-scroll-progress {
    display: none;
  }
}

@media (max-width: 980px) {
  .product-scroll-showcase {
    grid-template-columns: 1fr 1fr;
    max-width: 820px;
  }

  .product-scroll-card {
    min-height: 400px;
  }

  .product-scroll-card img {
    height: 240px;
  }
}

@media (max-width: 720px) {
  .portfolio-block-head--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-scroll-showcase {
    grid-template-columns: 1fr;
  }

  .product-scroll-card {
    min-height: 390px;
  }

  .product-scroll-card img {
    height: 260px;
  }
}

/* SORIEL v1.2 — Live template demo preview */
.template-showcase-item--live {
  background-color: rgba(255, 255, 255, 0.04);
}

.template-live-mini {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.02);
  transform-origin: center;
  pointer-events: none;
  filter: saturate(0.96) contrast(0.98);
}

.template-live-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 7, 14, 0.84), rgba(2, 7, 14, 0.18)),
    radial-gradient(
      circle at 16% 20%,
      rgba(217, 182, 111, 0.2),
      transparent 36%
    );
  pointer-events: none;
}

.template-showcase-item--live .template-showcase-content {
  z-index: 2;
}

.template-live-preview-frame {
  position: relative;
  width: 100%;
  height: clamp(520px, 72vh, 780px);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.template-live-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.template-preview-card--live img {
  display: none;
}

@media (max-width: 768px) {
  .template-live-preview-frame {
    height: 620px;
  }
}

/* SORIEL v1.4 — JSON-driven template marketplace helpers */
.template-price {
  display: block;
  margin: 0.85rem 0 0;
  color: #fff4cc !important;
  letter-spacing: 0.02em !important;
  font-size: 0.86rem !important;
  font-weight: 800;
}

.template-card-price {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 6.05rem;
  z-index: 2;
  color: #fff4cc;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 800;
}

.template-preview-price {
  color: #fff4cc;
  font-weight: 800;
  margin: 0.8rem 0 0;
}

html[dir="rtl"] .template-card > span,
html[dir="rtl"] .template-card h3,
html[dir="rtl"] .template-card small,
html[dir="rtl"] .template-card-price {
  text-align: right;
}

/* SORIEL Product Design refinements: 3-column grid + gallery-ready cards */
.product-scroll-showcase {
  max-width: 1220px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.2rem);
}

.product-scroll-card {
  min-height: 370px;
  padding: clamp(0.85rem, 1.4vw, 1rem);
  cursor: default;
}

.product-scroll-number {
  display: none !important;
}

.product-scroll-copy {
  min-height: 124px;
}

.product-scroll-card h2 {
  color: var(--gold);
  font-family: inherit;
  font-size: clamp(1.05rem, 1.45vw, 1.42rem);
  letter-spacing: -0.02em;
}

.product-scroll-card p {
  max-width: 100%;
  font-size: 0.88rem;
  line-height: 1.7;
}

.product-gallery-trigger {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.product-gallery-trigger::after {
  content: "View Gallery";
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(217, 182, 111, 0.34);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.66);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

html[lang="fa"] .product-gallery-trigger::after {
  content: "مشاهده گالری";
}

.product-gallery-trigger:hover::after,
.product-gallery-trigger:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.product-gallery-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.product-scroll-card .product-gallery-trigger img {
  display: block;
  height: 220px;
  margin-top: 0;
}

.product-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(217, 182, 111, 0.14),
      transparent 34rem
    ),
    rgba(3, 9, 17, 0.92);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.product-gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-gallery-lightbox__inner {
  position: relative;
  width: min(1180px, 94vw);
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.product-gallery-lightbox__image {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow:
    0 30px 110px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.product-gallery-lightbox__close,
.product-gallery-lightbox__nav {
  border: 1px solid rgba(217, 182, 111, 0.28);
  background: rgba(7, 17, 31, 0.74);
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.product-gallery-lightbox__close {
  position: absolute;
  top: -1.1rem;
  inset-inline-end: -1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
}

.product-gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 1.7rem;
}

.product-gallery-lightbox__nav--prev {
  inset-inline-start: -0.6rem;
}
.product-gallery-lightbox__nav--next {
  inset-inline-end: -0.6rem;
}

.product-gallery-lightbox__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.product-gallery-lightbox__thumbs button {
  width: 70px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 182, 111, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  opacity: 0.62;
}

.product-gallery-lightbox__thumbs button.is-active {
  opacity: 1;
  border-color: var(--gold);
}

.product-gallery-lightbox__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .product-scroll-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 860px;
  }
}

@media (max-width: 720px) {
  .product-scroll-showcase {
    grid-template-columns: 1fr;
  }

  .product-scroll-card .product-gallery-trigger img {
    height: 260px;
  }

  .product-gallery-lightbox__close {
    top: 0.65rem;
    inset-inline-end: 0.65rem;
  }

  .product-gallery-lightbox__nav {
    width: 40px;
    height: 40px;
    top: auto;
    bottom: 5.2rem;
    transform: none;
  }

  .product-gallery-lightbox__nav--prev {
    inset-inline-start: 1rem;
  }
  .product-gallery-lightbox__nav--next {
    inset-inline-end: 1rem;
  }
}

/* SORIEL release — final Product Works polish */
.product-gradient-title {
  background: linear-gradient(
    105deg,
    #fff8e7 0%,
    var(--gold) 48%,
    #8ea9ca 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-gradient-title [data-lang-text] {
  color: inherit;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .product-gradient-title {
    color: var(--gold-2);
  }
}

.product-scroll-card h2 {
  color: var(--gold);
}

/* SORIEL v2.0 — Case study and template demo release */
.product-case-link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(217, 182, 111, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(217, 182, 111, 0.08);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
.product-case-link:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 182, 111, 0.58);
  background: rgba(217, 182, 111, 0.14);
}

.product-case-shell,
.template-demo-shell {
  padding-top: clamp(7rem, 12vw, 10rem);
}

.product-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.product-case-copy h1,
.template-demo-head h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  background: linear-gradient(
    105deg,
    #fff8e7 0%,
    var(--gold) 48%,
    #8ea9ca 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.product-case-copy p,
.template-demo-head p {
  color: rgba(247, 241, 231, 0.74);
  line-height: 1.9;
  max-width: 680px;
}
.product-case-image {
  min-height: 520px;
  border-radius: 34px;
  border: 1px solid rgba(217, 182, 111, 0.22);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}
.product-case-image img {
  width: 100%;
  height: 520px !important;
  object-fit: cover;
  border-radius: 34px;
  margin: 0;
}
.product-case-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.product-case-notes article,
.template-demo-glass-card {
  border: 1px solid rgba(217, 182, 111, 0.22);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.105),
    rgba(255, 255, 255, 0.035)
  );
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}
.product-case-notes article {
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
}
.product-case-notes span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.product-case-notes h2 {
  color: var(--gold);
  margin: 0.7rem 0 0.8rem;
  font-size: 1.15rem;
}
.product-case-notes p {
  color: rgba(247, 241, 231, 0.72);
  line-height: 1.8;
  margin: 0;
}

.template-preview-actions {
  display: grid;
  gap: 0.7rem;
  min-width: min(280px, 100%);
}
.template-demo-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff4cc;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}
.template-demo-button:hover {
  border-color: rgba(217, 182, 111, 0.48);
  background: rgba(217, 182, 111, 0.11);
}
.template-demo-browser {
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(217, 182, 111, 0.2);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}
.template-demo-browser__bar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(247, 241, 231, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.template-demo-browser__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(217, 182, 111, 0.55);
}
.template-demo-browser__bar strong {
  margin-inline-start: auto;
  font-size: 0.7rem;
}
.template-demo-browser iframe {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  border: 0;
  background: #fff;
}
.template-demo-browser img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: cover;
}
.template-demo-glass-card {
  width: min(920px, calc(100% - 2rem));
  margin: -3rem auto 0;
  position: relative;
  z-index: 2;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.template-demo-glass-card h2 {
  margin: 0.7rem 0 0.8rem;
  color: var(--gold);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}
.template-demo-glass-card p {
  color: rgba(247, 241, 231, 0.74);
  line-height: 1.85;
}
.template-demo-glass-card ul {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
  padding-inline-start: 1.2rem;
  color: rgba(247, 241, 231, 0.76);
}

@media (max-width: 900px) {
  .product-case-grid,
  .product-case-notes {
    grid-template-columns: 1fr;
  }
  .product-case-image,
  .product-case-image img {
    min-height: 360px;
    height: 360px !important;
  }
  .template-demo-glass-card {
    margin-top: 1rem;
    width: 100%;
  }
}

/* SORIEL launch cleanup — final case study polish */
.product-gradient-title,
.product-gradient-title [data-lang-text]:not([hidden]) {
  display: inline-block;
  background: linear-gradient(
    105deg,
    #fff8e7 0%,
    var(--gold) 45%,
    #cda861 68%,
    #8ea9ca 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.product-scroll-copy h2 [data-lang-text]:not([hidden]) {
  color: var(--gold);
}
.product-case-link {
  background: rgba(9, 23, 40, 0.62);
  border-color: rgba(217, 182, 111, 0.32);
}
.product-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.product-case-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 182, 111, 0.2);
  background: rgba(7, 17, 31, 0.42);
  color: rgba(247, 241, 231, 0.72);
}
.product-case-meta strong {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.product-case-meta em {
  font-style: normal;
  font-size: 0.82rem;
}
.product-case-service-card,
.product-case-notes article,
.template-demo-glass-card {
  border: 1px solid rgba(217, 182, 111, 0.22);
  background: linear-gradient(
    145deg,
    rgba(8, 20, 36, 0.88),
    rgba(5, 14, 27, 0.72)
  );
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}
.product-case-service-card {
  margin-top: clamp(1.6rem, 4vw, 3rem);
  padding: clamp(1.1rem, 2.5vw, 1.7rem);
  border-radius: 28px;
}
.product-case-service-card ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.product-case-service-card li {
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(217, 182, 111, 0.075);
  color: rgba(247, 241, 231, 0.78);
  border: 1px solid rgba(217, 182, 111, 0.12);
}
.product-case-notes h2 {
  margin-top: 0;
}
.product-case-notes article > span {
  display: none;
}
.template-demo-glass-card {
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  z-index: 1;
}
.template-demo-glass-card h2 [data-lang-text]:not([hidden]) {
  color: var(--gold);
}
@media (max-width: 900px) {
  .product-case-service-card ul {
    grid-template-columns: 1fr;
  }
  .product-case-meta {
    align-items: stretch;
  }
  .product-case-meta span {
    width: 100%;
    justify-content: space-between;
  }
}

/* Launch polish: keep the two Post Design comparison cards slightly smaller and cleaner. */
#product-design .before-after-grid {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

#product-design .before-after-card {
  border-radius: 24px;
}

#product-design .compare-frame {
  aspect-ratio: 4 / 4.65;
  border-radius: 24px 24px 0 0;
}

#product-design .compare-caption {
  padding: 0.9rem 1.05rem 1.05rem;
}

#product-design .compare-caption h3 {
  font-size: 1.18rem;
}

@media (max-width: 980px) {
  #product-design .before-after-grid {
    max-width: 560px;
  }
}

/* Final fix: keep before/after drag direction matched with pointer position in RTL and LTR. */
#product-design .compare-range {
  direction: ltr;
  touch-action: none;
}

/* Final launch polish: Projects page sizing, spacing and Product Works filters. */
.portfolio-entry-card {
  min-height: 230px;
  padding: clamp(1.05rem, 2.4vw, 1.65rem);
}

.portfolio-entry-card strong {
  font-size: clamp(1.65rem, 3.25vw, 2.85rem);
}

.portfolio-entry-card small {
  font-size: 0.86rem;
}

.portfolio-block-head {
  margin-bottom: clamp(1.9rem, 3vw, 2.55rem);
}

.portfolio-block-head h2 {
  font-size: clamp(1.72rem, 3.25vw, 3.05rem);
}

.portfolio-see-more {
  min-width: 112px;
  padding: 0.62rem 0.95rem;
  font-size: 0.84rem;
}

#product-design .before-after-grid {
  max-width: 880px;
  gap: clamp(1.45rem, 2.6vw, 2.1rem);
}

#website-templates .portfolio-block-head {
  margin-bottom: clamp(2rem, 3.4vw, 2.8rem);
}

#website-templates .portfolio-block-head h2 {
  font-size: clamp(1.58rem, 2.75vw, 2.55rem);
  max-width: 820px;
}

.product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: clamp(1.2rem, 2.4vw, 2rem) auto clamp(1.4rem, 2.8vw, 2.3rem);
}

.product-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 182, 111, 0.24);
  border-radius: 999px;
  padding: 0.56rem 0.9rem;
  background: rgba(7, 17, 31, 0.46);
  color: rgba(247, 241, 231, 0.76);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.product-filter-btn:hover,
.product-filter-btn.active {
  color: var(--gold);
  border-color: rgba(217, 182, 111, 0.58);
  background: rgba(217, 182, 111, 0.12);
  transform: translateY(-1px);
}

.product-scroll-card.is-filter-hidden {
  display: none;
}

@media (max-width: 720px) {
  .portfolio-entry-card {
    min-height: 200px;
  }
  .portfolio-block-head--split {
    align-items: flex-start;
  }
  #product-design .before-after-grid {
    gap: 1.35rem;
  }
  .product-filter-bar {
    justify-content: flex-start;
  }
  html[dir="rtl"] .product-filter-bar {
    justify-content: flex-end;
  }
}

/* SORIEL Launch Audit Enhancements */
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid rgba(217, 182, 111, 0.9);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(217, 182, 111, 0.14);
}
.site-search-toggle {
  border: 1px solid rgba(217, 182, 111, 0.28);
  background: rgba(255, 255, 255, 0.055);
  color: #fff4cc;
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.site-search-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 182, 111, 0.55);
  background: rgba(217, 182, 111, 0.1);
}
.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(5rem, 11vh, 8rem) 1rem 2rem;
  background: rgba(4, 9, 17, 0.78);
  backdrop-filter: blur(18px);
}
.site-search-overlay.is-open {
  display: flex;
}
.site-search-panel {
  width: min(780px, 100%);
  border: 1px solid rgba(217, 182, 111, 0.2);
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(9, 22, 38, 0.94),
    rgba(5, 11, 22, 0.9)
  );
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.site-search-top {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}
.site-search-input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 1rem 1.15rem;
  font: inherit;
}
.site-search-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.site-search-results {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.site-search-result {
  display: block;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  color: rgba(247, 241, 231, 0.78);
}
.site-search-result strong {
  display: block;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.site-search-empty {
  color: rgba(247, 241, 231, 0.62);
  line-height: 1.8;
}
.gradient-heading,
.product-gradient-title {
  background: linear-gradient(
    92deg,
    #fff6cf 0%,
    #d9b66f 38%,
    #fff1b8 62%,
    #a97a32 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.soriel-process .section-head {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.process-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.process-grid article,
.blog-card {
  border: 1px solid rgba(217, 182, 111, 0.18);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(10, 24, 43, 0.64),
    rgba(5, 12, 23, 0.76)
  );
  padding: clamp(1.1rem, 2.5vw, 1.55rem);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}
.process-grid article span,
.blog-card > span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}
.process-grid h3,
.blog-card h2 {
  color: #fff4cc;
  margin: 0.8rem 0 0.6rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.process-grid p,
.blog-card p {
  color: rgba(247, 241, 231, 0.68);
  line-height: 1.8;
  margin: 0;
}
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.blog-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
}
.contact-form .field-error {
  color: #ffcabd;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  display: block;
}
.form-status {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(217, 182, 111, 0.22);
  background: rgba(217, 182, 111, 0.08);
  color: rgba(247, 241, 231, 0.84);
  line-height: 1.7;
}
.form-status.is-error {
  border-color: rgba(255, 130, 110, 0.34);
  background: rgba(255, 130, 110, 0.08);
}
.reveal {
  transition-duration: 0.28s !important;
}
.product-scroll-card,
.portfolio-entry-card,
.blog-card,
.process-grid article {
  transition-duration: 0.22s !important;
}
@media (max-width: 900px) {
  .process-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .process-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .site-search-toggle {
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* SORIEL launch polish: more luminous glass for template project detail cards. */
.template-demo-glass-card {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.155),
      rgba(255, 255, 255, 0.045) 42%,
      rgba(217, 182, 111, 0.1)
    ),
    rgba(9, 21, 37, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(217, 182, 111, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
}
.template-demo-glass-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 16% 0%,
      rgba(255, 255, 255, 0.24),
      transparent 32%
    ),
    radial-gradient(
      circle at 86% 14%,
      rgba(217, 182, 111, 0.18),
      transparent 34%
    );
  opacity: 0.9;
}
.template-demo-glass-card > * {
  position: relative;
  z-index: 1;
}

/* SORIEL source-only fix: requested limited corrections. */
#product-design .before-after-grid {
  max-width: 840px;
}

#product-design .before-after-card {
  background: linear-gradient(
    145deg,
    rgba(8, 20, 36, 0.88),
    rgba(5, 14, 27, 0.74)
  );
}

#product-design .compare-frame {
  aspect-ratio: 4 / 5;
  background: rgba(5, 14, 27, 0.82);
}

#product-design .compare-img {
  object-fit: cover;
}

#product-design .compare-caption h3,
#product-design .compare-caption h3 [data-lang-text]:not([hidden]) {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.product-case-link,
.template-demo-button {
  font-size: 0.72rem;
  padding: 0.62rem 0.88rem;
}

@media (min-width: 901px) {
  .product-case-image {
    order: -1;
  }
}

.template-demo-glass-card {
  background: linear-gradient(
    145deg,
    rgba(8, 20, 36, 0.94),
    rgba(5, 14, 27, 0.84)
  ) !important;
  border-color: rgba(217, 182, 111, 0.22) !important;
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.template-demo-glass-card::before {
  opacity: 0 !important;
}

/* ===== SORIEL performance pass — Home crystal and mobile rendering ===== */
/* Animations are paused by JS when the hero is outside the viewport or the tab is hidden. */
.soriel-crystal-scene.soriel-motion-paused,
.soriel-crystal-scene.soriel-motion-paused *,
.soriel-crystal-scene.soriel-motion-paused *::before,
.soriel-crystal-scene.soriel-motion-paused *::after {
  animation-play-state: paused !important;
}

/* Keep animated layers on compositor-friendly transforms without forcing the whole page. */
.hero-media .soriel-crystal-snowflake,
.hero-media .soriel-crystal-scene .snow-orbit,
.hero-media .soriel-snow-dust span {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Skip rendering below-the-fold home sections until they approach the viewport. */
@supports (content-visibility: auto) {
  body.crystal-edition main > section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
  }
}

@media (max-width: 760px) {
  /* Keep every particle, but reduce expensive glow and large shadow rasterization. */
  .hero-media .snowflake-scene {
    filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.34)) !important;
  }

  .hero-media .soriel-crystal-snowflake .hero-crystal {
    filter: brightness(1.1) saturate(0.76) contrast(1.06)
      drop-shadow(0 12px 18px rgba(210, 232, 255, 0.16))
      drop-shadow(0 0 12px rgba(245, 250, 255, 0.25)) !important;
  }

  .hero-media .soriel-snow-dust span {
    box-shadow:
      0 0 5px rgba(255, 255, 255, 0.62),
      0 0 9px rgba(236, 201, 126, 0.28) !important;
  }

  .hero-media .snow-orbit {
    box-shadow:
      0 0 14px rgba(232, 199, 122, 0.12),
      inset 0 0 10px rgba(232, 199, 122, 0.05) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media .soriel-crystal-snowflake,
  .hero-media .snow-orbit,
  .hero-media .soriel-snow-dust span {
    animation: none !important;
  }
}

/* SORIEL About responsive portrait refinement */
@media (max-width: 1100px) and (min-width: 761px) {
  .about-split .image-frame {
    width: min(88%, 430px);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .about-split .image-frame {
    width: min(82%, 360px);
    justify-self: center;
  }
}

/* ===== SORIEL Typography System — 2026 ===== */
:root {
  --font-en:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-fa: "Noto Sans Arabic", "Noto Sans", Tahoma, Arial, sans-serif;
  --type-body: clamp(1rem, 0.25vw + 0.95rem, 1.08rem);
  --type-small: clamp(0.9rem, 0.2vw + 0.86rem, 0.98rem);
  --type-card-title: clamp(1.32rem, 0.65vw + 1.12rem, 1.62rem);
  --type-section-title: clamp(2rem, 3vw, 3.45rem);
}

html[dir="ltr"] body {
  font-family: var(--font-en) !important;
  font-size: var(--type-body);
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  font-family: var(--font-fa) !important;
  font-size: var(--type-body);
  line-height: 1.9 !important;
  font-feature-settings:
    "kern" 1,
    "liga" 1;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .brand,
html[dir="rtl"] .eyebrow {
  font-family: var(--font-fa) !important;
}

/* Clear hierarchy for section introductions. */
.section-head h2,
.section-copy h2,
.resume-head h2,
.contact-panel h2,
.detail-copy h1 {
  font-size: var(--type-section-title) !important;
  line-height: 1.08 !important;
}

html[dir="rtl"] .section-head h2,
html[dir="rtl"] .section-copy h2,
html[dir="rtl"] .resume-head h2,
html[dir="rtl"] .contact-panel h2,
html[dir="rtl"] .detail-copy h1 {
  font-size: clamp(1.85rem, 2.5vw + 1rem, 3.1rem) !important;
  line-height: 1.42 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

/* Home capability section: title must lead, card copy must follow. */
.capability-strip .section-head h2 {
  max-width: 880px;
  font-size: clamp(2.15rem, 3.25vw, 3.65rem) !important;
  line-height: 1.08 !important;
}

html[dir="rtl"] .capability-strip .section-head h2 {
  font-size: clamp(1.9rem, 2.6vw + 0.8rem, 3.15rem) !important;
  line-height: 1.45 !important;
}

.capability-card h3,
.capability-card h3 span {
  font-size: var(--type-card-title) !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

.capability-card p,
.capability-card p span {
  font-size: var(--type-small) !important;
  line-height: 1.75 !important;
}

html[dir="rtl"] .capability-card h3,
html[dir="rtl"] .capability-card h3 span {
  font-size: clamp(1.2rem, 0.55vw + 1.08rem, 1.46rem) !important;
  line-height: 1.65 !important;
  font-weight: 600 !important;
  white-space: normal !important;
}

html[dir="rtl"] .capability-card p,
html[dir="rtl"] .capability-card p span {
  font-size: clamp(0.94rem, 0.2vw + 0.9rem, 1.02rem) !important;
  line-height: 2 !important;
}

/* Consistent title/body ratio across all cards. */
.service-card h3,
.resume-node h3,
.project-card h3,
.feature-list strong,
.resume-feature-card h3 {
  font-size: clamp(1.22rem, 0.55vw + 1.08rem, 1.52rem) !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

.service-card p,
.resume-node p,
.project-card p,
.feature-list p,
.resume-feature-card p {
  font-size: var(--type-small) !important;
  line-height: 1.78 !important;
}

html[dir="rtl"] .service-card h3,
html[dir="rtl"] .resume-node h3,
html[dir="rtl"] .project-card h3,
html[dir="rtl"] .feature-list strong,
html[dir="rtl"] .resume-feature-card h3 {
  font-size: clamp(1.16rem, 0.45vw + 1.05rem, 1.42rem) !important;
  line-height: 1.7 !important;
  font-weight: 600 !important;
}

html[dir="rtl"] .service-card p,
html[dir="rtl"] .resume-node p,
html[dir="rtl"] .project-card p,
html[dir="rtl"] .feature-list p,
html[dir="rtl"] .resume-feature-card p {
  line-height: 2 !important;
}

/* Navigation remains compact, but no longer undersized in Persian. */
html[dir="rtl"] .site-header .site-nav a {
  font-size: clamp(0.72rem, 0.18vw + 0.69rem, 0.82rem) !important;
  font-weight: 500 !important;
}

html[dir="rtl"] .lang-switch button[data-lang="fa"] {
  font-family: var(--font-fa) !important;
  font-size: 0.72rem !important;
}

@media (max-width: 760px) {
  .capability-strip .section-head h2,
  html[dir="rtl"] .capability-strip .section-head h2 {
    font-size: clamp(1.75rem, 7.2vw, 2.45rem) !important;
  }

  .capability-card,
  .service-card,
  .project-card,
  .resume-node {
    padding: clamp(1.15rem, 4.6vw, 1.5rem) !important;
  }

  .capability-card h3,
  .capability-card h3 span,
  html[dir="rtl"] .capability-card h3,
  html[dir="rtl"] .capability-card h3 span {
    font-size: clamp(1.2rem, 5vw, 1.42rem) !important;
  }
}

/* =========================================================
   SORIEL Premium Interaction Layer — 2026
   Subtle desktop cursor, card glow, page fade and CTA polish.
   ========================================================= */

:root {
  --soriel-gold-soft: rgba(217, 182, 111, 0.18);
  --soriel-gold-line: rgba(230, 199, 132, 0.48);
  --soriel-gold-gradient: linear-gradient(
    105deg,
    #fff8df 0%,
    #e2bd72 45%,
    #b98a3d 100%
  );
}

/* Selected capability titles only: restrained brand gradient. */
.capability-card h3,
.capability-card h3 span {
  background: var(--soriel-gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* More breathing room between the footer statement and its primary CTA. */
.signature-footer .footer-call h2 {
  margin-bottom: clamp(1.6rem, 2.5vw, 2.2rem);
}

/* Refined card interaction: no jumping, only depth and a quiet gold edge. */
.capability-card,
.service-card,
.project-card,
.home-work-card,
.portfolio-entry-card,
.blog-card,
.resume-feature-card {
  position: relative;
  isolation: isolate;
  transition:
    transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.capability-card::after,
.service-card::after,
.home-work-card::after,
.portfolio-entry-card::after,
.blog-card::after,
.resume-feature-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(235, 198, 119, 0.18),
    transparent 54%
  );
  box-shadow:
    inset 0 1px 0 var(--soriel-gold-line),
    0 14px 40px rgba(159, 111, 31, 0.1);
  transition: opacity 240ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .capability-card:hover,
  .service-card:hover,
  .project-card:hover,
  .home-work-card:hover,
  .portfolio-entry-card:hover,
  .blog-card:hover,
  .resume-feature-card:hover {
    transform: translateY(-2px) scale(1.012);
    border-color: var(--soriel-gold-line);
    box-shadow:
      0 18px 46px rgba(0, 0, 0, 0.28),
      0 0 24px var(--soriel-gold-soft);
  }

  .capability-card:hover::after,
  .service-card:hover::after,
  .home-work-card:hover::after,
  .portfolio-entry-card:hover::after,
  .blog-card:hover::after,
  .resume-feature-card:hover::after {
    opacity: 1;
  }

  .project-card:hover img,
  .home-work-card:hover img,
  .portfolio-entry-card:hover img {
    transform: scale(1.025);
  }
}

/* A slim light sweep on primary actions. */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -35%;
  width: 22%;
  height: 180%;
  pointer-events: none;
  opacity: 0;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.34),
    transparent
  );
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after {
    opacity: 1;
    animation: soriel-button-sheen 650ms ease forwards;
  }
}
@keyframes soriel-button-sheen {
  from {
    left: -35%;
  }
  to {
    left: 120%;
  }
}

/* Fast page transition that never blocks touch devices or reduced-motion users. */
body {
  opacity: 1;
  transition: opacity 180ms ease;
}
body.soriel-page-leaving {
  opacity: 0;
}

/* Fine gold cursor ring: desktop/fine pointer only. */
.soriel-cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(226, 189, 114, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition:
    width 160ms ease,
    height 160ms ease,
    opacity 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
  will-change: transform;
}
.soriel-cursor-ring.is-visible {
  opacity: 0.8;
}
.soriel-cursor-ring.is-interactive {
  width: 18px;
  height: 18px;
  border-color: rgba(245, 213, 145, 0.9);
  box-shadow: 0 0 14px rgba(217, 182, 111, 0.24);
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .soriel-cursor-ring {
    display: none !important;
  }
  body {
    transition: none;
  }
  .btn::after {
    display: none;
  }
  .capability-card,
  .service-card,
  .project-card,
  .home-work-card,
  .portfolio-entry-card,
  .blog-card,
  .resume-feature-card {
    transition: none;
  }
}

/* ===== SORIEL requested precision corrections — final pass ===== */
/* Custom cursor ring is fully removed; native cursor remains. */
.soriel-cursor-ring {
  display: none !important;
}

/* Persian desktop navigation restored to a confidently readable size. */
html[dir="rtl"] .site-header .site-nav a {
  font-size: clamp(0.94rem, 0.18vw + 0.91rem, 1.02rem) !important;
  line-height: 1.45 !important;
}

/* Search quieter; language selector more prominent. */
.site-search-toggle,
html[dir="rtl"] .site-search-toggle {
  font-size: 0.69rem !important;
  min-height: 31px !important;
  padding-inline: 0.62rem !important;
}
.lang-switch,
html[dir="rtl"] .lang-switch {
  min-height: 41px !important;
}
.lang-switch button,
html[dir="rtl"] .lang-switch button,
html[dir="rtl"] .lang-switch button[data-lang="fa"] {
  min-width: 51px !important;
  min-height: 35px !important;
  font-size: 0.88rem !important;
}

/* Home supporting statements remain secondary. */
html[dir="rtl"] .capability-strip .section-head h2 {
  font-size: clamp(1.22rem, 1.05vw + 0.82rem, 1.72rem) !important;
  line-height: 1.65 !important;
}
html[dir="rtl"] .home-showcase .section-head h2 {
  font-size: clamp(1.14rem, 0.92vw + 0.78rem, 1.55rem) !important;
  line-height: 1.65 !important;
}

/* Gold gradient only on the three Home capability-card titles. */
.capability-grid .capability-card h3,
.capability-grid .capability-card h3 span {
  background: linear-gradient(
    105deg,
    #fff4ce 0%,
    #e4bd72 46%,
    #b9873f 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* About glass boxes: one half-step smaller and more consistent. */
html[dir="rtl"] .about-page .feature-list strong,
html[dir="rtl"] .about-page .feature-list strong span {
  font-size: clamp(0.98rem, 0.28vw + 0.93rem, 1.12rem) !important;
}
html[dir="rtl"] .about-page .feature-list > div > span,
html[dir="rtl"] .about-page .feature-list > div > span span {
  font-size: clamp(0.86rem, 0.12vw + 0.84rem, 0.93rem) !important;
}

/* Core Skills feature card hierarchy and metrics. */
html[dir="rtl"] .resume-feature-card .feature-kicker,
html[dir="rtl"] .resume-feature-card .feature-kicker span {
  font-size: 0.92rem !important;
  letter-spacing: 0 !important;
}
.resume-feature-card .resume-metrics > span {
  min-width: 0 !important;
  padding: 0.8rem 0.72rem !important;
  display: grid !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 0.18rem !important;
}
.resume-feature-card .resume-metrics strong {
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.18rem) !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}
.resume-feature-card .resume-metrics small {
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
html[dir="rtl"] .resume-feature-card .resume-metrics strong,
html[dir="rtl"] .resume-feature-card .resume-metrics small {
  letter-spacing: 0 !important;
}

/* Remove decorative 01/02/03 from opened skill-detail pages. */
#detailArtYear,
.detail-art [data-detail-year],
.detail-year,
.detail-index {
  display: none !important;
}

/* Portfolio section heading: cleaner type and less generic. */
html[dir="rtl"] .portfolio-block-head h2 {
  font-family: var(--font-fa) !important;
  font-size: clamp(1.45rem, 1.2vw + 1rem, 2.05rem) !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

/* Template library filter tabs: half-step smaller. */
.template-filter-tabs button,
html[dir="rtl"] .template-filter-tabs button {
  font-size: 0.78rem !important;
  padding: 0.55rem 0.9rem !important;
}

@media (max-width: 1100px) {
  html[dir="rtl"] .site-header .site-nav a {
    font-size: 0.9rem !important;
  }
}
@media (max-width: 760px) {
  html[dir="rtl"] .site-header .site-nav a {
    font-size: 1rem !important;
  }
  .site-search-toggle,
  html[dir="rtl"] .site-search-toggle {
    font-size: 0.68rem !important;
  }
  html[dir="rtl"] .capability-strip .section-head h2 {
    font-size: 1.28rem !important;
  }
  html[dir="rtl"] .home-showcase .section-head h2 {
    font-size: 1.2rem !important;
  }
}

/* ===== SORIEL focused refinement — skills + projects ===== */
/* Decorative numbering removed from every Core Skills card and detail page. */
.resume-node .node-year,
.resume-node .node-index,
#detailMeta,
#detailArtYear {
  display: none !important;
}

/* Core Skills feature metrics: clean, readable and never overlapping. */
.resume-feature-card .resume-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
  align-items: stretch !important;
}
.resume-feature-card .resume-metrics > span {
  min-height: 76px !important;
  padding: 0.82rem 0.58rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.3rem !important;
  overflow: hidden !important;
}
.resume-feature-card .resume-metrics strong {
  display: block !important;
  margin: 0 !important;
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.18rem) !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}
.resume-feature-card .resume-metrics small {
  display: block !important;
  margin: 0 !important;
  font-size: 0.69rem !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  opacity: 0.72 !important;
}
html[dir="rtl"] .resume-feature-card .resume-metrics strong,
html[dir="rtl"] .resume-feature-card .resume-metrics small {
  letter-spacing: 0 !important;
}

/* Product page statement and filters. */
html[dir="rtl"] .product-gradient-title {
  font-size: clamp(1.34rem, 1.5vw + 0.92rem, 2.05rem) !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}
.product-filter-btn,
html[dir="rtl"] .product-filter-btn {
  font-size: 0.72rem !important;
  padding: 0.49rem 0.78rem !important;
}

/* Project details: copy starts at the top and Persian titles never clip. */
.product-case-grid {
  align-items: start !important;
}
.product-case-copy {
  padding-top: clamp(0.15rem, 0.8vw, 0.7rem) !important;
}
html[dir="rtl"] .product-case-copy h1 {
  font-family: var(--font-fa) !important;
  font-size: clamp(2rem, 4.8vw, 4.65rem) !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
  padding-block: 0.08em 0.14em !important;
  margin-bottom: 0.6rem !important;
  overflow: visible !important;
}
html[dir="rtl"] .product-case-copy > p:not(.eyebrow) {
  margin-top: 0 !important;
  font-size: clamp(0.96rem, 0.25vw + 0.91rem, 1.08rem) !important;
  line-height: 1.95 !important;
}
.product-case-notes article h2 {
  margin-bottom: 0.7rem !important;
}
.product-case-notes article p {
  margin-top: 0 !important;
}

/* Gallery controls are centered against the image itself, not the viewport. */
.product-gallery-lightbox__inner {
  width: min(1180px, 94vw) !important;
}
.product-gallery-lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.product-gallery-lightbox__stage .product-gallery-lightbox__image {
  display: block;
  margin: 0;
}
.product-gallery-lightbox__close {
  top: 0.72rem !important;
  inset-inline-end: 0.72rem !important;
  width: 42px !important;
  height: 42px !important;
  line-height: 1 !important;
  z-index: 3;
}
.product-gallery-lightbox__nav {
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  z-index: 3;
}
.product-gallery-lightbox__nav--prev {
  inset-inline-start: 0.72rem !important;
}
.product-gallery-lightbox__nav--next {
  inset-inline-end: 0.72rem !important;
}

@media (max-width: 720px) {
  .resume-feature-card .resume-metrics {
    gap: 0.5rem !important;
  }
  .resume-feature-card .resume-metrics > span {
    min-height: 70px !important;
    padding: 0.72rem 0.42rem !important;
  }
  .resume-feature-card .resume-metrics strong {
    font-size: 0.93rem !important;
  }
  .resume-feature-card .resume-metrics small {
    font-size: 0.64rem !important;
  }
  .product-filter-btn,
  html[dir="rtl"] .product-filter-btn {
    font-size: 0.69rem !important;
    padding: 0.46rem 0.7rem !important;
  }
  .product-gallery-lightbox__nav {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
  }
  .product-gallery-lightbox__nav--prev {
    inset-inline-start: 0.45rem !important;
  }
  .product-gallery-lightbox__nav--next {
    inset-inline-end: 0.45rem !important;
  }
  .product-gallery-lightbox__close {
    top: 0.45rem !important;
    inset-inline-end: 0.45rem !important;
    width: 38px !important;
    height: 38px !important;
  }
}

/* SORIEL portfolio Persian intro — subtle brand gradient */
.portfolio-fa-intro {
  max-width: 760px;
  margin: 0.9rem 0 0;
  font-size: clamp(0.98rem, 1.35vw, 1.15rem);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0;
  opacity: 0.78;
  background: linear-gradient(105deg, #fffaf0 8%, #d7b36a 52%, #9fb3cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[dir="rtl"] .portfolio-fa-intro {
  margin-inline-start: auto;
  margin-inline-end: 0;
  text-align: right;
}

@media (max-width: 720px) {
  .portfolio-fa-intro {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.85;
  }
}

/* SORIEL final interaction and layout precision fixes */
.resume-node .node-year,
.resume-node .node-index {
  display: inline-flex !important;
}
.resume-node {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}
.resume-node .node-year {
  display: none !important;
}
.resume-node .node-index {
  min-width: 2rem;
  align-self: start;
}
.resume-node em {
  align-self: center !important;
  white-space: nowrap;
}

.resume-feature-card .resume-metrics > span {
  overflow: hidden;
}
.resume-feature-card .resume-metrics strong,
.resume-feature-card .resume-metrics small {
  max-width: 100%;
  text-align: center;
}
html[dir="rtl"] .resume-feature-card .resume-metrics strong {
  font-size: clamp(0.9rem, 1.1vw, 1.08rem) !important;
}
html[dir="rtl"] .resume-feature-card .resume-metrics small {
  font-size: 0.66rem !important;
}

/* Gallery controls sit outside the artwork, keeping the image completely clean. */
.product-gallery-lightbox__stage {
  width: min(980px, calc(100vw - 150px)) !important;
}
.product-gallery-lightbox__stage .product-gallery-lightbox__image {
  max-width: 100% !important;
}
.product-gallery-lightbox__nav--prev {
  inset-inline-start: -3.65rem !important;
}
.product-gallery-lightbox__nav--next {
  inset-inline-end: -3.65rem !important;
}
.product-gallery-lightbox__close {
  top: -3.2rem !important;
  inset-inline-end: 0 !important;
}
@media (max-width: 720px) {
  .product-gallery-lightbox__stage {
    width: calc(100vw - 104px) !important;
  }
  .product-gallery-lightbox__nav--prev {
    inset-inline-start: -2.75rem !important;
  }
  .product-gallery-lightbox__nav--next {
    inset-inline-end: -2.75rem !important;
  }
  .product-gallery-lightbox__close {
    top: -2.8rem !important;
    inset-inline-end: 0 !important;
  }
}

/* Replace CSS scroll timeline with a stable JS-controlled left-to-right bar. */
.product-scroll-progress {
  animation: none !important;
  transform-origin: left center !important;
  transform: scaleX(0);
  background: linear-gradient(
    90deg,
    #c89943 0%,
    #f4dc9a 56%,
    #fff4cf 100%
  ) !important;
}

.footer-contact-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  align-items: center;
}
.footer-contact-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.78;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}
.footer-contact-links a:hover {
  opacity: 1;
  color: var(--gold-2);
}
@media (max-width: 720px) {
  .footer-contact-links {
    width: 100%;
    justify-content: center;
  }
}

.site-search-result span {
  line-height: 1.65;
}

/* ===== SORIEL final CPU safety pass ===== */
/* The progress bar is driven by throttled JavaScript; avoid duplicate scroll-linked CSS work. */
.product-scroll-progress {
  animation: none !important;
  animation-timeline: auto !important;
  will-change: transform;
}

/* Existing reveal logic already handles entry motion; view timelines are costly on long pages. */
.product-scroll-card {
  animation: none !important;
  animation-timeline: auto !important;
  will-change: auto !important;
}

/* Preserve the decorative particles visually, but keep them static to avoid continuous repainting. */
.portfolio-dust span,
.hero-media .soriel-snow-dust span {
  animation-play-state: paused !important;
  will-change: auto !important;
}

/* Keep the signature crystal rotation, while pausing the secondary orbit layer. */
.hero-media .soriel-crystal-scene .snow-orbit,
.hero-media .snow-orbit {
  animation-play-state: paused !important;
  will-change: auto !important;
}

/* Large blur layers are expensive on smaller devices. The visual remains intact with a lighter raster. */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .template-demo-glass-card,
  .site-search-panel,
  .glass-card,
  .resume-feature-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* Do not retain compositor layers after hover animations finish. */
.product-scroll-card,
.portfolio-entry-card,
.home-work-card,
.template-card,
.core-skill-card {
  will-change: auto !important;
}

/* ===== SORIEL exact scroll-driven gold bar (reference implementation) ===== */
@keyframes sorielExactScrollProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.product-scroll-progress {
  position: fixed !important;
  top: 76px !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  z-index: 90 !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #c89943 18%,
    #f4dc9a 62%,
    #fff4cf 100%
  ) !important;
  transform-origin: 0 50% !important;
  transform: scaleX(0);
  box-shadow: 0 0 18px rgba(217, 182, 111, 0.28) !important;
  animation: sorielExactScrollProgress auto linear both !important;
  animation-timeline: scroll(root) !important;
  will-change: auto !important;
}

@media (max-width: 720px) {
  .product-scroll-progress {
    top: 68px !important;
    height: 2px !important;
  }
}

/* ===== SORIEL final reliable progress bar + centered Persian portfolio intro + stacked footer contacts ===== */
.product-scroll-progress {
  position: fixed !important;
  top: 76px !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  height: 3px !important;
  z-index: 999 !important;
  pointer-events: none !important;
  background: linear-gradient(
    90deg,
    #b9822f 0%,
    #d8ad59 38%,
    #f0d78d 72%,
    #fff1c2 100%
  ) !important;
  transform-origin: left center !important;
  transform: scaleX(var(--soriel-scroll-progress, 0)) !important;
  animation: none !important;
  animation-timeline: auto !important;
  box-shadow: 0 0 14px rgba(216, 173, 89, 0.28) !important;
  will-change: transform !important;
}

.portfolio-hub-section .section-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
.portfolio-hub-section .portfolio-fa-intro {
  display: block;
  width: min(900px, 100%);
  margin: 1.35rem auto 0 !important;
  text-align: center !important;
  font-size: clamp(1.45rem, 2.8vw, 2.7rem) !important;
  line-height: 1.65 !important;
  font-weight: 600 !important;
  background: linear-gradient(
    90deg,
    #d3a64f 0%,
    #f3df9a 42%,
    #f8f4e8 72%,
    #bcd0e8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  opacity: 0.86 !important;
}

.footer-contact-stack {
  width: min(1180px, calc(100% - 2rem));
  margin: 0.9rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.7;
  color: inherit;
}
.footer-contact-stack p {
  margin: 0;
  opacity: 0.82;
}
.footer-contact-stack a {
  color: inherit;
  text-decoration: none;
}
.footer-contact-stack a:hover {
  color: var(--gold-2);
}
html[lang="fa"] .footer-contact-stack .contact-en,
html[dir="rtl"] .footer-contact-stack .contact-en {
  display: none;
}
html:not([lang="fa"]) .footer-contact-stack .contact-fa,
html:not([dir="rtl"]) .footer-contact-stack .contact-fa {
  display: none;
}

@media (max-width: 720px) {
  .product-scroll-progress {
    top: 68px !important;
    height: 2px !important;
  }
  .portfolio-hub-section .portfolio-fa-intro {
    font-size: clamp(1.2rem, 6vw, 1.75rem) !important;
    margin-top: 1rem !important;
  }
}

/* ===== SORIEL project progress bar — isolated, reliable, left-to-right ===== */
.soriel-project-progress-track {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}
.soriel-project-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    #b9822f 0%,
    #d8ad59 38%,
    #f0d78d 72%,
    #fff1c2 100%
  );
  box-shadow: 0 0 14px rgba(216, 173, 89, 0.34);
  transition: width 70ms linear;
}
@media (max-width: 720px) {
  .soriel-project-progress-track {
    top: 68px;
    height: 2px;
  }
}

/* SORIEL footer contact row — 2026-07 */
.footer-contact-row {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 1.6rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.84;
}
.footer-contact-row span {
  white-space: nowrap;
}
.footer-contact-row a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
.footer-contact-row a:hover {
  color: var(--gold-2);
  opacity: 1;
}
html[lang="fa"] .footer-contact-row .contact-en,
html[dir="rtl"] .footer-contact-row .contact-en {
  display: none;
}
html:not([lang="fa"]) .footer-contact-row .contact-fa,
html:not([dir="rtl"]) .footer-contact-row .contact-fa {
  display: none;
}
@media (max-width: 720px) {
  .footer-contact-row {
    gap: 0.45rem 1rem;
    font-size: 0.82rem;
  }
}

/* ===== SORIEL FINAL precision patch: Core Skills / portfolio / footer / Home dust ===== */
/* Core Skills numbers: one circle, exact centering, responsive. */
.resume-node {
  grid-template-columns: 3.35rem minmax(0, 1fr) auto !important;
  align-items: center !important;
}
.resume-node .node-year {
  display: none !important;
}
.resume-node .node-index {
  display: inline-grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: center !important;
  width: 3.35rem !important;
  height: 3.35rem !important;
  min-width: 3.35rem !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}
html[dir="rtl"] .resume-node {
  grid-template-columns: 3.35rem minmax(0, 1fr) auto !important;
}
@media (max-width: 720px) {
  .resume-node,
  html[dir="rtl"] .resume-node {
    grid-template-columns: 2.85rem minmax(0, 1fr) !important;
    gap: 0.8rem !important;
  }
  .resume-node .node-index {
    width: 2.85rem !important;
    height: 2.85rem !important;
    min-width: 2.85rem !important;
    font-size: 0.82rem !important;
  }
  .resume-node em {
    grid-column: 2 !important;
    justify-self: start !important;
    margin-top: 0.25rem !important;
  }
  html[dir="rtl"] .resume-node em {
    justify-self: end !important;
  }
}

/* Metrics: remove individual glass boxes and move the row lower. */
.resume-feature-card .resume-metrics {
  margin-top: 2rem !important;
  padding-top: 1.15rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  gap: 1.25rem !important;
}
.resume-feature-card .resume-metrics > span {
  min-height: 0 !important;
  padding: 0.2rem 0.35rem !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.resume-feature-card .resume-metrics strong {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.28rem) !important;
}
.resume-feature-card .resume-metrics small {
  font-size: 0.72rem !important;
}

/* Persian portfolio: statement centered first; subtitle below and right-aligned. */
html[dir="rtl"] .portfolio-hub-section .section-head h1 {
  width: 100% !important;
  text-align: center !important;
}
.portfolio-hub-section .portfolio-fa-intro {
  display: block !important;
  width: min(940px, 100%) !important;
  margin: 0 auto !important;
  text-align: center !important;
  font-size: clamp(1.55rem, 3vw, 3rem) !important;
  line-height: 1.55 !important;
}
.portfolio-fa-subtitle {
  width: 100%;
  margin: 1.35rem 0 0 !important;
  text-align: right !important;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem) !important;
  font-weight: 600 !important;
  color: var(--text) !important;
}

/* Footer contacts sit directly below the matching three footer columns. */
.footer-contact-row {
  width: min(1180px, calc(100% - 2rem)) !important;
  margin: 0.8rem auto 0 !important;
  padding-top: 0.8rem !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.75rem 1.5rem !important;
  direction: ltr !important;
}
.footer-contact-row > span:nth-child(1) {
  grid-column: 1;
}
.footer-contact-row > span:nth-child(2) {
  grid-column: 2;
}
.footer-contact-row > span:nth-child(3) {
  grid-column: 3;
}
.footer-contact-row > span {
  text-align: center !important;
}
.footer-contact-row a[href^="https://wa.me"],
.footer-contact-row a[href^="https://t.me"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
}
@media (max-width: 720px) {
  .footer-contact-row {
    grid-template-columns: 1fr !important;
  }
  .footer-contact-row > span {
    grid-column: 1 !important;
  }
}

/* Home dust: subtle colored fall, transform/opacity only. JS pauses it offscreen or in hidden tabs. */
@keyframes sorielLightDustFallFinal {
  0% {
    transform: translate3d(-8px, -36px, 0) scale(0.72);
    opacity: 0;
  }
  14% {
    opacity: 0.78;
  }
  82% {
    opacity: 0.48;
  }
  100% {
    transform: translate3d(16px, 170px, 0) scale(1.04);
    opacity: 0;
  }
}
.hero-media .soriel-snow-dust span {
  animation-name: sorielLightDustFallFinal !important;
  animation-duration: 8.5s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  background: radial-gradient(
    circle,
    #fff 0 22%,
    #f2d58e 45%,
    rgba(150, 191, 235, 0.72) 72%,
    transparent 100%
  ) !important;
  will-change: transform, opacity !important;
}
.hero-media .soriel-snow-dust span:nth-child(2n) {
  animation-duration: 10.5s !important;
}
.hero-media .soriel-snow-dust span:nth-child(3n) {
  animation-duration: 12s !important;
}
.soriel-crystal-scene.soriel-motion-paused .soriel-snow-dust span {
  animation-play-state: paused !important;
}

/* ===== SORIEL FINAL TOUCH — requested layout only ===== */
/* Footer: keep all three contact methods together in one clean column. */
.footer-contact-row {
  width: min(760px, calc(100% - 2rem)) !important;
  margin: 1rem auto 0 !important;
  padding-top: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.42rem !important;
  text-align: center !important;
  direction: ltr !important;
}
.footer-contact-row > span,
.footer-contact-row > span:nth-child(1),
.footer-contact-row > span:nth-child(2),
.footer-contact-row > span:nth-child(3) {
  grid-column: auto !important;
  width: auto !important;
  text-align: center !important;
}

/* Core Skills: one glass card per metric, no inner glass around the value. */
.resume-feature-card .resume-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  margin-top: 2rem !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.resume-feature-card .resume-metrics > span {
  min-width: 0 !important;
  min-height: 118px !important;
  padding: 1.15rem 0.9rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 38px rgba(0, 0, 0, 0.14) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  overflow: hidden !important;
}
.resume-feature-card .resume-metrics strong,
.resume-feature-card .resume-metrics small {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  text-align: center !important;
}
.resume-feature-card .resume-metrics strong {
  font-size: clamp(1.05rem, 1.2vw, 1.28rem) !important;
  line-height: 1.15 !important;
}
.resume-feature-card .resume-metrics small {
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
  letter-spacing: 0.08em !important;
}
@media (max-width: 720px) {
  .resume-feature-card .resume-metrics {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }
  .resume-feature-card .resume-metrics > span {
    min-height: 94px !important;
    padding: 1rem !important;
  }
}

/* About: slightly smaller copy and subtle brand gradient on titles. */
.about-page .feature-list strong,
.feature-list strong {
  font-size: 0.94em !important;
  line-height: 1.35 !important;
  background: linear-gradient(
    100deg,
    #f4dc9c 0%,
    #d5a84e 46%,
    #fff4c8 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.about-page .feature-list > div > span,
.feature-list > div > span {
  font-size: 0.92em !important;
  line-height: 1.75 !important;
}

/* Contact: equal-size primary and WhatsApp buttons in Persian. */
html[lang="fa"] .contact-actions,
html[dir="rtl"] .contact-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.9rem !important;
  width: 100% !important;
}
html[lang="fa"] .contact-actions .btn,
html[dir="rtl"] .contact-actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 50px !important;
  padding-inline: 1.2rem !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
@media (max-width: 720px) {
  html[lang="fa"] .contact-actions,
  html[dir="rtl"] .contact-actions {
    grid-template-columns: 1fr !important;
  }
}

/* SORIEL final lock — footer alignment and Core Skills metric internals */
.footer-contact-row {
  width: min(1180px, calc(100% - 2rem)) !important;
  margin: 1rem auto 0 !important;
  padding-top: 1rem !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 1rem !important;
  text-align: center !important;
  direction: ltr !important;
}
.footer-contact-row > span {
  width: 100% !important;
  text-align: center !important;
  white-space: normal !important;
}
.footer-contact-row > span:nth-child(1) {
  grid-column: 1 !important;
}
.footer-contact-row > span:nth-child(2) {
  grid-column: 2 !important;
}
.footer-contact-row > span:nth-child(3) {
  grid-column: 3 !important;
}
.footer-contact-row a[href^="https://wa.me"],
.footer-contact-row a[href^="https://t.me"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

.resume-feature-card .resume-metrics > span {
  isolation: isolate !important;
}
.resume-feature-card .resume-metrics strong,
.resume-feature-card .resume-metrics strong::before,
.resume-feature-card .resume-metrics strong::after {
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 720px) {
  .footer-contact-row {
    grid-template-columns: 1fr !important;
  }
  .footer-contact-row > span {
    grid-column: 1 !important;
  }
}

/* ===== SORIEL RELEASE — low-CPU Hero light fall =====
   Final override: particles fall smoothly using compositor-only transform/opacity.
   Motion pauses when Hero leaves the viewport or the browser tab is hidden. */
.hero-media .soriel-crystal-scene {
  contain: layout paint style !important;
  overflow: hidden !important;
}

.hero-media .soriel-snow-dust {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  contain: strict !important;
  z-index: 4 !important;
}

@keyframes sorielReleaseDustFall {
  0% {
    transform: translate3d(-5px, -30px, 0) scale(0.68);
    opacity: 0;
  }
  14% {
    opacity: 0.76;
  }
  78% {
    opacity: 0.5;
  }
  100% {
    transform: translate3d(11px, 175px, 0) scale(0.92);
    opacity: 0;
  }
}

.hero-media .soriel-snow-dust span {
  animation: sorielReleaseDustFall 11s linear infinite !important;
  animation-play-state: running !important;
  will-change: transform, opacity !important;
  backface-visibility: hidden !important;
  transform-origin: center !important;
}

.hero-media .soriel-snow-dust span:nth-child(2n) {
  animation-duration: 13.5s !important;
}

.hero-media .soriel-snow-dust span:nth-child(3n) {
  animation-duration: 15.5s !important;
}

.hero-media .soriel-snow-dust span:nth-child(5n) {
  animation-duration: 17s !important;
}

.soriel-crystal-scene.soriel-motion-paused .soriel-snow-dust span {
  animation-play-state: paused !important;
  will-change: auto !important;
}

/* The secondary orbit remains static; it previously caused continuous large-area compositing. */
.hero-media .soriel-crystal-scene .snow-orbit,
.hero-media .snow-orbit {
  animation: none !important;
  will-change: auto !important;
}

/* Reduce costly raster effects only on smaller devices, without removing particles. */
@media (max-width: 760px) {
  .hero-media .soriel-snow-dust span {
    box-shadow:
      0 0 4px rgba(255, 255, 255, 0.58),
      0 0 7px rgba(236, 201, 126, 0.22) !important;
  }

  .hero-media .soriel-crystal-snowflake {
    animation-duration: 160s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media .soriel-snow-dust span,
  .hero-media .soriel-crystal-snowflake {
    animation: none !important;
    will-change: auto !important;
  }
}

/* SORIEL final footer alignment — contact spacing matches the three items above. */
.footer-bottom-clean.footer-detached,
.footer-contact-row {
  width: min(calc(100% - 32px), var(--max)) !important;
  margin-inline: auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 1rem !important;
  align-items: start !important;
}
.footer-bottom-clean.footer-detached > span,
.footer-contact-row > span {
  width: 100% !important;
  text-align: center !important;
}
@media (max-width: 900px) {
  .footer-bottom-clean.footer-detached,
  .footer-contact-row {
    grid-template-columns: 1fr !important;
    row-gap: 0.45rem !important;
  }
}

/* SORIEL Core Skills final metric typography — three outer glass cards only */
.resume-feature-card .resume-metrics > span {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 38px rgba(0, 0, 0, 0.14) !important;
}

.resume-feature-card .resume-metrics strong,
.resume-feature-card .resume-metrics small,
.resume-feature-card .resume-metrics strong > span,
.resume-feature-card .resume-metrics small > span {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: clamp(0.9rem, 0.35vw + 0.84rem, 1.02rem) !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
  text-align: center !important;
}

.resume-feature-card .resume-metrics small {
  opacity: 0.82 !important;
}

html[dir="rtl"] .resume-feature-card .resume-metrics strong,
html[dir="rtl"] .resume-feature-card .resume-metrics small,
html[dir="rtl"] .resume-feature-card .resume-metrics strong > span,
html[dir="rtl"] .resume-feature-card .resume-metrics small > span {
  font-family: var(--font-fa) !important;
  font-size: clamp(0.9rem, 0.35vw + 0.84rem, 1.02rem) !important;
  letter-spacing: 0 !important;
}

/* SORIEL final full-width footer divider */
.footer-bottom-clean.footer-detached {
  position: relative !important;
  border-top: 0 !important;
}
.footer-bottom-clean.footer-detached::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

/* ===== SORIEL v1.1.1 — mobile responsive stability fixes ===== */
@media (max-width: 900px) {
  .site-header {
    z-index: 1000000 !important;
  }

  .site-header [data-nav] {
    position: fixed !important;
    top: 82px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: calc(100dvh - 98px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 18px !important;
    border-radius: 24px !important;
    background: rgba(5, 10, 18, 0.985) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.64) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) scale(0.985) !important;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease !important;
    z-index: 1000001 !important;
  }

  .site-header [data-nav].open,
  .site-header [data-nav].active,
  .site-header [data-nav].nav-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .site-header [data-nav] a,
  html[dir="rtl"] .site-header [data-nav] a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    transform: none !important;
  }

  html[dir="rtl"] .site-header [data-nav] {
    direction: rtl !important;
  }

  body.no-scroll {
    overflow: hidden !important;
    touch-action: none;
  }

  .template-showcase {
    height: auto !important;
    min-height: 500px !important;
    overflow: hidden !important;
  }

  .template-showcase-item:nth-child(2) {
    display: block !important;
  }

  .template-showcase-content {
    left: 1rem !important;
    right: 1rem !important;
    top: auto !important;
    bottom: 76px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    padding: 0 !important;
  }

  html[dir="rtl"] .template-showcase-content {
    left: 1rem !important;
    right: 1rem !important;
  }

  .template-showcase-content h3 {
    font-size: clamp(2rem, 11vw, 3.25rem) !important;
    line-height: 1.02 !important;
  }

  .template-showcase-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.6rem !important;
  }

  .template-showcase-content a {
    display: inline-flex !important;
    min-height: 44px !important;
    align-items: center !important;
    position: relative !important;
    z-index: 8 !important;
  }

  .template-slider-actions {
    left: auto !important;
    right: 1rem !important;
    bottom: 1rem !important;
  }

  html[dir="rtl"] .template-slider-actions {
    right: auto !important;
    left: 1rem !important;
  }

  .template-grid {
    grid-template-columns: 1fr !important;
  }

  .template-card {
    min-height: 360px !important;
  }

  .template-card img {
    min-height: 360px !important;
  }

  .template-overlay {
    inset: auto 12px 12px 12px !important;
    min-height: 52px !important;
    opacity: 1 !important;
    border-radius: 999px !important;
    background: rgba(7, 17, 31, 0.82) !important;
    backdrop-filter: blur(10px);
  }

  .template-overlay strong {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .footer-bottom-clean,
  .footer-bottom,
  .footer-contact-row {
    width: min(calc(100% - 24px), 1180px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .footer-bottom-clean,
  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.65rem !important;
    overflow-wrap: anywhere;
  }

  .footer-contact-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    padding: 1rem 12px 1.5rem !important;
    text-align: center !important;
    direction: ltr !important;
  }

  .footer-contact-row span,
  .footer-contact-row a {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word;
  }

  .footer-call h2 {
    font-size: clamp(2rem, 12vw, 3.5rem) !important;
    line-height: 1.02 !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .site-header [data-nav] {
    top: 76px !important;
    left: 8px !important;
    right: 8px !important;
    padding: 14px !important;
  }

  .template-showcase {
    min-height: 470px !important;
  }

  .template-showcase-content {
    bottom: 72px !important;
  }
}

/* ===== SORIEL v1.1.2 — definitive mobile project/menu/template fix ===== */
@media (max-width: 900px) {
  .site-header,
  .site-header .header-actions,
  .site-header .nav-toggle,
  .site-header [data-nav-toggle] {
    pointer-events: auto !important;
  }

  .site-header .nav-toggle,
  .site-header [data-nav-toggle] {
    position: relative !important;
    z-index: 1000003 !important;
    touch-action: manipulation !important;
  }

  .product-works-page,
  .portfolio-page,
  .inner-page {
    overflow-x: clip !important;
  }

  .template-showcase {
    width: 100% !important;
    max-width: 100% !important;
    height: 440px !important;
    min-height: 440px !important;
    border-radius: 22px !important;
  }

  .template-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .template-showcase-item {
    display: none !important;
  }

  .template-showcase-item:nth-child(2) {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
    border-radius: 22px !important;
  }

  .template-live-mini {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    transform: none !important;
    object-fit: cover !important;
  }

  .template-showcase-content {
    display: block !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 72px !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }

  .template-showcase-content h3 {
    font-size: clamp(1.85rem, 9vw, 2.75rem) !important;
  }

  .template-showcase-content a {
    display: inline-flex !important;
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  .template-live-preview-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: min(72dvh, 620px) !important;
    min-height: 480px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
  }

  .template-live-preview-frame iframe {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }

  .template-preview-card,
  .template-preview-meta,
  .template-preview-actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .template-preview-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .template-showcase {
    height: 410px !important;
    min-height: 410px !important;
  }

  .template-live-preview-frame {
    min-height: 430px !important;
    height: 68dvh !important;
  }
}

/* ===== SORIEL v1.1.4 — root mobile viewport + definitive footer stack ===== */
@media (max-width: 767px) {
  .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .site-footer .footer-contact-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(calc(100% - 24px), 520px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 0 auto !important;
    padding: 1rem 12px 1.5rem !important;
    gap: 0.8rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .site-footer .footer-contact-row > span,
  .site-footer .footer-contact-row > span:nth-child(1),
  .site-footer .footer-contact-row > span:nth-child(2),
  .site-footer .footer-contact-row > span:nth-child(3) {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .site-footer .footer-contact-row a {
    display: inline-block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

@media (max-width: 380px) {
  .site-footer .footer-contact-row > span {
    flex-direction: column !important;
    gap: 0.2rem !important;
  }
}

.soriel-project-progress-track {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  contain: layout paint;
  background: rgba(216, 173, 89, 0.11) !important;
}
.soriel-project-progress-fill {
  width: 100% !important;
  min-width: 0 !important;
  transform: scaleX(var(--soriel-scroll-progress, 0.018)) !important;
  transform-origin: left center !important;
  transition: transform 90ms linear !important;
  will-change: transform;
  opacity: 1 !important;
  visibility: visible !important;
}
html[dir="rtl"] .soriel-project-progress-fill {
  transform-origin: right center !important;
}
body.soriel-page-leaving .soriel-project-progress-track,
body.soriel-page-leaving .soriel-project-progress-fill {
  opacity: 1 !important;
}

/* SORIEL v1.1.7 — portfolio progress bar permanently pinned below header */
.soriel-project-progress-track {
  position: fixed !important;
  inset-inline: 0 !important;
  top: 76px !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 3px !important;
  margin: 0 !important;
  z-index: 2147483000 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: none !important;
  contain: none !important;
  isolation: isolate !important;
  background: rgba(216, 173, 89, 0.11) !important;
}
.soriel-project-progress-fill {
  display: block !important;
  position: absolute !important;
  inset-block: 0 !important;
  inset-inline-start: 0 !important;
  width: var(--soriel-scroll-percent, 1.8%) !important;
  min-width: 2px !important;
  max-width: 100% !important;
  height: 100% !important;
  transform: none !important;
  transform-origin: unset !important;
  transition: width 70ms linear !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: linear-gradient(
    90deg,
    #b9822f 0%,
    #d8ad59 38%,
    #f0d78d 72%,
    #fff1c2 100%
  ) !important;
  box-shadow: 0 0 14px rgba(216, 173, 89, 0.34) !important;
}
html[dir="rtl"] .soriel-project-progress-fill {
  inset-inline-start: auto !important;
  inset-inline-end: 0 !important;
}
@media (max-width: 720px) {
  .soriel-project-progress-track {
    top: 68px !important;
    height: 2px !important;
  }
}

.brand-area .brand {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.brand-area .brand-text {
  display: inline-block;
  background: linear-gradient(
    110deg,
    #f7f4ea 0%,
    #ead7a0 38%,
    #d6aa55 68%,
    #fff3c6 100%
  );
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ead7a0;
  text-shadow: 0 0 12px rgba(216, 173, 89, 0.12);
  transition:
    transform 260ms ease,
    filter 260ms ease,
    text-shadow 260ms ease,
    background-position 420ms ease;
}
.brand-area .brand::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -7px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 194, 111, 0.92),
    transparent
  );
  transform: scaleX(0.28);
  opacity: 0;
  transition:
    transform 280ms ease,
    opacity 280ms ease;
  pointer-events: none;
}
.brand-area .brand:focus-visible {
  outline: 1px solid rgba(232, 194, 111, 0.72);
  outline-offset: 7px;
  border-radius: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .brand-area .brand:hover .brand-text {
    transform: translateY(-1px);
    background-position: 100% 50%;
    filter: brightness(1.12);
    text-shadow:
      0 0 9px rgba(255, 241, 194, 0.24),
      0 0 22px rgba(216, 173, 89, 0.26);
  }
  .brand-area .brand:hover::after {
    transform: scaleX(1);
    opacity: 1;
  }
}
.brand-area .brand:active .brand-text {
  transform: translateY(0) scale(0.985);
}
@media (prefers-reduced-motion: reduce) {
  .brand-area .brand-text,
  .brand-area .brand::after {
    transition: none;
  }
}

.aurelia-feature {
  width: 100%;
  margin: clamp(2.2rem, 5vw, 4.75rem) auto clamp(2.8rem, 6vw, 5.5rem);
}

.aurelia-feature__link {
  position: relative;
  display: block;
  width: 100%;
  min-height: clamp(500px, 70vw, 760px);
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 36px);
  background: #09130f;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.aurelia-feature__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.002);
  filter: brightness(0.82) saturate(0.94) contrast(0.98);
  transition:
    filter 380ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.aurelia-feature__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(3, 9, 7, 0.72) 0%,
      rgba(3, 9, 7, 0.19) 48%,
      transparent 72%
    ),
    linear-gradient(0deg, rgba(2, 7, 5, 0.34), transparent 48%);
  opacity: 0.54;
  transition: opacity 380ms ease;
  pointer-events: none;
}

.aurelia-feature__content {
  position: absolute;
  inset-inline-start: clamp(1.35rem, 5vw, 4.8rem);
  bottom: clamp(1.5rem, 5vw, 4.4rem);
  z-index: 3;
  display: grid;
  gap: 0.62rem;
  max-width: min(560px, 72%);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 320ms ease 70ms,
    transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1) 70ms;
}

.aurelia-feature__content strong {
  color: #fff2c5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.8vw, 4.7rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 0.98;
}

.aurelia-feature__content > span:not(.aurelia-feature__action) {
  color: rgba(247, 241, 231, 0.76);
  font-size: clamp(0.76rem, 1.2vw, 0.94rem);
  letter-spacing: 0.08em;
  line-height: 1.75;
}

.aurelia-feature__action {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  margin-top: 0.35rem;
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.aurelia-feature__line {
  position: absolute;
  left: 31%;
  top: 66%;
  z-index: 2;
  width: min(32vw, 430px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(217, 182, 111, 0),
    #d9b66f 20%,
    #fff1bd 72%,
    rgba(255, 241, 189, 0)
  );
  box-shadow: 0 0 16px rgba(217, 182, 111, 0.42);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 220ms ease;
  pointer-events: none;
}

.aurelia-feature__link:hover .aurelia-feature__image,
.aurelia-feature__link:focus-visible .aurelia-feature__image {
  filter: brightness(1) saturate(1) contrast(1.02);
  transform: scale(1.008);
}

.aurelia-feature__link:hover .aurelia-feature__shade,
.aurelia-feature__link:focus-visible .aurelia-feature__shade {
  opacity: 0.78;
}

.aurelia-feature__link:hover .aurelia-feature__content,
.aurelia-feature__link:focus-visible .aurelia-feature__content {
  opacity: 1;
  transform: translateY(0);
}

.aurelia-feature__link:hover .aurelia-feature__line,
.aurelia-feature__link:focus-visible .aurelia-feature__line {
  opacity: 1;
  transform: scaleX(1);
}

.aurelia-feature__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

/* Hide the persistent page progress line only while View Gallery is open. */
body.soriel-gallery-open .soriel-project-progress-track {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

@media (hover: none), (max-width: 760px) {
  .aurelia-feature__link {
    min-height: min(128vw, 690px);
  }
  .aurelia-feature__image {
    object-position: center 58%;
    filter: brightness(0.88) saturate(0.96) contrast(1);
  }
  .aurelia-feature__shade {
    opacity: 0.76;
    background: linear-gradient(
      0deg,
      rgba(3, 9, 7, 0.76),
      rgba(3, 9, 7, 0.05) 66%
    );
  }
  .aurelia-feature__content {
    inset-inline: 1.25rem;
    bottom: 1.5rem;
    max-width: none;
    opacity: 1;
    transform: none;
  }
  .aurelia-feature__content strong {
    font-size: clamp(1.75rem, 10vw, 3rem);
  }
  .aurelia-feature__line {
    left: 21%;
    top: 70%;
    width: 46%;
    opacity: 0.8;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurelia-feature__image,
  .aurelia-feature__shade,
  .aurelia-feature__content,
  .aurelia-feature__line {
    transition: none !important;
  }
}

/* SORIEL v1.2.2 — Signature Case layout for AURELIA */
.signature-case-notes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  border-top: 1px solid rgba(194, 154, 82, 0.36);
  border-bottom: 1px solid rgba(194, 154, 82, 0.22);
}

.signature-case-notes article {
  position: relative;
  min-height: 250px;
  padding: clamp(2rem, 4vw, 3.75rem);
  background: transparent;
}

.signature-case-notes article + article {
  border-inline-start: 1px solid rgba(194, 154, 82, 0.24);
}

.signature-case-index {
  display: block;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  color: rgba(194, 154, 82, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.signature-case-notes h2 {
  margin: 0 0 1rem;
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.signature-case-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

@media (max-width: 820px) {
  .signature-case-notes {
    grid-template-columns: 1fr;
  }
  .signature-case-notes article {
    min-height: auto;
  }
  .signature-case-notes article + article {
    border-inline-start: 0;
    border-top: 1px solid rgba(194, 154, 82, 0.2);
  }
}

.signature-case-notes {
  display: block !important;
  margin-top: clamp(4rem, 9vw, 8rem) !important;
  border: 0 !important;
}

.signature-case-notes article {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  min-height: 0 !important;
  padding: clamp(2.35rem, 5vw, 4.6rem) 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.signature-case-notes article::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(194, 154, 82, 0),
    rgba(236, 201, 126, 0.72) 22%,
    rgba(194, 154, 82, 0.22) 72%,
    rgba(194, 154, 82, 0)
  );
}

.signature-case-notes article:last-child::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(194, 154, 82, 0),
    rgba(194, 154, 82, 0.42) 35%,
    rgba(194, 154, 82, 0)
  );
}

.signature-case-index {
  display: none !important;
}

.signature-case-notes h2 {
  margin: 0 !important;
  color: var(--gold-2) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.55rem, 2.65vw, 2.75rem) !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: 0.045em !important;
}

.signature-case-notes p {
  max-width: 760px;
  margin: 0 !important;
  color: rgba(247, 241, 231, 0.7) !important;
  font-size: clamp(0.98rem, 0.35vw + 0.92rem, 1.12rem) !important;
  line-height: 2 !important;
}

.signature-case-image {
  position: relative;
  padding: 1px !important;
  border: 0 !important;
  background:
    linear-gradient(#08110e, #08110e) padding-box,
    linear-gradient(
        125deg,
        rgba(255, 243, 198, 0.9) 0%,
        rgba(190, 139, 55, 0.34) 28%,
        rgba(255, 226, 154, 0.86) 56%,
        rgba(125, 84, 25, 0.3) 78%,
        rgba(239, 199, 112, 0.76) 100%
      )
      border-box !important;
  box-shadow:
    0 28px 84px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(217, 182, 111, 0.08) !important;
}

.signature-case-image img {
  width: 100%;
  height: 518px !important;
  border-radius: 33px !important;
  image-rendering: auto;
}

@media (max-width: 820px) {
  .signature-case-notes article {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding-block: 2.4rem !important;
  }
  .signature-case-notes article + article {
    border: 0 !important;
  }
  .signature-case-notes h2 {
    font-size: clamp(1.45rem, 7vw, 2.15rem) !important;
  }
}

@media (min-width: 821px) {
  .product-case-image.signature-case-image {
    width: min(100%, 680px) !important;
    min-height: 400px !important;
    justify-self: end !important;
  }

  .product-case-image.signature-case-image img {
    height: 400px !important;
  }
}

.portfolio-fa-subtitle--after-aurelia {
  width: min(1180px, 100%);
  margin: clamp(2.4rem, 5vw, 4.5rem) auto clamp(1.2rem, 2.5vw, 2rem) !important;
  text-align: center;
  color: rgba(247, 241, 231, 0.78);
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0;
}

@media (max-width: 820px) {
  .product-case-image.signature-case-image,
  .product-case-image.signature-case-image img {
    min-height: 0 !important;
    height: auto !important;
  }

  .portfolio-fa-subtitle--after-aurelia {
    margin-top: 2rem !important;
    font-size: clamp(1rem, 4.8vw, 1.25rem);
  }
}

/* SORIEL v1.2.6 — gallery expansion + champagne hairline frame */
.aurelia-feature__link {
  border: 1px solid transparent;
  background:
    linear-gradient(#09130f, #09130f) padding-box,
    linear-gradient(
        120deg,
        rgba(255, 244, 205, 0.56) 0%,
        rgba(196, 145, 58, 0.18) 30%,
        rgba(245, 213, 141, 0.5) 62%,
        rgba(125, 83, 24, 0.16) 82%,
        rgba(224, 180, 94, 0.42) 100%
      )
      border-box;
  transition:
    box-shadow 420ms ease,
    border-color 420ms ease;
}

.aurelia-feature__image,
.aurelia-feature__shade {
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border-radius: calc(clamp(22px, 3vw, 36px) - 1px);
}

.aurelia-feature__link:hover,
.aurelia-feature__link:focus-visible {
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(217, 182, 111, 0.13);
}

/* SORIEL v1.2.7 — compact From the Studio Instagram section */
.studio-feed {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(206, 166, 86, 0.07),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(7, 19, 15, 0.98), rgba(5, 14, 11, 1));
}

.studio-feed__inner {
  display: grid;
  gap: clamp(1.8rem, 3vw, 2.8rem);
}

.studio-feed__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.studio-feed__heading h2 {
  max-width: 720px;
  margin: 0.55rem 0 0;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.studio-feed__profile {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  color: rgba(247, 241, 231, 0.82);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 240ms ease,
    transform 240ms ease;
}

.studio-feed__profile svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
}

.studio-feed__profile:hover,
.studio-feed__profile:focus-visible {
  color: #e2bd72;
  transform: translateY(-2px);
}

.studio-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.3vw, 1.15rem);
  width: min(100%, 920px);
}

.studio-feed__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: clamp(13px, 1.6vw, 20px);
  background: #0a120f;
  isolation: isolate;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.studio-feed__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 46%,
    rgba(3, 8, 6, 0.72) 100%
  );
  opacity: 0.42;
  transition: opacity 360ms ease;
}

.studio-feed__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  filter: brightness(0.9) saturate(0.94);
  transition:
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
}

.studio-feed__overlay {
  position: absolute;
  inset-inline: 1rem;
  bottom: 0.95rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 250, 239, 0.94);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.studio-feed__item:hover img,
.studio-feed__item:focus-visible img {
  transform: scale(1.035);
  filter: brightness(1) saturate(1);
}

.studio-feed__item:hover::after,
.studio-feed__item:focus-visible::after {
  opacity: 0.78;
}

.studio-feed__item:hover .studio-feed__overlay,
.studio-feed__item:focus-visible .studio-feed__overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .studio-feed__heading {
    align-items: start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .studio-feed__grid {
    width: 100%;
    gap: 0.65rem;
  }

  .studio-feed__overlay {
    inset-inline: 0.75rem;
    bottom: 0.72rem;
    font-size: 0.62rem;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .studio-feed__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .studio-feed__item {
    border-radius: 11px;
  }

  .studio-feed__overlay span:first-child {
    display: none;
  }
}

/* SORIEL v1.2.8 — compact Instagram signature above footer */
.signature-footer .studio-feed--compact {
  padding: 0 0 clamp(2.2rem, 4vw, 3.5rem);
  background: transparent;
}

.studio-feed__inner--compact {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
  gap: 1rem;
}

.studio-feed__heading--compact {
  align-items: flex-end;
  gap: 1.25rem;
}

.studio-feed__heading--compact h2 {
  max-width: 430px;
  margin-top: 0.35rem;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.studio-feed__heading--compact .eyebrow {
  font-size: 0.67rem;
}

.studio-feed__grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 410px);
  gap: 0.7rem;
}

.studio-feed__grid--compact .studio-feed__item {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.studio-feed__grid--compact .studio-feed__overlay {
  inset-inline: 0.7rem;
  bottom: 0.65rem;
  font-size: 0.58rem;
}

.studio-feed__heading--compact .studio-feed__profile {
  font-size: 0.68rem;
}

.studio-feed__heading--compact .studio-feed__profile svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .studio-feed__heading--compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .studio-feed__grid--compact {
    width: min(100%, 360px);
  }
}

/* SORIEL v1.2.9 — ultra-compact Instagram signature */
.signature-footer .studio-feed--compact {
  position: relative;
  padding: clamp(1.2rem, 2.2vw, 1.8rem) 0 clamp(1.4rem, 2.6vw, 2rem);
}

.signature-footer .studio-feed--compact::before {
  content: "";
  display: block;
  width: min(calc(100% - 2rem), 720px);
  height: 1px;
  margin: 0 auto clamp(1.1rem, 2vw, 1.5rem);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 164, 94, 0.48),
    transparent
  );
}

.studio-feed__inner--compact {
  width: min(calc(100% - 2rem), 520px);
  gap: 0.65rem;
}

.studio-feed__heading--compact {
  align-items: center;
  gap: 0.75rem;
}

.studio-feed__heading--compact h2 {
  max-width: 290px;
  margin-top: 0.2rem;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.studio-feed__heading--compact .eyebrow {
  font-size: 0.54rem;
}

.studio-feed__grid--compact {
  width: 145px;
  gap: 0.38rem;
}

.studio-feed__grid--compact .studio-feed__item {
  border-radius: 7px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.studio-feed__grid--compact .studio-feed__overlay {
  inset-inline: 0.35rem;
  bottom: 0.32rem;
  font-size: 0.44rem;
}

.studio-feed__heading--compact .studio-feed__profile {
  font-size: 0.56rem;
  gap: 0.38rem;
}

.studio-feed__heading--compact .studio-feed__profile svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 720px) {
  .studio-feed__inner--compact {
    width: min(calc(100% - 2rem), 360px);
  }

  .studio-feed__heading--compact {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .studio-feed__grid--compact {
    width: 132px;
  }
}

/* SORIEL v1.3.0 — minimal Instagram journey link */
.signature-footer .studio-feed--compact {
  display: none !important;
}

.studio-journey {
  padding: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(1.8rem, 3.4vw, 2.7rem);
  background: transparent;
}

.studio-journey::before {
  content: "";
  display: block;
  width: min(calc(100% - 2rem), 760px);
  height: 1px;
  margin: 0 auto clamp(1.5rem, 2.6vw, 2rem);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 164, 94, 0.46),
    transparent
  );
}

.studio-journey__inner {
  width: min(calc(100% - 2rem), 760px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.studio-journey__text {
  margin: 0;
  color: rgba(247, 241, 231, 0.78);
  font-size: clamp(0.84rem, 1.1vw, 0.98rem);
  letter-spacing: 0.01em;
}

.studio-journey__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d7b36a;
  font-size: clamp(0.76rem, 0.95vw, 0.88rem);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.studio-journey__link:hover,
.studio-journey__link:focus-visible {
  color: #f0cf8b;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .studio-journey__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
}

/* SORIEL v1.3.1 — Instagram belongs to the shared footer contact stack. */
.studio-journey {
  display: none !important;
}
.footer-contact-row .footer-instagram-contact a {
  color: #d7b36a !important;
  letter-spacing: 0.035em;
  transition:
    color 220ms ease,
    transform 220ms ease;
}
.footer-contact-row .footer-instagram-contact a:hover,
.footer-contact-row .footer-instagram-contact a:focus-visible {
  color: #f0cf8b !important;
}

/* SORIEL v1.3.2 — unified monochrome social marks in one unbroken footer row. */
.site-footer .footer-contact-row.footer-social-row {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(0.9rem, 2vw, 1.55rem) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 1.2rem auto 0 !important;
  padding: 0 !important;
  direction: ltr !important;
  overflow: visible !important;
}
.site-footer .footer-contact-row.footer-social-row > a.footer-social-link {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  color: rgba(247, 241, 231, 0.76) !important;
  line-height: 1 !important;
  transition:
    color 240ms ease,
    transform 240ms ease,
    filter 240ms ease !important;
}
.site-footer .footer-contact-row.footer-social-row > a.footer-social-link svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.site-footer .footer-contact-row.footer-social-row > a.footer-social-link:hover,
.site-footer
  .footer-contact-row.footer-social-row
  > a.footer-social-link:focus-visible {
  color: #dfbd76 !important;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 7px rgba(223, 189, 118, 0.2));
}
@media (max-width: 520px) {
  .site-footer .footer-contact-row.footer-social-row {
    gap: clamp(0.72rem, 4.6vw, 1.05rem) !important;
    white-space: nowrap !important;
  }
  .site-footer .footer-contact-row.footer-social-row > a.footer-social-link {
    width: 20px !important;
    height: 20px !important;
  }
}

/* SORIEL v1.3.3 — footer social marks form one optically aligned bridge. */
.site-footer .footer-bottom-clean.footer-detached {
  grid-template-columns: max-content minmax(300px, 1fr) max-content !important;
  align-items: center !important;
  column-gap: clamp(1.4rem, 3vw, 3rem) !important;
}
.site-footer .footer-bottom-clean.footer-detached > .footer-tagline-hidden {
  display: none !important;
}
.site-footer
  .footer-bottom-clean.footer-detached
  > .footer-contact-row.footer-social-row {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 clamp(0.25rem, 1.2vw, 0.9rem) !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(1.4rem, 3.4vw, 3.2rem) !important;
  overflow: visible !important;
}
.site-footer
  .footer-bottom-clean.footer-detached
  > .footer-contact-row.footer-social-row
  > a.footer-social-link {
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  min-height: 19px !important;
  display: grid !important;
  place-items: center !important;
  line-height: 0 !important;
}
.site-footer
  .footer-bottom-clean.footer-detached
  > .footer-contact-row.footer-social-row
  > a.footer-social-link
  svg {
  width: 18px !important;
  height: 18px !important;
  overflow: visible !important;
  transform-origin: center !important;
}
/* Optical normalization for marks with different native silhouettes. */
.site-footer .footer-social-row a[aria-label="Telegram"] svg {
  transform: scale(0.92);
}
.site-footer .footer-social-row a[aria-label="Email"] svg {
  transform: scale(0.9);
}
.site-footer .footer-social-row a[aria-label="LinkedIn"] svg {
  transform: scale(0.88);
}
.site-footer .footer-social-row a[aria-label="Instagram"] svg {
  transform: scale(0.94);
}

/* Home journey preview: reduce the oversized headline/card presence. */
.home-journey .journey-preview {
  min-height: 300px !important;
  padding: clamp(1.7rem, 3.6vw, 3rem) !important;
  border-radius: 34px !important;
}
.home-journey .journey-preview h2 {
  max-width: 780px !important;
  font-size: clamp(1.75rem, 3.2vw, 3.35rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.04em !important;
}
.home-journey .journey-preview p:not(.eyebrow) {
  max-width: 580px !important;
  font-size: clamp(0.92rem, 1vw, 1rem) !important;
  line-height: 1.75 !important;
}

@media (max-width: 900px) {
  .site-footer .footer-bottom-clean.footer-detached {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    row-gap: 0.75rem !important;
    text-align: center !important;
  }
  .site-footer
    .footer-bottom-clean.footer-detached
    > .footer-contact-row.footer-social-row {
    grid-column: 1 !important;
    width: min(100%, 340px) !important;
    order: 2 !important;
    gap: 1.15rem !important;
  }
  .site-footer .footer-bottom-clean.footer-detached > span:first-child {
    order: 1;
  }
  .site-footer .footer-bottom-clean.footer-detached > span:last-child {
    order: 3;
  }
  .home-journey .journey-preview {
    min-height: 260px !important;
    padding: 1.55rem !important;
    border-radius: 28px !important;
  }
}

/* SORIEL v1.3.4 — restore original footer copy, then place social marks on a separate ruled row. */
.site-footer .footer-bottom-clean.footer-detached {
  grid-template-columns: repeat(3, max-content) !important;
  justify-content: space-between !important;
  align-items: center !important;
  column-gap: clamp(1rem, 3vw, 3rem) !important;
}
.site-footer .footer-bottom-clean.footer-detached > .footer-tagline-hidden {
  display: inline !important;
}
.site-footer
  .footer-bottom-clean.footer-detached
  + .footer-contact-row.footer-social-row {
  position: relative !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: space-evenly !important;
  gap: clamp(1.4rem, 5vw, 4rem) !important;
  width: min(100% - 2rem, 1180px) !important;
  max-width: 1180px !important;
  margin: 1.15rem auto 0 !important;
  padding: 1.15rem clamp(0.5rem, 2vw, 1.5rem) 0 !important;
  direction: ltr !important;
  border-top: 1px solid transparent !important;
  border-image: linear-gradient(
      90deg,
      transparent,
      rgba(223, 189, 118, 0.48),
      transparent
    )
    1 !important;
  overflow: visible !important;
}
.site-footer
  .footer-bottom-clean.footer-detached
  + .footer-contact-row.footer-social-row
  > a.footer-social-link {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  color: rgba(247, 241, 231, 0.76) !important;
  line-height: 0 !important;
}
.site-footer
  .footer-bottom-clean.footer-detached
  + .footer-contact-row.footer-social-row
  > a.footer-social-link
  svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: currentColor !important;
}
@media (max-width: 900px) {
  .site-footer .footer-bottom-clean.footer-detached {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    row-gap: 0.55rem !important;
    text-align: center !important;
  }
  .site-footer
    .footer-bottom-clean.footer-detached
    + .footer-contact-row.footer-social-row {
    width: min(100% - 1.5rem, 460px) !important;
    gap: clamp(1rem, 5.5vw, 1.8rem) !important;
    padding-top: 1rem !important;
  }
}
@media (max-width: 430px) {
  .site-footer
    .footer-bottom-clean.footer-detached
    + .footer-contact-row.footer-social-row {
    width: calc(100% - 1.2rem) !important;
    gap: 0.9rem !important;
  }
  .site-footer
    .footer-bottom-clean.footer-detached
    + .footer-contact-row.footer-social-row
    > a.footer-social-link {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
  }
  .site-footer
    .footer-bottom-clean.footer-detached
    + .footer-contact-row.footer-social-row
    > a.footer-social-link
    svg {
    width: 17px !important;
    height: 17px !important;
  }
}

body.crystal-edition .hero-bg {
  background: transparent !important;
}

body.crystal-edition .brand-manifesto .manifesto-grid h2 {
  font-size: clamp(2.2rem, 5.9vw, 6.4rem);
}

:root {
  --card: #1a2d45;
  --card-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(231, 210, 167, 0.18);
  --text: #f7f3ea;
  --muted: #c3bdaf;
  --gold: #d7bd82;
  --gold-2: #f2dfad;
  --shadow: 0 22px 64px rgba(3, 10, 20, 0.28);
  --shadow-hover: 0 30px 78px rgba(3, 10, 20, 0.38);
  --radius: 22px;
  --radius-small: 16px;
  --section-space: clamp(76px, 8vw, 116px);
  --title-xl: clamp(3rem, 7vw, 6.2rem);
  --title-lg: clamp(2.35rem, 5vw, 4.25rem);
  --title-md: clamp(1.55rem, 2.6vw, 2.25rem);
  --body-lg: clamp(1rem, 1.5vw, 1.16rem);
}
body {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}
html[dir="rtl"] body,
html[lang="fa"] body {
  font-family: Vazirmatn, Manrope, sans-serif;
}
.hero h1,
.section-copy h2,
.section-head h1,
.section-head h2,
.contact-panel h1,
.contact-panel h2,
.detail-shell h1,
.service-card h3,
.project-card h3,
.timeline-card h3,
.footer-call h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-copy h2,
html[dir="rtl"] .section-head h1,
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .contact-panel h1,
html[dir="rtl"] .contact-panel h2,
html[dir="rtl"] .detail-shell h1,
html[dir="rtl"] .service-card h3,
html[dir="rtl"] .project-card h3,
html[dir="rtl"] .timeline-card h3,
html[dir="rtl"] .footer-call h2 {
  font-family: Vazirmatn, sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.22;
}
.hero h1 {
  font-size: var(--title-xl);
  max-width: 900px;
}
.section-copy h2,
.section-head h1,
.section-head h2,
.contact-panel h1,
.contact-panel h2 {
  font-size: var(--title-lg);
}
.service-card h3,
.project-card h3,
.timeline-card h3,
.capability-card h3 {
  font-size: var(--title-md);
}
.hero-text,
.section-intro,
.section-lead,
.section-copy p,
.contact-panel p {
  font-size: var(--body-lg);
}
.section {
  padding-block: var(--section-space);
}
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  gap: clamp(1rem, 3vw, 2.5rem);
}
.section-intro {
  margin-top: -1.2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.site-header {
  background: rgba(16, 29, 47, 0.78);
  box-shadow: 0 8px 32px rgba(3, 10, 20, 0.12);
}
.site-nav a {
  position: relative;
  transition:
    color 0.28s ease,
    transform 0.28s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.45rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.site-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.site-nav a:hover::after {
  transform: scaleX(1);
}
.btn,
.service-card,
.project-card,
.timeline-card,
.capability-card,
.image-frame,
.contact-panel,
.detail-shell {
  transition:
    transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background-color 0.32s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(3, 10, 20, 0.22);
}
.service-card:hover,
.timeline-card:hover,
.capability-card:hover,
.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(215, 189, 130, 0.48);
  box-shadow: var(--shadow-hover);
}
.project-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}
.service-card,
.timeline-card,
.capability-card,
.contact-panel,
.detail-shell {
  background-color: var(--card-soft);
}
.section-muted {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(42, 68, 98, 0.09)
  );
}
.site-footer,
.footer-detached {
  background: transparent;
}
@media (max-width: 1024px) {
  :root {
    --section-space: 86px;
  }
}
@media (max-width: 760px) {
  :root {
    --section-space: 68px;
  }
  .site-nav {
    background: rgba(18, 34, 53, 0.98);
  }
  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }
}
@media (max-width: 420px) {
  .section-copy h2,
  .section-head h1,
  .section-head h2,
  .contact-panel h1,
  .contact-panel h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }
}

/* SORIEL v3.1 — focused editorial refinement */
:root {
  --card: #203a57;
}

html[dir="rtl"] .hero-actions .btn {
  min-width: 168px;
  justify-content: center;
  white-space: nowrap;
}

/* Manifesto heading: one measured step larger in Persian. */
html[dir="rtl"] body.crystal-edition .brand-manifesto .manifesto-grid h2 {
  font-size: clamp(2.55rem, 6.35vw, 6.8rem);
  line-height: 1.18;
}

/* About feature cards: equal, quieter and more editorial. */
.about-page .feature-list {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(1.75rem, 4vw, 3rem) auto 0;
}
.about-page .feature-list > div {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: clamp(1.35rem, 2.6vw, 1.85rem);
  border: 1px solid rgba(232, 218, 187, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.065),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: 0 18px 48px rgba(4, 14, 27, 0.2);
  overflow: hidden;
  transition:
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}
.about-page .feature-list > div::before {
  content: "0" counter(feature-card);
  counter-increment: feature-card;
  position: absolute;
  top: 1.15rem;
  inset-inline-start: 1.35rem;
  font:
    600 0.72rem/1 Manrope,
    sans-serif;
  letter-spacing: 0.14em;
  color: rgba(242, 223, 173, 0.62);
}
.about-page .feature-list {
  counter-reset: feature-card;
}
.about-page .feature-list > div:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 189, 130, 0.34);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.082),
    rgba(255, 255, 255, 0.032)
  );
  box-shadow: var(--shadow-hover);
}
.about-page .feature-list strong {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem) !important;
  line-height: 1.35 !important;
}
.about-page .feature-list > div > span {
  font-size: 0.94rem !important;
  line-height: 1.75 !important;
  color: var(--muted);
}

/* Journey and collaboration panels: one component, one scale, one motion. */
.home-journey .journey-preview,
.signature-footer .footer-signature {
  min-height: 390px;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 34px;
  border: 1px solid rgba(232, 218, 187, 0.16);
  background:
    radial-gradient(
      circle at 78% 12%,
      rgba(215, 189, 130, 0.16),
      transparent 28rem
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.068),
      rgba(255, 255, 255, 0.024)
    );
  box-shadow: 0 22px 60px rgba(4, 14, 27, 0.22);
  transition:
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}
.home-journey .journey-preview:hover,
.signature-footer .footer-signature:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 189, 130, 0.32);
  box-shadow: var(--shadow-hover);
  background:
    radial-gradient(
      circle at 78% 12%,
      rgba(215, 189, 130, 0.2),
      transparent 28rem
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.082),
      rgba(255, 255, 255, 0.03)
    );
}
.home-journey .journey-preview h2,
.signature-footer .footer-call h2 {
  max-width: 820px;
  font-size: clamp(2.2rem, 4.4vw, 4.5rem);
  line-height: 1.05;
  margin: 0;
}
html[dir="rtl"] .home-journey .journey-preview h2,
html[dir="rtl"] .signature-footer .footer-call h2 {
  line-height: 1.24;
}
.signature-footer,
.home-journey + .signature-footer {
  border-top: 0 !important;
}
.signature-footer::before,
.footer-signature::before {
  display: none !important;
  content: none !important;
}

@media (max-width: 760px) {
  .about-page .feature-list {
    grid-template-columns: 1fr;
  }
  .about-page .feature-list > div {
    min-height: 160px;
  }
  .home-journey .journey-preview,
  .signature-footer .footer-signature {
    min-height: 330px;
    border-radius: 26px;
  }
  html[dir="rtl"] .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ===== Consolidated from v3-premium-polish.css; cascade order preserved ===== */
/* SORIEL v3 — Final Premium Polish */
:root {
  --color-surface: rgba(24, 43, 64, 0.72);
  --color-surface-strong: rgba(27, 48, 70, 0.9);
  --color-emerald: #1f806f;
  --color-emerald-soft: rgba(43, 142, 123, 0.2);
  --color-gold: #d7bd82;
  --color-gold-light: #f0ddb0;
  --color-text: #f5f1e9;
  --color-muted: #b9c0c8;
  --color-border: rgba(230, 214, 178, 0.16);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-section: clamp(4.75rem, 8vw, 7rem);
  --type-display: clamp(3.25rem, 7vw, 6.4rem);
  --type-h1: clamp(2.75rem, 5.6vw, 5.2rem);
  --type-h2: clamp(2.15rem, 4vw, 3.75rem);
  --type-h3: clamp(1.3rem, 2vw, 1.7rem);
  --type-body-lg: clamp(1rem, 1.3vw, 1.13rem);
  --type-body: 1rem;
  --type-caption: 0.84rem;
  --shadow-card: 0 18px 55px rgba(3, 11, 22, 0.22);
  --shadow-card-hover: 0 24px 70px rgba(3, 11, 22, 0.34);
  --motion-duration: 220ms;
  --motion-ease: cubic-bezier(0.22, 0.72, 0.24, 1);
  --card: var(--color-surface);
  --line: var(--color-border);
  --text: var(--color-text);
  --muted: var(--color-muted);
  --gold: var(--color-gold);
  --gold-2: var(--color-gold-light);
  --radius: var(--radius-lg);
  --shadow: var(--shadow-card);
}
body {
  color: var(--color-text);
  font-size: var(--type-body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.section {
  padding-block: var(--space-section);
}
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.eyebrow {
  margin-bottom: var(--space-3);
  color: var(--color-gold);
  font-size: var(--type-caption);
  letter-spacing: 0.16em;
}
.hero {
  min-height: max(760px, 100svh);
  padding-top: 88px;
}
.hero-grid {
  gap: clamp(2.5rem, 6vw, 6rem);
}
.hero h1 {
  font-size: var(--type-display);
  line-height: 0.96;
  max-width: 920px;
}
.hero-text {
  font-size: var(--type-body-lg);
  line-height: 1.75;
  margin: var(--space-4) 0 var(--space-5);
}
h1,
h2,
h3,
.card-title {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
.site-header {
  height: 78px;
  background: rgba(14, 28, 44, 0.7);
  border-bottom: 1px solid rgba(230, 214, 178, 0.12);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  box-shadow: 0 8px 30px rgba(2, 10, 20, 0.08);
  transition:
    background-color var(--motion-duration) var(--motion-ease),
    box-shadow var(--motion-duration) var(--motion-ease),
    border-color var(--motion-duration) var(--motion-ease);
}
.site-header.is-scrolled {
  background: rgba(12, 25, 40, 0.9);
  border-color: rgba(230, 214, 178, 0.18);
  box-shadow: 0 12px 38px rgba(2, 10, 20, 0.2);
}
.site-nav a,
.inline-link,
.footer-links a {
  transition:
    color var(--motion-duration) var(--motion-ease),
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);
}
.site-nav a:hover,
.inline-link:hover,
.footer-links a:hover {
  color: var(--color-gold-light);
}
.btn,
button,
.project-card,
.service-card,
.timeline-card,
.capability-card,
.home-work-card,
.product-work-card,
.template-card,
.contact-panel,
.detail-shell,
.stats div,
.image-frame {
  transition:
    transform var(--motion-duration) var(--motion-ease),
    border-color var(--motion-duration) var(--motion-ease),
    box-shadow var(--motion-duration) var(--motion-ease),
    background-color var(--motion-duration) var(--motion-ease),
    opacity var(--motion-duration) var(--motion-ease);
}
.btn {
  min-height: 50px;
  padding: 0.88rem 1.35rem;
  font-size: 0.92rem;
  letter-spacing: 0.015em;
}
.btn-primary {
  background: linear-gradient(135deg, #c9aa68, var(--color-gold-light));
}
.btn:hover {
  transform: translateY(-2px);
}
.project-card,
.service-card,
.timeline-card,
.capability-card,
.home-work-card,
.product-work-card,
.template-card,
.contact-panel,
.detail-shell,
.stats div {
  border-radius: var(--radius-md);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}
.project-card,
.service-card,
.timeline-card,
.capability-card,
.contact-panel,
.detail-shell,
.stats div {
  background: linear-gradient(
    145deg,
    rgba(31, 52, 75, 0.72),
    rgba(18, 35, 54, 0.58)
  );
  backdrop-filter: blur(14px);
}
.project-card:hover,
.service-card:hover,
.timeline-card:hover,
.capability-card:hover,
.home-work-card:hover,
.product-work-card:hover,
.template-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 189, 130, 0.38);
  box-shadow: var(--shadow-card-hover);
}
.project-card img,
.home-work-card img,
.product-work-card img,
.template-card img {
  transition:
    transform var(--motion-duration) var(--motion-ease),
    filter var(--motion-duration) var(--motion-ease);
}
.project-card:hover img,
.home-work-card:hover img,
.product-work-card:hover img,
.template-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.03) contrast(1.015);
}
.site-footer,
.footer-detached {
  border-top: 0;
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  gap: clamp(2rem, 5vw, 4.5rem);
}
.social-links,
.footer-socials {
  gap: 0.75rem;
  align-items: center;
}
.social-links a,
.footer-socials a {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}
.reveal {
  transition-duration: 560ms;
  transition-timing-function: var(--motion-ease);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 900px) {
  :root {
    --space-section: clamp(4rem, 10vw, 5.5rem);
  }
  .site-nav {
    background: rgba(13, 29, 46, 0.97);
    backdrop-filter: blur(22px);
  }
  .hero {
    min-height: auto;
    padding-top: 132px;
    padding-bottom: 84px;
  }
  .hero-grid {
    gap: 3rem;
  }
}
@media (max-width: 600px) {
  :root {
    --space-section: 4rem;
    --radius-md: 18px;
  }
  .container {
    width: min(calc(100% - 28px), var(--max));
  }
  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }
  .section {
    padding-block: var(--space-section);
  }
  .btn {
    width: 100%;
  }
}

/* SORIEL v3.2 — spacing, about cards and language-lock refinements */
:root {
  --color-surface: rgba(31, 58, 86, 0.72);
  --color-surface-strong: rgba(35, 64, 93, 0.9);
  --card: #24415f;
}

.brand-text,
html[lang="fa"] .brand-text,
html[dir="rtl"] .brand-text {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: 0.18em !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-rendering: geometricPrecision;
}

/* Bring the manifesto composition slightly closer to the hero. */
body.crystal-edition .brand-manifesto {
  padding-top: clamp(3.35rem, 5.7vw, 5.25rem) !important;
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem) !important;
}
body.crystal-edition .brand-manifesto .manifesto-grid {
  align-items: center !important;
  gap: clamp(1.75rem, 4vw, 4.5rem) !important;
}

/* Selected work heading and cards should read as one composition. */
.home-showcase {
  padding-top: clamp(4.25rem, 6.5vw, 6.25rem) !important;
}
.home-showcase .section-head {
  margin-bottom: clamp(1.35rem, 2.4vw, 2rem) !important;
}
.home-showcase .split-head {
  align-items: end !important;
}
.home-showcase .home-work-grid {
  margin-top: 0 !important;
}

/* About cards: no numbering, equal dimensions, single-line titles on desktop. */
.about-page .feature-list > div::before {
  content: none !important;
  display: none !important;
}
.about-page .feature-list {
  counter-reset: none !important;
  align-items: stretch !important;
}
.about-page .feature-list > div {
  min-height: 184px !important;
  justify-content: center !important;
  gap: 0.8rem !important;
}
.about-page .feature-list strong,
.about-page .feature-list strong span {
  display: block !important;
  width: 100% !important;
  white-space: nowrap !important;
  font-size: clamp(0.94rem, 1.28vw, 1.12rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
}
html[lang="fa"] .about-page .feature-list strong,
html[lang="fa"] .about-page .feature-list strong span {
  font-size: clamp(0.95rem, 1.18vw, 1.08rem) !important;
  letter-spacing: -0.025em !important;
}
.about-page .feature-list > div > span {
  min-height: 3.5em;
}

/* Maintain a measured rhythm between the journey card and collaboration card. */
.home-journey {
  padding-top: clamp(4.8rem, 7.5vw, 7rem) !important;
  padding-bottom: clamp(5.4rem, 8vw, 7.5rem) !important;
}
.home-journey + .signature-footer {
  padding-top: 0 !important;
}
.signature-footer .footer-call {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
html[dir="rtl"] .signature-footer .footer-call {
  align-items: flex-start !important;
}
.signature-footer .footer-call .btn {
  margin-top: clamp(1.65rem, 2.8vw, 2.35rem) !important;
}
.signature-footer .footer-call h2 {
  margin-bottom: 0 !important;
}

@media (max-width: 980px) {
  .about-page .feature-list strong,
  .about-page .feature-list strong span {
    white-space: normal !important;
  }
}

@media (max-width: 760px) {
  body.crystal-edition .brand-manifesto {
    padding-top: 3.2rem !important;
    padding-bottom: 4rem !important;
  }
  .home-showcase {
    padding-top: 3.8rem !important;
  }
  .home-showcase .section-head {
    margin-bottom: 1.4rem !important;
  }
  .about-page .feature-list > div {
    min-height: 154px !important;
  }
  .about-page .feature-list strong,
  .about-page .feature-list strong span,
  html[lang="fa"] .about-page .feature-list strong,
  html[lang="fa"] .about-page .feature-list strong span {
    white-space: normal !important;
    font-size: 1.06rem !important;
  }
  .about-page .feature-list > div > span {
    min-height: 0;
  }
  .home-journey {
    padding-top: 4.25rem !important;
    padding-bottom: 4.75rem !important;
  }
  .signature-footer .footer-call .btn {
    margin-top: 1.5rem !important;
  }
}

/* SORIEL v3.3 — final spacing, equal-card and brighter atmosphere refinements */
:root {
  --color-surface: rgba(47, 78, 108, 0.72);
  --color-surface-strong: rgba(52, 85, 116, 0.9);
  --card: #315270;
}

body.crystal-edition .hero {
  padding-top: clamp(118px, 11vh, 148px) !important;
}

/* Pull the manifesto and selected-work introduction upward into a tighter editorial rhythm. */
body.crystal-edition .brand-manifesto {
  padding-top: clamp(2rem, 3.6vw, 3.4rem) !important;
  padding-bottom: clamp(2.8rem, 4.5vw, 4.2rem) !important;
}
.home-showcase {
  padding-top: clamp(2.5rem, 4vw, 3.8rem) !important;
}
.home-showcase .section-head {
  margin-bottom: clamp(1.15rem, 2vw, 1.7rem) !important;
}

/* Journey and collaboration are one component family: identical shell geometry. */
.home-journey {
  padding-top: clamp(4.2rem, 6vw, 5.7rem) !important;
  padding-bottom: clamp(2.2rem, 3.6vw, 3.3rem) !important;
}
.home-journey .journey-preview,
.signature-footer .footer-signature {
  min-height: 320px !important;
  padding: clamp(2rem, 3.6vw, 3rem) !important;
  border-radius: 34px !important;
  border: 1px solid rgba(230, 214, 178, 0.16) !important;
  box-shadow: var(--shadow-card) !important;
  background:
    radial-gradient(
      circle at 72% 16%,
      rgba(215, 189, 130, 0.2),
      transparent 27rem
    ),
    linear-gradient(145deg, rgba(70, 104, 135, 0.76), rgba(36, 65, 91, 0.64)) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.signature-footer .footer-signature {
  display: flex !important;
  align-items: center !important;
}
.signature-footer .footer-call {
  width: 100% !important;
  max-width: 920px !important;
}

/* Consistent internal rhythm in both languages. */
.home-journey .journey-preview .eyebrow,
.signature-footer .footer-call .eyebrow {
  margin-bottom: 0.85rem !important;
}
.home-journey .journey-preview h2,
.signature-footer .footer-call h2 {
  margin: 0 !important;
}
.home-journey .journey-preview p:not(.eyebrow) {
  margin: 1.1rem 0 1.65rem !important;
}
.signature-footer .footer-call .btn {
  margin-top: 1.65rem !important;
}

/* The approach action uses the same premium gold language as primary actions. */
.home-journey .journey-preview .btn-soft {
  color: #15283b !important;
  border-color: rgba(242, 223, 173, 0.58) !important;
  background: linear-gradient(
    135deg,
    #c9aa68 0%,
    #ead59d 52%,
    #f4e5bd 100%
  ) !important;
  box-shadow: 0 12px 30px rgba(13, 27, 42, 0.2) !important;
}
.home-journey .journey-preview .btn-soft:hover {
  border-color: rgba(255, 242, 203, 0.82) !important;
  box-shadow: 0 18px 38px rgba(13, 27, 42, 0.28) !important;
}

/* About cards: equal title treatment and predictable alignment in FA/EN. */
.about-page .feature-list > div {
  padding: clamp(1.35rem, 2.2vw, 1.8rem) !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
.about-page .feature-list strong,
.about-page .feature-list strong span,
html[lang="fa"] .about-page .feature-list strong,
html[lang="fa"] .about-page .feature-list strong span {
  min-height: 1.5em !important;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem) !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}
.about-page .feature-list > div > span {
  min-height: 0 !important;
  margin-top: 0.78rem !important;
}

@media (max-width: 980px) {
  body.crystal-edition .hero {
    padding-top: 132px !important;
  }
  .about-page .feature-list strong,
  .about-page .feature-list strong span,
  html[lang="fa"] .about-page .feature-list strong,
  html[lang="fa"] .about-page .feature-list strong span {
    white-space: normal !important;
  }
}

@media (max-width: 760px) {
  body.crystal-edition .hero {
    padding-top: 124px !important;
  }
  body.crystal-edition .brand-manifesto {
    padding-top: 2.2rem !important;
    padding-bottom: 3rem !important;
  }
  .home-showcase {
    padding-top: 2.5rem !important;
  }
  .home-journey {
    padding-top: 3.7rem !important;
    padding-bottom: 2rem !important;
  }
  .home-journey .journey-preview,
  .signature-footer .footer-signature {
    min-height: 0 !important;
    padding: 1.55rem !important;
    border-radius: 28px !important;
  }
  .signature-footer .footer-call .btn {
    margin-top: 1.45rem !important;
  }
}

:root {
  --color-surface: rgba(255, 255, 255, 0.055);
  --color-surface-strong: rgba(255, 255, 255, 0.085);
  --card: rgba(255, 255, 255, 0.055);
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-hover: rgba(255, 255, 255, 0.085);
  --glass-border: rgba(244, 232, 204, 0.2);
  --glass-shadow: 0 22px 60px rgba(21, 38, 54, 0.18);
}

.project-card,
.service-card,
.timeline-card,
.capability-card,
.contact-panel,
.detail-shell,
.stats div,
.about-page .feature-list > div,
.home-journey .journey-preview,
.signature-footer .footer-signature,
.glass-note {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.028)
  ) !important;
  border-color: var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  backdrop-filter: blur(18px) saturate(118%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(118%) !important;
}

.project-card:hover,
.service-card:hover,
.timeline-card:hover,
.capability-card:hover,
.contact-panel:hover,
.detail-shell:hover,
.stats div:hover,
.about-page .feature-list > div:hover,
.home-journey .journey-preview:hover,
.signature-footer .footer-signature:hover {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.105),
    rgba(255, 255, 255, 0.045)
  ) !important;
  border-color: rgba(242, 222, 178, 0.34) !important;
}

/* Preserve identical shell geometry while giving the final CTA a more composed centre. */
.home-journey .journey-preview,
.signature-footer .footer-signature {
  min-height: 330px !important;
}

.signature-footer .footer-signature {
  min-height: 360px !important;
  padding: clamp(2.35rem, 4.2vw, 3.5rem) !important;
}

.signature-footer .footer-call {
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  max-width: 980px !important;
}

.signature-footer .footer-call h2 {
  max-width: 880px !important;
}

.signature-footer .footer-call .btn {
  margin-top: clamp(1.9rem, 3vw, 2.5rem) !important;
}

@media (max-width: 760px) {
  .home-journey .journey-preview,
  .signature-footer .footer-signature {
    min-height: 0 !important;
  }
  .signature-footer .footer-signature {
    padding: 1.8rem !important;
  }
}

[data-lang-text][hidden] {
  display: none !important;
}
.about-page .chapter-kicker {
  margin: 0 0 0.82rem !important;
  font-family: Manrope, sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(238, 213, 157, 0.92) !important;
}

.about-page .about-chapter h3 {
  margin: 0 0 1.05rem !important;
  font-family:
    Cormorant Garamond,
    Georgia,
    serif !important;
  font-size: clamp(1.48rem, 2.35vw, 2rem) !important;
  font-weight: 560 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.018em !important;
}

.about-page .about-chapter > p:not(.chapter-kicker):not(.about-signature-line) {
  font-family: Manrope, sans-serif !important;
  font-size: clamp(0.96rem, 1.12vw, 1.04rem) !important;
  font-weight: 400 !important;
  line-height: 1.82 !important;
  letter-spacing: -0.006em !important;
}

html[lang="fa"] .about-page .chapter-kicker {
  font-family: Vazirmatn, Manrope, sans-serif !important;
  font-size: 0.79rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[lang="fa"] .about-page .about-chapter h3 {
  font-family: Vazirmatn, Manrope, sans-serif !important;
  font-size: clamp(1.28rem, 2vw, 1.72rem) !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

html[lang="fa"]
  .about-page
  .about-chapter
  > p:not(.chapter-kicker):not(.about-signature-line) {
  font-family: Vazirmatn, Manrope, sans-serif !important;
  font-size: clamp(0.98rem, 1.16vw, 1.06rem) !important;
  line-height: 2 !important;
  letter-spacing: 0 !important;
}

.about-page .feature-list .lang-copy-fa {
  display: none !important;
}
.about-page .feature-list .lang-copy-en {
  display: block !important;
}
html[lang="fa"] .about-page .feature-list .lang-copy-en {
  display: none !important;
}
html[lang="fa"] .about-page .feature-list .lang-copy-fa {
  display: block !important;
}
html[lang="en"] .about-page .feature-list .lang-copy-fa {
  display: none !important;
}
html[lang="en"] .about-page .feature-list .lang-copy-en {
  display: block !important;
}

/* Match the two closing Home statements as one typographic component. */
.home-journey .journey-preview h2,
.signature-footer .footer-call h2 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(2rem, 3.65vw, 3.45rem) !important;
  font-weight: 560 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.022em !important;
  text-wrap: balance;
}

html[lang="fa"] .home-journey .journey-preview h2,
html[lang="fa"] .signature-footer .footer-call h2 {
  font-family: Vazirmatn, Manrope, sans-serif !important;
  font-size: clamp(1.62rem, 3vw, 2.65rem) !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

.home-journey .journey-preview,
.signature-footer .footer-signature {
  min-height: 360px !important;
  padding: clamp(2.35rem, 4.2vw, 3.5rem) !important;
  border-radius: 30px !important;
}

.home-journey .journey-preview h2,
.signature-footer .footer-call h2 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(2rem, 3.65vw, 3.45rem) !important;
  font-weight: 560 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.022em !important;
}

html[lang="fa"] .home-journey .journey-preview h2,
html[lang="fa"] .signature-footer .footer-call h2 {
  font-family: Vazirmatn, Manrope, sans-serif !important;
  font-size: clamp(1.62rem, 3vw, 2.65rem) !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 760px) {
  .home-journey .journey-preview,
  .signature-footer .footer-signature {
    min-height: 0 !important;
    padding: 1.8rem !important;
    border-radius: 28px !important;
  }
}

.home-journey .journey-preview .btn,
.signature-footer .footer-call .btn {
  width: 224px !important;
  min-width: 224px !important;
  min-height: 56px !important;
  padding: 0.9rem 1.35rem !important;
  justify-content: center !important;
  font-family: Manrope, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
}

html[lang="fa"] .home-journey .journey-preview .btn,
html[lang="fa"] .signature-footer .footer-call .btn {
  font-family: Vazirmatn, Manrope, sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

/* Give English About titles enough room and keep their reading direction explicit. */
html[lang="en"] .about-page .feature-list {
  grid-template-columns: repeat(3, minmax(250px, 1fr)) !important;
  gap: 1.15rem !important;
}

html[lang="en"] .about-page .feature-list > div {
  min-height: 224px !important;
  padding: 1.65rem !important;
}

html[lang="en"] .about-page .feature-list .lang-copy-en {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
}

html[lang="en"] .about-page .feature-list strong.lang-copy-en {
  width: 100% !important;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem) !important;
  line-height: 1.3 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

@media (max-width: 900px) {
  html[lang="en"] .about-page .feature-list {
    grid-template-columns: 1fr !important;
  }

  html[lang="en"] .about-page .feature-list > div {
    min-height: 180px !important;
  }
}

@media (max-width: 480px) {
  .home-journey .journey-preview .btn,
  .signature-footer .footer-call .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* SORIEL v3.9 — full visual audit: brighter canvas, type rhythm, spacing and consistency */
:root {
  --color-surface: rgba(42, 65, 86, 0.58);
  --color-surface-strong: rgba(38, 61, 82, 0.78);
  --color-muted: #d9dee2;
  --color-border: rgba(247, 235, 210, 0.22);
  --space-section: clamp(4.5rem, 7vw, 6.5rem);
  --shadow-card: 0 16px 48px rgba(22, 39, 55, 0.18);
  --shadow-card-hover: 0 24px 64px rgba(22, 39, 55, 0.27);
}

body {
  font-size: 16px;
  line-height: 1.72;
}

.site-header {
  background: rgba(44, 64, 82, 0.64);
  border-bottom-color: rgba(247, 235, 210, 0.18);
}
.site-header.is-scrolled {
  background: rgba(39, 58, 76, 0.88);
}

.section {
  padding-block: var(--space-section);
}
.section-head {
  margin-bottom: clamp(1.75rem, 3.2vw, 2.75rem);
}
.section-head h2,
.section-copy h2,
.contact-panel h2 {
  line-height: 1.04;
  letter-spacing: -0.032em;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0.145em;
}

.hero {
  min-height: max(720px, 92svh);
}
.hero h1 {
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-text {
  max-width: 650px;
  margin-top: 1.35rem;
  margin-bottom: 1.85rem;
}

p {
  max-width: 72ch;
}
.card-title,
h3 {
  line-height: 1.25;
}

.project-card,
.service-card,
.timeline-card,
.capability-card,
.home-work-card,
.product-work-card,
.template-card,
.contact-panel,
.detail-shell,
.stats div,
.image-frame {
  border-color: rgba(247, 235, 210, 0.2);
}

.project-card,
.service-card,
.timeline-card,
.capability-card,
.contact-panel,
.detail-shell,
.stats div {
  background: linear-gradient(
    145deg,
    rgba(49, 73, 94, 0.64),
    rgba(37, 59, 79, 0.5)
  );
}

.btn {
  min-height: 52px;
  padding-inline: 1.45rem;
}
.btn-soft {
  background: rgba(255, 255, 255, 0.075);
}

input,
textarea,
select {
  border-color: rgba(247, 235, 210, 0.24) !important;
  background-color: rgba(31, 51, 70, 0.46) !important;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(240, 221, 176, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(240, 221, 176, 0.1) !important;
}

.site-footer,
.footer-detached {
  padding-top: clamp(2.75rem, 5vw, 4.25rem);
}

html[lang="fa"] body {
  line-height: 1.9;
}
html[lang="fa"] .hero-text,
html[lang="fa"] .section-copy p,
html[lang="fa"] .card-copy,
html[lang="fa"] .about-page p {
  line-height: 2;
}
html[lang="fa"] .eyebrow {
  letter-spacing: 0;
}

@media (max-width: 900px) {
  :root {
    --space-section: clamp(3.8rem, 9vw, 5rem);
  }
  .site-nav {
    background: rgba(40, 70, 78, 0.27);
  }
  .hero {
    padding-top: 122px;
    padding-bottom: 72px;
  }
}

@media (max-width: 600px) {
  :root {
    --space-section: 3.6rem;
  }
  .container {
    width: min(calc(100% - 30px), var(--max));
  }
  .hero {
    padding-top: 112px;
    padding-bottom: 62px;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 12.4vw, 3.85rem);
  }
  .section-head {
    margin-bottom: 1.6rem;
  }
  .project-card,
  .service-card,
  .timeline-card,
  .capability-card,
  .home-work-card,
  .product-work-card,
  .template-card,
  .contact-panel,
  .detail-shell {
    border-radius: 18px;
  }
}


:root {

  --color-surface: rgba(48, 69, 69, 0.56);
  --color-surface-strong: rgba(43, 64, 65, 0.76);
}
.site-header {
  background: rgba(53, 70, 70, 0.62);
}
.site-header.is-scrolled {
  background: rgba(46, 64, 64, 0.88);
}

.project-card,
.service-card,
.timeline-card,
.capability-card,
.contact-panel,
.detail-shell,
.stats div {
  background: linear-gradient(
    145deg,
    rgba(55, 76, 76, 0.62),
    rgba(43, 64, 65, 0.5)
  );
}

input,
textarea,
select {
  background-color: rgba(41, 61, 61, 0.44) !important;
}

/* Restore the About portrait to its original, full grid-column size. */
.about-split .image-frame {
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}

@media (max-width: 900px) {
  .site-nav {
    background: rgba(47, 66, 66, 0.97);
  }
}

/* SORIEL v4.1 — verified direct fixes (cache-busted) */
:root {
  /* Warm mineral graphite: lighter than the original navy, with no blue/navy cast. */
  --color-surface: rgba(39, 47, 44, 0.62);
  --color-surface-strong: rgba(31, 39, 36, 0.82);
}

.site-header {
  background: rgba(42, 49, 46, 0.72) !important;
}
.site-header.is-scrolled {
  background: rgba(34, 41, 38, 0.93) !important;
}

.project-card,
.service-card,
.timeline-card,
.capability-card,
.contact-panel,
.detail-shell,
.stats div {
  background: linear-gradient(
    145deg,
    rgba(48, 57, 53, 0.72),
    rgba(34, 43, 39, 0.6)
  ) !important;
}

input,
textarea,
select {
  background-color: rgba(32, 40, 37, 0.58) !important;
}

/* About portrait: restore a visibly large editorial scale on desktop and tablet. */
.about-page .about-split,
#about .about-split {
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr) !important;
  gap: clamp(2rem, 5vw, 4.5rem) !important;
}

.about-page .about-split .image-frame,
#about .about-split .image-frame {
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(620px, 64vw, 790px) !important;
  align-self: start !important;
  justify-self: stretch !important;
}

.about-page .about-split .image-frame img,
#about .about-split .image-frame img {
  width: 100% !important;
  height: 100% !important;
  min-height: inherit !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 1000px) {
  .about-page .about-split,
  #about .about-split {
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr) !important;
  }
  .about-page .about-split .image-frame,
  #about .about-split .image-frame {
    width: 100% !important;
    min-height: 560px !important;
  }
}

@media (max-width: 760px) {
  .about-page .about-split,
  #about .about-split {
    grid-template-columns: 1fr !important;
  }
  .about-page .about-split .image-frame,
  #about .about-split .image-frame {
    width: 100% !important;
    min-height: 0 !important;
  }
  .about-page .about-split .image-frame img,
  #about .about-split .image-frame img {
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
  }
  .site-nav {
    background: rgba(34, 42, 38, 0.98) !important;
  }
}

.site-header {
  background: rgba(48, 67, 85, 0.58) !important;
  border-color: rgba(247, 235, 210, 0.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(118%) !important;
  backdrop-filter: blur(18px) saturate(118%) !important;
}
.site-header.is-scrolled {
  background: rgba(40, 59, 77, 0.1) !important;
  -webkit-backdrop-filter: blur(24px) saturate(135%) !important;
  backdrop-filter: blur(24px) saturate(135%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.project-card,
.service-card,
.timeline-card,
.capability-card,
.contact-panel,
.detail-shell,
.stats div {
  background: linear-gradient(
    145deg,
    rgba(49, 73, 94, 0.48),
    rgba(37, 59, 79, 0.34)
  ) !important;
  border-color: rgba(247, 235, 210, 0.14) !important;
  -webkit-backdrop-filter: blur(16px) saturate(112%) !important;
  backdrop-filter: blur(16px) saturate(112%) !important;
}

input,
textarea,
select {
  background-color: rgba(31, 51, 70, 0.38) !important;
  border-color: rgba(247, 235, 210, 0.22) !important;
}

@media (max-width: 900px) {
  .site-nav {
    background: rgba(40, 60, 78, 0.9) !important;
    -webkit-backdrop-filter: blur(20px) saturate(116%) !important;
    backdrop-filter: blur(20px) saturate(116%) !important;
  }
}

/* About portrait: slightly smaller than v4.1, while remaining editorial and prominent. */
.about-page .about-split,
#about .about-split {
  grid-template-columns: minmax(390px, 0.88fr) minmax(0, 1.12fr) !important;
}

.about-page .about-split .image-frame,
#about .about-split .image-frame {
  width: min(94%, 650px) !important;
  max-width: 650px !important;
  min-height: clamp(590px, 58vw, 720px) !important;
  justify-self: center !important;
}

@media (max-width: 1000px) and (min-width: 761px) {
  .about-page .about-split,
  #about .about-split {
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr) !important;
  }
  .about-page .about-split .image-frame,
  #about .about-split .image-frame {
    width: min(92%, 470px) !important;
    min-height: 525px !important;
  }
}

@media (max-width: 760px) {
  .about-page .about-split .image-frame,
  #about .about-split .image-frame {
    width: min(88%, 380px) !important;
    max-width: 380px !important;
    min-height: 470px !important;
  }
}

/* SORIEL v4.6 — responsive stabilization (tablet + mobile only) */
@media (max-width: 1024px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  *,
  *::before,
  *::after {
    min-width: 0;
  }

  img,
  video,
  canvas,
  svg,
  iframe {
    max-width: 100%;
  }

  .container {
    width: min(100% - 40px, 1180px);
  }

  .hero-grid,
  .about-split,
  .contact-grid,
  .detail-content,
  .detail-body,
  .detail-main,
  .template-showcase,
  .template-preview-shell {
    min-width: 0;
  }

  .home-work-grid,
  .portfolio-grid,
  .blog-grid,
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1,
  .section-head h2,
  .entry-title,
  .detail-copy h1 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 900px) {
  .site-header .container,
  .header-inner {
    min-height: 72px;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .site-nav {
    width: min(92vw, 430px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav a {
    width: 100%;
    white-space: normal;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .about-page .about-split,
  #about .about-split,
  .contact-grid,
  .detail-content,
  .detail-body,
  .detail-main,
  .template-showcase,
  .template-preview-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-media {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .about-page .about-split .image-frame,
  #about .about-split .image-frame {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    min-height: 0 !important;
    justify-self: center !important;
  }

  .about-page .about-split .image-frame img,
  #about .about-split .image-frame img {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
  }

  .footer-bottom,
  .footer-bottom-clean,
  .signature-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  :root {
    --section-space: 68px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding-block: var(--section-space);
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 48px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 4rem);
    line-height: 0.98;
  }

  .hero-text,
  .section-head p,
  .detail-copy p {
    max-width: 100%;
  }

  .hero-actions,
  .template-slider-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-actions .btn,
  .template-slider-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stats div {
    padding: 16px 12px;
  }

  .home-work-grid,
  .portfolio-grid,
  .blog-grid,
  .template-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .project-card,
  .home-work-card,
  .blog-card,
  .portfolio-entry-card,
  .service-card,
  .capability-card,
  .timeline-card,
  .contact-panel {
    width: 100%;
    max-width: 100%;
  }

  .section-head,
  .portfolio-block-head {
    align-items: flex-start;
  }

  .about-page .about-split .image-frame,
  #about .about-split .image-frame {
    width: min(92%, 400px) !important;
    max-width: 400px !important;
    min-height: 0 !important;
  }

  .contact-panel,
  .detail-shell {
    padding: clamp(20px, 6vw, 28px);
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  .footer-bottom,
  .footer-bottom-clean,
  .signature-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    max-width: 124px;
  }

  .lang-switch,
  .site-search-toggle,
  .nav-toggle {
    flex: 0 0 auto;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn,
  .btn {
    width: 100%;
  }

  .about-page .about-split .image-frame,
  #about .about-split .image-frame {
    width: 100% !important;
  }
}