:root {
  color-scheme: dark;
  --bg: #0b0e13;
  --bg-deep: #080b0f;
  --surface: #141923;
  --surface-2: #19202c;
  --surface-3: #202938;
  --text: #f5f7fa;
  --text-soft: #c3cad5;
  --muted: #929dad;
  --accent: #69a4ff;
  --accent-strong: #1d67d6;
  --accent-hover: #2877e5;
  --accent-ink: #07111f;
  --positive: #49d17d;
  --positive-ink: #07120b;
  --signal: #f5c451;
  --signal-bright: #ffdd82;
  --signal-ink: #171104;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(105, 164, 255, 0.38);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shell: 1180px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(56, 119, 214, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="he"] body { font-family: "Heebo", sans-serif; }

a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, a, select { touch-action: manipulation; }
img { display: block; max-width: 100%; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 960px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 1000;
  translate: 0 -160%;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transition: translate 180ms ease;
}
.skip-link:focus { translate: 0; }

.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 1001; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--signal), var(--accent)); transform: scaleX(0); transform-origin: left center; will-change: transform; }
html[dir="rtl"] .scroll-progress span { transform-origin: right center; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 19, 0.88);
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-height: 48px; display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -0.02em; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(105, 164, 255, 0.08); color: var(--accent); font-size: 12px; letter-spacing: 0.08em; }
.brand-name { white-space: nowrap; }

.desktop-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 650; }
.desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; position: relative; transition: color 180ms ease; }
.desktop-nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 6px; height: 2px; border-radius: 10px; background: var(--accent); scale: 0 1; transition: scale 180ms ease; }
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a:hover::after { scale: 1 1; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); }
.language-switch button { min-width: 78px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; transition: color 180ms ease, background 180ms ease; }
.language-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px rgba(105,164,255,.35); }
.header-call { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid rgba(245,196,81,.52); border-radius: 13px; background: rgba(245,196,81,.1); color: var(--signal-bright); font-size: 12px; font-weight: 800; transition: background 180ms ease, translate 180ms ease, box-shadow 180ms ease; }
.header-call strong { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.header-call:hover { background: rgba(245,196,81,.17); translate: 0 -1px; box-shadow: 0 9px 28px rgba(245,196,81,.12); }
.call-pulse { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(245,196,81,.42); animation: callPulse 2.2s ease-out infinite; }

.hero { --mx: 68%; --my: 42%; position: relative; min-height: min(850px, 100dvh); display: grid; align-items: center; padding: calc(var(--header-height) + 84px) 0 92px; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -72px; z-index: -3; pointer-events: none; opacity: .64; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,.82) 66%, transparent 100%); animation: gridDrift 18s linear infinite; }
.hero-atmosphere { position: absolute; width: 580px; height: 580px; inset-inline-end: max(-120px, calc((100vw - var(--shell))/2 - 90px)); inset-block-start: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(105,164,255,.17), rgba(105,164,255,.035) 48%, transparent 70%); filter: blur(12px); pointer-events: none; }
.hero-beam { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle 340px at var(--mx) var(--my), rgba(105,164,255,.18), rgba(105,164,255,.045) 42%, transparent 72%); transition: background-position 100ms linear; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); align-items: center; gap: clamp(54px, 8vw, 108px); }
.hero-copy { max-width: 690px; }
.eyebrow, .section-kicker { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; font-family: "Archivo Black", "Manrope", sans-serif; font-size: clamp(52px, 6.4vw, 92px); line-height: .96; letter-spacing: -.055em; font-weight: 400; }
html[lang="he"] .hero h1 { font-family: "Heebo", sans-serif; letter-spacing: -.04em; font-weight: 900; }
.hero-role { margin: 24px 0 0; color: var(--text-soft); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.45; font-weight: 650; }
.hero-lead { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-proof { width: fit-content; max-width: 620px; display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(105,164,255,.07); color: var(--text-soft); font-size: 14px; line-height: 1.45; }
.proof-number { flex: 0 0 auto; color: var(--accent); font-size: 25px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid transparent; border-radius: 13px; font-weight: 800; font-size: 14px; cursor: pointer; transition: background 180ms ease, border-color 180ms ease, translate 180ms ease, color 180ms ease; }
.button:hover { translate: 0 -2px; }
.button-primary { background: var(--accent-strong); color: white; box-shadow: 0 14px 34px rgba(29,103,214,.22); }
.button-primary:hover { background: var(--accent-hover); }
html[dir="rtl"] .button-primary svg { transform: scaleX(-1); }
.phone-button { position: relative; min-height: 66px; justify-content: flex-start; gap: 13px; padding: 8px 22px 8px 10px; overflow: hidden; background: linear-gradient(135deg, var(--signal-bright), var(--signal)); color: var(--signal-ink); box-shadow: 0 16px 40px rgba(245,196,81,.2); animation: callGlow 3.2s ease-in-out infinite; }
html[dir="rtl"] .phone-button { padding: 8px 10px 8px 22px; }
.phone-button::after { content: ""; position: absolute; inset: -80% auto -80% -28%; width: 25%; transform: rotate(18deg); background: rgba(255,255,255,.5); filter: blur(6px); animation: phoneShine 3.8s ease-in-out infinite; }
.phone-button:hover { background: linear-gradient(135deg, #ffe294, var(--signal-bright)); box-shadow: 0 20px 54px rgba(245,196,81,.28); }
.phone-icon-wrap { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(23,17,4,.1); }
.phone-icon-wrap svg { width: 22px; height: 22px; }
.phone-cta-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
html[dir="rtl"] .phone-cta-copy { align-items: flex-end; }
.phone-cta-copy small { margin-bottom: 5px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.phone-cta-copy strong { font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.035); color: var(--text); }
.button-secondary:hover { border-color: var(--line-strong); background: rgba(105,164,255,.08); }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; }
.quick-links a { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; transition: color 180ms ease; }
.quick-links a:hover { color: var(--text); }
.quick-icon { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: 12px; font-weight: 800; }

.portrait-wrap { width: min(100%, 430px); justify-self: end; position: relative; z-index: 1; perspective: 900px; }
html[dir="rtl"] .portrait-wrap { justify-self: start; }
.portrait-frame { position: relative; aspect-ratio: .86; padding: 8px; border-radius: 46% 46% 24px 24px; background: linear-gradient(145deg, rgba(105,164,255,.9), rgba(245,196,81,.24) 48%, rgba(255,255,255,.14)); box-shadow: var(--shadow), 0 0 90px rgba(105,164,255,.12); transition: transform 300ms ease-out, box-shadow 300ms ease-out; }
.portrait-wrap:hover .portrait-frame { transform: translateY(-5px) rotateX(1.5deg); box-shadow: 0 34px 90px rgba(0,0,0,.42), 0 0 100px rgba(105,164,255,.18); }
.portrait-frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.13); border-radius: inherit; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: calc(46% - 4px) calc(46% - 4px) 18px 18px; background: var(--surface); }
.portrait-note { position: absolute; inset-inline-start: -34px; inset-block-end: 26px; max-width: 240px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(20,25,35,.94); backdrop-filter: blur(12px); color: var(--text-soft); font-size: 12px; font-weight: 700; line-height: 1.4; box-shadow: 0 16px 36px rgba(0,0,0,.3); }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 4px rgba(73,209,125,.14); }
.portrait-orbit { position: absolute; inset: -28px; z-index: -1; border: 1px solid rgba(105,164,255,.2); border-radius: 48% 48% 28px 28px; pointer-events: none; animation: orbitRotate 11s linear infinite; }
.portrait-orbit span { position: absolute; inset-block-start: -5px; inset-inline-start: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.portrait-orbit.orbit-two { inset: -48px; opacity: .42; border-style: dashed; animation-duration: 17s; animation-direction: reverse; }
.portrait-orbit.orbit-two span { inset-block-start: auto; inset-block-end: -4px; background: var(--signal); box-shadow: 0 0 18px var(--signal); }

.signal-strip { position: relative; overflow: hidden; border-bottom: 1px solid rgba(245,196,81,.25); background: var(--signal); color: var(--signal-ink); }
.signal-track { width: max-content; display: flex; align-items: center; min-height: 58px; animation: signalMarquee 24s linear infinite; }
.signal-track span { display: block; padding-inline-end: 40px; white-space: nowrap; font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.signal-strip:hover .signal-track { animation-play-state: paused; }

.metrics-section { position: relative; padding: 0; border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { position: relative; min-height: 184px; display: flex; flex-direction: column; justify-content: center; padding: 28px clamp(18px, 3vw, 38px); overflow: hidden; border-inline-end: 1px solid var(--line); }
.metric::before { content: ""; position: absolute; inset: auto 12% 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: scaleX(0); transition: transform 500ms ease-out; }
.metric.is-visible::before { transform: scaleX(1); }
.metric:last-child { border-inline-end: 0; }
.metric-value { margin: 0; color: var(--text); font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.04em; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 0 36px rgba(105,164,255,.12); }
.metric-label { max-width: 190px; margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; font-weight: 650; }

.section { padding: 112px 0; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading h2, .contact-section h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }

.experience-section { background: linear-gradient(180deg, rgba(255,255,255,.012), transparent 22%); }
.focus-control { margin-bottom: 44px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.focus-copy { margin-bottom: 18px; }
.focus-label { display: block; color: var(--text); font-weight: 800; }
.focus-hint { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.focus-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.focus-tabs button { min-height: 48px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
.focus-tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.focus-tabs button[aria-pressed="true"] { border-color: var(--line-strong); background: var(--accent-strong); color: white; }
.focus-select-wrap { display: none; }
.experience-content { min-height: 360px; }
.timeline { display: grid; gap: 18px; }
.job-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: border-color 220ms ease, background 220ms ease; }
.job-card:hover { border-color: rgba(105,164,255,.28); background: var(--surface-2); }
.job-meta { padding-inline-end: 24px; border-inline-end: 1px solid var(--line); }
.job-period { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.job-company { margin: 0; color: var(--text); font-size: 17px; line-height: 1.3; font-weight: 800; }
.job-sub, .job-location { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.job-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.job-role { margin: 0; font-size: 18px; line-height: 1.35; }
.job-outcome { flex: 0 0 auto; padding: 5px 9px; border-radius: 8px; background: rgba(105,164,255,.1); color: var(--accent); font-size: 11px; font-weight: 800; }
.job-bullets { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.job-bullets li { position: relative; padding-inline-start: 18px; color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.job-bullets li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.more-details { margin-top: 14px; }
.more-details summary { width: fit-content; min-height: 44px; display: flex; align-items: center; color: var(--accent); font-size: 13px; font-weight: 750; cursor: pointer; }
.more-details summary::marker { color: var(--accent); }
.more-details ul { margin-top: 10px; }
.summary-intro { margin-bottom: 18px; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: rgba(105,164,255,.055); color: var(--text-soft); font-size: 18px; line-height: 1.75; }
.summary-list { display: grid; gap: 10px; }
.summary-row { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 24px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.summary-row-meta { display: flex; flex-direction: column; gap: 4px; }
.summary-row-company { color: var(--text); font-weight: 800; }
.summary-row-period { color: var(--accent); font-size: 12px; font-weight: 700; }
.summary-row p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }

.stack-section { background: var(--bg-deep); }
.stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.stack-card { min-height: 330px; padding: clamp(28px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.stack-card-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(105,164,255,.08); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.stack-card-icon.accent { background: var(--accent); color: var(--accent-ink); }
.stack-card h3 { margin: 0 0 24px; font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { min-height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.022); color: var(--text-soft); font-size: 13px; font-weight: 650; }
.chip-mark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-3); color: var(--accent); font-size: 9px; font-weight: 800; }

.foundation-grid { display: grid; grid-template-columns: 1.05fr 1.2fr .75fr; gap: 18px; }
.foundation-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.card-label { margin: 0 0 24px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.foundation-list { display: grid; gap: 24px; }
.foundation-item + .foundation-item { padding-top: 24px; border-top: 1px solid var(--line); }
.foundation-period { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.foundation-title { margin: 0; color: var(--text); font-size: 15px; line-height: 1.45; font-weight: 800; }
.foundation-detail { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.language-list { display: grid; gap: 0; }
.language-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.language-item:first-child { padding-top: 0; }
.language-item:last-child { padding-bottom: 0; border-bottom: 0; }
.language-name { color: var(--text); font-weight: 750; }
.language-level { color: var(--muted); font-size: 13px; }

.contact-section { padding: 112px 0; background: linear-gradient(140deg, rgba(105,164,255,.1), transparent 40%), var(--surface); }
.contact-inner { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); align-items: center; gap: 64px; }
.contact-inner > div:first-child > p:last-child { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
html[dir="rtl"] .contact-actions { justify-content: flex-start; }
.contact-call-button { width: 100%; min-height: 62px; background: var(--signal); color: var(--signal-ink); box-shadow: 0 14px 38px rgba(245,196,81,.16); }
.contact-call-button:hover { background: var(--signal-bright); }
.contact-call-button strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.whatsapp-button { width: 100%; background: var(--positive); color: var(--positive-ink); }
.whatsapp-button svg { fill: currentColor; stroke: none; }
.whatsapp-button:hover { background: #5dde8d; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; color: var(--accent); font-size: 13px; font-weight: 800; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-footer { padding: 24px 0; border-top: 1px solid var(--line); background: var(--bg-deep); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-soft); font-weight: 700; }

.floating-call { position: fixed; z-index: 90; inset-inline-end: 22px; inset-block-end: 22px; min-height: 62px; display: flex; align-items: center; gap: 11px; padding: 7px 15px 7px 7px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: var(--signal); color: var(--signal-ink); box-shadow: 0 20px 60px rgba(0,0,0,.42), 0 0 0 0 rgba(245,196,81,.3); opacity: 0; visibility: hidden; transform: translateY(18px) scale(.96); transition: opacity 220ms ease, transform 220ms ease, visibility 220ms; }
html[dir="rtl"] .floating-call { padding: 7px 7px 7px 15px; }
body.call-dock-visible .floating-call { opacity: 1; visibility: visible; transform: none; animation: dockPulse 3.6s ease-in-out infinite; }
.floating-call-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: rgba(23,17,4,.1); }
.floating-call-icon svg { width: 22px; height: 22px; }
.floating-call-copy { display: flex; flex-direction: column; line-height: 1.15; }
.floating-call-copy small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.floating-call-copy strong { margin-top: 3px; font-size: 15px; font-variant-numeric: tabular-nums; }

.js .hero-enter { opacity: 0; transform: translateY(24px); filter: blur(8px); }
.js body.is-ready .hero-enter { opacity: 1; transform: none; filter: blur(0); transition: opacity 520ms cubic-bezier(.16,.84,.44,1), transform 520ms cubic-bezier(.16,.84,.44,1), filter 520ms ease; transition-delay: var(--enter-delay, 0ms); }
.reveal { opacity: 0; transform: translateY(24px); filter: blur(5px); transition: opacity 400ms ease-out, transform 400ms cubic-bezier(.16,.84,.44,1), filter 400ms ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.is-visible { filter: blur(0); }

@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(245,196,81,.42); } 70%,100% { box-shadow: 0 0 0 9px rgba(245,196,81,0); } }
@keyframes gridDrift { to { transform: translate3d(72px,72px,0); } }
@keyframes orbitRotate { to { transform: rotate(360deg); } }
@keyframes phoneShine { 0%,22% { transform: translateX(-180%) rotate(18deg); } 46%,100% { transform: translateX(690%) rotate(18deg); } }
@keyframes callGlow { 0%,100% { box-shadow: 0 16px 40px rgba(245,196,81,.18); } 50% { box-shadow: 0 18px 54px rgba(245,196,81,.31); } }
@keyframes signalMarquee { to { transform: translateX(-50%); } }
@keyframes dockPulse { 0%,100% { box-shadow: 0 20px 60px rgba(0,0,0,.42), 0 0 0 0 rgba(245,196,81,.24); } 50% { box-shadow: 0 20px 60px rgba(0,0,0,.42), 0 0 0 10px rgba(245,196,81,0); } }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 72px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 48px; }
  .hero h1 { font-size: clamp(50px, 7.2vw, 72px); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-inline-end: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foundation-grid { grid-template-columns: 1fr 1fr; }
  .foundation-card:last-child { grid-column: 1 / -1; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-actions { justify-content: flex-start; max-width: 520px; }
}

@media (max-width: 720px) {
  :root { --header-height: 68px; }
  .shell, .narrow { width: min(calc(100% - 32px), var(--shell)); }
  .brand-name { display: none; }
  .brand { min-width: 44px; }
  .brand-mark { width: 44px; height: 44px; }
  .language-switch button { min-width: 70px; padding-inline: 12px; }
  .header-actions { gap: 8px; }
  .header-call { width: 46px; min-height: 46px; padding: 0; }
  .header-call > span:not(.call-pulse), .header-call strong { display: none; }
  .header-call { position: relative; }
  .header-call .call-pulse { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; margin: 0; }

  .hero { padding: calc(var(--header-height) + 52px) 0 72px; }
  .hero::before { background-size: 52px 52px; opacity: .42; }
  .hero-atmosphere { width: 420px; height: 420px; inset-inline-end: -210px; inset-block-start: 120px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 52px; }
  .hero-copy { max-width: none; }
  .eyebrow { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(45px, 14vw, 62px); }
  .hero-role { margin-top: 18px; font-size: 17px; }
  .hero-lead { margin-top: 17px; font-size: 16px; line-height: 1.72; }
  .hero-proof { max-width: none; margin-top: 22px; padding: 13px 15px; }
  .proof-number { font-size: 22px; }
  .hero-cta-row { margin-top: 26px; }
  .hero-cta-row .button { flex: 1 1 150px; }
  .quick-links { margin-top: 18px; flex-direction: column; gap: 0; }
  .portrait-wrap { width: min(88%, 340px); align-self: center; justify-self: auto; }
  html[dir="rtl"] .portrait-wrap { justify-self: auto; }
  .portrait-note { inset-inline-start: -10px; inset-block-end: 18px; }
  .portrait-orbit { inset: -18px; }
  .portrait-orbit.orbit-two { inset: -31px; }
  .signal-track { min-height: 50px; }
  .signal-track span { font-size: 11px; }

  .metric { min-height: 150px; padding: 24px 18px; }
  .metric-value { font-size: 36px; }
  .metric-label { font-size: 12px; }
  .section { padding: 84px 0; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .contact-section h2 { font-size: clamp(38px, 11vw, 52px); }
  .section-heading > p:last-child { font-size: 16px; }

  .focus-control { padding: 18px; margin-bottom: 28px; }
  .focus-tabs { display: none; }
  .focus-select-wrap { display: block; position: relative; }
  .focus-select-wrap::after { content: "⌄"; position: absolute; inset-inline-end: 15px; inset-block-start: 50%; translate: 0 -55%; color: var(--accent); pointer-events: none; }
  .focus-select-wrap select { width: 100%; min-height: 50px; padding: 0 42px 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; appearance: none; background: var(--bg); color: var(--text); font-weight: 750; }
  html[dir="rtl"] .focus-select-wrap select { padding: 0 14px 0 42px; }
  .job-card { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .job-meta { padding: 0 0 17px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .job-heading-row { flex-direction: column; gap: 8px; }
  .job-outcome { align-self: flex-start; }
  .summary-intro { padding: 22px; font-size: 16px; }
  .summary-row { grid-template-columns: 1fr; gap: 11px; padding: 20px; }
  .summary-row-meta { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; }

  .stack-grid, .foundation-grid { grid-template-columns: 1fr; }
  .stack-card { min-height: auto; padding: 28px; }
  .foundation-card:last-child { grid-column: auto; }
  .contact-section { padding: 84px 0; }
  .contact-actions .button-secondary { flex: 1 1 auto; }
  .footer-inner { align-items: flex-start; }
  .floating-call { inset-inline-end: 12px; inset-block-end: 12px; min-height: 58px; border-radius: 16px; }
  .floating-call-icon { width: 44px; height: 44px; }
}

@media (max-width: 390px) {
  .language-switch button { min-width: 62px; padding-inline: 9px; font-size: 12px; }
  .hero h1 { font-size: 44px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .button { flex-basis: auto; width: 100%; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { min-height: 126px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
}

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

@media print {
  .site-header, .skip-link, .scroll-progress, .hero-atmosphere, .hero-beam, .portrait-orbit, .signal-strip, .floating-call, .hero-cta-row, .quick-links, .focus-control, .contact-section, .site-footer { display: none !important; }
  body { background: white; color: black; }
  .hero, .section, .metrics-section { padding: 24px 0; border-color: #ddd; background: white; }
  .hero::before { display: none; }
  .hero-grid { grid-template-columns: 1fr 180px; }
  .portrait-frame { box-shadow: none; }
  .job-card, .stack-card, .foundation-card, .summary-row { break-inside: avoid; background: white; border-color: #ccc; color: black; }
  .job-bullets li, .hero-lead, .section-heading > p:last-child, .foundation-detail { color: #333; }
}

/* Keep the language switch at the exact physical center in both directions. */
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  direction: ltr;
}

.header-actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  direction: ltr;
}

html[dir="ltr"] .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  direction: ltr;
}

html[dir="ltr"] .desktop-nav {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  direction: ltr;
}

html[dir="rtl"] .brand {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  direction: rtl;
}

html[dir="rtl"] .desktop-nav {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  direction: rtl;
}

/* Directional, symmetrical revision */
.intro-sequence {
  --portrait-from-left: 0px;
  --portrait-from-top: 0px;
  --portrait-from-width: 1px;
  --portrait-from-height: 1px;
  --portrait-dx: 0px;
  --portrait-dy: 0px;
  --portrait-scale-x: 1;
  --portrait-scale-y: 1;
  --name-from-left: 0px;
  --name-from-top: 0px;
  --name-from-width: 1px;
  --name-from-height: 1px;
  --name-dx: 0px;
  --name-dy: 0px;
  --name-scale-x: 1;
  --name-scale-y: 1;
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
  pointer-events: none;
}
.intro-curtain {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(70,112,189,.18), transparent 34%),
    #080b10;
  opacity: 1;
  transition: opacity 760ms cubic-bezier(.65,0,.35,1), filter 760ms ease;
}
.intro-signal {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 49.8%, rgba(105,164,255,.42) 50%, transparent 50.2%);
  scale: 1 0;
  opacity: 0;
  transform-origin: center;
}
.intro-portrait {
  position: absolute;
  top: 47%;
  left: 50%;
  width: clamp(230px, 24vw, 330px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(105,164,255,.5);
  border-radius: 44% 44% 24px 24px;
  background: #111720;
  box-shadow: 0 32px 90px rgba(0,0,0,.58), 0 0 0 10px rgba(105,164,255,.04);
  opacity: 0;
  filter: blur(14px);
  transform: translate(-50%,-54%) scale(.78);
  transition: opacity 520ms ease, filter 720ms ease, transform 820ms cubic-bezier(.16,1,.3,1), border-radius 760ms ease, box-shadow 760ms ease;
  will-change: transform, opacity, filter;
}
.intro-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.intro-name {
  position: absolute;
  top: calc(47% + clamp(190px, 18vw, 260px));
  left: 50%;
  width: min(90vw, 540px);
  max-width: none;
  color: var(--text);
  font-family: "Archivo Black", "Manrope", sans-serif;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: .95;
  letter-spacing: -.045em;
  text-align: center;
  opacity: 0;
  filter: blur(10px);
  transform: translate(-50%,24px) scale(.94);
  transition: opacity 520ms ease, filter 620ms ease, transform 820ms cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity, filter;
}
html[dir="rtl"] .intro-name { font-family: "Heebo", sans-serif; font-weight: 900; letter-spacing: -.04em; }
.intro-sequence.is-portrait-visible .intro-portrait { opacity: 1; filter: blur(0); transform: translate(-50%,-54%) scale(1); }
.intro-sequence.is-name-visible .intro-name { opacity: 1; filter: blur(0); transform: translate(-50%,0) scale(1); }
.intro-sequence.is-name-visible .intro-signal { animation: introSignal 640ms cubic-bezier(.16,1,.3,1) both; }
.intro-sequence.is-prepared .intro-portrait {
  top: var(--portrait-from-top);
  left: var(--portrait-from-left);
  width: var(--portrait-from-width);
  height: var(--portrait-from-height);
  transform: none;
  transform-origin: top left;
}
.intro-sequence.is-prepared .intro-name {
  top: var(--name-from-top);
  left: var(--name-from-left);
  width: var(--name-from-width);
  height: var(--name-from-height);
  max-width: none;
  transform: none;
  transform-origin: top left;
}
.intro-sequence.is-merging .intro-curtain { opacity: 0; filter: blur(20px); }
.intro-sequence.is-merging .intro-signal { opacity: 0; }
.intro-sequence.is-merging .intro-portrait {
  transform: translate(var(--portrait-dx), var(--portrait-dy)) scale(var(--portrait-scale-x), var(--portrait-scale-y));
  border-radius: 42% 42% 20px 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.32);
  transition-duration: 880ms;
}
.intro-sequence.is-merging .intro-name {
  transform: translate(var(--name-dx), var(--name-dy)) scale(var(--name-scale-x), var(--name-scale-y));
  transition-duration: 880ms;
}
body.intro-running { overflow: hidden; }
html.js body.intro-running .portrait-wrap,
html.js body.intro-running .hero h1 { opacity: 0 !important; }

.header-inner { gap: 28px; }
.header-actions { flex: 0 0 auto; }
.language-switch {
  position: relative;
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 150px;
  height: 52px;
  padding: 4px;
  overflow: hidden;
  isolation: isolate;
}
.language-thumb {
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border: 1px solid rgba(105,164,255,.48);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(105,164,255,.26), rgba(105,164,255,.11));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 5px 18px rgba(31,86,184,.18);
  transform: translateX(0);
  transition: transform 320ms cubic-bezier(.22,1,.36,1);
}
.language-switch[data-active-lang="he"] .language-thumb { transform: translateX(100%); }
.language-switch button {
  min-width: 0;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  transition: color 220ms ease;
}
.language-switch button[data-lang="en"] { direction: ltr; }
.language-switch button[aria-pressed="true"] { color: var(--text); background: transparent; box-shadow: none; }

.header-call {
  min-width: 164px;
  gap: 10px;
  padding: 0 16px;
  color: var(--signal-bright);
}
.header-call svg { flex: 0 0 auto; }
.header-call strong { color: var(--signal-bright); font-size: 14px; }

.hero { min-height: min(860px, 100svh); }
.hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .78; }
.hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(64px, 7vw, 112px);
  align-items: center;
  direction: ltr;
  z-index: 2;
}
html[dir="ltr"] .hero-copy { grid-column: 1; grid-row: 1; }
html[dir="ltr"] .portrait-wrap { grid-column: 2; grid-row: 1; justify-self: end; }
html[dir="rtl"] .hero-copy { grid-column: 2; grid-row: 1; }
html[dir="rtl"] .portrait-wrap { grid-column: 1; grid-row: 1; justify-self: start; }
html[dir="rtl"] .hero-copy { direction: rtl; }
.hero-copy { width: 100%; max-width: 600px; }
.hero h1 { margin: 0; }
.hero-role { margin-top: 24px; }
.hero-lead { max-width: 620px; margin-top: 22px; }
.portrait-wrap { width: min(34vw, 420px); transition: opacity 120ms ease; }
.portrait-frame { aspect-ratio: 3 / 4; }
.portrait-frame img { object-position: center top; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  width: 100%;
  margin-top: 32px;
}
.contact-card,
.resume-button {
  min-width: 0;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.contact-card svg,
.resume-button svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card span { min-width: 0; overflow-wrap: anywhere; }
.contact-card:hover,
.resume-button:hover { transform: translateY(-2px); border-color: rgba(105,164,255,.6); background: rgba(105,164,255,.09); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.contact-card.whatsapp { border-color: rgba(37,211,102,.42); color: #9af1ba; background: rgba(37,211,102,.08); }
.contact-card.whatsapp svg { fill: currentColor; stroke: none; }
.contact-card.whatsapp:hover { border-color: rgba(37,211,102,.72); background: rgba(37,211,102,.15); box-shadow: 0 12px 34px rgba(37,211,102,.1); }
.resume-button { grid-column: auto; min-height: 64px; }

.metrics-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.metric { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.metric:nth-child(-n+2) { border-bottom: 0; }
.metric:nth-child(2) { border-inline-end: 1px solid var(--line); }
.metric:last-child { border-inline-end: 0; }
.narrow { width: min(calc(100% - 40px), var(--shell)); }
.section-heading { position: relative; margin-inline: auto; text-align: center; }
.section-heading > p:last-child { margin-inline: auto; }
.section-index { display: block; margin-bottom: 10px; color: var(--accent); font-size: 13px; font-weight: 850; letter-spacing: .18em; }
.focus-control { grid-template-columns: auto minmax(0,1fr); align-items: center; }
.focus-label { white-space: nowrap; }
.job-card { grid-template-columns: minmax(190px,.34fr) minmax(0,1fr); }
.job-role { margin-bottom: 20px; }
.stack-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.stack-card { height: 100%; }
.stack-card h3 { margin-top: 0; }
.tool-logo { width: 30px; height: 30px; flex: 0 0 auto; display: inline-grid; place-items: center; padding: 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.tool-logo img { width: 21px; height: 21px; object-fit: contain; }
.tool-logo.duo { width: 44px; grid-template-columns: repeat(2,1fr); gap: 2px; padding-inline: 3px; }
.tool-logo.duo img { width: 17px; height: 17px; }
.chip { min-height: 48px; padding: 8px 14px; font-size: 14px; }
.foundation-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; }
.foundation-card { height: 100%; }
.foundation-card:last-child { grid-column: auto; }

.contact-inner { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(56px,7vw,110px); }
.contact-copy { max-width: 580px; }
.footer-contact-grid { margin-top: 0; align-self: center; }
.site-footer .footer-inner { justify-content: center; text-align: center; }

.floating-call {
  width: 60px;
  height: 60px;
  min-height: 60px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.48);
  background: radial-gradient(circle at 30% 22%, #fff6d1 0%, #f8d477 27%, #dfa83f 62%, #b87517 100%);
  color: #241604;
  box-shadow: 0 18px 52px rgba(0,0,0,.45), 0 0 0 5px rgba(245,196,81,.09), 0 0 36px rgba(245,196,81,.28);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(.22,1,.36,1), visibility 220ms, box-shadow 260ms ease, filter 260ms ease;
}
.floating-call svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.call-dock-visible .floating-call:hover { transform: translateY(-5px) scale(1.08) rotate(-4deg); filter: saturate(1.1) brightness(1.05); box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 8px rgba(245,196,81,.12), 0 0 48px rgba(245,196,81,.42); animation-play-state: paused; }
body.call-dock-visible .floating-call:hover svg { animation: phoneWiggle 520ms ease; }

@keyframes introSignal {
  0% { opacity: 0; scale: 1 0; }
  35% { opacity: 1; scale: 1 1; }
  100% { opacity: 0; scale: 1 1; }
}
@keyframes phoneWiggle { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 60% { transform: rotate(9deg); } }

@media (max-width: 1120px) {
  .hero-grid { gap: 48px; }
  .header-inner { gap: 18px; }
  .desktop-nav { gap: 20px; }
  .header-call { min-width: 150px; padding-inline: 12px; }
  .brand-name { display: none; }
  .contact-card, .resume-button { font-size: 14px; }
}

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .hero { min-height: auto; padding: calc(var(--header-height) + 64px) 0 76px; }
  .hero-grid { display: flex; flex-direction: column; gap: 64px; }
  .hero-copy { order: 1; max-width: 620px; }
  .portrait-wrap { order: 2; width: min(82vw, 390px); align-self: center; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-contact-grid { max-width: 620px; }
  .foundation-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric:nth-child(2) { border-inline-end: 0; }
}

@media (max-width: 600px) {
  .header-inner { gap: 8px; }
  .brand { min-width: 42px; }
  .brand-mark { width: 42px; height: 42px; }
  .header-actions { gap: 7px; }
  .language-switch { width: 126px; height: 48px; padding: 4px; }
  .language-switch button { padding: 0 5px; font-size: 12px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .contact-card, .resume-button { width: 100%; min-height: 60px; padding-inline: 9px; font-size: 12px; }
  .resume-button { grid-column: auto; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(even) { border-inline-end: 0; }
  .focus-control { display: block; }
  .focus-label { display: block; margin-bottom: 12px; }
  .job-card { grid-template-columns: 1fr; gap: 18px; }
  .job-meta { padding: 0 0 17px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .job-body { min-width: 0; }
  .foundation-grid, .stack-grid { grid-template-columns: 1fr; }
  .foundation-card:last-child { grid-column: auto; }
  .floating-call { width: 56px; height: 56px; min-height: 56px; inset-inline-end: 14px; inset-block-end: 14px; }
  .intro-name { top: calc(47% + 180px); font-size: clamp(34px,11vw,48px); }
}

@media (max-width: 390px) {
  .shell, .narrow { width: min(calc(100% - 24px), var(--shell)); }
  .brand { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .header-actions { width: auto; justify-content: flex-end; }
  .language-switch { width: 124px; }
  .contact-card, .resume-button { font-size: 12.5px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { border-inline-end: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-sequence { display: none; }
  body.intro-running { overflow: auto; }
  body.intro-running .portrait-wrap,
  body.intro-running .hero h1 { opacity: 1; }
}

@media print {
  .intro-sequence, .contact-grid, .floating-call { display: none !important; }
}

/* Focus heading sits on its own centered row in both reading directions. */
.focus-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.focus-label {
  margin: 0 0 14px;
  text-align: center;
}

/* Owner-only content editor, available with ?edit=1. */
.editor-launcher {
  position: fixed;
  z-index: 99;
  inset-inline-start: 50%;
  inset-block-end: 18px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(105, 164, 255, .52);
  border-radius: 999px;
  background: rgba(18, 25, 36, .92);
  color: var(--text);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(18px) saturate(140%);
  translate: -50% 0;
  cursor: pointer;
  transition: translate 200ms ease, border-color 200ms ease, background 200ms ease;
}

.editor-launcher[hidden] { display: none; }
.editor-launcher:hover { translate: -50% -3px; border-color: var(--accent); background: var(--surface-2); }
.editor-launcher svg { width: 18px; height: 18px; }
body.intro-running .editor-launcher { opacity: 0; pointer-events: none; }

.content-editor {
  width: min(calc(100% - 32px), 940px);
  max-width: none;
  height: min(820px, calc(100dvh - 48px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(105, 164, 255, .38);
  border-radius: 24px;
  background: #10151e;
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
}

.content-editor::backdrop {
  background: rgba(3, 6, 10, .76);
  backdrop-filter: blur(8px);
}

.editor-panel { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.editor-header, .editor-footer { padding: 22px 24px; background: rgba(16, 21, 30, .96); }
.editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.editor-eyebrow { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.editor-header h2 { margin: 0; font-size: clamp(25px, 4vw, 36px); line-height: 1.15; letter-spacing: -.035em; }
.editor-header p:last-child { margin: 7px 0 0; max-width: 650px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.editor-icon-button { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; }
.editor-icon-button:hover { border-color: var(--line-strong); background: var(--surface-2); }
.editor-icon-button svg { width: 20px; height: 20px; }

.editor-fields { overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 28px; scrollbar-color: var(--surface-3) transparent; }
.editor-group { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .018); overflow: clip; }
.editor-group summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 16px; color: var(--text); font-weight: 800; cursor: pointer; }
.editor-group summary::marker { color: var(--accent); }
.editor-group summary span:last-child { color: var(--muted); font-size: 11px; font-weight: 650; }
.editor-group-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 4px 16px 18px; border-top: 1px solid var(--line); }
.editor-field { min-width: 0; display: grid; align-content: start; gap: 7px; padding-top: 14px; }
.editor-field > span { color: var(--muted); font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.editor-field textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  direction: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.editor-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(105, 164, 255, .14); }

.editor-footer { border-top: 1px solid var(--line); }
.editor-status { min-height: 20px; margin: 0 0 8px; color: #9af1ba; font-size: 12px; font-weight: 700; }
.editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.editor-button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 800; cursor: pointer; }
.editor-button:hover { border-color: var(--line-strong); background: var(--surface-2); }
.editor-button:disabled { opacity: .48; cursor: wait; }
.editor-button-primary { border-color: var(--accent); background: var(--accent-strong); color: white; }
.editor-button-danger { margin-inline-end: auto; border-color: rgba(255, 105, 105, .34); color: #ffaaaa; }

@media (max-width: 680px) {
  .content-editor { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .editor-header, .editor-footer { padding: 16px; }
  .editor-fields { padding: 12px 14px 22px; }
  .editor-group-fields { grid-template-columns: 1fr; }
  .editor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-button-danger { margin-inline-end: 0; }
  .editor-button { width: 100%; padding-inline: 9px; }
  .editor-launcher { inset-block-end: 14px; }
}

@media print {
  .editor-launcher, .content-editor { display: none !important; }
}

/* Simple inline owner editor: click highlighted copy and type in place. */
body.owner-edit-enabled { padding-bottom: 112px; }

.inline-editor-toolbar {
  position: fixed;
  z-index: 1200;
  left: 50%;
  right: auto;
  inset-block-end: 14px;
  width: min(calc(100% - 28px), 1040px);
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(105, 164, 255, .44);
  border-radius: 18px;
  background: rgba(14, 19, 28, .94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .055);
  backdrop-filter: blur(20px) saturate(145%);
  translate: -50% 0;
}

.inline-editor-toolbar[hidden] { display: none; }
.inline-editor-copy { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.inline-editor-copy > span:last-child { display: grid; }
.inline-editor-copy strong { font-size: 13px; line-height: 1.25; }
.inline-editor-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.inline-editor-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 5px rgba(73, 209, 125, .12), 0 0 20px rgba(73, 209, 125, .4); }
.inline-editor-toolbar .editor-status { min-height: 18px; margin: 0; text-align: center; }
.inline-editor-toolbar .editor-actions { flex-wrap: nowrap; }

.inline-editable {
  border-radius: 5px;
  outline: 1px dashed rgba(105, 164, 255, .42);
  outline-offset: 4px;
  cursor: text !important;
  transition: outline-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.inline-editable:hover {
  outline-color: rgba(105, 164, 255, .9);
  background: rgba(105, 164, 255, .075);
}

.inline-editable:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  background: rgba(105, 164, 255, .1);
  box-shadow: 0 0 0 7px rgba(105, 164, 255, .09);
}

body.inline-editor-dirty .inline-editor-dot {
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(245, 196, 81, .13), 0 0 20px rgba(245, 196, 81, .38);
}

.inline-editor-toolbar.is-saving .inline-editor-dot { animation: editorSaving 780ms ease-in-out infinite alternate; }
@keyframes editorSaving { to { opacity: .45; scale: .72; } }

@media (max-width: 760px) {
  body.owner-edit-enabled { padding-bottom: 174px; }
  .inline-editor-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 11px;
    border-radius: 16px;
  }
  .inline-editor-copy { justify-content: center; }
  .inline-editor-toolbar .editor-status { position: absolute; inset: auto 12px calc(100% + 8px); padding: 6px 10px; border-radius: 9px; background: var(--surface-2); }
  .inline-editor-toolbar .editor-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .inline-editor-toolbar .editor-button { width: 100%; min-height: 42px; }
  .inline-editor-toolbar .editor-button-danger { margin-inline-end: 0; }
}

@media print {
  .inline-editor-toolbar { display: none !important; }
  body.owner-edit-enabled { padding-bottom: 0; }
  .inline-editable { outline: 0; background: transparent; box-shadow: none; }
}
