/* ============ Tokens ============ */
:root {
  --bg: #F5F2FA;
  --bg-2: #EAE5F4;
  --surface: #FFFFFF;
  --ink: #1B1433;
  --ink-2: #41385C;
  --muted: #6F6688;
  --line: #DDD6EB;
  --violet: #6D3FC8;
  --violet-soft: #E6DCFA;
  --verm: #D9400F;
  --verm-soft: #FBE0D6;
  --shadow: 0 1px 2px rgba(27, 20, 51, .05), 0 14px 34px -16px rgba(60, 35, 130, .25);
  --shadow-lg: 0 34px 60px -24px rgba(60, 35, 130, .45);
  --radius: 20px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #110D1E;
  --bg-2: #2C2448;
  --surface: #1E1833;
  --ink: #F3EFFC;
  --ink-2: #D5CDE8;
  --muted: #A69CC0;
  --line: #352C50;
  --violet: #B79AF0;
  --violet-soft: #2E2350;
  --verm: #FF7A4F;
  --verm-soft: #43210F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 34px 60px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
:root[lang="ar"] {
  --font-display: "Alexandria", sans-serif;
  --font-body: "Alexandria", sans-serif;
  --font-mono: "Alexandria", sans-serif;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16.5px; line-height: 1.65; overflow-x: clip;
}
:root[lang="ar"] body { font-size: 15.5px; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; font-weight: 700; }
em { font-style: normal; color: var(--verm); }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 3px solid var(--verm); outline-offset: 3px; border-radius: 8px; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: linear-gradient(90deg, var(--violet), var(--verm)); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .scroll-progress { transform-origin: right; }

/* ============ Nav ============ */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.logo { direction: ltr; text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.logo .dot { color: var(--verm); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; overflow: hidden; text-decoration: none; padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: color .25s, background .25s, scale .45s var(--ease-spring); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--violet-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch { position: relative; direction: ltr; display: flex; height: 42px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang-switch button { position: relative; z-index: 1; min-width: 36px; padding: 0 8px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-family: "DM Mono", monospace; font-weight: 500; font-size: .8rem; color: var(--muted); transition: color .3s, scale .4s var(--ease-spring); }
.lang-switch button:active { scale: .9; }
.lang-switch .ar-label { font-family: "Alexandria", sans-serif; font-size: .95rem; }
.lang-switch button[aria-pressed="true"] { color: #fff; }
:root[data-theme="dark"] .lang-switch button[aria-pressed="true"] { color: #1B1433; }
.lang-thumb { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: var(--violet); transition: left .45s var(--ease-spring), width .3s; }

.theme-toggle, .menu-btn { border: 1px solid var(--line); background: var(--surface); cursor: pointer; width: 42px; height: 42px; border-radius: 50%; position: relative; overflow: hidden; }
.theme-toggle { display: grid; place-items: center; }
.theme-toggle svg { width: 21px; height: 21px; overflow: visible; }
.sun-core { fill: var(--verm); transition: r .5s var(--ease-out); }
.moon-bite { transition: cx .5s var(--ease-out), cy .5s var(--ease-out); }
.sun-rays { stroke: var(--verm); stroke-width: 2; stroke-linecap: round; transform-origin: 12px 12px; transition: transform .6s var(--ease-spring), opacity .35s; }
:root[data-theme="dark"] .sun-core { r: 9px; fill: var(--violet); }
:root[data-theme="dark"] .moon-bite { cx: 17px; cy: 7px; }
:root[data-theme="dark"] .sun-rays { transform: rotate(90deg) scale(0); opacity: 0; }
.theme-toggle.spin svg { animation: toggleSpin .6s var(--ease-spring); }
@keyframes toggleSpin { from { transform: rotate(-120deg) scale(.6); } }
.menu-btn { display: none; padding: 0; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============ Buttons + press feedback ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; position: relative; overflow: hidden; transition: scale .45s var(--ease-spring), transform .35s var(--ease-spring), box-shadow .35s, background .3s, color .3s; }
.btn > * { position: relative; z-index: 1; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 12px 24px -12px var(--violet); }
:root[data-theme="dark"] .btn-primary { color: #1B1433; }
.btn-primary:hover { background: var(--verm); }
.btn-primary .arrow { transition: transform .3s var(--ease-spring); }
.btn-primary:hover .arrow { transform: translateX(5px); }
[dir="rtl"] .btn-primary .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn-primary:hover .arrow { transform: scaleX(-1) translateX(5px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--violet-soft); }
.btn:active, .c-item:active, .theme-toggle:active, .menu-btn:active, .to-top:active, .nav-links a:active { scale: .94; transition-duration: .12s; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; background: currentColor; opacity: .2; transform: scale(0); animation: ripple .65s var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ============ Hero ============ */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 64px); max-width: 1240px; margin: 0 auto; padding: 18px clamp(16px, 5vw, 64px) 44px; min-height: min(calc(100svh - 70px), 760px); }
.greet { margin: 0 0 4px; font-family: var(--font-mono); font-size: 1rem; color: var(--muted); }
.greet-word { display: inline-block; color: var(--violet); font-weight: 500; }
.greet-word, .rotator-word { transition: transform .38s var(--ease-out), opacity .38s; }
.out { transform: translateY(-60%); opacity: 0; }
.in { transform: translateY(60%); opacity: 0; transition: none; }
.hero-name { font-size: clamp(3rem, 7.2vw, 5.7rem); font-weight: 800; letter-spacing: -.022em; line-height: .98; margin-bottom: 16px; }
:root[lang="ar"] .hero-name { letter-spacing: 0; line-height: 1.25; font-size: clamp(2.8rem, 7.4vw, 5.6rem); font-weight: 700; }
.split .ch { display: inline-block; opacity: 0; transform: translateY(55%) rotate(6deg); animation: chIn .85s var(--ease-spring) forwards; }
.split .word { display: inline-block; white-space: nowrap; }
.split .ch:hover { color: var(--verm); }
@keyframes chIn { to { opacity: 1; transform: none; } }
.hero-role { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.3vw, 1.55rem); }
.hero-route { margin: 0 0 18px; font-family: var(--font-mono); font-size: clamp(.95rem, 1.7vw, 1.08rem); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .5em; }
.rotator { color: var(--verm); font-weight: 500; }
.rotator-word { display: inline-block; }
.hero-lead { max-width: 52ch; color: var(--ink-2); margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { display: grid; place-items: center; }
.photo-wrap { position: relative; width: min(390px, 78vw); aspect-ratio: 4 / 5; cursor: pointer; transform-style: preserve-3d; transition: transform .5s var(--ease-out); }
.photo { position: absolute; inset: 0; overflow: hidden; border-radius: 999px 999px 26px 26px; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .color { opacity: 0; animation: colorIn 12s ease-in-out 1.6s infinite; transition: opacity .5s; }
@keyframes colorIn { 0%, 45%, 100% { opacity: 0; } 55%, 90% { opacity: 1; } }
.photo-wrap:hover .color, .photo-wrap.show-color .color { animation: none; opacity: 1; }
.orbit { position: absolute; inset: -12% -22%; width: 144%; height: 124%; overflow: visible; pointer-events: none; }
#orbitPath { fill: none; stroke: var(--verm); stroke-width: 1.6; stroke-dasharray: 3 9; stroke-linecap: round; }
.orbit-plane { fill: var(--verm); }
.stamp { position: absolute; width: 112px; height: 112px; inset-inline-end: -8%; bottom: 5%; display: grid; place-items: center; background: var(--ink); color: var(--bg); border-radius: 50%; box-shadow: var(--shadow); transform: translateZ(40px); }
.stamp > svg:first-child { position: absolute; inset: 0; direction: ltr; animation: spin 16s linear infinite; }
.stamp text { font: 500 9.4px/1 "DM Mono", monospace; letter-spacing: .9px; fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.stamp-core { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: .85rem; white-space: nowrap; animation: bob 5s ease-in-out infinite; transform: translateZ(60px); }
.float-chip .ico { width: 19px; height: 19px; }
.chip-1 { top: 16%; inset-inline-start: -19%; }
.chip-2 { top: 54%; inset-inline-start: -23%; animation-delay: -2.2s; }
@keyframes bob { 50% { translate: 0 -11px; } }

/* ============ Ticket stats ============ */
.ticket { position: relative; max-width: 1112px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: var(--bg); border-radius: 18px; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg); }
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 20px clamp(16px, 2.4vw, 28px); }
.stat + .stat { border-inline-start: 2px dashed color-mix(in srgb, var(--bg) 25%, transparent); }
.stat-label { font-family: var(--font-mono); font-size: .76rem; line-height: 1.4; opacity: .75; }
.stat-val { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(2.2rem, 4.2vw, 3rem); line-height: 1; }
.stat-val i { font-style: normal; color: #FF7A4F; }
:root[data-theme="dark"] .stat-val i { color: #D9400F; }

/* ============ Sections ============ */
.section { max-width: 1160px; margin: 0 auto; padding: clamp(48px, 7vw, 84px) clamp(16px, 4vw, 40px) 0; }
.section-head { margin-bottom: clamp(22px, 3vw, 34px); max-width: 760px; }
.eyebrow { display: block; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--violet); margin-bottom: 10px; }
.section h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.025em; }
:root[lang="ar"] .section h2 { letter-spacing: 0; line-height: 1.35; }

/* About + languages */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
.about h2 { margin-bottom: 18px; }
.about-copy p { margin: 0 0 14px; color: var(--ink-2); }
.langs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.langs h3 { font-size: 1.2rem; margin-bottom: 14px; }
.langs table { width: 100%; border-collapse: collapse; }
.langs thead th { font-family: var(--font-mono); font-weight: 400; font-size: .68rem; color: var(--muted); padding: 0 2px 8px; text-align: center; }
.langs tbody th { text-align: start; font-weight: 700; font-size: .92rem; padding-inline-end: 8px; }
.langs tbody td, .langs tbody th { padding-block: 9px; border-top: 1px solid var(--line); text-align: center; }
.langs tbody th { text-align: start; }
.lvl { display: inline-block; min-width: 34px; padding: 2px 6px; border-radius: 7px; font-family: "DM Mono", monospace; font-size: .78rem; }
.lvl.b2 { background: var(--violet); color: #fff; }
:root[data-theme="dark"] .lvl.b2 { color: #1B1433; }
.lvl.b1 { background: var(--violet-soft); color: var(--ink); }
.lvl.native { display: block; background: var(--verm-soft); color: var(--ink); font-family: var(--font-body); font-weight: 600; }

/* Career */
.roles { position: relative; display: grid; gap: 10px; }
.line { position: absolute; top: 26px; bottom: 26px; inset-inline-start: 9px; width: 2px; background: var(--line); }
.line-fill { position: absolute; inset-inline: 0; top: 0; height: 0; background: linear-gradient(var(--verm), var(--violet)); }
.role { position: relative; margin-inline-start: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .3s, opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.role[open], .role:hover { border-color: var(--violet); box-shadow: var(--shadow); }
.role summary { position: relative; overflow: hidden; border-radius: 16px; list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; transition: scale .45s var(--ease-spring); }
.role summary:active { scale: .985; transition-duration: .12s; }
.role summary::-webkit-details-marker { display: none; }
.role::before { content: ""; position: absolute; inset-inline-start: -31px; top: 21px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); transition: border-color .3s, background .3s; }
.role[open]::before, .role:hover::before { border-color: var(--violet); background: var(--violet); }
.role.is-current::before { border-color: var(--verm); background: var(--verm); box-shadow: 0 0 0 5px var(--verm-soft); }
.role-date { flex: none; width: 168px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.role-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; flex: 1; }
.role-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.role-co { color: var(--violet); font-weight: 600; font-size: .9rem; }
.role-badge { flex: none; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--verm); color: #fff; }
:root[data-theme="dark"] .role-badge { color: #1B1433; }
.role-toggle { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease-spring), background .3s, border-color .3s; }
.role-toggle::before, .role-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; }
.role-toggle::after { transform: rotate(90deg); transition: transform .3s; }
.role[open] .role-toggle { transform: rotate(180deg); background: var(--violet); border-color: var(--violet); color: #fff; }
:root[data-theme="dark"] .role[open] .role-toggle { color: #1B1433; }
.role[open] .role-toggle::after { transform: rotate(0); }
.role ul { margin: 0; padding: 0 18px 16px; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; }
.role li { position: relative; padding-inline-start: 16px; color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.role li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 7px; height: 2px; background: var(--verm); }
.role[open] ul { animation: roleIn .45s var(--ease-out); }
@keyframes roleIn { from { opacity: 0; transform: translateY(-6px); } }

/* Markets + award */
.wins { display: grid; grid-template-columns: .62fr 1.25fr .78fr; gap: clamp(18px, 2.6vw, 32px); align-items: start; }
.win-award { padding: 0; border: 0; background: var(--surface); border-radius: 16px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-lg); }
.win-award img { width: 100%; height: auto; }
.win-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.win-tag .ico { width: 18px; height: 18px; }
.win-body h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); margin-bottom: 10px; }
.win-body blockquote { margin: 0 0 20px; padding-inline-start: 14px; border-inline-start: 3px solid var(--verm); color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.win-body h4 { margin: 0 0 9px; font-family: var(--font-mono); font-weight: 400; font-size: .76rem; color: var(--muted); }
.ports { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ports li { display: flex; flex-direction: column; min-width: 74px; padding: 8px 11px; background: var(--surface); border: 1px dashed var(--muted); border-radius: 10px; transition: transform .35s var(--ease-spring), border-color .3s; }
.ports li:hover { transform: rotate(-3deg) translateY(-3px); border-color: var(--verm); }
.ports b { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.3rem; line-height: 1.1; color: var(--violet); direction: ltr; text-align: start; }
.ports span { font-size: .76rem; color: var(--ink-2); }
.win-booth { margin: 0; padding: 7px 7px 10px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); rotate: 2deg; }
.win-booth img { width: 100%; height: auto; border-radius: 9px; }
.win-booth figcaption, .snap figcaption { padding: 7px 4px 0; font-size: .76rem; line-height: 1.35; color: var(--muted); }

/* Skills */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.skill-card { padding: 24px clamp(18px, 2.4vw, 28px); }
.skill-card + .skill-card { border-inline-start: 1px solid var(--line); }
.skill-ico { width: 30px; height: 30px; margin-bottom: 10px; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; overflow: visible; transition: transform .5s var(--ease-spring); }
.skill-card:hover .skill-ico { transform: rotate(-10deg) scale(1.12); }
.skill-card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { padding: 5px 11px; border-radius: 8px; background: var(--bg-2); font-size: .84rem; font-weight: 600; transition: transform .3s var(--ease-spring), background .3s; }
.chips li:hover { transform: translateY(-3px); background: var(--violet-soft); }

/* Training + beyond */
.beyond-grid { display: grid; grid-template-columns: 1.1fr 1fr .72fr; gap: clamp(22px, 3.4vw, 44px); align-items: start; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ledger-date { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); padding-top: 3px; }
.ledger b { display: block; font-weight: 700; line-height: 1.35; }
.ledger span:not(.ledger-date) { display: block; color: var(--ink-2); font-size: .88rem; line-height: 1.45; margin-top: 2px; }
.certs { display: flex; gap: 8px; margin-top: 4px; }
.cert { flex: 1; min-width: 0; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; transition: transform .35s var(--ease-spring), border-color .3s; }
.cert:hover { transform: translateY(-4px) rotate(-1.5deg); border-color: var(--violet); }
.cert img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.snaps { position: relative; aspect-ratio: 4 / 6.6; min-height: 300px; }
.snap { position: absolute; margin: 0; padding: 7px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease-out); }
.snap img { border-radius: 7px; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.snap-a { width: 74%; top: 0; inset-inline-start: 0; rotate: -4deg; }
.snap-b { width: 66%; bottom: 0; inset-inline-end: 0; rotate: 5deg; }

/* Zoom dialog */
.zoom { padding: 0; border: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; cursor: zoom-out; }
.zoom::backdrop { background: rgba(17, 13, 30, .82); backdrop-filter: blur(4px); }
.zoom[open] { animation: zoomIn .35s var(--ease-spring); }
.zoom img { display: block; max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: 12px; }
.zoom-close { position: absolute; top: -14px; inset-inline-end: -14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: #1B1433; font-size: 1.4rem; line-height: 1; cursor: pointer; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.9); } }

/* Contact */
.contact { padding-bottom: 8px; }
.contact-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 52px); background: var(--violet); color: #fff; --verm: #FFC5AF; }
:root[data-theme="dark"] .contact-card { background: #33236B; }
.contact-card .eyebrow { color: #fff; opacity: .8; }
.contact-card h2 { margin-bottom: 10px; }
.contact-card h2 em { color: #FFC5AF; }
.contact-card > p { margin: 0 0 26px; max-width: 520px; opacity: .92; }
.contact-art { float: inline-end; width: clamp(110px, 15vw, 168px); margin: -6px 0 16px 22px; padding: 5px; background: #fff; border: 0; border-radius: 12px; cursor: zoom-in; rotate: 4deg; box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .55); transition: rotate .45s var(--ease-spring), scale .45s var(--ease-spring); }
[dir="rtl"] .contact-art { margin: -6px 22px 16px 0; rotate: -4deg; }
.contact-art:hover { rotate: 0deg; scale: 1.04; }
.contact-art img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 8px; }
.contact-grid { clear: both; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.c-item { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: start; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: inherit; font: inherit; text-decoration: none; cursor: pointer; transition: background .3s, transform .35s var(--ease-spring), scale .45s var(--ease-spring); }
.c-item:hover { background: rgba(255, 255, 255, .2); }
.c-item .c-ico { width: 32px; height: 32px; margin-bottom: 8px; }
.c-label { font-family: var(--font-mono); font-size: .74rem; opacity: .8; }
.c-val { font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.c-hint { font-size: .8rem; opacity: .75; }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1160px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 30px; color: var(--muted); font-size: .9rem; }
.footer p { margin: 0; }
.to-top { position: relative; overflow: hidden; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; font-weight: 700; transition: transform .35s var(--ease-spring), background .3s, scale .45s var(--ease-spring); }
.to-top:hover { transform: translateY(-4px); background: var(--violet-soft); }

/* Toast + confetti */
.toast { position: fixed; bottom: 28px; left: 50%; translate: -50% 120px; background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow-lg); z-index: 80; transition: translate .5s var(--ease-spring); pointer-events: none; }
.toast.show { translate: -50% 0; }
.toast:not(.show) { visibility: hidden; transition: translate .5s var(--ease-spring), visibility 0s .5s; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; width: 100%; height: 100%; }

/* ============ Icons (bespoke sprite in index.html) ============ */
.ico { display: inline-block; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; vertical-align: -0.2em; }
symbol .ac { fill: var(--verm); stroke: none; }
symbol .ac-line { stroke: var(--verm); }

/* ============ Reveal + tilt ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }
.tilt { transition: transform .5s var(--ease-out); will-change: transform; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 8px; }
  .hero-visual { order: -1; margin: 6px 0 14px; }
  .hero-route, .hero-cta { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .photo-wrap { width: min(280px, 62vw); }
  .chip-1 { inset-inline-start: -24%; }
  .chip-2 { inset-inline-start: -26%; }
  .ticket { margin-inline: 16px; }
  .about, .skill-grid { grid-template-columns: 1fr; }
  .wins { grid-template-columns: 170px 1fr; }
  .win-booth { grid-column: 1 / -1; max-width: 420px; justify-self: center; }
  .skill-card + .skill-card { border-inline-start: 0; border-top: 1px solid var(--line); }
  .beyond-grid { grid-template-columns: 1fr 1fr; }
  .snaps { grid-column: 1 / -1; aspect-ratio: auto; display: flex; justify-content: center; gap: 18px; min-height: 0; }
  .snap { position: relative; inset: auto; width: min(42%, 220px); }
  .snap-a, .snap-b { width: min(44%, 220px); top: auto; bottom: auto; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-links { position: fixed; inset: 70px 16px auto; flex-direction: column; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .3s, transform .35s var(--ease-out); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .role ul { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ticket { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 2px dashed color-mix(in srgb, var(--bg) 25%, transparent); }
  .role summary { flex-wrap: wrap; gap: 6px 10px; padding: 13px 15px; }
  .role-date { width: auto; flex: 1; }
  .role-main { flex-basis: 100%; order: 3; }
  .beyond-grid { grid-template-columns: 1fr; }
  .wins { grid-template-columns: 1fr; }
  .win-award { max-width: 240px; justify-self: center; }
  .stamp { width: 86px; height: 86px; }
  .stamp-core { width: 26px; height: 26px; }
  .float-chip { font-size: .76rem; padding: 7px 10px; }
  .chip-1 { inset-inline-start: -20%; }
  .chip-2 { inset-inline-start: -22%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .logo { font-size: 1.2rem; }
  .nav { padding-inline: 12px; }
  .lang-switch button { min-width: 30px; padding: 0 5px; }
}

/* Reduced-motion users keep the animations; only page-level movement is removed */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; }
}
