/* ===== Design tokens — Light + Neutral Masculine Red ===== */
:root {
  --bg: #f0f0f0;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-input: #ffffff;
  --border: #e0e0e0;
  --border-accent: #9e2b2b;
  --text: #1a1a1a;
  --text-muted: #555555;
  --text-dim: #888888;
  --accent: #9e2b2b;
  --accent-2: #7a1f1f;
  --accent-deep: #6b1a1a;
  --accent-glow: rgba(158, 43, 43, 0.08);
  --success: #2e7d4f;
  --danger: #9e2b2b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 72px;
  --avatar-focus-y: 52%;
  --notice-h: 0px;
  --max-w: 1140px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed;
  top: var(--notice-h);
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear, top 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--notice-h) + 16px);
}

body.has-cv-notice { --notice-h: 40px; }

/* ===== CV Notice Banner ===== */
.cv-notice {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: #ffffff;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 12px rgba(158, 43, 43, 0.1);
}

.cv-notice-inner {
  width: min(var(--max-w), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cv-notice-inner p {
  flex: 1;
  margin: 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cv-notice-inner strong {
  color: var(--accent);
  font-weight: 800;
}

.cv-notice-icon { flex-shrink: 0; font-size: 1rem; }

.cv-notice-close {
  position: absolute;
  right: max(1rem, calc((100% - var(--max-w)) / 2 + 1rem));
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--transition);
}

.cv-notice-close:hover {
  background: var(--accent);
  color: #fff;
}

.cv-notice-inner { position: relative; }

/* ===== CV Labels ===== */
.cv-type-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  animation: fadeUp 0.5s ease both;
}

.cv-subtitle { display: none; }

.nav-cv-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.hero-card-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  z-index: 1;
}

.cv-disclaimer {
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(158, 43, 43, 0.06);
  border: 1px solid rgba(158, 43, 43, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cv-disclaimer strong { color: var(--accent-deep); font-weight: 800; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(158, 43, 43, 0.04), transparent),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(0, 0, 0, 0.02), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; display: block; }

.container {
  width: min(var(--max-w), calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: var(--notice-h);
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), top 0.2s ease;
}

.nav.scrolled { box-shadow: var(--shadow-lg); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-cta {
  padding: 0.5rem 1rem !important;
  font-size: 0.8rem !important;
  flex-shrink: 0;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + var(--notice-h));
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(158, 43, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 43, 43, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero-greeting {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 0.25rem;
  animation: fadeUp 0.6s ease both;
}

.hero-quote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
  line-height: 1.5;
  max-width: 540px;
}

.hero-card-name {
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1rem;
}

.industry-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 4px;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  animation: bounceDown 2s infinite;
  opacity: 0.6;
}

.scroll-hint svg {
  width: 24px;
  height: 24px;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Metrics bar ===== */
.metrics-bar {
  background: var(--accent);
  color: #fff;
  padding: 1.75rem 0;
}

.metrics-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.metric-icon svg {
  width: 28px;
  height: 28px;
  opacity: 0.85;
}

.metric-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.metric-item span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.section-alt {
  background: var(--bg-elevated);
}

.section-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(158, 43, 43, 0.1);
  line-height: 1;
  margin-bottom: -0.5rem;
  letter-spacing: -0.03em;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero .title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
  line-height: 1.65;
}

.title-colored {
  display: inline;
  line-height: 1.65;
}

.title-colored.title-sm {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.55;
}

.title-part {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.title-c1 {
  color: #2563eb;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-c2 {
  color: #16a34a;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-c3 {
  color: #dc2626;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-sep {
  color: #bbb;
  font-weight: 800;
  font-size: 1.2em;
  margin: 0 0.5rem;
  user-select: none;
  -webkit-text-fill-color: #bbb;
  opacity: 0.7;
}

.hero-card-role {
  text-align: center;
  margin-top: 0.35rem;
}

.hero-summary {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.02rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-summary p + p { margin-top: 0.75rem; }

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.6s 0.4s ease both;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all var(--transition);
}

.contact-chip:hover {
  border-color: var(--border-accent);
  color: var(--text);
  transform: translateY(-2px);
}

.contact-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.hero-card {
  width: 380px;
  min-width: 380px;
  padding: 2.25rem 2rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.7s 0.3s ease both;
  position: relative;
}

.hero-card.has-profile-photo {
  padding-top: 1.35rem;
}

.hero-card.has-profile-photo .hero-avatar-ring {
  margin-bottom: 1rem;
}

.hero-avatar-ring {
  padding: 4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  width: fit-content;
  margin: 0 auto 1.25rem;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  box-shadow: 0 4px 20px rgba(158, 43, 43, 0.25);
  overflow: hidden;
}

.hero-avatar.has-photo {
  background: #f0f0f0;
  display: block;
  line-height: 0;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--avatar-focus-y);
  display: block;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.stat-box {
  text-align: center;
  padding: 0.75rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.stat-box .num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.stat-box .lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
  box-shadow: 0 6px 20px rgba(158, 43, 43, 0.25);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

.btn-danger {
  background: rgba(158, 43, 43, 0.08);
  color: var(--danger);
  border: 1px solid rgba(158, 43, 43, 0.25);
}

.btn-danger:hover { background: rgba(158, 43, 43, 0.15); }

.btn-success {
  background: rgba(46, 125, 79, 0.08);
  color: var(--success);
  border: 1px solid rgba(46, 125, 79, 0.25);
}

.btn-success:hover { background: rgba(46, 125, 79, 0.15); }

/* ===== Sections ===== */
.section {
  padding-block: 5rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 540px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Competencies ===== */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.competency-item {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.925rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.competency-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.competency-item:hover::after { width: 100%; }

.competency-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: rgba(158, 43, 43, 0.2);
  line-height: 1;
  flex-shrink: 0;
}

.competency-text { flex: 1; }

.competency-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== Timeline / Experience ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), #cccccc, transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  gap: 0;
  transition: all var(--transition);
}

.timeline-dot {
  position: absolute;
  left: calc(-2rem + 2px);
  top: 1.75rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--accent);
  z-index: 1;
  transition: transform var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.25);
  background: var(--accent);
}

.timeline-body {
  flex: 1;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.timeline-item:hover .timeline-body {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.timeline-item::before { display: none; }

.timeline-item:last-child { margin-bottom: 0; }

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: #fafafa;
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
}

.timeline-current {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

/* ===== Project tabs ===== */
.project-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.project-tab {
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.project-tab.active,
.project-tab:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.project-panel { display: none; }
.project-panel.active { display: block; animation: fadeUp 0.4s ease; }

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.project-type {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.project-period {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.project-note {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.list-icon {
  color: var(--accent);
  margin-right: 0.35rem;
  font-weight: 700;
}

.timeline-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.timeline-item .role {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1rem;
}

.timeline-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.timeline-item li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.timeline-item li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ===== Project cards ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.project-card:hover::before { transform: scaleX(1); }

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card .client {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(158, 43, 43, 0.08);
  color: var(--accent);
  border: 1px solid rgba(158, 43, 43, 0.15);
}

.project-card ul {
  list-style: none;
  margin-top: auto;
}

.project-card li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.project-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== Other projects list ===== */
.simple-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.simple-list-item {
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.simple-list-item:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

/* ===== Achievements ===== */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.achievement-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition);
}

.achievement-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.achievement-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(158, 43, 43, 0.2);
  line-height: 1;
  flex-shrink: 0;
}

.achievement-card p { flex: 1; margin: 0; }

/* ===== Education & Info ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.info-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 1rem;
  font-weight: 600;
}

.info-card .sub {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.info-card-featured {
  border-top: 3px solid var(--accent);
}

.info-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.info-big {
  font-size: 1.75rem !important;
  color: var(--accent) !important;
}

.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.info-chips span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--text);
  color: #fff;
  padding: 4rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-section .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* ===== FAB ===== */
.fab-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.fab-wa {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: all var(--transition);
  animation: waPulse 2.5s infinite;
}

.fab-wa svg {
  width: 30px;
  height: 30px;
}

.fab-wa:hover {
  background: #1ebe57;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.65), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

.fab-top {
  position: static;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.fab-top:hover {
  background: var(--accent-deep);
  transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }

/* ===== Admin ===== */
.admin-page {
  min-height: 100vh;
  padding: 2rem 0 4rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
}

.admin-header p { color: var(--text-muted); font-size: 0.875rem; }

.login-card {
  max-width: 400px;
  margin: 6rem auto;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.login-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-panel {
  display: none;
}

.admin-panel.active { display: block; }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  border-color: var(--border-accent);
  color: var(--text);
  background: var(--accent-glow);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.admin-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.admin-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.item-editor {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.item-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.item-editor-header span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.list-input-group {
  margin-bottom: 0.75rem;
}

.list-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.list-input-row input { flex: 1; }

.icon-btn {
  padding: 0.45rem 0.65rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.icon-btn:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn.add:hover { border-color: var(--success); color: var(--success); }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding-bottom: 1rem;
  z-index: 10;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.error-msg {
  color: var(--danger);
  font-size: 0.825rem;
  margin-top: 0.5rem;
}

.hidden { display: none !important; }

/* ===== Photo upload (admin) ===== */
.photo-upload-area {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.photo-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.photo-upload-controls input[type="file"] {
  font-size: 0.85rem;
}

.photo-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  body.has-cv-notice { --notice-h: 52px; }

  .cv-notice-inner { font-size: 0.72rem; }
  .cv-subtitle { margin-inline: auto; text-align: left; }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content { order: 2; }
  .hero-card { order: 1; margin-inline: auto; }

  .hero-quote { margin-inline: auto; text-align: left; }
  .hero-summary { margin-inline: auto; }
  .hero-contacts { justify-content: center; }
  .hero-actions { justify-content: center; }

  .metrics-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .nav-cta { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .metrics-inner { grid-template-columns: 1fr; }
  .hero-card { width: 100%; min-width: unset; max-width: 380px; }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 6mm 7mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    width: 210mm;
    height: 297mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  body::before { display: none !important; }

  .screen-view,
  .fab-stack,
  .scroll-progress,
  .cv-notice {
    display: none !important;
  }

  .print-sheet {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 285mm;
    min-height: 285mm;
    overflow: hidden;
    font-family: var(--font);
    font-size: 8pt;
    line-height: 1.45;
    color: #1a1a1a;
  }

  .ps-top-bar {
    height: 4px;
    background: #9e2b2b;
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  .ps-header {
    display: grid;
    grid-template-columns: 88px 1fr 168px;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9e2b2b;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .ps-avatar-wrap { position: relative; text-align: center; }

  .ps-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 2px solid #9e2b2b;
    background: #9e2b2b;
    color: #fff;
    font-size: 22pt;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
  }

  .ps-avatar.has-photo {
    background: #f0f0f0;
    padding: 0;
  }

  .ps-avatar .hero-avatar-img,
  .ps-avatar .ps-avatar-img,
  .ps-avatar-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover !important;
    object-position: center var(--avatar-focus-y) !important;
    display: block !important;
    border-radius: 50%;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .ps-ecv-badge {
    display: block;
    margin-top: 5px;
    font-size: 7pt;
    font-weight: 800;
    color: #9e2b2b;
    letter-spacing: 0.08em;
  }

  .ps-label {
    display: inline-block;
    font-size: 7pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: #9e2b2b;
    padding: 2px 7px;
    border-radius: 2px;
    margin-bottom: 4px;
  }

  .ps-head h1 {
    font-size: 18pt;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
  }

  .ps-title { margin: 0 0 6px; font-size: 8.5pt; }
  .ps-title .title-part { font-weight: 800; }
  .ps-title .title-c1 { color: #2563eb !important; -webkit-text-fill-color: #2563eb !important; background: none !important; }
  .ps-title .title-c2 { color: #16a34a !important; -webkit-text-fill-color: #16a34a !important; background: none !important; }
  .ps-title .title-c3 { color: #dc2626 !important; -webkit-text-fill-color: #dc2626 !important; background: none !important; }
  .ps-title .title-sep { font-size: 8pt; color: #ccc; -webkit-text-fill-color: #ccc !important; }

  .ps-summary {
    font-size: 8pt;
    color: #555;
    margin: 0;
    line-height: 1.5;
  }

  .ps-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 8px;
  }

  .ps-stats div {
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px 3px;
    background: #fafafa;
  }

  .ps-stats strong {
    display: block;
    font-size: 11pt;
    color: #9e2b2b;
    line-height: 1.1;
  }

  .ps-stats span {
    font-size: 6.5pt;
    color: #888;
    text-transform: uppercase;
  }

  .ps-contacts {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 7.5pt;
    color: #444;
    margin-bottom: 8px;
  }

  .ps-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .ps-industries span {
    font-size: 6.5pt;
    font-weight: 600;
    color: #9e2b2b;
    background: rgba(158, 43, 43, 0.08);
    border: 1px solid rgba(158, 43, 43, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
  }

  .ps-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 12px;
    align-items: stretch;
    min-height: 0;
  }

  .ps-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    justify-content: space-between;
  }

  .ps-section {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .ps-h2 {
    font-size: 9pt;
    font-weight: 800;
    color: #9e2b2b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 4px;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }

  .ps-num {
    font-size: 10pt;
    color: rgba(158, 43, 43, 0.25);
    font-weight: 800;
  }

  .ps-competencies,
  .ps-achievements,
  .ps-other,
  .ps-exp ul,
  .ps-proj ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
  }

  .ps-competencies li,
  .ps-achievements li,
  .ps-other li {
    font-size: 7.5pt;
    color: #444;
    padding: 3px 0 3px 10px;
    position: relative;
    line-height: 1.4;
  }

  .ps-competencies li::before,
  .ps-achievements li::before,
  .ps-other li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: #9e2b2b;
    font-size: 7pt;
  }

  .ps-exp {
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px dashed #eee;
    flex-shrink: 0;
  }

  .ps-exp:last-child { border-bottom: none; margin-bottom: 0; }

  .ps-exp-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
  }

  .ps-exp-head strong { font-size: 8.5pt; color: #1a1a1a; }
  .ps-exp em { font-size: 7.5pt; color: #9e2b2b; font-style: normal; font-weight: 600; display: block; margin-bottom: 3px; }

  .ps-period {
    font-size: 7pt;
    color: #9e2b2b;
    font-weight: 600;
    white-space: nowrap;
  }

  .ps-exp ul li,
  .ps-proj ul li {
    font-size: 7.2pt;
    color: #555;
    padding: 2px 0 2px 10px;
    position: relative;
    line-height: 1.38;
  }

  .ps-exp ul li::before,
  .ps-proj ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #9e2b2b;
    font-size: 6.5pt;
  }

  .ps-proj {
    margin-bottom: 7px;
    padding: 6px;
    border: 1px solid #e8e8e8;
    border-left: 3px solid #9e2b2b;
    border-radius: 3px;
    background: #fafafa;
    flex-shrink: 0;
  }

  .ps-proj-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
  }

  .ps-proj-tag {
    font-size: 6.5pt;
    font-weight: 800;
    color: #fff;
    background: #9e2b2b;
    padding: 1px 5px;
    border-radius: 2px;
  }

  .ps-proj strong { font-size: 7.5pt; display: block; margin-bottom: 1px; }
  .ps-proj p { font-size: 7pt; color: #666; margin: 0 0 2px; }

  .ps-edu-degree { font-size: 8.5pt; font-weight: 700; margin: 0 0 3px; }
  .ps-edu-inst { font-size: 7.5pt; color: #666; margin: 0 0 6px; }
  .ps-meta { font-size: 7.2pt; color: #555; margin: 0; line-height: 1.45; }

  .ps-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 2px solid #9e2b2b;
    font-size: 8pt;
    color: #9e2b2b;
    text-align: center;
    flex-shrink: 0;
  }

  .ps-footer strong { font-weight: 800; }
}

/* Print sheet hidden on screen */
.print-sheet {
  display: none;
}
