@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("fonts/syne-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #F3F0EA;
  --bg-2: #E8E4DA;
  --paper: #FFFCF7;
  --ink: #15131C;
  --muted: #5C5866;
  /* Antique green palette (main theme since Nov 2026; violet kept as ?theme=violet preview) */
  --accent: #263C37;        /* antique green — white text ≈ 11.6:1 */
  --accent-hover: #1A2B27;
  --accent-soft: #E3E9E1;   /* pale sage surface */
  --accent-mid: #3F5E55;    /* lighter green for rings */
  --tint: #C9D4C7;          /* sage offset shadow */
  --gold: #B8964F;          /* antique gold highlight — decorative only, not for text */
  --sand: #E8DCBC;
  --line: rgba(21, 19, 28, 0.1);
  --nav-h: 4.5rem;
  --max: 74rem;
  --radius: 1.6rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.6rem);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, figure { margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}
.skip-link:focus { top: 0.75rem; }

/* Cursor */
.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 2.3rem;
  height: 2.3rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  translate: -50% -50%;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
  will-change: transform;
}
.cursor i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.28rem;
  height: 0.28rem;
  background: var(--accent);
  border-radius: 50%;
  translate: -50% -50%;
}
@media (pointer: fine) and (hover: hover) {
  body.has-cursor { cursor: none; }
  body.has-cursor a,
  body.has-cursor button { cursor: none; }
  .cursor { display: block; }
  body.is-hovering .cursor {
    width: 3.3rem;
    height: 3.3rem;
    background: rgba(38, 60, 55, 0.1);
  }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(243, 240, 234, 0.94);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  background: #F3F0EA;
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin-inline: auto;
  height: 100%;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-inline-end: auto;
}
.logo-mark {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.7rem;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}
.logo-text { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 1.45rem; }
.nav-links a { font-size: 0.92rem; color: var(--muted); position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.2rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding-inline: 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  position: relative;
  z-index: 70;
  border-radius: 50%;
  border: 1.5px solid transparent;
}
.nav-toggle span {
  position: absolute;
  inset-inline-start: 0.55rem;
  width: 1.25rem;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span:first-child { top: 0.95rem; }
.nav-toggle span:last-child { top: 1.35rem; }
body.menu-open .nav-toggle span:first-child { top: 1.15rem; transform: rotate(-45deg); }
body.menu-open .nav-toggle span:last-child { top: 1.15rem; transform: rotate(45deg); }
body.menu-open .nav-toggle { border-color: var(--ink); }

.mobile-panel {
  display: none;
  position: fixed;
  top: var(--nav-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 55;
  background: var(--bg);
  padding: 1.5rem 1.5rem 2rem;
  flex-direction: column;
}
.mobile-panel nav { display: flex; flex-direction: column; }
.mobile-panel nav a {
  font-size: 1.35rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-panel .btn { margin-top: auto; justify-content: center; }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-panel { display: flex; }
body.menu-open .nav {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.nav-links a:focus-visible,
.nav-cta:focus-visible,
.btn:focus-visible,
.work-link:focus-visible,
.logo:focus-visible,
.nav-toggle:focus-visible,
.work-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 3.5rem 1.5rem 4.5rem;
}
.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.7;
}
.blob-a {
  width: 26rem;
  height: 26rem;
  background: #B9CBBE;
  top: -8%;
  left: 8%;
  animation: blob 16s ease-in-out infinite;
}
.blob-b {
  width: 22rem;
  height: 22rem;
  background: var(--sand);
  bottom: 4%;
  right: -4%;
  animation: blob 20s ease-in-out infinite reverse;
}
.shape-ring {
  position: absolute;
  width: 8.5rem;
  height: 8.5rem;
  border: 3px dashed var(--accent-mid);
  border-radius: 50%;
  top: 18%;
  right: 10%;
  opacity: 0.4;
  animation: spin 28s linear infinite;
}
.shape-dot {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--gold);
  border-radius: 50%;
  bottom: 18%;
  left: 14%;
  opacity: 0.85;
}
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, -7%) scale(1.12); }
}
@keyframes spin { to { transform: rotate(-360deg); } }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 54rem;
  text-align: center;
}

.sticker-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.sticker {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--accent);
}
.sticker-ghost {
  background: var(--accent);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--gold);
}
.sticker-mini {
  font-size: 0.75rem;
  padding: 0.18rem 0.65rem;
  box-shadow: 2px 2px 0 var(--accent);
  margin-bottom: 0.7rem;
}
.tilt-left { transform: rotate(-6deg); }
.tilt-right { transform: rotate(5deg); }

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(3.4rem, 11vw, 8rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--accent); }

.hero-lede {
  margin: 1.5rem auto 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 2;
}

.hero-actions {
  margin-top: 2.1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding-inline: 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-in {
  opacity: 0;
  transform: translateY(1.3rem);
  animation: rise 0.9s var(--ease) forwards;
}
.hero-title .hero-in:nth-child(1) { animation-delay: 0.1s; }
.hero-title .hero-in:nth-child(2) { animation-delay: 0.22s; }
.hero-lede.hero-in { animation-delay: 0.34s; }
.hero-actions.hero-in { animation-delay: 0.46s; }
.sticker-row.hero-in { animation-delay: 0s; }
@keyframes rise { to { opacity: 1; transform: none; } }


/* English hero name — Syne ExtraBold + Instrument Serif Italic */
.hero-title.hero-en {
  font-size: clamp(3.2rem, 12.5vw, 10.5rem);
  letter-spacing: 0;
  line-height: 0.86;
  margin-inline: auto;
  text-align: center;
  unicode-bidi: isolate;
}
.hero-en .en-line { display: flex; flex-wrap: nowrap; white-space: nowrap; justify-content: center; align-items: flex-end; overflow: hidden; padding: 0.04em 0.06em 0.1em; }
.hero-en .en-line-2 { margin-top: -0.06em; padding-bottom: 0.14em; }
.hero-en .en-kaveh {
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: "Syne", "Vazirmatn", sans-serif;
  font-size: 0.66em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.hero-en .en-zarf {
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.18em;
  letter-spacing: -0.035em;
  color: var(--accent);
  position: relative;
}
.hero-en .en-zarf::after {
  content: "";
  position: absolute;
  left: 0.04em; right: 0.04em; bottom: 0.06em;
  height: 0.07em;
  border-radius: 1em;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.9s var(--ease) 1.25s forwards;
}
.hero-en .en-star {
  display: inline-block;
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.3em;
  color: var(--gold);
  margin: 0 0.1em 0.42em 0.18em;
  animation: starspin 9s linear infinite, starin 0.7s var(--ease) 0.6s both;
}
.hero-en .en-tag {
  display: inline-block;
  font-family: "Vazirmatn", sans-serif;
  font-weight: 600;
  font-size: 0.11em;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 0.6em;
  margin: 0 0 0.55em 0.25em;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.75s forwards;
}
.hero-en .ch {
  display: inline-block;
  transform: translateY(105%) rotate(6deg);
  opacity: 0;
  animation: charup 0.85s var(--ease) forwards;
  animation-delay: calc(0.08s + var(--i) * 0.045s);
}
.hero-en .en-zarf .ch { padding-inline-end: 0.02em; }
@keyframes charup { to { transform: none; opacity: 1; } }
@keyframes underline { to { transform: scaleX(1); } }
@keyframes starspin { to { transform: rotate(360deg); } }
@keyframes starin { from { opacity: 0; scale: 0.3; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-en .ch, .hero-en .en-tag, .hero-en .en-star, .hero-en .en-zarf::after { animation: none !important; opacity: 1 !important; transform: none !important; }
}
@media (max-width: 800px) {
  .hero-title.hero-en { font-size: clamp(2.6rem, 19.5vw, 5.6rem); text-align: right; }
  .hero-en .en-line { justify-content: flex-end; }
  .hero-en .en-zarf { font-size: 1.12em; }
  .hero-en .en-tag { display: none; }
}

/* Marquee */
.marquee {
  border-block: 1.5px solid var(--ink);
  background: var(--accent);
  overflow: hidden;
  padding-block: 0.95rem;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  direction: ltr;
  animation: marquee 34s linear infinite;
  color: #F6F1E4;
  font-size: 0.95rem;
  font-weight: 600;
}
.marquee-track i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  display: block;
  flex: 0 0 auto;
  opacity: 1;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Work intro */
.work-intro { padding: 4.5rem 1.5rem 1.5rem; }
.work-intro-inner,
.section-head {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}
.work-intro-inner h2,
.section-head h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  letter-spacing: -0.03em;
}
.section-lede { margin-top: 0.8rem; color: var(--muted); }
.work-intro-inner .eyebrow,
.section-head .eyebrow { justify-content: center; }

/* Horizontal gallery */
.work-pin { height: 360vh; }
.work-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0 1.2rem;
  overflow: hidden;
  background: var(--bg);
}
.work-toolbar {
  max-width: var(--max);
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.work-progress {
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  direction: ltr;
  unicode-bidi: isolate;
}
.work-nav-btns { display: flex; gap: 0.45rem; }
.work-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: 1.05rem;
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s;
}
.work-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.work-viewport { flex: 1; overflow: hidden; }
.work-track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.25rem;
  padding-inline: 1.5rem;
  will-change: transform;
}
.work-card {
  flex: 0 0 min(86vw, 72rem);
  display: grid;
  grid-template-columns: 1.65fr 0.7fr;
  gap: 1.4rem;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 1.7rem;
  padding: 1.15rem 1.15rem 1.15rem 1.3rem;
  box-shadow: 8px 8px 0 var(--tint);
  min-height: 0;
}
.device-stage {
  position: relative;
  padding-block-end: 2.6rem;
  min-width: 0;
}
.browser {
  border: 1.5px solid var(--ink);
  border-radius: 0.95rem;
  overflow: hidden;
  background: #111;
  box-shadow: 0 16px 36px rgba(21, 19, 28, 0.12);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 2rem;
  padding-inline: 0.7rem;
  background: #f3f1ec;
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 0.28rem; }
.dots i { width: 0.42rem; height: 0.42rem; border-radius: 50%; display: block; background: #d0ccc4; }
.dots i:nth-child(1) { background: #f0a3a3; }
.dots i:nth-child(2) { background: #ead48a; }
.dots i:nth-child(3) { background: #9dcea2; }
.url {
  flex: 1;
  height: 1.2rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  unicode-bidi: isolate;
}
.browser-screen {
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  background: #111;
}
.browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}
.work-card:hover .browser-screen img { transform: scale(1.05); }
.work-card:hover { transform: rotate(-0.6deg); }

.phone {
  position: absolute;
  inset-inline-end: 0.7rem;
  bottom: 0;
  width: min(30%, 7.4rem);
  filter: drop-shadow(0 14px 20px rgba(21, 19, 28, 0.28));
}
.phone-bezel {
  position: relative;
  background: #15131C;
  border-radius: 1.05rem;
  padding: 0.32rem;
  border: 1px solid #2c2a33;
}
.phone-notch {
  position: absolute;
  top: 0.42rem;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: 32%;
  height: 0.38rem;
  background: #15131C;
  border-radius: 999px;
  z-index: 2;
}
.phone-bezel img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.8rem;
}

.work-copy { padding-inline: 0.2rem 0.4rem; min-width: 0; }
.work-copy h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}
.work-copy p { color: var(--muted); }
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1.5px solid transparent;
}
.work-link:hover { border-bottom-color: var(--accent); }

/* Services */
.services {
  padding: 5rem 1.5rem 5.2rem;
  max-width: var(--max);
  margin-inline: auto;
}
.section-head { margin-bottom: 2.4rem; }
.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-areas:
    "feature dev"
    "feature launch"
    "seo seo";
  gap: 0.9rem;
}
.bento-feature { grid-area: feature; }
.bento-cell:nth-child(2) { grid-area: dev; }
.bento-cell:nth-child(3) { grid-area: launch; }
.bento-cell:nth-child(4) { grid-area: seo; }

.bento-cell {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 1.5rem;
  padding: 1.45rem 1.35rem 1.5rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.bento-cell::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: var(--accent-soft);
  left: -2.2rem;
  bottom: -2.6rem;
  pointer-events: none;
}
.bento-feature { min-height: 20rem; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-feature h3 { font-size: 1.75rem; }
.bento-cell:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 0 var(--accent);
}
.service-icon {
  width: 2.45rem;
  height: 2.45rem;
  color: var(--accent);
  margin-bottom: 0.95rem;
  position: relative;
  z-index: 1;
}
.service-icon svg { width: 100%; height: 100%; }
.bento-cell h3, .bento-cell p { position: relative; z-index: 1; }
.bento-cell h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.bento-cell p { color: var(--muted); font-size: 0.96rem; }

/* Process */
.process {
  background: var(--accent-soft);
  padding: 5.2rem 1.5rem;
  border-block: 1.5px solid var(--ink);
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: var(--max);
  margin-inline: auto;
}
.step {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 1.4rem;
  padding: 1.25rem 1.15rem 1.35rem;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  box-shadow: 3px 3px 0 var(--gold);
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { padding: 5.2rem 1.5rem 4.5rem; }
.contact-inner { max-width: var(--max); margin-inline: auto; }
.contact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.contact-item {
  border: 1.5px dashed var(--accent);
  border-radius: 1.3rem;
  padding: 1.2rem 1.15rem 1.25rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 7.3rem;
}
.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-bottom: 0.55rem;
}
.contact-label { font-weight: 700; font-size: 1.05rem; }
.contact-value { color: var(--muted); font-size: 0.92rem; margin-top: 0.15rem; }

.footer {
  border-top: 1.5px solid var(--ink);
  padding: 1.3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.bento-cell.reveal:nth-child(2) { transition-delay: 0.06s; }
.bento-cell.reveal:nth-child(3) { transition-delay: 0.12s; }
.bento-cell.reveal:nth-child(4) { transition-delay: 0.18s; }
.step.reveal:nth-child(2) { transition-delay: 0.07s; }
.step.reveal:nth-child(3) { transition-delay: 0.14s; }
.step.reveal:nth-child(4) { transition-delay: 0.21s; }
.contact-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.contact-item.reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-in, .blob, .shape-ring, .marquee-track, .btn, .bento-cell, .browser-screen img, .work-card {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .hero-in { opacity: 1 !important; transform: none !important; }
  .work-card:hover { transform: none; }
  .cursor { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

@media (max-width: 1100px) {
  .work-card { flex-basis: min(90vw, 58rem); grid-template-columns: 1.35fr 0.75fr; }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "feature feature"
      "dev launch"
      "seo seo";
  }
  .bento-feature { min-height: 14rem; }
}

@media (max-width: 800px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding: 2.6rem 1.2rem 3.2rem; }
  .hero-title { font-size: clamp(3rem, 18vw, 4.4rem); }
  .shape-ring, .shape-dot { display: none; }
  .blob-a, .blob-b { width: 16rem; height: 16rem; opacity: 0.55; }

  .work-pin { height: auto; }
  .work-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    padding-bottom: 2rem;
  }
  .work-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .work-track { transform: none !important; padding-bottom: 0.4rem; }
  .work-card {
    flex-basis: min(88vw, 28rem);
    grid-template-columns: 1fr;
    scroll-snap-align: start;
    padding: 0.95rem;
  }
  .work-copy { order: 2; }
  .device-stage { padding-block-end: 3.2rem; }
  .phone { width: 6.2rem; }
  .work-card:hover { transform: none; }

  .services, .process, .contact { padding: 3.4rem 1.2rem; }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "feature" "dev" "launch" "seo";
  }
  .bento-feature { min-height: 0; }
  .steps, .contact-list { grid-template-columns: 1fr; }
  .work-intro-inner, .section-head { text-align: right; }
  .work-intro-inner .eyebrow, .section-head .eyebrow { justify-content: flex-start; }
  .hero-inner { text-align: right; }
  .hero-actions, .sticker-row { justify-content: flex-start; }
  .hero-lede { margin-inline: 0; }
}


/* ===== Mobile polish (v2) ===== */
.only-mobile, .hero-en-sub { display: none; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

@media (max-width: 800px) {
  .only-desktop { display: none; }
  .only-mobile { display: inline; }

  .nav-inner { padding-inline: 1.15rem; }
  .nav-toggle { width: 2.75rem; height: 2.75rem; }
  .nav-toggle span { inset-inline-start: 0.72rem; }
  .nav-toggle span:first-child { top: 1.1rem; }
  .nav-toggle span:last-child { top: 1.5rem; }
  body.menu-open .nav-toggle span:first-child,
  body.menu-open .nav-toggle span:last-child { top: 1.3rem; }

  /* Hero: centred, stacked composition */
  .hero {
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    padding: 1.6rem 1.15rem 2.6rem;
    align-content: center;
  }
  .hero-inner { text-align: center; width: 100%; }
  .sticker-row { justify-content: center; margin-bottom: 1.6rem; gap: 0.55rem; }
  .sticker { font-size: 0.8rem; }
  .hero-title.hero-en {
    font-size: clamp(2.5rem, 19.5vw, 5.8rem);
    text-align: center;
    width: 100%;
  }
  .hero-en .en-line { justify-content: center; padding-inline: 0; }
  .hero-en .en-kaveh { font-size: 0.68em; letter-spacing: -0.035em; }
  .hero-en .en-line-2 { margin-top: -0.02em; }
  .hero-en .en-zarf { font-size: 1.1em; }
  .hero-en .en-star, .hero-en .en-tag { display: none; }
  .hero-en-sub {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.9rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    animation: rise 0.8s var(--ease) 0.9s forwards;
  }
  .hero-en-sub i { font-style: normal; color: var(--gold); letter-spacing: 0; }
  .hero-lede { margin: 1.3rem auto 0; max-width: 21rem; font-size: 1rem; line-height: 1.95; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    max-width: 21rem;
    margin: 1.8rem auto 0;
    gap: 0.65rem;
  }
  .hero-actions .btn { width: 100%; min-height: 3.25rem; }
  .blob-a { top: -4%; left: -20%; }
  .blob-b { bottom: 0; right: -30%; }

  /* Section heads */
  .work-intro { padding: 3.6rem 1.25rem 1.2rem; }
  .services, .process, .contact { padding: 3.4rem 1.25rem; }

  /* Gallery: swipe + snap with gutter */
  .work-sticky { padding: 0.4rem 0 2.2rem; }
  .work-toolbar { padding-inline: 1.25rem; margin-bottom: 0.9rem; }
  .work-btn { width: 2.75rem; height: 2.75rem; }
  .work-viewport {
    scroll-padding-inline: 1.25rem;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .work-viewport::-webkit-scrollbar { display: none; }
  .work-track {
    align-items: stretch;
    gap: 0.9rem;
    padding: 0.2rem 1.25rem 0.9rem;
  }
  .work-track::after { content: ""; flex: 0 0 0.35rem; }
  .work-card {
    flex: 0 0 calc(100vw - 3.6rem);
    max-width: 26rem;
    padding: 0.85rem 0.85rem 1.1rem;
    gap: 0.9rem;
    align-items: start;
    align-content: start;
    box-shadow: 5px 5px 0 var(--tint);
    border-radius: 1.4rem;
    scroll-snap-stop: always;
  }
  .device-stage { padding-block-end: 2.4rem; }
  .phone { width: 5.6rem; }
  .work-link { min-height: 2.75rem; display: inline-flex; align-items: center; }

  /* Footer + misc */
  .footer { padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 370px) {
  .sticker { font-size: 0.74rem; padding: 0.28rem 0.7rem; }
  .hero-en-sub { letter-spacing: 0.14em; font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-en-sub { animation: none !important; opacity: 1 !important; }
}

/* ===== CMS additions (v3) ===== */
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.about { padding: 5rem 1.5rem; }
.about-body { max-width: 42rem; margin: 1.4rem auto 0; color: var(--muted); line-height: 2.1; font-size: 1.05rem; }
.about-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) { .about { padding: 3.4rem 1.25rem; } }
.cursor { opacity: 0; transition: opacity 0.3s, width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s; }
body.cursor-ready .cursor { opacity: 1; }
::selection { background: var(--sand); color: var(--ink); }
