:root {
  --ink: #10110f;
  --navy: #10131a;
  --paper: #f1eadf;
  --muted: #aaa9a0;
  --line: rgba(241, 234, 223, .16);
  --lime: #dafa6a;
  --coral: #ff735c;
  --blue: #5a73f5;
  --sans: 'Manrope', Arial, sans-serif;
  --mono: 'DM Mono', monospace;
  --serif: 'Playfair Display', Georgia, serif;
}
[dir="rtl"] {
  --sans: 'Vazirmatn', 'Manrope', Tahoma, sans-serif;
  --mono: 'Vazirmatn', Tahoma, sans-serif;
  --serif: 'Vazirmatn', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--navy); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.site-shell { overflow: hidden; }
.container-wide { width: min(1320px, calc(100% - 96px)); margin: 0 auto; }
.eyebrow, .section-number { color: var(--muted); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.section-number { color: var(--coral); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* Header */
.topbar { position: fixed; z-index: 30; inset: 0 0 auto; padding: 21px 0; border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, padding .3s ease; }
.topbar.scrolled { padding: 14px 0; background: rgba(16,17,15,.9); border-color: var(--line); backdrop-filter: blur(14px); }
.topbar .container-wide { display: flex; align-items: center; justify-content: space-between; }
.brand-mark { display: inline-flex; align-items: center; width: 164px; text-decoration: none; }
.brand-mark img { width: 100%; height: auto; }
.topnav { display: flex; align-items: center; gap: 29px; }
.topnav a, .menu-trigger { color: var(--muted); font: 500 12px var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: color .2s ease, background .2s ease; }
.topnav a:hover, .topnav a:focus-visible { color: var(--lime); }
.nav-contact { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--ink) !important; background: var(--coral); }
.nav-contact:hover, .nav-contact:focus-visible { color: var(--ink) !important; background: var(--lime); }
.nav-lang { padding: 4px 8px; border: 1px solid var(--line); }
.menu-trigger { display: none; padding: 8px 0; color: var(--paper); border: 0; background: transparent; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 890px; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero-grid { position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 92px 92px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero::after { content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(16,19,26,.98) 0%, rgba(16,19,26,.84) 39%, rgba(16,19,26,.16) 72%, rgba(16,19,26,.3) 100%); }
.hero-orb { position: absolute; z-index: 2; inset-inline-end: -15vw; top: -3%; width: 59vw; max-width: 870px; height: 106%; border: 1px solid rgba(90,115,245,.8); border-radius: 50%; pointer-events: none; transform: rotate(-17deg); }
.hero-orb::before { content: ''; position: absolute; top: 17%; inset-inline-start: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(90,115,245,.12); }
.hero-orb::after { content: ''; position: absolute; inset: 9% -5% 9% 5%; border: 1px solid rgba(90,115,245,.16); border-radius: 50%; }
.hero-copy { position: relative; z-index: 3; width: 59%; padding-top: 70px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; color: var(--lime); }
.hero-kicker::before { content: ''; display: block; width: 42px; height: 1px; background: var(--coral); }
.hero h1 { max-width: 820px; margin: 0; color: var(--paper); font-size: clamp(56px, 8.4vw, 128px); font-weight: 700; letter-spacing: -.03em; line-height: .9; text-transform: uppercase; }
.hero h1 em, .section-title em, .contact-title em { color: var(--coral); font-family: var(--serif); font-weight: 600; letter-spacing: -.03em; text-transform: none; }
.contact-title em { color: var(--ink); }
.hero-sub { max-width: 380px; margin: 42px 0 0; margin-inline-start: 7px; color: #c3c6d1; font-size: 16px; line-height: 1.7; }
.hero-meta { display: flex; align-items: center; gap: 17px; margin: 39px 0 0; margin-inline-start: 7px; }
.hero-meta a { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); font: 12px var(--mono); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.hero-meta a:hover { color: var(--lime); }
.hero-meta > span { width: 3px; height: 3px; border-radius: 50%; background: var(--coral); }
.hero-portrait-wrap { position: absolute; z-index: 2; inset-inline-end: 7%; bottom: 0; width: min(34vw, 500px); height: 76%; overflow: hidden; opacity: .94; mix-blend-mode: screen; }
.hero-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.08); }
.portrait-header { position: absolute; z-index: 2; top: 17px; left: 27px; right: 27px; display: flex; justify-content: space-between; color: var(--paper); font: 11px var(--mono); letter-spacing: .08em; }
.portrait-label { position: absolute; inset-inline-end: 22px; bottom: 24px; color: var(--paper); font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; writing-mode: vertical-rl; }
.portrait-mark { position: absolute; inset-inline-start: 27px; bottom: 23px; color: var(--lime); font: 500 13px var(--mono); letter-spacing: .08em; }
.scroll-cue { position: absolute; z-index: 4; right: 48px; bottom: 35px; display: flex; align-items: center; gap: 10px; color: var(--muted); font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-90deg) translateX(100%); transform-origin: right bottom; }
.scroll-cue i { display: block; width: 38px; height: 1px; background: var(--coral); }

.ticker { overflow: hidden; padding: 18px 0; color: var(--ink); background: var(--lime); }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 30px; padding-inline-end: 30px; white-space: nowrap; }
.ticker-item span { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ticker-item b { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
@keyframes ticker { to { transform: translateX(-50%); } }
[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

/* About */
.section { padding: 145px 0; background: var(--ink); }
.about-layout, .services-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 110px; }
.about-big { color: var(--lime); font: 400 clamp(90px, 15vw, 225px) var(--serif); letter-spacing: -.04em; line-height: .78; }
.about-big small { display: block; margin: 18px 0 0; margin-inline-start: 7px; color: var(--muted); font: 12px var(--mono); letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.section-title { margin: 24px 0 33px; color: var(--paper); font-size: clamp(42px, 5.6vw, 80px); font-weight: 700; letter-spacing: -.03em; line-height: .98; text-transform: uppercase; }
.about-copy > p { max-width: 560px; margin: 0 0 18px; color: #c0c0b7; font-size: 16px; line-height: 1.85; }
.about-copy strong { color: var(--paper); font-weight: 600; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; max-width: 600px; margin: 67px 0 0; padding-top: 25px; border-top: 1px solid var(--line); }
.fact dt { margin-bottom: 8px; color: var(--coral); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.fact dd { margin: 0; color: var(--paper); font-size: 14px; line-height: 1.5; }

/* Work */
.work-section { background: #e9e0d0; color: #171713; }
.work-section .section-number, .work-section .eyebrow { color: #c9432f; }
.work-section .section-title { color: #171713; }
.work-section .section-title em { color: #c9432f; }
.work-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 74px; }
.work-intro p { max-width: 300px; margin: 0; color: #55554e; font-size: 15px; line-height: 1.7; }
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 145px; width: 1px; background: rgba(23,23,19,.2); }
.timeline-item { position: relative; display: grid; grid-template-columns: 145px 1fr; gap: 60px; padding: 0 0 74px; }
.timeline-year { color: #55554e; font: 12px var(--mono); letter-spacing: .04em; }
.timeline-card { position: relative; }
.timeline-card::before { content: ''; position: absolute; top: 4px; inset-inline-start: -66px; width: 11px; height: 11px; border: 2px solid #e9e0d0; border-radius: 50%; background: #e65c48; }
.timeline-card h3 { margin: 0 0 7px; color: #171713; font-size: clamp(25px, 3vw, 43px); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.timeline-card h3 a { text-decoration: none; }
.timeline-card h3 a:hover { color: #c9432f; }
.timeline-role { color: #c9432f; font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.timeline-card p { max-width: 540px; margin: 18px 0 0; color: #55554e; font-size: 15px; line-height: 1.7; }
.project-feature { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; margin: 25px 0 100px; padding: 23px; color: var(--paper); background: #171713; }
.project-image { overflow: hidden; aspect-ratio: 1421 / 749; background: #272821; }
.project-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: filter .3s ease; }
.project-feature:hover .project-image img { filter: brightness(1.04); }
.project-copy { padding: 20px 35px 20px 0; padding-inline: 0 35px; }
.project-copy h3 { margin: 15px 0 20px; color: var(--paper); font-size: clamp(30px, 3.8vw, 54px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.project-copy h3 em { color: var(--coral); font-family: var(--serif); font-weight: 600; }
.project-copy p { max-width: 320px; margin: 0; color: #b3b2a9; font-size: 14px; line-height: 1.75; }
.project-link { display: inline-flex; align-items: center; gap: 11px; margin-top: 34px; color: var(--lime); font: 12px var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.project-link:hover { color: var(--coral); }

/* Case study */
.case-study { margin-top: 20px; padding: 56px; color: var(--paper); background: #171713; }
.case-study .eyebrow { color: var(--lime); }
.case-study h3 { margin: 18px 0 48px; font-size: clamp(30px, 4vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.case-study h3 em { color: var(--coral); font-family: var(--serif); font-weight: 600; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; padding-top: 36px; border-top: 1px solid var(--line); }
.case-grid h4 { margin: 0 0 14px; color: var(--coral); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.case-grid p { margin: 0; color: #c0c0b7; font-size: 15px; line-height: 1.8; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.case-metrics[hidden] { display: none; }
.case-metrics strong { display: block; color: var(--lime); font: 400 clamp(36px, 4vw, 60px) var(--serif); line-height: 1; }
.case-metrics span { display: block; margin-top: 10px; color: var(--muted); font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Services */
.services-layout { grid-template-columns: .75fr 1.25fr; gap: 80px; }
.services-intro .section-title { margin: 22px 0 32px; }
.services-intro > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.service-list { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 55px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.service-item > span { padding-top: 10px; color: var(--coral); font: 12px var(--mono); }
.service-item h3 { margin: 0 0 10px; font-size: clamp(20px, 2.4vw, 33px); font-weight: 500; letter-spacing: -.02em; }
.service-item p { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

/* Contact */
.contact-section { position: relative; overflow: hidden; padding: 165px 0 100px; color: var(--ink); background: var(--coral); }
.contact-section::after { content: 'SH'; position: absolute; inset-inline-end: -2%; bottom: -26%; color: rgba(16,17,15,.07); font: 700 34vw var(--sans); letter-spacing: -.08em; line-height: 1; pointer-events: none; }
.contact-inner { position: relative; z-index: 1; }
.contact-section .eyebrow { color: var(--ink); }
.contact-section :focus-visible { outline-color: var(--ink); }
.contact-title { max-width: 950px; margin: 29px 0 56px; font-size: clamp(56px, 10vw, 150px); font-weight: 700; letter-spacing: -.035em; line-height: .88; text-transform: uppercase; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-bottom: 100px; }
.contact-lead { max-width: 420px; margin: 0 0 32px; font-size: 18px; line-height: 1.7; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.contact-button { display: inline-flex; align-items: center; gap: 12px; padding: 17px 21px; color: var(--paper); background: var(--ink); border: 0; font: 12px var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease; }
.contact-button:hover { color: var(--ink); background: var(--lime); }
.contact-button:disabled { opacity: .6; cursor: wait; }
.social-link { padding-bottom: 5px; color: var(--ink); border-bottom: 1px solid rgba(16,17,15,.5); font: 12px var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.social-link:hover { border-color: var(--ink); }
.contact-form { display: grid; gap: 24px; }
.field label { display: block; margin-bottom: 6px; font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; padding: 10px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(16,17,15,.6); border-radius: 0; font: 16px var(--sans); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.contact-form .contact-button { justify-self: start; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin: 0; font: 13px var(--mono); }
.form-status[data-state="error"] { color: #4a0d03; font-weight: 700; }
.footer { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; color: var(--ink); border-top: 1px solid rgba(16,17,15,.35); font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

/* WhatsApp float */
.whatsapp-float { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; gap: 9px; padding: 13px 17px; color: var(--ink); background: var(--lime); border: 1px solid rgba(16,17,15,.14); text-decoration: none; font: 600 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 12px 30px rgba(0,0,0,.2); transition: transform .2s ease, background .2s ease; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: translateY(-3px); background: var(--coral); }
.whatsapp-icon { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 10px var(--sans); }

/* RTL / Persian */
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(16,19,26,.98) 0%, rgba(16,19,26,.84) 39%, rgba(16,19,26,.16) 72%, rgba(16,19,26,.3) 100%); }
[dir="rtl"] .hero-orb { transform: rotate(17deg); }
[dir="rtl"] .hero h1 em, [dir="rtl"] .section-title em, [dir="rtl"] .contact-title em, [dir="rtl"] .project-copy h3 em, [dir="rtl"] .case-study h3 em { font-style: normal; }
[dir="rtl"] .hero h1 { font-size: clamp(46px, 7vw, 108px); line-height: 1.25; text-transform: none; }
[dir="rtl"] .section-title { font-size: clamp(36px, 5vw, 70px); line-height: 1.3; }
[dir="rtl"] .contact-title { font-size: clamp(42px, 8vw, 118px); line-height: 1.25; }
[dir="rtl"] .about-big { font-family: var(--sans); font-weight: 800; line-height: 1; }
[dir="rtl"] .project-copy h3, [dir="rtl"] .case-study h3 { line-height: 1.3; }
[dir="rtl"] .timeline-card h3 { line-height: 1.3; }
[dir="rtl"] .hero-sub, [dir="rtl"] .about-copy > p, [dir="rtl"] .timeline-card p, [dir="rtl"] .service-item p, [dir="rtl"] .case-grid p { line-height: 2; }
[dir="rtl"] .scroll-cue { display: none; }
[dir="rtl"] .portrait-header { direction: rtl; }
[dir="rtl"] .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] .field input[type="email"] { direction: ltr; text-align: right; }

@media (max-width: 900px) {
  .container-wide { width: min(100% - 64px, 1320px); }
  .hero { min-height: 820px; }
  .hero-copy { width: 64%; }
  .hero-portrait-wrap { inset-inline-end: 0; width: min(43vw, 390px); height: 65%; }
  .hero-orb { inset-inline-end: -24vw; width: 73vw; }
  .about-layout, .services-layout, .contact-grid { grid-template-columns: 1fr; gap: 65px; }
  .about-big { font-size: 130px; }
  .project-feature { grid-template-columns: 1fr; gap: 15px; }
  .project-copy { padding: 20px 20px 30px; }
  .case-study { padding: 36px; }
}
@media (max-width: 650px) {
  .container-wide { width: calc(100% - 34px); }
  .topbar { padding: 17px 0; }
  .brand-mark { width: 136px; }
  .topnav { display: none; position: absolute; top: 65px; left: 17px; right: 17px; flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px; background: #171713; border: 1px solid var(--line); }
  .topnav.open { display: flex; }
  .menu-trigger { display: block; }
  .hero { min-height: 800px; align-items: flex-start; padding-top: 150px; }
  .hero-copy { width: 100%; padding-top: 0; }
  .hero h1 { font-size: clamp(48px, 15vw, 90px); }
  [dir="rtl"] .hero h1 { font-size: clamp(40px, 12vw, 76px); }
  .hero::after, [dir="rtl"] .hero::after { background: linear-gradient(180deg, rgba(16,19,26,.98) 0%, rgba(16,19,26,.88) 46%, rgba(16,19,26,.24) 100%); }
  .hero-orb { inset-inline-end: -38%; top: 32%; width: 125vw; height: 67%; transform: rotate(-14deg); }
  [dir="rtl"] .hero-orb { transform: rotate(14deg); }
  .hero-portrait-wrap { inset-inline-end: -2%; width: min(78vw, 330px); height: min(49vh, 420px); }
  .hero-sub { position: relative; z-index: 3; margin-top: 35px; max-width: 300px; }
  .hero-meta { position: relative; z-index: 3; flex-wrap: wrap; margin-top: 29px; }
  .portrait-label, .scroll-cue { display: none; }
  .section { padding: 95px 0; }
  .about-big { font-size: 110px; }
  .about-facts { grid-template-columns: 1fr; margin-top: 45px; }
  .work-intro { display: block; margin-bottom: 45px; }
  .work-intro p { margin-top: 25px; }
  .timeline::before { inset-inline-start: 6px; }
  .timeline-item { grid-template-columns: 1fr; gap: 20px; padding-inline-start: 29px; padding-bottom: 55px; }
  .timeline-card::before { inset-inline-start: -29px; }
  .project-feature { margin-bottom: 70px; padding: 11px; }
  .case-study { padding: 26px 20px; }
  .case-grid, .case-metrics { grid-template-columns: 1fr; gap: 30px; }
  .service-item { grid-template-columns: 38px 1fr; }
  .contact-section { padding-top: 95px; }
  .contact-grid { margin-bottom: 70px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .whatsapp-float { inset-inline-end: 16px; bottom: 16px; padding: 12px 14px; }
  .whatsapp-float span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
