/* aaramin.com — AA RAMIN personal brand. Luxury ink / ivory / champagne gold. RTL + LTR, light + dark. */

@font-face { font-family: "Sora"; src: url("../fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #F6F3EC;
  --bg-2: #EFEADF;
  --surface: #FFFFFF;
  --surface-2: #F3EFE6;
  --surface-3: #E8E2D5;
  --border: #E2DBCB;
  --border-strong: #CFC6B2;
  --ink: #0B0B0D;
  --text: #0B0B0D;
  --text-2: #34322D;
  --muted: #6F6A5F;
  --gold: #B8913F;
  --gold-2: #D9BC7C;
  --gold-soft: rgba(184, 145, 63, .12);
  --gold-text: #8A6A26;
  --on-gold: #0B0B0D;
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --ok: #1E9E5A;
  --ok-soft: rgba(30, 158, 90, .12);
  --shadow: 0 1px 2px rgba(20, 16, 8, .04), 0 12px 32px -18px rgba(20, 16, 8, .18);
  --shadow-hard: 8px 8px 0 var(--ink);
  --grid-line: rgba(11, 11, 13, .045);
  --studio: radial-gradient(120% 90% at 50% 18%, #3A3A40 0%, #1C1C21 48%, #0E0E11 100%);
  --radius: 20px;
  --gap: 18px;
  --container: 1200px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-brand: "Bodoni Moda", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
html[lang="fa"] { --font: "Vazirmatn", system-ui, sans-serif; --font-display: "Vazirmatn", system-ui, sans-serif; }
html[lang="ar"] { --font: "Plex Arabic", "Vazirmatn", system-ui, sans-serif; --font-display: "Plex Arabic", "Vazirmatn", system-ui, sans-serif; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0C; --bg-2: #0F0F12; --surface: #141417; --surface-2: #1A1A1E; --surface-3: #232328;
    --border: #26262B; --border-strong: #37373E; --text: #F4F1EA; --text-2: #CFCAC0; --muted: #8E897F;
    --gold: #C8A45D; --gold-2: #E3C98E; --gold-soft: rgba(200, 164, 93, .12); --gold-text: #D9BC7C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .8);
    --shadow-hard: 8px 8px 0 var(--gold); --grid-line: rgba(255, 255, 255, .035);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0C; --bg-2: #0F0F12; --surface: #141417; --surface-2: #1A1A1E; --surface-3: #232328;
  --border: #26262B; --border-strong: #37373E; --text: #F4F1EA; --text-2: #CFCAC0; --muted: #8E897F;
  --gold: #C8A45D; --gold-2: #E3C98E; --gold-soft: rgba(200, 164, 93, .12); --gold-text: #D9BC7C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .8);
  --shadow-hard: 8px 8px 0 var(--gold); --grid-line: rgba(255, 255, 255, .035);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background-color: var(--bg);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
html[lang="fa"] body, html[lang="ar"] body { line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-family: var(--font-display); }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.015em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--on-gold); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--on-gold); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 560px) { .container { padding-inline: 16px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; direction: ltr; }
.brand-mark { height: 34px; width: auto; flex: none; }
.brand-name { display: flex; flex-direction: column; gap: 3px; line-height: 1; padding-inline-start: 14px; border-inline-start: 1px solid var(--gold); }
.brand-name b { font-family: var(--font-brand); font-size: 19px; font-weight: 600; letter-spacing: .16em; }
.brand-name small { font-family: "Inter", sans-serif; font-size: 8.5px; font-weight: 600; letter-spacing: .38em; color: var(--muted); }
.brand-word { font-family: var(--font-brand); font-weight: 600; letter-spacing: .14em; color: var(--text); }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2); position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding-inline: 10px;
  border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: 13px;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { color: var(--gold-text); border-color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun, .theme-btn .i-moon, .theme-btn .i-auto { display: none; }
.theme-btn[data-mode="light"] .i-sun, .theme-btn[data-mode="dark"] .i-moon, .theme-btn[data-mode="auto"] .i-auto { display: block; }
.menu-btn { display: none; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-pop {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 170px; padding: 6px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow);
}
.lang-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: 14.5px; }
.lang-pop a b { width: 26px; font-size: 12px; color: var(--muted); font-family: "Sora", sans-serif; }
.lang-pop a:hover { background: var(--surface-2); }
.lang-pop a[aria-current] { color: var(--gold-text); }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .nav a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav a::after { display: none; }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 440px) { .brand-name small { display: none; } .brand-name b { font-size: 15px; letter-spacing: .12em; } .brand-mark { height: 30px; } }

/* ---------- Buttons, pills, cards ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px;
  border-radius: 12px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: 4px 4px 0 var(--ink); }
:root[data-theme="dark"] .btn-primary { box-shadow: 4px 4px 0 #000; }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.pill-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: currentColor; opacity: .35; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
a.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--gold-text); letter-spacing: .14em; text-transform: uppercase; font-family: "Sora", var(--font); }
html[lang="fa"] .eyebrow, html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; font-family: var(--font); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-text); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); flex: none; }
.ico svg { width: 23px; height: 23px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 7px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 16px; }
.hero-main { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; min-height: calc(100vh - var(--header-h) - 80px); }
.hero-tagline { margin: 22px 0 14px; font-family: "Sora", var(--font); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
html[lang="fa"] .hero-tagline, html[lang="ar"] .hero-tagline { letter-spacing: 0; font-size: 15px; font-family: var(--font); }
.hero-copy h1 { font-size: clamp(44px, 6.6vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
html[lang="fa"] .hero-copy h1, html[lang="ar"] .hero-copy h1 { line-height: 1.3; font-weight: 900; letter-spacing: 0; }
html[lang="fa"] .statement, html[lang="ar"] .statement { font-family: var(--font); }
.statement { font-family: "Inter", var(--font); font-size: clamp(21px, 2.3vw, 29px); font-weight: 700; letter-spacing: -.01em; line-height: 1.35; margin: 18px 0 16px; color: var(--text); }
.statement mark { background: var(--ink); color: #F6F3EC; padding: 0 .28em; box-decoration-break: clone; -webkit-box-decoration-break: clone; border-inline-start: 4px solid var(--gold); }
:root[data-theme="dark"] .statement mark { background: var(--gold); color: var(--on-gold); border-color: var(--gold-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .statement mark { background: var(--gold); color: var(--on-gold); border-color: var(--gold-2); } }
.intro-role { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.intro-lead { color: var(--text-2); font-size: 16.5px; max-width: 60ch; margin-bottom: 26px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; max-width: 620px; }
.hero-stat { border: 1.5px solid var(--text); border-radius: 12px; padding: 14px 16px; background: var(--surface); box-shadow: 4px 4px 0 var(--gold); }
.hero-stat b { display: block; font-family: var(--font-brand); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.1; }
.hero-stat span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.45; margin-top: 4px; }

.hero-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; margin-inline-end: 14px; margin-bottom: 14px; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; transform: translate(14px, 14px); z-index: 0;
  border: 1.5px solid var(--gold);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--gold) 55%, transparent) 0 1.5px, transparent 1.5px 12px);
}
html[dir="rtl"] .hero-photo::before { transform: translate(-14px, 14px); }
html[dir="rtl"] .hero-photo { margin-inline-end: 0; margin-inline-start: 14px; }
.studio { background: var(--studio); overflow: hidden; }
.hero-photo .frame { position: absolute; inset: 0; border-radius: inherit; background: var(--studio); overflow: hidden; z-index: 1; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero-photo .frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 0%, rgba(200, 164, 93, .22), transparent 70%); pointer-events: none; }
.hero-photo img, .about-photo img, .contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; position: relative; z-index: 1; }
.hero-photo .frame img { position: absolute; left: 50%; bottom: 0; width: auto; height: 90%; max-width: none; transform: translateX(-50%); object-fit: contain; }
.photo-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; background: rgba(12, 12, 14, .78); color: #F6F3EC; border: 1px solid rgba(200, 164, 93, .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.photo-chip svg { width: 17px; height: 17px; color: #D9BC7C; }
.chip-place { inset-inline-start: 18px; bottom: 18px; }
.chip-years { inset-inline-end: 18px; top: 18px; background: #C8A45D; color: #0B0B0D; border-color: #C8A45D; font-family: "Sora", var(--font); }
@media (max-width: 960px) {
  .hero-main { grid-template-columns: 1fr; gap: 36px; min-height: 0; }
  .hero-photo { order: -1; width: min(420px, 88%); margin-inline: auto; }
}
@media (max-width: 560px) { .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .hero-stat { padding: 10px; } .hero-stat span { font-size: 11.5px; } .intro-actions .btn { flex: 1 1 auto; } }

/* ---------- Bento ---------- */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 56px; }
.b-what { grid-column: span 7; }
.b-office { grid-column: span 5; padding: 0; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(90% 70% at 70% 0%, var(--gold-soft), transparent 70%), var(--surface); }
.skyline { width: 100%; height: 150px; padding: 22px 24px 0; opacity: .9; }
.b-marquee { grid-column: span 12; padding: 6px 0; }
.b-social { grid-column: span 4; }
.b-quote { grid-column: span 4; background: var(--ink); color: #F6F3EC; border-color: var(--ink); }
:root[data-theme="dark"] .b-quote { background: var(--surface-2); border-color: var(--border); }
.b-cta { grid-column: span 4; }
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.what { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.what b { font-family: var(--font-display); font-size: 16.5px; font-weight: 800; line-height: 1.3; }
.what span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.office-img { width: 100%; height: 190px; object-fit: cover; }
.office-body { padding: 20px 24px 24px; }
.office-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 8px 0 12px; }
.status-list { display: grid; gap: 9px; font-size: 14.5px; color: var(--text-2); }
.status-list li { display: flex; align-items: center; gap: 10px; }
.status-list svg { width: 18px; height: 18px; color: var(--gold-text); flex: none; }
.marquee { overflow: hidden; padding-block: 10px; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 50s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 58s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.domain { display: inline-flex; align-items: center; gap: 18px; padding: 6px 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); white-space: nowrap; }
html[lang="fa"] .domain, html[lang="ar"] .domain { font-size: 19px; font-weight: 700; }
.domain::after { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); margin-inline: 22px 4px; }
.b-marquee .marquee-track { gap: 0; }
.tech { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; font-family: "Inter", sans-serif; }
.tech svg { width: 17px; height: 17px; opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.social { height: 58px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); transition: all .2s; }
.social svg { width: 22px; height: 22px; }
.social:hover { background: var(--ink); color: var(--gold-2); border-color: var(--ink); transform: translateY(-2px); }
.b-quote .eyebrow { color: #D9BC7C; }
.b-quote blockquote { margin: 16px 0 20px; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.45; }
.b-quote blockquote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 56px; line-height: .6; color: #C8A45D; margin-bottom: 8px; }
.quote-sign { display: flex; align-items: center; gap: 12px; color: #F6F3EC; }
.quote-sign .brand-mark { height: 30px; }
.quote-sign b { display: block; font-size: 14.5px; }
.quote-sign small { display: block; font-size: 12px; color: #A8A298; }
.cta-card { background: var(--gold); color: var(--on-gold); border-color: var(--gold); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.cta-card .eyebrow { color: var(--on-gold); } .cta-card .eyebrow::before { background: var(--on-gold); }
.cta-card h2 { font-size: 30px; font-weight: 800; }
.cta-arrow { width: 52px; height: 52px; border-radius: 12px; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; transition: transform .2s; }
.cta-arrow svg { width: 22px; height: 22px; }
.cta-card:hover .cta-arrow { transform: translate(4px, -4px); }
html[dir="rtl"] .cta-card:hover .cta-arrow { transform: translate(-4px, -4px); }
.cta-card svg.deco { position: absolute; inset-inline-end: -40px; bottom: -40px; width: 190px; height: 190px; opacity: .18; color: var(--ink); }
.cta-card svg.deco circle { stroke: currentColor; }
@media (max-width: 1060px) { .b-what, .b-office { grid-column: span 12; } .b-social, .b-quote, .b-cta { grid-column: span 6; } .b-cta { grid-column: span 12; } }
@media (max-width: 700px) { .bento { grid-template-columns: 1fr; } .bento > * { grid-column: 1 / -1 !important; } .what-grid { grid-template-columns: 1fr; } .card { padding: 20px; } }

/* ---------- Sections ---------- */
.section { padding-block: 96px 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; margin-top: 12px; max-width: 18ch; }
html[lang="fa"] .section-head h2, html[lang="ar"] .section-head h2 { max-width: 24ch; font-weight: 900; }
.section-head p { max-width: 52ch; color: var(--muted); margin: 0; font-size: 16.5px; }
@media (max-width: 640px) { .section { padding-block: 64px 4px; } }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: stretch; }
.about-photo { border-radius: 22px; min-height: 520px; position: relative; box-shadow: var(--shadow-hard); border: 1.5px solid var(--ink); }
:root[data-theme="dark"] .about-photo { border-color: var(--gold); }
.about-main { display: grid; gap: var(--gap); align-content: start; }
.about-text { font-size: 16.5px; color: var(--text-2); }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--border); }
.facts li span:first-child { color: var(--muted); font-size: 13px; font-weight: 600; }
.facts li span:last-child { font-weight: 700; font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--gap); }
.value h3 { font-size: 18px; font-weight: 800; margin: 16px 0 6px; }
.value p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { min-height: 0; aspect-ratio: 4 / 5; width: min(420px, 100%); margin-inline: auto; } .values { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.service { display: flex; flex-direction: column; }
.service h3 { font-size: 19px; font-weight: 800; margin: 18px 0 8px; }
.service p { color: var(--muted); font-size: 15px; margin-bottom: 16px; flex: 1; }
.service:hover { border-color: var(--gold); }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

.approach { margin-top: 28px; padding: 0; display: grid; grid-template-columns: 1fr 1.1fr; background: var(--ink); color: #F6F3EC; border-color: var(--ink); }
:root[data-theme="dark"] .approach { background: var(--surface); border-color: var(--border); }
.approach-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.approach-body { padding: 40px; }
.approach-body .eyebrow { color: #D9BC7C; }
.approach-body h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin: 12px 0 12px; }
.approach-body p { color: #C9C3B8; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; counter-reset: s; }
.steps li { display: grid; gap: 4px; padding: 16px; border-radius: 12px; border: 1px solid rgba(200, 164, 93, .3); background: rgba(255, 255, 255, .03); }
.step-n { font-family: "Sora", sans-serif; font-weight: 800; color: #C8A45D; font-size: 14px; }
.steps b { font-size: 16px; }
.steps li > span:last-child { font-size: 14px; color: #A8A298; }
@media (max-width: 900px) { .approach { grid-template-columns: 1fr; } .approach-photo img { min-height: 0; aspect-ratio: 16 / 9; } .approach-body { padding: 26px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.project { padding: 0; display: flex; flex-direction: column; }
.project-art { aspect-ratio: 16 / 8; background: var(--surface-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.project-art svg { width: 100%; height: 100%; direction: ltr; }
.project-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.project h3 { font-size: 22px; font-weight: 800; }
.project-role { font-size: 13.5px; font-weight: 700; color: var(--gold-text); margin-top: -4px; }
.project p { color: var(--text-2); font-size: 15px; margin: 0; }
.project .tags { margin-top: auto; padding-top: 6px; }
.project-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--gold-text); }
.project-link svg { width: 16px; height: 16px; }
.project.featured { grid-column: 1 / -1; flex-direction: row; }
.project.featured .project-art { aspect-ratio: auto; flex: 1.1; min-height: 320px; border-bottom: 0; border-inline-end: 1px solid var(--border); }
.project.featured .project-body { flex: 1; padding: 36px; justify-content: center; }
.project.featured h3 { font-size: 30px; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } .project.featured { flex-direction: column; } .project.featured .project-art { aspect-ratio: 16 / 8; min-height: 0; border-inline-end: 0; border-bottom: 1px solid var(--border); } .project.featured .project-body { padding: 24px 26px 26px; } }

.resume-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gap); align-items: start; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 7px; width: 2px; background: linear-gradient(var(--gold), var(--border) 85%); }
.tl-item { position: relative; padding-inline-start: 38px; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 16px; height: 16px; border-radius: 4px; background: var(--surface); border: 3px solid var(--gold); transform: rotate(45deg); }
.tl-when { font-size: 13px; font-weight: 800; color: var(--gold-text); font-family: "Sora", var(--font); letter-spacing: .04em; }
.tl-item h3 { font-size: 19px; font-weight: 800; margin: 4px 0 2px; }
.tl-org { font-size: 14.5px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.tl-item p { color: var(--text-2); font-size: 15px; margin: 0; }
.tl-item ul { margin-top: 10px; display: grid; gap: 5px; }
.tl-item ul li { position: relative; padding-inline-start: 18px; font-size: 14.5px; color: var(--text-2); }
.tl-item ul li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .72em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.side-stack { display: grid; gap: var(--gap); }
.side-stack h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.side-stack h3 svg { width: 20px; height: 20px; color: var(--gold-text); }
.edu-item + .edu-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.edu-item b { display: block; font-size: 15.5px; }
.edu-item span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .resume-grid { grid-template-columns: 1fr; } }

.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cred h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-family: var(--font); }
.cred h3 svg { width: 22px; height: 22px; color: var(--gold-text); }
.cred .edu-item b { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
html[lang="fa"] .cred .edu-item b, html[lang="ar"] .cred .edu-item b { font-family: var(--font); font-size: 16px; }
@media (max-width: 900px) { .cred-grid { grid-template-columns: 1fr; } }
.engage { margin-top: 72px; }
.engage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.engage-item h3 { font-size: 18px; font-weight: 800; margin: 16px 0 8px; }
.engage-item p { font-size: 14.5px; color: var(--muted); margin: 0; }
.engage-n { position: absolute; top: 18px; inset-inline-end: 22px; font-family: var(--font-brand); font-size: 34px; font-weight: 700; color: var(--gold); opacity: .55; line-height: 1; }
.engage-item:hover { border-color: var(--gold); }
@media (max-width: 1000px) { .engage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .engage-grid { grid-template-columns: 1fr; } }
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.skill-group h3 { font-size: 17px; font-weight: 800; margin: 16px 0 14px; }
.skill-group .tags { flex-direction: column; align-items: flex-start; gap: 8px; }
.skill-group .tag { background: none; border: 0; padding: 0; font-size: 14.5px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.skill-group .tag::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }
@media (max-width: 1000px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap); }
.contact-hero { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; background: var(--ink); color: #F6F3EC; border-color: var(--ink); }
:root[data-theme="dark"] .contact-hero { background: var(--surface); border-color: var(--border); }
.contact-photo { border-radius: 16px; aspect-ratio: 2 / 3; border: 1px solid rgba(200, 164, 93, .45); }
.contact-copy .eyebrow { color: #D9BC7C; }
.contact-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 12px 0 12px; }
.contact-copy h2 em { font-style: normal; color: #D9BC7C; }
.contact-copy p { color: #C9C3B8; }
.address { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.address svg { width: 18px; height: 18px; color: #D9BC7C; flex: none; }
.contact-copy .btn-ghost { background: transparent; color: #F6F3EC; border-color: rgba(246, 243, 236, .3); }
.contact-copy .btn-ghost:hover { border-color: #C8A45D; color: #D9BC7C; }
.contact-copy .btn-primary { box-shadow: none; }
.contact-list { display: grid; gap: 10px; align-content: start; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .15s; }
.contact-item:hover { border-color: var(--gold); transform: translateY(-1px); }
.contact-item .ico { width: 44px; height: 44px; }
.contact-item b { display: block; font-size: 15px; }
.contact-item span span { font-size: 14px; color: var(--muted); }
.contact-item .go { margin-inline-start: auto; width: 18px; height: 18px; color: var(--muted); flex: none; }
@media (max-width: 1000px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .contact-hero { grid-template-columns: 1fr; } .contact-photo { width: 200px; } }

.site-footer { margin-top: 96px; border-top: 1px solid var(--border); padding-block: 30px; color: var(--muted); font-size: 14px; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a:hover { color: var(--gold-text); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; z-index: 90; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --surface: #fff; --surface-2: #f5f3ee; --border: #ddd; --text: #000; --text-2: #222; --muted: #555; --gold-text: #7a5c1e; --grid-line: transparent; --shadow: none; color-scheme: light; }
  body { background: #fff; font-size: 12px; }
  .site-header, .skip-link, .bento, .intro-actions, .site-footer, .toast, .project-art, .approach, .contact, .hero-photo, .about-photo, #skills { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 16px 0; }
  .card { box-shadow: none; break-inside: avoid; padding: 14px; }
  .hero-main { min-height: 0; grid-template-columns: 1fr; }
}
