:root {
  --ink: #1a1740;
  --primary: #221f5e;
  --primary-2: #423a9e;
  --primary-deep: #100e2c;
  --accent: #cdb18e;
  --accent-2: #e6c99a;
  --accent-warm: #e08a5c;
  --accent-soft: #f0e4d0;
  --paper: #f7f4ee;
  --paper-warm: #f1ebdf;
  --cream: #fffdf8;
  --line: rgba(34, 32, 95, 0.13);
  --line-on-dark: rgba(255, 253, 248, 0.14);
  --max: 1200px;
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --mx: 50%;
  --my: 50%;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.latin {
  font-family: "Fraunces", serif;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
}

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

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

::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-2);
}
html {
  scrollbar-color: var(--accent) var(--paper);
}

/* ---------- ANIMATED NAVY PAGE BACKGROUND ---------- */
.page-bg-anim {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
}
.page-bg-anim .pba-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.page-bg-anim .pba-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -140px;
  opacity: 0.32;
  background: radial-gradient(
    circle,
    var(--primary-2),
    var(--primary-deep) 70%
  );
  animation: pbaFloat1 22s ease-in-out infinite;
}
.page-bg-anim .pba-2 {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: -120px;
  opacity: 0.3;
  background: radial-gradient(circle, var(--primary), var(--primary-deep) 70%);
  animation: pbaFloat2 26s ease-in-out infinite;
}
.page-bg-anim .pba-3 {
  width: 380px;
  height: 380px;
  top: 42%;
  left: 50%;
  opacity: 0.16;
  background: radial-gradient(circle, var(--accent-warm), transparent 70%);
  animation: pbaFloat3 30s ease-in-out infinite;
}
@keyframes pbaFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-50px, 60px) scale(1.15);
  }
}
@keyframes pbaFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, -50px) scale(1.1);
  }
}
@keyframes pbaFloat3 {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-bg-anim .pba-blob {
    animation: none;
  }
}

/* ---------- GRAIN + CURSOR SPOTLIGHT ----------
   A single tactile, print-shop layer that runs the length of the page:
   fine paper grain (fitting a packaging studio) plus a soft brand-gold
   spotlight that trails the pointer. This is the one deliberately
   "alive" surface effect; everything else stays quiet. */
.grain-layer {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.cursor-spotlight {
  position: fixed;
  inset: 0;
  z-index: 997;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(205, 177, 142, 0.1),
    transparent 60%
  );
}
.cursor-spotlight.active {
  opacity: 1;
}
@media (max-width: 900px), (pointer: coarse) {
  .cursor-spotlight {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .grain-layer {
    display: none;
  }
}

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-2));
  transform-origin: right;
  transform: scaleX(0);
  z-index: 999;
  transition: transform 0.12s linear;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal.zoom {
  transform: scale(0.92);
}
.reveal.zoom.in-view {
  transform: scale(1);
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(1.5deg);
  }
}
@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes gradientPan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@keyframes wordUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
header.scrolled {
  box-shadow: 0 8px 30px -12px rgba(34, 32, 95, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-block img {
  width: 50px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease);
}
.brand-block:hover .brand-mark {
  transform: rotate(8deg) scale(1.05);
}
.brand-name-fa {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.brand-name-en {
  font-family: "Fraunces", serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  gap: 32px;
  font-size: 0.84rem;
  align-items: center;
}
nav.main-nav > a {
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
}
nav.main-nav > a::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  border-radius: 2px;
}
nav.main-nav > a:hover::after,
nav.main-nav > a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- NAV DROPDOWN ---------- */
.nav-item {
  position: relative;
}
.dropdown-trigger {
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.94rem;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  position: relative;
}
.dropdown-trigger::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  border-radius: 2px;
}
.dropdown-trigger:hover::after {
  transform: scaleX(1);
}
.dropdown-trigger .chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.35s var(--ease);
}
.dropdown-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  right: -20px;
  width: 360px;
  max-width: 86vw;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(34, 32, 95, 0.35);
  padding: 10px;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s;
  z-index: 40;
}
.dropdown-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dd-category + .dd-category {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 4px;
}
.dd-cat-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-family: "Vazirmatn", sans-serif;
  color: var(--primary);
  transition: background 0.25s ease;
}
.dd-cat-trigger:hover {
  background: var(--paper-warm);
}
.dd-cat-title {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 700;
}
.dd-cat-trigger .dd-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.dd-cat-trigger .dd-icon svg {
  width: 100%;
  height: 100%;
}
.chevron-sm {
  width: 9px;
  height: 9px;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}
.dd-cat-trigger[aria-expanded="true"] .chevron-sm {
  transform: rotate(180deg);
}

.dd-submenu {
  max-height: 0;
  overflow: hidden;
  padding: 0 4px 0 26px;
  transition:
    max-height 0.4s var(--ease),
    padding 0.4s var(--ease);
}
.dd-submenu.open {
  max-height: 300px;
  padding: 4px 4px 8px 26px;
}

.dropdown-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease;
}
.dropdown-item:hover {
  background: var(--paper-warm);
}
.dropdown-item .dd-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}
.dropdown-item .dd-icon svg {
  width: 100%;
  height: 100%;
}
.dd-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}
.dd-sub {
  display: block;
  font-size: 0.76rem;
  color: rgba(32, 29, 74, 0.58);
  line-height: 1.5;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--cream);
  background: var(--primary);
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s ease;
  box-shadow: 0 6px 18px -8px rgba(34, 32, 95, 0.55);
}
.nav-cta:hover {
  background: var(--primary-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(34, 32, 95, 0.6);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--primary);
  position: relative;
  transition: all 0.3s ease;
}
.menu-toggle span::before {
  position: absolute;
  top: -6px;
}
.menu-toggle span::after {
  position: absolute;
  top: 6px;
}
.menu-toggle.open span {
  background: transparent;
}
.menu-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  nav.main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--cream);
    flex-direction: column;
    padding: 22px 20px 28px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 6px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 24px 46px -24px rgba(34, 32, 95, 0.3);
  }
  nav.main-nav.open {
    display: flex;
  }
  nav.main-nav > a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  nav.main-nav > a::after {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
    padding: 13px 4px;
  }
  .dropdown-panel {
    position: static;
    width: auto;
    max-width: none;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: none;
    background: var(--paper-warm);
    border-radius: var(--radius-sm);
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0 6px;
    margin-top: 0;
    margin-bottom: 0;
    transition:
      max-height 0.45s var(--ease),
      padding 0.45s var(--ease),
      margin 0.45s var(--ease);
  }
  .dropdown-panel.open {
    max-height: 900px;
    padding: 8px 6px;
    margin-top: 4px;
    margin-bottom: 10px;
  }

  nav.main-nav > a.mobile-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    background: var(--primary);
    color: var(--cream);
    text-decoration: none;
    padding: 15px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 600;
    border-bottom: none;
  }
}
@media (min-width: 901px) {
  .mobile-cta {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 120px;
  background:
    radial-gradient(
      ellipse 900px 600px at 85% -10%,
      rgba(224, 138, 92, 0.22),
      transparent 60%
    ),
    radial-gradient(
      ellipse 700px 700px at -10% 110%,
      rgba(205, 177, 142, 0.24),
      transparent 60%
    ),
    linear-gradient(
      120deg,
      var(--primary-deep) 0%,
      var(--primary) 38%,
      var(--primary-2) 68%,
      var(--primary-deep) 100%
    );
  background-size:
    auto,
    auto,
    220% 220%;
  animation: gradientPan 18s ease infinite;
  color: var(--cream);
  margin-top: -50px;
}
.hero-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(205, 177, 142, 0.35),
    transparent 70%
  );
  top: -220px;
  left: -160px;
  pointer-events: none;
  filter: blur(10px);
  animation: pulseGlow 7s ease-in-out infinite;
}
.hero-glow.two {
  top: auto;
  bottom: -260px;
  left: auto;
  right: -180px;
  background: radial-gradient(circle, rgba(46, 43, 122, 0.55), transparent 70%);
  animation-delay: 2s;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(205, 177, 142, 0.4) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  opacity: 0.28;
}
.hero-watermark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  display: flex;
  align-items: center;
  writing-mode: vertical-rl;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 10vw, 7rem);
  letter-spacing: 0.18em;
  color: rgba(255, 253, 248, 0.05);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.reg-mark {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.4;
  pointer-events: none;
}
.reg-mark.rm-tl {
  top: 26px;
  right: 26px;
}
.reg-mark.rm-br {
  bottom: 26px;
  left: 26px;
}
@media (max-width: 640px) {
  .reg-mark {
    display: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }
}

.hero-tag {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin: 0 0 20px;
  overflow: hidden;
}
.hero-tag span {
  display: inline-block;
  opacity: 0;
  animation: wordUp 0.7s var(--ease) forwards;
  animation-delay: 0.1s;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 4.7rem);
  line-height: 1.1;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: wordUp 0.8s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) span {
  animation-delay: 0.25s;
}
.hero h1 .line:nth-child(2) span {
  animation-delay: 0.42s;
  background: linear-gradient(
    100deg,
    var(--accent-2) 5%,
    var(--accent) 45%,
    var(--accent-warm) 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lede {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-soft);
  margin: 0 0 26px;
  opacity: 0;
  animation: wordUp 0.8s var(--ease) forwards;
  animation-delay: 0.62s;
}
.hero-body {
  max-width: 46ch;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.02rem;
  opacity: 0;
  animation: wordUp 0.8s var(--ease) forwards;
  animation-delay: 0.78s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  opacity: 0;
  animation: wordUp 0.8s var(--ease) forwards;
  animation-delay: 0.95s;
}
.btn-primary {
  background: linear-gradient(
    115deg,
    var(--accent-2),
    var(--accent) 55%,
    var(--accent-warm)
  );
  color: var(--primary-deep);
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease),
    background 0.3s ease,
    box-shadow 0.35s ease;
  box-shadow:
    0 10px 26px -10px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 253, 248, 0.08) inset;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.75) 46%,
    rgba(255, 255, 255, 0.75) 54%,
    transparent 70%
  );
  transform: translateX(-130%);
  transition: transform 0.85s var(--ease);
}
.btn-primary:hover::after {
  transform: translateX(130%);
}
.btn-primary:hover {
  background: linear-gradient(
    115deg,
    var(--cream),
    var(--accent-2) 60%,
    var(--accent-warm)
  );
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 20px 40px -12px rgba(224, 138, 92, 0.45),
    0 0 0 1px rgba(255, 253, 248, 0.1) inset;
}
.btn-ghost {
  border: 1px solid var(--line-on-dark);
  color: var(--cream);
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.96rem;
  display: inline-block;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(255, 253, 248, 0.08);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.hero-box {
  width: min(340px, 76%);
  animation: floatY 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.hero-box .crease {
  stroke-dasharray: 4 7;
  animation: creaseFlow 3.2s linear infinite;
}
@keyframes creaseFlow {
  to {
    stroke-dashoffset: -110;
  }
}

.hero-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 50%;
  animation: spinSlow 40s linear infinite;
}
.hero-ring.r2 {
  width: 400px;
  height: 400px;
  border-color: rgba(205, 177, 142, 0.25);
  animation-duration: 60s;
  animation-direction: reverse;
}

.hero-seal {
  position: absolute;
  width: 154px;
  height: 154px;
  bottom: -6px;
  left: -10px;
  z-index: 3;
  animation: spinSlow 26s linear infinite;
}
@media (max-width: 640px) {
  .hero-seal {
    width: 108px;
    height: 108px;
  }
}

.hero-chip {
  position: absolute;
  z-index: 3;
  background: rgba(255, 253, 248, 0.09);
  border: 1px solid var(--line-on-dark);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-size: 0.78rem;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  animation: floatSlow 5s ease-in-out infinite;
}
.hero-chip.chip-1 {
  top: 2%;
  left: 4%;
  animation-delay: 0.1s;
}
.hero-chip.chip-2 {
  bottom: 20%;
  left: -8%;
  animation-delay: 1.1s;
}
.hero-chip.chip-3 {
  top: 46%;
  right: -6%;
  animation-delay: 2s;
}
@media (max-width: 900px) {
  .hero-chip.chip-2 {
    left: 0%;
  }
  .hero-chip.chip-3 {
    right: 0%;
  }
}
@media (max-width: 560px) {
  .hero-chip {
    font-size: 0.68rem;
    padding: 6px 13px;
  }
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 253, 248, 0.55);
  font-size: 0.72rem;
}
.scroll-cue .dot {
  width: 6px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  animation: floatSlow 1.6s ease-in-out infinite;
}

.fold-rule {
  height: 36px;
  background: var(--paper);
  position: relative;
}
.fold-rule svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- SECTION SHELL ---------- */
section {
  padding: 108px 0;
  position: relative;
}
#why,
.process,
#blog {
  overflow: hidden;
}
#why::before,
.process::before,
#blog::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
}
#why::before {
  background: radial-gradient(circle, rgba(224, 138, 92, 0.5), transparent 70%);
  top: -200px;
  left: -140px;
}
.process::before {
  background: radial-gradient(
    circle,
    rgba(205, 177, 142, 0.55),
    transparent 70%
  );
  bottom: -220px;
  right: -150px;
}
#blog::before {
  background: radial-gradient(circle, rgba(66, 58, 158, 0.22), transparent 70%);
  top: -180px;
  right: 6%;
}
#why .wrap,
.process .wrap,
#blog .wrap {
  position: relative;
  z-index: 1;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
@media (max-width: 700px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
}
.section-head h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}
.section-head .en-tag {
  font-family: "Fraunces", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.section-note {
  max-width: 38ch;
  font-size: 0.98rem;
  color: rgba(32, 29, 74, 0.65);
}

/* ---------- BRANDS MARQUEE (seamless linear loop) ---------- */
.brands {
  padding: 64px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.brands-label {
  text-align: center;
  font-size: 0.86rem;
  color: rgba(32, 29, 74, 0.55);
  margin: 0 0 34px;
}
.marquee {
  display: flex;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 64px;
  padding-inline-end: 64px;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.brand-logo {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--primary);
  opacity: 0.55;
  white-space: nowrap;
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}
.brand-logo:hover {
  opacity: 1;
  color: var(--accent);
}

/* ---------- WHY US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 70px;
}
@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
.why-card {
  background: rgba(255, 253, 248, 0.62);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s ease;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(224, 138, 92, 0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 30px 54px -22px rgba(34, 32, 95, 0.3),
    0 0 0 1px rgba(205, 177, 142, 0.25);
  border-color: var(--accent);
}
.why-card:hover::before {
  opacity: 1;
}
/* folded-corner detail, like a die-cut packaging flap lifting on hover */
.why-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--accent) transparent transparent;
  opacity: 0;
  transform: translate(28px, -28px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.why-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}
.why-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  transition: transform 0.5s var(--ease);
}
.why-card:hover .why-icon {
  transform: rotate(-8deg) scale(1.1);
}
.why-card h3 {
  font-size: 1.08rem;
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
}
.why-card p {
  font-size: 0.92rem;
  color: rgba(32, 29, 74, 0.65);
  margin: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center;
}
@media (max-width: 700px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat .num {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--primary);
  font-weight: 600;
  display: block;
}
.stat .num .suffix {
  color: var(--accent);
}
.stat .label {
  font-size: 0.88rem;
  color: rgba(32, 29, 74, 0.6);
  margin-top: 8px;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: rgba(255, 253, 248, 0.62);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(205, 177, 142, 0.14),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px -24px rgba(34, 32, 95, 0.3);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--accent) transparent transparent;
  opacity: 0;
  transform: translate(28px, -28px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.service-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}
.service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-icon {
  transform: scale(1.12) rotate(4deg);
}
.service-card h3 {
  font-size: 1.08rem;
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
  position: relative;
}
.service-card p {
  font-size: 0.92rem;
  color: rgba(32, 29, 74, 0.65);
  margin: 0;
  position: relative;
}

/* ---------- SERVICES (dark showcase variant, modern + minimal) ---------- */
.services-showcase {
  padding: 120px 0 130px;
}
.work-glow.services-glow {
  top: -160px;
  left: auto;
  right: 10%;
}
.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-glass {
  position: relative;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.05);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: 34px 26px;
  backdrop-filter: blur(8px);
  transition:
    transform 0.45s var(--ease),
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.45s var(--ease);
}
.service-glass:hover {
  transform: translateY(-8px);
  background: rgba(255, 253, 248, 0.09);
  border-color: rgba(224, 138, 92, 0.5);
  box-shadow:
    0 30px 54px -26px rgba(0, 0, 0, 0.5),
    0 0 40px -16px rgba(224, 138, 92, 0.4);
}
.service-glass .num {
  position: absolute;
  top: 4px;
  left: 18px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 2.8rem;
  color: rgba(255, 253, 248, 0.07);
  z-index: 0;
  line-height: 1;
}
.service-glass .service-icon {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  transition: transform 0.5s var(--ease);
}
.service-glass:hover .service-icon {
  transform: scale(1.12) rotate(4deg);
}
.service-glass h3 {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  margin: 0 0 12px;
  color: var(--cream);
  font-weight: 700;
}
.service-glass p {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: rgba(255, 253, 248, 0.6);
  margin: 0;
}
.service-glass .bottom-line {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.service-glass:hover .bottom-line {
  transform: scaleX(1);
}
.service-glass::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 26px 26px 0;
  border-color: transparent var(--accent) transparent transparent;
  opacity: 0;
  transform: translate(26px, -26px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.service-glass:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- PROCESS (light, zigzag timeline) ---------- */
.process {
  background: var(--paper);
  color: var(--ink);
}
.process .section-head {
  border-color: var(--line);
}
.process .section-head h2 {
  color: var(--primary);
}
.process .section-note {
  color: rgba(32, 29, 74, 0.65);
}

.process-track {
  position: relative;
  padding-top: 8px;
}
.process-connector {
  position: absolute;
  top: 34px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  z-index: 0;
}
.process-connector span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--primary-2));
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease);
}
.process-connector.in-view span {
  transform: scaleX(1);
}
@media (max-width: 900px) {
  .process-connector {
    display: none;
  }
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 54px;
  }
}
@media (max-width: 560px) {
  .process-list {
    grid-template-columns: 1fr;
    row-gap: 44px;
  }
}

.process-item {
  position: relative;
  background: rgba(255, 253, 248, 0.62);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 40px 22px 28px;
  text-align: center;
  box-shadow: 0 20px 42px -28px rgba(34, 32, 95, 0.2);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.4s ease;
}
.process-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 56px -24px rgba(34, 32, 95, 0.28);
  border-color: var(--accent);
}
.process-list .process-item:nth-child(2) {
  margin-top: 34px;
}
.process-list .process-item:nth-child(4) {
  margin-top: 34px;
}
@media (max-width: 900px) {
  .process-list .process-item:nth-child(2),
  .process-list .process-item:nth-child(4) {
    margin-top: 0;
  }
}

.num-badge {
  position: absolute;
  top: -24px;
  right: 50%;
  transform: translateX(50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-2),
    var(--primary) 70%,
    var(--accent-warm) 130%
  );
  color: var(--cream);
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(34, 32, 95, 0.5);
  border: 3px solid var(--paper);
  z-index: 2;
  transition: transform 0.4s var(--ease);
}
.process-item:hover .num-badge {
  transform: translateX(50%) translateY(-4px) rotate(-6deg);
}

.step-icon {
  width: 34px;
  height: 34px;
  margin: 20px auto 14px;
}
.process-item h3 {
  font-size: 1.02rem;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--primary);
}
.process-item p {
  font-size: 0.88rem;
  color: rgba(32, 29, 74, 0.62);
  margin: 0;
}

/* ---------- PORTFOLIO / WORK SHOWCASE ---------- */
.work-showcase {
  background: radial-gradient(
    ellipse at 30% 20%,
    #2e2b7a 0%,
    var(--primary-deep) 55%,
    #100e30 100%
  );
  color: var(--cream);
  position: relative;
  overflow: hidden;

  padding: 120px 0 130px;
}
.work-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.work-grid-lines {
  position: absolute;
  inset: -10%;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(205, 177, 142, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205, 177, 142, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridPan 22s linear infinite;
}
@keyframes gridPan {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      64px 96px,
      96px 64px;
  }
}
.work-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(205, 177, 142, 0.28),
    transparent 70%
  );
  top: -180px;
  left: 20%;
  filter: blur(20px);
  animation: pulseGlow 8s ease-in-out infinite;
}
.drift {
  position: absolute;
  opacity: 0.1;
  height: auto;
}
.drift-1 {
  width: 140px;
  top: 8%;
  left: 8%;
  animation: driftA 34s ease-in-out infinite;
}
.drift-2 {
  width: 100px;
  bottom: 10%;
  left: 20%;
  animation: driftB 40s ease-in-out infinite;
}
.drift-3 {
  width: 170px;
  top: 18%;
  right: 6%;
  animation: driftA 46s ease-in-out infinite reverse;
}
.drift-4 {
  width: 90px;
  bottom: 16%;
  right: 16%;
  animation: driftB 30s ease-in-out infinite;
}
@keyframes driftA {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, -40px) rotate(14deg);
  }
}
@keyframes driftB {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-24px, 34px) rotate(-10deg);
  }
}

.work-showcase .section-head {
  border-color: var(--line-on-dark);
  position: relative;
  z-index: 1;
}
.work-showcase .section-head h2 {
  color: var(--cream);
}
.work-showcase .section-note {
  color: rgba(255, 253, 248, 0.65);
}

.work-filters {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -30px 0 44px;
}
.filter-btn {
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.86rem;
  color: rgba(255, 253, 248, 0.7);
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid var(--line-on-dark);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--cream);
}
.filter-btn.active {
  background: var(--accent);
  color: var(--primary-deep);
  border-color: var(--accent);
  font-weight: 600;
}

.work-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (max-width: 480px) {
  .work-grid {
    gap: 10px;
  }
  .work-overlay {
    padding: 12px 12px 14px;
  }
  .work-overlay .cat {
    font-size: 0.62rem;
    margin: 0 0 3px;
  }
  .work-overlay h3 {
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .work-excerpt-wrap {
    display: none;
  }
  .work-corner {
    border-width: 0 0 26px 26px;
  }
  .work-card:hover .work-corner {
    border-width: 0 0 32px 32px;
  }
}

.work-card {
  perspective: 900px;
}
.work-card.filtered-out {
  display: none;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.work-card.just-shown {
  animation: cardIn 0.5s var(--ease);
}

.work-card-inner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(155deg, #383570, #211f57);
  border: 1px solid var(--line-on-dark);
  transition:
    transform 0.12s linear,
    box-shadow 0.4s var(--ease),
    border-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.work-card:hover .work-card-inner,
.work-card:focus-within .work-card-inner {
  box-shadow:
    0 32px 60px -20px rgba(0, 0, 0, 0.55),
    0 0 46px -14px rgba(224, 138, 92, 0.35);
  border-color: rgba(224, 138, 92, 0.45);
}

.work-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 46px 46px;
  border-color: transparent transparent rgba(205, 177, 142, 0.18) transparent;
  transition: border-width 0.4s var(--ease);
  z-index: 2;
}
.work-card:hover .work-corner {
  border-width: 0 0 62px 62px;
}

.work-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1%;
}
.work-visual svg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}
.work-card:hover .work-visual svg {
  transform: scale(1.1) translateY(-6px);
}

.work-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 22px 24px;
  background: linear-gradient(
    0deg,
    rgba(15, 13, 45, 0.96) 10%,
    rgba(15, 13, 45, 0.55) 55%,
    transparent 100%
  );
  z-index: 3;
}
.work-overlay .cat {
  font-size: 0.76rem;
  color: var(--accent);
  margin: 0 0 6px;
}
.work-overlay h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--cream);
  font-weight: 700;
}
.work-excerpt-wrap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s var(--ease),
    opacity 0.4s ease,
    margin 0.5s ease;
  margin-top: 0;
}
.work-card:hover .work-excerpt-wrap,
.work-card:focus-within .work-excerpt-wrap {
  max-height: 140px;
  opacity: 1;
  margin-top: 10px;
}
.work-overlay p.work-excerpt {
  font-size: 0.86rem;
  color: rgba(255, 253, 248, 0.75);
  margin: 0 0 12px;
  line-height: 1.6;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}
.work-link .arrow {
  transition: transform 0.3s ease;
}
.work-card:hover .work-link .arrow {
  transform: translateX(-4px);
}

/* ---------- BLOG ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 46px;
}
@media (max-width: 860px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
.blog-card {
  background: rgba(255, 253, 248, 0.62);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px -24px rgba(34, 32, 95, 0.28);
}
.blog-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-thumb svg {
  width: 64px;
  height: 64px;
  opacity: 0.85;
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-thumb svg {
  transform: scale(1.15) rotate(6deg);
}
.blog-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-cat {
  font-size: 0.76rem;
  color: var(--accent);
  margin: 0 0 10px;
}
.blog-body h3 {
  font-size: 1.04rem;
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.5;
}
.blog-body p {
  font-size: 0.88rem;
  color: rgba(32, 29, 74, 0.6);
  margin: 0 0 16px;
  flex: 1;
}
.blog-meta {
  font-size: 0.78rem;
  color: rgba(32, 29, 74, 0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-read {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-read .arrow {
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-read .arrow {
  transform: translateX(-4px);
}

.blog-all {
  display: flex;
  justify-content: center;
}
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 13px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.35s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(34, 32, 95, 0.5);
}

/* ---------- MANIFESTO ---------- */
.manifesto {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
}
.manifesto p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.6;
  max-width: 20ch;
  margin: 0 auto;
  color: var(--primary);
}
.manifesto .credit {
  font-family: "Vazirmatn", sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 26px;
  display: block;
}

/* ---------- CTA (elevated floating card, distinct from footer) ---------- */
.cta-section {
  background: var(--paper);
  padding: 100px 0 120px;
  position: relative;
}
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(
      ellipse 500px 400px at 90% 100%,
      rgba(224, 138, 92, 0.25),
      transparent 65%
    ),
    linear-gradient(
      125deg,
      var(--primary) 0%,
      var(--primary-2) 60%,
      var(--primary) 100%
    );
  background-size:
    auto,
    220% 220%;
  animation: gradientPan 16s ease infinite;
  box-shadow:
    0 50px 90px -40px rgba(34, 32, 95, 0.55),
    0 0 0 1px rgba(255, 253, 248, 0.06) inset;
  padding: 64px 56px;
}
.cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
}
.cta-glow.g1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(205, 177, 142, 0.35),
    transparent 70%
  );
  top: -160px;
  left: -120px;
  animation: pulseGlow 7s ease-in-out infinite;
}
.cta-glow.g2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    rgba(255, 253, 248, 0.14),
    transparent 70%
  );
  bottom: -160px;
  right: -100px;
  animation: pulseGlow 8s ease-in-out infinite;
  animation-delay: 1.5s;
}
.cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 253, 248, 0.22) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  opacity: 0.2;
  pointer-events: none;
}

.cta-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--accent-2);
  border: 1px solid rgba(205, 177, 142, 0.4);
  background: rgba(255, 253, 248, 0.06);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.cta-copy {
  color: var(--cream);
  max-width: 480px;
}
.cta-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.28;
}
.cta-copy p {
  color: rgba(255, 253, 248, 0.72);
  margin: 0 0 28px;
  max-width: 42ch;
}
.cta-btn {
  background: var(--accent);
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: start;
}
.cta-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
  background: rgba(255, 253, 248, 0.07);
  border: 1px solid rgba(255, 253, 248, 0.12);
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
}
a.cta-contact-row:hover {
  background: rgba(255, 253, 248, 0.13);
  border-color: var(--accent);
  transform: translateX(-4px);
}
.cta-ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  color: var(--accent);
}
.cta-ic svg {
  width: 100%;
  height: 100%;
}
.cta-contacts .en {
  font-family: "Fraunces", serif;
  letter-spacing: 0.03em;
}

@media (max-width: 860px) {
  .cta-card {
    padding: 46px 28px;
    border-radius: 22px;
  }
  .cta-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-contacts {
    width: 100%;
  }
  .cta-contact-row {
    width: 100%;
  }
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--primary-deep);
  color: rgba(255, 253, 248, 0.7);
  padding: 60px 0 30px;
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-on-dark);
  margin-bottom: 24px;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand .brand-name-fa {
  color: var(--cream);
}
.footer-brand p {
  margin-top: 16px;
  color: rgba(255, 253, 248, 0.5);
  font-size: 0.88rem;
}
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: rgba(255, 253, 248, 0.62);
  margin-bottom: 10px;
  font-size: 0.88rem;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
.footer-col a:hover {
  color: var(--cream);
  transform: translateX(-4px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 253, 248, 0.42);
  font-size: 0.82rem;
}
.footer-bottom .en {
  font-family: "Fraunces", serif;
  letter-spacing: 0.08em;
}

/* ---------- BACK TO TOP ---------- */
.to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s var(--ease);
  z-index: 60;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.5);
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  background: var(--accent);
  color: var(--primary-deep);
  transform: translateY(-4px);
}

/* ---------- SMALL-SCREEN RHYTHM ---------- */
@media (max-width: 640px) {
  section {
    padding: 72px 0;
  }
  .hero {
    padding: 96px 0 76px;
  }
  .services-showcase,
  .work-showcase {
    padding: 80px 0 90px;
  }
  .cta-section {
    padding: 70px 0 84px;
  }
  .section-head {
    margin-bottom: 40px;
    padding-bottom: 20px;
  }
}
@media (max-width: 400px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-buttons a {
    text-align: center;
    justify-content: center;
  }
  .cta-card {
    padding: 34px 20px;
  }
}

/* ---------- INNER PAGE HERO (services & future pages) ---------- */
.page-hero {
  padding: 168px 0 96px;
  text-align: center;
}
.page-hero .hero-inner {
  grid-template-columns: 1fr;
  justify-items: center;
}
.page-hero .hero-inner > div {
  max-width: 760px;
}
.page-hero .hero-lede,
.page-hero .hero-body {
  margin-left: auto;
  margin-right: auto;
}
.page-hero .hero-buttons {
  justify-content: center;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 253, 248, 0.6);
  margin: 0 0 22px;
}
.breadcrumb a {
  color: var(--accent-2);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--cream);
}
.breadcrumb .sep {
  opacity: 0.5;
}
.breadcrumb .current {
  color: rgba(255, 253, 248, 0.85);
}
@media (max-width: 640px) {
  .page-hero {
    padding: 140px 0 76px;
  }
}

/* ---------- MINI LIST (sub-services inside a service-card) ---------- */
.mini-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.mini-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(32, 29, 74, 0.75);
  line-height: 1.6;
}
.mini-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  margin-top: 7px;
}
.mini-list li b {
  color: var(--primary);
  font-weight: 700;
}
.svc-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 253, 248, 0.35);
  padding-bottom: 2px;
  position: relative;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}
.svc-more:hover {
  color: var(--cream);
  border-color: var(--cream);
}


/* =========================================================
   SUBMIT PORTFOLIO PAGE — dedicated, independent stylesheet
   ========================================================= */

/* ---------- HERO ---------- */
.sp-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 80px;
  color: var(--cream);
  background:
    radial-gradient(
      ellipse 620px 500px at 90% 6%,
      rgba(224, 138, 92, 0.24),
      transparent 60%
    ),
    radial-gradient(
      ellipse 520px 480px at 4% 100%,
      rgba(205, 177, 142, 0.2),
      transparent 60%
    ),
    linear-gradient(
      150deg,
      var(--primary-deep) 0%,
      var(--primary) 55%,
      var(--primary-deep) 100%
    );
}
.sp-hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.sp-hero-content {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 100%;
}
.sp-hero .breadcrumb {
  justify-content: flex-start;
}
.sp-hero-eyebrow {
  display: inline-block;
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 20px;
}
.sp-hero-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.28;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.sp-hero-title .accent-grad {
  background: linear-gradient(
    100deg,
    var(--accent-2) 5%,
    var(--accent) 45%,
    var(--accent-warm) 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.sp-hero-lede {
  font-size: 1.03rem;
  color: rgba(255, 253, 248, 0.78);
  max-width: 50ch;
  margin: 0 0 32px;
  line-height: 1.9;
}
.sp-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- HERO VISUAL: floating sample chips ---------- */
.sp-hero-visual {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 100%;
  position: relative;
  height: 360px;
}
.sphv-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 55% 45%,
    rgba(224, 138, 92, 0.32),
    transparent 62%
  );
  filter: blur(20px);
  pointer-events: none;
}
.sphv-card {
  position: absolute;
  width: 160px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 30px 54px -18px rgba(0, 0, 0, 0.5);
  animation: sphvFloat 6s ease-in-out infinite;
}
.sphv-card svg {
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  stroke: var(--cream);
  opacity: 0.9;
}
.sphv-card span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 253, 248, 0.8);
}
.sphv-1 {
  top: 2%;
  right: 6%;
  z-index: 3;
  animation-delay: 0s;
  --r: -5deg;
}
.sphv-2 {
  top: 40%;
  right: 34%;
  z-index: 2;
  animation-delay: 1.8s;
  --r: 4deg;
}
.sphv-3 {
  bottom: 4%;
  right: 12%;
  z-index: 1;
  animation-delay: 3.2s;
  --r: -3deg;
}
.sphv-4 {
  top: 16%;
  left: 2%;
  z-index: 2;
  animation-delay: 4.6s;
  --r: 6deg;
}
@keyframes sphvFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-14px) rotate(var(--r, 0deg));
  }
}
@media (prefers-reduced-motion: reduce) {
  .sphv-card {
    animation: none;
  }
}
@media (max-width: 900px) {
  .sp-hero-visual {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
  .sphv-glow {
    display: none;
  }
  .sphv-card {
    position: static;
    width: 44%;
    flex: 1 1 140px;
    transform: none !important;
    animation: none;
  }
}
@media (max-width: 640px) {
  .sp-hero {
    padding: 140px 0 56px;
  }
  .sphv-card {
    width: 47%;
  }
}

/* ---------- FORM SECTION ---------- */
.sp-form-section {
  padding: 70px 0 100px;
}
.sp-form-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -34px rgba(34, 32, 95, 0.24);
  padding: 46px;
  position: relative;
  overflow: hidden;
}
.sp-form-wrap::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(205, 177, 142, 0.22), transparent 70%);
  pointer-events: none;
}
.sp-form-head {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}
.sp-form-head h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 10px;
}
.sp-form-head p {
  font-size: 0.92rem;
  color: rgba(32, 29, 74, 0.6);
  margin: 0;
}

.sp-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 20px;
}
.sp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-field.full {
  grid-column: 1 / -1;
}
.sp-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
}
.sp-field label .opt {
  font-weight: 400;
  color: rgba(32, 29, 74, 0.42);
  font-size: 0.78rem;
}
.sp-field input,
.sp-field select,
.sp-field textarea {
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  width: 100%;
}
.sp-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4 L6 8 L10 4' fill='none' stroke='%23221f5e' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 38px;
  background-size: 20px auto;
}
.sp-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.8;
}
.sp-field input::placeholder,
.sp-field textarea::placeholder {
  color: rgba(32, 29, 74, 0.35);
}
.sp-field input:focus,
.sp-field select:focus,
.sp-field textarea:focus {
  background: var(--cream);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(205, 177, 142, 0.22);
}
.sp-field.invalid input,
.sp-field.invalid select,
.sp-field.invalid textarea {
  border-color: #d9534f;
  box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.14);
}
.sp-field-error {
  font-size: 0.76rem;
  color: #d9534f;
  display: none;
}
.sp-field.invalid .sp-field-error {
  display: block;
}

.sp-file {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-warm);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sp-file:hover {
  border-color: var(--accent);
  background: var(--paper);
}
.sp-file svg {
  flex: none;
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}
.sp-file span {
  font-size: 0.86rem;
  color: rgba(32, 29, 74, 0.6);
}
.sp-file input[type="file"] {
  display: none;
}

.sp-form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}
.sp-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(32, 29, 74, 0.6);
  max-width: 46ch;
}
.sp-consent input {
  margin-top: 3px;
  accent-color: var(--primary);
  flex: none;
}
.sp-submit-btn {
  border: none;
  cursor: pointer;
  font-family: "Vazirmatn", sans-serif;
}

/* ---------- SUCCESS STATE ---------- */
.sp-success {
  position: relative;
  z-index: 1;
  display: none;
  text-align: center;
  padding: 20px 0;
}
.sp-success.show {
  display: block;
}
.sp-success-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(100deg, var(--accent-2), var(--accent-warm));
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-deep);
}
.sp-success h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0 0 10px;
  font-weight: 700;
}
.sp-success p {
  font-size: 0.92rem;
  color: rgba(32, 29, 74, 0.62);
  margin: 0 0 24px;
  max-width: 44ch;
  margin-inline: auto;
}
.sp-form.hide {
  display: none;
}
.sp-form-head.hide {
  display: none;
}

@media (max-width: 700px) {
  .sp-form-wrap {
    padding: 30px 22px;
  }
  .sp-form {
    grid-template-columns: 1fr;
  }
  .sp-form-foot {
    flex-direction: column;
    align-items: stretch;
  }
}
