:root {
  color-scheme: light dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #0b0c10;
  color: #eaeaea;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
}
.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1;
}
.site-actions a, .site-actions button {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
}
.site-actions a:hover, .site-actions button:hover {
  background: rgba(255, 255, 255, 0.08);
}
.terminal-cta {
  border: 1px solid rgba(64, 242, 255, 0.35);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  background: linear-gradient(
    135deg,
    rgba(64, 242, 255, 0.12),
    rgba(155, 139, 255, 0.18)
  );
  color: rgba(243, 251, 255, 0.82);
  box-shadow: 0 0 0 0 rgba(64, 242, 255, 0.4);
  text-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
  position: relative;
  animation: terminalCtaPulse 2.8s ease-in-out infinite;
}
.terminal-cta:hover,
.terminal-cta:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(64, 242, 255, 0.18),
    rgba(155, 139, 255, 0.24)
  );
  border-color: rgba(155, 139, 255, 0.45);
  color: #f7fbff;
  transform: translateY(-1px) scale(1.02);
}
.terminal-cta:focus-visible {
  outline: 2px solid rgba(64, 242, 255, 0.5);
  outline-offset: 2px;
}
@keyframes terminalCtaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(64, 242, 255, 0.32);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 24px 8px rgba(64, 242, 255, 0.22);
    filter: brightness(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(64, 242, 255, 0.32);
    filter: brightness(1);
  }
}
.site-main {
  height: 100%;
  overflow: auto;
}
#viewer {
  margin: 0 auto;
  width: min(100%, 1100px);
  padding: 16px;
  display: grid;
  gap: 16px;
  align-items: start;
  justify-items: center;
}
@media (max-width: 768px) {
  #viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
  }
}
.page {
  width: 100%;
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.fallback {
  max-width: 820px;
  margin: 10vh auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
}
.fallback a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
}
.fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
.email-wrapper {
  position: relative;
  display: inline-block;
}
.toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -12px) scale(0.98);
  background: rgba(32, 33, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #eaeaea;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 999;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.toast .icon {
  margin-right: 8px;
  font-size: 1rem;
  vertical-align: -1px;
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
  .terminal-cta {
    animation: none;
    filter: none;
  }
}

/* HTML document occupies the former PDF canvas, inside the original .page frame. */
.site-main { min-height: 0; min-width: 0; }
#viewer { grid-template-columns: minmax(0, 1fr); }
.page { min-width: 0; }
.site-actions button { background: transparent; font: inherit; cursor: pointer; }
.site-actions .viberank-link, .site-actions .icon-link, .site-actions .language-switch { display: inline-flex; align-items: center; gap: 7px; }
.brand-icon { display: block; flex-shrink: 0; }
.language-flag { display: block; flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.viberank-link img { display: block; width: 20px; height: 20px; }
.resume-document { width: 100%; min-height: 297mm; margin: 0; padding: 12mm 13mm 11mm; border-radius: 8px; background: white; color: #17282c; font: 10pt/1.35 Arial, Helvetica, sans-serif; }
.resume-document.fit-document { width: 210mm; zoom: var(--resume-zoom, 1); }
.resume-document *, .resume-document *::before, .resume-document *::after { box-sizing: border-box; }
.resume-document { --ink: #17282c; --accent: #176458; --muted: #56656a; --rule: #d5dfdc; }
.resume-document a:focus-visible, .site-actions a:focus-visible, .site-actions button:focus-visible { outline: 2px solid #5ccfe6; outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 12px; color: white; background: #111318; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
[hidden] { display: none !important; }

.resume-document h1, .resume-document h2, .resume-document h3, .resume-document p { margin: 0; }
.resume-document a { color: inherit; text-decoration: none; }
.resume-document a:hover { text-decoration: underline; }
.resume-document strong { font-weight: 700; }
.resume-document .header { position: relative; padding-bottom: 4mm; border-bottom: 1.2pt solid var(--ink); }
.resume-document h1 { font-size: 25pt; line-height: 1.08; letter-spacing: -1.1px; font-weight: 700; }
.resume-document .role { margin-top: 2.2mm; font-size: 14pt; line-height: 1.15; font-weight: 700; color: var(--accent); letter-spacing: -.2px; }
.resume-document .positioning { margin-top: 2.2mm; font-size: 9.6pt; color: var(--muted); }
.resume-document .contact { margin-top: 3.2mm; display: flex; gap: 4mm; flex-wrap: wrap; font-size: 8.35pt; line-height: 1.45; }
.resume-document .contact a { text-decoration: underline; text-decoration-color: #a7b6b1; text-underline-offset: 2px; }
.resume-document .portrait { position: absolute; right: 0; top: -1.2mm; width: 26mm; height: 26mm; object-fit: contain; }
.resume-document .header-main { padding-right: 30mm; min-height: 24mm; }
.resume-document .header h1 { font-size: 23pt; }
.resume-document .intro { margin-top: 3.5mm; font-size: 10pt; line-height: 1.42; }
.resume-document .agentic { margin-top: 3.5mm; padding: 0 0 0 3mm; border-left: 2pt solid var(--accent); }
.resume-document .agentic h2 { margin-bottom: 1.2mm; color: var(--accent); }
.resume-document .agentic p { font-size: 9.65pt; line-height: 1.42; }
.resume-document .usage { margin-top: 1.1mm; color: var(--muted); font-size: 8.1pt !important; }
.resume-document .usage a { text-decoration: underline; text-underline-offset: 2px; }
.resume-document section { margin-top: 3mm; }
.resume-document h2 { font-size: 8.1pt; line-height: 1.2; text-transform: uppercase; letter-spacing: 1.7px; font-weight: 700; }
.resume-document .section-title { display: flex; align-items: center; gap: 3mm; margin-bottom: 2.5mm; }
.resume-document .section-title:after { content: ''; height: .5pt; background: var(--rule); flex: 1; }
.resume-document .job { margin-bottom: 3mm; break-inside: avoid; }
.resume-document .job:last-child { margin-bottom: 0; }
.resume-document .job-head { display: grid; grid-template-columns: 11mm 1fr auto; align-items: center; column-gap: 2mm; }
.resume-document .brand { width: 10mm; height: 8mm; display: flex; align-items: center; justify-content: center; }
.resume-document .brand img { display: block; width: 10mm; height: 8mm; object-fit: contain; }
.resume-document .brand.ps img { width: 8mm; height: 8mm; }
.resume-document .yc-badge { width: 7.5mm; height: 7.5mm; background: #fb651e; color: #fff; display: grid; place-items: center; font: 18pt Arial, sans-serif; }
.resume-document h3 { font-size: 11.1pt; line-height: 1.2; letter-spacing: -.12px; }
.resume-document .company-note { color: var(--muted); font-size: 8.5pt; font-weight: 400; }
.resume-document .job-role { margin-top: .8mm; font-size: 9.3pt; color: var(--accent); font-weight: 700; }
.resume-document .date { align-self: start; padding-top: .3mm; color: var(--muted); font-size: 8.4pt; white-space: nowrap; font-variant-numeric: tabular-nums; }
.resume-document ul { margin: 1.6mm 0 0 13mm; padding-left: 3.5mm; }
.resume-document li { padding-left: .3mm; margin: 0 0 1.2mm; font-size: 9.5pt; line-height: 1.38; }
.resume-document li:last-child { margin-bottom: 0; }
.resume-document li::marker { color: var(--accent); font-size: 7pt; }
.resume-document .earlier { display: grid; grid-template-columns: 1fr auto; column-gap: 4mm; row-gap: 1.7mm; font-size: 9.05pt; line-height: 1.32; }
.resume-document .earlier .date { font-size: 8.1pt; padding-top: .1mm; }
.resume-document .stack { display: grid; grid-template-columns: 29mm 1fr; column-gap: 3mm; row-gap: 1.3mm; font-size: 9pt; }
.resume-document .stack dt { font-weight: 700; }
.resume-document .stack dd { margin: 0; }
.resume-document dl { margin: 0; }
.resume-document .education { font-size: 8.8pt; line-height: 1.5; }
.resume-document .languages { font-size: 8.5pt; color: var(--muted); margin-top: 1mm; }

@media screen and (max-width: 840px) {
  .resume-document { min-height: 0; padding: 26px 24px; }
  .resume-document .header-main { padding-right: 85px; }
  .resume-document .portrait { width: 72px; height: 72px; top: 0; }
  .resume-document .header h1 { font-size: clamp(22px, 4.5vw, 31px); letter-spacing: -.7px; }
  .resume-document .role { font-size: 19px; line-height: 1.35; }
  .resume-document .positioning { font-size: 13px; line-height: 1.5; }
  .resume-document .contact { font-size: 12px; gap: 8px 16px; }
  .resume-document .agentic { margin-top: 20px; padding-left: 12px; }
  .resume-document .agentic p { font-size: 15px; line-height: 1.55; }
  .resume-document .usage { font-size: 12px !important; line-height: 1.5; }
  .resume-document section { margin-top: 24px; }
  .resume-document h2 { font-size: 11px; }
  .resume-document .section-title { margin-bottom: 16px; }
  .resume-document .job { margin-bottom: 24px; }
  .resume-document .job-head { grid-template-columns: 36px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
  .resume-document .job-head .date { grid-column: 2; font-size: 12px; }
  .resume-document h3 { font-size: 17px; line-height: 1.35; }
  .resume-document .company-note { font-size: 12px; }
  .resume-document .job-role { font-size: 14px; line-height: 1.5; }
  .resume-document ul { margin: 12px 0 0 0; padding-left: 20px; }
  .resume-document li { font-size: 15px; line-height: 1.55; margin-bottom: 9px; }
  .resume-document .earlier { font-size: 14px; line-height: 1.55; row-gap: 6px; grid-template-columns: minmax(0, 1fr); }
  .resume-document .earlier .date { font-size: 12px; margin-bottom: 12px; }
  .resume-document .stack { font-size: 14px; line-height: 1.55; grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .resume-document .stack dd { margin-bottom: 10px; }
  .resume-document .education, .resume-document .languages { font-size: 13px; line-height: 1.6; }
}
@media screen and (max-width: 480px) {
  .resume-document { padding: 24px 16px; }
  .resume-document .header-main { padding-right: 62px; }
  .resume-document .portrait { width: 54px; height: 54px; }
  .resume-document .header h1 { font-size: 22px; line-height: 1.15; }
  .resume-document .role { font-size: 17px; }
}
@page { size: A4; margin: 0; }
@media print {
  html, body { height: auto; background: white; }
  body { display: block; }
  .site-actions, .toast, .skip-link { display: none !important; }
  .site-main { height: auto; overflow: visible; }
  #viewer { display: block; width: auto; padding: 0; }
  .page { border: 0; border-radius: 0; padding: 0; box-shadow: none; background: white; }
  .resume-document, .resume-document.fit-document { width: 210mm; min-height: 297mm; margin: 0; zoom: 1; border-radius: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
