@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-300-800.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('assets/fonts/noto-kufi-arabic-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans SC';
  src: url('assets/fonts/noto-sans-sc-300-800.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('assets/fonts/ibm-plex-sans-arabic-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('assets/fonts/ibm-plex-sans-arabic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('assets/fonts/ibm-plex-sans-arabic-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('assets/fonts/ibm-plex-sans-arabic-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('assets/fonts/ibm-plex-sans-arabic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url('assets/fonts/sora-100-800.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #fafaf8; --bg2: #f3f3ef;
  --teal: #0d9488; --teal-light: #ccfbf1; --teal-dark: #0f766e;
  --text: #0f172a; --text-muted: #64748b; --text-faint: #94a3b8;
  --border: #e2e8f0; --white: #ffffff;
  --ai-chatgpt: #0f172a; --ai-claude: #d97757;
  --card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --radius: 14px;
  --font-head: 'Sora', 'Inter', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}
html[lang="ar"] {
  --font-head: 'Noto Kufi Arabic', Arial, sans-serif;
  --font-body: 'Noto Kufi Arabic', Arial, sans-serif;
}
html[lang="zh"] {
  --font-head: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
html[lang="ku"] {
  --font-head: 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;
}
html[lang="zh"] .hero-name,
html[lang="zh"] .section-heading,
html[lang="zh"] .nav-logo {
  letter-spacing: 0;
}
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(13,148,136,.52) var(--bg2); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--bg2); }
*::-webkit-scrollbar-thumb { min-height: 28px; border: 2px solid var(--bg2); border-radius: 999px; background: rgba(13,148,136,.42); }
*::-webkit-scrollbar-thumb:hover { background: var(--teal); }
*::-webkit-scrollbar-corner { background: var(--bg2); }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* ── NAVBAR ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(250,250,248,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; letter-spacing: -.3px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .22s ease, font-weight .22s ease; }
.nav-links a:hover { color: var(--teal); }
.nav-links a.active, .nav-links a.active:hover { color: var(--text); font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 6px; }

/* ── LANG DROPDOWN ── */
.lang-dropdown { position: relative; }
.lang-trigger { display: flex; align-items: center; gap: 5px; background: none; border: 1.5px solid var(--border); border-radius: 8px; padding: 5px 10px; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: border-color .2s, color .2s, background .2s; white-space: nowrap; min-height: 34px; }
.lang-trigger:hover, .lang-trigger.open { border-color: var(--teal); color: var(--teal); background: rgba(13,148,136,.06); }
.lang-trigger-flag { font-size: 15px; line-height: 1; display: flex; align-items: center; }
.lang-trigger-code { letter-spacing: .5px; }
.lang-trigger-arrow { font-size: 9px; opacity: .55; margin-left: 1px; transition: transform .2s; }
.lang-trigger.open .lang-trigger-arrow { transform: rotate(180deg); }
.lang-panel { position: absolute; top: calc(100% + 6px); right: 0; background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.1); min-width: 170px; z-index: 300; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .18s, transform .18s; }
.lang-panel.open { opacity: 1; pointer-events: all; transform: translateY(0); }
html[dir="rtl"] .lang-panel { right: auto; left: 0; }
.lang-option { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 44px; width: 100%; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--text); text-align: left; transition: background .15s; border-left: 3px solid transparent; }
html[dir="rtl"] .lang-option { text-align: right; border-left: none; border-right: 3px solid transparent; }
.lang-option:hover { background: #f0fdf4; }
.lang-option.active { border-left-color: var(--teal); background: rgba(13,148,136,.04); color: var(--teal); }
html[dir="rtl"] .lang-option.active { border-left-color: transparent; border-right-color: var(--teal); }
.lang-option-flag { display: flex; align-items: center; flex-shrink: 0; }
.lang-option-name { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.lang-option.active .lang-option-name { color: var(--teal); }

/* ── HERO ── */
#hero { min-height: 100vh; display: flex; align-items: center; padding: 100px 24px 80px; position: relative; overflow: hidden; background: var(--bg); }
#hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(90deg, rgba(250,250,248,.99) 0%, rgba(250,250,248,.96) 34%, rgba(250,250,248,.76) 54%, rgba(250,250,248,.24) 78%, rgba(250,250,248,.1) 100%), url('assets/hero/hero-glass-jorgen-haland.jpg'); background-position: center, right center; background-size: cover, auto 100%; background-repeat: no-repeat; pointer-events: none; }
#hero::after { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 80% 68% at 28% 50%, rgba(250,250,248,.14), transparent 62%), radial-gradient(circle, rgba(13,148,136,.14) 1px, transparent 1px); background-size: auto, 28px 28px; opacity: .46; pointer-events: none; }
.hero-inner { max-width: 700px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-name { font-family: var(--font-head); font-size: clamp(48px, 8vw, 80px); font-weight: 800; line-height: 1.05; letter-spacing: -2px; color: var(--text); margin-bottom: 16px; }
html.liberation-pending .hero-name,
html.liberation-pending .hero-bio,
html.liberation-pending .hero-btns,
html.liberation-pending .hero-stats { visibility: hidden; }
.hero-name.liberation-running,
.hero-name.liberation-complete { visibility: visible; }
.liberation-word { display: inline-block; white-space: nowrap; }
.liberation-word + .liberation-word { margin-inline-start: .22em; }
.liberation-unit { display: inline-block; transform-origin: 50% 100%; }
.hero-name.liberation-running .liberation-unit {
  animation: liberationReveal .9s cubic-bezier(.65,0,.35,1) both;
  animation-delay: var(--liberation-delay, 0ms);
  will-change: transform, filter, opacity;
}
.hero-name.liberation-complete .liberation-unit { opacity: 1; filter: none; transform: none; }
@keyframes liberationReveal {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, var(--liberation-y, 0px), 0) rotate(var(--liberation-rotation, 0deg)) scale(var(--liberation-scale, 1));
  }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}
.split-text-word { display: inline-block; white-space: nowrap; }
.split-text-word + .split-text-word { margin-inline-start: .28em; }
.split-text-compact .split-text-word + .split-text-word { margin-inline-start: 0; }
.split-text-running .split-text-word {
  animation: splitTextReveal .48s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--split-delay, 0ms);
  will-change: transform, opacity;
}
.split-text-complete .split-text-word { opacity: 1; transform: none; }
@keyframes splitTextReveal {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero-btns.hero-support-running { animation: heroSupportReveal .44s .7s cubic-bezier(.22,1,.36,1) both; }
.hero-btns.hero-support-complete { opacity: 1; transform: none; }
@keyframes heroSupportReveal {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero-bio { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.btn-primary { background: var(--teal); color: #fff; border: none; border-radius: 10px; padding: 13px 28px; font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s; display: inline-block; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); border-radius: 10px; padding: 13px 28px; font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .2s, color .2s, transform .15s; display: inline-block; }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.btn-ai { background: rgba(255,255,255,.86); color: var(--teal-dark); border: 1.5px solid rgba(13,148,136,.28); border-radius: 10px; padding: 12px 22px; font-family: var(--font-body); font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 5px 18px rgba(13,148,136,.08); }
.btn-ai:hover { background: #fff; border-color: var(--teal); box-shadow: 0 8px 22px rgba(13,148,136,.15); transform: translateY(-1px); }
.btn-ai:focus-visible { outline: 3px solid rgba(13,148,136,.24); outline-offset: 3px; }
.btn-ai svg { width: 17px; height: 17px; stroke-width: 2.25; }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 32px; }
.stat-item { padding: 0 28px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--text); display: block; }
.hero-scroll-cue { position: fixed; left: 50%; bottom: 26px; z-index: 120; width: 56px; height: 56px; border: 0; background: transparent; color: #334155; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translate3d(-50%, 10px, 0); transition: opacity .36s ease, transform .36s cubic-bezier(.22,.61,.36,1), color .2s ease; -webkit-tap-highlight-color: transparent; }
.hero-scroll-cue.is-visible { opacity: 1; pointer-events: auto; transform: translate3d(-50%, 0, 0); }
.hero-scroll-cue:hover { color: var(--teal); }
.hero-scroll-cue:focus-visible { outline: 2px solid rgba(13,148,136,.42); outline-offset: 5px; }
.hero-scroll-cue i,
.hero-scroll-cue svg { width: 42px; height: 42px; stroke-width: 1.85; filter: drop-shadow(0 7px 12px rgba(15,23,42,.16)); transform-origin: center; will-change: transform, opacity; }
.hero-scroll-cue.is-visible i,
.hero-scroll-cue.is-visible svg { animation: heroArrowDrift 1.85s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes heroArrowDrift {
  0% { transform: translate3d(0, -8px, 0) scale(.98); opacity: .62; }
  50% { transform: translate3d(0, 8px, 0) scale(1.03); opacity: 1; }
  100% { transform: translate3d(0, -8px, 0) scale(.98); opacity: .62; }
}

/* ── SECTIONS ── */
section { padding: 96px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.section-heading { font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -1px; color: var(--text); margin-bottom: 52px; }

/* ── SERVICES ── */
#services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f8f6 0%, var(--bg2) 52%, #f3f8f6 100%);
}
#services::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 34rem 25rem at 9% 55%, rgba(13,148,136,.075), transparent 72%),
    radial-gradient(ellipse 36rem 24rem at 91% 18%, rgba(45,212,191,.075), transparent 74%),
    radial-gradient(circle, rgba(15,23,42,.07) .65px, transparent .85px);
  background-size: auto, auto, 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
}
#services > .container { position: relative; z-index: 1; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.service-card.reveal { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; box-shadow: 0 10px 24px rgba(15,23,42,.045); transition: opacity .32s ease, transform .38s cubic-bezier(.22,.61,.36,1), box-shadow .38s cubic-bezier(.22,.61,.36,1), border-color .38s ease; }
@media (hover: hover) {
  .service-card.reveal.visible:hover { border-color: rgba(13,148,136,.24); box-shadow: 0 24px 48px rgba(15,23,42,.12), 0 6px 14px rgba(15,23,42,.055); transform: translateY(-7px); }
  .service-card.reveal.visible:hover .service-icon { color: #2dd4bf; transform: scale(1.12); }
}
.service-icon { display: inline-flex; width: fit-content; margin-bottom: 16px; color: var(--teal); transform-origin: center; transition: color .38s ease, transform .38s cubic-bezier(.22,.61,.36,1); }
.service-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.service-highlight { color: var(--teal); font-weight: 700; }
/* ── PORTFOLIO ── */
#featured { background: var(--bg); }
.featured-intro { color: var(--text-muted); font-size: 16px; max-width: 620px; margin-top: -32px; margin-bottom: 40px; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 10px; }
.featured-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: grid; grid-template-columns: minmax(190px, .9fr) 1fr; min-height: 230px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.featured-card:hover { border-color: rgba(13,148,136,.34); box-shadow: var(--card-shadow); transform: translateY(-3px); }
.featured-media { min-height: 230px; background: var(--bg2); }
.featured-media .proj-thumb, .featured-media .proj-vid-thumb { height: 100%; min-height: 230px; }
.featured-media .proj-thumb img { object-fit: contain; background: var(--bg2); }
.featured-copy { padding: 24px 24px 26px; display: flex; flex-direction: column; justify-content: center; }
.featured-meta { font-size: 11px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.featured-title { font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--text); margin-bottom: 10px; }
.featured-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; }
.case-points { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.case-points li { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.case-points span { color: inherit; font-weight: 500; }
.case-points li > span:first-child { color: var(--text); font-weight: 800; }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-tab { background: none; border: 1.5px solid var(--border); border-radius: 8px; padding: 7px 18px; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all .2s; }
.filter-tab.active { border-color: var(--teal); color: var(--teal); background: rgba(13,148,136,.07); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.proj-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.proj-card:hover { box-shadow: var(--card-shadow); transform: translateY(-3px); }
.proj-card[data-hidden] { display: none !important; }
.proj-card[data-cat="ai"] { background: #f0fdfa; }
.proj-body { padding: 20px 22px 24px; }
.proj-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.proj-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.proj-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.proj-external-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; color: var(--teal); font-size: 12px; font-weight: 700; text-decoration: none; }
.proj-external-link:hover { color: var(--text); text-decoration: underline; }
.proj-external-link svg { width: 14px; height: 14px; }
.card-desc-toggle { display: none; }
.campaign-card { border-color: rgba(13,148,136,.35); box-shadow: 0 0 0 1px rgba(13,148,136,.08); }
.campaign-card summary { display: block; list-style: none; cursor: pointer; }
.campaign-card summary::-webkit-details-marker { display: none; }
.campaign-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.campaign-status span { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.campaign-status span:first-child { background: rgba(13,148,136,.12); color: var(--teal-dark); }
.campaign-status span:last-child { background: var(--bg2); color: var(--text-muted); }
.campaign-toggle { margin-top: 16px; min-height: 42px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid rgba(13,148,136,.34); border-radius: 9px; background: rgba(13,148,136,.08); color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.campaign-toggle i { width: 15px; height: 15px; transition: transform .16s; }
.campaign-toggle-hide { display: none; }
.campaign-card[open] .campaign-toggle-show { display: none; }
.campaign-card[open] .campaign-toggle-hide { display: inline; }
.campaign-card[open] .campaign-toggle i { transform: rotate(180deg); }
.campaign-list { border-top: 1px solid var(--border); padding: 8px 14px 14px; display: grid; gap: 6px; background: rgba(250,250,248,.82); overflow: hidden; }
.campaign-card.is-animating .campaign-list { will-change: height, opacity; }
.campaign-item-btn { width: 100%; min-height: 48px; border: none; border-radius: 8px; background: transparent; color: var(--text); font-family: var(--font-body); font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; transition: background .16s, color .16s; }
.campaign-item-btn:hover { background: rgba(13,148,136,.08); color: var(--teal-dark); }
.campaign-item-btn i { color: var(--teal); flex-shrink: 0; }
html[dir="rtl"] .campaign-item-btn { text-align: right; }

/* gallery / clickable image thumbnails */
.proj-thumb { height: 200px; overflow: hidden; background: var(--bg2); position: relative; cursor: pointer; }
.proj-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .35s; }
.proj-thumb img[src$=".svg"] { object-fit: contain; }
.proj-thumb:hover img { transform: scale(1.04); }
.gallery-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 5px; pointer-events: none; display: flex; align-items: center; gap: 5px; }
.proj-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .25s; }
.proj-thumb:hover::after { background: rgba(0,0,0,.12); }

/* video thumbnails */
.proj-vid-thumb { height: 200px; background: #0c1526; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; }
.proj-vid-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: .82; transition: opacity .25s; }
.proj-vid-thumb:hover img { opacity: 1; }
.play-btn { width: 54px; height: 54px; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.38); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, border-color .2s; pointer-events: none; position: relative; z-index: 1; }
.proj-vid-thumb:hover .play-btn { background: var(--teal); border-color: var(--teal); }
.vid-label { position: absolute; bottom: 10px; right: 12px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.45); pointer-events: none; z-index: 1; }

/* ── CONTACT ── */
#contact { background: var(--bg2); }
.contact-subtext { color: var(--text-muted); font-size: 16px; margin-top: -28px; margin-bottom: 40px; max-width: 520px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.contact-links-col { display: flex; flex-direction: column; gap: 14px; }
.contact-link-card { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.contact-link-card:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(13,148,136,.12); transform: translateY(-2px); }
.contact-link-card--static { cursor: default; }
.contact-link-card--wechat { cursor: pointer; }
.contact-info-group { flex: 1; min-width: 0; }
.contact-info-label--wechat, .contact-info-value--wechat { letter-spacing: 0; text-transform: none; }
.contact-info-label--wechat { font-size: 12px; color: var(--text-faint); }
.contact-info-value--wechat { font-size: 13px; line-height: 1.45; color: var(--text-muted); max-width: 240px; }
.contact-cjk { font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif; }
.contact-qr-thumb { width: 64px; height: 64px; padding: 4px; border-radius: 6px; border: 1px solid rgba(15,23,42,.08); background: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.08); object-fit: contain; flex-shrink: 0; margin-inline-start: auto; }
.contact-icon { flex-shrink: 0; color: var(--teal); display: flex; }
.brand-icon { width: 20px; height: 20px; display: block; fill: currentColor; }
.contact-info-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 2px; }
.contact-info-value { font-size: 14px; font-weight: 500; color: var(--text); }
.cv-card { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); border-radius: var(--radius); padding: 40px 32px; color: #fff; display: flex; flex-direction: column; gap: 12px; min-height: 220px; justify-content: center; }
.cv-card-heading { font-family: var(--font-head); font-size: 24px; font-weight: 700; line-height: 1.2; }
.cv-card-subtext { font-size: 14px; opacity: .8; line-height: 1.6; }
.cv-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cv-card .btn-white { display: inline-block; align-self: flex-start; background: #fff; color: var(--teal-dark); border: none; border-radius: 10px; padding: 12px 26px; font-family: var(--font-body); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; margin-top: 8px; transition: opacity .2s, transform .15s; }
.cv-card .btn-white:hover { opacity: .92; transform: translateY(-1px); }
.cv-card .btn-white, .cv-card .btn-outline-white { height: 46px; min-height: 46px; margin-top: 0; padding-block: 0; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; }
.cv-card .btn-outline-white { display: inline-block; align-self: flex-start; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); border-radius: 10px; padding: 11px 24px; font-family: var(--font-body); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s; }
.cv-card .btn-outline-white:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.cv-card .ask-ai-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cv-card .ask-ai-trigger svg { width: 17px; height: 17px; }
.cv-download-btn { position: relative; overflow: hidden; }
.cv-download-label { position: relative; z-index: 1; display: inline-block; }
.cv-download-icon { position: absolute; left: 50%; top: 50%; z-index: 2; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: currentColor; opacity: 0; pointer-events: none; transform: translate(-50%, -58%) scale(.92); }
.cv-download-icon svg { position: absolute; left: 4px; top: 1px; width: 16px; height: 16px; stroke-width: 2.45; transform-origin: 50% 74%; }
.cv-download-tray { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 2px; border-radius: 999px; background: currentColor; transform: scaleX(.58); transform-origin: 50% 50%; }
.cv-download-tray::before,
.cv-download-tray::after { content: ''; position: absolute; top: -4px; width: 2px; height: 5px; border-radius: 999px; background: currentColor; opacity: .72; transform: scaleY(.1); transform-origin: bottom; }
.cv-download-tray::before { left: 0; }
.cv-download-tray::after { right: 0; }
.cv-download-btn.is-downloading .cv-download-label { animation: cvLabelPause .86s cubic-bezier(.22,.61,.36,1); }
.cv-download-btn.is-downloading .cv-download-icon { animation: cvIconReveal .86s cubic-bezier(.22,.61,.36,1); }
.cv-download-btn.is-downloading .cv-download-icon svg { animation: cvArrowDrop .86s cubic-bezier(.22,.61,.36,1); }
.cv-download-btn.is-downloading .cv-download-tray { animation: cvTrayCatch .86s cubic-bezier(.22,.61,.36,1); }
.cv-download-btn.is-downloading .cv-download-tray::before,
.cv-download-btn.is-downloading .cv-download-tray::after { animation: cvTraySides .86s cubic-bezier(.22,.61,.36,1); }

/* ── FOOTER ── */
footer { background: var(--text); color: rgba(255,255,255,.5); padding: 28px 24px; font-size: 13px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: center; }
.footer-socials { display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-social-link { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s, border-color .2s, background .2s, transform .15s; }
.footer-social-link:hover { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); transform: translateY(-1px); }
.footer-social-link .brand-icon { width: 18px; height: 18px; }

/* ── WECHAT QR MODAL ── */
.qr-modal { position: fixed; inset: 0; z-index: 9100; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.68); }
.qr-modal[hidden] { display: none; }
.qr-dialog { position: relative; width: min(100%, 440px); padding: 22px; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.24); text-align: center; }
.qr-dialog h2 { font-family: var(--font-head); font-size: 20px; line-height: 1.3; margin-bottom: 8px; color: var(--text); }
.qr-dialog p { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin-bottom: 16px; white-space: nowrap; }
.qr-dialog img { display: block; width: min(100%, 260px); height: auto; margin: 0 auto; border: 1px solid var(--border); border-radius: 8px; }
.qr-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.qr-close:focus-visible { outline: 3px solid rgba(13,148,136,.25); outline-offset: 3px; }

/* ── ASK AI QUICK MENU ── */
.ask-ai-menu-shell { position: relative; z-index: 20; display: inline-flex; align-self: stretch; }
.ask-ai-trigger { position: relative; overflow: hidden; isolation: isolate; transform-origin: center; }
.ask-ai-trigger:active, .cv-card .ask-ai-trigger:active { transform: translateY(1px) scale(.985); }
.ask-ai-trigger-label { position: relative; z-index: 1; }
.ask-ai-trigger-icon { position: relative; z-index: 1; display: inline-grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; }
.ask-ai-trigger-icon > svg { position: relative; z-index: 2; width: 17px; height: 17px; transform-origin: center; }
.ask-ai-trigger-halo { position: absolute; top: 50%; left: 50%; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,.3) 0 22%, rgba(13,148,136,.16) 38%, rgba(13,148,136,0) 72%); opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.35); }
.cv-card .ask-ai-trigger-halo { background: radial-gradient(circle, rgba(255,255,255,.28) 0 22%, rgba(255,255,255,.14) 38%, rgba(255,255,255,0) 72%); }
.ask-ai-menu-shell.is-menu-activating .ask-ai-trigger { animation: aiTriggerSettle .22s cubic-bezier(.16,1,.3,1); }
.ask-ai-menu-shell.is-menu-activating .ask-ai-trigger-icon > svg { animation: aiTriggerIconSettle .22s cubic-bezier(.16,1,.3,1); }
.ask-ai-menu-shell.is-menu-activating .ask-ai-trigger-halo { animation: aiTriggerHalo .38s cubic-bezier(.16,1,.3,1); }
.ai-quick-menu { position: absolute; top: calc(100% + 12px); inset-inline: 0; z-index: 80; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; min-width: 0; height: 52px; pointer-events: none; }
.ai-quick-menu[hidden] { display: none; }
.ai-quick-menu.is-open { pointer-events: auto; }
.ai-menu-action { --ai-enter-delay: 72ms; position: relative; z-index: 1; display: flex; min-width: 0; height: 52px; align-items: center; color: var(--text); text-decoration: none; pointer-events: none; opacity: 0; transform: translate3d(0, -8px, 0) scale(.8); transform-origin: center; transition: opacity .18s ease var(--ai-enter-delay), transform .34s cubic-bezier(.22,1,.36,1) var(--ai-enter-delay); will-change: opacity, transform; }
.ai-menu-action:nth-child(1) { justify-content: flex-start; }
.ai-menu-action:nth-child(2) { justify-content: center; }
.ai-menu-action:nth-child(3) { justify-content: flex-end; }
.ai-menu-action:nth-child(2) { --ai-enter-delay: 112ms; }
.ai-menu-action:nth-child(3) { --ai-enter-delay: 152ms; }
.ai-quick-menu.is-open .ai-menu-action { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.ai-quick-menu:not(.is-open) .ai-menu-action { transition-delay: 0ms; }
.ai-menu-surface { width: 44px; height: 44px; display: inline-flex; align-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(15,23,42,.11); border-radius: 999px; background: rgba(255,255,255,.98); color: var(--text); white-space: nowrap; box-shadow: 0 9px 24px rgba(15,23,42,.13), 0 2px 7px rgba(13,148,136,.07); cursor: pointer; pointer-events: auto; transform: translateX(0) scale(1); transform-origin: center; transition: width .36s cubic-bezier(.22,1,.36,1), transform .38s cubic-bezier(.22,1,.36,1), opacity .22s ease, border-color .2s ease, background .2s ease, box-shadow .25s ease; will-change: width, transform; }
.ai-menu-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; color: var(--text); transition: width .32s cubic-bezier(.22,1,.36,1), flex-basis .32s cubic-bezier(.22,1,.36,1); }
.ai-menu-icon svg { width: 19px; height: 19px; stroke-width: 2; }
.ai-brand-mark { display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
.ai-brand-mark--chatgpt { -webkit-mask-image: url('assets/ai/openai.svg'); mask-image: url('assets/ai/openai.svg'); }
.ai-brand-mark--claude { -webkit-mask-image: url('assets/ai/claude.svg'); mask-image: url('assets/ai/claude.svg'); }
.ai-menu-action--chatgpt .ai-menu-icon { color: var(--ai-chatgpt); }
.ai-menu-action--claude .ai-menu-icon { color: var(--ai-claude); }
.ai-menu-action--download .ai-menu-icon { color: var(--teal-dark); }
.ai-menu-icon--markdown .ai-menu-file-code { width: 21px; height: 21px; }
.ai-menu-label { max-width: 0; overflow: hidden; opacity: 0; font-family: var(--font-body); font-size: 11.5px; font-weight: 750; line-height: 1.1; letter-spacing: -.15px; transform: translateX(-5px); transition: max-width .34s cubic-bezier(.22,1,.36,1), opacity .18s ease, transform .3s ease, padding .3s ease; }
html[lang="ar"] .ai-menu-label { padding-block: 2px; font-weight: 700; line-height: 1.55; letter-spacing: 0; }
.ai-menu-mobile-label { display: none; }
.ai-quick-menu[data-active] .ai-menu-surface { opacity: .62; transform: scale(.72); box-shadow: 0 4px 12px rgba(15,23,42,.09); }
.ai-quick-menu[data-active="1"] .ai-menu-action:nth-child(1), .ai-quick-menu[data-active="2"] .ai-menu-action:nth-child(2), .ai-quick-menu[data-active="3"] .ai-menu-action:nth-child(3) { z-index: 3; }
.ai-quick-menu[data-active="1"] .ai-menu-action:nth-child(1) .ai-menu-surface, .ai-quick-menu[data-active="2"] .ai-menu-action:nth-child(2) .ai-menu-surface, .ai-quick-menu[data-active="3"] .ai-menu-action:nth-child(3) .ai-menu-surface { width: var(--ai-expanded-width, 122px); opacity: 1; transform: translateY(-2px) scale(1); border-color: rgba(13,148,136,.48); background: rgba(240,253,250,.99); box-shadow: 0 11px 26px rgba(13,148,136,.16); }
.ai-quick-menu[data-active="1"] .ai-menu-action:nth-child(1) .ai-menu-icon, .ai-quick-menu[data-active="2"] .ai-menu-action:nth-child(2) .ai-menu-icon, .ai-quick-menu[data-active="3"] .ai-menu-action:nth-child(3) .ai-menu-icon { width: 32px; flex-basis: 32px; }
.ai-quick-menu[data-active="1"] .ai-menu-action:nth-child(1) .ai-menu-label, .ai-quick-menu[data-active="2"] .ai-menu-action:nth-child(2) .ai-menu-label, .ai-quick-menu[data-active="3"] .ai-menu-action:nth-child(3) .ai-menu-label { max-width: 190px; padding-inline-end: 10px; opacity: 1; transform: translateX(0); }
.ai-quick-menu[data-active="1"] .ai-menu-action:nth-child(2) .ai-menu-surface { transform: translateX(48px) scale(.72); }
.ai-quick-menu[data-active="1"] .ai-menu-action:nth-child(3) .ai-menu-surface { transform: scale(.72); }
.ai-quick-menu[data-active="2"] .ai-menu-action:nth-child(1) .ai-menu-surface { transform: translateX(-6px) scale(.72); }
.ai-quick-menu[data-active="2"] .ai-menu-action:nth-child(3) .ai-menu-surface { transform: translateX(6px) scale(.72); }
.ai-quick-menu[data-active="3"] .ai-menu-action:nth-child(1) .ai-menu-surface { transform: scale(.72); }
.ai-quick-menu[data-active="3"] .ai-menu-action:nth-child(2) .ai-menu-surface { transform: translateX(-48px) scale(.72); }
.ai-menu-action:focus-visible { outline: none; }
html[dir="rtl"] .ai-menu-label { transform: translateX(5px); }
html[dir="rtl"] .ai-quick-menu[data-active="1"] .ai-menu-action:nth-child(2) .ai-menu-surface { transform: translateX(-48px) scale(.72); }
html[dir="rtl"] .ai-quick-menu[data-active="1"] .ai-menu-action:nth-child(3) .ai-menu-surface { transform: scale(.72); }
html[dir="rtl"] .ai-quick-menu[data-active="2"] .ai-menu-action:nth-child(1) .ai-menu-surface { transform: translateX(6px) scale(.72); }
html[dir="rtl"] .ai-quick-menu[data-active="2"] .ai-menu-action:nth-child(3) .ai-menu-surface { transform: translateX(-6px) scale(.72); }
html[dir="rtl"] .ai-quick-menu[data-active="3"] .ai-menu-action:nth-child(1) .ai-menu-surface { transform: scale(.72); }
html[dir="rtl"] .ai-quick-menu[data-active="3"] .ai-menu-action:nth-child(2) .ai-menu-surface { transform: translateX(48px) scale(.72); }
@keyframes aiTriggerSettle { 0% { transform: translateY(1px) scale(.985); } 100% { transform: translateY(0) scale(1); } }
@keyframes aiTriggerIconSettle { 0% { opacity: .86; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
@keyframes aiTriggerHalo { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(12); } }

@media (min-width: 769px) {
  .ask-ai-menu-shell.is-menu-open .ask-ai-trigger { transform: translateY(0); }
  .ask-ai-menu-shell--contact { position: relative; display: grid; grid-template-columns: max-content 204px; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; max-width: 100%; }
  .ai-quick-menu--contact { position: static; inset: auto; width: 204px; height: 46px; }
  .ai-quick-menu--contact .ai-menu-action { height: 46px; transform: translateX(-12px) scale(.8); }
  .ai-quick-menu--contact.is-open .ai-menu-action { transform: none; }
  html[dir="rtl"] .ask-ai-menu-shell--contact { grid-template-columns: max-content 220px; }
  html[dir="rtl"] .ai-quick-menu--contact { width: 220px; }
  html[dir="rtl"] .ai-quick-menu--contact .ai-menu-action { transform: translateX(12px) scale(.8); }
  html[dir="rtl"] .ai-quick-menu--contact.is-open .ai-menu-action { transform: none; }
}

/* ── LIGHTBOX ── */
.lb { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .22s; }
.lb.open { opacity: 1; pointer-events: all; }
.lb-close { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer; opacity: .9; transition: opacity .2s, background .2s; z-index: 10; padding: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.lb-close:hover { opacity: 1; background: rgba(255,255,255,.22); }
.lb-img-pane { position: relative; display: flex; align-items: center; justify-content: center; max-width: 90vw; max-height: 90vh; }
.lb-img-pane img { max-width: 88vw; max-height: 88vh; object-fit: contain; border-radius: 6px; display: block; }
.lb-arr { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.13); border: 1.5px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .18s; }
.lb-arr:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: -56px; }
.lb-next { right: -56px; }
.lb-counter { position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.5); font-size: 13px; white-space: nowrap; }
.lb-vid-pane { width: 82vw; height: 80vh; }
.lb-vid-pane iframe { width: 100%; height: 100%; border: none; border-radius: 8px; }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .32s ease, transform .32s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes cvLabelPause {
  0%, 100% { opacity: 1; transform: translateY(0); }
  18%, 72% { opacity: 0; transform: translateY(4px); }
}
@keyframes cvIconReveal {
  0% { opacity: 0; transform: translate(-50%, -70%) scale(.9); }
  18%, 68% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -42%) scale(.96); }
}
@keyframes cvArrowDrop {
  0% { opacity: 0; transform: translateY(-8px) scale(.96); }
  18% { opacity: 1; transform: translateY(-7px) scale(1); }
  46% { opacity: 1; transform: translateY(5px) scaleY(.92); }
  58% { transform: translateY(2px) scaleY(1.03); }
  72%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cvTrayCatch {
  0%, 22% { opacity: .38; transform: scaleX(.58); box-shadow: none; }
  48% { opacity: 1; transform: scaleX(1.1); box-shadow: 0 0 0 5px rgba(13,148,136,.09); }
  70%, 100% { opacity: .78; transform: scaleX(.86); box-shadow: none; }
}
@keyframes cvTraySides {
  0%, 26% { transform: scaleY(.1); opacity: 0; }
  46%, 68% { transform: scaleY(1); opacity: .72; }
  100% { transform: scaleY(.1); opacity: 0; }
}

/* ── HOVER PREVIEWS ── */
.hover-preview { display: none; }

@media (hover: hover) and (pointer: fine) {
  .hover-preview { position: fixed; left: 0; top: 0; z-index: 9400; display: block; width: 220px; height: 145px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(15,23,42,.12); background: #fff; box-shadow: 0 18px 45px rgba(15,23,42,.22); pointer-events: none; opacity: 0; transform: translate3d(18px, 18px, 0) scale(.96); transform-origin: 0 0; transition: opacity .14s, transform .14s; will-change: left, top, width, height, transform; }
  .hover-preview.is-visible { opacity: 1; }
  .hover-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
  .hover-preview-label { position: absolute; left: 8px; right: 8px; bottom: 8px; display: inline-flex; align-items: center; width: fit-content; max-width: calc(100% - 16px); min-height: 24px; padding: 4px 8px; border-radius: 999px; background: rgba(15,23,42,.78); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hover-preview-play { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; display: none; align-items: center; justify-content: center; border-radius: 50%; background: rgba(15,23,42,.72); color: #fff; box-shadow: 0 8px 18px rgba(15,23,42,.22); }
  .hover-preview.is-video .hover-preview-play { display: flex; }
  .hover-preview-play svg { width: 13px; height: 13px; fill: currentColor; transform: translateX(1px); }
}

@media (prefers-reduced-motion: reduce) {
  .service-card.reveal { transition: none; }
  .service-icon { transition: none; }
  .campaign-card.is-animating .campaign-list { will-change: auto; }
  .hover-preview { transition: none; }
  .ask-ai-menu-shell, .ask-ai-trigger, .ai-quick-menu, .ai-menu-action, .ai-menu-surface, .ai-menu-icon, .ai-menu-label { transition: none !important; }
  .ask-ai-menu-shell.is-menu-activating .ask-ai-trigger,
  .ask-ai-menu-shell.is-menu-activating .ask-ai-trigger-icon > svg,
  .ask-ai-menu-shell.is-menu-activating .ask-ai-trigger-halo { animation: none !important; }
  .ask-ai-trigger-halo { display: none; }
  .cv-download-btn.is-downloading .cv-download-label,
  .cv-download-btn.is-downloading .cv-download-icon,
  .cv-download-btn.is-downloading .cv-download-icon svg,
  .cv-download-btn.is-downloading .cv-download-tray,
  .cv-download-btn.is-downloading .cv-download-tray::before,
  .cv-download-btn.is-downloading .cv-download-tray::after { animation: none; }
}

/* ── HAMBURGER ── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; padding: 0; }
.nav-hamburger:active { background: var(--bg2); }
.nav-hamburger-icon { position: relative; display: block; width: 22px; height: 16px; }
.nav-hamburger-icon span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 999px; background: currentColor; transform-origin: center; transition: transform .22s ease, opacity .16s ease; }
.nav-hamburger-icon span:nth-child(1) { top: 0; }
.nav-hamburger-icon span:nth-child(2) { top: 7px; }
.nav-hamburger-icon span:nth-child(3) { top: 14px; }
.nav-hamburger[aria-expanded="true"] .nav-hamburger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .nav-hamburger-icon span:nth-child(2) { opacity: 0; transform: scaleX(.5); }
.nav-hamburger[aria-expanded="true"] .nav-hamburger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ── SWIPE HINT ── */
.lb-swipe-hint { position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.7); color: #fff; font-size: 13px; font-family: var(--font-body); padding: 7px 18px; border-radius: 20px; pointer-events: none; opacity: 0; transition: opacity .4s; white-space: nowrap; z-index: 9010; direction: ltr; unicode-bidi: isolate; }
.lb-swipe-hint.show { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* GLOBAL */
  body { overflow-x: hidden; }
  section { padding: 84px 20px; }

  /* NAV */
  .nav-hamburger { display: flex; }
  .nav-links {
    display: flex;
    position: absolute;
    top: 61px;
    left: 0;
    right: 0;
    background: rgba(250,250,248,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 24px 16px;
    gap: 0;
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s, transform .22s;
  }
  .nav-links.open { opacity: 1; pointer-events: all; transform: translateY(0); }
  .nav-links li { list-style: none; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 0; font-size: 16px; color: var(--text); }
  .nav-backdrop { display: block; position: fixed; inset: 60px 0 0; z-index: 190; background: rgba(15,23,42,.48); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }

  @media (prefers-reduced-motion: reduce) {
    .nav-hamburger-icon span, .nav-backdrop { transition: none; }
  }

  /* GRID LAYOUTS */
  .portfolio-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: 1fr; min-height: 0; border-color: rgba(15,23,42,.08); box-shadow: 0 12px 30px rgba(15,23,42,.05); }
  .featured-media, .featured-media .proj-thumb, .featured-media .proj-vid-thumb { min-height: 210px; height: 210px; }
  .featured-media .proj-thumb img { object-fit: cover; background: transparent; }
  .featured-copy { padding: 20px 20px 22px; }
  .featured-desc { margin-bottom: 14px; }
  .case-points { gap: 6px; }
  .featured-card:not(.is-desc-expanded) .case-points { display: none; }
  .featured-card.is-desc-expanded .case-points { display: grid; }
  .case-points li { font-size: 12px; line-height: 1.45; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-card,
  .proj-card,
  .contact-link-card,
  .cv-card { border-radius: 10px; }
  .service-card,
  .proj-card,
  .contact-link-card { border-color: rgba(15,23,42,.08); box-shadow: 0 10px 24px rgba(15,23,42,.045); }

  /* FILTER TABS — horizontally scrollable */
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none; -ms-overflow-style: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { white-space: nowrap; flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; }

  /* PORTFOLIO CARD THUMBNAILS */
  .proj-thumb { height: 220px; }
  .proj-vid-thumb { height: 220px; }
  .proj-body { padding: 18px 20px 21px; }
  .proj-tag { margin-bottom: 7px; }
  .proj-title { margin-bottom: 7px; }
  .proj-desc { line-height: 1.55; }
  .proj-desc,
  .featured-desc { position: relative; }
  .card-desc-text { display: inline; }
  .card-desc-toggle { display: none; border: 0; border-radius: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; line-height: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .has-more .card-desc-toggle { display: inline; }
  .card-desc-toggle:focus-visible { outline: 2px solid rgba(13,148,136,.3); outline-offset: 2px; }

  /* HERO */
  #hero { max-width: 100vw; min-height: auto; align-items: flex-start; padding: 108px 16px 62px; }
  #hero::before { background-image: linear-gradient(180deg, rgba(250,250,248,.995) 0%, rgba(250,250,248,.985) 48%, rgba(250,250,248,.92) 72%, rgba(250,250,248,.76) 100%), url('assets/hero/hero-glass-mobile-jorgen-haland.jpg'); background-position: center, center bottom; background-size: cover, auto 52%; opacity: 1; }
  #hero::after { opacity: .24; }
  .hero-inner { width: 100%; max-width: calc(100vw - 32px); min-width: 0; text-align: center; }
  .hero-name { font-size: clamp(32px, 9vw, 40px); letter-spacing: -.35px; margin-bottom: 16px; overflow-wrap: anywhere; }
  .hero-bio { width: 100%; max-width: 300px; margin-bottom: 32px; line-height: 1.68; overflow-wrap: break-word; }
  .hero-btns { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 36px; }
  .hero-btns > a, .hero-btns > button, .hero-btns > .ask-ai-menu-shell { text-align: center; width: 100%; max-width: 292px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary,
  .hero-btns .btn-ai { height: 52px; min-height: 52px; padding-block: 0; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; }
  .hero-btns > .ask-ai-menu-shell { height: 52px; min-height: 52px; }
  .hero-btns > .ask-ai-menu-shell .ask-ai-trigger { width: 100%; height: 52px; min-height: 52px; }
  .btn-secondary { background: rgba(255,255,255,.74); }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 320px; margin: 0 auto; padding-top: 22px; }
  .stat-item { min-height: 56px; display: flex; align-items: center; justify-content: center; flex: none; border-right: none; border: 1px solid rgba(13,148,136,.22); border-radius: 11px; padding: 11px 10px; text-align: center; background: rgba(255,255,255,.76); box-shadow: 0 8px 22px rgba(15,23,42,.045); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .stat-item--languages { grid-column: 1 / -1; min-height: 50px; }
  .stat-value { font-size: 11.5px; line-height: 1.35; }

  /* LIGHTBOX */
  .lb-arr {
    position: fixed;
    top: auto;
    bottom: 14px;
    z-index: 9011;
    display: flex;
    width: 44px;
    height: 44px;
    transform: none;
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.34);
    -webkit-tap-highlight-color: transparent;
  }
  .lb-arr:active { background: rgba(255,255,255,.28); }
  .lb-prev { left: calc(50% - 112px); }
  .lb-next { right: calc(50% - 112px); }
  .lb-img-pane { max-width: 100vw; max-height: 85vh; }
  .lb-img-pane img { max-width: 100vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
  .lb-counter { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600; background: rgba(0,0,0,.45); padding: 5px 16px; border-radius: 20px; white-space: nowrap; z-index: 9010; }
  .lb-vid-pane { width: 95vw; height: 54vw; }
  .qr-dialog p { white-space: normal; }

  /* ASK AI — in-place mobile actions without a surrounding tray */
  .ask-ai-menu-shell { position: relative; display: block; height: 46px; min-height: 46px; transition: height .32s ease-out; }
  .ask-ai-menu-shell.is-menu-open { overflow: hidden; }
  .ask-ai-menu-shell.is-menu-closing { overflow: visible; }
  .ask-ai-menu-shell .ask-ai-trigger { position: absolute; inset: 0; z-index: 2; width: 100%; height: 46px; min-height: 46px; margin: 0; padding-block: 0; transition: opacity .18s ease-out, border-color .2s ease; }
  .hero-btns > .ask-ai-menu-shell { height: 52px; min-height: 52px; }
  .hero-btns > .ask-ai-menu-shell .ask-ai-trigger { height: 52px; min-height: 52px; }
  .ask-ai-menu-shell.is-menu-activating .ask-ai-trigger,
  .ask-ai-menu-shell.is-menu-activating .ask-ai-trigger-icon > svg,
  .ask-ai-menu-shell.is-menu-activating .ask-ai-trigger-halo { animation: none; }
  .ask-ai-trigger:active,
  .cv-card .ask-ai-trigger:active { transform: none; }
  .ask-ai-menu-shell.is-menu-open { height: 124px; }
  .hero-btns > .ask-ai-menu-shell.is-menu-open { height: 130px; }
  .ask-ai-menu-shell.is-menu-open .ask-ai-trigger { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .cv-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .cv-actions > .cv-download-btn { order: 1; width: 100%; max-width: 310px; align-self: stretch; }
  .ask-ai-menu-shell--contact { order: 2; flex: 0 0 auto; align-self: stretch; width: 100%; max-width: 310px; }
  .ask-ai-menu-shell--contact.is-menu-open { height: 124px; }
  .cv-card .ask-ai-menu-shell--contact .ask-ai-trigger { width: 100%; }
  .ai-quick-menu, .ai-quick-menu--contact { position: absolute; inset: auto 0 auto; top: 52px; width: 100%; height: 72px; padding: 5px 14px 4px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-btns > .ask-ai-menu-shell .ai-quick-menu { top: 58px; }
  .ai-menu-action, .ai-menu-action:nth-child(1), .ai-menu-action:nth-child(2), .ai-menu-action:nth-child(3) { --ai-enter-delay: 0ms; height: 62px; align-items: center; justify-content: center; transition: opacity .16s ease-out, transform .22s ease-out; }
  .ai-menu-surface { position: relative; top: 3px; width: auto; min-width: 62px; height: 58px; flex-direction: column; justify-content: flex-start; overflow: visible; border: none; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; transform: none; }
  .ai-menu-icon { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid rgba(15,23,42,.1); border-radius: 50%; background: #fff; box-shadow: 0 5px 14px rgba(15,23,42,.11); }
  .ai-brand-mark { width: 18px; height: 18px; }
  .ai-menu-icon--markdown .ai-menu-file-code { width: 19px; height: 19px; }
  .ai-menu-label { display: none; }
  .ai-menu-mobile-label { display: block; max-width: 72px; margin-top: 3px; overflow: hidden; color: var(--teal-dark); font-family: var(--font-body); font-size: 9.5px; font-weight: 750; line-height: 1.15; letter-spacing: -.1px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .cv-card .ai-menu-mobile-label,
  .ask-ai-menu-shell--contact .ai-menu-mobile-label { color: #fff; }
  .ask-ai-menu-shell .ai-quick-menu[data-active] .ai-menu-action .ai-menu-surface,
  html[dir="rtl"] .ask-ai-menu-shell .ai-quick-menu[data-active] .ai-menu-action .ai-menu-surface { width: auto; opacity: 1; transform: none; border: none; background: transparent; box-shadow: none; }
  .ask-ai-menu-shell .ai-quick-menu[data-active] .ai-menu-action .ai-menu-icon { width: 36px; flex-basis: 36px; }

  /* TAP TARGETS */
  .lang-trigger { min-height: 44px; }
  .btn-primary, .btn-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .hero-scroll-cue { width: 50px; height: 50px; bottom: 18px; }
  .hero-scroll-cue i,
  .hero-scroll-cue svg { width: 36px; height: 36px; }
  .contact-link-card { min-height: 44px; }
  /* Keep dropdown panel from clipping off right edge on mobile */
  .lang-panel { right: 0; left: auto; min-width: 160px; }
}

@media (max-width: 480px) {
  #hero { padding-top: 100px; padding-bottom: 56px; }
  #hero::before { background-position: center, center bottom; background-size: cover, auto 46%; }
  .hero-name { font-size: clamp(31px, 9vw, 36px); }
  .hero-bio { max-width: 292px; font-size: 15px; }
  .hero-btns > a, .hero-btns > button, .hero-btns > .ask-ai-menu-shell { max-width: 286px; }
  .hero-stats { max-width: 304px; }
}

@media (min-width: 769px) {
  body { font-size: 17.5px; }
  .nav-inner, .container { max-width: 1200px; }
  #hero { padding: 110px 24px 88px; }
  #hero::before { background-position: center, right center; background-size: cover, auto 104%; }
  .hero-inner { width: 100%; max-width: 1200px; text-align: start; display: block; }
  .hero-copy { max-width: 760px; min-width: 0; }
  .hero-name { font-size: clamp(52px, 7.2vw, 84px); margin-bottom: 20px; }
  .hero-bio { font-size: 17px; margin: 0 0 36px; }
  .hero-btns { justify-content: flex-start; gap: 14px; margin-bottom: 58px; }
  .btn-primary, .btn-secondary { padding: 14px 32px; font-size: 16px; }
  .hero-stats { justify-content: flex-start; max-width: 820px; padding-top: 40px; }
  .stat-item { padding: 0 26px; }
  .stat-item:first-child { padding-inline-start: 0; }
  .stat-value { font-size: 16px; }
  section { padding: 110px 24px; }
  .section-label { font-size: 12px; margin-bottom: 16px; }
  .section-heading { font-size: clamp(30px, 4vw, 46px); margin-bottom: 60px; }
  .services-grid { gap: 24px; }
  .service-card { padding: 36px 32px; }
  .service-title { font-size: 19px; margin-bottom: 12px; }
  .service-desc { font-size: 15px; }
  .filter-tab { font-size: 14px; padding: 9px 20px; }
  .portfolio-grid { gap: 26px; }
  .featured-grid { gap: 24px; }
  .featured-title { font-size: 20px; }
  .proj-body { padding: 24px 26px 28px; }
  .proj-tag { font-size: 12px; margin-bottom: 10px; }
  .proj-title { font-size: 17px; margin-bottom: 8px; }
  .proj-desc { font-size: 14px; }
  .proj-thumb, .proj-vid-thumb { height: 220px; }
  .contact-subtext { font-size: 17px; margin-bottom: 44px; }
  .contact-grid { gap: 24px; }
  .contact-link-card { padding: 20px 24px; gap: 18px; }
  .contact-info-label--wechat { font-size: 13px; }
  .contact-info-value--wechat { font-size: 14px; }
  .contact-info-label { font-size: 12px; }
  .contact-info-value { font-size: 15px; }
  .cv-card { padding: 44px 36px; }
  .cv-card-heading { font-size: 26px; }
  .cv-card-subtext { font-size: 15px; }
  .cv-card .btn-white { padding: 13px 28px; font-size: 15px; }
  .cv-card .btn-outline-white { padding: 12px 26px; font-size: 15px; }
  footer { font-size: 14px; padding: 32px 24px; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  body { font-size: 16px; }
  .nav-inner, .container { max-width: 92vw; }
  .nav-inner { padding: 0 22px; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 13px; }

  #hero {
    min-height: auto;
    align-items: flex-start;
    padding: 132px 32px 86px;
  }
  #hero::before { background-image: linear-gradient(90deg, rgba(250,250,248,.99) 0%, rgba(250,250,248,.95) 39%, rgba(250,250,248,.8) 61%, rgba(250,250,248,.36) 100%), url('assets/hero/hero-glass-jorgen-haland.jpg'); background-position: center, right center; background-size: cover, auto 100%; }
  .hero-inner { max-width: 92vw; }
  .hero-name { font-size: clamp(56px, 8vw, 74px); margin-bottom: 18px; }
  .hero-bio { font-size: 16px; max-width: 560px; margin-bottom: 32px; }
  .hero-btns { margin-bottom: 44px; }
  .hero-stats { max-width: 820px; margin: 0; padding-top: 32px; }

  section { padding: 88px 32px; }
  .section-heading { margin-bottom: 46px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: minmax(260px, .8fr) 1fr; min-height: 240px; }
  .featured-media, .featured-media .proj-thumb, .featured-media .proj-vid-thumb { min-height: 240px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .cv-card { min-height: 0; }
}

/* RTL */
html[dir="rtl"] #hero::before,
html[dir="rtl"] #hero::after { transform: scaleX(-1); transform-origin: center; }
html[dir="rtl"] .stat-item { border-right: none; border-left: none; }
html[dir="rtl"] .hero-name, html[dir="rtl"] .section-heading { letter-spacing: 0; }
html[dir="rtl"] .lb-prev { left: auto; right: -56px; }
html[dir="rtl"] .lb-next { right: auto; left: -56px; }
html[dir="rtl"] .lb-arr svg { transform: scaleX(-1); }
html[dir="rtl"] .gallery-badge { right: auto; left: 8px; }
html[dir="rtl"] .vid-label { right: auto; left: 12px; }

/* Share links for individual portfolio projects */
.shareable-card { position: relative; scroll-margin-top: 104px; }
.card-share-btn {
  position: absolute;
  z-index: 5;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink, #172033);
  box-shadow: 0 3px 12px rgba(15,23,42,.16);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.card-share-btn svg { width: 15px; height: 15px; color: var(--teal, #0d9488); }
.card-share-btn:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 5px 16px rgba(15,23,42,.2); }
.card-share-btn:focus-visible { outline: 3px solid var(--teal, #0d9488); outline-offset: 3px; }
.card-share-toast {
  position: fixed;
  z-index: 1000;
  inset-inline-start: 50%;
  inset-block-end: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #172033;
  color: #fff;
  box-shadow: 0 12px 32px rgba(15,23,42,.22);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s;
}
.card-share-toast svg { width: 17px; height: 17px; color: #54d6c8; }
.card-share-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

body.share-page-open > nav,
body.share-page-open > .nav-backdrop { display: none; }

.shared-project-page {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}
.shared-project-page[hidden] { display: none; }
.shared-page-header { flex: 0 0 auto; border-bottom: 1px solid var(--border); background: rgba(250,250,248,.96); }
.shared-page-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(980px, calc(100% - 48px)); min-height: 68px; margin: 0 auto; }
.shared-page-brand { font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.shared-page-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--teal-dark); border-radius: 8px; background: var(--teal-dark); color: #fff; font-family: var(--font-body); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s; }
.shared-page-cta:hover { transform: translateY(-1px); background: #0b5f59; }
.shared-page-cta:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.shared-page-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.shared-page-content { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: clamp(36px, 6vw, 72px) 0 96px; }
.shared-page-intro { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.shared-page-category { margin-bottom: 12px; color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: 1.1px; line-height: 1.4; text-transform: uppercase; }
.shared-page-title { margin-bottom: 16px; font-family: var(--font-head); font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; letter-spacing: -1.4px; line-height: 1.14; }
.shared-page-description { color: var(--text-muted); font-size: clamp(14px, 1.4vw, 17px); line-height: 1.75; }
.shared-media-group { padding: 0; }
.shared-media-group + .shared-media-group { margin-top: clamp(48px, 7vw, 82px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--border); }
.shared-media-title { margin-bottom: 22px; font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.35; }
.shared-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.shared-image-grid.is-programming { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.shared-image-frame { min-width: 0; margin: 0; padding: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--white); box-shadow: 0 5px 18px rgba(15,23,42,.04); }
.shared-image-grid.is-programming .shared-image-frame { padding: 16px; }
.shared-image-frame img { display: block; width: 100%; height: auto; border-radius: 7px; object-fit: contain; }
.shared-video-frame { position: relative; width: 100%; max-width: 960px; margin-inline: auto; overflow: hidden; border-radius: 14px; background: #0c1526; aspect-ratio: 16 / 9; box-shadow: 0 14px 36px rgba(15,23,42,.12); }
.shared-video-frame.is-portrait { max-width: min(420px, 100%); }
.shared-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 700px) {
  .shared-page-header-inner, .shared-page-content { width: calc(100% - 32px); }
  .shared-page-header-inner { min-height: 62px; }
  .shared-page-brand { font-size: 14px; }
  .shared-page-cta { min-height: 36px; padding: 0 11px; font-size: 11px; }
  .shared-page-content { padding: 36px 0 64px; }
  .shared-page-title { font-size: clamp(28px, 8vw, 38px); letter-spacing: -.8px; }
  .shared-page-intro { margin-bottom: 28px; }
  .shared-image-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .shared-image-frame { padding: 8px; }
  .shared-image-grid.is-programming .shared-image-frame { padding: 10px; }
  .shared-media-title { margin-bottom: 16px; }
}

@media (max-width: 768px) {
  html[dir="rtl"] .lb-prev { left: auto; right: calc(50% - 112px); }
  html[dir="rtl"] .lb-next { right: auto; left: calc(50% - 112px); }
}

@media (prefers-reduced-motion: reduce) {
  html.liberation-pending .hero-name,
  html.liberation-pending .hero-bio,
  html.liberation-pending .hero-btns,
  html.liberation-pending .hero-stats { visibility: visible; }
  .hero-name.liberation-running .liberation-unit { animation: none !important; opacity: 1; filter: none; transform: none; }
  .split-text-running .split-text-word,
  .hero-btns.hero-support-running { animation: none !important; opacity: 1; transform: none; }
  .hero-scroll-cue,
  .hero-scroll-cue i,
  .hero-scroll-cue svg {
    animation: none !important;
    transition: opacity .2s ease;
  }
}
