/* ==========================================================================
   /resume/ — web résumé + print (ATS-friendly) layout. Loaded after base.css.
   ========================================================================== */

.resume { position: relative; padding: 132px 0 120px; overflow: hidden; }
.resume > .container { position: relative; z-index: 1; }
.resume-glow-a { width: 560px; height: 560px; top: -220px; left: -160px; background: radial-gradient(circle, #0a84ff, transparent 70%); opacity: 0.32; }
.resume-glow-b { width: 520px; height: 520px; top: 40px; right: -200px; background: radial-gradient(circle, #bf5af2, transparent 70%); opacity: 0.26; }

/* ---------- Header ---------- */
.resume-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  padding-bottom: 48px; margin-bottom: 56px; border-bottom: 1px solid var(--stroke);
}
.resume-photo {
  width: 132px; height: 132px; border-radius: 36px; object-fit: cover; object-position: 46% 22%;
  box-shadow: 0 0 0 1px var(--stroke-2), 0 24px 60px -20px rgba(125, 107, 255, 0.55);
}
.resume-eyebrow { margin: 0 0 14px; }
.resume-name { font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -0.05em; line-height: 0.95; }
.resume-name .serif { padding-right: 0.06em; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.resume-title { margin: 14px 0 0; font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); letter-spacing: -0.01em; }
.resume-title span { color: var(--text-3); margin: 0 2px; }
.resume-status { display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 14px; color: var(--text-2); }
.resume-print-contact, .resume-print-only, .resume-print-url { display: none; }
.resume-actions { display: flex; flex-direction: column; gap: 10px; align-self: end; }

/* ---------- Grid ---------- */
.resume-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-areas: "side main"; gap: 56px; align-items: start; }
.resume-main { grid-area: main; min-width: 0; }
.resume-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }

.resume-h {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 20px; display: flex; align-items: center; gap: 12px;
}
.resume-main .resume-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke-2), transparent); }
.resume-section + .resume-section { margin-top: 64px; }
.resume-summary { margin: 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; letter-spacing: -0.015em; color: var(--text); }

/* ---------- Sidebar cards ---------- */
.resume-card {
  position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--stroke); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.resume-card .resume-h { margin-bottom: 16px; }
.resume-contact, .resume-chips, .resume-edu, .resume-langs, .resume-timeline, .resume-skill-lines { list-style: none; margin: 0; padding: 0; }
.resume-contact li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; padding: 7px 0; color: var(--text-2); min-width: 0; }
.resume-contact a { overflow-wrap: anywhere; transition: color 0.2s; }
.resume-contact a:hover { color: var(--text); }
.resume-ci { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--text); }
.resume-sub { font-size: 13px; font-weight: 500; letter-spacing: -0.005em; color: var(--text-2); margin: 18px 0 10px; }
.resume-card .resume-h + .resume-sub { margin-top: 0; }
.resume-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.resume-chips .chip { height: 28px; font-size: 12.5px; padding: 0 11px; color: var(--text); }
.resume-edu li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--stroke); }
.resume-edu h3 { font-size: 16px; letter-spacing: -0.015em; line-height: 1.3; }
.resume-edu .resume-meta { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; }
.resume-langs li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 15px; }
.resume-langs li + li { border-top: 1px solid var(--stroke); }
.resume-level { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Experience timeline ---------- */
.resume-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 6px 0 0; font-size: 14.5px; color: var(--text-2); }
.resume-dates { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); letter-spacing: 0.02em; }
.resume-timeline { position: relative; }
.resume-timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, #0a84ff, #bf5af2 60%, transparent);
  opacity: 0.6;
}
.resume-role { position: relative; padding-left: 44px; }
.resume-role + .resume-role { margin-top: 40px; }
.resume-role::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid #7d6bff; box-shadow: 0 0 0 5px rgba(125, 107, 255, 0.12);
}
.resume-role:first-child::before { background: var(--brand); border-color: transparent; box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.18), 0 0 20px rgba(125, 107, 255, 0.7); }
.resume-role h3 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.025em; line-height: 1.2; }
.resume-role ul { margin: 16px 0 0; padding: 0; list-style: none; }
.resume-role ul li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.resume-role ul li + li { margin-top: 10px; }
.resume-role ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 1.5px; border-radius: 1px; background: var(--text-3); }
.resume-win {
  background: linear-gradient(120deg, rgba(10, 132, 255, 0.22), rgba(191, 90, 242, 0.22));
  color: var(--text); padding: 1px 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- Projects ---------- */
.resume-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.resume-proj {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--stroke); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
.resume-proj::after { /* accent wash */
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  filter: blur(60px); opacity: 0.22; pointer-events: none; background: var(--accent, transparent);
}
.resume-proj--hirely { --accent: radial-gradient(circle, var(--hirely), transparent 70%); }
.resume-proj--solace { --accent: radial-gradient(circle, var(--solace), var(--solace-2) 40%, transparent 70%); }
a.resume-proj:hover { transform: translateY(-3px); border-color: var(--stroke-2); background: var(--surface-2); }
a.resume-proj:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.resume-proj-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px var(--stroke-2), 0 12px 30px -10px rgba(0, 0, 0, 0.8); }
.resume-proj-glyph {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); border: 1px solid var(--stroke-2);
}
.resume-proj h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.resume-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.resume-proj p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.resume-proj-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--text); }
.resume-proj-link .arrow { transition: transform 0.25s var(--ease); }
a.resume-proj:hover .resume-proj-link .arrow { transform: translateX(3px); }
.resume-proj--hirely .resume-proj-link { color: #ff6b6b; }
.resume-proj--solace .resume-proj-link { color: var(--solace); }

/* Visible focus for everything interactive on this page */
.resume a:focus-visible, .resume .btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .resume-head { grid-template-columns: auto 1fr; }
  .resume-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .resume-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  .resume-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; gap: 56px; }
  .resume-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resume-side > :nth-child(2) { grid-row: span 3; }
}
@media (max-width: 640px) {
  .resume-projects { grid-template-columns: minmax(0, 1fr); }
  .resume { padding: 104px 0 80px; }
  .resume-head { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 36px; margin-bottom: 40px; }
  .resume-photo { width: 96px; height: 96px; border-radius: 28px; }
  .resume-actions .btn { flex: 1 1 auto; }
  .resume-side { display: flex; }
  .resume-role { padding-left: 34px; }
  .resume-role ul li { font-size: 15.5px; }
  .resume-section + .resume-section { margin-top: 52px; }
  .resume-proj { padding: 20px; }
}

/* ==========================================================================
   Print: clean, light, ATS-friendly one-column résumé (also used to build
   /resume.pdf with headless Chrome).
   ========================================================================== */
@page { size: A4; margin: 10mm 13mm 9mm; }

@media print {
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #111 !important; }
  body { font-size: 10pt; line-height: 1.42; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body::after, .nav, .footer, .glow, .resume-photo, .resume-actions, .resume-status, .resume-eyebrow,
  .resume-screen-only, .resume-proj-icon, .resume-proj-glyph, .resume-proj-link .arrow,
  .resume-timeline::before, .resume-role::before, .resume-role ul li::before,
  .resume-main .resume-h::after, .resume-proj::after { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  a { color: inherit !important; }

  .resume { padding: 0; overflow: visible; }
  .resume > .container { max-width: none; padding: 0; }

  .resume-head { display: block; padding: 0 0 6pt; margin: 0 0 8pt; border-bottom: 1.2pt solid #111; }
  .resume-name { font-size: 22pt; letter-spacing: -0.02em; line-height: 1.05; font-weight: 700; color: #000; }
  .resume-name .serif { font-family: var(--font); font-style: normal; font-weight: 700; letter-spacing: -0.02em; background: none; color: #000; padding: 0; }
  .resume-title { margin: 4pt 0 0; font-size: 10.5pt; font-weight: 600; color: #222; letter-spacing: 0; }
  .resume-title span { color: #888; }
  .resume-print-contact { display: block; margin: 3pt 0 0; font-size: 9.2pt; color: #333; }
  .resume-print-only { display: block; }

  .resume-grid { display: block; }
  .resume-side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 22pt; margin-top: 8pt; }
  .resume-side .resume-card { margin-top: 0 !important; }
  .resume-langs { flex-direction: column; }
  .resume-langs li { margin: 0 0 1pt; }

  .resume-h, .resume-card .resume-h {
    font-family: var(--font); font-size: 9.6pt; font-weight: 700; letter-spacing: 0.1em; color: #000;
    margin: 0 0 4pt; padding-bottom: 1.5pt; border-bottom: 0.6pt solid #bbb; display: block;
  }
  .resume-section + .resume-section, .resume-side .resume-card { margin-top: 8pt; }
  .resume-section, .resume-card { break-inside: auto; }
  .resume-summary { font-size: 9.6pt; line-height: 1.36; letter-spacing: 0; color: #111; }

  .resume-skill-lines li { font-size: 9.3pt; line-height: 1.32; color: #222; margin: 1pt 0; }
  .resume-skill-lines strong { color: #000; font-weight: 600; }

  .resume-role { padding-left: 0; break-inside: avoid; }
  .resume-role + .resume-role { margin-top: 5.5pt; }
  .resume-role-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 10pt; }
  .resume-role h3, .resume-proj h3, .resume-edu h3 { font-size: 10.5pt; font-weight: 700; color: #000; letter-spacing: 0; line-height: 1.3; }
  .resume-meta { margin: 0; font-size: 9.6pt; color: #333; gap: 0 10pt; }
  .resume-role-head .resume-meta { flex: 1 1 auto; justify-content: space-between; }
  .resume-role-head h3 { margin-right: 4pt; }
  .resume-dates { font-family: var(--font); font-size: 9.4pt; color: #333; letter-spacing: 0; }
  .resume-role ul { margin: 3pt 0 0; padding-left: 13pt; list-style: disc; }
  .resume-role ul li { padding-left: 1pt; font-size: 9.4pt; line-height: 1.3; color: #1a1a1a; }
  .resume-role ul li + li { margin-top: 0.8pt; }
  .resume-win { background: none; color: inherit; padding: 0; font-weight: 600; }

  .resume-projects { display: block; }
  .resume-proj { display: block; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; break-inside: avoid; }
  .resume-proj + .resume-proj { margin-top: 4pt; }
  .resume-proj h3 { display: block; }
  .resume-tag { font-family: var(--font); font-size: 9.4pt; font-weight: 400; letter-spacing: 0; text-transform: none; color: #444; }
  .resume-tag::before { content: "— "; }
  .resume-proj p { margin: 1pt 0 0; font-size: 9.4pt; line-height: 1.3; color: #1a1a1a; }
  .resume-proj-link { display: block; margin: 0; font-size: 0; font-weight: 400; color: #333 !important; }
  .resume-print-url { display: inline; font-size: 9pt; color: #333; }

  .resume-card { padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .resume-edu li + li { margin-top: 3pt; padding-top: 0; border: 0; }
  .resume-edu li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 10pt; }
  .resume-edu .resume-meta { flex: 1 1 auto; flex-direction: row; justify-content: space-between; margin: 0; }
  .resume-langs { display: flex; gap: 0 18pt; }
  .resume-langs li { padding: 0; font-size: 9.8pt; border: 0 !important; gap: 4pt; justify-content: flex-start; }
  .resume-langs li span:first-child { font-weight: 600; }
  .resume-langs li span:first-child::after { content: ":"; }
  .resume-level { font-family: var(--font); font-size: 9.8pt; letter-spacing: 0; text-transform: none; color: #222; }
}
