/* ============================================================
   DESIGN TOKENS — dark, warm industrial-luxury palette
   sampled from the reference mood board (deep near-black
   brown, dark burgundy, muted tan, warm stone/cream)
   ============================================================ */
:root {
  --bg: #17100D;
  --surface: #241814;
  --surface-2: #2F211B;
  --surface-3: #3B2A22;
  --border: rgba(217, 198, 168, 0.14);
  --border-strong: rgba(217, 198, 168, 0.28);

  --tan: #B4A088;
  --stone: #E4D2B4;

  --text-heading: #F8F1E4;
  --text-body: #DED3C2;
  --text-muted: #B8A78D;

  --accent: #C24632;
  --accent-hover: #DE543C;
  --accent-glow: rgba(194, 70, 50, 0.45);
  --burgundy: #7A2320;
  --burgundy-hover: #96322D;

  --radius-s: 3px;
  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-body);
  background: var(--bg);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
a { color: inherit; }

/* ---------- centered section heading system ---------- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px auto; }
.section-heading {
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 650; color: var(--text-heading);
  letter-spacing: -0.01em; margin: 0 0 16px 0;
}
.section-heading::after {
  content: ""; display: block; width: 44px; height: 2px; margin: 18px auto 0 auto;
  background: linear-gradient(90deg, var(--accent), var(--burgundy));
}
.section-sub { color: var(--text-muted); font-size: 17px; margin: 0; }

section { padding: 100px 0; border-top: 1px solid var(--border); position: relative; }
section:first-of-type { border-top: none; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- nav ---------- */
#nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(23,16,13,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
#nav.scrolled { border-color: var(--border-strong); box-shadow: 0 8px 24px -16px rgba(0,0,0,0.6); }
#nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-name {
  font-weight: 750; font-size: 16px; text-decoration: none; letter-spacing: 0.03em;
  background: linear-gradient(100deg, var(--stone) 0%, var(--accent-hover) 55%, var(--tan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 14.5px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--stone); border-color: var(--accent); }
.nav-cv {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--burgundy)); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: var(--radius-s); font-size: 14px; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 6px 16px -12px var(--accent-glow);
}
.nav-cv::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .5s ease;
}
.nav-cv:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 22px -12px var(--accent-glow); }
.nav-cv:hover::before { transform: translateX(120%); }
.nav-cv:active { transform: translateY(0) scale(0.97); }
.lang-switch { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-right: 18px; }
.lang-switch-hint {
  font-size: 9px; color: var(--text-muted); white-space: nowrap; letter-spacing: 0.06em;
  text-transform: uppercase; border-right: none; padding-right: 0; line-height: 1;
}
.lang-switch-pills {
  display: flex; border: 1px solid var(--border-strong); border-radius: 20px; padding: 2px; gap: 2px; background: var(--surface);
}
.lang-pill {
  border: none; background: none; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: 16px; cursor: pointer; transition: background .2s, color .2s, transform .15s;
}
.lang-pill:hover { color: var(--stone); }
.lang-pill.active { background: linear-gradient(135deg, var(--accent), var(--burgundy)); color: #fff; }
.lang-pill:active { transform: scale(0.93); }
.lang-switch-mobile {
  margin: 14px 0 0 0; padding-top: 14px; border-top: 1px solid var(--border); flex-direction: column; align-items: center; gap: 6px;
}
.lang-switch-mobile .lang-switch-hint { border-right: none; padding-right: 0; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--stone); margin: 5px 0; transition: transform .2s, opacity .2s; }
#mobile-menu {
  display: none; flex-direction: column; gap: 2px; background: var(--surface);
  border-top: 1px solid var(--border); padding: 10px 28px 18px;
}
#mobile-menu a { text-decoration: none; color: var(--text-body); padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
#mobile-menu.open { display: flex; }

/* ---------- buttons (dynamic: shine sweep + lift + glow) ---------- */
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--accent), var(--burgundy)); color: #fff; text-decoration: none; padding: 14px 28px;
  border-radius: var(--radius-s); font-size: 14.5px; font-weight: 650; display: inline-block;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 8px 20px -14px var(--accent-glow);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .55s ease;
}
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 16px 34px -14px var(--accent-glow); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:active { transform: translateY(-1px) scale(0.98); }

.btn-secondary {
  position: relative; overflow: hidden;
  border: 1.5px solid var(--border-strong); color: var(--stone); text-decoration: none; padding: 13px 26px;
  border-radius: var(--radius-s); font-size: 14.5px; font-weight: 600; display: inline-block; background: transparent;
  transition: border-color .2s, background .2s, transform .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(194,70,50,0.09); color: var(--text-heading); transform: translateY(-3px); }
.btn-secondary:active { transform: translateY(-1px) scale(0.98); }

.btn-text {
  background: none; border: none; color: var(--stone); font-size: 13.5px; font-weight: 650;
  cursor: pointer; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s ease, color .2s ease; position: relative;
}
.btn-text::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 1.5px; background: var(--accent-hover);
  transition: width .25s ease;
}
.btn-text:hover { color: var(--accent-hover); gap: 11px; }
.btn-text:hover::after { width: calc(100% - 22px); }

/* ---------- hero ---------- */
#home { padding-top: 60px; padding-bottom: 84px; border-top: none; overflow: hidden; position: relative; }
.hero-glow {
  position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 20% 25%, rgba(194,70,50,0.22), transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 15%, rgba(122,35,32,0.20), transparent 70%),
    radial-gradient(ellipse 55% 60% at 55% 90%, rgba(185,186,163,0.10), transparent 70%);
  background-size: 160% 160%, 150% 150%, 170% 170%;
  animation: heroPanorama 22s ease-in-out infinite alternate;
  filter: blur(10px);
}
@keyframes heroPanorama {
  0%   { background-position: 0% 30%, 100% 0%, 40% 100%; }
  50%  { background-position: 30% 60%, 70% 30%, 60% 70%; }
  100% { background-position: 10% 10%, 90% 60%, 20% 90%; }
}
@media (prefers-reduced-motion: reduce) { .hero-glow, .hero-grid-lines { animation: none; } }
.hero-grid-lines { position: absolute; inset: 0; z-index: 0; opacity: 0.35; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, black, transparent 75%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-name { font-size: clamp(38px, 5.4vw, 60px); font-weight: 700; color: var(--text-heading); letter-spacing: -0.02em; margin: 0 0 8px 0; line-height: 1.05; }
.hero-title { font-size: clamp(19px, 2.1vw, 23px); color: var(--stone); font-weight: 600; margin: 0 0 10px 0; }
.hero-position { color: var(--accent-hover); font-size: 14px; font-weight: 650; letter-spacing: 0.04em; margin: 0 0 26px 0; text-transform: uppercase; }
.hero-intro { font-size: 17px; color: var(--text-body); max-width: 520px; margin: 0 0 34px 0; }
.hero-ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* cinematic entrance: hero elements fade + rise in on load, staggered */
.hero-position, .hero-name, .hero-title, .hero-intro, .hero-ctas, .hero-portrait-wrap {
  opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.hero-position { transition-delay: .1s; }
.hero-name { transition-delay: .22s; }
.hero-title { transition-delay: .34s; }
.hero-intro { transition-delay: .46s; }
.hero-ctas { transition-delay: .58s; }
.hero-portrait-wrap { transition-delay: .3s; transform: translateY(22px) scale(0.97); }
#home.hero-loaded .hero-position,
#home.hero-loaded .hero-name,
#home.hero-loaded .hero-title,
#home.hero-loaded .hero-intro,
#home.hero-loaded .hero-ctas { opacity: 1; transform: translateY(0); }
#home.hero-loaded .hero-portrait-wrap { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .hero-position, .hero-name, .hero-title, .hero-intro, .hero-ctas, .hero-portrait-wrap { opacity: 1; transform: none; transition: none; }
}
.hero-linkedin { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.hero-linkedin:hover { color: var(--stone); }
.hero-portrait-wrap { position: relative; }
.hero-portrait-frame {
  position: relative; padding: 0; border: none; background: none; box-shadow: none;
  display: flex; justify-content: center;
}
.hero-portrait-glow {
  position: absolute; z-index: 0; left: 50%; top: -8%; width: 130%; height: 118%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 42% 46% at 50% 46%, rgba(255,246,236,0.66), rgba(255,214,186,0.32) 46%, transparent 78%),
    radial-gradient(ellipse 58% 50% at 50% 34%, rgba(222,84,60,0.55), transparent 68%),
    radial-gradient(ellipse 70% 60% at 50% 68%, rgba(194,70,50,0.38), transparent 72%),
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(122,35,32,0.30), transparent 75%);
  filter: blur(38px); pointer-events: none;
  animation: portraitGlowPulse 7s ease-in-out infinite alternate;
}
@keyframes portraitGlowPulse { 0% { opacity: 0.85; transform: translateX(-50%) scale(1); } 100% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.hero-portrait-frame img {
  position: relative; z-index: 1; display: block; width: 100%; max-width: 300px; height: auto;
  object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0,0,0,0.5));
}
.hero-portrait-shadow {
  position: relative; z-index: 0; width: 56%; max-width: 190px; height: 20px; margin: -12px auto 0 auto;
  background: radial-gradient(ellipse closest-side, rgba(0,0,0,0.55), transparent 75%);
}
.hero-portrait-caption { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-muted); letter-spacing: 0.03em; max-width: 300px; margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { .hero-portrait-glow { animation: none; } }

/* ---------- about (editorial two-column, with decorative accents) ---------- */
#about { position: relative; overflow: hidden; }
.about-texture {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(217,198,168,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 85% 10%, black, transparent 70%);
}
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.about-me-col { position: relative; }
.about-quote-mark {
  position: absolute; top: -34px; left: -6px; font-size: 96px; line-height: 1; font-family: Georgia, serif;
  color: var(--accent); opacity: 0.22; user-select: none; pointer-events: none;
}
.about-col-label {
  position: relative; font-size: 12.5px; font-weight: 700; color: var(--tan); letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 22px 0; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.about-me-col p { position: relative; font-size: 16.5px; color: var(--text-body); margin: 0 0 20px 0; line-height: 1.75; }
.about-me-col p:last-child { margin-bottom: 0; }
.about-me-col strong { color: var(--stone); font-weight: 650; }
.about-pullquote {
  margin: 34px 0 0 0; padding: 22px 26px; border: none; border-left: 3px solid var(--accent);
  background: linear-gradient(100deg, rgba(194,70,50,0.10), transparent 70%);
  font-family: Georgia, serif; font-style: italic; font-size: 27px; line-height: 1.35; color: var(--text-heading);
  font-weight: 600; letter-spacing: -0.01em;
}
.about-focus-col { display: flex; flex-direction: column; position: relative; }
.focus-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); transition: transform .25s ease; cursor: default; }
.focus-item:first-of-type { border-top: none; padding-top: 0; }
.focus-item:hover { transform: translateX(6px); }
.focus-num { font-size: 13px; font-weight: 700; color: var(--tan); font-variant-numeric: tabular-nums; padding-top: 2px; flex-shrink: 0; opacity: 0.6; }
.focus-body { flex: 1; min-width: 0; }
.focus-row { display: flex; align-items: center; gap: 12px; }
.focus-icon {
  width: 28px; height: 28px; flex-shrink: 0; border: 1px solid var(--border-strong); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; color: var(--tan); padding: 6px;
  transition: color .2s, border-color .2s, background .2s;
}
.focus-icon svg { width: 100%; height: 100%; }
.focus-item:hover .focus-icon { color: var(--accent-hover); border-color: var(--accent); background: rgba(194,70,50,0.08); }
.focus-title { font-size: 16.5px; font-weight: 650; color: var(--stone); transition: color .2s; flex: 1; }
.focus-item:hover .focus-title { color: var(--accent-hover); }
.focus-arrow { color: var(--accent); font-size: 15px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.focus-item:hover .focus-arrow { opacity: 1; transform: translateX(0); }
.focus-methods { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; margin-left: 40px; letter-spacing: 0.01em; line-height: 1.5; }

/* ---------- wow transition (About -> Experience) ---------- */
.transition-section {
  padding: 130px 0; border-top: 1px solid var(--border); text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(0,0,0,0.15), transparent);
  position: relative;
}
.transition-glow {
  position: absolute; inset: -30% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 50% at 24% 40%, rgba(194,70,50,0.16), transparent 70%),
    radial-gradient(ellipse 34% 46% at 76% 60%, rgba(217,198,168,0.10), transparent 70%);
  filter: blur(20px);
  animation: transitionGlowDrift 16s ease-in-out infinite alternate;
}
@keyframes transitionGlowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -3%) scale(1.08); }
}
.transition-line {
  position: relative; z-index: 1; width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--tan), transparent);
  margin: 0 auto 56px auto; transition: width 1.4s cubic-bezier(.2,.7,.2,1);
  overflow: visible;
}
.transition-section.in-view .transition-line { width: min(560px, 70%); }
.transition-line::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 46px; height: 3px; margin-top: -1.5px;
  border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent-hover), transparent);
  opacity: 0; filter: blur(0.5px);
}
.transition-section.in-view .transition-line::after {
  opacity: 1; animation: transitionPulseTravel 3.2s 1.4s ease-in-out infinite;
}
@keyframes transitionPulseTravel {
  0% { left: -5%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.transition-wrap { position: relative; z-index: 1; will-change: transform; transition: transform .3s ease-out; }
.transition-text {
  font-size: clamp(22px, 3.4vw, 34px); font-weight: 600; color: var(--text-body); margin: 0 0 10px 0;
  opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease;
}
.transition-section.in-view .transition-text { opacity: 1; transform: translateY(0); }
.transition-text-2 {
  color: var(--text-heading); transition-delay: .45s; position: relative; display: inline-block;
}
.transition-accent {
  color: var(--accent-hover); position: relative; display: inline-block;
  animation: transitionAccentBreathe 3.6s ease-in-out 2.4s infinite;
}
.transition-accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--accent-hover); transition: width 1s cubic-bezier(.2,.7,.2,1) 1.1s;
}
.transition-section.in-view .transition-accent::after { width: 100%; }
@keyframes transitionAccentBreathe {
  0%, 100% { transform: scale(1); text-shadow: 0 0 0 rgba(222,84,60,0); }
  50% { transform: scale(1.045); text-shadow: 0 0 18px rgba(222,84,60,0.45); }
}
.transition-accent:hover { animation-play-state: paused; transform: scale(1.08); text-shadow: 0 0 22px rgba(222,84,60,0.6); }

/* small "process flow" motif: dots that light up in sequence, like a signal moving through steps */
.process-flow {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 40px; opacity: 0; transition: opacity .8s ease .6s;
}
.transition-section.in-view .process-flow { opacity: 1; }
.process-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0;
  animation: processDotPulse 2.8s ease-in-out infinite;
}
.process-seg {
  width: 34px; height: 1px; background: var(--border-strong); flex-shrink: 0; position: relative; overflow: hidden;
}
.process-seg::after {
  content: ""; position: absolute; inset: 0; background: var(--accent-hover); transform: scaleX(0); transform-origin: left;
  animation: processSegFill 2.8s ease-in-out infinite;
}
@keyframes processDotPulse {
  0%, 100% { background: var(--border-strong); box-shadow: none; }
  15%, 30% { background: var(--accent-hover); box-shadow: 0 0 10px rgba(222,84,60,0.7); }
}
@keyframes processSegFill {
  0%, 15% { transform: scaleX(0); }
  30%, 100% { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .transition-glow { animation: none; }
  .transition-accent { animation: none; }
  .process-dot, .process-seg::after { animation: none; }
  .transition-section.in-view .process-dot:nth-child(1),
  .transition-section.in-view .process-seg { background: var(--accent-hover); }
  .transition-accent::after { transition: none; width: 100%; }
}

/* ---------- experience timeline ---------- */
.timeline-rail { position: relative; }
.timeline-rail::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1px; background: var(--border); }
.exp-item { position: relative; padding-left: 48px; margin-bottom: 26px; }
.exp-dot { position: absolute; left: 9px; top: 30px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.exp-item.is-featured .exp-dot { border-color: var(--stone); width: 15px; height: 15px; left: 8px; }

.exp-card {
  border: 1px solid var(--border); background: var(--surface); scroll-margin-top: 90px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.exp-card:hover { border-color: var(--border-strong); }
.exp-card.is-featured { border-color: var(--border-strong); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }

.exp-card-inner { display: grid; grid-template-columns: 1fr 240px; gap: 0; }
.exp-card-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.exp-card-media {
  border-left: 1px solid var(--border); padding: 18px; display: flex; flex-direction: column; gap: 10px;
  justify-content: center; background: var(--surface-2);
}
.exp-media-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.exp-rotator {
  aspect-ratio: 1/1; border: 1px solid var(--border-strong); background: #0D0906; cursor: pointer;
  overflow: hidden; position: relative;
}
.exp-rotator .gallery-thumb.exp-rotator-slide {
  position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity .8s ease; aspect-ratio: auto;
}
.exp-rotator .gallery-thumb.exp-rotator-slide.active { opacity: 1; z-index: 2; }
.exp-rotator .gallery-thumb.exp-rotator-slide img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .6s ease; background: #0D0906; }
.exp-rotator .gallery-thumb.exp-rotator-slide.active img { animation: kenBurns 6s ease-in-out infinite alternate; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.045); } }
.exp-rotator:hover .gallery-thumb.exp-rotator-slide.active img { animation-play-state: paused; transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .exp-rotator .gallery-thumb.exp-rotator-slide.active img { animation: none; } }
.exp-rotator .gallery-thumb.exp-rotator-slide::after { display: none; }
.exp-media-placeholder {
  aspect-ratio: 1/1; border: 1px dashed var(--border-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; font-style: italic;
}
.exp-rotator-dots { display: flex; justify-content: center; gap: 6px; }
.rotator-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); transition: background .3s; }
.rotator-dot.active { background: var(--accent-hover); }
.exp-report-link { justify-content: center; margin-top: 2px; font-size: 12px; }
@media (max-width: 980px) {
  .exp-card-inner { grid-template-columns: 1fr; }
  .exp-card-media { border-left: none; border-top: 1px solid var(--border); }
  .exp-rotator, .exp-media-placeholder { max-width: 260px; margin: 0 auto; width: 100%; }
}
.exp-eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exp-date { font-size: 12px; font-weight: 650; color: var(--accent-hover); letter-spacing: 0.04em; text-transform: uppercase; }
.exp-dept { font-size: 12px; color: var(--text-muted); }
.exp-company-row { display: flex; align-items: center; gap: 10px; }
.exp-company-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 4px; }
.exp-company { font-size: 17px; font-weight: 650; color: var(--text-heading); margin: 0; }
.exp-theme { font-size: 14px; color: var(--stone); margin: 0; font-weight: 550; }
.exp-summary { font-size: 14px; color: var(--text-muted); margin: 2px 0 0 0; max-width: 620px; line-height: 1.55; }
.exp-tags-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.tool-tag {
  font-size: 11.5px; font-weight: 600; color: var(--stone); background: var(--surface-2);
  border: 1px solid var(--border); padding: 4px 11px; border-radius: 20px;
}
.exp-cta-row { margin-top: 4px; }

/* ---------- modal (experience & project detail) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,7,5,0.78); backdrop-filter: blur(3px);
  z-index: 100; display: none; align-items: flex-start; justify-content: center;
  padding: 48px 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  background: var(--surface); border: 1px solid var(--border-strong); max-width: 760px; width: 100%;
  animation: modalIn .28s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 32px 36px 20px 36px; border-bottom: 1px solid var(--border); }
.modal-eyebrow { font-size: 12.5px; font-weight: 650; color: var(--accent-hover); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.modal-title { font-size: 23px; font-weight: 650; color: var(--text-heading); margin: 0 0 6px 0; }
.modal-meta { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.modal-close { background: none; border: 1px solid var(--border-strong); color: var(--stone); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; flex-shrink: 0; transition: background .15s, transform .15s; }
.modal-close:hover { background: var(--surface-2); transform: rotate(90deg); }
.modal-body { padding: 28px 36px 36px 36px; }
.modal-project-nav {
  display: none; justify-content: space-between; gap: 12px; padding: 18px 36px;
  border-top: 1px solid var(--border); background: var(--surface-2);
}
.modal-nav-btn {
  background: none; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer;
  max-width: 46%; text-align: left; transition: color .2s; line-height: 1.4;
}
.modal-nav-btn-next { text-align: right; }
.modal-nav-btn:hover { color: var(--accent-hover); }
.interactive-links { display: flex; flex-wrap: wrap; gap: 12px; }
.interactive-link { font-size: 13.5px; padding: 10px 18px; }
.modal-section { margin-bottom: 26px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-label { font-size: 12.5px; font-weight: 700; color: var(--tan); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.modal-text { font-size: 14.5px; color: var(--text-body); margin: 0; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-step { font-size: 12.5px; font-weight: 600; color: var(--stone); border: 1px solid var(--border); background: var(--surface-2); padding: 7px 12px; }
.flow-sep { color: var(--tan); font-size: 13px; opacity: 0.6; }
.step-list { display: flex; flex-direction: column; }
.step-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.step-row:first-child { border-top: none; }
.step-phase { font-size: 13px; font-weight: 700; color: var(--accent-hover); letter-spacing: 0.02em; }
.step-text { font-size: 14px; color: var(--text-body); margin: 0; }
.figures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.figure-card { border: 1px solid var(--border); padding: 14px 16px; background: var(--surface-2); }
.figure-value { font-size: 17px; font-weight: 700; color: var(--stone); }
.figure-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.confidential-note { font-size: 13px; color: var(--text-muted); font-style: italic; border-left: 2px solid var(--border-strong); padding-left: 12px; }
.learned-box { background: var(--surface-2); border-left: 3px solid var(--accent); padding: 16px 20px; font-size: 14.5px; color: var(--text-body); }
.learned-box strong { color: var(--stone); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba-col h5 { font-size: 12.5px; letter-spacing: 0.03em; margin: 0 0 12px 0; text-transform: uppercase; }
.ba-col.before h5 { color: var(--text-muted); }
.ba-col.after h5 { color: var(--stone); }
.ba-col ul { margin: 0; padding-left: 18px; }
.ba-col li { font-size: 13.5px; color: var(--text-body); margin-bottom: 7px; }

/* ---------- gallery + lightbox ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-thumb {
  position: relative; border: 1px solid var(--border); background: #0D0906; cursor: pointer;
  overflow: hidden; aspect-ratio: 1/1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-thumb:hover img { transform: scale(1.04); }
.gallery-thumb::after {
  content: "⤢"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(23,16,13,0.7); color: var(--stone); display: flex; align-items: center; justify-content: center;
  font-size: 13px; opacity: 0; transition: opacity .2s;
}
.gallery-thumb:hover::after { opacity: 1; }
.gallery-empty {
  border: 1px dashed var(--border-strong); background: var(--surface-2); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px;
  color: var(--text-muted); font-size: 12.5px; font-style: italic;
}

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(8,5,4,0.92); z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 40px;
}
.lightbox-overlay.open { display: flex; animation: fadeIn .2s ease; }
.lightbox-img-wrap { max-width: 900px; width: 100%; text-align: center; }
.lightbox-img-wrap img { max-width: 100%; max-height: 72vh; object-fit: contain; border: 1px solid var(--border-strong); }
.lightbox-caption { color: var(--text-muted); font-size: 13.5px; margin-top: 14px; }
.lightbox-close { position: absolute; top: 24px; right: 30px; background: none; border: 1px solid var(--border-strong); color: var(--stone); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 1px solid var(--border-strong); color: var(--stone); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: background .15s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.06); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- academic projects (poster cards — image band + solid panel) ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.project-card-poster {
  position: relative; border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .3s, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  cursor: pointer; background: var(--surface);
}
.project-card-poster:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(0,0,0,0.65); }
.project-cover {
  position: relative; width: 100%; height: 175px; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(217,198,168,0.07) 0px, rgba(217,198,168,0.07) 2px, transparent 2px, transparent 22px),
    linear-gradient(160deg, var(--surface-2), var(--surface-3));
}
.project-cover[data-style="simulation"] { background-color: #2A2A1F; }
.project-cover[data-style="data"] { background-color: #1E2830; }
.project-cover[data-style="erp"] { background-color: #241E14; }
.project-cover[data-style="srp"] { background-color: #14201E; }
.project-cover img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center;
  padding: 0; box-sizing: border-box; transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.project-card-poster:hover .project-cover img { transform: scale(1.08); }
.project-cover-iframe { position: absolute; inset: 0; overflow: hidden; }
.project-cover-iframe iframe {
  position: absolute; top: 50%; left: 50%; width: 250%; height: 250%;
  transform: translate(-50%, -50%) scale(0.42); border: none; pointer-events: none;
}
.project-cover-shield { position: absolute; inset: 0; z-index: 1; background: transparent; }
.project-cover-shine {
  position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.10) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .05s;
}
.project-card-poster:hover .project-cover-shine { opacity: 1; transform: translateX(120%); transition: transform .85s cubic-bezier(.2,.7,.2,1); }
.project-caption {
  position: relative; z-index: 2; width: 100%; padding: 15px 18px; flex: 1;
  background: var(--surface); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: background .25s;
}
.project-card-poster:hover .project-caption { background: var(--surface-2); }
.project-title { font-size: 15px; font-weight: 650; color: var(--text-heading); margin: 0; line-height: 1.35; }
.project-caption-arrow {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-muted);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), color .25s, border-color .25s, background .25s;
}
.project-card-poster:hover .project-caption-arrow { transform: translateX(3px); color: var(--bg); border-color: var(--accent); background: var(--accent-hover); }

/* ---------- skills & technologies ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 56px; }
.skill-col h4 { font-size: 12.5px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 16px 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { font-size: 12.5px; color: var(--text-body); border: 1px solid var(--border); background: var(--surface); padding: 7px 13px; transition: border-color .15s, color .15s, transform .15s; }
.skill-tag:hover { border-color: var(--accent); color: var(--stone); transform: translateY(-2px); }

/* ---------- certifications (badge-style, colored per topic) ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); cursor: default; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; transition: border-color .25s, transform .3s, box-shadow .3s;
}
.cert-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--cert-accent, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.cert-card::after {
  content: ""; position: absolute; top: -22px; right: -22px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--cert-accent, var(--accent)); opacity: 0.08; transition: opacity .3s, transform .3s;
}
.cert-card:hover {
  border-color: var(--border-strong); transform: translateY(-5px);
  box-shadow: 0 20px 40px -26px rgba(0,0,0,0.6);
}
.cert-card:hover::before { transform: scaleX(1); }
.cert-card:hover::after { opacity: 0.16; transform: scale(1.3); }
.cert-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.cert-icon {
  width: 42px; height: 42px; border-radius: 10px; padding: 9px;
  background: color-mix(in srgb, var(--cert-accent, var(--accent)) 16%, var(--surface-2));
  color: var(--cert-accent, var(--accent)); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.cert-icon svg { width: 100%; height: 100%; }
.cert-card:hover .cert-icon { transform: scale(1.12) rotate(-4deg); }
.cert-badge {
  font-size: 11px; font-weight: 700; color: var(--text-muted); border: 1px solid var(--border-strong);
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cert-title { font-size: 15.5px; font-weight: 650; color: var(--text-heading); margin: 2px 0 0 0; line-height: 1.35; }
.cert-meta { font-size: 12px; color: var(--cert-accent, var(--tan)); margin: 0; font-weight: 600; letter-spacing: 0.01em; }
.cert-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 0 0; }
.cert-topic-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--text-muted);
  border: 1px solid var(--border); padding: 3px 9px; border-radius: 20px; background: var(--surface-2);
}
.cert-learned { font-size: 13px; color: var(--text-muted); margin: 0; flex: 1; line-height: 1.55; }
.cert-link {
  font: inherit; background: none; border: none; padding: 0; margin: 0; text-align: left;
  font-size: 12.5px; font-weight: 650; color: var(--cert-accent, var(--accent-hover)); text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; transition: gap .2s;
}
.cert-link:hover { gap: 8px; }

/* ---------- certification modal: organizations / certificates list ---------- */
.cert-org-list { display: flex; flex-direction: column; gap: 10px; }
.cert-org-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--border); background: var(--surface-2); padding: 14px 18px;
}
.cert-org-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cert-org-logo { height: 26px; width: auto; max-width: 130px; object-fit: contain; flex-shrink: 0; }
.cert-org-name { font-size: 13.5px; font-weight: 600; color: var(--text-body); }
.cert-org-link { font-size: 12.5px; padding: 9px 16px; white-space: nowrap; }

/* ---------- education / pfe ---------- */
.cert-education-block { margin-bottom: 48px; }
.edu-row { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border); background: var(--surface); padding: 26px 30px; max-width: 640px; margin: 0 auto; }
.edu-school { font-weight: 650; color: var(--text-heading); font-size: 17px; }
.edu-program { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.edu-period { font-size: 13px; color: var(--tan); white-space: nowrap; }
/* ---------- tools marquee (below About) ---------- */
.marquee-wrap {
  margin-top: 44px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 26px 0; overflow: hidden; position: relative;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marqueeScroll 34s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.marquee-item:hover { color: var(--stone); }
.marquee-icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--stone); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.marquee-icon.has-logo { padding: 6px; background: var(--surface-2); }
.marquee-icon.has-logo svg, .marquee-icon.has-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.marquee-icon.has-logo.mono svg, .marquee-icon.has-logo.mono svg path { fill: currentColor; }
.marquee-item:hover .marquee-icon.has-logo.mono { color: var(--accent-hover); }
.marquee-icon.has-logo.chip-light { background: var(--stone); padding: 5px; }

/* ============================================================
   ACTIVITIES — horizontal carousel of large rounded photo cards
   (3 visible on desktop, 2 on tablet, 1 on mobile)
   ============================================================ */
.act-carousel { max-width: 1056px; margin: 0 auto; }
.act-track {
  display: flex; gap: 24px; padding: 10px 8px 30px 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 8px;
  scroll-behavior: smooth; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.act-track::-webkit-scrollbar { display: none; }

.act-card {
  position: relative; flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start;
  aspect-ratio: 4 / 4.7; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer;
  transition: border-color .3s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  -webkit-tap-highlight-color: transparent;
}
.act-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 30px 54px -28px rgba(0,0,0,0.75); }
.act-card:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

.act-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; z-index: 0; overflow: hidden; }
.act-slide.active { opacity: 1; }
.act-slide img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.act-slide-img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.act-card:hover .act-slide.active .act-slide-img { transform: scale(1.035); }
/* landscape photos keep their full frame over a soft blurred copy of themselves */
.act-slide[data-fit="contain"] .act-slide-img { object-fit: contain; }
.act-slide-bg { filter: blur(26px) saturate(1.1) brightness(0.66); transform: scale(1.3); }

.act-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(17,11,8,0.9) 0%, rgba(17,11,8,0.6) 22%, rgba(17,11,8,0) 50%),
    linear-gradient(to bottom, rgba(17,11,8,0.28) 0%, rgba(17,11,8,0) 22%);
}
.act-dots {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 5px; align-items: center;
  padding: 6px 9px; border-radius: 20px; background: rgba(17,11,8,0.5); backdrop-filter: blur(6px);
}
.act-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(228,210,180,0.4); transition: background .3s, transform .3s; }
.act-dot.active { background: var(--stone); transform: scale(1.25); }

.act-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 22px 18px 22px; }
.act-title { margin: 0; font-size: 23px; line-height: 1.15; font-weight: 650; letter-spacing: -0.01em; color: var(--text-heading); text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.act-sub { margin: 5px 0 0 0; font-size: 14px; font-weight: 550; color: var(--stone); line-height: 1.4; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.act-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(228,210,180,0.22);
}
.act-date { font-size: 12px; font-weight: 550; color: var(--text-muted); letter-spacing: 0.02em; }
.act-go {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: var(--stone); border: 1px solid rgba(228,210,180,0.35); background: rgba(17,11,8,0.35);
  transition: transform .25s, background .25s, border-color .25s, color .25s;
}
.act-card:hover .act-go, .act-card:focus-visible .act-go { transform: translateX(3px); color: var(--bg); border-color: var(--accent); background: var(--accent-hover); }

.act-controls { display: flex; justify-content: center; gap: 14px; }
.act-btn { min-width: 120px; text-align: center; cursor: pointer; font-family: inherit; background: transparent; }
.act-btn:disabled, .act-btn:disabled:hover {
  opacity: 0.38; cursor: not-allowed; transform: none; border-color: var(--border-strong); background: transparent; color: var(--stone);
}
.act-btn:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

/* activity detail modal */
.act-para + .act-para { margin-top: 10px; }
.act-list { margin: 0; padding-left: 18px; }
.act-list li { font-size: 14.5px; color: var(--text-body); margin-bottom: 7px; }
.act-list li::marker { color: var(--accent-hover); }
.act-closing { margin-top: 14px; }

@media (max-width: 980px) {
  .act-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 620px) {
  .act-card { flex-basis: 100%; }
  .act-controls .act-btn { flex: 1; max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .act-track { scroll-behavior: auto; }
  .act-card:hover { transform: none; }
}

/* ---------- scroll progress bar + back to top ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--stone)); transform: scaleX(0); transform-origin: left;
}
#back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--stone); cursor: pointer;
  font-size: 17px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, border-color .2s, background .2s; z-index: 90;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { border-color: var(--accent); background: var(--surface-2); }

/* ---------- hero scroll cue ---------- */
.hero-scroll-cue {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8;
}
.hero-scroll-cue span.arrow { width: 1px; height: 26px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.hero-scroll-cue span.arrow::after {
  content: ""; position: absolute; top: -26px; left: 0; width: 100%; height: 100%; background: var(--stone);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0% { top: -26px; } 100% { top: 26px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info h3 { font-size: 13px; color: var(--tan); margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-info a, .contact-info span { display: block; font-size: 16.5px; color: var(--text-heading); text-decoration: none; margin-bottom: 28px; font-weight: 550; }
.contact-info a:hover { color: var(--accent-hover); }
form#contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 12.5px; font-weight: 600; color: var(--tan); margin-bottom: 7px; display: block; text-transform: uppercase; letter-spacing: 0.02em; }
input, textarea {
  width: 100%; border: 1px solid var(--border-strong); padding: 13px 14px; font-family: inherit; font-size: 14.5px;
  background: var(--surface); color: var(--text-body);
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: 13.5px; margin-top: 4px; min-height: 18px; }
.form-status.success { color: #9CBE8B; }
.form-status.error { color: #E08A7D; }
button[type="submit"] {
  position: relative; overflow: hidden;
  align-self: flex-start; background: linear-gradient(135deg, var(--accent), var(--burgundy)); color: #fff; border: none; padding: 13px 28px;
  font-size: 14.5px; font-weight: 600; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 8px 20px -14px var(--accent-glow);
}
button[type="submit"]::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .55s ease;
}
button[type="submit"]:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 14px 30px -14px var(--accent-glow); }
button[type="submit"]:hover::before { transform: translateX(120%); }
button[type="submit"]:active { transform: translateY(-1px) scale(0.98); }
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
button[type="submit"]:disabled::before { display: none; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-name { font-weight: 650; color: var(--text-heading); }
.footer-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.footer-links { display: flex; gap: 24px; font-size: 13.5px; }
.footer-links a { text-decoration: none; color: var(--text-muted); transition: color .15s; }
.footer-links a:hover { color: var(--accent-hover); }
.footer-copy { font-size: 12.5px; color: var(--text-muted); opacity: 0.7; margin-top: 24px; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links, .nav-cv, .lang-switch:not(.lang-switch-mobile) { display: none; }
  .nav-burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait-wrap { order: -1; max-width: 320px; margin: 0 auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .skills-grid, .cert-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  section { padding: 68px 0; }
  .wrap { padding: 0 20px; }
  .about-grid, .projects-grid, .cert-grid, .ba-grid, .form-row, .skills-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .step-row { grid-template-columns: 1fr; gap: 4px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .exp-item { padding-left: 34px; }
  .timeline-rail::before { left: 10px; }
  .exp-dot { left: 4px; }
  .modal-head, .modal-body { padding-left: 22px; padding-right: 22px; }
  .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .edu-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .modal-project-nav { flex-direction: column; padding-left: 22px; padding-right: 22px; }
  .modal-nav-btn, .modal-nav-btn-next { max-width: 100%; text-align: left; }
}
