:root {
  --primary:      #004F90;
  --primary-light:#e8f0f9;
  --ink:          #1a1a1a;
  --muted:        #666;
  --rule:         #c8d4e0;
  --bg:           #fafafa;
  --white:        #ffffff;
  --expand-bg:    #f2f6fb;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --max-width:    780px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}
 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
 body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  padding: 40px 20px 80px;
}
 a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.7; }
 .cv {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
  padding: 48px 52px 60px;
  box-shadow: 0 2px 32px rgba(0,79,144,0.07), 0 1px 4px rgba(0,0,0,0.06);
}
 .cv-header,
.cv-section {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.55s var(--ease-out) forwards;
}
.cv-header                   { animation-delay: 0.05s; }
.cv-section:nth-of-type(1)   { animation-delay: 0.12s; }
.cv-section:nth-of-type(2)   { animation-delay: 0.19s; }
.cv-section:nth-of-type(3)   { animation-delay: 0.26s; }
.cv-section:nth-of-type(4)   { animation-delay: 0.33s; }
.cv-section:nth-of-type(5)   { animation-delay: 0.40s; }
.cv-section:nth-of-type(6)   { animation-delay: 0.47s; }
.cv-section:nth-of-type(7)   { animation-delay: 0.54s; }
 @keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
 .cv-header {
  text-align: center;
  padding-bottom: 28px;
}
 .cv-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.2;
}
 .contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
 .contact-row a { color: var(--muted); }
.contact-row a:hover { color: var(--primary); }
 .contact-row .dot {
  color: var(--rule);
  user-select: none;
}
 .contact-row span,
.contact-row a {
  display: flex;
  align-items: center;
  gap: 5px;
}
 .contact-row svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: currentColor;
}
 .cv-section {
  margin-top: 26px;
}
 .cv-section h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1.5px solid var(--rule);
  margin-bottom: 14px;
}
 .entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
 .entry-left { flex: 1; min-width: 0; }
.entry-date {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 1px;
  flex-shrink: 0;
}
 .entry-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  display: inline;
}
 .entry-sub {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 1px;
}
 .highlights {
  list-style: none;
  margin-top: 6px;
  margin-left: 8px;
}
 .highlights li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 3px;
}
 .highlights li::before {
  content: '○';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  color: var(--primary);
  line-height: 1.7;
}
 .highlights li strong { font-weight: 600; color: var(--ink); }
 .skill-row {
  font-size: 13px;
  margin-bottom: 6px;
  color: #333;
}
.skill-row strong { font-weight: 600; color: var(--ink); }
 .award-list {
  list-style: none;
  margin-left: 4px;
}
.award-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.6;
}
.award-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}
.award-list li strong { font-weight: 600; color: var(--ink); }
 .ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  vertical-align: middle;
  margin-left: 4px;
  transition: gap 0.15s;
}
.ext-link:hover { gap: 6px; }
.ext-link svg {
  width: 11px; height: 11px;
  fill: var(--primary);
}
 .expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 3px 9px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  margin-top: 7px;
  transition: background 0.18s, border-color 0.18s;
}
.expand-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
.expand-btn svg {
  width: 12px; height: 12px;
  fill: var(--primary);
  transition: transform 0.3s var(--ease-out);
}
.expand-btn.open svg { transform: rotate(180deg); }
.expand-btn .btn-label { transition: color 0.15s; }
 .expand-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s ease;
  opacity: 0;
}
.expand-panel.open {
  max-height: 600px;
  opacity: 1;
}
 .expand-inner {
  margin-top: 10px;
  background: var(--expand-bg);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
}
 .expand-inner p {
  font-size: 13px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.65;
}
 .pdf-embed-wrap {
  margin-top: 6px;
}
.pdf-embed-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: background 0.15s, border-color 0.15s;
}
.pdf-embed-wrap a:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  opacity: 1;
}
.pdf-embed-wrap a svg { width: 13px; height: 13px; fill: var(--primary); }
 .entry-group { margin-bottom: 14px; }
 .cv-footer {
  text-align: center;
  margin-top: 44px;
  font-size: 11.5px;
  color: #aaa;
  font-style: italic;
}
 @media print {
  body { background: white; padding: 0; }
  .cv {
    box-shadow: none;
    padding: 20px 30px;
    max-width: 100%;
  }
  .expand-btn, .expand-panel { display: none !important; }
  .cv-header, .cv-section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
 @media (max-width: 600px) {
  .cv { padding: 28px 22px 40px; }
  .cv-header h1 { font-size: 28px; }
  .entry { flex-direction: column; gap: 2px; }
  .entry-date { font-size: 12px; }
  .contact-row .dot { display: none; }
}
