:root {
  --bg: #ededeb;
  --panel: #fcfcfa;
  --line: #d8dce2;
  --ink: #171b22;
  --muted: #616975;
  --accent: #2252df;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

a {
  color: var(--accent);
}

.v2-wrap {
  width: min(980px, 95vw);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.v2-stage {
  width: 100%;
}

.v2-topbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.v2-lang-toggle {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(14, 25, 36, 0.08);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.v2-hero,
.v2-section,
.v2-footer {
  background: var(--panel);
  border: 1px solid var(--line);
}

.v2-hero {
  padding: 24px 28px;
}

.v2-hero-top {
  display: grid;
  grid-template-columns: 236px minmax(0, 1.35fr);
  gap: 24px;
  align-items: center;
}

.v2-avatar-shell {
  margin: 0;
  width: min(100%, 236px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.92));
  box-shadow: 0 14px 30px rgba(17, 20, 24, 0.08);
}

.v2-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  border: 1px solid #d6dbe3;
  object-fit: cover;
  object-position: center top;
  background: #e5e8ed;
}

.v2-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
}

.v2-hero h1 {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 0.98;
}

.v2-headline {
  margin: 18px 0 0;
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  font-weight: 500;
  max-width: 42ch;
}

.v2-contact-rail {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.v2-contact-rail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease;
}

.v2-contact-rail a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.v2-contact-rail svg {
  width: 20px;
  height: 20px;
  display: block;
}

.v2-contact-rail a.contact-linkedin {
  color: #0a66c2;
}

.v2-contact-rail a.contact-telegram {
  color: #229ed9;
}

.v2-contact-rail a.contact-whatsapp {
  color: #25d366;
}

.v2-contact-rail a.contact-wechat {
  color: #07c160;
}

.v2-contact-rail a.contact-email {
  color: #4a5563;
}

.guide-fab,
.v2-guide-toggle {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d6dce5;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 28px rgba(14, 25, 36, 0.14);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.v2-guide-toggle {
  box-shadow: 0 10px 20px rgba(14, 25, 36, 0.08);
}

.guide-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-actions button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  font-weight: 700;
  font: inherit;
  cursor: pointer;
}

.guide-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #d3dce5;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.tour-target {
  position: relative;
  z-index: 17 !important;
  border-radius: 20px;
  box-shadow:
    0 0 0 9999px rgba(12, 17, 25, 0.58),
    0 0 0 4px rgba(44, 161, 181, 0.92),
    0 0 28px rgba(44, 161, 181, 0.38);
}

.tour-popover {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 21;
  width: min(380px, calc(100vw - 20px));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 24px 48px rgba(14, 25, 36, 0.26);
  padding: 16px;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: grid;
  place-items: center;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 25, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-modal-card {
  position: relative;
  width: min(430px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 48px rgba(14, 25, 36, 0.24);
  padding: 20px;
  display: grid;
  gap: 12px;
  z-index: 1;
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-eyebrow {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4f6f86;
  font-weight: 700;
}

.contact-modal-card h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.contact-modal-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-modal-qr {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.contact-modal-qr img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.contact-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cv-modal-card {
  max-width: 420px;
}

.note-preview-card {
  max-width: min(760px, calc(100vw - 24px));
}

.note-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.note-preview-frame-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #f5f7fb;
}

.note-preview-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: min(72vh, 760px);
  border: 0;
  background: #fff;
}

.cv-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-modal-primary {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #0a84ff;
  background: linear-gradient(180deg, #2a9bff, #0a84ff);
  color: #ffffff;
}

.cv-modal-secondary {
  border-color: #d4dbe4;
  background: rgba(246, 248, 252, 0.98);
  color: var(--ink);
}

.contact-modal-feedback {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  color: #0a7a43;
}

.tour-step {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4f6f86;
  font-weight: 700;
}

.tour-popover h4 {
  margin: 10px 0 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.tour-popover p {
  margin: 10px 0 0;
  color: var(--muted);
}

#tourNext {
  border-color: #0a84ff;
  background: linear-gradient(180deg, #2a9bff, #0a84ff);
  color: #ffffff;
}

.v2-section {
  margin-top: 16px;
  padding: 22px 28px 26px;
}

.v2-section-head {
  margin-bottom: 16px;
}

.v2-section-head h2 {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  font-size: 1.72rem;
  font-weight: 700;
}

.v2-section-note {
  margin: 8px 0 0;
  color: var(--muted);
}

.v2-summary-copy {
  margin: 0;
  font-size: 1.04rem;
  color: var(--muted);
}

.v2-timeline {
  display: grid;
  gap: 18px;
}

.v2-timeline-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.v2-year {
  padding-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.v2-entry {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid #d6dae2;
}

.v2-entry::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: #fff;
}

.v2-entry-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}

.v2-logo {
  width: 96px;
  height: 96px;
  border: 2px solid #d7dce5;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  padding: 2px;
  box-sizing: border-box;
  background: #fff;
}

.v2-role-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
}

.v2-role-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.v2-company-name {
  font-weight: 600;
  color: var(--ink);
}

.v2-role-note {
  margin: 12px 0 0;
}

.v2-tag-row,
.v2-proof-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-tag-row span,
.v2-proof-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d7dce4;
  background: #fff;
  color: #2a313b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.v2-tag-row .tag-default {
  background: #fff;
  color: #2a313b;
  border-color: #d7dce4;
}

.v2-tag-row .tag-industry {
  background: #eef4ff;
  color: #2456c8;
  border-color: #c2d4ff;
}

.v2-highlight-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.v2-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.v2-linkedin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.v2-linkedin-controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.v2-linkedin-controls button {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.v2-notes-viewport {
  overflow: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  position: relative;
}

.v2-notes-viewport::-webkit-scrollbar {
  display: none;
}

.v2-notes-grid {
  display: flex;
  gap: 18px;
  min-width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.v2-notes-grid.is-animating {
  transition: transform 420ms ease;
}

.v2-project-card,
.v2-note-card {
  border: 1px solid var(--line);
  background: #fff;
}

.v2-project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #edf0f4;
}

.v2-project-copy,
.v2-note-copy {
  padding: 12px;
}

.v2-project-copy h3,
.v2-note-copy h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.v2-project-meta,
.v2-note-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v2-project-summary,
.v2-note-summary {
  margin: 10px 0 0;
  font-size: 14px;
}

.v2-project-links,
.v2-note-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.v2-project-links a,
.v2-note-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.v2-note-card {
  width: min(420px, 78vw);
  border-radius: 28px;
  overflow: hidden;
}

.v2-note-head {
  display: grid;
  gap: 8px;
}

.v2-note-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.v2-note-open {
  color: #1d74ea;
  font-weight: 800;
  text-decoration: none;
  width: fit-content;
}

.v2-note-preview {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  padding: 16px;
}

.v2-note-preview.is-embed {
  padding: 0;
  overflow: hidden;
  background: #f7fafc;
}

.v2-linkedin-embed {
  min-height: 560px;
}

.v2-linkedin-embed-frame,
.v2-linkedin-embed-frame iframe {
  display: block;
  width: 100%;
}

.v2-linkedin-embed-frame iframe {
  min-height: 560px;
  border: 0;
  background: #fff;
}

.v2-linkedin-embed-shell {
  min-height: 560px;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(39, 110, 241, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff, #f6f9fd);
}

.v2-linkedin-embed-shell p {
  margin: 0;
  max-width: 280px;
  font-size: 0.96rem;
  line-height: 1.5;
}

.v2-linkedin-embed-pulse {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(39, 110, 241, 0.12);
  box-shadow: 0 0 0 0 rgba(39, 110, 241, 0.18);
  animation: v2-linkedin-pulse 1.8s ease-in-out infinite;
}

@keyframes v2-linkedin-pulse {
  0% { box-shadow: 0 0 0 0 rgba(39, 110, 241, 0.22); }
  70% { box-shadow: 0 0 0 18px rgba(39, 110, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 110, 241, 0); }
}

.v2-note-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.v2-note-preview-btn {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid #d4dbe4;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.v2-footer {
  margin-top: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.v2-footer a {
  text-decoration: none;
  font-weight: 700;
}

.v2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.v2-footer-links--left {
  margin-right: auto;
}

.v2-footer a[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

@media (max-width: 860px) {
  .v2-project-grid,
  .v2-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .v2-wrap {
    width: 840px;
    min-width: 840px;
    padding: 28px 0 72px;
  }

  .v2-stage.is-mobile-locked {
    padding: 12px 0 48px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .v2-stage.is-mobile-locked .v2-wrap {
    margin: 0;
    transform: scale(var(--v2-mobile-scale, 1));
    transform-origin: top left;
  }

  .v2-hero,
  .v2-section,
  .v2-footer {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .v2-hero {
    padding: 24px 28px;
  }

  .v2-section {
    padding: 22px 28px 26px;
  }

  .v2-hero-top {
    grid-template-columns: 236px minmax(0, 1.35fr);
  }

  .v2-timeline-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .v2-entry-head {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .v2-avatar-shell {
    width: min(100%, 236px);
  }

  .v2-year {
    padding-top: 8px;
  }

  .v2-linkedin-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .v2-linkedin-controls button {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .v2-note-card {
    width: 420px;
  }

  .v2-note-preview,
  .contact-modal-card {
    padding: 14px;
  }

  .v2-linkedin-embed,
  .v2-linkedin-embed-frame iframe,
  .v2-linkedin-embed-shell {
    min-height: 480px;
  }

  .note-preview-frame-wrap iframe {
    min-height: min(62vh, 520px);
  }

  .cv-modal-actions {
    grid-template-columns: 1fr;
  }

  .v2-footer {
    flex-direction: row;
    align-items: center;
  }

  .v2-footer-links--left {
    margin-right: auto;
  }

  .tour-popover {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}
