@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy-900: #0a1628;
  --navy: #10243e;
  --navy-2: #183456;
  --blue: #2a5f94;
  --gold: #b08d57;
  --gold-2: #cfb07e;
  --gold-soft: #f6efe3;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1c2531;
  --muted: #5d6877;
  --line: #e1e6ec;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, .05), 0 2px 8px rgba(10, 22, 40, .04);
  --shadow: 0 2px 4px rgba(10, 22, 40, .04), 0 12px 32px rgba(10, 22, 40, .08);
  --shadow-lg: 0 24px 60px rgba(10, 22, 40, .16);
  --wrap: 1180px;
  --dots: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  opacity: 0;
  transition: opacity .3s;
  text-rendering: optimizeLegibility;
}
body.ready { opacity: 1; }
html[lang="en"] body { line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.45; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
html[dir="rtl"] .ic.flip { transform: scaleX(-1); }
.mt { margin-top: 28px; }

/* ---------- header ---------- */
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--navy-900); color: #b9c5d4; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar a { color: #b9c5d4; }
.topbar a:hover { color: #fff; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.mono {
  width: 46px; height: 46px; border-radius: 11px; background: linear-gradient(145deg, var(--navy-2), var(--navy-900)); color: #fff;
  display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; font-size: 16px; direction: ltr;
  box-shadow: inset 0 -3px 0 var(--gold), 0 4px 12px rgba(16, 36, 62, .25);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.35; }
.brand-txt strong { font-size: 17px; font-weight: 800; }
.brand-txt small { color: var(--muted); font-size: 12.5px; }
.brand.light, .brand.light .brand-txt strong { color: #fff; }
.brand.light .brand-txt small { color: #9fb0c4; }
.menu { display: flex; justify-content: center; gap: 2px; }
.menu a { position: relative; color: var(--text); padding: 8px 14px; font-size: 15px; font-weight: 600; border-radius: 8px; }
.menu a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transition: transform .2s; }
.menu a:hover { color: var(--navy); }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }
.menu a.active { color: var(--navy); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff;
  color: var(--navy); border-radius: 9px; padding: 7px 13px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s;
}
.lang-btn:hover { border-color: var(--navy); }
.burger { display: none; width: 44px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; padding: 11px; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; border: 1px solid var(--navy);
  padding: 12px 26px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16, 36, 62, .22); }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: var(--gold); color: #fff; }
.btn.gold:hover { box-shadow: 0 8px 22px rgba(176, 141, 87, .38); }
.btn.outline-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn.outline-light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--navy); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(-3px); }
html[dir="ltr"] .link-arrow:hover .ic { transform: translateX(3px); }
html[dir="rtl"] .link-arrow:hover .ic.flip { transform: scaleX(-1) translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 50%, #1d3d66 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%); mask-image: linear-gradient(180deg, #000 20%, transparent 95%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; inset-inline-end: -180px; top: -220px; background: radial-gradient(circle, rgba(207, 176, 126, .22), transparent 65%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .9fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 136px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--gold-2); background: rgba(207, 176, 126, .1); border: 1px solid rgba(207, 176, 126, .3); padding: 5px 14px; border-radius: 30px; margin-bottom: 20px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ccf8a; box-shadow: 0 0 0 4px rgba(76, 207, 138, .2); }
.hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.3; margin-bottom: .25em; letter-spacing: -.3px; }
html[lang="en"] .hero h1 { letter-spacing: -.8px; }
.hero .headline { font-size: clamp(17px, 2vw, 22px); color: var(--gold-2); font-weight: 700; margin-bottom: 1em; }
.hero .lead { font-size: 17px; color: #c3cfdc; max-width: 600px; margin-bottom: 1.6em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #dbe3ec; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 14px; border-radius: 30px; }
.hero-meta .ic { color: var(--gold-2); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; justify-self: center; width: min(360px, 82vw); }
.hero-visual .frame { position: relative; border-radius: 24px; padding: 10px; background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow-lg); }
.hero-visual img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; pointer-events: none; }
.hero-visual .ring { position: absolute; inset: -18px; border: 1px dashed rgba(207, 176, 126, .45); border-radius: 32px; pointer-events: none; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--text); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.4; }
.float-card strong { display: block; font-size: 20px; color: var(--navy); font-weight: 800; }
.float-card .fc-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.float-card.a { inset-inline-start: -46px; bottom: 34px; }
.float-card.b { inset-inline-end: -34px; top: 30px; }

/* stats overlapping the hero */
.stats-wrap { position: relative; z-index: 3; margin-top: -72px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 28px 16px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat strong { display: block; font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat strong em { font-style: normal; color: var(--gold); }
.stat span { color: var(--muted); font-size: 14px; font-weight: 500; }

/* ---------- sections ---------- */
.sec { padding: 96px 0; position: relative; }
.sec.tight { padding-top: 72px; }
.sec.alt { background: #fff; }
.sec.dark { background: linear-gradient(160deg, var(--navy-900), var(--navy)); color: #c3cfdc; }
.sec.dark::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 24px 24px; opacity: .6; pointer-events: none; }
.sec.dark .wrap { position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .6px; margin-bottom: 10px; }
.sec-head .eyebrow::before, .sec-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.sec-head h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: .35em; }
.sec-head p { color: var(--muted); font-size: 16.5px; margin: 0; }
.sec.dark .sec-head h2 { color: #fff; }
.sec.dark .sec-head p { color: #a9b8c9; }
.sec.dark .eyebrow { color: var(--gold-2); }
.sec-foot { text-align: center; margin-top: 44px; }
.prose { max-width: 820px; }
.prose p { text-align: justify; text-justify: inter-word; }
.prose.center { margin-inline: auto; }
.lead-p { font-size: 18px; color: var(--text); }

.page-head { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 60%, #1d3d66 100%); color: #fff; padding: 64px 0 58px; text-align: center; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.page-head::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.page-head .wrap { position: relative; }
.crumbs { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: #9fb0c4; margin-bottom: 12px; }
.crumbs a { color: #c3cfdc; }
.crumbs a:hover { color: #fff; }
.page-head h1 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin: 0; }
.page-head .lead { color: #b9c6d5; margin: 12px auto 0; max-width: 680px; font-size: 16.5px; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.two-col { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card h3 { font-size: 18.5px; }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dbe5; }

/* services */
.service { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.service::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: scaleX(0); transform-origin: center; transition: transform .25s; }
.service:hover::before { transform: scaleX(1); }
.service.center { text-align: center; align-items: center; }
.svc-ic { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(145deg, #eef3f9, #e1e9f3); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; flex: none; transition: background .2s, color .2s; }
.service:hover .svc-ic { background: linear-gradient(145deg, var(--navy-2), var(--navy-900)); color: var(--gold-2); }
.svc-ic .ic { width: 27px; height: 27px; }
.service p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.service .ticks { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); width: 100%; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 15px; }
.ticks li .ic { color: var(--gold); margin-top: .4em; }
.ticks.big li { font-size: 16px; padding: 7px 0; }
.bullets { margin: 8px 0 0; padding-inline-start: 20px; }
.bullets li { margin: 5px 0; font-size: 15px; }
.bullets li::marker { color: var(--gold); }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process::before { content: ""; position: absolute; top: 34px; inset-inline: 12.5%; height: 1px; background: repeating-linear-gradient(90deg, rgba(207, 176, 126, .6) 0 6px, transparent 6px 12px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step .num { position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--gold-2); background: var(--navy-900); border: 1px solid rgba(207, 176, 126, .45); box-shadow: 0 0 0 8px rgba(255, 255, 255, .03); }
.step h3 { color: #fff; font-size: 17.5px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: #a9b8c9; margin: 0; }

/* projects */
.project { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.proj-cover { position: relative; height: 150px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--navy-2)); overflow: hidden; }
.proj-cover::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 18px 18px; }
.proj-cover::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; inset-inline-end: -70px; bottom: -110px; background: radial-gradient(circle, rgba(207, 176, 126, .35), transparent 70%); }
.project[data-cat="bot"] .proj-cover { background: linear-gradient(135deg, #0d2238, #1f4b6e); }
.project[data-cat="infra"] .proj-cover { background: linear-gradient(135deg, #111c2b, #2b3f58); }
.project[data-cat="ai"] .proj-cover { background: linear-gradient(135deg, #14203a, #3a3366); }
.project[data-cat="auto"] .proj-cover { background: linear-gradient(135deg, #102a2f, #1f5257); }
.proj-cover .cv-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.proj-cover .cv-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: var(--gold-2); }
.proj-cover .cv-ic .ic { width: 26px; height: 26px; }
.proj-cover .cv-host { font-size: 14px; font-weight: 600; color: #dbe3ec; letter-spacing: .3px; direction: ltr; }
.proj-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.proj-cover .tags { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; padding: 1px 11px; backdrop-filter: blur(4px); }
.tag.conf { background: rgba(207, 176, 126, .22); border-color: rgba(207, 176, 126, .45); color: #f3e3c6; }
.proj-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.proj-body h3 { font-size: 18px; margin-bottom: 2px; }
.proj-client { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.proj-body > p { color: #3b4655; font-size: 15px; }
.proj-meta { display: flex; gap: 8px; font-size: 14.5px; margin: 0 0 8px; padding: 10px 14px; background: var(--bg); border-radius: 9px; }
.proj-meta dt { font-weight: 700; color: var(--navy); white-space: nowrap; }
.proj-meta dt::after { content: ":"; }
.proj-meta dd { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.chips span { font-size: 13px; font-weight: 500; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 2px 10px; color: var(--navy); }
.proj-foot { margin-top: auto; padding-top: 16px; }

.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 auto 40px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 40px; width: fit-content; max-width: 100%; box-shadow: var(--shadow-sm); }
.filters button { font: inherit; font-size: 14.5px; font-weight: 600; background: transparent; border: 0; border-radius: 30px; padding: 7px 20px; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; }
.filters button:hover { color: var(--navy); }
.filters button.on { background: var(--navy); color: #fff; }

/* clients strip */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.client { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 20px; min-width: 220px; box-shadow: var(--shadow-sm); color: var(--text); transition: border-color .2s, transform .2s; }
.client:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--text); }
.client .c-mono { width: 40px; height: 40px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; }
.client strong { display: block; font-size: 14.5px; color: var(--navy); line-height: 1.4; }
.client small { color: var(--muted); font-size: 12.5px; direction: ltr; display: block; text-align: start; }

/* timeline: centered and alternating on desktop */
.timeline { position: relative; max-width: 1040px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 2px; margin-inline-start: -1px; background: linear-gradient(180deg, var(--gold), var(--line) 30%, var(--line) 80%, transparent); }
.tl-item { position: relative; width: 50%; padding-inline-end: 44px; margin-bottom: 28px; }
.tl-item:nth-child(even) { margin-inline-start: 50%; padding-inline-end: 0; padding-inline-start: 44px; }
.tl-dot { position: absolute; top: 30px; inset-inline-end: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 0 0 5px rgba(176, 141, 87, .15); }
.tl-item:nth-child(even) .tl-dot { inset-inline-end: auto; inset-inline-start: -9px; }
.tl-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.tl-body:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tl-when { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold); background: var(--gold-soft); border-radius: 20px; padding: 2px 12px; margin-bottom: 10px; }
.tl-when small { color: var(--muted); font-weight: 500; }
.tl-body h3 { font-size: 17.5px; margin-bottom: 2px; }
.tl-org { color: var(--muted); font-size: 14.5px; margin: 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.about-side { position: sticky; top: 132px; text-align: center; padding: 0; overflow: hidden; }
.about-side .as-top { background: linear-gradient(135deg, var(--navy-900), var(--navy-2)); padding: 30px 24px 70px; position: relative; }
.about-side .as-top::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 18px 18px; }
.about-photo { position: relative; width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin: -64px auto 14px; border: 5px solid #fff; box-shadow: var(--shadow); pointer-events: none; }
.about-side h3 { font-size: 19px; margin-bottom: 0; }
.about-side .muted { font-size: 14px; }
.about-side .contact-list { text-align: start; padding: 8px 24px 20px; }
.block { margin-bottom: 52px; }
.block-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.block-title h2 { font-size: 23px; margin: 0; white-space: nowrap; }
.block-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
html[dir="rtl"] .block-title::after { background: linear-gradient(270deg, var(--line), transparent); }
.block-title .bt-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.edu { display: flex; gap: 18px; align-items: flex-start; }
.edu h3 { font-size: 17.5px; margin-bottom: 2px; }
.edu p { margin: 0; font-size: 15px; }
.lang-list { display: grid; gap: 12px; }
.lang-list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; font-size: 15px; }
.lang-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.lang-list span { color: var(--muted); text-align: end; }
.callout { position: relative; background: linear-gradient(135deg, var(--navy-900), var(--navy-2)); color: #dbe3ec; padding: 26px 30px; border-radius: var(--radius); font-size: 16.5px; overflow: hidden; }
.callout::before { content: "”"; position: absolute; inset-inline-end: 20px; top: -20px; font-size: 120px; color: rgba(207, 176, 126, .25); font-family: Georgia, serif; line-height: 1; }
.strength-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.strength { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 15px; box-shadow: var(--shadow-sm); }
.strength .ic { color: var(--gold); margin-top: .35em; }

/* home intro */
.intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: stretch; }
.intro .card.feature { background: linear-gradient(160deg, var(--navy-900), var(--navy-2)); border: 0; color: #c3cfdc; position: relative; overflow: hidden; }
.intro .card.feature::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 20px 20px; opacity: .7; }
.intro .card.feature > * { position: relative; }
.intro .card.feature h3 { color: #fff; }
.intro .card.feature .ticks li { color: #dbe3ec; }
.intro .card.feature .ticks .ic { color: var(--gold-2); }
.intro .prose-card { display: flex; flex-direction: column; justify-content: center; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.signature img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; pointer-events: none; }
.signature strong { display: block; color: var(--navy); }
.signature span { color: var(--muted); font-size: 14px; }

/* skills */
.skill h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; }
.skill h3 .ic { color: var(--gold); }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.contact-list a { word-break: break-all; font-weight: 600; }
.ci { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(145deg, #eef3f9, #e1e9f3); color: var(--navy); display: grid; place-items: center; flex: none; }
.avail { display: flex; gap: 12px; margin-top: 18px; background: var(--gold-soft); border-radius: 12px; padding: 14px 16px; }
.avail .ic { color: var(--gold); margin-top: .3em; }
.avail small { color: #8a6c3d; font-weight: 700; }
.avail p { margin: 0; font-size: 14.5px; }
.tg-note { font-size: 13.5px; color: var(--muted); margin: 18px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.form label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 7px; font: inherit; font-size: 15px; font-weight: 400;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: #fbfcfd; color: var(--text);
  user-select: text; -webkit-user-select: text; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 95, 148, .12); background: #fff; }
.hp { position: absolute !important; left: -9999px !important; }
.form-msg { margin: 12px 0 0; font-size: 14.5px; }
.form-msg.ok { color: #1d7a46; }
.form-msg.err { color: #a33a2b; }

/* resume (online) */
.notice { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; text-align: center; background: var(--gold-soft); border: 1px solid #ead9bb; color: #6b5023; border-radius: 12px; padding: 14px 18px; font-size: 14.5px; margin: 0 auto 32px; max-width: 960px; }
.notice a { font-weight: 700; }
.cv { background: #fff; border-radius: 6px; box-shadow: var(--shadow-lg); max-width: 960px; margin: 0 auto; overflow: hidden; }
.cv-head { display: flex; gap: 24px; align-items: center; padding: 32px 38px; background: linear-gradient(135deg, var(--navy-900), var(--navy-2)); color: #c3cfdc; position: relative; }
.cv-head::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.cv-head img { width: 110px; height: 110px; border-radius: 12px; object-fit: cover; pointer-events: none; border: 3px solid rgba(255, 255, 255, .2); }
.cv-head h2 { margin: 0; font-size: 25px; color: #fff; }
.cv-head .headline { margin: 0 0 6px; font-size: 16px; color: var(--gold-2); font-weight: 700; }
.cv-head p { margin: 0; font-size: 14px; }
.cv-body { display: grid; grid-template-columns: 1.7fr 1fr; }
.cv-main { padding: 30px 38px; }
.cv-side { padding: 30px 30px; background: #f8fafc; border-inline-start: 1px solid var(--line); font-size: 14.5px; }
.cv h3 { font-size: 15px; letter-spacing: .5px; color: var(--navy); margin: 22px 0 12px; display: flex; align-items: center; gap: 10px; }
.cv h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cv h3:first-child { margin-top: 0; }
.cv .prose p { font-size: 15px; }
.cv-exp { margin-bottom: 16px; }
.cv-exp-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cv-exp-h span { color: var(--gold); font-size: 13.5px; font-weight: 700; }
.cv-exp p { margin: 0; font-size: 14px; }
.cv-sk { margin: 0 0 12px; }
.cv-sk strong { display: block; color: var(--navy); margin-bottom: 4px; }
.cv-sk .chips { margin: 0; gap: 5px; }
.cv-sk .chips span { font-size: 12px; padding: 0 8px; }

/* cta + footer */
.cta { padding: 96px 0; }
.sec:not(.alt):not(.dark) + .cta { padding-top: 0; }
.cta-box { position: relative; overflow: hidden; text-align: center; border-radius: 22px; padding: 56px 32px; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 55%, #1d3d66 100%); box-shadow: var(--shadow-lg); }
.cta-box::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.cta-box::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; top: -200px; inset-inline-start: 50%; margin-inline-start: -200px; background: radial-gradient(circle, rgba(207, 176, 126, .25), transparent 70%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.cta-box p { color: #b9c6d5; margin: 0 auto 28px; max-width: 560px; }
.cta-box .actions { justify-content: center; }
#site-footer { background: var(--navy-900); color: #9fb0c4; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
#site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.foot-tag { margin-top: 16px; font-size: 14px; max-width: 380px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { padding: 4px 0; }
.foot-links a { color: #9fb0c4; display: inline-flex; align-items: center; gap: 8px; }
.foot-links a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13px; }
.foot-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } body { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { grid-template-columns: auto 1fr; }
  .menu {
    display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column;
    padding: 12px 24px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(16, 36, 62, .1);
  }
  .menu a::after { display: none; }
  .menu a.active { background: var(--bg); }
  .menu-open .menu { display: flex; }
  .burger { display: block; }
  .nav { position: relative; }
  .nav-end { justify-self: end; }
  .float-card.a { inset-inline-start: -20px; }
  .float-card.b { inset-inline-end: -16px; }
}
@media (max-width: 980px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr 300px; gap: 36px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .topbar { display: none; }
  .nav { min-height: 66px; }
  .mono { width: 42px; height: 42px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; gap: 44px; padding-top: 48px; padding-bottom: 110px; }
  .hero-visual { order: -1; width: 230px; }
  .hero .lead { margin-inline: auto; }
  .hero-meta, .actions { justify-content: center; }
  .float-card { display: none; }
  .stats-wrap { margin-top: -60px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat strong { font-size: 28px; }
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; }
  .g2, .g3, .g4, .two-col, .intro, .foot-grid, .cv-body, .strength-grid, .form .row2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .timeline::before { inset-inline-start: 8px; margin: 0; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-inline-start: 0; padding-inline-start: 36px; padding-inline-end: 0; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { inset-inline-start: 0; inset-inline-end: auto; }
  .filters { border-radius: 16px; }
  .cv-head { flex-direction: column; text-align: center; padding: 26px 20px; }
  .cv-main, .cv-side { padding: 22px 20px; }
  .cv-side { border-inline-start: 0; border-top: 1px solid var(--line); }
  .brand-txt small { display: none; }
  .lang-btn span { display: none; }
  .cta-box { padding: 44px 20px; border-radius: 18px; }
  .cta { padding: 64px 0; }
  .client { min-width: 0; width: 100%; }
  .card { padding: 22px; }
  .block-title h2 { white-space: normal; font-size: 21px; }
}
