:root {
  color-scheme: dark;
  --bg: #0b1012;
  --bg-raised: #0f1518;
  --surface: #12191c;
  --surface-high: #172024;
  --text: #f3f0e9;
  --text-soft: #d2d0c8;
  --muted: #989c99;
  --muted-strong: #b1b3ad;
  --line: #293235;
  --line-soft: #20292c;
  --accent: #e9a95e;
  --accent-bright: #f4c27d;
  --accent-deep: #9f6932;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "DM Mono", Consolas, monospace;
  --content: 1160px;
  --radius-sm: 8px;
  --radius: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font: 400 15px/1.75 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; border-radius: 4px; }
::selection { color: #17120b; background: var(--accent-bright); }
.container { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; }
.mono { font-family: var(--font-mono); letter-spacing: .1em; }
.accent-text { color: var(--accent); }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 9px 13px; transform: translateY(-150%); color: #15120d; background: var(--accent); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { position: sticky; z-index: 40; top: 0; height: 76px; border-bottom: 1px solid transparent; background: rgb(11 16 18 / 88%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { border-color: var(--line-soft); background: rgb(11 16 18 / 96%); box-shadow: 0 10px 28px rgb(0 0 0 / 15%); }
.header-inner, .brand, .primary-nav, .nav-contact, .menu-toggle { display: flex; align-items: center; }
.header-inner { height: 100%; justify-content: space-between; gap: 26px; }
.brand { width: max-content; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent); border: 1px solid #7f613f; border-radius: 50%; font: 500 10px var(--font-mono); letter-spacing: -.08em; }
.brand-name { color: #f3efe7; font-size: 14px; font-weight: 800; letter-spacing: -.045em; }
.brand-dot { color: var(--accent); }
.primary-nav { gap: clamp(14px, 2.05vw, 27px); height: 100%; }
.primary-nav a { position: relative; color: var(--muted-strong); font-size: 11px; font-weight: 600; transition: color .2s ease; }
.primary-nav a::after { position: absolute; content: ""; right: 0; bottom: -7px; left: 0; height: 1px; transform: scaleX(0); transform-origin: left; background: var(--accent); transition: transform .25s var(--ease); }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--text); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav .nav-contact { gap: 8px; margin-left: 2px; padding: 9px 13px; color: var(--accent-bright); border: 1px solid #58452f; border-radius: 5px; transition: background .2s ease, border-color .2s ease; }
.primary-nav .nav-contact:hover { border-color: var(--accent-deep); background: rgb(233 169 94 / 8%); }
.primary-nav .nav-contact::after { display: none; }
.menu-toggle { display: none; }

/* Shared sections and type */
.section { position: relative; padding: 112px 0; }
.section-border { border-top: 1px solid var(--line-soft); }
.section-tint { border-top: 1px solid #1a2225; border-bottom: 1px solid #1a2225; background: var(--bg-raised); }
.eyebrow { margin: 0 0 20px; color: var(--accent); font: 500 10px/1.4 var(--font-mono); letter-spacing: .13em; }
.eyebrow-divider { color: #5e5140; padding-inline: 5px; }
.section-intro h2, .section-heading h2 { margin: 0; color: var(--text); font-size: clamp(34px, 4.25vw, 56px); line-height: 1.1; font-weight: 600; letter-spacing: -.065em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 50px; }
.section-heading .eyebrow { margin-bottom: 16px; }
.section-side-note { max-width: 315px; margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.section-description { max-width: 320px; margin: 24px 0 0; color: var(--muted); font-size: 14px; }

/* Hero */
.hero { min-height: min(745px, calc(100svh - 76px)); display: flex; flex-direction: column; justify-content: center; padding: 66px 0 35px; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); align-items: center; gap: clamp(40px, 9vw, 116px); }
.hero-copy { position: relative; z-index: 1; padding-block: 20px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.status-dot, .portrait-label-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgb(233 169 94 / 50%); }
.hero-copy h1 { max-width: 685px; margin: 0; font-size: clamp(51px, 6.2vw, 79px); font-weight: 600; line-height: 1.015; letter-spacing: -.075em; }
.hero-lede { max-width: 625px; margin: 28px 0 0; color: var(--text-soft); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.82; }
.hero-intro { max-width: 570px; margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 20px; padding: 0 17px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 700; transition: transform .2s var(--ease), color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button span { font-size: 15px; line-height: 1; transition: transform .2s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:hover span { transform: translate(2px, -1px); }
.button-primary { color: #1d1710; background: var(--accent); box-shadow: 0 5px 18px rgb(233 169 94 / 12%); }
.button-primary:hover { background: var(--accent-bright); box-shadow: 0 8px 24px rgb(233 169 94 / 19%); }
.button-secondary { color: var(--text-soft); border-color: #364043; background: rgb(255 255 255 / 1%); }
.button-secondary:hover { color: var(--text); border-color: #766145; background: rgb(233 169 94 / 4%); }
.hero-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 37px; color: var(--muted); font: 10px var(--font-mono); letter-spacing: .02em; }
.hero-roles i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent-deep); }
.hero-visual { position: relative; width: min(100%, 404px); justify-self: end; padding: 18px 20px 20px; }
.portrait-frame { position: relative; height: clamp(415px, 51vw, 535px); overflow: hidden; border: 1px solid #333a3b; border-radius: 2px; background: #080a0b; box-shadow: 0 28px 85px rgb(0 0 0 / 38%); }
.portrait-frame::after { position: absolute; inset: 0; content: ""; pointer-events: none; border: 1px solid rgb(255 255 255 / 5%); }
.portrait { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 31%; animation: portrait-enter .8s var(--ease) both; }
.portrait-label { position: absolute; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #f3f0e9; border: 1px solid rgb(255 255 255 / 10%); background: rgb(11 16 18 / 83%); backdrop-filter: blur(12px); font-size: 10px; font-weight: 600; }
.portrait-label-dot { width: 5px; height: 5px; }
.portrait-label-separator { color: var(--accent); }
.experience-stamp { position: absolute; z-index: 2; top: 50px; left: -26px; width: 112px; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid #684c2d; border-radius: 50%; background: #111719; box-shadow: 0 6px 26px rgb(0 0 0 / 28%); transform: rotate(-8deg); animation: stamp-enter .65s .25s var(--ease) both; }
.stamp-value { color: var(--accent-bright); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.07em; }
.stamp-value span { font-size: 18px; }
.stamp-label { color: var(--muted-strong); font: 8px/1.35 var(--font-mono); letter-spacing: .08em; text-align: center; }
.hero-emoji { position: absolute; right: -5px; bottom: 61px; display: block; font-size: 29px; filter: drop-shadow(0 5px 10px rgb(0 0 0 / 40%)); animation: emoji-enter .55s .55s var(--ease) both; }
.hero-index { position: absolute; right: 20px; top: 0; color: #6f7775; font-size: 9px; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 42px; color: #8e938f; font: 9px var(--font-mono); letter-spacing: .11em; text-transform: uppercase; }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero-scroll b { color: var(--accent); font: 15px var(--font-sans); }

/* About */
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(45px, 9.5vw, 130px); }
.about-content > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.about-content > .about-lede { margin: 2px 0 20px; color: var(--text-soft); font-size: 17px; line-height: 1.75; }
.about-lede strong { color: var(--text); font-weight: 700; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.fact-card { position: relative; min-height: 106px; display: flex; flex-direction: column; justify-content: center; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .25s ease, transform .28s var(--ease), background-color .25s ease; }
.fact-card::before { position: absolute; top: 0; right: 100%; left: 0; height: 1px; content: ""; background: var(--accent); transition: right .3s var(--ease); }
.fact-card:hover, .fact-card:focus-visible, .fact-card:active { transform: translateY(-5px); border-color: #675239; background: #141c1f; animation: fact-card-lift .42s var(--ease) both; }
.fact-card:hover::before, .fact-card:focus-visible::before, .fact-card:active::before { right: 0; }
@keyframes fact-card-lift { 0% { transform: translateY(0); } 62% { transform: translateY(-7px); } 100% { transform: translateY(-5px); } }
.fact-number { color: var(--accent-bright); font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.07em; }
.fact-number span { font-size: 18px; }
.fact-word { font-size: 22px; letter-spacing: -.04em; }
.fact-word span { color: var(--muted); font-size: 15px; }
.fact-caption { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.education-note { display: flex; align-items: start; gap: 13px; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.education-icon { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; color: var(--accent); border: 1px solid #59452d; border-radius: 50%; font-size: 12px; }
.education-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.education-note strong { color: var(--text-soft); font-size: 12px; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.service-card { position: relative; min-height: 300px; display: flex; flex-direction: column; padding: 22px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: transform 300ms ease-out, border-color 300ms ease-out; }
.service-card::before { position: absolute; top: 0; right: 100%; left: 0; height: 1px; content: ""; background: var(--accent); transition: right .3s var(--ease); }
.service-card:hover { transform: translateY(-5px); border-color: #57472f; animation: fact-card-lift .42s var(--ease) both; }
.service-card:hover::before { right: 0; }
.service-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 27px; }
.service-icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--accent); border: 1px solid #4b3d2b; border-radius: 9px; background: rgb(233 169 94 / 5%); }
.service-icon svg { width: 18px; height: 18px; }
.service-number { color: #77807e; font: 9px var(--font-mono); }
.service-card h3 { margin: 0; color: var(--text); font-size: 16px; font-weight: 700; letter-spacing: -.035em; }
.service-card > p { min-height: 65px; margin: 10px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.service-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.service-list span { padding: 5px 7px; color: #b9b9b2; border: 1px solid #30393b; border-radius: 3px; font-size: 9px; line-height: 1.4; }

/* Experience */
.experience-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(55px, 10vw, 145px); align-items: start; }
.experience-sticky { position: sticky; top: 125px; }
.experience-source-note { max-width: 260px; margin: 38px 0 0; padding-left: 12px; color: #808783; border-left: 1px solid var(--accent-deep); font-size: 10px; line-height: 1.8; }
.timeline { position: relative; padding-left: 27px; }
.timeline::before { position: absolute; top: 8px; bottom: 10px; left: 4px; width: 1px; content: ""; background: #303a3b; }
.timeline-item { position: relative; padding: 0 0 37px 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { position: absolute; top: 7px; left: -27px; width: 9px; height: 9px; content: ""; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 4px var(--bg); }
.timeline-item:first-child::before { background: var(--accent); box-shadow: 0 0 12px rgb(233 169 94 / 34%); }
.timeline-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.timeline-head h3 { margin: 0; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.timeline-period { flex: 0 0 auto; padding-top: 5px; color: var(--accent); font: 9px var(--font-mono); letter-spacing: .01em; }
.timeline-org { margin: 4px 0 11px; color: #b9b8b0; font-size: 11px; font-weight: 600; }
.timeline-org .org-note { color: #858b87; font-weight: 400; }
.timeline-summary { margin: 0 0 11px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.timeline-item ul { display: grid; gap: 8px; margin: 13px 0 15px; padding: 0; list-style: none; }
.timeline-item li { position: relative; padding-left: 15px; color: #a5a8a1; font-size: 11px; line-height: 1.72; }
.timeline-item li::before { position: absolute; top: .75em; left: 0; width: 5px; height: 1px; content: ""; background: var(--accent-deep); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span { padding: 4px 7px; color: var(--muted-strong); border: 1px solid #30393b; border-radius: 3px; font-size: 9px; line-height: 1.4; }

/* Technologies */
.technology-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.technology-group { position: relative; min-height: 184px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: transform 300ms ease-out, border-color 300ms ease-out; }
.technology-group::before { position: absolute; top: 0; right: 100%; left: 0; height: 1px; content: ""; background: var(--accent); transition: right .3s var(--ease); }
.technology-group:hover { transform: translateY(-5px) translateX(2px); border-color: #675239; }
.technology-group:hover::before { right: 0; }
.technology-group-head { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.technology-group-mark { width: 7px; height: 7px; border: 1px solid var(--accent); transform: rotate(45deg); }
.technology-group h3 { margin: 0; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.technology-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.technology-tags span { padding: 7px 10px; color: #c4c3bb; border: 1px solid #323b3d; border-radius: 4px; background: rgb(255 255 255 / 1.5%); font-size: 10px; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.technology-tags span:hover { color: var(--accent-bright); border-color: #6b5233; background: rgb(233 169 94 / 5%); }

/* Work */
.work-heading { margin-bottom: 40px; }
.project-list { position: relative; display: grid; gap: 0; padding-left: 27px; }
.project-list::before { position: absolute; top: 8px; bottom: 8px; left: 4px; width: 1px; content: ""; background: #303a3b; }
.project-pipeline-item { position: relative; display: flex; min-height: 100vh; padding: 0 0 30px; }
.project-pipeline-item:last-child { padding-bottom: 0; }
.project-pipeline-item::before { position: absolute; z-index: 1; top: 27px; left: -27px; width: 9px; height: 9px; content: ""; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 4px var(--bg); }
.project-pipeline-item:first-child::before { background: var(--accent); box-shadow: 0 0 12px rgb(233 169 94 / 34%); }
.featured-project { position: relative; display: grid; flex: 1; grid-template-areas: "visual copy"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 62px); padding: clamp(25px, 4.4vw, 54px); overflow: hidden; border: 1px solid #303a3c; border-radius: var(--radius); background: #101719; }
.featured-project::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; content: ""; background: #735a39; }
.featured-project-copy { grid-area: copy; display: flex; flex-direction: column; }
.featured-project-copy .eyebrow { margin-bottom: 14px; font-size: 9px; line-height: 1.8; }
.featured-project-copy h3 { max-width: 510px; margin: 0; color: var(--text); font-size: clamp(32px, 3.65vw, 46px); line-height: 1.13; font-weight: 650; letter-spacing: -.06em; }
.featured-project-positioning { margin: 9px 0 0; padding-left: 12px; color: var(--text-soft); border-left: 1px solid var(--accent-deep); font-size: 13px; line-height: 1.6; }
.featured-project-summary { margin: 9px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.featured-project-detail { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.project-highlights { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding-top: 0; }
.project-highlights span { padding: 6px 8px; color: #d0c9bb; border: 1px solid #3a403d; border-radius: 4px; background: rgb(255 255 255 / 1%); font-size: 9px; line-height: 1.4; }
.featured-project-visual { grid-area: visual; display: flex; flex-direction: column; min-width: 0; width: 100%; height: min(68vh, 620px); align-self: center; margin: 0; overflow: hidden; border: 1px solid #3b4943; border-radius: 8px; background: #101719; box-shadow: 0 18px 44px rgb(0 0 0 / 25%); }
.featured-project-visual img { flex: 1; width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; object-position: center; }
.featured-project-visual figcaption { padding: 9px 12px; color: #c7d4cc; border-top: 1px solid rgb(255 255 255 / 8%); background: #0b201b; font-size: 9px; letter-spacing: .02em; }
[data-project-id="shipment-logistics-platform"],
[data-project-id="pakzakat-islamic-fintech"] { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
[data-project-id="shipment-logistics-platform"] .featured-project-visual,
[data-project-id="pakzakat-islamic-fintech"] .featured-project-visual { height: min(78vh, 720px); align-self: center; }
.featured-project[data-project-id="ai-orchestrator-ghl"] { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.featured-project[data-project-id="ai-orchestrator-ghl"] .featured-project-visual { height: min(86vh, 780px); align-self: center; }
.featured-project[data-project-id="shipment-logistics-platform"] .featured-project-summary { font-size: 12px; }
.featured-project[data-project-id="pakzakat-islamic-fintech"] .featured-project-positioning,
.featured-project[data-project-id="pakzakat-islamic-fintech"] .featured-project-summary { color: var(--text-soft); font-size: 12px; line-height: 1.7; }
.featured-project[data-project-id="pakzakat-islamic-fintech"] .featured-project-detail { color: var(--muted); font-size: 12px; line-height: 1.7; }
.text-button { margin: 20px 0 0; padding: 0 0 5px; color: var(--accent-bright); border: 0; border-bottom: 1px solid #674d2f; background: none; cursor: pointer; font-size: 11px; font-weight: 700; transition: color .2s ease, border-color .2s ease; }
.text-button span { display: inline-block; margin-left: 9px; transition: transform .2s var(--ease); }
.text-button:hover { color: #ffdda7; border-color: var(--accent); }
.text-button:hover span { transform: translate(2px, -2px); }

/* Certifications */
.certification-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(50px, 9vw, 125px); }
.certification-empty { display: flex; align-items: center; gap: 18px; min-height: 135px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.cert-mark { width: 43px; height: 43px; display: grid; flex: 0 0 auto; place-items: center; color: var(--accent); border: 1px solid #58462f; border-radius: 50%; font-size: 20px; }
.certification-empty h3 { margin: 0; color: var(--text-soft); font-size: 14px; font-weight: 700; }
.certification-empty p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.cert-empty-tag { margin-left: auto; align-self: start; flex: 0 0 auto; padding: 6px 8px; color: #92958f; border: 1px solid #353e40; border-radius: 3px; font-size: 8px; }

/* Contact and footer */
.contact-section { padding: 120px 0; overflow: hidden; border-top: 1px solid var(--line-soft); background: #0e1416; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(40px, 10vw, 135px); }
.contact-copy h2 { margin: 0; color: var(--text); font-size: clamp(45px, 6.4vw, 76px); font-weight: 600; line-height: 1.05; letter-spacing: -.075em; }
.contact-copy > p:not(.eyebrow) { max-width: 485px; margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.contact-panel { padding: 25px; border: 1px solid #303a3b; border-radius: var(--radius-sm); background: var(--surface); }
.contact-panel .eyebrow { margin-bottom: 19px; }
.contact-email { display: inline-block; color: var(--text); font-size: clamp(16px, 2.1vw, 23px); font-weight: 600; line-height: 1.55; letter-spacing: -.04em; transition: color .2s ease; overflow-wrap: anywhere; }
.contact-email span { display: inline-block; margin-left: 3px; color: var(--accent); font-size: 14px; vertical-align: 3px; transition: transform .2s var(--ease); }
.contact-email:hover { color: var(--accent-bright); }
.contact-email:hover span { transform: translate(2px, -2px); }
.contact-meta { display: flex; justify-content: space-between; gap: 15px; margin-top: 19px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.contact-meta span { color: #868b87; font: 8px var(--font-mono); letter-spacing: .1em; }
.contact-meta strong { color: #c9c8c0; font-size: 10px; font-weight: 600; text-align: right; }
.linkedin-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 21px; color: var(--accent-bright); font-size: 11px; font-weight: 700; }
.linkedin-link + .linkedin-link { margin-top: 11px; }
.linkedin-link span { transition: transform .2s var(--ease); }
.linkedin-link:hover span { transform: translate(2px, -2px); }
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg); }
.footer-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner > p { margin: 0; color: #8c918d; font-size: 10px; }
.back-top { color: #afb0a9; font-size: 8px; transition: color .2s ease; }
.back-top:hover { color: var(--accent-bright); }
.footer-year { color: #777d79; font-size: 8px; }

/* Native project-details dialog */
.project-dialog { width: min(700px, calc(100% - 32px)); max-height: min(86vh, 780px); padding: 0; overflow: auto; color: var(--text); border: 1px solid #465052; border-radius: var(--radius); background: #101719; box-shadow: 0 35px 100px rgb(0 0 0 / 65%); }
.project-dialog[open] { animation: dialog-enter .22s var(--ease) both; }
.project-dialog::backdrop { background: rgb(4 8 9 / 76%); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 27px 28px 19px; border-bottom: 1px solid var(--line); }
.dialog-head .eyebrow { margin-bottom: 10px; }
.dialog-head h2 { max-width: 470px; margin: 0; font-size: clamp(26px, 5vw, 36px); line-height: 1.15; letter-spacing: -.06em; }
.dialog-close { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; color: var(--muted-strong); border: 1px solid #414a4b; border-radius: 50%; background: none; cursor: pointer; font-size: 22px; line-height: 1; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.dialog-close:hover { transform: rotate(90deg); color: var(--accent-bright); border-color: var(--accent-deep); }
.dialog-intro { margin: 0; padding: 16px 28px 19px; color: var(--muted); font-size: 12px; }
.project-detail-sections { padding: 0 28px 24px; }
.project-detail-block { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 17px 0; border-top: 1px solid var(--line-soft); }
.project-detail-number { padding-top: 2px; color: var(--accent); font-size: 9px; }
.project-detail-block h3 { margin: 0; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.project-detail-block ul { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
.project-detail-block li { position: relative; padding-left: 13px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.project-detail-block li::before { position: absolute; top: .8em; left: 0; width: 5px; height: 1px; content: ""; background: var(--accent-deep); }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 28px; border-top: 1px solid var(--line); }
.dialog-footer > span { color: #888d88; font-size: 8px; }
.dialog-done { min-height: 38px; }

/* Reveal motion */
[data-reveal] { opacity: 0; transform: translateY(17px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.technology-group[data-reveal].is-visible { transition: opacity .6s var(--ease), transform 300ms ease-out, border-color 300ms ease-out; }
.technology-group[data-reveal].is-visible:hover { transform: translateY(-5px) translateX(2px); border-color: #675239; }
[data-reveal-delay="80"] { transition-delay: .08s; }
[data-reveal-delay="100"] { transition-delay: .1s; }
[data-reveal-delay="120"] { transition-delay: .12s; }
[data-reveal-delay="160"] { transition-delay: .16s; }
[data-reveal-delay="240"] { transition-delay: .24s; }
@keyframes portrait-enter { from { opacity: .6; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
@keyframes stamp-enter { from { opacity: 0; transform: translateY(8px) rotate(-14deg) scale(.94); } to { opacity: 1; transform: translateY(0) rotate(-8deg) scale(1); } }
@keyframes emoji-enter { from { opacity: 0; transform: translate(5px, 5px) scale(.88); } to { opacity: 1; transform: translate(0) scale(1); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 980px) {
  .container { width: min(var(--content), calc(100% - 48px)); }
  .primary-nav { gap: 15px; }
  .primary-nav a { font-size: 10px; }
  .primary-nav .nav-contact { padding: 8px 10px; }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(285px, .88fr); gap: 35px; }
  .hero-copy h1 { font-size: clamp(50px, 7vw, 68px); }
  .hero-visual { padding-right: 10px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 270px; }
  .experience-layout { gap: 55px; }
}

@media (max-width: 900px) {
  .menu-toggle { width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-left: auto; border: 1px solid #344043; border-radius: 5px; background: #11181a; cursor: pointer; }
  .menu-toggle span { width: 15px; height: 1px; background: var(--text-soft); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 75px; right: 0; left: 0; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 9px max(24px, calc((100vw - 800px) / 2)) 18px; visibility: hidden; opacity: 0; transform: translateY(-7px); border-bottom: 1px solid #303a3b; background: #0d1315; box-shadow: 0 22px 35px rgb(0 0 0 / 28%); transition: visibility .2s ease, opacity .2s ease, transform .2s var(--ease); }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .primary-nav a { padding: 12px 3px; border-bottom: 1px solid #202a2c; color: #d3d1ca; font-size: 12px; }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-contact { display: flex; justify-content: space-between; margin: 12px 0 0; padding: 11px 12px; border: 1px solid #59472f; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .container { width: calc(100% - 40px); }
  .site-header { height: 68px; }
  .header-inner { gap: 15px; }
  .primary-nav { top: 67px; padding-inline: 20px; }
  .section { padding: 82px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 34px; }
  .section-side-note { max-width: 450px; margin: 0; }
  .hero { min-height: auto; padding: 55px 0 23px; }
  .hero-grid { grid-template-columns: 1fr; gap: 33px; }
  .hero-copy { padding: 0; }
  .hero-copy .eyebrow { margin-bottom: 20px; font-size: 9px; }
  .hero-copy h1 { max-width: 600px; font-size: clamp(48px, 11.5vw, 72px); }
  .hero-lede { margin-top: 21px; font-size: 14px; }
  .hero-intro { font-size: 12px; }
  .hero-actions { margin-top: 24px; }
  .hero-roles { gap: 9px; margin-top: 24px; font-size: 9px; }
  .hero-visual { width: min(84%, 400px); justify-self: center; padding: 12px 12px 14px; }
  .portrait-frame { height: clamp(360px, 110vw, 490px); }
  .experience-stamp { top: 32px; left: -21px; width: 94px; height: 94px; }
  .stamp-value { font-size: 28px; }
  .hero-emoji { right: -8px; bottom: 43px; font-size: 26px; }
  .hero-index { right: 11px; top: -4px; }
  .hero-bottom { margin-top: 26px; font-size: 8px; }
  .about-grid, .experience-layout, .certification-layout, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .section-intro h2, .section-heading h2 { font-size: clamp(36px, 9.2vw, 49px); }
  .about-content > .about-lede { font-size: 16px; }
  .about-facts { gap: 8px; }
  .fact-card { min-height: 92px; padding: 13px 11px; }
  .fact-number { font-size: 24px; }
  .fact-caption { font-size: 9px; }
  .service-grid { gap: 10px; }
  .service-card { min-height: 285px; padding: 17px 15px; }
  .service-card > p { min-height: 80px; }
  .service-card h3 { font-size: 14px; }
  .service-list { gap: 5px; }
  .service-list span { font-size: 8px; }
  .experience-sticky { position: static; }
  .project-pipeline-item { min-height: auto; padding-bottom: 22px; }
  .experience-source-note { margin-top: 20px; }
  .timeline-head { flex-direction: column; gap: 3px; }
  .timeline-period { padding-top: 0; }
  .timeline-head h3 { font-size: 18px; }
  .technology-groups { grid-template-columns: 1fr; gap: 10px; }
  .technology-group { min-height: auto; padding: 19px; }
  .work-heading { margin-bottom: 29px; }
  .featured-project { grid-template-areas: "visual" "copy"; grid-template-columns: 1fr; align-items: start; gap: 25px; padding: 22px; }
  .featured-project-copy h3 { font-size: 32px; }
  .featured-project-visual { width: 100%; height: clamp(240px, 64vw, 420px); align-self: auto; }
  [data-project-id="shipment-logistics-platform"] .featured-project-visual,
  [data-project-id="pakzakat-islamic-fintech"] .featured-project-visual,
  [data-project-id="ai-orchestrator-ghl"] .featured-project-visual { height: clamp(240px, 64vw, 420px); align-self: auto; }
  .certification-layout { gap: 26px; }
  .certification-empty { align-items: start; gap: 12px; padding: 18px 15px; }
  .cert-mark { width: 36px; height: 36px; font-size: 17px; }
  .certification-empty h3 { font-size: 12px; }
  .certification-empty p { font-size: 10px; }
  .cert-empty-tag { padding: 5px 6px; font-size: 7px; }
  .contact-section { padding: 82px 0; }
  .contact-grid { gap: 34px; }
  .contact-copy h2 { font-size: clamp(48px, 12vw, 68px); }
  .contact-actions { gap: 9px; }
  .contact-panel { padding: 21px; }
  .contact-email { font-size: clamp(19px, 5vw, 24px); }
  .footer-inner { min-height: 100px; flex-wrap: wrap; justify-content: space-between; gap: 9px 14px; padding-block: 17px; }
  .footer-inner > p { order: 3; width: 100%; }
  .project-detail-sections { padding-inline: 20px; }
  .dialog-head { padding: 22px 20px 16px; }
  .dialog-intro { padding-inline: 20px; }
  .dialog-footer { padding-inline: 20px; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 32px); }
  .hero-copy h1 { font-size: 46px; }
  .hero-roles { column-gap: 7px; font-size: 8px; }
  .hero-actions .button, .contact-actions .button { gap: 11px; padding-inline: 12px; font-size: 10px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 19px; }
  .service-card > p { min-height: 0; }
  .service-topline { margin-bottom: 18px; }
  .cert-empty-tag { display: none; }
  .project-detail-block { grid-template-columns: 30px 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
